query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
string user_name = 1;
java.lang.String getUserName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.6493178
22
string user_name = 1;
com.google.protobuf.ByteString getUserNameBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
int32 age = 2;
int getAge();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int intOf();", "int getFromAge();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "long mo107678c(Integer num);", "public int getAge(){\n return age;\n }", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "int getToAge();", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\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 getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "long getLongValue();", "long getLongValue();", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}" ]
[ "0.646022", "0.62739176", "0.62739176", "0.616013", "0.61587524", "0.6120473", "0.61163807", "0.61163807", "0.60445887", "0.60445887", "0.60120934", "0.59048986", "0.5902778", "0.5871985", "0.5857336", "0.5836807", "0.5776326", "0.5717868", "0.5713054", "0.5695866", "0.5695866", "0.5687746", "0.56705856", "0.56607574", "0.5655795", "0.5655795", "0.56512964", "0.5647582", "0.5646508", "0.5619739", "0.5619739", "0.5619739", "0.5619739", "0.5603557", "0.55955595", "0.55918163", "0.55742687", "0.5565777", "0.5559099", "0.55566", "0.55511546", "0.55497247", "0.55454886", "0.5531308", "0.55211467", "0.5513835", "0.55093783", "0.5503398", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54949296", "0.5473955", "0.54608154", "0.54591465", "0.5448863", "0.54447645", "0.5440858", "0.5420817", "0.5411223", "0.5411223", "0.5405342", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.539633", "0.539633", "0.5395477", "0.53916746", "0.53886837", "0.53870314", "0.53650415", "0.5365029", "0.5360434", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.5340816", "0.5323835", "0.5323835", "0.5322754" ]
0.59110653
13
string password = 3;
java.lang.String getPassword();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.74655265
17
string password = 3;
com.google.protobuf.ByteString getPasswordBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
Use RequestUser.newBuilder() to construct.
private RequestUser(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private UserLoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private User(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "String createUserRequest(String username, UserRequestType type);", "private User(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private User(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private User(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private UserFriendRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public UserBuilder() {\n this.user = new User();\n }", "private User(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private UserType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public UserAuthToken createUser(CreateUserRequest request);", "public void userRequest() \n {\n \tSystem.out.println(\"Please enter a user ID: \");\n\t\tuserID = scanner.nextInt();\n\n\t\tSystem.out.println(\"Please enter a password: \");\n\t\tpassword = scanner.next();\n\t\t\n\t\tuserRequest = UserRequest.newBuilder()\t// Pass in user input to generated methods \n\t\t\t\t\t\t\t\t .setUserID(userID)\n\t\t\t\t\t\t\t\t .setPassword(password)\n\t\t\t\t\t\t\t\t .build();\n\t\t\n\t\tuserResponse = UserResponse.newBuilder()\n\t\t\t\t\t\t\t\t .getDefaultInstanceForType();\n\t\t\n\t\tuserResponse = syncPasswordStub.hash(userRequest);\n\n\t\thashedPassword = userResponse.getHashedPassword();\n\t\tsalt = userResponse.getSalt();\n\t\n }", "public NewMemberRequestBuilder user(User user) {\r\n newMemberRequest.setUser(user);\r\n return this;\r\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "UserCreateResponse createUser(UserCreateRequest request);", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "com.lxd.protobuf.msg.result.user.User.User_OrBuilder getUserOrBuilder();", "public void addUserRequest(UserRequest request){\n userRequests.add(request);\n }", "public frame.game.proto.User.UserInfo.Builder getUserBuilder() {\n \n onChanged();\n return getUserFieldBuilder().getBuilder();\n }", "public frame.game.proto.User.UserInfo.Builder getUserBuilder() {\n \n onChanged();\n return getUserFieldBuilder().getBuilder();\n }", "public com.lxd.protobuf.msg.result.user.User.User_.Builder getUserBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getUserFieldBuilder().getBuilder();\n }", "public CalccustoRequest(UserContext userContext)\r\n\t{\r\n\t\tsuper(userContext);\r\n\t}", "private User(UserBuilder builder) {\n\t\tthis.firstName = builder.firstName;\n\t\tthis.lastName = builder.lastName;\n\t\tthis.age = builder.age;\n\t\tthis.phone = builder.phone;\n\t\tthis.address = builder.address;\n\t}", "private RequestLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MessageNewUser(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public AuthRequest(String clientId, String requestType, Integer userLoginId) {\r\n\t\tthis.clientId = clientId;\r\n\t\tthis.requestType = requestType;\r\n\t\tthis.userloginId = userLoginId;\r\n\t}", "public Builder setSearchUserReq(SearchUser.Req value) {\n copyOnWrite();\n instance.setSearchUserReq(value);\n return this;\n }", "public Builder userToken(String userToken) {\n this.userToken = userToken;\n return this;\n }", "private QueryLocalUser(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public User build() {\n\t\t\treturn new User(this);\n\t\t}", "public UBERequest() {\r\n }", "public Builder setUser(com.lxd.protobuf.msg.result.user.User.User_ value) {\n if (userBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n user_ = value;\n onChanged();\n } else {\n userBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public User(\n int user_id,\n String phone_number,\n String email_address,\n String first_name,\n String last_name,\n String middle_initial,\n String job_title,\n String freelancer_address,\n String twitter_address,\n String facebook_address,\n String linkedin_address,\n String resume_import_path,\n String user_image_path) {\n this.var_user_id = user_id;\n this.var_email_address = email_address;\n this.var_first_name = first_name;\n this.var_last_name = last_name;\n this.var_middle_initial = middle_initial;\n this.var_job_title = job_title;\n this.var_phone_number = phone_number;\n this.var_freelancer_address = freelancer_address;\n this.var_twitter_address = twitter_address;\n this.var_facebook_address = facebook_address;\n this.var_linkedin_address = linkedin_address;\n this.var_resume_import_path = resume_import_path;\n this.var_user_image_path = user_image_path;\n }", "private UserLoginRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public User build() {\n User user = new User(this);\n validateUserObject(user);\n return user;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public Builder setCreateUserBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n createUser_ = value;\n onChanged();\n return this;\n }", "private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(Signup.this, gso);\n\n\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 Builder setUser(frame.game.proto.User.UserInfo value) {\n if (userBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n user_ = value;\n onChanged();\n } else {\n userBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setUser(frame.game.proto.User.UserInfo value) {\n if (userBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n user_ = value;\n onChanged();\n } else {\n userBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setUserIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userId_ = value;\n onChanged();\n return this;\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public User build() {\n\t User user = new User(this);\n\t validateUserObject(user);\n\t return user;\n\t }", "private UserFunction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setUserIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public ServletUser(final Request req) {\n super(req.getRemoteUser());\n this.principal = req.getUserPrincipal();\n }", "private com.google.protobuf.SingleFieldBuilder<\n com.lxd.protobuf.msg.result.user.User.User_, com.lxd.protobuf.msg.result.user.User.User_.Builder, com.lxd.protobuf.msg.result.user.User.User_OrBuilder> \n getUserFieldBuilder() {\n if (userBuilder_ == null) {\n userBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.lxd.protobuf.msg.result.user.User.User_, com.lxd.protobuf.msg.result.user.User.User_.Builder, com.lxd.protobuf.msg.result.user.User.User_OrBuilder>(\n user_,\n getParentForChildren(),\n isClean());\n user_ = null;\n }\n return userBuilder_;\n }", "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 }", "public Builder clearUser() {\n if (userBuilder_ == null) {\n user_ = com.lxd.protobuf.msg.result.user.User.User_.getDefaultInstance();\n onChanged();\n } else {\n userBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "private LoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "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 }", "@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 RequestValues() {\n //mUserId = userId;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public SearchUser.Req getSearchUserReq() {\n if (reqCase_ == 8) {\n return (SearchUser.Req) req_;\n }\n return SearchUser.Req.getDefaultInstance();\n }", "private WeixinLoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void createRequest() {\n // Configure Google Sign In\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n }", "public User build() {\n\t\t\tUser user = new User(this);\n\t\t\treturn user;\n\t\t}", "private AuthLoginReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "com.lxd.protobuf.msg.result.user.User.User_ getUser();", "private RequestRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private EmployeeRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "ResponseMessage addUser(User user);", "private FriendRequestObj(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private QueryLoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setUserIdBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setUserIdBytes(value);\n return this;\n }", "public User(String userType, String userName, String firstName, String lastName, String password, String address, String city, int userRating, LocalDate joinDate) {\n super();\n this.userType = userType;\n this.userName = userName;\n this.firstName = firstName;\n this.lastName = lastName;\n this.password = password;\n this.address = address;\n this.city = city;\n this.userRating = userRating;\n this.joinDate = joinDate;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n frame.game.proto.User.UserInfo, frame.game.proto.User.UserInfo.Builder, frame.game.proto.User.UserInfoOrBuilder> \n getUserFieldBuilder() {\n if (userBuilder_ == null) {\n userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n frame.game.proto.User.UserInfo, frame.game.proto.User.UserInfo.Builder, frame.game.proto.User.UserInfoOrBuilder>(\n getUser(),\n getParentForChildren(),\n isClean());\n user_ = null;\n }\n return userBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n frame.game.proto.User.UserInfo, frame.game.proto.User.UserInfo.Builder, frame.game.proto.User.UserInfoOrBuilder> \n getUserFieldBuilder() {\n if (userBuilder_ == null) {\n userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n frame.game.proto.User.UserInfo, frame.game.proto.User.UserInfo.Builder, frame.game.proto.User.UserInfoOrBuilder>(\n getUser(),\n getParentForChildren(),\n isClean());\n user_ = null;\n }\n return userBuilder_;\n }", "public Builder clearUser() {\n \n user_ = getDefaultInstance().getUser();\n onChanged();\n return this;\n }", "private UserBean buildUserBean(HttpServletRequest request) {\n\t\tAccount account = UserManager.getCurrentUser(request.getSession());\n \t\n \tUserBean userBean = new UserBean();\n \tuserBean.setFirstName(account.getGivenName());\n \tuserBean.setLastName(account.getSurname());\n \tString phoneNumber = \"\";\n \tif (account.getCustomData().get(\"phoneNumber\") != null) {\n \t\tphoneNumber = account.getCustomData().get(\"phoneNumber\").toString();\n \t}\n \tuserBean.setPhoneNumber(phoneNumber);\n \tString phoneCarrier = \"\";\n \tif (account.getCustomData().get(\"phoneCarrier\") != null) {\n \t\tphoneCarrier = account.getCustomData().get(\"phoneCarrier\").toString();\n \t}\n \tuserBean.setPhoneCarrier(phoneCarrier);\n \tString uniqueId = \"\";\n \tif (account.getCustomData().get(\"uniqueId\") != null) {\n \t\tuniqueId = account.getCustomData().get(\"uniqueId\").toString();\n \t}\n \tuserBean.setUniqueId(uniqueId);\n \t\n \treturn userBean;\n\t}", "private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private EmployeeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setSearchUserReq(\n SearchUser.Req.Builder builderForValue) {\n copyOnWrite();\n instance.setSearchUserReq(builderForValue);\n return this;\n }", "public Builder setUserNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "public accessRequest(String id, String userid, String RequestUserid, String state, String dateTime, String name){\n\n this.userid=userid;\n this.dateTime=dateTime;\n this.id=id;\n this.RequestUserid=RequestUserid;\n this.state=state;\n this.name=name;\n\n }", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.usertype.v1.UserType getUserTypeReq(UserType userType){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.usertype.v1.UserType userTypeReq = \n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.usertype.v1.UserType();\n\t\t\n\t\tuserTypeReq.setCode(new Integer(userType.getCode()));\n\t\t\n\t\treturn userTypeReq;\n\t}", "public JSONUser(User user){\n\t\tid = user.getId();\n\t\tname = user.getName();\n\t}", "public Builder mergeSearchUserReq(SearchUser.Req value) {\n copyOnWrite();\n instance.mergeSearchUserReq(value);\n return this;\n }", "private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public User(TUser tUser) {\n if (tUser.isSetUsername()) {\n username = tUser.getUsername();\n }\n\n if (tUser.isSetPassword()) {\n password = tUser.getPassword();\n }\n\n if (tUser.isSetEnabled()) {\n enabled = tUser.isEnabled();\n }\n\n if (tUser.isSetRoles()) {\n roles = tUser.getRoles().stream().map(tUserRole ->\n new UserRole(tUserRole, this)).collect(Collectors.toSet());\n }\n\n if (tUser.isSetRobots()) {\n robots = tUser.getRobots().stream().map(tRobot -> new Robot(tRobot, this)).collect(Collectors.toSet());\n }\n }", "private CallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setUserIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n userID_ = value;\n onChanged();\n return this;\n }", "private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private AddPhoneToUserRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private User() {}", "public Request(){\n\t\tthis(null, null, null);\n\t}", "public Token createAuthorizationToken(User user);", "private void makeMeRequest(final Session session) {\n\t\tRequest request = Request.newMeRequest(session, \n\t\t\t\tnew Request.GraphUserCallback() {\n\t\t\t@Override\n\t\t\tpublic void onCompleted(final GraphUser user, Response response) {\n\t\t\t\t// If the response is successful\n\t\t\t\tif (session == Session.getActiveSession()) {\n\t\t\t\t\tif (user != null) {\n\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Hello \"+user.getName()+\"!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tParseClass p = new ParseClass(getBaseContext());\n\t\t\t\t\t\tp.Signup(user,user.getProperty(\"email\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (response.getError() != null) {\n\n\t\t\t\t\tToast.makeText(getBaseContext(), \"Error with connection\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\n\n\t\t});\n\n\t\tBundle params = request.getParameters();\n\t\tparams.putString(\"fields\", \"email,name\");\n\t\trequest.setParameters(params);\n\t\trequest.executeAsync();\n\t}", "public CalccustoRequest(UserContext userContext, Tenant tenant)\r\n\t{\r\n\t\tsuper(userContext, tenant);\r\n\t}", "public Userdto(User user) {\n\t\tthis.fname = user.getFirstname();\n\t\tthis.lname = user.getLastname();\n\t\tthis.email = user.getEmail();\n\t}", "private UserList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }" ]
[ "0.7072357", "0.6927097", "0.6845468", "0.67547524", "0.67547524", "0.67547524", "0.6708063", "0.67044395", "0.66751283", "0.6494476", "0.6411956", "0.63749146", "0.63165087", "0.630999", "0.62981313", "0.62930334", "0.6228522", "0.62044966", "0.61733305", "0.61733305", "0.61666703", "0.61511403", "0.6095191", "0.60794777", "0.60435367", "0.6029405", "0.60288346", "0.60157585", "0.60061336", "0.59886163", "0.5982338", "0.59804106", "0.5973592", "0.5969597", "0.5967618", "0.5957789", "0.59342366", "0.5915808", "0.5900473", "0.5900473", "0.5900473", "0.5900473", "0.58971256", "0.58971256", "0.5891179", "0.58896255", "0.585623", "0.5836081", "0.5793385", "0.5785899", "0.575899", "0.5758199", "0.574744", "0.57462585", "0.5744143", "0.5741691", "0.5740698", "0.5739741", "0.5730378", "0.57240796", "0.5723104", "0.5718639", "0.5715225", "0.5712406", "0.5711848", "0.57046074", "0.56920964", "0.56709003", "0.5669973", "0.5666794", "0.56567276", "0.56499153", "0.56499153", "0.5644538", "0.56422704", "0.56350666", "0.56350666", "0.56350666", "0.56333756", "0.5632337", "0.5629388", "0.561764", "0.56128573", "0.560809", "0.5600103", "0.5587437", "0.5586464", "0.55773443", "0.5575651", "0.5575651", "0.55707365", "0.5568127", "0.5564716", "0.5561253", "0.5550058", "0.5548187", "0.5547846", "0.5545501", "0.55446905", "0.55444735" ]
0.78223574
0
string user_name = 1;
public java.lang.String getUserName() { java.lang.Object ref = userName_; 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(); userName_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.72636664", "0.6876776", "0.6857585", "0.6857585", "0.68380463", "0.68015075", "0.6748792", "0.6717637", "0.6716753", "0.6716753", "0.6711465", "0.6662594", "0.6662594", "0.6662594", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.65067524", "0.64926714", "0.64926714", "0.64926714", "0.64302576", "0.63829976", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.6366666", "0.6364944", "0.636183", "0.63542026", "0.6350632", "0.6344476", "0.6344476", "0.6344476", "0.6320883", "0.63139343", "0.6312056", "0.6311089", "0.62734985", "0.62506276", "0.62434936", "0.62193096", "0.6214902", "0.61904556", "0.6165606", "0.6159181", "0.6148823", "0.6144886", "0.6143993", "0.6134372", "0.61258507", "0.6120569", "0.6110936", "0.60900897", "0.6088522", "0.60847294", "0.60826206", "0.60798615", "0.6073409", "0.6072801", "0.60624725", "0.60624725", "0.6056671", "0.60562575", "0.60534465", "0.6050154", "0.6031814", "0.6031062", "0.6027594", "0.6022379", "0.6022379", "0.6022379", "0.6022379", "0.60220116", "0.60220116", "0.6013857", "0.6008482", "0.5998903", "0.5997666", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785" ]
0.0
-1
string user_name = 1;
public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
int32 age = 2;
public int getAge() { return age_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\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 getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
string password = 3;
public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string password = 3;
public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string user_name = 1;
public java.lang.String getUserName() { java.lang.Object ref = userName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userName_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
string user_name = 1;
public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
string user_name = 1;
public Builder setUserName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userName_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
string user_name = 1;
public Builder clearUserName() { userName_ = getDefaultInstance().getUserName(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.72636664", "0.6876776", "0.6857585", "0.6857585", "0.68380463", "0.68015075", "0.6748792", "0.6717637", "0.6716753", "0.6716753", "0.6711465", "0.6662594", "0.6662594", "0.6662594", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.6577558", "0.65067524", "0.64926714", "0.64926714", "0.64926714", "0.64302576", "0.63829976", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.63750386", "0.6366666", "0.6364944", "0.636183", "0.63542026", "0.6350632", "0.6344476", "0.6344476", "0.6344476", "0.6320883", "0.63139343", "0.6312056", "0.6311089", "0.62734985", "0.62506276", "0.62434936", "0.62193096", "0.6214902", "0.61904556", "0.6165606", "0.6159181", "0.6148823", "0.6144886", "0.6143993", "0.6134372", "0.61258507", "0.6120569", "0.6110936", "0.60900897", "0.6088522", "0.60847294", "0.60826206", "0.60798615", "0.6073409", "0.6072801", "0.60624725", "0.60624725", "0.6056671", "0.60562575", "0.60534465", "0.6050154", "0.6031814", "0.6031062", "0.6027594", "0.6022379", "0.6022379", "0.6022379", "0.6022379", "0.60220116", "0.60220116", "0.6013857", "0.6008482", "0.5998903", "0.5997666", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785", "0.59949785" ]
0.0
-1
string user_name = 1;
public Builder setUserNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userName_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser_name(String user_name);", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "String getUserName();", "String getUserName();", "String getUserUsername();", "public String getUser1()\n {\n return userInput1;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "String getUser();", "String getUser();", "java.lang.String getUser();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "@AutoEscape\n\tpublic String getUser_name();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String returnUsername(){\n return username;\n }", "public String getUserName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName() {\n\t \t return userName; \n\t}", "public String getUser() {\n\treturn strUser;\n }", "void setUserUsername(String username);", "String getUserID();", "private String getUser(String name) {\n\t\treturn null;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "String getUserCnName(String userName);", "public final String mo69547a() {\n return \"user\";\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public String getName(){\n return username;\n\t}", "public String getUser2()\n {\n return userInput2;\n }", "String getUserName(String userId);", "public String getUser(){\n \treturn user;\n }", "public void bla(String username) {\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public String getUserName(int userId);", "public String getUserName()\n {\n return userName;\n }", "protected String loginIdentifyString() {\r\n return \"hao\";\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public boolean checkUsername(String user) {\n\n }", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUsername(String username) {this.username = username;}", "public String getUsernumber() {\n return usernumber;\n }", "String usernameLabel();", "void setUsername(String username);", "public void setUserName(String userName){\n this.userName = userName;\n }", "public static String getUser() {\r\n return user;\r\n }", "public abstract String getUserName();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getUsername() {return username;}", "public void onGetName(String user,String name);", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public String getUserno() {\r\n return userno;\r\n }", "public void setUserName(String username){\n this.userName = username;\n }", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName() {\n return userName;\n }", "public String getUsername(){\n return username;\n }", "public String getUsername() {\n\treturn username;\r\n}", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "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();" ]
[ "0.7264738", "0.6876394", "0.68580925", "0.68580925", "0.683851", "0.6802656", "0.6750021", "0.67188096", "0.67177963", "0.67177963", "0.6712657", "0.6663829", "0.6663829", "0.6663829", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.657807", "0.65079284", "0.6493178", "0.6493178", "0.6493178", "0.64310604", "0.6383837", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6375457", "0.6368212", "0.63662636", "0.636242", "0.63550746", "0.63516295", "0.63452744", "0.63452744", "0.63452744", "0.6320864", "0.6315177", "0.63126224", "0.6312186", "0.62748986", "0.6251192", "0.62451833", "0.6219449", "0.62149423", "0.6191159", "0.61668444", "0.615991", "0.61494005", "0.61454034", "0.6144009", "0.61348736", "0.6126606", "0.61218137", "0.6112161", "0.60904044", "0.6090088", "0.60852444", "0.60826814", "0.6081094", "0.6074783", "0.6073912", "0.606372", "0.606372", "0.60574573", "0.60572994", "0.60536957", "0.6051375", "0.60320437", "0.60318506", "0.6028157", "0.6024095", "0.6024095", "0.6024095", "0.6024095", "0.6023753", "0.6023753", "0.6015172", "0.60094255", "0.5999839", "0.5997873", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945", "0.59961945" ]
0.0
-1
int32 age = 2;
public int getAge() { return age_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\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 getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
int32 age = 2;
public Builder setAge(int value) { age_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\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 getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
int32 age = 2;
public Builder clearAge() { age_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int intOf();", "int getFromAge();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "long mo107678c(Integer num);", "public int getAge(){\n return age;\n }", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "int getToAge();", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\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 getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "long getLongValue();", "long getLongValue();", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}" ]
[ "0.646022", "0.62739176", "0.62739176", "0.616013", "0.61587524", "0.6120473", "0.61163807", "0.61163807", "0.60445887", "0.60445887", "0.60120934", "0.59110653", "0.59110653", "0.59110653", "0.59048986", "0.5902778", "0.5871985", "0.5857336", "0.5836807", "0.5776326", "0.5717868", "0.5713054", "0.5695866", "0.5695866", "0.5687746", "0.56705856", "0.56607574", "0.5655795", "0.5655795", "0.56512964", "0.5647582", "0.5646508", "0.5619739", "0.5619739", "0.5619739", "0.5619739", "0.5603557", "0.55955595", "0.55918163", "0.55742687", "0.5565777", "0.5559099", "0.55566", "0.55511546", "0.55497247", "0.55454886", "0.5531308", "0.55211467", "0.5513835", "0.55093783", "0.5503398", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54949296", "0.5473955", "0.54608154", "0.54591465", "0.5448863", "0.54447645", "0.5440858", "0.5420817", "0.5411223", "0.5411223", "0.5405342", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.539633", "0.539633", "0.5395477", "0.53916746", "0.53886837", "0.53870314", "0.53650415", "0.5365029", "0.5360434", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.5340816", "0.5323835", "0.5323835", "0.5322754" ]
0.0
-1
string password = 3;
public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string password = 3;
public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string password = 3;
public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string password = 3;
public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string password = 3;
public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String password();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getUserPassword();", "public int getPassword(){\n return password;\r\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getNewPassword();", "public int getPassword(){\n\t\treturn password;\n\t}", "public int getPassword() {\n return password;\n }", "public String getPassword(){\n return password;\n\t}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public String getPassword() {return password;}", "String getTemporaryPassword();", "String hashPassword(String password);", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public String getPassword(){\n \treturn password;\n }", "public void setPassword2(String password2);", "Password getPsw();", "public void setPassword(String pass);", "public char[] getPassword();", "String getPass();", "public String getPass(int i) {\n return getStringProperty(\"conn.pass\" + i);\n }", "public String encode( String password );", "private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String getPassword() {\n\treturn password;\n}", "public String getPassword()\n {\n return _password;\n }", "private String lookupPassword(String user) {\n\treturn \"happy8\";\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getPassword() {\n return password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String Password()// method for getting the password given by user\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter password: \");\n\t\tString password = sc.next();\n\n\t\treturn password;\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public String getaPassword() {\n return aPassword;\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public void setPassword(java.lang.String newPassword);", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n\treturn strPasswd;\n }", "void mo33731Pw();", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public static String getPassword()\n\t{\n\t\tScanner kb = new Scanner(System.in);\n\n\t\tp(\"Guideline for password:\");\n\t\tp(\"The password should be at least six characters long.\");\n\t\tp(\"The password should contain at least one uppercase and at least one lowercase letter.\");\n\t\tp(\"The password should have at least one digit.\");\n\t\tp(\"Enter a password:\");\n\t\treturn kb.nextLine();\n\t}", "public String getPassword() {\n return password;\n }" ]
[ "0.79826707", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.767607", "0.76081514", "0.7511943", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.74655265", "0.7342307", "0.7306332", "0.7306332", "0.72126156", "0.7087353", "0.70851713", "0.69969743", "0.69658923", "0.69658923", "0.69658923", "0.6959924", "0.6952926", "0.6908808", "0.68913287", "0.6888457", "0.6872424", "0.68106425", "0.67866987", "0.6779035", "0.67579275", "0.67336094", "0.6729788", "0.672161", "0.67113346", "0.66986835", "0.6691254", "0.66826314", "0.66714776", "0.6664734", "0.66448337", "0.66394496", "0.6626378", "0.6626378", "0.66110224", "0.6606793", "0.65989774", "0.65909284", "0.65909284", "0.658894", "0.6579972", "0.65743184", "0.65743184", "0.65717196", "0.6564392", "0.6562585", "0.6555203", "0.6545411", "0.6545411", "0.65367395", "0.65257734", "0.65253204", "0.65172696", "0.65004206", "0.64655465", "0.64654267", "0.6464903", "0.6463483", "0.6462081", "0.6458779", "0.64583576", "0.64583576", "0.64572805", "0.6450853", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64421856", "0.64361763", "0.6421862", "0.64123255", "0.64044905", "0.64020133", "0.63997674", "0.6396078", "0.63948697" ]
0.0
-1
string bank_no = 1;
java.lang.String getBankNo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.75587124
0
string bank_no = 1;
com.google.protobuf.ByteString getBankNoBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.5793425
36
double money = 2;
double getMoney();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMoney(Double money) {\n this.money = money;\n }", "public void setMoney(double money) {\n this.money = money;\n }", "int getMoney();", "public double getMoney(){\n return money;\n }", "int getMoneyValue();", "int getMoneyValue();", "public int getMoney()\n {\n return money;\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "public Double getMoney() {\n return money;\n }", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public void setMoney(Integer money) {\n this.money = money;\n }", "public double getMoney() {\n return money_;\n }", "public int getMoney() {\n return money;\n }", "public Integer getMoney() {\r\n return money;\r\n }", "abstract Valuable createMoney(double value);", "public void setMoney(double money) { //void method has no return type.\n\t\tthis.money=money;\n\t}", "public Integer getMoney() {\n return money;\n }", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n return money_;\n }", "public double getMoney() {\n return this.money;\n }", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public int getMoney() {\n \t\treturn money;\n \t}", "public int getMoney() {\n return money_;\n }", "public Player(double money)\n {\n spendingMoney = money;\n }", "public void setMoney(int money)\n\t{\n\t\tm_money = money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public void addMoney(double profit){\n money+=profit;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "void setIncome(double amount);", "public int getMoney() {\n\t\treturn money;\n\t}", "public int getMoney() {\n return money_;\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public int price(){\n return 2;\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void setExpenses(double amount);", "public int getInitialMoney() {\n return initialMoney;\n }", "public int getJackpot(){ return amount; }", "public int currentMoney() {\r\n\t\treturn money;\r\n\t}", "float getAmount();", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public double convert(double amount, Unit u);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void setAmount(int moneyOption);", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "int getBonusMoney();", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "private double getBalance() { return balance; }", "void mo130799a(double d);", "public int getMoney()\n\t{\n\t\treturn m_money;\n\t}", "public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public void setStartMoney(int money){\r\n\t\tthis.startMoney = money;\r\n\t}", "void setBalance(double value);" ]
[ "0.7269653", "0.7158036", "0.7113892", "0.70070106", "0.69452894", "0.69452894", "0.6915559", "0.6901657", "0.6835551", "0.6786662", "0.6744897", "0.67444026", "0.67444026", "0.6659481", "0.6598935", "0.6588492", "0.65556586", "0.6542809", "0.65164435", "0.6507761", "0.6490604", "0.6490604", "0.6488128", "0.6481928", "0.6478164", "0.64714384", "0.64454186", "0.64284825", "0.64218473", "0.6421031", "0.6396974", "0.6396974", "0.6378735", "0.6378735", "0.6378735", "0.63760656", "0.6344293", "0.6344293", "0.6344293", "0.6334271", "0.6315734", "0.6315734", "0.6315734", "0.63068867", "0.63068867", "0.63068867", "0.62990856", "0.62953407", "0.6293766", "0.62812454", "0.627592", "0.6263569", "0.6167212", "0.6159306", "0.61095965", "0.61020863", "0.610007", "0.60967374", "0.6094452", "0.60922164", "0.60766226", "0.6060485", "0.6053564", "0.60431707", "0.6042439", "0.6037521", "0.6037521", "0.6032254", "0.6023383", "0.5999561", "0.5990917", "0.5985306", "0.5976044", "0.59607434", "0.59583706", "0.59403074", "0.5938261", "0.5928886", "0.5920982", "0.5906243", "0.590139", "0.58927745", "0.5873519", "0.58679897", "0.5867814", "0.5864027", "0.58631605", "0.5860741", "0.5849192", "0.5843493", "0.5840165", "0.5839636", "0.58353955", "0.58352673", "0.5831937", "0.5829785", "0.5829785", "0.5828854", "0.5827368", "0.5811573" ]
0.74078286
0
string bank_name = 3;
java.lang.String getBankName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.6970133
0
string bank_name = 3;
com.google.protobuf.ByteString getBankNameBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.5761184
20
Use ResponseBank.newBuilder() to construct.
private ResponseBank(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ObtainCouponResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "public OrderResponseBuilder() {\r\n orderResponse = new OrderResponse();\r\n }", "public static Builder newBuilder(QueryBankBalanceMessage other) {\n return new Builder(other);\n }", "public Builder setBankNoBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "public Builder setBankNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public ProfileBankAccount() {\r\n }", "public ControlBank(Bank bank) {\r\n\t\tthis.bank = bank;\r\n\t}", "public Bank() {\n\t\tsuper();\n\t}", "public GlAccountBank () {\n\t\tsuper();\n\t}", "private BlockReportResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "BankDetail() {\n this.isValid = new Boolean(false);\n this.bankAccountNo = new String();\n this.bankAccountHolderName = new String();\n this.bankCountry = new String();\n this.IFSC = new String();\n }", "public Bank(BankDisplay bankDisplay) {\n this(\"bank\", \"localhost\", 1234, bankDisplay);\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException {\n assert response.body() != null;\n response_String = response.body().string();\n Log.d(TAG,\"Get Bank: Responce \"+ response_String);\n if (response_String != null) {\n JSONArray jsonResponse = null;\n //Log.d(\"TAG\", \"Response:\" + response_String);\n try {\n ArrayList<String> array1 = new ArrayList<String>();\n ArrayList<String> array2 = new ArrayList<String>();\n jsonResponse = new JSONArray(response_String);\n for (int j = 0; j < jsonResponse.length(); j++) {\n JSONObject jresponse = jsonResponse.getJSONObject(j);\n apgvbBranch_arr.add(jresponse.getString(\"banklocation\"));\n apgvbBranchID_arr.add(jresponse.getString(\"branchcode\"));\n }\n //Log.d(\"TAG\", \"Response Banks:\" + array1+ array2);\n Log.d(\"TAG\", \"Response Banks from Loans:\" + apgvbBranch_arr + apgvbBranchID_arr);\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.d(TAG,\"Get Bank: catch \"+e);\n }\n\n\n }\n\n }", "private SpeechletResponse bankAddressResponse() {\n\n Place place = getPlaceWithOpeningHours();\n\n if (place == null) {\n log.error(\"No place was found! Your address: \" + deviceAddress.toString());\n return getAskResponse(BANK_CONTACT_CARD, ERROR_TEXT);\n }\n\n return doBankAddressResponse(place);\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}", "public BasicResponse() {\n }", "private CallResponse() {\n initFields();\n }", "public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }", "public Bank() {\n\n }", "private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n super(QueryBankBalanceMessage.SCHEMA$);\n }", "private CannedFillResponse.Builder newResponseBuilder() {\n return new CannedFillResponse.Builder()\n .setRequiredSavableIds(SAVE_DATA_TYPE_ADDRESS, ID_ADDRESS1, ID_CITY)\n .setOptionalSavableIds(ID_ADDRESS2);\n }", "public Builder addResponse(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.add(value);\n onChanged();\n return this;\n }", "public Bank ()\n {\n super (\"Bank\", defaults, trans, sharedQueue);\n customer = new Source (0, defaults [0], \"Bank$Customer\", customer_es, sharedQueue);\n teller = new Facility (1, defaults [1], new LinkedList<Coroutine> (), teller_es, sharedQueue);\n exit = new Sink (2, defaults [2], null, sharedQueue);\n initModel (new DynamicNode [] { customer, teller, exit });\n \n }", "public Builder setResponse(br.com.sergio.wallet.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n response_ = value.getNumber();\n onChanged();\n return this;\n }", "private LivestockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BaseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private Bank() {\r\n\t\tsuper();\r\n\t\tlogService = new Logger(\"driverName\");\r\n\t\tlogger = new Logger(\"driverName\");\r\n\t\tthis.balance = balance;\r\n\t\tthis.clients = new Client[100];\r\n\t}", "public BookResponse() {\n }", "private PrepareResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private GetMerchantByParkingResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public com.google.openrtb.OpenRtb.BidResponse.Builder getBidresponseBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getBidresponseFieldBuilder().getBuilder();\n }", "public BankModel() {\n accounts = new ArrayList<AccountModel>();\n\n // Master account inbedded into system for easy access to test features.\n accounts.add(new AccountModel(\"c\", \"123\", 500));\n }", "private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public BankImpl() {\n accounts = new HashMap<Integer,Account>();\n }", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LeaderBoard_Response() {\n }", "@Override\n\tpublic Response init(ChaincodeStub stub) {\n\t\ttry {\n\t\t\t_logger.info(\"=========== Instantiated fabcar chaincode ===========\");\n\t\t\treturn newSuccessResponse();\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\treturn newErrorResponse(e);\n\t\t}\n\t}", "public Builder setResponse(\n int index, com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.set(index, value);\n onChanged();\n return this;\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MsgInstantiateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Path(\"bank\")\n @Service({\"bank\"})\n public ResponseMessage addBank(Bank bank) {\n return bsi.addBank(bank);\n }", "private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private AnswerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TestResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "@Override\n\tpublic void createBank(String bankName) {\n\t\tBank newBank = new Bank(bankName, new HashSet<Account>());\n\t\tcache.addToCache(newBank);\n\t\t\n\t}", "public static BankAddDepositResponse parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n BankAddDepositResponse object = new BankAddDepositResponse();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"BankAddDepositResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (BankAddDepositResponse) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"BankAddDepositResult\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\",\r\n \"BankAddDepositResult\").equals(reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"BankAddDepositResult\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBankAddDepositResult(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public interface BankCardService {\n /**\n * 根据主账号id,查询微店的银行卡信息\n *\n * @api {dubbo} com.pzj.core.customer.bankcard.BankCardService#queryMicroshopBankCardByOwnerid 查询主账号的银行卡信息\n * @apiGroup 银行卡服务\n * @apiVersion 1.3.0\n * @apiDescription\n * <p>\n * 根据主账号id,查询微店的银行卡信息。\n * </p>\n *\n * @apiParam {Long} ownerId 主账号id\n *\n * @apiParamExample {json} 参数示例\n *\n * {\n * \"id\" : 48381023784545\n * }\n *\n * @apiSuccess (响应数据) {int} errorCode 错误码\n * @apiSuccess (响应数据) {String} errorMsg 错误说明\n * @apiSuccess (响应数据) {BankCardDetailResponse} data 银行卡信息。\n *\n * @apiSuccessExample {json} 响应数据示例\n *\n * {\n * \"errorCode\" : 10000,\n * \"errorMsg\" : null,\n * \"data\" : {\n * \"id\" : 123,\n * \"ownerId\" : 48381023784545,\n * \"accountHolder\" : \"张三\",\n * \"idNum\" : \"14010919999999\",\n * \"bank\" : \"农行\",\n * \"cardNum\" : “596432034334”,\n * }\n * }\n *\n * @apiError (错误码说明) 1 1。\n *\n * @param ownerId\n * @return\n */\n Result<BankCardDetailResponse> queryMicroshopBankCardByOwnerid(Long ownerId);\n\n /**\n * 创建微店的银行卡信息\n *\n * @api {dubbo} com.pzj.core.customer.bankcard.BankCardService#createMicroshopBankCard 创建微店的银行卡信息\n * @apiGroup 银行卡服务\n * @apiVersion 1.3.0\n * @apiDescription\n * <p>\n * 创建微店的银行卡信息,目前只能创建一份。\n * </p>\n *\n * @apiParam {String} accountHolder 开户人\n * @apiParam {String} idNum 身份证号\n * @apiParam {String} bank 银行名称\n * @apiParam {String} cardNum 银行卡号\n * @apiParam {Integer} dataSource 创建系统\n * @apiParam {Long} operator 创建人id\n *\n * @apiParamExample {json} 参数示例\n *\n * {\n * \"accountHolder\" : \"张三\",\n * \"idNum\" : \"14010919999999\",\n * \"bank\" : \"农行\",\n * \"cardNum\" : \"596432034334\",\n * \"dataSource\" : 1,\n * \"id\" : 48381023784545\n * }\n *\n * @apiSuccess (响应数据) {int} errorCode 错误码\n * @apiSuccess (响应数据) {String} errorMsg 错误说明\n * @apiSuccess (响应数据) {Long} data 银行卡id。\n *\n * @apiSuccessExample {json} 响应数据示例\n *\n * {\n * \"errorCode\" : 10000,\n * \"errorMsg\" : null,\n * \"data\" : 123\n * }\n *\n * @apiError (错误码说明) 1 1。\n *\n * @param request\n * @return\n */\n Result<Long> createMicroshopBankCard(CreateBankCardRequest request);\n\n /**\n * 修改微店的银行卡信息\n *\n * @api {dubbo} com.pzj.core.customer.bankcard.BankCardService#modifyMicroshopBankCard 修改微店的银行卡信息\n * @apiGroup 银行卡服务\n * @apiVersion 1.3.0\n * @apiDescription\n * <p>\n * 修改微店的银行卡信息。\n * </p>\n *\n * @apiParam {Long} dataSource 银行卡id\n * @apiParam {String} accountHolder 开户人\n * @apiParam {String} idNum 身份证号\n * @apiParam {String} bank 银行名称\n * @apiParam {String} cardNum 银行卡号\n * @apiParam {Long} operator 创建人id\n *\n * @apiParamExample {json} 参数示例\n *\n * {\n * \"id\" : 123,\n * \"accountHolder\" : \"张三\",\n * \"idNum\" : \"14010919999999\",\n * \"bank\" : \"农行\",\n * \"cardNum\" : \"596432034334\",\n * \"id\" : 48381023784545\n * }\n *\n * @apiSuccess (响应数据) {int} errorCode 错误码\n * @apiSuccess (响应数据) {String} errorMsg 错误说明\n * @apiSuccess (响应数据) {Boolean=true:成功,false:失败} data 是否修改成功。\n *\n * @apiSuccessExample {json} 响应数据示例\n *\n * {\n * \"errorCode\" : 10000,\n * \"errorMsg\" : null,\n * \"data\" : true\n * }\n *\n * @apiError (错误码说明) 1 1。\n *\n * @param request\n * @return\n */\n Result<Boolean> modifyMicroshopBankCard(ModifyBankCardRequest request);\n}", "public Builder setBidresponse(com.google.openrtb.OpenRtb.BidResponse value) {\n if (bidresponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n bidresponse_ = value;\n onChanged();\n } else {\n bidresponseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public interface PrimaryBankService {\n\n @GET(\"/user/bank\")\n void getPrimaryBankDetail(Callback<List<BankDetail>> callback);\n\n @POST(\"/user/bank\")\n void createPrimaryBankDetail(@Body List<BankDetail> bankDetail, Callback<List<BankDetail>> callback);\n\n @POST(\"/user/netBankingperfios\")\n void uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse, Callback<PerfiosTransactionResponse> callback);\n\n @POST(\"/user/netBankingperfios\")\n PerfiosTransactionResponse uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse);\n //@PUT(\"/user/bank\")\n //void updatePrimaryBankDetail(@Body BankDetail bankDetail, Callback<BankDetail> callback);\n\n\n public static class PerfiosTransactionResponse{\n private String message;\n\n public String getMessage() {\n return message;\n }\n\n public void setMessage(String message) {\n this.message = message;\n }\n }\n\n public static class BankDetail{\n\n @SerializedName(value = \"name\")\n private String bankName;\n @SerializedName(value = \"account_no\")\n private String accountNumber;\n private boolean isPrimary = false;\n private boolean userStatementPresent = false;\n\n public boolean isUserStatementPresent() {\n return userStatementPresent;\n }\n\n public void setUserStatementPresent(boolean userStatementPresent) {\n this.userStatementPresent = userStatementPresent;\n }\n\n public String getBankName() {\n return bankName;\n }\n\n public void setBankName(String bankName) {\n this.bankName = bankName;\n }\n\n public String getAccountNumber() {\n return accountNumber;\n }\n\n public String getAccountNumberLast4Digits() {\n if(accountNumber!= null && accountNumber.length()>4)\n {\n return accountNumber.substring(accountNumber.length()-4);\n }\n return accountNumber;\n }\n\n public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n }\n\n public boolean isPrimary() {\n return isPrimary;\n }\n\n public void setIsPrimary(boolean isPrimary) {\n this.isPrimary = isPrimary;\n }\n\n @Override\n public boolean equals(Object obj)\n {\n if(obj != null && obj instanceof BankDetail)\n {\n BankDetail second = (BankDetail)obj;\n return this.bankName.equals(second.getBankName())\n && this.getAccountNumberLast4Digits().equals(second.getAccountNumberLast4Digits());\n }\n return false;\n }\n }\n\n}", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}", "void setBank(shared.data.Bank bank);", "com.google.protobuf.ByteString\n getBankNoBytes();", "public Builder clearBankNo() {\n \n bankNo_ = getDefaultInstance().getBankNo();\n onChanged();\n return this;\n }", "public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }", "private TestBeanResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.google.openrtb.OpenRtb.BidResponseOrBuilder getBidresponseOrBuilder();", "public QuoteResponse() {\n }", "public Builder clearBankName() {\n \n bankName_ = getDefaultInstance().getBankName();\n onChanged();\n return this;\n }", "public Bank() {\n\n\t\tcustomerList = new ArrayList<Customer>();\n\t\tCustomer C = new Customer(\"madison\", \"bynum\", \"madb\", \"123\");\n\t\tcustomerList.add(C);\n\t\temployeeList = new ArrayList<Employee>();\n\t\tEmployee E = new Employee(\"madi\", \"by\", \"madib\", \"1234\");\n\t\temployeeList.add(E);\n\t\tadminList = new ArrayList<Admin>();\n\t\tAdmin A = new Admin(\"amber\", \"stone\", \"amberstone195\", \"12345\");\n\t\tadminList.add(A);\n\t\tsbank.writeSerializeMyBank();\n\t\tsbank.loadSerializeMyBank();\n\t}", "public MyBank() {\n initComponents();\n fillClients();\n }", "public Bank() {\n\t\tnamesTree = new BankAccountsBinarySearchTree(new AccountComparatorByName());\n\t\taccountNumbersTree = new BankAccountsBinarySearchTree(new AccountComparatorByNumber());\n\t}", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "Response createResponse();", "public com.czht.face.recognition.Czhtdev.Response.Builder getResponseBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }", "public org.naru.park.ParkModel.UIParkResponse.Builder getResponseBuilder() {\n \n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }", "private Response() {}", "private Response() {}", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "private CreateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CreateProofResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private GetCouponExchangeHistoryResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public static Bank getBank() {\n return Bank;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "public BoletoPaymentRequest() {\n\n }", "private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Bank getBank() {\r\n return bank;\r\n }", "public MetadataResponse() {\n }", "private Builder(QueryBankBalanceMessage other) {\n super(QueryBankBalanceMessage.SCHEMA$);\n if (isValidValue(fields()[0], other.transferId)) {\n this.transferId = data().deepCopy(fields()[0].schema(), other.transferId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.accountID)) {\n this.accountID = data().deepCopy(fields()[2].schema(), other.accountID);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.accountAuthId)) {\n this.accountAuthId = data().deepCopy(fields()[3].schema(), other.accountAuthId);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.accountPassword)) {\n this.accountPassword = data().deepCopy(fields()[4].schema(), other.accountPassword);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.fundPassword)) {\n this.fundPassword = data().deepCopy(fields()[5].schema(), other.fundPassword);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.tradeCode)) {\n this.tradeCode = data().deepCopy(fields()[6].schema(), other.tradeCode);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.bankID)) {\n this.bankID = data().deepCopy(fields()[7].schema(), other.bankID);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.bankBranchID)) {\n this.bankBranchID = data().deepCopy(fields()[8].schema(), other.bankBranchID);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.bankPassword)) {\n this.bankPassword = data().deepCopy(fields()[9].schema(), other.bankPassword);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.currencyID)) {\n this.currencyID = data().deepCopy(fields()[10].schema(), other.currencyID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.secuPwdFlag)) {\n this.secuPwdFlag = data().deepCopy(fields()[11].schema(), other.secuPwdFlag);\n fieldSetFlags()[11] = true;\n }\n }", "public GlAccountBank (\n\t\t\tLong in_id\n ) {\n\t\tthis.setId(in_id);\n }", "private ListCompaniesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Bank(String bankName,\n String location,\n int portNumber,\n BankDisplay bankDisplay) {\n\n this.bankName = bankName;\n this.location = location;\n this.portNumber = portNumber;\n this.bankDisplay = bankDisplay;\n\n // several lists for keeping track of account-related information\n hashMapOfAllAccts = new HashMap<>();\n hashMapOfSecretKeys = new HashMap<>();\n listOfAuctionHouseIDRecords = new ArrayList<>();\n listOfAgentIDRecords = new ArrayList<>();\n\n try {\n bankSetup();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public KafkaResponseParam.Builder getResponseBuilder() {\n bitField0_ |= 0x00000100;\n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public GetPlanItemResponseBuilder() {\r\n getPlanItemResponse = new GetPlanItemResponse();\r\n }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "shared.data.Bank getBank();", "private SignatureStatusResponse(Builder builder) {\n requestId = builder.requestId;\n organizations = builder.organizations;\n }", "public TCpyBankCreditExample() {\n oredCriteria = new ArrayList<Criteria>();\n }" ]
[ "0.6085245", "0.604703", "0.59689265", "0.59249985", "0.5908164", "0.58668196", "0.5841774", "0.5837173", "0.58269024", "0.58068055", "0.5783616", "0.57129997", "0.5707681", "0.5633974", "0.56198007", "0.56196237", "0.55872697", "0.5567988", "0.5562203", "0.55516297", "0.5526325", "0.55229646", "0.5511305", "0.55092067", "0.5508618", "0.54868376", "0.54474527", "0.54420465", "0.5440115", "0.5432093", "0.54319507", "0.54296565", "0.5423489", "0.54227984", "0.5413942", "0.54133576", "0.5410824", "0.5408826", "0.54081863", "0.5404194", "0.5388703", "0.5388703", "0.5388703", "0.5388703", "0.5388703", "0.5388703", "0.5388703", "0.53660655", "0.5365695", "0.5361149", "0.5357134", "0.5352143", "0.5348548", "0.53476834", "0.53453773", "0.5344014", "0.5341523", "0.53380847", "0.5331919", "0.5330874", "0.5317978", "0.53174233", "0.5314019", "0.53134316", "0.53119344", "0.5304006", "0.5302163", "0.5299799", "0.52942973", "0.52942306", "0.5277281", "0.5263157", "0.52628076", "0.5259661", "0.5257908", "0.52560735", "0.52556026", "0.52556026", "0.5241503", "0.52414256", "0.52404696", "0.52326125", "0.5229751", "0.52265745", "0.52212733", "0.521853", "0.5218514", "0.52169263", "0.5214348", "0.52065974", "0.5197701", "0.5193849", "0.5191839", "0.51850486", "0.51823765", "0.5176052", "0.51743346", "0.51679915", "0.51513726", "0.51512384" ]
0.8008222
0
string bank_no = 1;
public java.lang.String getBankNo() { java.lang.Object ref = bankNo_; 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(); bankNo_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public String getBankID() {\n return bankID;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public String getBankName() {\n return bankName;\n }", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public void setCardNo(int cardNumber);", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getMerchantNo();", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}" ]
[ "0.75596446", "0.65144527", "0.64845103", "0.64845103", "0.64713913", "0.64713913", "0.64502096", "0.63272834", "0.6300792", "0.6218422", "0.6217307", "0.6215278", "0.6204325", "0.6204325", "0.6174371", "0.61429673", "0.61367965", "0.6113506", "0.60524666", "0.60176045", "0.60039586", "0.59834677", "0.5980845", "0.5963905", "0.58958817", "0.58652836", "0.5864418", "0.5851676", "0.58480865", "0.58356476", "0.58356476", "0.58320504", "0.58254546", "0.58063704", "0.5796248", "0.579498", "0.57778174", "0.5770091", "0.57537574", "0.57480603", "0.5714579", "0.56897867", "0.56739146", "0.56093925", "0.56074476", "0.5604667", "0.560358", "0.5599442", "0.55913824", "0.5589326", "0.55859876", "0.5585763", "0.5581824", "0.5573848", "0.55693966", "0.5565187", "0.55634356", "0.55442643", "0.5514907", "0.5505276", "0.5503544", "0.5502838", "0.5491579", "0.5486135", "0.5464737", "0.5463573", "0.5460391", "0.54537654", "0.5443416", "0.5441535", "0.5437258", "0.5433606", "0.5426143", "0.5406231", "0.54057354", "0.54002345", "0.538315", "0.53821105", "0.53677064", "0.5365128", "0.5361453", "0.5360755", "0.5359644", "0.53589576", "0.5358649", "0.5357682", "0.5331643", "0.5325713", "0.529905", "0.5295193", "0.52846247", "0.52800536", "0.5276321", "0.52749157", "0.5274711", "0.5268456", "0.5265509", "0.52650684", "0.5254023", "0.5253143" ]
0.6416603
7
string bank_no = 1;
public com.google.protobuf.ByteString getBankNoBytes() { java.lang.Object ref = bankNo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bankNo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.6112429
18
double money = 2;
public double getMoney() { return money_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMoney();", "public void setMoney(Double money) {\n this.money = money;\n }", "public void setMoney(double money) {\n this.money = money;\n }", "int getMoney();", "public double getMoney(){\n return money;\n }", "int getMoneyValue();", "int getMoneyValue();", "public int getMoney()\n {\n return money;\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "public Double getMoney() {\n return money;\n }", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public void setMoney(Integer money) {\n this.money = money;\n }", "public int getMoney() {\n return money;\n }", "public Integer getMoney() {\r\n return money;\r\n }", "abstract Valuable createMoney(double value);", "public void setMoney(double money) { //void method has no return type.\n\t\tthis.money=money;\n\t}", "public Integer getMoney() {\n return money;\n }", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n return money_;\n }", "public double getMoney() {\n return this.money;\n }", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public int getMoney() {\n \t\treturn money;\n \t}", "public int getMoney() {\n return money_;\n }", "public Player(double money)\n {\n spendingMoney = money;\n }", "public void setMoney(int money)\n\t{\n\t\tm_money = money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public void addMoney(double profit){\n money+=profit;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "void setIncome(double amount);", "public int getMoney() {\n\t\treturn money;\n\t}", "public int getMoney() {\n return money_;\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public int price(){\n return 2;\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void setExpenses(double amount);", "public int getInitialMoney() {\n return initialMoney;\n }", "public int getJackpot(){ return amount; }", "public int currentMoney() {\r\n\t\treturn money;\r\n\t}", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "float getAmount();", "@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public double convert(double amount, Unit u);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void setAmount(int moneyOption);", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "int getBonusMoney();", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "private double getBalance() { return balance; }", "void mo130799a(double d);", "public int getMoney()\n\t{\n\t\treturn m_money;\n\t}", "public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public void setStartMoney(int money){\r\n\t\tthis.startMoney = money;\r\n\t}", "void setBalance(double value);" ]
[ "0.74066603", "0.7270658", "0.7159234", "0.7112725", "0.7005618", "0.69442457", "0.69442457", "0.69143605", "0.69031173", "0.6833951", "0.6785401", "0.6743888", "0.6743463", "0.6743463", "0.66612744", "0.65873164", "0.6554931", "0.6542958", "0.6517039", "0.6506949", "0.6489381", "0.6489381", "0.6487019", "0.64805675", "0.64770764", "0.64703906", "0.64444864", "0.6428041", "0.64234334", "0.6420078", "0.6396017", "0.6396017", "0.63776827", "0.63776827", "0.63776827", "0.6375547", "0.63459194", "0.63459194", "0.63459194", "0.63329875", "0.6314594", "0.6314594", "0.6314594", "0.6308539", "0.6308539", "0.6308539", "0.6298052", "0.62939477", "0.6293507", "0.6280287", "0.6275075", "0.6263213", "0.616628", "0.61580557", "0.61094135", "0.6101994", "0.6099849", "0.6095212", "0.6093445", "0.6092855", "0.6076729", "0.6059643", "0.60524356", "0.604235", "0.6041388", "0.60367584", "0.60367584", "0.60311896", "0.6022114", "0.59995127", "0.5989919", "0.5982953", "0.5975491", "0.59590185", "0.5958878", "0.5940322", "0.59366715", "0.59282184", "0.59201336", "0.590569", "0.590133", "0.589263", "0.5872167", "0.586791", "0.58672863", "0.58634454", "0.586121", "0.5859635", "0.58479255", "0.5841836", "0.5839264", "0.5838476", "0.58359504", "0.583412", "0.58300114", "0.5829125", "0.5829125", "0.582889", "0.5828878", "0.58112943" ]
0.65977895
15
string bank_name = 3;
public java.lang.String getBankName() { java.lang.Object ref = bankName_; 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(); bankName_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.5822795
16
string bank_name = 3;
public com.google.protobuf.ByteString getBankNameBytes() { java.lang.Object ref = bankName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bankName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "private String getCountryName(String name)\r\n {\r\n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getBankAccountType();", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "Databank getBank();", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "String player1GetName(){\n return player1;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "@Override\n public void actionPerformed(ActionEvent e){\n String nam = JOptionPane.showInputDialog(\"Account Name?\");\n \n String accn = bankSystem.getAccount(nam).name;\n \n String baln = Integer.toString(bankSystem.getAccount(nam).balance);\n \n textSpace.setText(\"\");\n \n textSpace.append(accn + \"\\n\" + baln + \"\\n\" );\n \n current = bankSystem.getAccount(nam);\n \n }" ]
[ "0.69724697", "0.68124914", "0.6234785", "0.6234785", "0.6186163", "0.6170773", "0.60354847", "0.5978646", "0.5954666", "0.59307224", "0.5925581", "0.59021455", "0.588645", "0.58787495", "0.58787495", "0.5839838", "0.58257407", "0.5811449", "0.5775722", "0.57715684", "0.5764059", "0.57585335", "0.5745737", "0.5728723", "0.57284105", "0.5724173", "0.5721827", "0.5721076", "0.5716349", "0.5683837", "0.5653225", "0.5648641", "0.5624911", "0.5620981", "0.5596959", "0.5583621", "0.558282", "0.55724216", "0.55514073", "0.5543604", "0.5539651", "0.5539115", "0.5537163", "0.5535404", "0.55158275", "0.5513873", "0.5509157", "0.5500224", "0.5491492", "0.5490965", "0.5476725", "0.5443848", "0.5431416", "0.5430827", "0.5421033", "0.54173905", "0.5405935", "0.53965235", "0.53887963", "0.5388705", "0.5388705", "0.5388518", "0.5384234", "0.5377095", "0.5375392", "0.53677666", "0.53563744", "0.53478724", "0.5346659", "0.53442085", "0.5341048", "0.5340647", "0.5338537", "0.5338537", "0.53375804", "0.53130704", "0.5311797", "0.5307741", "0.5306172", "0.529118", "0.5288373", "0.5276054", "0.5265657", "0.5261401", "0.5261155", "0.52570015", "0.5256808", "0.5255707", "0.5255214", "0.5254714", "0.52527636", "0.5250582", "0.52444607", "0.5243571", "0.522857", "0.5227675", "0.52266383", "0.5221991", "0.52211404", "0.52207947" ]
0.53992194
57
string bank_no = 1;
public java.lang.String getBankNo() { java.lang.Object ref = bankNo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bankNo_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.6513662
1
string bank_no = 1;
public com.google.protobuf.ByteString getBankNoBytes() { java.lang.Object ref = bankNo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bankNo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.6214401
11
string bank_no = 1;
public Builder setBankNo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bankNo_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.6299394
9
string bank_no = 1;
public Builder clearBankNo() { bankNo_ = getDefaultInstance().getBankNo(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public String getBankID() {\n return bankID;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public String getBankName() {\n return bankName;\n }", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public void setCardNo(int cardNumber);", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getMerchantNo();", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}" ]
[ "0.75596446", "0.65144527", "0.64845103", "0.64845103", "0.64713913", "0.64713913", "0.64502096", "0.6416603", "0.63272834", "0.6300792", "0.6218422", "0.6217307", "0.6215278", "0.6204325", "0.6204325", "0.6174371", "0.61429673", "0.61367965", "0.6113506", "0.60524666", "0.60176045", "0.60039586", "0.59834677", "0.5980845", "0.5963905", "0.58958817", "0.58652836", "0.5864418", "0.5851676", "0.58480865", "0.58356476", "0.58356476", "0.58320504", "0.58254546", "0.58063704", "0.5796248", "0.579498", "0.57778174", "0.5770091", "0.57537574", "0.57480603", "0.5714579", "0.56897867", "0.56739146", "0.56093925", "0.56074476", "0.5604667", "0.560358", "0.5599442", "0.55913824", "0.5589326", "0.55859876", "0.5585763", "0.5581824", "0.5573848", "0.55693966", "0.5565187", "0.55634356", "0.55442643", "0.5514907", "0.5505276", "0.5503544", "0.5502838", "0.5491579", "0.5486135", "0.5464737", "0.5463573", "0.5460391", "0.54537654", "0.5443416", "0.5441535", "0.5437258", "0.5433606", "0.5426143", "0.5406231", "0.54057354", "0.54002345", "0.538315", "0.53821105", "0.53677064", "0.5365128", "0.5361453", "0.5360755", "0.5359644", "0.53589576", "0.5358649", "0.5357682", "0.5331643", "0.5325713", "0.529905", "0.5295193", "0.52846247", "0.52800536", "0.5276321", "0.52749157", "0.5274711", "0.5268456", "0.5265509", "0.52650684", "0.5254023", "0.5253143" ]
0.0
-1
string bank_no = 1;
public Builder setBankNoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bankNo_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankNo();", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankData_ReferenceNo();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public int getJP_BankData_ID();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public String getBank() {\n return bank;\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getC_BankAccount_ID();", "public String getBankID() {\n return bankID;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankCode() {\r\n return bankCode;\r\n }", "public String getAccountNo();", "public String getJP_BankDataCustomerCode1();", "java.lang.String getBankName();", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getJP_BankAccount_Value();", "public void setAccountNo (String AccountNo);", "String billingPartNumber();", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "com.google.protobuf.ByteString\n getBankNoBytes();", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public int getBankAccount() {\n return bankAccount;\n }", "String askingOrderNumber();", "public String getJP_BankDataCustomerCode2();", "public long getBankId() {\n return bankId;\n }", "public int getJP_BankDataLine_ID();", "public String getSupAcctBank() {\n return supAcctBank;\n }", "public int getRequestableBank() \n {\n return -1; \n }", "public String getBizno() {\n return bizno;\n }", "String getBillString();", "public static String aPaymentId() {\n return \"123456\";\n }", "public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "public String getBankName() {\n return bankName;\n }", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "@Override\n protected void setBankNum(int bankNum) {\n }", "public void setBankAccountType (String BankAccountType);", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public String getSubBank() {\r\n return subBank;\r\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}", "public void setBankNumber(java.lang.String bankNumber) {\n this.bankNumber = bankNumber;\n }", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "static void printAccountBalance(String address){\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "public String getAccountNo() {\n return accountNo;\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public void setBankBic(String bankBic) {\n this.bankBic = bankBic;\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "java.lang.String getAccountNumber();", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public static String getCurrentBill(String accountNumber){\n return \"select cb_bill from current_bills where cb_account = '\"+accountNumber+\"'\";\n }", "public void setCardNo(int cardNumber);", "private String getLoadAccountNumber(String loadAccNumber) {\n String loadNumber = \"\";\n if (null != loadAccNumber) {\n loadNumber = loadAccNumber;\n }\n return loadNumber;\n }", "public int getAccountNo() {\n return accountNo;\n }", "public String getJP_BankName_Kana_Line();", "Databank getBank();", "public String getMerchantNo();", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public String getBranchno() {\n return branchno;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public String reviseBankName(String name) \n {\n return null; \n }", "public byte[] requestBankDump(int bank) \n {\n return null; \n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getBankBranchID() {\n return bankBranchID;\n }", "public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "void setBank(shared.data.Bank bank);", "public void setBillNo (java.lang.String billNo) {\n\t\tthis.billNo = billNo;\n\t}", "protected void setBankNum(int bankNum) {\n try {\n ShortMessage msg = new ShortMessage();\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x00, // Bank Select (MSB)\n bankNum / 128); // Bank Number (MSB)\n send(msg);\n msg.setMessage(ShortMessage.CONTROL_CHANGE, getChannel() - 1,\n 0x20, // Bank Select (LSB)\n bankNum % 128); // Bank Number (MSB)\n send(msg);\n } catch (InvalidMidiDataException e) {\n ErrorMsg.reportStatus(e);\n }\n }" ]
[ "0.75587124", "0.6513662", "0.6481686", "0.6481686", "0.6469364", "0.6469364", "0.64482445", "0.64157975", "0.6327246", "0.6299394", "0.62171155", "0.6214401", "0.62139237", "0.6199733", "0.6199733", "0.6173211", "0.614071", "0.6132237", "0.6112429", "0.6050278", "0.6014283", "0.6005357", "0.5980593", "0.59772366", "0.59631026", "0.5895298", "0.58619153", "0.5861752", "0.58478576", "0.58477724", "0.58334136", "0.58334136", "0.58297265", "0.58239025", "0.5806866", "0.5793983", "0.5793425", "0.57759863", "0.57658744", "0.57545424", "0.5747326", "0.57111186", "0.5689061", "0.56699324", "0.56068516", "0.5604808", "0.5603587", "0.56034076", "0.559654", "0.55914575", "0.5587068", "0.558374", "0.5583679", "0.5578292", "0.5574381", "0.55656075", "0.5564983", "0.55619305", "0.5543012", "0.5512105", "0.5503708", "0.55019146", "0.5498936", "0.54927987", "0.5485002", "0.54642075", "0.5461067", "0.5456999", "0.54514873", "0.5442559", "0.5440582", "0.54353374", "0.5429906", "0.5424538", "0.5406561", "0.5406471", "0.5398683", "0.5381623", "0.5377538", "0.5365085", "0.53631544", "0.5360822", "0.53599775", "0.5359852", "0.53567964", "0.53565127", "0.53546315", "0.5328758", "0.5323901", "0.5296499", "0.5291837", "0.52823704", "0.5276373", "0.52724093", "0.52718824", "0.52710927", "0.52668214", "0.52623254", "0.5261489", "0.5252646", "0.52523977" ]
0.0
-1
double money = 2;
public double getMoney() { return money_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMoney();", "public void setMoney(Double money) {\n this.money = money;\n }", "public void setMoney(double money) {\n this.money = money;\n }", "int getMoney();", "public double getMoney(){\n return money;\n }", "int getMoneyValue();", "int getMoneyValue();", "public int getMoney()\n {\n return money;\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "public Double getMoney() {\n return money;\n }", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public void setMoney(Integer money) {\n this.money = money;\n }", "public double getMoney() {\n return money_;\n }", "public int getMoney() {\n return money;\n }", "public Integer getMoney() {\r\n return money;\r\n }", "abstract Valuable createMoney(double value);", "public void setMoney(double money) { //void method has no return type.\n\t\tthis.money=money;\n\t}", "public Integer getMoney() {\n return money;\n }", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n return this.money;\n }", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public int getMoney() {\n \t\treturn money;\n \t}", "public int getMoney() {\n return money_;\n }", "public Player(double money)\n {\n spendingMoney = money;\n }", "public void setMoney(int money)\n\t{\n\t\tm_money = money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public void addMoney(double profit){\n money+=profit;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "void setIncome(double amount);", "public int getMoney() {\n\t\treturn money;\n\t}", "public int getMoney() {\n return money_;\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public int price(){\n return 2;\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void setExpenses(double amount);", "public int getInitialMoney() {\n return initialMoney;\n }", "public int getJackpot(){ return amount; }", "public int currentMoney() {\r\n\t\treturn money;\r\n\t}", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "float getAmount();", "@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public double convert(double amount, Unit u);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void setAmount(int moneyOption);", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "int getBonusMoney();", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "private double getBalance() { return balance; }", "void mo130799a(double d);", "public int getMoney()\n\t{\n\t\treturn m_money;\n\t}", "public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public void setStartMoney(int money){\r\n\t\tthis.startMoney = money;\r\n\t}", "void setBalance(double value);" ]
[ "0.74066603", "0.7270658", "0.7159234", "0.7112725", "0.7005618", "0.69442457", "0.69442457", "0.69143605", "0.69031173", "0.6833951", "0.6785401", "0.6743888", "0.6743463", "0.6743463", "0.66612744", "0.65977895", "0.65873164", "0.6554931", "0.6542958", "0.6517039", "0.6506949", "0.6489381", "0.6489381", "0.64805675", "0.64770764", "0.64703906", "0.64444864", "0.6428041", "0.64234334", "0.6420078", "0.6396017", "0.6396017", "0.63776827", "0.63776827", "0.63776827", "0.6375547", "0.63459194", "0.63459194", "0.63459194", "0.63329875", "0.6314594", "0.6314594", "0.6314594", "0.6308539", "0.6308539", "0.6308539", "0.6298052", "0.62939477", "0.6293507", "0.6280287", "0.6275075", "0.6263213", "0.616628", "0.61580557", "0.61094135", "0.6101994", "0.6099849", "0.6095212", "0.6093445", "0.6092855", "0.6076729", "0.6059643", "0.60524356", "0.604235", "0.6041388", "0.60367584", "0.60367584", "0.60311896", "0.6022114", "0.59995127", "0.5989919", "0.5982953", "0.5975491", "0.59590185", "0.5958878", "0.5940322", "0.59366715", "0.59282184", "0.59201336", "0.590569", "0.590133", "0.589263", "0.5872167", "0.586791", "0.58672863", "0.58634454", "0.586121", "0.5859635", "0.58479255", "0.5841836", "0.5839264", "0.5838476", "0.58359504", "0.583412", "0.58300114", "0.5829125", "0.5829125", "0.582889", "0.5828878", "0.58112943" ]
0.6487019
23
double money = 2;
public Builder setMoney(double value) { money_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMoney();", "public void setMoney(Double money) {\n this.money = money;\n }", "public void setMoney(double money) {\n this.money = money;\n }", "int getMoney();", "public double getMoney(){\n return money;\n }", "int getMoneyValue();", "int getMoneyValue();", "public int getMoney()\n {\n return money;\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "public Double getMoney() {\n return money;\n }", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public void setMoney(Integer money) {\n this.money = money;\n }", "public double getMoney() {\n return money_;\n }", "public int getMoney() {\n return money;\n }", "public Integer getMoney() {\r\n return money;\r\n }", "abstract Valuable createMoney(double value);", "public void setMoney(double money) { //void method has no return type.\n\t\tthis.money=money;\n\t}", "public Integer getMoney() {\n return money;\n }", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n return money_;\n }", "public double getMoney() {\n return this.money;\n }", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public int getMoney() {\n \t\treturn money;\n \t}", "public int getMoney() {\n return money_;\n }", "public Player(double money)\n {\n spendingMoney = money;\n }", "public void setMoney(int money)\n\t{\n\t\tm_money = money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public void addMoney(double profit){\n money+=profit;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "void setIncome(double amount);", "public int getMoney() {\n\t\treturn money;\n\t}", "public int getMoney() {\n return money_;\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public int price(){\n return 2;\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void setExpenses(double amount);", "public int getInitialMoney() {\n return initialMoney;\n }", "public int getJackpot(){ return amount; }", "public int currentMoney() {\r\n\t\treturn money;\r\n\t}", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "float getAmount();", "@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public double convert(double amount, Unit u);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void setAmount(int moneyOption);", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "int getBonusMoney();", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "private double getBalance() { return balance; }", "void mo130799a(double d);", "public int getMoney()\n\t{\n\t\treturn m_money;\n\t}", "public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public void setStartMoney(int money){\r\n\t\tthis.startMoney = money;\r\n\t}", "void setBalance(double value);" ]
[ "0.74066603", "0.7270658", "0.7159234", "0.7112725", "0.7005618", "0.69442457", "0.69442457", "0.69143605", "0.69031173", "0.6833951", "0.6785401", "0.6743888", "0.6743463", "0.6743463", "0.66612744", "0.65977895", "0.65873164", "0.6554931", "0.6542958", "0.6517039", "0.6506949", "0.6489381", "0.6489381", "0.6487019", "0.64805675", "0.64770764", "0.64703906", "0.64444864", "0.6428041", "0.64234334", "0.6420078", "0.6396017", "0.6396017", "0.63776827", "0.63776827", "0.63776827", "0.6375547", "0.63459194", "0.63459194", "0.63459194", "0.63329875", "0.6314594", "0.6314594", "0.6314594", "0.6308539", "0.6308539", "0.6308539", "0.6298052", "0.62939477", "0.6293507", "0.6280287", "0.6275075", "0.6263213", "0.616628", "0.61580557", "0.61094135", "0.6101994", "0.6099849", "0.6095212", "0.6093445", "0.6092855", "0.6076729", "0.6059643", "0.60524356", "0.604235", "0.6041388", "0.60367584", "0.60367584", "0.60311896", "0.6022114", "0.59995127", "0.5989919", "0.5982953", "0.5975491", "0.59590185", "0.5958878", "0.5940322", "0.59366715", "0.59282184", "0.59201336", "0.590569", "0.590133", "0.589263", "0.5872167", "0.586791", "0.58672863", "0.58634454", "0.586121", "0.5859635", "0.58479255", "0.5841836", "0.5839264", "0.5838476", "0.58359504", "0.583412", "0.58300114", "0.5829125", "0.5829125", "0.582889", "0.5828878", "0.58112943" ]
0.0
-1
double money = 2;
public Builder clearMoney() { money_ = 0D; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMoney();", "public void setMoney(Double money) {\n this.money = money;\n }", "public void setMoney(double money) {\n this.money = money;\n }", "int getMoney();", "public double getMoney(){\n return money;\n }", "int getMoneyValue();", "int getMoneyValue();", "public int getMoney()\n {\n return money;\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "public Double getMoney() {\n return money;\n }", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public void setMoney(Integer money) {\n this.money = money;\n }", "public double getMoney() {\n return money_;\n }", "public int getMoney() {\n return money;\n }", "public Integer getMoney() {\r\n return money;\r\n }", "abstract Valuable createMoney(double value);", "public void setMoney(double money) { //void method has no return type.\n\t\tthis.money=money;\n\t}", "public Integer getMoney() {\n return money;\n }", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n return money_;\n }", "public double getMoney() {\n return this.money;\n }", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public int getMoney() {\n \t\treturn money;\n \t}", "public int getMoney() {\n return money_;\n }", "public Player(double money)\n {\n spendingMoney = money;\n }", "public void setMoney(int money)\n\t{\n\t\tm_money = money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public void addMoney(double profit){\n money+=profit;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "void setIncome(double amount);", "public int getMoney() {\n\t\treturn money;\n\t}", "public int getMoney() {\n return money_;\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public GoalMoneySaved(double moneySaved) {\n MoneySaved = moneySaved;\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public int price(){\n return 2;\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void setExpenses(double amount);", "public int getInitialMoney() {\n return initialMoney;\n }", "public int getJackpot(){ return amount; }", "public int currentMoney() {\r\n\t\treturn money;\r\n\t}", "float getAmount();", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public double convert(double amount, Unit u);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void setAmount(int moneyOption);", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "int getBonusMoney();", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "private double getBalance() { return balance; }", "void mo130799a(double d);", "public int getMoney()\n\t{\n\t\treturn m_money;\n\t}", "public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public void setStartMoney(int money){\r\n\t\tthis.startMoney = money;\r\n\t}", "void setBalance(double value);" ]
[ "0.74078286", "0.7269653", "0.7158036", "0.7113892", "0.70070106", "0.69452894", "0.69452894", "0.6915559", "0.6901657", "0.6835551", "0.6786662", "0.6744897", "0.67444026", "0.67444026", "0.6659481", "0.6598935", "0.6588492", "0.65556586", "0.6542809", "0.65164435", "0.6507761", "0.6490604", "0.6490604", "0.6488128", "0.6481928", "0.6478164", "0.64714384", "0.64454186", "0.64284825", "0.64218473", "0.6421031", "0.6396974", "0.6396974", "0.6378735", "0.6378735", "0.6378735", "0.63760656", "0.6344293", "0.6344293", "0.6344293", "0.6334271", "0.6315734", "0.6315734", "0.6315734", "0.63068867", "0.63068867", "0.63068867", "0.62990856", "0.62953407", "0.6293766", "0.62812454", "0.627592", "0.6263569", "0.6167212", "0.6159306", "0.61095965", "0.61020863", "0.610007", "0.60967374", "0.6094452", "0.60922164", "0.60766226", "0.6060485", "0.6053564", "0.60431707", "0.6042439", "0.6037521", "0.6037521", "0.6032254", "0.6023383", "0.5999561", "0.5990917", "0.5985306", "0.5976044", "0.59607434", "0.59583706", "0.59403074", "0.5938261", "0.5928886", "0.5920982", "0.5906243", "0.590139", "0.58927745", "0.5873519", "0.58679897", "0.5867814", "0.5864027", "0.58631605", "0.5860741", "0.5849192", "0.5843493", "0.5840165", "0.5839636", "0.58353955", "0.58352673", "0.5831937", "0.5829785", "0.5829785", "0.5828854", "0.5827368", "0.5811573" ]
0.0
-1
string bank_name = 3;
public java.lang.String getBankName() { java.lang.Object ref = bankName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bankName_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.59278387
9
string bank_name = 3;
public com.google.protobuf.ByteString getBankNameBytes() { java.lang.Object ref = bankName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bankName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.55129766
44
string bank_name = 3;
public Builder setBankName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bankName_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.5646869
31
string bank_name = 3;
public Builder clearBankName() { bankName_ = getDefaultInstance().getBankName(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "private String getCountryName(String name)\r\n {\r\n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public String getBankAccountType();", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "Databank getBank();", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "String player1GetName(){\n return player1;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "@Override\n public void actionPerformed(ActionEvent e){\n String nam = JOptionPane.showInputDialog(\"Account Name?\");\n \n String accn = bankSystem.getAccount(nam).name;\n \n String baln = Integer.toString(bankSystem.getAccount(nam).balance);\n \n textSpace.setText(\"\");\n \n textSpace.append(accn + \"\\n\" + baln + \"\\n\" );\n \n current = bankSystem.getAccount(nam);\n \n }" ]
[ "0.69724697", "0.68124914", "0.6234785", "0.6234785", "0.6186163", "0.6170773", "0.60354847", "0.5978646", "0.5954666", "0.59307224", "0.5925581", "0.59021455", "0.588645", "0.58787495", "0.58787495", "0.5839838", "0.58257407", "0.5811449", "0.5775722", "0.57715684", "0.5764059", "0.57585335", "0.5745737", "0.5728723", "0.57284105", "0.5724173", "0.5721827", "0.5721076", "0.5716349", "0.5683837", "0.5653225", "0.5648641", "0.5624911", "0.5620981", "0.5596959", "0.5583621", "0.558282", "0.55724216", "0.55514073", "0.5543604", "0.5539651", "0.5539115", "0.5537163", "0.5535404", "0.55158275", "0.5513873", "0.5509157", "0.5500224", "0.5491492", "0.5490965", "0.5476725", "0.5443848", "0.5431416", "0.5430827", "0.5421033", "0.54173905", "0.5405935", "0.53992194", "0.53965235", "0.53887963", "0.5388705", "0.5388705", "0.5388518", "0.5384234", "0.5377095", "0.5375392", "0.53677666", "0.53563744", "0.53478724", "0.5346659", "0.53442085", "0.5341048", "0.5340647", "0.5338537", "0.5338537", "0.53375804", "0.53130704", "0.5311797", "0.5307741", "0.5306172", "0.529118", "0.5288373", "0.5276054", "0.5265657", "0.5261401", "0.5261155", "0.52570015", "0.5256808", "0.5255707", "0.5255214", "0.5254714", "0.52527636", "0.5250582", "0.52444607", "0.5243571", "0.522857", "0.5227675", "0.52266383", "0.5221991", "0.52211404", "0.52207947" ]
0.0
-1
string bank_name = 3;
public Builder setBankNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bankName_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBankName();", "java.lang.String getBankNo();", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\r\n return bank;\r\n }", "public String getBank() {\n return bank;\n }", "public String getBankName() {\n return bankName;\n }", "public String getJP_BankAccount_Value();", "public String reviseBankName(String name) \n {\n return null; \n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getBillString();", "public void setBank(String bank)\n\t{\n\t\tthis.bank = bank.trim().replaceAll(\" +\",\" \");\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public java.lang.String getBankNo() {\r\n return localBankNo;\r\n }", "public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }", "public java.lang.String getBankName() {\n java.lang.Object ref = bankName_;\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 bankName_ = s;\n return s;\n }\n }", "public String getBankID() {\n return bankID;\n }", "public void setBankAccountType (String BankAccountType);", "IBank getBankFromName(String bankName) throws RemoteException;", "com.google.protobuf.ByteString\n getBankNameBytes();", "public String getBankName()\n\t{\n\t\tif(response.containsKey(\"BANK_NAME\")) {\n\t\t\treturn response.get(\"BANK_NAME\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }", "public String getJP_BankDataCustomerCode1();", "static void printAccountBalance(String address){\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getJP_BankName_Kana_Line();", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "public String getBankCode() {\r\n return bankCode;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public java.lang.String getBankNumber() {\n return bankNumber;\n }", "public String getBankID() {\n return bankID;\n }", "String printName(String input);", "public int getBankAccount() {\n return bankAccount;\n }", "public String getBank() {\n\t\tthis.setBank(this.bank);\n\t\treturn this.bank;\n\t}", "public String getJP_BankDataCustomerCode2();", "public int getC_BankAccount_ID();", "public String getJP_BankData_ReferenceNo();", "public String getSubBank() {\r\n return subBank;\r\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void setBank(String bank) {\n\t\tif (bank == null)\n\t\t\tbank = \"\";\n\t\tthis.bank = bank;\n\t}", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getJP_BankData_ID();", "public BankAccount1(String str, double initialBalance) {\n\t\tbalance = initialBalance;\n\t\tcustomerName = str;\n\t}", "@Override\r\n\tpublic String getBind_bank_ind() {\n\t\treturn super.getBind_bank_ind();\r\n\t}", "private String getCountryName(String name)\r\n {\r\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n String expResult = \"Kelly\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n }", "public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public void setBankName(String bankName) {\n this.bankName = bankName;\n }", "@Nullable\n public String getBankName() {\n return bankName;\n }", "public static void main(String[] args) {\n Account naimisAccount = new Account();\n// naimisAccount.name=\"Naim\";\n// naimisAccount.name=\"\";\n naimisAccount.setName(\"Naim Sulejmani\");\n\n System.out.println(naimisAccount.getName());\n\n int numri = 190;\n numri=20;\n }", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBankNameBytes() {\n java.lang.Object ref = bankName_;\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 bankName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "public String getBankAccountType();", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "public void setBank(String bank) {\r\n this.bank = bank == null ? null : bank.trim();\r\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public void setName(String n){ name=n; }", "private static String[] getBank(String addr) {\r\n\t\tint tail = Integer.valueOf(addr.substring(addr.length()-2, addr.length()), 2);\r\n\t\t\r\n\t\tswitch (tail) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn bank0;\r\n\t\t\tcase 1: \r\n\t\t\t\treturn bank1;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn bank2;\r\n\t\t\tdefault:\r\n\t\t\t\treturn bank3;\r\n\t\t}\r\n\t}", "public void setBank(String bank) {\n this.bank = bank == null ? null : bank.trim();\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public int getBankAccountNumber() {\n return bankAccountNumber;\n }", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "Databank getBank();", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public void setBankNo(java.lang.String param) {\r\n localBankNoTracker = param != null;\r\n\r\n this.localBankNo = param;\r\n }", "public com.google.protobuf.ByteString\n getBankNoBytes() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String simpleName();", "public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }", "public String getName(String str) {\n\t\tSystem.out.print(str+\"할 학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\treturn name;\n\t}", "public int getBank(byte[] bankSysex) \n {\n return -1; \n }", "public String getAccountNo();", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String getSupAcctBank() {\n return supAcctBank;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "String player1GetName(){\n return player1;\n }", "public String getJP_BankAccountType();", "public String getbal(String cname) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cbal;\n\t}", "Bank(String name, double currentAmount) {\n this.accountName = name;\n this.currentAmount = currentAmount;\n }", "String getSurname();", "String billingPartNumber();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public BankAccount1(String str) {\n\t\tthis(str, 0);\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public void setName(String n);", "public String getBankCity() {\r\n return bankCity;\r\n }", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "java.lang.String getAccountNumber();", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }" ]
[ "0.6970133", "0.6810376", "0.6232904", "0.6232904", "0.61842746", "0.61682963", "0.6034104", "0.59771127", "0.59519243", "0.59278387", "0.5926031", "0.59003633", "0.58840424", "0.58764535", "0.58764535", "0.5838734", "0.5822795", "0.58090115", "0.5774341", "0.5768829", "0.5761184", "0.5755848", "0.57432306", "0.5728741", "0.57276297", "0.5724962", "0.5720863", "0.57194215", "0.5716884", "0.5681824", "0.56517345", "0.5646869", "0.5622648", "0.56186444", "0.55944914", "0.5584045", "0.5580526", "0.5570342", "0.5551153", "0.5542283", "0.55388737", "0.55377614", "0.55360687", "0.5533582", "0.55129766", "0.5512493", "0.550926", "0.5499033", "0.5491276", "0.5491086", "0.5476581", "0.5445225", "0.5428752", "0.5428207", "0.5421363", "0.5418251", "0.5403391", "0.5396336", "0.5394812", "0.5388824", "0.5387121", "0.53867507", "0.53867507", "0.53843004", "0.5377943", "0.53740054", "0.5365775", "0.53545654", "0.5347625", "0.534621", "0.53418124", "0.5341763", "0.53384775", "0.5336379", "0.5336379", "0.5334999", "0.5314027", "0.5312039", "0.5308603", "0.5304569", "0.5290698", "0.52876115", "0.52747566", "0.526413", "0.5262253", "0.526143", "0.5256621", "0.52561414", "0.52559364", "0.5254761", "0.52542424", "0.52529335", "0.52502114", "0.52458185", "0.5244138", "0.5228651", "0.5228327", "0.5224939", "0.52232134", "0.52201307", "0.5220046" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Solution sol = new Solution(); Stack<Integer> stack = new Stack<Integer>(); stack.push(1); stack.push(5); stack.push(4); stack.push(3); stack = sol.sortStack(stack); while(!stack.isEmpty()){ System.out.println(stack.pop()); } }
{ "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
Wait for the game to start (driver presses PLAY)
@Override public void runOpMode() { mtrFL = hardwareMap.dcMotor.get("fl_drive"); mtrFR = hardwareMap.dcMotor.get("fr_drive"); mtrBL = hardwareMap.dcMotor.get("bl_drive"); mtrBR = hardwareMap.dcMotor.get("br_drive"); // Set directions for motors. mtrFL.setDirection(DcMotor.Direction.REVERSE); mtrFR.setDirection(DcMotor.Direction.FORWARD); mtrBL.setDirection(DcMotor.Direction.REVERSE); mtrBR.setDirection(DcMotor.Direction.FORWARD); //zero power behavior mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE); // Set power for all motors. mtrFL.setPower(powFL); mtrFR.setPower(powFR); mtrBL.setPower(powBL); mtrBR.setPower(powBR); // Set all motors to run with given mode mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); waitForStart(); // run until the end of the match (driver presses STOP) while (opModeIsActive()) { g1ch2 = -gamepad1.left_stick_y; g1ch3 = gamepad1.right_stick_x; g2ch2 = -gamepad2.left_stick_x; g2ch4 = -gamepad2.right_stick_x; g2left = gamepad2.left_trigger; g2right = gamepad2.right_trigger; powFL = Range.clip(g1ch2 + g1ch3, -1, 1); powFR = Range.clip(g1ch2 - g1ch3, -1, 1); powBL = Range.clip(g1ch2 + g1ch3, -1, 1); powBR = Range.clip(g1ch2 - g1ch3, -1, 1); mtrFL.setPower(powFL); mtrFR.setPower(powFR); mtrBL.setPower(powBL); mtrBR.setPower(powBR); sleep(50); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void waitStartGameString();", "public void startGame() {\n status = Status.COMPLETE;\n }", "public static void setupNewGamePlay() {\r\n\t\tSTATUS = Gamestatus.PREPARED;\r\n\t\tGameplay.getInstance().start();\r\n\t\tgui.setMenu(new GameplayMenu(), true);\r\n\t}", "public static void startGamePlay() {\r\n\t\tif(!STATUS.equals(Gamestatus.PREPARED)) {\r\n\t\t\tSystem.err.println(\"Invalid Gamestatus! Cannot start unprepared gameplay\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\tSTATUS = Gamestatus.RUNNING;\r\n\t\tclock = new GameClock();\r\n\t\tclock.start(GameTickExecutor.DEFAULT_GAMETICK);\r\n\t}", "public boolean startGame() {\n\t\tif(!ackReadyToPlay){\n\t\t\tackReadyToPlay = true;\n\t\t\tSystem.out\n\t\t\t.println(\"PPL: StartGameBean vom typ RESULT empfangen von: \" + jid);\n\t\t\treturn game.playerReadyToPlay(this);\n\t\t}\n\t\treturn false;\n\t}", "public void play() {\n\n showIntro();\n startGame();\n\n }", "void askStartGame();", "public void startGame() {\r\n this.setupGame();\r\n }", "@Test\n public void test3LoadingGameScene() throws Exception {\n\n //click on play\n Gdx.app.postRunnable(\n () -> Gdx.input.getInputProcessor().touchUp(389, 160, 0, 0));\n\n SPGameContextTestRunner.waitStage(\"Wait for Game Play Loading\", game, StonePits::isGameMenu);\n\n assertThat(game.isGameStarted()).isTrue();\n }", "public void startGameAndWait() throws InterruptedException {\n\t\tgetRenderer().startRendering();\n\t\t\n\t\tgetGameThread().startAndWait();\n\t}", "public void waitForUserClick(Player player){\n Log.d(getClass().toString(),\"wait for user click???\");\n }", "public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMessage(\"The game will start 2 minute late\");\n\t}", "public void startAndWait() throws InterruptedException {\n\t\t//Start the game thread\n\t\tstart();\n\t\t\n\t\t//Store reset counter for thread safety.\n\t\tint curReset = resetCounter;\n\t\t\n\t\t//Wait for the game thread to start.\n\t\twhile (!isRunning() && curReset == resetCounter) {\n\t\t\tThread.sleep(25L);\n\t\t}\n\t}", "public void startGame()\n {\n while (true)\n {\n WebElement start = driver.findElement(By.cssSelector(\"#index > div.btns > button\"));\n if (start.isDisplayed())\n {\n start.click();\n return;\n }\n }\n }", "public void startGame() {\n \t\ttimeGameStarted = System.nanoTime();\n \t\tisStarted = true;\n \n \t}", "private void startGame() {\r\n gameRunning = true;\r\n gameWindow.getStartButton().setText(\"Stop\");\r\n gameThread = new Thread(new GameLoopThread());\r\n gameThread.start();\r\n }", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "void onStartGameRequested();", "public void GameStart()\n\t\t{\n\t\t\tplayers_in_game++;\n\t\t}", "private void startGame() {\r\n\t\tlog(mName + \": print an opening message (something useful, it is up to you)\");\r\n\t\tnew Thread(new Host(mRightPercent)).start();\r\n\r\n\t\tfor (Contestant c : Contestant.mGame.getContestants()) {\r\n\t\t\tlog(mName + \": Welcome \" + c.getName() + \" to the game.\");\r\n\t\t\tsynchronized (c.mConvey) {\r\n\t\t\t\tc.mConvey.notify();\r\n\t\t\t}\r\n\r\n\t\t\tsynchronized (intro) {\r\n\t\t\t\twaitForSignal(intro, null);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsynchronized (Contestant.mGame) {\r\n\t\t\tContestant.mGame.setGameStarted(true);\r\n\t\t\tContestant.mGame.notify();\r\n\t\t}\r\n\t}", "public void playGame() {\n show();\n while (gameStatus) {\n if (canPut(players.get((state.getTurn())))) {\n int choice = -1;\n while (gameStatus) {\n choice = controls.get(state.getTurn()).putCard(currentCard);\n if (validInput(players.get((state.getTurn())), choice)) {\n System.out.println(players.get(state.getTurn()).getCards().get(choice).toString());\n try{Thread.sleep(1000);}catch(InterruptedException ignored){}\n break;\n }\n }\n decide(players.get(state.getTurn()), players.get(state.getTurn()).getCards().get(choice));\n }\n try{Thread.sleep(500);}catch(InterruptedException ignored){}\n checkFinish();\n if (gameStatus) {\n state.nextTurn();\n show();\n }\n }\n }", "public void play() \n { \n if (!gameLoaded)\n {\n String msg = \"The game has not been loaded\";\n System.out.println(msg);\n SystemLog.getErrorLog().writeToLog(msg);\n SystemLog.saveAllLogs();\n return;\n }\n \n // Setup Timer\n timer = new Timer();\n timer.schedule(timeHolder, 0, 1000);\n \n // Setup user input\n parser = new Parser();\n }", "public void loadGame() {\n\t\tmanager.resumeGame();\n\t}", "public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}", "public void startGame() {\n loadPlayersIntoQueueOfTurns();\n nextPlayerInTurn();\n eventListener.addEventObject(new RoundEvent(EventNamesConstants.GameStarted));\n }", "private void startGame() {\n gameCountDownTimer = getGameTimer();\n gameCountDownTimer.start();\n animateBalloonView(balloon1, true);\n animateBalloonView(balloon2, true);\n animateBalloonView(balloon3, true);\n animateBalloonView(balloon4, true);\n animateBalloonView(balloon5, true);\n currentScreenGameState = GameState.PLAYING;\n String controlButtonTitle = getResources().getString(R.string.pause_btn);\n conttroler.setText(controlButtonTitle);\n setCurrentScreenCover();\n invalidateOptionsMenu();\n }", "private void startGame() {\r\n setGrid();\r\n setSnake();\r\n newPowerUp();\r\n timer.start();\r\n }", "synchronized void resumeGame() {\n myGamePause = false;\n this.notify();\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "void gameStarted();", "void gameStarted();", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "public void play() {\n\n init();\n while (isGameNotFinished()) {\n log.info(\"*** Starting next turn\");\n for (Player player : getPlayers()) {\n executeTurn(player);\n }\n }\n log.info(\"*** Game Finished\");\n }", "void waitingForMyTurn();", "private void startGame()\n {\n if (heroPlayer != null && antagonistPlayer != null && location != null && currentPlayerName != \"null\")\n {\n gameStarted = true;\n }\n }", "public void startGame() {\r\n\t\t\r\n\t\tmultiplayerPanel.setVisible(false);\r\n\t\tif(waitingPanel != null) waitingPanel.setVisible(false);\r\n\t\tmultiplayerPanel.removeAll();\r\n\t\t\r\n\t\tgameSetupMultiplayer();\r\n\t\t\r\n\t\t\r\n\t}", "public final void playGame() {\n\t\tSystem.out.println(\"Welcome to \"+nameOfGame+\"!\");\n\t\tsetup(numberOfPlayers);\n\t\tfor(int i = 0; !isGameOver(); i = (i+1) % numberOfPlayers) {\n\t\t\ttakeTurn(i+1);\n\t\t}\n\t\tfinishGame();\n\t}", "public void startGame() {\n\t\tinitChips();\n\t\tassignAndStartInitialProjects();\n\t}", "public void firstGameCheck()\n {\n if(count > 0)\n {\n this.gameStart();\n System.out.println(\"Result:\");\n this.printGameResult();\n System.out.print(\"\\n\");\n }else\n {\n System.out.println(\"\\nGame Running Failed! \\n >>>>>>>>>>>>>> Please setting game first\\n\");\n }\n }", "private static void continueGame()\r\n\t{\r\n\t\tString name = \"\";\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tname = scan(\"Write the name of your game: \");\r\n\t\t\t\r\n\t\t\tif(GameManager.instance().players().contains(name)) break;\r\n\t\t}\r\n\t\t\r\n\t\tGameManager.instance().setCurrentPlayer(name);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tGameManager.instance().loadGame();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tSystem.out.println(\"Something happened\");\r\n\t\t}\r\n\t}", "public void play() {\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Play\");\r\n\t\t\r\n\t\t// Start game\r\n\t\tif (state == GameState.CREATED) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.PLAYING;\r\n\t\t\t\r\n\t\t\t// Start scheduling thread\r\n\t\t\tstart();\r\n\t\t}\r\n\t\t// Resume game\r\n\t\telse if (state == GameState.PAUSED || state == GameState.WAITING_FRAME) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.PLAYING;\r\n\t\t\t\r\n\t\t\t// Wake scheduling thread up\r\n\t\t\twakeUp();\r\n\t\t}\r\n\t}", "public void gameComplete() {\n if (soundToggle == true) {\n gameComplete.start();\n } // if\n }", "public boolean gameStart() {\r\n if (game == null) {\r\n board = new Board();\r\n if (ai) {\r\n Logging.log(\"Starting as AI\");\r\n player = new BaasAI(this, \"14ply.book\");\r\n } else {\r\n Logging.log(\"Starting as Human\");\r\n player = new HumanPlayer(this);\r\n }\r\n game = new Game(this);\r\n game.start();\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public void beginGame() {\r\n data.gameState = 3;\r\n data.gameStartFlag = true;\r\n setChanged();\r\n notifyObservers(data);\r\n data.gameStartFlag = false; //Set the gameStart flag to false so the relevant update lines aren't ever run a second time\r\n }", "public synchronized void startGame() {\n PreGameState preGameState = new PreGameState();\n pickTeamState = preGameState.startGame(players);\n state = State.PICK_TEAM;\n teamSelection = new HashSet<>();\n }", "public void start() {\n ArrayList<String> names = new ArrayList<>();\n game.initialize(names);\n //game.play(this.mainPkmn, this.attack);\n\n }", "public void startPlaying(){\n while(!dotComList.isEmpty()){\n // Get user input string.\n String inputGuess = helper.getUserInput(\"Enter a guess : \"); \n // Check the user input guess.\n checkUserGuess(inputGuess);\n }\n //Finish the game in case the dotComList is empty, viz all have sunk\n finishGame();\n }", "private void startGame() {\r\n\t\tthis.lobbyTimerActive = false;\r\n\t\tthis.gameStarted = true;\r\n\t\tthis.queueMessage(\"% START\");\r\n\t\tthis.dealer = new Dealer(this, this.players);\r\n\r\n\t\t// Start the dealer thread\r\n\t\tThread dealerThread = new Thread(dealer);\r\n\t\tdealerThread.start();\r\n\t}", "public void pause() {\n playing = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n Log.e(\"Error:\", \"joining thread\");\n }\n\n }", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "public void startGame() {\n\t\tif (chordImpl.getPredecessorID().compareTo(chordImpl.getID()) > 0) {\n\t\t\tGUIMessageQueue.getInstance().addMessage(\"I Start!\");\n\t\t\tshoot();\n\t\t}\n\t}", "public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }", "void startGame();", "void startGame();", "void startGame();", "public void pause() {\n playing = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n Log.e(\"Error:\", \"joining thread\");\n }\n }", "public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }", "public boolean Start(){\r\n\t\tif (this.getGameState().equals(GAMESTATE.READY_TO_START)){\r\n\t\t\tsetGameState(GAMESTATE.RUNNING);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }", "public void resume()\n {\n // Starting the thread\n gameThread = new Thread(this);\n playing = true;\n gameThread.start();\n }", "public void play() {\n\t\t\n\t\tThread\tgameThread = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\twhile(!isGameOver()) {\n\t\t\t\t\t\t\n\t\t\t\t\tif (pause) {\n\t\t\t\t\t\tsynchronized (brick) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbrick.wait();\n\t\t\t\t\t\t\t\t// pause = true;\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\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}\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (collision()) {\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboolean isDown = brick.goDown(brickgc, gameBoard);\n\t\t\t\t\t\tif(!isDown) {\n\t\t\t\t\t\t\tSystem.out.println(\"******* the brick got bottom now start new round\");\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\tgameThread.start();\n\t}", "void pauseGame() {\n myGamePause = true;\n }", "@Override\n\tpublic void pause() \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\tstate_Game=GAME_PAUSED;\n\t\t}\n\t}", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n\n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }", "public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n break;\r\n }\r\n\r\n turn++;\r\n display.displayBoard();\r\n\r\n if (turn % 2 == 1) {\r\n player1.makeMove(gamestate);\r\n } else {\r\n player2.makeMove(gamestate);\r\n }\r\n\r\n }\r\n\r\n if (finished) {\r\n\r\n display.displayBoard();\r\n\r\n switch (gamestate.getWinner()) {\r\n case Connect4GameState.RED:\r\n System.out.println(\"R wins\");\r\n break;\r\n case Connect4GameState.YELLOW:\r\n System.out.println(\"Y wins\");\r\n break;\r\n default:\r\n System.out.println(\"No one wins\");\r\n }\r\n\r\n finished = false;\r\n\r\n }\r\n\r\n if (display instanceof Connect4ConsoleDisplay) {\r\n quit = true;\r\n }\r\n\r\n }\r\n\r\n }", "private void consoleGameStart(){\n\t\tconsoleGetOptions();\n\t\t\n\t\t//diplay the board\n\t\tconsoleBoardDisplay();\n\t\tdo{\t\n\t\t\t//either player makes a move\t\t\n\t\t\tif (ttt.isPlayerTurn()) consoleBoardInput();\n\t\t\telse ttt.computeMove();\n\t\t\tconsoleBoardDisplay();\n\t\t\t\n\t\t\t//check for winning states and draw states\n\t\t\tif (ttt.checkWin()){\n\t\t\t\tif (ttt.isPlayerTurn()) System.out.println(\"Computer Wins\");\n\t\t\t\telse System.out.println(\"Player Wins\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (ttt.checkDraw()){\n\t\t\t\tSystem.out.println(\"Its a Draw Game\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while (true);\n\t}", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n gameEnded = true;\n return;\n }\n \n moveCycle();\n \n if (!game.validateGame()) \n {\n IllegalBoardPenalty();\n }\n \n String gameOverMessage = game.isGameOver();\n if (gameOverMessage != null) \n {\n //TODO: ConsoleUtils.message(gameOverMessage);\n gameEnded = true;\n }\n \n game.switchPlayer();\n }", "@Test\n public void testStart()\n {\n assertTrue(theEngine.inStartingState());\n theEngine.start();\n assertTrue(theEngine.inPlayingState()); \n }", "private void control() {\n try {\n gameThread.sleep(17);\n } catch (InterruptedException e) { }\n }", "private void startGame()\n {\n player_count = game_inter.getPlayerCount();\n if(player_count < 2 || player_count > 4)\n {\n game_inter.rejectGame(\"Illegal number of players to play: \" + player_count);\n System.exit(1);\n }\n // accept and get the order of player\n player_id = game_inter.getPlayerOrder();\n if(player_id == -1)\n {\n game_inter.rejectGame(\"Connection Error\");\n System.exit(1);\n }\n\n // organize user panels\n organizePanels();\n // if player is server, establish cards; else wait card order and adjust them\n if(player_id == 0)\n establishCards();\n else\n {\n String[] messages = game_inter.getRemoteMessage();\n placeCards(messages);\n }\n //then cycle the game\n\n Runnable r = new Runnable(){public void run(){ cycleGame(); }};\n Thread th = new Thread(r);\n th.start();\n //System.exit(0);\n }", "public void pause() {\n running = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n // Error\n }\n }", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if(currentRoom == win)\n {\n finished = true;\n }\n if (timer > 10)\n {\n currentRoom = fail;\n System.out.println(currentRoom.getLongDescription());\n finished = true;\n }\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "private void gameStart(){\n\t\tRandom randomGenerator = new Random();\n\t\tint ranNum = randomGenerator.nextInt(teamNum);\n\t\tSystem.out.println(\"The team to go first will be \" + teams[ranNum].getName());\n\t\tgameHelper(ranNum); //process all 25 questions until it's over\n\t\tfinalRound();\n\t\tprintFinalWinner();\n\t\t\n\t\t\n\t}", "public void beginTakingPlayers() {\n currentQuestionIndex = 0;\n setGameState(GameState.AWAITING_PLAYERS);\n }", "public void start() {\n // set player number\n playerNumber = clientTUI.getInt(\"set player number (2-4):\");\n while (true) {\n try {\n game = new Game();\n game.setPlayerNumber(playerNumber - 1);\n host = this.clientTUI.getString(\"server IP address:\");\n port = this.clientTUI.getInt(\"server port number:\");\n clientName = this.clientTUI.getString(\"your name:\");\n player = clientTUI.getBoolean(\"are you human (or AI): (true/false)\") ?\n new HumanPlayer(clientName) : new ComputerPlayer(clientName);\n game.join(player);\n // initialize the game\n game.init();\n while (clientName.indexOf(' ') >= 0) {\n clientName = this.clientTUI.getString(\"re-input your name without space:\");\n }\n this.createConnection();\n this.sendJoin(clientName);\n this.handleJoin();\n if (handshake) {\n run();\n } else {\n if (!this.clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n } catch (ServerUnavailableException e) {\n clientTUI.showMessage(\"A ServerUnavailableException error occurred: \" + e.getMessage());\n if (!clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n }\n clientTUI.showMessage(\"Exiting...\");\n }", "public void startGame() {\n \t\tcontroller = new GameController(gameConfig, players);\n \t\tcontroller.LOG = controller.LOG + \"#MPClient\";\n \n controller.setCurrentPlayer(firstTurnPid);\n \n \t\tsendStartGame();\n \t}", "public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}", "private void handleStartGame()\n {\n String name = nameInputLabel.getText();\n if (name != null)\n {\n gameScreen.setPlayerName(name.replaceAll(\";\", \" \").trim());\n }\n else\n {\n gameScreen.setPlayerName(\"\");\n }\n \n // Set the new screen state\n gameScreen.setState(gameScreen.getLevelSplashState());\n }", "public void playGame() {\t\t\r\n\t\tthis.printWelcomeMessage();\r\n\r\n\t\t// While the game hasn't finished yet. \r\n\t\twhile (!board.isGameWon()) {\r\n\t\t\tthis.printMoveText(\"What piece would you like to move: \", \"\\n-- PLEASE ENTER A VALID PIECE --\", true);\r\n\t\t\tthis.printSeparator();\r\n\t\t\tthis.printMoveText(\"Where would you like to move this piece: \", \"\\n-- PLEASE ENTER A VALID LOCATION --\",\r\n\t\t\t\t\tfalse);\r\n\t\t\tthis.printSeparator();\r\n\t\t}\r\n\t\tSystem.out.println(board.toString());\r\n\t\tSystem.out.println(\"Level Complete - Congratulations!\");\r\n\t}", "public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}", "public void startOpponent() {\n\t\tthis.opponent.start();\n\t\tthis.timer.start();\n\t}", "@Override\n public Boolean call() throws RemoteException {\n stateGame = applicationServerGameInterface.startMessage(playerId);\n return true;\n }", "public void startGame() {\n\n // Initialize both players\n players[0] = new Player(\"Paras\", true);\n players[1] = new Player(\"Computer\", false);\n\n // Initialize ChessBoard\n board = new ChessBoard(8);\n movesPlayed = new ArrayList<>();\n\n // Keep playing game until GameStatus is BLACK_WIN or WHITE_WIN\n while (true) {\n\n processTurn(players[0]);\n if (this.status == GameStatus.WHITE_WIN) {\n System.out.println(\"P1 win!\");\n break;\n }\n\n processTurn(players[1]);\n if (this.status == GameStatus.BLACK_WIN) {\n System.out.println(\"P2 win!\");\n break;\n }\n }\n\n }", "void pauseGame() {\n myShouldPause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public void start() {\n \tthis.currentState = this.initialState;\n \tstop=false; //indica que el juego no se ha detenido\n \tnotifyObservers(new GameEvent<S, A>(EventType.Start,null,currentState,\n \t\t\t\t\tnull,\"The game started\"));\n\n }", "private void StartGameButtonActionPerformed(java.awt.event.ActionEvent evt) {\n StartGame();\n }", "public void display_game_start_text() {\n\n fill(150, 100);\n rect(0, 0, displayW, displayH);\n\n textFont(myFont);\n textAlign(CENTER);\n textSize(displayH/30);\n fill(255);\n text(\"Get Ready!\", displayW/2, displayH/2);\n\n mySound.play_opening_song();\n\n isKeyInputAllowed = false;\n }", "public void playGame() {\n\t\t\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tplayRoundOne();\r\n\t\t}\r\n\t\t\r\n\t}", "public void sendStartGame() {\n \t\tclient.sendTCP(new StartGame());\n \t}", "public void play() { player.resume();}", "private void playGame() {\n\t\t\n\t\t/* take 1$ from the wallet to play game */\n\t\tsetWallet(-1);\n\t\t\n\t\t/* generate 3 random slots */\n\t\tslot1 = getSlot();\n\t\tslot2 = getSlot();\n\t\tslot3 = getSlot();\n\t\tslotBox1 = getSlotBox(slot1);\n\t\tslotBox2 = getSlotBox(slot2);\n\t\tslotBox3 = getSlotBox(slot3);\n\t\t\n\t\t/* draw slots on the screen and compute result*/\n\t\tadd(slotBox1, 100, 100);\n\t\tadd(slotBox2, 250, 100);\n\t\tadd(slotBox3, 400, 100);\n\t\t\n\t\tString result = gameOutcome(slot1, slot2, slot3);\n\t\ttopText = new GLabel(result);\n\t\tmidText = new GLabel(\"You now have \" + getWallet() + \"$.\");\n\t\tbotText = new GLabel(\"Click to play\");\n\t\ttopText.setFont(\"Serif-24\");\n\t\tmidText.setFont(\"Serif-24\");\n\t\tbotText.setFont(\"Serif-24\");\n\t\tadd(topText, 100, 250);\n\t\tadd(midText, 100, 280);\n\t\tadd(botText, 100, 310);\n\n\t}", "public void startClick() {\n if(!isRunning){\n startButton.setText(\"Pause\");\n isRunning = true;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.play();\n }else{\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.pause();\n }\n }" ]
[ "0.74095815", "0.7170298", "0.71533936", "0.7151532", "0.70022607", "0.69635236", "0.69466835", "0.6929733", "0.6928852", "0.69023925", "0.68949246", "0.6885425", "0.6851482", "0.6841294", "0.6832697", "0.67917955", "0.6786612", "0.6755277", "0.6754108", "0.67455614", "0.6744273", "0.67037475", "0.66954386", "0.66915125", "0.6684933", "0.666898", "0.6663868", "0.6658222", "0.66545975", "0.6640863", "0.66123855", "0.66123855", "0.66117567", "0.66092706", "0.66074914", "0.65903604", "0.6580595", "0.65803653", "0.65787", "0.6574491", "0.65728027", "0.6553475", "0.65468717", "0.654088", "0.6524995", "0.6511217", "0.64988637", "0.649751", "0.64749086", "0.64701474", "0.6468781", "0.6460609", "0.6460609", "0.64593637", "0.6458229", "0.64565617", "0.64565617", "0.64565617", "0.6450705", "0.64426965", "0.6438246", "0.6438023", "0.64352936", "0.64260834", "0.6424044", "0.6421397", "0.64158344", "0.64152724", "0.6402948", "0.6394287", "0.63918066", "0.63918066", "0.63864297", "0.6367372", "0.63653415", "0.6360167", "0.6356252", "0.6355914", "0.6350407", "0.63291574", "0.63281655", "0.6327591", "0.63268024", "0.632386", "0.63232684", "0.63166684", "0.6316097", "0.6305284", "0.63035655", "0.62990457", "0.6296474", "0.6296474", "0.62903696", "0.6290108", "0.62846714", "0.6278973", "0.62705535", "0.62702364", "0.6260923", "0.6256865", "0.6254596" ]
0.0
-1
write your code here
public static void main(String[] args) { int i = 1; //循环次数 while (i<=100 ) { System.out.println("这是我第" + i + "次鼓励:好好学习"); i++; // 循环次数+1,维持i的意义(循环次数)正确,循环不变量,不变的是意义,数值发生变化为了使意义正确 } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
model.addAttribute("searchInfo", searchInfo); String info = String.format("Search Submission: From = %s, To = %s, Date = %s", searchInfo.getFromSt(), searchInfo.getToSt(), searchInfo.getDepDate());
@PostMapping("/reservation") public String loadSeatPlan(@ModelAttribute SearchInfoEntity searchInfo, Model model) { System.out.println("|MTKTWEB Reservation POST CNTRL | "); return "reservation"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/processFormVersionThree\")\npublic String processFormVersionThree(@RequestParam(\"studentName\")String theName ,Model model )\n{\n\ttheName = theName.toUpperCase();\n\t//create the message\n\tString result = \" I love \" +theName;\n\t// add msg to model\n\tmodel.addAttribute(\"message\",result);\n\n return\"helloworld\";\n \n}", "@RequestMapping(\"/processFormVersionTwo\")\npublic String letsShoutDude(HttpServletRequest request ,Model model )\n{\n\t// read request parameter from html form\n\tString theName = request.getParameter(\"studentName\");\n\t//convert data to all caps \n\ttheName = theName.toUpperCase();\n\t//create the message\n\tString result = \"YO YO !! \" +theName;\n\t// add msg to model\n\tmodel.addAttribute(\"message\",result);\n\n return\"helloworld\";\n \n}", "@RequestMapping(\"/processFormVersion2\")\n public String letShoutDude(HttpServletRequest request, Model model)\n {\n //read the request paramether\n String theName=request.getParameter(\"studentName\");\n //convert data to uppercase\n theName=theName.toUpperCase();\n //create message\n String rezult=\"Yo \"+theName+\" !\";\n //add message to the model\n model.addAttribute(\"message\",rezult);\n return \"helloworld\";\n }", "@RequestMapping(\"/processForm\")\n public String processForm(HttpServletRequest request, Model model) {\n String studentName = request.getParameter(\"studentName\");\n String convertedName = studentName != null ? studentName.toUpperCase() : null;\n String result = \"Yo! \" + convertedName;\n model.addAttribute(\"message\", result);\n\n return \"helloWorld\";\n }", "@RequestMapping(\"/processFormVersionThree\")\n public String processFormVersion3(\n @RequestParam(\"studentName\") String theName, Model model)\n {\n theName=theName.toUpperCase();\n //create message\n String rezult=\"Hey my friend from v3 \"+theName+\" !\";\n //add message to the model\n model.addAttribute(\"message\",rezult);\n return \"helloworld\";\n }", "@RequestMapping(value = \"/search\", method = RequestMethod.GET)\n public String renderSearchPage(Model model) {\n model.addAttribute(\"nosites\", true);\n model.addAttribute(\"siteList\", new ArrayList<Site>());\n model.addAttribute(\"statisticsUtils\", new StatisticsUtils());\n return \"search/search-page\";\n }", "private void populateDentistVisitFormModel(Model model) {\n model.addAttribute(\"dentists\", this.dentistService.getAllDentists());\n model.addAttribute(\"dates\", this.availableDateTimeService.getAllVisitationDates());\n model.addAttribute(\"times\", this.availableDateTimeService.getAllVisitationTimes());\n }", "@GetMapping(\"recommendation\")\n public String displaySearch(Model model) {\n List<String> searchMethods = new ArrayList<>();\n searchMethods.add(\"By City\");\n searchMethods.add(\"Near me\");\n List<Category> categoriesFromDB = categoryDao.getAllCategory();\n List<SearchHistory> recentHistories = searchHistoryDao.getRecentSearchHistory(resultNum);\n List<Recommendation> recommendations = new ArrayList<>();\n\n model.addAttribute(\"searchMethods\", searchMethods);\n model.addAttribute(\"categoriesDB\", categoriesFromDB);\n model.addAttribute(\"searchHistories\", recentHistories);\n model.addAttribute(\"recommendations\", recommendations);\n return \"recommendation\";\n }", "@RequestMapping(\"/member\")\r\n public String search(@ModelAttribute(\"message\")MessageForm messageForm, Model model){\n String enter = messageForm.getText();\r\n Collection<Account> allData = accountService.getAccounts();\r\n List<Account> searchResult = new ArrayList<>();\r\n for (Iterator<Account> it = allData.iterator(); it.hasNext(); ) {\r\n Account a = it.next();\r\n if (stringEquals(a.getAccountID(),enter)) {\r\n searchResult.add(a);\r\n }\r\n }\r\n\r\n model.addAttribute(\"accountDetails\", searchResult);\r\n //list all account\r\n List<Account> all = new ArrayList<>();\r\n for(Iterator<Account> itor = allData.iterator();itor.hasNext();){\r\n Account acc = itor.next();\r\n all.add(acc);\r\n }\r\n model.addAttribute(\"allAccountDetails\", all);\r\n\r\n return \"member\";\r\n }", "@RequestMapping(value = \"/about\",method = RequestMethod.GET)\n public String about(Model model){\n model.addAttribute(\"name\", \"Sanjay\");\n model.addAttribute(\"date\", new Date().toString());\n System.out.println(\"Inside about handler..\");\n \n // example\n // String nameString=\"abc\";\n // nameString.toUpperCase();\n\n\n return \"about\";\n }", "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t// add student object to the model\n\t\ttheModel.addAttribute(theStudent);\n\t\t\n\t\t// add the department options to the model \n\t theModel.addAttribute(\"departmentOptions\", departmentOptions); \n\t \n\t LinkedHashMap<String, String> favoriteLanguageOptions = new LinkedHashMap<String, String>();\n\t favoriteLanguageOptions.put(\"Java\", \"Java\");\n favoriteLanguageOptions.put(\"C#\", \"C#\");\n favoriteLanguageOptions.put(\"PHP\", \"PHP\");\n favoriteLanguageOptions.put(\"Ruby\", \"Ruby\"); \n\t theModel.addAttribute(\"favoriteLanguageOptions\", favoriteLanguageOptions); \n\n\t\treturn \"student-form\";\n\t}", "@RequestMapping(\"findGoods\")\n public String findGoods(Model model){\n model.addAttribute(\"list\",goodsService.findGoods());\n return \"index\";\n }", "@RequestMapping(\"/result\")\n\tpublic String display(Model model, HttpSession session) {\n\t\tString name = (String) session.getAttribute(\"name\");\n\t\tString location = (String) session.getAttribute(\"location\");\n\t\tString language = (String) session.getAttribute(\"language\");\n\t\tString comment = (String) session.getAttribute(\"comment\");\n\t\t\n\t\t// add attributes to model\n\t\tmodel.addAttribute(\"name\", name);\n\t\tmodel.addAttribute(\"location\", location);\n\t\tmodel.addAttribute(\"language\", language);\n\t\tmodel.addAttribute(\"comment\", comment);\n\t\tif (language.equals(\"Java\")) {\n\t\t\treturn \"java.jsp\";\n\t\t} else {\n\t\treturn \"result.jsp\";\n\t\t}\n\t}", "@RequestMapping(value=\"/searchdata\", method=RequestMethod.POST)\r\n\tpublic String edithome(@ModelAttribute(\"register\") PersonalInfo register,HttpServletRequest request,\r\n\t\t\tRedirectAttributes attributes, Model map)\r\n\t{\n\t\t\t \r\n\t\t\t \r\n\t\t\tList<Object[]> skill = findContaintService.FindBySkill(register.getSearchTxt());\r\n\t\t\t \r\n\t\t if(!skill.isEmpty())\r\n\t\t {\r\n\t\t\t map.addAttribute(\"List\", skill);\r\n\t\t\treturn\"search\";\r\n\t\t\t \r\n\t\t } \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t/*for(Object[] tuple : skill) {\r\n\t\t\t String name=((String) tuple[0]);\r\n\t\t\t String skills=((String) tuple[1]);\r\n\t\t\t}*/\r\n\t\t\t \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n/*\t\t\tSystem.out.println(skill);\r\n\t\t System.out.println(skill.toString());\r\n System.out.println(skill.getClass());\t\t\t \r\n*/\t\t\t \r\n\t\t\t /* Iterator it=skill.iterator();\r\n\t\t\t while(it.hasNext())\r\n\t\t\t {\r\n\t\t\t \t System.out.println(it.next());\r\n\t\t\t \t PersonalInfo info = (PersonalInfo)it.next();\r\n\t\t\t \t System.out.println(info.getFirstName());\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\t \r\n\t\t\t return\"search\"; \r\n\t\t\t \r\n\t\t\t \r\n\t/*\t\t \r\n\t\t\tif (!list.isEmpty())\r\n\t\t\t{\r\n\t\t\t\r\n\t\t\t\tmap.addAttribute(\"List\", list);\r\n\t\t\t\treturn\"search\";\t\t\r\n\t\t\t}\r\n\t\t\telse if(!list1.isEmpty())\r\n\t\t\t{\r\n\t\t\t\t\tmap.addAttribute(\"List\", list1);\r\n\t\t\t\t\treturn\"search\";\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn \"search\";\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n*/\t\t\r\n\t\t\t \r\n\t\t\t\r\n}", "@RequestMapping(\"/search\")\n public String displayName(HttpServletRequest request,Model model) throws ParseException {\n String dates = request.getParameter(\"dateentered\");\n String male = request.getParameter(\"male\");\n String female = request.getParameter(\"female\");\n model.addAttribute(\"females\", female);\n model.addAttribute(\"males\", male);\n //DateTimeFormatter dTF = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n //DateTimeFormatter shortMonthFormat = DateTimeFormatter.ofPattern(\"dd MMM yyyy\");\n //DateTimeFormatter longFormat = DateTimeFormatter.ofPattern(\"dd MMMM yyyy\");\n //userDate = LocalDate.parse(dates,dTF);\n //DateFormat format2=new SimpleDateFormat(\"EEEE\");\n //String finalDay=format2.format(userDate);\n // System.out.println(finalDay);\n //System.out.println(male);\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date MyDate = newDateFormat.parse(dates);\n //newDateFormat.applyPattern(\"EEEE d MMM yyyy\");\n newDateFormat.applyPattern(\"EEEE\");\n String MyDates = newDateFormat.format(MyDate);\n\n newDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date MyYear = newDateFormat.parse(dates);\n newDateFormat.applyPattern(\"yyyy\");\n String MyYears = newDateFormat.format(MyYear);\n long myyears = Long.parseLong(MyYears);\n System.out.println(MyDates);\n System.out.println(MyYears);\n model.addAttribute(\"days\", dayNamesRepository.findByDays(MyDates));\n\n\n Iterable<Zodiac> zoIt = zodiacRepository.findAll();\n\n for (Zodiac zos : zoIt)\n {\n long id = zos.getId();\n\n long yearC =zos.getYearStart();\n System.out.println(zodiacRepository.findById(id));\n while ( yearC!= myyears || yearC < myyears)\n {\n yearC =yearC + 12;\n\n }\n\n if( yearC == myyears)\n {\n long ids = zos.getId();\n\n model.addAttribute(\"foundzod\", zodiacRepository.findById(ids));\n }\n if(yearC>myyears) {\n break;\n }\n }\n\n\n //Iterable<DayNames> days = dayNamesRepository.findByDays(MyDates);\n /*LocalDate dt = new LocalDate();\n dt.getDayOfWeek();*/\n //DayOfWeek dayOfWeek = dateHistory.getUserDate().getDayOfWeek();\n //DayNames dayNames = new DayNames();\n// if(female.equalsIgnoreCase(\"female\") && male.equalsIgnoreCase(\"male\")){}\n return \"showweek\";\n }", "@RequestMapping(value=\"/searchresults\", method = RequestMethod.GET)\n\tpublic String searchResults(@RequestParam(value=\"search\", required=false) String search, Model model, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"page\", required=false) Integer page, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"status\", required=false) String status, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agent\", required=false) String agent, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agentDisplay\", required=false) String agentDisplay, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateFrom\", required=false) String dateFrom, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateTo\", required=false) String dateTo) throws Exception {\n\t\tif (page==null) {\n\t\t\tpage=0;\n\t\t}\n\t\tif (search==null) {\n\t\t\tsearch=\"\";\n\t\t}\n\t\tInteger INCREMENT = 20;\n\t\tPageable pageable = PageRequest.of(page, INCREMENT);\n\t\tsearch = search.trim();\n\t\tsearch = search.replace(\"\\\"\", \"\"); //remove quotes\n\t\tsearch = search.replaceAll(\"( )+\", \" \"); //remove extra spaces\n\t\t\n\t\tRMapSearchParams params = paramsFactory.newInstance();\n\t\tparams.setSystemAgents(agent);\n\t\tRMapStatusFilter statusFilter = RMapStatusFilter.getStatusFromTerm(status);\n\t\tstatusFilter = (statusFilter==null) ? RMapStatusFilter.ALL : statusFilter;\t\n\t\tparams.setStatusCode(statusFilter);\n\t\tparams.setDateRange(new DateRange(dateFrom,dateTo));\n\t\t\n\t\tFacetAndHighlightPage<DiscoSolrDocument> indexerResults = searchService.searchDiSCOs(search, params, pageable);\n\t\t\n\t\tboolean hasExactMatch = dataDisplayService.isResourceInRMap(search, params);\n\t\t\n\t\tmodel.addAttribute(\"search\", search);\n\t\tmodel.addAttribute(\"numRecords\",indexerResults.getTotalElements());\n\t\tmodel.addAttribute(\"matches\",indexerResults.getHighlighted());\n\t\t\t\t\n\t\tmodel.addAttribute(\"statusFacets\",indexerResults.getFacetResultPage(\"disco_status\").getContent());\n\t\tmodel.addAttribute(\"agentFacets\",indexerResults.getPivot(\"agent_uri,agent_name\"));\n\t\tmodel.addAttribute(\"pageable\", pageable);\n\t\tmodel.addAttribute(\"agent\", agent);\n\t\tmodel.addAttribute(\"agentDisplay\", agentDisplay);\n\t\tmodel.addAttribute(\"dateFrom\", dateFrom);\n\t\tmodel.addAttribute(\"dateTo\", dateTo);\n\t\tmodel.addAttribute(\"status\", status);\n\t\tmodel.addAttribute(\"hasExactMatch\", hasExactMatch);\n\t\t\t\t\n\t\treturn \"searchresults\";\t\t\n\t}", "@RequestMapping(\"/showDetails{email}\")\npublic String applyLgeave(@RequestParam String email,HttpServletRequest request)\n{\n\tEmployeeRegmodel employeeobj = ergserv.findByEmailIdh(email);\n\tString name= employeeobj.getEmployee_fullname();\n\tint id=employeeobj.getEmployee_id();\n\tString emailadd=employeeobj.getEmail();\n\tString father = employeeobj.getEmployee_fname();\n\tString date = employeeobj.getEmployee_dob();\n\tlong phone = employeeobj.getEmployee_phoneno();\n\tString add = employeeobj.getEmployee_address();\n\tString password = employeeobj.getEmployee_password();\n\tSystem.out.println(name);\n\t\n\t\n\trequest.setAttribute(\"father\", father);\n\trequest.setAttribute(\"name\", name);\n\trequest.setAttribute(\"id\", id);\n\trequest.setAttribute(\"mail\", emailadd);\n\trequest.setAttribute(\"dt\", date);\n\trequest.setAttribute(\"ph\", phone);\n\trequest.setAttribute(\"address\", add);\n\trequest.setAttribute(\"pass\", password);\n\t\n\treturn \"profile.jsp\";\n\t\n}", "@RequestMapping(value=\"/search\")\r\n\tpublic String searchParameter(@ModelAttribute ProductTO productTO,BindingResult result,ModelMap model){\r\n\t\tif(result.hasErrors())\r\n\t\t\treturn \"SearchResult\";\r\n\t\telse{\r\n\t\t\tmodel.addAttribute(\"imageList\", searchService.getParticularProduct(productTO.getProductBrand(),productTO.getProductPrice(),productTO.getProductCategory()));\r\n\t\t\treturn \"SearchResult\"; \r\n\t\t}\r\n\t}", "@RequestMapping(\"/search\")\n public ModelAndView showResult(@RequestParam( value = \"search_name\") String search_name, Model model){\n Collection<Node> nodes= nodeService.findNodesByNameLike(search_name);\n //Collection<Node> nodelist = nodeService.findByName(search_name);\n if (!nodes.isEmpty()){\n model.addAttribute(\"name\",search_name);\n model.addAttribute(\"infolist\",nodes);\n if(nodes.size() == 1) {\n Node node = nodes.iterator().next();\n model.addAttribute(\"node\",node );\n model.addAttribute(\"id\",node.getId());\n return new ModelAndView(\"show_result\", \"model\", model);\n }\n else{\n model.addAttribute(\"nodelist\", nodes);\n return new ModelAndView(\"index2\",\"model\",model);\n }\n }\n else{\n return new ModelAndView(\"error\",\"model\",model);\n }\n\n }", "@RequestMapping(value=\"/spittles\",method=RequestMethod.GET) \r\n\tpublic String spittles(Model model) {\r\n\t// pierwszy parameter - spittleList to nazwa zmiennej wykorzystywanej w wywolywanym pliku jsp\r\n model.addAttribute(\"spittleList\",spittleRepository.findSpittles(Long.MAX_VALUE, 20));\r\n return \"spittles\";\r\n }", "@GetMapping(\"/\")\n public String main(Model model) {\n //set variables to be used in thymeleaf template\n model.addAttribute(\"translated\", translated);\n model.addAttribute(\"msg\", msg);\n model.addAttribute(\"source\", source);\n model.addAttribute(\"company\", company);\n model.addAttribute(\"messages\", tr.findAll());\n return \"index\"; //thymeleaf template name (index -> index.html)\n }", "void addToModel(Model model, HttpServletRequest request) {\n model.addAttribute(\"resultsPerPage\", resultsPerPage);\n model.addAttribute(\"filterJournalNames\", filterJournalNames);\n\n // TODO: split or share model assignments between mobile and desktop.\n model.addAttribute(\"filterJournals\", journalKeys);\n model.addAttribute(\"filterStartDate\", startDate == null ? null : startDate.toString());\n model.addAttribute(\"filterEndDate\", endDate == null ? null : endDate.toString());\n model.addAttribute(\"filterSubjects\", subjectList);\n model.addAttribute(\"filterArticleTypes\", articleTypes);\n model.addAttribute(\"filterAuthors\", authors);\n model.addAttribute(\"filterSections\", sections);\n\n // TODO: bind sticky form params using Spring MVC support for Freemarker. I think we have to add\n // some more dependencies to do this. See\n // http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/view.html#view-velocity\n model.addAttribute(\"selectedSortOrder\", sortOrder);\n model.addAttribute(\"selectedDateRange\", dateRange);\n model.addAttribute(\"selectedResultsPerPage\", resultsPerPage);\n model.addAttribute(\"isFiltered\", isFiltered);\n\n // We pass in the request parameters here, because they are needed by paging.ftl.\n // The normal way to get request parameters from a freemarker template is to use the\n // RequestParameters variable, but due to a bug in freemarker, this does not handle\n // multi-valued parameters correctly. See http://sourceforge.net/p/freemarker/bugs/324/\n Map<String, String[]> parameterMap = request.getParameterMap();\n model.addAttribute(\"parameterMap\", parameterMap);\n\n Map<String, String[]> clearDateFilterParams = new HashMap<>();\n clearDateFilterParams.putAll(parameterMap);\n clearDateFilterParams.remove(\"filterStartDate\");\n clearDateFilterParams.remove(\"filterEndDate\");\n model.addAttribute(\"dateClearParams\", clearDateFilterParams);\n\n Map<String, String[]> clearAllFilterParams = new HashMap<>();\n clearAllFilterParams.putAll(clearDateFilterParams);\n clearAllFilterParams.remove(\"filterJournals\");\n clearAllFilterParams.remove(\"filterSubjects\");\n clearAllFilterParams.remove(\"filterAuthors\");\n clearAllFilterParams.remove(\"filterSections\");\n clearAllFilterParams.remove(\"filterArticleTypes\");\n model.addAttribute(\"clearAllFilterParams\", clearAllFilterParams);\n\n }", "@RequestMapping(method = RequestMethod.GET)\n String read(Model model){\n Date now = new Date();\n List<Program> programList = programTableService.readOneDayByNow(now.getTime());\n model.addAttribute(\"programList\", programList);\n return \"programs/list\";\n }", "public String post(PageModel model, @BindParams SearchPhrase search_phrase, @RequestParam(\"patientId\") Integer patient) {\n System.out.println(\"phrase : \" + search_phrase.getPhrase());\n if(search_phrase.getPhrase() == \",\" ){\n search_phrase.setPhrase(\"\");\n }\n SearchAPI searchAPI = SearchAPI.getInstance();\n model.addAttribute(\"patientID_from_get\", patient); //get patient\n\n Integer length = Integer.valueOf(999999999); //amount of obs we want - all of them\n Integer start = Integer.valueOf(0);//starting from first obs.\n List<ChartListItem> items = new ArrayList<ChartListItem>();\n\n /*String synonyms = search_phrase.getPhrase();\n SynonymGroup synGroup = SynonymGroups.isSynonymContainedInGroup(search_phrase.getPhrase());\n if (!synGroup.equals(null)) {\n for (String syn : (HashSet<String>) synGroup.getSynonyms()) {\n synonyms += \" OR \" + syn;\n }\n }*/\n\n try {\n items = searcher.getDocumentList(patient, search_phrase.getPhrase(), start, length); //searching for the phrase.\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n List<ChartListItem> updatedItems = new ArrayList<ChartListItem>();\n for (ChartListItem observation : items) //loop to get full details about observations.\n {\n\n int itemObsId = -1;\n if (observation instanceof ObsItem) {\n itemObsId = ((ObsItem) observation).getObsId();\n }\n ChartListItem updatedObservation = DWRChartSearchService.getObservationDetails(itemObsId);\n updatedItems.add(updatedObservation);\n }\n searchAPI.setResults(updatedItems); //setting results to show.\n return \"redirect:chartsearch/chartsearch.page?patientId=\" + patient;\n }", "@RequestMapping(\"/results\")\n\tpublic String results(HttpSession session, Model model) {\n\t\tString name = (String) session.getAttribute( \"name\");\n\t\tString location = (String) session.getAttribute(\"location\");\n\t\tString language = (String) session.getAttribute(\"language\");\n\t\tString comments = (String) session.getAttribute(\"comments\");\n\t\t\n\t\t// pass the data to the JSP\n\t\tmodel.addAttribute(\"name\", name);\n\t\tmodel.addAttribute(\"location\", location);\n\t\tmodel.addAttribute(\"language\", language);\n\t\tmodel.addAttribute(\"comments\", comments);\n\t\t\n\t\treturn \"results.jsp\";\n\t}", "@RequestMapping(\"singer-list\")\n public String listSingers(Model model, @Param(\"search\") String search) {\n // List<Singer> singerList = singerService.listAllSingers();\n // model.addAttribute(\"singersList\", singerList);\n return viewPage(model, search, 1, \"name\", \"asc\");\n }", "@RequestMapping(value=\"SearchEngine\")\r\n\tpublic String searchParticularProduct(HttpServletRequest request,ModelMap model){\r\n\t\tString productName=request.getParameter(\"search\");\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tmodel.addAttribute(\"imageList\", searchService.getProductByName(productName));\r\n\t\treturn \"ProductName\";\r\n\t}", "public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }", "@RequestMapping(value = \"/info\", method = RequestMethod.GET)\r\n\tpublic String getInfo(Model model, HttpServletRequest request) {\r\n\t\treturn \"infosinhvien\";\r\n\t}", "@RequestMapping(value=\"/selectShoe\",method=RequestMethod.GET)\r\n\tpublic String searchForm(ModelMap model){\r\n\t\tString message=\"Image Got\";\r\n\t\tSystem.out.println(\"In controller\");\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tmodel.addAttribute(\"productTO\", productTO);\r\n\t\treturn \"SearchResult\";\r\n\t}", "@GetMapping({\"/\", \"/list\"}) // when is active true -> printing only with done=true, using stream in service\n public String list (Model model, @RequestParam (required = false) boolean isActive, @RequestParam(required = false) String searchInput) {\n if (isActive == true) {\n model.addAttribute(\"todos\", todoService.onlyActive());\n }\n else if(searchInput==null) {\n model.addAttribute(\"assignees\", assigneeService.allAssignee());\n model.addAttribute(\"todos\", todoService.allTodos());\n }\n else if (searchInput!=null) {\n model.addAttribute(\"todos\",todoService.searchBy_TITLE_DATE_DESCRIPTION(searchInput));\n }\n return \"todoList\";\n }", "@GetMapping(\"/Scheduling\")\r\n\tpublic String getScheduling(Model model) {\r\n\t\tList<Scheduling> scheduling = schedulingService.getSchedules();\r\n\t\tmodel.addAttribute(\"scheduling\", scheduling);\r\n\t\treturn \"scheduling\";\r\n\t}", "@Override\n public String toString(){\n String format = \"%1$-30s %2$-20s %3$-20s %4$-12s %5$-3s %6$-12s\";\n return String.format(format, this.title, this.stream, this.type,\n this.start_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)), \"-\", this.end_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)));}", "private void NameShow(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString find = request.getParameter(\"find\") == \"\" ? \"^^^^\" : request.getParameter(\"find\");\r\n\t\tSystem.out.println(find);\r\n\t\tint page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\tList<Notice> list = service.selectByName(find);\r\n\t\trequest.setAttribute(\"count\", list.size());\r\n\t\trequest.setAttribute(\"list\", list);\r\n\t\trequest.setAttribute(\"nameshow\", \"nameshow\");\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoGuanLi.jsp\").forward(request, resp);\r\n\t}", "@GetMapping(\"/movieDetails/{id}\")\n public String showMovieDetails(@PathVariable(\"id\") long id, Model model) {\n\n Movie m = movieRepo.findOne(id);\n\n model.addAttribute(\"movie\", m);\n // model.addAttribute(\"directorname\", directorName);\n\n return \"movieDetails\";\n }", "@RequestMapping(\"/reportStatus\")\n\tpublic String statusPage(Model model)\n\t{\n\t\tmodel.addAttribute(\"status\",new ReportStatus());\n\t\treturn \"reportStatus\";\n\t}", "protected String formatField() {\n \tif(!updated) return \"No record set.\";\n \t\n \tif(firstFieldP.getText() != null && lastFieldP.getText() != null) {\n\t \tfirstNameString = firstFieldP.getText();\n\t \tlastNameString = lastFieldP.getText();\n \t} else\t{\n \tfirstNameString = firstFieldC.getText();\n \tlastNameString = lastFieldC.getText();\n \ttribeString = tribeField.getText();\t\n \t}\n\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"<html><p align=center>\");\n \tsb.append(firstNameString);\n \tsb.append(\" \");\n \tsb.append(lastNameString);\n \tsb.append(\"<br>\");\n \tsb.append(tribeString);\n \tsb.append(\"</p></html>\");\n \t\n \treturn sb.toString(); \t\n }", "@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}", "@Action(\"get:/hello\")\n public View hello() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String currentTime = dateFormat.format(new Date());\n //view.addModel(\"currentTime\", currentTime);\n return new View(\"hello.jsp\").addModel(\"currentTime\", currentTime);\n }", "public String toString() {\n String impval = \"\";\n String urgval = \"\";\n if (important) {\n impval = \"Important\";\n } else {\n impval = \"Not Important\";\n }\n if (urgent) {\n urgval = \"Urgent\";\n } else {\n urgval = \"Not Urgent\";\n }\n return title + \", \" + assignedTo + \", \"\n + timeToComplete + \", \" + impval + \", \"\n + urgval + \", \" + status;\n }", "@RequestMapping(\"/{invoice}\")\n public String viewInvoice(@PathVariable Invoice invoice, Model model){\n model.addAttribute(\"invoice\", invoice);\n return \"invoice/invoice\";\n }", "@RequestMapping(\"/applyForLeave{email}\")\npublic String applyLeave(@RequestParam String email,HttpServletRequest request)\n{\n\tEmployeeRegmodel employeeobj = ergserv.findByEmailId(email);\n\tString name= employeeobj.getEmployee_fullname();\n\tint id=employeeobj.getEmployee_id();\n\tString emailadd=employeeobj.getEmail();\n\tint leavecount = employeeobj.getLeaveCount();\n\t\n\trequest.setAttribute(\"name\", name);\n\trequest.setAttribute(\"id\", id);\n\trequest.setAttribute(\"mail\", emailadd);\n\trequest.setAttribute(\"leavecount\", leavecount);\n\tSystem.out.println(leavecount+\"\"+email);\n\treturn \"ApplyForLeave.jsp\";\n}", "@GetMapping(\"new\")\n// public String showTaskForm(String email, Model model, HttpSession session) {\n public String showTaskForm(Model model) {\n model.addAttribute(\"task\", new Task());\n model.addAttribute(\"projects\", projectService.findAll());\n model.addAttribute(\"users\", userService.findAll());\n\n return NEW_TASK_PAGE;\n }", "@RequestMapping(method = RequestMethod.GET)\n\tpublic String get(@ModelAttribute(\"search\") Search search) {\n\t\treturn \"searchForm\";\n\t}", "@GetMapping(\"/\")\n public String getIndex(Model model, @ModelAttribute Appointment appointment){\n model.addAttribute(\"aList\", da.getAppointment());\n //Send empty object to index.html\n model.addAttribute(\"appointment\", new Appointment());\n return \"index\";\n }", "@Override \npublic String toString() { \n return String.format(\"%s: %s%n%s: $%,.2f; %s: %.2f\", \n \"commission nurse\", super.toString(), \n \"gross sales\", getGrossSales(), \n \"commission rate\", getCommissionRate()); \n}", "@RequestMapping(method = RequestMethod.GET)\n protected String doGet(Model model, @PageableDefault(page = 0, value = 10) Pageable pageable,\n @RequestParam(defaultValue = \"\", required = false, value = \"search\") String search) {\n Page<Computer> page = computerDBService.createPage(search, pageable);\n\n Locale locale = LocaleContextHolder.getLocale();\n String format = messageSource.getMessage(\"dateFormat\", null, locale);\n logger.info(\"format : \" + format);\n \n PageImpl<ComputerDto> pageReturned = new PageImpl<ComputerDto>(computerDtoMapper.toDto(\n page.getContent(), format), pageable, page.getTotalElements());\n\n if (page.getSort() != null) {\n model.addAttribute(\"sort\", SortBy.getSortBy(page.getSort()).getSort());\n model.addAttribute(\"order\", SortBy.getSortBy(page.getSort()).getOrder());\n }\n model.addAttribute(\"search\", search);\n model.addAttribute(\"page\", pageReturned);\n\n logger.info(\"Page created with sucess\");\n return \"dashboard\";\n }", "@ResponseBody\n\t@RequestMapping(\"/showFullNameLikeTom\")\n\tpublic String showFullNameLikeTom() {\n\n\t\tString html = \"\";\n//\t\tfor (Employee emp : employees) {\n//\t\t\thtml += emp + \"<br>\";\n//\t\t}\n\n\t\treturn html;\n\t}", "@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }", "@RequestMapping(\"/productlist/Productdetails/{id}\")\n\n public String Productdetails(@PathVariable String id, Model model) throws IOException{\n\n Product bike = productDao.getProductById(id);\n model.addAttribute(bike);\n\n\n return \"productdetails\";\n }", "@GetMapping(\"/\")\n public String index(Model model) {\n model.addAttribute(\"URLInfo\", listURLService.findALL());\n return \"index\";\n }", "public String toDisplay(){\n\t\treturn String.format(\"%s | %c | %.2f | %.2f\",name ,gender ,taxableIncome ,taxAmount);\n\t}", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "@RequestMapping(\"/list\")\n public String showMyMainSensorPage(ModelMap theModel) {\n\n List<Sensor> theSensor = sensorService.findAll();\n\n theModel.addAttribute(\"theSensors\", theSensor);\n\n return \"sensor/viewUserSensor\";\n\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n\tpublic String cout(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\tDate date = new Date();\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);\n\n\t\tString formattedDate = dateFormat.format(date);\n\t\n\t\tmodel.addAttribute(\"serverTime\", formattedDate);\n\t\n\t\treturn \"bootstrap/bootstrap\";\n\t}", "public String searchResult(){\n return getText(first_product_title);\n }", "@RequestMapping(\"findUser\")\r\n public String getSearch(ModelMap model) {\r\n\r\n List<User> userList = null;\r\n\r\n model.addAttribute(\"users\", userList);\r\n\r\n return \"search\";\r\n }", "@Override\n public String toString() {\n System.out.print(\"the Reserve id:\"+getId()+\"\\t\\t\\t\");\n System.out.print(\"the Reserve Date :\"+getReservrDate()+\"\\t\\t\");\n System.out.print(\"the Reserve Price:\"+getPrice()+\"\\t\\t\\n\\n\");\n System.out.println(\"*******************************NEW RESERVATION*********************************\\n\");\n return null;\n // return \"\" + patintInfo + \", doctorInfo=\" + doctorInfo + \", id=\" + id + \", reserveDate=\" + reserveDate + \", price=\" + price + '}';\n }", "@RequestMapping(\"/listjobs\")\n public String listJobs(Model model)\n {\n model.addAttribute(\"alljobs\",jobs.findAll());\n return \"listjobs\";\n }", "@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}", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "@RequestMapping(value=\"/reservations/form\", method=RequestMethod.GET)\r\n\tpublic String getAdminReservationForm(Model model) {\r\n\t\tmodel.addAttribute(\"onDate\", new Reservation());\r\n\t\treturn \"reservationsForm\";\r\n\t}", "@Override\n public String getServletInfo() {\n return \"Create Blood Donation Reccord using JSP\";\n }", "@PostMapping(\"/searchMusician\")\n public String searchMusician(@RequestParam(\"search\") String search,\n Model model, Principal principal){\n User user = userRepo.findByUsername(principal.getName());\n model.addAttribute(\"user\", user);\n\n CompanyProfile companyProfile = compRepo.findByUser(user);\n model.addAttribute(\"companyProfile\", companyProfile);\n\n List<Instruments> instrumentEnums = Arrays.asList(Instruments.values());\n model.addAttribute(\"instruments\", instrumentEnums);\n\n Iterable<MusicianProfile> searchMusicians = musicianRepo.findByFirstNameContainingIgnoreCaseOrLastNameContainingIgnoreCaseOrLocationContainingIgnoreCase(search, search, search);\n model.addAttribute(\"musician\", searchMusicians);\n return \"Search/search\";\n\n }", "@PostMapping(\"escaped\")\n public String escapedQuery(@ModelAttribute Customer customer, Model model) {\n model.addAttribute(\"customers\", customerService.escapedQuery(customer.getName()));\n\n return \"result\";\n }", "@RequestMapping(method = RequestMethod.GET)\r\n\tpublic String logined(Model model) {\n\t\tList<ThongBao> tkbs = tbService.findAll();\r\n\t\tmodel.addAttribute(\"tblist\", tkbs);\r\n\t\treturn \"indexsv\";\r\n\t}", "@RequestMapping(value=\"ProductDetail/{id}\",method=RequestMethod.GET)\r\n\tpublic String searchId(@PathVariable(\"id\")String id,ModelMap model){\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tproductTO=searchService.getProductById(id);\r\n\t\tmodel.addAttribute(\"productTO\", productTO);\r\n\t\treturn \"ProductDetail\";\r\n\t}", "@RequestMapping(\"/diseases\")\n public String getDiseases(Model model){\n\n model.addAttribute(\"diseases\", diseaseRepository.findAll());\n //This is going to be the view name.\n return \"diseases/list\";\n }", "@RequestMapping(value = {\"/searcho\"})\r\n public String searchOrder (Model model, HttpServletRequest request, HttpSession session) {\n String search = request.getParameter(\"searcho\");\r\n List<OrrrderEntity> lsto = orrrderService.findOrder(search);\r\n// List<Double> lsd = new ArrayList<>();\r\n// for (OrrrderEntity orrrderEntity : lsto) {\r\n// double i = 0;\r\n// List<OrderDetailEntity> lstD = orderDetailService.find(orrrderEntity.getId());\r\n// for (OrderDetailEntity orderDetailEntity : lstD) {\r\n// i = i + orderDetailEntity.getTotal();\r\n// } \r\n// lsd.add(i);\r\n// }\r\n// if (lst != null && lst.size() > 0) {\r\n// model.addAttribute(\"lstU\", lsto);\r\n// session.removeAttribute(\"lstUU\");\r\n// } else {\r\n// model.addAttribute(\"lstU\", orrrderService.findOrder(search));\r\n// }\r\n// \r\n model.addAttribute(\"lstU\", lsto);\r\n model.addAttribute(\"first\", session.getAttribute(\"user\"));\r\n return \"tableu\";\r\n }", "public String getServletInfo() {\n\t\treturn \"Liste les places disponibles pour une représentation identifié par le numéro du spectacle et la date de la représentation.\";\n\t}", "public String toString(){\n return ( \"\\nName: \" + name \n + \"\\nPhone Number: \" + phoneNumber\n + \"\\nAge: \" + age \n + \"\\nWeight: \" + weight );\n }", "@RequestMapping(value = \"/prescription/{id}\")\n public String prescriptionDetection(@PathVariable(\"id\") Integer visitId,Model model) {\n // Getting List of All diagnosis in System \n List<Prescription> signedPrescriptions=prescriptionService.getSignedPrescriptions();\n List<Prescription> unSignedPrescriptions=prescriptionService.getUnSignedPrescriptions();\n //// Model Attributes \n model.addAttribute(\"signedPrescriptions\", signedPrescriptions);\n model.addAttribute(\"unSignedPrescriptions\", unSignedPrescriptions);\n model.addAttribute(\"visitId\",visitId);\n // return View\n return PACKAGE_ROOT+\"prescriptions\";\n }", "@GetMapping(\"/\")\n public String showIndex(Model model)\n {\n String myMessage = \"Welcome to Robo Resume!\";\n model.addAttribute(\"welcomemessage\",myMessage);\n return \"index\";\n }", "@RequestMapping(value = \"\")\n public String index (Model model){\n model.addAttribute(\"priorities\", priorityDao.findAll());\n model.addAttribute(\"title\", \"Priorities\");\n\n return \"priority/index\";\n }", "@RequestMapping(\"/queryMyCart\")\n public String queryMyCart(HttpSession httpSession, Model model) {\n if(httpSession.getAttribute(\"customer\")!=null){\n Integer customerId = ((Customer) httpSession.getAttribute(\"customer\")).getCustomerId();\n List<Contact> contactList = contactService.queryAllContact(customerId);\n System.out.println(contactList);\n //model.addAttribute(\"customer\", customer);\n model.addAttribute(\"contactList\", contactList);\n }\n\n return \"myCart\";\n }", "@RequestMapping(\"/new\")\n public String newStudent(ModelMap view) {\n Student student = new Student();\n view.addAttribute(\"student\", student);\n view.addAttribute(\"listurl\", listurl);\n return(\"newstudent\");\n }", "public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}", "@RequestMapping(\"processForm\")\n\tpublic String processStudentForm(@ModelAttribute(\"student\") Student theStudent ) {\n\t\t\n\t\t//log input data to console\n\t\t//System.out.println(\"Last Name : \"+ theStudent.getFirstName());\n\t\t\n\t\treturn \"student-confirmation\";\n\t}", "@GetMapping(\"/search\")\r\n\tpublic String searchCustomers(@RequestParam(\"theSearchName\") String theSearchName,\r\n\t\t\t\t\t\t\t\t\tModel theModel) {\n\t\tList<Customer> theCustomers = customerService.searchCustomers(theSearchName);\r\n\t\t\t\t\r\n\t\t// add the customers to the model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\r\n\t\treturn \"list-customers\";\t\t\r\n\t}", "@GetMapping(value = \"/showForm\")\n\tpublic String showForm(Model model) {\n\t\tmodel.addAttribute(\"person\", new Person());\n\n\t\t// In order to test 500 internal server error\n\t\t// int g = 7/0;\n\n\t\treturn FORM_VIEW;\n\t}", "@RequestMapping(value = \"/toGoodsDetailSearch.act\")\n\tpublic ModelAndView toSave(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tModelAndView mv = new ModelAndView();\n\t\t// mv.addObject(\"seqId\", seqId);\n\t\tmv.setViewName(\"/kqdsFront/ck/search/goods_detail_search.jsp\");\n\t\treturn mv;\n\t}", "@RequestMapping(value = {\"/displaySightings\"},\n method = RequestMethod.GET)\n public String displaySighting(Model model) {\n List<Location> locationList = locationDao.getAllLocations();\n List<Archetype> archetypeList = archetypeDao.getAllArchetypes();\n List<ArchetypeSighting> tableList = new ArrayList<>();\n\n for (Archetype arch : archetypeList) {\n for (Sighting sighting : arch.getArchetypeSightings()) {\n tableList.add(new ArchetypeSighting(arch.getArchetypeId(), arch.getArchetypeName(), sighting));\n }\n }\n\n model.addAttribute(\"locationList\", locationList);\n model.addAttribute(\"archetypeList\", archetypeList);\n model.addAttribute(\"tableList\", tableList);\n\n return \"sighting\";\n }", "@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }", "@Override\n public String toString(){\n return (\"firstName:\"+getFirstName()+\" lastName:\"+getLastName()+\" Social Insurance Number:\"+getSocialInsuranceNumber());\n }", "@RequestMapping(\"/register\")\n public String inputFamilyInfo(Model model) {\n return \"family/familyRegister\";\n }", "private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}", "@GetMapping(\"/showNewTeamForm\")\n public String showNewTeamForm(Model model) {\n\n Page<Employee> page = employeeService.findPaginated(1, 5,\"firstName\", \"asc\");\n List<Employee> listEmployees = page.getContent();\n\n Team team= new Team();\n model.addAttribute(\"team\", team);\n model.addAttribute(\"listEmployees\", listEmployees);\n model.addAttribute(\"listEmployeesFromTeam\", team.getEmployeeList());\n return \"new_team\";\n }", "public String getInfo(){\n return \" name: \" + this.name;\n }", "@RequestMapping(\"/inbox\")\n public String listInbox(Model model) {\n model.addAttribute(\"posts\", educationFeedbackService.listInbox());\n return \"admin/education/listInbox\";\n }", "public static String display(AssessorDetails item) {\n if (item.getId() == null){\n return item.getValue();\n }\n return item.getId() + \": \" + item.getValue();\n }", "@GetMapping(value = \"/utilisateur/inscription\")\n public String inscriptionForm(Model model){\n Utilisateur utilisateur=new Utilisateur();\n logger.info(\"Un visiteur veut accéder au formulaire d'inscription\");\n model.addAttribute(\"utilisateur\",utilisateur);\n return \"inscription\";\n }", "@GetMapping(\"/fetchProfile\")\n public String fetchProfile(HttpServletRequest request,Model model){\n Map<String, String[]> userNameParam = request.getParameterMap();\n String userName[] = userNameParam.get(\"userName\");\n String searchParam = userName[0];\n ApplicationUser userProfileDetails = sportyShoesService.fetchProfile(searchParam);\n model.addAttribute(\"adminId\", userProfileDetails.getAdminId());\n model.addAttribute(\"adminFName\", userProfileDetails.getAdminFName());\n model.addAttribute(\"adminLName\", userProfileDetails.getAdminLName());\n model.addAttribute(\"role\", userProfileDetails.getRole());\n model.addAttribute(\"username\", userProfileDetails.getUsername());\n model.addAttribute(\"password\", userProfileDetails.getPassword());\n model.addAttribute(\"email\", userProfileDetails.getEmail());\n model.addAttribute(\"phone\", userProfileDetails.getPhone());\n model.addAttribute(\"appName\", appName);\n return \"profileDetails\";\n }", "@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(12);\n sb.append('(');\n sb.append(this.parameter.toString());\n sb.append(\")%\");\n return sb.toString();\n }", "@RequestMapping(value = { \"/list\" }, method = RequestMethod.GET)\r\n public String listEmployees(ModelMap model) {\r\n \r\n List<Employee> employees = service.findAllEmployees();\r\n model.addAttribute(\"employees\", employees);\r\n return \"allemployees\";\r\n }", "@GetMapping(\"/OrderShoe\")\n public String OrderShoe(Model model){\n model.addAttribute(\"appName\", appName);\n return \"orderShoe\";\n }", "@RequestMapping(value = \"/createentry\", method = RequestMethod.GET)\n\tpublic String navigateCreateEntry(Model model){\n\t\tmodel.addAttribute(\"entry\", new Entry());\t\n\t\treturn \"entry/createEntry\";\n\t}", "@RequestMapping(value = \"/enrollment.html\", method = RequestMethod.GET)\n public String displayForm(Model model) {\n model.addAttribute(\"fixture\", new FixtureModel());\n return \"fixtures/enrollment\";\n }", "public String toString() {\n\t // added the Address here\n return String.format(\"%s, %s Hired: %s Birthday: %s \\n Address: %s\", \n lastName, firstName, hireDate, birthDate, Address);\n }", "@RequestMapping(\"items/search/itemtag\")\n public String searchByItemTags(HttpServletRequest request, Model model)\n {\n String searchString = request.getParameter(\"search\");\n model.addAttribute(\"search\", searchString);\n model.addAttribute(\"items\",\n items.findAllByItemTagsContainingIgnoreCase(searchString));\n return \"allitems\";\n }", "@Override\n\tpublic String toString(){\n\t\treturn \"START=\"+startDate+\", END=\"+endDate+\",\"+label+\",\"+notes+\",\"+locationAddress+\",\"+startPlaceAddress+\",\"+actStatus.name();\n\t}" ]
[ "0.6276714", "0.60905135", "0.5939515", "0.5818102", "0.57878816", "0.57200766", "0.5692854", "0.5679516", "0.5620596", "0.5580299", "0.5503365", "0.54993093", "0.54546434", "0.5452344", "0.54512453", "0.5423186", "0.54216504", "0.54080313", "0.53986007", "0.5377365", "0.53665936", "0.5333155", "0.52801293", "0.5266574", "0.5255486", "0.52426594", "0.5195636", "0.5195527", "0.51935023", "0.51873136", "0.5182329", "0.5158597", "0.51562196", "0.51373017", "0.5121635", "0.5117483", "0.51129574", "0.510133", "0.50971186", "0.5092809", "0.508947", "0.50740886", "0.5068754", "0.506756", "0.5063371", "0.5059796", "0.50507", "0.5038083", "0.5036848", "0.5036766", "0.5034409", "0.5030579", "0.5025234", "0.5024884", "0.50225717", "0.501798", "0.50147897", "0.5005763", "0.5003791", "0.49957472", "0.4990544", "0.4980957", "0.49609444", "0.4958286", "0.4956625", "0.49497515", "0.49459058", "0.49409625", "0.49408942", "0.49407777", "0.49358496", "0.49321407", "0.49294034", "0.4925204", "0.49208266", "0.4914895", "0.4914027", "0.4912462", "0.4912035", "0.4911419", "0.4909567", "0.49088135", "0.4906805", "0.4903056", "0.48991632", "0.48974732", "0.48950607", "0.4893648", "0.48885196", "0.48875868", "0.4887372", "0.48841956", "0.48840556", "0.4884008", "0.48833546", "0.4883177", "0.48827994", "0.48784262", "0.48754847", "0.4869739" ]
0.5008171
57
TODO Autogenerated method stub
@Override public int getPINByURL(String URL) { int PIN = 0; try{ PreparedStatement stmnt = connection.prepareStatement("SELECT PIN FROM TBL_PIN WHERE CAST(URL AS VARCHAR(128)) = ?"); stmnt.setString(1, URL); ResultSet res = stmnt.executeQuery(); logger.info("The result set size is "+res.getFetchSize()); while(res.next()){ PIN = res.getInt("PIN"); logger.info("PIN: "+ PIN); } res.close(); stmnt.close(); }catch(Exception e){ System.out.println("Caught Exception"); e.printStackTrace(); } return PIN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void addPIN(PINDTO pin) { try{ PreparedStatement stmnt = connection.prepareStatement("INSERT INTO TBL_PIN(PIN, URL) VALUES(?, ?)"); stmnt.setInt(1, pin.getPIN()); stmnt.setString(2, pin.getURL()); int n = stmnt.executeUpdate(); if (n != 1)//remember to catch the exceptions throw new DataAccessException("Did not insert one row into database"); } catch (SQLException e) { throw new DataAccessException("Unable to execute query; " + e.getMessage(), e); } finally { if (connection != null) { try { connection.close();//and close the connections etc } catch (SQLException e1) { //if not close properly e1.printStackTrace(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void deleteByPIN(int PIN) { try { PreparedStatement stmnt = connection.prepareStatement("DELETE FROM TBL_PIN WHERE PIN = ?"); stmnt.setInt(1, PIN); int n = stmnt.executeUpdate(); // if (n != 1)//remember to catch the exceptions // throw new DataAccessException("Did not delete one row from database"); } catch (SQLException e) { throw new DataAccessException("Unable to execute query; " + e.getMessage(), e); } finally { if (connection != null) { try { connection.close();//and close the connections etc } catch (SQLException e1) { //if not close properly e1.printStackTrace(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Sets the precomputed proposals.
public void setProposals(ICompletionProposal[] preComputedProposals) { fPreComputedProposals = preComputedProposals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortProposals() {\n\n\t}", "private void recomputeProposals(ContentProposalList newProposalList) {\n\t\tif (newProposalList == null)\n\t\t\tnewProposalList = getEmptyProposalArray();\n\t\tif (newProposalList.fullLength() == 0 && newProposalList.allResponded()) {\n\t\t\tthis.proposalList = newProposalList;\n\t\t\tclose();\n\t\t} else {\n\t\t\tsetProposals(newProposalList);\n\t\t}\n\t}", "private void setProposals(ContentProposalList newProposalList) {\n\t\tif (newProposalList == null) {\n\t\t\tnewProposalList = getEmptyProposalArray();\n\t\t}\n\t\tthis.proposalList = newProposalList;\n\t\tif (!isValid())\n\t\t\treturn;\n\n\t\t// Reset item width\n\t\tmaxItemWidth = 0;\n\t\tnonSelectableItems.clear();\n\t\tint proposalIndex = proposalList.getTopProposalList().size();\n\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\tnonSelectableItems.add(proposalIndex);\n\t\t\tproposalIndex += proposalList.getProposals(provider).length + 1;\n\t\t}\n\n\t\t// If there is a table\n\t\tif (isValid()) {\n\t\t\tif (USE_VIRTUAL) {\n\t\t\t\t// Set and clear the virtual table. Data will be\n\t\t\t\t// provided in the SWT.SetData event handler.\n\t\t\t\tproposalTable.setItemCount(getTableLength());\n\t\t\t\tproposalTable.clearAll();\n\t\t\t\tinitializeTextLayouts();\n\t\t\t} else {\n\t\t\t\t// Populate the table manually\n\t\t\t\tproposalTable.setRedraw(false);\n\t\t\t\tproposalTable.setItemCount(getTableLength());\n\t\t\t\tTableItem[] items = proposalTable.getItems();\n\n\t\t\t\tint index = 0;\n\t\t\t\tfor (Proposal proposal : newProposalList.getTopProposalList()) {\n\t\t\t\t\tTableItem item = items[index];\n\t\t\t\t\titem.setText(\" \" + getString(proposal));\n\t\t\t\t\titem.setImage(getImage(proposal, false));\n\t\t\t\t\titem.setData(proposal);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tfor (String provider : newProposalList.getProviderList()) {\n\t\t\t\t\tTableItem item = items[index];\n\t\t\t\t\tint count = newProposalList.getCount(provider);\n\t\t\t\t\tString text = provider + \" (\" + count + \" matching items)\";\n\t\t\t\t\titem.setText(text);\n\t\t\t\t\t// Data == null => not selectable\n\t\t\t\t\titem.setData(null);\n\n\t\t\t\t\tDisplay display = Display.getCurrent();\n\t\t\t\t\tColor color = display.getSystemColor(SWT.COLOR_GRAY);\n\t\t\t\t\tFontData fontData = item.getFont().getFontData()[0];\n\t\t\t\t\tFont font = new Font(display, new FontData(\n\t\t\t\t\t\t\tfontData.getName(), fontData.getHeight(),\n\t\t\t\t\t\t\tSWT.ITALIC | SWT.BOLD));\n\t\t\t\t\titem.setBackground(color);\n\t\t\t\t\titem.setFont(font);\n\n\t\t\t\t\tindex++;\n\t\t\t\t\tfor (Proposal proposal : newProposalList\n\t\t\t\t\t\t\t.getProposals(provider)) {\n\t\t\t\t\t\titem.setText(\" \" + getString(proposal));\n\t\t\t\t\t\titem.setImage(getImage(proposal, false));\n\t\t\t\t\t\titem.setData(proposal);\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tproposalTable.setRedraw(true);\n\t\t\t}\n\t\t\tif (infoPopup != null) {\n\t\t\t\tinfoPopup.close();\n\t\t\t}\n\t\t}\n\t\tfooter.setText(\"\");\n\t\t\n\t\tif (handleTopProposals) {\n\t\t\tadapter.handleTopProposals(newProposalList);\n\t\t\t// First to respond win otherwise if all reponded,\n\t\t\t// we stop handle\n\t\t\tif (adapter.hasSelectedTopProposal()\n\t\t\t\t\t|| newProposalList.allResponded()) {\n\t\t\t\thandleTopProposals = false;\n\t\t\t}\n\t\t}\n\t\t// Select the top proposal that was displayed, if any\n\t\tproposalTable.deselectAll();\n\t\tif (adapter.hasSelectedTopProposal()) {\n\t\t\tint index = proposalList.getTopProposalList().indexOf(\n\t\t\t\t\tadapter.getSelectedTopProposal());\n\t\t\tif (index >= 0)\n\t\t\t\tselectProposal(index);\n\t\t}\n\t\tif (AutoCompleteUIPlugin.isRAP())\n\t\t\tadjustTableBounds();\n\t}", "public static Map<Integer, Proposal> getProposals() { return proposals; }", "public java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> process(java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> proposals) {\n\t\treturn proposals;\r\n\t}", "public synchronized final void setPreprocessingParams(Vector poParams) {\n setParams(poParams, PREPROCESSING);\n }", "public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,\n\t\t\tint documentOffset) {\n\t\tboolean dotActivation = false;\n\n\t\tVector<ICompletionProposal> result = new Vector<ICompletionProposal>();\n\t\t// ICompletionProposal[] result= new\n\t\t// ICompletionProposal[fgProposals.length];\n\t\tIDocument doc = viewer.getDocument();\n\n\t\tFindReplaceDocumentAdapter frd = new FindReplaceDocumentAdapter(doc);\n\n\t\tint pos = documentOffset;\n\t\tdo {\n\t\t\tpos--;\n\t\t} while (pos >= 0 && !Character.isWhitespace(frd.charAt(pos)));\n\t\tpos++;\n\n\t\tString stp = \"\";\n\t\tif (pos >= 0)\n\t\t\tstp = frd.subSequence(pos, documentOffset).toString();\n\n\t\t// See if we have . activation\n\t\tif (frd.charAt(documentOffset - 1) == '.') {\n\t\t\tString props[] = dotActivation(stp, result);\n\t\t\tfor (int i = 0; i < props.length; i++) {\n\t\t\t\tString val = props[i];\n\t\t\t\tIContextInformation info = new ContextInformation(\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tMessageFormat\n\t\t\t\t\t\t\t\t.format(\n\t\t\t\t\t\t\t\t\t\t\"CompletionProcessor.Proposal.ContextInfo.pattern\", new Object[] { val })); //$NON-NLS-1$\n\t\t\t\t// result.add(new CompletionProposal(fgProposals[i],\n\t\t\t\t// documentOffset, 0, fgProposals[i].length(), null,\n\t\t\t\t// fgProposals[i], info,\n\t\t\t\t// MessageFormat.format(\"CompletionProcessor.Proposal.hoverinfo.pattern\",\n\t\t\t\t// new Object[] { fgProposals[i]}))); //$NON-NLS-1$\n\t\t\t\tresult.add(new CompletionProposal(val, documentOffset, 0,\n\t\t\t\t\t\tval.length(), null, val, null, null)); //$NON-NLS-1$\n\t\t\t}\n\n\t\t} else {\n\t\t\t// System.out.println(\"String part:\" + stp);\n\t\t\tSet<String> comps = fgProposals.keySet();\n\t\t\tIterator<String> compitr = comps.iterator();\n\t\t\twhile (compitr.hasNext()) {\n\t\t\t\t// CompletionToken comp = comps.nextElement();\n\t\t\t\t// String val = comp.getKey();\n\t\t\t\tString val = compitr.next();\n\t\t\t\t// If there are too many matches (and it becomes annoying) then\n\t\t\t\t// remove the two calls to toLowerCase() below\n\t\t\t\t// if (val.toLowerCase().startsWith(stp.toLowerCase())) {\n\t\t\t\tif (val.startsWith(stp)) {\n\n\t\t\t\t\tString rep = val.substring(stp.length());\n\t\t\t\t\tIContextInformation info = new ContextInformation(\n\t\t\t\t\t\t\tval,\n\t\t\t\t\t\t\tMessageFormat\n\t\t\t\t\t\t\t\t\t.format(\n\t\t\t\t\t\t\t\t\t\t\t\"CompletionProcessor.Proposal.ContextInfo.pattern\", new Object[] { val })); //$NON-NLS-1$\n\t\t\t\t\t// result.add(new CompletionProposal(fgProposals[i],\n\t\t\t\t\t// documentOffset, 0, fgProposals[i].length(), null,\n\t\t\t\t\t// fgProposals[i], info,\n\t\t\t\t\t// MessageFormat.format(\"CompletionProcessor.Proposal.hoverinfo.pattern\",\n\t\t\t\t\t// new Object[] { fgProposals[i]}))); //$NON-NLS-1$\n\t\t\t\t\t\n\t\t\t\t\t// Do not show proposals with . if the stump does not have a .\n\t\t\t\t\tif(!((stp.indexOf('.') == -1) && val.indexOf('.') != -1)) {\n\t\t\t\t\t\tresult.add(new CompletionProposal(rep, documentOffset, 0,\n\t\t\t\t\t\t\t\trep.length(), null, val, null, null)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// adding an empty string to ensure that the completion dialog appears\n\t\tif (result.size() == 0) {\n\t\t\tresult.add(new CompletionProposal(\n\t\t\t\t\t\"\", documentOffset, 0, 0, null, \"\", null, null)); //$NON-NLS-1$\n\t\t}\n\n\t\treturn result.toArray(new ICompletionProposal[result.size()]);\n\t}", "private void asyncRecomputeProposals() {\n\t\tfooter.setText(\"Searching...\");\n\t\tif (isValid()) {\n\t\t\tsynchronized (uniqueId) {\n\t\t\t\tif (uniqueId == Long.MAX_VALUE)\n\t\t\t\t\tuniqueId = Long.MIN_VALUE;\n\t\t\t\tuniqueId++;\n\t\t\t}\n\t\t\tfinal Long currentId = new Long(uniqueId);\n\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tadapter.getProposals(new IContentProposalSearchHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleResult(\n\t\t\t\t\t\t\t\tfinal ContentProposalList proposalList) {\n\t\t\t\t\t\t\tif (control != null && !control.isDisposed()) {\n\t\t\t\t\t\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tif (currentId.equals(uniqueId))\n\t\t\t\t\t\t\t\t\t\t\trecomputeProposals(proposalList);\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}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleTooltips(List<TooltipData> tooltips) {\n\t\t\t\t\t\t\tadapter.handleTooltipData(tooltips);\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}", "public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset) {\n\t\tDatabaseNode activeDatabaseNode = DatabaseView.getActiveDatabase();\n\t\tif (activeDatabaseNode == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString[] proposals = null;\n\t\tif (activeDatabaseNode != connectionModelCache) {\n\t\t\ttableNamesCache = getModelNames(activeDatabaseNode.getChildren());\n\t\t\tproposals = tableNamesCache;\n\t\t} else {\n\t\t\tdatabaseNamesCache = getModelNames(activeDatabaseNode.getChildren());\n\t\t\tproposals = databaseNamesCache;\n\t\t}\n\n\t\treturn getProposals(proposals, documentOffset);\n\t}", "public void setPREPAID_PROFIT_AMOUNT(BigDecimal PREPAID_PROFIT_AMOUNT) {\r\n this.PREPAID_PROFIT_AMOUNT = PREPAID_PROFIT_AMOUNT;\r\n }", "public void setProposalPath(Path proposalPath) { this.proposalPath = proposalPath; }", "private void aktualisierePreisanzeige(Set<Platz> plaetze)\r\n\t{\r\n\r\n\t\tif (istVerkaufenMoeglich(plaetze))\r\n\t\t{\r\n\t\t\tGeldbetrag preis = _vorstellung.getPreisFuerPlaetze(plaetze);\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis: \" + preis.toString() + \" €\");\r\n\t\t\t_preisFuerAuswahl = preis;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis:\");\r\n\t\t}\r\n\t}", "public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }", "@NonNull\n public List<IkeSaProposal> getIkeSaProposals() {\n return Arrays.asList(mSaProposals);\n }", "public Proposal(String value) {\n this(value, null);\n }", "public static void setAllProposalsInCache(List<ProposalObj> proposalList,String userId){\n \tString proposalKey=PROPOSAL_KEY+\"_all_user_\"+userId;\n\t\tlog.info(\"set all proposals in memcache : memcache key:\"+proposalKey);\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalList);\n\t}", "public final void setPreprocessingParams(Vector oParams)\n\t{\n\t\tsetParams(oParams, PREPROCESSING);\n\t}", "public String getProposal() {\n return proposal;\n }", "@Override\n\tpublic List<ICompletionProposal> computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {\n\t\treturn Arrays.asList(assistant.computeCompletionProposals(context.getViewer(), context.getInvocationOffset()));\n\t}", "private void applyPresets() {\n applyAutoTrigger(AUTO_TRIGGER_PRESET.load(mPresetDict));\n applyPreferredTarget(PREFERRED_TARGET_PRESET.load(mPresetDict));\n applyEndingBehavior(ENDING_BEHAVIOR_PRESET.load(mPresetDict));\n applyAutoStartOnDisconnectDelay(AUTOSTART_ON_DISCONNECT_DELAY_PRESET.load(mPresetDict));\n applyEndingHoveringAltitude(ENDING_HOVERING_ALTITUDE_PRESET.load(mPresetDict));\n applyMinAltitude(MIN_ALTITUDE_PRESET.load(mPresetDict));\n }", "public void setPREPAID_AMOUNT(BigDecimal PREPAID_AMOUNT) {\r\n this.PREPAID_AMOUNT = PREPAID_AMOUNT;\r\n }", "void setProbables(boolean probables);", "public final void initialCompute() {\n\n\t\t// Create and initialize the prover\n\t\tProver p = UtilFactory.getPrototype().newProver();\n\t\tProverSettings proverSettings = ProverSettings.get();\n\t\tif (\"OpenGeoProver\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tif (\"Wu\".equalsIgnoreCase(proverSettings.proverMethod)) {\n\t\t\t\tp.setProverEngine(ProverEngine.OPENGEOPROVER_WU);\n\t\t\t} else if (\"Area\".equalsIgnoreCase(proverSettings.proverMethod)) {\n\t\t\t\tp.setProverEngine(ProverEngine.OPENGEOPROVER_AREA);\n\t\t\t}\n\t\t} else if (\"Botana\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.BOTANAS_PROVER);\n\t\t} else if (\"Recio\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.RECIOS_PROVER);\n\t\t} else if (\"PureSymbolic\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.PURE_SYMBOLIC_PROVER);\n\t\t} else if (\"Auto\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.AUTO);\n\t\t}\n\t\tp.setTimeout(proverSettings.proverTimeout);\n\t\tp.setConstruction(cons);\n\t\tp.setStatement(root);\n\t\t// Compute extra NDG's:\n\t\tp.setReturnExtraNDGs(true);\n\n\t\t// Adding benchmarking:\n\t\tdouble startTime = UtilFactory.getPrototype().getMillisecondTime();\n\t\tp.compute(); // the computation of the proof\n\t\tint elapsedTime = (int) (UtilFactory.getPrototype().getMillisecondTime()\n\t\t\t\t- startTime);\n\t\t/*\n\t\t * Don't remove this. It is needed for automated testing. (String match\n\t\t * is assumed.)\n\t\t */\n\t\tLog.debug(\"Benchmarking: \" + elapsedTime + \" ms\");\n\n\t\tProofResult proofresult = p.getProofResult();\n\t\tExtendedBoolean result = p.getYesNoAnswer();\n\n\t\tLog.debug(\"STATEMENT IS \" + proofresult + \" (yes/no: \" + result + \")\");\n\n\t\tif (proofresult == ProofResult.PROCESSING) {\n\t\t\tlist.setUndefined();\n\t\t\treturn;\n\t\t}\n\n\t\tlist.setDefined(true);\n\t\tlist.clear();\n\n\t\tif (!ExtendedBoolean.UNKNOWN.equals(result)) {\n\t\t\tBoolean unreadable = false;\n\n\t\t\tif (proofresult == ProofResult.TRUE_NDG_UNREADABLE || proofresult == ProofResult.TRUE_ON_COMPONENTS) {\n\t\t\t\tunreadable = true;\n\t\t\t}\n\n\t\t\tGeoBoolean answer = new GeoBoolean(cons);\n\t\t\tanswer.setValue(result.boolVal());\n\t\t\tlist.add(answer);\n\t\t\tif (result.boolVal()) {\n\t\t\t\tHashSet<NDGCondition> ndgresult = p.getNDGConditions();\n\t\t\t\tGeoList ndgConditionsList = new GeoList(cons);\n\t\t\t\tndgConditionsList.clear();\n\t\t\t\tndgConditionsList.setDrawAsComboBox(true);\n\t\t\t\tIterator<NDGCondition> it = ndgresult.iterator();\n\t\t\t\tTreeSet<GeoText> sortedSet = new TreeSet<>(\n\t\t\t\t\t\tGeoText.getComparator());\n\n\t\t\t\t// Collecting the set of NDG conditions.\n\t\t\t\t// The OGP data collector may left some unreadable conditions\n\t\t\t\t// so we make sure if the condition is readable.\n\t\t\t\twhile (!unreadable && it.hasNext()) {\n\t\t\t\t\tGeoText ndgConditionText = new GeoText(cons);\n\t\t\t\t\tNDGCondition ndgc = it.next();\n\t\t\t\t\t// Do not print unnecessary conditions:\n\t\t\t\t\tif (ndgc.getReadability() > 0) {\n\t\t\t\t\t\tndgc.rewrite(cons);\n\t\t\t\t\t\tStringBuilder s = null;\n\n\t\t\t\t\t\tif (relTool) {\n\t\t\t\t\t\t\tRelationNumerical rn = new RelationNumerical(kernel);\n\t\t\t\t\t\t\tString cond = ndgc.getCondition();\n\t\t\t\t\t\t\tif (\"AreParallel\".equals(cond)) {\n\t\t\t\t\t\t\t\t// non-parallism in 2D means intersecting\n\t\t\t\t\t\t\t\t// FIXME: this is not true for 3D\n\t\t\t\t\t\t\t\ts = sb(rn.intersectString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\ttrue, getLoc()));\n\t\t\t\t\t\t\t} else if (\"AreCollinear\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn\n\t\t\t\t\t\t\t\t\t\t.triangleNonDegenerateString(\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[0],\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[2],\n\t\t\t\t\t\t\t\t\t\t\t\tgetLoc()));\n\t\t\t\t\t\t\t} else if (\"AreEqual\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.equalityString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\tfalse, getLoc()));\n\t\t\t\t\t\t\t} else if (\"ArePerpendicular\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.perpendicularString(\n\t\t\t\t\t\t\t\t\t\t(GeoLine) ndgc.getGeos()[0],\n\t\t\t\t\t\t\t\t\t\t(GeoLine) ndgc.getGeos()[1], false,\n\t\t\t\t\t\t\t\t\t\tgetLoc()));\n\t\t\t\t\t\t\t} else if (\"AreCongruent\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.congruentSegmentString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\tfalse, getLoc()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s == null || !relTool) {\n\t\t\t\t\t\t\tGeoElement[] geos = ndgc.getGeos();\n\t\t\t\t\t\t\tif (geos == null) { // formula with quantities\n\t\t\t\t\t\t\t\ts = sb(ndgc.getCondition());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ts = sb(getLoc()\n\t\t\t\t\t\t\t\t\t\t.getCommand(ndgc.getCondition()));\n\t\t\t\t\t\t\t\ts.append(\"[\");\n\t\t\t\t\t\t\t\tfor (int i = 0; i < ndgc\n\t\t\t\t\t\t\t\t\t\t.getGeos().length; ++i) {\n\t\t\t\t\t\t\t\t\tif (i > 0) {\n\t\t\t\t\t\t\t\t\t\ts.append(',');\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 * There can be a case when the underlying\n\t\t\t\t\t\t\t\t\t * prover sends such objects which cannot be\n\t\t\t\t\t\t\t\t\t * understood by GeoGebra. In this case we\n\t\t\t\t\t\t\t\t\t * use the \"Objects\" word. In this case we\n\t\t\t\t\t\t\t\t\t * normally return ProveResult.UNKNOWN to\n\t\t\t\t\t\t\t\t\t * not confuse the student, but for sure, we\n\t\t\t\t\t\t\t\t\t * still do the check here as well.\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tGeoElement geo = ndgc.getGeos()[i];\n\t\t\t\t\t\t\t\t\tif (geo != null) {\n\t\t\t\t\t\t\t\t\t\ts.append(ndgc.getGeos()[i]\n\t\t\t\t\t\t\t\t\t\t\t\t.getLabelSimple());\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\ts.append(Unicode.ELLIPSIS);\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\ts.append(\"]\");\n\t\t\t\t\t\t\t\tif (relTool) {\n\t\t\t\t\t\t\t\t\ts.insert(0, getLoc().getMenu(\"not\") + \" \");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tndgConditionText.setTextString(s.toString());\n\t\t\t\t\t\tndgConditionText.setLabelVisible(false);\n\t\t\t\t\t\tndgConditionText.setEuclidianVisible(false);\n\t\t\t\t\t\tsortedSet.add(ndgConditionText);\n\t\t\t\t\t}\n\t\t\t\t\t// For alphabetically ordering, we need a sorted set here:\n\t\t\t\t}\n\t\t\t\t// Copy the sorted list into the output:\n\t\t\t\tIterator<GeoText> it2 = sortedSet.iterator();\n\t\t\t\twhile (it2.hasNext()) {\n\t\t\t\t\tndgConditionsList.add(it2.next());\n\t\t\t\t}\n\n\t\t\t\tif (unreadable) {\n\t\t\t\t\tGeoText ndgConditionText = new GeoText(cons);\n\t\t\t\t\tString cond = Unicode.ELLIPSIS + \"\";\n\t\t\t\t\tndgConditionText.setTextString(cond);\n\t\t\t\t\tndgConditionText.setLabelVisible(false);\n\t\t\t\t\tndgConditionText.setEuclidianVisible(false);\n\t\t\t\t\tsortedSet.add(ndgConditionText);\n\t\t\t\t\tndgConditionsList.add(ndgConditionText);\n\t\t\t\t}\n\n\t\t\t\t// Put this list to the final output (if non-empty):\n\t\t\t\tif (ndgConditionsList.size() > 0) {\n\t\t\t\t\tlist.add(ndgConditionsList);\n\t\t\t\t}\n\n\t\t\t\tif (proofresult == ProofResult.TRUE_ON_COMPONENTS) {\n\t\t\t\t\tGeoText classification = new GeoText(cons);\n\t\t\t\t\tString c = \"c\";\n\t\t\t\t\tclassification.setTextString(c);\n\t\t\t\t\tclassification.setLabelVisible(false);\n\t\t\t\t\tclassification.setEuclidianVisible(false);\n\t\t\t\t\tlist.add(classification);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Don't remove this. It is needed for testing the web platform. (String\n\t\t * match is assumed.)\n\t\t */\n\t\tLog.debug(\"OUTPUT for ProveDetails: \" + list);\n\n\t}", "public void setPrepayment_option(int prepayment_option) {\n this.prepayment_option = prepayment_option;\n }", "public final void addProposal(ProposedPromiseDrop proposal) {\r\n if (proposal != null) {\r\n synchronized (f_seaLock) {\r\n if (f_proposals == null) {\r\n f_proposals = new ArrayList<>(1);\r\n }\r\n f_proposals.add(proposal);\r\n }\r\n }\r\n }", "public void setParentezco(Parentezco parentezco)\r\n/* 158: */ {\r\n/* 159:290 */ this.parentezco = parentezco;\r\n/* 160: */ }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setDevelopmentProposal(DevelopmentProposal developmentProposal) {\n this.developmentProposal = developmentProposal;\n }", "private void computeWordProposals(final String word, final int offset, final int carretColumnIndex, final List<ICompletionProposal> propositionList) {\n\t\tfinal int qualifierLength = word.length();\n\t\tfinal int replacementOffset = offset - qualifierLength;\n\n\t\t// keyword and other static proposals\n\t\tfor (List<CompletionProposalTemplate> list : filterPrefix(proposals, word).values()) {\n\t\t\t// and add to result list\n\t\t\tfor (CompletionProposalTemplate template : list) {\n\t\t\t\tpropositionList.add(template.getProposal(replacementOffset, carretColumnIndex - qualifierLength, qualifierLength));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Try to find matches among the spec's set of symbols (e.g. operators definitions and declarations).\n\t\tfinal SpecObj specObj = ToolboxHandle.getSpecObj();\n\t\tif (specObj != null && specObj.getRootModule() != null) { // null if spec hasn't been parsed.\n\t\t\tfinal ModuleNode rootModule = specObj.getRootModule();\n\n\t\t\tfinal Collection<SymbolNode> symbols = rootModule.getSymbols(matcher.setPrefix(word));\n\t\t\tfor (final SymbolNode symbolNode : symbols) {\n\t\t\t\tpropositionList.add(new CompletionProposalTemplate(symbolNode.getSignature(), symbolNode.getName(),\n\t\t\t\t\t\tsymbolNode.getHumanReadableImage()).getProposal(replacementOffset, carretColumnIndex - qualifierLength, qualifierLength));\n\t\t\t}\n\t\t}\n\t}", "public void setProperties() {\n\n Properties props = new Properties();\n props.setProperty(\"JOptExitCondition.JOptGenerationCount\", \"1000\");\n props.setProperty(\"JOpt.Algorithm.PreOptimization.SA.NumIterations\", \"1000\");\n\n // We have to tell the optimizer that we have an high interest in capacity planning, Default is\n // 100\n props.setProperty(\"JOptWeight.Capacity\", \"200\");\n this.addElement(props);\n }", "public void setProposition(String string);", "@Override\n \tpublic ArrayList<ICompletionProposal> getCompletionProposals() {\n\n \t\tif (region.getType() == DOMRegionContext.XML_TAG_OPEN) {\n \t\t\tcomputeTagOpenProposals();\n \t\t} else if (region.getType() == DOMRegionContext.XML_TAG_NAME) {\n \t\t\tcomputeTagNameProposals();\n \t\t}\n \t\treturn getAllCompletionProposals();\n \t}", "public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }", "public void resetProbs() {\n\t\t// Set all probabilities to one.\n\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\titemProbs_.put(element, 1.0 / itemProbs_.size());\n\t\t}\n\t\trebuildProbs_ = true;\n\t\tklSize_ = 0;\n\t}", "public void setPcaProperties(java.util.Properties data) {\r\n setParam(KEYNAME_PCAPROPERTIES,data);\r\n }", "public void generatePropositions() {\r\n propositions.clear();\r\n\r\n\t\t// holds alternative options for each constituents (obtained by\r\n // processing coordinated conjunctions and xcomps)\r\n final List<List<Constituent>> constituents = new ArrayList<List<Constituent>>();\r\n\r\n // which of the constituents are required?\r\n final List<Flag> flags = new ArrayList<Flag>();\r\n final List<Boolean> include = new ArrayList<Boolean>();\r\n\r\n\t\t// holds all valid combination of constituents for which a proposition\r\n // is to be generated\r\n final List<List<Boolean>> includeConstituents = new ArrayList<List<Boolean>>();\r\n\r\n // let's start\r\n for (Clause clause : clauses) {\r\n // process coordinating conjunctions\r\n constituents.clear();\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n\t\t\t\t// if(xcomp && clause.subject == i) continue; //An xcomp does\r\n // not have an internal subject so should not be processed here\r\n Constituent constituent = clause.constituents.get(i);\r\n List<Constituent> alternatives;\r\n if (!(xcomp && clause.subject == i)\r\n && constituent instanceof IndexedConstituent\r\n // the processing of the xcomps is done in Default\r\n // proposition generator. \r\n // Otherwise we get duplicate propositions.\r\n && !clause.xcomps.contains(i)\r\n && ((i == clause.verb && options.processCcAllVerbs) || (i != clause.verb && options.processCcNonVerbs))) {\r\n alternatives = ProcessConjunctions.processCC(depTree,\r\n clause, constituent, i);\r\n } else if (!(xcomp && clause.subject == i)\r\n && clause.xcomps.contains(i)) {\r\n alternatives = new ArrayList<Constituent>();\r\n ClausIE xclausIE = new ClausIE(options);\r\n xclausIE.semanticGraph = semanticGraph;\r\n xclausIE.depTree = depTree;\r\n xclausIE.xcomp = true;\r\n xclausIE.clauses = ((XcompConstituent) clause.constituents\r\n .get(i)).getClauses();\r\n xclausIE.generatePropositions();\r\n for (Proposition p : xclausIE.propositions) {\r\n StringBuilder sb = new StringBuilder();\r\n String sep = \"\";\r\n for (int j = 0; j < p.constituents.size(); j++) {\r\n if (j == 0) // to avoid including the subjecct, We\r\n {\r\n continue; // could also generate the prop\r\n }\t\t\t\t\t\t\t // without the subject\t\t\t\t\t\t\t\t\t\t\t\r\n sb.append(sep);\r\n sb.append(p.constituents.get(j));\r\n sep = \" \";\r\n }\r\n alternatives.add(new TextConstituent(sb.toString(),\r\n constituent.type));\r\n }\r\n } else {\r\n alternatives = new ArrayList<Constituent>(1);\r\n alternatives.add(constituent);\r\n }\r\n constituents.add(alternatives);\r\n }\r\n\r\n\t\t\t// create a list of all combinations of constituents for which a\r\n // proposition should be generated\r\n includeConstituents.clear();\r\n flags.clear();\r\n include.clear();\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n Flag flag = clause.getFlag(i, options);\r\n flags.add(flag);\r\n include.add(!flag.equals(Flag.IGNORE));\r\n }\r\n if (options.nary) {\r\n\t\t\t\t// we always include all constituents for n-ary ouput \r\n // (optional parts marked later)\r\n includeConstituents.add(include);\r\n } else {\r\n // triple mode; determine which parts are required\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n include.set(i, flags.get(i).equals(Flag.REQUIRED));\r\n }\r\n\r\n // create combinations of required/optional constituents\r\n new Runnable() {\r\n int noOptional;\r\n\r\n // @Override\r\n public void run() {\r\n noOptional = 0;\r\n for (Flag f : flags) {\r\n if (f.equals(Flag.OPTIONAL)) {\r\n noOptional++;\r\n }\r\n }\r\n run(0, 0, new ArrayList<Boolean>());\r\n }\r\n\r\n private void run(int pos, int selected, List<Boolean> prefix) {\r\n if (pos >= include.size()) {\r\n if (selected >= Math.min(options.minOptionalArgs,\r\n noOptional)\r\n && selected <= options.maxOptionalArgs) {\r\n includeConstituents.add(new ArrayList<Boolean>(\r\n prefix));\r\n }\r\n return;\r\n }\r\n prefix.add(true);\r\n if (include.get(pos)) {\r\n run(pos + 1, selected, prefix);\r\n } else {\r\n if (!flags.get(pos).equals(Flag.IGNORE)) {\r\n run(pos + 1, selected + 1, prefix);\r\n }\r\n prefix.set(prefix.size() - 1, false);\r\n run(pos + 1, selected, prefix);\r\n }\r\n prefix.remove(prefix.size() - 1);\r\n }\r\n }.run();\r\n }\r\n\r\n // create a temporary clause for which to generate a proposition\r\n final Clause tempClause = clause.clone();\r\n\r\n // generate propositions\r\n new Runnable() {\r\n public void run() {\r\n // select which constituents to include\r\n for (List<Boolean> include : includeConstituents) {\r\n // now select an alternative for each constituent\r\n selectConstituent(0, include);\r\n }\r\n }\r\n\r\n void selectConstituent(int i, List<Boolean> include) {\r\n if (i < constituents.size()) {\r\n if (include.get(i)) {\r\n List<Constituent> alternatives = constituents\r\n .get(i);\r\n for (int j = 0; j < alternatives.size(); j++) {\r\n tempClause.constituents.set(i,\r\n alternatives.get(j));\r\n selectConstituent(i + 1, include);\r\n }\r\n } else {\r\n selectConstituent(i + 1, include);\r\n }\r\n } else {\r\n // everything selected; generate\r\n propositionGenerator.generate(propositions, tempClause,\r\n include);\r\n }\r\n }\r\n }.run();\r\n }\r\n }", "public void setProposalNo(java.lang.String proposalNo) {\n this.proposalNo = proposalNo;\n }", "@Override\r\n\t\t\tpublic List<Integer> finalEvaluation(\r\n\t\t\t\t\tList<Map<String, String>> proposalsContent,\r\n\t\t\t\t\tList<Integer> proposalEvaluation) {\r\n\t\t\t\treturn null;\r\n\t\t\t}", "ProfessorPreference(ClassInfo[] p){\n\t\tthis.preferences = p;\n\t}", "void setPrestitoCollection(Collection<Prestito> prestitoCollection);", "protected abstract void setPpl();", "public abstract void setProteins(Map<String, Protein> proteins);", "public void assignAndStartInitialProjects() {\n\t\tfor(Player p:players) {\n\t\t\tSubproject sp=drawProject();\n\t\t\tSubprojectField result=sp.setChip(p.removeChip());\n\t\t\tp.raiseScore(result.getAmountSZT());\n\t\t}\n\t}", "@Override\n public Proposal propose(Random rand)\n {\n \n savedValue = variable.getIntegerValue();\n double [] incrementIdx = Multinomial.generate(rand, 1, \n uniformDiscreteProbs(NUM_STATES));\n double [] stepsVector = steps(NUM_STATES);\n \n int increment = 0; \n \n for(int i = 0; i < (2 * NUM_STATES); i++)\n increment += (int) incrementIdx[i] * stepsVector[i];\n \n final int newValue = savedValue + increment;\n variable.setValue(newValue);\n return new ProposalRealization();\n }", "public static void sortCompilationProposal(List<ICompletionProposal> prop){\r\n\t\tCollections.sort(prop,new Comparator<ICompletionProposal>(){\r\n\t\t\tpublic int compare(ICompletionProposal o1, ICompletionProposal o2){\r\n\t\t\t\treturn o1.getDisplayString().compareTo(o2.getDisplayString());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void selectProposal(int index) {\n\t\tAssert.isTrue(index >= 0, \"Proposal index should never be negative\"); //$NON-NLS-1$\n\t\tif (!isValid() || proposalList == null || index >= getTableLength()) {\n\t\t\treturn;\n\t\t}\n\t\tproposalTable.setSelection(index);\n\t\tproposalTable.showSelection();\n\n\t\tshowProposalDescription();\n\t}", "public void setActions(ProposalActions actions) {\n this.actions = actions;\n }", "public void setPreco(double preco) {\n\t\tthis.preco = preco;\n\t}", "public void setProposition(PropositionDefinition.Builder prop) {\r\n\t\t\tthis.proposition = prop;\r\n\t\t\tthis.setPropId(prop.getId());\r\n\t\t}", "@Override\n\tpublic void refreshAvailableProcedures()\n\t{\n\t\tm_models.obtainAvailableProcedures(true);\n\t}", "public void setModeloPrecios(ModeloTablaPrecioAcciones modeloPrecios) {\n\t\tthis.modeloPrecios = modeloPrecios;\n\t}", "public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}", "public void setParaValues(Collection paraValues) {\n\r\n\t}", "public Proposal withActions(ProposalActions actions) {\n setActions(actions);\n return this;\n }", "public void setPreSharedKey(String psk)\n {\n this.psk = psk;\n }", "private void setCalculatePosition() {\n fptUserCalculated = getFilterPointDesign(drawingPad.getSelectedItems(), true);\n drawingPad.getSelectedItems().finalizeMovement();\n drawingPad.getSelectedItems().calculate(fptUserCalculated);\n drawingPad.repaint();\n }", "public void setcurrentPara(int p){\r\n currentPara= p;\r\n \r\n }", "private void updatePreferences() {\n\n /* Update preferences of the agent */\n patientAgent.updatePreferredAllocations();\n List<AllocationState> newPreferredAllocations = patientAgent.getAllocationStates();\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n\n if (newPreferredAllocations.isEmpty() || iterationsWithNoImprovementCount >= maxIterationsNum) {\n /* We shut down the behaviour if there are no better appointments\n or we exceeded the possible number of non-improving algorithm iterations\n */\n isHappyWithAppointment = true;\n\n } else if (newPreferredAllocations.size() >= currentSize) {\n\n /* No improvement has been made in our algorithm */\n iterationsWithNoImprovementCount++;\n } else {\n\n /* Improved the appointment, resetting the counter */\n iterationsWithNoImprovementCount = 0;\n }\n\n\n }", "private ICompletionProposal[] getCompletionProposals(int offset) throws BadLocationException {\n \t\treturn contentAssistant.getContentAssistProcessor(document.getContentType(offset))\n \t\t\t\t.computeCompletionProposals(editor.getProjectionViewer(), offset);\n \t}", "void setupPointScaleFree() {\n\t\tbeginOffsetP.set(P);\n\n\t\tleftOppositeLine = neighborOppositeLinesFromPoint(selectedPoint)[0];\n\t\trightOppositeLine = neighborOppositeLinesFromPoint(selectedPoint)[1];\n\t\tleftOppositeLine.resetLockPoints(P);\n\t\trightOppositeLine.resetLockPoints(P);\n\t\tbeginP.set(P);\n\t\tbeginOffsetP.set(P);\n\n\t\tbeginOffset.set(P); // lock the beginning position of the\n\t\t\t\t\t\t\t// offset vector\n\t\tbeginOffsetP.set(point[selectedPoint].position); // lock the beginning\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of the vector to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// be transformed\n\n\t\tleftOppositeLine.isOnThisSideOfLine = leftOppositeLine.checkLineSide(P); // check\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// on\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// which\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// side\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mirror\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// we\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// are\n\t\trightOppositeLine.isOnThisSideOfLine = rightOppositeLine.checkLineSide(P);\n\t}", "private void setP1( Point p1 ){\n this.p1=p1;\n }", "@VisibleForTesting\n protected void applyProvisionalSelection() {\n mSelection.addAll(mProvisionalSelection);\n mProvisionalSelection.clear();\n }", "public void setPrecipitation(int value) {\n this.precipitation = value;\n }", "void setPosiblesTipos(String[] tipos);", "@Override\r\n\tpublic void setSelection(List<EObject> selection) {\r\n\t\tthis.selection = selection;\r\n\t\tthis.refactoringProcessor = \r\n\t\t\t\tnew InternalRefactoringProcessor(this.selection);\r\n\t}", "public void run() {\n\t\t\t\t\t\t\tProposal p = getSelectedProposal();\n\t\t\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\t\t\tString description = p.getDescription();\n\t\t\t\t\t\t\t\tif (description != null) {\n\t\t\t\t\t\t\t\t\tif (infoPopup == null) {\n\t\t\t\t\t\t\t\t\t\tinfoPopup = new InfoPopupDialog(getShell());\n\t\t\t\t\t\t\t\t\t\tinfoPopup.open();\n\t\t\t\t\t\t\t\t\t\tinfoPopup.getShell()\n\t\t\t\t\t\t\t\t\t\t\t\t.addDisposeListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DisposeListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void widgetDisposed(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisposeEvent event) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinfoPopup = null;\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\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinfoPopup.setContents(p.getDescription());\n\t\t\t\t\t\t\t\t} else if (infoPopup != null) {\n\t\t\t\t\t\t\t\t\tinfoPopup.close();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpendingDescriptionUpdate = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void setEvaluationProcedure(final Citation newValue) {\n checkWritePermission(evaluationProcedure);\n evaluationProcedure = newValue;\n }", "public void setPrixDeVente() { \t\n\t\tfor (Produit p : this.getProduits()) {\n\t\t\tthis.setPrixDeVente(p);\n\t\t}\t\t\n\t}", "public void setPreamp(int[] param) {\n validatePreamp(param);\n if (param != null) {\n localPreampTracker = true;\n } else {\n localPreampTracker = true;\n }\n this.localPreamp = param;\n }", "public void setPrizes(double prizes) {\r\n this.prizes = prizes;\r\n }", "protected final void parset() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n \n smoothQCenterX = currentX * 2 - smoothQCenterX;\n smoothQCenterY = currentY * 2 - smoothQCenterY;\n currentX += x;\n currentY += y;\n p.quadTo(smoothQCenterX, smoothQCenterY, currentX, currentY);\n smoothCCenterX = currentX;\n smoothCCenterY = currentY;\n skipCommaSpaces();\n } \n }", "public void resetProbs(double prob) {\n\t\t// Set all probabilities to a given value.\n\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\titemProbs_.put(element, prob);\n\t\t}\n\t\trebuildProbs_ = true;\n\t\tklSize_ = 0;\n\t}", "public Proposal withProposedByMemberName(String proposedByMemberName) {\n setProposedByMemberName(proposedByMemberName);\n return this;\n }", "public void setPreOperation(OperationConf oc) {\n preOperation = oc;\n }", "public void setInitialParameters() {\n /** DO NOTHING */\n }", "private void handleSetData(Event event) {\n\t\tTableItem item = (TableItem) event.item;\n\t\tint index = proposalTable.indexOf(item);\n\t\tDisplay display = Display.getCurrent();\n\n\t\tint proposalIndex = 0;\n\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\tif (index == proposalIndex) {\n\t\t\t\tif (AutoCompleteUIPlugin.isRAP()) {\n\t\t\t\t\titem.setText(\" \" + getString(proposal));\n\t\t\t\t\titem.setImage(getImage(proposal, false));\n\t\t\t\t\tif (maxItemWidth < item.getBounds().width)\n\t\t\t\t\t\tmaxItemWidth = item.getBounds().width;\n\t\t\t\t}\n\t\t\t\titem.setData(proposal);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproposalIndex++;\n\t\t}\n\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\tif (index == proposalIndex) {\n\t\t\t\t// Data == null => not selectable\n\t\t\t\titem.setData(null);\n\t\t\t\titem.setBackground(display.getSystemColor(SWT.COLOR_GRAY));\n\t\t\t\tif (AutoCompleteUIPlugin.isRAP()) {\n\t\t\t\t\tint count = proposalList.getCount(provider);\n\t\t\t\t\tString text = provider + \" (\" + count + \" matching items)\";\n\t\t\t\t\titem.setText(text);\n\n\t\t\t\t\tFontData fontData = display.getSystemFont().getFontData()[0];\n\t\t\t\t\tFontData newFontData = new FontData(fontData.getName(), fontData.getHeight(), SWT.ITALIC | SWT.BOLD);\n\t\t\t\t\tFont font = new Font(display, newFontData);\n\t\t\t\t\titem.setFont(font);\n\n\t\t\t\t\tif (maxItemWidth < item.getBounds().width)\n\t\t\t\t\t\tmaxItemWidth = item.getBounds().width;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproposalIndex++;\n\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\tif (AutoCompleteUIPlugin.isRAP()) {\n\t\t\t\t\t\titem.setText(\" \" + getString(proposal));\n\t\t\t\t\t\titem.setImage(getImage(proposal, false));\n\t\t\t\t\t\tif (maxItemWidth < item.getBounds().width)\n\t\t\t\t\t\t\tmaxItemWidth = item.getBounds().width;\n\t\t\t\t\t}\n\t\t\t\t\titem.setData(proposal);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t}\n\t}", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "ContentProposalPopup(ContentProposalAdapter adapter, String infoText,\n\t\t\tContentProposalList proposalList) {\n\t\t// IMPORTANT: Use of SWT.ON_TOP is critical here for ensuring\n\t\t// that the target control retains focus on Mac and Linux. Without\n\t\t// it, the focus will disappear, keystrokes will not go to the\n\t\t// popup, and the popup closer will wrongly close the popup.\n\t\t// On platforms where SWT.ON_TOP overrides SWT.RESIZE,\n\t\t// we will live with this.\n\t\t// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=126138\n\t\tsuper(adapter.getControl().getShell(), SWT.RESIZE | SWT.ON_TOP | SWT.NO_FOCUS, false,\n\t\t\t\tfalse, false, false, false, null, infoText);\n\t\tthis.adapter = adapter;\n\t\tthis.control = adapter.getControl();\n\t\t\n\t\t// this.labelProvider = adapter.getLabelProvider();\n\t\tthis.partialContentImage = AutoCompleteUIPlugin.getDefault()\n\t\t\t\t.getImageFromPlugin(AutoCompleteUIPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\"icons/mglass-16.png\");\n\t\tthis.partialContentImageSelected = AutoCompleteUIPlugin.getDefault()\n\t\t\t\t.getImageFromPlugin(AutoCompleteUIPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\"icons/mglass-16-white.png\");\n\t\tthis.functionContentImage = AutoCompleteUIPlugin.getDefault()\n\t\t\t\t.getImageFromPlugin(AutoCompleteUIPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\"icons/function-16.png\");\n\t\tthis.functionContentImageSelected = AutoCompleteUIPlugin.getDefault()\n\t\t\t\t.getImageFromPlugin(AutoCompleteUIPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\"icons/function-16-white.png\");\n\t\tthis.nonSelectableItems = new ArrayList<Integer>();\n\n\t\tthis.proposalList = proposalList;\n\t\t// When the popup is opened & the content is not already completed, we\n\t\t// want to handle this behaviour\n\t\tif (!adapter.isPreventTopProposalSelection())\n\t\t\thandleTopProposals = true;\n\t}", "private void inferePeptidesChanged() {\n boolean enabled = checkInferPeptides.isSelected();\n fieldPeptideAnalysisFileID.setEnabled(enabled);\n filtersPeptideLevel.setEnabled(enabled);\n }", "public void editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis parameters\");\r\n \t}", "public void setNewPrediction()\n\t{\n\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t{\n\t\t\tfor (int j=0;j<VALUE_UPPER_BOUND+1;j++)\n\t\t\t{\n\t\t\t\tcumulPrediction[i][j] = 0;\n\t\t\t\t//System.out.println(pricePrediction[i][j]);\n\t\t\t\tprevPrediction[i][j] = pricePrediction[i][j];\n\t\t\t\t// 0.1 corresponds infestismal amount mentioned in the paper.\n\t\t\t\tpricePrediction[i][j] = priceObservation[i][j] + 0.1;\n\t\t\t\tcumulPrediction[i][j] += pricePrediction[i][j];\n\t\t\t\tif (j>0)\n\t\t\t\t{\n\t\t\t\t\tcumulPrediction[i][j] += cumulPrediction[i][j-1];\n\t\t\t\t}\n\t\t\t\tpriceObservation[i][j] = 0; \n\t\t\t}\n\t\t}\n\t\tthis.observationCount = 0;\n\t\tthis.isPricePredicting = true;\n\t\t//buildCumulativeDist();\n\t}", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "public void setPremAmt(BigDecimal premAmt) {\n\t\tthis.premAmt = premAmt;\n\t}", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void setCLAPPROVAL(java.lang.CharSequence value) {\n this.CL_APPROVAL = value;\n }", "public Proposal clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void mutate() {\n \t//POEY comment: for initialise() -> jasmine.gp.nodes.ercs\n //such as CustomRangeIntegerERC.java, PercentageERC.java, BoolERC.java \n \tsetValue(initialise());\n }", "public BigDecimal getPREPAID_PROFIT_AMOUNT() {\r\n return PREPAID_PROFIT_AMOUNT;\r\n }", "@Override\n\tpublic void setProvincia(String provincia) {\n\t\tmodel.setProvincia(provincia);\n\t}", "public void changeIsParalysed()\r\n\t{\r\n\t\tisParalysed = !isParalysed;\r\n\t}", "private void setEntropiaP(Map<String, Integer> categoriasPresenca, int totalPresenca) {\n\t\t\n\t}", "public int countProposalsAboveMine() {\n int count = 0;\n for (ProposalData data : proposals.values()) {\n if (!data.mineAsBig) {\n count++;\n }\n }\n return count;\n }", "public void startEditingPlanning() {\r\n bpCoordinator.startEditingPlanning();\r\n }", "private static void normalizePropositions(Set<ExternalizedStateComponent> componentSet) {\n\t\tfor(ExternalizedStateComponent component : componentSet) {\n\t\t\tif(component instanceof ExternalizedStateProposition) {\n\t\t\t\tExternalizedStateProposition p = (ExternalizedStateProposition) component;\n\t\t\t\tGdlSentence sentence = p.getName();\n\t\t\t\tif(sentence instanceof GdlRelation) {\n\t\t\t\t\tGdlRelation relation = (GdlRelation) sentence;\n\t\t\t\t\tif(relation.getName().equals(NEXT)) {\n\t\t\t\t\t\tp.setName(GdlPool.getProposition(GdlPool.getConstant(\"anon\")));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static Collection<CompletionProposal> getVariableCompletionProposals(final CompletionContext context, CPModel model) {\n Collection<CompletionProposal> proposals = new LinkedHashSet<>();\n for (CPElement var : model.getVariables(context.getCaretOffset())) {\n if (var.getType() != CPElementType.VARIABLE_USAGE && !var.getRange().containsInclusive(context.getCaretOffset())) {\n ElementHandle handle = new CPCslElementHandle(context.getFileObject(), var.getName());\n VariableCompletionItem item = new VariableCompletionItem(\n handle,\n var.getHandle(),\n context.getAnchorOffset(),\n null); //no origin for current file\n// var.getFile() == null ? null : var.getFile().getNameExt());\n\n proposals.add(item);\n }\n }\n try {\n //now gather global vars from all linked sheets\n FileObject file = context.getFileObject();\n if (file != null) {\n Map<FileObject, CPCssIndexModel> indexModels = CPUtils.getIndexModels(file, DependencyType.REFERRING_AND_REFERRED, true);\n for (Entry<FileObject, CPCssIndexModel> entry : indexModels.entrySet()) {\n FileObject reff = entry.getKey();\n CPCssIndexModel cpIndexModel = entry.getValue();\n Collection<org.netbeans.modules.css.prep.editor.model.CPElementHandle> variables = cpIndexModel.getVariables();\n for (org.netbeans.modules.css.prep.editor.model.CPElementHandle var : variables) {\n if (var.getType() == CPElementType.VARIABLE_GLOBAL_DECLARATION) {\n ElementHandle handle = new CPCslElementHandle(context.getFileObject(), var.getName());\n VariableCompletionItem item = new VariableCompletionItem(\n handle,\n var,\n context.getAnchorOffset(),\n reff.getNameExt());\n\n proposals.add(item);\n }\n\n }\n\n }\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n return proposals;\n }", "private void prepKeyBindings() { \r\n prepNumberKeys();\r\n prepOperatorKeys();\r\n prepSupplementalKeys();\r\n }", "public Proposal(String value, String display) {\n this.value = value;\n this.display = display;\n if (this.value == null || this.value.length() == 0) {\n this.value = EMPTY;\n }\n if (this.display != null && this.display.length() == 0) {\n this.display = null;\n }\n }", "public void setPreferences(Person... person) {\r\n int count = 0;\r\n for (Person p : person) {\r\n preferences[count] = p;\r\n count++;\r\n }\r\n }", "public PropositionHolder(Etudes.Proposition initial)\r\n {\r\n value = initial;\r\n }" ]
[ "0.61890185", "0.5973215", "0.58729434", "0.55412316", "0.54726356", "0.5463881", "0.54461163", "0.5336966", "0.53046685", "0.52640057", "0.5219889", "0.51196384", "0.49838078", "0.48958984", "0.48942742", "0.48773465", "0.48641783", "0.4838476", "0.47860667", "0.4766357", "0.47054595", "0.46907732", "0.46821707", "0.46819758", "0.46817097", "0.4677341", "0.46662915", "0.4630785", "0.462242", "0.46161065", "0.46132064", "0.460355", "0.45913464", "0.4586991", "0.45755583", "0.45659283", "0.4564898", "0.45623255", "0.45608062", "0.4558094", "0.45526955", "0.4524586", "0.45137098", "0.45125422", "0.4511765", "0.45092794", "0.45037732", "0.44970262", "0.448735", "0.44840565", "0.44814113", "0.44805518", "0.4475807", "0.44715977", "0.4465942", "0.44613197", "0.4451695", "0.44506904", "0.44462648", "0.44404727", "0.4436326", "0.44343272", "0.4423178", "0.44176012", "0.44071144", "0.4394896", "0.43799427", "0.43761057", "0.43734133", "0.43666023", "0.43607625", "0.43531835", "0.43477476", "0.43453217", "0.43333304", "0.43313366", "0.43310118", "0.43264607", "0.43207315", "0.43154886", "0.4314343", "0.43126062", "0.43108496", "0.43035433", "0.4295005", "0.4292408", "0.42923483", "0.42881832", "0.42856622", "0.42848867", "0.4283965", "0.42806837", "0.42753753", "0.4274839", "0.42696115", "0.42646936", "0.42642283", "0.42611519", "0.4259557", "0.4251575" ]
0.8495057
0
PASSBYVALUE Java is considered passbyvalue which means when a variable is passed to a method the value(copy) of the variable is passed, not the actual variable itself
public static void main(String[] args) { String str = "Dilmurod"; System.out.print("Before method call: "); System.out.println(str); changeName(str); System.out.print("After method call: "); System.out.println(str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void passValue() {\n }", "public static void testPassingMethodArgument() {\n System.out.println(\"\\nTEST PASSING METHOD ARGUMENT\");\n System.out.println(\"============================\");\n int primitiveVar = 0;\n System.out.println(\"value of 1 before passing to method: \" + primitiveVar);\n increasePrimitive(primitiveVar);\n System.out.println(\"value of 1 after passing to method: \" + primitiveVar);\n\n Counter referenceVar = new Counter();\n System.out.println(\"counter before passing to method: \" + referenceVar.getCount());\n increaseReference(referenceVar);\n System.out.println(\"counter after passing to method: \" + referenceVar.getCount());\n }", "private void tryCallWithPrimitives() {\n int primitiveType = 10;\n // the method call will take a copy of primitiveType variable value, the original value will not changed\n callMethod(primitiveType);\n // the value is just 100\n System.out.println(primitiveType);\n }", "public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t\t finalTarget.put(finalTargetProp, scope, newValue);\n\t\t\t return null;\n\t\t\t}", "private static void testPassByReference(int[] input) {\n if (input.length > 0) {\n input[0] = 5;\n }\n }", "@Override\n\tpublic void visit(UserVariable arg0) {\n\t\t\n\t}", "public ByValue() {}", "public abstract Out apply(In value);", "void swap(CallByValueAndCallByReference t) // passing reference variable(t) of a class . -----Important to remember\n\t{\n\tint temp;\n\ttemp =t.p; // temp =51\n\tt.p= t.q; // t.p=81\n\tt.q=temp; // t.q= 51\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(val);\n\t\tint val = 200;\n\t\tSystem.out.println(val); //Local variable wins\n\t\tSystem.out.println(FunctionDemo.val); //To use global variable\n\t\tint sum = DemoGlobalScope(val);\n\t\tSystem.out.println(sum);\n\t\t\n\t\t//Pass by value\n\t\tSystem.out.println(\"Pass By Value\");\n\t\tint a = 10;\n\t\tint b = 20;\n\t\tSystem.out.println(a + \",\" + b);\n\t\tswap(a,b);\n\t\tSystem.out.println(a+ \",\" + b);\n\t}", "@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}", "V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tCallByValueNcallByReferenceConcept obj = new CallByValueNcallByReferenceConcept();\n\t\tint x = 10;\n\t\tint y = 20;\n\t\tobj.testSum(x, y); //call or pass by Value, copy of x and y are given to a and b\n\n\t\tobj.p = 50;\n\t\tobj.q = 60;\n\t\t\n\t\tobj.swap(obj);//using object reference\n\t\t//after swap\n\t\tSystem.out.println(obj.p);\n\t\tSystem.out.println(obj.q);\n\t\t\n\t\t\n\t\tSystem.out.println(\"############\");\n\t\tint m = obj.testSum(20, 40);\n\t\tSystem.out.println(m);\n\t}", "public abstract void userValues();", "public void process(Object value) {}", "public static void passMethod(int p) {\n p = 10;\n }", "void test(int a){\n System.out.println(\"a: \"+a);\n }", "public Object currValue();", "public V setValue(V value);", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "public Object getNewValue()\n {\n return newValue;\n }", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "public void setValue(Object param1, Object param2) {\n }", "void setValue(V value);", "public Value getValue()\r\n\t{\r\n\t\treturn paramValue;\r\n\t}", "T getNewValue();", "private void tryCallWithReferenceType() {\n\n StringBuilder builder = new StringBuilder(\"My content will \");\n // the method call will take the original value\n callMethod(builder);\n // the builder content has changed\n System.out.println(builder);\n }", "public void setValue2(Object value2) { this.value2 = value2; }", "@Override\n\tpublic void visit(NextValExpression arg0) {\n\t\t\n\t}", "public void addition(CallByReference a){\n x = a.x+5; //extract the value from the new \"a\" object\n //System.out.println(x);\n }", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "public double getParameterValue (Assignment input) ;", "public void Convert() {\n value = value;\n }", "public static void main(String[] args) {\n\t\n\t\tPassByValueDemoReference demo = new PassByValueDemoReference();\n\t\t\n\t\t\t\tint[] x = {3};\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"main: before calling changeX: x[0] = \" + x[0]);\n\t\t\t\t\n\t\t\t\tdemo.changeX(x);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"main: after calling changeX: x[0] = \" + x[0]);\n\t\t\t\t\n\t\t\t\t/*The possible learning objectives of this exercise are to make sure the code\n\t\t\t\t * has a neat style for example proper indentation and spacing, also to fix\n\t\t\t\t * syntax errors. Another thing we learn from this is how to open other peoples\n\t\t\t\t * projects and add our own code to it and make it work. \n\t\t\t\t */\n\t\t\t\t\n\t}", "public void changeValue(MyObject myObjParam) {\n\t\tmyObjParam.a = myObjParam.a + 15;\n\t\tSystem.out.printf(\"The value of a is %d\\n\", myObjParam.a);\n\t}", "public static void main(String[] args){\n\t\t \r\n\t\t PassByValEx passByValEx = new PassByValEx();\r\n\t\t \r\n\t\t \r\n\t\t int x = 15;\r\n\t\t passByValEx.calculate(x); // Java always passes parameters by value \r\n\t\t \t\t\t\t\t\t\t//when calling a method and passing parameter.\r\n\t\t System.out.println(\"x=\" + x);\r\n\t\t \r\n\t\t Dog dog_original = new Dog();\r\n\t\t dog_original.setNumberOfLegs(4);\r\n\t\t passByValEx.process(dog_original);\r\n\t\t System.out.println(\"main dog NumberOfLegs=\" + dog_original.getNumberOfLegs());\r\n\t}", "protected abstract void setValue(V value);", "public void set_return(Fact param) {\r\n local_returnTracker = true;\r\n\r\n this.local_return = param;\r\n\r\n\r\n }", "private Object getValueObject(Object object) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tObject value = this.methodGet.invoke(object, null);\n\t\treturn value;\n\t}", "public static void main(String[] args) {\n\t\tPassByRef obj1=new PassByRef();\n\t\tPassByRef obj2=new PassByRef();\n\t\tobj1.a=10;\n\t\tobj2.a=20;\n\t\tSystem.out.println(\"Obj1.a: \"+obj1.a);\n\t\tSystem.out.println(\"Obj2.a: \"+obj2.a);\n\t\tobj1.fun(obj2);\n\t\tSystem.out.println(\"\\nObj1.a: \"+obj1.a);\n\t\tSystem.out.println(\"Obj2.a: \"+obj2.a);\n\t}", "private void assign(DefinitionStmt stmt) {\n \n soot.Value rightOp = stmt.getRightOp();\n Value result;\n \n if (rightOp instanceof Immediate) {\n Immediate immediate = (Immediate) rightOp;\n result = immediate(stmt, immediate);\n } else if (rightOp instanceof ThisRef) {\n result = function.getParameterRef(1);\n } else if (rightOp instanceof ParameterRef) {\n ParameterRef ref = (ParameterRef) rightOp;\n int index = (sootMethod.isStatic() ? 1 : 2) + ref.getIndex();\n Value p = new VariableRef(\"p\" + index, getType(ref.getType()));\n result = widenToI32Value(p, isUnsigned(ref.getType()));\n } else if (rightOp instanceof CaughtExceptionRef) {\n result = call(BC_EXCEPTION_CLEAR, env);\n } else if (rightOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) rightOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n if (ref.getType() instanceof NullType) {\n // The base value is always null. Do a null check which will\n // always throw NPE.\n checkNull(stmt, base);\n return;\n } else {\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n result = call(getArrayLoad(ref.getType()), base, index);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n }\n } else if (rightOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) rightOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR, OBJECT_PTR));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new GetField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env, base);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) rightOp;\n FunctionRef fn = Intrinsics.getIntrinsic(sootMethod, stmt);\n if (fn == null) {\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new GetStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n }\n result = call(fn, env);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof Expr) {\n if (rightOp instanceof BinopExpr) {\n BinopExpr expr = (BinopExpr) rightOp;\n Type rightType = getLocalType(expr.getType());\n Variable resultVar = function.newVariable(rightType);\n result = resultVar.ref();\n Value op1 = immediate(stmt, (Immediate) expr.getOp1());\n Value op2 = immediate(stmt, (Immediate) expr.getOp2());\n if (rightOp instanceof AddExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Add(resultVar, op1, op2));\n } else {\n function.add(new Fadd(resultVar, op1, op2));\n }\n } else if (rightOp instanceof AndExpr) {\n function.add(new And(resultVar, op1, op2));\n } else if (rightOp instanceof CmpExpr) {\n Variable t1 = function.newVariable(I1);\n Variable t2 = function.newVariable(I1);\n Variable t3 = function.newVariable(resultVar.getType());\n Variable t4 = function.newVariable(resultVar.getType());\n function.add(new Icmp(t1, Condition.slt, op1, op2));\n function.add(new Icmp(t2, Condition.sgt, op1, op2));\n function.add(new Zext(t3, new VariableRef(t1), resultVar.getType()));\n function.add(new Zext(t4, new VariableRef(t2), resultVar.getType()));\n function.add(new Sub(resultVar, new VariableRef(t4), new VariableRef(t3)));\n } else if (rightOp instanceof DivExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LDIV : IDIV;\n result = call(f, env, op1, op2);\n } else {\n // float or double\n function.add(new Fdiv(resultVar, op1, op2));\n }\n } else if (rightOp instanceof MulExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Mul(resultVar, op1, op2));\n } else {\n function.add(new Fmul(resultVar, op1, op2));\n }\n } else if (rightOp instanceof OrExpr) {\n function.add(new Or(resultVar, op1, op2));\n } else if (rightOp instanceof RemExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LREM : IREM;\n result = call(f, env, op1, op2);\n } else {\n FunctionRef f = rightType == DOUBLE ? DREM : FREM;\n result = call(f, env, op1, op2);\n }\n } else if (rightOp instanceof ShlExpr || rightOp instanceof ShrExpr || rightOp instanceof UshrExpr) {\n IntegerType type = (IntegerType) op1.getType();\n int bits = type.getBits();\n Variable t = function.newVariable(op2.getType());\n function.add(new And(t, op2, new IntegerConstant(bits - 1, (IntegerType) op2.getType())));\n Value shift = t.ref();\n if (((IntegerType) shift.getType()).getBits() < bits) {\n Variable tmp = function.newVariable(type);\n function.add(new Zext(tmp, shift, type));\n shift = tmp.ref();\n }\n if (rightOp instanceof ShlExpr) {\n function.add(new Shl(resultVar, op1, shift));\n } else if (rightOp instanceof ShrExpr) {\n function.add(new Ashr(resultVar, op1, shift));\n } else {\n function.add(new Lshr(resultVar, op1, shift));\n }\n } else if (rightOp instanceof SubExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Sub(resultVar, op1, op2));\n } else {\n function.add(new Fsub(resultVar, op1, op2));\n }\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof CmplExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPL : DCMPL;\n function.add(new Call(resultVar, f, op1, op2));\n } else if (rightOp instanceof CmpgExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPG : DCMPG;\n function.add(new Call(resultVar, f, op1, op2));\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else if (rightOp instanceof CastExpr) {\n Value op = immediate(stmt, (Immediate) ((CastExpr) rightOp).getOp());\n soot.Type sootTargetType = ((CastExpr) rightOp).getCastType();\n soot.Type sootSourceType = ((CastExpr) rightOp).getOp().getType();\n if (sootTargetType instanceof PrimType) {\n Type targetType = getType(sootTargetType);\n Type sourceType = getType(sootSourceType);\n if (targetType instanceof IntegerType && sourceType instanceof IntegerType) {\n // op is at least I32 and has already been widened if source type had fewer bits then I32\n IntegerType toType = (IntegerType) targetType;\n IntegerType fromType = (IntegerType) op.getType();\n Variable v = function.newVariable(toType);\n if (fromType.getBits() < toType.getBits()) {\n // Widening\n if (isUnsigned(sootSourceType)) {\n function.add(new Zext(v, op, toType));\n } else {\n function.add(new Sext(v, op, toType));\n }\n } else if (fromType.getBits() == toType.getBits()) {\n function.add(new Bitcast(v, op, toType));\n } else {\n // Narrow\n function.add(new Trunc(v, op, toType));\n }\n result = widenToI32Value(v.ref(), isUnsigned(sootTargetType));\n } else if (targetType instanceof FloatingPointType && sourceType instanceof IntegerType) {\n // we always to a signed conversion since if op is char it has already been zero extended to I32\n Variable v = function.newVariable(targetType);\n function.add(new Sitofp(v, op, targetType));\n result = v.ref();\n } else if (targetType instanceof FloatingPointType && sourceType instanceof FloatingPointType) {\n Variable v = function.newVariable(targetType);\n if (targetType == FLOAT && sourceType == DOUBLE) {\n function.add(new Fptrunc(v, op, targetType));\n } else if (targetType == DOUBLE && sourceType == FLOAT) {\n function.add(new Fpext(v, op, targetType));\n } else {\n function.add(new Bitcast(v, op, targetType));\n }\n result = v.ref();\n } else {\n // F2I, F2L, D2I, D2L\n FunctionRef f = null;\n if (targetType == I32 && sourceType == FLOAT) {\n f = F2I;\n } else if (targetType == I64 && sourceType == FLOAT) {\n f = F2L;\n } else if (targetType == I32 && sourceType == DOUBLE) {\n f = D2I;\n } else if (targetType == I64 && sourceType == DOUBLE) {\n f = D2L;\n } else {\n throw new IllegalArgumentException();\n }\n Variable v = function.newVariable(targetType);\n function.add(new Call(v, f, op));\n result = v.ref();\n }\n } else {\n if (sootTargetType instanceof soot.ArrayType \n && ((soot.ArrayType) sootTargetType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) sootTargetType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(CHECKCAST_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(sootTargetType);\n Trampoline trampoline = new Checkcast(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n }\n } else if (rightOp instanceof InstanceOfExpr) {\n Value op = immediate(stmt, (Immediate) ((InstanceOfExpr) rightOp).getOp());\n soot.Type checkType = ((InstanceOfExpr) rightOp).getCheckType();\n if (checkType instanceof soot.ArrayType \n && ((soot.ArrayType) checkType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) checkType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(INSTANCEOF_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(checkType);\n Trampoline trampoline = new Instanceof(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n } else if (rightOp instanceof NewExpr) {\n String targetClassName = getInternalName(((NewExpr) rightOp).getBaseType());\n FunctionRef fn = null;\n if (targetClassName.equals(this.className)) {\n fn = FunctionBuilder.allocator(sootMethod.getDeclaringClass()).ref();\n } else {\n Trampoline trampoline = new New(this.className, targetClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env);\n } else if (rightOp instanceof NewArrayExpr) {\n NewArrayExpr expr = (NewArrayExpr) rightOp;\n Value size = immediate(stmt, (Immediate) expr.getSize());\n if (expr.getBaseType() instanceof PrimType) {\n result = call(getNewArray(expr.getBaseType()), env, size);\n } else {\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Anewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, size);\n }\n } else if (rightOp instanceof NewMultiArrayExpr) {\n NewMultiArrayExpr expr = (NewMultiArrayExpr) rightOp;\n if (expr.getBaseType().numDimensions == 1 && expr.getBaseType().getElementType() instanceof PrimType) {\n Value size = immediate(stmt, (Immediate) expr.getSize(0));\n result = call(getNewArray(expr.getBaseType().getElementType()), env, size);\n } else {\n for (int i = 0; i < expr.getSizeCount(); i++) {\n Value size = immediate(stmt, (Immediate) expr.getSize(i));\n Variable ptr = function.newVariable(new PointerType(I32));\n function.add(new Getelementptr(ptr, dims.ref(), 0, i));\n function.add(new Store(size, ptr.ref()));\n }\n Variable dimsI32 = function.newVariable(new PointerType(I32));\n function.add(new Bitcast(dimsI32, dims.ref(), dimsI32.getType()));\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Multianewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, new IntegerConstant(expr.getSizeCount()), dimsI32.ref());\n }\n } else if (rightOp instanceof InvokeExpr) {\n result = invokeExpr(stmt, (InvokeExpr) rightOp);\n } else if (rightOp instanceof LengthExpr) {\n Value op = immediate(stmt, (Immediate) ((LengthExpr) rightOp).getOp());\n checkNull(stmt, op);\n Variable v = function.newVariable(I32);\n function.add(new Call(v, ARRAY_LENGTH, op));\n result = v.ref();\n } else if (rightOp instanceof NegExpr) {\n NegExpr expr = (NegExpr) rightOp;\n Value op = immediate(stmt, (Immediate) expr.getOp());\n Type rightType = op.getType();\n Variable v = function.newVariable(op.getType());\n if (rightType instanceof IntegerType) {\n function.add(new Sub(v, new IntegerConstant(0, (IntegerType) rightType), op));\n } else {\n function.add(new Fmul(v, new FloatingPointConstant(-1.0, (FloatingPointType) rightType), op));\n }\n result = v.ref();\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n \n soot.Value leftOp = stmt.getLeftOp();\n \n if (leftOp instanceof Local) {\n Local local = (Local) leftOp;\n VariableRef v = new VariableRef(local.getName(), new PointerType(getLocalType(leftOp.getType())));\n function.add(new Store(result, v, !sootMethod.getActiveBody().getTraps().isEmpty()));\n } else {\n Type leftType = getType(leftOp.getType());\n Value narrowedResult = narrowFromI32Value(leftType, result);\n if (leftOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) leftOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n if (leftOp.getType() instanceof RefLikeType) {\n call(BC_SET_OBJECT_ARRAY_ELEMENT, env, base, index, narrowedResult);\n } else {\n call(getArrayStore(leftOp.getType()), base, index, narrowedResult);\n }\n } else if (leftOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) leftOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, OBJECT_PTR, getType(ref.getType())));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new PutField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, base, narrowedResult);\n } else if (leftOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) leftOp;\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, getType(ref.getType())));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new PutStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, narrowedResult);\n } else {\n throw new IllegalArgumentException(\"Unknown type for leftOp: \" + leftOp.getClass());\n }\n }\n }", "public abstract void assign(Object value) throws IllegalStateException, InterruptedException;", "public void set_return(Facts param) {\r\n local_returnTracker = true;\r\n\r\n this.local_return = param;\r\n\r\n\r\n }", "public Object getVal()\n { return val; }", "public void setValue(A value) {this.value = value; }", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public static void main(String[] args) {\n\t\t\n\t\tTest t=new Test();\n\t\tint a=50,b=20;\n\t\tSystem.out.println(a+\" \"+b);\n\n\t\tt.meth(a,b);\n\t\t\n\t\tSystem.out.println(a+\" \"+b);//doesn't change value of a nd b\n\t\n\n}", "void visit(final Parameter parameter);", "public abstract boolean setValue(Value value, boolean asAssignment);", "void onVariableChanged(Object... newValue);", "public void setValue(Object value) { this.value = value; }", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "abstract Function get(Object arg);", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public abstract Value apply(List<Value> args, Node location);", "Object value();", "private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }", "void setPassedUser(User passedUser);", "public void setValue(Object val);", "public void processWith(IVariableVisitor iVariableVisitor);", "void passParameter(Register r, ProgramLocation m, int p) {\n Object v = getRegister(r);\n if (TRACE_INTRA) out.println(\"Passing \"+r+\" to \"+m+\" param \"+p+\": \"+v);\n if (v instanceof Set) {\n for (Iterator i = ((Set)v).iterator(); i.hasNext(); ) {\n Node n = (Node)i.next();\n n.recordPassedParameter(m, p);\n passedAsParameter.add(n);\n }\n } else {\n Node n = (Node)v;\n if(n == null) {\n System.err.println(\"Register \" + r + \"\\n\" + this.bb.fullDump());\n }\n n.recordPassedParameter(m, p);\n passedAsParameter.add(n);\n }\n }", "Object visitValue(ValueNode node, Object state);", "protected abstract int getValue(int paramInt);", "public int getValue() { return 42; }", "@Override\n public Object getReturnValue(){\n return object;\n }", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "Exp\ngetReturnValue();", "public static void main(String[] args) {\nObjectPassingDemo o=new ObjectPassingDemo();\nStudent s1=new Student();\n//s1=o.accept();\no.display(o.accept());\t\n\t}", "MyArg(int value){\n this.value = value;\n }", "public void a(vx paramvx) {}", "public int setValue (int val);", "public void printHelloWorld2(String name) {\n\t\tSystem.out.println(\"Hi \" + name +\", Hello World!\");\n\t\tname=\"Modified name\"; //no effect because of pass by value\n\t}", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public Object enterTransform(Object value) {\n return value;\n }", "synchronized public Complex value(Complex[] argumentValues) {\n\t\treturn value(argumentValues, EvalStack.perThread());\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}", "private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}", "private synchronized T val() {\n\t\t\treturn val;\n\t\t}", "public abstract V getValue();", "public void value(Complex[] argumentValues, EvalStack stack, Complex answer) {\n\t\tif (answer == null)\n\t\t\tthrow new IllegalArgumentException(\"internal error: answer object cannot be null\");\n\t\tint argCt = func.getArgCount();\n\t\tif (argCt == 0) {\n\t\t\tif (argumentValues != null && argumentValues.length > 0)\n\t\t\t\tthrow new IllegalArgumentException(\"internal error: incorrect number of arguments provided to function\");\n\t\t\tfunc.apply(stack);\n\t\t\tstack.popComplex(answer);\n\t\t}\n\t\telse {\n\t\t\tif (argumentValues == null || argumentValues.length != argCt)\n\t\t\t\tthrow new IllegalArgumentException(\"internal error: incorrect number of arguments provided to function\");\n\t\t\tfor (Complex z : argumentValues)\n\t\t\t\tstack.push(z);\n\t\t\tfunc.apply(stack);\n\t\t\tstack.popComplex(answer);\n\t\t}\n\t}", "private static <P> P copyValue(P val) {\r\n if (val instanceof Point2D) {\r\n return (P) ((Point2D)val).clone();\r\n } else {\r\n return val;\r\n }\r\n }", "public void set_return(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n local_returnTracker = false;\n \n } else {\n local_returnTracker = true;\n }\n \n this.local_return=param;\n \n\n }", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "@Override\n public void accept(ExtractedParameterValueVisitor visitor) throws FHIRPersistenceException {\n// visitor.visit(this);\n }", "void visitReferenceValue(ReferenceValue referenceValue);", "Variable getReturn();", "Object getValueFrom();", "@Override\r\n\tpublic void call(String value) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void execute(ManagedFunctionContext<None, Indexed> context) throws Throwable {\n\t\t\tparameter = (Integer) context.getObject(0);\n\t\t\tcontext.doFlow(0, \"TEST\", null);\n\t\t}", "void dispatchValue(T value);", "public Object getValue();", "public Object getValue();" ]
[ "0.7646433", "0.6294883", "0.5956857", "0.5922158", "0.58275723", "0.5730918", "0.56947494", "0.5669341", "0.56563807", "0.56347495", "0.56292033", "0.56275463", "0.5626482", "0.56183684", "0.5610912", "0.55965704", "0.5595303", "0.5584776", "0.55670416", "0.55566233", "0.55364627", "0.55283135", "0.5525845", "0.5494862", "0.5494176", "0.547494", "0.54674757", "0.5460685", "0.54500943", "0.54484266", "0.54267704", "0.54041505", "0.53885067", "0.5382917", "0.53723866", "0.5370341", "0.53528976", "0.5348959", "0.53395164", "0.5336541", "0.53128207", "0.5301924", "0.5299441", "0.5298678", "0.5297778", "0.5295116", "0.5295116", "0.5295116", "0.5295116", "0.5295116", "0.5295116", "0.5295116", "0.52846056", "0.5273249", "0.5262364", "0.52534544", "0.5246778", "0.5228162", "0.522274", "0.5218043", "0.5197401", "0.5190545", "0.5177257", "0.5169414", "0.51654255", "0.5165208", "0.5162716", "0.51506126", "0.5148926", "0.51400703", "0.5132554", "0.51262176", "0.51253134", "0.5123799", "0.51041555", "0.5085692", "0.5071379", "0.5069397", "0.50670946", "0.50670946", "0.50670946", "0.5057431", "0.50532395", "0.504719", "0.5037406", "0.5032448", "0.50282484", "0.5023762", "0.5010542", "0.50091714", "0.50074404", "0.50040966", "0.50032455", "0.500277", "0.5002485", "0.49984694", "0.4995253", "0.49952504", "0.4994116", "0.49923635", "0.49923635" ]
0.0
-1
Created by xiyoung on 2016/7/9.
public interface IDaXiangListView extends BaseView{ void loadMoreData(DaXiangList daXiangList); void reFreshData(DaXiangList daXiangList); void weatherLoaded(WeatherBean weatherBean); void daXiangLoadCompleted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void poetries() {\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\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void init() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void getExras() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void memoria() {\n \n }", "private void m50366E() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo55254a() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void mo12930a() {\n }", "public void mo21877s() {\n }" ]
[ "0.62140244", "0.6065823", "0.60575503", "0.6010755", "0.6010755", "0.5982891", "0.5980121", "0.59633285", "0.5872916", "0.5872", "0.5855072", "0.58487433", "0.5847952", "0.5844034", "0.5841823", "0.5825816", "0.5824464", "0.58157593", "0.57754445", "0.5773795", "0.5769881", "0.5749804", "0.5742177", "0.57297164", "0.57238424", "0.57238424", "0.57238424", "0.57238424", "0.57238424", "0.57101005", "0.57091725", "0.5705437", "0.5705437", "0.5699566", "0.56926584", "0.5686654", "0.56643516", "0.56623566", "0.56516176", "0.5628474", "0.561606", "0.5611767", "0.5611767", "0.5611767", "0.560523", "0.560523", "0.560523", "0.5605102", "0.5605102", "0.5605102", "0.5605102", "0.5605102", "0.5605102", "0.5605102", "0.5602473", "0.5602473", "0.5602473", "0.55983734", "0.5598369", "0.5595293", "0.55924344", "0.55924344", "0.559004", "0.55817527", "0.55724597", "0.55640537", "0.55640537", "0.5560077", "0.55512655", "0.5547972", "0.5545467", "0.5541216", "0.5534691", "0.55316246", "0.5531553", "0.5525308", "0.55236167", "0.5513734", "0.5513499", "0.5508118", "0.5503875", "0.5503875", "0.5503875", "0.5503875", "0.5503875", "0.5503875", "0.5500273", "0.5496789", "0.54903835", "0.54896575", "0.54876935", "0.547708", "0.5474419", "0.54743487", "0.5468923", "0.5457175", "0.54560196", "0.5415484", "0.5414597", "0.5412529", "0.5408985" ]
0.0
-1
Constructs a ContextInitializer that will load profile properties from the property name .profiles
public ProfileContextInitializer(final String appName) { this(appName, DEFAULT_VERSION, appName + DEFAULT_PROFILE_PROPERTY_SUFFIX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}", "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion) {\r\n\t\tthis(appName, appVersion, appName + DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}", "private SpringProfile() {}", "public ProfileServiceBootstrap()\n {\n }", "private static Configuration loadProperties(final String[] profiles) {\n final CombinedConfiguration configuration = new CombinedConfiguration(DEFAULT_COMBINER);\r\n\r\n // Not very intuitive: First load the specific properties files and then add the default one\r\n final List<String> configurationsToLoad = //\r\n Stream.of(profiles) //\r\n .filter(p -> !isBlank(p)) //\r\n .map(p -> CONFIG_FILE_PREFIX + p) //\r\n .collect(collectingAndThen( //\r\n toList(), //\r\n confs -> { // this code runs AFTER the toList. So the \"application\" is added at the end\r\n confs.add(DEFAULT_CONFIG_FILE_NAME);\r\n return confs;\r\n }));\r\n\r\n // for the sake of readability do a separate stream... but it could be attatched to the collect from above\r\n configurationsToLoad.stream() //\r\n .map(Environment::propertiesFileBuilder) //\r\n .map(Environment::safeGetConfiguration) //\r\n .forEach(configuration::addConfiguration);\r\n\r\n // useful when using docker where you may want to set environment variables in the docker-compose or docker run\r\n System.getenv().forEach((k, v) -> {\r\n if (configuration.containsKey(k)) {\r\n System.out.println(\"Overriding property \" + k + \" with value \" + v);\r\n }\r\n configuration.setProperty(k, v);\r\n });\r\n\r\n return configuration;\r\n }", "public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }", "private IProfileFacade createAndInitializeProfileFacade(\n \t\t\tIFile profileApplicationFile, Collection<Profile> profiles)\n \t\t\tthrows CoreException, IOException {\n \n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\tfor (Profile profile : profiles) {\n \t\t\tfacade.loadProfile(profile);\n \t\t}\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ZERO, new NullProgressMonitor());\n \t\treturn facade;\n \t}", "public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }", "public Profile() {}", "public LogProfileProperties() {\n }", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "public static ConfigurableApplicationContext create(String[] profiles) {\n AnnotationConfigApplicationContext bootstrapContext = new AnnotationConfigApplicationContext();\n\n // Get bootstrap environment and add to a composite property source\n ConfigurableEnvironment bootstrapEnvironment = getBootstrapEnvironment(bootstrapContext, profiles);\n MutablePropertySources bootstrapPropertySources = bootstrapEnvironment.getPropertySources();\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);\n CompositePropertySource bootstrapPropertySource = new CompositePropertySource(\"bootstrap\");\n bootstrapPropertySources.forEach(bootstrapPropertySource::addPropertySource);\n bootstrapContext.getEnvironment().getPropertySources().addLast(bootstrapPropertySource);\n\n ClassLoader classLoader = bootstrapContext.getClassLoader();\n List<String> names = SpringFactoriesLoader\n .loadFactoryNames(BootstrapConfiguration.class, classLoader);\n List<Class<?>> sources = new ArrayList<>();\n for (String name : names) {\n sources.add(ClassUtils.resolveClassName(name, classLoader));\n }\n AnnotationAwareOrderComparator.sort(sources);\n\n bootstrapContext.setEnvironment(bootstrapEnvironment);\n sources.forEach(bootstrapContext::register);\n bootstrapContext.refresh();\n return bootstrapContext;\n }", "public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "public ProfileResource() {\n }", "public void setProfiles(HashMap<String, String> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "public ConfigProfile buildProfileOne() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.p12\";\n this.trustStoreType = \"PKCS12\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );", "ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;", "public abstract Properties getProfileProperties();", "public void setProfilesLocation(String profilesLocation) {\n this.profilesLocation = profilesLocation;\n }", "private void process(ServletContext context) {\n\t\ttry {\n\t\t\tSystemConfigurationManager systemConfigurationManager = (SystemConfigurationManager) SpringContext\n\t\t\t\t\t.getBean(\"systemConfigurationManager\");\n\t\t\tProfileManager profileManager = (ProfileManager) SpringContext\n\t\t\t\t\t.getBean(\"profileManager\");\n\n\t\t\t// Upgrade from 2.3\n\t\t\tSystemConfiguration profileOverrideInitConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileoverride.init.enable\");\n\t\t\tif (profileOverrideInitConfig != null) {\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileOverrideInitConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.setupProfileOverrides();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Upgrade to 2.2 (if not already done)\n\t\t\tSystemConfiguration profileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileupgrade.enable\");\n\t\t\tif (profileUpgradeEnableConfig != null) {\n\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.compareProfiles();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Profile comparison has been completed in previous cycles.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"profileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Creation of canned profiles\n\t\t\tSystemConfiguration cannedProfileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"cannedprofile.enable\");\n\t\t\tif (cannedProfileUpgradeEnableConfig != null) {\n\t\t\t\tif (\"1\".equalsIgnoreCase(cannedProfileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.createCannedProfiles();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"cannedprofileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Add on More Default profiles -> Outdoor profile\n\t\t\tCompanyManager companyManager = (CompanyManager) SpringContext\n\t\t\t\t\t.getBean(\"companyManager\");\n\t\t\tCompany company = companyManager.getCompany();\n\t\t\tSystemConfiguration addMoreDefaultProfileConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\tif (company != null\n\t\t\t\t\t&& company.getCompletionStatus().intValue() == 3) {\n\t\t\t\tif (addMoreDefaultProfileConfig != null) {\n\n\t\t\t\t\tif (\"true\".equalsIgnoreCase(addMoreDefaultProfileConfig\n\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\t\tprofileManager.addMoreDefaultProfile();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(\"Some more default profile has been already added.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"More Default profile cannot be added as default company has not been added yet.\");\n\t\t\t\tSystemConfiguration addMoreProfileConfig = systemConfigurationManager\n\t\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\t\taddMoreProfileConfig.setValue(\"false\");\n\t\t\t\tsystemConfigurationManager.save(addMoreProfileConfig);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"Profiler Handler could not complete because of \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// ENL-2685 : End\n\n\t\t// Do all the clean up here. Add the clean up code in\n\t\t// systemCleanUpManager class.\n\t\tSystemCleanUpManager systemCleanUpManager = (SystemCleanUpManager) SpringContext\n\t\t\t\t.getBean(\"systemCleanUpManager\");\n\t\tsystemCleanUpManager.resetAllFixtureGroupSyncFlag();\n\n\t\tString userPath = context.getRealPath(\"/\");\n\t\tif (userPath != null) {\n\t\t\tSystem.out.println(new Date() + \" *** Setting up path \" + userPath);\n\t\t\tServerMain.getInstance().setTomcatLocation(userPath);\n\t\t\tSystem.out.println(new Date() + \" *** Initializing logger\");\n\t\t\tinitLogger(context);\n\t\t} else {\n\t\t\tlogger.fatal(\"Could Not get the real path of Servlet Context\");\n\t\t}\n\n\t\t// Start the Quartz scheduler\n\t\tSystem.out.println(new Date() + \" *** Initializing scheduler\");\n\t\tSchedulerManager.getInstance();\n\t\tgatewayPoll = new Timer(\"Gateway UTC sync\", true);\n\t\tGatewayUTCSync osync = new GatewayUTCSync();\n\t\tgatewayPoll.schedule(osync, ONE_MINUTE_DELAY);\n\t\tSystem.out.println(new Date() + \" *** set EMS mode\");\n\t\tEmsModeControl.resetToNormalIfImageUpgrade();\n \n // Start UEM ping scheduler \n\t\ttry {\n\t\t\tSystem.out.println(new Date() + \" *** starting GLEM check scheduler job\");\n\t\t\tUEMSchedulerManager uemSchedulerManager = (UEMSchedulerManager) SpringContext\n\t\t\t\t\t.getBean(\"uemSchedulerManager\");\n\t\t\tuemSchedulerManager.addUEMSchedulerJob(userPath);\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Could not start uem schedule manager\");\n\t\t} \t\t\t\t\n \n\t\tSystem.out.println(new Date() + \" *** done\");\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n profiles = ProfileManager.getDefaultManager().getAllProfiles();\n\n profileList = this;\n }", "public ConfigProfile buildProfileTwo() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }", "@Override\n public void init(Properties properties) {\n super.init(properties);\n String categoriesFilePath = properties.getProperty(\"categoriesFilePath\", \"\");\n String gemetFilePath = properties.getProperty(\"gemetFilePath\", \"\");\n String lang = properties.getProperty(\"lang\", \"\");\n\n for (Locale l: Locale.getAvailableLocales()) {\n if (l.getLanguage().equalsIgnoreCase(lang)) {\n locale = l;\n break;\n }\n }\n\n ContextInitializer initializer = new ContextInitializer(ontCtx,\n categoriesFilePath, gemetFilePath);\n initializer.initialize();\n\n }", "public ProfileManagerImpl() {\n try {\n Profile uml = new ProfileUML();\n defaultProfiles.add(uml);\n registerProfile(uml);\n registerProfile(new ProfileJava(uml));\n } catch (ProfileException e) {\n throw new RuntimeException(e);\n }\n\n loadDirectoriesFromConfiguration();\n\n refreshRegisteredProfiles();\n\n loadDefaultProfilesfromConfiguration();\n }", "public Profile (String n, String cName, String cID, String dir) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public ProfiledApplicationBean() {}", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "public ConfigProfile buildProfileFour() {\n this.topicsRegex = \"^kafka-data[0-9]$\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.headerSupport = true;\n this.headerIndex = \"splunk.header.index\";\n this.headerSource = \"splunk.header.source\";\n this.headerSourcetype = \"splunk.header.sourcetype\";\n this.headerHost = \"splunk.header.host\";\n\n return this;\n }", "@ModelAttribute(\"roles\")\n\tpublic List<UserProfile> initializeProfiles() {\n\t\treturn userProfileService.findAll();\n\t}", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Properties readConfigurationAsProperties(String moduleName, String profile) throws Exception;", "public interface ProfilingService {\n String PROFILES = \"profiles\";\n\n /**\n * Get the profile factory for a given data source\n *\n * @param dataSourceMetadata the data source metadata\n * @return a ProfileFactory that accepts the reference (or null if it doesn't exist)\n */\n ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );\n\n /**\n * Return a boolean indicating whether a ProfileFactory exists for the given data source\n *\n * @param dataSourceMetadata the data source metadata\n * @return true iff there is a ProfileFactory that accepts the reference\n */\n boolean accepts( DataSourceMetadata dataSourceMetadata );\n\n /**\n * Creates a profile from the ProfileConfiguration and returns its initial status\n *\n * @param profileConfiguration the profile configuration\n * @return a ProfileStatusManager for the created profile\n * @throws ProfileCreationException if there is an error during profile creation\n */\n ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;\n\n /**\n * Returns a list of the currently active profiles\n *\n * @return a list of the currently active profiles\n */\n List<ProfileStatusReader> getActiveProfiles();\n\n /**\n * Returns the profile for a given profileId\n *\n * @param profileId the profileId\n * @return the Profile\n */\n Profile getProfile( String profileId );\n\n /**\n * Returns the a ProfileStatusReader for the given profileId\n *\n * @param profileId the profileId\n * @return the ProfileStatusReader\n */\n ProfileStatusReader getProfileUpdate( String profileId );\n\n /**\n * Stops the profile with the given id\n *\n * @param profileId the profileId to stop\n */\n void stop( String profileId );\n\n /**\n * Stops all the running profiles\n */\n void stopAll();\n\n /**\n * Returns a boolean indicating whether a profile is running\n *\n * @param profileId the profileId to check\n * @return a boolean indicating whether a profile is running\n */\n boolean isRunning( String profileId );\n\n /**\n * Discards the profile with the given id\n *\n * @param profileId the profileId to discard\n */\n void discardProfile( String profileId );\n\n /**\n * Discards all profiles\n */\n void discardProfiles();\n}", "public ConfigProfile buildProfileDefault() {\n this.topics = \"mytopic\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = false;\n this.ack = true;\n this.indexes = \"\";\n this.sourcetypes = \"\";\n this.sources = \"\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.jks\";\n this.trustStoreType = \"JKS\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"ni=hao,hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = true;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.lineBreaker = \"\\n\";\n return this;\n }", "public String[] getProfiles();", "@ModelAttribute(\"roles\")\r\n\tpublic List<UserProfile> initializeProfiles() {\r\n\t\treturn userProfileService.findAll();\r\n\t}", "public ProfileProjectBean() {\n }", "ProfileConfigurationManager getProfileConfigurationManager() throws UserStoreException;", "private static Properties createLoaderProperties(String inPrefix) {\r\n Properties props = new Properties();\r\n props.setProperty(inPrefix + \"Property1\", \"Value1Prop\");\r\n props.setProperty(inPrefix + \"Property2\", \"Value2Prop\");\r\n return props;\r\n }", "public ProfileService(String endpoint) {\n \t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "public void setProfiles(Set<Profile> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "public AnalysisProfile(){\n\t\tsuper();\n\t\tthis.terms = new HashMap<String, Integer>();\n\t\tthis.sources = new ArrayList<String>();\n\t\tthis.stopWords = new HashSet<String>();\n\t\tthis.yearFrom = -1;\n\t\tthis.yearTo = -1;\n\t\tthis.contextSize = 5;\n\t\tthis.useCompounds = false;\n\t\tthis.useStopwords = true;\n\t\tthis.useOnlyContexts = true;\n\t\tthis.results = new StringBuilder();\n\t\tthis.corpus = new ArrayList<File>();\n\t}", "public System() {\n\t\tsuper();\n\t\tthis.profiles = new HashSet<Profile>();\n\t}", "public LegProfile ()\n {\n\t// For Jackson ObjectMapper's sanity!\n }", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "public String getProfilesLocation() {\n return profilesLocation;\n }", "static AuditYamlConfigurationLoader withSystemProperties()\n {\n return withProperties(System.getProperties());\n }", "public ProfileManager() {\r\n this.profileDAO = DAOFactory.getProfileDAOInstance();\r\n }", "@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }", "@Bean\n public WebSSOProfileECPImpl ecpprofile() {\n return new WebSSOProfileECPImpl();\n }", "CertprofileQa getCertprofile(String certprofileName);", "public Profile (String n, String cName, String cID, String dir, ArrayList<String> backupNames) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public ProfileService(String endpoint) {\n\t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n\t}", "@Override\n\t\tpublic ProfileImpl build() {\n\t\t\treturn new ProfileImpl(\n\t\t\t\tsecurity,\n\t\t\t\t(ProfileInfo)map.get(PROFILE_INFO),\n\t\t\t\t(Address)map.get(ADDRESS),\n\t\t\t\t(Address)map.get(SHIPPING_ADDRESS),\n\t\t\t\t(Social)map.get(SOCIAL),\n\t\t\t\t(Attributes)map.get(ATTRIBUTES)\n\t\t\t);\n\t\t}", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }", "public DefaultProfileCompletenessRetriever() {\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "@ModelAttribute(\"roles\")\n public List<UserProfile> initializeProfiles() {\n return userProfileService.findAll();\n }", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<String> loadProfiles() {\n List<String> profileNames = new ArrayList<>();\n profilesMap.clear();\n\n ProfilesWrapper profiles = (ProfilesWrapper) XMLFileManager.loadXML(\"profiles.xml\", ProfilesWrapper.class);\n if (profiles != null && profiles.getProfiles() != null) {\n for (Profiles prof : profiles.getProfiles()) {\n profileNames.add(prof.getFileName());\n profilesMap.put(prof.getFileName(), new Profiles(prof.getFileName(), prof.getFilePath()));\n }\n }\n return profileNames;\n }", "private WSSecurityProfileManager () throws WSSecurityProfileManagerException {\n \t \n \t// Quick 'n' dirty - expects the files containing profiles to be in the right format.\n \t\n \tBufferedReader profilesFileReader = null;\n String line;\n \n wsSecurityProfiles_SystemDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_SystemDefined = new Vector<String>();\n wsSecurityProfileDescriptions_SystemDefined = new Vector<String>();\n\n // Read the profiles from the file\n try{\n \n profilesFileReader = new BufferedReader(new InputStreamReader(WSSecurityProfileManager.class.getResourceAsStream(\"/profiles/WSSecurity.profiles\")));\n \n\t\t\twhile ((line = profilesFileReader.readLine()) != null) {\n\t\t\t\t// skip empty lines\n\t\t\t\twhile ((line != null) && (line.trim().length() == 0)) {\n\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t}\n\n\t\t\t\tif ((line != null)\n\t\t\t\t\t\t&& line.startsWith(\"-----BEGIN PROFILE-----\")) {\n\n\t\t\t\t\t// Start of the new profile\n\t\t\t\t\tWSSecurityProfile wsSecurityProfile = new WSSecurityProfile();\n\t\t\t\t\twhile ((line != null)\n\t\t\t\t\t\t\t&& (!line.equals(\"-----END PROFILE-----\"))) {\n\n\t\t\t\t\t\t// Skip empty lines\n\t\t\t\t\t\twhile ((line != null) && (line.trim().length() == 0)) {\n\t\t\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Remove white space from the begining and end of the\n\t\t\t\t\t\t// line\n\t\t\t\t\t\tline = line.trim();\n\t\t\t\t\t\tif (line.startsWith(\"Name=\")) { // must be single line\n\t\t\t\t\t\t\twsSecurityProfile.setWSSecurityProfileName(line\n\t\t\t\t\t\t\t\t\t.substring(5));\n\t\t\t\t\t\t} else if (line.startsWith(\"Description=\")) { // must be single line\n\t\t\t\t\t\t\twsSecurityProfile\n\t\t\t\t\t\t\t\t\t.setWSSecurityProfileDescription(line\n\t\t\t\t\t\t\t\t\t\t\t.substring(12));\n\t\t\t\t\t\t} else if (line.startsWith(\"Profile=\")) { // first line of profile text\n\t\t\t\t\t\t\twsSecurityProfile.setWSSecurityProfileString(line\n\t\t\t\t\t\t\t\t\t.substring(8)\n\t\t\t\t\t\t\t\t\t+ \"\\n\");\n\t\t\t\t\t\t} else { // continuation of profile text\n\t\t\t\t\t\t\twsSecurityProfile\n\t\t\t\t\t\t\t\t\t.setWSSecurityProfileString(wsSecurityProfile\n\t\t\t\t\t\t\t\t\t\t\t.getWSSecurityProfileString()\n\t\t\t\t\t\t\t\t\t\t\t+ line + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t\t}\n\t\t\t\t\twsSecurityProfiles_SystemDefined.add(wsSecurityProfile);\n\t\t\t\t\twsSecurityProfileNames_SystemDefined.add(wsSecurityProfile\n\t\t\t\t\t\t\t.getWSSecurityProfileName());\n\t\t\t\t\twsSecurityProfileDescriptions_SystemDefined\n\t\t\t\t\t\t\t.add(wsSecurityProfile\n\t\t\t\t\t\t\t\t\t.getWSSecurityProfileDescription());\n\t\t\t\t}\n\t\t\t}\n\t\t\tlogger.info(\"Loaded system-defined WS-Security profiles.\");\n }\n /*\n\t\t * catch(FileNotFoundException ex){ // should not happen - we have\n\t\t * already checked if resource existed String exMessage =\n\t\t * \"WSSecurityProfileManager: missing pre-defined WS Security profiles\n\t\t * file.\"; throw new WSSecurityProfileManagerException(exMessage); }\n\t\t */\n catch(Exception ex){\n \tString exMessage = \"WSSecurityProfileManager failed to read the file with pre-defined WS Security profiles.\";\n \tlogger.error(exMessage, ex);\n \tthrow new WSSecurityProfileManagerException(exMessage);\n }\n finally {\n \tif (profilesFileReader != null)\n \t{\n \t\ttry {\n \t\t\tprofilesFileReader.close();\n \t \t\t}\n \t catch (IOException e) { \n \t \t//ignore\n \t }\n \t }\n \t } \n \n // File with user-defined profiles\n \tprofilesFile_UserDefined = new File (getConfigurationDirectory(),\"UserWSSecurity.profiles\");\n\n wsSecurityProfiles_UserDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_UserDefined = new Vector<String>();\n wsSecurityProfileDescriptions_UserDefined = new Vector<String>();\n \n \t// Check if the file exists - it may not exist yet if user has not previously saved any profiles\n \tif (profilesFile_UserDefined.exists()){\n \t\t\n wsSecurityProfiles_UserDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_UserDefined = new Vector<String>();\n wsSecurityProfileDescriptions_UserDefined = new Vector<String>();\n \n BufferedReader userProfilesFileReader = null;\n \t try{\n \t \t // Open the file for reading\n \t \t userProfilesFileReader = new BufferedReader(new FileReader(profilesFile_UserDefined));\n \n \t \t // Read the user-defined profiles\n \t while ((line=userProfilesFileReader.readLine())!=null) {\n \t \t//skip empty lines\n \t \twhile ((line!=null) && (line.trim().length() == 0)){\n \t \t\tline=userProfilesFileReader.readLine();\n \t \t}\n \t \t\n \t if ((line!=null) && line.startsWith(\"-----BEGIN PROFILE-----\")) {\n\n \t \t // Start of the new profile\n \t \t WSSecurityProfile wsSecurityProfile = new WSSecurityProfile();\n \t \t while ((line!=null) && (!line.equals(\"-----END PROFILE-----\"))){\n\n \t \t// Skip empty lines\n \t \twhile ((line!=null) && (line.trim().length() == 0)){\n \t \t\tline=userProfilesFileReader.readLine();\n \t \t}\n \t \t// Remove white space from the begining and end of the line\n \t \tline = line.trim();\n \t \tif (line.startsWith(\"Name=\")){ // must be single line\n \t \t\twsSecurityProfile.setWSSecurityProfileName(line.substring(5)); \t\t\n \t \t}\n \t \telse if (line.startsWith(\"Description=\")){ // must be single line\n \t \t\twsSecurityProfile.setWSSecurityProfileDescription(line.substring(12));\n \t \t}\n \t \telse if (line.startsWith(\"Profile=\")){ // first line of profile text\n \t \t\twsSecurityProfile.setWSSecurityProfileString(line.substring(8) +\"\\n\"); \t\t\t\n \t \t}\n \t \telse{ // continuation of profile text\n \t \t\twsSecurityProfile.setWSSecurityProfileString(wsSecurityProfile.getWSSecurityProfileString() + line + \"\\n\");\n \t \t}\n \t \tline=userProfilesFileReader.readLine();\n \t \t }\n \t \twsSecurityProfiles_UserDefined.add(wsSecurityProfile);\n \t \twsSecurityProfileNames_UserDefined.add(wsSecurityProfile.getWSSecurityProfileName());\n \t \twsSecurityProfileDescriptions_UserDefined.add(wsSecurityProfile.getWSSecurityProfileDescription());\n \t }\n \t }\n \t \t\tlogger.info(\"Loaded user-defined WS-Security profiles.\");\n \t }\n \t /*\n \t catch(FileNotFoundException ex){\n \t \t // Should not happen as we've already checked for the existence of the file\n \t }\n \t */\n \t catch(IOException ex){\n \t \t String exMessage = \"WSSecurityProfileManager failed to read the file with user-defined WS Security profiles.\";\n \t \t logger.error(exMessage, ex);\n \t \t throw new WSSecurityProfileManagerException(exMessage);\n \t }\n \t finally {\n \t \tif (userProfilesFileReader != null)\n \t \t{\n \t \t\ttry {\n \t \t\t\tuserProfilesFileReader.close();\n \t \t\t}\n \t \t\tcatch (IOException e) { \n \t \t//ignore\n \t \t\t}\n \t \t}\n \t } \n \t}\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }", "public org.beangle.security.session.protobuf.Model.Profile.Builder addProfilesBuilder() {\n return getProfilesFieldBuilder().addBuilder(\n org.beangle.security.session.protobuf.Model.Profile.getDefaultInstance());\n }", "void getProfilesInTimeWindow(Future<List<AggregatedProfileNamingStrategy>> profiles, String baseDir, String appId, String clusterId, String proc, ZonedDateTime startTime, int durationInSeconds);", "public static Profile getProfile() {\n return profile;\n }", "@Bean\n public SAMLContextProviderImpl contextProvider(final SAMLProperties properties) {\n if (properties.getLoadBalancer() != null) {\n log.info(\"Using SAMLContextProviderLB implementation of SAMLContextProvider for context provider bean.\");\n final SAMLContextProviderLB lb = new SAMLContextProviderLB();\n final SAMLProperties.LoadBalancer lbProps = properties.getLoadBalancer();\n final String scheme = lbProps.getScheme();\n log.info(\"Setting the load balancer scheme to {}\", scheme);\n lb.setScheme(scheme);\n final String serverName = lbProps.getServerName();\n log.info(\"Setting the load balancer server name to {}\", serverName);\n lb.setServerName(serverName);\n final String contextPath = lbProps.getContextPath();\n log.info(\"Setting the load balancer context path to {}\", contextPath);\n lb.setContextPath(contextPath);\n final int serverPort = lbProps.getServerPort();\n log.info(\"Setting the load balancer port to {}\", serverPort);\n lb.setServerPort(serverPort);\n final boolean includeServerPort = lbProps.isIncludeServerPortInRequestURL();\n log.info(\"Setting whether to include the server port in the request URL to {}\", includeServerPort);\n lb.setIncludeServerPortInRequestURL(includeServerPort);\n return lb;\n } else {\n log.info(\"Using SAMLContextProviderImpl implementation of SAMLContextProvider for context provider bean.\");\n return new SAMLContextProviderImpl();\n }\n }", "public LoadTestProperties() {\n }", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "public ProfileServiceWithDefaults profileWithDefaults() {\n return service.getProfileServiceWithDefaultsAndCallbacks();\n }", "public void startProfiles() {\n int currentUserId = getCurrentUserId();\n if (ActivityManagerDebugConfig.DEBUG_MU) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked\");\n }\n List<UserInfo> profiles = this.mInjector.getUserManager().getProfiles(currentUserId, false);\n List<UserInfo> profilesToStart = new ArrayList<>(profiles.size());\n for (UserInfo user : profiles) {\n if ((user.flags & 16) == 16 && user.id != currentUserId && !user.isQuietModeEnabled()) {\n profilesToStart.add(user);\n } else if (user.id != currentUserId && user.isClonedProfile()) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked clone profile: \" + user);\n profilesToStart.add(user);\n }\n }\n int profilesToStartSize = profilesToStart.size();\n int i = 0;\n while (i < profilesToStartSize) {\n startUser(profilesToStart.get(i).id, false);\n i++;\n }\n if (i < profilesToStartSize) {\n Slog.w(\"ActivityManager\", \"More profiles than MAX_RUNNING_USERS\");\n }\n }", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected List<Profile> createProfiles(String namespace, JsonNode node) {\n List<Profile> profiles = new LinkedList();\n if (Namespace.isNamespaceValid(namespace)) {\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> entry = it.next();\n profiles.add(new Profile(namespace, entry.getKey(), entry.getValue().asText()));\n }\n } else {\n throw new CatalogException(\n \"Invalid namespace specified \" + namespace + \" for profiles \" + node);\n }\n return profiles;\n }", "public MavenSdk(ListMultimap<String, File> profileToFiles) {\n this.profileToFiles = profileToFiles;\n resourceFile = getSingletonFile(\"Resources\").toString();\n }", "@Profile(\"development\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDevDataSource(){\r\n\t\t\r\n //Create dataSource for HSQLDB connection.\r\n\t\t\r\n\t BasicDataSource dataSource = new BasicDataSource();\r\n\t dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\r\n\t //Create HSQLDB in memory. \r\n\t dataSource.setUrl(\"jdbc:hsqldb:mem:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t //Create HSQLDB in file located in the application folder.\r\n //dataSource.setUrl(\"jdbc:hsqldb:file:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t dataSource.setUsername(\"sa\");\r\n\t dataSource.setPassword(\"\");\r\n\t\t\t\t\r\n return dataSource;\r\n }", "public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }", "Context createContext( Properties properties ) throws NamingException;", "interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }", "public AbstractJob addProfile(String namespace, String key, String value) {\n mProfiles.add(new Profile(namespace, key, value));\n return this;\n }", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "private ProfileStore(PersistentStorageAgent persistentStorageAgent) {\n this.persistentStorageAgent = persistentStorageAgent;\n profilepages = new ArrayList<>();\n }", "void load(Future<AggregatedProfileInfo> future, AggregatedProfileNamingStrategy filename);", "ApplicationProfile getApplicationProfile();", "public UserProfile() {}", "public org.beangle.security.session.protobuf.Model.Profile.Builder getProfilesBuilder(\n int index) {\n return getProfilesFieldBuilder().getBuilder(index);\n }", "protected void initTestSuiteParameter() throws FileNotFoundException {\n LOGGER.info(\"............................INITIALIZE SAKULI-CONTEXT\");\n executorService = Executors.newCachedThreadPool();\n BeanLoader.CONTEXT_PATH = \"java-dsl-beanRefFactory.xml\";\n SakuliJavaPropertyPlaceholderConfigurer.TEST_SUITE_FOLDER_VALUE = getTestSuiteFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAKULI_HOME_FOLDER_VALUE = getSakuliHomeFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAHI_HOME_VALUE = getSahiFolder();\n InitializingServiceHelper.invokeInitializingServcies();\n }", "private HashMap<String, HashMap<String, String>> getProfiledConfigs(ArrayList<HashMap<String, String>> configs) {\n\tHashMap<String, HashMap<String, String>> profiledConfigs = new HashMap<String, HashMap<String, String>>();\n\n\tfor (HashMap<String, String> config : configs) {\n\t String profileName = \"default\";\n\t if (config.containsKey(\"spring.profiles\")) {\n\t\tprofileName = config.get(\"spring.profiles\");\n\t }\n\n\t profiledConfigs.put(profileName, config);\n\t}\n\n\treturn profiledConfigs;\n }", "public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}" ]
[ "0.6906586", "0.61805785", "0.5911767", "0.5632243", "0.5630686", "0.55668986", "0.550584", "0.54930913", "0.5487802", "0.5487572", "0.5416312", "0.5400272", "0.5377096", "0.5358035", "0.5334752", "0.53142035", "0.53065246", "0.52818495", "0.52700573", "0.52284086", "0.52100515", "0.516186", "0.51147145", "0.51109165", "0.5094787", "0.5089651", "0.5068968", "0.5046768", "0.50446284", "0.5029201", "0.5028122", "0.5025987", "0.5024925", "0.50200963", "0.49670887", "0.49613565", "0.495499", "0.49425328", "0.49313325", "0.49307108", "0.49118742", "0.48713815", "0.48651344", "0.48059508", "0.4804391", "0.48024255", "0.4796541", "0.4795623", "0.4792321", "0.478965", "0.4786119", "0.47817013", "0.4771253", "0.47493848", "0.47453693", "0.47416505", "0.47404188", "0.47271731", "0.47203484", "0.4710722", "0.4710109", "0.47047132", "0.47026262", "0.46941307", "0.46928632", "0.46924198", "0.46907255", "0.46828136", "0.4676068", "0.46580386", "0.46567935", "0.4652368", "0.46435124", "0.46349335", "0.46161273", "0.46133444", "0.45917648", "0.45873222", "0.45873222", "0.45865545", "0.45743057", "0.45640138", "0.45590183", "0.45543945", "0.45504647", "0.45503336", "0.4547974", "0.4545114", "0.45251212", "0.45232233", "0.4522923", "0.45123193", "0.45087653", "0.45037985", "0.4501836", "0.44935215", "0.44779238", "0.44754136", "0.4475184", "0.44726557" ]
0.6768381
1
Constructs a ContextInitializer that will load profile properties from the property name .profiles
public ProfileContextInitializer(final String appName, final String appVersion) { this(appName, appVersion, appName + DEFAULT_PROFILE_PROPERTY_SUFFIX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}", "public ProfileContextInitializer(final String appName) {\r\n\t\tthis(appName, DEFAULT_VERSION, appName\r\n\t\t\t\t+ DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}", "private SpringProfile() {}", "public ProfileServiceBootstrap()\n {\n }", "private static Configuration loadProperties(final String[] profiles) {\n final CombinedConfiguration configuration = new CombinedConfiguration(DEFAULT_COMBINER);\r\n\r\n // Not very intuitive: First load the specific properties files and then add the default one\r\n final List<String> configurationsToLoad = //\r\n Stream.of(profiles) //\r\n .filter(p -> !isBlank(p)) //\r\n .map(p -> CONFIG_FILE_PREFIX + p) //\r\n .collect(collectingAndThen( //\r\n toList(), //\r\n confs -> { // this code runs AFTER the toList. So the \"application\" is added at the end\r\n confs.add(DEFAULT_CONFIG_FILE_NAME);\r\n return confs;\r\n }));\r\n\r\n // for the sake of readability do a separate stream... but it could be attatched to the collect from above\r\n configurationsToLoad.stream() //\r\n .map(Environment::propertiesFileBuilder) //\r\n .map(Environment::safeGetConfiguration) //\r\n .forEach(configuration::addConfiguration);\r\n\r\n // useful when using docker where you may want to set environment variables in the docker-compose or docker run\r\n System.getenv().forEach((k, v) -> {\r\n if (configuration.containsKey(k)) {\r\n System.out.println(\"Overriding property \" + k + \" with value \" + v);\r\n }\r\n configuration.setProperty(k, v);\r\n });\r\n\r\n return configuration;\r\n }", "public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }", "private IProfileFacade createAndInitializeProfileFacade(\n \t\t\tIFile profileApplicationFile, Collection<Profile> profiles)\n \t\t\tthrows CoreException, IOException {\n \n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\tfor (Profile profile : profiles) {\n \t\t\tfacade.loadProfile(profile);\n \t\t}\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ZERO, new NullProgressMonitor());\n \t\treturn facade;\n \t}", "public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }", "public LogProfileProperties() {\n }", "public Profile() {}", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "public static ConfigurableApplicationContext create(String[] profiles) {\n AnnotationConfigApplicationContext bootstrapContext = new AnnotationConfigApplicationContext();\n\n // Get bootstrap environment and add to a composite property source\n ConfigurableEnvironment bootstrapEnvironment = getBootstrapEnvironment(bootstrapContext, profiles);\n MutablePropertySources bootstrapPropertySources = bootstrapEnvironment.getPropertySources();\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);\n CompositePropertySource bootstrapPropertySource = new CompositePropertySource(\"bootstrap\");\n bootstrapPropertySources.forEach(bootstrapPropertySource::addPropertySource);\n bootstrapContext.getEnvironment().getPropertySources().addLast(bootstrapPropertySource);\n\n ClassLoader classLoader = bootstrapContext.getClassLoader();\n List<String> names = SpringFactoriesLoader\n .loadFactoryNames(BootstrapConfiguration.class, classLoader);\n List<Class<?>> sources = new ArrayList<>();\n for (String name : names) {\n sources.add(ClassUtils.resolveClassName(name, classLoader));\n }\n AnnotationAwareOrderComparator.sort(sources);\n\n bootstrapContext.setEnvironment(bootstrapEnvironment);\n sources.forEach(bootstrapContext::register);\n bootstrapContext.refresh();\n return bootstrapContext;\n }", "public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "public ProfileResource() {\n }", "public void setProfiles(HashMap<String, String> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "public ConfigProfile buildProfileOne() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.p12\";\n this.trustStoreType = \"PKCS12\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );", "ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;", "public abstract Properties getProfileProperties();", "public void setProfilesLocation(String profilesLocation) {\n this.profilesLocation = profilesLocation;\n }", "private void process(ServletContext context) {\n\t\ttry {\n\t\t\tSystemConfigurationManager systemConfigurationManager = (SystemConfigurationManager) SpringContext\n\t\t\t\t\t.getBean(\"systemConfigurationManager\");\n\t\t\tProfileManager profileManager = (ProfileManager) SpringContext\n\t\t\t\t\t.getBean(\"profileManager\");\n\n\t\t\t// Upgrade from 2.3\n\t\t\tSystemConfiguration profileOverrideInitConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileoverride.init.enable\");\n\t\t\tif (profileOverrideInitConfig != null) {\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileOverrideInitConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.setupProfileOverrides();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Upgrade to 2.2 (if not already done)\n\t\t\tSystemConfiguration profileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileupgrade.enable\");\n\t\t\tif (profileUpgradeEnableConfig != null) {\n\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.compareProfiles();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Profile comparison has been completed in previous cycles.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"profileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Creation of canned profiles\n\t\t\tSystemConfiguration cannedProfileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"cannedprofile.enable\");\n\t\t\tif (cannedProfileUpgradeEnableConfig != null) {\n\t\t\t\tif (\"1\".equalsIgnoreCase(cannedProfileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.createCannedProfiles();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"cannedprofileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Add on More Default profiles -> Outdoor profile\n\t\t\tCompanyManager companyManager = (CompanyManager) SpringContext\n\t\t\t\t\t.getBean(\"companyManager\");\n\t\t\tCompany company = companyManager.getCompany();\n\t\t\tSystemConfiguration addMoreDefaultProfileConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\tif (company != null\n\t\t\t\t\t&& company.getCompletionStatus().intValue() == 3) {\n\t\t\t\tif (addMoreDefaultProfileConfig != null) {\n\n\t\t\t\t\tif (\"true\".equalsIgnoreCase(addMoreDefaultProfileConfig\n\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\t\tprofileManager.addMoreDefaultProfile();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(\"Some more default profile has been already added.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"More Default profile cannot be added as default company has not been added yet.\");\n\t\t\t\tSystemConfiguration addMoreProfileConfig = systemConfigurationManager\n\t\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\t\taddMoreProfileConfig.setValue(\"false\");\n\t\t\t\tsystemConfigurationManager.save(addMoreProfileConfig);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"Profiler Handler could not complete because of \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// ENL-2685 : End\n\n\t\t// Do all the clean up here. Add the clean up code in\n\t\t// systemCleanUpManager class.\n\t\tSystemCleanUpManager systemCleanUpManager = (SystemCleanUpManager) SpringContext\n\t\t\t\t.getBean(\"systemCleanUpManager\");\n\t\tsystemCleanUpManager.resetAllFixtureGroupSyncFlag();\n\n\t\tString userPath = context.getRealPath(\"/\");\n\t\tif (userPath != null) {\n\t\t\tSystem.out.println(new Date() + \" *** Setting up path \" + userPath);\n\t\t\tServerMain.getInstance().setTomcatLocation(userPath);\n\t\t\tSystem.out.println(new Date() + \" *** Initializing logger\");\n\t\t\tinitLogger(context);\n\t\t} else {\n\t\t\tlogger.fatal(\"Could Not get the real path of Servlet Context\");\n\t\t}\n\n\t\t// Start the Quartz scheduler\n\t\tSystem.out.println(new Date() + \" *** Initializing scheduler\");\n\t\tSchedulerManager.getInstance();\n\t\tgatewayPoll = new Timer(\"Gateway UTC sync\", true);\n\t\tGatewayUTCSync osync = new GatewayUTCSync();\n\t\tgatewayPoll.schedule(osync, ONE_MINUTE_DELAY);\n\t\tSystem.out.println(new Date() + \" *** set EMS mode\");\n\t\tEmsModeControl.resetToNormalIfImageUpgrade();\n \n // Start UEM ping scheduler \n\t\ttry {\n\t\t\tSystem.out.println(new Date() + \" *** starting GLEM check scheduler job\");\n\t\t\tUEMSchedulerManager uemSchedulerManager = (UEMSchedulerManager) SpringContext\n\t\t\t\t\t.getBean(\"uemSchedulerManager\");\n\t\t\tuemSchedulerManager.addUEMSchedulerJob(userPath);\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Could not start uem schedule manager\");\n\t\t} \t\t\t\t\n \n\t\tSystem.out.println(new Date() + \" *** done\");\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n profiles = ProfileManager.getDefaultManager().getAllProfiles();\n\n profileList = this;\n }", "public ConfigProfile buildProfileTwo() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }", "@Override\n public void init(Properties properties) {\n super.init(properties);\n String categoriesFilePath = properties.getProperty(\"categoriesFilePath\", \"\");\n String gemetFilePath = properties.getProperty(\"gemetFilePath\", \"\");\n String lang = properties.getProperty(\"lang\", \"\");\n\n for (Locale l: Locale.getAvailableLocales()) {\n if (l.getLanguage().equalsIgnoreCase(lang)) {\n locale = l;\n break;\n }\n }\n\n ContextInitializer initializer = new ContextInitializer(ontCtx,\n categoriesFilePath, gemetFilePath);\n initializer.initialize();\n\n }", "public Profile (String n, String cName, String cID, String dir) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "public ProfileManagerImpl() {\n try {\n Profile uml = new ProfileUML();\n defaultProfiles.add(uml);\n registerProfile(uml);\n registerProfile(new ProfileJava(uml));\n } catch (ProfileException e) {\n throw new RuntimeException(e);\n }\n\n loadDirectoriesFromConfiguration();\n\n refreshRegisteredProfiles();\n\n loadDefaultProfilesfromConfiguration();\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public ProfiledApplicationBean() {}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public ConfigProfile buildProfileFour() {\n this.topicsRegex = \"^kafka-data[0-9]$\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.headerSupport = true;\n this.headerIndex = \"splunk.header.index\";\n this.headerSource = \"splunk.header.source\";\n this.headerSourcetype = \"splunk.header.sourcetype\";\n this.headerHost = \"splunk.header.host\";\n\n return this;\n }", "@ModelAttribute(\"roles\")\n\tpublic List<UserProfile> initializeProfiles() {\n\t\treturn userProfileService.findAll();\n\t}", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Properties readConfigurationAsProperties(String moduleName, String profile) throws Exception;", "public interface ProfilingService {\n String PROFILES = \"profiles\";\n\n /**\n * Get the profile factory for a given data source\n *\n * @param dataSourceMetadata the data source metadata\n * @return a ProfileFactory that accepts the reference (or null if it doesn't exist)\n */\n ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );\n\n /**\n * Return a boolean indicating whether a ProfileFactory exists for the given data source\n *\n * @param dataSourceMetadata the data source metadata\n * @return true iff there is a ProfileFactory that accepts the reference\n */\n boolean accepts( DataSourceMetadata dataSourceMetadata );\n\n /**\n * Creates a profile from the ProfileConfiguration and returns its initial status\n *\n * @param profileConfiguration the profile configuration\n * @return a ProfileStatusManager for the created profile\n * @throws ProfileCreationException if there is an error during profile creation\n */\n ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;\n\n /**\n * Returns a list of the currently active profiles\n *\n * @return a list of the currently active profiles\n */\n List<ProfileStatusReader> getActiveProfiles();\n\n /**\n * Returns the profile for a given profileId\n *\n * @param profileId the profileId\n * @return the Profile\n */\n Profile getProfile( String profileId );\n\n /**\n * Returns the a ProfileStatusReader for the given profileId\n *\n * @param profileId the profileId\n * @return the ProfileStatusReader\n */\n ProfileStatusReader getProfileUpdate( String profileId );\n\n /**\n * Stops the profile with the given id\n *\n * @param profileId the profileId to stop\n */\n void stop( String profileId );\n\n /**\n * Stops all the running profiles\n */\n void stopAll();\n\n /**\n * Returns a boolean indicating whether a profile is running\n *\n * @param profileId the profileId to check\n * @return a boolean indicating whether a profile is running\n */\n boolean isRunning( String profileId );\n\n /**\n * Discards the profile with the given id\n *\n * @param profileId the profileId to discard\n */\n void discardProfile( String profileId );\n\n /**\n * Discards all profiles\n */\n void discardProfiles();\n}", "public ConfigProfile buildProfileDefault() {\n this.topics = \"mytopic\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = false;\n this.ack = true;\n this.indexes = \"\";\n this.sourcetypes = \"\";\n this.sources = \"\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.jks\";\n this.trustStoreType = \"JKS\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"ni=hao,hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = true;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.lineBreaker = \"\\n\";\n return this;\n }", "public String[] getProfiles();", "@ModelAttribute(\"roles\")\r\n\tpublic List<UserProfile> initializeProfiles() {\r\n\t\treturn userProfileService.findAll();\r\n\t}", "public ProfileProjectBean() {\n }", "ProfileConfigurationManager getProfileConfigurationManager() throws UserStoreException;", "private static Properties createLoaderProperties(String inPrefix) {\r\n Properties props = new Properties();\r\n props.setProperty(inPrefix + \"Property1\", \"Value1Prop\");\r\n props.setProperty(inPrefix + \"Property2\", \"Value2Prop\");\r\n return props;\r\n }", "public ProfileService(String endpoint) {\n \t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "public AnalysisProfile(){\n\t\tsuper();\n\t\tthis.terms = new HashMap<String, Integer>();\n\t\tthis.sources = new ArrayList<String>();\n\t\tthis.stopWords = new HashSet<String>();\n\t\tthis.yearFrom = -1;\n\t\tthis.yearTo = -1;\n\t\tthis.contextSize = 5;\n\t\tthis.useCompounds = false;\n\t\tthis.useStopwords = true;\n\t\tthis.useOnlyContexts = true;\n\t\tthis.results = new StringBuilder();\n\t\tthis.corpus = new ArrayList<File>();\n\t}", "public void setProfiles(Set<Profile> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "public System() {\n\t\tsuper();\n\t\tthis.profiles = new HashSet<Profile>();\n\t}", "public LegProfile ()\n {\n\t// For Jackson ObjectMapper's sanity!\n }", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "public String getProfilesLocation() {\n return profilesLocation;\n }", "static AuditYamlConfigurationLoader withSystemProperties()\n {\n return withProperties(System.getProperties());\n }", "public ProfileManager() {\r\n this.profileDAO = DAOFactory.getProfileDAOInstance();\r\n }", "@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }", "@Bean\n public WebSSOProfileECPImpl ecpprofile() {\n return new WebSSOProfileECPImpl();\n }", "CertprofileQa getCertprofile(String certprofileName);", "public Profile (String n, String cName, String cID, String dir, ArrayList<String> backupNames) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "@Override\n\t\tpublic ProfileImpl build() {\n\t\t\treturn new ProfileImpl(\n\t\t\t\tsecurity,\n\t\t\t\t(ProfileInfo)map.get(PROFILE_INFO),\n\t\t\t\t(Address)map.get(ADDRESS),\n\t\t\t\t(Address)map.get(SHIPPING_ADDRESS),\n\t\t\t\t(Social)map.get(SOCIAL),\n\t\t\t\t(Attributes)map.get(ATTRIBUTES)\n\t\t\t);\n\t\t}", "public ProfileService(String endpoint) {\n\t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n\t}", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }", "public DefaultProfileCompletenessRetriever() {\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "@ModelAttribute(\"roles\")\n public List<UserProfile> initializeProfiles() {\n return userProfileService.findAll();\n }", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<String> loadProfiles() {\n List<String> profileNames = new ArrayList<>();\n profilesMap.clear();\n\n ProfilesWrapper profiles = (ProfilesWrapper) XMLFileManager.loadXML(\"profiles.xml\", ProfilesWrapper.class);\n if (profiles != null && profiles.getProfiles() != null) {\n for (Profiles prof : profiles.getProfiles()) {\n profileNames.add(prof.getFileName());\n profilesMap.put(prof.getFileName(), new Profiles(prof.getFileName(), prof.getFilePath()));\n }\n }\n return profileNames;\n }", "private WSSecurityProfileManager () throws WSSecurityProfileManagerException {\n \t \n \t// Quick 'n' dirty - expects the files containing profiles to be in the right format.\n \t\n \tBufferedReader profilesFileReader = null;\n String line;\n \n wsSecurityProfiles_SystemDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_SystemDefined = new Vector<String>();\n wsSecurityProfileDescriptions_SystemDefined = new Vector<String>();\n\n // Read the profiles from the file\n try{\n \n profilesFileReader = new BufferedReader(new InputStreamReader(WSSecurityProfileManager.class.getResourceAsStream(\"/profiles/WSSecurity.profiles\")));\n \n\t\t\twhile ((line = profilesFileReader.readLine()) != null) {\n\t\t\t\t// skip empty lines\n\t\t\t\twhile ((line != null) && (line.trim().length() == 0)) {\n\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t}\n\n\t\t\t\tif ((line != null)\n\t\t\t\t\t\t&& line.startsWith(\"-----BEGIN PROFILE-----\")) {\n\n\t\t\t\t\t// Start of the new profile\n\t\t\t\t\tWSSecurityProfile wsSecurityProfile = new WSSecurityProfile();\n\t\t\t\t\twhile ((line != null)\n\t\t\t\t\t\t\t&& (!line.equals(\"-----END PROFILE-----\"))) {\n\n\t\t\t\t\t\t// Skip empty lines\n\t\t\t\t\t\twhile ((line != null) && (line.trim().length() == 0)) {\n\t\t\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Remove white space from the begining and end of the\n\t\t\t\t\t\t// line\n\t\t\t\t\t\tline = line.trim();\n\t\t\t\t\t\tif (line.startsWith(\"Name=\")) { // must be single line\n\t\t\t\t\t\t\twsSecurityProfile.setWSSecurityProfileName(line\n\t\t\t\t\t\t\t\t\t.substring(5));\n\t\t\t\t\t\t} else if (line.startsWith(\"Description=\")) { // must be single line\n\t\t\t\t\t\t\twsSecurityProfile\n\t\t\t\t\t\t\t\t\t.setWSSecurityProfileDescription(line\n\t\t\t\t\t\t\t\t\t\t\t.substring(12));\n\t\t\t\t\t\t} else if (line.startsWith(\"Profile=\")) { // first line of profile text\n\t\t\t\t\t\t\twsSecurityProfile.setWSSecurityProfileString(line\n\t\t\t\t\t\t\t\t\t.substring(8)\n\t\t\t\t\t\t\t\t\t+ \"\\n\");\n\t\t\t\t\t\t} else { // continuation of profile text\n\t\t\t\t\t\t\twsSecurityProfile\n\t\t\t\t\t\t\t\t\t.setWSSecurityProfileString(wsSecurityProfile\n\t\t\t\t\t\t\t\t\t\t\t.getWSSecurityProfileString()\n\t\t\t\t\t\t\t\t\t\t\t+ line + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline = profilesFileReader.readLine();\n\t\t\t\t\t}\n\t\t\t\t\twsSecurityProfiles_SystemDefined.add(wsSecurityProfile);\n\t\t\t\t\twsSecurityProfileNames_SystemDefined.add(wsSecurityProfile\n\t\t\t\t\t\t\t.getWSSecurityProfileName());\n\t\t\t\t\twsSecurityProfileDescriptions_SystemDefined\n\t\t\t\t\t\t\t.add(wsSecurityProfile\n\t\t\t\t\t\t\t\t\t.getWSSecurityProfileDescription());\n\t\t\t\t}\n\t\t\t}\n\t\t\tlogger.info(\"Loaded system-defined WS-Security profiles.\");\n }\n /*\n\t\t * catch(FileNotFoundException ex){ // should not happen - we have\n\t\t * already checked if resource existed String exMessage =\n\t\t * \"WSSecurityProfileManager: missing pre-defined WS Security profiles\n\t\t * file.\"; throw new WSSecurityProfileManagerException(exMessage); }\n\t\t */\n catch(Exception ex){\n \tString exMessage = \"WSSecurityProfileManager failed to read the file with pre-defined WS Security profiles.\";\n \tlogger.error(exMessage, ex);\n \tthrow new WSSecurityProfileManagerException(exMessage);\n }\n finally {\n \tif (profilesFileReader != null)\n \t{\n \t\ttry {\n \t\t\tprofilesFileReader.close();\n \t \t\t}\n \t catch (IOException e) { \n \t \t//ignore\n \t }\n \t }\n \t } \n \n // File with user-defined profiles\n \tprofilesFile_UserDefined = new File (getConfigurationDirectory(),\"UserWSSecurity.profiles\");\n\n wsSecurityProfiles_UserDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_UserDefined = new Vector<String>();\n wsSecurityProfileDescriptions_UserDefined = new Vector<String>();\n \n \t// Check if the file exists - it may not exist yet if user has not previously saved any profiles\n \tif (profilesFile_UserDefined.exists()){\n \t\t\n wsSecurityProfiles_UserDefined= new Vector<WSSecurityProfile>();\n wsSecurityProfileNames_UserDefined = new Vector<String>();\n wsSecurityProfileDescriptions_UserDefined = new Vector<String>();\n \n BufferedReader userProfilesFileReader = null;\n \t try{\n \t \t // Open the file for reading\n \t \t userProfilesFileReader = new BufferedReader(new FileReader(profilesFile_UserDefined));\n \n \t \t // Read the user-defined profiles\n \t while ((line=userProfilesFileReader.readLine())!=null) {\n \t \t//skip empty lines\n \t \twhile ((line!=null) && (line.trim().length() == 0)){\n \t \t\tline=userProfilesFileReader.readLine();\n \t \t}\n \t \t\n \t if ((line!=null) && line.startsWith(\"-----BEGIN PROFILE-----\")) {\n\n \t \t // Start of the new profile\n \t \t WSSecurityProfile wsSecurityProfile = new WSSecurityProfile();\n \t \t while ((line!=null) && (!line.equals(\"-----END PROFILE-----\"))){\n\n \t \t// Skip empty lines\n \t \twhile ((line!=null) && (line.trim().length() == 0)){\n \t \t\tline=userProfilesFileReader.readLine();\n \t \t}\n \t \t// Remove white space from the begining and end of the line\n \t \tline = line.trim();\n \t \tif (line.startsWith(\"Name=\")){ // must be single line\n \t \t\twsSecurityProfile.setWSSecurityProfileName(line.substring(5)); \t\t\n \t \t}\n \t \telse if (line.startsWith(\"Description=\")){ // must be single line\n \t \t\twsSecurityProfile.setWSSecurityProfileDescription(line.substring(12));\n \t \t}\n \t \telse if (line.startsWith(\"Profile=\")){ // first line of profile text\n \t \t\twsSecurityProfile.setWSSecurityProfileString(line.substring(8) +\"\\n\"); \t\t\t\n \t \t}\n \t \telse{ // continuation of profile text\n \t \t\twsSecurityProfile.setWSSecurityProfileString(wsSecurityProfile.getWSSecurityProfileString() + line + \"\\n\");\n \t \t}\n \t \tline=userProfilesFileReader.readLine();\n \t \t }\n \t \twsSecurityProfiles_UserDefined.add(wsSecurityProfile);\n \t \twsSecurityProfileNames_UserDefined.add(wsSecurityProfile.getWSSecurityProfileName());\n \t \twsSecurityProfileDescriptions_UserDefined.add(wsSecurityProfile.getWSSecurityProfileDescription());\n \t }\n \t }\n \t \t\tlogger.info(\"Loaded user-defined WS-Security profiles.\");\n \t }\n \t /*\n \t catch(FileNotFoundException ex){\n \t \t // Should not happen as we've already checked for the existence of the file\n \t }\n \t */\n \t catch(IOException ex){\n \t \t String exMessage = \"WSSecurityProfileManager failed to read the file with user-defined WS Security profiles.\";\n \t \t logger.error(exMessage, ex);\n \t \t throw new WSSecurityProfileManagerException(exMessage);\n \t }\n \t finally {\n \t \tif (userProfilesFileReader != null)\n \t \t{\n \t \t\ttry {\n \t \t\t\tuserProfilesFileReader.close();\n \t \t\t}\n \t \t\tcatch (IOException e) { \n \t \t//ignore\n \t \t\t}\n \t \t}\n \t } \n \t}\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }", "public org.beangle.security.session.protobuf.Model.Profile.Builder addProfilesBuilder() {\n return getProfilesFieldBuilder().addBuilder(\n org.beangle.security.session.protobuf.Model.Profile.getDefaultInstance());\n }", "void getProfilesInTimeWindow(Future<List<AggregatedProfileNamingStrategy>> profiles, String baseDir, String appId, String clusterId, String proc, ZonedDateTime startTime, int durationInSeconds);", "public static Profile getProfile() {\n return profile;\n }", "@Bean\n public SAMLContextProviderImpl contextProvider(final SAMLProperties properties) {\n if (properties.getLoadBalancer() != null) {\n log.info(\"Using SAMLContextProviderLB implementation of SAMLContextProvider for context provider bean.\");\n final SAMLContextProviderLB lb = new SAMLContextProviderLB();\n final SAMLProperties.LoadBalancer lbProps = properties.getLoadBalancer();\n final String scheme = lbProps.getScheme();\n log.info(\"Setting the load balancer scheme to {}\", scheme);\n lb.setScheme(scheme);\n final String serverName = lbProps.getServerName();\n log.info(\"Setting the load balancer server name to {}\", serverName);\n lb.setServerName(serverName);\n final String contextPath = lbProps.getContextPath();\n log.info(\"Setting the load balancer context path to {}\", contextPath);\n lb.setContextPath(contextPath);\n final int serverPort = lbProps.getServerPort();\n log.info(\"Setting the load balancer port to {}\", serverPort);\n lb.setServerPort(serverPort);\n final boolean includeServerPort = lbProps.isIncludeServerPortInRequestURL();\n log.info(\"Setting whether to include the server port in the request URL to {}\", includeServerPort);\n lb.setIncludeServerPortInRequestURL(includeServerPort);\n return lb;\n } else {\n log.info(\"Using SAMLContextProviderImpl implementation of SAMLContextProvider for context provider bean.\");\n return new SAMLContextProviderImpl();\n }\n }", "public LoadTestProperties() {\n }", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "public ProfileServiceWithDefaults profileWithDefaults() {\n return service.getProfileServiceWithDefaultsAndCallbacks();\n }", "public void startProfiles() {\n int currentUserId = getCurrentUserId();\n if (ActivityManagerDebugConfig.DEBUG_MU) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked\");\n }\n List<UserInfo> profiles = this.mInjector.getUserManager().getProfiles(currentUserId, false);\n List<UserInfo> profilesToStart = new ArrayList<>(profiles.size());\n for (UserInfo user : profiles) {\n if ((user.flags & 16) == 16 && user.id != currentUserId && !user.isQuietModeEnabled()) {\n profilesToStart.add(user);\n } else if (user.id != currentUserId && user.isClonedProfile()) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked clone profile: \" + user);\n profilesToStart.add(user);\n }\n }\n int profilesToStartSize = profilesToStart.size();\n int i = 0;\n while (i < profilesToStartSize) {\n startUser(profilesToStart.get(i).id, false);\n i++;\n }\n if (i < profilesToStartSize) {\n Slog.w(\"ActivityManager\", \"More profiles than MAX_RUNNING_USERS\");\n }\n }", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected List<Profile> createProfiles(String namespace, JsonNode node) {\n List<Profile> profiles = new LinkedList();\n if (Namespace.isNamespaceValid(namespace)) {\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> entry = it.next();\n profiles.add(new Profile(namespace, entry.getKey(), entry.getValue().asText()));\n }\n } else {\n throw new CatalogException(\n \"Invalid namespace specified \" + namespace + \" for profiles \" + node);\n }\n return profiles;\n }", "@Profile(\"development\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDevDataSource(){\r\n\t\t\r\n //Create dataSource for HSQLDB connection.\r\n\t\t\r\n\t BasicDataSource dataSource = new BasicDataSource();\r\n\t dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\r\n\t //Create HSQLDB in memory. \r\n\t dataSource.setUrl(\"jdbc:hsqldb:mem:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t //Create HSQLDB in file located in the application folder.\r\n //dataSource.setUrl(\"jdbc:hsqldb:file:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t dataSource.setUsername(\"sa\");\r\n\t dataSource.setPassword(\"\");\r\n\t\t\t\t\r\n return dataSource;\r\n }", "public MavenSdk(ListMultimap<String, File> profileToFiles) {\n this.profileToFiles = profileToFiles;\n resourceFile = getSingletonFile(\"Resources\").toString();\n }", "public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }", "Context createContext( Properties properties ) throws NamingException;", "interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }", "public AbstractJob addProfile(String namespace, String key, String value) {\n mProfiles.add(new Profile(namespace, key, value));\n return this;\n }", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "private ProfileStore(PersistentStorageAgent persistentStorageAgent) {\n this.persistentStorageAgent = persistentStorageAgent;\n profilepages = new ArrayList<>();\n }", "void load(Future<AggregatedProfileInfo> future, AggregatedProfileNamingStrategy filename);", "ApplicationProfile getApplicationProfile();", "public UserProfile() {}", "public org.beangle.security.session.protobuf.Model.Profile.Builder getProfilesBuilder(\n int index) {\n return getProfilesFieldBuilder().getBuilder(index);\n }", "private HashMap<String, HashMap<String, String>> getProfiledConfigs(ArrayList<HashMap<String, String>> configs) {\n\tHashMap<String, HashMap<String, String>> profiledConfigs = new HashMap<String, HashMap<String, String>>();\n\n\tfor (HashMap<String, String> config : configs) {\n\t String profileName = \"default\";\n\t if (config.containsKey(\"spring.profiles\")) {\n\t\tprofileName = config.get(\"spring.profiles\");\n\t }\n\n\t profiledConfigs.put(profileName, config);\n\t}\n\n\treturn profiledConfigs;\n }", "protected void initTestSuiteParameter() throws FileNotFoundException {\n LOGGER.info(\"............................INITIALIZE SAKULI-CONTEXT\");\n executorService = Executors.newCachedThreadPool();\n BeanLoader.CONTEXT_PATH = \"java-dsl-beanRefFactory.xml\";\n SakuliJavaPropertyPlaceholderConfigurer.TEST_SUITE_FOLDER_VALUE = getTestSuiteFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAKULI_HOME_FOLDER_VALUE = getSakuliHomeFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAHI_HOME_VALUE = getSahiFolder();\n InitializingServiceHelper.invokeInitializingServcies();\n }", "public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}" ]
[ "0.69062245", "0.6769007", "0.5910796", "0.56311214", "0.56294256", "0.55645376", "0.5503707", "0.5492336", "0.5487584", "0.5487574", "0.5414875", "0.53983676", "0.5376468", "0.5357552", "0.5334233", "0.53135914", "0.53059196", "0.52821374", "0.5269565", "0.522816", "0.52103174", "0.51621", "0.51139665", "0.51114076", "0.5094425", "0.50897384", "0.5068086", "0.5045618", "0.5045496", "0.50290847", "0.5026858", "0.5025684", "0.50254", "0.50204104", "0.49661252", "0.49604318", "0.49563342", "0.49427947", "0.49319312", "0.4930787", "0.49120405", "0.48703438", "0.48647192", "0.48061448", "0.48041713", "0.4801124", "0.47960508", "0.47956988", "0.47916034", "0.47891712", "0.4785363", "0.47821176", "0.47710028", "0.4749142", "0.47458756", "0.47414526", "0.47413668", "0.47280973", "0.47196925", "0.4709586", "0.47095695", "0.4704842", "0.47022375", "0.46940008", "0.46932003", "0.46913266", "0.46897873", "0.4682666", "0.46763372", "0.46570984", "0.4655853", "0.46517354", "0.46432894", "0.46351188", "0.46160853", "0.46127412", "0.45918703", "0.45873237", "0.45873237", "0.45863676", "0.4574373", "0.45638293", "0.45583943", "0.45541632", "0.45505613", "0.4549663", "0.45484045", "0.45468456", "0.45252603", "0.45240936", "0.45215568", "0.45111153", "0.450839", "0.45045033", "0.4501472", "0.44923085", "0.44775823", "0.4475535", "0.4475355", "0.44734794" ]
0.6180767
2
Constructs a ContextInitializer that will load profile properties from the property name .
public ProfileContextInitializer(final String appName, final String appVersion, final String profileProperty) { this.appName = appName; this.appVersion = appVersion; this.profileProperty = profileProperty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileContextInitializer(final String appName) {\r\n\t\tthis(appName, DEFAULT_VERSION, appName\r\n\t\t\t\t+ DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}", "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion) {\r\n\t\tthis(appName, appVersion, appName + DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}", "public LogProfileProperties() {\n }", "public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }", "private SpringProfile() {}", "private static Properties createLoaderProperties(String inPrefix) {\r\n Properties props = new Properties();\r\n props.setProperty(inPrefix + \"Property1\", \"Value1Prop\");\r\n props.setProperty(inPrefix + \"Property2\", \"Value2Prop\");\r\n return props;\r\n }", "InjectProperty create(ContextManagerFactory contextManagerFactory, Method property);", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "@Override\n public void init(Properties properties) {\n super.init(properties);\n String categoriesFilePath = properties.getProperty(\"categoriesFilePath\", \"\");\n String gemetFilePath = properties.getProperty(\"gemetFilePath\", \"\");\n String lang = properties.getProperty(\"lang\", \"\");\n\n for (Locale l: Locale.getAvailableLocales()) {\n if (l.getLanguage().equalsIgnoreCase(lang)) {\n locale = l;\n break;\n }\n }\n\n ContextInitializer initializer = new ContextInitializer(ontCtx,\n categoriesFilePath, gemetFilePath);\n initializer.initialize();\n\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public ProfileServiceBootstrap()\n {\n }", "public LoadTestProperties() {\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "Context createContext( Properties properties ) throws NamingException;", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );", "public abstract Properties getProfileProperties();", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "public void init(Properties props) ;", "private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}", "public void init(java.util.Properties props) {\r\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "protected void initTestSuiteParameter() throws FileNotFoundException {\n LOGGER.info(\"............................INITIALIZE SAKULI-CONTEXT\");\n executorService = Executors.newCachedThreadPool();\n BeanLoader.CONTEXT_PATH = \"java-dsl-beanRefFactory.xml\";\n SakuliJavaPropertyPlaceholderConfigurer.TEST_SUITE_FOLDER_VALUE = getTestSuiteFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAKULI_HOME_FOLDER_VALUE = getSakuliHomeFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAHI_HOME_VALUE = getSahiFolder();\n InitializingServiceHelper.invokeInitializingServcies();\n }", "@Test\n\tvoid thirdPartyConfigurationPropertiesRegisteredWithImportAsConfigurationPropertiesAndNoPrefix() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty1PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"name=test\").run((context) -> {\n\t\t\t\t\tThirdParty1Properties properties = context.getBean(ThirdParty1Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "public LazyInitExample(String name) {\n this.name = name;\n }", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "static AuditYamlConfigurationLoader withSystemProperties()\n {\n return withProperties(System.getProperties());\n }", "public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "private Populator getPopInitObject() throws Exception{\n String populatorClassname = \"\";\n try { \n populatorClassname = getStringProperty(ParameterList.POP_INITIALIZER, false).replaceAll(\"\\\\s\", \"\");\n Class<?> populatorClass = Class.forName(populatorClassname);\n Constructor<?> populatorConstructor = populatorClass.getConstructor(PropertiesManager.class);\n return (Populator)populatorConstructor.newInstance(this);\n } \n catch (ClassNotFoundException e) {\n throw new ClassNotFoundException(\"Error loading the population initializer. Class \" + populatorClassname + \" not found\", e);\n } \n }", "public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }", "@Test public void testConstructor() {\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n assertNull(source.getProductionModeProperties());\r\n assertNull(source.getDevelopmentModeProperties());\r\n\r\n Properties baseProperties = new Properties();\r\n source.setProductionModeProperties(baseProperties);\r\n assertSame(baseProperties, source.getProductionModeProperties());\r\n\r\n Properties developmentModeProperties = new Properties();\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n assertSame(developmentModeProperties, source.getDevelopmentModeProperties());\r\n }", "private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }", "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Profile() {}", "public ConfigProfile buildProfileOne() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.p12\";\n this.trustStoreType = \"PKCS12\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }", "@Test\n\tvoid thirdPartyConfigurationPropertiesWithImportAsConfigurationPropertiesCanOptInForJavaBeanConvention() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty3PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"test.name=test\", \"test.counter=20\").run((context) -> {\n\t\t\t\t\tThirdParty3Properties properties = context.getBean(ThirdParty3Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "private void initializePropertySubstitution() {\n log.debug(\"Initializing property substitution\");\r\n String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName();\r\n DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class);\r\n\r\n // initialize discovery; may start a local discovery server and/or query existing servers\r\n Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration);\r\n\r\n // register the properties learned from discovery (if any) under the \"discovery\" namespace\r\n this.addSubstitutionProperties(\"discovery\", discoveryProperties);\r\n }", "@Bean\n public SAMLContextProviderImpl contextProvider(final SAMLProperties properties) {\n if (properties.getLoadBalancer() != null) {\n log.info(\"Using SAMLContextProviderLB implementation of SAMLContextProvider for context provider bean.\");\n final SAMLContextProviderLB lb = new SAMLContextProviderLB();\n final SAMLProperties.LoadBalancer lbProps = properties.getLoadBalancer();\n final String scheme = lbProps.getScheme();\n log.info(\"Setting the load balancer scheme to {}\", scheme);\n lb.setScheme(scheme);\n final String serverName = lbProps.getServerName();\n log.info(\"Setting the load balancer server name to {}\", serverName);\n lb.setServerName(serverName);\n final String contextPath = lbProps.getContextPath();\n log.info(\"Setting the load balancer context path to {}\", contextPath);\n lb.setContextPath(contextPath);\n final int serverPort = lbProps.getServerPort();\n log.info(\"Setting the load balancer port to {}\", serverPort);\n lb.setServerPort(serverPort);\n final boolean includeServerPort = lbProps.isIncludeServerPortInRequestURL();\n log.info(\"Setting whether to include the server port in the request URL to {}\", includeServerPort);\n lb.setIncludeServerPortInRequestURL(includeServerPort);\n return lb;\n } else {\n log.info(\"Using SAMLContextProviderImpl implementation of SAMLContextProvider for context provider bean.\");\n return new SAMLContextProviderImpl();\n }\n }", "private void initConfig(String initParameter) {\n InputStream inputStream = null;\n inputStream = this.getClass().getClassLoader().getResourceAsStream(initParameter);\n try {\n properties.load(inputStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"classpath:test.properties\",\n \"system:properties\",\n \"system:env\"})\npublic interface UserConfiguration extends Config {\n\n @DefaultValue(\"default_Name\")\n @Key(\"user.name\")\n String name();\n @Key(\"user.email\")\n String email();\n @Key(\"user.password\")\n String password();\n}", "public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}", "public static void init() throws Exception\r\n\t{\r\n\t\tinit(PROPERTY_FILE, \"Properties\", new String[0]);\r\n\t}", "public ProfileResource() {\n }", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public static void setPropertiesName(String inName) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"setPropertiesName: \" + inName);\r\n }\r\n if (inName == null) {\r\n throw new IllegalArgumentException(\"Can't set PropertiesName to null. Pass in a resource name.\");\r\n }\r\n\r\n ResourceBundle bundle = ResourceLoader.getProperties(inName);\r\n if (bundle != null) {\r\n getInstance().putAll(bundle);\r\n }\r\n\r\n // Load system properties over the top\r\n getInstance().loadSystemConfig();\r\n }", "public PropertiesInjectionModule() {\n }", "Expression getInitializer();", "public CustomerPolicyProperties() {\n }", "void load(Future<AggregatedProfileInfo> future, AggregatedProfileNamingStrategy filename);", "@Override\n public PropertySource<?> locate(Environment environment) {\n return new MapPropertySource(\"secretKey\", Collections.<String, Object>singletonMap(\"auth.secret-key\", \"Sup3rS3cr37\"));\n }", "@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n Class<?> beanClass = bean.getClass();\n if(beanClass.isAnnotationPresent(Profiling.class)){\n map.put(beanName, beanClass);\n }\n return bean;\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "public static void init(String propfile) throws Exception\r\n\t{\r\n\t\tinit(propfile, \"Properties\", new String[0]);\r\n\t}", "CertprofileQa getCertprofile(String certprofileName);", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}", "public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public ApplicationResourceProperties() {\n }", "private static Configuration loadProperties(final String[] profiles) {\n final CombinedConfiguration configuration = new CombinedConfiguration(DEFAULT_COMBINER);\r\n\r\n // Not very intuitive: First load the specific properties files and then add the default one\r\n final List<String> configurationsToLoad = //\r\n Stream.of(profiles) //\r\n .filter(p -> !isBlank(p)) //\r\n .map(p -> CONFIG_FILE_PREFIX + p) //\r\n .collect(collectingAndThen( //\r\n toList(), //\r\n confs -> { // this code runs AFTER the toList. So the \"application\" is added at the end\r\n confs.add(DEFAULT_CONFIG_FILE_NAME);\r\n return confs;\r\n }));\r\n\r\n // for the sake of readability do a separate stream... but it could be attatched to the collect from above\r\n configurationsToLoad.stream() //\r\n .map(Environment::propertiesFileBuilder) //\r\n .map(Environment::safeGetConfiguration) //\r\n .forEach(configuration::addConfiguration);\r\n\r\n // useful when using docker where you may want to set environment variables in the docker-compose or docker run\r\n System.getenv().forEach((k, v) -> {\r\n if (configuration.containsKey(k)) {\r\n System.out.println(\"Overriding property \" + k + \" with value \" + v);\r\n }\r\n configuration.setProperty(k, v);\r\n });\r\n\r\n return configuration;\r\n }", "@Bean\n @Profile(\"test\")\n public static PropertySourcesPlaceholderConfigurer pspcTest() {\n\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n\n pspc.setLocalOverride(true);\n\n return pspc;\n }", "@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }", "public ProfileService(String endpoint) {\n \t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}", "@Test\n public void contextLoad() throws Exception {\n testCase1();\n }", "@Bean\n public static PropertySourcesPlaceholderConfigurer properties(){\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n Resource[] resources = new ClassPathResource[ ]\n { new ClassPathResource(\"app-attribute.properties\") };\n pspc.setLocations( resources );\n pspc.setIgnoreUnresolvablePlaceholders( true );\n return pspc;\n }", "Properties readConfigurationAsProperties(String moduleName, String profile) throws Exception;", "@Bean\n public WebSSOProfileECPImpl ecpprofile() {\n return new WebSSOProfileECPImpl();\n }", "public TestBase()\r\n\t{\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"src\\\\test\\\\resources\\\\intellicus.properties\");\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"system:properties\",\n \"classpath:application.properties\"\n})\npublic interface ProjectConfig extends Config {\n\n @Key(\"app.hostname\")\n String hostname();\n\n @Key(\"browser.name\")\n @DefaultValue(\"chrome\")\n String browser();\n\n}", "private ConfigProperties() {\n\n }", "public void activate(Properties prop) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tconfig = new NgConfig(prop);\n\t\t}\n\t\tactivate();\n\t}", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "@Bean\n\tpublic QanaryComponent qanaryComponent() {\n\t\ttry {\n\t\t\t//The my.properties file is created throught the pom.xml file\n\t\t\tjava.io.InputStream is = getClass().getClassLoader().getResourceAsStream(\"config/my.properties\");\n\t\t\tprops.load(is);\n\t\t\tDetectorFactory.loadProfile(props.getProperty(\"profile_directory\"));\n\t\t} catch (LangDetectException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new LanguageDetection();\n\t}", "public void init(MailetContext context);", "public ApplicationDefinitionProperties() {\n }", "public Properties initForRuntime() {\n initProperties();\n return this;\n }", "public ProfiledApplicationBean() {}", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public LegProfile ()\n {\n\t// For Jackson ObjectMapper's sanity!\n }", "protected abstract void loadProperty(String key, String value);", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "ValueGenerator createAndRegisterValueGenerator(String memberKey, String strategyName, Properties props);", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}", "public static void basefn() throws IOException {\r\n\t\t//Below line creates an object of Properties called 'prop'\r\n\t\tprop = new Properties(); \r\n\t\t\r\n\t\t//Below line creates an object of FileInputStream called 'fi'. Give the path of the properties file which you have created\r\n\t\tFileInputStream fi = new FileInputStream(\"D:\\\\Java\\\\workspace\\\\Buffalocart\\\\src\\\\test\\\\resources\\\\config.properties\");\r\n\t\t\r\n\t\t//Below line of code will load the property file\r\n\t\tprop.load(fi);\t\t\t\t\r\n\t}" ]
[ "0.6546178", "0.595982", "0.5603702", "0.55523485", "0.5538054", "0.54495317", "0.5417266", "0.53898484", "0.53648937", "0.53149855", "0.52838117", "0.5272888", "0.5181326", "0.51806647", "0.51589847", "0.5153222", "0.51454926", "0.5122625", "0.51103884", "0.50882393", "0.50855255", "0.50703406", "0.5066836", "0.50392497", "0.503813", "0.50207245", "0.49958888", "0.4994615", "0.49910796", "0.49856088", "0.4963356", "0.495956", "0.4945817", "0.49311444", "0.4898019", "0.48847753", "0.48824364", "0.4866261", "0.4860846", "0.4857756", "0.48539582", "0.48270297", "0.48235416", "0.48216262", "0.48192894", "0.48187202", "0.48160282", "0.48129046", "0.48093387", "0.48040634", "0.48018593", "0.47998986", "0.47912565", "0.47841385", "0.47772262", "0.4774308", "0.4768953", "0.47609782", "0.474618", "0.4736445", "0.4729842", "0.47293887", "0.47133324", "0.47116372", "0.47029212", "0.47019273", "0.47000596", "0.46917242", "0.4674755", "0.46704856", "0.46674463", "0.46657526", "0.4665723", "0.46627784", "0.4657506", "0.46548152", "0.46528324", "0.46414167", "0.46341532", "0.4632475", "0.4621117", "0.46199727", "0.46185604", "0.4616459", "0.46149734", "0.46135437", "0.46113744", "0.46071362", "0.46069786", "0.46031994", "0.46015552", "0.459746", "0.45935273", "0.45797", "0.45786476", "0.4577329", "0.45747083", "0.45640785", "0.45640785", "0.45561847" ]
0.68312186
0
Sets the default env profile.
public final void setDefaultEnvProfile(final String defaultEnvProfile) { this.defaultEnvProfile = defaultEnvProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void conditionallyActivateDefaultEnvProfile(\r\n\t\t\tfinal ConfigurableEnvironment contextEnv) throws IOException {\r\n\r\n\t\t// if no default env is specified, then don't activate one by default\r\n\t\tif (StringUtils.isEmpty(defaultEnvProfile)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// check if any env profile is activated\r\n\t\tboolean envProfileActivated = false;\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tenvProfileActivated = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if no env profile was activated, activate the defaultEnvProfile\r\n\t\tif (!envProfileActivated) {\r\n\t\t\tLOGGER.info(\"No Env Profile Activated, Defaulting to: \"\r\n\t\t\t\t\t+ defaultEnvProfile);\r\n\t\t\tcontextEnv.addActiveProfile(defaultEnvProfile);\r\n\t\t}\r\n\t}", "public static void addDefaultProfile(final SpringApplication app) {\n final Map<String, Object> defProperties = new HashMap<>();\n /*\n * The default profile to use when no other profiles are defined\n * This cannot be set in the <code>application.yml</code> file.\n * See https://github.com/spring-projects/spring-boot/issues/1219\n */\n defProperties.put(SPRING_PROFILE_DEFAULT, Profiles.LOCAL);\n app.setDefaultProperties(defProperties);\n }", "private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }", "private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}", "public void setCurrentEnvironment(String environment) {\n currentEnvironment = environment;\n }", "public void setDefaultHackystatAccount(String defaultHackystatAccount) {\r\n this.defaultHackystatAccount = defaultHackystatAccount;\r\n }", "@Override\n public void setActiveProfile(String profileName) {\n }", "public final void setSamenv(java.lang.String samenv)\n\t{\n\t\tsetSamenv(getContext(), samenv);\n\t}", "protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}", "public String getDefaultEnvironmentVariableName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDefaultEnvironmentVariableName\");\n\t\t\treturn SemanticVersionBuildWrapper.DEFAULT_ENVIRONMENT_VARIABLE_NAME;\n\t\t}", "public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }", "void setEnvironmentFile(File environmentFile);", "void setEnvironment(Properties properties);", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }", "public void setEnvironment(Map<String, String> environment);", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "static void setupDefaultEnvironment() throws IOException {\n String rioHomeDirectory = getRioHomeDirectory();\n File logDir = new File(rioHomeDirectory+\"logs\");\n checkAccess(logDir, false);\n }", "public void setProfile(String profile) {\n this.profile = profile == null ? null : profile.trim();\n }", "public\n void setPropertiesDefaults(String argv[])\n {\n if (argv == null)\n return;\n\n for (int i = 0; i < argv.length; i++)\n {\n try {\n defaults.load(new StringBufferInputStream(argv[i]));\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }\n }", "private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }", "private void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "public void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "public ProfileContextInitializer(final String appName) {\r\n\t\tthis(appName, DEFAULT_VERSION, appName\r\n\t\t\t\t+ DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}", "void setDefaultPreference(String preferenceName, String value) throws OntimizeJEERuntimeException;", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}", "@Override\n\tpublic void setEnvironment(Environment environment) {\n\t\tSystem.out.println(\"call setEnvironment()...\");\n\t\tenv = environment;\n\t}", "private static void setDefaultConfig() {\n AgentConfig agentConfig = HypertraceConfig.get();\n OpenTelemetryConfig.setDefault(OTEL_EXPORTER, \"zipkin\");\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n }", "public ProfileServiceWithDefaults profileWithDefaults() {\n return service.getProfileServiceWithDefaultsAndCallbacks();\n }", "public void setSelectedProfile(String profile) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"SELECTED_PROFILE\", profile);\n\t\teditor.commit();\n\t}", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "public void setProfiles(HashMap<String, String> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "public static void setDefaultUserImage() {\n user.setUserProfileImage(null);\n setUpNavigationHeader();\n ImageManager.deleteImage(ImageManager.USER_PROFILE_IMAGES_PATH, user.getUsername());\n }", "@Parameters({\"sandbox\",\"browser\"})//allows to pass the values of Environment & Browser Type\n\t@Test (priority=0)\n\tpublic void TestInitialSetup(@Optional(\"Test\")String sandbox,@Optional(\"mozilla\")String browser){//default values are Environment=Test & Browser=Mozilla \n\t\tapp.InitialSetup(sandbox,browser);\n\t}", "@Override\n\tpublic UserProfile getDefaultUserProfile(String userName, String ip)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void setEnvironment(String environment1) {\n this.environment = environment1;\n }", "public void setProfiles(Set<Profile> profiles) {\n\t\tthis.profiles = profiles;\n\t}", "private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }", "public final void setSamenv(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String samenv)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Samenv.toString(), samenv);\n\t}", "public void setDefaultTab() {\r\n\t\t\tgetActionBar().selectTab(getActionBar().getTabAt(CLASSIFICATION_TAB_INDEX));\t\r\n\t\t}", "public static void set_UseDefaults(boolean y) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaUseDefaultsCmd,\n \t\t (y) ? (byte) 1 : (byte) 0);\n UmlCom.check();\n }", "public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "@BeforeSuite\n\t\n\tpublic void setUp()\n\t{\n\t\t\n\t\tSystem.out.println(\" set system property for chrome\");\n\t}", "public void setEnvironment(Object environment) {\n this.environment = environment;\n }", "public void setEspaciosDefault(String espacios) {\n\t\tthis.espaciosDefault = espacios == null ? \"1\" : espacios;\n\t}", "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }", "public void setRunnerDefaultFromConnection(IntegrityConnection conn)\n {\n _log.message(\"Setting command runner defaults \" + conn.toString());\n _cmdRunner.setDefaultHostname(conn.getHost());\n _cmdRunner.setDefaultPort(conn.getPort());\n _cmdRunner.setDefaultUsername(conn.getUser());\n }", "public void changeEnvironmentTypeToGlobal() {\n this.setEnvironmentType(EnvironmentTypesList.getGlobalEnvironmentType());\n\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public void setDefaultHost(VirtualHost defaultHost) {\r\n this.defaultHost = defaultHost;\r\n }", "void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "static void setDefaults() {\n \n setDefault(FEATURE_POLICY_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_ENRICHER_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_FEED_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_FEED_REGISTRATION_PROPERTY, false);\n setDefault(FEATURE_CATALOG_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_DEFAULT_STANDBY_IS_HOT_PROPERTY, false);\n setDefault(FEATURE_USE_BROOKLYN_LIVE_OBJECTS_DATAGRID_STORAGE, false);\n setDefault(FEATURE_RENAME_THREADS, false);\n setDefault(FEATURE_BACKWARDS_COMPATIBILITY_INFER_CATALOG_ITEM_ON_REBIND, true);\n setDefault(FEATURE_AUTO_FIX_CATALOG_REF_ON_REBIND, false);\n setDefault(FEATURE_SSH_ASYNC_EXEC, false);\n setDefault(FEATURE_VALIDATE_LOCATION_SSH_KEYS, true);\n }", "public WebElement profileSetUpTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[contains(text(),'Profile')]\"));\n\t}", "public void setProfilesLocation(String profilesLocation) {\n this.profilesLocation = profilesLocation;\n }", "private Properties loadDefaultProperties() {\n Properties pref = new Properties();\n try {\n String path = \"resources/bundle.properties\";\n InputStream stream = PreferenceInitializer.class.getClassLoader().getResourceAsStream(path);\n pref.load(stream);\n } catch (IOException e) {\n ExceptionHandler.logAndNotifyUser(\"The default preferences for AgileReview could not be initialized.\"\n + \"Please try restarting Eclipse and consider to write a bug report.\", e, Activator.PLUGIN_ID);\n return null;\n }\n return pref;\n }", "@BeforeClass(alwaysRun = true)\n\t@Parameters(\"Environment\")\n\tpublic void startEnvironment(String sEnv) {\n\t\ttry {\n\t\t\tcs = null;\n\t\t\tal = new AppLib(cs);\n\t\t\tal.setEnvironmentInfo(sEnv);\n\t\t\tproxy = al.getHttpProxy();\n\t\t\tapi = new API();\n\t\t\tapi.setProxy(proxy);\n\t\t\tmydb = al.getMongoDbConnection();\n\t\t\tma = new MemberAPIs();\n\t\t\tmember = new TC01_FindMemberFromDB();\n\t\t\t} catch (Exception e) {\n\t\t\t\tfail(e.toString());\n\t\t\t\t}\n\t}", "public void setProfile(MetadataProfile profile) {\n\t\tthis.profile = profile;\n\t}", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public void addEnvEntry (String name, String value)\n {\n _plusWebAppContext.addEnvEntry(name, value);\n }", "public native void setColorProfile(ProfileInfo profile)\n\t\t\tthrows MagickException;", "public void setEnvironmentFrame(final EnvironmentFrame frame) {\n\t\tmyEnvFrame = frame;\n\t}", "private void loadSystemConfig() {\r\n try {\r\n Properties systemProperties = System.getProperties();\r\n for (Enumeration e = systemProperties.keys(); e.hasMoreElements(); ) {\r\n String key = (String) e.nextElement();\r\n if (key.startsWith(DEFAULT_PROPERTY_PREFIX)) {\r\n Object value = systemProperties.getProperty(key);\r\n properties.put(key, value);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Override Scope property \" + key + \" with \" + value);\r\n }\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Can't access System properties\", e);\r\n }\r\n }\r\n }", "@Test\n\tpublic void testMain() {\n\t\tProjectManagerRestfulApiApp.main(new String[] {\n\t\t\t\t\"spring.profiles.active=test\"\n\t\t});\n\t}", "public static void setEnv() throws IOException {\n\t\tBuildURL.propReader = new PropertyReader(App.getResourcesFilePath() + FileSystems.getDefault().getSeparator() + App.getConfigFileRoot() + \"configuration.properties\");\n\t\tBuildURL.baseURL = propReader.readValue(\"baseURL\");\n\t\tBuildURL.domain = propReader.readValue(\"domain\");\n\t\tBuildURL.project = propReader.readValue(\"project\");\n\n\t\tif(propReader.readValue(\"login_form_required\").equalsIgnoreCase(\"Y\")){\n\t\t\tlogin_required_string = \"?login-form-required=y\";\n\t\t}else{\n\t\t\tlogin_required_string = \"\";\n\t\t}\n\t}", "public void loadEnvironmentSettings(EnvironmentSettings settings, Element parent, LoadContext context) {\n final Element settingsElement = extractDiagramSettingsElement(parent);\n Element element = getElement(settingsElement, \"environment_setting\"); // migration from ERMaster\n if (element == null) {\n element = getElement(settingsElement, \"environment_settings\"); // #for_erflute rename\n }\n final List<Environment> environmentList = new ArrayList<>();\n final String defaultExpression = \"Default\";\n if (element != null) {\n final NodeList nodeList = element.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++) {\n if (nodeList.item(i).getNodeType() != Node.ELEMENT_NODE) {\n continue;\n }\n final Element environmentElement = (Element) nodeList.item(i);\n final String id = getStringValue(environmentElement, \"id\");\n String name = getStringValue(environmentElement, \"name\");\n if (\"\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\".equals(name)) { // Japanese \"default\" as Katakana\n name = defaultExpression; // #for_erflute use English only\n }\n final Environment environment = new Environment(name);\n environmentList.add(environment);\n context.environmentMap.put(id, environment);\n }\n }\n if (environmentList.isEmpty()) {\n final Environment environment = new Environment(defaultExpression); // #for_erflute use English only\n environmentList.add(environment);\n context.environmentMap.put(\"\", environment);\n }\n settings.setEnvironments(environmentList);\n }", "@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}", "public void setDefaultHackystatPassword(String defaultHackystatPassword) {\r\n this.defaultHackystatPassword = defaultHackystatPassword;\r\n }", "public static void setDefaultUserAgent(final String newUserAgent){\n sDefaultUserAgent = newUserAgent;\n }", "@Override\n\tpublic void setDefaultCpus(int defaultCpus) {\n\t\t_scienceApp.setDefaultCpus(defaultCpus);\n\t}", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }", "public native void setIptcProfile(ProfileInfo profile)\n\t\t\tthrows MagickException;", "public static void setGlobalsToDefaults(){\r\n\t\tGlobals.globalvars.put(\"gamestage\", \"none\");\r\n\t\tGlobals.globalvars.put(\"cleft\", 0);\r\n\t\t\r\n\t\tInteger[] prematch = {64, 20};\r\n \tGlobals.cdpresets.put(\"pregame\", prematch);\r\n \tInteger[] getready = {5, 1200};\r\n \tGlobals.cdpresets.put(\"prepare\", getready);\r\n \tInteger[] battle = {10, 1200};\r\n \tGlobals.cdpresets.put(\"fight\", battle);\r\n \t\r\n \tGlobals.countdowns.clear();\r\n \tGlobals.lobby.clear();\r\n\t}", "public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}", "private void setDefaultMode(GlobalState gs) {\n center = gs.cnt;\n double diagonal = gs.vDist * cos(gs.phi);\n double z = sin(gs.phi) * gs.vDist;\n double x = diagonal * cos(gs.theta);\n double y = diagonal * sin(gs.theta);\n \n eye = new Vector(x, y, z);\n \n }", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "@BeforeSuite\n\tpublic void setUp() {\n\t\tlogger.info(\"IN SETUP METHOD: performing pretest configurations\");\n\t\ttry {\n\t\t\tinput = new FileInputStream(\"config.properties\");\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e);\n\t\t\t\n\t\t}\n\t\t//Set the browser from the cmd line or from config.properties file\n\t\tString browser = System.getProperty(\"browser\", prop.getProperty(\"browser\"));\n\t\tlogger.info(\"Selected browser is: \" + browser);\n\t\tgmailPg.driverSetup(browser, prop.getProperty(\"remote\"));\n\t\tgmailPg.explicitWaitSetup();\n\t\tgmailPg.loadXpathProps();\n\t}", "public void setUp()\n\t{\n\t\tif (driver == null){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.println(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t\tSystem.out.println(\"config file loaded\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\properties\\\\OR.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tOR.load(fis);\n\t\t\t\t//config.load(fis);\n\t\t\t\tSystem.out.println(\"OR file loaded\");\n\t\t\t\tSystem.out.println(System.getenv(\"browser\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (System.getenv(\"browser\")!= null)\n\t\t\t\t{\n\t\t\t\t\tbrowser = System.getenv(\"browser\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tbrowser = config.getProperty(\"browser\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\tconfig.setProperty(browser, browser);\n\t\tif (config.getProperty(\"browser\").equals(\"chrome\"))\n\t\t\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\executables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t\tSystem.out.println(\"Chrome Launched !!!\");\n\t\t}\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();\n\t\tSystem.out.println(System.getProperty(\"TestEnv\"));\n\t\tdriver.get(config.getProperty(\"testsiteurl\").replace(\"{TestEnv}\", System.getProperty(\"TestEnv\")));\n\t\tSystem.out.println(\"Navigated to : \" + config.getProperty(\"testsiteurl\"));\n\t\tdriver.manage().window().maximize();\n\t\t\n\t}", "public void setDefaultIsolation(int defaultIsolation) {\r\n this.defaultIsolation = defaultIsolation;\r\n }", "public void setNewenvironment(boolean newenv) {\r\n newEnvironment = newenv;\r\n }", "public void forceDefaultConfig()\n {\n plugin.saveResource(fileName, true);\n }", "private void selectProdEnv() {\n\n new Handler(getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", true);\n editor.apply();\n }\n }, AppPreference.MENU_DELAY);\n }", "public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }", "public System() {\n\t\tsuper();\n\t\tthis.profiles = new HashSet<Profile>();\n\t}", "public void setDefaultExpressionContext(\n\t\t\tExpressionContext defaultExpressionContext) {\n\t\tthis.defaultExpressionContext = defaultExpressionContext;\n\t}", "public void setEnvironment(Configuration config) {\n _environment = config;\n }", "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}", "public void setEnvironment(PanelEnvironment aEnvironment) \r\n\t{\r\n\t\tthis.panelEnvironment = aEnvironment;\r\n\t\tif( this.panelEnvironment == null ) {\r\n\t\t\tthis.panelEnvironment = new NullPanelEnvironment();\r\n\t\t}\r\n\t}", "void setEnvironment(CudaEnvironment environment);", "public void setEnv(byte[] name, byte[] value){\n synchronized(this){\n getEnv().put(name, value);\n }\n }", "@Parameters({ \"browser\" })\n\t@BeforeSuite \n\tpublic void setUpInParent(@Optional(browser_name) String browser) {\n\t\tconfigFile = new ReadProperties(config_file_path);\n\t\tString chrome_path = configFile.getPropertyValue(browser_name);\n\t\tString url_location = configFile.getPropertyValue(browser_url);\n\t\tif (browser.equalsIgnoreCase(browser_name)) {\n\t\t\tSystem.setProperty(webdriver_chrome_driver, chrome_path);\n\t\t\tdriver = new ChromeDriver();\n\t\t\tdriver.get(url_location);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\n\n\t\t}\n\t\twait=new WebDriverWait(driver, 5);\n\t}", "public CompilationBuilder setDefaultScriptExtension(String defaultScriptExtension) {\n\t\tcompilerConfiguration.setDefaultScriptExtension(defaultScriptExtension);\n\t\treturn this;\n\t}", "public static void resetDefaultWallet() {\n\n }", "@Override\n protected StartupMode getDefaultStartupMode() {\n return StartupMode.IN_JVM;\n }" ]
[ "0.6708031", "0.62476563", "0.5478865", "0.5453184", "0.5425121", "0.5419308", "0.53549016", "0.53106475", "0.5293869", "0.52481914", "0.5223459", "0.5206879", "0.51242894", "0.51144266", "0.5101036", "0.5080934", "0.50762", "0.5046444", "0.5024886", "0.5021664", "0.50054634", "0.49813926", "0.49802098", "0.49783155", "0.49720743", "0.49519646", "0.4924049", "0.49064013", "0.4904778", "0.4894089", "0.48832548", "0.48742864", "0.48648676", "0.4855007", "0.48501167", "0.48459566", "0.48115852", "0.48023385", "0.4797256", "0.47892112", "0.47784886", "0.47727713", "0.47619507", "0.47388083", "0.4733996", "0.47317326", "0.4729793", "0.4690658", "0.46898508", "0.46810913", "0.4669816", "0.4668312", "0.46585992", "0.46486318", "0.46475735", "0.46412152", "0.46343592", "0.46272385", "0.46135595", "0.46050823", "0.46015283", "0.45887318", "0.45817083", "0.45788783", "0.45738536", "0.4572351", "0.45712164", "0.45664036", "0.45493624", "0.45439622", "0.4542001", "0.45326114", "0.45183656", "0.45154023", "0.4513584", "0.4503294", "0.44930366", "0.44884336", "0.44784218", "0.44722044", "0.44704765", "0.4463179", "0.4461037", "0.44589952", "0.44578552", "0.4449958", "0.4448729", "0.44458187", "0.44441453", "0.4443656", "0.44406635", "0.44359443", "0.4433605", "0.4432826", "0.44318354", "0.44236696", "0.4421388", "0.44192922", "0.44168878", "0.44162324" ]
0.84071034
0
Conditionally activate default env profile.
private void conditionallyActivateDefaultEnvProfile( final ConfigurableEnvironment contextEnv) throws IOException { // if no default env is specified, then don't activate one by default if (StringUtils.isEmpty(defaultEnvProfile)) { return; } // check if any env profile is activated boolean envProfileActivated = false; for (String profile : ENVIRONMENT_PROFILES) { if (contextEnv.acceptsProfiles(profile)) { envProfileActivated = true; } } // if no env profile was activated, activate the defaultEnvProfile if (!envProfileActivated) { LOGGER.info("No Env Profile Activated, Defaulting to: " + defaultEnvProfile); contextEnv.addActiveProfile(defaultEnvProfile); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setDefaultEnvProfile(final String defaultEnvProfile) {\r\n\t\tthis.defaultEnvProfile = defaultEnvProfile;\r\n\t}", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }", "public void activate(Properties prop) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tconfig = new NgConfig(prop);\n\t\t}\n\t\tactivate();\n\t}", "private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }", "protected boolean isDevelopment() {\n\t\treturn ArrayUtils.contains(environment.getActiveProfiles(), \"dev\")\n\t\t\t\t|| ArrayUtils.contains(environment.getActiveProfiles(), \"test\");\n\t}", "public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }", "private void selectProdEnv() {\n\n new Handler(getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", true);\n editor.apply();\n }\n }, AppPreference.MENU_DELAY);\n }", "@Override\n public void setActiveProfile(String profileName) {\n }", "private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }", "public static void addDefaultProfile(final SpringApplication app) {\n final Map<String, Object> defProperties = new HashMap<>();\n /*\n * The default profile to use when no other profiles are defined\n * This cannot be set in the <code>application.yml</code> file.\n * See https://github.com/spring-projects/spring-boot/issues/1219\n */\n defProperties.put(SPRING_PROFILE_DEFAULT, Profiles.LOCAL);\n app.setDefaultProperties(defProperties);\n }", "public static boolean profileIsActive(ApplicationContext ctx, String profile) {\n if (profile == null || profile.trim().isEmpty()) {\n return true;\n }\n\n String[] activeProfiles = ctx.getEnvironment().getActiveProfiles();\n String[] profiles = profile.split(\",\");\n\n return intersect(activeProfiles, profiles);\n }", "protected void mockActivate() {\r\n this.bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n }", "public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }", "public void activate() {\n\t\tactivated = true;\n\t}", "private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "public boolean envShouldExist() {\n return envShouldExist;\n }", "Environment createEnvironment();", "Environment createEnvironment();", "private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }", "protected static Optional<String> env(String name) {\n return Optional.ofNullable(System.getenv(name));\n }", "public void initEnvironment(String _changeEnvToken) {\r\n\t\ttry {\r\n\t\t\tif ((this.changeEnvToken == null) || (_changeEnvToken == null) || (!this.changeEnvToken.equals(_changeEnvToken))) {\r\n\t\t\t\tlog.debug(\"New changeEnvironment token found.\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString tempPoolName = (String)this.alternatePoolNames.get(_changeEnvToken);\r\n\t\t\t\t\tlock.writeLock().lockInterruptibly();\r\n\t\t\t\t\t// specified pool-name was not found\r\n\t\t\t\t\tboolean refreshCache = true;\r\n\t\t\t\t\tif ((tempPoolName == null) || (tempPoolName.trim().length() == 0)) {\r\n\t\t\t\t\t\ttempPoolName = defaultPoolName;\r\n\t\t\t\t\t\t// if we already use the default, then skip refresh\r\n\t\t\t\t\t\tif (tempPoolName.equals(this.poolName)) {\r\n\t\t\t\t\t\t\tlog.debug(\"Default pool-name already set. Continuing to use it.\");\r\n\t\t\t\t\t\t\trefreshCache = false;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// refreshing cache to use default pool-name\r\n\t\t\t\t\t\t\tlog.warn(\"Alternate pool-name was not informed, it will be used the default pool-name.\");\r\n\t\t\t\t\t\t\tthis.poolName = defaultPoolName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// specified pool-name was found\r\n\t\t\t\t\t\tthis.poolName = tempPoolName;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.changeEnvToken = _changeEnvToken;\r\n\t\t\t\t\tif (refreshCache) {\r\n\t\t\t\t\t\trefreshCache();\r\n\t\t\t\t\t\tloadCache();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t\tlog.error(ie);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tlock.writeLock().unlock();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tthrow new ConfigurationException(e);\r\n\t\t}\r\n\t}", "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setNewenvironment(boolean newenv) {\r\n newEnvironment = newenv;\r\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "void activate(ConditionContext context);", "public static profile getActive(){\n return active;\n }", "public void addEnvEntry (String name, String value)\n {\n _plusWebAppContext.addEnvEntry(name, value);\n }", "public void activate(String configFilename) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (configFilename != null) {\n\t\t\tconfig = new NgConfig(configFilename);\n\t\t} else if (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tthrow new NgInitializeGrpcClientException(\n\t\t\t\t\"not specified configfile.\");\n\t\t}\n\t\t\n\t\tactivate();\n\t}", "public static void setActive(profile p){\n active = p;\n }", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "public String getDefaultEnvironmentVariableName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDefaultEnvironmentVariableName\");\n\t\t\treturn SemanticVersionBuildWrapper.DEFAULT_ENVIRONMENT_VARIABLE_NAME;\n\t\t}", "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }", "public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }", "private void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "String getEnvironment();", "protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}", "public static void createActiveUserRelatedPreferencesIfNeeds(Context context) {\r\n\t\tif (hasActiveUserId(context) == false) {\r\n\t\t\tString newUserId = generateNewUserId();\r\n\t\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\t\tString userConfigFileName = getUserConfigFileName(context,\r\n\t\t\t\t\tnewUserId);\r\n\t\t\tString userDbFileName = DatabaseHelper.databaseName; // Use old db\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tEditor editor = prefs.edit();\r\n\t\t\t\tif (editor != null) {\r\n\t\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t\t\teditor.putString(PreferenceKeys.ActiveUserId, newUserId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\teditor.commit();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setFirstInstall(){\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putBoolean(SharedPrefContract.PREF_INSTALLED, true);\n editor.apply();\n }", "public static boolean initEdgeProxy() {\n /**\n * Configure default proxy based on environment, this can be programmatically overriden\n * for testing purposes\n */\n StringBuilder sb = new StringBuilder(\"restedge.default.proxy.\");\n if (Play.isDev()) {\n sb.append(\"dev\");\n } else if (Play.isTest()) {\n sb.append(\"stage\");\n } else if (Play.isProd()) {\n sb.append(\"prod\");\n }\n PROXIED_HOST = Play.application().configuration().getString(sb.toString());\n if (PROXIED_HOST.isEmpty()) {\n Logger.warn(\"DEFAULT PROXIED HOST IS EMPTY\");\n return false;\n }\n return true;\n }", "public static boolean inAwsEnv() {\n\t\treturn RuntimeParamUtil.isAwsMode();\n\t}", "public boolean activate();", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public static TrackableEnvironment createEnvironment() {\n return null;\n }", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "Properties getEnvironment();", "Properties getEnvironment();", "private void randomizeEnvironment() {\n }", "public static boolean getFirstLaunch(Context context) {\n return context.getSharedPreferences(FILE_NAME, 0)\n .getBoolean(FIRST_LAUNCH_KEY, true);\n }", "@Test\n\tpublic void testMain() {\n\t\tProjectManagerRestfulApiApp.main(new String[] {\n\t\t\t\t\"spring.profiles.active=test\"\n\t\t});\n\t}", "public boolean isProdEnvironment() {\n\n\t\tif (driver.getCurrentUrl().contains(\"www.homedepot.com\")\n\t\t\t\t|| dataHelper.getCommonData(CommonDataColumn.EnvironmentUrl)\n\t\t\t\t\t\t.contains(\"www.homedepot.com\")\n\t\t\t\t|| HelperClass.baseModel.runEnvironment.equals(\"Prod\")) {\n\n\t\t\treturn true;\n\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void environmentStart(EnvironmentClassLoader loader)\n {\n }", "protected boolean isActive(String appName) {\n return appFile(appName, \"active\").exists();\n }", "public void updateEnvironment(Context context, JSONObject post) {\n try {\n post.put(Jsonkey.Environment.getKey(), isPackageInstalled(context) ? Jsonkey.NativeApp.getKey() : Jsonkey.InstantApp.getKey());\n } catch (Exception e) {\n }\n }", "public void setEnvironment(Map<String, String> environment);", "@Parameters({\"sandbox\",\"browser\"})//allows to pass the values of Environment & Browser Type\n\t@Test (priority=0)\n\tpublic void TestInitialSetup(@Optional(\"Test\")String sandbox,@Optional(\"mozilla\")String browser){//default values are Environment=Test & Browser=Mozilla \n\t\tapp.InitialSetup(sandbox,browser);\n\t}", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "protected boolean setActive(String appName) {\n try {\n File active = appFile(appName, \"active\");\n createParentDirs(active);\n return active.createNewFile() && updateTime(appName);\n } catch (IOException e) {\n log.warn(\"Unable to mark app {} as active\", appName, e);\n throw new ApplicationException(\"Unable to mark app as active\", e);\n }\n }", "static void setupDefaultEnvironment() throws IOException {\n String rioHomeDirectory = getRioHomeDirectory();\n File logDir = new File(rioHomeDirectory+\"logs\");\n checkAccess(logDir, false);\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "public static ConfigurableApplicationContext create(String[] profiles) {\n AnnotationConfigApplicationContext bootstrapContext = new AnnotationConfigApplicationContext();\n\n // Get bootstrap environment and add to a composite property source\n ConfigurableEnvironment bootstrapEnvironment = getBootstrapEnvironment(bootstrapContext, profiles);\n MutablePropertySources bootstrapPropertySources = bootstrapEnvironment.getPropertySources();\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);\n CompositePropertySource bootstrapPropertySource = new CompositePropertySource(\"bootstrap\");\n bootstrapPropertySources.forEach(bootstrapPropertySource::addPropertySource);\n bootstrapContext.getEnvironment().getPropertySources().addLast(bootstrapPropertySource);\n\n ClassLoader classLoader = bootstrapContext.getClassLoader();\n List<String> names = SpringFactoriesLoader\n .loadFactoryNames(BootstrapConfiguration.class, classLoader);\n List<Class<?>> sources = new ArrayList<>();\n for (String name : names) {\n sources.add(ClassUtils.resolveClassName(name, classLoader));\n }\n AnnotationAwareOrderComparator.sort(sources);\n\n bootstrapContext.setEnvironment(bootstrapEnvironment);\n sources.forEach(bootstrapContext::register);\n bootstrapContext.refresh();\n return bootstrapContext;\n }", "void setEnvironment(Properties properties);", "public void setEnvironment(String environment1) {\n this.environment = environment1;\n }", "private void launchProfilesActivity() {\n Intent intent = new Intent(this, ProfilesActivity.class);\n startActivity(intent);\n }", "private boolean checkIfProfileExists() {\n String profileCreatedKey = context.getString(R.string.app_name_key) + context.getString(R.string.created_profile_key);\n String profileCreated = sharedPref.getString(profileCreatedKey, \"false\");\n return Boolean.valueOf(profileCreated);\n }", "public void setCurrentEnvironment(String environment) {\n currentEnvironment = environment;\n }", "private void activateCAMP(){\n\t\t\tadenylylCyclaseActivated = true;\n\t\t\tcAMPActivated = true;\n\t\t}", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "java.lang.String getEnv(int index);", "public ProfileServiceWithDefaults profileWithDefaults() {\n return service.getProfileServiceWithDefaultsAndCallbacks();\n }", "public void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "public String getSystemEnv() {\n return \"\";\n }", "protected abstract void doConfigure(\n ServiceProfile<?> profile,\n Map<String, String> desiredProperties,\n Map<String, String> desiredEnvironmentVariables) throws InterruptedException, IOException;", "public void activate(){\r\n\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n SharedPreferences sharedPreferences = getSharedPreferences(\"com.example.ivonneortega.the_news_project.Settings\", Context.MODE_PRIVATE);\n theme_changed = sharedPreferences.getBoolean(SettingsActivity.THEME_HAS_CHANGED,false);\n\n if(mStartActivity){\n mStartActivity = false;\n\n } else if (theme_changed){\n SharedPreferences sharedPreferences1 = getSharedPreferences(\"com.example.ivonneortega.the_news_project.Settings\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences1.edit();\n editor.putBoolean(SettingsActivity.THEME_HAS_CHANGED,false);\n editor.apply();\n finish();\n startActivity(getIntent());\n }\n }", "@BeforeClass(alwaysRun = true)\n\t@Parameters(\"Environment\")\n\tpublic void startEnvironment(String sEnv) {\n\t\ttry {\n\t\t\tcs = null;\n\t\t\tal = new AppLib(cs);\n\t\t\tal.setEnvironmentInfo(sEnv);\n\t\t\tproxy = al.getHttpProxy();\n\t\t\tapi = new API();\n\t\t\tapi.setProxy(proxy);\n\t\t\tmydb = al.getMongoDbConnection();\n\t\t\tma = new MemberAPIs();\n\t\t\tmember = new TC01_FindMemberFromDB();\n\t\t\t} catch (Exception e) {\n\t\t\t\tfail(e.toString());\n\t\t\t\t}\n\t}", "public boolean isProxyEnvironment() {\n return \"proxy\".equals(activeProfile);\n }", "protected String getenv(String varname) {\n\t\t//return System.getProperty(varname);\n\t\treturn \"\"; //TODO allow virtual system variables for each computer, that are remembered on restart\n\t}", "public String getEnvironment(String env) {\n\t\treturn environment.get(env);\n\t}", "public void activate()\n {\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefinedOverride() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"browserName=firefox;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"firefox\");\r\n\t\t\r\n\t}", "private static boolean isFirstLaunch() {\n if (new File(\"couchbase-sync.state\").exists()) {\n return false;\n }\n return true;\n }", "private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }", "public WebElement profileSetUpTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[contains(text(),'Profile')]\"));\n\t}", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "@SuppressWarnings(\"unused\")\n private void unused_getEnvSupplier() {\n new Supplier<Map<String,String>>() {\n @Override\n public Map<String, String> get() {\n Map<String,String> result = MutableMap.of();\n for (Supplier<Map<String, String>> envS: dynamicEnvironmentSupplier) {\n if (envS!=null) {\n Map<String, String> envM = envS.get();\n if (envM!=null) {\n mergeEnvMaps(envM, result);\n }\n }\n }\n return result;\n }\n private void mergeEnvMaps(Map<String,String> supplied, Map<String,String> target) {\n if (supplied==null) return;\n // as the value is a string there is no need to look at deep merge behaviour\n target.putAll(supplied);\n }\n };\n }", "public void testThatStandardTransportClientCanConnectToDefaultProfile() throws Exception {\n assertGreenClusterState(internalCluster().transportClient());\n }", "boolean check (Env env) {\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }", "@SmallTest\n public void testInitiallyDone_ProfileDuringSuw() {\n final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_PROFILE,\n false);\n when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false);\n when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID));\n\n // WHEN calling markUserProvisioningStateInitiallyDone\n mHelper.markUserProvisioningStateInitiallyDone(params);\n\n // THEN the managed profile's state should be set to COMPLETE\n verify(mDevicePolicyManager).setUserProvisioningState(STATE_USER_SETUP_COMPLETE,\n MANAGED_PROFILE_USER_ID);\n // THEN the primary user's state should be set to PROFILE_COMPLETE\n verify(mDevicePolicyManager).setUserProvisioningState(STATE_USER_PROFILE_COMPLETE,\n PRIMARY_USER_ID);\n }", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "private static boolean development() {\n final String mode = mode();\n return \"dev\".equalsIgnoreCase(mode);\n }", "@SuppressWarnings(\"unchecked\")\n public static Hashtable<?, ?> getInitialEnvironment(Hashtable<?, ?> env) throws NamingException {\n String[] props = VersionHelper.PROPS; // system/applet properties\n if (env == null) {\n env = new Hashtable<>(11);\n }\n Object applet = env.get(Context.APPLET);\n\n // Merge property values from env param, applet params, and system\n // properties. The first value wins: there's no concatenation of\n // colon-separated lists.\n // Read system properties by first trying System.getProperties(),\n // and then trying System.getProperty() if that fails. The former\n // is more efficient due to fewer permission checks.\n //\n String[] jndiSysProps = helper.getJndiProperties();\n for (int i = 0; i < props.length; i++) {\n Object val = env.get(props[i]);\n if (val == null) {\n if (applet != null) {\n val = AppletParameter.get(applet, props[i]);\n }\n if (val == null) {\n // Read system property.\n val = (jndiSysProps != null) ? jndiSysProps[i] : helper.getJndiProperty(i);\n }\n if (val != null) {\n ((Hashtable<String, Object>) env).put(props[i], val);\n }\n }\n }\n\n // Return without merging if application resource files lookup\n // is disabled.\n String disableAppRes = (String) env.get(DISABLE_APP_RESOURCE_FILES);\n if (disableAppRes != null && disableAppRes.equalsIgnoreCase(\"true\")) {\n return env;\n }\n\n // Merge the above with the values read from all application\n // resource files. Colon-separated lists are concatenated.\n mergeTables((Hashtable<Object, Object>) env, getApplicationResources());\n return env;\n }" ]
[ "0.6489924", "0.5513763", "0.5406021", "0.53939754", "0.5392761", "0.5347965", "0.52417797", "0.51463807", "0.51166373", "0.5092673", "0.49726817", "0.4885185", "0.4832291", "0.48107722", "0.46950725", "0.46675244", "0.46525487", "0.4633924", "0.4620904", "0.4620904", "0.4604161", "0.45985562", "0.45829746", "0.45543644", "0.45520678", "0.45399895", "0.45399895", "0.45256212", "0.45033664", "0.44918385", "0.44853517", "0.44799915", "0.44710314", "0.44618067", "0.4448833", "0.44342232", "0.44082618", "0.43924895", "0.4389324", "0.43891922", "0.4387968", "0.4385844", "0.4379219", "0.4367326", "0.4361832", "0.43398106", "0.43379065", "0.43343046", "0.43343046", "0.4333229", "0.4325774", "0.43133602", "0.43118382", "0.4308849", "0.42981613", "0.4291378", "0.42841032", "0.4275104", "0.42738318", "0.42728373", "0.42647737", "0.42645", "0.42567796", "0.42567796", "0.42544782", "0.42534938", "0.424143", "0.42384124", "0.42360887", "0.42284366", "0.42284283", "0.4227992", "0.42265075", "0.42191553", "0.4210884", "0.42056096", "0.4197276", "0.4191519", "0.41789106", "0.41755378", "0.4174182", "0.4171682", "0.41714287", "0.4168822", "0.41684118", "0.41676623", "0.4160652", "0.41601577", "0.41429672", "0.4105888", "0.41054392", "0.410206", "0.41019133", "0.41019133", "0.41001022", "0.409765", "0.4095971", "0.4095971", "0.4095928", "0.40954456" ]
0.80183333
0
Load up the property source for the environment based property file. Current environment is determined by which environment Spring profile is active.
private void setEnvPropertySources( final ConfigurableApplicationContext applicationContext, final String appName) throws IOException { final ConfigurableEnvironment contextEnv = applicationContext .getEnvironment(); for (String profile : ENVIRONMENT_PROFILES) { // If environment profile is active, add the corresponding property // source if (contextEnv.acceptsProfiles(profile)) { contextEnv .getPropertySources() .addFirst( new ResourcePropertySource( BasePropertiesConfig.CLASSPATH_CONFIG_PREFIX + appName + BasePropertiesConfig.DASH + profile + BasePropertiesConfig.PROPERTIES_FILE_EXT)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}", "public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}", "@Bean\n @Profile(\"test\")\n public static PropertySourcesPlaceholderConfigurer pspcTest() {\n\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n\n pspc.setLocalOverride(true);\n\n return pspc;\n }", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void read_Environment_Variable_for_Web() {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"/Environment File/environmentVariableForWebProduction2.properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(input);\n\n\t\t\t// get the property value and print it out\n\t\t Map<String, Object> map = new HashMap<>();\n\t\t\tfor (Entry<Object, Object> entry : prop.entrySet()) {\n\t\t\t\tmap.put((String) entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tEnvironmentVariablesForWeb.setEnvironmentPropertyMap(map);\n\t\t\t/*EnvironmentVariables.PLATFORM_NAME = prop.getProperty(\"PLATFORM_NAME\");\n\t\t\tEnvironmentVariables.VERSION_NAME = prop.getProperty(\"VERSION_NAME\");\n\t\t\tEnvironmentVariables.DEVICE_NAME = prop.getProperty(\"DEVICE_NAME\");\n\t\t\tSystem.out.println(EnvironmentVariables.PLATFORM_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.VERSION_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.DEVICE_NAME);*/\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t }", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }", "private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@BeforeSuite\n public void getProperties() throws Exception{\n prop.load(new FileInputStream(\"src/test/resources/properties/env.properties\"));\n RestAssured.baseURI = prop.getProperty(\"HOST\");\n }", "private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}", "@Bean\n public static PropertySourcesPlaceholderConfigurer properties(){\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n Resource[] resources = new ClassPathResource[ ]\n { new ClassPathResource(\"app-attribute.properties\") };\n pspc.setLocations( resources );\n pspc.setIgnoreUnresolvablePlaceholders( true );\n return pspc;\n }", "private void loadSystemConfig() {\r\n try {\r\n Properties systemProperties = System.getProperties();\r\n for (Enumeration e = systemProperties.keys(); e.hasMoreElements(); ) {\r\n String key = (String) e.nextElement();\r\n if (key.startsWith(DEFAULT_PROPERTY_PREFIX)) {\r\n Object value = systemProperties.getProperty(key);\r\n properties.put(key, value);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Override Scope property \" + key + \" with \" + value);\r\n }\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Can't access System properties\", e);\r\n }\r\n }\r\n }", "@Test public void testGetPropertiesDefaultBehavior() {\r\n Properties baseProperties = new Properties();\r\n Properties developmentModeProperties = new Properties();\r\n\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n source.setProductionModeProperties(baseProperties);\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n\r\n // local testing will always be non-production).\r\n assertSame(developmentModeProperties, source.getProperties());\r\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "public static void addPropertiesFileToEnvironment(ConfigurableEnvironment environment, ResourceLoader resourceLoader, String location) {\n String resolvedLocation = environment.resolveRequiredPlaceholders(location);\n Resource resource = resourceLoader.getResource(resolvedLocation);\n if (resource.exists()) {\n try {\n environment.getPropertySources().addLast(new ResourcePropertySource(resource));\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "@Override\n public PropertySource<?> locate(Environment environment) {\n return new MapPropertySource(\"secretKey\", Collections.<String, Object>singletonMap(\"auth.secret-key\", \"Sup3rS3cr37\"));\n }", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}", "@Bean\n public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()\n {\n return new PropertySourcesPlaceholderConfigurer();\n }", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "Properties getEnvironment();", "Properties getEnvironment();", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "@Bean\n\tpublic static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {\n\t\tPropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();\n\t\tpropertySourcesPlaceholderConfigurer.setIgnoreResourceNotFound(true);\n\t\tpropertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(false);\n\n\t\tpropertySourcesPlaceholderConfigurer.setLocations(new Resource[]{new ClassPathResource(\"default-config.properties\"), new ClassPathResource(\"config.properties\")});\n\n\t\treturn propertySourcesPlaceholderConfigurer;\n\t}", "@Bean\n public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {\n return new PropertySourcesPlaceholderConfigurer();\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}", "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void configureLocal() {\r\n configure(getProperties(true));\r\n }", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "@SuppressWarnings(\"unused\")\n private void unused_getEnvSupplier() {\n new Supplier<Map<String,String>>() {\n @Override\n public Map<String, String> get() {\n Map<String,String> result = MutableMap.of();\n for (Supplier<Map<String, String>> envS: dynamicEnvironmentSupplier) {\n if (envS!=null) {\n Map<String, String> envM = envS.get();\n if (envM!=null) {\n mergeEnvMaps(envM, result);\n }\n }\n }\n return result;\n }\n private void mergeEnvMaps(Map<String,String> supplied, Map<String,String> target) {\n if (supplied==null) return;\n // as the value is a string there is no need to look at deep merge behaviour\n target.putAll(supplied);\n }\n };\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "@Override\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n this.propertyResolver = new RelaxedPropertyResolver(environment, \"spring.datasource.\");\n }", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test public void testConstructor() {\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n assertNull(source.getProductionModeProperties());\r\n assertNull(source.getDevelopmentModeProperties());\r\n\r\n Properties baseProperties = new Properties();\r\n source.setProductionModeProperties(baseProperties);\r\n assertSame(baseProperties, source.getProductionModeProperties());\r\n\r\n Properties developmentModeProperties = new Properties();\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n assertSame(developmentModeProperties, source.getDevelopmentModeProperties());\r\n }", "public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }", "public static Properties load(String basedir)\n throws Exception {\n if (!basedir.endsWith(File.separator)) {\n basedir = basedir + File.separator;\n }\n \n Properties prop = null;\n String amConfigProperties = basedir +\n SetupConstants.AMCONFIG_PROPERTIES;\n File file = new File(amConfigProperties);\n if (file.exists()) {\n prop = new Properties();\n InputStream propIn = new FileInputStream(amConfigProperties);\n try {\n prop.load(propIn);\n } finally {\n propIn.close();\n }\n } else {\n isBootstrap = true;\n String bootstrapFile = basedir + BOOTSTRAP;\n String urlBootstrap = readFile(bootstrapFile);\n prop = getConfiguration(urlBootstrap, true);\n }\n \n return prop;\n }", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "public static String GetData(String key) throws Exception {\r\n PropertiesConfiguration properties;\r\n if (GetConfigData(\"getDataFromEnvironment\").equals(\"testEnvironment\")) {\r\n properties = new PropertiesConfiguration(\r\n System.getProperty(\"user.dir\") + \"//src//test//resource//dataRepo//testEnvironment.properties\");\r\n } else if (GetConfigData(\"getDataFromEnvironment\").equals(\"sandboxEnvironment\")) {\r\n properties = new PropertiesConfiguration(\r\n System.getProperty(\"user.dir\") + \"//src//test//resource//dataRepo//sandboxEnvironment.properties\");\r\n } else {\r\n throw new Exception(\"mentioned environment is not iplemented to get data\");\r\n }\r\n\r\n return properties.getString(key);\r\n }", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "@Bean\n public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {\n\n PropertySourcesPlaceholderConfigurer propsConfig\n = new PropertySourcesPlaceholderConfigurer();\n\n propsConfig.setLocation(new ClassPathResource(\"git.properties\"));\n propsConfig.setIgnoreResourceNotFound(false);\n propsConfig.setIgnoreUnresolvablePlaceholders(true);\n\n return propsConfig;\n }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public static String extractFromPropertiesFile(String key) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\"./env.properties\");\n\t\tProperties prop = new Properties();\n\t\tprop.load(fis);\t\n\t\treturn prop.getProperty(key);\n\t}", "private static void loadValueAtFirstUsage(String configProperty) {\n\t\tconfig = getConfig();\n\n\t\t/*\n\t\t * Error Checking\n\t\t */\n\n\t\t// HOSTNAME\n\t\tif (configProperty.equals(CatPawConfigProperty.HOSTNAME.getName())) {\n\t\t\t// At this point, we MUST have a hostname defined\n\t\t\tif (config.getProperty(CatPawConfigProperty.HOSTNAME.getName()).equals(\"\")) {\n\t\t\t\tthrow new RuntimeException(\"You must configure a \" + CatPawConfigProperty.HOSTNAME.toString()\n\t\t\t\t\t\t+ \" before interacting with a environment.\"\n\t\t\t\t\t\t+ \" Typically, this is done by specifying CLAWS_\"\n\t\t\t\t\t\t+ CatPawConfigProperty.HOSTNAME.toString().toUpperCase() + \"=<stagename> at runtime.\");\n\t\t\t}\n\t\t}\n\n\t\t// STAGE_NAME\n\t\tif ((configProperty.equals(CatPawConfigProperty.STAGE_NAME.getName())) &&\n\t\t\t(config.getProperty(CatPawConfigProperty.STAGE_NAME.getName()) == null)) {\n\t\t\tif (config.getProperty(CatPawConfigProperty.HOSTNAME.getName()).equals(\"\")) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\n\t}", "private static Configuration loadProperties(final String[] profiles) {\n final CombinedConfiguration configuration = new CombinedConfiguration(DEFAULT_COMBINER);\r\n\r\n // Not very intuitive: First load the specific properties files and then add the default one\r\n final List<String> configurationsToLoad = //\r\n Stream.of(profiles) //\r\n .filter(p -> !isBlank(p)) //\r\n .map(p -> CONFIG_FILE_PREFIX + p) //\r\n .collect(collectingAndThen( //\r\n toList(), //\r\n confs -> { // this code runs AFTER the toList. So the \"application\" is added at the end\r\n confs.add(DEFAULT_CONFIG_FILE_NAME);\r\n return confs;\r\n }));\r\n\r\n // for the sake of readability do a separate stream... but it could be attatched to the collect from above\r\n configurationsToLoad.stream() //\r\n .map(Environment::propertiesFileBuilder) //\r\n .map(Environment::safeGetConfiguration) //\r\n .forEach(configuration::addConfiguration);\r\n\r\n // useful when using docker where you may want to set environment variables in the docker-compose or docker run\r\n System.getenv().forEach((k, v) -> {\r\n if (configuration.containsKey(k)) {\r\n System.out.println(\"Overriding property \" + k + \" with value \" + v);\r\n }\r\n configuration.setProperty(k, v);\r\n });\r\n\r\n return configuration;\r\n }", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "@Override\n\tpublic String getProperty(String property)\n\t{\n\t\tString value = super.getProperty(property.trim());\n\t\tif (value == null)\n\t\t\treturn null;\n\t\t\n\t\taddRequestedProperty(property, value);\n\t\t\t\t\n\t\tint i1 = value.indexOf(\"<property:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.substring(i1).indexOf(\">\")+i1;\n\t\t\tif (i2 < 0)\n\t\t\t\ti2 = value.length();\n\t\t\t\n\t\t\tif (i2 > i1+10)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+10, i2);\n\t\t\t\tif (super.containsKey(p))\n\t\t\t\t{\n\t\t\t\t\tString v = super.getProperty(p);\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the properties file\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<property:\");\n\t\t}\n\n\t\ti1 = value.indexOf(\"<env:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.indexOf(\">\");\n\t\t\tif (i2 > i1+5)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+5, i2);\n\t\t\t\tString v = System.getenv(p);\n\t\t\t\tif (v != null)\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the user's environment\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<env:\");\n\t\t}\n\n\t\treturn value.trim();\n\t}", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "String getEnvironmentProperty(String key);", "EnvironmentLoader getEnvironmentLoader();", "@Bean\n public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {\n return new PropertySourcesPlaceholderConfigurer();\n }", "private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}", "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void activate(Properties prop) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tconfig = new NgConfig(prop);\n\t\t}\n\t\tactivate();\n\t}", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "private static void processLocalConfig() {\n String localConfigFile = getConfigValue(SYSPROP_LOCAL_CONFIG_FILE);\n if (localConfigFile == null || localConfigFile.isEmpty()) {\n log.log(Level.FINE, \"No local configuration defined, skipping associated processing\");\n return;\n }\n\n log.log(Level.FINE, \"Processing configuration file {0}\", localConfigFile);\n Path p = Paths.get(localConfigFile);\n if (!Files.exists(p)) {\n log.log(Level.WARNING, \"Path {0} does not exist\", p.toString());\n return;\n } else if (!Files.isRegularFile(p)) {\n log.log(Level.WARNING, \"Path {0} is not a file\", p.toString());\n return;\n } else if (!Files.isReadable(p)) {\n log.log(Level.WARNING, \"File {0} is not readable\", p.toString());\n return;\n }\n\n Properties prop = new Properties();\n try (BufferedReader reader = Files.newBufferedReader(p, StandardCharsets.UTF_8)) {\n prop.load(reader);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Error occurred while reading \" + p.toString(), e);\n }\n CONFIG_VALUES.putAll(prop);\n }", "public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "private void loadConfig() throws IOException {\r\n final boolean hasPropertiesFile = configFile != null && configFile.exists() \r\n && configFile.canRead() && configFile.isFile();\r\n if (hasPropertiesFile) {\r\n Properties props = new Properties();\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(configFile);\r\n props.load(fis);\r\n Iterator<Object> keys = props.keySet().iterator();\r\n envVariables = new ArrayList<Variable>();\r\n while (keys.hasNext()) {\r\n String key = (String) keys.next();\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_CACHEMAX)) {\r\n // Setting GDAL_CACHE_MAX Environment variable if available\r\n String cacheMax = null;\r\n try {\r\n cacheMax = (String) props.get(GRKeys.GDAL_CACHEMAX);\r\n if (cacheMax != null) {\r\n int gdalCacheMaxMemory = Integer.parseInt(cacheMax); // Only for validation\r\n Variable var = new Variable();\r\n var.setKey(GRKeys.GDAL_CACHEMAX);\r\n var.setValue(cacheMax);\r\n envVariables.add(var);\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + cacheMax, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_DATA)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_LOGGING_DIR)\r\n || key.equalsIgnoreCase(GRKeys.TEMP_DIR)) {\r\n // Parsing specified folder path\r\n String path = (String) props.get(key);\r\n if (path != null) {\r\n final File directory = new File(path);\r\n if (directory.exists() && directory.isDirectory()\r\n && ((key.equalsIgnoreCase(GRKeys.GDAL_DATA) && directory.canRead()) || directory.canWrite())) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(path);\r\n envVariables.add(var);\r\n \r\n } else {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"The specified folder for \" + key + \" variable isn't valid, \"\r\n + \"or it doesn't exist or it isn't a readable directory or it is a \" \r\n + \"destination folder which can't be written: \" + path);\r\n }\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.EXECUTION_TIMEOUT)) {\r\n // Parsing execution timeout\r\n String timeout = null;\r\n try {\r\n timeout = (String) props.get(GRKeys.EXECUTION_TIMEOUT);\r\n if (timeout != null) {\r\n executionTimeout = Long.parseLong(timeout); // Only for validation\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + timeout, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_TRANSLATE_PARAMS)) {\r\n // Parsing gdal operations custom option parameters\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)) {\r\n gdalWarpingParameters = param.trim();\r\n } else {\r\n gdalTranslateParameters = param.trim();\r\n }\r\n }\r\n } else if (key.endsWith(\"PATH\")) {\r\n // Dealing with properties like LD_LIBRARY_PATH, PATH, ...\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(param);\r\n envVariables.add(var);\r\n }\r\n }\r\n }\r\n \r\n } catch (FileNotFoundException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n \r\n } catch (IOException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (Throwable t) {\r\n // Does nothing\r\n }\r\n }\r\n }\r\n }\r\n }", "void setEnvironmentFile(File environmentFile);", "private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"system:properties\",\n \"classpath:application.properties\"\n})\npublic interface ProjectConfig extends Config {\n\n @Key(\"app.hostname\")\n String hostname();\n\n @Key(\"browser.name\")\n @DefaultValue(\"chrome\")\n String browser();\n\n}", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }" ]
[ "0.6668679", "0.63894594", "0.6359977", "0.6154289", "0.60561156", "0.6038818", "0.60208154", "0.59686154", "0.59323525", "0.58838284", "0.586686", "0.5864277", "0.58605593", "0.5841483", "0.5822816", "0.5818271", "0.5810478", "0.5806865", "0.5765078", "0.5751151", "0.57305354", "0.5693529", "0.5681516", "0.56305605", "0.56305605", "0.5628283", "0.5619374", "0.55967623", "0.55832624", "0.5574988", "0.55645335", "0.55640453", "0.5550723", "0.55437285", "0.55109", "0.5509027", "0.54941", "0.5492626", "0.5482644", "0.54808384", "0.5478188", "0.54618543", "0.5458746", "0.5458203", "0.54514986", "0.54441226", "0.54439235", "0.5442519", "0.543462", "0.5433341", "0.5430177", "0.5410132", "0.539047", "0.538926", "0.53831136", "0.5366358", "0.5336427", "0.5322761", "0.53167415", "0.530896", "0.5306426", "0.52947587", "0.5285787", "0.5268503", "0.5264014", "0.5261275", "0.52495867", "0.52472335", "0.5244546", "0.523914", "0.5238245", "0.52275175", "0.5227149", "0.5224708", "0.5223967", "0.52236867", "0.5193735", "0.51890033", "0.5177954", "0.5164689", "0.5159928", "0.5159515", "0.51540077", "0.51510763", "0.5141288", "0.5129084", "0.51221293", "0.5115674", "0.5114046", "0.51071894", "0.5081057", "0.50776", "0.5076059", "0.50690037", "0.5067066", "0.50621134", "0.5045451", "0.50429547", "0.503987", "0.50290525" ]
0.7148388
0
Created by rudielavilaperaza on 3/1/17.
public interface IProductClick { /*Creo una interfaz para el clic asi es mas facil llamarla en cualquier punto*/ void clickProduct(View v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\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}", "public final void mo51373a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "@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\n protected void init() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void one() {\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\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\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}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void init() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo38117a() {\n }", "@Override\n public void init() {\n }", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private UsineJoueur() {}", "@Override\n public int getOrder() {\n return 0;\n }" ]
[ "0.62356395", "0.59897065", "0.59740156", "0.5871982", "0.58637714", "0.5825331", "0.5825331", "0.579283", "0.57783157", "0.5776324", "0.57666904", "0.5765572", "0.5749554", "0.57485586", "0.5709234", "0.5694028", "0.5682472", "0.5667332", "0.5663065", "0.56612664", "0.56612664", "0.56612664", "0.56612664", "0.56612664", "0.56612664", "0.5659519", "0.5645304", "0.5639598", "0.56328166", "0.5630997", "0.5620374", "0.5620374", "0.56184", "0.56184", "0.56184", "0.56184", "0.56184", "0.5608211", "0.56012136", "0.56010365", "0.56004804", "0.55963135", "0.5596301", "0.558764", "0.55869", "0.5567622", "0.555277", "0.555277", "0.55475724", "0.55475724", "0.5542386", "0.5541791", "0.5537021", "0.5523057", "0.5523057", "0.5523057", "0.5515436", "0.55102324", "0.55023694", "0.55001223", "0.54992604", "0.5493597", "0.5477652", "0.54739887", "0.54681516", "0.54681516", "0.54681516", "0.5459373", "0.5452202", "0.5452202", "0.5452202", "0.5450144", "0.5447072", "0.5421554", "0.5421271", "0.54205334", "0.54205334", "0.54205334", "0.54157484", "0.54028064", "0.53971285", "0.5395122", "0.5395122", "0.53865767", "0.5376177", "0.5366972", "0.5363059", "0.53589153", "0.5357479", "0.53565264", "0.53541416", "0.5353104", "0.5353104", "0.5349863", "0.5346353", "0.53426063", "0.53324616", "0.5330787", "0.53254443", "0.5323166", "0.5321594" ]
0.0
-1
/Creo una interfaz para el clic asi es mas facil llamarla en cualquier punto
void clickProduct(View v);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void curar(Curandero curandero, Pieza receptor) {\n }", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "private ControleurAcceuil(){ }", "Oracion createOracion();", "public interface ContratoCursosPresenter {\n void onCreate();\n\n void onStar();\n\n void onResume();\n\n void onDestroy();\n\n void setView(ContratosCursosView view);\n\n\n void getContratoCursosUIList(int idAlumno);\n}", "public void iniciarRotina() {\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tZidingyi ccc= new Zidingyi();\r\n\t\tif (panscroll.thisone==null) {}\r\n\t\telse \r\n\t\t{\r\n\t\t\tpanscroll.add(ccc);\r\n\t\t\tccc.stringSet(panscroll.copymas);\r\n\t\t\tccc.setYanse(panscroll.copyYanse);\r\n\t\t\tccc.setYanse1(panscroll.copyYanse1);\r\n\t\t\tccc.setShape(panscroll.copyshape);\r\n\t\t\tccc.setOK(panscroll.copyOK);\r\n\t\t\tpanscroll.thisone.addson(ccc);\r\n\t\t\tccc.setdad(panscroll.thisone);\r\n\t\t\tpanscroll.revalidate();\r\n\t\t\tpanscroll.repaint();\r\n\t\t}\r\n\t}", "public Computador(String tipo, int posX, int posY) {\n this.tipo = tipo;//Tipo do Computador (Transmissor|Receptor)\n this.SEMAPHORO_TRANSMITIR = new Semaphore(1);\n this.setLayoutX(posX);//Posicao X\n this.setLayoutY(posY);//Posicao Y\n\n this.aplicacaoTransmissora = new AplicacaoTransmissora(this);//Instanciando Aplicacao Transmissora\n this.aplicacaoReceptora = new AplicacaoReceptora(this);//Instanciando Aplicacao Receptora\n\n this.getChildren().add(construirComputador());//Adicionando Computador na interface\n this.getChildren().add(construirCamadas());//Adicionando Camadas na interface\n \n this.quadrosRecebidosNConfirmados = new ArrayList<>();\n }", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\n\tpublic void chocoContraPared() {}", "@Override\n public void pulsarRaton(MouseEvent e) {\n pararCancion();\n //CAMBIAMOS LA PANTALLA\n PantallaNivel1 pantallaJuego = new PantallaNivel1(p);\n pantallaJuego.inicializarPantalla();\n p.cambiarPantalla(pantallaJuego);\n \n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "void autofinanciarPoliza(AutofinanciarPolizaCancelCommand datosPoliza);", "Compuesta createCompuesta();", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\r\n\tpublic void actualiser(ObservableButton o) {\n\t\tcompteur++;\r\n\t\ttext.setText(\"Nombre de clic : \"+compteur);\r\n\t\t\r\n\t}", "protected void choixModeTri(){\r\n boolean choix = false;\r\n OPMode.menuChoix=true;\r\n OPMode.telemetryProxy.addLine(\"**** CHOIX DU MODE DE TRI ****\");\r\n OPMode.telemetryProxy.addLine(\" Bouton X : GAUCHE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton B : DROITE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton Y : UNE SEULE COULEUR\");\r\n OPMode.telemetryProxy.addLine(\" Bouton A : MANUEL\");\r\n OPMode.telemetryProxy.addLine(\" CHOIX ? .........\");\r\n OPMode.telemetryProxy.update();\r\n while (!choix){\r\n if (gamepad.x){\r\n OPMode.modeTri = ModeTri.GAUCHE;\r\n choix = true;\r\n }\r\n if (gamepad.b){\r\n OPMode.modeTri = ModeTri.DROITE;\r\n choix = true;\r\n }\r\n if (gamepad.y){\r\n OPMode.modeTri = ModeTri.UNI;\r\n choix = true;\r\n }\r\n if (gamepad.a){\r\n OPMode.modeTri = ModeTri.MANUEL;\r\n choix = true;\r\n }\r\n }\r\n OPMode.menuChoix = false;\r\n\r\n }", "public void chocoContraMunicion(IMunicion municion){}", "public interface AsistenciaInteractor {\n\n void onGetListaAlumnos();\n void onInitListView();\n void changeStateFabButtons(FloatingActionButton btnCurrentState, FloatingActionButton btnAsistio, FloatingActionButton btnFalto, FloatingActionButton btnJustificado);\n}", "Obligacion createObligacion();", "Concierto createConcierto();", "public interface OnClickAdaptadorDeNoticia{\n public void onClickPosition(int pos);\n }", "public interface ControlloGioco {\r\n public boolean ControlDisco(int riga, int colonna, boolean colore);\r\n\r\n}", "public void aplicarDescuento();", "@Override\n public void alRechazarOperacion() {\n }", "private void trocaCor(int btn) {\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n bt_Resultado.setColorFilter(getResources().getColor(R.color.white));\n bt_Triangulo.setColorFilter(getResources().getColor(R.color.white));\n bt_Compatibilidade.setColorFilter(getResources().getColor(R.color.white));\n bt_Arcanos.setColorFilter(getResources().getColor(R.color.white));\n bt_Descricao.setColorFilter(getResources().getColor(R.color.white));\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n // COR PARA PRAGMENTO DESATIVO\n\n // COR PARA FRAGMENTO ATIVO\n ImageButton bt = findViewById(btn);\n bt.setColorFilter(getResources().getColor(R.color.TODO));\n // COR PARA FRAGMENTO ATIVO\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public PanCoperti() {\n /* rimanda al costruttore della superclasse */\n super(Layout.ORIENTAMENTO_ORIZZONTALE);\n\n\n try { // prova ad eseguire il codice\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\n }", "public interface OnClickAdaptadorDependencia {\n public void onClickPosition(int pos);\n }", "public static String _btnmosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 75;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Mosquito\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Mosquito\",mostCurrent.activityBA);\n //BA.debugLineNum = 76;BA.debugLine=\"scrollExtraMosquito.Panel.LoadLayout(\\\"lay_mosquit\";\nmostCurrent._scrollextramosquito.getPanel().LoadLayout(\"lay_mosquito_Paneles\",mostCurrent.activityBA);\n //BA.debugLineNum = 77;BA.debugLine=\"scrollExtraMosquito.Panel.Width = 600dip\";\nmostCurrent._scrollextramosquito.getPanel().setWidth(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (600)));\n //BA.debugLineNum = 78;BA.debugLine=\"scrollExtraMosquito.FullScroll(True)\";\nmostCurrent._scrollextramosquito.FullScroll(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 79;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPatas, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpatas,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 80;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butColor, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butcolor,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 81;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){\n Intent inicioServicio = new Intent(this,ServicioPomodoro.class);\n inicioServicio.setAction(\"intentIniciar\");\n inicioServicio.putExtra(\"intervaloPomodoro\", pomodoro);\n inicioServicio.putExtra(\"intervaloDescansoCorto\", corto);\n inicioServicio.putExtra(\"intervaloDescansoLargo\", largo);\n startService(inicioServicio);\n tiempo.setBase(SystemClock.elapsedRealtime());\n tiempo.start();\n controlCronometro();\n }", "public void btnContinuarInterfaz(View view){\n\n String IdCategoria = getIntent().getStringExtra(\"IdCategoria\");\n String IdNivel = getIntent().getStringExtra(\"IdNivel\");\n String contPregPut = getIntent().getStringExtra(\"IndicePreg\");\n String iContador = getIntent().getStringExtra(\"iContador\");\n String IndicePreg = getIntent().getStringExtra(\"IndicePreg\");\n\n String contTotalPreg = getPreguntasTotal(IdCategoria, IdNivel );\n\n int nuevoIndice = Integer.parseInt(IndicePreg);;\n int nuevoIContador = Integer.parseInt(iContador);\n\n if ( Integer.parseInt(contPregPut) < Integer.parseInt(contTotalPreg) ){\n nuevoIndice++; //no tocar el indice\n nuevoIContador++;\n\n }else{\n\n if ( Integer.parseInt(contPregPut) >= Integer.parseInt(contTotalPreg) ){\n // Toast.makeText(this, \"Entro\", Toast.LENGTH_SHORT).show();\n System.out.println( \" ------------- Limite total de las preguntas ------------------\" );\n System.out.println();\n\n }else{\n nuevoIndice = Integer.parseInt(contTotalPreg) - 1;\n nuevoIContador = nuevoIContador;\n }\n }\n\n //Metodo que me permite crear variable\n Intent interfaz = new Intent(this,MainRetoSaber.class);\n interfaz.putExtra(\"IdCategoria\", IdCategoria );\n interfaz.putExtra(\"IdNivel\", IdNivel );\n interfaz.putExtra(\"iContador\", String.valueOf(nuevoIContador) );\n interfaz.putExtra(\"IndicePreg\", String.valueOf(nuevoIndice) );\n interfaz.putExtra(\"IdEstudio\", consultarEstudioUltimaId() ); // todo posible error\n //Activa la intent y envia el objeto con la variable.\n startActivity(interfaz);\n finish();\n\n }", "public void setOnActionClic(EventHandler<ActionEvent> evt){\n this.contarClic();\n\n //Ejecutar el evento del usuario\n }", "public void activar(){\n\n }", "public interface IProductClick {\n\n /*Creo una interfaz para el clic asi es mas facil llamarla en cualquier punto*/\n\n void clickProduct(View v);\n}", "@Override\n\t\t\t\t\t\tpublic void onInvateComplet() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "void Comunicasiones() { \t\r\n /* Comunicacion */\r\n Button dComunicacion01 = new Button();\r\n dComunicacion01.setWidth(\"73px\");\r\n dComunicacion01.setHeight(\"47px\");\r\n dComunicacion01.setIcon(ByosImagenes.icon[133]);\r\n dComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(dComunicacion01, \"left: 661px; top: 403px;\"); \r\n\r\n /* Comunicacion */\r\n Button iComunicacion01 = new Button();\r\n iComunicacion01.setWidth(\"73px\");\r\n iComunicacion01.setHeight(\"47px\");\r\n iComunicacion01.setIcon(ByosImagenes.icon[132]);\r\n iComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(iComunicacion01, \"left: 287px; top: 403px;\"); \r\n \r\n }", "public void vistaInterfazNiveles (View view){\n Intent interfaz = new Intent(this,MainActivity.class);\n //Intancio el Objeto Intent que necesito enviar la información\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }", "public Proceso atender() {\n\t\tProceso proceso = raiz.sig;\n\t\tif (proceso == this.raiz) {\n\t\t\tSystem.out.println(\"Cola Vacia\");\n\t\t\treturn null;\n\t\t}\n\t\tProceso sig = proceso.sig;\n\t\tProceso padre = raiz;\n\t\tpadre.sig = sig;\n\t\tsig.padre = padre;\n\t\tcabeza = sig;\n\t\tthis.numProcesos--;\n\t\tthis.calcularTiemposProcesos();\n\t\treturn proceso;\n\t}", "Cancion createCancion();", "private void comerComestible(Celda c) {\n // TODO implement here\n }", "public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}", "public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }", "private void handleActionNotificaAcqua(Intent input) {\n Intent intent = new Intent(this, DettagliPiantaUtente.class).setAction(ACTION_NOTIFICA_ACQUA);\n intent.putExtras(input);\n intent.putExtra(\"fromNotificationService\", true);\n Log.v(TAG, \"nomi: \" + intent.getStringExtra(DettagliPiantaUtente.NOME_ASSEGNATO) + \", \" + intent.getStringExtra(DettagliPiantaUtente.NOME_GENERALE) + \", \" +\n \"id: \" + intent.getIntExtra(DettagliPiantaUtente.ID, -1));\n long[] pattern = {0, 300, 0};\n //PendingIntent pi = PendingIntent.getActivity(this, idPossesso, intent, 0);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n // Adds the back stack\n stackBuilder.addParentStack(DettagliPiantaUtente.class);\n // Adds the Intent to the top of the stack\n stackBuilder.addNextIntent(intent);\n // Gets a PendingIntent containing the entire back stack\n PendingIntent pi =\n stackBuilder.getPendingIntent(idPossesso, PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.fmn_logo)\n .setContentTitle(\"Innaffia \" + nomeAssegnato)\n .setContentText(\"La tua pianta ha bisogno di essere innaffiata!\")\n .setVibrate(pattern)\n .setAutoCancel(true);\n\n mBuilder.setContentIntent(pi);\n mBuilder.setDefaults(Notification.DEFAULT_SOUND);\n NotificationManager mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(idPossesso, mBuilder.build());\n }", "public TCubico(){}", "void datos(ConversionesCapsula c) {\n String v;\n\n\n v = d.readString(\"Selecciona opcion de conversion\"\n + \"\\n1 ingles a metrico\"\n + \"\\n2 metrico a ingles\"\n + \"\\n3 metrico a metrico\"\n + \"\\n4 ingles a ingles\");\n c.setopc((Integer.parseInt(v)));\n int opc = (int) conversion.getopc();\n switch (opc) {\n case 1:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a metros\"\n + \"\\n2 Pies a centimetros\"\n + \"\\n3 Pies a Metros y Centimetros\"\n + \"\\n4 Pulgadas a metros\"\n + \"\\n5 Pulgadas a centimetros\"\n + \"\\n6 Pulgadas a Metros y Centimetros\"\n + \"\\n7 Pies y Pulgadas a metros\"\n + \"\\n8 Pies y Pulgadas a centimetros\"\n + \"\\n9 Pies y Pulgadas a Metros y Centimetros\");\n c.setopc1((Integer.parseInt(v)));\n\n\n break;\n case 2:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Pies\"\n + \"\\n2 Metros a Pulgadas\"\n + \"\\n3 Metros a Pies y Pulgadas\"\n + \"\\n4 Centimetros a Pies\"\n + \"\\n5 Centimetros a Pulgadas\"\n + \"\\n6 Centimetros a Pies y Pulgadas\"\n + \"\\n7 Metros y Centimetros a Pies\"\n + \"\\n8 Metros y Centimetros a Pulgadas\"\n + \"\\n9 Metros y Centimetros a Pies y Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 3:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Centimetros\"\n + \"\\n2 Metros a Metros y Centimetros\"\n + \"\\n3 Centimetros a Metros\"\n + \"\\n4 Centimetros a Metros y Centimetros\"\n + \"\\n5 Metros y Centimetros a Centimetros\"\n + \"\\n9 Metros y Centimetros a Metros\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 4:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a Pulgadas\"\n + \"\\n2 Pies a Pies y Pulgadas\"\n + \"\\n3 Pulgadas a Pies\"\n + \"\\n4 Pulgadas a Pies y Pulgadas\"\n + \"\\n5 Pies y Pulgadas a Pies\"\n + \"\\n9 Pies y Pulgadas a Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n }\n\n do v = d.readString(\"\\n Ingrese el valor: \\n\");\n while (!isNum(v));\n c.setvalor((Double.parseDouble(v)));\n }", "@Override\n public void atacar(Jinete jinete, Pieza receptor) {\n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "@Override // com.bytedance.sdk.openadsdk.core.p362a.ClickListener\n /* renamed from: a */\n public ClickEventModel mo24954a(int i, int i2, int i3, int i4, long j, long j2, View view, View view2) {\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n long j3;\n int i11;\n long j4;\n this.f14653x = 1;\n this.f14654y = 0;\n this.f14655z = 0;\n int[] a = UIUtils.m18769a(view);\n if (a == null || a.length != 2) {\n i8 = i;\n i7 = i2;\n i6 = i3;\n i5 = i4;\n i10 = 0;\n i9 = 0;\n } else {\n i10 = a[0];\n i9 = a[1];\n i8 = ((int) UIUtils.m18751a(this.f14625c, (float) i)) + i10;\n i7 = ((int) UIUtils.m18751a(this.f14625c, (float) i2)) + i9;\n i6 = ((int) UIUtils.m18751a(this.f14625c, (float) i3)) + i10;\n i5 = ((int) UIUtils.m18751a(this.f14625c, (float) i4)) + i9;\n }\n int[] iArr = new int[2];\n int[] iArr2 = new int[2];\n DynamicClickInfo iVar = this.f15264a;\n if (iVar != null) {\n j3 = iVar.f14811e;\n j4 = this.f15264a.f14812f;\n iArr[0] = ((int) UIUtils.m18751a(this.f14625c, (float) this.f15264a.f14813g)) + i10;\n iArr[1] = ((int) UIUtils.m18751a(this.f14625c, (float) this.f15264a.f14814h)) + i9;\n iArr2[0] = (int) UIUtils.m18751a(this.f14625c, (float) this.f15264a.f14815i);\n i11 = 1;\n iArr2[1] = (int) UIUtils.m18751a(this.f14625c, (float) this.f15264a.f14816j);\n } else {\n i11 = 1;\n j3 = j;\n j4 = j2;\n }\n ClickEventModel.C3460a h = new ClickEventModel.C3460a().mo25050e(i8).mo25048d(i7).mo25046c(i6).mo25043b(i5).mo25044b(j3).mo25039a(j4).mo25045b(a).mo25041a(iArr).mo25047c(UIUtils.m18779b(view)).mo25049d(iArr2).mo25051f(this.f14653x).mo25052g(this.f14654y).mo25053h(this.f14655z);\n if (!GlobalInfo.m16289c().mo25351b()) {\n i11 = 2;\n }\n return h.mo25038a(i11).mo25040a(this.f14646B).mo25042a();\n }", "@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \t\n \t//aqui deberiamos haber combropado un mensaje de error si idCliente < 0 podriamos saber que ha habido error\n int idCliente = datos.almacenarFichero(nombreFichero,idSesionCliente);\n int idSesionRepo = datos.dimeRepositorio(idCliente);//sesion del repositorio\n Interfaz.imprime(\"Se ha agregado el fichero \" + nombreFichero + \" en el almacen de Datos\"); \n \n //Devolvemos la URL del servicioClOperador con la carpeta donde se guardara el tema\n DatosIntercambio di = new DatosIntercambio(idCliente , \"rmi://\" + direccionServicioClOperador + \":\" + puertoServicioClOperador + \"/cloperador/\"+ idSesionRepo);\n return di;\n }", "@Override\n\tprotected void trazOutroATona() {\n\t\t\n\t}", "public static void muestraIncidencias(final ArrayList<MensajesIncidencias> datos, Context ctx) {\n final MensajesAdaptador adaptador = new MensajesAdaptador(datos);\n\n\n adaptador.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n btnScan.setVisibility(View.GONE);\n btnCancelar.setVisibility(View.GONE);\n enviar2.setVisibility(View.GONE);\n btnNuevo.setVisibility(View.VISIBLE);\n //si es un administrador se muestra el boton para finalizar incidencias\n if (b.getString(\"rol\").equals(rolMaster)) {\n btnCerrar.setVisibility(View.VISIBLE);\n }\n\n //cada vez que se hace click en un objeto del recyclerview, se instancia un objeto de la\n //clase mensajesincidencias con los valores del array datos, en la misma posicion\n //que la linea del recyclerview clickada y mediante los getters se cargan los edittext\n //y se les quita la edicion.\n mi = datos.get(lstIncidencias.getChildAdapterPosition(v));\n inEquipo.setText(mi.getEquipo());\n inEquipo.setEnabled(false);\n //inEquipo.setTextColor(black);\n inTitulo.setText(mi.getTitulo());\n inTitulo.setEnabled(false);\n // inTitulo.setTextColor(999);\n inDescripcion.setText(mi.getDescripcion());\n inDescripcion.setEnabled(false);\n // inDescripcion.setTextColor(000);\n txtFecha.setText(mi.getFecha());\n Log.i(\"DemoRecView\", \"Pulsado el elemento \" + lstIncidencias.getChildAdapterPosition(v));\n }\n });\n\n lstIncidencias.setAdapter(adaptador);\n\n lstIncidencias.setLayoutManager(\n new LinearLayoutManager(ctx, LinearLayoutManager.VERTICAL, false));\n lstIncidencias.addItemDecoration(\n new DividerItemDecoration(ctx, DividerItemDecoration.VERTICAL));\n lstIncidencias.setItemAnimator(new DefaultItemAnimator());\n\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n //-------------------- ASIGNACIONES INICIALES PARA EL COMBATE-------------------\r\n //Aqui se cargan todas las vistas y parametros iniciales, se llenan los label, etc\r\n //Este boton es el de iniciar combate en la vista previa combate\r\n if (vpc.getBotonIniciar() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario inicio el combate\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n this.termino = false;\r\n va.agregarListener(this);\r\n ve.agregarListener(this);\r\n this.vc.agregarListener(this);\r\n vpc.setVisible(false);\r\n int Index_inicial1 = vpc.getIndexjC_Inicial1();\r\n int Index_inicial2 = vpc.getIndexjC_Inicial2();\r\n vc.setjL_jugador1(entrenador1.getNombre());\r\n vc.setjL_jugador2(entrenador2.getNombre());\r\n vc.setjL_nombrepokemon1(getEquipo1()[Index_inicial1].getPseudonimo());\r\n vc.setjL_nombrepokemon2(getEquipo2()[Index_inicial2].getPseudonimo());\r\n vc.setjL_especie1(getEquipo1()[Index_inicial1].getNombre_especie());\r\n vc.setjL_especie2(getEquipo2()[Index_inicial2].getNombre_especie());\r\n vc.setjL_nombrepokemon2(vpc.getjC_Inicial2());\r\n vc.setjL_vida_actual1(getEquipo1()[Index_inicial1].getVida_restante(), getEquipo1()[Index_inicial1].getVida());\r\n vc.setjL_vida_actual2(getEquipo2()[Index_inicial2].getVida_restante(), getEquipo2()[Index_inicial2].getVida());\r\n vc.setjL_Nivel1(getEquipo1()[Index_inicial1].getNivel());\r\n vc.setjL_Nivel2(getEquipo2()[Index_inicial2].getNivel());\r\n vc.setjL_distincion1(entrenador1.getDistincion());\r\n vc.setjL_distincion2(entrenador2.getDistincion());\r\n this.turno = 0;\r\n this.pokemon_activo1 = getEquipo1()[Index_inicial1];\r\n this.pokemon_activo2 = getEquipo2()[Index_inicial2];\r\n vc.setVisible(true);\r\n if(tipo_simulacion == 1 || tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.turnoJugador1();\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(this.vc, \"Comenzando Simulacion Completa de un Combate Usuario vs Sistema\", \"Comienzo Simulacion\", JOptionPane.INFORMATION_MESSAGE); \r\n vc.turnoSimulacion();\r\n try {\r\n creg.guardarRegistroSimulacion(\"Comenzando simulacion completa usuario vs sistema\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n while (condicionVictoria(getEquipo1(), getEquipo2())==false){\r\n turnoUsuario();\r\n if(termino == true) break;\r\n turnoSistema();\r\n if(termino == true) break;\r\n }\r\n }\r\n \r\n }\r\n // Para cambiar a un equipo personalizado distinto al que se posee para el primer entrenador\r\n if(vpc.getBotonEquipo1()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 1;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // Lo mismo pero para el segundo\r\n if(vpc.getBotonEquipo2()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 2;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // ----------ACCIONES BOTONES DE ATAQUE------------- \r\n //Boton ataque jugador 1\r\n //Setea la vista para los movimientos del pokemon activo del jugador 1\r\n if (vc.getBotonAtacar1() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligio atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo1.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo1);\r\n va.setVisible(true);\r\n \r\n }\r\n //Boton ataque jugador 2\r\n //Setea la vista para los movimientos del pokemon activo del jugador 2\r\n if (vc.getBotonAtacar2() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo2.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo2);\r\n va.setVisible(true);\r\n \r\n }\r\n //-------------ACCIONES DE LOS ATAQUES SELECCIONADOS DESDE EL PRIMERO HASTA EL CUARTO----------\r\n //-------------ACCION ATAQUE 1-------------------- \r\n // Boton para el primer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el primer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(0);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //---------------------ACCION ATAQUE 2 ------------------\r\n // Boton para el segundo ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el segundo ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(1);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 3------------------\r\n // Boton para el tercer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el tercer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(2);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 4-------------------\r\n // Boton para el cuarto ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el cuarto ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(3);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCIONES BOTONES CAMBIAR---------\r\n //Boton cambiar del primer jugador\r\n if(vc.getBotonCambiar1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo1().length; j++) {\r\n if(getEquipo1()[j].equals(pokemon_activo1))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo1(), pokemon_activo1, index);\r\n ve.setVisible(true);\r\n }\r\n //Boton cambiar del segundo jugador \r\n if(vc.getBotonCambiar2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo2().length; j++) {\r\n if(getEquipo2()[j].equals(pokemon_activo2))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo2(), pokemon_activo2, index);\r\n ve.setVisible(true);\r\n }\r\n //----------------SELECCION DE CADA POKEMON A CAMBIAR-------------\r\n //----------------CAMBIO POKEMON 1 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al primer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el primero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(0);\r\n }\r\n \r\n //----------------CAMBIO POKEMON 2 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al segundo pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el segundo de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(1);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 3 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al tercer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el tercero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(2);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 4 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al cuarto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el cuarto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(3);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 5 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al quinto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon5() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el quinto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(4);\r\n \r\n }\r\n //----------------CAMBIO POKEMON 6 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al sexto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon6() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el sexto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(5);\r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }", "public void seleccionarPieza(java.awt.event.MouseEvent evt) {\n // Se pasa como parametro el evento\n CuadroPieza t = ((CuadroPieza) evt.getComponent());//Averiguo en que cuadro sucedio el evento\n if (t.getPieza() != null) {//Veo si el cuadro no esta vacio.\n if (t.getPieza().getColor() == getTurno()) {//Veo si es del mismo color del turno que actualmente le toca.\n cuadroSeleccionado = t;\n /*\n * Con esto hago que se resalten los posibles movimientos en todo el tablero.\n */\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y].opacarPieza();//Si hay piezas seleccionadas, las opaco\n if (isSeleccionarAlternativas()) {//Resalto los posibles movimientos.\n if (cuadroSeleccionado.getPieza().validarMovimiento(tablero[x][y], this)) {\n tablero[x][y].resaltarPieza(tablero[x][y].getPieza() != null ? getAlerta() : null);\n }\n }\n }\n }\n /*\n * Resalto el cuadro que ha sido seleccionado para que el usuario sepa que cuadro selecciono\n */\n cuadroSeleccionado.resaltarPieza(getSeleccionado());\n /*\n * Establesco la imagen de la pieza que ha sido seleccionada al label.\n */\n tmp.setIcon(cuadroSeleccionado.getPieza().getImagenPieza());\n /*\n * borro la imagen de la pieza del cuadro.\n */\n cuadroSeleccionado.lbl.setIcon(null);\n /*\n * Establesco la nueva posicion del label, que tiene la imagen de la pieza.\n */\n tmp.setLocation(cuadroSeleccionado.getLocation().x + evt.getX() - 18, cuadroSeleccionado.getLocation().y + evt.getY() - 28);\n }\n }\n }", "void imprimeExtrato(){\n\t\tthis.imprimeExtrato(15);\n\t}", "public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }", "public Cotisant visite(Contributeur c){ \n int somme = this.state.get(c); \n c.affecterSolde(somme); \n return c ; \n }", "public void start() {\n boolean continua = true;\n Dati datiRMP;\n int codPiatto;\n int codRiga;\n int quantiCoperti;\n int quanteComande;\n String descPiatto;\n String catPiatto;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n ModuloRisultati modRisultati = getModuloRisultati();\n Campo chiaveRMP;\n int codRMP;\n int codMenu;\n int[] codici;\n double qtaOff;\n double qtaCom;\n double gradimento = 0.0;\n PanCoperti panCoperti;\n\n try { // prova ad eseguire il codice\n\n /* azzera il numero di coperti serviti */\n panCoperti = getPanCoperti();\n panCoperti.setNumCopertiPranzo(0);\n panCoperti.setNumCopertiCena(0);\n\n /* svuota i dati del modulo risultati */\n getModuloRisultati().query().eliminaRecords();\n\n datiRMP = this.getDati();\n chiaveRMP = modRMP.getCampoChiave();\n\n /* spazzola le RMP trovate */\n for (int k = 0; k < datiRMP.getRowCount(); k++) {\n\n this.quanti++;\n\n codRMP = datiRMP.getIntAt(k, chiaveRMP);\n codPiatto = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_PIATTO));\n descPiatto = datiRMP.getStringAt(k,\n modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n catPiatto = datiRMP.getStringAt(k,\n modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n\n codRiga = addPiatto(codPiatto, descPiatto, catPiatto);\n\n if (codRiga <= 0) {\n continua = false;\n break;\n }// fine del blocco if\n\n /* incrementa di 1 il numero di volte in cui il piatto è stato proposto\n * per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteVolte, 1);\n\n /* determina il numero dei coperti presenti nel menu al\n * quale questa RMP appartiene */\n codMenu = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_MENU));\n quantiCoperti = getQuantiCoperti(codMenu);\n\n /* incrementa il numero di coperti potenziali per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quantiCoperti, quantiCoperti);\n\n /* determina il numero di comande effettuate\n * per questa RMP */\n quanteComande = getQuanteComande(codRMP);\n\n /* incrementa il numero di comande effettuate per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteComande, quanteComande);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n continua = false;\n break;\n }// fine del blocco if\n\n } // fine del ciclo for\n\n /* spazzola le righe dei risultati per regolare il gradimento */\n if (continua) {\n codici = modRisultati.query().valoriChiave();\n for (int k = 0; k < codici.length; k++) {\n codRiga = codici[k];\n gradimento = 0.0;\n qtaOff = modRisultati.query()\n .valoreDouble(Campi.Ris.quantiCoperti.getCampo(), codRiga);\n qtaCom = modRisultati.query()\n .valoreDouble(Campi.Ris.quanteComande.getCampo(), codRiga);\n if (qtaOff != 0) {\n gradimento = qtaCom / qtaOff;\n gradimento = Lib.Mat.arrotonda(gradimento, 4);\n }// fine del blocco if\n modRisultati.query().registraRecordValore(codRiga,\n Campi.Ris.gradimento.getCampo(),\n gradimento);\n } // fine del ciclo for\n }// fine del blocco if\n\n datiRMP.close();\n\n getNavigatore().aggiornaLista();\n\n /* aggiorna il numero di coperti serviti */\n Filtro filtro;\n Number numero;\n Modulo moduloRMT = RMTModulo.get();\n Filtro filtroMenu = getFiltroMenu();\n Filtro filtroPranzo = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_PRANZO);\n Filtro filtroCena = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_CENA);\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroPranzo);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiPranzo(Libreria.getInt(numero));\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroCena);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiCena(Libreria.getInt(numero));\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "public void permisoEscribir(int idEscritor) throws InterruptedException;", "public void SiguienteCancion(View view){\n //Verificamos si nuestro indice esta en la posicion 0\n if(posicion < vector_mp.length -1){//-1 evita el desbordamiento de memoria\n // Si nuestro indice es menor al ancho de nuestro vector, permite que nuestro indice siga recorriendo el vector\n //Verifica que nuestro vector en tal posicion este reprodcuiendo una cancion\n if(vector_mp[posicion].isPlaying()){\n //Detiene la pista que se esta reproduciendo para poder reproducir la siguiente\n vector_mp[posicion].stop();\n //Ayudamos a nuestro indice a recorrer el vector\n posicion++;\n //La siguiente posicion/cancion debe empezar a reproducirse\n vector_mp[posicion].start();\n\n //cambio de portada\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n\n } else {\n //Solo incrementa la posicion ya que al no estar reproduciendo no tiene caso detener\n posicion++;\n\n //cambio de portada\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n\n }\n\n } else{\n //Si nuestro inidice posicion ya recorrio el vector indicara que no hay mas canciones y asi evitar un desbordamiento de memoria\n Toast.makeText(this, \"No hay mas canciones\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent datosSustento = new Intent(context,DatosSustentoActivity.class);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_ACCION, DatosSustentoActivity.ACCION_ACTUALIZAR);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_CLIENTE, codigo_cliente);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_PLAN, codigo_plan);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_ACTIVIDAD, codigo_actividad);\t\t\t\t\t\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_SUSTENTO, sustentoTemporal.getCodigoSustento());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.DESCRIPCION_SUSTENTO, sustentoTemporal.getDescripcionActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_SUSTENTO, sustentoTemporal.getTipoActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.FECHA_VISITA, sustentoTemporal.getFechaVisita());\t\t\t\t\t\r\n\t\t\t\t\tcontext.startActivity(datosSustento);\r\n\t\t\t\t}", "public void duplicarAlcance(int i) {\n \talcance=i;\n this.setPosicionX(this.getPosicionX()*alcance);\n this.setPosicionY(this.getPosicionY()*alcance);\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "private void remplirFabricantData() {\n\t}", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tAceptarCofre(objeto.get(which));\n\t\t\t\t\t\t}", "public void goToCrearMomentoActivity(int i, Momento momento){\n Intent intent = new Intent(getApplicationContext(),CrearMomentoActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"opcion\",i);\n intent.putExtra(\"opcion\",i);\n intent.putExtra(\"momento\",momento);\n startActivity(intent);\n }", "private static void Relatorio() throws Exception \r\n {//Inicio menuRelatorio\r\n byte opcao;\r\n boolean fecharMenu = false;\r\n int idCliente, idProduto, quant;\r\n Produto p = null;\r\n Cliente c = null;\r\n do{\r\n System.out.println(\r\n \"\\n\\t*** MENU RELATORIO ***\\n\" +\r\n \"0 - Mostrar os N produtos mais Vendidos\\n\" +\r\n \"1 - Mostrar os N melhores clientes\\n\" +\r\n \"2 - Mostrar os produtos comprados por um cliente\\n\" +\r\n \"3 - Mostrar Clientes que compraram um produto\\n\" +\r\n \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch(opcao){\r\n case 0:\r\n ArrayList<Produto> listP = arqProdutos.toList();\r\n if(listP.isEmpty()) System.out.println(\"\\nNão tem produtos em nosso sistema ainda!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de produtos que deseja saber: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listP.sort((p1,p2) -> - Integer.compare(p1.getQuantVendidos(), p2.getQuantVendidos()));\r\n for(Produto n: listP){\r\n System.out.println(\"Produto de ID: \" + n.getID() + \" Nome: \" + n.nomeProduto + \"\\tQuantidade vendida: \" + n.getQuantVendidos());\r\n quant--;\r\n if(quant == 0) break;\r\n }\r\n }\r\n break;\r\n case 1:\r\n ArrayList<Cliente> listC = arqClientes.toList();\r\n if(listC.isEmpty()) System.out.println(\"Não ha clientes para mostrar!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de Clientes: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listC.sort((c1,c2) -> - Float.compare(c1.getTotalGasto(), c2.getTotalGasto()));\r\n for(Cliente n: listC){\r\n System.out.println(\"Cliente de ID: \" + n.getID() + \" Nome: \" + n.nomeCliente + \"\\tGasto total: \" + tf.format(n.getTotalGasto()));\r\n quant--;\r\n if(quant == 0) break; \r\n }\r\n }\r\n break;\r\n case 2:\r\n System.out.print(\"Digite o id do cliente: \");\r\n idCliente = read.nextInt();\r\n c = arqClientes.pesquisar(idCliente - 1);\r\n if (c != null){\r\n int[] idsProdutos = indice_Cliente_Produto.lista(idCliente);\r\n System.out.println(\"\\nO cliente \" + c.nomeCliente + \" de ID \" + c.getID() + \" comprou: \");\r\n for(int i = 0; i < idsProdutos.length; i++){\r\n p = arqProdutos.pesquisar(idsProdutos[i] - 1);\r\n System.out.println(\r\n \"\\n\\tProduto \" + i + \" -> \" + \r\n \" ID: \" + p.getID() + \r\n \" Nome: \" + p.nomeProduto + \r\n \" Marca: \" + p.marca\r\n );\r\n }\r\n }\r\n else {\r\n System.out.println(\"\\nID Invalido!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 3:\r\n System.out.print(\"Digite o id do Produto a consultar: \");\r\n idProduto = read.nextInt();\r\n p = arqProdutos.pesquisar(idProduto - 1);\r\n if(p != null){\r\n int[] idsClientes = indice_Produto_Cliente.lista(idProduto);\r\n System.out.println(\"\\nO produto '\" + p.nomeProduto + \"' de ID \" + p.getID() + \" foi comprado por: \");\r\n for(int i = 0; i < idsClientes.length; i++){\r\n c = arqClientes.pesquisar(idsClientes[i] - 1);\r\n System.out.println();\r\n System.out.println(c);\r\n }\r\n }\r\n else{\r\n System.out.println(\"\\nProduto Inexistende!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 4:\r\n fecharMenu = true;\r\n break; \r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n }while(!fecharMenu); \r\n }", "public MovimientoPantallaCocina() {\n initComponents();\n \n //COLOCAR FONOD EN LA PANTALLA PARA LA COCINA\n try{\n pnlOrdenes.setBorder(new ImagenCocina());\n } catch (IOException e){\n Logger.getLogger(MovimientoPantallaCocina.class.getName()).log(Level.SEVERE, null, e);\n }\n \n //VISUALIZAR TODAS LAS ORDENES ACTIVAS\n hilo p = new hilo(\"ordenes\");\n p.start();\n }", "Entidade obter(Chave chave);", "@Override\n\t public void onClick(View view) {\n\t \tIntent i;\n\t \tif (botonPrincipal.equals(\"2\"))\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), Dispositivo.class);\n\t \t}\n\t \telse\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), SetPersianas.class);\n\t \t}\n\t \t\t\t\ti.putExtra(\"codigo_dispositivo\" , cod_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"estado_dispositivo\" , est_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"descripcion_dispositivo\", desc_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"tipo_dispositivo\", tipo_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"codigo_habitacion\", cod_hab);\n\t \t\t\t\ti.putExtra(\"habitacion\", hab_dom);\n\t \t\t\t\ti.putExtra(\"botonPrincipal\",botonPrincipal);\n\t startActivity(i);\n\t finish();\n\t }", "@Override\n\tpublic void recreo() {\n\n\t}", "public mesajuego(PokerClient cliente,ActionListener lst) {\n initComponents();\n this.cliente = cliente;\n //this.lst=lst;\n jButton1.addActionListener(lst);\n jButton1.setActionCommand(\"btnrojo\");\n \n }", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public Television(int precioBase, int peso, char consumoEnergetico, String color, int pulgadas, boolean sintonizador){\r\n super(precioBase, peso, consumoEnergetico, color);\r\n this.pulgadas=pulgadas;\r\n this.sintonizador=sintonizador;\r\n }", "public interface AmigosListaContrato {\n interface Vista {\n void onExito(List<UsuarioEstandar> amigos);\n void marcar(int position);\n void desmarcar(int position);\n }\n\n interface Presenter {\n void pedirListaAmigos();\n void pedirMarcarSeleccionado(int position);\n void pedirDesmarcarSeleccionado(int position);\n void pedirDesmarcarTodos();\n void pedirBorrarAmigos();\n void pedirVerificarNoMarcadoParaMarcar(int position);\n void pedirVerificarMarcadoParaDesmarcar(int position);\n }\n}", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void recevoir(IPorcelet p);", "public interface IAzioneCreator {\n IAzione doMakeAzione(String idAz, List<Integer> valori);\n}", "public DatosInvitado() {\n\t\tsuper(MensajesVentanas.ventanaActiva);\n\t\tinitialize();\n\n\t\tjButtonAceptar.addActionListener(this);\n\t\tjButtonAceptar.addKeyListener(this);\n\t\tjButtonCancelar.addActionListener(this);\n\t\tjButtonCancelar.addKeyListener(this);\n\t\tjTextField.addKeyListener(this);\n\t\tjTextPane.addKeyListener(this);\n\t\t\n\t\tif(CR.meVenta.getVenta() != null && CR.meVenta.getVenta().getCliente().getNombreCompleto() != null){\n\t\t\tgetJTextField().setText(CR.meVenta.getVenta().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}else if(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getCliente()!=null){\n\t\t\tgetJTextField().setText(CR.meServ.getListaRegalos().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}\n\t\t\n\t\tif(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getDedicatoria()!=null)\n\t\t\tjTextPane.setText(CR.meServ.getListaRegalos().getDedicatoria());\n\t}", "public OI(){\n\t\t\n\t//\tc6.whenPressed(new dumpFlapOpen());\n\t\t//c8.whenPressed(new dumpFlapClose()); \n//\t\tl7.whenPressed(new dumpFlapOpen());\n//\n//\t\tx3.whileHeld(new hopperCoil());\n//\t\tx1.whileHeld(new hopperUnCoil());\n//\t\tx2.whileHeld(new climber());\n//\t\tx0.whenPressed(new climberReset());\n//\t\tx8.toggleWhenPressed(new cameraOneInit());\n//\t\tx9.toggleWhenPressed(new cameraTwoInit());\n//\n//\t\tr1.toggleWhenPressed(new driveBaseSwitchDirections());\n\t\t//l1.toggleWhenPressed(new visionSwitchCameras());\n\t\t\n\t\t/* logitech controller */\n\t\tc6.whenPressed(new dumpFlapOpen());\n\t\tc8.whenPressed(new dumpFlapClose()); \n\t\tl7.whenPressed(new dumpFlapOpen());\n\n\t\tc4.whileHeld(new hopperCoil());\n\t\tc3.whileHeld(new hopperUnCoil());\n\t\tc1.whileHeld(new climber());\n\t\tc2.whenPressed(new climberReset());\n\t\tc11.toggleWhenPressed(new cameraOneInit());\n\t\tc12.toggleWhenPressed(new cameraTwoInit());\n\n\t\tr1.toggleWhenPressed(new driveBaseSwitchDirections());\n\t\tl1.toggleWhenPressed(new visionSwitchCameras());\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/* TRASH CONTROLS */\n\t\t//l7.whenPressed(new resetClimberBoolean());\n\t\t//r1.whenPressed(new visionSwitchCameras());\n//\t\tl1.whenPressed(new visionSwitchCameras());\n\t\t//r1.whenActive(new visionSwitchCameras());\n//\t\tc9.whenPressed(new intakeFlapOpen());\n//\t\tc10.whenPressed(new intakeFlapClose()); \n\t\t\n//\t\tc5.whenPressed(new pushGearOut());\n//\t\tc7.whenPressed(new pushGearIn()); \n\t\t\n//\t\tc5.whenActive(new pushGearOut());\n//\t\tc7.whenActive(new pushGearIn()); \n//\t\tc5.toggleWhenPressed(new pushGearOut());\n//\tc7.toggleWhenPressed(new pushGearIn()); \n//\n//\t\tc5.whileHeld(new pushGearOut());\n//\t\tc7.whileHeld(new pushGearIn()); \n\t}", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "private DittaAutonoleggio(){\n \n }", "public ConsultaHistorialClinico(java.awt.Frame parent, boolean modal,TipoInforme tipo,DTOAbuelo dto) {\n super(parent, modal);\n initComponents();\n Image icon = new ImageIcon(getClass().getResource(\"/Vistas/imagenes/pinaricono.jpg\")).getImage();\n this.setLocationRelativeTo(null);\n idPaciente = dto.getId();\n tipoInforme=tipo;\n controlador= new ControladorABMAbuelos();\n controladorHistorial = new ControladorHistorialClinico();\n textDNI.setText(dto.getDni());\n textNombre.setText(dto.getNombre() + \" \" + dto.getApellido());\n textObraSocial.setText(dto.getDTOobraSocial().getNombreObraSocial());\n textPeso.setText(Double.toString(dto.getPeso()));\n textTalla.setText(Double.toString(dto.getTalla()));\n textTipoHistorial.setText(tipo.name());\n ///////FOTO////\n if(dto.getFoto()!=null){\n byte[] imagenbyte = dto.getFoto();\n BufferedImage img = null;\n try{ \n img = ImageIO.read(new ByteArrayInputStream(imagenbyte));\n Image imagen = img;\n imagen = imagen.getScaledInstance(130, 130, imagen.SCALE_DEFAULT);\n jLabel5.setIcon(new ImageIcon(imagen));\n }catch(IOException e){\n System.out.println(\"error\");\n }\n }\n ///////////////\n mostrarInformes();\n }", "public void TopDreiEvent();", "public interface PowerUps {\n\n public void activar(Figura figura);\n}", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "public LecturaPorEvento() \r\n {\r\n }", "public contrustor(){\r\n\t}", "@Override\n public RspPermiso getPermisoPorIdPermiso(int idPermiso) {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1 AND id_permiso = '\" + idPermiso + \"'\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n if (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n rspPermiso.setPermiso(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }", "protected void dopositiveClick2() {\n\n }", "public void muestraSolucion(final Button tecla,ImageView iv,int idNota, int idFondoNormal, int idFondoPulsado){\n final int fNormal= idFondoNormal;\n final int fPulsado= idFondoPulsado;\n final ImageView ivNota=iv;\n final int drawableNota=idNota;\n\n tecla.setBackground(getResources().getDrawable(fPulsado));\n tecla.setTextColor(getResources().getColor(R.color.colorBlanco));\n if(!modoPiano)\n personaje.setImageDrawable(getResources().getDrawable(R.drawable.cantante2peq));\n ivNota.setImageDrawable(getResources().getDrawable(drawableNota));\n\n }", "private void OpcionControl(int NumeroOpciones)\n {\n if (input.isKeyPressed(Input.KEY_DOWN)) \n {\n if (eleccionJugador == (NumeroOpciones - 1)) \n {\n eleccionJugador = 0;\n } \n else \n {\n eleccionJugador++;\n }\n }\n if (input.isKeyPressed(Input.KEY_UP)) \n {\n if (eleccionJugador == 0) {\n eleccionJugador = NumeroOpciones - 1;\n } else {\n eleccionJugador--;\n }\n } \n }", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}" ]
[ "0.5736295", "0.5352331", "0.53163236", "0.52750283", "0.5256959", "0.52555215", "0.5219328", "0.51925355", "0.5188119", "0.51848996", "0.51848996", "0.5181458", "0.5166182", "0.5145896", "0.51340514", "0.5133576", "0.5125191", "0.5112377", "0.5108767", "0.5103088", "0.5096536", "0.5088048", "0.5087915", "0.5062463", "0.50463754", "0.50449157", "0.50448036", "0.5040615", "0.5040313", "0.5037799", "0.5034118", "0.50228983", "0.50123346", "0.49722287", "0.49707147", "0.49680218", "0.49675694", "0.49608222", "0.49601784", "0.49554676", "0.49524695", "0.4947999", "0.49436808", "0.49401686", "0.49214438", "0.49135274", "0.4913041", "0.4910563", "0.4910002", "0.49058026", "0.4905241", "0.4903765", "0.49030316", "0.4901713", "0.49012917", "0.48818505", "0.48540625", "0.4853538", "0.48488435", "0.48453474", "0.48432234", "0.48412296", "0.48396796", "0.4835424", "0.48344782", "0.48342136", "0.48323315", "0.48320687", "0.48310193", "0.4828618", "0.48265678", "0.48254684", "0.48236153", "0.48181105", "0.48180616", "0.48175445", "0.48128235", "0.48048306", "0.48045176", "0.4803471", "0.48029083", "0.4802178", "0.48016825", "0.48016468", "0.4800802", "0.47996798", "0.4798227", "0.47971216", "0.479552", "0.47933796", "0.47922128", "0.4791417", "0.47907445", "0.4788031", "0.47864458", "0.47838587", "0.47789058", "0.47766706", "0.47731456", "0.47725487", "0.47718334" ]
0.0
-1
Stop Firestore service when user closes the app
private void ExitRoom() { stopFirestoreListenerService(); SharedPreferences roomInfo = getSharedPreferences("PreviousRoom", 0); SharedPreferences.Editor roomInfoEditor = roomInfo.edit(); roomInfoEditor.putString("roomID", ""); roomInfoEditor.apply(); SelectRoomActivity.recentRooms.remove(roomId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n\t\t\tfirebaseLooper.quit() ;\n\t\t}", "@Override\n public void onStop() {\n super.onStop();\n\n if (mFirebaseAuthListener != null) {\n mFirebaseAuth.removeAuthStateListener(mFirebaseAuthListener);\n }\n }", "@Override\n public void onDestroy() {\n stopService();\n }", "@Override\n protected void onStop() {\n super.onStop();\n Log.d(TAG, \"onStop\");\n// Auth.signOut();\n mNest.removeAllListeners();\n Auth.removeAuthListener();\n }", "@Override\n protected void onStop() {\n if (null != googleClient && googleClient.isConnected()) {\n googleClient.disconnect();\n }\n super.onStop();\n }", "@Override\r\n\tpublic void stop() {\n\t\tmongoClient.close();\r\n\t}", "protected void onStop() {\n super.onStop();\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"walkersAvailable\");\n GeoFire geoFire = new GeoFire(ref);\n geoFire.removeLocation(userId);\n }", "@Override\n public void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n //realm.close();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n Toast.makeText(this, R.string.service_destoryed, Toast.LENGTH_LONG).show();\n\n // Disconnect Google Api to stop updating.\n mGoogleApiClient.disconnect();\n }", "@Override\n\tprotected void onDestroy() {\n\t\n\t\t\tLog.d(\"collectData\", \"onDestroy\");\n\t\t\t((MyApp)getApplicationContext()).stopTryToConnect();\n\t\t\t\n\t\t\n\t\t\n\t\tsuper.onDestroy();\n\t}", "@Override\n protected void onStop() {\n if(!device.haveNetwork()){\n //show error message\n Toasty.error(getApplicationContext(),device.NetworkError(), Toast.LENGTH_SHORT,true).show();\n }\n else{\n //get current user\n FirebaseUser cUser = cAuth.getCurrentUser();\n\n //if user != null\n if(cUser != null)\n {\n //show success message to console log\n Log.d(TAG, \"getCurrentUser: success\");\n }\n else\n {\n //show error message to console log\n Log.d(TAG, \"getCurrentUser: failed\");\n\n //show error message to user\n Toasty.error(getApplicationContext(), \"Session is expired. Please relogin.\", Toast.LENGTH_SHORT,true).show();\n\n //intent user to login page (relogin)\n Intent i = new Intent(CreateEventActivity.this, LoginActivity.class);\n\n //clear the background task\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(i);\n }\n }\n super.onStop();\n }", "@Override\n protected void onDestroy() {\n stopService(collectDataService);\n super.onDestroy();\n }", "@Override\n protected void onStop() {\n saveData();\n stopRepeatingDeletionSearch();\n super.onStop();\n }", "@Override\n public void onStop() {\n super.onStop();\n if (authListener != null) {\n mAuth.removeAuthStateListener(authListener);\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.e(\"应用关闭消息\", \"关闭\");\n\t\tuserService.closeDB();\n\t}", "void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }", "@Override\n public void onStop() {\n super.onStop();\n if (mAuthListener != null) {\n mAuth.removeAuthStateListener(mAuthListener);\n }\n }", "@Override\n public void onStop() {\n super.onStop();\n if (mAuthListener != null) {\n mAuth.removeAuthStateListener(mAuthListener);\n }\n }", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tthis.onDestroy();\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n saveData();\n }", "@Override\n public void stop() {\n lumenClient.shutdown();\n lumenClient = null;\n }", "public void onStop() {\n super.onStop();\n this.mAuth.removeAuthStateListener(this.mAuthStateListener);\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (fireworkView.isRunning()) {\n fireworkView.setRunning(false);\n }\n }", "@Override\r\n protected void onStop() {\n super.onStop();\r\n if (mGoogleApiClient.isConnected()) {\r\n mGoogleApiClient.disconnect();\r\n }\r\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n if(recordLocations && currentJourneyId != null) {\n interactor.updateJourneyEndTime(currentJourneyId, System.currentTimeMillis());\n currentJourneyId = null;\n }\n LocationServices.FusedLocationApi.removeLocationUpdates(googleApiClient, this);\n if(wakeLock.isHeld()) {\n wakeLock.release();\n }\n isServiceRunning = false;\n }", "@Override\n public void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "public void onStop() {\n super.onStop();\n ApplicationStateMonitor.getInstance().activityStopped();\n }", "@Override\r\n\tpublic void onDestroy() {\n\t\tstartService(new Intent(getApplicationContext(), FlowService.class));\r\n\r\n\t\tsuper.onDestroy();\r\n\t}", "@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "@Override\n protected void onPause() {\n super.onPause();\n FirebaseUtil.detachListener(); //detaches the listener so that it doesn't have to keep checking for updates from database\n }", "@Override\r\n public void onDestroy() {\r\n super.onDestroy();\r\n Log.d(TAG, \"on service destroy\");\r\n sendBroadcast(new Intent(Constants.INSTAG_SERVICE_DESTROYED));\r\n cancelTimer();\r\n }", "@Override\n protected void onStop() {\n if (mGoogleApiClient.isConnected()) {\n mGoogleApiClient.disconnect();\n }\n\n super.onStop();\n }", "@Override\n public void onDestroy() {\n\n stopService(new Intent(this, LocationMonitoringService.class));\n mAlreadyStartedService = false;\n //Ends................................................\n\n\n super.onDestroy();\n }", "protected void onStop() {\n if(scheduleClient != null)\n scheduleClient.doUnbindService();\n this.onStop();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n releaseService();\n }", "@Override\n public void onStop() {\n super.onStop();\n Log.d(TAG, \"onStop() called\");\n mLoginDb.close();\n }", "public void stopAutomaticRefresh() {\n try {\n dnsService.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }", "@Override\n public void onStop() {\n if(null!=mGoogleApiClient)\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "@Override\n protected void appStop() {\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n\n this.stopForeground(true);\n }", "public void shutdown(){\n\t\tAndroidSensorDataManagerSingleton.cleanup();\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tContext context = this.getApplicationContext();\n\t\t//Toast.makeText(context, \"Avslutter service\", Toast.LENGTH_LONG).show();\n\n\t\t//Fjerner notification:\n\t\tnotificationManager.cancel(0); //.cancelAll();\n\t\tsuper.onDestroy();\n\t}", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "@Override\n public void doStop() {\n loc = null;\n sensors().set(SERVICE_STATE, Lifecycle.STOPPING);\n sensors().set(SERVICE_UP, false);\n sensors().set(SERVICE_STATE, Lifecycle.STOPPED);\n }", "@Override\r\n\tpublic void onStop() {\n\t\tSharedPreferences preferences = getActivity().getSharedPreferences(\"com.dotchi1\", Context.MODE_PRIVATE);\r\n\t\tEditor editor = preferences.edit();\r\n\t\teditor.putBoolean(HOME_FEED_JSON_KEY, false);\r\n\t\teditor.remove(HOME_FEED_JSON_VALUE);\r\n\t\teditor.commit();\t\t\r\n\t\tsuper.onStop();\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}", "@Override\r\n public void onStop() {\r\n super.onStop();\r\n UserDataManager.getManager().saveUserData(this);\r\n }", "@Override\n protected void onDestroy() {\n saveData();\n stopRepeatingDeletionSearch();\n super.onDestroy();\n }", "public void StopService() {\n\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, ((Activity) context).getApplication());\n tracklisiten.StopService();\n\n }", "@Override\n protected void onStop ()\n {\n super.onStop();\n if (receiver != null)\n {\n cleanupReceiver();\n cleanupAccount();\n }\n }", "@Override\n public void stop() {\n logger.info(\"{}: stopping...\", name);\n super.stop();\n if (pullSnapshotService != null) {\n pullSnapshotService.shutdownNow();\n try {\n pullSnapshotService.awaitTermination(THREAD_POLL_WAIT_TERMINATION_TIME_S, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n logger.error(\"Unexpected interruption when waiting for pullSnapshotService to end\", e);\n }\n pullSnapshotService = null;\n pullSnapshotHintService.stop();\n }\n\n try {\n getQueryManager().endAllQueries();\n } catch (StorageEngineException e) {\n logger.error(\"Cannot release queries of {}\", name, e);\n }\n logger.info(\"{}: stopped\", name);\n }", "@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }", "private void StopService() {\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, getApplication());\n tracklisiten.StopService();\n\n }", "private void checkIfForceKill() {\n SharedPreferences settings = PreferenceManager\n .getDefaultSharedPreferences(this);\n boolean forceKill = settings.getBoolean(\n FORCE_EXIT_APPLICATION, false);\n\n if (forceKill) {\n //CLEAR THE FORCE_EXIT SETTINGS\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(FORCE_EXIT_APPLICATION, false);\n // Commit the edits!\n editor.apply();\n //HERE STOP ALL YOUR SERVICES\n finish();\n }\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tunregisterReceiver(receiver);\r\n\t\tif(db!=null){\r\n\t\t\tdb.close();\r\n\t\t}\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tIntent Intent2=new Intent(UserActivity.this,MsgService.class);\n\t\tstopService(Intent2);\n\t\t\n\t\tIntent intent4=new Intent(UserActivity.this,FileLoadService.class);\n\t\tstopService(intent4);\n\t}", "@Override\n protected void onStop() {\n if (mGoogleApiClient != null) {\n mGoogleApiClient.disconnect();\n }\n\n if( mLocationClient != null )\n mLocationClient.disconnect();\n\n super.onStop();\n }", "@SuppressWarnings(\"deprecation\")\r\n\t@Override\r\n\tprotected void onStop()\r\n\t{\r\n\t}", "@Override\n protected void onStop() {\n if (mLocationClient.isConnected()) {\n /*\n * Remove location updates for a listener.\n * The current Activity is the listener, so\n * the argument is \"this\".\n */\n \tmLocationClient.removeLocationUpdates(mDataManager);\n \t\n }\n /*\n * After disconnect() is called, the client is\n * considered \"dead\".\n */\n mLocationClient.disconnect();\n super.onStop();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\ttry {\n\t\t\tstopService(mServiceIntent);\n\t\t} catch (Exception er) {\n\t\t\ter.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n\tsuper.onDestroy ();\n\tstartService ( new Intent ( getBaseContext (), BackgroundService.class ) );\n }", "protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n // ATTENTION: This was auto-generated to implement the App Indexing API.\n // See https://g.co/AppIndexing/AndroidStudio for more information.\n Action viewAction = Action.newAction(\n Action.TYPE_VIEW, // TODO: choose an action type.\n \"Main Page\", // TODO: Define a title for the content shown.\n // TODO: If you have web page content that matches this app activity's content,\n // make sure this auto-generated web page URL is correct.\n // Otherwise, set the URL to null.\n Uri.parse(\"http://host/path\"),\n // TODO: Make sure this auto-generated app deep link URI is correct.\n Uri.parse(\"android-app://com.example.akiva.crimestoppers/http/host/path\")\n );\n AppIndex.AppIndexApi.end(mGoogleApiClient, viewAction);\n }", "@Override\n public void onStop()\n {\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n sp.edit().putBoolean(\"openApk\", false).commit();\n sp.edit().putBoolean(\"hasLogin\", false).commit();\n sp.edit().putString(\"user_project_id\", \"-1\").commit();\n if (mPositionService != null) {\n mPositionService.unRegisterListener();\n mPositionService.stop();\n }\n }", "@Override\n public void onStop() {\n super.onStop();\n GoogleAnalytics.getInstance(this).reportActivityStop(this);\n }", "public void stopService() {\n if (serviceRegistered) {\n Application application = getApplication();\n application.stopService(serviceIntent);\n application.unbindService(serviceConnection);\n recordingService.stopForeground(true);\n recordingService.stopSelf();\n serviceRegistered = false;\n }\n }", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t\tlock = true;\n\t\tgetActivity().unbindService(mServiceConnection);\n\t}", "@Override\n public void onStop() {\n super.onStop();\n if (mAuthListener != null) {\n mAuth.removeAuthStateListener(mAuthListener);\n }\n hideProgressDialog();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tbookCache.clear();\n\n stopService(new Intent(this , AudioService.class));\n\n Global.RemoveTmp();\n\t}", "public void onStop() {\n super.onStop();\n finish();\n }", "@Override\n protected void onPause() {\n super.onPause();\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n }", "@Override\n protected void onStop(){\n super.onStop();\n Log.d(TAG_INFO,\"application stopped\");\n }", "@Override\n protected void onStop(){\n super.onStop();\n Log.d(TAG_INFO,\"application stopped\");\n }", "private static void stopCleanUp() {\n\n if (isEventTrackerRunning && timer != null) {\n timer.cancel();\n timer.purge();\n debugLogger.info(\"Timer stopped: {}\", new Date());\n } else {\n debugLogger.info(\"Timer was already stopped : {}\", new Date());\n\n }\n isEventTrackerRunning = false;\n\n }", "private void stop() {\n\t\t/*\n if (this.status != PedoListener.STOPPED) {\n this.sensorManager.unregisterListener(this);\n }\n this.setStatus(PedoListener.STOPPED);\n\t\t*/\t\t\t\t\n\t\t\t\n\t\tif (status != PedoListener.STOPPED) {\n\t\t uninitSensor();\n\t\t}\n\n\t\tDatabase db = Database.getInstance(getActivity());\n\t\tdb.setConfig(\"status_service\", \"stop\");\n\t\t//db.clear(); // delete all datas on table\n\t\tdb.close();\t\t\n\n\t\tgetActivity().stopService(new Intent(getActivity(), StepsService.class));\n\t\tstatus = PedoListener.STOPPED;\n\n\t\tcallbackContext.success();\n }", "@Override\n protected void onStop() {\n super.onStop();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tSystem.exit(0);\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onDestroy();\n\t\tunReceiver();\n\t\tAppContext.getInstance().setSMSShow(false);\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n closeDB();\n }", "public void stop() {\n\t\tSystem.out.println(\"Stopping application\");\n\t\trunning = false;\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n sensormanager.unregisterListener(sensorEventListener);\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.d(\"tag\", \"-------onPause-------\");\n\t\t// userService.closeDB();\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tcleanDate() ;\n\t\t/*服务被杀死时发送广播重启服务 com.jumeng.repairmanager.receiver.BootReceiver*/\n\t\tIntent intent=new Intent(Consts.RESTART_SERVICE);\n\t\tsendBroadcast(intent);\n\t\tstopForeground(true);\n\t}", "public void onStop();", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tsuper.onDestroy();\n\t\t\n\t\tcloseDB();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(mServiceConn);\n\t}", "@Override\r\n public void onTerminate() {\n \r\n dataManager.closeDb();\r\n selectedBook = null;\r\n super.onTerminate();\r\n }", "public void onStop() {\n }", "@Override\r\n protected void onStop() {\n }", "@Override\n\tprotected void onDestroy() {\n\n\t\t// Force-stop the timer if required.\n\t\tif (timerUpdateThread != null) {\n\t\t\ttimerUpdateThread.interrupt();\n\t\t\ttimerUpdateThread = null;\n\t\t}\n\n\t\t// if we're in the middle of a session, stop it gracefully.\n\t\t// TODO Maybe refactor so we don't stop the session here.\n\t\tif (workoutService != null) {\n\t\t\tworkoutService.getService().setWorkoutServiceListener(null);\n\n\t\t\tif (workoutService.getService().getStatus().isMonitoring()) {\n\t\t\t\tworkoutService.getService().endWorkout();\n\t\t\t\tlogger.debug(\"onDestroy(): Stopped an in-progress session before quitting activity.\");\n\t\t\t}\n\t\t}\n\n\t\t// Unbind from, and stop, the workout service here.\n\t\t// TODO Maybe don't stop the service.\n\t\tif (workoutServiceIntent != null) {\n\t\t\tunbindService(workoutServiceConn);\n\t\t\tstopService(workoutServiceIntent);\n\t\t\tlogger.debug(\"onDestroy(): Unbound from Workout service.\");\n\t\t}\n\n\t\tsuper.onDestroy();\n\t}", "private void stopLoggerService() {\n Intent intent = new Intent(this, GestureLoggerService.class);\n intent.putExtra(GestureLoggerService.EXTRA_START_SERVICE, false);\n\n startService(intent);\n }", "public static void shutdown() {\n resetCache();\n listeningForChanges = false;\n }", "public void shutdown() {\n this.dontStop = false;\n }", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "public void onDestroy() {\n super.onDestroy();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onDestroy\");\n m6659t();\n ServiceConnection serviceConnection = this.f5403W;\n if (serviceConnection != null) {\n unbindService(serviceConnection);\n }\n }", "@Override\n public void onDestroy() {\n Toast.makeText(this, \"Service stopped\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onDestroy(){\n super.onDestroy();\n Log.i(TAG, \"Location Service has been destroyed\");\n stopLocationUpdates();\n stopSelf();\n }", "@Override\n protected void onDestroy() {\n db.collection(\"users\").document(userId).update(\"room\", FieldValue.delete());\n\n super.onDestroy();\n }" ]
[ "0.68500096", "0.66622275", "0.6406276", "0.6343037", "0.6339631", "0.6335119", "0.633511", "0.6331705", "0.63114345", "0.63094616", "0.6300832", "0.62876004", "0.6238816", "0.6214052", "0.6194514", "0.616516", "0.61440194", "0.61440194", "0.61215174", "0.61108565", "0.60825634", "0.60810786", "0.6072938", "0.606017", "0.60601526", "0.60555404", "0.6025834", "0.60199445", "0.60199225", "0.60199225", "0.6009491", "0.60063887", "0.60002846", "0.60002077", "0.5970452", "0.5960761", "0.59602046", "0.5939048", "0.5937706", "0.5917252", "0.5917076", "0.59105337", "0.5907599", "0.5906045", "0.5903444", "0.58897287", "0.58520126", "0.58397967", "0.5834606", "0.5827082", "0.58200055", "0.5814574", "0.58101267", "0.5809509", "0.58046234", "0.57976854", "0.5797532", "0.5796276", "0.5794628", "0.5793678", "0.5788894", "0.5780547", "0.5780365", "0.5776291", "0.57747793", "0.5770871", "0.57583773", "0.5758145", "0.57575077", "0.57547367", "0.5753713", "0.57526827", "0.57437", "0.5742454", "0.5742454", "0.5741925", "0.57343316", "0.57303995", "0.5725303", "0.5714283", "0.57129484", "0.5711626", "0.5703633", "0.57030857", "0.5702682", "0.5702667", "0.5694884", "0.5694497", "0.569084", "0.56836003", "0.5681181", "0.56799906", "0.5677059", "0.5676709", "0.56743956", "0.56742615", "0.56705946", "0.5669807", "0.5665943", "0.56632006" ]
0.57025015
86
Remove user from room
@Override protected void onDestroy() { db.collection("users").document(userId).update("room", FieldValue.delete()); super.onDestroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeUser(long id) {\n\troomMembers.remove(id);\n }", "void removeUser(Long id);", "void removeUser(String uid);", "public void deleteUser(String room, String name) {\n ((GroupChatPanel)grouptabs.get(room)).deleteUser(name);\n \n }", "@Override\r\n public String removeMember(String room, String user) {\r\n Objects.requireNonNull(room);\r\n Objects.requireNonNull(user);\r\n final Map<String, String> roomMembers = this.members.get(room);\r\n final String value = roomMembers == null || roomMembers.isEmpty() ? null : roomMembers.remove(user);\r\n LOG.debug(\"Member: {}, value: {}, room: {}, room members: {}\", \r\n user, value, room, roomMembers);\r\n return value;\r\n }", "public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}", "public void removeUserFromRoom(String username)\r\n\t{\r\n\t\ttheGridView.removeCharacterFromRoom(username);\r\n\t}", "@Override\n\tpublic void removeUser(int id) {\n\t\t\n\t}", "Integer removeUserByUserId(Integer user_id);", "int removeUser(User user);", "void remove(User user) throws SQLException;", "public void removeUser(String username);", "public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void deleteUser(String userRoomInfo, User user){\n\t\tspace.getAllNicksnames().remove(user.getNickname());\n\t\tspace.getAllParticipants().remove(user.getUsername());\n\t\tspace.getAllOccupants().remove(userRoomInfo);\n\t\tfor(UserView uv : space.getAllIcons()){\n\t\t\tif(uv.getPerson()==user)\n\t\t\t\tspace.getAllIcons().remove(uv);\n\t\t}\n\t\t\n\t\tif(space!=Space.getMainSpace())\n\t\t\tview.getActivity().invalidatePSIconView(psiv);\n\t\t//this.psiv.invalidate();\n\t\t\n\t\t/* If you are currently in this space then refresh the \n\t\t * the spaceview ui\n\t\t */\n\t\tif(space == MainApplication.screen.getSpace())\n\t\t\tview.getActivity().invalidateSpaceView();\n\t\t\n\n\n\t\tview.getActivity().launchNotificationView(user, \"deleteuser\");\t\n\t}", "public void removeUser(Customer user) {}", "public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }", "@Override\n\tpublic void removeUserFromTourney(String username, int tourneyId) {\n\t\tString sql = \"delete from users_tournaments \"\n\t\t\t\t+ \"where user_id = (select user_id from users where username = ?) \"\n\t\t\t\t+ \"and tourney_id = ?\";\n\t\tjdbcTemplate.update(sql, username, tourneyId);\n\t\t\n\t}", "public void deleteUser(Integer uid);", "void deleteUserById(Long id);", "public void removeByUserId(long userId);", "public void removeByUserId(long userId);", "@Override\r\n public void clientRemoveUser(User user) throws RemoteException, SQLException\r\n {\r\n gameListClientModel.clientRemoveUser(user);\r\n }", "public void destroy(User user);", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "void removeUserListener(String uid);", "public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }", "private void deleteAdminship(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getAdminOfChatrooms();\n\t\tList<User> users = chatroom.getAdministrators();\n\t\t// if the user has received invite\n\t\tif (isAdmin(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "void deleteUser(String userId);", "void deleteUserById(Integer id);", "CratePrize removeEditingUser(Player player);", "private void removeUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tPreferenceDB.removePreferencesUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tif (UserDB.getnameOfUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER))) == null)\n\t\t\t\tout.print(\"ok\");\n\t\t\tUserDB.removeUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tout.print(\"ok\");\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 deleteUser(long userId);", "public void deleteRoom(Room room);", "public void removeuserById(User user) throws SQLException{\n String SQL = \"DELETE FROM user WHERE id = ? \";\n PreparedStatement ps = connection.prepareStatement(SQL);\n ps.setLong(1, user.getId());\n int result = ps.executeUpdate();\n if(result > 0) System.out.println(\"remoção do usuário \\\"\"+\n user.getName() + \"\\\", concluída com sucesso!\");\n else System.out.println(\"ID não cadastrado, verifique novamente...\");\n ps.close();\n }", "public void deleteUser(String name);", "public void run() {\n main.removeUser(location);\n }", "void deleteUser(int id);", "private void deleteMembership(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getMemberOfChatrooms();\n\t\tList<User> users = chatroom.getMembers();\n\t\tList<Membership> memberships = user.getMemberships();\n\t\t// if the user has received invite\n\t\tif (isMember(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// delete the membership\n\t\t\t// delete the membership\n\t\t\tfor (Membership m : memberships) {\n\t\t\t\tif (m.getChatroom() == chatroom) {\n\t\t\t\t\tmemberships.remove(m);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "@Override\n\tpublic void removeMember(User user) throws Exception {\n\n\t}", "public void removeuserById(Long id) throws SQLException{\n String SQL = \"DELETE FROM user WHERE id = ? \";\n PreparedStatement ps = connection.prepareStatement(SQL);\n ps.setLong(1, id);\n int result = ps.executeUpdate();\n if(result > 0) System.out.println(\"remoção do usuário concluída com sucesso!\");\n else System.out.println(\"ID não encontrado, verifique novamente...\");\n ps.close();\n }", "private void deleteMemberInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomInvites();\n\t\tList<User> users = chatroom.getMemberInvitees();\n\t\t// if the user has received invite\n\t\tif (memberInvitationSent(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "public void deleteUserById(Long userId);", "public void removeUser(User user) throws UserManagementException;", "@Override\r\n\tpublic void del(int uid) {\n\t\tuserDao.del(uid);\r\n\t}", "public void removeUser(String username){\n \t\tString id = username;\n \t\tString query = \"DELETE FROM users WHERE id = '\"+ id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM friends WHERE id1 = id OR id2 = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM achievements WHERE user = id;\";\n \t\tsqlUpdate(query);\n \t\t\n \t\tquery = \"DELETE FROM notes WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM challenges WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM requests WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t}", "public void removeUser (ChatContext chatContext, User user) {\n if (chatContext.removeUser(user)) {\n removeContext(chatContext);\n }\n }", "void DeleteCompteUser(int id);", "static synchronized void RemoveUser(ClientHandler user)\r\n {\r\n users.remove(user);\r\n if(users.size() == 0)\r\n {\r\n try {\r\n chatLogWriter.close();\r\n chatLog.delete();\r\n System.out.println(\"!!! Waiting for the next connection... !!!\\n\\n\");\r\n } catch (Exception e)\r\n {\r\n System.out.println(\"Unable to close file!\");\r\n System.exit(1);\r\n }\r\n }\r\n }", "public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "public void removeUser(User user) {\n for (ChatContext chatContext: chatContexts) {\n if (chatContext.removeUser(user)) {\n //Dissolve the chat\n removeContext(chatContext);\n break;\n }\n }\n }", "@Override\n public void removeAddedBy(CsldUser toRemove) {\n }", "private static void removeTalker(User talker, AppCompatActivity activity) {\n mRefUsersTalk\n .child(mAuth.getCurrentUser().getUid())\n .child(talker.getId())\n .removeValue()\n .addOnSuccessListener(aVoid -> {\n\n //REMOVES CURRENT USER TO TALKER NODE\n mRefUsersTalk\n .child(talker.getId())\n .child(mAuth.getCurrentUser().getUid())\n .removeValue()\n .addOnSuccessListener(aVoid1 -> {\n showProgressDialog(false);\n Toast.makeText(activity.getApplicationContext(), \"Usuário removido com sucesso!\", Toast.LENGTH_SHORT)\n .show();\n\n backToMainActivity(activity);\n })\n .addOnFailureListener(Throwable::getLocalizedMessage);\n })\n .addOnFailureListener(Throwable::getLocalizedMessage);\n\n }", "public void deleteChatRoom(ChatRoom cr);", "@Override\n public boolean removeUser(Socket userSocket, IUser user) {\n if (this.chatUsers.containsKey(userSocket)) {\n this.chatUsers.remove(userSocket);\n notifyUsers(this.chatName,\n \"User \" + user.getName() + \" has left the chat.\");\n return true;\n }\n return false;\n }", "public void removeUser(Client user) {\n usersConnected.remove(user.getName());\n }", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "public void removeDoente(String user) {\n try {\n lock.lock();\n this.doentes.remove(user);\n } finally {\n lock.unlock();\n }\n }", "public User delete(String user);", "private void deleteLeftOversFromDB(String uid, String message){\n Toast.makeText(RegistrationActivity.this, message, Toast.LENGTH_LONG).show();\n database.getReference(\"ids\").child(uid).removeValue(); //remove the id from ids if user wasn't created eventually\n mAuth.getCurrentUser().delete(); // remove the user from the authentication db if user not created\n }", "void remove(User user) throws AccessControlException;", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "void delete(User user);", "void delete(User user);", "public void deleteUser(User userToDelete) throws Exception;", "public void deleteUser(String username);", "@Override\n public void removeUserById(long id) {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n User user = (User) session.get(User.class, id);\n session.delete(user);\n tx.commit();\n session.close();\n }", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "public boolean delete(User user);", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "public static void Remover(ChatSkeleton user) {\n for (Grupo b : ListaOnline.getGrupos()) {\r\n for (Usuario u : b.getGrupo()) {\r\n if (u.equals(user.getUser())) {\r\n b.getGrupo().remove(user.getUser());\r\n }\r\n }\r\n }\r\n\r\n for (ChatSkeleton u : ListaOnline.getTodos()) {\r\n if (u.equals(user)) {\r\n ListaOnline.getTodos().remove(user);\r\n }\r\n }\r\n }", "void deleteUser( String username );", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "private void removeUser(int index) {\n ensureUserIsMutable();\n user_.remove(index);\n }", "private void deleteAdminInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomAdminInvites();\n\t\tList<User> users = chatroom.getAdminInvitees();\n\t\t// if the user has received invite\n\t\tif (adminInvitationSent(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "public void deleteUserRequest(UserRequest request){\n userRequests.remove(request);\n }", "public void remover(Usuario u) {\n listaUse.remove(u);\n\n }", "public void removeUtilisateurFromGroupe(Utilisateur utilisateur, Groupe groupe);", "public static void removeCharacter(String username, String room)\r\n\t{\r\n\t\tcharacters.remove(username);\r\n\t\trooms.get(room).removeCharacterName(username);\r\n\t}", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }", "void deleteUser(String deleteUserId);", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "public void delete(User usuario);", "public synchronized void removeUser(String username) {\n \n if(this.capacity > 0) {\n \n /* Rimuovo utente dalla HashMap */\n usersList.remove(username);\n \n /* Utente rimosso */\n capacity--;\n \n System.out.println(\"GOSSIP System: \"+username+\" removed from Proxy \"+\n id+\"@\"+address+\":\"+port+\" [Capacity: \"+max_capacity+\n \"][Available: \"+(max_capacity-capacity)+\"]\");\n }\n }", "private void removeUser(HttpServletRequest req) throws PolygonException {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n UsersMapper.removeUser(id);\n } catch (PolygonException ex) {\n String msg = \"UsersMapper.removeUser() fails\";\n throw new PolygonException(msg);\n }\n }", "protected void remove(User<PERM> user) {\n\t\tuserMap.remove(user.principal.getName());\n\t}", "public void removeUser(int id) throws AdminPersistenceException {\n CallBackManager.invoke(CallBackManager.ACTION_BEFORE_REMOVE_USER, id, null,\n null);\n \n UserRow user = getUser(id);\n if (user == null)\n return;\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des groupes dans la base\", null);\n GroupRow[] groups = organization.group.getDirectGroupsOfUser(id);\n for (int i = 0; i < groups.length; i++) {\n organization.group.removeUserFromGroup(id, groups[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des rôles dans la base\", null);\n UserRoleRow[] roles = organization.userRole.getDirectUserRolesOfUser(id);\n for (int i = 0; i < roles.length; i++) {\n organization.userRole.removeUserFromUserRole(id, roles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" en tant que manager d'espace dans la base\", null);\n SpaceUserRoleRow[] spaceRoles = organization.spaceUserRole\n .getDirectSpaceUserRolesOfUser(id);\n for (int i = 0; i < spaceRoles.length; i++) {\n organization.spaceUserRole.removeUserFromSpaceUserRole(id,\n spaceRoles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Delete \" + user.login\n + \" from user favorite space table\", null);\n UserFavoriteSpaceDAO ufsDAO = DAOFactory.getUserFavoriteSpaceDAO();\n if (!ufsDAO.removeUserFavoriteSpace(new UserFavoriteSpaceVO(id, -1))) {\n throw new AdminPersistenceException(\"UserTable.removeUser()\",\n SilverpeasException.ERROR, \"admin.EX_ERR_DELETE_USER\");\n }\n \n SynchroReport.debug(\"UserTable.removeUser()\", \"Suppression de \"\n + user.login + \" (ID=\" + id + \"), requête : \" + DELETE_USER, null);\n \n // updateRelation(DELETE_USER, id);\r\n // Replace the login by a dummy one that must be unique\r\n user.login = \"???REM???\" + Integer.toString(id);\n user.accessLevel = \"R\";\n user.specificId = \"???REM???\" + Integer.toString(id);\n updateRow(UPDATE_USER, user);\n }", "public void supprimerRole(Long idRoUt);", "boolean delete(User user);", "@Override\n public void removeUser(int id) {\n Session session = this.sessionFactory.getCurrentSession();\n User u = (User) session.load(User.class, new Integer(id));\n if(null != u){\n session.delete(u);\n }\n logger.info(\"User deleted successfully, User details=\"+u);\n }", "private void clearUser() { user_ = null;\n \n }", "@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}" ]
[ "0.78492373", "0.7675172", "0.74728703", "0.7390394", "0.7158405", "0.71473306", "0.7089864", "0.7068521", "0.703013", "0.7013706", "0.6998015", "0.6992299", "0.69697577", "0.69255143", "0.691698", "0.6885404", "0.6855053", "0.68509376", "0.6804604", "0.6801242", "0.6801242", "0.6788472", "0.6717364", "0.6707234", "0.67061245", "0.6685359", "0.66757137", "0.66693234", "0.6663058", "0.6656567", "0.66440415", "0.6639351", "0.6638374", "0.66315806", "0.66209286", "0.66194457", "0.6605459", "0.65855527", "0.6563923", "0.6536243", "0.6535944", "0.65348226", "0.65183157", "0.6511813", "0.6508284", "0.649634", "0.64953727", "0.6484861", "0.64727306", "0.6470779", "0.64702386", "0.6468601", "0.64608175", "0.6458167", "0.6438486", "0.6421808", "0.64208084", "0.64201146", "0.6412951", "0.64125174", "0.6408657", "0.6403855", "0.6403855", "0.64029664", "0.640044", "0.63960505", "0.6387418", "0.6377792", "0.6369917", "0.63635325", "0.6346532", "0.6342924", "0.6339634", "0.63307256", "0.632959", "0.6313493", "0.63068646", "0.63067347", "0.63065445", "0.63046426", "0.63043743", "0.63011503", "0.62982184", "0.6297183", "0.62908304", "0.6290711", "0.6288379", "0.62849015", "0.62766695", "0.62732583", "0.6269817", "0.62544525", "0.62454337", "0.62421346", "0.6240528", "0.62392575", "0.6237723", "0.62346816", "0.62307835", "0.6230736" ]
0.6941062
13
TODO Autogenerated method stub
@Override public boolean addImageRecordBuildingInfo(ImageRecordBuildingInfo info) { return save(info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateImageRecordBuildingInfo(ImageRecordBuildingInfo info) { return update(info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean deleteImageRecordBuildingInfo(Long id) { return delete(get(id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public ImageRecordBuildingInfo getById(Long id) { return get(id); }
{ "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
Menciptakan suatu tumpukan dengan kapasitas default 16
public TumpukanInteger(){ this(KAPASITAS_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int method_2436() {\r\n return 16;\r\n }", "public void setKinkenriyou16(Long kinkenriyou16) {\r\n this.kinkenriyou16 = kinkenriyou16;\r\n }", "public Long getKinkenriyou16() {\r\n return kinkenriyou16;\r\n }", "public int mo36g() {\n return 8;\n }", "private void SetZN16 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = ( Work >>> 8 );\n\t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic void teclaConfirmaDigitada() {\n\t\t\n\t}", "public Long getTesuryo16() {\r\n return tesuryo16;\r\n }", "public int m12824k() {\n return this.f10120g;\n }", "private int m23822a() {\n int min = Math.min(this.f25314a.getMemoryClass() * 1048576, Integer.MAX_VALUE);\n if (min < 33554432) {\n return 4194304;\n }\n if (min < 67108864) {\n return 6291456;\n }\n if (VERSION.SDK_INT < 11) {\n return 8388608;\n }\n return min / 4;\n }", "public void setVar16(java.lang.Integer value) {\n this.var16 = value;\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int sizeBits_moteId() {\n return 16;\n }", "public short getFatSz16() {\r\n\t\treturn fatSz16;\r\n\t}", "static int bukkitToneAmount() { return 25; }", "int getI16();", "public int mo36g() {\n return 4;\n }", "public final byte mo27874d() {\n return 15;\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private static int m25216a(Activity activity) {\n return ((activity.getWindow().getAttributes().flags & 1024) == 1024 ? true : null) != null ? 16973841 : 16973840;\n }", "public int defaultSize(String mnemo) {\n\t\treturn 4;\n\t}", "@BeforeClass\n public void setKeyLength() {\n Aes.keyLength = 16;\n }", "public void mo25064i() {\n if (this.f16593M == 1) {\n this.f16593M = 2;\n }\n }", "public static int sizeBits_infos_seq_num() {\n return 16;\n }", "public void setTesuryo16(Long tesuryo16) {\r\n this.tesuryo16 = tesuryo16;\r\n }", "private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }", "public static int sizeBits_infos_type() {\n return 16;\n }", "public int Recebe_salario() {\n\t\treturn 8000;\r\n\t}", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "public short mo34e() {\n return 15;\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void setKcp94V05NoOfTiers1( short value )\n {\n this.kcp94V05NoOfTiers1 = value;\n }", "private final int m136460b() {\n return DisplayUtils.m87171b(getContext(), mo118763m() ? 20.0f : 12.0f);\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "public static boolean has16() {\n return getVersion() >= 16;\n }", "public java.lang.Integer getVar16() {\n return var16;\n }", "public static Settings m58816a() {\n return C15655a.f48444a;\n }", "private Integer randomBilirrubina(){\n\t\t\tint Min = 0, Max = 14;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}", "public int m224a() {\n return 1;\n }", "public java.lang.Integer getVar16() {\n return var16;\n }", "private void m13085a() {\n DisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n this.f12281d = new Paint();\n this.f12281d.setColor(this.f12278a);\n this.f12281d.setAntiAlias(true);\n this.f12281d.setTextSize(displayMetrics.scaledDensity * ((float) this.f12279b));\n }", "public static int m8668h() {\n return 8;\n }", "public final Integer mo1688g() {\n return this.f1358j;\n }", "public int mo25072g() {\n return this.f14802d;\n }", "public int mo80c() {\n return 7;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar16(java.lang.Integer value) {\n validate(fields()[17], value);\n this.var16 = value;\n fieldSetFlags()[17] = true;\n return this;\n }", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "public int mo36g() {\n return 2;\n }", "public final void mo1308a() {\n int i = this.f2309d;\n int i2 = i != Integer.MIN_VALUE ? i + this.f2308c : this.f2307b;\n this.f2309d = i2;\n String str = this.f2306a;\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11);\n sb.append(str);\n sb.append(i2);\n this.f2310e = sb.toString();\n }", "public int mo9232aG() {\n return 0;\n }", "Info mo7564ix();", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public int mo27480a() {\n return 0;\n }", "protected byte desiredWinScale() { return 9; }", "java.lang.String getField1648();", "public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }", "public static void main(String[] args) {\n int yaricap=4;\n double alan= 4*4*Constans.pi;\n\n\n // kullanicidan alacaginiz saat , dakika ve gun bilgisinin saniyeyey ceviriniz\n\n int gun =23;\n int saat=7;\n int dakika=25;\n\n int saniyeCinsinden =\n gun * Constants.hourInDay *Constants.minuteInHour* Constants.secondInMinute+\n saat* Constants.minuteInHour* Constants.secondInMinute+\n dakika * Constants.secondInMinute;\n System.out.println(\"saniyeCinsinden = \" + saniyeCinsinden);\n\n\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman * 750;\r\n\t}", "public abstract void setHabilitado(java.lang.Short newHabilitado);", "@Override\n\tpublic void setRam() {\n\t\tcom.setRam(\"16g\");\n\t}", "void setDefaultInterQuantMatrix()\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = 16;\n }", "public int nun_entidade_bd() {\r\n return 12;\r\n }", "KeystoneArchitecture(int value) {\n this.value = value;\n }", "protected int getBinarySize(BinarySerializator serializator) {\n return 16;\n }", "public int verificaTamanho(int i){\r\n\t\t\r\n\t\tif(i==BYTES_16){\r\n\t\t\tSystem.out.println(\"TAmanho 16 bits\");\r\n\t\t\t\r\n\t\t\treturn i;\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(i==BYTES_32){\r\n\t\t\tSystem.out.println(\"TAmanho 32 bits\");\r\n\t\t\t\r\n\t\t\treturn i;\r\n\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"TAmanho 64 bits\");\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic int seatCapacity() {\n\t\treturn 4;\n\t}", "public short getKcp94V05NoOfTiers1()\n {\n return kcp94V05NoOfTiers1;\n }", "public double getPux16Amount() {\n return _pux16Amount;\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public final void mo3856d() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0550gu.m1820b(str, sb.toString());\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.stopBluetoothSco();\n }\n }", "public static int sizeBits_addr() {\n return 16;\n }", "public void setKinkenriyou08(Long kinkenriyou08) {\r\n this.kinkenriyou08 = kinkenriyou08;\r\n }", "public final void mo1682a(Integer num) {\n this.f1358j = num;\n }", "public byte obtenerDano(){\n\treturn dano;\n }", "@Override\n public int getSize() {\n return 64;\n }", "private void getnumber_Fourgroup6_xuan_big() {\n\t\tbtn_Fourgroup6_xuan_0.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_0.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_1.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_1.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_2.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_2.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_3.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_3.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_4.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_4.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_5.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_5.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_6.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_6.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_7.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_7.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_8.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_8.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_9.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_9.setTextColor(0xffffffff);\r\n\t\tmyriabit[5] = \"1\";\r\n\t\tmyriabit[6] = \"1\";\r\n\t\tmyriabit[7] = \"1\";\r\n\t\tmyriabit[8] = \"1\";\r\n\t\tmyriabit[9] = \"1\";\r\n\t\tmyriabit[0] = \"0\";\r\n\t\tmyriabit[1] = \"0\";\r\n\t\tmyriabit[2] = \"0\";\r\n\t\tmyriabit[3] = \"0\";\r\n\t\tmyriabit[4] = \"0\";\r\n\r\n\t\tbtn_Fourgroup6_xuan_0_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_1_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_2_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_3_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_4_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_5_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_6_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_7_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_8_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_9_int = -1;\r\n\t\tshow(myriabit);\r\n\t}", "public Long getKinkenriyou08() {\r\n return kinkenriyou08;\r\n }", "public static int offsetBits_amtype() {\n return 16;\n }", "RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "public static int offset_cost() {\n return (56 / 8);\n }", "public final byte mo27873c() {\n return 6;\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void mo75192a() {\n AppMethodBeat.m2504i(65565);\n this.f17955a.setLength(0);\n this.f17956b.setText(\"\");\n this.f17957c.setText(\"\");\n AppMethodBeat.m2505o(65565);\n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public static int size_infos_type() {\n return (16 / 8);\n }", "public static int getLicznikTur() { return LicznikTur; }", "public IntMap()\r\n {\r\n this(16);\r\n }", "public void setKinkenriyou14(Long kinkenriyou14) {\r\n this.kinkenriyou14 = kinkenriyou14;\r\n }", "public int mo34973b() {\n return 48;\n }", "protected void mo6255a() {\n }", "public int getSwitchTextSize(){\n return switchTextSize;\n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "private void Incr16BitPC() { PCw += 2; }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "public void setPux16Amount(double pux16Amount) {\n _pux16Amount = pux16Amount;\n }" ]
[ "0.6310221", "0.6170103", "0.6100516", "0.6033065", "0.5896", "0.5816634", "0.57852334", "0.57703155", "0.5759615", "0.5692449", "0.56823534", "0.56703997", "0.5667908", "0.56510246", "0.56054264", "0.559607", "0.5584686", "0.5574636", "0.5569367", "0.55685514", "0.5545306", "0.5535411", "0.55301917", "0.5510471", "0.55013347", "0.54962164", "0.5483474", "0.5478017", "0.5467229", "0.54547113", "0.5421342", "0.54201233", "0.5414495", "0.5409411", "0.5398809", "0.53934616", "0.53905743", "0.5389759", "0.53794557", "0.5373049", "0.5362497", "0.5356034", "0.53368", "0.5317824", "0.5315909", "0.531574", "0.53046113", "0.5289079", "0.52854556", "0.52844405", "0.5279281", "0.52770567", "0.5276631", "0.525998", "0.5255213", "0.52472734", "0.5246721", "0.52360976", "0.52326816", "0.5230827", "0.52289486", "0.52246594", "0.5222636", "0.5217134", "0.5215779", "0.5214763", "0.52109843", "0.5210507", "0.5208452", "0.5204986", "0.5197705", "0.51893103", "0.5180288", "0.5174465", "0.5170962", "0.5170927", "0.51690584", "0.5168673", "0.51682264", "0.5167752", "0.51611006", "0.5156849", "0.5155549", "0.51532936", "0.51485854", "0.5147419", "0.5145793", "0.51450396", "0.5143648", "0.51434815", "0.5143342", "0.51420385", "0.51419973", "0.51415753", "0.5140731", "0.5134198", "0.5133853", "0.5130223", "0.5127585", "0.5127106" ]
0.5548343
20
Menciptakan suatu tumpukan dengan kapasitas tertentu
public TumpukanInteger(int kapasitas){ elemen = new int[kapasitas]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "void tampilKarakterA();", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public abstract String dohvatiKontakt();", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}", "public void asetaTeksti(){\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "@Override\n public String getPesan()\n {\n return super.getMessage() + hotel_error + \" tidak ditemukan\";\n }", "public boolean insertTonKho(TonKho tk) {\n String dongia = \"\" + Utils.formatNumber(tk.getTonkhoDongia(), \"###.##\");\n dongia = dongia.replace(\".\", \"\");\n String malk = tk.getTonkhoMalienket();\n if (malk == null || malk.equals(\"\")) {\n malk = tk.getDmthuocMaso(true).getDmthuocMa() +\n tk.getDmnctMaso(true).getDmnctMa() +\n tk.getDmnguonkinhphiMaso(true).getDmnguonkinhphiMa() +\n tk.getDmquocgiaMaso(true).getDmquocgiaMa() +\n tk.getDmnhasanxuatMaso(true).getDmnhasanxuatMa() +\n //tk.getPhieunhapkhoMa(true).getPhieunhapkhoMa() +\n tk.getTonkhoNamnhap() +\n tk.getTonkhoNgayhandung() +\n tk.getTonkhoThanghandung() +\n tk.getTonkhoNamhandung() +\n tk.getTonkhoLo() +\n tk.getTonkhoSodangky() +\n dongia;\n tk.setTonkhoMalienket(malk.toUpperCase());\n }\n //System.out.println(\"malk: \"+ malk);\n //System.out.println(\"Kho: \"+ tk.getDmkhoaMaso().getDmkhoaMaso());\n TonKho tkHt = getTonKhoHienTai(malk, tk.getDmkhoaMaso().getDmkhoaMaso());\n //System.out.println(\"Ton khoHT: \"+ tkHt);\n // cap nhat gia tri ton hien tai.\n Double nhap = Double.valueOf(\"0\");\n if (tk.getTonkhoNhap() != null) {\n nhap = tk.getTonkhoNhap();\n }\n tk.setTonkhoNhap(nhap);\n //System.out.println(\"Nhap: \"+ nhap);\n Double xuat = Double.valueOf(\"0\");\n if (tk.getTonkhoXuat() != null) {\n xuat = tk.getTonkhoXuat();\n }\n tk.setTonkhoXuat(xuat);\n //System.out.println(\"Xuat: \"+ xuat);\n Double tra = Double.valueOf(\"0\");\n if (tk.getTonkhoTra() != null) {\n tra = tk.getTonkhoTra();\n }\n tk.setTonkhoTra(tra);\n //System.out.println(\"Tra: \"+ tra);\n Double ton = Double.valueOf(\"0\");\n if (tkHt != null) {\n if (tkHt.getTonkhoTon() != null) {\n ton = tkHt.getTonkhoTon();\n }\n }\n //System.out.println(\"tondau: \"+ ton);\n //*** triet them vao cap nhat ton dau\n tk.setTonkhoTondau(ton);\n //******\n ton = ton + ((nhap + tra) - xuat);\n //ThoVNA - kiem tra lai lan cuoi, neu so luong ton < sl xuat thi khong cho thuc hien xuat thuoc\n if(ton <0){\n return false;\n }\n tk.setTonkhoTon(ton);\n\n if (tk.getPhieunhapkhoMa() != null &&\n (tk.getPhieunhapkhoMa().getPhieunhapkhoMa() == null || tk.getPhieunhapkhoMa().getPhieunhapkhoMa().equals(\"\"))) {\n tk.setPhieunhapkhoMa(null);\n }\n\n\n tk.setTonkhoNgaygiocn(new Date());\n try {\n tk.setTonkhoHienthi(true);\n getEm().persist(tk);\n return true;\n } catch (Exception e) {\n context.setRollbackOnly();\n e.printStackTrace();\n }\n return false;\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "void kiemTraThangHopLi() {\n }", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "private String tallenna() {\n Dialogs.showMessageDialog(\"Tallennetaan!\");\n try {\n paivakirja.tallenna();\n return null;\n } catch (SailoException ex) {\n Dialogs.showMessageDialog(\"Tallennuksessa ongelmia!\" + ex.getMessage());\n return ex.getMessage();\n }\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public void testTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(); \n\n\t\tshowData(data,\"kode_pangkat\",\"jumlah_pns\");\n\t}", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "private void getTDPPrepaid(){\n TDPPrepaid = KalkulatorUtility.getTDP_ADDM(DP,biayaAdminADDM,polis,installment2Prepaid,premiAmountSumUp,\n \"ONLOAN\",tenor,bungaADDM.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"TDPPrepaid\",\"TDPPrepaid\",JSONProcessor.toJSON(TDPPrepaid));\n }", "public String getPesan()\n {\n return super.getMessage() + hotel_error + (\"tidak ditemukan.\");\n }", "private void xuLyThemSD(){\n if (checkNgay(txtNgaySD.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải thuộc dạng [YYYY-MM-DD].\\n Vui lòng kiểm tra lại!\");\n txtNgaySD.requestFocus();\n return;\n }//kiem tra ngay su dung\n \n if (checkGia(txtGiaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải là ký tự số.\\n Vui lòng kiểm tra lại!\");\n txtGiaDV.requestFocus();\n return;\n }//kiem tra gia dich vu\n \n \n SuDungService suDungService = new SuDungService();\n int x = suDungService.themSuDung(cbbMaDV.getSelectedItem().toString(),\n cbbMaKH.getSelectedItem().toString(),\n txtNgaySD.getText(), Float.valueOf(txtGiaDV.getText()));\n \n if (x>0){\n hienThiSuDung();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n cbbMaDV.requestFocus();\n return;\n }\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "private void hienThiSuDung(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layToanBoSuDung();\n \n modelSuDung.setRowCount(0);\n for (SuDungModel suDungModel : suDungModels) {\n Vector vtRow = new Vector();\n vtRow.add(suDungModel.getMaDV());\n vtRow.add(suDungModel.getMaKH());\n vtRow.add(suDungModel.getNgaySD());\n vtRow.add(suDungModel.getGiaDV());\n modelSuDung.addRow(vtRow);\n }\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "@Override\n\tpublic void hasznaljak(Karakter karakter, Jegtabla hol) throws Exception{\n if(karakter.vizben_van) return;\n\t\tkarakter.takarit(2);\n tartossag--;\n if(tartossag<=0) karakter.targy_elhasznalasa(this);\n\t}", "public void deskripsi() {\r\n System.out.println(this.nama + \" bekerja di Perusahaan \" + Employee.perusahaan + \" dengan usia \" + this.usia + \" tahun\");\r\n }", "private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "public String tampilkanBooking() {\r\n int i = 0;\r\n String Tampil = \"\";\r\n for (Tamu guest : tamu) {\r\n Tampil =\"==========================================\" +\r\n \"\\nHasil Booking Anda : \" +\r\n \"\\nNama : \" + guest.getNama() +\r\n \"\\nNo telp anda : \" + guest.getNoTelp() +\r\n \"\\nAnda adalah : \" + guest.getCustomerType() + \" \" + guest.getDataAnda() +\r\n \"\\nJumlah kamar yang dipesan : \" + guest.getJumlahKamar() +\r\n \"\\nhari : \" + getLama() +\r\n \"\\nTanggal anda booking : \" + booking.get(i).getTglBooking() +\r\n \"\\nTanggal Check-In anda : \" + booking.get(i).getTglCheckIn() +\r\n \"\\nTotal harga : \" + TotalHarga(guest) +\r\n \"\\ncheck In : \" + guest.getStatus() +\r\n \"\\n\" + jeniskamar.FasilitasJenisK();\r\n i += 1;\r\n }\r\n return Tampil;\r\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void checkin(Tamu t,Kamar k, int jumHari) {\n //Menginap m = new Menginap(k,t,jumHari);\n //tagihan mulai dibuat disini\n Tagihan tagihan = new Tagihan(t);\n tagihan.tamu = t;\n daftarTagihan.put(t.id,tagihan);\n FasilitasKamar fk = new FasilitasKamar(k);\n fk.jumHari = jumHari;\n tagihan.addFasilitas(fk);\n k.isKosong = false;\n }", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public Vector getInfoTabelNilaiYgBerlakuPerKdpst(Vector vObjStringDgnTknPertamaKdpstValue) {\n \tif(vObjStringDgnTknPertamaKdpstValue!=null && vObjStringDgnTknPertamaKdpstValue.size()>0) {\n \t\tListIterator li1 = vObjStringDgnTknPertamaKdpstValue.listIterator();\n \t\t\n \t\ttry {\n \t\t//String ipAddr = request.getRemoteAddr();\n \t\tContext initContext = new InitialContext();\n \t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\tcon = ds.getConnection();\n \t\t//stmt = con.prepareStatement(\"SELECT NLAKHTBBNL,BOBOTTBBNL from TBBNL where THSMSTBBNL=? and KDPSTTBBNL=? order by NLAKHTBBNL\");\n \t\tstmt = con.prepareStatement(\"SELECT NLAKHTBBNL,BOBOTTBBNL from TBBNL where KDPSTTBBNL=? and ACTIVE=? order by NLAKHTBBNL\");\n \t\t//\n \t\twhile(li1.hasNext()) {\n \t\t\tString brs = (String)li1.next();\n \t\t\tStringTokenizer st = new StringTokenizer(brs,\"`\");\n \t\t\tString kdpst = st.nextToken();\n \t\t\tstmt.setString(1, kdpst);\n \t\tstmt.setBoolean(2, true);\n \t\trs = stmt.executeQuery();\n \t\tString tkn_nilai_bobot =\"null-null\";\n \t\t//boolean first = true;\n \t\tif(rs.next()) {\n \t\t\ttkn_nilai_bobot = \"\";\n \t\t\tdo {\n \t\t\t\tString nlakh =\"\"+rs.getString(1);\n \t\t\t\tnlakh = nlakh.replace(\"-\", \"tandaMin\");\n \t\t\tString bobot = \"\"+rs.getDouble(2);\n \t\t\ttkn_nilai_bobot =tkn_nilai_bobot + nlakh+\"-\"+bobot+\"-\";\n \t\t\t} while(rs.next());\n \t\t}\n \t\tli1.set(brs+\"`\"+tkn_nilai_bobot);\n \t\t}\n \t}\n \tcatch (NamingException e) {\n \t\te.printStackTrace();\n \t}\n \tcatch (SQLException ex) {\n \t\tex.printStackTrace();\n \t} \n \tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t if (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t if (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\t\n\n \t}\n \t \treturn vObjStringDgnTknPertamaKdpstValue;\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "private void cekKecepatanBatas(double cepatKMHbatas, double cepatKMHSkrg) {\n\t\t\n\t\t\n\t\tif (cepatKMHSkrg < cepatKMHbatas) {\n\t\t\t\n\t\t\t//matikan alarm jika menyala\n\t\t\tmatikanAlarm();\n\t\t\t\n\t\t\t//ubah warna grafis jadi hijau\n\t\t\tlayoutbar.setBackgroundColor(Kecepatan.this.getResources().getColor(R.color.hijaunow));\n\t\t\t\t\t\t\n\t\t\t//ubah gambar bahaya jadi aman\n\t\t\tgambarstatus.setImageDrawable(Kecepatan.this.getResources().getDrawable(R.drawable.ikonaman));\n\t\t\t\n\t\t\t//ganti teks bahaya jadi aman\n\t\t\tteksstatus.setText(TAG_AMAN);\n\t\t\tteksstatus.setTextColor(Kecepatan.this.getResources().getColor(R.color.hijaunow));\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t//nyalakan alarm tanda bahaya\n\t\t\tnyalakanAlarm();\n\t\t\t\n\t\t\t//ubah warna grafis jadi merah\n\t\t\tlayoutbar.setBackgroundColor(Kecepatan.this.getResources().getColor(R.color.merahnow));\n\t\t\t\n\t\t\t//ubah gambar aman jadi bahaya\n\t\t\tgambarstatus.setImageDrawable(Kecepatan.this.getResources().getDrawable(R.drawable.ikonbahaya));\n\t\t\t\n\t\t\t//ganti teks aman jadi bahaya\n\t\t\tteksstatus.setText(TAG_BAHAYA);\n\t\t\tteksstatus.setTextColor(Kecepatan.this.getResources().getColor(R.color.merahnow));\n\t\t}\n\t}", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Tạp Chí: \"+\" Tựa đề: \"+ tuaDe+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb+\", Số Bài Viết: \"+soBaiViet;\n\t}", "public void testTumPencereleriKapat() {\n System.out.println(\"tumPencereleriKapat\");\n Yakalayici instance = new Yakalayici();\n instance.tumPencereleriKapat();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }" ]
[ "0.67303175", "0.6598133", "0.65746385", "0.6439933", "0.640038", "0.63719034", "0.6367719", "0.6348191", "0.6299297", "0.628538", "0.6282116", "0.62482196", "0.62443805", "0.6215255", "0.62106615", "0.6185972", "0.6176736", "0.6122167", "0.61102813", "0.6104694", "0.6099709", "0.6086055", "0.60839397", "0.60798943", "0.6060541", "0.60328174", "0.6029699", "0.6028689", "0.6015638", "0.6012589", "0.60086524", "0.59959686", "0.5995585", "0.5968008", "0.5954917", "0.59495324", "0.5945337", "0.5944231", "0.5942972", "0.5941084", "0.59370613", "0.5936538", "0.5931201", "0.59213364", "0.59184575", "0.5907117", "0.5906131", "0.58950025", "0.5882104", "0.58759725", "0.58692765", "0.58656526", "0.58585036", "0.5854738", "0.5854341", "0.58510417", "0.5850009", "0.58494896", "0.58447057", "0.5843965", "0.5833519", "0.58334744", "0.5823511", "0.5819865", "0.58145255", "0.5811844", "0.5805537", "0.5803199", "0.580115", "0.5799206", "0.5789433", "0.57878965", "0.578648", "0.57677865", "0.5766065", "0.57528204", "0.57521826", "0.574061", "0.57322997", "0.5729573", "0.5728622", "0.5726089", "0.5720872", "0.57164377", "0.57103974", "0.57043666", "0.57028663", "0.57024264", "0.5701359", "0.57002974", "0.56973606", "0.5696851", "0.5688624", "0.56873477", "0.56860447", "0.5681654", "0.5677605", "0.5677401", "0.56728894", "0.5667268", "0.5666508" ]
0.0
-1
Mendorong suatu integer baru ke dalam tumpukan
public void dorong(int nilai) { if (ukuran >= elemen.length) { int[] temp = new int[elemen.length * 2]; System.arraycopy(elemen, 0, temp, 0, elemen.length); elemen = temp; } elemen[ukuran++] = nilai; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "public int getTrangthaiChiTiet();", "public int getTamanio(){\r\n return tamanio;\r\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public void setBunga(int tipeBunga){\n }", "public void setTrangthaiChiTiet(int trangthaiChiTiet);", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private int getT()\n\t{\n\t\tint numberT = Integer.parseInt(field2.getText()) ;\n\t\treturn numberT;\n\t\t\n\t}", "public int getminutoStamina(){\n return tiempoReal;\n }", "public int getTilaa() {\r\n return maara - matkustajia;\r\n }", "public void kurang(){\n hitung--;\n count.setText(Integer.toString(hitung));\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public int obtenerMinuto() { return minuto; }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public int getTanggalLahir() {\r\n return tanggalLahir;\r\n }", "public int getFilial();", "@Override\n public int intValue(int numId) {\n return 0;\n }", "@Override\r\n public void convert(int wa) {\n hasil1 = wa / menit;\r\n String wat = Integer.toString(hasil1);\r\n hasil = wat + \" Menit \";\r\n }", "int getSumaAdunata();", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "public static int datoint(){\n \n try {\n return(Integer.parseInt(dato()));\n } catch (NumberFormatException error) {\n return (Integer.MIN_VALUE);\n }\n \n }", "public int darTamano() {\n\t\treturn tamano;\n\t}", "int getCantidad();", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public int getCantidadAvenidas();", "public int cantidades(){\n\t\t\r\n\t\tint cantidad=0;\r\n\t\t DefaultTableModel modelo = vc.returnModelo();\r\n\t\t int numeroFilas= modelo.getRowCount();\r\n\t\t\tif(numeroFilas!=0){\r\n\t\t\t\r\n\t\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tcantidad = cantidad + Integer.valueOf(modelo.getValueAt(i, 2).toString());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn cantidad;\r\n\r\n\t\t\t}else\r\n\t\t\t\tcantidad=0;\r\n\r\n\t\treturn cantidad;\r\n\t\t\r\n\t}", "public void setHariKe(java.lang.Integer value) {\n this.hari_ke = value;\n }", "public int getLongueur() {\r\n return longueur;\r\n }", "public int getBilanganInt() /*const*/{\n\t\tassert(getTipeBilangan()==Tipe._int);\n\t\treturn Val.I;\n\t}", "public Integer getCodTienda();", "public void setCodTienda(Integer codTienda);", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public int getLongueur() {\n return longueur;\n }", "public TumpukanInteger(){\r\n this(KAPASITAS_DEFAULT);\r\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public int getTahunLahir() {\r\n return tahunLahir;\r\n }", "public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }", "public int numerico(String n){\n if(n.equals(\"Limpieza\")){\r\n tipon=1;\r\n }\r\n if(n.equals(\"Electrico\")){\r\n tipon=2;\r\n } \r\n if(n.equals(\"Mecanico\")){\r\n tipon=3;\r\n } \r\n if(n.equals(\"Plomeria\")){\r\n tipon=4;\r\n } \r\n if(n.equals(\"Refrigeracion\")){\r\n tipon=5;\r\n }\r\n if(n.equals(\"Carpinteria\")){\r\n tipon=6;\r\n }\r\n if(n.equals(\"Area Verde\")){\r\n tipon=7;\r\n } \r\n if(n.equals(\"Preventivo\")){\r\n tipon=8;\r\n } \r\n if(n.equals(\"Pintura\")){\r\n tipon=9;\r\n } \r\n if(n.equals(\"TI\")){\r\n tipon=10;\r\n }\r\n return tipon; \r\n }", "public int intip() {\r\n return elemen[ukuran - 1];\r\n }", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }", "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "public int getLargeur() {\r\n return largeur;\r\n }", "@Test\n public void transnoTest() {\n assertEquals(Integer.valueOf(74875), authResponse.getTransno());\n }", "public int getNiveau() {\r\n return niveau;\r\n }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "int getTempo();", "public int getValore() {\n return valore;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private int Integer(Object selectedBreadCount) {\n\t\treturn 0;\r\n\t}", "private void sumarTropa(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.BARBARO:\n cantActual = Integer.parseInt(jTextFieldBarbaro.getText());\n jTextFieldBarbaro.setText(String.valueOf(cantActual+1));\n break;\n case vg.ARQUERA:\n cantActual = Integer.parseInt(jTextFieldArquera.getText());\n jTextFieldArquera.setText(String.valueOf(cantActual+1));\n break;\n case vg.GIGANTE:\n cantActual = Integer.parseInt(jTextFieldGigante.getText());\n jTextFieldGigante.setText(String.valueOf(cantActual+1));\n break;\n case vg.DUENDE:\n cantActual = Integer.parseInt(jTextFieldDuende.getText());\n jTextFieldDuende.setText(String.valueOf(cantActual+1));\n break;\n }\n }", "public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "@Override\n public int getSalida() {\n return 0;\n }", "public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}", "public int Atirou() {\r\n return Main.player1.Tempo();\r\n }", "int getMindestvertragslaufzeit();", "public int getNumero() {\n return dado1;\n }", "public int getFuerza(){\n\n return this.fuerza;\n\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "int tinhSoNgay() {\n return soNgay;\n }", "public int getLargeur() {\n return largeur;\n }", "int generarNumeroNota();", "public int getPunti() {\n return punti;\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public void setPuntos(int puntaje) {\n this.puntos = puntaje;\n }", "public int getKapitelValue() {\n\t\tint absvalue = 0;\n\t\tMatcher m = kapitelPattern.matcher(getId());\n\t\tif (m.find()) {\n\t\t\ttry {\n\t\t\t\t int whole = Integer.parseInt(m.group(1));\n\t\t\t\t int radix = Integer.parseInt(m.group(2));\n\t\t\t\t absvalue = whole * 1000 + radix;\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tLogger.getLogger(this.getClass())\n\t\t\t\t\t.error(\"Kapitelnummer der Gefaehrdung ist kein Float.\", e);\n\t\t\t}\n\t\t}\n\t\treturn absvalue;\n\t\n\t}", "public String getInt() {\n this.tanInt();\n return this.tanint;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public int getPrecio(){\n return precio;\n }", "int leerCodigoIngreso(){\n\t\treturn Integer.parseInt(cboCodigoIngreso.getSelectedItem().toString());\n\t}", "public int getDato() {\r\n return dato;\r\n }", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "private int getN()\n\t{\n\t\tint numberN = Integer.parseInt(field1.getText()) ;\n\t\treturn numberN;\n\t\t\n\t}", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "int getSuma();", "@Override\n public int getAmount() {\n return 1;\n }", "public int getTipoAtaque(){return tipoAtaque;}", "public int getLongueur() {\n\t\treturn this.longueur;\n\t}", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "public int obtenerSegundo() { return segundo; }", "public int getZahl()//Der Wert von Zahl wird zurueckgegeben\n {\n return zahl;\n }", "public void saveDataInt(String clave, int valor){\r\n editor.putInt(clave, valor);\r\n editor.commit();\r\n }", "public int getQuantidade();", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public int getAyudantes(){\n return ayudantes; \n }", "public void setModelZaduzenja(int value) {\n this.modelZaduzenja = value;\n }", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "private void atualizarNumeroBombas() {\n\t\tlblNumeroBombas.setText(Integer.toString(this.numeroBombas));\r\n\t}" ]
[ "0.6969514", "0.692579", "0.6762555", "0.6710739", "0.6571522", "0.64909196", "0.6460469", "0.6369217", "0.6363501", "0.6363035", "0.6348167", "0.63376147", "0.6299858", "0.62663734", "0.6258346", "0.62579757", "0.6255449", "0.62053233", "0.6198547", "0.61883724", "0.618658", "0.61849844", "0.6183412", "0.6182917", "0.61754924", "0.61538965", "0.61397034", "0.6134132", "0.61258453", "0.61237454", "0.61199707", "0.6112995", "0.6112133", "0.61045456", "0.6090556", "0.60873073", "0.60691047", "0.6068301", "0.60635066", "0.6054201", "0.604703", "0.6044201", "0.60417056", "0.60376614", "0.6009211", "0.6000782", "0.59918743", "0.5988143", "0.59834516", "0.59832877", "0.598143", "0.59803337", "0.5975165", "0.59582317", "0.5946999", "0.59272546", "0.59202284", "0.5919778", "0.59103453", "0.59042495", "0.59015965", "0.5896079", "0.58863044", "0.5882033", "0.5880199", "0.58791935", "0.58767843", "0.5875245", "0.58574337", "0.58557177", "0.58493173", "0.58461964", "0.583601", "0.5833066", "0.58319044", "0.58317614", "0.5828164", "0.58256537", "0.58171624", "0.58170027", "0.5810726", "0.5804564", "0.58036476", "0.58024335", "0.5802346", "0.57934964", "0.57895565", "0.57750374", "0.5773494", "0.57670724", "0.5758852", "0.57585394", "0.57577807", "0.575204", "0.575204", "0.5750602", "0.57493204", "0.5748522", "0.57484317", "0.5748373", "0.574658" ]
0.0
-1
Mengembalikan dan menghapus elemen teratas dari tumpukan
public int hapus() { return elemen[--ukuran]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n LinkedList<String> arrTable = DataAksesAdmin.listTable();\n //linked list buat nampung yg mau dihapus\n LinkedList<String> forDelete = new LinkedList<>();\n //pindahin ke array kalo ada namanya\n for(int i = 0; i < arrTable.size(); i++){\n for(int j = 1; j < 15; j++){\n if(arrTable.get(i).equals(nama+j)){\n forDelete.add(arrTable.get(i));\n }\n }\n }\n DataAksesAdmin.delUser(nama, pilihan2, forDelete);\n JOptionPane.showMessageDialog(null, \"Data Berhasil Dihapus!\");\n }", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public static void main(String[] args) {\n LinkedList<String> daftar= new LinkedList<String>();\r\n //menambahkan elemen pada linked list\r\n daftar.add(\"A\");\r\n daftar.add(\"B\");\r\n daftar.addLast(\"C\");\r\n daftar.addFirst(\"D\");\r\n daftar.add(3, \"B\");\r\n daftar.add(\"F\");\r\n daftar.add(\"G\");\r\n System.out.println(\"Linked List: \"+daftar);\r\n //menghapus elemen dari linked list\r\n daftar.remove(\"B\");\r\n daftar.remove(3);\r\n daftar.removeFirst();\r\n daftar.removeLast();\r\n System.out.println(\"Linked list setelah dihapus: \"+daftar);\r\n //menemukan elemen pada linked list\r\n boolean status=daftar.contains(\"E\");\r\n if(status)\r\n System.out.println(\"Di list terdapat elemen 'E'\");\r\n else\r\n System.out.println(\"Di list tidak terdapat elemen 'E'\");\r\n \r\n //ukuran dari elemen pada linked list\r\n int size=daftar.size();\r\n System.out.println(\"Ukuran dari linked list: \"+size);\r\n \r\n //menunjukkan dam memberi nilai elemen dari linked list\r\n Object elemen=daftar.get(2);\r\n System.out.println(\"elemen ditunjui oleh get(): \"+elemen);\r\n daftar.set(2, \"Y\");\r\n System.out.println(\"Linked list pasca perubahan: \"+daftar);\r\n }", "@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public boolean hapusdata (String nama){\n return data.delete(nama_table, kolom1+\"=\\\"\"+nama+\"\\\"\",null)>0;\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}", "public void removeFromInsertSelects(entity.LoadInsertSelect element);", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "public void tyhjenna() {\n this.kulmat.clear();\n }", "public static void hapus() {\n int dump;\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n todolist.remove(dump);\n kembali(\"Data Berhasil Hapus\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\t}", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "public void remove() {\n if (kaltPaaNeste) {\n listehode.neste = listehode.neste.neste;\n antall--;\n } else {\n throw new IllegalStateException();\n }\n }", "private void popuniComboZaMesto() {\n try {\n jComboMesto.removeAllItems();\n List<MestoEntity> mesta = Controller.ucitajListuMesta();\n \n for (IDomainEntity mesto : mesta) {\n if(mesto instanceof MestoEntity)\n jComboMesto.addItem((MestoEntity) mesto);\n }\n } catch (Exception ex) {\n Logger.getLogger(FKupac.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setItem() {\n DatabaseReference dr_item = database.getReference();\n dr_item.child(\"User\").child(user.getUid()).child(\"Keranjang\").child(\"Item\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int hartot = 0;\n if(id_barang!=null){\n id_barang.clear();\n }\n if(quantity!=null){\n quantity.clear();\n }\n if(harga_barang!=null){\n harga_barang.clear();\n }\n if(id_item!=null){\n id_item.clear();\n }\n\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n IdBarang id = data.getValue(IdBarang.class);\n\n id_barang.add(id);\n }\n\n for (int i = 0; i < id_barang.size(); i++) {\n int qty = id_barang.get(i).getQuantity();\n int hrg = id_barang.get(i).getHarga();\n String id = id_barang.get(i).getId();\n hartot = hartot + hrg;\n\n id_item.add(id);\n quantity.add(qty);\n harga_barang.add(hrg);\n\n tv_harga_total.setText(\"Rp. \" + String.valueOf(hartot));\n }\n setBarang();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\", \"Horario de funcionamento: 6:00 as 23:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Aclimação\", \"Horario de funcionamento: 7:00 as 22:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Vinhedo\", \"Horario de funcionamento: 6:00 as 22:00\");\n unidadeDAO.insert(unidade);\n }", "@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}", "public boolean insert(Panier nouveau) {\n\t\treturn false;\r\n\t}", "@Override\n public void popuniPodatke() {\n }", "public void tampilgrup(){\n txtgrup.removeAllItems();\n try{\n java.sql.Statement statement = (java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"SELECT DISTINCT nama_grup FROM tblaktivitas\");\n \n while(res.next()){\n String name = res.getString(\"nama_grup\");\n txtgrup.addItem(name);\n }\n res.last();\n }catch (Exception e){\n }\n \n }", "public void simpanDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO barang(kode_barang, nama_barang, merk_barang, jumlah_stok, harga)\"\n + \"VALUES('\"+ kode_barang +\"','\"+ nama_barang +\"','\"+ merk_barang +\"','\"+ jumlah_stok +\"','\"+ harga +\"')\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "@Override\r\n public boolean equals(Object obj) {\r\n if (this == obj) {\r\n return true;\r\n }\r\n if (!super.equals(obj)) {\r\n return false;\r\n }\r\n if (obj == null){\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n Repertoire other = (Repertoire) obj;\r\n if (element == null) {\r\n if (other.element != null) {\r\n return false;\r\n }\r\n } else if (!element.equals(other.element)) {\r\n return false;\r\n }\r\n if (nbElem != other.nbElem) {\r\n return false;\r\n }\r\n if (nom == null) {\r\n if (other.nom != null) {\r\n return false;\r\n }\r\n } else if (!nom.equals(other.nom)) {\r\n return false;\r\n }\r\n return true;\r\n }", "@org.junit.jupiter.api.Test\n void drop1elementoColisionNoExiste() {\n String key = \"0\";\n String value =\"David\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.drop(\"11\");\n String esperado = \"bucket[0] = [0, David]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }", "private void btnhapusActionPerformed(java.awt.event.ActionEvent evt) {\n int ok=JOptionPane.showConfirmDialog(null,\"Apakah Yakin Mendelete record ini???\", \"Confirmation\",JOptionPane.YES_NO_CANCEL_OPTION);\n if (ok==0)\n {\n try\n {\n String sql=\"delete from toko where nama='\"+jnama.getText()+\"'\";\n PreparedStatement st=con.prepareStatement(sql);\n st.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Delete Data Sukses\");\n \n // kosong();\n tampilkan();\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(null, \"Delete Data Gagal\");\n }\n }\n }", "@Override\r\n\tpublic boolean updateTable() {\r\n\t\t/*\r\n\t\t * VERSION 1\r\n\t\t *\r\n\t\tobjectCollection.clear();\r\n\t\tobjectCollection.addAll(retrieveObjects());\r\n\t\trefreshTable();*/\r\n\t\tlong size=objectCollection.size();\r\n\t\tobjectCollection.clear();\r\n\t\tint index=getSelectionIndex();\r\n\t\tupdateTable(SWT.DEFAULT);\r\n\t\tselectElement(index);\r\n\t\treturn objectCollection.size()!=size;\r\n\t}", "public void domicilioElimina(){\r\n\t\tlog.info(\"DomicilioElimina()\");\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) { \t\t\r\n\t \tlog.info(\"\"+DomicilioPersonaList.get(i).getItem()+\" ,idd \"+getIdd() +\" \"+DomicilioPersonaList.get(i).getDomicilio());\r\n\r\n\t\tif((DomicilioPersonaList.get(i).getIddomiciliopersona()== 0 || DomicilioPersonaList.get(i).getIddomiciliopersona()== null) && DomicilioPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> DomicilioPersonaList.get(i).getIddomiciliopersona()\" +\" \" +DomicilioPersonaList.get(i).getIddomiciliopersona());\r\n\t\t\tDomicilioPersonaSie domtemp = new DomicilioPersonaSie();\r\n\t\t\tdomtemp.setIddomiciliopersona(idd);\r\n\t\t\tDomicilioPersonaList.remove(domtemp);\r\n\t\tfor (int j = i; j < DomicilioPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\tDomicilioPersonaList.set(j, DomicilioPersonaList.get(j));\r\n\t\t}break;\r\n\t\t}\r\n\t\telse if(DomicilioPersonaList.get(i).getIddomiciliopersona() ==(getIdd()) && DomicilioPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\tDomicilioPersonaSie obj = new DomicilioPersonaSie();\r\n\t\t\tobj.setIddomiciliopersona(idd);\r\n\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\r\n\t\t\tDomicilioPersonaDeshabilitado.add(obj);\t\r\n\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\r\n//\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_WARN,\r\n//\t\t\tConstants.MESSAGE_ERROR_TELEFONO_CLIENTE,mensaje);\r\n//\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testSaveAndRemoveProduct() throws Exception {\n System.out.println(\"saveProduct\");\n dao.saveProduct(nonExisten);\n prs = dao.getAllProduct();\n products.add(nonExisten);\n assertArrayEquals(products.toArray(), prs.toArray());\n products.remove(nonExisten);\n dao.removeProduct(nonExisten);\n prs = dao.getAllProduct();\n assertArrayEquals(products.toArray(), prs.toArray());\n }", "public void updateListExemplar(String titulo) {\r\n listExemplares_Temp.removeAll(listExemplares_Temp);\r\n try {\r\n ArrayList<String> listExemplares = exemplar.getListExemplar();\r\n DefaultTableModel model = (DefaultTableModel) jTableExemplar.getModel();\r\n model.setNumRows(0);\r\n for (int i = 0; i < listExemplares.size(); i++) {\r\n if (listExemplares.get(i).contains(titulo)) {\r\n String[] listExemplar = listExemplares.get(i).split(\";\");\r\n listExemplares_Temp.add(listExemplares.get(i));\r\n model.addRow(listExemplar);\r\n }\r\n }\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, ex, \"Atualizar Exemplares\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void init(){\n conn = ConnectionDb.instance();\n listData=new HashMap<>();\n choose_ship.setModel(new javax.swing.DefaultComboBoxModel(loadCombo()));\n tbm = (DefaultTableModel) grid_data.getModel();\n tbm.setRowCount(0);\n tbm1 = (DefaultTableModel) grid_error.getModel();\n tbm1.setRowCount(0);\n formatdata=new DataFormatter();\n boxes=0;\n pieces=0;\n delete=new JMenuItem(\"Remove box\");\n delete.addActionListener((evt)->{\n String lpn=grid_data.getValueAt(grid_data.getSelectedRow(), 0).toString().trim();\n String requete=\"delete from box_shipped where idlpn=(select id from box_contain where lpn=?)\";\n String requete1=\"update BOX_CONTAIN set shipment_id=NULL,STATUS=4 where lpn=?\";\n \n if(conn.Update(requete, 0, lpn)&& conn.Update(requete1, 0, lpn)){\n JOptionPane.showMessageDialog(this, lpn+\" has removed from shipment\", \"Succes\", JOptionPane.INFORMATION_MESSAGE);\n tbm.removeRow(grid_data.getSelectedRow());\n }\n });\n Popup.add(delete);\n \n }", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, dentre todos os nos dessa listaa\n while (temp.getProx() != null) {\n temp = temp.getProx();\n }\n\n //Se chegou ate o ultimo no, adicionar o elemento desejado\n temp.setProx(novoNo);\n }\n }", "private void removeElement(PathwayElement affectedData)\n \t{\n \n \t}", "private void btnPerbaruiActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n try{\n controlpelanggan.updatePelanggan(pelanggan);\n JOptionPane.showMessageDialog(this, \"Berhasil memperbarui ...\");\n }catch(Exception ex){\n JOptionPane.showMessageDialog(this, \"Gagal ...\");\n }\n \n clear();\n addData();\n }", "private void Delete(String[] p) {\n String classname = p[1];\n String attrname = p[2];\n int classid = 0;\n int attrid=0;\n String attrtype=null;\n for (ClassTableItem item:classt.classTable) {\n if (item.classname.equals(classname) && item.attrname.equals(attrname)) {\n classid = item.classid;\n attrid = item.attrid;\n attrtype = item.attrtype;\n break;\n }\n }\n //寻找需要删除的\n OandB ob2 = new OandB();\n for (Iterator it1 = topt.objectTable.iterator(); it1.hasNext();){\n ObjectTableItem item = (ObjectTableItem)it1.next();\n if(item.classid == classid){\n Tuple tuple = GetTuple(item.blockid,item.offset);\n if(Condition(attrtype,tuple,attrid,p[4])){\n //需要删除的元组\n OandB ob =new OandB(DeletebyID(item.tupleid));\n for(ObjectTableItem obj:ob.o){\n ob2.o.add(obj);\n }\n for(BiPointerTableItem bip:ob.b){\n ob2.b.add(bip);\n }\n\n }\n }\n }\n for(ObjectTableItem obj:ob2.o){\n topt.objectTable.remove(obj);\n }\n for(BiPointerTableItem bip:ob2.b) {\n biPointerT.biPointerTable.remove(bip);\n }\n\n }", "public boolean delete (int val) throws DifferentOrderTrees {\r\n \tboolean supprime = false;\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \t//recherche de la valeur a supprimer\r\n \tfor (int i = 0; i < arbres.size(); i++) {\r\n \t\tif (arbres.get(i).findValue(val) == null)\r\n \t\t\tcontinue;\r\n \t\telse {\r\n \t\t\tmonceauTemp.arbres = arbres.get(i).findValue(val).delete();\r\n \t\t\tarbres.remove(arbres.get(i)); //supprime noeud\r\n \t\t\tthis.fusion(monceauTemp); //fusionne les 2 monceaux\r\n \t\t\ti = (0-1); //on recommence (-1 car on fait i++ apres (boucle for))\r\n \t\t\tsupprime = true;\r\n \t\t}\r\n \t}\r\n \t\r\n return supprime;\r\n }", "public void eliminarElemento(T dato) {\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// se encontro el nodo?\n\t\tif (nodo != null) {\n\t\t\tif (nodo != primerElemento) {\n\t\t\t\t// borra el nodo de la existencia\n\t\t\t\tnodo.getAnterior().setSiguiente(nodo.getSiguiente());\n\t\t\t\tnodo.getSiguiente().setAnterior(nodo.getAnterior());\n\t\t\t} else {\n\t\t\t\tprimerElemento = primerElemento.getSiguiente();\n\t\t\t}\n\t\t\t// baja en uno el tamano\n\t\t\ttamano--;\n\n\t\t} else {\n\t\t\t// Bruh, no esta el nodo\n\t\t\tSystem.out.println(\"No se encontro el elemento a eliminar.\");\n\t\t}\n\n\t}", "@Test\n\tpublic void testIncluye() {\n\t\tassertFalse(l.incluye(0));\n\t\t\n\t\t//Test de busqueda sobre el primer elemento\n\t\tl.agregar(0, 0);\n\t\tassertTrue(l.incluye(0));\n\t\tassertFalse(l.incluye(1));\n\t\t\n\t\t//Test con mas elementos\n\t\tl.agregar(1, 1);\n\t\tl.agregar(2, 2);\n\t\tassertTrue(l.incluye(1));\n\t\tassertFalse(l.incluye(4));\n\t\t\n\t}", "private void insertar(ArrayList<Estado> hijos) {\r\n\t\tfor (Estado p : hijos) { // Añado hijos a nodos abiertos\r\n\t\t\tabiertos.add(p);\r\n\t\t\tif (abiertos.size() > estados_abiertos)\r\n\t\t\t\testados_abiertos = abiertos.size(); // Variable para contar el numero maximo de estados abiertos\r\n\t\t}\r\n\t}", "public void guardar(int sel){\n \n if (modelo.getRowCount() == 0) {\n JOptionPane.showMessageDialog(this, \"Necesitas agregar elementos.\");\n } else{\n Producto prod[] = new Producto[modelo.getRowCount()];\n for (int i = 0; i < modelo.getRowCount(); i++) { \n prod[i] = new Producto(Integer.parseInt(modelo.getValueAt(i, 0)+\"\"),\n (String)modelo.getValueAt(i, 1),\n (String)modelo.getValueAt(i, 2),\n Integer.parseInt(modelo.getValueAt(i, 3)+\"\"),\n Double.parseDouble(modelo.getValueAt(i, 4)+\"\"));\n }\n \n \n //Ordenamos\n if (sel == 0) {\n ArchivosBinarios.ordQS_A_ID(prod, 0, prod.length-1);\n } else if (sel == 1){\n ArchivosBinarios.ord_QS_Dsc_Asc(prod, 0, prod.length-1);\n } else if (sel == 2) {\n JOptionPane.showMessageDialog(null, \"La informacipón se guardo.\");\n }\n\n \n for (int i = 0; i < prod.length; i++) {\n modelo.setValueAt(prod[i].getId(), i, 0);\n modelo.setValueAt(prod[i].getTipo(), i, 1);\n modelo.setValueAt(prod[i].getMarca(), i, 2);\n modelo.setValueAt(prod[i].getCantidad(), i, 3);\n modelo.setValueAt(prod[i].getPrecio(), i, 4);\n }\n }\n }", "public void exemplaarToevoegen() {\n\n try {\n Database database = new Database();\n List<Exemplaar> exemplaren_tmp = database.getExemplaren(boek.getBoek_ID());\n Integer exemplaar_aantal = Integer.parseInt(exemplaren_tmp.get(exemplaren_tmp.size() - 1).getExemplaarVolgnummer().toString());\n\n // vang af als er nog geen exemplaren zijn\n if (exemplaar_aantal < 1) {\n database.insertExemplaar(boek.getBoek_ID(), 1);\n } else {\n database.insertExemplaar(boek.getBoek_ID(),\n exemplaar_aantal + 1,\n 1);\n }\n } catch (SQLException | NamingException ex) {\n LOGGER.log(Level.SEVERE, \"Error {0}\", ex);\n System.out.println(ex.getMessage());\n }\n\n //en refresh als niet leeg is\n if (geselecteerdExemplaar != null) {\n geselecteerdExemplaar.refresh();\n }\n this.refresh();\n\n }", "public void onClick(DialogInterface dialog, int which) {\n myRefFav.child(firebaseUser.getUid()).child(data.get(position).getDishes().get(0).getResturentID()).setValue(\"true\").addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n data.remove(position);\n notifyDataSetChanged();\n Toast.makeText(context,\"Added to your favorite list!\",Toast.LENGTH_LONG).show();\n }\n });\n\n }", "public InsertDeleteGetRandomO1() {\n _list = new ArrayList<>();\n _map = new HashMap<>();\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}", "public void setPop(ArrayList<Bacteria> newPop){\n inds = newPop;\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\n\t}", "public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}", "public void editarHospede() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n System.err.println(\"O que deseja editar:\\n Nome(1)\\n\"\n + \"Cpf(2)\\nE-MAIL(3)\");\n int a = verifica();\n switch (a) {\n case 1:\n System.err.println(\"Digite o novo nome do hospede:\\n\");\n String nome = ler.next();\n hospedesCadastrados.get(i).setNome(nome);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 2:\n System.err.println(\"Digite o novo CPF do hospede:\\n\");\n int cpf1 = verifica();\n hospedesCadastrados.get(i).setCpf(cpf1);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 3:\n System.err.println(\"Digite o novo E-MAIL do hospede:\\n\");\n String email = ler.next();\n hospedesCadastrados.get(i).setEmail(email);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n }\n\n } else if (hospedesCadastrados.size() == i) {\n System.err.println(\"Nao existem hospedes com esse cpf cadastrados!\\n\");\n }\n }\n }\n }", "public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}", "private void xuLyThanhToanDVReload() {\n txtThanhToanDVGiaDV.setText(\"\");\n txtThanhToanDVSoLuong.setText(\"\");\n txtThanhToanDVSoLuongMoi.setText(\"\");\n txtThanhToanDVSoLuongCu.setText(\"\");\n txtThanhToanTongCong.setText(\"0\");\n tongCong=0;\n cbbThanhToanMaKH.removeAllItems();\n hienThiMaKHSuDungDV();\n }", "private void btnStergeActionPerformed(java.awt.event.ActionEvent evt) { \n if (!model.isEmpty()) {\n Contact c = (Contact) model.getElementAt(ContactList.getSelectedIndex());\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa stergeti contactul \" + c.getNume() + \" \" + c.getPrenume() + \" ?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n model.removeElementAt(ContactList.getSelectedIndex());\n listaContacte.remove(c);\n actualizeazaModel();\n }\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cbElPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tString eliminar=((String) cbElPuesto.getSelectedItem());\n\t\t\t\t\tSystem.out.println(eliminar);\n\t\t\t\t\tdata.setQuery(\"DELETE FROM TipoPuesto WHERE puesto='\"+eliminar+\"'\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tJOptionPane.showMessageDialog(btnEliminar,\"Eliminación exitosa\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}", "public void fillDaftar(MakhlukHidup n);", "@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void clear() {\n\t\tsuper.clear();\n\t\tthis.modelList.clear();\n\t\tif (elementoSeleccionar != null) {\n\t\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t\t}\n\t}", "public void reiniciarEstadoSalud(){\n EmpleadosPrioridadAlta.clear();\n EmpleadosPrioridadMediaAlta.clear();\n EmpleadosPrioridadMedia.clear();\n EmpleadosPrioridadBaja.clear();\n }", "public void insererEnTeteDeListe(Personne personne) {\n\t\tElement ancienPremier= premier;\n\t\tpremier= new Element(personne,ancienPremier);\n\t\t nbElt ++;\n\t}", "public void telefonoElimina(){\r\n \tlog.info(\"en eliminarTelefono()\");\t\r\n \tfor (int i = 0; i < TelefonoPersonaList.size(); i++) { \t\t\r\n \t\tlog.info(\"\"+TelefonoPersonaList.get(i).getItem()+\" ,idt \"+getIdt() +\" \"+TelefonoPersonaList.get(i).getTelefono());\r\n// \tlog.info(\"N1--->TelefonoPersonaList.get(i).getIdtelefonopersona()\"+\" --\" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\tif((TelefonoPersonaList.get(i).getIdtelefonopersona()== 0 || TelefonoPersonaList.get(i).getIdtelefonopersona()== null) && TelefonoPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> TelefonoPersonaList.get(i).getIdtelefonopersona()\" +\" \" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\t\tTelefonoPersonaSie teltemp = new TelefonoPersonaSie();\r\n\t\t\tteltemp.setIdtelefonopersona(idt);\r\n\t\t\tTelefonoPersonaList.remove(teltemp);\r\n\t\tfor (int j = i; j < TelefonoPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\t//TelefonoPersonaList.get(j).setItem(i);\r\n\t\t\tTelefonoPersonaList.set(j, TelefonoPersonaList.get(j));\r\n\t\t}break;\r\n\t\t\t}\r\n\t\telse if(TelefonoPersonaList.get(i).getIdtelefonopersona() ==(getIdt()) && TelefonoPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\t\tTelefonoPersonaSie obj = new TelefonoPersonaSie(); \r\n\t\t\t\tobj.setIdtelefonopersona(idt);\r\n\t\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\t\t\t\t\r\n\t\t\t\tTelefonoDeshabilitado.add(obj);\r\n\t\t\r\n\t\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t }", "@Override\n public void onEquipoFavoritosSelected(Equipo equipos) {\n DatabaseReference databa = firebaseDatabase.getReference().child(\"usuarios\").child(nombre).child(\"equipos\").child(\"favoritos\").child(equipos.getNombre());\n databa.get().addOnCompleteListener(new OnCompleteListener<DataSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DataSnapshot> task) {\n Equipo equipo = task.getResult().getValue(Equipo.class);\n if(equipo.getNombre().equals(equipos.getNombre())){\n FragmentFavoritos fragments = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n databa.setValue(null);\n Toast.makeText(getApplicationContext(),\"borro\",Toast.LENGTH_SHORT).show();\n fragments.eliminaEquipo(equipos);\n\n }\n }\n });\n /*FragmentFavoritos fragment = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n fragment.eliminaEquipo(equipos);*/\n\n }", "public void prihlasHospodu(HospodaSud hospoda)\n\t{\n\t\t\n\t\thospodySud.put(hospoda.id, hospoda);\n\t\t\n\t\t//kontrolni vypis\n\t\t/*\n\t\tSystem.out.println(this.id);\n\t\t*/\n\t}", "private void btnSimpanActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n \n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyyMMdd\");\n\n if (pelanggan.getPgn_id().equals(\"\")) {\n pelanggan.setPgn_id(controlpelanggan.getLastID());\n }\n\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_jumlah_transaksi(0);\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n pelanggan.setPgn_total_hutang(0);\n pelanggan.setPgn_uang_transaksi(0);\n\n \n if(controlpelanggan.simpanPelanggan(pelanggan)){\n JOptionPane.showMessageDialog(this, \"Berhasil menambah ...\");\n }else{\n JOptionPane.showMessageDialog(this, \"Gagal menambah ...\");\n }\n \n\n addData();\n clear();\n }", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public void addPesanan(JSONObject json) {\n int index = 0;\n boolean found = false;\n for(int i = 0; i < pesanan.size(); i++) {\n JSONObject jsonLineItem = (JSONObject) pesanan.get(i);\n \n if(jsonLineItem.get(\"id_menu\") == json.get(\"id_menu\")) {\n found = true;\n index = i;\n break;\n }\n }\n \n if(found) {\n // tambahkan jumlah menu apabila menu sudah dipesan\n JSONObject jsonCurrentPesanan = (JSONObject) pesanan.get(index);\n int jumlah = (int) jsonCurrentPesanan.get(\"jumlah\");\n int subtotal = (int) json.get(\"subtotal\") + (int) jsonCurrentPesanan.get(\"subtotal\");\n jumlah++;\n jsonCurrentPesanan.put(\"jumlah\", jumlah);\n jsonCurrentPesanan.put(\"subtotal\", subtotal);\n pesanan.set(index, jsonCurrentPesanan); \n } else {\n // jika menu belum ada di pesanan maka tambahkan ke pesanan \n this.pesanan.add(json);\n }\n \n this.total += (int) json.get(\"subtotal\");\n label_total.setText(Integer.toString(this.total));\n \n this.renderPesanan();\n }", "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "@Test\r\n public void testRemoveElement() {\r\n System.out.println(\"removeElement\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = false;\r\n boolean result = instance.removeElement(o);\r\n\r\n }", "private void empty_field() {\n tf_id_kategori.setText(null);\n tf_nama_kategori.setText(null);\n tf_keterangan.setText(null);\n pencarian.setText(null);\n }", "@FXML\n\tprivate void addButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart addPartToProduct = partSearchProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (addPartToProduct != null) {\n\t\t\t\n\t\t\tif(dummyList.contains(addPartToProduct) == false) {\n\t\t\t\t\n\t\t\t\tdummyList.add(addPartToProduct);\n\t\t\t}\n\t\t}\n\t}", "private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {\n selectedDataSupplier();\n\n String id_sup=jTable2.getValueAt(Globaltemp,0).toString();\n\n Supplier Sup= new Supplier(Ed_NamaSup.getText(),Ed_AlamatSup.getText(),Ed_TelpSup.getText());\n int selectedOption = JOptionPane.showConfirmDialog(null,\n \"Apakah Anda yakin ingin mengedit item tersebut?\",\n \"Peringatan\",\n JOptionPane.YES_NO_OPTION);\n if (selectedOption == JOptionPane.YES_OPTION)\n {\n JOptionPane.showMessageDialog(null, \"Perubahan data supplier berhasil disimpan\");\n this.EditDataSupplier.setVisible(false);\n con.editSupplier(Sup,id_sup);\n enablein();\n ClearText();\n showTable();\n }\n\n }", "public void hentTrekk() {\n\n Parti parti = this.fp_liste_parti.getSelectionModel().getSelectedItem();\n\n if (this.partierLastet && parti != null){\n\n valgtParti = fp_liste_parti.getSelectionModel().getSelectedItem();\n\n for(Trekk t: valgtParti.getTrekkListe()) {\n sp_liste_trekk.getItems().add(t);\n }\n\n tab_pane.getSelectionModel().select(tab_sp);\n\n this.initierAnimasjon();\n\n } else {\n\n Sjakkbrett.visFeil(\"Parti ikke valgt\", \"Du har ikke valgt et parti\", \"Vennligst velg et parti!\");\n\n }\n\n this.sp_knapp_forrige_trekk.setDisable(false);\n this.sp_knapp_spill_av_pause.setDisable(false);\n this.sp_knapp_neste_trekk.setDisable(false);\n this.sp_kombo_hastighet.setDisable(false);\n this.sp_knapp_velg_trekk.setDisable(false);\n\n }", "private void populaUnidadeMedida()\n {\n UnidadeMedida u = new UnidadeMedida(\"Gramas\", \"g\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Unidade\", \"unidade\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sopa\", \"col. sopa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sobremesa\", \"col. sobremesa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Chá\", \"col. chá\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Copo\", \"copo\");\n unidadeMedidaDAO.insert(u);\n\n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }" ]
[ "0.6033559", "0.5994602", "0.5911722", "0.5782601", "0.5745019", "0.5550586", "0.55238247", "0.5516106", "0.5512354", "0.5507925", "0.54806614", "0.5461082", "0.54170924", "0.54106194", "0.5403808", "0.5400148", "0.5362847", "0.53610533", "0.5355993", "0.5344145", "0.53290695", "0.53051513", "0.53037703", "0.5301201", "0.5284231", "0.52773225", "0.52533984", "0.52443105", "0.52431643", "0.5228051", "0.520874", "0.52026635", "0.5197919", "0.51943415", "0.5189331", "0.51866734", "0.5170643", "0.5169502", "0.51690876", "0.5157292", "0.51558906", "0.51548046", "0.51394826", "0.5137474", "0.5128118", "0.5122028", "0.5118728", "0.5118516", "0.51105726", "0.5106543", "0.50950736", "0.5088071", "0.5087184", "0.5078532", "0.5075862", "0.50727963", "0.50708437", "0.50643325", "0.50640845", "0.50572145", "0.5056836", "0.5056173", "0.50521785", "0.5047443", "0.50430125", "0.5040279", "0.5039581", "0.50363195", "0.503535", "0.50348186", "0.5024539", "0.50179654", "0.501716", "0.50136906", "0.5012975", "0.50120175", "0.50097513", "0.5008521", "0.50056535", "0.4999921", "0.4999566", "0.49988955", "0.49986324", "0.49981356", "0.49955687", "0.4988333", "0.49850914", "0.4976706", "0.49722135", "0.49717554", "0.49682543", "0.49681133", "0.49666217", "0.49590468", "0.4958776", "0.49549142", "0.49485505", "0.49365774", "0.4936466", "0.492653" ]
0.5048435
63
Mengembalikan elemen teratas dari tumpukan
public int intip() { return elemen[ukuran - 1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printArrElement() {\n\t\tIterator iter = arrTag.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tObject key = iter.next();\r\n\t\t\tTag valores = arrTag.get(key);\r\n\t\t\t//System.out.print(\"key=\" + key + \"\\n\");\r\n\t\t\t//System.out.print(\"\\ttagsPermitidas:\");\r\n\t\t\tHashSet<Tag> tags = valores.getTagsPermitidasDentro();\r\n\t\t\tfor (Tag tag : tags) {\r\n\t\t\t\t//System.out.print(\"'\" + tag.getNome() + \"',\");\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "long getNombreElements();", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public HTMLTableSectionElement getElementDetalle() { return this.$element_Detalle; }", "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public HTMLElement getElementEstadoEd() { return this.$element_EstadoEd; }", "public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }", "@Override\r\n\tprotected Object getValue(Object element) {\r\n\t\treturn true;\r\n\t}", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "public T darElemento(){\r\n\t\treturn elemento;\r\n\t}", "private void setSITACI(Element element) {\r\n\t\tElement eSitaci = new Element(\"D_EnviaSITACI\");\r\n\t\tif(this.registrosSitaci.size()<0){\r\n\t\t\teSitaci.setText(\"NO\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t}else{\r\n\t\t\teSitaci.setText(\"SI\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t\tElement listaSitaci = new Element(\"N_ListaSITACI\");\r\n\t\t\tElement registroSitaci;\r\n\t\t\tElement interiorRegistroSitaci;\r\n\t\t\tfor(RegistroSitaci reg : this.registrosSitaci){\r\n\t\t\t\tregistroSitaci = new Element(\"uniqueKey\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"D_Id\", \"NA\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"campoCQ\", \"dbid\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"entidadCQ\", \"SITACI\");\r\n\t\t\t\t\r\n\t\t\t\t//nroSitaci\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_NroSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getNroSitaci());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//DNSorigen\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DNSOrigen\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDnsOrigen());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Longitud\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_Long\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getLongitud()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//cantReg\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_CantReg\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getCantReg()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Descripcion\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DescSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDescripcion());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//agrego un registro\r\n\t\t\t\tlistaSitaci.addContent(registroSitaci);\r\n\t\t\t}\r\n\t\t\t//Agrego toda la lista al cuerpo del xml\r\n\t\t\telement.addContent(listaSitaci);\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "String getElem();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public void addElemento (Elemento obj) {\n if (obj.getPeso() > getPesoLibre() || porNombre.containsKey(obj.getNombre())) {\n System.out.println(nombre +\": No se puede agregar \" + obj.getNombre());\n }\n else {\n porNombre.put(obj.getNombre(), obj);\n addPeso(obj.getPeso());\n }\n }", "public void enfileira(T elemento){\n\t\t\n\t\tthis.adiciona(elemento);\n\t}", "public HTMLElement getElementTablaEd() { return this.$element_TablaEd; }", "@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}", "@Override\n public Object getElementAt(int index) {\n Object resultado = null;\n resultado = nodos.get(index).getCentroTrabajo().getNombre();\n \n return resultado;\n }", "public boolean elementDirect(Element elem) {\r\n\r\n boolean test = false;\r\n\r\n for (int i = 0; i < element.size(); i++) {\r\n if (element.get(i).getNom().equals(elem.getNom())) {\r\n test = true;\r\n }\r\n }\r\n return test;\r\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "@Override\r\n\tpublic boolean buscar(T elemento) {\n\t\treturn false;\r\n\t}", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "@Override\r\n public boolean equals(Object obj) {\r\n if (this == obj) {\r\n return true;\r\n }\r\n if (!super.equals(obj)) {\r\n return false;\r\n }\r\n if (obj == null){\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n Repertoire other = (Repertoire) obj;\r\n if (element == null) {\r\n if (other.element != null) {\r\n return false;\r\n }\r\n } else if (!element.equals(other.element)) {\r\n return false;\r\n }\r\n if (nbElem != other.nbElem) {\r\n return false;\r\n }\r\n if (nom == null) {\r\n if (other.nom != null) {\r\n return false;\r\n }\r\n } else if (!nom.equals(other.nom)) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void insererEnTeteDeListe(Personne personne) {\n\t\tElement ancienPremier= premier;\n\t\tpremier= new Element(personne,ancienPremier);\n\t\t nbElt ++;\n\t}", "Object element();", "Object element();", "public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}", "public void setElem(int elem)\r\n\t{\r\n\t\tthis.elem = elem;\r\n\t}", "void miauler() {\r\n\t\tSystem.out.println(this.miaulement);\r\n\t}", "public Object getElement();", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "public E element();", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public T get() {\n return this.elemento;\n }", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "private void setRegla(IVersionableRegla regla, Element reglas) {\r\n\t\tElement descripcion;\r\n\t\tElement uniqueKey;\r\n\t\t\r\n\t\tuniqueKey = new Element(\"uniqueKey\");\t\t\r\n\t\tuniqueKey.setAttribute(\"D_Id\", StringUtils.leftPad(regla.getId().toString(), 5, '0'));\r\n\t\tuniqueKey.setAttribute(\"campoCQ\", \"D_Nombre\");\r\n\t\tuniqueKey.setAttribute(\"entidadCQ\", \"Regla\");\r\n\t\tElement nombre = new Element(\"D_Nombre\");\r\n\t\tnombre.setText(regla.getNombre());\r\n\t\tuniqueKey.addContent(nombre);\r\n\t\tdescripcion = new Element(\"D_Descripcion\");\r\n\t\tdescripcion.setText(regla.getDescripcion());\r\n\t\tuniqueKey.addContent(descripcion);\r\n\t\tElement tipo = new Element(\"D_Tipo\");\r\n\t\tif(getReq() instanceof MuestraRequerimientoInformatico){\r\n\t\t\ttipo.setText(((MuestraRequerimientoInformatico)getReq()).getTipoRegla());\t\r\n\t\t}else if(getReq() instanceof PasajeRequerimientoInformatico){\r\n\t\t\ttipo.setText(((PasajeRequerimientoInformatico)getReq()).getTipoRegla());\r\n\t\t}\r\n\t\tuniqueKey.addContent(tipo);\r\n\t\tElement dominio = new Element(\"D_Dominio\");\r\n\t\tdominio.setText(regla.getDominio().getDescripcion());\r\n\t\tuniqueKey.addContent(dominio);\r\n\t\tElement version = new Element(\"D_Version\");\r\n\t\tversion.setText(regla.getVersionRegla());\r\n\t\tuniqueKey.addContent(version);\r\n\t\treglas.addContent(uniqueKey);\r\n\t}", "public ArrayList<RealmCobaModels> setSemuaDataNama() {\n // mendapatkan data realm berbentuk realmresults\n RealmResults<RealmCobaModels> realmCobaModels = realm.where(RealmCobaModels.class).findAll();\n // mendeklarasi arraylist\n ArrayList<RealmCobaModels> arrayListModels = new ArrayList<>();\n\n // validasi\n if (realmCobaModels.size() > 0) { // jika realmresult lebih dari 0\n // membuat looping data\n for (int i = 0; i < realmCobaModels.size(); i++) {\n RealmCobaModels rcm1 = new RealmCobaModels();\n rcm1.setId(realmCobaModels.get(i).getId());\n rcm1.setNama(realmCobaModels.get(i).getNama());\n rcm1.setUmur(realmCobaModels.get(i).getUmur());\n arrayListModels.add(rcm1); // memasukkan ke array list\n }\n\n // tampil log\n Log.e(TAG, arrayListModels.toString());\n } else { // jika realmresult tidak lebih dari 0, maka kosong!\n // tampil log\n Log.e(TAG, \"Tidak Ada Data!\");\n }\n\n return arrayListModels;\n }", "@Test\r\n public void testGetElement() throws Exception {\r\n System.out.println(\"getElement ModeloListaOrganizadores\");\r\n\r\n String expResult = \"Diana\";\r\n Utilizador u = new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5);\r\n u.setNome(\"Diana\");\r\n Organizador o = new Organizador(u);\r\n\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n instance.addElement(o);\r\n instance.getElementAt(0);\r\n\r\n Organizador teste = e.getListaOrganizadores().getListaOrganizadores().get(0);\r\n\r\n String result = teste.getUtilizador().getNome();\r\n assertEquals(expResult, result);\r\n\r\n }", "public Selectable getValuableElement();", "private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "public void setElement(Object e) {\n element = e;\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public Object element() { return e; }", "public static void main(String[] args){\n All_in_One<String> nama = new All_in_One<>();\r\n nama.setManusia(\"Wildan\");\r\n System.out.println(\"Nama Saya: \"+nama.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Integer\r\n All_in_One<Integer> umur = new All_in_One<>();\r\n umur.setManusia(19);\r\n System.out.println(\"Usia Saya: \"+umur.getManusia()+\" Tahun\");\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Boolean\r\n All_in_One<Boolean> kondisi = new All_in_One<>();\r\n kondisi.setManusia(true);\r\n System.out.println(\"Saya Sedang Belajar Java: \"+kondisi.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Float\r\n All_in_One<Float> IPK = new All_in_One<>();\r\n IPK.setManusia(3.5f);\r\n System.out.println(\"Nilai IPK Saya: \"+IPK.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Character\r\n All_in_One<Character> Karakter = new All_in_One<>();\r\n Karakter.setManusia('W');\r\n System.out.println(\"Huruf Awalan Nama Saya Adalah: \"+Karakter.getManusia());\r\n }", "public void spojElementeNaizmenicno(ListaBrojeva novaLista) {\n if (novaLista.prvi == null)\n return;\n else if (jePrazna())\n prvi = novaLista.prvi;\n else {\n Element tek = prvi.veza;\n Element novaListaTek = novaLista.prvi;\n Element pomocni = prvi;\n while (tek != null && novaListaTek != null) {\n pomocni.veza = novaListaTek;\n pomocni = pomocni.veza;\n novaListaTek = novaListaTek.veza;\n \n pomocni.veza = tek;\n pomocni = pomocni.veza;\n tek = tek.veza;\n \n }\n if (novaListaTek != null)\n pomocni.veza = novaListaTek;\n }\n }", "public HTMLElement getElementCodigoPoaEd() { return this.$element_CodigoPoaEd; }", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "public int hapus() {\r\n return elemen[--ukuran];\r\n }", "void element() {}", "public E getElement() { return element; }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public Object getElement()\n {return data;}", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public void impactoContra(Elemento elemento){}", "public void setItem() {\n DatabaseReference dr_item = database.getReference();\n dr_item.child(\"User\").child(user.getUid()).child(\"Keranjang\").child(\"Item\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int hartot = 0;\n if(id_barang!=null){\n id_barang.clear();\n }\n if(quantity!=null){\n quantity.clear();\n }\n if(harga_barang!=null){\n harga_barang.clear();\n }\n if(id_item!=null){\n id_item.clear();\n }\n\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n IdBarang id = data.getValue(IdBarang.class);\n\n id_barang.add(id);\n }\n\n for (int i = 0; i < id_barang.size(); i++) {\n int qty = id_barang.get(i).getQuantity();\n int hrg = id_barang.get(i).getHarga();\n String id = id_barang.get(i).getId();\n hartot = hartot + hrg;\n\n id_item.add(id);\n quantity.add(qty);\n harga_barang.add(hrg);\n\n tv_harga_total.setText(\"Rp. \" + String.valueOf(hartot));\n }\n setBarang();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}", "E getElement() throws IllegalStateException;", "public HashMap<String, Integer> FindElements() {\n\t\tBy elementsCount = By.cssSelector(\".questions-container.c-center.row> div\");\n\n\t\tList<WebElement> listWebElementLabel = driver.findElements(elementsCount);\n\n\t\tHashMap<String, Integer> ele = new HashMap<String, Integer>();\n\n\t\tHashMap<String, Integer> ele1 = null;\n\n\t\tSystem.out.println(\"found webelements: \" + listWebElementLabel.size());\n\n\t\tIterator<WebElement> l;\n\n\t\tl = listWebElementLabel.iterator();\n\n\t\t//\n\n\t\tint i = 0;\n\t\tString fieldType = null, className = null;\n\t\tBy byElements = null;\n\n\t\twhile (l.hasNext()) {\n\n\t\t\tWebElement elementL = l.next();\n\t\t\ti++;\n\n\t\t\tfieldType = null;\n\t\t\tclassName = null;\n\n\t\t\tclassName = elementL.getAttribute(\"class\").toString();\n\n\t\t\tswitch (className) {\n\n\t\t\tcase \"questions-content-container\":\n\t\t\t\t// byElements =\n\t\t\t\t// By.xpath(\"//div[@class='questions-content-container']//div//following-sibling::*\");\n\t\t\t\tele1 = childElements();\n\t\t\t\tele.putAll(ele1);\n\t\t\t\tbreak;\n\n\t\t\tcase \"form-group\":\n\n\t\t\t\tfieldType = \"formFlag\";\n\n\t\t\t\tbreak;\n\t\t\tcase \"question-action-btn-container\":\n\t\t\t\tbyElements = By.cssSelector(\".question-action-btn-container\");\n\t\t\t\t// if (i>1) className =\n\t\t\t\t// driver.findElement(byElements).getAttribute(\"class\").toString();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t\n\n\t\t\tSystem.out.println(\"className: \" + className);\n\n\t\t\tif (className == \"form-group\")\n\t\t\t\tfieldType = \"formFlag\";\n\n\t\t\tif (className.contains(\"c-custom-select\"))\n\t\t\t\tfieldType = \"dropDownFlag\";\n\n\t\t\tif (className.contains(\"auto\"))\n\t\t\t\tfieldType = \"autoSuggFlag\";\n\n\t\t\tif (className.contains(\"date\"))\n\t\t\t\tfieldType = \"datePickerFlag\";\n\n\t\t\t// if (className.contains(\"btn\")) fieldType = \"buttonFlag\";\n\n\t\t\tSystem.out.println(\"fieldType: \" + fieldType);\n\n\t\t\t\n\n\t\t\tif (i > 1 && fieldType != null)\n\t\t\t\tif (ele.get(className) == null)\n\t\t\t\t\tele.put(fieldType, 1);\n\t\t\t\telse\n\t\t\t\t\tele.put(fieldType, i++);\n\n\t\t}\n\t\treturn ele;\n\n\t}", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "Elem getElem();", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic Consultation getElementAt(int arg0) {\n\t\treturn listaConsultatii.get(arg0);\n\t}", "private void setAdjuntos(Element element) {\r\n\t\tElement adjuntos = new Element(\"A_AdjuntosReglas\");\r\n\t\tadjuntos.setText(getReq().getObservaciones());\r\n\t\telement.addContent(adjuntos);\r\n\t}", "@Override\n\t\tpublic E getElement() throws IllegalStateException {\n\t\t\treturn element;\n\t\t}", "private AnyType elementAt(BinaryNode<AnyType> t) {\n\t\treturn t == null ? null : t.element;\n\t}", "@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}", "public T getValue(){\n \treturn element;\n }", "public String getElementoIndice(int indice) {\n No temp = ini;\n int count = 1;\n \n //Percorre todos os elementos da lista, ate achar o elemento procurado, ou ate chegar ao final\n while (temp != null){\n if (count == indice) {\n //Caso tenha encontrado o elemento\n return temp.getElemento();\n }\n \n temp = temp.getProx();\n count++;\n }\n \n return \"\";\n }", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public E getElement()\n {\n return this.data;\n }", "protected abstract B getElement(Long id);", "public HTMLInputElement getElementTabla() { return this.$element_Tabla; }", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "public abstract NSMutableArray<I_WorkFlowItem> tachesObligatoires();" ]
[ "0.56503576", "0.56288224", "0.5608962", "0.5561326", "0.5520156", "0.55170465", "0.54839414", "0.5479911", "0.546511", "0.54276794", "0.54268426", "0.542177", "0.54127204", "0.5411271", "0.5397855", "0.53855264", "0.53717697", "0.5368145", "0.5363816", "0.53588957", "0.5338009", "0.5338009", "0.5306661", "0.52951884", "0.52933496", "0.52781653", "0.5264715", "0.5264149", "0.52584994", "0.5239062", "0.5235538", "0.5235528", "0.5234677", "0.5224919", "0.5220961", "0.5213166", "0.5204232", "0.51972336", "0.5187849", "0.51839656", "0.5177926", "0.5177926", "0.5166037", "0.5164609", "0.5163021", "0.51625985", "0.51555836", "0.51476985", "0.51471734", "0.5134264", "0.51326764", "0.51238245", "0.5121266", "0.51195806", "0.5113074", "0.5110979", "0.5103682", "0.50932217", "0.5092187", "0.50919706", "0.5091274", "0.5089397", "0.5081796", "0.50748944", "0.50746095", "0.5072441", "0.5071018", "0.50670487", "0.5066446", "0.5061723", "0.50502414", "0.5049978", "0.50383884", "0.5032451", "0.5030896", "0.50287133", "0.50286174", "0.5023356", "0.50231797", "0.5022436", "0.50215167", "0.50204736", "0.5019702", "0.5012454", "0.50117904", "0.5011529", "0.5010819", "0.50038433", "0.5003113", "0.50026846", "0.50018114", "0.50010127", "0.49963638", "0.49929425", "0.4987434", "0.49719444", "0.49716845", "0.49689344", "0.4967813", "0.49591687", "0.49548087" ]
0.0
-1
Menguji apakah tumpukan kosong
public boolean kosong() { return ukuran == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "public abstract String dohvatiKontakt();", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "@RequestMapping(value = \"/kqdanhgia/{id}\",method = RequestMethod.GET)\r\n\tpublic String showkqdanhgia(@PathVariable(\"id\") String userb, Model model , HttpServletRequest request) {\n\t\tBangDanhGia bdg = choose.getBgd();\r\n\r\n\t\tif (bdg == null) {\r\n\t\t\tmodel.addAttribute(\"message\", \"Chưa ch�?n bảng đánh giá\");\r\n\t\t\treturn \"showkqdanhgia\";\r\n\t\t}\r\n\t\tmodel.addAttribute(\"bangdanhgia\", bdg);\r\n\t\tList<LoaiCauHoi> lchs = new ArrayList<LoaiCauHoi>(bdg.getLchs());\r\n\t\tCollections.sort(lchs);\r\n\t\tmodel.addAttribute(\"lchs\", lchs);\r\n\t\tmodel.addAttribute(\"nguoidang\", userb);\r\n\t\tList<BangDanhGiaKq> dgkqs = bdgkqService.findByUserb(userb);\r\n\t\tList<DisplayResult> kqs = new ArrayList<DisplayResult>();\r\n\t\tfor (CauHoi cauHoi : bdg.getCauhois()) {\r\n\t\t\tDisplayResult kq = new DisplayResult();\r\n\t\t\tkq.setCh(cauHoi);\r\n\t\t\tkq.setMch(cauHoi.getId());\r\n\t\t\tint a = 0, b = 0, c = 0, d = 0;\r\n\t\t\tfor (BangDanhGiaKq bangDanhGiaKq : dgkqs) {\r\n\t\t\t\tif (bangDanhGiaKq.getLoaiBang().getId() == bdg.getId()) {\r\n\t\t\t\t\tfor (CauHoiKq chkq : bangDanhGiaKq.getCauhoikqs()) {\r\n\t\t\t\t\t\tif (chkq.getCauhoi().getId().equals(cauHoi.getId())) {\r\n\t\t\t\t\t\t\tswitch (chkq.getKetqua()) {\r\n\t\t\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t\t\t\ta++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'B':\r\n\t\t\t\t\t\t\t\tb++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'C':\r\n\t\t\t\t\t\t\t\tc++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'D':\r\n\t\t\t\t\t\t\t\td++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tkq.setNumA(((double) a / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungA(\"Rất Tốt : \" + kq.getNumA() + \"%\");\r\n\t\t\tkq.setNumB(((double) b / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungB(\"Tốt : \" + kq.getNumB() + \"%\");\r\n\t\t\tkq.setNumC(((double) c / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungC(\"Bình Thường : \" + kq.getNumC() + \"%\");\r\n\t\t\tkq.setNumD(((double) d / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungD(\"Chưa Tốt : \" + kq.getNumD() + \"%\");\r\n\t\t\tkqs.add(kq);\r\n\t\t}\r\n\t\tlog.error(\"BangDanhGiakq : \" + dgkqs.toString());\r\n\t\tlog.info(\"bang ket qua : \" + kqs.toString());\r\n\t\tmodel.addAttribute(\"kqs\", kqs);\r\n\t\treturn \"showkqdanhgia\";\r\n\t}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "private void xuLyThemSD(){\n if (checkNgay(txtNgaySD.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải thuộc dạng [YYYY-MM-DD].\\n Vui lòng kiểm tra lại!\");\n txtNgaySD.requestFocus();\n return;\n }//kiem tra ngay su dung\n \n if (checkGia(txtGiaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải là ký tự số.\\n Vui lòng kiểm tra lại!\");\n txtGiaDV.requestFocus();\n return;\n }//kiem tra gia dich vu\n \n \n SuDungService suDungService = new SuDungService();\n int x = suDungService.themSuDung(cbbMaDV.getSelectedItem().toString(),\n cbbMaKH.getSelectedItem().toString(),\n txtNgaySD.getText(), Float.valueOf(txtGiaDV.getText()));\n \n if (x>0){\n hienThiSuDung();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n cbbMaDV.requestFocus();\n return;\n }\n }", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "private void kosong(){\n txt_id_rute.setText(null);\n txt_nama_koridor.setText(null);\n txt_tujuan.setText(null);\n }", "public static void tambahTengah() {\n Scanner masukan = new Scanner(System.in);\n System.out.println(\"\\nTentukan Lokasi Penambahan Data\");\n int LOKASI = masukan.nextInt();\n masukan.nextLine();\n\n int jumlahSimpulYangAda = hitungJumlahSimpul();\n if (LOKASI == 1) {\n System.out.println(\"Lakukan penambahan di depan\");\n } else if (LOKASI > jumlahSimpulYangAda) {\n System.out.println(\"Lakukan penambahan di belakang\");\n } else {\n\n //------------bagian entri data dari keyboard--------------\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH TENGAH : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //-- -- -- -- -- --bagian menemukan posisi yang dikehendaki-----------\n simpul bantu;\n bantu = awal;\n int i = 1;\n while ((i < LOKASI)\n && (bantu != akhir)) {\n bantu = bantu.kanan;\n i++;\n }\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru-----------\n simpul baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- --bagian mencangkokkan simpul baru ke dalam linkedlist lama------\n baru.kiri = bantu.kiri;\n baru.kiri.kanan = baru;\n baru.kanan = bantu;\n bantu.kiri = baru;\n }\n }", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "void tampilKarakterA();", "public void simpanDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO barang(kode_barang, nama_barang, merk_barang, jumlah_stok, harga)\"\n + \"VALUES('\"+ kode_barang +\"','\"+ nama_barang +\"','\"+ merk_barang +\"','\"+ jumlah_stok +\"','\"+ harga +\"')\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void updateDataBuku(){\n String sql = \"UPDATE buku SET judulBuku = '\"+getJudulBuku()+\"'\"\n + \",pengarang = '\"+getPengarang()+\"'\"\n + \",penerbit = '\"+getPenerbit()+\"'\"\n + \",tahun = '\"+getTahun()+\"'\"\n + \",stok = '\"+getStok()+\"' WHERE idBuku = '\"+getIdBuku()+\"'\";\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void testTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(); \n\n\t\tshowData(data,\"kode_pangkat\",\"jumlah_pns\");\n\t}", "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "public void Jomijoma()\n {\n System.out.println(\"Ami dadar jomi joma paya geci\");\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private void xuLyThemDV(){\n if (checkMaDV(txtMaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Mã dịch vụ phải thuộc dạng [DV+Số].\\n Vui lòn kiểm tra lại!\");\n txtMaDV.requestFocus();\n return;\n }//Kiem tra maDV \n \n if(checkTenDV(txtTenDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Tên dịch vụ không được bỏ trống!\");\n txtTenDV.requestFocus();\n return;\n }//Kiem tra tenDV\n \n DichVuService dichVuService = new DichVuService();\n if (dichVuService.kiemTraDichVuDaTonTai(txtMaDV.getText())==false){\n int x = dichVuService.themDV(txtMaDV.getText(), txtTenDV.getText());\n if(x>0){\n hienThiDichVu();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n txtMaDV.requestFocus();\n return;\n }\n }else{\n JOptionPane.showMessageDialog(null, \"Dịch vụ đã tồn tại. Vui lòng kiểm tra lại!\");\n txtMaDV.requestFocus();\n return;\n }\n \n }", "private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public String suaTaiKhoan(){\n\t\ttaiKhoanDao.suaTaiKhoan(ttCaNhan);\r\n\t\t\r\n\t\t//kiem tra quyen dang nhap\r\n\t\tint kt=kiemTraquyenDN();\r\n\t\tif(kt==1){\r\n\t\t\treturn \"QLTaiKhoan_Admin?faces-redirect=true\";\r\n\t\t}else if(kt==3){\r\n\t\t\treturn \"QLTaiKhoan_NV?faces-redirect=true\";\r\n\t\t}else{\r\n\t\t\treturn \"QLTaiKhoan_NVDH?faces-redirect=true\";\r\n\t\t}\r\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "public boolean fHalamanPelanggan(HttpSession vFSesi) {\n boolean vKeluaran = false;\n \n try{\n String vID = vFSesi.getAttribute(\"sesIDPub\").toString();\n String vSandi = vFSesi.getAttribute(\"sesSandiPUb\").toString();\n String vEmailDB = \"\";\n String vSandiDB = \"\";\n\n //String vKeluaran = \"fHalamanAdmin -> ID: \" + vID + \" & sandi: \" + vSandi;\n /* mencocokkan data session dengan basisdata */\n /* mengambil data nama dan sandi */\n ClsOperasiBasisdataOri oOpsBasisdata = new ClsOperasiBasisdataOri();\n\n /* \n String vFNamaBerkasKonf,\n String vFNamaBd,\n String vFNamaTabel,\n String[] vFArrNamaKolom,\n String vFKolomUrut,\n String vFJenisUrut,\n String[] vFOffset\n */\n\n ResultSet vHasil = oOpsBasisdata.fArrAmbilDataDbKondisi(\"\",\"\", \n \"tb_pelanggan\", \n new String[]{\"email\",\"sandi\"}, \n new String[]{\"email\"},\n \"nomor\", \n \"\", new String[]{\"0\",\"1\"},\"=\");\n\n /* keluaran permintaan */\n while(vHasil.next()){\n vEmailDB = vHasil.getString(\"email\");\n vSandiDB = vHasil.getString(\"sandi\");\n }\t\t\t\n \n System.out.println(vID + \"#\" + vEmailDB + \"#\" + \"#\" + vSandi + \"#\" + vSandiDB);\n /* mencocokkan data */\n if (vID != null && vEmailDB !=null && vSandi != null && vSandiDB != null) {\n \n /* sebelum divalidasi */\n /* apabila data POST sesuai dgn data dalam tabel basisdata: lupa password jadi di NOT */\n if(vID.equals(vEmailDB) && vSandi.equals(vSandiDB)){\n vKeluaran = true;\n }\n }\n }catch(SQLException | DOMException e){\n /* pencatatan sistem */\n if(ClsKonf.vKonfCatatSistem == true){\n String vNamaKelas = \"ClsPelanggan.java\";\n String vNamaMetode = \"fHalamanPelanggan\";\n String vCatatan = vNamaKelas + \"#\" + vNamaMetode + \"#\" + e.toString();\n /* obyek catat */\n ClsCatat oCatat = new ClsCatat();\n oCatat.fCatatSistem(ClsKonf.vKonfCatatKeOutput, \n ClsKonf.vKonfCatatKeBD, \n ClsKonf.vKonfCatatKeBerkas, \n vCatatan);\n }\n }\n \n /* debug nilai id dan password */\n //System.out.println(\"Belum divalidasi : \" + vID + \" = \" + vNamaDB + \" & \" + vSandi + \" = \" + vSandiDB);\n /* nilai keluaran */\n return vKeluaran;\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "@GetMapping(\"/komponenGaji\")\n private String komponenGaji(Model model){\n KomponenPengaliModel komponenGaji = payrollService.getKomponenGajiById(Long.parseLong(\"1\"));\n model.addAttribute(\"komponenGaji\", komponenGaji);\n return\"komponen-pengali-gaji\";\n }", "public static void main(String[] args) {\n\n Bilangan tampilan = new Bilangan();\n System.out.println(\"Nilai E = \"+tampilan.tampilkanE());\n System.out.println(\"Nilai F = \"+tampilan.tampilkanF());\n System.out.println(\"Nilai G = \"+tampilan.tampilkanG());\n\n //nilai diintput\n tampilan.inputE(100);\n System.out.println(\"Nilai E setelah diinput = \"+tampilan.tampilkanE());\n tampilan.inputF(200);\n System.out.println(\"Nilai F setelah diinput = \"+tampilan.tampilkanF());\n tampilan.inputG(300);\n System.out.println(\"Nilai G setelah diinput = \"+tampilan.tampilkanG());\n\n //panggil method tambah(), kurang(), kali(), bagi()\n System.out.println(\"Hasil pertambahan E, F dan G = \"+tampilan.tambah());\n System.out.println(\"Hasil pengurangan G dikurang E = \"+tampilan.kurang());\n System.out.println(\"Hasil perkalian E, F dan G = \"+tampilan.perkalian());\n System.out.println(\"Hasil pembagian G dibagi E = \"+tampilan.pembagian());\n }", "private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }", "@Override\r\n public boolean ubahStatus(int masukan) {\r\n if (masukan == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Override\n public void onClick(View view) {\n List<DataQuestion>listAnswer = adapter.getAllAnswer();\n\n int nilai = 0;\n //looping untuk nilai\n for (int i = 0; i <listAnswer.size() ; i++) {\n //cek jawaban sama atau tidak dengan kunci jawaban\n if(listAnswer.get(i).getJawaban().equals(listAnswer.get(i).getDipilih())){\n //jika jawaban betul maka nilai + 1\n nilai = nilai + 1;\n }\n }\n //tampilkan nilai di toast\n Toast.makeText(getApplicationContext(),\"Nilai anda: \"+nilai,Toast.LENGTH_LONG).show();\n }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}", "void kiemTraThangHopLi() {\n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public static void main(String[] args) {\r\n \r\n\r\n cetak_nama(); // akses prosedur\r\n\r\n System.out.println(cetak_nama1()); // mencetak nilai fungsi\r\n\r\n cetak_nama2(\"Aprianto\"); // akses prosedur dengan parameter nama\r\n\r\n System.out.println(cetak_nama3(\"Aprianto\")); // mencetak nilai fungsi dengan parameter nama\r\n\r\n cetak_data(\"Aprianto\", 20); // akses prosedur dengan 2 parameter. parameter yang disediakan harus sama dengan yang di deklarasi\r\n \r\n System.out.println(jumlah_uang(1000, 2000, \"Aprianto\"));\r\n }", "@Override\n public void onClick(View view) {\n String nPensil = etPensil.getText().toString();\n String nPena = etPena.getText().toString();\n String nBuku = etBuku.getText().toString();\n\n //mengecek apakah editText kosong\n //kondisi ketika panjangnya kosong\n if(nPensil.isEmpty()){\n //memberi warning berupa error\n etPensil.setError(\"Nilai Tidak Boleh Kosong\");\n }else if (nPena.isEmpty()){\n etPena.setError(\"Nilai tidak boleh kosong\");\n }else if (nBuku.isEmpty()){\n etBuku.setError(\"Nilai tidak boleh kosong\");\n }else{\n //mengubah nilai dari string k integer\n int aPensil = Integer.parseInt(nPensil);\n int aPena = Integer.parseInt(nPena);\n int aBuku = Integer.parseInt(nBuku);\n\n int hasilTotal = (aBuku * 7000) + (aPena * 3500) + (aPensil * 2500);\n\n //menampilkan hasil hitung ke widget textView\n lblTotal.setText(\"Total Belanjaan = Rp\" + hasilTotal);\n }\n }", "public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVisible(false);\n bedit.setVisible(false);\n bbeli.setVisible(true);\n breset.setVisible(true);\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "@Override\n public String getPesan()\n {\n return super.getMessage() + hotel_error + \" tidak ditemukan\";\n }", "public static void main(String[] args) {\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"--Selamat Datang Di Kuis Matematika--\");\n System.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n System.out.println(\"Daftar soal: \");\n soal();\n System.out.println(\"Silahkan input angka sesuai dengan nomer soal: \");\n pilihan();\n \n \n \n }", "public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\n }", "public void tampilkanKamarKosongHarga (int hargaMaks) {\n for (Kamar k:daftarKamar.values()) {\n if (k.isKosong && k.harga<= hargaMaks) {\n k.print();\n }\n }\n }", "public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "private void getDataKitabKuning(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Kitab Kuning\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void kounyu() throws Exception {\n\n\t\tDbCon con = new DbCon();\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tThread.sleep(100);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint sum1 = Money.sum;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tSystem.out.println(\"商品番号選択で購入出来ます。\\n商品番号選択してください。\");\n\n\t\t\tint water = (int) DbCon.vec.get(1);\n\t\t\tint coke = (int) DbCon.vec.get(5);\n\t\t\tint fanta = (int) DbCon.vec.get(9);\n\t\t\tint yog = (int) DbCon.vec.get(13);\n\t\t\tint mon = (int) DbCon.vec.get(17);\n\n\t\t\twhile (true) {\n\t\t\t\tString str = br.readLine();\n\t\t\t\tchar res = str.charAt(0);\n\n\t\t\t\tif (res == '1' && water > 0 && sum1 >= 110) {\n\t\t\t\t\tSystem.out.println(DbCon.vec.get(3) + \"を購入しました。\\n\");\n\t\t\t\t\tDbCon.Henkyaku((int) DbCon.vec.get(0));\n\t\t\t\t\tSystem.out.println(\"\\n 【商品一覧表】\\n\");\n\t\t\t\t\tDbCon.zaiko((int) DbCon.vec.get(0));\n\t\t\t\t\tDbCon.Uriage((int) DbCon.vec.get(0));\n\t\t\t\t\tDbCon.mn();\n\t\t\t\t\tDbCon.UPMN();\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else if (res == '2' && coke > 0 && sum1 >= 120) {\n\t\t\t\t\tSystem.out.println(DbCon.vec.get(7) + \"を購入しました。\\n\");\n\t\t\t\t\tDbCon.Henkyaku((int) DbCon.vec.get(4));\n\t\t\t\t\tSystem.out.println(\"\\n 【商品一覧表】\\n\");\n\t\t\t\t\tDbCon.zaiko((int) DbCon.vec.get(4));\n\t\t\t\t\tDbCon.Uriage((int) DbCon.vec.get(4));\n\t\t\t\t\tDbCon.mn();\n\t\t\t\t\tDbCon.UPMN();\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else if (res == '3' && fanta > 0 && sum1 >= 130) {\n\t\t\t\t\tSystem.out.println(DbCon.vec.get(11) + \"を購入しました。\\n\");\n\t\t\t\t\tSystem.out.println(\"\\n 【商品一覧表】\\n\");\n\t\t\t\t\tDbCon.zaiko((int) DbCon.vec.get(8));\n\t\t\t\t\tDbCon.Henkyaku((int) DbCon.vec.get(8));\n\t\t\t\t\tDbCon.Uriage((int) DbCon.vec.get(8));\n\t\t\t\t\tDbCon.mn();\n\t\t\t\t\tDbCon.UPMN();\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else if (res == '4' && yog > 0 && sum1 >= 140) {\n\t\t\t\t\tSystem.out.println(DbCon.vec.get(15) + \"を購入しました。\\n\");\n\t\t\t\t\tSystem.out.println(\"\\n 【商品一覧表】\\n\");\n\t\t\t\t\tDbCon.zaiko((int) DbCon.vec.get(12));\n\t\t\t\t\tDbCon.Henkyaku((int) DbCon.vec.get(12));\n\t\t\t\t\tDbCon.Uriage((int) DbCon.vec.get(12));\n\t\t\t\t\tDbCon.mn();\n\t\t\t\t\tDbCon.UPMN();\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else if (res == '5' && mon > 0 && sum1 >= 150) {\n\t\t\t\t\tSystem.out.println(DbCon.vec.get(19) + \"を購入しました。\\n\");\n\n\t\t\t\t\t/******* Calling DbCon.zaiko method from DbCon Class *******/\n\t\t\t\t\tDbCon.Henkyaku((int) DbCon.vec.get(16));\n\t\t\t\t\tSystem.out.println(\"\\n 【商品一覧表】\\n\");\n\t\t\t\t\tDbCon.zaiko((int) DbCon.vec.get(16));\n\t\t\t\t\tDbCon.Uriage((int) DbCon.vec.get(16));\n\t\t\t\t\tDbCon.mn();\n\t\t\t\t\tDbCon.UPMN();\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"在庫切れか、入力誤りです。\\n再度入力してください。\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t \n\t\t\t}\n\t\t\tSystem.out.println(\"\\n続けて購入しますか?(y/n)\");\n\t\t\tBufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString str = br1.readLine();\n\t\t\tString res = str.intern();\n\n\t\t\tif (res != \"y\" && res != \"Y\" && res != \"n\" && res != \"N\") {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"入力誤りです。\\n再度入力してください。\\n\");\n\t\t\t\t\n\n\t\t\t\t/******* Calling kounyu() method from kounyu Class *******/\n\t\t\t\t\n\t\t\t}\n\n\t\t\telse if (res == \"y\" || res == \"Y\") {\n\t\t\t\tMoney.money();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(res == \"n\" || res == \"N\"){\n\t\t\t\tSystem.out.println(\"ご利用ありがとうございます。\");\n\t\t\t\tSystem.out.println(\"またお願いします。\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}", "public boolean insertTonKho(TonKho tk) {\n String dongia = \"\" + Utils.formatNumber(tk.getTonkhoDongia(), \"###.##\");\n dongia = dongia.replace(\".\", \"\");\n String malk = tk.getTonkhoMalienket();\n if (malk == null || malk.equals(\"\")) {\n malk = tk.getDmthuocMaso(true).getDmthuocMa() +\n tk.getDmnctMaso(true).getDmnctMa() +\n tk.getDmnguonkinhphiMaso(true).getDmnguonkinhphiMa() +\n tk.getDmquocgiaMaso(true).getDmquocgiaMa() +\n tk.getDmnhasanxuatMaso(true).getDmnhasanxuatMa() +\n //tk.getPhieunhapkhoMa(true).getPhieunhapkhoMa() +\n tk.getTonkhoNamnhap() +\n tk.getTonkhoNgayhandung() +\n tk.getTonkhoThanghandung() +\n tk.getTonkhoNamhandung() +\n tk.getTonkhoLo() +\n tk.getTonkhoSodangky() +\n dongia;\n tk.setTonkhoMalienket(malk.toUpperCase());\n }\n //System.out.println(\"malk: \"+ malk);\n //System.out.println(\"Kho: \"+ tk.getDmkhoaMaso().getDmkhoaMaso());\n TonKho tkHt = getTonKhoHienTai(malk, tk.getDmkhoaMaso().getDmkhoaMaso());\n //System.out.println(\"Ton khoHT: \"+ tkHt);\n // cap nhat gia tri ton hien tai.\n Double nhap = Double.valueOf(\"0\");\n if (tk.getTonkhoNhap() != null) {\n nhap = tk.getTonkhoNhap();\n }\n tk.setTonkhoNhap(nhap);\n //System.out.println(\"Nhap: \"+ nhap);\n Double xuat = Double.valueOf(\"0\");\n if (tk.getTonkhoXuat() != null) {\n xuat = tk.getTonkhoXuat();\n }\n tk.setTonkhoXuat(xuat);\n //System.out.println(\"Xuat: \"+ xuat);\n Double tra = Double.valueOf(\"0\");\n if (tk.getTonkhoTra() != null) {\n tra = tk.getTonkhoTra();\n }\n tk.setTonkhoTra(tra);\n //System.out.println(\"Tra: \"+ tra);\n Double ton = Double.valueOf(\"0\");\n if (tkHt != null) {\n if (tkHt.getTonkhoTon() != null) {\n ton = tkHt.getTonkhoTon();\n }\n }\n //System.out.println(\"tondau: \"+ ton);\n //*** triet them vao cap nhat ton dau\n tk.setTonkhoTondau(ton);\n //******\n ton = ton + ((nhap + tra) - xuat);\n //ThoVNA - kiem tra lai lan cuoi, neu so luong ton < sl xuat thi khong cho thuc hien xuat thuoc\n if(ton <0){\n return false;\n }\n tk.setTonkhoTon(ton);\n\n if (tk.getPhieunhapkhoMa() != null &&\n (tk.getPhieunhapkhoMa().getPhieunhapkhoMa() == null || tk.getPhieunhapkhoMa().getPhieunhapkhoMa().equals(\"\"))) {\n tk.setPhieunhapkhoMa(null);\n }\n\n\n tk.setTonkhoNgaygiocn(new Date());\n try {\n tk.setTonkhoHienthi(true);\n getEm().persist(tk);\n return true;\n } catch (Exception e) {\n context.setRollbackOnly();\n e.printStackTrace();\n }\n return false;\n }", "private void getCariSemua(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.cari_semua_like(txt_kodeMK.getSelectedItem().toString(),txt_kelas.getSelectedItem().toString());\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")) {\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls, getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else{\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}", "private void btnHomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHomeActionPerformed\n// timingnyaDiStop();\n int inginKeluar;// 0 = (YES) exit ke main menu , 1 = (NO)tidak jadi //default netbeansnya\n inginKeluar = JOptionPane.showConfirmDialog(this, \"Anda yakin ingin mengakhiri Pembahasan / Materi?\", \"Konfirmasi Kembali\", 0);\n if (inginKeluar == 0) //kalo bener mau keluar, skoring muncul (masukkanSkor)\n {\n try {\n masukkanSkor();\n\n } catch (IOException ex) {\n Logger.getLogger(bahas.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n timingnyaMainLagi();\n }\n }", "@RequestMapping(value = \"/pegawai/tambah\", method = RequestMethod.POST)\n\tprivate String tambahPegawai(@ModelAttribute PegawaiModel pegawai, Model model) {\n\t\tProvinsiModel provinsi = pegawai.getInstansi().getProvinsi();\n\t\tString nip = \"\";\n\t\tnip = nip + provinsi.getId();\n\t\tint instansiLine = provinsi.getInstansiProvinsi().indexOf(pegawai.getInstansi()) + 1;\n\t\t\n\t\tif(instansiLine < 10) { \n\t\t\tnip = nip + \"0\"+ instansiLine;\n\t\t}else { \n\t\t\tnip = nip + instansiLine; \n\t\t\t}\n\t\t\n\t\tString formatTanggal = pegawai.getTanggal_lahir().toString();\n\t\tString formatDateBaru = formatTanggal.substring(8) + formatTanggal.substring(5, 7) + formatTanggal.substring(2, 4);\n\t\tnip = nip + formatDateBaru;\n\t\tnip+=pegawai.getTahun_masuk();//menambahkan tahun masuk untuk membuat nip\n\t\t\n\t\t//menambahkan urutan masuk untuk membuat nip\n\t\tInstansiModel instansi = pegawai.getInstansi();\n\t\tint nomorDepan=1;\n\t\tfor(PegawaiModel comparePegawai: instansi.getListPegawaiInstansi()) {\n\t\t\tif(nip.equals(comparePegawai.getNip().substring(0, 14))) {\n\t\t\t\tnomorDepan = nomorDepan + 1;\n\t\t\t}\n\t\t}\n\t\tif(nomorDepan < 10) {\n\t\t\tnip = nip + \"0\"+nomorDepan;\n\t\t}else {\n\t\t\tnip = nip + nomorDepan;\n\t\t}\n\t\t\n\t\tpegawai.setNip(nip);\n\t\tpegawaiService.addPegawai(pegawai);\n\t\tmodel.addAttribute(\"pegawai\", pegawai);\n\t\treturn \"dataBertambah\";\n\t}", "public void asetaTeksti(){\n }", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@GetMapping(\"/detailGaji\")\n private String detailGaji(\n @RequestParam(value=\"idGaji\") Long idGaji,\n Model model){\n GajiModel gaji = gajiDb.findById(idGaji).get();\n KaryawanModel karyawanParam = gaji.getId_karyawan();\n KaryawanModel karyawanUser = payrollService.findUser().getKaryawanModel();\n String date = payrollService.displayYearMonth(gaji.getDokumen().getTanggalIsu());\n String status = payrollService.displayStatus(karyawanParam.getStatusKaryawan());\n String role = payrollService.findUser().getId_role().getRole();\n String statusDokumen = gaji.getDokumen().getId_status().getStatus();\n if((role.equals(\"Karyawan\")) && (!statusDokumen.equals(\"Disetujui\"))){\n String message=\"Mohon maaf, slip gaji untuk \" + date + \" belum dapat diakses. Silahkan hubungi Manajer SDI\" +\n \" untuk keterangan lebih lanjut.\";\n model.addAttribute(\"message\", message);\n return \"payroll-access\";\n }else if(role.equals(\"Karyawan\")){\n if(!karyawanParam.getKaryawan().equals(karyawanUser.getKaryawan())){\n String message=\"Mohon maaf, Anda tidak memiliki akses ke halaman ini\";\n model.addAttribute(\"message\", message);\n return \"payroll-access\";\n }\n } else{\n }\n model.addAttribute(\"statusDokumen\", statusDokumen);\n model.addAttribute(\"tahunAngkat\", payrollService.displayYearMonth(karyawanParam.getTanggalMasuk()));\n model.addAttribute(\"role\", role);\n model.addAttribute(\"date\", date);\n model.addAttribute(\"status\", status);\n model.addAttribute(\"karyawan\", karyawanParam);\n model.addAttribute(\"gaji\", gaji);\n return \"detail-gaji\";\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "@GetMapping(\n\t\t\tvalue=\"/bioskopi/ukloni/{id}\",\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<BioskopDTO> ukloni(@PathVariable(name=\"id\") Long id){/*patvariable dovablja id od bioskopa (this.id iz jsa)*/\n\t\tBioskop b=this.bioskopService.findOne(id);\n\t\tif(b==null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\t\n\t\tBioskopDTO bioskop=new BioskopDTO(b.getId(), b.getNaziv(), b.getAdresa(), b.getBrojCentrale(), b.getEMail());\n\t\t/*prolazi kroz projekcije sale i sve brise i na kraju obrise tu salu*/\n\t\tSet<Sala> sale=b.getSale();\n\t\tfor (Sala sala : sale) {\n\t\t\tList<Terminski_raspored> projekcije=sala.getProjekcije();\n\t\t\tfor (Terminski_raspored t : projekcije) {\n\t\t\t\tSet<Gledalac> gledaoci=t.getGledaoci_koji_su_rezervisali_film();\n\t\t\t\tfor (Gledalac g : gledaoci) {\n\t\t\t\t\tif(g.getRezervisani_filmovi().contains(t)) {\n\t\t\t\t\t\tg.getRezervisani_filmovi().remove(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSet<Raspored_filmova> rasporedi=t.getRasporedi();\n\t\t\t\tfor(Raspored_filmova r:rasporedi) {\n\t\t\t\t\tthis.raspored_filmovaService.delete(t.getId());\n\t\t\t\t}\n\t\t\t\t//this.terminski_rasporedService.delete(t.getId());\n\t\t\t}\n\t\t\tthis.salaservice.deleteById(sala.getId());\n\t\t}\n\t\tthis.bioskopService.delete(id); \n\t\t\n\t\t\n\t\treturn new ResponseEntity<>(bioskop,HttpStatus.OK);\n\t}", "public Vector addJumMhsYgSudahHeregistrasi_v1(Vector vListInfoKelas) {\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString cuid1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "@RequestMapping(\"/trangchu/xulydangnhapnhanvien\")\n\tpublic String XuLyDangNhapNhanVien(@Valid NhanVien nhanVien1,RedirectAttributes redirect,Model model)\n\t{\n\t\tnhanVien = nhanVienRepository.TimNhanVienDeDangNhap(nhanVien1.getSodienthoai(), nhanVien1.getMatkhau());\n\t\tif (nhanVien!=null) {\n\t\t\ttype = 1;\n\t\t\tmodel.addAttribute(\"dx\", \"dangxuat\");\n\t\t\tredirect.addFlashAttribute(\"success\",\"Đăng nhập thành công\");\n\t\t\treturn \"redirect:/trangchu\";\n\t\t}\n\t\t//System.out.println(\"Không có ai\");\n\t\tredirect.addFlashAttribute(\"success\",\"Đăng nhập thất bại\");\n\t\treturn \"redirect:/trangchu\";\n\t}", "public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }" ]
[ "0.693983", "0.6789002", "0.6774429", "0.6719176", "0.66622204", "0.6658722", "0.6656206", "0.6610654", "0.65544915", "0.6553316", "0.6542158", "0.6524791", "0.6479481", "0.64793354", "0.6467994", "0.64568186", "0.64457226", "0.64044654", "0.64041585", "0.6397971", "0.6371054", "0.6345522", "0.6335112", "0.632316", "0.63191587", "0.63179076", "0.63118726", "0.6278787", "0.62708616", "0.62583464", "0.6252214", "0.6250117", "0.624093", "0.6238935", "0.62327045", "0.62323564", "0.62248695", "0.6222323", "0.62183654", "0.6213795", "0.62121725", "0.62108773", "0.6193978", "0.61881393", "0.61745685", "0.61480635", "0.6144461", "0.614121", "0.6133322", "0.61218446", "0.61112773", "0.6105978", "0.61005235", "0.6097592", "0.6095911", "0.60933244", "0.60809684", "0.6078895", "0.60756594", "0.6073693", "0.6067781", "0.60609126", "0.60496765", "0.6047735", "0.6035125", "0.6032261", "0.6024691", "0.6013824", "0.60123044", "0.599342", "0.5991205", "0.59893155", "0.59718394", "0.59648794", "0.5963478", "0.59632003", "0.59554833", "0.59389794", "0.59333646", "0.59319806", "0.59187824", "0.5914145", "0.5910984", "0.5908645", "0.59018284", "0.59011656", "0.590112", "0.58963", "0.5895996", "0.58930933", "0.58927345", "0.587375", "0.58591336", "0.58583045", "0.58563155", "0.5854269", "0.5853912", "0.58480674", "0.584718", "0.5840506" ]
0.68056875
1
Mengembalikan jumlah elemen di dalam tumpukan
public int dapatUkuran() { return ukuran; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "long getNombreElements();", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public void setItem() {\n DatabaseReference dr_item = database.getReference();\n dr_item.child(\"User\").child(user.getUid()).child(\"Keranjang\").child(\"Item\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int hartot = 0;\n if(id_barang!=null){\n id_barang.clear();\n }\n if(quantity!=null){\n quantity.clear();\n }\n if(harga_barang!=null){\n harga_barang.clear();\n }\n if(id_item!=null){\n id_item.clear();\n }\n\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n IdBarang id = data.getValue(IdBarang.class);\n\n id_barang.add(id);\n }\n\n for (int i = 0; i < id_barang.size(); i++) {\n int qty = id_barang.get(i).getQuantity();\n int hrg = id_barang.get(i).getHarga();\n String id = id_barang.get(i).getId();\n hartot = hartot + hrg;\n\n id_item.add(id);\n quantity.add(qty);\n harga_barang.add(hrg);\n\n tv_harga_total.setText(\"Rp. \" + String.valueOf(hartot));\n }\n setBarang();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArrayList<RealmCobaModels> setSemuaDataNama() {\n // mendapatkan data realm berbentuk realmresults\n RealmResults<RealmCobaModels> realmCobaModels = realm.where(RealmCobaModels.class).findAll();\n // mendeklarasi arraylist\n ArrayList<RealmCobaModels> arrayListModels = new ArrayList<>();\n\n // validasi\n if (realmCobaModels.size() > 0) { // jika realmresult lebih dari 0\n // membuat looping data\n for (int i = 0; i < realmCobaModels.size(); i++) {\n RealmCobaModels rcm1 = new RealmCobaModels();\n rcm1.setId(realmCobaModels.get(i).getId());\n rcm1.setNama(realmCobaModels.get(i).getNama());\n rcm1.setUmur(realmCobaModels.get(i).getUmur());\n arrayListModels.add(rcm1); // memasukkan ke array list\n }\n\n // tampil log\n Log.e(TAG, arrayListModels.toString());\n } else { // jika realmresult tidak lebih dari 0, maka kosong!\n // tampil log\n Log.e(TAG, \"Tidak Ada Data!\");\n }\n\n return arrayListModels;\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "private void printArrElement() {\n\t\tIterator iter = arrTag.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tObject key = iter.next();\r\n\t\t\tTag valores = arrTag.get(key);\r\n\t\t\t//System.out.print(\"key=\" + key + \"\\n\");\r\n\t\t\t//System.out.print(\"\\ttagsPermitidas:\");\r\n\t\t\tHashSet<Tag> tags = valores.getTagsPermitidasDentro();\r\n\t\t\tfor (Tag tag : tags) {\r\n\t\t\t\t//System.out.print(\"'\" + tag.getNome() + \"',\");\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "private void setSITACI(Element element) {\r\n\t\tElement eSitaci = new Element(\"D_EnviaSITACI\");\r\n\t\tif(this.registrosSitaci.size()<0){\r\n\t\t\teSitaci.setText(\"NO\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t}else{\r\n\t\t\teSitaci.setText(\"SI\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t\tElement listaSitaci = new Element(\"N_ListaSITACI\");\r\n\t\t\tElement registroSitaci;\r\n\t\t\tElement interiorRegistroSitaci;\r\n\t\t\tfor(RegistroSitaci reg : this.registrosSitaci){\r\n\t\t\t\tregistroSitaci = new Element(\"uniqueKey\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"D_Id\", \"NA\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"campoCQ\", \"dbid\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"entidadCQ\", \"SITACI\");\r\n\t\t\t\t\r\n\t\t\t\t//nroSitaci\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_NroSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getNroSitaci());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//DNSorigen\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DNSOrigen\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDnsOrigen());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Longitud\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_Long\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getLongitud()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//cantReg\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_CantReg\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getCantReg()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Descripcion\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DescSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDescripcion());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//agrego un registro\r\n\t\t\t\tlistaSitaci.addContent(registroSitaci);\r\n\t\t\t}\r\n\t\t\t//Agrego toda la lista al cuerpo del xml\r\n\t\t\telement.addContent(listaSitaci);\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "public Vector addJumMhsYgSudahHeregistrasi_v1(Vector vListInfoKelas) {\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString cuid1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "public void tampilharga(){\n try{\n Statement statement = (Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"select * from tblaktivitas where compart='\"+ txtcompart.getSelectedItem() +\"' AND nama_grup= '\"+txtgrup.getSelectedItem()+\"'\"); \n \n while(res.next()){\n String price = res.getString(\"harga\");\n String aktivitas = res.getString(\"pekerjaan\");\n String hektar = res.getString(\"ha\");\n txtharga.setText(price);\n txtaktivitas.setText(aktivitas); \n txtha.setText(hektar);\n }\n res.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n }\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlha = Integer.valueOf(txtha.getText());\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void addPesanan(JSONObject json) {\n int index = 0;\n boolean found = false;\n for(int i = 0; i < pesanan.size(); i++) {\n JSONObject jsonLineItem = (JSONObject) pesanan.get(i);\n \n if(jsonLineItem.get(\"id_menu\") == json.get(\"id_menu\")) {\n found = true;\n index = i;\n break;\n }\n }\n \n if(found) {\n // tambahkan jumlah menu apabila menu sudah dipesan\n JSONObject jsonCurrentPesanan = (JSONObject) pesanan.get(index);\n int jumlah = (int) jsonCurrentPesanan.get(\"jumlah\");\n int subtotal = (int) json.get(\"subtotal\") + (int) jsonCurrentPesanan.get(\"subtotal\");\n jumlah++;\n jsonCurrentPesanan.put(\"jumlah\", jumlah);\n jsonCurrentPesanan.put(\"subtotal\", subtotal);\n pesanan.set(index, jsonCurrentPesanan); \n } else {\n // jika menu belum ada di pesanan maka tambahkan ke pesanan \n this.pesanan.add(json);\n }\n \n this.total += (int) json.get(\"subtotal\");\n label_total.setText(Integer.toString(this.total));\n \n this.renderPesanan();\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }", "public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }", "public void simpanDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO barang(kode_barang, nama_barang, merk_barang, jumlah_stok, harga)\"\n + \"VALUES('\"+ kode_barang +\"','\"+ nama_barang +\"','\"+ merk_barang +\"','\"+ jumlah_stok +\"','\"+ harga +\"')\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "private void dibujarEstado() {\n\n\t\tcantidadFichasNegras.setText(String.valueOf(juego.contarFichasNegras()));\n\t\tcantidadFichasBlancas.setText(String.valueOf(juego.contarFichasBlancas()));\n\t\tjugadorActual.setText(juego.obtenerJugadorActual());\n\t}", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }", "public void loadDataProduk(){\n kode_barang = txtKodeBarang.getText();\n nama_barang = txtNamaBarang.getText();\n merk_barang = txtMerkBarang.getText();\n jumlah_stok = Integer.parseInt(txtJumlahStok.getText());\n harga = Integer.parseInt(txtHarga.getText());\n \n }", "public void llenarDetalles(){\n nombreLabel.setText(ninno.getNombreCompleto());\n \n int numGrupo = ninno.getGrupo();\n Grupo grupo = JardinController.getGrupo(numGrupo);\n grupoLabel.setText(grupo.getId());\n nivelLabel.setText(Integer.toString(grupo.getNivel()));\n profesorLabel.setText(grupo.getProfesor().getNombreCompleto());\n telefonoLabel.setText(grupo.getProfesor().getTelefono());\n }", "private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "public void tampilgrup(){\n txtgrup.removeAllItems();\n try{\n java.sql.Statement statement = (java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"SELECT DISTINCT nama_grup FROM tblaktivitas\");\n \n while(res.next()){\n String name = res.getString(\"nama_grup\");\n txtgrup.addItem(name);\n }\n res.last();\n }catch (Exception e){\n }\n \n }", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "public void initTable_Pesanan(){\n //Set cell TableView\n id_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Id\"));\n jumlah_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Jumlah\"));\n harga_pesan.setCellValueFactory(new PropertyValueFactory<Order, Integer>(\"Harga\"));\n catatan_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Catatan\"));\n hapus_pesan.setCellValueFactory(new PropertyValueFactory<Order, Button>(\"Hapus\"));\n\n //Editable\n catatan_pesan.setCellFactory(TextFieldTableCell.forTableColumn());\n catatan_pesan.setOnEditCommit(event ->\n {\n event.getTableView().getItems().get(event.getTablePosition().getRow()).setCatatan(event.getNewValue());\n });\n tablePesanan.setEditable(true);\n //Set TableView\n tablePesanan.setItems(list_order);\n }", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "private void popuniComboZaMesto() {\n try {\n jComboMesto.removeAllItems();\n List<MestoEntity> mesta = Controller.ucitajListuMesta();\n \n for (IDomainEntity mesto : mesta) {\n if(mesto instanceof MestoEntity)\n jComboMesto.addItem((MestoEntity) mesto);\n }\n } catch (Exception ex) {\n Logger.getLogger(FKupac.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void testTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(); \n\n\t\tshowData(data,\"kode_pangkat\",\"jumlah_pns\");\n\t}", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "public void dataSelect(){\n //deklarasi variabel\n int i = tblKembali.getSelectedRow();\n \n //uji adakah data di tabel?\n if(i == -1){\n //tidak ada yang terpilih atau dipilih.\n return;\n }\n txtNama.setText(\"\"+model.getValueAt(i,0));\n txtAlamat.setText(\"\"+model.getValueAt(i,1));\n txtNo.setText(\"\"+model.getValueAt(i,2));\n txtKamera.setText(\"\"+model.getValueAt(i,3));\n txtKode.setText(\"\"+model.getValueAt(i,4));\n txtdisewa.setText(\"\"+model.getValueAt(i,5));\n txtLama.setText(\"\"+model.getValueAt(i,6));\n txtLambat.setText(\"\"+model.getValueAt(i,7));\n \n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public void tampil_tb_mahasiswa(){\n Object []baris = {\"No Bp\",\"Nama\",\"Tempat Lahir\",\"Tanggal Lhair\",\"Jurusan\",\"Tanggal Masuk\"};\n tabmode = new DefaultTableModel(null, baris);\n //tb_mahasiswa.setModel(tabmode);\n try {\n Connection con = new koneksi().getConnection();\n String sql = \"select * from tb_mahasiswa order by no_bp asc\";\n java.sql.Statement stat = con.createStatement();\n java.sql.ResultSet hasil = stat.executeQuery(sql);\n while (hasil.next()){\n String no_bp = hasil.getString(\"no_bp\");\n String nama = hasil.getString(\"nama\");\n String tempat_lahir = hasil.getString(\"tempat_lahir\");\n String tanggal_lahir = hasil.getString(\"tanggal_lahir\");\n String jurusan = hasil.getString(\"jurusan\"); \n String tanggal_masuk = hasil.getString(\"tanggal_masuk\");\n String[] data = {no_bp, nama, tempat_lahir, tanggal_lahir, jurusan, tanggal_masuk};\n tabmode.addRow(data);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Menampilkan data GAGAL\",\"Informasi\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public HTMLTableSectionElement getElementDetalle() { return this.$element_Detalle; }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void tabelpembayaran(){\n DefaultTableModel tbl = new DefaultTableModel();\n //tbl.addColumn(\"Kode\");\n tbl.addColumn(\"TGL Audit\");\n tbl.addColumn(\"TGL Pembayaran\");\n tbl.addColumn(\"Status\");\n tbl.addColumn(\"Grup\");\n tbl.addColumn(\"Aktivitas\");\n tbl.addColumn(\"JML Anggota\");\n tbl.addColumn(\"HA\");\n tbl.addColumn(\"Gaji PerHA\");\n tbl.addColumn(\"Gaji Anggota\");\n tbl.addColumn(\"Total\");\n tblpembayaran.setModel(tbl);\n try{\n java.sql.Statement statement=(java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res=statement.executeQuery(\"select * from tblpembayaran\");\n while(res.next())\n {\n tbl.addRow(new Object[]{\n res.getString(\"tanggal_audit\"),\n res.getString(\"tanggal_pembayaran\"), \n res.getString(\"status_pembayaran\"),\n res.getString(\"nama_grup\"),\n res.getString(\"nama_aktivitas\"),\n res.getInt(\"jumlah_anggota\"),\n res.getInt(\"ha\"),\n res.getInt(\"harga\"),\n res.getInt(\"gaji_peranggota\"),\n res.getInt(\"total\")\n });\n tblpembayaran.setModel(tbl); \n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(rootPane,\"Salah\");\n }\n \n }", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "private void generateKontenWarta(JSONArray jadwal, JSONArray warta) {\n setUpLayout();\n\n int dataLength = jadwal.length();\n String tanggal = null, kebaktian = null, pengkotbah = null, judul = null, deskripsi = null,gedung =null, penerjemah = null, liturgis = null, pianis = null ,paduansuara = null;\n\n // Generate konten Warta Mingguan dalam loop for\n for (int i = 0; i < dataLength; i++){\n try {\n JSONArray jsonAtribut = jadwal.getJSONObject(i).getJSONArray(\"atribut\");\n\n tanggal = jadwal.getJSONObject(i).getString(\"tanggal\");\n\n myTableLayout = new TableLayout(getActivity());\n myTableLayout.setLayoutParams(tableParams);\n HSV = new HorizontalScrollView(getActivity());\n\n TR = new TableRow(getActivity());\n TR.setLayoutParams(rowTableParams);\n\n // Judul kolom\n IsiTabelHeader(\"Kebaktian\"); // Kebaktian\n IsiTabelHeader(\"Gedung\");\n IsiTabelHeader(\"Pengkotbah\"); // Pengkotbah\n IsiTabelHeader(\"Penerjemah\");\n IsiTabelHeader(\"Liturgis\");\n IsiTabelHeader(\"Pianis\");\n IsiTabelHeader(\"Paduan Suara\");\n\n myTableLayout.addView(TR, tableParams); // Add row to table\n\n JudulTabel = new TextView(getActivity());\n JudulTabel.setText(\"Jadwal khotbah pada tanggal \"+tanggal);\n JudulTabel.setLayoutParams(params);\n myLinearLayout.addView(JudulTabel);\n\n int length2 = jsonAtribut.length();\n for (int j = 0; j < length2; j++) {\n pengkotbah = jsonAtribut.getJSONObject(j).getString(\"pengkotbah\");\n kebaktian = jsonAtribut.getJSONObject(j).getString(\"kebaktianumum\");\n gedung=jsonAtribut.getJSONObject(j).getString(\"gedung\");\n penerjemah = jsonAtribut.getJSONObject(j).getString(\"penerjemah\");\n liturgis = jsonAtribut.getJSONObject(j).getString(\"liturgis\");\n pianis = jsonAtribut.getJSONObject(j).getString(\"pianis\");\n paduansuara = jsonAtribut.getJSONObject(j).getString(\"paduansuara\");\n\n TR = new TableRow(getActivity());\n TR.setLayoutParams(rowTableParams);\n // Kebaktian\n IsiTabel(kebaktian);\n IsiTabel(gedung);\n \n\t\t\t\t\t// Pengkotbah\n IsiTabel(pengkotbah);\n IsiTabel(penerjemah);\n IsiTabel(liturgis);\n IsiTabel(pianis);\n IsiTabel(paduansuara);\n // Add row to table\n myTableLayout.addView(TR, tableParams);\n }\n HSV.setScrollbarFadingEnabled(false);\n HSV.addView(myTableLayout);\n myLinearLayout.addView(HSV);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n dataLength = warta.length();\n\n for (int i = 0; i < dataLength; i++){\n JSONObject jsonobj = null;\n try {\n jsonobj = warta.getJSONObject(i);\n judul = jsonobj.getString(\"judul\");\n deskripsi = jsonobj.getString(\"deskripsi\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Judul warta\n TextView wartaTV = new TextView(getActivity());\n wartaTV.setText(\"Judul: \" + judul);\n wartaTV.setLayoutParams(params);\n myLinearLayout.addView(wartaTV);\n\n // Deskripsi warta\n wartaTV = new TextView(getActivity());\n wartaTV.setText(\"Deskripsi: \" + deskripsi);\n wartaTV.setLayoutParams(paramsDeskripsi);\n myLinearLayout.addView(wartaTV);\n }\n }", "public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}", "public void enfileira(T elemento){\n\t\t\n\t\tthis.adiciona(elemento);\n\t}", "public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<LoaiVT> DSSP = LoaiVT.DSLOAIVT;\n VatTu PX = VatTu.getPX();\n \n try {\n txtMaVT.setText(PX.getMaVT());\n txtTenVT.setText(PX.getTenVT());\n txtDonVi.setText(PX.getDVT());\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n for(LoaiVT SP: DSSP){ \n cb.addElement(SP.getMaLoai());\n if(SP.getMaLoai().equals(PX.getMaLoai())){\n cb.setSelectedItem(SP.getMaLoai());\n }\n }\n cbMaloai.setModel(cb);\n } catch (Exception ex) {\n txtMaVT.setText(\"\");\n txtTenVT.setText(\"\");\n txtDonVi.setText(\"\");\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n cb.setSelectedItem(\"\");\n cbMaloai.setModel(cb);\n }\n \n \n }", "private void hienThiSuDung(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layToanBoSuDung();\n \n modelSuDung.setRowCount(0);\n for (SuDungModel suDungModel : suDungModels) {\n Vector vtRow = new Vector();\n vtRow.add(suDungModel.getMaDV());\n vtRow.add(suDungModel.getMaKH());\n vtRow.add(suDungModel.getNgaySD());\n vtRow.add(suDungModel.getGiaDV());\n modelSuDung.addRow(vtRow);\n }\n }", "@Override\n public void onClick(View view) {\n List<DataQuestion>listAnswer = adapter.getAllAnswer();\n\n int nilai = 0;\n //looping untuk nilai\n for (int i = 0; i <listAnswer.size() ; i++) {\n //cek jawaban sama atau tidak dengan kunci jawaban\n if(listAnswer.get(i).getJawaban().equals(listAnswer.get(i).getDipilih())){\n //jika jawaban betul maka nilai + 1\n nilai = nilai + 1;\n }\n }\n //tampilkan nilai di toast\n Toast.makeText(getApplicationContext(),\"Nilai anda: \"+nilai,Toast.LENGTH_LONG).show();\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "void populate() {\n daftarNotifikasi.add(new DaftarNotifikasi(\"Ludfi Ika P\", \"Hari ini mau gathering dimana?\", 2, R.drawable.profil_2));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Erinda\", \"Ada pagelaran di kota\", 6, R.drawable.profil_3));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Aleq\", \"Saya punya solusi untuk itu\", 10, R.drawable.profil_1));\n }", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "public void insererEnTeteDeListe(Personne personne) {\n\t\tElement ancienPremier= premier;\n\t\tpremier= new Element(personne,ancienPremier);\n\t\t nbElt ++;\n\t}", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "public void setNomNiveles (String IdNivel, String Contador, String IdCategoria){\n nivelesId = getNivelId( IdNivel );\n if ( nivelesId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelNivel.setText( nivelesId.getString(1) + \" - Preguntas : \" + Contador + \" / \" + getPreguntasTotal(IdCategoria, IdNivel ) );\n }\n\n }", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public static void main(String[] args){\n All_in_One<String> nama = new All_in_One<>();\r\n nama.setManusia(\"Wildan\");\r\n System.out.println(\"Nama Saya: \"+nama.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Integer\r\n All_in_One<Integer> umur = new All_in_One<>();\r\n umur.setManusia(19);\r\n System.out.println(\"Usia Saya: \"+umur.getManusia()+\" Tahun\");\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Boolean\r\n All_in_One<Boolean> kondisi = new All_in_One<>();\r\n kondisi.setManusia(true);\r\n System.out.println(\"Saya Sedang Belajar Java: \"+kondisi.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Float\r\n All_in_One<Float> IPK = new All_in_One<>();\r\n IPK.setManusia(3.5f);\r\n System.out.println(\"Nilai IPK Saya: \"+IPK.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Character\r\n All_in_One<Character> Karakter = new All_in_One<>();\r\n Karakter.setManusia('W');\r\n System.out.println(\"Huruf Awalan Nama Saya Adalah: \"+Karakter.getManusia());\r\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "public void Mendaftar(Pasien pasien) {\r\n // mengisi data variabel daftarPasien dengan variabel lokal daftarPasien \r\n daftarPasien.add(pasien);\r\n }", "public void updateModeloPagoLaboratorio() throws Exception{\n ArrayList<Pago> pgAbono = PagoDB.listarPagosDePlanTratamientoLab(tratamientotoSelected.getIdPlanTratamiento());\n \n \n int m = this.columnasNombrePagoLab.length;\n ArrayList<Object []> objetos = new ArrayList<Object []>();\n String aux = this.costoAbono.getText();\n int total = Integer.parseInt(aux.substring(1, aux.length()));\n for(Pago pagAbn : pgAbono){\n\n String tipoPago = pagAbn.getTipoPago();\n String detalle = pagAbn.getDetalle();\n String fecha = girarFecha(pagAbn.getFecha());\n String valor = pagAbn.getAbono()+\"\";\n int numBoleta = pagAbn.getNumBoleta();\n total = total + pagAbn.getAbono();\n Object [] fila = new Object [] {new Item (tipoPago,pagAbn.getIdPago()), detalle, fecha, \"$\"+valor, numBoleta+\"\"};\n objetos.add(fila);\n \n }\n costoAbono.setText(\"$\"+total);\n int id = tratamientotoSelected.getIdPlanTratamiento();\n PlanTratamiento planTrat = PlanTratamientoDB.getPlanTratamiento(id);\n planTrat.setTotalAbonos(total);\n //calculando el porcentaje de abance\n int cosTotal=tratamientotoSelected.getCostoTotal();\n int avance= total*100/cosTotal;\n planTrat.setAvance(avance);\n \n PlanTratamientoDB.editarPlanTratamiento(planTrat);\n //System.out.println(\"total 1:\"+total+\"id:\"+id);\n \n this.filasPagoLab = new Object [objetos.size()][m];\n int i = 0;\n for(Object [] o : objetos){\n this.filasPagoLab[i] = o;\n i++;\n }\n \n this.modeloPagoLab = new DefaultTableModel(this.filasPagoLab, this.columnasNombrePagoLab) {\n Class[] types = new Class [] {\n String.class, Item.class, String.class, String.class, String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n };\n \n this.tablaPagoLaboratorio.setModel(modeloPagoLab);\n \n this.iniciarTablaPlanesTratamientos();\n //habilitarBoton();\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }" ]
[ "0.62567943", "0.61088127", "0.6093808", "0.60550684", "0.6026791", "0.5900659", "0.58747894", "0.5869614", "0.5857409", "0.58467203", "0.58383507", "0.5821009", "0.5807785", "0.57818484", "0.5758471", "0.57319146", "0.571529", "0.57150793", "0.56962603", "0.56956565", "0.568294", "0.5624061", "0.56176317", "0.5603314", "0.5594396", "0.55490947", "0.5535727", "0.5530953", "0.5530494", "0.5521558", "0.55172235", "0.55118", "0.5510006", "0.5509847", "0.55046743", "0.54959077", "0.5491591", "0.5479786", "0.5472224", "0.5457212", "0.5455465", "0.54551685", "0.5454547", "0.54530257", "0.54523605", "0.5450063", "0.5444024", "0.54427475", "0.54375815", "0.5430462", "0.54296064", "0.54236", "0.54225147", "0.542246", "0.541948", "0.5418392", "0.5418077", "0.5413905", "0.54133546", "0.54118633", "0.54106784", "0.540906", "0.54078543", "0.5405938", "0.5403206", "0.5402483", "0.54009223", "0.53986424", "0.539155", "0.5385639", "0.5375112", "0.5370961", "0.53668064", "0.5355115", "0.5351834", "0.5350289", "0.53483224", "0.5340312", "0.533596", "0.5335321", "0.5335197", "0.53309697", "0.53251314", "0.5323473", "0.5322148", "0.532127", "0.5314867", "0.53146493", "0.5312962", "0.5312274", "0.53088176", "0.53051275", "0.53045255", "0.5302377", "0.53021306", "0.5301433", "0.52923095", "0.52897", "0.5285168", "0.5276508", "0.5264992" ]
0.0
-1
here we hold the view item with data from the api
@Override public void onBindViewHolder(@NonNull RecyclerViewHolder holder, int position) { String name=dataList.get(position).getName(); if(name!=null&&!name.isEmpty()) { holder.mNameTextView.setText(name); } String str=dataList.get(position).getPhotoUrl(); if(str !=null&&!str.isEmpty()) { Uri uri = Uri.parse(str); Picasso.get().load(uri).into(holder.mDataImageView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }", "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "Object getViewDetails();", "public ShowDataViewHolder(final View itemView) {\n super(itemView);\n // image_url = (ImageView) itemView.findViewById(R.id.fetch_image);\n image_title = (TextView) itemView.findViewById(R.id.fetch_image_title);\n\n\n }", "private void loadData() {\n if (mItem != null) {\n Picasso.with(getActivity()).load(mItem.getPictureFile()).\n placeholder(R.drawable.loading)\n .error(R.drawable.error)\n .fit() //\n .into(((ImageView) getView().findViewById(R.id.detailImageView)));\n ((EditText) getView().findViewById(R.id.visitstextView))\n .setText(\"\" + mItem.getVisits());\n\n ((TextView) getView().findViewById(R.id.detailTextView))\n .setText(\"\" + mItem.getTitle());\n ((RatingBar) getView().findViewById(R.id.detailsratingBar)).setRating((float) mItem.getRating());\n\n ReviewModelAdapter mReviewAdapter = new ReviewModelAdapter(getActivity(), R.id.txt_line1);\n try {\n mReviewAdapter.addAll(mItem.getReviews(getActivity()).all().toList());\n } catch (Exception e) {\n\n }\n ((ListView) getView().findViewById(R.id.detailsreviewlistview)).setAdapter(mReviewAdapter);\n\n\n }\n }", "public Viewholder(@NonNull View itemView)\n {\n super(itemView);\n btnReadMore = itemView.findViewById(R.id.btn_read_more);\n sqView = itemView.findViewById(R.id.sqView);\n title = itemView.findViewById(R.id.textTitle);\n body = itemView.findViewById(R.id.textBody);\n }", "private void setupItemView(View view, NewCollectedItem item) {\n if (item != null) {\n TextView nameText = view.findViewById(R.id.collected_name);\n TextView heightText = view.findViewById(R.id.collected_height);\n TextView pointsText = view.findViewById(R.id.collected_points);\n TextView positionText = view.findViewById(R.id.collected_position);\n TextView dateText = view.findViewById(R.id.collected_date);\n\n nameText.setText(item.getName());\n heightText.setText(mContext.getResources().getString(R.string.height_display,\n UIUtils.IntegerConvert(item.getHeight())));\n positionText.setText(mContext.getResources().getString(R.string.position_display,\n item.getLongitude(), item.getLatitude()));\n pointsText.setText(mContext.getResources().getString(R.string.points_display,\n UIUtils.IntegerConvert(item.getPoints())));\n dateText.setText(mContext.getResources().getString(R.string.date_display,\n item.getDate()));\n\n if (item.isTopInCountry()) {\n view.findViewById(R.id.collected_trophy).setVisibility(View.VISIBLE);\n }\n else {\n view.findViewById(R.id.collected_trophy).setVisibility(View.INVISIBLE);\n }\n\n positionText.setVisibility(View.GONE);\n dateText.setVisibility(View.GONE);\n setCountryFlag(view, item.getCountry());\n }\n }", "protected Object getViewData() {\n\t\treturn view.getViewData();\n\t}", "protected abstract void fillData(View itemView, T data);", "public void LoadSingleItemData(View view) {\n loadSingleItem(friendsDatabase);\n }", "private void loadaspirasirt(){\n String m_idwarga = getSp().getString(\"id_warga\",null);\n Call<ResponModel>viewmypost = getApi().rtaspirasi();\n viewmypost.enqueue(new Callback<ResponModel>() {\n @Override\n public void onResponse(Call<ResponModel> call, Response<ResponModel> response) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"Hasil\"+response.body());\n mItem= response.body().getResult();\n mAdapter = new AdapterRT(mItem,AspirasiRTActivity.this);\n mylistpost.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onFailure(Call<ResponModel> call, Throwable t) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"GAGAL\");\n }\n });\n }", "private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}", "public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }", "interface RedeemView extends BaseView {\n\n void LoadingReddemData (List<RedeemResponse> redeemResponses );\n void hide_refreshView();\n void show_errorView(boolean Isshow , String error);\n}", "private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}", "public ViewHolder(@NonNull View itemView) {\n super(itemView);\n ivProfileImage = itemView.findViewById(R.id.ivProfileImage);\n tvBody = itemView.findViewById(R.id.tvBody);\n tvScreenName = itemView.findViewById(R.id.tvScreenName);\n tvTimeAgo = itemView.findViewById(R.id.tvTimeAgo);\n ivMedia = itemView.findViewById(R.id.ivMedia);\n rlTweet = itemView.findViewById(R.id.rlTweet);\n btnReply = itemView.findViewById(R.id.btnReply);\n tvRetweets = itemView.findViewById(R.id.tvRetweets);\n tvFavorites = itemView.findViewById(R.id.tvFavorites);\n }", "public EntrepriseHolder(@NonNull View itemView) {\n super(itemView);\n nom = itemView.findViewById(R.id.afficheNom);\n adresse = itemView.findViewById(R.id.afficheAdresse);\n ville = itemView.findViewById(R.id.afficheVille);\n nature = itemView.findViewById(R.id.afficheNature);\n }", "private void populateView(View view, TestCase item) {\n\t\tTextView tv_caseId = (TextView) view.findViewById(R.id.tv_caseId);\n\t\tTextView tv_caseName = (TextView) view.findViewById(R.id.tv_caseName);\n\n\t\t// set text values based on input message\n\t\ttry {\n\t\t\ttv_caseId.setText(String.valueOf(item.getCaseId()));\n\t\t\ttv_caseName.setText(item.getCaseName());\n\t\t\tboolean isSuccess = item.isSuccess();\n\t\t\tif (isSuccess) {\n\t\t\t\ttv_caseId.setTextColor(RESPONSE_SUCCESS_COLOR);\n\t\t\t\ttv_caseName.setTextColor(RESPONSE_SUCCESS_COLOR);\n\t\t\t} else {\n\t\t\t\ttv_caseId.setTextColor(RESPONSE_FAILURE_COLOR);\n\t\t\t\ttv_caseName.setTextColor(RESPONSE_FAILURE_COLOR);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLog.e(\"error\", ex.getMessage());\n\t\t}\n\t\t\n\t}", "public interface StockTransferByAllocationView extends MvpView {\n\n void initViewPage(List<StockTransferWithAllocationSnBo> stockTransferWithAllocationSnBoList,int originDataSize, boolean isRefresh,int position);\n\n void dealPosition(List<StockTransferWithAllocationSnBo> stockTransferWithAllocationSnBo, int position,int size);\n\n}", "protected List<View> getItems() {\n return items;\n }", "private View setupView(View v)\n {\n\n TextView item_name = (TextView)v.findViewById(R.id.item_name);\n TextView item_price = (TextView)v.findViewById(R.id.item_price);\n TextView item_description = (TextView)v.findViewById(R.id.item_description);\n\n add = (Button) v.findViewById(R.id.fabCart);\n add.setOnClickListener(this);\n mlike = (ImageView) v.findViewById(R.id.btnLike);\n mlike.setOnClickListener(this);\n\n if(mDescription != null) {\n item_name.setText(mDescription[Data.UzaData.NAME.ordinal()] + \" | \" + mDescription[Data.UzaData.SELLER.ordinal()]);\n item_price.setText(mDescription[Data.UzaData.PRICE.ordinal()]);\n item_description.setText(mDescription[Data.UzaData.DESCRIPTION.ordinal()]);\n }\n\n initPager(v);\n\n //TODO \"Show more pictures\" button\n //TODO \"Message\" button\n\n return v;\n }", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "public interface ListFrgView extends BaseView {\n void getDpSuccess(List<Map<String, Object>> testModel);\n}", "private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }", "public void updateArticleView(ServerObj serverObj){\n View v = getView();\n// String[] data = Ipsum.Articles;\n// article.setText(data[position]);\n// currentPosition = position;\n currentServerObj=serverObj;\n LinearLayout containerOfContents= (LinearLayout) v.findViewById(R.id.container_of_contents);\n containerOfContents.removeAllViews();\n ContentsViewBuilder contentsViewBuilder=new ContentsViewBuilder(activity);\n Log.d(\"myPavilion\",\"serverObj\"+serverObj.getJson());\n View contentsView=contentsViewBuilder.getView(serverObj.getContentsObj());\n containerOfContents.addView(contentsView);\n\n }", "private void viewListItem(int index) {\n Itinerary itinerary = itineraryList.get(index);\n // make sure this itinerary is pin in local storage\n Log.d(\"Display Itinerary\", itinerary.getTitle());\n Toast.makeText(getActivity(), \"Fetching Data..\" , Toast.LENGTH_SHORT).show();\n itinerary.pinInBackground();\n Intent intent = new Intent(getActivity(), DayListView.class);\n intent.putExtra(\"it_ID\",itinerary.getObjectId());\n getActivity().startActivity(intent);\n\n }", "private void initData(View view) {\n /*\n * the array of item which need to show in gridview\n * it contains string and a picture\n * */\n ArrayList<HashMap<String, Object>> mList = new ArrayList<HashMap<String, Object>>();\n\n\n /**\n * download info from local database\n * */\n ContentResolver contentResolver = mContext.getContentResolver();\n Uri uri = Uri.parse(\"content://com.example.root.libapp_v1.SQLiteModule.Bookpage.BookpageProvider/bookpage\");\n Cursor cursor = contentResolver.query(uri, null, null, null, null);\n if (cursor != null) {\n while (cursor.moveToNext()) {\n HashMap<String, Object> map = new HashMap<String, Object>();\n String bookname = cursor.getString(cursor.getColumnIndex(\"name\"));\n map.put(\"image\", mImgUrl+\"bookimg_\"+bookname+\".png\");\n map.put(\"text\", bookname);\n mList.add(map);\n }\n /**\n * use the new data to show in gridview\n * */\n initGridView(view, mList);\n }\n cursor.close();\n }", "public interface SGTView extends IView {\n\n void getSGTHomeData(ApiResponse<List<SGTHomeListEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSGTSearchData(ApiResponse<List<FootSSEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSearchFootInfoData(ApiResponse<SearchFootEntity> listApiResponse, String msg, Throwable mThrowable);//搜索足环号码\n\n// void getSGTSearchData(List<FootSSEntity> data, String msg);//赛格通足环搜索页\n\n void getFootImg(List<SGTImgEntity> imgDatas, String str);//获取足环照片\n\n void getFootInfo(SGTFootInfoEntity infoData, String str);//获取足环详情\n\n void getGZImgEntity(List<GZImgEntity> gzImgData, String str);//获取鸽主图片\n\n void uploadResults(ApiResponse<Object> dateApiResponse, String msg);//上传图片结果\n\n void getTagData(List<TagEntitiy> tagDatas);//获取标签数据\n\n void getGeZhuFootData(ApiResponse<GeZhuFootEntity> listApiResponse, String msg);//获取鸽主下的足环列表\n\n void getUserInfo_SGT(ApiResponse<SGTUserInfo> dataApiResponse, String msg);//获取赛鸽通用户信息\n\n void getSetRpTimeResults(ApiResponse<Object> dataApiResponse, String msg);//设置本届比赛入棚时间(修改足环号码)\n\n void getSetGPKrysResults(ApiResponse<Object> dataApiResponse, String msg);//设置公棚可容羽数\n}", "interface MainView {\n\n void showProgress();\n\n void hideProgress();\n\n void setDataToListView(User[] noticeUser);\n\n void setDataToListView(Post[] noticePost);\n\n void onResponseFailure(Throwable throwable);\n\n }", "private void fetchData() {\n if (!isNetworkAvailable()){\n Toast.makeText(this, getString(R.string.no_internet_connection), Toast.LENGTH_SHORT).show();\n swipeRefreshLayout.setRefreshing(false);\n return;\n }\n\n apiInterface = ApiUtils.getApi();\n Call<List<Item>> call = apiInterface.getItems();\n call.enqueue(new Callback<List<Item>>() {\n @Override\n public void onResponse(Call<List<Item>> call, Response<List<Item>> response) {\n if (response.isSuccessful()){\n DatabaseController.getInstance(getApplicationContext()).clearDatabase();\n PicassoTools.clearCache(Picasso.with(getApplicationContext()));\n List<Item> items = response.body();\n for (Item item : items) {\n DatabaseController.getInstance(getApplicationContext()).addItem(item);\n// Log.d(TAG, \"add in list items \" + item.getId().toString());\n }\n updateUI();\n }else {\n Log.d(TAG, response.errorBody().toString());\n Toast.makeText(MainActivity.this, R.string.error, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<Item>> call, Throwable t) {\n Log.d(TAG, \"onFailure: \" + t.getMessage());\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }", "public HomeViewHolder(@NonNull View itemView) {\n super(itemView);\n //itemView.findViewById(R.id.fl_rvitem_homeview1);\n // itemView.findViewById(R.id.fl_rvitem_homeview2);\n }", "public interface ApartmentListView extends BaseView{\n void getDataSuccess(List<ApartmentListModel> list);\n}", "private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }", "public void invokeViewItem(String itemToSearch){\n AsyncHttpClient client = new AsyncHttpClient();\n client.setBasicAuth(globalUsername, globalPassword);\n client.get(\"http://\" + globalURL + \"/Auction_Server/items/\"+itemToSearch, new AsyncHttpResponseHandler() { // deleted params\n\n @Override\n public void onSuccess(int i, Header[] headers, byte[] bytes)\n {\n try {\n String response = new String(bytes, \"UTF-8\");\n JSONObject obj = new JSONObject(response);\n String itemId = obj.get(\"item_id\").toString();\n String itemName = obj.get(\"item_name\").toString();\n String itemCategory = obj.get(\"item_category\").toString();\n String itemDescription = obj.get(\"item_desc\").toString();\n String itemStartPrice = obj.get(\"item_start_price\").toString();\n String itemLastBidPrice = obj.get(\"item_latest_bid_price\").toString();\n String itemPictureString = \"\";\n if (!obj.isNull(\"item_picture\")) { // displaying the picture from string to byte[] to bitmap and display\n itemPictureString = obj.get(\"item_picture\").toString();\n byte[] itemPictureBytes = new BASE64Decoder().decodeBuffer(itemPictureString);\n Bitmap itemPictureBitmap = BitmapFactory.decodeByteArray(itemPictureBytes, 0, itemPictureBytes.length);\n ImageView showItemPicture = (ImageView) findViewById(R.id.viewItemImageViewId);\n showItemPicture.setImageBitmap(itemPictureBitmap);\n }\n TextView fillUserInfo = (TextView) findViewById(R.id.viewItemInfoTextViewId);\n fillUserInfo.setText(\"Item Name: \" + obj.get(\"item_name\") + \"\\nItem Description: \" + obj.get(\"item_desc\") +\n \"\\nCategory: \" + obj.get(\"item_category\") + \"\\nCurrent Bid: \" + obj.get(\"item_latest_bid_price\") +\n \"\\nStarting price: \" + obj.get(\"item_start_price\") + \"\\nNumber of Bids: \" + obj.get(\"item_num_bids\") +\n \"\\nLatest bid username: \" + obj.get(\"item_latest_bid_username\") + \"\\nLast Bid Time: \" + obj.get(\"item_latest_bid_time\").toString().substring(0,16));\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error Occured [Server's JSON response might be invalid]!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int i, Header[] headers, byte[] bytes, Throwable throwable)\n {\n String response = \"\";\n try {\n response = new String(bytes, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n\n });\n }", "private void inflateViewForItem(Item item) {\n\n //Inflate Layout\n ItemCardBinding binding = ItemCardBinding.inflate(getLayoutInflater());\n\n //Bind Data\n binding.imageView.setImageBitmap(item.bitmap);\n binding.title.setText(item.label);\n binding.title.setBackgroundColor(item.color);\n\n //Add it to the list\n b.list.addView(binding.getRoot());\n }", "public ItemHolder(@NonNull View itemView) {\n super(itemView);\n /*tvNombre=itemView.findViewById(R.id.tvNombre);\n tvCiudad=itemView.findViewById(R.id.etCiudad);\n btBorrar=itemView.findViewById(R.id.btBorrar);\n btEditar=itemView.findViewById(R.id.btEditar);\n cl = itemView.findViewById(R.id.cl);\n ivImagen = itemView.findViewById(R.id.ivImagen);*/\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.list_item, container, false);\n\n mContext = getActivity();\n mApiService = UtilsApi.getApiService();\n mAppSession = new AppSession(getActivity());\n\n recyclerView = (RecyclerView) view.findViewById(R.id.list_item);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(new LinearLayoutManager(mContext));\n mAdapter = new DataTransaksiBookedAdapter(mContext);\n recyclerView.setAdapter(mAdapter);\n\n recyclerView.addOnItemTouchListener(new RecyclerTouchListener(mContext, recyclerView, new RecyclerTouchListener.ClickListener() {\n @Override\n public void onClick(View view, int position) {\n Intent detailTrasantion;\n detailTrasantion = new Intent(mContext, DetailTransaksiActivity.class);\n detailTrasantion.putExtra(\"idTransaction\", mAdapter.getTransaksiId(position));\n// detailTrasantion.putExtra(\"receiptUrl\", mAdapter.getReceiptUrl(position));\n view.getContext().startActivity(detailTrasantion);\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n\n return view;\n }", "public ListViewHolder(@NonNull View itemView) {\n super(itemView);\n lblActiveWorkoutName= itemView.findViewById(R.id.lblActiveWorkoutName);\n lblActiveWorkoutDate = itemView.findViewById(R.id.lblActiveWorkoutDate);\n btnViewExercises = itemView.findViewById(R.id.btnViewExercises);\n }", "@Override\n public Object getItem(int position) {\n return data;\n }", "public interface NewBookView extends BaseView{\n void initData(List<NewBookBean> data);\n void showLoading();\n void showLoaded();\n}", "private void populateViewCollections() {\n\n\t}", "public interface IFeedBackView extends IView {\n void feedBackListSuccess(List<FeedBackResponse> response);\n}", "public void update(Reponses item) {\n this.model = item;\n \n this.loadData();\n \n if (this.model != null) {\n MultiLoader loader = new MultiLoader(this);\n String baseUri = \n ReponsesProviderAdapter.REPONSES_URI \n + \"/\" \n + this.model.getId();\n\n loader.addUri(Uri.parse(baseUri), new UriLoadedCallback() {\n\n @Override\n public void onLoadComplete(android.database.Cursor c) {\n ReponsesShowFragment.this.onReponsesLoaded(c);\n }\n\n @Override\n public void onLoaderReset() {\n\n }\n });\n loader.addUri(Uri.parse(baseUri + \"/question\"), \n new UriLoadedCallback() {\n\n @Override\n public void onLoadComplete(android.database.Cursor c) {\n ReponsesShowFragment.this.onQuestionLoaded(c);\n }\n\n @Override\n public void onLoaderReset() {\n\n }\n });\n loader.init();\n }\n }", "public itemView getItem(int id) {\n return mData.get(id);\n }", "public UsuariosHolder(View itemView) {\n super(itemView);\n respuesta = itemView.findViewById(R.id.respuestaaaa);\n }", "@Override\n public void onClick(View view) {\n clearItemData();\n set_view_for(1);\n getSellMenuId();\n\n\n }", "@Override\n public void onClick(View v) {\n BeritaItem beritaItem = new BeritaItem();\n\n //TODO mengambil data dari berita item\n beritaItem.setTitle(beritaList.get(i).getTitle());\n beritaItem.setUrlToImage(beritaList.get(i).getUrlToImage());\n beritaItem.setContent(beritaList.get(i).getContent());\n beritaItem.setPublishedAt(beritaList.get(i).getPublishedAt());\n\n //TODO melakukan perpindahan halaman\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_OBJ,beritaItem);\n context.startActivity(intent);\n }", "private void updateViewsWithRecievedData() {\n\n //check if user has rated the data\n if (dataModel.getUser_has_rated().equalsIgnoreCase(\"true\")) {\n //user has rated\n ratingBar.setRating(Float.parseFloat(Integer.toString(dataModel.getUser_rating())));\n isRated = true;\n }\n //check if user has liked post\n if (dataModel.getUser_has_liked().equalsIgnoreCase(\"true\")) {\n //user has liked post, change imageview background\n likes_imv.setBackgroundColor(getColor(R.color.colorAccent));\n isLiked = true;\n }\n\n tv_title.setText(dataModel.getTitle() + \"\\n\" + dataModel.getArtist_actors());\n tv_views.setText(HelperMethods.getStringViewsFromInt(dataModel.getViews(), \"\"));\n tv_likes.setText(HelperMethods.getStringViewsFromInt(dataModel.getLikes(), \"likes\"));\n tv_synopsis.setText(dataModel.getSynop_desc());\n tv_artists.setText(dataModel.getArtist_actors());\n tv_contacts.setText(dataModel.getContacts());\n\n }", "public void setData(Post item) {\n a.setText(points + \" points\");\n this.dataItem = item;\n title.setText(item.getTitle());\n desc.setText(item.getDesc());\n upvoted.setEnabled(!item.isUpvoted());\n downvoted.setEnabled(!item.isDownvoted());\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n\n\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }", "@Override\n public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n DetailedResponse detailedResponse = getItem(position);\n\n // - replace the contents of the view with that element\n // holder.title.setText(sampleBook.getFkBookInfoModel());\n holder.bind(detailedResponse);\n\n }", "public interface WaterAndSandDetailsView extends BaseView {\n void successData(Map<String, String> data);\n\n}", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "@Override\n public void onResult(JSONObject object) {\n processJson(object);\n recyclerView = findViewById(R.id.reyclerView);\n recyclerView.setHasFixedSize(true); //sets a fixed size for the recycler view size, not the elements in the recycler view\n recyclerView.setLayoutManager(new LinearLayoutManager(this_exercise)); //setting the orientation of the recyclerview (by default it is vertical\n\n //each item in the arraylist will be an object. Each object is created in the detail file and add()ed here\n //this will become the google sheets feed soon\n ExerciseListAdapter adaptor = new ExerciseListAdapter(this_exercise, exerciseList);\n recyclerView.setAdapter(adaptor);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(this_exercise));\n mAdapter = new ExerciseListAdapter(this_exercise, exerciseList);\n recyclerView.setAdapter(mAdapter);\n mAdapter.setClickListener(this_exercise);\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n nameTextView = (TextView) itemView.findViewById(R.id.torrent_name);\n movieImageView = (ImageView) itemView.findViewById(R.id.movie_image);\n }", "@Override\n public void onResponse(Call<List<String>> call, Response<List<String>> response) { //ViewModel had what we asked for and all is well\n //Declare and instantiate an instance of the ShibeAdapter class called adapter.\n // Pass the body of the response the viewModel gave us to the adapter\n ShibeAdapter adapter = new ShibeAdapter(response.body());\n\n //tell the recyclerView to use our handy dandy new ShibeAdapter.\n rvShibes.setAdapter(adapter);\n }", "public ViewHolder(@NonNull View itemView) {\n super(itemView);\n txvNombreMascotaDesparasitante = itemView.findViewById(R.id.txvNombreMascotaDesparasitante);\n txvNombreDesparasitante = itemView.findViewById(R.id.txvNombreDesparasitante);\n txvPesoDesparasitante = itemView.findViewById(R.id.txvPesoDesparasitante);\n txvFechaAplicacionDesparasitante = itemView.findViewById(R.id.txvFechaAplicacionDesparasitante);\n \n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n nameTextView = (TextView) itemView.findViewById(R.id.user_name);\n startTextView = (TextView) itemView.findViewById(R.id.start_date);\n }", "@Override\n public void onClick(View v) {\n ItemsModel item = itemsModelListFiltered.get(position);\n ItemViewF itemViewGirl = new ItemViewF();\n Bundle args = new Bundle();\n args.putSerializable(\"item\", item);\n itemViewGirl.setArguments(args);\n\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,\n itemViewGirl).addToBackStack(null).commit();\n }", "@Override\n public void onBindViewHolder(TorrentsAdapter.ViewHolder viewHolder, int position) {\n // Get the data model based on position\n Torrent torrent = mTorrents.get(position);\n viewHolder.itemView.setTag(R.id.movie_url, torrent);\n // Set item views based on your views and data model\n TextView textView = viewHolder.nameTextView;\n textView.setText(torrent.getName());\n ImageLoader imageLoader = ImageLoader.getInstance();\n ImageView imageView = viewHolder.movieImageView;\n imageLoader.displayImage(torrent.getCoverUrl(), imageView);\n\n\n viewHolder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Torrent torrent = (Torrent) v.getTag(R.id.movie_url);\n Log.d(\"Clicked url\", torrent.getUrl());\n new GetInfoTorrents().execute(torrent, mContext);\n/*\n */\n\n }\n });\n\n\n }", "public void loadItemNotes(View view, Order_Item item) {\n Intent i = new Intent(getActivity(), item_notes.class);\n b.putSerializable(\"item\", item);\n i.putExtras(b);\n startActivity(i);\n }", "private void getAttributes(View view) {\n firstName = view.findViewById(R.id.user_first_name);\n vibez = view.findViewById(R.id.vibePointsNum);\n vibezString = view.findViewById(R.id.myVibe);\n myBooksRecyclerView = view.findViewById(R.id.my_books_recycler_view);\n booksIReadRecyclerView = view.findViewById(R.id.books_i_read_recycler_view);\n ownerImg = (CircleImageView) view.findViewById(R.id.circ_image);\n }", "private void getFavData() {\n favouriteViewModel.getFavouritePostData().observe(this, result -> {\n if (result != null) {\n if (result.status == Status.SUCCESS) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n itemViewModel.setItemDetailObj(itemViewModel.itemId, itemViewModel.historyFlag, loginUserId);\n }\n\n } else if (result.status == Status.ERROR) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n }\n }\n }\n });\n }", "public ViewHolder(@NonNull View itemView) {\n\n super(itemView);\n mView = itemView;\n\n //This views holds on activity - have actions -\n btn_blog_like = mView.findViewById(R.id.blog_like);\n blogCommentBtn = mView.findViewById(R.id.blog_comment_icon);\n\n }", "private void setViewStateBasedOnModel() {\n\n\t\t//Log.e(TAG, \"order = \" + order);\n\t\tif (order != null && dossierAftersalesResponse != null) {\n\n\t\t\tList<TravelSegment> travelSegments = dossierAftersalesResponse.getReservationForCurrentTravelSegment(travelSegment);\n\t\t\tif (travelSegments.size() == 0) {\n\t\t\t\ttravelSegments.add(travelSegment);\n\t\t\t}\n\t\t\tif (travelSegments != null) {\n\t\t\t\tseatingInfoList.removeAllViews();\n\t\t\t\tticketsDetailSeatlocationAdapter = new TicketsDetailSeatlocationAdapter(\n\t\t\t\t\t\tthis.getApplicationContext(),\n\t\t\t\t\t\tR.layout.tickets_detail_seatlocation_adapter,\n\t\t\t\t\t\ttravelSegments, dossierAftersalesResponse, assistantService, order);\n\t\t\t\tseatingInfoList.setAdapter(ticketsDetailSeatlocationAdapter);\n\t\t\t}\n\t\t\t// Log.e(TAG, \"title = \"+title);\n\t\t\t// Log.e(TAG,\n\t\t\t// \"myState.dossierAftersalesResponse.getDnrId() = \"+myState.dossierAftersalesResponse.getDnrId());\n\t\t\ttitle.setText(getString(R.string.ticket_detail_title) + \" \" + dossierAftersalesResponse.getDnrId());\n\t\t\tsetDataForBooingDetails();\n\t\t\tsetDataForStationInfo();\n\t\t\tsetDataForDeliveryMethod();\n\t\t\tList<String> barcodes = dossierAftersalesResponse.getBarcodeOfCurrentTravelSegment(travelSegment);\n\t\t\tif (barcodes != null && barcodes.size() > 0) {\n\t\t\t\tqrCodeButton.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\tqrCodeButton.setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// Log.d(TAG,\n\t\t\t// \"myState.dossierAftersalesResponse.getPdfUrl()::::::::::\" +\n\t\t\t// myState.dossierAftersalesResponse.getPdfUrl());\n\t\t\tif (dossierAftersalesResponse.getHomePrintTickets() != null) {\n\t\t\t\t\n\t\t\t\thomePrintTickets = dossierAftersalesResponse.getHomePrintTicketsByTravelSegment(travelSegment);\n\t\t\t\tif (homePrintTickets != null && homePrintTickets.size() > 0) {\n\t\t\t\t\tpdfButton.setVisibility(View.VISIBLE);\n\t\t\t\t}else {\n\t\t\t\t\tpdfButton.setVisibility(View.GONE);\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\n\t\t\t\tpdfButton.setVisibility(View.GONE);\n\t\t\t}\n\n/*\t\t\tif (myState.dossierAftersalesResponse\n\t\t\t\t\t.getExchangeStateForCurrentTravelSegment(travelSegment)) {\n\t\t\t\texchangeButton.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\texchangeButton.setVisibility(View.GONE);\n\t\t\t}\n\t\t\tif (myState.dossierAftersalesResponse\n\t\t\t\t\t.getCancellationStateForCurrentTravelSegment(travelSegment)) {\n\t\t\t\tcancelButton.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\tcancelButton.setVisibility(View.GONE);\n\t\t\t}*/\n\t\t\t// Log.e(TAG,\n\t\t\t// myState.dossierAftersalesResponse.getSelectedDeliveryMethod());\n\t\t}\n\t}", "public interface ExpensesRecordView extends BaseView {\n void showData(List entityList);\n}", "public void fillViews(){\n if(interestPoint.getContents().size() > 0){\n contentList = (RecyclerView)findViewById(R.id.recyclerView);\n contentList.setAdapter(new ContentSelectionAdapter(this, interestPoint.getContents())); // Pass the ids for the icons\n contentList.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n\n // Get first subject to populate views\n Content first = interestPoint.getContents().get(0);\n\n Content.DisplayValues dv = first.getDisplayValues(Locale.getDefault());\n ((TextView) findViewById(R.id.subject_title)).setText(dv.title);\n ((TextView) findViewById(R.id.subject_content)).setText(Html.fromHtml(dv.description));\n\n // Load multimedia\n LayoutInflater inflater = getLayoutInflater();\n LinearLayout linearLayout = ((LinearLayout)findViewById(R.id.content_container));\n linearLayout.removeAllViewsInLayout();\n for(Multimedia m : first.getMultimedia()){\n NetworkImageView imageView = (NetworkImageView) inflater.inflate(R.layout.content_image, null);\n String url = \"http://\" + m.geteURL();\n ImageLoader loader = RequestManager.getInstance(getApplicationContext()).getImageLoader();\n loader.get(url, loader.getImageListener(imageView, R.mipmap.ic_launcher, R.mipmap.ic_launcher_round));\n imageView.setImageUrl(url, loader);\n\n linearLayout.addView(imageView);\n }\n\n final int pathID = (int)getIntent().getExtras().getLong(\"PathwayID\");\n // Read the path from the network\n PathUtils.readPathFromNetwork(this, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n path = PathwayJSON.createFullPathFromJSON(ContentActivity.this, response);\n }catch(Exception e){\n Log.e(\"PATH LOADING ERROR\", \"Failed loading the path\");\n }\n\n ((TextView)findViewById(R.id.regionText)).setText(String.valueOf(path.getreg()));\n ((TextView)findViewById(R.id.countryText)).setText(String.valueOf(path.getcouEN()));\n\n }\n }, pathID);\n }\n }", "public FoodHolder(@NonNull View itemView) {\n super(itemView);\n name = itemView.findViewById(R.id.textview_food_name);\n sugars = itemView.findViewById(R.id.textview_food_grams_sugar);\n foodType = itemView.findViewById(R.id.textview_food_foodtype);\n viewBackground = itemView.findViewById(R.id.layout_single_food_background);\n viewForeground = itemView.findViewById(R.id.layout_single_food_foreground);\n }", "public interface ICategoryView extends IMvpView {\n\n void addCatrgoty(List<CategoryOneBean> data);\n void onFaile(Call call, Throwable t, int code, String errorMsg);\n\n}", "public void setUpViews(){\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }\n });\n }", "@Override\n\tprotected void setViews() {\n\t\tlv = (XListView) findViewById(R.id.activity_fund_history_lv_content);\n\t\tlv.setPullRefreshEnable(false);\n\t\tlv.setPullLoadEnable(false);\n\t\tlv.setAdapter(adapter);\n\t\tgetMoneyChageRequest();\n\t}", "public void fillView(String location){\n AsyncHttpClient client = new AsyncHttpClient();\n\n\n RequestHeaders authorization = new RequestHeaders();\n authorization.put(\"Authorization\", \"Bearer \" + getResources().getString(R.string.rest_secret));\n\n adapter.clear();\n String apiUrl = \"https://api.yelp.com/v3/businesses/search\";\n RequestParams params = new RequestParams();\n\n params.put(\"location\", location);\n params.put(\"categories\", \"restaurant\");\n final JSONArray results = new JSONArray();\n\n\n // Client call to yelp api\n client.get(apiUrl,authorization, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Headers headers, JSON json) {\n JSONObject jsonObject = json.jsonObject;\n try{\n JSONArray results = jsonObject.getJSONArray(\"businesses\");\n\n for (int i = 0; i < results.length(); i++) {\n JSONObject rest = results.getJSONObject(i);\n Restaurant restaurant = new Restaurant(rest);\n restaurants.add(restaurant);\n }\n adapter.notifyDataSetChanged();\n\n\n\n } catch (JSONException e) {\n Log.e(TAG, \"Hit json exception\",e);\n }\n }\n @Override\n public void onFailure(int statusCode, Headers headers, String response, Throwable throwable) {\n Log.i(TAG, throwable.toString() + response);\n\n }\n });\n }", "public ViewHolder(@NonNull View view, Context ctx) {\n super(view);\n context = ctx;\n\n taskName = view.findViewById(R.id.item_name);\n taskDescription = itemView.findViewById(R.id.item_description);\n taskPriority = itemView.findViewById(R.id.item_priority);\n dateAdded = itemView.findViewById(R.id.item_date);\n\n editButton = itemView.findViewById(R.id.editButton);\n deleteButton = itemView.findViewById(R.id.deleteButton);\n\n editButton.setOnClickListener(this);\n deleteButton.setOnClickListener(this);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView=inflater.inflate(R.layout.fragment_recommend, container, false);\n final ProgressBar pbRecommend= (ProgressBar) rootView.findViewById(R.id.pbRecommend);\n RecyclerView rvRecommend= (RecyclerView) rootView.findViewById(R.id.rvRecommend);\n final ItemAdapter itemAdapter=new ItemAdapter(getActivity(),new ArrayList<FourSquareItem>());\n\n rvRecommend.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false));\n rvRecommend.setAdapter(itemAdapter);\n Bundle bundle=this.getArguments();\n String userll= bundle.getString(\"ll\");\n ApiService.getApi().getRecommendedVenues(BuildConfig.ClientID,BuildConfig.ClientSecret,userll).enqueue(new Callback<FourSquareJSON>() {\n @Override\n public void onResponse(Call<FourSquareJSON> call, Response<FourSquareJSON> response) {\n\n pbRecommend.setIndeterminate(false);\n pbRecommend.setVisibility(View.GONE);\n FourSquareJSON fJson=response.body();\n ArrayList<FourSquareItem>items=fJson.getResponse().getGroups().get(0).getItems();\n itemAdapter.updateItems(items);\n }\n\n @Override\n public void onFailure(Call<FourSquareJSON> call, Throwable t) {\n Toast.makeText(getActivity(),\"Error in fetching data\",Toast.LENGTH_SHORT).show();\n\n }\n });\n\n return rootView;\n }", "private void getData() {\n ArticleBean articleBean = new ArticleBean();\n articleBean.setTime(\"1月16日\");\n articleBean.setTitle(\"文章内容\");\n articleBean.setName(\"xzh\");\n mList.add(articleBean);\n mList.add(articleBean);\n mList.add(articleBean);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.list_main, container, false);\n ButterKnife.bind(this, view);\n Log.i(\"floorfragment\", \"floorfragment\");\n realm = Realm.getDefaultInstance();\n floorHelper = new floorRealmHelper(getActivity(), realm);\n roomHelper = new roomRealmHelper(getActivity(), realm);\n session = new SessionManagement(getActivity());\n api = new ApiClient();\n progressDialog = new ProgressDialog(getContext());\n\n //update 0212 : Mengambil data floor sesuai cluster_id\n Bundle bundle = this.getArguments();\n cluster_id = null;\n project_id = null;\n if (bundle != null) {\n cluster_id = bundle.getString(\"cluster_id\");\n project_id = bundle.getString(\"project_id\");\n }\n Log.i(\"floorfragment\", \"cluster id\" + cluster_id);\n Log.i(\"floorfragment\", \"project_id id\" + project_id);\n\n AsyncCallWS task = new AsyncCallWS();\n task.execute();\n\n Log.d(\"floorFragment\", cluster_id + \"\");\n// mAdapter = new FloorAdapter(getActivity(), floorModels, roomHelper);\n\n return view;\n }", "@Override\n\tpublic void initView() {\n\t\totherFee = new ArrayList<OtherFee>();\n\t\tMyApplication.addActivity(this);\n\t\trl_back_otherfee = (RelativeLayout) findViewById(R.id.rl_back_otherfee);\n\t\tlv_otherfee = (PullToRefreshListView) findViewById(R.id.lv_otherfee);\n\t\tlv_otherfee.setOnRefreshListener(this);\n\t\tlv_otherfee.setMode(Mode.BOTH);\n\t\tlvadapter = new MylVAdapter();\n\t\tlv_otherfee.setAdapter(lvadapter);\n\t\tgetData(1, pageSize);\n\t}", "@Override\n public void onResponse(Call<UPKResponse> call, Response<UPKResponse> response) {\n Log.d(\"Success\", \"in there\");\n Log.d(\"YOOO\", \"POJO\" + response.body());\n UPKResponse upkResponse = response.body();\n mUPKList = upkResponse.getRows();\n// uPKReceyclerView.setLayoutManager(new LinearLayoutManager(MapsActivity_Hakeem.getView().getContext()));\n// UPKMapAdapter adapter = new UPKMapAdapter(mUPKList);\n// uPKReceyclerView.setAdapter(adapter);\n Log.d(\"Adapter\", \"adapter attached\");\n\n data = response.body().getRows();\n System.out.println(data);\n System.out.println(\"UPK DATA STREAM\");\n// childCareAdapter = new ChildCareAdapter(response.body());\n// childCareRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n// childCareRecyclerView.setAdapter(adapter);\n }", "@Override\n public void onResponse(Call<ResponseContent> call, Response<ResponseContent> response) {//obtener datos\n\n ResponseContent data = response.body();\n\n boolean answer = ValidateResponse( data );\n\n if( answer ){\n\n try{\n\n JSONArray arrayResult = data.getResults();\n JSONObject index = data.getIndex();\n\n for( int c = arrayResult.length() -1; c >= 0; c-- ){\n\n String id = arrayResult.getJSONObject(c)\n .getString( index.getString(\"0\") );\n String name = arrayResult.getJSONObject(c)\n .getString( index.getString(\"1\") );\n\n contentList.addView( GenerateComponentsList(c, name, id) );\n\n }\n }catch (Exception e){\n new ServicesPeticion().SaveError(e,\n new Exception().getStackTrace()[0].getMethodName().toString(),\n this.getClass().getName());\n }\n\n }else{\n Log.i( mss.TAG, data.getBody().toString() );\n }\n\n\n }", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "@Override\n public View getItemView(final ParseObject object, View v, ViewGroup parent) {\n if (v == null) {\n v = View.inflate(getContext(), R.layout.row_user_albumn, null);\n }\n\n super.getItemView(object, v, parent);\n\n\n // Add the title view\n TextView title = (TextView) v.findViewById(R.id.row_user_albumn_title);\n title.setText(object.getString(\"user_name\"));\n\n TextView date = (TextView) v.findViewById(R.id.row_user_albumn_date);\n date.setText(object.getString(\"name\"));\n\n LinearLayout layout = (LinearLayout) v.findViewById(R.id.row_albumn);\n layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(context, Pictures.class);\n intent.putExtra(\"albumnID\", object.getObjectId().toString());\n context.startActivity(intent);\n }\n });\n\n return v;\n }", "@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }", "private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }", "@Override\n public void onResponse(Call<JsonListResult<Material>> call, Response<JsonListResult<Material>> response) {\n Log.e(TAG, \"CAISHICAI\");\n if (response.body() != null) {\n\n mMaterials = response.body().getData();\n layoutManager = new LinearLayoutManager(getActivity());\n mRecyclerView.setLayoutManager(layoutManager);\n MaterialAdapter stepAdapter = new MaterialAdapter(getActivity(), mMaterials);\n mRecyclerView.setAdapter(stepAdapter);\n\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n\n // ListView Clicked item value\n Markers itemValue = (Markers) listView.getItemAtPosition(position);\n\n // Show Alert\n Toast.makeText(getApplicationContext(),\n \"Position :\"+itemPosition+\" ListItem : \" +itemValue.getId() , Toast.LENGTH_LONG)\n .show();\n String strurl = \"http://fypfinal20160320031344.azurewebsites.net/api/Readings/add/\";\n StringBuilder url=new StringBuilder(strurl);\n/*read=new Readings();\n read.setConductivity(\"30\");\n read.setPh(\"6\");\n read.setTurbidity(\"5\");\n Date date=new Date();\n String dt=new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\n read.setDate(String.valueOf(date.getDate())+\"-\"+String.valueOf(date.getMonth())+\"-20\"+String.valueOf(date.getYear()));*/\nurl.append(\"0000\"+\"/\"+read.get_ph()+\"/\"+read.get_cond()+\"/\"+read.get_turbudity()+\"/\"+read.get_date()+\"/\"+itemValue.getId()+\"/\");\n Log.d(\"Cloud url\",url.toString());\n new AsyncHttpTask().execute(url.toString());\n }", "public void setItem(BudgetItemModel item) { model= item;}", "public RemoteViews getViewAt(int position) {\n\n String receiptTitle;\n String receiptPrice;\n\n String receiptDate;\n String receiptType;\n\n String receiptPlace;\n\n\n String stockHistory = \"empty\";\n final int itemId = R.layout.list_receipt_widget_item;\n\n RemoteViews rv = new RemoteViews(mContext.getPackageName(), itemId);\n\n\n if (mCursor.moveToPosition(position)) {\n\n receiptTitle = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_title));\n receiptPrice = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_amount));\n receiptDate = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_date));\n\n receiptType = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_type));\n\n receiptPlace = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_place));\n\n\n // Set Stock Value for layout item with the Price, Symbol & Stock Change\n rv.setTextViewText(R.id.receiptTitle, String.valueOf(receiptTitle));\n\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);\n\n\n rv.setTextViewText(R.id.receiptPrice, sp.getString(mContext.getString(R.string.currency_key), mContext.getString(R.string.default_currency)).concat(\" \") + String.valueOf(receiptPrice));\n rv.setTextViewText(R.id.receiptDate, ReceiptsAdapter.getDate(Long.parseLong(String.valueOf(receiptDate))));\n\n\n // Set the click intent so that we can handle it and show a toast message\n final Intent fillInIntent = new Intent();\n final Bundle extras = new Bundle();\n extras.putString(DbSchema.COL_amount, receiptPrice);\n extras.putString(DbSchema.COL_title, receiptTitle);\n\n extras.putString(DbSchema.COL_date, receiptDate);\n\n extras.putString(DbSchema.COL_amount, receiptPrice);\n extras.putString(DbSchema.COL_type, receiptType);\n extras.putString(DbSchema.COL_place, receiptPlace);\n\n fillInIntent.putExtras(extras);\n rv.setOnClickFillInIntent(R.id.receipt_widget_item, fillInIntent);\n }\n\n return rv;\n }", "@Override\n\tpublic void initView() {\n\t\tIntent intent=getIntent();\n\t\tString title=intent.getStringExtra(\"title\");\n\t\tcontext=intent.getStringExtra(\"context\");\n\t\tsetTitle(title);\n\t\tsetGone();\n\t\tsetBack();\n\t\tlist=new ArrayList<GameFighterBean>();\n\t\ttopNewsMoreLV = (LoadListViewnews) findViewById(R.id.lv_more_topnew);\n\t\txuanshou_quanbu_wu = (Button) findViewById(R.id.xuanshou_quanbu_wu);\n\t\txuanshou_quanbu_wu.setVisibility(View.VISIBLE);\n\t\tinitNetwork(context);\n\n\t}", "public void toViewData(View view) {\n final Controller aController = (Controller) getApplicationContext();\n TextView sportName = (TextView) findViewById(R.id.SportName);\n String name = sportName.getText().toString();\n Log.i(\"EllieNull\", name);\n int sport = aController.getSport(name).getStyle();\n if (sport == 1) {\n Intent intent = new Intent(SportHome.this, ViewData.class);\n intent.putExtra(\"sportName\", sportName.getText());\n startActivity(intent);\n } else if (sport == 2) {\n Intent intent = new Intent(SportHome.this, Timevstime.class);\n intent.putExtra(\"sportName\", sportName.getText());\n startActivity(intent);\n } else if (sport == 3) {\n Intent intent = new Intent(SportHome.this, DistanceGraph.class);\n intent.putExtra(\"sportName\", sportName.getText());\n startActivity(intent);\n } else if (sport == 4) {\n Intent intent = new Intent(SportHome.this, Accuracyvstime.class);\n intent.putExtra(\"sportName\", sportName.getText());\n startActivity(intent);\n } else if (sport == 5) {\n Intent intent = new Intent(SportHome.this, Pointsvstime.class);\n intent.putExtra(\"sportName\", sportName.getText());\n startActivity(intent);\n }\n }", "public interface IParkingListMvpView extends MvpView {\n\n void onFetchDataCompleted(List<ParkingModel> parkingModels);\n}", "public interface InformationView extends BaseView {\n String getPage();\n String getPagecount();\n void getDoctorNoticeList(ResultModel<List<InfoUserNoticeListBean>> model);\n\n String getUserUuid();\n void getInformationList(ResultModel<InformationBean> model);\n\n\n}", "@Override\n public void setItemsResponse(Context context) {\n // Load string from the given all.json file.\n String jsonString = JSONUtils.loadJSONFromAsset(context, DATA_FILE_NAME);\n\n try {\n // Create JSONObject of the response.\n JSONObject jsonObject = new JSONObject(jsonString);\n\n // Retrieve \"result\" and \"data\" from the response.\n String result = jsonObject.getString(\"result\");\n\n JSONArray dataArray = jsonObject.getJSONArray(\"data\");\n List<Item> dataList = new ArrayList<>();\n\n for (int i = 0; i < dataArray.length(); ++i) {\n JSONObject object = dataArray.getJSONObject(i);\n Item item = new Item(\n object.getString(\"id\"),\n object.getString(\"name\"),\n object.getLong(\"num_likes\"),\n object.getLong(\"num_comments\"),\n object.getLong(\"price\"),\n object.getString(\"photo\"),\n object.getString(\"status\")\n );\n dataList.add(item);\n }\n\n // Instantiate the response object with the \"result\" and \"data\".\n mItemsResponse = new Response(result, dataList);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public ViewHolder(View itemView) {\n tvGrupo = (TextView) itemView.findViewById(R.id.tvGrupo);\n tvNCD = (TextView) itemView.findViewById(R.id.tvNCD);\n tvACD = (TextView) itemView.findViewById(R.id.tvACD);\n ivCD = (ImageView) itemView.findViewById(R.id.ivCD);\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void bindView(View view, Context context, Cursor cursor) {\n if(Utils.weAreLollipop())view.findViewById(R.id.card).setElevation(contex.getResources().getDimension(R.dimen.elevation));\n String title=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_TITLE));\n long itemID=cursor.getLong(cursor.getColumnIndexOrThrow(Contract.ITEM_ID));\n String date=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_DATE));\n String sub=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_SUBTITLE));\n TextView titleTextView= (TextView) view.findViewById(R.id.title);\n TextView subTextView= (TextView) view.findViewById(R.id.sub);\n TextView idTextView= (TextView) view.findViewById(R.id.item_id);\n TextView dateTextView= (TextView) view.findViewById(R.id.date);\n titleTextView.setText(title!=null?title:\"\");\n subTextView.setText(sub!=null?sub:\"\");\n idTextView.setText(\"\"+itemID);\n dateTextView.setText(date!=null?date:\"\");\n }", "public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n /* Get the incoming data from the calling activity */\n String itemKey = getIntent().getStringExtra(\"com.gimranov.zandy.client.itemKey\");\n item = Item.load(itemKey);\n \n // When an item in the view has been updated via a sync, the temporary key may have\n // been swapped out, so we fall back on the DB ID\n if (item == null) {\n String itemDbId = getIntent().getStringExtra(\"com.gimranov.zandy.client.itemDbId\");\n \titem = Item.loadDbId(itemDbId);\n }\n \t\n // Set the activity title to the current item's title, if the title works\n if (item.getTitle() != null && !item.getTitle().equals(\"\"))\n \tthis.setTitle(item.getTitle());\n else\n \tthis.setTitle(\"Item Data\");\n \n ArrayList<Bundle> rows = item.toBundleArray();\n \n /* \n * We use the standard ArrayAdapter, passing in our data as a Bundle.\n * Since it's no longer a simple TextView, we need to override getView, but\n * we can do that anonymously.\n */\n setListAdapter(new ArrayAdapter<Bundle>(this, R.layout.list_data, rows) {\n \t@Override\n \tpublic View getView(int position, View convertView, ViewGroup parent) {\n \t\tView row;\n \t\t\n // We are reusing views, but we need to initialize it if null\n \t\tif (null == convertView) {\n LayoutInflater inflater = getLayoutInflater();\n \t\t\trow = inflater.inflate(R.layout.list_data, null);\n \t\t} else {\n \t\t\trow = convertView;\n \t\t}\n \n \t\t/* Our layout has just two fields */\n \t\tTextView tvLabel = (TextView) row.findViewById(R.id.data_label);\n \t\tTextView tvContent = (TextView) row.findViewById(R.id.data_content);\n \t\t\n \t \t/* Since the field names are the API / internal form, we\n \t \t * attempt to get a localized, human-readable version. */\n \t\ttvLabel.setText(Item.localizedStringForString(\n \t\t\t\t\tgetItem(position).getString(\"label\")));\n \t\t\n \t\tString content = getItem(position).getString(\"content\");\n \t\t\n \t\ttvContent.setText(content);\n \n \t\treturn row;\n \t}\n });\n \n ListView lv = getListView();\n lv.setTextFilterEnabled(true);\n lv.setOnItemClickListener(new OnItemClickListener() {\n \t// Warning here because Eclipse can't tell whether my ArrayAdapter is\n \t// being used with the correct parametrization.\n \t@SuppressWarnings(\"unchecked\")\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a click on an entry, do something...\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\tif (row.getString(\"label\").equals(\"url\")) {\n \t\t\trow.putString(\"url\", row.getString(\"content\"));\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"DOI\")) {\n \t\t\tString url = \"http://dx.doi.org/\"+Uri.encode(row.getString(\"content\"));\n \t\t\trow.putString(\"url\", url);\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn;\n \t \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \t \tLog.d(TAG, \"Trying to start attachment activity\");\n \t \t \tIntent i = new Intent(getBaseContext(), AttachmentActivity.class);\n \t \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \t \tstartActivity(i);\n \t \t\t\treturn;\n \t \t\t}\n \t\t\n \t\t\t\tToast.makeText(getApplicationContext(), row.getString(\"content\"), \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t}\n });\n \n /*\n * On long click, we bring up an edit dialog.\n */\n lv.setOnItemLongClickListener(new OnItemLongClickListener() {\n \t/*\n \t * Same annotation as in onItemClick(..), above.\n \t */\n \t@SuppressWarnings(\"unchecked\")\n \t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a long click on an entry, we'll provide a way of editing it\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\t// Show the right type of dialog for the row in question\n \t\tif (row.getString(\"label\").equals(\"itemType\")) {\n \t\t\t// XXX \n \tToast.makeText(getApplicationContext(), \"Item type cannot be changed.\", \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t//removeDialog(DIALOG_ITEM_TYPE);\n \t\t\t//showDialog(DIALOG_ITEM_TYPE, row);\n \t\t\treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \tLog.d(TAG, \"Not starting children activity on click-and-hold\");\n \t \treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn true;\n \t\t}\n \t\t\tremoveDialog(DIALOG_SINGLE_VALUE);\n \t\tshowDialog(DIALOG_SINGLE_VALUE, row);\n \t\treturn true;\n }\n });\n \n }", "public ViewHolder(View itemView) {\n super(itemView);\n\n listName = (TextView) itemView.findViewById(R.id.listName);\n remainingItems = (TextView) itemView.findViewById(R.id.remainingItems);\n listButtonLayout = (LinearLayout) itemView.findViewById(R.id.listButtonLayout);\n btnView = (Button) listButtonLayout.findViewById(R.id.btnEditList);\n btnDeleteList = (Button) listButtonLayout.findViewById(R.id.btnDeleteList);\n\n\n }", "@Override\n public void loadItems(){\n Log.d(\"Presenter\",\"Loading Items\");\n mRepository.getItems(new DataSource.LoadItemsCallback() {\n @Override\n public void onItemsLoaded(List<Session> sessions) {\n Log.d(\"PRESENTER\",\"Loaded\");\n\n //mView.showItems(Items);\n }\n\n @Override\n public void onDataNotAvailable() {\n Log.d(\"PRESENTER\",\"Not Loaded\");\n }\n });\n }", "private void loadList(final String vista_id){\n\n StringRequest stringRequest = new StringRequest(Request.Method.GET, JSON_URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try {\n JSONObject object = new JSONObject(response);\n JSONArray eventsArray = object.getJSONArray(\"Events\");\n\n for(int i=0; i<eventsArray.length(); i++)\n {\n JSONObject eventsObject = eventsArray.getJSONObject(i);\n EventsModel event = new EventsModel(eventsObject.getString(\"title\"),eventsObject.getString(\"url\"),eventsObject.getString(\"date\"),eventsObject.getString(\"time\"),eventsObject.getString(\"description\"),eventsObject.getString(\"location\"),eventsObject.getString(\"cost\"));\n itemList.add(event);\n// Log.e(\"List\", itemList.get(i).getUrl());\n }\n\n carouselViewTop.setImageListener(new ImageListener() {\n @Override\n public void setImageForPosition(int position, ImageView imageView) {\n Log.e(\"List\", itemList.get(position).getUrl());\n// imageView.setImageResource(R.drawable.vistalogo_dark);\n String urlToLoad=itemList.get(position).getUrl();\n\n Picasso.with(getApplicationContext()).load(urlToLoad).into(imageView);\n }\n });\n\n carouselViewTop.setImageClickListener(new ImageClickListener() {\n @Override\n public void onClick(int position) {\n Intent intent = new Intent(getApplicationContext(), PurchaseEventActivity.class);\n intent.putExtra(\"title\",itemList.get(position).getTitle());\n intent.putExtra(\"date\",itemList.get(position).getDate());\n intent.putExtra(\"time\",itemList.get(position).getTime());\n intent.putExtra(\"description\",itemList.get(position).getDescription());\n intent.putExtra(\"img_url\",itemList.get(position).getUrl());\n intent.putExtra(\"cost\", itemList.get(position).getCost());\n intent.putExtra(\"location\", itemList.get(position).getLocation());\n intent.putExtra(\"vista_id\", vista_id);\n startActivity(intent);\n }\n });\n\n carouselViewTop.setPageCount(itemList.size());\n\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());\n requestQueue.add(stringRequest);\n\n }", "private void initView(){\n recordData = NewDataManager.getIntance(this).getRecordData();\n Log.w(\"zsbin\",\"recordData size= \"+recordData.size());\n objects = recordData.keySet().toArray();\n for(Object tmp: objects){\n long time = (long)tmp;\n mTopStrings.add((time/100000000)+\"年\"+\n (time%100000000/1000000)+\"月\"+\n (time%1000000/10000)+\"日\"+\n (time%10000/100)+\":\"+\n (time%100));\n }\n Log.w(\"zsbin\",\"mTopStrings= \"+mTopStrings.toString());\n HeadLIstViewAdapter topAdapter = new HeadLIstViewAdapter(this,mTopStrings);\n mTopListView.setAdapter(topAdapter);\n setListViewHeightBasedOnChildren(mTopListView);\n mTopListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n long object = (long) objects[position];\n Intent intent = new Intent(ShowDataActivity.this,ChengbenActivity2.class);\n intent.putExtra(\"time\",object);\n startActivity(intent);\n }\n });\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6585534", "0.6566039", "0.6556458", "0.6453271", "0.64226663", "0.6360739", "0.6359273", "0.63259286", "0.62396", "0.6224775", "0.61985916", "0.6165549", "0.61087686", "0.60810435", "0.60419977", "0.60412294", "0.6039853", "0.60300076", "0.60053337", "0.5992436", "0.5986178", "0.5976423", "0.59667313", "0.5957723", "0.59445095", "0.5940391", "0.5937673", "0.5934253", "0.5906355", "0.5898665", "0.58925885", "0.5880406", "0.58696467", "0.5863463", "0.5858386", "0.5852467", "0.5845981", "0.58407104", "0.5832749", "0.58301777", "0.58240855", "0.5821624", "0.58206767", "0.5801496", "0.57999444", "0.5797757", "0.5793344", "0.5789681", "0.5787836", "0.5785226", "0.57839686", "0.5780215", "0.57664746", "0.57652915", "0.57556003", "0.57333356", "0.5731171", "0.5728608", "0.5722947", "0.57156736", "0.5712352", "0.5698609", "0.5698326", "0.5697336", "0.56963056", "0.5695039", "0.56926435", "0.5690156", "0.5688804", "0.56841534", "0.56838465", "0.56834006", "0.5681502", "0.56733793", "0.56636566", "0.5662234", "0.566062", "0.5657834", "0.5653716", "0.56455445", "0.56438285", "0.5638154", "0.563481", "0.56333166", "0.5633133", "0.56309396", "0.5630015", "0.5626984", "0.5624485", "0.5624226", "0.5624031", "0.5622332", "0.5621936", "0.56216013", "0.5617328", "0.5605472", "0.5600163", "0.55900663", "0.55864555", "0.5586071", "0.5584409" ]
0.0
-1
to verify the item number
@Override public int getItemCount() { return dataList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void VerifySkuPageItemNumber(String ItemNumber){\r\n\t\tString itemNumber = getValue(ItemNumber);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- SKU Page Item Number is verified\");\r\n\t\ttry{\r\n\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtSkuItemnumber\"),itemNumber)) { \r\n\t\t\t\twaitForPageToLoad(20);\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- SKU Page Displayed\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SKU Page is not displayed \"+elementProperties.getProperty(\"txtSkuItemnumber\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \" + elementProperties.getProperty(\"txtSkuItemnumber\").toString().replace(\"By.\", \" \") + \" not found\");\r\n\t\t}\r\n\t}", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "public void setItemNo(int value) {\n this.itemNo = value;\n }", "@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\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}\t\t\r\n\r\n\t}", "public boolean verifyCartItem()\n\t{ if (einKaufswagenBtn.isDisplayed())\n\t{\n\t\teinKaufswagenBtn.click();\n\t}\n\tfor (int j=0;j<collectnToStorePrdktIdLst.size();j++)\n\t{\n\t\tString expectedProduct1=collectnToStorePrdktIdLst.get(j);\n\t\tList<WebElement> fndProduct=driver.findElements(By.xpath(\"//form[@id='activeCartViewForm']//div[@class='a-section a-spacing-mini sc-list-body sc-java-remote-feature']//div[@class='a-row sc-list-item sc-list-item-border sc-java-remote-feature']\"));\n\t\tfor (int e=0;e<=fndProduct.size();e++)\n\t\t{\n\t\t\tString actProdkt=fndProduct.get(e).getAttribute(\"data-asin\");\n\t\t\tif (actProdkt.contains(expectedProduct1))\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (cnt==2)\n\t{\n\t\treturn true;\n\t}\n\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "public int getItemNo() {\n return itemNo;\n }", "private boolean validIndex(int index)\n {\n if(index >= 0 && index < songs.size())\n return true;\n else\n {\n System.out.println(\"not valid number as index\");\n return false;\n }\n }", "private static void modifyItemNumberInCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.print(\" Please enter the number of the item you would like to change to: \");\r\n\t\tint numberOfTheItems = getUserIntInput();\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t\tif (numberOfTheItems == 0) {\r\n\t\t\t\t\tit.remove();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcart.changeProductCount(item.getKey(), numberOfTheItems);\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item number modified successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "private int extractItemNo(String item) {\n Pattern p = Pattern.compile(\"\\\\((.*?),\");\n Matcher m = p.matcher(item);\n if(m.find()) {\n return Integer.parseInt(m.group(1));\n }\n throw new IllegalArgumentException(\"Item No is wrongly formatted in: \" + item);\n\n }", "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "public int getItemNo() {\r\n\t\treturn itemNo;\r\n\t}", "@Test (groups = {\"smokeTest\"})\n public void checkTheStatusOfItem() {\n purchases.switchTab(\"Incoming Products\");\n List<WebElement> statusValues = $$(byXpath(\"//td[@class='o_data_cell o_readonly_modifier']\"));\n int totalNumOfStatusValues = statusValues.size();\n //System.out.println(\"The total number of status values: \" + totalNumOfStatusValues);\n int counter =0;\n for (WebElement statusValue : statusValues) {\n String statusText=statusValue.getText();\n counter++;\n Assert.assertTrue((statusText.equals(\"Available\")||statusText.equals(\"Waiting Availability\")) && (!statusText.isEmpty()), \"The status of an item is not displayed.\");\n }\n //System.out.println(\"The number of status values found by counter: \" + counter);\n Assert.assertEquals(totalNumOfStatusValues, counter, \"The total number of status values doesn't match with counter.\");\n\n\n }", "protected void validateItem(Item[] param) {\r\n }", "public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }", "public void ClickItemChkboxinFrequentlyBrought(String itemnumber){\r\n\t\tint item = Integer.valueOf(getValue(itemnumber));\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Third item should be unchecked from Frequenlty bought items\");\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"chkFrequentlybrought\"));\r\n\t\t\tclick(ele.get(item-1));\r\n\t\t\tSystem.out.println(item+\" item checbox is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Third item is unchecked from Frequenlty bought items\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Third item is not unchecked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"chkFrequentlybrought\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "public Integer getItemNo() {\n\t\treturn itemNo;\n\t}", "public boolean isValidItem() {\n return validItem;\n }", "public int isAvailable(int sNo){\n\n\n\n for (int i=0; i<count; i++){\n\n if (sNo == theBooks[i].sNo){\n if(theBooks[i].bookQtyCopy > 0){\n\n out.println(\"Book is Available.\");\n return i;\n\n }\n out.println(\"Book is Unavailable\");\n return -1;\n\n }\n\n }\n\n out.println(\"No Book of Serial Number \" + \" Available in Library.\");\n return -1;\n\n\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "void SetItemNumber(int ItemNumber);", "public boolean checkExist(String itemName, int Qty) {\n\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> newItem = new HashMap<>();\n newItem = inventory.get(i);\n if (itemName.equals(newItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) newItem.get(\"Amount\"));\n //isInList = true;\n if (a >= Qty) {\n isExist = true;\n break;\n } else {\n isExist = false;\n }\n } else {\n isExist = false;\n }\n\n }\n return isExist;\n\n }", "public void OrderByitemNumber(String item){\r\n\t\tString orderbyitemnumber = getValue(item);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+orderbyitemnumber);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- OrderByitemnumber should be Added\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"txtItemno\"));\r\n\t\t\tsendKeys(locator_split(\"txtItemno\"), orderbyitemnumber);\r\n\t\t\tsleep(2000);\r\n\t\t\tclick(locator_split(\"btnAddtoList\"));\r\n\t\t\tsleep(3000);\r\n\t\t\tclick(locator_split(\"btnAdditemtocart\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"orderByitemnumber is added.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- OrderByitemnumber is added\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- orderByitemnumber is not added\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtItemno\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnAdditemtocart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void transnoTest() {\n assertEquals(Integer.valueOf(74875), authResponse.getTransno());\n }", "boolean hasQuantity();", "public boolean cannonHasItem(Block b, int id, int num) {\n\t\tDispenser dispenser = (Dispenser) b.getState();\n\t\tif (dispenser.getInventory() != null) {\n\t\t\tfor (ItemStack item : dispenser.getInventory().getContents()) {\n\t\t\t\tif (item != null && item.getTypeId() == id)\n\t\t\t\t\tif (item.getAmount() >= num)\n\t\t\t\t\t\tnum = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tnum = num - item.getAmount();\n\t\t\t\tif (num <= 0)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void testGetNumberOfItemsInInventory() throws IOException{\n\t\tassertEquals(amount, Model.getNumberOfItemsInInventory(item));\n\t}", "protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}", "public int checkNewN(Item item, int n, boolean alreadyInMap){\r\n int newNLocker, newNStorage;\r\n newNLocker = (int)(TWENTY_PERCENT *capacity) / (item.getVolume());\r\n System.out.println(unitMap.get(item.getType()));\r\n if(alreadyInMap) newNStorage = (n+ unitMap.get(item.getType()))- newNLocker;\r\n else newNStorage = n-newNLocker;\r\n if(LTStorage.addItem(item, newNStorage) == ZERO) {\r\n if(alreadyInMap) {\r\n availableCapacity = (availableCapacity +(unitMap.get(item.getType())*item.getVolume()))- (item.getVolume() * newNLocker);\r\n }\r\n else availableCapacity -= item.getVolume() * newNLocker;\r\n unitMap.put(item.getType(), newNLocker);\r\n System.out.println(SUCCESS_MSG);\r\n return ONE;\r\n }\r\n else{\r\n System.out.println(NO_ITEMS_ADDED_NEW_N1 + (newNStorage) + NO_ITEMS_ADDED_NEW_N2 + item.getType());\r\n return NO_ITEMS_ADDED;\r\n }\r\n }", "private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = url.openConnection();\n \tInputStream is = urlConnection.getInputStream();\n \tInputStreamReader isr = new InputStreamReader(is);\n\n \tint numCharsRead;\n \tchar[] charArray = new char[1024];\n \tStringBuffer sb = new StringBuffer();\n \twhile ((numCharsRead = isr.read(charArray)) > 0) {\n \tsb.append(charArray, 0, numCharsRead);\n \t}\n \tString result = sb.toString();\n \t//log(\"ItemID: \" + result);\n \t//window.status.setText(\"Ready\");\n\n \treturn Integer.parseInt(result);\n \t} catch (Exception e) {\n \tlog(\"Exception occurred at getID.\" + e);\n \t}\n\n \treturn 0;\n \t}", "private int findAvailableNo() {\n\t\t//TODO: Maybe add a check that a number doesn't already exist even though it is almost impossible\n\t\tboolean notfound = true;\n\t\tint number = 0;\n\t\tnumber = RANDOM_NUMBER.nextInt(Integer.MAX_VALUE);\n\t\t\n\t\treturn number;\n\t}", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}", "public void EnterQtyInSku(String itemnum){ \r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Quantity should be entered in the quantity box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tsendKeys(locator_split(\"txtSkuPageQty\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Quantity is entered in the quantity box\");\r\n\t\t\tSystem.out.println(\"Quantity is entered in the quantity box - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Quantity is not entered in the quantity box \"+elementProperties.getProperty(\"txtSkuPageQty\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSkuPageQty\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "private static boolean checkTicketNum(int ticketNum) {\n\n return ticketNum > 0;\n }", "private Item chooseValidItem()\n {\n\n // Sets the intial random value.\n int numberRandom = random.nextInt(items.size());\n\n while (trackItems.contains(items.get(numberRandom).getName())){\n numberRandom = random.nextInt(items.size());\n }\n\n // Loops until a unused value is assigned to numberRandom,\n // within the array list size.\n \n trackItems.push(items.get(numberRandom).getName());\n\n return items.get(numberRandom);\n }", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "@Test\n public void testGetNumberAvailable() {\n }", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: false;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "private int containsExactItem(Item item) {\n\t\tfor (Item currentItem : this.items) {\n\t\t\tif (item.equals(currentItem)) {\n\t\t\t\treturn items.indexOf(currentItem);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "int isValidNumber(String typedNumber){\n for(int i = 0; i<numContacts; ++i){\n Contact contact = ValidContactsArray[i];\n String number = contact.getContactNumber();\n if(typedNumber.equals(number)){\n return i;\n }\n }\n //if the contact is not found, return -1\n return -1;\n\n }", "public boolean usesItem(Item item){\n for (char c : item.getName().toCharArray()){\n if(!content.contains( String.valueOf(c) )){\n return false;\n }else {\n// count++;\n }\n }\n\n// System.out.println(item + \" est utilisé \" + count + \" fois\");\n\n return true;\n\n\n// return content.contains(item);\n }", "private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }", "boolean hasBlockNumber();", "boolean hasBlockNumber();", "boolean hasItemIndex();", "boolean hasItemIndex();", "boolean hasItemIndex();", "public void VerifyNoofItemsSelectedandPrice(String price, String noitems){\r\n\t\tString Price = getValue(price);\r\n\t\tString items[]= getValue(noitems).split(\",\",2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- price should be updated\");\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"txtTotalItems\"));\r\n\t\t\tString noofitems= getText(ele.get(Integer.valueOf(items[0])-1));\r\n\t\t\tString Pr= getText(locator_split(\"txtpriceinFrequentlybrought\"));\r\n\t\t\tif(Pr.contains(Price)&items[1].equalsIgnoreCase(noofitems)){\r\n\t\t\t\tSystem.out.println(\"Number of items selected are \"+noofitems+\" and price is \"+Price);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Number of items selected are \"+noofitems+\" and price is \"+Price);\r\n\t\t\t}else{ \r\n\t\t\t\tthrow new Error(\"Price is not updated to \"+Price);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtpriceinFrequentlybrought\").toString() +\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtpriceinFrequentlybrought\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Price is not updated to \"+Price);\r\n\t\t\tthrow new Error(\"Price is not updated to \"+Price);\r\n\t\t}\r\n\r\n\t}", "public int alreadyExists(FoodItem item){\n for(int i = 0; i < numItems; i++) {\n\n if(inventory[i]!= null) {\n if(item.isEqual(inventory[i])){\n return i;\n }\n }\n }\n return -1;\n }", "protected long insertAndVerifyItem(Item itemToAdd) {\n assertNotNull(\"Null item\", itemToAdd);\n long itemId = mDaoToTest.insertItem(mContext, itemToAdd);\n assertTrue(\"Wrong id\", itemId > 0);\n return itemId;\n }", "public void doCheck(String productNum) {\n\t\tpn = productNum.trim(); // Product no.\n\t}", "protected int queryNum(int id, String key) {\n Trace.info(\"RM::queryNum(\" + id + \", \" + key + \") called\" );\n ReservableItem curObj = (ReservableItem) readData( id, key);\n int value = 0; \n if ( curObj != null ) {\n value = curObj.getCount();\n } // else\n Trace.info(\"RM::queryNum(\" + id + \", \" + key + \") returns count=\" + value);\n return value;\n }", "private boolean checkId() {\n int sum = 0;\n int id;\n\n try\n {\n id = Integer.parseInt(ID.getText().toString());\n }\n catch (Exception e)\n {\n return false;\n }\n\n if (id >= 1000000000)\n return false;\n\n for (int i = 1; id > 0; i = (i % 2) + 1) {\n int digit = (id % 10) * i;\n sum += digit / 10 + digit % 10;\n\n id=id/10;\n }\n\n if (sum % 10 != 0)\n return false;\n\n return true;\n }", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void unknownItem() {\n\t\tGroceryStore gs = new GroceryStore();\n\t\tint age1 = 50;\n\t\t\n\t\t// this function call should return the expected exception\n\t\tgs.validateAge(age1, \"unknown item\");\n\t\t\n\t}", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "private int getIndexIfItemObjAlreadyExists(String itemId, List<Item> itemList) {\n for (int i = 0; i < itemList.size(); i++) {\n Item item = itemList.get(i);\n String id = item.getItemId();\n if (!TextUtils.isEmpty(id) && id.equalsIgnoreCase(itemId))\n return i;\n }\n return -1;\n }", "private int errorCheckingInt(String display, int lastItem) {\n\t\tint index;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\tindex = input.nextInt();\n\t\t\t\tif (index < 1 || index > lastItem)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input\\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn index;\n\t}", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "public int Check(){\n return 6;\n }", "public boolean isItemExist(String item)\n {\n boolean uExist = true;\n Connection conn = DatabaseConnection.getConnection();\n PreparedStatement pss;\n ResultSet rss;\n \n try {\n pss = conn.prepareStatement(\"SELECT * FROM items WHERE Item_number = ?\");\n \n pss.setString(1, jTextFieldNumber.getText());\n \n rss = pss.executeQuery();\n \n if(rss.next())\n {\n JOptionPane.showMessageDialog(null, \"Item Already Exists!\");\n return false;\n }\n else\n {\n return true;\n }\n \n } \n catch (SQLException ex) {\n Logger.getLogger(ItemQuery.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n finally\n {\n try {\n conn.close();\n } catch (SQLException ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n return uExist;\n }", "public boolean isItemValid(ItemStack par1ItemStack)\n {\n return true;\n }", "public void InkAndTonnerSearchQty(String itemnum){ \r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Quantity should be entered in quantity box for the first item in searched result.\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtInkSearchQty\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtInkSearchQty\"));\r\n\t\t\tsendKeys(locator_split(\"txtInkSearchQty\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Quantity is entered in quantity box for the first item in searched result.\");\r\n\t\t\tSystem.out.println(\"Quantity is entered in quantity box for the first item in searched result. - \"+searchitem+\"\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Quantity is not entered in quantity box for the first item in searched result. \"+elementProperties.getProperty(\"txtInkSearchQty\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtInkSearchQty\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void testCanReadNumber() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().iterator().next().builds().iterator()\n .next().number(), new IsEqual<>(\"#1\")\n );\n }", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "@Test(expected=InvalidItemException.class)\n\tpublic void testInvalidItems() throws Exception {\n\t\tfor (int i = 0; i >= -10; i--) {\n\t\t\td.dispense(50, i);\n\t\t}\n\t}", "@Test\n public void is_totalPrice_Is_displayed_properly_Added_To_The_Menu_Failure_Senario(){\n int isTotalNotPriceDisplayed = restaurant.getTotalPriceWrongMethodCalled().size();\n restaurant.getTotalPriceWrongMethodCalled(\"InCorrect Amount Displayed\", isTotalNotPriceDisplayed);\n System.out.println(\"Method Does not exists\");\n assertEquals(isTotalNotPriceDisplayed,restaurant.getTotalPriceWrongMethodCalled().size());\n\n\n }", "public void verifyBugerList()\n\t{\n\t\t\n\t}", "@Test \n\tpublic void testIfNumberisInArray()\n\t{\n \tData d = new Data();\n\t\tassertTrue(d.isMember(61)); // 61 is the value of the 0th index of the array. \n\t}", "public String getShoppingCartItemNumber(){\n WebDriverWait wait = new WebDriverWait(getWebDriver(), 10);\n WebElement shoppingCart = wait.until(ExpectedConditions.presenceOfElementLocated(By.id(\"gh-cart-n\")));\n return shoppingCart.getText();\n }", "private boolean checkQuestion(int number){\n String answer = questionsList.get(number).getAnswer();\n return answer.equals(\"true\");\n\n }", "public int checkAmount(int pid) {\n\t\treturn dao.checkAmount(pid);\r\n\t}", "public boolean giamQuantity(int index) {\n\t\t// lay item cart tai vi tri index\n\t\tItemCart item = listItemcart.get(index);\n\t\tint quantity = item.getQuantity();\n\t\tif (quantity <= 1) {\n\t\t\titem.setQuantity(1);\n\t\t\treturn false;\n\t\t} else {\n\t\t\titem.setQuantity(quantity - 1);\n\t\t\treturn true;\n\t\t}\n\n\t}", "private int doValidateCheck()\n {\n if (Math.min(txtArtifactID.getText().trim().length(),\n txtGroupID.getText().trim().length()) == 0)\n {\n return 1;\n }\n if (txtPackage.getText().trim().length() > 0)\n {\n boolean matches = txtPackage.getText().matches(\"[a-zA-Z0-9\\\\.]*\"); //NOI18N\n if (!matches) {\n return 2;\n } else {\n if (txtPackage.getText().startsWith(\".\") || txtPackage.getText().endsWith(\".\"))\n {\n return 2;\n }\n }\n }\n return 0;\n }", "private int pickIdNumber(String type) {\n\t\tint xGetNum = -1;\n\t\ttry {\n\t\t\tSystem.out.println(\"\\nEnter the number 0 if the \" + type + \" is NOT on the list. \");\n\t\t\tSystem.out.print(\"Enter the \" + type + \"'s ID# : \");\n\t\t\txGetNum = Integer.parseInt(scanner.nextLine());\n\t\t\t//return xGetNum;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"\\n\\t*****\\tSelection must be a number\\t*****\");\n\t\t\t}\t\t\n\t\treturn xGetNum;\t\t\n\t}", "@Override\r\n\tpublic int checkDuplicate(String checkProductionOrderNo) {\n\t\tint list1 = 0;\r\n\t\ttry {\r\n\t\t\tlist1 = productionOrderProcessDao.checkDuplicate(checkProductionOrderNo);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "while (!found && index < valid.length)\n {\n if (valid[index] == number)\n found = true;\n else\n index++;\n }", "@Test\r\n public void testLongTermStorageGetItemCount1()\r\n {\r\n assertEquals(\"The counter is wrong\", BASE_VALUE, testLongTermStorage.getItemCount(item2.getType()));\r\n }", "Integer validateDetail(String detail) throws DvdStoreException;", "@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }", "public void setITEM(int value) {\r\n this.item = value;\r\n }", "public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "boolean hasInBookNo();", "public void verifyMenuItems(final int expectedItemsNumber, final String optionalMenuItem) {\n List<WebElement> menuItems = findElements(Page.MENU_ITEMS);\n List<String> foundMenuItems = new ArrayList<>();\n for (WebElement header : menuItems) {\n foundMenuItems.add(header.getText());\n }\n\n assertEquals(\"Unexpected number of menu items\",\n foundMenuItems.contains(optionalMenuItem) ? expectedItemsNumber + 1 : expectedItemsNumber,\n foundMenuItems.size());\n }", "int getNumItems();", "protected int checkRowForAdd(GenericValue reservation, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId,\n BigDecimal quantity) {\n // check to see if the reservation can hold the requested quantity amount\n String inventoryItemId = reservation.getString(\"inventoryItemId\");\n BigDecimal resQty = reservation.getBigDecimal(\"quantity\");\n VerifyPickSessionRow pickRow = this.getPickRow(orderId, orderItemSeqId, shipGroupSeqId, productId, inventoryItemId);\n\n if (pickRow == null) {\n if (resQty.compareTo(quantity) < 0) {\n return 0;\n } else {\n return 2;\n }\n } else {\n BigDecimal newQty = pickRow.getReadyToVerifyQty().add(quantity);\n if (resQty.compareTo(newQty) < 0) {\n return 0;\n } else {\n pickRow.setReadyToVerifyQty(newQty);\n return 1;\n }\n }\n }", "void showAlertForInvalidNumber();", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "private void addValidItem(Item item){\r\n\t\titems.put(item.getItemIdentifier(), item);\r\n\t\ttotal.updateTotal(item);\r\n\t}", "protected static int verifyInt(Text field, String fieldName)\r\n\t\t\tthrows MusicTunesException {\r\n\t\tint number = 0;\r\n\t\ttry {\r\n\t\t\tnumber = Integer.parseInt(field.getText());\r\n\t\t} catch (NumberFormatException e2) {\r\n\t\t\tfield.setFocus();\r\n\t\t\tfield.selectAll();\r\n\t\t\tthrow new MusicTunesException(\"Invalid \" + fieldName\r\n\t\t\t\t\t+ \": \" + field.getText());\r\n\t\t}\r\n\t\treturn number;\r\n\t}", "@Test\n public void countNbrOfBoxAligneByAtBeginning(){\n int res = alignment.countNbrOfBoxAligneBy(player,2);\n assertEquals(\"EXpected 1 alignmenet\", 1, res);\n }" ]
[ "0.6912337", "0.619056", "0.61687094", "0.6090788", "0.5944094", "0.5924287", "0.5890716", "0.58868283", "0.5869579", "0.58589214", "0.58489287", "0.58124316", "0.5772296", "0.5769418", "0.5764296", "0.572909", "0.5721621", "0.5721621", "0.5721621", "0.5721621", "0.5721621", "0.5721621", "0.5721621", "0.5697986", "0.5679013", "0.56677264", "0.5660517", "0.5660478", "0.5650054", "0.56361693", "0.5626196", "0.56249774", "0.56145513", "0.56105244", "0.5602765", "0.5587462", "0.5570385", "0.5568208", "0.5563504", "0.5540126", "0.55242944", "0.5514458", "0.5503578", "0.5497567", "0.54938823", "0.54861015", "0.5483331", "0.5481121", "0.5479837", "0.54778045", "0.5463786", "0.54628044", "0.54628044", "0.5462079", "0.5462079", "0.5462079", "0.5455863", "0.54500264", "0.5432597", "0.5428078", "0.5416353", "0.5414704", "0.5411843", "0.5400966", "0.5397057", "0.5394675", "0.5391413", "0.5390316", "0.5380146", "0.537992", "0.5378091", "0.5370003", "0.5354735", "0.53535396", "0.5350931", "0.5347376", "0.5340233", "0.5340192", "0.53363866", "0.5336014", "0.53325754", "0.53313893", "0.5331259", "0.53306365", "0.53296024", "0.53269243", "0.5326343", "0.5321758", "0.53212637", "0.53195363", "0.5314588", "0.53141063", "0.5313639", "0.5307941", "0.5305154", "0.5287183", "0.5284789", "0.52825", "0.528092", "0.52782094", "0.5276125" ]
0.0
-1
/ Constructors The constructor should only be called from subclasses
protected Argument(Direction d) { this.pointer = null; this.direction = d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "protected abstract void construct();", "private void __sep__Constructors__() {}", "public CSSTidier() {\n\t}", "private Instantiation(){}", "public Supercar() {\r\n\t\t\r\n\t}", "protected Animal() {\t\r\n\t}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public Coche() {\n super();\n }", "public ConStructorInheritance(){\r\n\t\t\r\n\t\tSystem.out.println(\"Parent Class Constructor\");\r\n\t\t\r\n\t\t\r\n\t}", "public PSRelation()\n {\n }", "public CyanSus() {\n\n }", "protected ChildType() {/* intentionally empty block */}", "public void init() {\r\n\t\t// to override\r\n\t}", "private TMCourse() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public mapper3c() { super(); }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "@Override public void init()\n\t\t{\n\t\t}", "public Chauffeur() {\r\n\t}", "public Cohete() {\n\n\t}", "public AbstractT153()\n {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "public Chick() {\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void init() {}", "private Cat() {\n\t\t\n\t}", "@Override\n public void construct() throws IOException {\n \n }", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "private SingleObject()\r\n {\r\n }", "defaultConstructor(){}", "@Override\n\t\tpublic void init() {\n\t\t}", "public Pitonyak_09_02() {\r\n }", "public Pasien() {\r\n }", "@Override\n protected void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "@Override\n public void init() {}", "public void constructor() {\n setEdibleAnimals();\n }", "public Anschrift() {\r\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public Boop() {\n\t\tsuper();\n\t}", "public BaseParameters(){\r\n\t}", "public Catelog() {\n super();\n }", "public Car() {\r\n super();\r\n }", "protected TreeChild () {\n }", "public Parent() {\n super();\n }", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Tbdtokhaihq3() {\n super();\n }", "@Override\n public void init() {\n }", "public Clade() {}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Factory() {\n\t\tsuper();\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}", "private Composite() {\n }", "protected Product()\n\t{\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Trening() {\n }", "public Implementor(){}", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "public MapperBase() {\r\n }", "public Self__1() {\n }", "public Cat(){\n\t\tsuper();\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public _355() {\n\n }", "public Car() {\n super();\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Curso() {\r\n }", "protected void init() {\n // to override and use this method\n }", "@Override\n public void init() {\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "@Override\n void init() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Catalog() {\r\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public Orbiter() {\n }", "public AbstractPurchaseSubCategory()\r\n {\r\n }", "public Car(){\n\t\t\n\t}", "void DefaultConstructor(){}", "protected Product() {\n\t\t\n\t}", "public Achterbahn() {\n }", "public Tbdcongvan36() {\n super();\n }", "protected Item() {\n }", "public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}", "public Lanceur() {\n\t}", "Reproducible newInstance();", "public MystFactoryImpl()\r\n {\r\n super();\r\n }" ]
[ "0.8088834", "0.8078231", "0.7555712", "0.7369256", "0.7337544", "0.71817565", "0.7180327", "0.7072221", "0.7071775", "0.6999196", "0.69899035", "0.69719464", "0.6967825", "0.6952065", "0.69414735", "0.6935964", "0.69251204", "0.6922366", "0.6916029", "0.69144684", "0.69118893", "0.6910264", "0.69032955", "0.6899858", "0.68997175", "0.68969125", "0.68746686", "0.68646145", "0.6858339", "0.68579686", "0.68557304", "0.6854151", "0.6854151", "0.68423456", "0.6841631", "0.6822018", "0.6815321", "0.6815281", "0.68128115", "0.6803092", "0.67993283", "0.67948776", "0.6793548", "0.6785875", "0.67834634", "0.6782351", "0.6773495", "0.67699146", "0.6765284", "0.67645425", "0.67615783", "0.6760166", "0.67497206", "0.6743321", "0.67350733", "0.673477", "0.67337084", "0.67322505", "0.6730979", "0.6730979", "0.6730979", "0.67205375", "0.67170244", "0.67142", "0.6711493", "0.6706156", "0.6705997", "0.6703863", "0.66994053", "0.66907793", "0.6689099", "0.6689099", "0.6689099", "0.6689099", "0.6689099", "0.6686964", "0.6679878", "0.6679224", "0.66760457", "0.6675079", "0.66739357", "0.6673784", "0.6669287", "0.6668544", "0.666308", "0.6662172", "0.6660348", "0.66588235", "0.6646256", "0.66458905", "0.66437954", "0.66425604", "0.66412365", "0.6640166", "0.6639983", "0.6637711", "0.66356736", "0.66344744", "0.662526", "0.66246647", "0.6624295" ]
0.0
-1
/ Methods for subclasses
protected DeviceEvent writeBuffer(Device device, CommandStream q, long size, Pointer hostPtr) { createBuffer(device, size, hostPtr); return writeBufferNoCreateBuffer(device, q, null, size, hostPtr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void checkSubclass() {\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public abstract void process(final EClass Super, final EClass Sub);", "Object getClass_();", "Object getClass_();", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "protected ChildType() {/* intentionally empty block */}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected abstract Set method_1559();", "protected abstract void registerSuperTypes();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "abstract int pregnancy();", "@Override // opcional\n public void init(){\n\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override\n protected void init() {\n }", "Object getBase();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public static void main(String[] args) {\n// subClass[] classes = new subClass[1];\n// System.out.println(superClass.value);\n// System.out.println(subClass.value);\n subClass s = new subClass();\n s.lala();\n// superClass p = s;\n// System.out.println(s==p);\n// System.out.println(s.name);\n// System.out.println(s.value);\n// subClass.haha();\n// s.heihei();\n// System.out.println( p.name);\n// System.out.println(p.value);\n// p.haha();\n// p.heihei();\n\n }", "@Override\n\tpublic void absMethod() {\n\t\tSystem.out.println(\"This is extends from AbstactClass.\");\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected final void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "abstract void classRooms();", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam in a subclass\");\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "abstract String getClassName();", "public abstract void afvuren();", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}" ]
[ "0.6907967", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67385143", "0.67258084", "0.67258084", "0.67258084", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.67013276", "0.6674013", "0.6674013", "0.6674013", "0.66381603", "0.66096556", "0.66096556", "0.66096556", "0.6437964", "0.63825274", "0.63692045", "0.62933767", "0.6280163", "0.62510145", "0.6178178", "0.61685395", "0.6124477", "0.61204916", "0.61204916", "0.6117478", "0.60981023", "0.6075425", "0.6069354", "0.6039071", "0.6037613", "0.6037613", "0.60245055", "0.6008703", "0.6003452", "0.598624", "0.59772116", "0.5972891", "0.59438604", "0.5935489", "0.5928471", "0.5924997", "0.59189016", "0.589823", "0.589542", "0.58754367", "0.58701205", "0.5868829", "0.585785", "0.5855139", "0.5853488", "0.5848471", "0.5843657", "0.5840582", "0.5840001", "0.583547", "0.5826249", "0.5826249", "0.5826249", "0.58246434", "0.5824199", "0.5824199", "0.5824025", "0.5807443", "0.5800007", "0.5798943", "0.5796626", "0.5796289", "0.57939947", "0.5788664", "0.5783553", "0.5773057", "0.5772267" ]
0.0
-1
Translates characters to character classes Chosen bits are [9, 6, 6] Total runtime size is 1568 bytes
public static int ZZ_CMAP(int ch) { return ZZ_CMAP_A[(ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>12]|((ch>>6)&0x3f)]<<6)|(ch&0x3f)]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}", "private static CharClass compile(Node charClassNode, Map<String, CharClass> charClassesMap) {\n \tif (charClassNode.name.equals(\"range\")) {\n \t\tBranch b = (Branch) charClassNode;\n \t\tLeaf from = (Leaf) b.childs.get(0);\n \t\tLeaf to = (Leaf) b.childs.get(1);\n \t\treturn CharClass.fromRange(\n \t\t\tfrom.value.toString().charAt(0),\n \t\t\tto.value.toString().charAt(0)\n \t\t);\n \t}\n \tif (charClassNode.name.equals(\"char\")) {\n \t\tLeaf l = (Leaf) charClassNode;\n \t\treturn CharClass.fromChar(unescape(l.value).charAt(0));\n \t}\n \tif (charClassNode.name.equals(\"charClassName\")) {\n \t\tLeaf l = (Leaf) charClassNode;\n \t\tString name = l.value.toString();\n \t\treturn new CharClass() {\n\t\t\t\t@Override public boolean contains(char c) {\n\t\t\t\t\tCharClass cClass = charClassesMap.get(name);\n\t\t\t\t\tif (cClass == null)\n\t\t\t\t\t\tthrow new RuntimeException(\"Got a reference to an unknown CharClass \\\"\"+name+\"\\\"\");\n\t\t\t\t\treturn cClass.contains(c);\n\t\t\t\t}\n\t\t\t\t@Override public String toString() { return name; } \n\t\t\t};\n \t}\n \tif (charClassNode.name.equals(\"charClassNot\")) {\n \t\tBranch b = (Branch) charClassNode;\n \t\tif (b.childs.size()==1) return compile(b.childs.get(0), charClassesMap);\n \t\treturn CharClass.negate(compile(b.childs.get(1), charClassesMap));\n \t}\n \tif (charClassNode.name.equals(\"charClassAnd\")) {\n \t\tBranch b = (Branch) charClassNode;\n \t\tif (b.childs.size()==1) return compile(b.childs.get(0), charClassesMap);\n \t\tCharClass[] charClasses = new CharClass[b.childs.size()];\n \t\tfor (int i=0; i<b.childs.size(); i++) {\n \t\t\tcharClasses[i] = compile(b.childs.get(i), charClassesMap);\n \t\t}\n \t\treturn CharClass.and(charClasses);\n \t}\n \tif (charClassNode.name.equals(\"charClassOr\")) {\n \t\tBranch b = (Branch) charClassNode;\n \t\tif (b.childs.size()==1) return compile(b.childs.get(0), charClassesMap);\n \t\tCharClass[] charClasses = new CharClass[b.childs.size()];\n \t\tfor (int i=0; i<b.childs.size(); i++) {\n \t\t\tcharClasses[i] = compile(b.childs.get(i), charClassesMap);\n \t\t}\n \t\treturn CharClass.or(charClasses);\n \t}\n \tthrow new RuntimeException(\"Do not know how to compile into a char class node \"+charClassNode);\n }", "public RegexCharClass()\n\t{\n\t\t_rangelist = new java.util.ArrayList<SingleRange>(6);\n\t\t_canonical = true;\n\t\t_categories = new StringBuilder();\n\n\t}", "public Object[] charClassParams() {\n\t\treturn new Object[] {\n\t\t\t// simple char classes\n\t\t\tnew Object[] {\"[a+]\", \"aa+\",\n\t\t\t\tnew String[]{\"a\", \"a\", \"+\"}},\n\t\t\tnew Object[] {\"[+a]\", \"aa+\",\n\t\t\t\tnew String[]{\"a\", \"a\", \"+\"}},\n\t\t\tnew Object[] {\"[\\\\Q].]\\\\E]\", \"]a].]\",\n\t\t\t\tnew String[] {\"]\", \"]\", \".\", \"]\"}},\n\t\t\tnew Object[] {\"[a]\", \"aAaa\",\n\t\t\t\tnew String[] {\"a\", \"a\", \"a\"}},\n\t\t\tnew Object[] {\"[aca]\", \"acab\",\n\t\t\t\tnew String[] {\"a\", \"c\", \"a\"}},\n\t\t\tnew Object[] {\"[abc]\", \"[abc] ABc\",\n\t\t\t\tnew String[] {\"a\", \"b\", \"c\", \"c\"}},\n\t\t\tnew Object[] {\"\\\\[abc]\", \"[abc]abc\",\n\t\t\t\tnew String[] {\"[abc]\"}},\n\t\t\tnew Object[] {\"[\\\\t\\\\041]\", \"\\t\\041\\\\t041\",\n\t\t\t\tnew String[] {\"\\t\", \"\\041\"}},\n\t\t\tnew Object[] {\"\\\\[ab]\", \"\\\\[ab] a b []\",\n\t\t\t\tnew String[] {\"[ab]\"}},\n\t\t\tnew Object[] {\"gr[ae]y\", \"graey gray grey\",\n\t\t\t\tnew String[] {\"gray\", \"grey\"}},\n\t\t\tnew Object[] {\"li[cs]en[cs]e\", \"license lisence licence lisense licsencse\",\n\t\t\t\tnew String[] {\"license\", \"lisence\", \"licence\", \"lisense\"}},\n\t\t\tnew Object[] {\"[a\\\\\\\\]\", \"a\\\\\\\\\",\n\t\t\t\tnew String[] {\"a\", \"\\\\\", \"\\\\\"}},\n\t\t\tnew Object[] {\"[ab[cd]]\", \"[ab[cd]]\",\n\t\t\t\tnew String[] {\"a\", \"b\", \"c\", \"d\"}},\n\t\t\tnew Object[] {\"[[a]]\", \"[[a]]aa\",\n\t\t\t\tnew String[] {\"a\", \"a\", \"a\"}},\n\t\t\tnew Object[] {\"[+*]\", \"[*]\",\n\t\t\t\tnew String[] {\"*\"}},\n\t\t\tnew Object[] {\"[]x]\", \"[]x]\",\n\t\t\t\tnew String[] {\"]\", \"x\", \"]\"}},\n\t\t\t// char class with ranges\n\t\t\tnew Object[] {\"[0-9]\", \"0 3 [0-9] a2b2\",\n\t\t\t\tnew String[] {\"0\", \"3\", \"0\", \"9\", \"2\", \"2\"}},\n\t\t\tnew Object[] {\"[b-g]\", \"abggfbzg\",\n\t\t\t\tnew String[] {\"b\", \"g\", \"g\", \"f\", \"b\", \"g\"}},\n\t\t\tnew Object[] {\"[\\\\x59-{]\", \"aT\\u0058{Y|\",\n\t\t\t\tnew String[] {\"a\", \"{\", \"Y\"}},\n\t\t\tnew Object[] {\"[ag-iz]\", \"azbgkhiz\",\n\t\t\t\tnew String[] {\"a\", \"z\", \"g\", \"h\", \"i\", \"z\"}},\n\t\t\tnew Object[] {\"[a\\\\-d]\", \"[a\\\\-d]abcd\",\n\t\t\t\tnew String[] {\"a\", \"-\", \"d\", \"a\", \"d\"}},\n\t\t\tnew Object[] {\"[a\\\\\\\\-a]\", \"[a\\\\\\\\-a]`\",\n\t\t\t\tnew String[] {\"a\", \"\\\\\", \"\\\\\", \"a\", \"]\", \"`\"}},\n\t\t\tnew Object[] {\"[-x]\", \"zyx[-x]\",\n\t\t\t\tnew String[] {\"x\", \"-\", \"x\"}},\n\t\t\tnew Object[] {\"[\\\\\\\\-]\", \"\\\\-[]\",\n\t\t\t\tnew String[] {\"\\\\\", \"-\"}},\n\t\t\tnew Object[] {\"[0-9a-fxA-FX]\", \"X039Afgx\",\n\t\t\t\tnew String[] {\"X\", \"0\", \"3\", \"9\", \"A\", \"f\", \"x\"}},\n\t\t\tnew Object[] {\"[+--]\", \"+'-\",\n\t\t\t\tnew String[] {\"+\", \"-\"}},\n\t\t\tnew Object[] {\"a-c]\", \"abc-a-c]\",\n\t\t\t\tnew String[] {\"a-c]\"}},\n\t\t\tnew Object[] {\"[-^]\", \"[^-]\",\n\t\t\t\tnew String[] {\"^\", \"-\"}},\n\t\t\tnew Object[] {\"[a\\\\Q-\\\\Ed]\", \"[a\\\\Q-\\\\Ed]abcd\",\n\t\t\t\tnew String[] {\"a\", \"-\", \"d\", \"a\", \"d\"}},\n\t\t\tnew Object[] {\"-\", \"---\", \n\t\t\t\tnew String[] {\"-\", \"-\", \"-\"}},\n\t\t\tnew Object[] {\"---\", \"---\",\n\t\t\t\tnew String[] {\"---\"}},\n\t\t\tnew Object[] {\"[6-]\", \"ab-66\",\n\t\t\t\tnew String[] {\"-\", \"6\", \"6\"}},\n\t\t\tnew Object[] {\"[c-a]\", \"a-abc\", \n\t\t\t\tnew String[] {\"a\", \"-\", \"a\", \"c\"}},\n\t\t\tnew Object[] {\"[a-f][^a-f]\", \"afgb\",\n\t\t\t\tnew String[] {\"fg\"}},\n\t\t\t// char class with negation\n\t\t\tnew Object[] {\"[^abc]\", \"[^abc] dcabB^\",\n\t\t\t\tnew String[] {\"[\", \"^\", \"]\", \" \", \"d\", \"B\", \"^\"}},\n\t\t\tnew Object[] {\"a[^A]a\", \"AaaAaaa a a\",\n\t\t\t\tnew String[] {\"aaa\", \"a a\"}},\n\t\t\tnew Object[] {\"[^zz]\", \"\\t\\n \",\n\t\t\t\tnew String[] {\"\\t\", \"\\n\", \" \"}},\n\t\t\tnew Object[] {\"[^x-z]\", \"azbcxy\",\n\t\t\t\tnew String[] {\"a\", \"b\", \"c\"}},\n\t\t\tnew Object[] {\"[^ad-z]\", \"abgIC\",\n\t\t\t\tnew String[] {\"b\", \"I\", \"C\"}},\n\t\t\tnew Object[] {\"[\\\\^0-9]\", \"[\\\\^0-9]a^b\",\n\t\t\t\tnew String[] {\"^\", \"0\", \"9\", \"^\"}},\n\t\t\tnew Object[] {\"[\\\\Q^ab\\\\Ec+]\", \"\\\\Q^ab\\\\Ec+c+\",\n\t\t\t\tnew String[] {\"^\", \"a\", \"b\", \"c\", \"+\", \"c\", \"+\"}},\n\t\t\tnew Object[] {\"[\\\\^-`]\", \"[\\\\^-`]^^_ab\",\n\t\t\t\tnew String[] {\"^\", \"`\", \"^\", \"^\", \"_\"}},\n\t\t\tnew Object[] {\"[]-^]\", \"[]-^], _abc\",\n\t\t\t\tnew String[] {\"]\", \"^\", \"]\"}},\n\t\t\tnew Object[] {\"[a^-a]\", \"[a^-a]_\",\n\t\t\t\tnew String[] {\"a\", \"^\", \"a\", \"_\"}},\n\t\t\tnew Object[] {\"[^^]\", \"^^^^\",\n\t\t\t\tnew String[] {}},\n\t\t\tnew Object[] {\"[x^]\", \"[x^]xyz`_\",\n\t\t\t\tnew String[] {\"x\", \"^\", \"x\"}},\n\t\t\tnew Object[] {\"[^]x^]\", \"[^]x]\",\n\t\t\t\tnew String[] {\"[\"}},\n\t\t\tnew Object[] {\"[^-x][^x-]\", \"-a8\\tbx\",\n\t\t\t\tnew String[] {\"a8\", \"\\tb\"}},\n\t\t\tnew Object[] {\"[^[^ab]]\", \"abcz[^]0a\\nb\",\n\t\t\t\tnew String[] {\"a\", \"b\", \"a\", \"b\"}},\n\t\t\tnew Object[] {\"q[^u]\", \"qu q q\",\n\t\t\t\tnew String[] {\"q \"}},\n\t\t\tnew Object[] {\"[^\\\\0101]\\\\0101\", \"A\\\\AB\",\n\t\t\t\tnew String[] {\"\\\\A\"}},\n\t\t\tnew Object[] {\"[ax]^[b-c]\", \"[x^cagxz]\",\n\t\t\t\tnew String[] {\"x^c\"}},\n\t\t\tnew Object[] {\"b[^c]\", \"bcbab\",\n\t\t\t\tnew String[] {\"ba\"}}\n\t\t};\n\t}", "private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }", "private static Map generateCharacterMappings() {\n Log.debug(\"Generating default character mappings\");\n Map map = new HashMap();\n Iterator iter = keycodes.keySet().iterator();\n while (iter.hasNext()) {\n Object key = iter.next();\n map.put(keycodes.get(key), key);\n }\n return map;\n }", "private static String m618z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 6;\n break;\n case 1:\n i2 = 14;\n break;\n case 2:\n i2 = 30;\n break;\n case 3:\n i2 = 7;\n break;\n default:\n i2 = 20;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }", "public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}", "static void updateClass(char ch) {\r\n // The character is assumed to be the \"other\" class until found to be a digit or letter.\r\n charClass = 0;\r\n\r\n // If the character is a digit between 0-9 it is the digit class\r\n if (ch == '0' || ch == '1' || ch == '2' || ch == '3' || ch == '4' || ch == '5' || ch == '6' || ch == '7' || ch == '8' || ch == '9')\r\n charClass = 1;\r\n\r\n // If the character is any letter it is the letter class\r\n else if (Character.isLetter(ch)){\r\n charClass = 2;\r\n }\r\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "private static String m7946z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 70;\n break;\n case 1:\n i2 = 26;\n break;\n case 2:\n i2 = C0607n.co;\n break;\n case 3:\n i2 = 99;\n break;\n default:\n i2 = 16;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }", "public CharCharMap() {\n this(DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR);\n }", "private void RecalculateCharDistribution() {\r\n\t\tMap<Character, Integer> temp = new HashMap<>();\r\n\t\tfor (String s : sameWordLength) {\r\n\t\t\tfor (int i = 0; i < s.length(); i++) {\r\n\r\n\t\t\t\tchar ch = s.charAt(i);\r\n\t\t\t\tif (guessedCharacter.contains(ch)) {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!temp.containsKey(ch)) {\r\n\t\t\t\t\t\ttemp.put(ch, 1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint t = temp.get(ch) + 1;\r\n\t\t\t\t\t\ttemp.put(ch, t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcharCount = temp;\r\n\r\n\t}", "private void setLevelUpChars() {\n /*\n * check this if you need more symbol set's\n * TODO do this right @me\n\t\t */\n String charset = KeyboardHandler.current_charset;\n if (charset.length() == 36) {\n for (int i = 0; i < 6; ++i) {\n characterAreas.get(i).setChars(\n charset.substring(i * 6, (i + 1) * 6));\n }\n }\n\n if (charset.length() == 40) {\n Log.d(\"main\",charset);\n characterAreas.get(0).setChars(charset.substring(0, 6));\n characterAreas.get(1).setChars(charset.substring(6, 14));\n characterAreas.get(2).setChars(charset.substring(14, 20));\n characterAreas.get(3).setChars(charset.substring(20, 26));\n characterAreas.get(4).setChars(charset.substring(26, 34));\n characterAreas.get(5).setChars(charset.substring(34, 40));\n }\n }", "private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }", "public char Get_Character() {\n\n\n\n /* Hex equivalent of Morse code is formed by left-shifting */\n /* 1 or 0 into hex_code. The 0x01 initial value marks the */\n /* beginning of the bit field, 1 being a dit and 0 a dash. */\n\n /* Get the level of a fragment from PLL detector. A fragment */\n /* is a small fraction of a morse code element, there are from */\n /* 8 to 30 frags/element depending on Morse speed (30-10 w.p.m) */\n while(true) {\n\t/* Decide on a mark or space fragment */\n\t/* with a hysterisis on the threshold */\n\tGet_Fragment();\n\n\t/* Increment mark or space count */\n\tif( isFlagSet(MARK_TONE) )\n\t mark_cnt++;\n\telse\n\t space_cnt++;\n\n\t/* If a mark element is too long, limit count */\n\tif( mark_cnt > unit_elem * 8 ) mark_cnt = unit_elem * 8;\n\n\t/* If a space element is too long, limit count */\n\tif( space_cnt > unit_elem * 16 ) space_cnt = unit_elem * 16;\n\n\t/* Process mark and space element counts to decode Morse */\n\tswitch( new_context )\n\t{\n\t case MARK_SIGNAL: /* Process mark element */\n\n\t\t/* If fragment is a mark */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark element is too long */\n\t\t /* reset and wait for a space */\n\t\t if( mark_cnt >= (unit_elem * 8) )\n\t\t {\n\t\t\t/* Clear space counter */\n\t\t\tspace_cnt = 0;\n\n\t\t\t/* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n\t\t\t/* Wait for a space fragment */\n\t\t\tnew_context = WAIT_FOR_SPACE;\n\n\t\t } /* if( mark_cnt >= unit_elem * 8 ) */\n\n\t\t} /* if( isFlagSet(MARK_TONE) ) */\n\t\telse\n\t\t{\n\t\t /* Clear space count to 1 */\n\t\t space_cnt = 1;\n\n\t\t /* Switch to processing inter-element space */\n\t\t new_context = ELEM_SPACE;\n\t\t}\n\n\t\tbreak;\n\n\t case ELEM_SPACE: /* Process inter-element space */\n\n\t\t/* If space reaches 1/2 units its an inter-element space */\n\t\tif( ((space_cnt * 2) >= unit_elem) ||\n\t\t\tisFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark is < 2 units its a dit else a dash */\n\t\t if( (mark_cnt < unit_elem * 2) )\n\t\t {\n\t\t\t/* Insert dit and increment mark frag and elem count */\n\t\t\thex_code = (hex_code << 1) | 0x01;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 1; /* A dit is 1 element long */\n\t\t }\n\t\t else\n\t\t {\n\t\t\t/* Insert dash and increment mark frag and elem count */\n\t\t\thex_code <<= 1;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 3; /* A dash is 3 elements long */\n\t\t } /* if( mark_cnt < unit_elem * 2 ) */\n\n\t\t /* Clear mark count */\n\t\t mark_cnt = 0;\n\n\t\t /* Wait for inter-char space count */\n\t\t if( isFlagClear(MARK_TONE) )\n\t\t\tnew_context = CHAR_SPACE;\n\t\t else\n\t\t {\n\t\t\tspace_cnt = 0;\n\t\t\tnew_context = MARK_SIGNAL;\n\t\t }\n\n\t\t} /* if( (space_cnt * 2) >= unit_elem || ) */\n\n\t\tbreak;\n\n\t case CHAR_SPACE: /* Wait for inter-char space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space reaches 2 units its inter-character */\n\t\t if( space_cnt >= (unit_elem * 2) )\n\t\t {\n\t\t\t/* Switch to waiting for inter-word space */\n\t\t\tnew_context = WAIT_WORD_SPACE;\n\n\t\t\t/* Return decoded Morse char */\n char c = Hex_to_Ascii(hex_code);\n\n /* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n return c;\n\t\t }\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-element space */\n\t\t{\n\t\t /* Count up space frags and elements */\n\t\t space_frag_cnt += space_cnt;\n\t\t space_elem_cnt++; /* Inter-element space */\n\n\t\t /* Clear space cnt and process marks */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_WORD_SPACE: /* Wait for an inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space count reaches 5, its word space */\n\t\t if( space_cnt >= (unit_elem * 5) )\n\t\t\tnew_context = WORD_SPACE;\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-character space */\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WORD_SPACE: /* Process Inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t if( space_cnt >= (unit_elem * 7) )\n\t\t {\n\t\t\tnew_context = WAIT_FOR_MARK;\n\t\t\treturn( ' ' );\n\t\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t return( ' ' );\n\t\t}\n\n\t case WAIT_FOR_MARK: /* Process no-signal space */\n\n\t\t/* If fragment is mark switch to processing marks */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_FOR_SPACE: /* Wait for space after long dash */\n\n\t\t/* If fragment is space, switch to counting space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 1;\n\t\t mark_cnt = 0;\n\t\t new_context = WAIT_FOR_MARK;\n\t\t}\n\n\t\tbreak;\n\n\t default: /* Set context if none */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t new_context = MARK_SIGNAL;\n\t\telse\n\t\t new_context = WAIT_FOR_MARK;\n\n\t} /* End of switch( new_context ) */\n\n } /* while(1) */\n\n\n }", "public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}", "private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }", "@Test public void testGetCharacters() {\r\n new LinkedHashMap<Word, Character[]>() {\r\n private static final long serialVersionUID = 8037868849679212478L; {\r\n put(w2, new Character[] {\r\n new Character('T'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t')\r\n });\r\n put(w4, new Character[] {\r\n new Character('t'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t'),\r\n new Character('\\''),\r\n new Character('i'),\r\n new Character('n'),\r\n new Character('g')\r\n });\r\n }}.forEach((k, v) -> {\r\n Character[] characters = k.getCharacters();\r\n assertTrue(\"Expecting identical array sizes for \" + k.toString(),\r\n characters.length == v.length);\r\n for(int i = 0; i < characters.length; i++)\r\n assertTrue(\"Expecting to find \" + v[i].toString(), characters[i].toChar() == v[i].toChar());\r\n });\r\n }", "public char[][] regenCharTable();", "public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }", "private static char recompose(RecomposeArgs paramRecomposeArgs, int paramInt, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1315 */ int i3 = 0;int i4 = 0;\n/* */ \n/* */ \n/* */ \n/* 1319 */ int[] arrayOfInt = new int[2];\n/* 1320 */ int i7 = -1;\n/* 1321 */ int n = 0;\n/* 1322 */ int i6 = 0;\n/* 1323 */ int i5 = 0;\n/* */ \n/* 1325 */ NextCombiningArgs localNextCombiningArgs = new NextCombiningArgs(null);\n/* 1326 */ localNextCombiningArgs.source = paramRecomposeArgs.source;\n/* */ \n/* 1328 */ localNextCombiningArgs.cc = '\\000';\n/* 1329 */ localNextCombiningArgs.c2 = '\\000';\n/* */ for (;;)\n/* */ {\n/* 1332 */ localNextCombiningArgs.start = paramRecomposeArgs.start;\n/* 1333 */ int m = getNextCombining(localNextCombiningArgs, paramRecomposeArgs.limit, paramUnicodeSet);\n/* 1334 */ int i1 = localNextCombiningArgs.combiningIndex;\n/* 1335 */ paramRecomposeArgs.start = localNextCombiningArgs.start;\n/* */ \n/* 1337 */ if (((m & 0x80) != 0) && (i7 != -1)) { int i;\n/* 1338 */ int j; int k; if ((i1 & 0x8000) != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 1343 */ if (((paramInt & 0x100) != 0) || (i5 == 0)) {\n/* 1344 */ i = -1;\n/* 1345 */ m = 0;\n/* 1346 */ localNextCombiningArgs.c2 = paramRecomposeArgs.source[i7];\n/* 1347 */ if (i1 == 65522)\n/* */ {\n/* */ \n/* */ \n/* 1351 */ localNextCombiningArgs.c2 = ((char)(localNextCombiningArgs.c2 - 'ᄀ'));\n/* 1352 */ if (localNextCombiningArgs.c2 < '\\023') {\n/* 1353 */ i = paramRecomposeArgs.start - 1;\n/* 1354 */ localNextCombiningArgs.c = ((char)(44032 + (localNextCombiningArgs.c2 * '\\025' + (localNextCombiningArgs.c - 'ᅡ')) * 28));\n/* */ \n/* 1356 */ if ((paramRecomposeArgs.start != paramRecomposeArgs.limit) && ((localNextCombiningArgs.c2 = (char)(paramRecomposeArgs.source[paramRecomposeArgs.start] - 'ᆧ')) < '\\034'))\n/* */ {\n/* */ \n/* 1359 */ paramRecomposeArgs.start += 1; NextCombiningArgs \n/* 1360 */ tmp261_259 = localNextCombiningArgs;tmp261_259.c = ((char)(tmp261_259.c + localNextCombiningArgs.c2));\n/* */ }\n/* */ else {\n/* 1363 */ m = 64;\n/* */ }\n/* 1365 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c)) {\n/* 1366 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c;\n/* */ }\n/* */ else {\n/* 1369 */ if (!isHangulWithoutJamoT(localNextCombiningArgs.c)) {\n/* 1370 */ paramRecomposeArgs.start -= 1;\n/* */ }\n/* */ \n/* 1373 */ i = paramRecomposeArgs.start;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1388 */ else if (isHangulWithoutJamoT(localNextCombiningArgs.c2)) {\n/* 1389 */ NextCombiningArgs tmp351_349 = localNextCombiningArgs;tmp351_349.c2 = ((char)(tmp351_349.c2 + (localNextCombiningArgs.c - 'ᆧ')));\n/* 1390 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c2)) {\n/* 1391 */ i = paramRecomposeArgs.start - 1;\n/* 1392 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c2;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1397 */ if (i != -1)\n/* */ {\n/* 1399 */ j = i;\n/* 1400 */ k = paramRecomposeArgs.start;\n/* 1401 */ while (k < paramRecomposeArgs.limit) {\n/* 1402 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1404 */ paramRecomposeArgs.start = i;\n/* 1405 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* 1408 */ localNextCombiningArgs.c2 = '\\000';\n/* */ \n/* 1410 */ if (m != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1417 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1418 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1422 */ n = 65520;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1438 */ else if (((n & 0x8000) == 0) && ((paramInt & 0x100) != 0 ? (i5 == localNextCombiningArgs.cc) || (i5 != 0) : (i5 < localNextCombiningArgs.cc) || (i5 == 0)))\n/* */ {\n/* */ int i2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1446 */ if (0 != (i2 = combine(combiningTable, n, i1, arrayOfInt)))\n/* */ {\n/* */ \n/* 1449 */ if (!nx_contains(paramUnicodeSet, (char)i3, (char)i4))\n/* */ {\n/* 1451 */ i3 = arrayOfInt[0];\n/* 1452 */ i4 = arrayOfInt[1];\n/* */ \n/* */ \n/* */ \n/* 1456 */ i = localNextCombiningArgs.c2 == 0 ? paramRecomposeArgs.start - 1 : paramRecomposeArgs.start - 2;\n/* */ \n/* */ \n/* 1459 */ paramRecomposeArgs.source[i7] = ((char)i3);\n/* 1460 */ if (i6 != 0) {\n/* 1461 */ if (i4 != 0)\n/* */ {\n/* 1463 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ else\n/* */ {\n/* 1467 */ i6 = 0;\n/* 1468 */ j = i7 + 1;\n/* 1469 */ k = j + 1;\n/* 1470 */ while (k < i) {\n/* 1471 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1473 */ i--;\n/* */ }\n/* 1475 */ } else if (i4 != 0) {\n/* 1476 */ i6 = 1;\n/* 1477 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1483 */ if (i < paramRecomposeArgs.start) {\n/* 1484 */ j = i;\n/* 1485 */ k = paramRecomposeArgs.start;\n/* 1486 */ while (k < paramRecomposeArgs.limit) {\n/* 1487 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1489 */ paramRecomposeArgs.start = i;\n/* 1490 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1496 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1497 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1501 */ if (i2 > 1) {\n/* 1502 */ n = getCombiningIndexFromStarter((char)i3, (char)i4); continue;\n/* */ }\n/* */ \n/* 1505 */ i7 = -1;\n/* */ \n/* */ \n/* */ \n/* 1509 */ continue;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 1514 */ i5 = localNextCombiningArgs.cc;\n/* 1515 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1516 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1520 */ if (localNextCombiningArgs.cc == 0)\n/* */ {\n/* 1522 */ if ((m & 0x40) != 0)\n/* */ {\n/* 1524 */ if (localNextCombiningArgs.c2 == 0) {\n/* 1525 */ i6 = 0;\n/* 1526 */ i7 = paramRecomposeArgs.start - 1;\n/* */ } else {\n/* 1528 */ i6 = 0;\n/* 1529 */ i7 = paramRecomposeArgs.start - 2;\n/* */ }\n/* 1531 */ n = i1;\n/* */ }\n/* */ else {\n/* 1534 */ i7 = -1;\n/* */ }\n/* 1536 */ } else if ((paramInt & 0x2000) != 0)\n/* */ {\n/* 1538 */ i7 = -1;\n/* */ }\n/* */ }\n/* */ }", "private static String m3267z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 89;\n break;\n case 1:\n i2 = 79;\n break;\n case 2:\n i2 = 63;\n break;\n case 3:\n i2 = 125;\n break;\n default:\n i2 = 18;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }", "FontMapperImpl() {\n/* 55 */ this.substitutes.put(\"Courier\", \n/* 56 */ Arrays.asList(new String[] { \"CourierNew\", \"CourierNewPSMT\", \"LiberationMono\", \"NimbusMonL-Regu\" }));\n/* 57 */ this.substitutes.put(\"Courier-Bold\", \n/* 58 */ Arrays.asList(new String[] { \"CourierNewPS-BoldMT\", \"CourierNew-Bold\", \"LiberationMono-Bold\", \"NimbusMonL-Bold\" }));\n/* */ \n/* 60 */ this.substitutes.put(\"Courier-Oblique\", \n/* 61 */ Arrays.asList(new String[] { \"CourierNewPS-ItalicMT\", \"CourierNew-Italic\", \"LiberationMono-Italic\", \"NimbusMonL-ReguObli\" }));\n/* */ \n/* 63 */ this.substitutes.put(\"Courier-BoldOblique\", \n/* 64 */ Arrays.asList(new String[] { \"CourierNewPS-BoldItalicMT\", \"CourierNew-BoldItalic\", \"LiberationMono-BoldItalic\", \"NimbusMonL-BoldObli\" }));\n/* */ \n/* 66 */ this.substitutes.put(\"Helvetica\", \n/* 67 */ Arrays.asList(new String[] { \"ArialMT\", \"Arial\", \"LiberationSans\", \"NimbusSanL-Regu\" }));\n/* 68 */ this.substitutes.put(\"Helvetica-Bold\", \n/* 69 */ Arrays.asList(new String[] { \"Arial-BoldMT\", \"Arial-Bold\", \"LiberationSans-Bold\", \"NimbusSanL-Bold\" }));\n/* */ \n/* 71 */ this.substitutes.put(\"Helvetica-Oblique\", \n/* 72 */ Arrays.asList(new String[] { \"Arial-ItalicMT\", \"Arial-Italic\", \"Helvetica-Italic\", \"LiberationSans-Italic\", \"NimbusSanL-ReguItal\" }));\n/* */ \n/* 74 */ this.substitutes.put(\"Helvetica-BoldOblique\", \n/* 75 */ Arrays.asList(new String[] { \"Arial-BoldItalicMT\", \"Helvetica-BoldItalic\", \"LiberationSans-BoldItalic\", \"NimbusSanL-BoldItal\" }));\n/* */ \n/* 77 */ this.substitutes.put(\"Times-Roman\", \n/* 78 */ Arrays.asList(new String[] { \"TimesNewRomanPSMT\", \"TimesNewRoman\", \"TimesNewRomanPS\", \"LiberationSerif\", \"NimbusRomNo9L-Regu\" }));\n/* */ \n/* 80 */ this.substitutes.put(\"Times-Bold\", \n/* 81 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldMT\", \"TimesNewRomanPS-Bold\", \"TimesNewRoman-Bold\", \"LiberationSerif-Bold\", \"NimbusRomNo9L-Medi\" }));\n/* */ \n/* */ \n/* 84 */ this.substitutes.put(\"Times-Italic\", \n/* 85 */ Arrays.asList(new String[] { \"TimesNewRomanPS-ItalicMT\", \"TimesNewRomanPS-Italic\", \"TimesNewRoman-Italic\", \"LiberationSerif-Italic\", \"NimbusRomNo9L-ReguItal\" }));\n/* */ \n/* */ \n/* 88 */ this.substitutes.put(\"Times-BoldItalic\", \n/* 89 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldItalicMT\", \"TimesNewRomanPS-BoldItalic\", \"TimesNewRoman-BoldItalic\", \"LiberationSerif-BoldItalic\", \"NimbusRomNo9L-MediItal\" }));\n/* */ \n/* */ \n/* 92 */ this.substitutes.put(\"Symbol\", Arrays.asList(new String[] { \"Symbol\", \"SymbolMT\", \"StandardSymL\" }));\n/* 93 */ this.substitutes.put(\"ZapfDingbats\", Arrays.asList(new String[] { \"ZapfDingbatsITC\", \"Dingbats\", \"MS-Gothic\" }));\n/* */ \n/* */ \n/* */ \n/* 97 */ for (String baseName : Standard14Fonts.getNames()) {\n/* */ \n/* 99 */ if (!this.substitutes.containsKey(baseName)) {\n/* */ \n/* 101 */ String mappedName = Standard14Fonts.getMappedFontName(baseName);\n/* 102 */ this.substitutes.put(baseName, copySubstitutes(mappedName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 110 */ String ttfName = \"/org/apache/pdfbox/resources/ttf/LiberationSans-Regular.ttf\";\n/* 111 */ InputStream ttfStream = FontMapper.class.getResourceAsStream(ttfName);\n/* 112 */ if (ttfStream == null)\n/* */ {\n/* 114 */ throw new IOException(\"Error loading resource: \" + ttfName);\n/* */ }\n/* 116 */ TTFParser ttfParser = new TTFParser();\n/* 117 */ this.lastResortFont = ttfParser.parse(ttfStream);\n/* */ }\n/* 119 */ catch (IOException e) {\n/* */ \n/* 121 */ throw new RuntimeException(e);\n/* */ } \n/* */ }", "static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private int getCombiningClass(int ch)\n {\n if (ch >= LEAD_ZERO_COMBINING_CLASS_FAST_LIMIT_ &&\n m_collator_.isUnsafe((char)ch) || ch > 0xFFFF\n ) {\n return m_nfcImpl_.getCC(m_nfcImpl_.getNorm16(ch));\n }\n return 0;\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }", "public abstract void mo2157b(CharSequence charSequence);", "static void method_2892() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Plf æ¤Ý\\\"\u0017\\f¢\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_2300 = (new String((char[])var4)).intern();\r\n String var2 = field_2300;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 87;\r\n break;\r\n case 1:\r\n var10009 = 100;\r\n break;\r\n case 2:\r\n var10009 = 125;\r\n break;\r\n case 3:\r\n var10009 = 212;\r\n break;\r\n case 4:\r\n var10009 = 146;\r\n break;\r\n case 5:\r\n var10009 = 208;\r\n break;\r\n default:\r\n var10009 = 169;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "protected char map(char c) {\r\n int index = findFromIndex(c);\r\n if(index < 0) return c;\r\n return toChars[index];\r\n }", "private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }", "static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "Character getCode();", "@Test\n public void someTests() {\n StringPair[] spvalues = new StringPair[]{\n new StringPair(\"\\u00C6neid\", \"AEneid\"),\n new StringPair(\"\\u00e9tude\", \"etude\"),\n // Chinese\n new StringPair(\"\\u5317\\u4eb0\", \"Bei Jing \"),\n // Canadian syllabics\n new StringPair(\"\\u1515\\u14c7\\u14c7\", \"shanana\"),\n // Cherokee\n new StringPair(\"\\u13d4\\u13b5\\u13c6\", \"taliqua\"),\n // Syriac\n new StringPair(\"\\u0726\\u071b\\u073d\\u0710\\u073a\", \"ptu'i\"),\n //Devangari\n new StringPair(\"\\u0905\\u092d\\u093f\\u091c\\u0940\\u0924\", \"abhijiit\"),\n // Bengali\n new StringPair(\"\\u0985\\u09ad\\u09bf\\u099c\\u09c0\\u09a4\", \"abhijiit\"),\n //Malayalaam\n new StringPair(\"\\u0d05\\u0d2d\\u0d3f\\u0d1c\\u0d40\\u0d24\", \"abhijiit\"),\n /*\n * Malayalaam. The correct transliteration is \"malayaalam\", but\n * since junidecode is context insentitive this is the best we can\n * do.\n */\n new StringPair(\"\\u0d2e\\u0d32\\u0d2f\\u0d3e\\u0d32\\u0d2e\\u0d4d\", \"mlyaalm\"),\n // Japanese\n new StringPair(\"\\u3052\\u3093\\u307e\\u3044\\u8336\", \"genmaiCha \")\n };\n for (StringPair sp : spvalues) {\n String decoded = Junidecode.unidecode(sp.getLeft());\n assertEquals(sp.getRight(), decoded);\n sevenBitPurity(decoded);\n }\n }", "static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Ò˜œÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public CharCharMap(final int expected) {\n this(expected, DEFAULT_LOAD_FACTOR);\n }", "private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}", "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "private static int slowCharToNibble( char c ) \r\n { \r\n if ( '0' <= c && c <= '9' ) \r\n { \r\n return c - '0'; \r\n } \r\n else if ( 'a' <= c && c <= 'f' ) \r\n { \r\n return c - 'a' + 0xa; \r\n } \r\n else if ( 'A' <= c && c <= 'F' ) \r\n { \r\n return c - 'A' + 0xa; \r\n } \r\n else \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n }", "public abstract void mo2153a(CharSequence charSequence);", "private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c) - 'A'];\n }\n }", "private static int m1646b(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4452e();\n }", "private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "public interface ChessPieceLabel {\n //black pieces\n String BLACK_KING = \"\\u265A\";\n String BLACK_QUEEN = \"\\u265B\";\n String BLACK_ROOK = \"\\u265C\";\n String BLACK_BISHOP = \"\\u265D\";\n String BLACK_KNIGHT = \"\\u265E\";\n String BLACK_PAWN = \"\\u265F\";\n String BLACK_FERZ = \"\\u2660\";\n String BLACK_THREELEAPER = \"\\u2663\";\n\n //white pieces\n String WHITE_KING = \"\\u2654\";\n String WHITE_QUEEN = \"\\u2655\";\n String WHITE_ROOK = \"\\u2656\";\n String WHITE_BISHOP = \"\\u2657\";\n String WHITE_KNIGHT = \"\\u2658\";\n String WHITE_PAWN = \"\\u2659\";\n String WHITE_FERZ = \"\\u2664\";\n String WHITE_THREELEAPER = \"\\u2667\";\n}", "private String UTF8Encode(String s) {\n\n\n s = s.replace(\"\\r\\n\", \"\\n\");\n int[] utftext = new int[s.length() * 3];\n int utftextlen = 0;\n for (int n = 0; n < s.length(); n++) {\n int c = s.charAt(n);\n if (c < 128) {\n utftext[utftextlen++] = c;\n Log.e(\"utf\", n + \" try:\" + c);\n } else if ((c > 127) && (c < 2048)) {\n utftext[utftextlen++] = (c >> 6) | 192;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 6) | 192));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n } else {\n utftext[utftextlen++] = (c >> 12) | 224;\n utftext[utftextlen++] = ((c >> 6) & 63) | 128;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 12) | 224));\n Log.e(\"utf\", n + \" try:\" + (((c >> 6) & 63) | 128));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n }\n\n }\n int i = 0;\n char chr1, chr2, chr3;\n int enc1, enc2, enc3, enc4;\n StringBuilder string = new StringBuilder();\n while (i < utftextlen) {\n chr1 = (char) utftext[i++];\n chr2 = (char) utftext[i++];\n chr3 = (char) utftext[i++];\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n string.append(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));\n }\n string.append(\"\");\n return string.toString();\n }", "private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }", "public void gen_cyptxt(String ptxt, char[][] table, int temp)\r\n {\r\n int l=ptxt.length();\r\n String ptxt1=\"\";\r\n int ia1=0, ja1=0, ia2=0, ja2=0;\r\n \r\n //removing all the inner spaces of plaint text\r\n for(int i=0; i<l; i++)\r\n {\r\n if(ptxt.charAt(i)!=' ')\r\n ptxt1=ptxt1+ptxt.charAt(i); // storing it in ptxt1\r\n }\r\n \r\n ptxt=ptxt1; //storing it back in ptxt\r\n l=ptxt.length();\r\n \r\n //adding a dummy letter 'x' if not length is even\r\n if(l%2!=0)\r\n {\r\n ptxt=ptxt+\"x\";\r\n l=ptxt.length();\r\n }\r\n \r\n ptxt=ptxt.toUpperCase(); //converting the whole plain text to upper case\r\n \r\n //creating array of string 'bits' of length half of plain text\r\n String[] bits= new String[l/2];\r\n String[] bitsn=new String[l/2];\r\n \r\n //initialising the array with \"\"\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bitsn[i]=\"\";\r\n }\r\n int j=0, k=2;\r\n \r\n //storing each 2 letter bit of plain text into the array of strings\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bits[i]=ptxt.substring(j,k);\r\n j+=2;\r\n k+=2;\r\n }\r\n boolean hash=true;\r\n int count=0, ni=0, lim;\r\n while(hash)\r\n {\r\n lim=l/2;\r\n //checking if two double letters are in same bit\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n count++;\r\n }\r\n \r\n //if not then loop is terminated\r\n if(count==0)\r\n hash=false;\r\n \r\n //else dummy character is added in between\r\n else\r\n {\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n {\r\n ni=i;\r\n break;\r\n }\r\n }\r\n ptxt=ptxt.substring(0,(ni*2)-1)+\"X\"+ptxt.substring((ni*2)-1);\r\n l=ptxt.length();\r\n if(l%2!=0)\r\n {\r\n ptxt=ptxt+\"X\";\r\n l=ptxt.length();\r\n }\r\n j=0;\r\n k=0;\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bits[i]=ptxt.substring(j,k);\r\n j+=2;\r\n k+=2;\r\n }\r\n hash=true;\r\n }\r\n count=0;\r\n }\r\n ni=0;\r\n lim=l/2;\r\n \r\n //checking if 'XX' is bit comes at the end. If comes the limit is taken before that position\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n {\r\n if(bits[i].charAt(0)=='X')\r\n {\r\n lim=i;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n //if matrix is of type where J is taken\r\n if(temp==1)\r\n {\r\n for (int i = 0; i < lim; i++)\r\n {\r\n \r\n //storing the 1st letter of the bit in ch1 & 2nd letter in ch2\r\n char ch1=bits[i].charAt(0);\r\n char ch2=bits[i].charAt(1);\r\n \r\n //since the matrix contains J and I & J have same position so I is converted to J\r\n if(ch1=='I')\r\n ch1='J';\r\n else if(ch2=='I')\r\n ch2='J';\r\n \r\n \r\n a : for(j=0; j<5; j++) //loop labelled as a\r\n {\r\n for(k=0; k<5; k++)\r\n {\r\n \r\n //storing the cordinates of the 1st letter\r\n if(table[j][k]==ch1)\r\n {\r\n ia1=j;\r\n ja1=k;\r\n }\r\n \r\n //storing the cordinates of the 2nd letter\r\n else if(table[j][k]==ch2)\r\n {\r\n ia2=j;\r\n ja2=k;\r\n }\r\n \r\n //if they are in the same row\r\n if((ia1==ia2) && (ja1!=ja2))\r\n {\r\n if(ja1!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n if(ja2!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n break a;\r\n }\r\n \r\n //if they are in the same column\r\n else if((ia1!=ia2) && (ja1==ja2))\r\n {\r\n if(ia1!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n if(ia2!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n break a;\r\n }\r\n \r\n //if they are neither in same row nor in same column\r\n else if((ia1!=ia2) && (ja1!=ja2))\r\n {\r\n bitsn[i]=bitsn[i]+table[j][ja2];\r\n bitsn[i]=bitsn[i]+table[j][ja1];\r\n break a;\r\n } \r\n }\r\n }\r\n ia1=0;\r\n ja1=0;\r\n ia2=0;\r\n ja2=0;\r\n } \r\n }\r\n \r\n //if matrix is of type where I is taken\r\n else if(temp==2)\r\n {\r\n for (int i = 0; i < lim; i++)\r\n {\r\n \r\n //storing the 1st letter of the bit in ch1 & 2nd letter in ch2\r\n char ch1=bits[i].charAt(0);\r\n char ch2=bits[i].charAt(1);\r\n \r\n //since the matrix contains I and I & J have same position so J is converted to I\r\n if(ch1=='j')\r\n ch1='i';\r\n else if(ch2=='j')\r\n ch2='i';\r\n \r\n \r\n a : for(j=0; j<5; j++) //loop labelled as a\r\n {\r\n for(k=0; k<5; k++)\r\n {\r\n \r\n //storing the cordinates of the 1st letter\r\n if(table[j][k]==ch1)\r\n {\r\n ia1=j;\r\n ja1=k;\r\n }\r\n \r\n //storing the cordinates of the 2nd letter\r\n else if(table[j][k]==ch2)\r\n {\r\n ia2=j;\r\n ja2=k;\r\n }\r\n \r\n //if they are in the same row\r\n if((ia1==ia2) && (ja1!=ja2))\r\n {\r\n if(ja1!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n if(ja2!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n break a;\r\n }\r\n \r\n //if they are in the same column\r\n else if((ia1!=ia2) && (ja1==ja2))\r\n {\r\n if(ia1!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n if(ia2!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n break a;\r\n }\r\n \r\n //if they are neither in same row nor in same column\r\n else if((ia1!=ia2) && (ja1!=ja2))\r\n {\r\n bitsn[i]=bitsn[i]+table[j][ja2];\r\n bitsn[i]=bitsn[i]+table[j][ja1];\r\n break a;\r\n } \r\n }\r\n }\r\n ia1=0;\r\n ja1=0;\r\n ia2=0;\r\n ja2=0;\r\n }\r\n }\r\n String cip_txt=\"\";\r\n \r\n //adding up all the cypher bits to form the cypher text\r\n for(int i=0; i<lim; i++)\r\n {\r\n cip_txt=cip_txt+bitsn[i];\r\n }\r\n \r\n //finally pinting the cypher text\r\n System.out.println(\"The corresponding ciphertext is : \"+cip_txt);\r\n }", "public static void loadCharGerKeyWordToClassTable() {\n CharGerXMLTagNameToClassName.setProperty( \"Graph\", \"Graph\" );\n CharGerXMLTagNameToClassName.setProperty( \"Concept\", \"Concept\" );\n CharGerXMLTagNameToClassName.setProperty( \"Relation\", \"Relation\" );\n CharGerXMLTagNameToClassName.setProperty( \"Actor\", \"Actor\" );\n CharGerXMLTagNameToClassName.setProperty( \"TypeLabel\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"CGType\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"RelationLabel\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"CGRelType\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"Arrow\", \"Arrow\" );\n CharGerXMLTagNameToClassName.setProperty( \"GenSpecLink\", \"GenSpecLink\" );\n CharGerXMLTagNameToClassName.setProperty( \"Coref\", \"Coref\" );\n CharGerXMLTagNameToClassName.setProperty( \"Note\", \"Note\" );\n\n CharGerXMLTagNameToClassName.setProperty( \"graph\", \"Graph\" );\n CharGerXMLTagNameToClassName.setProperty( \"concept\", \"Concept\" );\n CharGerXMLTagNameToClassName.setProperty( \"relation\", \"Relation\" );\n CharGerXMLTagNameToClassName.setProperty( \"actor\", \"Actor\" );\n CharGerXMLTagNameToClassName.setProperty( \"typelabel\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"relationlabel\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"arrow\", \"Arrow\" );\n CharGerXMLTagNameToClassName.setProperty( \"genspeclink\", \"GenSpecLink\" );\n CharGerXMLTagNameToClassName.setProperty( \"coref\", \"Coref\" );\n CharGerXMLTagNameToClassName.setProperty( \"customedge\", \"CustomEdge\" );\n CharGerXMLTagNameToClassName.setProperty( \"note\", \"Note\" );\n }", "public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ­ ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "public static void main(String[] args) {\n List<String> words = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(\"google-10000-english-no-swears.txt\"))) {\n while (br.ready()) {\n words.add(br.readLine().toLowerCase());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //send a message to rose with the word cookie and your team name to get the next clue\n List<String> cipherWords = new ArrayList<>(Arrays.asList(cipher.split(\" \")));\n\n\n HashMap<Character, List<String>> charOccurrences = new HashMap<>();\n //Add all words where a character occurs to a list then map that list to the character\n for (String cipherWord : cipherWords) {\n for (Character ch : cipherWord.toCharArray()) {\n for (String cipherWord2 : cipherWords) {\n if (cipherWord2.contains(ch.toString())) {\n if (charOccurrences.get(ch) == null) {\n charOccurrences.put(ch, (new ArrayList<>(Collections.singletonList(cipherWord2))));\n } else {\n if (!charOccurrences.get(ch).contains(cipherWord2)) {\n charOccurrences.get(ch).add(cipherWord2);\n }\n }\n }\n }\n }\n }\n HashMap<Character, List<Character>> possibleChars = new HashMap<>();\n //Map all characters to a list of all characters which it could possibly be\n for (Map.Entry<Character, List<String>> entry : charOccurrences.entrySet()) {\n Character key = entry.getKey();\n List<String> value = entry.getValue();\n\n List<List<Character>> lists = new ArrayList<>();\n\n for (String string : value) {\n List<Character> characterList = new ArrayList<>();\n for (String patternMatch : getMatches(string, words)) {\n if (!characterList.contains(patternMatch.charAt(string.indexOf(key)))) {\n characterList.add(patternMatch.charAt(string.indexOf(key)));\n }\n }\n lists.add(characterList);\n }\n possibleChars.put(key, findDupes(lists));\n }\n\n HashMap<Character, Character> keyMap = new HashMap<>();\n\n removeCharacter(possibleChars, keyMap, true);\n\n\n //Loop a bunch of times to eliminate things that characters cant be\n for (int x = 0; x < 10; x++) {\n HashMap<Character, List<Character>> tempMap = new HashMap<>(possibleChars);\n possibleChars.clear();\n for (Map.Entry<Character, List<String>> entry : charOccurrences.entrySet()) {\n Character key = entry.getKey();\n List<String> value = entry.getValue();\n\n List<List<Character>> lists = new ArrayList<>();\n\n for (String string : value) {\n List<Character> characterList = new ArrayList<>();\n for (String patternMatch : getMatchesWithLetters(string, keyMap, tempMap, words)) {\n if (!characterList.contains(patternMatch.charAt(string.indexOf(key)))) {\n characterList.add(patternMatch.charAt(string.indexOf(key)));\n }\n }\n lists.add(characterList);\n }\n possibleChars.put(key, findDupes(lists));\n }\n\n keyMap.clear();\n\n removeCharacter(possibleChars, keyMap, true);\n\n }\n\n System.out.println(cipher);\n //print with a lil bit of frequency analysis to pick most common word if word has multiple possible results\n for (String str : cipherWords) {\n String temp = \"\";\n List<String> matchedWords = getMatchesWithLetters(str, keyMap, possibleChars, words);\n if (matchedWords.size() > 1) {\n int highest = 0;\n for (int x = 1; x < matchedWords.size(); x++) {\n if (words.indexOf(matchedWords.get(highest)) > words.indexOf(matchedWords.get(x))) {\n highest = x;\n }\n }\n temp = matchedWords.get(highest);\n }\n\n if (matchedWords.size() == 1) { //if there only 1 possibility print it.\n System.out.print(matchedWords.get(0));\n System.out.print(\" \");\n } else { //if there's more than 1 print the most common one.\n System.out.print(temp);\n System.out.print(\" \");\n }\n }\n }", "protected final boolean isCharTrie() {\n/* 358 */ return ((this.m_options_ & 0x100) == 0);\n/* */ }", "public char[][] mo26406a() {\n char[][] cArr = new char[(this.f18226b + 1)][];\n for (Entry entry : this.f18225a.entrySet()) {\n cArr[((Character) entry.getKey()).charValue()] = ((String) entry.getValue()).toCharArray();\n }\n return cArr;\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "void VNItoUnicode()\r\n\t{\r\n\t\tif (html) {\r\n\t\t\tHTMLtoANSI();\r\n\t\t\tprepareMetaTag();\r\n\r\n\t\t\t// Replace fonts\r\n\t\t\tstr = replaceString(str, \"VNI Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Couri\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Centur\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Brush\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Aptima\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Aptima\", SANS_SERIF);\r\n\t\t}\r\n\r\n\t\t// Part 1\r\n\t\tstr = str.replace('\\u00D1', '\\u0110'); // DD\r\n\t\tstr = str.replace('\\u00F1', '\\u0111'); // dd\r\n\t\tstr = str.replace('\\u00D3', '\\u0128'); // I~\r\n\t\tstr = str.replace('\\u00F3', '\\u0129'); // i~\r\n\t\tstr = str.replace('\\u00D2', '\\u1ECA'); // I.\r\n\t\tstr = str.replace('\\u00F2', '\\u1ECB'); // i.\r\n\t\tstr = str.replace('\\u00C6', '\\u1EC8'); // I?\r\n\t\tstr = str.replace('\\u00E6', '\\u1EC9'); // i?\r\n\t\tstr = str.replace('\\u00CE', '\\u1EF4'); // Y.\r\n\t\tstr = str.replace('\\u00EE', '\\u1EF5'); // y.\r\n\r\n\t\t// Part 2\r\n\t\t// Transform \"O\\u00C2\" -> \"\\u00C6\" to later transform back to \"\\u00D4\" in Part 3\r\n\t\tfinal String[] VNI_char = {\"O\\u00C2\", \"o\\u00E2\", \"y\\u00F5\", \"Y\\u00D5\",\r\n\t\t\t\t\"y\\u00FB\", \"Y\\u00DB\", \"y\\u00F8\", \"Y\\u00D8\", \"\\u00F6\\u00EF\",\r\n\t\t\t\t\"\\u00D6\\u00CF\", \"\\u00F6\\u00F5\", \"\\u00D6\\u00D5\", \"\\u00F6\\u00FB\",\r\n\t\t\t\t\"\\u00D6\\u00DB\", \"\\u00F6\\u00F8\", \"\\u00D6\\u00D8\", \"\\u00F6\\u00F9\",\r\n\t\t\t\t\"\\u00D6\\u00D9\", \"u\\u00FB\", \"U\\u00DB\", \"u\\u00EF\", \"U\\u00CF\",\r\n\t\t\t\t\"\\u00F4\\u00EF\", \"\\u00D4\\u00CF\", \"\\u00F4\\u00F5\", \"\\u00D4\\u00D5\",\r\n\t\t\t\t\"\\u00F4\\u00FB\", \"\\u00D4\\u00DB\", \"\\u00F4\\u00F8\", \"\\u00D4\\u00D8\",\r\n\t\t\t\t\"\\u00F4\\u00F9\", \"\\u00D4\\u00D9\", \"o\\u00E4\", \"O\\u00C4\",\r\n\t\t\t\t\"o\\u00E3\", \"O\\u00C3\", \"o\\u00E5\", \"O\\u00C5\", \"o\\u00E0\",\r\n\t\t\t\t\"O\\u00C0\", \"o\\u00E1\", \"O\\u00C1\", \"o\\u00FB\", \"O\\u00DB\",\r\n\t\t\t\t\"o\\u00EF\", \"O\\u00CF\", \"e\\u00E4\", \"E\\u00C4\", \"e\\u00E3\",\r\n\t\t\t\t\"E\\u00C3\", \"e\\u00E5\", \"E\\u00C5\", \"e\\u00E0\", \"E\\u00C0\",\r\n\t\t\t\t\"e\\u00E1\", \"E\\u00C1\", \"e\\u00F5\", \"E\\u00D5\", \"e\\u00FB\",\r\n\t\t\t\t\"E\\u00DB\", \"e\\u00EF\", \"E\\u00CF\", \"a\\u00EB\", \"A\\u00CB\",\r\n\t\t\t\t\"a\\u00FC\", \"A\\u00DC\", \"a\\u00FA\", \"A\\u00DA\", \"a\\u00E8\",\r\n\t\t\t\t\"A\\u00C8\", \"a\\u00E9\", \"A\\u00C9\", \"a\\u00E4\", \"A\\u00C4\",\r\n\t\t\t\t\"a\\u00E3\", \"A\\u00C3\", \"a\\u00E5\", \"A\\u00C5\", \"a\\u00E0\",\r\n\t\t\t\t\"A\\u00C0\", \"a\\u00E1\", \"A\\u00C1\", \"a\\u00FB\", \"A\\u00DB\",\r\n\t\t\t\t\"a\\u00EF\", \"A\\u00CF\", \"u\\u00F5\", \"U\\u00D5\", \"a\\u00EA\",\r\n\t\t\t\t\"A\\u00CA\", \"y\\u00F9\", \"u\\u00F9\", \"u\\u00F8\", \"o\\u00F5\",\r\n\t\t\t\t\"o\\u00F9\", \"o\\u00F8\", \"e\\u00E2\", \"e\\u00F9\", \"e\\u00F8\",\r\n\t\t\t\t\"a\\u00F5\", \"a\\u00E2\", \"a\\u00F9\", \"a\\u00F8\", \"Y\\u00D9\",\r\n\t\t\t\t\"U\\u00D9\", \"U\\u00D8\", \"O\\u00D5\", \"O\\u00D9\", \"O\\u00D8\",\r\n\t\t\t\t\"E\\u00C2\", \"E\\u00D9\", \"E\\u00D8\", \"A\\u00D5\", \"A\\u00C2\",\r\n\t\t\t\t\"A\\u00D9\", \"A\\u00D8\"};\r\n\t\tfinal String[] Unicode_char = {\"\\u00C6\", \"\\u00E6\", \"\\u1EF9\", \"\\u1EF8\",\r\n\t\t\t\t\"\\u1EF7\", \"\\u1EF6\", \"\\u1EF3\", \"\\u1EF2\", \"\\u1EF1\", \"\\u1EF0\",\r\n\t\t\t\t\"\\u1EEF\", \"\\u1EEE\", \"\\u1EED\", \"\\u1EEC\", \"\\u1EEB\", \"\\u1EEA\",\r\n\t\t\t\t\"\\u1EE9\", \"\\u1EE8\", \"\\u1EE7\", \"\\u1EE6\", \"\\u1EE5\", \"\\u1EE4\",\r\n\t\t\t\t\"\\u1EE3\", \"\\u1EE2\", \"\\u1EE1\", \"\\u1EE0\", \"\\u1EDF\", \"\\u1EDE\",\r\n\t\t\t\t\"\\u1EDD\", \"\\u1EDC\", \"\\u1EDB\", \"\\u1EDA\", \"\\u1ED9\", \"\\u1ED8\",\r\n\t\t\t\t\"\\u1ED7\", \"\\u1ED6\", \"\\u1ED5\", \"\\u1ED4\", \"\\u1ED3\", \"\\u1ED2\",\r\n\t\t\t\t\"\\u1ED1\", \"\\u1ED0\", \"\\u1ECF\", \"\\u1ECE\", \"\\u1ECD\", \"\\u1ECC\",\r\n\t\t\t\t\"\\u1EC7\", \"\\u1EC6\", \"\\u1EC5\", \"\\u1EC4\", \"\\u1EC3\", \"\\u1EC2\",\r\n\t\t\t\t\"\\u1EC1\", \"\\u1EC0\", \"\\u1EBF\", \"\\u1EBE\", \"\\u1EBD\", \"\\u1EBC\",\r\n\t\t\t\t\"\\u1EBB\", \"\\u1EBA\", \"\\u1EB9\", \"\\u1EB8\", \"\\u1EB7\", \"\\u1EB6\",\r\n\t\t\t\t\"\\u1EB5\", \"\\u1EB4\", \"\\u1EB3\", \"\\u1EB2\", \"\\u1EB1\", \"\\u1EB0\",\r\n\t\t\t\t\"\\u1EAF\", \"\\u1EAE\", \"\\u1EAD\", \"\\u1EAC\", \"\\u1EAB\", \"\\u1EAA\",\r\n\t\t\t\t\"\\u1EA9\", \"\\u1EA8\", \"\\u1EA7\", \"\\u1EA6\", \"\\u1EA5\", \"\\u1EA4\",\r\n\t\t\t\t\"\\u1EA3\", \"\\u1EA2\", \"\\u1EA1\", \"\\u1EA0\", \"\\u0169\", \"\\u0168\",\r\n\t\t\t\t\"\\u0103\", \"\\u0102\", \"\\u00FD\", \"\\u00FA\", \"\\u00F9\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F3\", \"\\u00F2\", \"\\u00EA\", \"\\u00E9\", \"\\u00E8\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E2\", \"\\u00E1\", \"\\u00E0\", \"\\u00DD\", \"\\u00DA\", \"\\u00D9\",\r\n\t\t\t\t\"\\u00D5\", \"\\u00D3\", \"\\u00D2\", \"\\u00CA\", \"\\u00C9\", \"\\u00C8\",\r\n\t\t\t\t\"\\u00C3\", \"\\u00C2\", \"\\u00C1\", \"\\u00C0\"};\r\n\r\n\t\tstr = replaceString(str, VNI_char, Unicode_char);\r\n\r\n\t\t// Part 3\r\n\t\tstr = str.replace('\\u00D4', '\\u01A0'); // O+\r\n\t\tstr = str.replace('\\u00F4', '\\u01A1'); // o+\r\n\t\tstr = str.replace('\\u00D6', '\\u01AF'); // U+\r\n\t\tstr = str.replace('\\u00F6', '\\u01B0'); // u+\r\n\t\tstr = str.replace('\\u00C6', '\\u00D4'); // O^\r\n\t\tstr = str.replace('\\u00E6', '\\u00F4'); // o^\r\n\t}", "C12000e mo41087c(String str);", "private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n this.charMap.put(alphabet[i], alphabet[(i+key) % 26]);\r\n }\r\n\r\n return this.charMap;\r\n }", "private void generateBack() {\n\t\tCharacter[] encodeChar = (Character[]) map.values().toArray(new Character[map.size()]);\n\t\tCharacter[] trueChar = (Character[]) map.keySet().toArray(new Character[map.size()]);\n\n\t\tString allencode = \"\";\n\t\tString allTrue = \"\";\n\n\t\tfor (int i = 0; i < encodeChar.length; i++) {\n\t\t\tallencode += encodeChar[i];\n\t\t\tallTrue += trueChar[i];\n\t\t}\n\n\t\tString code = \"import java.util.HashMap;\\n\" + \"import java.util.Map;\\n\" + \"import java.util.Scanner;\\n\"\n\t\t\t\t+ \"public class MyKey {\\n\"\n\t\t\t\t+ \"private static Map<Character, Character> map = new HashMap<Character, Character>();\\n\"\n\t\t\t\t+ \"private static char[] encodeChar = \\\"\" + allencode + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static char[] trueChar = \\\"\" + allTrue + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static void mapSetUp() {\\n\" + \"for (int i = 0; i < encodeChar.length; i++) {\\n\"\n\t\t\t\t+ \"map.put(encodeChar[i], trueChar[i]);\\n\" + \"}\\n\" + \"}\\n\"\n\t\t\t\t+ \"private static String decodeMessage(String message) {\\n\" + \"String decode = \\\"\\\";\\n\"\n\t\t\t\t+ \"for (int i = 0; i < message.length(); i++) {\\n\" + \"decode += map.get(message.charAt(i));\\n\" + \"}\\n\"\n\t\t\t\t+ \"return decode;\\n\" + \"}\\n\" + \"public static void main(String[] args){\\n\"\n\t\t\t\t+ \"Scanner sc = new Scanner(System.in);\\n\" + \"System.out.print(\\\"Input your encrypted message : \\\");\"\n\t\t\t\t+ \"String enMessage = sc.nextLine();\" + \"mapSetUp();\\n\"\n\t\t\t\t+ \"System.out.println(\\\"Decrypted message : \\\"+decodeMessage(enMessage));\\n\" + \"}}\";\n\t\tFile f = new File(\"MyKey.java\");\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tBufferedWriter bf = new BufferedWriter(fw);\n\t\t\tbf.write(code);\n\t\t\tbf.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error about IO.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Integer[] num = {3,2,5,0,1};\r\n Character[] letter = {'P','I','V','C','D'};\r\n SpecialEncoding<Integer> a= new SpecialEncoding<>(num);\r\n SpecialEncoding<Character> b= new SpecialEncoding<>(letter);\r\n \r\n }", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "C1111j mo5881f(String str);", "public C6987b mo21798a(String str, float f, boolean z, char[] cArr) {\n Typeface typeface;\n String lowerCase = str.toLowerCase();\n if (lowerCase.endsWith(\".otf\") || lowerCase.endsWith(\".ttf\")) {\n typeface = Typeface.createFromAsset(this.f24530b.mo22068i(), str);\n } else {\n typeface = (Typeface) C6987b.m36542a(str);\n }\n return new C6987b(typeface, m36425g(f), z, cArr);\n }", "private static String m6490z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 79;\n break;\n case 1:\n i2 = 95;\n break;\n case 2:\n i2 = 53;\n break;\n case 3:\n i2 = 70;\n break;\n default:\n i2 = 108;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }", "public static void decode () {\n // read the input\n int firstThing = BinaryStdIn.readInt();\n s = BinaryStdIn.readString();\n char[] t = s.toCharArray();\n char[] firstColumn = new char[t.length];\n int [] next = new int[t.length];\n \n // copy array and sort\n for (int i = 0; i < t.length; i++) {\n firstColumn[i] = t[i];\n }\n Arrays.sort(firstColumn);\n \n // decode\n int N = t.length;\n int [] count = new int[256];\n \n // counts frequency of each letter\n for (int i = 0; i < N; i++) {\n count[t[i]]++;\n }\n \n int m = 0, j = 0;\n \n // fills the next[] array with appropriate values\n while (m < N) {\n int _count = count[firstColumn[m]];\n while (_count > 0) {\n if (t[j] == firstColumn[m]) {\n next[m++] = j;\n _count--;\n }\n j++;\n }\n j = 0;\n }\n \n // decode the String\n int _next = next.length;\n int _i = firstThing;\n for (int i = 0; i < _next; i++) {\n _i = next[_i];\n System.out.print(t[_i]);\n } \n System.out.println();\n }", "static void method_6447() {\r\n String[] var5 = new String[3];\r\n int var3 = 0;\r\n String var2 = \"ûÄ È̺°ˆ¼KÈ\u0007Îá\u0013”íå\u0002ä \";\r\n int var4 = \"ûÄ È̺°ˆ¼KÈ\u0007Îá\u0013”íå\u0002ä \".length();\r\n char var1 = 11;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var11 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_6229 = var5;\r\n String[] var10 = field_6229;\r\n field_6228 = \"CL_00000440\";\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 124;\r\n break;\r\n case 1:\r\n var10009 = 76;\r\n break;\r\n case 2:\r\n var10009 = 187;\r\n break;\r\n case 3:\r\n var10009 = 60;\r\n break;\r\n case 4:\r\n var10009 = 56;\r\n break;\r\n case 5:\r\n var10009 = 78;\r\n break;\r\n default:\r\n var10009 = 68;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var11 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString xStringA = scan.next() + \"111111\";\n\t\tchar[] xCharA = xStringA.toCharArray();\n\t\tString[] xAlpha = new String[26];\n\t\txAlpha[0]=\"a\";\n\t\txAlpha[1]=\"B\";\n\t\txAlpha[2]=\"C\";\n\t\txAlpha[3]=\"D\";\n\t\txAlpha[4]=\"E\";\n\t\txAlpha[5]=\"F\";\n\t\txAlpha[6]=\"G\";\n\t\txAlpha[7]=\"H\";\n\t\txAlpha[8]=\"I\";\n\t\txAlpha[9]=\"J\";\n\t\txAlpha[10]=\"K\";\n\t\txAlpha[11]=\"L\";\n\t\txAlpha[12]=\"M\";\n\t\txAlpha[13]=\"N\";\n\t\txAlpha[14]=\"O\";\n\t\txAlpha[15]=\"P\";\n\t\txAlpha[16]=\"Q\";\n\t\txAlpha[17]=\"R\";\n\t\txAlpha[18]=\"S\";\n\t\txAlpha[19]=\"T\";\n\t\txAlpha[20]=\"U\";\n\t\txAlpha[21]=\"V\";\n\t\txAlpha[22]=\"W\";\n\t\txAlpha[23]=\"X\";\n\t\txAlpha[24]=\"Y\";\n\t\txAlpha[25]=\"Z\";\n\t\t\n\t\t\n\t\tchar one = xStringA.charAt(0);\n\t\tchar two = xStringA.charAt(1);\n\t\tchar three = xStringA.charAt(2);\n\t\tchar four = xStringA.charAt(3);\n\t\tchar five = xStringA.charAt(4);\n\t\tchar six = xStringA.charAt(5);\n\n\t\tString sOne = Character.toString(one);\n\t\tString sTwo = Character.toString(two);\n\t\tString sThree = Character.toString(three);\n\t\tString sFour = Character.toString(four);\n\t\tString sFive = Character.toString(five);\n\t\tString sSix = Character.toString(six);\n\t/*\t\n\t\tSystem.out.println(sOne);\n\t\tSystem.out.println(sTwo);\n\t\tSystem.out.println(sThree);\n\t\tSystem.out.println(sFour);\n\t\tSystem.out.println(sFive);\n\t\tSystem.out.println(sSix);\n\t*/\n\t\t\n\t\tfor (int i = 0; i < 26 ; i++) {\n\t\t\tif (sOne != xAlpha[i]) {\n\t\t\t\tint oneVar = 1;\n\t\t\t\toneVar = i+1;\n\t\t\t\tSystem.out.println(\"Value is\");\n\t\t\t\tSystem.out.println(sOne + \" \" +xAlpha[i]);\n\t\t\t\tSystem.out.println(oneVar);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"no value was similar1\");\n\t\t\t}\n\t\t\t\n\t\t\tif (sTwo != xAlpha[i]) {\n\t\t\t\tint twoVar = 2;\n\t\t\t\ttwoVar = i+1;\n\t\t\t\tSystem.out.println(\"Value is\");\n\t\t\t\tSystem.out.println(sTwo + \" \" +xAlpha[i]);\n\t\t\t\tSystem.out.println(twoVar);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"no value was similar2\");\n\t\t\t}\n\t\t\t}\n\t\t}", "static void method_5904() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"š¡,´\u001a\u000b›éÜG°\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_5515 = (new String((char[])var4)).intern();\r\n String var2 = field_5515;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 111;\r\n break;\r\n case 2:\r\n var10009 = 241;\r\n break;\r\n case 3:\r\n var10009 = 6;\r\n break;\r\n case 4:\r\n var10009 = 168;\r\n break;\r\n case 5:\r\n var10009 = 185;\r\n break;\r\n default:\r\n var10009 = 41;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public void encodeChars() {\n encodedChars = new int[uniqueChars.size()];\n Iterator<Character> mover = uniqueChars.iterator();\n Iterator<Character> moverTwo = uniqueChars.iterator();\n System.out.print(\"\\nEncoding characters to its ASCII integer value:\");\n for(int a = 0; a < uniqueChars.size(); a++) {\n encodedChars[a] = (int)mover.next();\n encodedChars[a] = encodedChars[a] / encodedChars[a] + a - 1;\n System.out.print(moverTwo.next() + \" : \" + encodedChars[a] + \", \");\n }\n System.out.println(\"\\n\");\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 166) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "static byte[] getEmbeddingArray(char[] chars, boolean ltr) {\n byte[] embeddings = new byte[chars.length];\n\n byte baseLevel = (byte)(ltr ? 0 : 1);\n byte level = baseLevel;\n int s = 0; // stack counter\n int skip = 0; // skip counter when codes don't affect the stack\n byte levelStack[] = new byte[NUMLEVELS]; // stack of levels\n char charStack[] = new char[NUMLEVELS]; // stack of format chars\n\n for (int i = 0; i < chars.length; i++) {\n char c = chars[i];\n switch (c) {\n case LRE:\n case LRO: {\n if (skip > 0) {\n ++skip;\n } else {\n byte newlevel = (byte)((level & 0x0e) + 2);\n if (newlevel >= NUMLEVELS) {\n ++skip;\n } else {\n charStack[s] = c;\n levelStack[s++] = level;\n embeddings[i] = level;\n\n if (c == LRO) {\n level = (byte)(newlevel + 0x10);\n } else {\n level = newlevel;\n }\n\n continue;\n }\n }\n } break;\n\n case RLE:\n case RLO: {\n if (skip > 0) {\n ++skip;\n } else {\n byte newlevel = (byte)(((level & 0xf) + 1) | 0x01);\n if (newlevel >= NUMLEVELS) {\n ++skip;\n } else {\n charStack[s] = c;\n levelStack[s++] = level;\n embeddings[i] = level;\n\n if (c == RLO) {\n level = (byte)(newlevel + 0x10);\n } else {\n level = newlevel;\n }\n\n continue;\n }\n }\n } break;\n\n case PDF:\n if (skip > 0) {\n --skip;\n } else if (s > 0) {\n // lookahead to coalesce level pairs\n if ((i < chars.length-1) && (chars[i+1] == charStack[s-1])) {\n embeddings[i] = level;\n embeddings[i+1] = level;\n i += 1;\n continue;\n }\n level = levelStack[--s];\n }\n break;\n\n default:\n break;\n }\n\n embeddings[i] = level;\n }\n\n return embeddings;\n }", "private static void loadConsonant() {\r\n subConsonant = new LinkedHashMap<String, String>();\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1000\")), \"0xE000\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1001\")), \"0xE001\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1002\")), \"0xE002\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1003\")), \"0xE003\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1005\")), \"0xE005\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1006\")), \"0xE006\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1007\")), \"0xE007\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1008\")), \"0xE008\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x100C\")), \"0xE00C\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x100E\")), \"0xE00E\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x100F\")), \"0xE00F\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1010\")), \"0xE010\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1011\")), \"0xE011\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1012\")), \"0xE012\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1013\")), \"0xE013\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1014\")), \"0xE014\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1015\")), \"0xE015\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1016\")), \"0xE016\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1017\")), \"0xE017\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1018\")), \"0xE018\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x1019\")), \"0xE019\");\r\n subConsonant.put(getSubConsonantKey(UnicodeUtil.unicodeChar(\"0x101C\")), \"0xE01C\");\r\n }", "public static int murmur3A(CharSequence data, int offset, int len, int seed) {\n\n final int c1 = 0xcc9e2d51;\n final int c2 = 0x1b873593;\n\n int h1 = seed;\n\n int pos = offset;\n int end = offset + len;\n int k1 = 0;\n int shift = 0;\n int nBytes = 0; // length in UTF8 bytes\n\n\n while (pos < end) {\n int k2;\n int bits;\n int code = data.charAt(pos++);\n if (code < 0x80) {\n k2 = code;\n bits = 8;\n } else if (code < 0x800) {\n k2 = (0xC0 | (code >> 6))\n | ((0x80 | (code & 0x3F)) << 8);\n bits = 16;\n } else if (code < 0xD800 || code > 0xDFFF || pos >= end) {\n // we check for pos>=end to encode an unpaired surrogate as 3 bytes.\n k2 = (0xE0 | (code >> 12))\n | ((0x80 | ((code >> 6) & 0x3F)) << 8)\n | ((0x80 | (code & 0x3F)) << 16);\n bits = 24;\n } else {\n // surrogate pair\n // int utf32 = pos < end ? (int) data.charAt(pos++) : 0;\n int utf32 = data.charAt(pos++);\n utf32 = ((code - 0xD7C0) << 10) + (utf32 & 0x3FF);\n k2 = (0xff & (0xF0 | (utf32 >> 18)))\n | ((0x80 | ((utf32 >> 12) & 0x3F))) << 8\n | ((0x80 | ((utf32 >> 6) & 0x3F))) << 16\n | (0x80 | (utf32 & 0x3F)) << 24;\n bits = 32;\n }\n\n\n k1 |= k2 << shift;\n\n // int used_bits = 32 - shift; // how many bits of k2 were used in k1.\n // int unused_bits = bits - used_bits; // (bits-(32-shift)) == bits+shift-32 == bits-newshift\n\n shift += bits;\n if (shift >= 32) {\n // mix after we have a complete word\n\n k1 *= c1;\n k1 = (k1 << 15) | (k1 >>> 17); // ROTL32(k1,15);\n k1 *= c2;\n\n h1 ^= k1;\n h1 = (h1 << 13) | (h1 >>> 19); // ROTL32(h1,13);\n h1 = h1 * 5 + 0xe6546b64;\n\n shift -= 32;\n // unfortunately, java won't let you shift 32 bits off, so we need to check for 0\n if (shift != 0) {\n k1 = k2 >>> (bits - shift); // bits used == bits - newshift\n } else {\n k1 = 0;\n }\n nBytes += 4;\n }\n\n } // inner\n\n // handle tail\n if (shift > 0) {\n nBytes += shift >> 3;\n k1 *= c1;\n k1 = (k1 << 15) | (k1 >>> 17); // ROTL32(k1,15);\n k1 *= c2;\n h1 ^= k1;\n }\n\n // finalization\n h1 ^= nBytes;\n\n // fmix(h1);\n h1 ^= h1 >>> 16;\n h1 *= 0x85ebca6b;\n h1 ^= h1 >>> 13;\n h1 *= 0xc2b2ae35;\n h1 ^= h1 >>> 16;\n\n return h1;\n }", "private static char [] yy_unpack_cmap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1742) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "@Override\n public Object processChars(char[] pattern, int k) {\n\n int b = clog2(k + 1) + 1;\n int l = Math.min(pattern.length, 31 / b);\n int lim = k << ((l - 1) * b);\n int ovmask = 0;\n int mask = 1 << (b - 1);\n\n for (int j = 0; j < l; ++j) {\n ovmask |= mask;\n mask <<= b;\n }\n\n int tInit = ovmask >> (b - 1);\n CharIntMap T = createCharIntMap(pattern, l, tInit);\n\n lim += 1 << ((l - 1) * b);\n mask = 1;\n\n for (int j = 0; j < l; ++j) {\n T.set(pattern[j], T.get(pattern[j]) & ~mask);\n mask <<= b;\n }\n\n return new Object[] { T, mask - 1, ovmask, lim, b };\n\n }", "private void setUp() {\n\t\tString allLetter = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. 0123456789\";\n\t\tallChar = allLetter.toCharArray();\n\t\tshuffledChar = shuffle(allLetter.toCharArray());\n\t\tmap = new HashMap<Character, Character>();\n\t\tmapSetUp();\n\t}", "private Map<Character, Long> map(final String text) {\n Map<Character, Long> result = new HashMap<>();\n for (char c : text\n .replaceAll(validCharsRegex, \"\")\n .toLowerCase()\n .toCharArray()) {\n result.put(c, result.getOrDefault(c, 0L) + 1);\n }\n return result;\n }", "public String encode() {\n\t\tString coded = \"\";\n\t\tfor (Character c: this.input.toCharArray()) {\n\t\t\tcoded += this.mapping.get(c);\n\t\t}\n\t\treturn coded;\n\t}", "public String mo26396a(String str) {\n int length = str.length();\n for (int i = 0; i < length; i++) {\n char charAt = str.charAt(i);\n char[][] cArr = this.f18227c;\n if (charAt < cArr.length && cArr[charAt] != null) {\n return mo26403a(str, i);\n }\n }\n return str;\n }", "protected Trie(char[] paramArrayOfchar, int paramInt, DataManipulate paramDataManipulate) {\n/* 147 */ this.m_options_ = paramInt;\n/* 148 */ if (paramDataManipulate != null) {\n/* 149 */ this.m_dataManipulate_ = paramDataManipulate;\n/* */ } else {\n/* 151 */ this.m_dataManipulate_ = new DefaultGetFoldingOffset();\n/* */ } \n/* 153 */ this.m_isLatin1Linear_ = ((this.m_options_ & 0x200) != 0);\n/* */ \n/* 155 */ this.m_index_ = paramArrayOfchar;\n/* 156 */ this.m_dataOffset_ = this.m_index_.length;\n/* */ }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 166) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private char getMappingCode(String string2, int n2) {\n char c2;\n char c3;\n char c4 = c2 = this.map(string2.charAt(n2));\n if (n2 <= 1) return c4;\n c4 = c2;\n if (c2 == '0') return c4;\n char c5 = string2.charAt(n2 - 1);\n if ('H' != c5) {\n c4 = c2;\n if ('W' != c5) return c4;\n }\n if (this.map(c3 = string2.charAt(n2 - 2)) == c2) return '\\u0000';\n if ('H' == c3) return '\\u0000';\n c4 = c2;\n if ('W' != c3) return c4;\n return '\\u0000';\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x110000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 172) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "protected boolean encode()\n {\n\t\tfor(int i=0;i<256;i++)\n {\n\t\t\tstr[i] = String.valueOf((char)i);\n\t\t}\n str[13] = \"\";\n\t\tstr[10] = \"\\n\";\n str[65] = \" \".concat(this.A);\n\t\tstr[67] = \" \".concat(this.C);\n str[71] = \" \".concat(this.G);\n\t\tstr[84] = \" \".concat(this.T);\n try\n\t\t{\n \treader = new FileReader(in);\n writer = new FileWriter(out);\n\n\t\t\t/*******************************************************************************\n\t\t\t *\tThis loop traverse to the dna sequence and maps each character to\n\t\t\t *\tpredefined graphical value character by character\n\t\t\t *******************************************************************************/\n\t\t\twhile(true)\n {\n\t\t\t\ttemp = reader.read();\n if(temp == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t\tif(temp>=97 && temp<=122)\n\t\t\t\t\t\ttemp=temp-32;\n\t\t\t\tif(temp==65 || temp==67 || temp==71 || temp==84)\n \tspace_flag = 1;\n\t\t\t\telse\n\t\t\t\t{\n \tif(space_flag == 1)\n {\n\t\t\t\t\t\tt_str = \" \".concat(str[temp]);\n writer.write(t_str);\n\t\t\t\t\t\tspace_flag = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n space_flag = 0;\n\t\t\t\t}\n if(temp == 59 || temp == 62)\n\t\t\t\t{\n \tt_str = \"\";\n while(temp != 10)\n\t\t\t\t\t{\n \tt_str = t_str.concat(String.valueOf((char)temp));\n temp = reader.read();\n\t\t\t\t\t}\n t_str = t_str.concat(\"(Mapping: A>\"+this.A+\" C>\"+this.C+\" G>\"+this.G+\" T>\"+this.T+\")\");\n t_str = t_str.concat(\"\\n\");\n\t\t\t\t\twriter.write(t_str);\n\t\t\t\t}\n else\n\t\t\t\t\twriter.write(str[temp]);\n\t\t\t}\n writer.close();\n\t\t\treader.close();\n\t\t}\n catch (IOException e)\n\t\t{\n e.printStackTrace (System.out);\n JOptionPane.showMessageDialog(null,\"Exception occurred :( \");\n return false;\n\t\t}\n\t\treturn true;\n\t}", "void mo1582a(String str, C1329do c1329do);", "@Test\n public void Test8484()\n {\n String s = \"\\u9FE1\\uCEF3\\u2798\\uAAB6\\uDA7C\";\n Collator coll = Collator.getInstance();\n CollationKey collKey = coll.getCollationKey(s); \n logln(\"Pass: \" + collKey.toString() + \" generated OK.\");\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1774) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "public abstract C0690a mo9258k(String str);", "@FunctionalInterface\npublic interface CharEncoder {\n\n /**\n * Appends an encoded representation of the specified {@code ch} character (Unicode code point)\n * to the specified {@code buffer} and returns a number of characters ({@code char}) appended.\n */\n int encode(int ch, CharBuffer buffer);\n\n /**\n * An identity character encoder that does not apply any conversion to characters and appends\n * them to the buffer as is (1:1 mapping).\n */\n CharEncoder IDENTITY = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n buffer.append(ch);\n return Character.charCount(ch);\n }\n };\n\n /**\n * A character encoder that converts characters to uppercase according to the\n * {@link Character#toUpperCase(int)} method. Note that this encoder does not take locale into\n * account.\n */\n CharEncoder UPPERCASE = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n buffer.append(ch = Character.toUpperCase(ch));\n return Character.charCount(ch);\n }\n };\n\n /**\n * A character encoder that converts characters to lowercase according to the\n * {@link Character#toLowerCase(int)} method. Note that this encoder does not take locale into\n * account.\n */\n CharEncoder LOWERCASE = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n buffer.append(ch = Character.toLowerCase(ch));\n return Character.charCount(ch);\n }\n };\n\n /**\n * A character encoder that converts characters to titlecase according to the\n * {@link Character#toTitleCase(int)} method. Note that this encoder does not take locale into\n * account.\n */\n CharEncoder TITLECASE = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n buffer.append(ch = Character.toTitleCase(ch));\n return Character.charCount(ch);\n }\n };\n\n /**\n * A character encoder that converts characters to the corresponding Unicode hexadecimal\n * 16/32-bit representation using the {@link Character#isBmpCodePoint(int)} method to determine\n * if the specified character code point is in the Basic Multilingual Plane (BMP) or it is a\n * supplementary character. The format of BMP characters is <code>&#92;uXXXX</code>. The format\n * of supplementary characters is <code>&#92;uHHHH&#92;uLLLL</code>, where {@code HHHH} is high\n * surrogate part extracted using the {@link Character#highSurrogate(int)} method and\n * {@code LLLL} is low surrogate part extracted using the {@link Character#lowSurrogate(int)}\n * method. The format is compatible with Java language. Note that this encoder does not validate\n * the specified character to be a valid Unicode code point.\n */\n CharEncoder UCODE = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n if (Character.isBmpCodePoint(ch)) {\n buffer.ensureCapacity(6);\n buffer.append('\\\\').append('u').appendHex((short) ch);\n return 6;\n } else {\n buffer.ensureCapacity(12);\n buffer.append('\\\\').append('u').appendHex((short) Character.highSurrogate(ch));\n buffer.append('\\\\').append('u').appendHex((short) Character.lowSurrogate(ch));\n return 12;\n }\n }\n };\n\n /**\n * The Java character encoder that adds {@code '\\\\'} escape character for the {@code '\\\\'},\n * {@code '\\''}, {@code '\\\"'}, {@code '\\n'}, {@code '\\r'}, {@code '\\t'}, {@code '\\b'} and\n * {@code '\\f'} characters. All the {@link Character#isISOControl(int)} characters will be\n * converted to the {@link #UCODE} format as well. Other characters will be appended to the\n * buffer as is.\n */\n CharEncoder JAVA = new CharEncoder() {\n @Override public int encode(int ch, CharBuffer buffer) {\n switch (ch) {\n case '\\\\':\n buffer.append('\\\\').append('\\\\');\n return 2;\n case '\\'':\n buffer.append('\\\\').append('\\'');\n return 2;\n case '\\\"':\n buffer.append('\\\\').append('\\\"');\n return 2;\n case '\\n':\n buffer.append('\\\\').append('n');\n return 2;\n case '\\r':\n buffer.append('\\\\').append('r');\n return 2;\n case '\\t':\n buffer.append('\\\\').append('t');\n return 2;\n case '\\b':\n buffer.append('\\\\').append('b');\n return 2;\n case '\\f':\n buffer.append('\\\\').append('f');\n return 2;\n default:\n return Character.isISOControl(ch) ? UCODE.encode(ch, buffer) : IDENTITY.encode(ch, buffer);\n }\n }\n };\n\n}", "public Characters(Tree story){//Will eventually automate the creation of Character objects when given a story. So really, the bulk of the work in terms of Character analysis will be done here in this class/in Character.\n\t\tWordTrainingSet.importWordSet(false);\n\t\tcharacters = new TreeMap<String, Character>(); //Character's name (String) , all of its qualities are stored in the Character object which is the value.\n\t\tinitializeAllCharacters(story);\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n HashMap<Integer, Character> hashMap = new HashMap<Integer, Character>();\n hashMap.put(0,'F');hashMap.put(1,'G');hashMap.put(2,'R');\n hashMap.put(3,'S');hashMap.put(4,'T');hashMap.put(5,'L');\n hashMap.put(6,'M');hashMap.put(7,'N');hashMap.put(8,'O');\n hashMap.put(9,'P');hashMap.put(10,'Q');hashMap.put(11,'W');\n hashMap.put(12,'X');hashMap.put(13,'Y');hashMap.put(14,'Z');\n hashMap.put(15,'U');hashMap.put(16,'A');hashMap.put(17,'G');\n hashMap.put(18,'H');hashMap.put(19,'I');hashMap.put(20,'J');\n hashMap.put(21,'K');hashMap.put(22,'B');hashMap.put(23,'C');\n hashMap.put(24,'D');hashMap.put(25,'E');hashMap.put(26,'l');\n hashMap.put(27,'m');hashMap.put(28,'n');hashMap.put(29,'o');\n hashMap.put(30,'p');hashMap.put(31,'i');hashMap.put(32,'j');\n hashMap.put(33,'k');hashMap.put(34,'f');hashMap.put(35,'g');\n hashMap.put(36,'h');hashMap.put(37,'a');hashMap.put(38,'b');\n hashMap.put(39,'c');hashMap.put(40,'d');hashMap.put(41,'e');\n hashMap.put(42,'q');hashMap.put(43,'r');hashMap.put(44,'w');\n hashMap.put(45,'x');hashMap.put(46,'y');hashMap.put(47,'z');\n hashMap.put(48,'s');hashMap.put(49,'t');hashMap.put(50,'u');\n hashMap.put(51,'v');\n while(in.hasNext()){\n String str = in.next();\n\n String[] arr = str.split(\"[#]+\");\n\n StringBuffer ss = new StringBuffer();\n\n for (int i = 0; i < arr.length; i++) {\n\n //System.out.println(arr[i]);\n\n StringBuffer sb = new StringBuffer();\n\n for (int j = 0; j < arr[i].length(); j++) {\n\n int a = arr[i].charAt(j)=='-'?0:1;\n sb.append(a);\n }\n\n long b = Long.valueOf(sb.toString(),2);\n\n if (b>51||b<0){\n ss.replace(0,ss.length(),\"\");\n ss.append(\"ERROR\");\n break;\n }else {\n ss.append(hashMap.get((int)b));\n }\n }\n System.out.println(ss);\n\n }\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "static void method_6222() {\r\n String[] var5 = new String[2];\r\n int var3 = 0;\r\n String var2 = \"Yᇼ\u000bNÔ¨é®H\u0004=¬Îï\";\r\n int var4 = \"Yᇼ\u000bNÔ¨é®H\u0004=¬Îï\".length();\r\n char var1 = 4;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n class_1652 var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var11 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_5882 = var5;\r\n String[] var10 = field_5882;\r\n field_5881 = \"CL_00000496\";\r\n class_1652[] var7 = new class_1652[7];\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5123, 0, 1, 5, 10);\r\n var7[0] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5124, 0, 1, 3, 5);\r\n var7[1] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5189, 0, 4, 9, 5);\r\n var7[2] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5121, 0, 3, 8, 10);\r\n var7[3] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5155, 0, 1, 3, 15);\r\n var7[4] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5118, 0, 1, 3, 15);\r\n var7[5] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5115, 0, 1, 1, 1);\r\n var7[6] = var10004;\r\n field_5879 = var7;\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 206;\r\n break;\r\n case 2:\r\n var10009 = 161;\r\n break;\r\n case 3:\r\n var10009 = 143;\r\n break;\r\n case 4:\r\n var10009 = 200;\r\n break;\r\n case 5:\r\n var10009 = 46;\r\n break;\r\n default:\r\n var10009 = 98;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var11 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }", "public String getCharacterSequence();", "public static void main(String[] args) {\n char[] cadeiaCaracter = {'B','E','N','G','I','L'};\n String cadeiaChar = new String(cadeiaCaracter);\n System.out.println(cadeiaChar);\n //Criar string a partir de intervalo de cadeias de caractere\n char[] abcdef = {'A','B','C','D','E','F'};\n String abc = new String(abcdef, 0,3);\n System.out.println(abc);\n //Array de byte, cada byte representa um caractere da tabela ascii\n byte[] ascii = {65,66,67,68,69};\n String abcde = new String(ascii);\n System.out.println(abcde);\n String cde = new String(ascii,1,3);\n System.out.println(cde);\n //Atribuição sem o new\n String let = \"Letícia\";\n String lettis = \"Letícia\";\n System.out.println(let);\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 2224) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 164) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "Alphabet(String chars) {\n _chars = sanitizeChars(chars);\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 178) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Azy;\u001ftQF\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var3 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var4 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1678 = (new String((char[])var3)).intern();\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var3)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 229;\r\n break;\r\n case 1:\r\n var10009 = 210;\r\n break;\r\n case 2:\r\n var10009 = 203;\r\n break;\r\n case 3:\r\n var10009 = 146;\r\n break;\r\n case 4:\r\n var10009 = 172;\r\n break;\r\n case 5:\r\n var10009 = 142;\r\n break;\r\n default:\r\n var10009 = 179;\r\n }\r\n\r\n ((Object[])var3)[var0] = (char)(var10007 ^ var4 ^ var10009);\r\n ++var0;\r\n }\r\n }" ]
[ "0.66601163", "0.64467585", "0.6231634", "0.61495155", "0.60468304", "0.5942644", "0.59402996", "0.593555", "0.5858972", "0.5784795", "0.5716618", "0.5692278", "0.56723374", "0.5658209", "0.55889016", "0.55829227", "0.55775917", "0.5570284", "0.55557984", "0.55283636", "0.5479758", "0.5479052", "0.54726124", "0.54694116", "0.5435442", "0.54243946", "0.54074585", "0.538253", "0.5370711", "0.5364822", "0.53564787", "0.535121", "0.53502554", "0.53353405", "0.5325234", "0.53199047", "0.53147227", "0.5310739", "0.5305358", "0.5302464", "0.529853", "0.52938545", "0.52688915", "0.5267662", "0.5254552", "0.5253722", "0.52393633", "0.5228807", "0.522101", "0.5218439", "0.5216767", "0.5215589", "0.52118325", "0.52100056", "0.52081525", "0.52025545", "0.5201813", "0.52017903", "0.5193047", "0.5178253", "0.51767766", "0.51740766", "0.51725477", "0.5170131", "0.5148094", "0.5147356", "0.5131426", "0.51291263", "0.51284105", "0.51241964", "0.51220846", "0.5116349", "0.51150215", "0.5114978", "0.5111413", "0.510874", "0.5107712", "0.51034915", "0.5098277", "0.5097998", "0.5097344", "0.5090286", "0.50815654", "0.5079462", "0.5078515", "0.50775427", "0.50765234", "0.5074514", "0.5072701", "0.50700694", "0.506765", "0.50666964", "0.5066591", "0.506358", "0.50622636", "0.50563973", "0.5055686", "0.50548786", "0.5053978", "0.5053759", "0.5053448" ]
0.0
-1
Creates a new scanner
HostsLexer(java.io.Reader in) { this.zzReader = in; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scanner createScanner(File file) {\n Scanner scanner;\n try {\n scanner = new Scanner(file);\n\n } catch (FileNotFoundException e) {\n scanner = null;\n }\n return scanner;\n }", "private ConsoleScanner() {}", "public Parser(Scanner scanner) {\n this.scanner = scanner;\n scan();\n }", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(String source) {\n // The source code read in from stdin is stored here as a char array\n // TODO: if source is empty in Sc.java do something??\n this.source = source.toCharArray();\n this.position = 0;\n this.size = source.length();\n this.comments = false;\n this.depth = 0;\n this.called = false;\n }", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public CoolParser(java_cup.runtime.Scanner s) {super(s);}", "private static Scanner createScanner(File inputFile)\n\t{\n\t\t/// create Scanner to read from file and also check if the file exists\n\t Scanner in = null; // closes before the end of readDataFile\n\t try \n\t {\n\t \tin=new Scanner(inputFile);\n\t }\n\t catch(FileNotFoundException e) \n\t {\n\t \tSystem.out.println(\"The file \"+ inputFile.getName() + \" can not be found!\");\n\t \tSystem.exit(0);\n\t }\n\t \n\t return in;\n\t}", "protected Scanner getTagScanner() {\n \tif(scanner == null)\n \t scanner = new Scanner();\n \treturn scanner;\n }", "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhitespace(whitespace);\n\t\tinitDigits(digits);\n\t\tinitLetters(letters);\n\t\tinitLegits(legits);\n\t\tinitKeywords(keywords);\n\t\tinitOperators(operators);\n }", "public parserCapas(java_cup.runtime.Scanner s) {super(s);}", "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "public Scanner(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "public parser(Scanner s) {super(s);}", "private Scanner getScanner(String fixedString) throws IOException {\n\t\tURLConnection connection = new URL(SUPERVALU_URL_START +fixedString).openConnection();\n\t\treturn new Scanner(connection.getInputStream());\n\t}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public static void setScanner(Scanner s) {\n scanner = s;\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public static QRScanner newInstance() {\n QRScanner fragment = new QRScanner();\n return fragment;\n }", "public Scanner(InputStream inStream)\n {\n in = new BufferedReader(new InputStreamReader(inStream));\n eof = false;\n getNextChar();\n }", "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "public PasitoScanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public CompParser(java_cup.runtime.Scanner s) {super(s);}", "void scanner() {\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\tString source = \"asdqw easd casa\";\r\n\t\tScanner s1 = new Scanner(source);\r\n\t\t// hasNext() - testuje wartosc kolejnego tokena, ale go nie pobiera\r\n\t\t// next() - pobiera kolejny token\r\n\t\t// domyslnie bialy znak jest delimiterem\r\n\t\twhile (s1.hasNext()) {\r\n\t\t\tSystem.out.println(s1.next());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// hasNextXxx() - dla wszystkich primitives oprocz chara\r\n\t\t// nextXxx() - pobiera kolejny prymitywny token\r\n\t\tScanner s2 = new Scanner(\"1 true 34 hi\");\r\n\t\tboolean b;\r\n\t\twhile (b = s2.hasNext()) {\r\n\t\t\tif (s2.hasNextInt()) {\r\n\t\t\t\tint i = s2.nextInt();\r\n\t\t\t\tSystem.out.println(\"integer token: \" + i);\r\n\t\t\t} else if (s2.hasNextBoolean()) {\r\n\t\t\t\tboolean b2 = s2.nextBoolean();\r\n\t\t\t\tSystem.out.println(\"boolean token: \" + b2);\r\n\t\t\t} else {\r\n\t\t\t\tString str = s2.next();\r\n\t\t\t\tSystem.out.println(\"String token: \" + str);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// useDelimiter(delimiter) - ustawienie delimitera (wyrazenia regularnego) wg ktorego bedzie przetwarzany strumien\r\n\t\t// domyslnym delimiterem jest spacja, tabulator, ogolnie bialy znak lub znaki\r\n\t\tScanner s3 = new Scanner(\"Test1 true 34 hi\");\r\n\t\ts3.useDelimiter(\"\\\\d\"); // delimiterem jest cyfra\r\n\t\twhile (s3.hasNext()) {\r\n\t\t\tSystem.out.println(s3.next());\r\n\t\t}\r\n\t}", "public Scanner getScanner(){\n\t\t\n\t\tString filename = \"\";\n\t\tfor(int i = 0; i<argList.size(); i++ ){\n\t\t\tif(argList.get(i).equals(\"-f\")){\n\t\t\t\tfilename = argList.get(i+1);\n\t\t\t\t//DIFFERENT FROM OTHER INIT FILE!\n\t\t\t\tfilename = filename.trim().replace(\".s230\", \".S230\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(System.getProperty(\"user.dir\") + \" ... \" + filename);\n\t\tString dirName = System.getProperty(\"user.dir\");\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\source\",\"\\\\\").trim();\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\classes\",\"\\\\\").trim();\n\t\tdirName = dirName.concat(\"\\\\InputOutputFolder\\\\\");\n\t\tSystem.out.println(dirName+filename);\n\t\tFile file = new File(dirName, filename);\n\t\tScanner toReturn = null;\n\t\ttry {\n\t\t\ttoReturn = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "public static void init()throws IOException{if(fileIO){f=new FastScanner(\"\");}else{f=new FastScanner(System.in);}}", "public Menu() {\n scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Scanner getScanner(){\n\t\t\n\t\tboolean hasFile = false;\n\t\tString filename = \"\";\n\t\tfor(int i = 0; i<argList.size(); i++ ){\n\t\t\tif(argList.get(i).equals(\"-f\")){\n\t\t\t\thasFile = true;\n\t\t\t\tfilename = argList.get(i+1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(System.getProperty(\"user.dir\") + \" ... \" + filename);\n\t\tFile file = new File(System.getProperty(\"user.dir\")+\"\\\\ARM230Compiler\\\\InputOutputFolder\\\\\", filename);\n\t\tScanner toReturn = null;\n\t\ttry {\n\t\t\ttoReturn = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "public MetadataScanner()\n {\n this(\"\");\n }", "public static void setInputScanner(InputScanner scanner){\n inputScanner = scanner;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public FractalParser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "private Scanner getInput(String name) {\n try {\n return new Scanner(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "public Scanner( String filename ) throws IOException\n {\n sourceFile = new PushbackInputStream(new FileInputStream(filename));\n \n nextToken = null;\n }", "public static Scanner getScanner(File file) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(file);\n } catch (IOException e) {\n System.err.println(\"input error\");\n }\n return scanner;\n }", "public ContentScanner getScanner(\n )\n {return scanner;}", "CreateScanFilterResponse createScanFilter(CreateScanFilterRequest request);", "public Sintactico(java_cup.runtime.Scanner s) {super(s);}", "public PasitoScanner(java.io.Reader in) {\n this.yy_reader = in;\n }", "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "public void setScan(InputStream inStream){\t\t\n\t\tthis.scan = new Scanner (inStream);\t\t\t\t\t\n\t}", "public CoolParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public LuaGrammarCup(java_cup.runtime.Scanner s) {super(s);}", "public static synchronized void Initialize() throws FileNotFoundException, UnsupportedEncodingException {\n fileReaderInit(fLocation);\n \n pbr = new PushbackReader(reader, 5);\n \n \n File currentDirFile = new File(\".\");\n String helper = currentDirFile.getAbsolutePath();\n outLocation = \"src/parser_resources/\" + outFile;\n /*scan.nextLine();*/\n \n File f = new File(outLocation);\n\n if (f.exists() && !f.isDirectory()) {\n fWriter = new PrintWriter(outLocation, \"Ascii\");\n System.out.println(\"\\nOutput file initialized for Scanner\");\n System.out.println(\"Scanning output to: \" + helper + \"/\" + outLocation);\n } else {\n System.out.println(\"Error: output file missing please \\\"touch\"\n + \"scanner.out\\\" in parser_resources directory.\");\n }\n }", "public MJParser(java_cup.runtime.Scanner s) {super(s);}", "public PCLParser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(Configuration config) {\r\n\t\tthis.conf = config;\r\n\t\tfileCacheList = new LinkedList<FileObj>();\r\n\r\n\t}", "static InputScanner getInputScanner() {\n return inputScanner;\n }", "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "public static Gate scan( Scanner sc ) {\n\t\tif (outputList.isEmpty()) {\n\t\t\tSimulator.schedule(\n\t\t\t\t1,\n\t\t\t\t(float time) -> displayHeaders( time )\n\t\t\t);\n\t\t}\n\n\t\t// now do the scan as for any other gate\n\t\tOutput g = new Output();\n\t\tg.scan( sc, inputs );\n\t\tif (g.name == null) g = null;\n\n\t\t// and finally, remember this in the output list\n\t\tif (g != null) outputList.add( g );\n\t\treturn g;\n\t}", "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "public Asintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public LexicalScanner() throws IOException {\n this.codesMap = new CodesMap();\n this.keyWords = loadKeywords();\n this.specialCharacters = loadSpecialCharacters();\n this.identifierAutomata = new FA(IDENTIFIER_AUTOMATA_FILE);\n this.constantAutomata = new FA(CONSTANT_AUTOMATA_FILE);\n }", "public XPathParser(java_cup.runtime.Scanner s) {super(s);}", "public HumanPlayer(Scanner scanner) {\n this.scanner = scanner;\n }", "public ContentScanner(\n IContentContext contentContext\n )\n {this(contentContext.getContents());}", "public TokenScanner(final File f) throws FileNotFoundException {\n\t\tfileScanner = new Scanner(file = f);\n\t}", "public TerminalGame()\n \t{\n \t\tsuper();\n \t\tbuilder = new StringBuilder();\n \t\tscanner = new Scanner(System.in);\n \t}", "public void openScanner(){\n Intent intent = new Intent(ReturningTaskActivity.this, BarcodeScannerActivity.class);\n startActivityForResult(intent, 0);\n }", "public InputReader() {\n reader = new Scanner(System.in);\n }", "void makeDeck(Scanner scanner) \n\t\t\tthrows IOException {\n\t\tCardNode cn = null;\n\t\tif (scanner.hasNextInt()) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = scanner.nextInt();\n\t\t\tcn.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t\twhile (scanner.hasNextInt()) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = scanner.nextInt();\n\t\t\tcn.next = deckRear.next;\n\t\t\tdeckRear.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t}", "public WrongInputDataInScanner() {\n\tsuper();\n\t\n}", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return new Symbol (sym.EOF); \n }", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return getScanner().next_token(); \n }" ]
[ "0.70184577", "0.6995181", "0.6993494", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.6599448", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6510001", "0.6377581", "0.6369186", "0.6338234", "0.6288102", "0.62420654", "0.6238479", "0.62367743", "0.6234265", "0.6223293", "0.6223293", "0.6179389", "0.6179389", "0.6151572", "0.6143058", "0.61248904", "0.6123854", "0.61232376", "0.60844225", "0.6062503", "0.6048141", "0.60417837", "0.6027999", "0.6019498", "0.59948283", "0.5971439", "0.5971439", "0.5959572", "0.59595394", "0.595831", "0.5948784", "0.59298563", "0.59298563", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5923914", "0.5922065", "0.59072775", "0.5901725", "0.5901725", "0.5901725", "0.5901725", "0.5901725", "0.5901725", "0.5901725", "0.5893243", "0.5875552", "0.586246", "0.5862297", "0.58445174", "0.58377695", "0.5829068", "0.58266336", "0.5806441", "0.5771194", "0.5767364", "0.5751365", "0.573949", "0.5731958", "0.5713767", "0.57056075", "0.57006305", "0.5695496", "0.5679925", "0.567098", "0.5666009", "0.5636769", "0.563668", "0.56134176", "0.5611127", "0.56032014", "0.5564176", "0.5563071", "0.55623186", "0.55513155", "0.5540127", "0.55275434" ]
0.0
-1
Unpacks the compressed character translation table.
private static char [] zzUnpackCMap(String packed) { int size = 0; for (int i = 0, length = packed.length(); i < length; i += 2) { size += packed.charAt(i); } char[] map = new char[size]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < packed.length()) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--count > 0); } return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int yy_unpack(String packed, int offset, int [] trans) {\n int i = 0; /* index in packed string */\n int j = offset; /* index in unpacked array */\n int l = packed.length();\n while (i < l) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n value--;\n do trans[j++] = value; while (--count > 0);\n }\n return j;\n }", "private static int yy_unpack(String packed, int offset, int [] trans) {\n int i = 0; /* index in packed string */\n int j = offset; /* index in unpacked array */\n int l = packed.length();\n while (i < l) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n value--;\n do trans[j++] = value; while (--count > 0);\n }\n return j;\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 2224) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x110000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 172) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 128) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 182) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 166) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1182) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 228) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 228) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char[] zzUnpackCMap(String packed) {\n char[] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2808) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 178) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2928) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 152) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2266) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 210) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2106) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2820) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2244) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1348) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2894) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 164) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 166) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 86) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 366) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 258) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 174) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 174) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2480) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1690) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static int [] yy_unpack() {\n int [] trans = new int[8174];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }", "private static char [] zzUnpackCMap(String packed) {\n\t\tchar [] map = new char[0x10000];\n\t\tint i = 0; /* index in packed string */\n\t\tint j = 0; /* index in unpacked array */\n\t\twhile (i < 2312) {\n\t\t\tint count = packed.charAt(i++);\n\t\t\tchar value = packed.charAt(i++);\n\t\t\tdo map[j++] = value; while (--count > 0);\n\t\t}\n\t\treturn map;\n\t}", "private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1774) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private static int [] yy_unpack() {\n int [] trans = new int[5476];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }", "private static char [] yy_unpack_cmap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1742) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }", "private void unpack() {\n if (!isInPackedState)\n return;\n try {\n ByteArrayInputStream bs = new ByteArrayInputStream(data);\n DataInputStream dis = new DataInputStream(bs);\n line_number_table_length = (dis.readUnsignedShort());\n line_number_table = new LineNumber[line_number_table_length];\n for (int i = 0; i < line_number_table_length; i++) line_number_table[i] = new LineNumber(dis);\n dis.close();\n // throw it away now\n data = null;\n } catch (IOException e) {\n throw new RuntimeException(\"Unpacking of LineNumberTable attribute failed\");\n }\n isInPackedState = false;\n }", "public String decompress() {\r\n \tString decompressed = \"\";\r\n \tString cursor = \"\";\r\n \tfor (int i = 0; i < compressedText.length(); i++) {\r\n \t\tcursor += compressedText.charAt(i);\r\n \t\tif (codeToChar.containsKey(cursor)) {\r\n \t\t\tdecompressed += codeToChar.get(cursor);\r\n \t\t\tcursor = \"\";\r\n \t\t}\r\n \t}\r\n return decompressed;\r\n }", "private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }", "public static int decompose(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, boolean paramBoolean, int[] paramArrayOfInt, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 932 */ char[] arrayOfChar1 = new char[3];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 941 */ int i7 = paramInt3;\n/* 942 */ int i8 = paramInt1;\n/* 943 */ int i2; int k; if (!paramBoolean) {\n/* 944 */ i2 = (char)indexes[8];\n/* 945 */ k = 4;\n/* */ } else {\n/* 947 */ i2 = (char)indexes[9];\n/* 948 */ k = 8;\n/* */ }\n/* */ \n/* */ \n/* 952 */ int j = 0xFF00 | k;\n/* 953 */ int m = 0;\n/* 954 */ int i4 = 0;\n/* 955 */ long l = 0L;\n/* 956 */ int i1 = 0;\n/* 957 */ int i6 = 0;\n/* */ int i5;\n/* 959 */ int i3 = i5 = -1;\n/* */ \n/* */ \n/* */ \n/* */ for (;;)\n/* */ {\n/* 965 */ int i = i8;\n/* */ \n/* 967 */ while ((i8 != paramInt2) && (((i1 = paramArrayOfChar1[i8]) < i2) || \n/* 968 */ (((l = getNorm32(i1)) & j) == 0L))) {\n/* 969 */ i4 = 0;\n/* 970 */ i8++;\n/* */ }\n/* */ \n/* */ int n;\n/* 974 */ if (i8 != i) {\n/* 975 */ n = i8 - i;\n/* 976 */ if (i7 + n <= paramInt4) {\n/* 977 */ System.arraycopy(paramArrayOfChar1, i, paramArrayOfChar2, i7, n);\n/* */ }\n/* */ \n/* 980 */ i7 += n;\n/* 981 */ m = i7;\n/* */ }\n/* */ \n/* */ \n/* 985 */ if (i8 == paramInt2) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* 990 */ i8++;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char c2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char[] arrayOfChar2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char c1;\n/* */ \n/* */ \n/* */ \n/* 1009 */ if (isNorm32HangulOrJamo(l)) {\n/* 1010 */ if (nx_contains(paramUnicodeSet, i1)) {\n/* 1011 */ c2 = '\\000';\n/* 1012 */ arrayOfChar2 = null;\n/* 1013 */ n = 1;\n/* */ }\n/* */ else {\n/* 1016 */ arrayOfChar2 = arrayOfChar1;\n/* 1017 */ i6 = 0;\n/* 1018 */ i3 = i5 = 0;\n/* */ \n/* 1020 */ c1 = (char)(i1 - 44032);\n/* */ \n/* 1022 */ c2 = (char)(c1 % '\\034');\n/* 1023 */ c1 = (char)(c1 / '\\034');\n/* 1024 */ if (c2 > 0) {\n/* 1025 */ arrayOfChar1[2] = ((char)('ᆧ' + c2));\n/* 1026 */ n = 3;\n/* */ } else {\n/* 1028 */ n = 2;\n/* */ }\n/* */ \n/* 1031 */ arrayOfChar1[1] = ((char)(4449 + c1 % '\\025'));\n/* 1032 */ arrayOfChar1[0] = ((char)(4352 + c1 / '\\025'));\n/* */ }\n/* */ } else {\n/* 1035 */ if (isNorm32Regular(l)) {\n/* 1036 */ c2 = '\\000';\n/* 1037 */ n = 1;\n/* */ \n/* */ }\n/* 1040 */ else if ((i8 != paramInt2) && \n/* 1041 */ (UTF16.isTrailSurrogate(c2 = paramArrayOfChar1[i8]))) {\n/* 1042 */ i8++;\n/* 1043 */ n = 2;\n/* 1044 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ } else {\n/* 1046 */ c2 = '\\000';\n/* 1047 */ n = 1;\n/* 1048 */ l = 0L;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1053 */ if (nx_contains(paramUnicodeSet, c1, c2))\n/* */ {\n/* 1055 */ i3 = i5 = 0;\n/* 1056 */ arrayOfChar2 = null;\n/* 1057 */ } else if ((l & k) == 0L)\n/* */ {\n/* 1059 */ i3 = i5 = (int)(0xFF & l >> 8);\n/* 1060 */ arrayOfChar2 = null;\n/* 1061 */ i6 = -1;\n/* */ } else {\n/* 1063 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* */ \n/* */ \n/* 1067 */ i6 = decompose(l, k, localDecomposeArgs);\n/* 1068 */ arrayOfChar2 = extraData;\n/* 1069 */ n = localDecomposeArgs.length;\n/* 1070 */ i3 = localDecomposeArgs.cc;\n/* 1071 */ i5 = localDecomposeArgs.trailCC;\n/* 1072 */ if (n == 1)\n/* */ {\n/* 1074 */ c1 = arrayOfChar2[i6];\n/* 1075 */ c2 = '\\000';\n/* 1076 */ arrayOfChar2 = null;\n/* 1077 */ i6 = -1;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1085 */ if (i7 + n <= paramInt4) {\n/* 1086 */ int i9 = i7;\n/* 1087 */ if (arrayOfChar2 == null)\n/* */ {\n/* 1089 */ if ((i3 != 0) && (i3 < i4))\n/* */ {\n/* */ \n/* */ \n/* 1093 */ i7 += n;\n/* 1094 */ i5 = insertOrdered(paramArrayOfChar2, m, i9, i7, c1, c2, i3);\n/* */ }\n/* */ else\n/* */ {\n/* 1098 */ paramArrayOfChar2[(i7++)] = c1;\n/* 1099 */ if (c2 != 0) {\n/* 1100 */ paramArrayOfChar2[(i7++)] = c2;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 1107 */ else if ((i3 != 0) && (i3 < i4))\n/* */ {\n/* */ \n/* */ \n/* 1111 */ i7 += n;\n/* 1112 */ i5 = mergeOrdered(paramArrayOfChar2, m, i9, arrayOfChar2, i6, i6 + n);\n/* */ }\n/* */ else\n/* */ {\n/* */ do {\n/* 1117 */ paramArrayOfChar2[(i7++)] = arrayOfChar2[(i6++)];\n/* 1118 */ n--; } while (n > 0);\n/* */ }\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1124 */ i7 += n;\n/* */ }\n/* */ \n/* 1127 */ i4 = i5;\n/* 1128 */ if (i4 == 0) {\n/* 1129 */ m = i7;\n/* */ }\n/* */ }\n/* */ \n/* 1133 */ paramArrayOfInt[0] = i4;\n/* */ \n/* 1135 */ return i7 - paramInt3;\n/* */ }", "public static void decompress(PfssCompressed _src, PfssDecompressed _dest)\n\t{\n\t\tif (!_src.isLoaded())\n\t\t\treturn;\n\n\t\tif (_dest.isDataAssigned())\n\t\t\treturn;\n\t\t\n\t\ttry (InputStream is = new ByteArrayInputStream(UnRar.unrarData(_src).toByteArray()))\n\t\t{\n\t\t\tFits fits = new Fits(is, false);\n\t\t\tBasicHDU hdus[] = fits.read();\n\t\t\tBinaryTableHDU bhdu = (BinaryTableHDU) hdus[1];\n\n\t\t\tfloat b0 = bhdu.getHeader().getFloatValue(\"B0\");\n\t\t\tfloat l0 = bhdu.getHeader().getFloatValue(\"L0\");\n\t\t\tfloat Q1 = bhdu.getHeader().getFloatValue(\"Q1\");\n\t\t\tfloat Q2 = bhdu.getHeader().getFloatValue(\"Q2\");\n\t\t\tfloat Q3 = bhdu.getHeader().getFloatValue(\"Q3\");\n\n\t\t\tbyte[] line_length = ((byte[][]) bhdu.getColumn(\"LEN\"))[0];\n\t\t\tbyte[] xRaw = ((byte[][]) bhdu.getColumn(\"X\"))[0];\n\t\t\tbyte[] yRaw = ((byte[][]) bhdu.getColumn(\"Y\"))[0];\n\t\t\tbyte[] zRaw = ((byte[][]) bhdu.getColumn(\"Z\"))[0];\n\n\t\t\tint[] lengths = ByteDecoder.decodeAdaptiveUnsigned(line_length);\n\t\t\tint[] xInt = ByteDecoder.decodeAdaptive(xRaw);\n\t\t\tint[] yInt = ByteDecoder.decodeAdaptive(yRaw);\n\t\t\tint[] zInt = ByteDecoder.decodeAdaptive(zRaw);\n\n\t\t\tIntermediateLineData[] lines = IntermediateLineData.splitToLines(lengths, xInt, yInt, zInt);\n\t\t\tfor (IntermediateLineData l : lines)\n\t\t\t\tl.decodePrediction(Q1, Q2, Q3);\n\n\t\t\tArrayList<DecompressedLine> decompressedLines = new ArrayList<>(lines.length);\n\t\t\tfor (IntermediateLineData line : lines)\n\t\t\t\tdecompressedLines.add(new DecompressedLine(line));\n\n\t\t\tconvertToBuffers(decompressedLines, l0, b0, _dest);\n\t\t}\n\t\tcatch (FitsException | IOException e)\n\t\t{\n\t\t\tTelemetry.trackException(e);\n\t\t}\n\t}", "public static void decode () {\n // read the input\n int firstThing = BinaryStdIn.readInt();\n s = BinaryStdIn.readString();\n char[] t = s.toCharArray();\n char[] firstColumn = new char[t.length];\n int [] next = new int[t.length];\n \n // copy array and sort\n for (int i = 0; i < t.length; i++) {\n firstColumn[i] = t[i];\n }\n Arrays.sort(firstColumn);\n \n // decode\n int N = t.length;\n int [] count = new int[256];\n \n // counts frequency of each letter\n for (int i = 0; i < N; i++) {\n count[t[i]]++;\n }\n \n int m = 0, j = 0;\n \n // fills the next[] array with appropriate values\n while (m < N) {\n int _count = count[firstColumn[m]];\n while (_count > 0) {\n if (t[j] == firstColumn[m]) {\n next[m++] = j;\n _count--;\n }\n j++;\n }\n j = 0;\n }\n \n // decode the String\n int _next = next.length;\n int _i = firstThing;\n for (int i = 0; i < _next; i++) {\n _i = next[_i];\n System.out.print(t[_i]);\n } \n System.out.println();\n }", "private void ReadDecompression(String aux) {\n StringBuilder calidadS = new StringBuilder();\n while (i < 8) {\n calidadS.append(aux.charAt(i));\n ++i;\n }\n quality = Integer.parseInt(calidadS.toString(), 2);\n StringBuilder widthS = new StringBuilder();\n while (i < 24) {\n widthS.append(aux.charAt(i));\n ++i;\n }\n width = Integer.parseInt(widthS.toString(), 2);\n StringBuilder heightS = new StringBuilder();\n while (i < 40) {\n heightS.append(aux.charAt(i));\n ++i;\n }\n height = Integer.parseInt(heightS.toString(), 2);\n StringBuilder sizeYS = new StringBuilder();\n while (i < 72) {\n sizeYS.append(aux.charAt(i));\n ++i;\n }\n sizeY = Integer.parseInt(sizeYS.toString(), 2);\n StringBuilder sizeCBS = new StringBuilder();\n while (i < 104) {\n sizeCBS.append(aux.charAt(i));\n ++i;\n }\n sizeCB = Integer.parseInt(sizeCBS.toString(), 2);\n StringBuilder sizeCRS = new StringBuilder();\n while (i < 136) {\n sizeCRS.append(aux.charAt(i));\n ++i;\n }\n sizeCR = Integer.parseInt(sizeCRS.toString(), 2);\n StringBuilder sizeYcS = new StringBuilder();\n while (i < 168) {\n sizeYcS.append(aux.charAt(i));\n ++i;\n }\n sizeYc = Integer.parseInt(sizeYcS.toString(), 2);\n StringBuilder sizeCBcS = new StringBuilder();\n while (i < 200) {\n sizeCBcS.append(aux.charAt(i));\n ++i;\n }\n sizeCBc = Integer.parseInt(sizeCBcS.toString(), 2);\n StringBuilder sizeCRcS = new StringBuilder();\n while (i < 232) {\n sizeCRcS.append(aux.charAt(i));\n ++i;\n }\n sizeCRc = Integer.parseInt(sizeCRcS.toString(), 2);\n }", "public void translate() {\n\t\twhile (!inputBuffer.endOfBuffer()) {\n\t\t\tMsgChar get = inputBuffer.getChar();\n\t\t\tif (get == null) continue;\n\t\t\tif (inputBuffer.isEndOfSentence()) {\n\t\t\t\toutputBuffer.markEndOfSentence();\n\t\t\t} else if (inputBuffer.isEndOfWord()) {\n\t\t\t\toutputBuffer.markEndOfWord();\n\t\t\t} else {\n\t\t\t\toutputBuffer.putChar(get.convert());\n\t\t\t}\n\t\t}\n\t\tinputBuffer.getReader().close();\n\t\toutputBuffer.close();\n\t}", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "public int uncompress(InputStream in, OutputStream out) throws IOException { \n int codeCount = 0;\n int code = 0;\n BitInputStream bitIn = new BitInputStream(in);\n StringBuilder codeString = new StringBuilder(0);\n\n\n // *** Bellow for building array of encoded values ****\n // ****************************************************\n // If the first character in the file is not a space, cannot decompress file\n codeCount = in.read();\n if(codeCount != 32){\n bitIn.close();\n return -1;\n }\n // Read in length of the code, then read the codes number of bits into the code array\n for (int i = 0; i < decodeArr.length; i++) {\n //read in number of bits (length of character code) \n codeCount = bitIn.read();\n \n // Create the code string (reads the number of bits found above)\n for (int j = 0; j < codeCount ; j++) {\n codeString.append(bitIn.readBits(1));\n }\n // Add the code string to the code array\n decodeArr[i] = codeString.toString();\n codeString = new StringBuilder(0);\n }\n // If the character has no code, make it null in array\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i].equals(\"0\")){decodeArr[i] = null;}\n }\n // ****************************************************\n // ****************************************************\n\n\n // ********** Bellow is the decoding process **********\n // ****************************************************\n // Slowly build a sting of binary comparing it to the codes in the map\n // Once a match is found, output the character associated with it.\n try{\n codeString = new StringBuilder(0);\n while (true) { \n // Read in one bit\n code = bitIn.readBits(1);\n // If -1 is returned, reached the end of file\n if(code == -1){break;}\n // Search the code array, writing the character of the code when found\n codeString.append(String.valueOf(code));\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i] != null){ // null means 0 count for a character\n // If the building code string matches a code in the map, write the associated character\n if(decodeArr[i].equals(codeString.toString())){\n out.write(i);\n // vv make ready for next code input\n codeString = new StringBuilder(0);\n }\n }\n }\n }\n }catch (IOException e){\n bitIn.close();\n throw e;\n }\n // ****************************************************\n // ****************************************************\n bitIn.close();\n return 0;\n }", "protected void buildFastLatinTable(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void\");\n }", "public static void decompress(String inFile) throws Exception{\n\tIO.Decompressor io = new IO.Decompressor(inFile);\n HashMap<Integer, String> dictionary = new HashMap<Integer, String>();\n int count = 1;\n dictionary.put(new Integer(0), new String() );\n String output = \"\";\n Integer index;\n char character = 1;\n while( character != 0 ) {\n \t IO.Pair next = io.decode();\n index = new Integer(next.getIndex());\n character = next.getCharacter();\n \n output = dictionary.get(index);\n if (character == 0) io.append(output);\n else output = output + character;\n \t io.append(output);\n dictionary.put(new Integer(count), output);\n count++;\n }\n \n \n /* Close all relevant files */\n io.done();\n\n\n\n }", "public PDFDecompressorFlate(Hashtable attrs, byte[] data) {\r\n this.attrs = attrs;\r\n this.data = data;\r\n this.in = new InflaterInputStream(new ByteArrayInputStream(data));\r\n this.out = new ByteArrayOutputStream();\r\n }", "public static void main(String[] args) {\n\t\tDecompress d = new Decompress(args[0]);\n\t\tif(d.data.loadFailure()) {\n\t\t\treturn;\n\t\t}\n\n\t\t//Attempt to read the header and rebuild the original Huffman tree\n\t\td.rebuildTree(d.readHeader());\n\n\t\t//Convert all codes back to their original bitstrings\n\t\td.decode(args[0]);\n\t}", "UnescapeTransliterator(String ID, char[] spec)\n/* */ {\n/* 131 */ super(ID, null);\n/* 132 */ this.spec = spec;\n/* */ }", "public void popTranslationTable() {\n m_translateTable = (int[])m_translateTableStack.pop();\n }", "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n List<Integer> chars = new ArrayList<>();\n Map<Integer, Queue<Integer>> charPosition = new HashMap<>();\n int currentIndex = 0;\n\n while (!BinaryStdIn.isEmpty()) {\n int i = BinaryStdIn.readInt(8);\n chars.add(i);\n Queue<Integer> position = charPosition.get(i);\n\n if (position == null) {\n position = new Queue<>();\n charPosition.put(i, position);\n }\n\n position.enqueue(currentIndex);\n currentIndex += 1;\n }\n\n int N = chars.size();\n int R = 256;\n int[] count = new int[R + 1];\n\n for (int i = 0; i < N; i++) {\n count[chars.get(i) + 1]++;\n }\n\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n\n int[] h = new int[N];\n\n for (int i = 0; i < N; i++) {\n h[count[chars.get(i)]++] = chars.get(i);\n }\n\n int[] next = new int[N];\n\n for (int i = 0; i < N; i++) {\n int index = charPosition.get(h[i]).dequeue();\n next[i] = index;\n }\n\n int current = first;\n\n for (int i = 0; i < N; i++) {\n BinaryStdOut.write(h[current], 8);\n current = next[current];\n }\n\n BinaryStdOut.flush();\n }", "private void translate()\r\n {\r\n for(int x = 0;x<14;x++)\r\n {\r\n pack.add(new Card(sPack.get(x)));\r\n }\r\n \r\n }", "private static char recompose(RecomposeArgs paramRecomposeArgs, int paramInt, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1315 */ int i3 = 0;int i4 = 0;\n/* */ \n/* */ \n/* */ \n/* 1319 */ int[] arrayOfInt = new int[2];\n/* 1320 */ int i7 = -1;\n/* 1321 */ int n = 0;\n/* 1322 */ int i6 = 0;\n/* 1323 */ int i5 = 0;\n/* */ \n/* 1325 */ NextCombiningArgs localNextCombiningArgs = new NextCombiningArgs(null);\n/* 1326 */ localNextCombiningArgs.source = paramRecomposeArgs.source;\n/* */ \n/* 1328 */ localNextCombiningArgs.cc = '\\000';\n/* 1329 */ localNextCombiningArgs.c2 = '\\000';\n/* */ for (;;)\n/* */ {\n/* 1332 */ localNextCombiningArgs.start = paramRecomposeArgs.start;\n/* 1333 */ int m = getNextCombining(localNextCombiningArgs, paramRecomposeArgs.limit, paramUnicodeSet);\n/* 1334 */ int i1 = localNextCombiningArgs.combiningIndex;\n/* 1335 */ paramRecomposeArgs.start = localNextCombiningArgs.start;\n/* */ \n/* 1337 */ if (((m & 0x80) != 0) && (i7 != -1)) { int i;\n/* 1338 */ int j; int k; if ((i1 & 0x8000) != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 1343 */ if (((paramInt & 0x100) != 0) || (i5 == 0)) {\n/* 1344 */ i = -1;\n/* 1345 */ m = 0;\n/* 1346 */ localNextCombiningArgs.c2 = paramRecomposeArgs.source[i7];\n/* 1347 */ if (i1 == 65522)\n/* */ {\n/* */ \n/* */ \n/* 1351 */ localNextCombiningArgs.c2 = ((char)(localNextCombiningArgs.c2 - 'ᄀ'));\n/* 1352 */ if (localNextCombiningArgs.c2 < '\\023') {\n/* 1353 */ i = paramRecomposeArgs.start - 1;\n/* 1354 */ localNextCombiningArgs.c = ((char)(44032 + (localNextCombiningArgs.c2 * '\\025' + (localNextCombiningArgs.c - 'ᅡ')) * 28));\n/* */ \n/* 1356 */ if ((paramRecomposeArgs.start != paramRecomposeArgs.limit) && ((localNextCombiningArgs.c2 = (char)(paramRecomposeArgs.source[paramRecomposeArgs.start] - 'ᆧ')) < '\\034'))\n/* */ {\n/* */ \n/* 1359 */ paramRecomposeArgs.start += 1; NextCombiningArgs \n/* 1360 */ tmp261_259 = localNextCombiningArgs;tmp261_259.c = ((char)(tmp261_259.c + localNextCombiningArgs.c2));\n/* */ }\n/* */ else {\n/* 1363 */ m = 64;\n/* */ }\n/* 1365 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c)) {\n/* 1366 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c;\n/* */ }\n/* */ else {\n/* 1369 */ if (!isHangulWithoutJamoT(localNextCombiningArgs.c)) {\n/* 1370 */ paramRecomposeArgs.start -= 1;\n/* */ }\n/* */ \n/* 1373 */ i = paramRecomposeArgs.start;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1388 */ else if (isHangulWithoutJamoT(localNextCombiningArgs.c2)) {\n/* 1389 */ NextCombiningArgs tmp351_349 = localNextCombiningArgs;tmp351_349.c2 = ((char)(tmp351_349.c2 + (localNextCombiningArgs.c - 'ᆧ')));\n/* 1390 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c2)) {\n/* 1391 */ i = paramRecomposeArgs.start - 1;\n/* 1392 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c2;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1397 */ if (i != -1)\n/* */ {\n/* 1399 */ j = i;\n/* 1400 */ k = paramRecomposeArgs.start;\n/* 1401 */ while (k < paramRecomposeArgs.limit) {\n/* 1402 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1404 */ paramRecomposeArgs.start = i;\n/* 1405 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* 1408 */ localNextCombiningArgs.c2 = '\\000';\n/* */ \n/* 1410 */ if (m != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1417 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1418 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1422 */ n = 65520;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1438 */ else if (((n & 0x8000) == 0) && ((paramInt & 0x100) != 0 ? (i5 == localNextCombiningArgs.cc) || (i5 != 0) : (i5 < localNextCombiningArgs.cc) || (i5 == 0)))\n/* */ {\n/* */ int i2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1446 */ if (0 != (i2 = combine(combiningTable, n, i1, arrayOfInt)))\n/* */ {\n/* */ \n/* 1449 */ if (!nx_contains(paramUnicodeSet, (char)i3, (char)i4))\n/* */ {\n/* 1451 */ i3 = arrayOfInt[0];\n/* 1452 */ i4 = arrayOfInt[1];\n/* */ \n/* */ \n/* */ \n/* 1456 */ i = localNextCombiningArgs.c2 == 0 ? paramRecomposeArgs.start - 1 : paramRecomposeArgs.start - 2;\n/* */ \n/* */ \n/* 1459 */ paramRecomposeArgs.source[i7] = ((char)i3);\n/* 1460 */ if (i6 != 0) {\n/* 1461 */ if (i4 != 0)\n/* */ {\n/* 1463 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ else\n/* */ {\n/* 1467 */ i6 = 0;\n/* 1468 */ j = i7 + 1;\n/* 1469 */ k = j + 1;\n/* 1470 */ while (k < i) {\n/* 1471 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1473 */ i--;\n/* */ }\n/* 1475 */ } else if (i4 != 0) {\n/* 1476 */ i6 = 1;\n/* 1477 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1483 */ if (i < paramRecomposeArgs.start) {\n/* 1484 */ j = i;\n/* 1485 */ k = paramRecomposeArgs.start;\n/* 1486 */ while (k < paramRecomposeArgs.limit) {\n/* 1487 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1489 */ paramRecomposeArgs.start = i;\n/* 1490 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1496 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1497 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1501 */ if (i2 > 1) {\n/* 1502 */ n = getCombiningIndexFromStarter((char)i3, (char)i4); continue;\n/* */ }\n/* */ \n/* 1505 */ i7 = -1;\n/* */ \n/* */ \n/* */ \n/* 1509 */ continue;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 1514 */ i5 = localNextCombiningArgs.cc;\n/* 1515 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1516 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1520 */ if (localNextCombiningArgs.cc == 0)\n/* */ {\n/* 1522 */ if ((m & 0x40) != 0)\n/* */ {\n/* 1524 */ if (localNextCombiningArgs.c2 == 0) {\n/* 1525 */ i6 = 0;\n/* 1526 */ i7 = paramRecomposeArgs.start - 1;\n/* */ } else {\n/* 1528 */ i6 = 0;\n/* 1529 */ i7 = paramRecomposeArgs.start - 2;\n/* */ }\n/* 1531 */ n = i1;\n/* */ }\n/* */ else {\n/* 1534 */ i7 = -1;\n/* */ }\n/* 1536 */ } else if ((paramInt & 0x2000) != 0)\n/* */ {\n/* 1538 */ i7 = -1;\n/* */ }\n/* */ }\n/* */ }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public static void decode() {\n int first = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int n = t.length();\n int[] count = new int[256 + 1];\n int[] next = new int[n];\n int i = 0;\n while (i < n) {\n count[t.charAt(i) + 1]++;\n i++;\n }\n i = 1;\n while (i < 256 + 1) {\n count[i] += count[i - 1];\n i++;\n }\n i = 0;\n while (i < n) {\n next[count[t.charAt(i)]++] = i;\n i++;\n }\n i = next[first];\n int c = 0;\n while (c < n){\n BinaryStdOut.write(t.charAt(i));\n i = next[i];\n c++;\n }\n BinaryStdOut.close();\n }", "private void nocompressedUnPack()throws UnpackException,ZipEndException{\n skipByte();\n //get the len\n long LEN = 0x00;\n byte byte0 = getByte();\n byte byte1 = getByte();\n byte byte2 = getByte();\n byte byte3 = getByte();\n LEN |= byte1;\n LEN |= (byte0 << 8);\n LEN &= 0X0000ffff;\n// LEN |= (byte2<<24);\n// LEN |= (byte3<<16);\n int l = 0;\n try{\n for (long num = 0; num < LEN ; num ++){\n outputStoredByte(getByte());\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "int externalToUnicode(byte[] src, final int srcOff, final int srcLen,\n char[] dst, final int dstOff, final int dstLen,\n IntPtr srcReadPtr, IntPtr dstWrotePtr, IntPtr dstCharsPtr,\n ArrayList charToBytes) {\n final boolean debug = false;\n final boolean debug_decode_loop = debug && false;\n int result = TCL.OK;\n\n if (encoding == null) {\n // This should never happen\n throw new TclRuntimeError(\"externalToUnicode called with null encoding\");\n }\n\n if (debug) {\n System.out.println(\"externalToUnicode( \" + srcLen + \" \" + dstLen + \" )\");\n }\n\n // If decoder was flushed already then return 0.\n\n if ((srcLen == 0) && !encodingEnd) {\n if (debug) {\n System.out.println(\"srcLen is zero and encodingEnd is false\");\n }\n\n srcReadPtr.i = 0;\n if (dstWrotePtr != null)\n dstWrotePtr.i = 0;\n if (dstCharsPtr != null)\n dstCharsPtr.i = 0;\n return 0;\n }\n\n // Convert bytes from src into unicode chars and store them in dst.\n\n if (debug) {\n System.out.println(\"now to decode byte array of length \" + srcLen);\n System.out.println(\"srcOff is \" + srcOff);\n for (int i=srcOff ; i < (srcOff+srcLen); i++) {\n System.out.println(\"(byte) '\" + ((char) src[i]) + \"'\" +\n \" (int) \" + ((int) src[i]) +\n \" (hex) 0x\" + Integer.toHexString(src[i]) );\n }\n System.out.println(\"encoded as \" + encoding);\n System.out.println(\"encodingStart is \" + encodingStart);\n System.out.println(\"eofCond is \" + eofCond);\n }\n\n // FIXME: In the cases where we know that we don't actually want\n // to copy the data, we could pass a flag so that we could\n // take advantage of encodings that had a one to one mapping\n // from bytes to chars (now need to copy then to find bytes used).\n\n if (csd == null) {\n // Note that UnsupportedCharsetException should never be raised\n // here since EncodingCmd.isSupported() should have already\n // returned true for this encoding.\n\n Charset chrset = Charset.forName(encoding);\n csd = chrset.newDecoder();\n }\n if (encodingStart) {\n csd.reset();\n }\n\n // Note that the default action on bad encoded\n // input is to stop and and report the error.\n\n // Implement byte -> char decoding loop. The\n // Java charset APIs provide no way to save\n // a decoder state or determine how many bytes\n // were consumed when a char is decoded. Since\n // we can't keep a copy of all data ever read,\n // this module has to make sure that only\n // one decode operation is done for input bytes\n // and that the number of bytes consumed for\n // each char is saved.\n\n int bytes_read = 0;\n int chars_written = 0;\n int dstOffI = dstOff;\n\n ByteBuffer srcb = ByteBuffer.wrap(src, srcOff, srcLen);\n CharBuffer oneChar = CharBuffer.allocate(1);\n\n while ((srcb.remaining() > 0) && (dstOffI < dstLen)) {\n if (debug_decode_loop) {\n System.out.println(\"char decode loop \" + (chars_written + 1));\n System.out.println(\"srcb.position() is \" + srcb.position());\n System.out.println(\"srcb.remaining() is \" + srcb.remaining());\n byte b = srcb.get(srcb.position()); // Get byte without moving position\n System.out.println(\"current byte is '\" + ((char) b) + \"' \" +\n \"0x\" + Integer.toHexString(b) );\n }\n\n int srcbStartPos = srcb.position();\n oneChar.rewind();\n\n // srcb is never empty when this method is invoked\n\n CoderResult cresult = csd.decode(srcb, oneChar, false);\n\n if (cresult == CoderResult.UNDERFLOW) {\n // An UNDERFLOW could mean that srcb is now\n // empty. It could also mean that a valid char\n // char could not be decoded from srcb bytes.\n\n if (debug_decode_loop) {\n System.out.println(\"UNDERFLOW detected\");\n }\n\n if ((oneChar.position() == 0) && (srcb.remaining() > 0)) {\n if (debug) {\n System.out.println(\"TCL_CONVERT_MULTIBYTE set\");\n }\n result = TCL_CONVERT_MULTIBYTE;\n break;\n } else {\n // Some bytes were decoded into 1 char.\n\n if (debug_decode_loop) {\n System.out.println(\"some bytes decoded\");\n }\n }\n } else if (cresult == CoderResult.OVERFLOW) {\n // Bytes from src have been decoded into 1 char.\n\n if (debug_decode_loop) {\n System.out.println(\"OVERFLOW detected\");\n }\n } else {\n // Some unexpected result, like an invalid character\n result = TCL_CONVERT_MULTIBYTE;\n break;\n }\n\n int bytes_this_char = srcb.position() - srcbStartPos;\n\n if (oneChar.position() != 1) {\n throw new TclRuntimeError(\"expected 1 char to be decoded, got \" + oneChar.position());\n }\n\n char c = oneChar.get(0);\n dst[dstOffI++] = c;\n\n if (charToBytes != null) {\n Integer iobj;\n if (bytes_this_char == 1) {\n iobj = oneInteger;\n } else if (bytes_this_char == 2) {\n iobj = twoInteger;\n } else if (bytes_this_char == 3) {\n iobj = threeInteger;\n } else {\n iobj = new Integer(bytes_this_char);\n }\n charToBytes.add( iobj );\n }\n\n bytes_read += bytes_this_char;\n chars_written++;\n\n if (debug_decode_loop) {\n System.out.println(\"char '\" + c + \"' \" +\n \"0x\" + Integer.toHexString(c) +\n \" decoded from \" +\n bytes_this_char + \" bytes\");\n }\n }\n\n if (debug) {\n System.out.println(\"decoded \" + chars_written + \" chars from \" +\n bytes_read + \" bytes\");\n\n for (int i=0 ; i < chars_written; i++) {\n int ind = dstOff + i;\n System.out.println(\"(char) '\" + dst[ind] + \"'\" +\n \" (int) \" + ((int) dst[ind]) +\n \" (hex) 0x\" + Integer.toHexString(dst[ind]) );\n\n if (charToBytes != null) {\n Integer iobj = (Integer) charToBytes.get(i);\n System.out.println(\"char was decoded from \" + iobj.intValue() + \" bytes\");\n }\n }\n }\n\n if (!(dstOffI < dstLen) && (srcb.remaining() > 0)) {\n // The dst buffer is full but bytes remain\n // in srcb. This could happen when this\n // method is invoked with a small buffer\n // so that the number of consumed bytes\n // can be determined.\n\n if (debug) {\n System.out.println(\"TCL_CONVERT_NOSPACE detected\");\n }\n\n result = TCL_CONVERT_NOSPACE;\n }\n\n boolean atEOF = (eofCond && encodingEnd);\n\n if (atEOF && !(dstOffI < dstLen)) {\n result = TCL_CONVERT_NOSPACE;\n }\n\n if (atEOF && (result == TCL.OK)) {\n // EOF flag must be passed to the decoder before\n // it can be flushed. This can only be done after\n // EOF was read from the input. If there was an\n // error, then don't pass EOF or flush the decoder.\n\n ByteBuffer emptyBytes = ByteBuffer.allocate(0);\n CharBuffer dstb = CharBuffer.wrap(dst, dstOffI, dstLen - dstOffI);\n\n int dstbStartPos = dstb.position();\n\n CoderResult cresult1 = csd.decode(emptyBytes, dstb, true);\n CoderResult cresult2 = csd.flush(dstb);\n\n if (cresult2 == CoderResult.OVERFLOW) {\n result = TCL_CONVERT_NOSPACE;\n } else {\n encodingEnd = false;\n }\n\n int chars_flushed = dstb.position() - chars_written;\n chars_written += chars_flushed;\n\n if (debug) {\n System.out.println(\"flushed \" + chars_flushed + \" chars at EOF\");\n }\n }\n\n srcReadPtr.i = bytes_read;\n if (dstWrotePtr != null)\n dstWrotePtr.i = chars_written;\n if (dstCharsPtr != null)\n dstCharsPtr.i = chars_written;\n\n return result;\n }", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "protected abstract ByteBuf decompress(ByteBuf compressed, int originalLength) throws Exception;", "private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) {\n byte[] srcArray = src.array();\n int srcPosition = src.arrayOffset() + src.position();\n int srcLength = src.arrayOffset() + src.limit();\n\n char[] destArray = dst.array();\n int destPosition = dst.arrayOffset() + dst.position();\n int destLength = dst.arrayOffset() + dst.limit();\n int destLengthASCII = destPosition + Math.min(srcLength - srcPosition, destLength - destPosition);\n\n // ASCII only loop\n while (destPosition < destLengthASCII && srcArray[srcPosition] >= 0) {\n destArray[destPosition++] = (char) srcArray[srcPosition++];\n }\n\n while (srcPosition < srcLength) {\n int b1 = srcArray[srcPosition];\n if (b1 >= 0) {\n // 1 byte, 7 bits: 0xxxxxxx\n if (destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 1);\n }\n destArray[destPosition++] = (char) b1;\n srcPosition++;\n } else if ((b1 >> 5) == -2) {\n // 2 bytes, 11 bits: 110xxxxx 10xxxxxx\n if (srcLength - srcPosition < 2 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 2);\n }\n int b2 = srcArray[srcPosition + 1];\n if (isMalformed2(b1, b2)) {\n return malformed(src, srcPosition, dst, destPosition, 2);\n }\n destArray[destPosition++] = (char) (((b1 << 6) ^ b2) ^ 0x0f80);\n srcPosition += 2;\n } else if ((b1 >> 4) == -2) {\n // 3 bytes, 16 bits: 1110xxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 3 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 3);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n if (isMalformed3(b1, b2, b3)) {\n return malformed(src, srcPosition, dst, destPosition, 3);\n }\n destArray[destPosition++] = (char) (((b1 << 12) ^ (b2 << 6) ^ b3) ^ 0x1f80);\n srcPosition += 3;\n } else if ((b1 >> 3) == -2) {\n // 4 bytes, 21 bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 4 || destLength - destPosition < 2) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 4);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n int b4 = srcArray[srcPosition + 3];\n int uc = ((b1 & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3f) << 06) | (b4 & 0x3f);\n if (isMalformed4(b2, b3, b4) || !((uc >= 0x10000) && (uc <= 1114111))) {\n return malformed(src, srcPosition, dst, destPosition, 4);\n }\n destArray[destPosition++] = (char) (0xd800 | (((uc - 0x10000) >> 10) & 0x3ff));\n destArray[destPosition++] = (char) (0xdc00 | ((uc - 0x10000) & 0x3ff));\n srcPosition += 4;\n } else {\n return malformed(src, srcPosition, dst, destPosition, 1);\n }\n }\n return xflow(src, srcPosition, srcLength, dst, destPosition, 0);\n }", "private String[][] decompose(MinorBoard[][] superBoard) {\n\t\tString[][] fullDecomp = new String[27][3];\n\t\tint decompNext = 0;\n\t\t\n\t\tMinorBoard[] tempSup = superBoard[2];\n\t\t//Switches the top and bottom minorBoards to print in the right order\n\t\t//(Top boards need to be printed first)\n\t\tsuperBoard[2] = superBoard[0];\n\t\tsuperBoard[0] = tempSup;\n\t\t\n\t\t//Unpack the superBoard into a nested array of strings\n\t\tfor (MinorBoard[] superRow : superBoard) {\n\t\t\tfor (MinorBoard minorBoard : superRow) {\n\t\t\t\tString[][] minDecomp = minorBoard.getBoard();\n\t\t\t\t//Switches the top and bottom row of each minorBoard in prep for printing\n\t\t\t\tString[] temp = minDecomp[2];\n\t\t\t\tminDecomp[2] = minDecomp[0];\n\t\t\t\tminDecomp[0] = temp;\n\t\t\t\tfor (String[] row : minDecomp) {\n\t\t\t\t\tfullDecomp[decompNext] = row;\n\t\t\t\t\tdecompNext++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tString[][] organisedDecomp = new String[27][3];\n\t\tint current = 0;\n\t\tint[] order = {0,3,6};\n\t\tint target = 0;\n\t\t//Reorganises the nested strings so that they represent the superBoard from left to right\n\t\tfor (int supLayer = 0; supLayer < 3; supLayer++) {\n\t\t\tfor (int minorLayer = 0; minorLayer < 3; minorLayer++) {\n\t\t\t\tfor (int cycle = 0; cycle < 3; cycle++) {\n\t\t\t\t\ttarget = order[cycle] + minorLayer + supLayer*9;\n\t\t\t\t\torganisedDecomp[current] = fullDecomp[target];\n\t\t\t\t\tcurrent ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn organisedDecomp;\n\t}", "private StandardDeCompressors() {}", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "public void unpack(MAVLinkPayload payload) {\n\t\tpayload.resetIndex();\n\t\tthis.propeller1 = payload.getFloat();\n\t\tthis.propeller2 = payload.getFloat();\n\t\tthis.propeller3 = payload.getFloat();\n\t\tthis.propeller4 = payload.getFloat();\n\n\t}", "public ProtocolObject unpack(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n return gamePacket;\r\n }", "private static int decompose(long paramLong, DecomposeArgs paramDecomposeArgs)\n/* */ {\n/* 456 */ int i = getExtraDataIndex(paramLong);\n/* 457 */ paramDecomposeArgs.length = extraData[(i++)];\n/* */ \n/* 459 */ if ((paramDecomposeArgs.length & 0x80) > 0)\n/* */ {\n/* 461 */ int j = extraData[(i++)];\n/* 462 */ paramDecomposeArgs.cc = (0xFF & j >> 8);\n/* 463 */ paramDecomposeArgs.trailCC = (0xFF & j);\n/* */ }\n/* */ else {\n/* 466 */ paramDecomposeArgs.cc = (paramDecomposeArgs.trailCC = 0);\n/* */ }\n/* */ \n/* 469 */ paramDecomposeArgs.length &= 0x7F;\n/* 470 */ return i;\n/* */ }", "Object unpack(Info vi, Buffer opb) {\n\t\tInfoMapping0 info = new InfoMapping0();\n\n\t\tif (opb.read(1) != 0) {\n\t\t\tinfo.submaps = opb.read(4) + 1;\n\t\t} else {\n\t\t\tinfo.submaps = 1;\n\t\t}\n\n\t\tif (opb.read(1) != 0) {\n\t\t\tinfo.coupling_steps = opb.read(8) + 1;\n\n\t\t\tfor (int i = 0; i < info.coupling_steps; i++) {\n\t\t\t\tint testM = info.coupling_mag[i] = opb.read(Util\n\t\t\t\t\t\t.ilog2(vi.channels));\n\t\t\t\tint testA = info.coupling_ang[i] = opb.read(Util\n\t\t\t\t\t\t.ilog2(vi.channels));\n\n\t\t\t\tif (testM < 0 || testA < 0 || testM == testA\n\t\t\t\t\t\t|| testM >= vi.channels || testA >= vi.channels) {\n\t\t\t\t\t// goto err_out;\n\t\t\t\t\tinfo.free();\n\t\t\t\t\treturn (null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (opb.read(2) > 0) { /* 2,3:reserved */\n\t\t\tinfo.free();\n\t\t\treturn (null);\n\t\t}\n\n\t\tif (info.submaps > 1) {\n\t\t\tfor (int i = 0; i < vi.channels; i++) {\n\t\t\t\tinfo.chmuxlist[i] = opb.read(4);\n\t\t\t\tif (info.chmuxlist[i] >= info.submaps) {\n\t\t\t\t\tinfo.free();\n\t\t\t\t\treturn (null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < info.submaps; i++) {\n\t\t\tinfo.timesubmap[i] = opb.read(8);\n\t\t\tif (info.timesubmap[i] >= vi.times) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t\tinfo.floorsubmap[i] = opb.read(8);\n\t\t\tif (info.floorsubmap[i] >= vi.floors) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t\tinfo.residuesubmap[i] = opb.read(8);\n\t\t\tif (info.residuesubmap[i] >= vi.residues) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t}\n\t\treturn info;\n\t}", "String[][] packData();", "public static void main(String[] args) {\n List<String> res = CompressStringToi18n.compress(\"careercup\");\n for(String str : res) {\n System.out.println(str);\n }\n }", "protected void decodeIndexEntry(IEntryResult entryResult) {\n\tchar[] word = entryResult.getWord();\n\tint tagLength = currentTag.length;\n\tint nameLength = CharOperation.indexOf(SEPARATOR, word, tagLength);\n\tif (this.simpleName == null)\n\t\t// Optimization, eg. type reference is 'org.eclipse.jdt.core.*'\n\t\tthis.decodedSegment = CharOperation.subarray(word, tagLength, nameLength);\n\telse\n\t\tthis.decodedSimpleName = CharOperation.subarray(word, tagLength, nameLength);\n}", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "public static void decode() {\n char[] symbols = initializeSymbols();\n int position;\n while (!BinaryStdIn.isEmpty()) {\n position = BinaryStdIn.readChar();\n char symbol = symbols[position];\n BinaryStdOut.write(symbol, BITS_PER_BYTE);\n System.arraycopy(symbols, 0, symbols, 1, position);\n symbols[0] = symbol;\n }\n BinaryStdOut.close();\n }", "private TranslatedString deBuffer(GtfsRealtime.TranslatedString buffered) {\n TranslatedString result = new TranslatedString();\n for (Translation translation : buffered.getTranslationList()) {\n String language = translation.getLanguage();\n String string = translation.getText();\n result.addTranslation(language, string);\n }\n return result;\n }", "private void decoding(String cipherText)\n\t{\n\t\ttextLength = cipherText.length();\n\n\t\tdo\n\t\t{\n\t\t\tStringBuffer sb = new StringBuffer(textLength);\n\t\t\tchar currentLetter[] = cipherText.toCharArray();\n\n\t\t\tfor(int i = ZERO; i < textLength; i++)\n\t\t\t{\n\t\t\t\tif(i % TWO ==0)\n\t\t\t\tsb.append(currentLetter[i]);\n\t\t\t} // Ending bracket of for loop\n\n\t\t\tfor(int i = ZERO; i < textLength; i++)\n\t\t\t{\n\t\t\t\tif(i % TWO != ZERO)\n\t\t\t\tsb.append(currentLetter[i]);\n\t\t\t} // Ending bracket of for loop\n\n\t\t\tdecodedText = sb.toString();\n\t\t\tcipherText = decodedText;\n\t\t\tloopIntDecode++;\n\t\t}while(loopIntDecode < shiftAmount);\n\t}", "private void _testSimple(ChunkDecoder decoder) throws IOException\n {\n byte[] orig = \"Another trivial test\".getBytes(\"UTF-8\");\n byte[] compressed = compress(orig);\n byte[] result = decoder.decode(compressed);\n Assert.assertEquals(result, orig);\n\n // also, ensure that offset, length are passed\n byte[] compressed2 = new byte[compressed.length + 4];\n System.arraycopy(compressed, 0, compressed2, 2, compressed.length);\n\n result = decoder.decode(compressed2, 2, compressed.length);\n Assert.assertEquals(result, orig);\n\n // two ways to do that as well:\n result = LZFDecoder.decode(compressed2, 2, compressed.length);\n Assert.assertEquals(result, orig);\n }", "public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "public void decode(byte[] in_buf, int in_off, int in_len,\r\n char[] out_buf, int out_off, int out_len, int[] result)\r\n throws CharConversionException;", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "private void ReadHuffman(String aux) {\n\n Huffman DY = new Huffman();\n Huffman DCB = new Huffman();\n Huffman DCR = new Huffman();\n DY.setFrequencies(FreqY);\n DCB.setFrequencies(FreqCB);\n DCR.setFrequencies(FreqCR);\n\n StringBuilder encoding = new StringBuilder();\n int iteradorMatrix = aux.length() - sizeYc - sizeCBc - sizeCRc;\n for (int x = 0; x < sizeYc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n Ydes = DY.decompressHuffman(encoding.toString());\n encoding = new StringBuilder();\n for (int x = 0; x < sizeCBc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n CBdes = DCB.decompressHuffman(encoding.toString());\n encoding = new StringBuilder();\n for (int x = 0; x < sizeCRc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n CRdes = DCR.decompressHuffman(encoding.toString());\n }", "Hashtable<String, String> unpack_cursor(Cursor cursor)\n {\n \tHashtable<String, String> result = null;\n \tif(cursor == null) return null;\n \telse if(cursor.getCount() == 0) return null;\n \telse\n \t{\n \t\tresult= new Hashtable<String, String>();\n\t \tcursor.moveToFirst(); \n\t \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\t\t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n\t\t\twhile (cursor.moveToNext()) \n\t \t{\n\t \t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n\t \t}\n \t}\n \treturn result;\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "Hashtable<String, String> unpack_cursor(Cursor cursor,Hashtable<String, String> result)\n {\n \tif(cursor == null) return null;\n \tcursor.moveToFirst(); \n \tif(result == null)\n \tresult = new Hashtable<String, String>();\n \t\n \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\t\twhile (cursor.moveToNext()) \n \t{\n \t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n \t}\n \treturn result;\n }", "public void decode()\n {\n if (null == escherRecords || 0 == escherRecords.size()){\n byte[] rawData = getRawData();\n convertToEscherRecords(0, rawData.length, rawData );\n }\n }", "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}", "AstroArg unpack(Astro litChars);", "public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }", "@Test\n public void Test4179686() throws Exception {\n RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US);\n // Create a collator with a few expanding character sequences in it....\n RuleBasedCollator coll = new RuleBasedCollator(en_us.getRules()\n + \" & ae ; \\u00e4 & AE ; \\u00c4\"\n + \" & oe ; \\u00f6 & OE ; \\u00d6\"\n + \" & ue ; \\u00fc & UE ; \\u00dc\");\n\n String text = \"T\\u00f6ne\"; // o-umlaut\n\n CollationElementIterator iter = coll.getCollationElementIterator(text);\n List elements = new ArrayList();\n int elem;\n\n // Iterate forward and collect all of the elements into a Vector\n while ((elem = iter.next()) != CollationElementIterator.NULLORDER) {\n elements.add(new Integer(elem));\n }\n\n // Now iterate backward and make sure they're the same\n iter.reset();\n int index = elements.size() - 1;\n while ((elem = iter.previous()) != CollationElementIterator.NULLORDER) {\n int expect = ((Integer)elements.get(index)).intValue();\n\n if (elem != expect) {\n errln(\"Mismatch at index \" + index\n + \": got \" + Integer.toString(elem,16)\n + \", expected \" + Integer.toString(expect,16));\n }\n index--;\n }\n }", "public static void inverseTransform()\r\n {\r\n \tint first = BinaryStdIn.readInt();\r\n \tString s = BinaryStdIn.readString();\r\n \tBinaryStdIn.close();\r\n \t\r\n \tchar[] t = s.toCharArray();\r\n \r\n \tchar[] firstCharacters = t.clone();\r\n \tArrays.sort(firstCharacters);\r\n \t\r\n \t// Construction next[] using t[] and first\r\n \tint[] next = constructNext(t, firstCharacters, first);\r\n \t\r\n \t// Writing original string to StdOut using next[] and first\r\n \tint index = first;\r\n \tfor (int i = 0; i < t.length; i++)\r\n \t{\r\n \t\tBinaryStdOut.write(firstCharacters[index]);\r\n \t\tindex = next[index];\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "public static String decompress(final String treeString, final String message) {\n\n BinaryNodeInterface<Character> rootNode = new BinaryNode<Character>();\n generateTree(rootNode, treeString);\n String result = message;\n\n if (result.length() == 0) {\n return result;\n }\n\n while (result.charAt(0) == '0' || result.charAt(0) == '1') {\n result = traverse(rootNode, result);\n result = result.substring(1);\n }\n\n return result;\n }", "public void decodeIndexEntry(IEntryResult entryResult){\n char[] word = entryResult.getWord();\n int size = word.length;\n int tagLength = REF.length;\n int nameLength = CharOperation.indexOf(SEPARATOR, word, tagLength);\n if (nameLength < 0) nameLength = size;\n this.decodedSegment = CharOperation.subarray(word, tagLength, nameLength); }" ]
[ "0.6268001", "0.6268001", "0.61182714", "0.61120105", "0.6109145", "0.61077017", "0.61047965", "0.6102622", "0.6101135", "0.6101135", "0.6099395", "0.6099287", "0.60950166", "0.6091184", "0.60895145", "0.6088585", "0.6087667", "0.6081806", "0.6081659", "0.608088", "0.60797596", "0.607945", "0.6078492", "0.6077767", "0.60681206", "0.6066226", "0.6062162", "0.6061311", "0.6056702", "0.60558355", "0.6027869", "0.601372", "0.6000014", "0.59228766", "0.5792289", "0.57722557", "0.5517124", "0.52203", "0.5081227", "0.49558756", "0.48912176", "0.48590815", "0.48259026", "0.48154795", "0.47990102", "0.4791696", "0.47755128", "0.47698048", "0.4726163", "0.4722224", "0.47109056", "0.46978635", "0.46956375", "0.46888226", "0.4673841", "0.4670231", "0.45796022", "0.45529643", "0.44856596", "0.4483551", "0.44100836", "0.44029015", "0.4371485", "0.43562996", "0.43432754", "0.4325777", "0.4318725", "0.4317079", "0.42956215", "0.42846423", "0.42820877", "0.42812386", "0.42748225", "0.42645377", "0.42547935", "0.42538556", "0.42104402", "0.42029488", "0.41978905", "0.41891858", "0.4188225", "0.41879666", "0.4184414", "0.4182444", "0.41710442", "0.41633636", "0.41560036", "0.41556725", "0.41533595", "0.41471255", "0.41449147", "0.41442305" ]
0.6063578
30
Returns the current lexical state.
public final int yystate() { return zzLexicalState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LexerState getState() {\n\t\treturn state;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "final public int yystate() {\n return yy_lexical_state;\n }", "final public int yystate() {\n return yy_lexical_state;\n }", "public TurtleState getCurrentState() {\n\t\treturn states.peek();\n\t}", "public interface LexicalStates\n{\n\t/** lexical states */\n\tpublic static final int LEX_NORMAL =\t\t10; /* normal code (ie not within \"...\") */\n\tpublic static final int LEX_INTERPNORMAL = 9; /* code within a string, eg \"$foo[$x+1]\" */\n\tpublic static final int LEX_INTERPCASEMOD = 8; /* expecting a \\U, \\Q or \\E etc */\n\tpublic static final int LEX_INTERPPUSH =\t 7; /* starting a new sublex parse level */\n\tpublic static final int LEX_INTERPSTART\t= \t 6; /* expecting the start of a $var */\n\n\t/* at end of code, eg \"$x\" followed by: */\n\tpublic static final int LEX_INTERPEND = \t 5; /* ... eg not one of [, { or -> */\n\tpublic static final int LEX_INTERPENDMAYBE = 4; /* ... eg one of [, { or -> */\n\n\tpublic static final int LEX_INTERPCONCAT =\t 3; /* expecting anything, eg at start of\n\t\t\t\t\tstring or after \\E, $foo, etc */\n\tpublic static final int LEX_INTERPCONST =\t 2; /* NOT USED */\n\tpublic static final int LEX_FORMLINE =\t\t 1; /* expecting a format line */\n\tpublic static final int LEX_KNOWNEXT =\t\t 0; /* next token known; just return it */\n\n}", "public java.lang.String getState () {\n\t\treturn state;\n\t}", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public S getCurrentState();", "public final int yystate() {\n return zzLexicalState;\n }", "public java.lang.CharSequence getState() {\n return state;\n }", "public final int yystate() {\n\t\treturn zzLexicalState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public java.lang.CharSequence getState() {\n return state;\n }", "String getCurrentState() {\n return context.getString(allStates[currentIdx]);\n }", "public State getCurrentState() {\n \t\treturn currentState;\n \t}", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public java.lang.String getState() {\r\n return state;\r\n }", "public S getState() {\r\n\t\treturn state;\r\n\t}", "public java.lang.String getState() {\n return state;\n }", "public java.lang.String getState() {\n return state;\n }", "public String getStateToken() {\n\t\treturn stateToken;\n\t}", "public java.lang.String getState() {\n return State;\n }", "public final char getState() {\n\t\treturn _state;\n\t}", "public String getState() {\n\t\treturn state;\n\t}", "public State getCurrentState() {\n return currentState;\n }", "public String getState()\n\t{\n\t\treturn state;\n\t}", "java.lang.String getState();", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public S getState() {\n return currentState;\n }", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "@AutoEscape\n\tpublic String getState();", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public STATE getState() {\n\t\n\t\treturn state;\n\t}", "public State getState() {\n\t\treturn state;\n\t}", "public State getState() {\n\t\treturn state;\n\t}", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "String getState();", "String getState();", "String getState();", "public static States getState() {\r\n\t\treturn currentState;\r\n\t}", "public int getCurrentState() {\n return myState;\n }", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public String getState() {\n\t\treturn state.toString();\n\t}", "public String getState()\n {\n \treturn state;\n }", "public String getState() {\n\t\treturn State;\n\t}", "public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}", "public State getState();", "public State getState();", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }" ]
[ "0.7778223", "0.70451266", "0.6973572", "0.6948794", "0.6948794", "0.69262105", "0.6872897", "0.6855285", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6816272", "0.6794584", "0.67804474", "0.6775809", "0.6752034", "0.6720856", "0.6673574", "0.65926677", "0.65839285", "0.65839285", "0.65592843", "0.6550969", "0.6549062", "0.6549062", "0.64878684", "0.6481509", "0.64813185", "0.6453214", "0.64531", "0.6444532", "0.6442533", "0.64420325", "0.64329183", "0.6428034", "0.6428034", "0.6428034", "0.64198136", "0.64187604", "0.64187604", "0.6395604", "0.6391171", "0.6391171", "0.63854337", "0.6378271", "0.6378271", "0.6378271", "0.636332", "0.63566566", "0.6348809", "0.6348809", "0.63462967", "0.63323", "0.6328926", "0.63216776", "0.630704", "0.630704", "0.6278874", "0.6278874", "0.6278874" ]
0.6828434
47
Enters a new lexical state
public final void yybegin(int newState) { zzLexicalState = newState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\n zzLexicalState = newState;\n }", "final public void yybegin(int newState) {\n yy_lexical_state = newState;\n }", "final public void yybegin(int newState) {\n yy_lexical_state = newState;\n }", "public final void yybegin(int newState) {\n\t\tzzLexicalState = newState;\n\t}", "public void SwitchTo(int lexState)\n{\n if (lexState >= 1 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "public void SwitchTo(int lexState)\n{\n if (lexState >= 4 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "static public void SwitchTo(int lexState)\n{\n if (lexState >= 2 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "static public void SwitchTo(int lexState)\n {\n if (lexState >= 3 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "private void start() {\n getDispenser().advance();\n if (getDispenser().tokenIsNumber()) setState(State.NUMBER); \n else if (getDispenser().tokenIsLeftParen()) setState(State.LEFT_PAREN);\n else syntaxError(NUM_OR_LEFT_PAREN);\n }", "public void SwitchTo(int lexState)\n {\n if (lexState >= 4 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "static public void SwitchTo(int lexState) {\n if (lexState >= 2 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "public SLR1_automat.State next_state(String symbol) throws Exception;", "public interface LexicalStates\n{\n\t/** lexical states */\n\tpublic static final int LEX_NORMAL =\t\t10; /* normal code (ie not within \"...\") */\n\tpublic static final int LEX_INTERPNORMAL = 9; /* code within a string, eg \"$foo[$x+1]\" */\n\tpublic static final int LEX_INTERPCASEMOD = 8; /* expecting a \\U, \\Q or \\E etc */\n\tpublic static final int LEX_INTERPPUSH =\t 7; /* starting a new sublex parse level */\n\tpublic static final int LEX_INTERPSTART\t= \t 6; /* expecting the start of a $var */\n\n\t/* at end of code, eg \"$x\" followed by: */\n\tpublic static final int LEX_INTERPEND = \t 5; /* ... eg not one of [, { or -> */\n\tpublic static final int LEX_INTERPENDMAYBE = 4; /* ... eg one of [, { or -> */\n\n\tpublic static final int LEX_INTERPCONCAT =\t 3; /* expecting anything, eg at start of\n\t\t\t\t\tstring or after \\E, $foo, etc */\n\tpublic static final int LEX_INTERPCONST =\t 2; /* NOT USED */\n\tpublic static final int LEX_FORMLINE =\t\t 1; /* expecting a format line */\n\tpublic static final int LEX_KNOWNEXT =\t\t 0; /* next token known; just return it */\n\n}", "static void EnterScope(){\r\n\t\tcurLevel++;\r\n\t\tScope scope = new Scope(curLevel);\r\n\t\t//scope.nextAdr = 3;\r\n\t\ttopScope.ant = scope;\r\n\t\tscope.sig = topScope; \r\n\t\ttopScope = scope;\r\n }", "public void enterScope(){\n\t\tscope.add(0, new ArrayList<SymbolEntry>());\n\t\t++scopeLevel;\n\t}", "public void enterBlock(CymbolParser.BlockContext ctx) {\n currentScope = new LocalScope(currentScope);\n saveScope(ctx, currentScope);\n }", "public void add_switch(String symbol, SLR1_automat.State state) throws Exception;", "public void pushState( TurtleState state ) {\n\t\tstates.push( state );\n\t}", "@Override\r\n\tpublic void addState(String nextToken) {\r\n\t\tNFAState s = checkIfExists(nextToken);\r\n\t\tif (s == null) {\r\n\t\t\tstates.add(new NFAState(nextToken));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: this state already exists.\");\r\n\t\t}\r\n\t}", "public void enterNormalState() {\n\n\t}", "public void enterHatchingState() {\n\n\t}", "@Override\n\tpublic void addStartState(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\tstart = s;\n\t\t\n\t}", "public ATNState newState(GrammarAST node) {\n ATNState n = new BasicState();\n if (currentRule != null) {\n n.setRuleIndex(currentRule.index);\n }\n atn.addState(n);\n return n;\n }", "public void applyNewState() {\n this.setAlive(this.newState);\n }", "void nextState();", "@Override\n\tpublic void enterStart(AplusplusParser.StartContext ctx) {\n\t\tglobalScope = new GlobalScope();\n\t\tcurrentScope = globalScope;\n\t\tsaveScope(ctx, currentScope);\n\t}", "private InterpreterState(final String statename) {\n name = statename;\n }", "public abstract ALRState<I> goTo(Symbol symbol);", "State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }", "public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }", "public void setState(LexerState state) {\n\t\tif (state == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.state = state;\n\t}", "public void setState(LexerState state) {\n\t\tif (state == null) {\n\t\t\tthrow new IllegalArgumentException(\"State cannot be \" + state);\n\t\t}\n\t\tthis.state = state;\n\t}", "protected void sequence_State(ISerializationContext context, State semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, TP1_EMPackage.Literals.STATE__NAME) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TP1_EMPackage.Literals.STATE__NAME));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getStateAccess().getNameEStringParserRuleCall_2_0(), semanticObject.getName());\r\n\t\tfeeder.finish();\r\n\t}", "public State(String name) {\n\t\tthis.name = name;\n\t\tif (name.endsWith(\"a\")) {\n\t\t\tsetAccepting();\n\t\t} else if (name.endsWith(\"d\")) {\n\t\t\tsetDeclining();\n\t\t} else if (name.endsWith(\"f\")) {\n\t\t\tsetFinal(true);\n\t\t}\n\t}", "protected void enter() {\n \tresult.setForeground(red);\n \tif (entered == true) {\n \t\tshow(current);\n \t}\n \tentered = true;\n \tstack.add(current);\n \tcurrent = 0;\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "public void getState();", "private LRState createStartState(final Grammar grammar) {\n final Production production = grammar.getStartProduction();\n final HashSet<Symbol> terminalSymbols = new HashSet<>();\n terminalSymbols.add(END_SYMBOL);\n final LRItem startItem = new LRItem(production, 0, terminalSymbols);\n return new LRState(Arrays.asList(new LRItem[] { startItem }), 0);\n }", "public void enter();", "synchronized void advanceState()\n {\n state = state.advance();\n notifyAll();\n }", "public LexerState getState() {\n\t\treturn state;\n\t}", "LabState state();", "public void setState(int synstate){\n\tsynState = synstate;\n }", "public void FSMProcess(String currentInput) throws BadInputException{\n if (contentsMap.containsKey(currentState + currentInput)) {\n System.out.print(contentsMap.get(currentState + currentInput).getOutputSymbol());\n this.currentState = contentsMap.get(currentState + currentInput).getNextState();\n }\n else throw new BadInputException();\n }", "public DFAState(String name) {\n this.name = name;\n this.hashCode = name.hashCode();\n }", "public State next () { return nextState(); }", "public void setState (int philosphoer, String state){\n currentState[philosphoer] = state;\n }", "private void enterRules()\n {\n String ruleString = ruleTextField.getText();\n transition.buildRulesFromString(ruleString);\n ruleString = transition.buildStringFromRules();\n ruleTextField.setText(ruleString);\n optionsPanel.getWorkspacePanel().requestFocusInWindow();\n optionsPanel.getWorkspacePanel().repaint();\n // Daniel didn't like this automatic switching any more.\n // optionsPanel.getWorkspacePanel().setTool(LMWorkspacePanel.SELECT_TOOL);\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}", "void enter();", "public void setCameFrom(State n)\r\n\t{\r\n\t\tthis.previousState = new State(n);\r\n\t}", "@Override\n public void setState(String s)\n {\n state = s;\n nbChanges++;\n }", "public void Activate() {\n state.Activate();\n }", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}", "public ExecuteState() {\r\n PrevPC = 0;\r\n ChangedLoc = -1;\r\n OldInst = new CodeBlueInstruction();\r\n }", "@Override\r\n\tpublic void enter() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}" ]
[ "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.72941506", "0.7226648", "0.7226648", "0.71508276", "0.67628527", "0.675286", "0.66516984", "0.62365973", "0.6181515", "0.61330837", "0.6028637", "0.6020987", "0.59391516", "0.59199816", "0.5890798", "0.5875512", "0.58046514", "0.57238895", "0.57177275", "0.5656443", "0.5620161", "0.5614717", "0.5598218", "0.5589737", "0.5581988", "0.5566714", "0.5546274", "0.55406994", "0.5533377", "0.552367", "0.550816", "0.5502893", "0.55012566", "0.5456661", "0.5451478", "0.5435046", "0.5416135", "0.54146284", "0.5400702", "0.53828895", "0.53801304", "0.5365147", "0.5350195", "0.5311098", "0.5308529", "0.52941406", "0.52824825", "0.5277627", "0.52679616", "0.5262274", "0.5258218", "0.5254931", "0.52547026", "0.5254015", "0.52511466", "0.5245394", "0.52409154" ]
0.734593
33
Returns the text matched by the current regular expression.
public final CharSequence yytext() { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegularExpression() {\n\t\treturn enteredText;\n\t}", "java.lang.String getRegex();", "java.lang.String getRegex();", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public String getRegex();", "public String getRegEx();", "public String getMatched() {\r\n\t\treturn matched;\r\n\t}", "public String getMatchRegex() {\n return matchRegex;\n }", "public String apply(TregexMatcher tregexMatcher)\n/* */ {\n/* 275 */ return this.result;\n/* */ }", "public static String getAfterRegex(String text, String regex) {\n\t\tMatcher textMatcher = Pattern.compile(regex).matcher(text);\n\t\ttextMatcher.find();\n\t\tint foundI = textMatcher.end();\n\t\tif (sb == null) {\n\t\t\tsb = new StringBuilder();\n\t\t}\n\t\tchar[] chars = text.toCharArray();\n\t\tfor (int i=foundI; i<chars.length; i++) {\n\t\t\tsb.append(chars[i]);\n\t\t}\n\t\tString tokens = sb.toString();\n\t\tsb.setLength(0);\n\t\treturn tokens;\n\t}", "public final String getRegex() {\n\t\treturn JsUtils.getNativePropertyString(this, \"regex\");\n\t}", "public String getRegEx() {\r\n return regex;\r\n }", "public final String yytext() {\n\t\treturn new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n\t}", "public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.Short getRegexMatch() {\r\n return regexMatch;\r\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }", "public java.lang.String getGet() {\n java.lang.String ref = \"\";\n if (patternCase_ == 2) {\n ref = (java.lang.String) pattern_;\n }\n return ref;\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }", "public P getText() {\n return this.slp.getProduction(text);\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n }", "final public String yytext() {\n return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );\n }", "final public String yytext() {\n return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );\n }", "public String getSourceText() {\n\t\treturn getSource().replaceAll(\"<a.*>(.*)</a>\", \"$1\");\n\t}", "public String getTextInCurrentElement() throws ParseException {\n int lessThan = html.lastIndexOf(\"<\", position);\n if (lessThan == -1) {\n throw new ParseException(\"Cannot find text in current element\", position);\n }\n position = lessThan;\n String tag = findCurrentTag(html, position);\n return getTextInNextElement(tag);\n }", "private ReaderWorld() {\r\n pattern = Pattern.compile(regularExpression);\r\n matcher = pattern.matcher(getText());\r\n }", "public String returnRegex() {\n\t\tString chosenRegex;\n\t\tSystem.out.println(\"selectedRegex value is: \" + selectedRegex);\n\t\tswitch (selectedRegex) {\n\t\tcase 1:\n\t\t\tchosenRegex = \"(\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*)\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tchosenRegex = \"(\\\\&list=[a-zA-Z 0-9 -]+\\\\&?index=?\\\\d+?)\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tchosenRegex = \"(\\\\&feature=youtu.be)\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tchosenRegex = \"\\\\?t.*|\\\\&t.*|\\\\&l.*|\\\\&f.*\"; // alternative:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// (\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*|\\\\&list=[a-zA-Z\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0-9 -]*)\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(chosenRegex);\n\t\treturn chosenRegex;\n\t}", "public String getText() {\n return text.getText();\n }", "public String getText() {\n\t\treturn new XWPFWordExtractor(document).getText();\n\t}", "@java.lang.Override\n public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n }\n }", "public java.lang.String getRegexStr() {\r\n return regexStr;\r\n }", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "private String getStringMatching(final String input, final String regex) {\n\t\tLOGGER.debug(\"trying to locate a pattern {} in the input {}\", regex, input);\n\t\tPattern pattern = Pattern.compile(regex);\n\t\tString match = null;\n\t\tMatcher m = pattern.matcher(input);\n\t\twhile (m.find()) {\n\t\t\tfinal String matchingGroup = m.group().trim();\n\t\t\tif (matchingGroup.length() > 0) {\n\t\t\t\tmatch = matchingGroup;\n\t\t\t}\n\t\t}\n\t\treturn match;\n\t}", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "public final String yytext() {\n return input.readText().toString();\n }", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "Match getResultMatch();", "@Nullable\n String getMatch() {\n if (getAnchorType() == STRING_LITERAL || getAnchorType() == CHAR_LITERAL) {\n // Remove quotes inserted by parboiled for completion suggestions\n String fullToken = _anchor.getLabel();\n if (fullToken.length() >= 2) { // remove surrounding quotes\n fullToken = fullToken.substring(1, fullToken.length() - 1);\n }\n return fullToken;\n }\n return null;\n }", "public String getText()\n {\n return (this.text);\n }", "protected abstract Regex pattern();", "public String getPattern() {\r\n return this.currPattern;\r\n }", "public String getSearchResultsText() {\n System.out.println(\"[step] getSearchResultsText\");\n return page.findElement(signSearch).getText();\n }", "public MatchResult getResult() {\n return result;\n }", "String text();", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(stringDfaMatcher);\n buffer.append(nfaMatcher);\n buffer.append(regExpMatcher);\n return buffer.toString();\n }", "public String previewNextToken() {\r\n matcher.find();\r\n String nextOne = matcher.group();\r\n updateMatcher(); // Return matcher to its previous state\r\n return nextOne;\r\n }" ]
[ "0.70918065", "0.6484353", "0.6484353", "0.6231338", "0.6081341", "0.6011239", "0.59774715", "0.594106", "0.58467793", "0.57840997", "0.5781989", "0.5691061", "0.56247616", "0.56243914", "0.562349", "0.56010646", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5586059", "0.5563483", "0.55582124", "0.55582124", "0.55582124", "0.55582124", "0.55582124", "0.5550914", "0.5549363", "0.55393475", "0.5517683", "0.5517683", "0.55167186", "0.5508398", "0.5448301", "0.5437464", "0.54361844", "0.54159194", "0.54098195", "0.5408319", "0.5388305", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.53742635", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.53546596", "0.5341025", "0.5332981", "0.5329512", "0.5320878", "0.53195256", "0.5273523", "0.5272645", "0.52618897", "0.5260471", "0.5256495", "0.5250461" ]
0.5966505
19
Returns the length of the matched text region.
public final int yylength() { return zzMarkedPos-zzStartRead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTextLength();", "public int length() {\r\n\t\treturn text.length();\r\n\t}", "public int getTextLength();", "public int getLength() {\n\t\t\treturn this.text.length();\n\t}", "@Override\r\n \tpublic final int getLength() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getEndPos() - getStartPos();\r\n \t}", "public int getTextLength() {\r\n return text.length();\r\n }", "public int numMatches();", "public int getMinMatchLength() {\n int[] allele = {getAllele(0), getAllele(1)};\n byte[][] alt = {getAlt(allele[0]).getSequence(), getAlt(allele[1]).getSequence()};\n byte[] ref = getReference();\n\n int[] matchLength = {0, 0};\n for (int i = 0; i < 2; i++) {\n for (int j = 0; j < Math.min(ref.length, alt[i].length); j++) {\n if (alt[i][j] == ref[j]) {\n matchLength[i]++;\n } else {\n break;\n }\n }\n }\n return Math.min(matchLength[0], matchLength[1]);\n }", "int getSearchLength();", "int getGrammarMatchCount();", "int computeNumberOfLines(String text);", "public int size() {\n return text.size();\n }", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public double length(){\n return end.distance(getStart());\n }", "protected int length() { return FormatTools.getRasterLength(lengths); }", "public final int termLength() {\n initTermBuffer();\n return termLength;\n }", "public int rectangleCount() {\n return this.root.rectangleCount();\n }", "public float getWidth() {\n\t\t\n\t\tfloat width= 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\twidth += font.getChar(text.charAt(i)).X_ADVANCE * size;\n\t\t}\n\t\t\n\t\treturn width;\n\t}", "public int matchLength() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int, dex: in method: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int\");\n }", "public double length() {\n\t\treturn startPoint.distance(endPoint);\n\t}", "public int height()\n throws Exception\n {\n return this.text.height();\n }", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "int getLinesCount();", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "int getNumberOfLines(int offset, int length) throws BadLocationException;", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "private int getOffsetLength(final String message, final ResourceText text,\n\t\t\tfinal int offset) {\n\t\tint length = 1;\n\t\tif (isUnunsedVariable(message) //\n\t\t\t\t|| isUnunsedMacro(message) //\n\t\t\t\t|| isLowerCase(message)) {\n\t\t\tfinal int start = message.indexOf(QUOTE_CHAR);\n\t\t\tfinal int end = message.indexOf(QUOTE_CHAR, start + 1);\n\t\t\tif (start != -1 && end != -1) {\n\t\t\t\tlength = end - start - 1;\n\t\t\t}\n\t\t} else if (isNoSpace(message)) {\n\t\t\tint end = offset;\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\twhile (isWhitespace(content, end)) {\n\t\t\t\tend++;\n\t\t\t}\n\t\t\tlength = end - offset;\n\t\t} else if (isOneSpace(message) || isEndLineSpace(message)) {\n\t\t\tint end = offset + 1;\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\twhile (isWhitespace(content, end)) {\n\t\t\t\tend++;\n\t\t\t}\n\t\t\tlength = end - offset;\n\t\t}\n\n\t\treturn Math.max(length, 1);\n\t}", "public int getStringWidth(String text);", "public int getGrammarMatchCount() {\n if (grammarMatchBuilder_ == null) {\n return grammarMatch_.size();\n } else {\n return grammarMatchBuilder_.getCount();\n }\n }", "public int length() { return _end - _start; }", "public final int yylength() {\n\t\treturn zzMarkedPos-zzStartRead;\n\t}", "public float getHeight() {\n\t\t\n\t\tfloat height = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tfloat h = (c.T_HEIGHT + c.Y_OFFSET) * size;\n\t\t\t\n\t\t\tif(h > height)\n\t\t\t\theight = h;\n\t\t}\n\t\t\n\t\treturn height;\n\t}", "public int getLength() {\n if (data instanceof String) {\n String string = (String) data;\n return string.length();\n } else if (data instanceof StringReference) {\n StringReference stref = (StringReference) data;\n return stref.getLength();\n } else if (data instanceof Value) {\n Value val = (Value) data;\n return val.getString().length();\n } else {\n return data.toString().length();\n }\n }", "public int getWordLength();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "@Override\n public int height()\n {\n return textCent.height();\n }", "public int get_length();", "private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}", "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "public double getLength() {\n return VectorXZ.distance(p1, p2);\n }", "public int getMazeWidth() {\n\t\tint result = 0;\n\t\t\n\t\tfor (String line : this.mMazeChars) {\n\t\t\tif (result < line.length()) \n\t\t\t\tresult = line.length();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int length() {\n return nextindex - startIndex;\n }", "@Override\n public int computeLength()\n {\n if ( matchingRule != null )\n {\n matchingRuleBytes = Strings.getBytesUtf8( matchingRule );\n extensibleMatchLength = 1 + TLV.getNbBytes( matchingRuleBytes.length ) + matchingRuleBytes.length;\n }\n\n if ( type != null )\n {\n typeBytes = Strings.getBytesUtf8( type );\n extensibleMatchLength += 1 + TLV.getNbBytes( typeBytes.length ) + typeBytes.length;\n }\n\n if ( matchValue != null )\n {\n int bytesLength = matchValue.getBytes().length;\n extensibleMatchLength += 1 + TLV.getNbBytes( bytesLength ) + bytesLength;\n }\n\n if ( dnAttributes )\n {\n extensibleMatchLength += 1 + 1 + 1;\n }\n\n return 1 + TLV.getNbBytes( extensibleMatchLength ) + extensibleMatchLength;\n }", "public int length()\r\n/* 26: */ {\r\n/* 27: 39 */ return this.pos;\r\n/* 28: */ }", "@java.lang.Override\n public int getGrammarMatchCount() {\n return grammarMatch_.size();\n }", "public int getWidth(CharSequence text) {\r\n\t\tint width = 0, lineWidth = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < text.length(); i++) {\r\n\t\t\tchar character = text.charAt(i);\r\n\t\t\t\r\n\t\t\tif (character == '\\n') { // New line\r\n\t\t\t\twidth = Math.max(width, lineWidth);\r\n\t\t\t\tlineWidth = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Ignore carriage returns\r\n\t\t\tif (character == '\\r') continue;\r\n\t\t\t\r\n\t\t\tGlyph glyph = glyphs.get(character);\r\n\t\t\tif (glyph == null) continue;\r\n\t\t\t\r\n\t\t\tlineWidth += glyph.getWidth();\r\n\t\t}\r\n\t\t\r\n\t\twidth = Math.max(width, lineWidth);\r\n\t\treturn width;\r\n\t}", "int getNumberOfLines();", "int getLineLength(int line) throws BadLocationException;", "public long getNumberOfPatternOccurrences() {\n if(!hasFinished()) {\n throw new IllegalArgumentException(\"the recompression is not jet ready.\");\n }\n\n S terminal = slp.get(getPattern().getLeft(), 1);\n return getPatternOccurrence(terminal).get(getText());\n }", "public int getCount() {\n return m_stringOffsets != null ?\n m_stringOffsets.length :\n 0;\n }", "public int length() {\n\treturn tokens.length;\n}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();" ]
[ "0.6528484", "0.6524071", "0.636394", "0.6363093", "0.61599505", "0.6144468", "0.60899585", "0.6083994", "0.607981", "0.6014312", "0.6012768", "0.60009634", "0.59647894", "0.5935444", "0.5883292", "0.5819961", "0.5805488", "0.57757026", "0.5772788", "0.5771723", "0.57381433", "0.5736751", "0.57170707", "0.5708871", "0.5691757", "0.5684845", "0.5684845", "0.5684845", "0.5684845", "0.5684845", "0.56836575", "0.56816185", "0.56722504", "0.5664663", "0.5642051", "0.56175935", "0.5615893", "0.56133527", "0.5610425", "0.5610425", "0.5610425", "0.5610425", "0.5610425", "0.5598322", "0.5596918", "0.5592805", "0.55829555", "0.55432", "0.5530951", "0.5523193", "0.55159557", "0.55140084", "0.5510568", "0.5509233", "0.5494084", "0.5489734", "0.5485191", "0.5483054", "0.54786164", "0.54784447", "0.54784447", "0.54784447", "0.54784447", "0.54784447" ]
0.5758411
47
Reports an error that occurred while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a matchall fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner etc.). Usual syntax/scanner level error handling should be done in error fallback rules.
private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }", "public void syntax_error(Symbol current_token){}", "public static void scannerError(String fmt, Object... varArgs) throws Exception\r\n\t{\r\n\t\tString diagnosticTxt = String.format(fmt, varArgs);\r\n\t\tthrow new ScannerException((Scanner.iSourceLineNr + 1), diagnosticTxt);\r\n\t}", "@Override\n public final void syntaxError(Recognizer<?, ?> recognizer,\n Object offendingSymbol, int line, int charPositionInLine,\n String msg, RecognitionException e) {\n ResolveToken offendingToken = (ResolveToken) offendingSymbol;\n String input;\n if (recognizer == null) {\n input = offendingToken.getTokenSource().getInputStream().toString();\n }\n else {\n CommonTokenStream src =\n (CommonTokenStream) recognizer.getInputStream();\n input = src.getTokenSource().getInputStream().toString();\n }\n String[] lines = input.split(\"\\n\");\n String errorLine = lines[line - 1].replaceAll(\"\\t\", \" \");\n\n // Obtain the location from the token if it is not null\n Location location = null;\n if (offendingToken != null) {\n location = offendingToken.getLocation();\n }\n\n String errorMsg = buildErrorMsg(charPositionInLine, errorLine, msg);\n myStatusHandler.error(location, errorMsg);\n }", "@Override\n protected void reportUnwantedToken(Parser recognizer) {\n super.reportUnwantedToken(recognizer);\n System.exit(SYNTAX_ERROR_CODE);\n }", "private void error(@Nonnull Token pptok, boolean is_error)\r\n throws IOException,\r\n LexerException {\r\n StringBuilder buf = new StringBuilder();\r\n buf.append('#').append(pptok.getText()).append(' ');\r\n /* Peculiar construction to ditch first whitespace. */\r\n Token tok = source_token_nonwhite();\r\n ERROR:\r\n for (;;) {\r\n switch (tok.getType()) {\r\n case NL:\r\n case EOF:\r\n break ERROR;\r\n default:\r\n buf.append(tok.getText());\r\n break;\r\n }\r\n tok = source_token();\r\n }\r\n if (is_error)\r\n error(pptok, buf.toString());\r\n else\r\n warning(pptok, buf.toString());\r\n }", "@Override\n protected void visit(final SpreadsheetErrorParserToken token) {\n this.add(\n Expression.value(\n token.value()\n .kind()\n .toError()\n ),\n token\n );\n }", "private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}", "int yyparse()\n {\n boolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\");\n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\n case 1:\n//#line 25 \"GramaticaGrupo8.y\"\n {}\n break;\n case 2:\n//#line 26 \"GramaticaGrupo8.y\"\n {yyerror(\"No hay sentencia\");}\n break;\n case 3:\n//#line 27 \"GramaticaGrupo8.y\"\n {yyerror(\"No hay sentencia\");}\n break;\n case 4:\n//#line 27 \"GramaticaGrupo8.y\"\n {}\n break;\n case 5:\n//#line 30 \"GramaticaGrupo8.y\"\n {}\n break;\n case 6:\n//#line 31 \"GramaticaGrupo8.y\"\n {}\n break;\n case 7:\n//#line 34 \"GramaticaGrupo8.y\"\n {}\n break;\n case 8:\n//#line 35 \"GramaticaGrupo8.y\"\n {}\n break;\n case 9:\n//#line 38 \"GramaticaGrupo8.y\"\n {\n Vector<ParserVal> vectorTokens = (Vector<ParserVal>)(val_peek(1).obj);\n String tipo = (val_peek(2).sval);/* para que esto ande tocar la regla del no terminal tipo*/\n tipo = tipo.toLowerCase();\n for(int i=0; i< vectorTokens.size();i++){\n ParserVal token = vectorTokens.elementAt(i);\n Symbol simbolo =(Symbol) token.obj;\n if (!simbolo.isUsada()){\n simbolo.setUsada(true);\n simbolo.setEsMutable(true);\n simbolo.setTipoVar(val_peek(2).sval);}\n else\n yyerror(\"Se esta intentado redeclarar la variable \"+simbolo.getLexema(),token.getFila(),token.getColumna());\n }\n\n }\n break;\n case 10:\n//#line 54 \"GramaticaGrupo8.y\"\n {yyerror(\"Declaracion mal definida \");}\n break;\n case 11:\n//#line 57 \"GramaticaGrupo8.y\"\n {/* id.add( ((Symbol)($1.obj)).getLexema() );*/\n Vector<ParserVal> vect = new Vector<ParserVal>();/*$1 es el parser val con el symbolo de ese ID*/\n vect.add(val_peek(0));/*ver si anda, hay que castear a Symbol?*/\n yyval.obj = vect; }\n break;\n case 12:\n//#line 61 \"GramaticaGrupo8.y\"\n {\t((Symbol)(val_peek(0).obj)).setEspuntero(true); /*reconoce puntero*/\n /*id.add(((Symbol)($2.obj)).getLexema());//} //agrega a lista de identificadores reconocidos*/\n Vector<ParserVal> vect = new Vector<ParserVal>();/*$2 es el parser val con el symbolo de ese ID*/\n vect.add(val_peek(0));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 13:\n//#line 68 \"GramaticaGrupo8.y\"\n {/*id.add(((Symbol)($1.obj)).getLexema());*/\n Vector<ParserVal> vect = (Vector<ParserVal>)(val_peek(0).obj); /*$3 me trae el vector original primero y desp aumenta*/\n vect.add(val_peek(2));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 14:\n//#line 73 \"GramaticaGrupo8.y\"\n {/*id.add(((Symbol)($2.obj)).getLexema());*/\n ((Symbol)(val_peek(2).obj)).setEspuntero(true); /*reconoce puntero*/\n Vector<ParserVal> vect = (Vector<ParserVal>)(val_peek(0).obj); /*$4 me trae el vector original primero y desp aumenta*/\n vect.add(val_peek(2));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 15:\n//#line 79 \"GramaticaGrupo8.y\"\n {yyerror(\"Se esperaba ';' \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 16:\n//#line 82 \"GramaticaGrupo8.y\"\n {yyval.sval=\"integer\";}\n break;\n case 17:\n//#line 83 \"GramaticaGrupo8.y\"\n {yyval.sval=\"single\";}\n break;\n case 18:\n//#line 84 \"GramaticaGrupo8.y\"\n {yyerror(\"Tipo indefinido\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 19:\n//#line 87 \"GramaticaGrupo8.y\"\n {}\n break;\n case 20:\n//#line 88 \"GramaticaGrupo8.y\"\n {}\n break;\n case 21:\n//#line 91 \"GramaticaGrupo8.y\"\n {}\n break;\n case 22:\n//#line 92 \"GramaticaGrupo8.y\"\n {/*#######Solo llego aca si termino un if o un loop*/\n Integer i = p.pop();\n if (listaTercetos.get(i).getOperador() == \"BI\")\n {\n listaTercetos.get(i).setOperando1(contadorTerceto);\n\n }\n if (listaTercetos.get(i).getOperador() == \"BF\")\n {\tlistaTercetos.get(i).setOperando2(contadorTerceto);\n }\n if (intLoop == 0){\n Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);\n }\n else\n { ((T_BF)listaTercetos.get(i)).invertFlags();\n listaTercetos.get(i).setOperando2(intLoop);\n intLoop=0;\n }\n /*podriamos hacer un terceto fin aca que sea a donde apunte el salto, este terceto no haria nada solo funcionaria de label del salto*/\n }\n break;\n case 23:\n//#line 104 \"GramaticaGrupo8.y\"\n {}\n break;\n case 24:\n//#line 107 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Suma_Resta(contadorTerceto,\"+\",val_peek(2).obj,val_peek(0).obj,st);\n /*st es la tabla de simbolos, paso lexema porque lo uso para buscar en la tabla de simbolos*/\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 25:\n//#line 121 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Suma_Resta(contadorTerceto,\"-\",val_peek(2).obj,val_peek(0).obj,st);\n /*st es la tabla de simbolos, paso lexema porque lo uso para buscar en la tabla de simbolos*/\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 26:\n//#line 135 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);\n yyval.obj=val_peek(0).obj; /*creo que es necesario para que no se pierdan los lexemas, si quieren reveanlo*/\n }\n break;\n case 27:\n//#line 141 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Mult_Div(contadorTerceto,\"/\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n\n }\n break;\n case 28:\n//#line 155 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Mult_Div(contadorTerceto,\"*\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 29:\n//#line 168 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);\n /* terceto*/\n yyval.obj=val_peek(0).obj;\n }\n break;\n case 30:\n//#line 175 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);}\n break;\n case 31:\n//#line 176 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);}\n break;\n case 32:\n//#line 177 \"GramaticaGrupo8.y\"\n {if(!((Symbol)(val_peek(0).obj)).isUsada()){\n /*error*/\n yyerror(\"variable no declarada\",val_peek(0).getFila(),val_peek(0).getColumna());\n }\n yyval=val_peek(0);\n }\n break;\n case 33:\n//#line 183 \"GramaticaGrupo8.y\"\n { /** Revisar sino pierdo el puntero al elemento qe necesito **/\n yyval=val_peek(0);\n /*Symbol aux = st.getSymbol(lex.lastSymbol);*/\n st.addcambiarSigno(((Symbol)(val_peek(0).obj))); /*((Symbol))($2.obj))*/\n }\n break;\n case 34:\n//#line 188 \"GramaticaGrupo8.y\"\n {\t\t\t/** Revisar sino pierdo el puntero al elemento qe necesito **/\n yyval=val_peek(0);\n /* Antes qedaban atributos sin setear*/\n /* Symbol aux = st.getSymbol(lex.lastSymbol);*/\n st.addcambiarSigno(((Symbol)(val_peek(0).obj))); /*((Symbol))($2.obj))*/\n }\n break;\n case 35:\n//#line 196 \"GramaticaGrupo8.y\"\n {\t\t/*necesito el tipo de la expresion*/\n if (!((Symbol)(val_peek(2).obj)).isUsada()){\n yyerror(\"La variable no esta definida \",val_peek(2).getFila(),val_peek(2).getColumna());\n }else{if (!((Symbol)(val_peek(2).obj)).getEsMutable()){\n yyerror(\"La variable no es mutable \",val_peek(2).getFila(),val_peek(2).getColumna());\n }}\n Terceto t = new T_Asignacion(contadorTerceto,\":=\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);//casi seguro que si hay que crearla aca*\n contadorVarAux++;//*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n estructuras.add(\"Asignacion \"+\" fila \"+val_peek(2).getFila()+\" columna \"+val_peek(2).getColumna());}\n break;\n case 36:\n//#line 215 \"GramaticaGrupo8.y\"\n { /* Estoy definiendo una variable*/\n if (((Symbol)(val_peek(3).obj)).isUsada()){\n yyerror(\"La variable ya esta definida \",val_peek(6).getFila(),val_peek(6).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(3).obj));\n s.setUsada(true);\n s.setEsMutable(false);\n s.setEspuntero(true);\n s.setTipoVar(val_peek(5).sval);\n /* faltaria mutabilidad de lo apuntado*/\n }\n if (!((Symbol)(val_peek(0).obj)).isUsada()){\n yyerror(\"La variable no esta definida, &ID \",val_peek(6).getFila(),val_peek(6).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(0).obj));\n Symbol sy = ((Symbol)(val_peek(3).obj));\n if (s.isEsPuntero())\n yyerror(\"No se permiten punteros multiples \",val_peek(6).getFila(),val_peek(6).getColumna());\n }\n Terceto t = new T_Asignacion(contadorTerceto,\"&\",val_peek(3).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(6).getFila(),val_peek(6).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(6);\n yyval.obj = t;\n estructuras.add(\"Asignacion de puntero \"+\" fila \"+val_peek(6).getFila()+\" columna \"+val_peek(6).getColumna());}\n break;\n case 37:\n//#line 246 \"GramaticaGrupo8.y\"\n {/*Estoy definiendo una variable*/\n if (((Symbol)(val_peek(2).obj)).isUsada()){\n yyerror(\"La variable ya esta definida \",val_peek(4).getFila(),val_peek(4).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(2).obj));\n s.setUsada(true);\n s.setEsMutable(false);\n s.setEspuntero(false);\n s.setTipoVar(val_peek(3).sval);\n /* faltaria mutabilidad de lo apuntado }*/\n Terceto t = new T_Asignacion(contadorTerceto,\":=\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(4).getFila(),val_peek(4).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(4);\n yyval.obj = t;\n }\n estructuras.add(\"Asignacion \"+\" fila \"+val_peek(4).getFila()+\" columna \"+val_peek(4).getColumna());}\n break;\n case 38:\n//#line 269 \"GramaticaGrupo8.y\"\n {yyerror(\"Falta elemento de asignacion y palabra reservada 'let'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 39:\n//#line 270 \"GramaticaGrupo8.y\"\n {yyerror(\"Falta elemento de asignacion \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 40:\n//#line 271 \"GramaticaGrupo8.y\"\n {yyerror(\"no se encontro ':=' \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 41:\n//#line 274 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Expresion print \"+\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());\n Terceto t = new T_Print(contadorTerceto,\"PRINT\",val_peek(1).obj,\"\",st);\n // t.setVariableAux(contadorVarAux); //un print no tiene resultado por ende no tiene tipo*/\n //contadorVarAux++; // creo que para los print no es necesario porque los aux son para el resultado*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(3).getFila(),val_peek(3).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(3);\n yyval.obj = t;\n }\n break;\n case 42:\n//#line 287 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea Error en la construccion del print\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 43:\n//#line 290 \"GramaticaGrupo8.y\"\n {}\n break;\n case 44:\n//#line 291 \"GramaticaGrupo8.y\"\n {}\n break;\n case 45:\n//#line 295 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia IF Else\" +\" fila \"+val_peek(5).getFila()+\" columna \"+val_peek(5).getColumna());\n\n /*Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);*/\n }\n break;\n case 46:\n//#line 296 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia IF \" +\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());}\n break;\n case 47:\n//#line 297 \"GramaticaGrupo8.y\"\n {yyerror(\" falta la palabra reservada IF\",val_peek(3).getFila(),val_peek(3).getColumna());}\n break;\n case 48:\n//#line 298 \"GramaticaGrupo8.y\"\n {yyerror(\" Error en la construccion de la sentencia IF \",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 49:\n//#line 299 \"GramaticaGrupo8.y\"\n {yyerror(\" Falta la palabra reservada ELSE \",val_peek(3).getFila(),val_peek(3).getColumna());}\n break;\n case 50:\n//#line 302 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia Loop \" +\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());}\n break;\n case 51:\n//#line 303 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea Falta palabra reservada UNTIL\",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 52:\n//#line 306 \"GramaticaGrupo8.y\"\n {}\n break;\n case 53:\n//#line 307 \"GramaticaGrupo8.y\"\n {}\n break;\n case 54:\n//#line 308 \"GramaticaGrupo8.y\"\n {yyerror(\"LInea Omision de la palabra reservada '{' \",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 55:\n//#line 311 \"GramaticaGrupo8.y\"\n {/*#### unica forma de marcar donde comienza el loop y ver donde salto (no diferenciamos bloque de loop)*/\n p.push(contadorTerceto);\n intLoop = contadorTerceto;\n Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n\n listaTercetos.add(t);\n contadorTerceto ++;\n }\n break;\n case 56:\n//#line 316 \"GramaticaGrupo8.y\"\n {/*#### aca hacemos el salto incondicional, debimos inventar este no terminal porque no diferenciamos bloque else de bloque if*/\n /*aca ya hicimos el pop cuando termino el cuerpo del if*/\n Terceto t = new T_BI(contadorTerceto,\"BI\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);\n Integer i = p.pop();\n if (listaTercetos.get(i).getOperador() == \"BF\")\n listaTercetos.get(i).setOperando2(contadorTerceto);\n else\n listaTercetos.get(i).setOperando1(contadorTerceto);\n p.push(contadorTerceto-1);\n /*podriamos hacer un terceto fin aca que sea a donde apunte el salto, este terceto no haria nada solo funcionaria de label del salto*/\n System.out.println(t.toString());\n yyval=val_peek(0);\n yyval.obj = t;\n }\n break;\n case 57:\n//#line 334 \"GramaticaGrupo8.y\"\n { /*#### aca hacemos lo del salto para no repetirlo en todas las condiciones*/\n p.push(contadorTerceto);\n Terceto t = new T_BF(contadorTerceto,\"BF\",val_peek(1).obj,\"trampita\",st);/*##use trampita por las dudas, ya por deporte, no parece que sea necesario*/\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n\n }\n break;\n case 58:\n//#line 345 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\">\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 59:\n//#line 358 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"<\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 60:\n//#line 370 \"GramaticaGrupo8.y\"\n { Terceto t = new T_Comparador(contadorTerceto,\"=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 61:\n//#line 381 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"!=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 62:\n//#line 393 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\">=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 63:\n//#line 405 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"<=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 64:\n//#line 417 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '>'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 65:\n//#line 418 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '<'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 66:\n//#line 419 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '>='\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 67:\n//#line 420 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '<='\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n//#line 1102 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n StringReader stringReader0 = new StringReader(\"pZhZ$;yY23j:\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 121, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo((-1));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -1. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "protected static void reportParseError(int expectedToken, int otherExpectedToken, int anotherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 533 */ if (LogSupport.isLoggable()) {\n/* 534 */ LogSupport.log(\"PARSE ERROR: Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }", "protected void error(int line, int column, @Nonnull String msg)\r\n throws LexerException {\r\n if (listener != null)\r\n listener.handleError(source, line, column, msg);\r\n //else\r\n // throw new LexerException(\"Error at \" + line + \":\" + column + \": \" + msg);\r\n }", "private static void fail(String filename, String errMsg, Module_itemContext itemCon)\n\t\t\tthrows UnsupportedGrammerException {\n\n\t\tInterval int1 = itemCon.getSourceInterval(); // get token interval\n\n\t\tToken firstToken = tokenStream.get(int1.a);\n\n\t\tint lineNum = firstToken.getLine(); // get line of first token\n\n\t\t// Determining j, first token in int1 which occurs at a different line\n\n\t\tint j;\n\n\t\tfor (j = int1.a; j < int1.b; j++) {\n\n\t\t\tif (tokenStream.get(j).getLine() != lineNum)\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// form a string from tokens 1 through j-1\n\n\t\tString tokenStr = tokenStream.getText(new Interval(int1.a, j));\n\n\t\tSystem.err.printf(\"Parser error (%s:%d): %s\\n\", filename, lineNum, tokenStr);\n\n\t\tfail(errMsg);\n\n\t}", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "void cannotRecognize(Term token);", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return lexer.nextToken(); \n }", "@FormatMethod\n private void reportError(ParseTree parseTree, @FormatString String message, Object... arguments) {\n if (parseTree == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(parseTree.location.start, message, arguments);\n }\n }", "void yylexdebug(int state,int ch)\r\n{\r\nString s=null;\r\n if (ch < 0) ch=0;\r\n if (ch <= YYMAXTOKEN) //check index bounds\r\n s = yyname[ch]; //now get it\r\n if (s==null)\r\n s = \"illegal-symbol\";\r\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\r\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 63 \"./sinj.y\"\n{ this.ast = new Program (lexico.getLine(), lexico.getColumn(), (List<Sentence>)val_peek(1), (List<Definition>)val_peek(8),(List<VariableDefinition>)val_peek(2) ); }\nbreak;\ncase 2:\n//#line 66 \"./sinj.y\"\n{ yyval = new ArrayList<Definition>(); }\nbreak;\ncase 3:\n//#line 67 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1);\n\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Definition> )yyval).addAll((ArrayList<Definition>)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 6:\n//#line 78 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\tTypeFunction type = new TypeFunction ((Type)val_peek(8), (ArrayList<VariableDefinition>) val_peek(5));\n\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> body = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\tbody.addAll((List<Sentence>)val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\tbody.addAll((List<Sentence>)val_peek(1));\n\t\t\t\t\t\t\t\t\t\t\t\tDefinition def = new FunctionDefinition (lexico.getLine(), lexico.getColumn(), type, (String) val_peek(7), body);\n\t\t\t\t\t\t\t\t\t\t\t\tList<Definition> xx = new ArrayList<Definition> ();\n\t\t\t\t\t\t\t\t\t\t\t\txx.add(def);\n\t\t\t\t\t\t\t\t\t\t\t\tyyval = xx;\n }\nbreak;\ncase 7:\n//#line 89 \"./sinj.y\"\n{ yyval = new ArrayList<VariableDefinition> (); }\nbreak;\ncase 9:\n//#line 93 \"./sinj.y\"\n{ \n\t\t\t\t\t\tyyval = new ArrayList<VariableDefinition>();\n\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString());\n\t\t\t\t\t\t((ArrayList<Definition>)yyval).add(new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(1)));\n\t\t\t\t\t}\nbreak;\ncase 10:\n//#line 98 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\tyyval = val_peek(3);\n\t\t\t\t\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString());\n\t\t\t\t\t\t\t\t\t\tVariableDefinition vd = new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(1));\n\t\t\t\t\t\t\t\t\t\tif (!((ArrayList<VariableDefinition>)yyval).contains (vd))\n\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Definition>) yyval).add(vd);\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException (\"One param is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 11:\n//#line 111 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<VariableDefinition> xx = new ArrayList<VariableDefinition>();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (Variable v: (ArrayList<Variable>)val_peek(1)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t \txx.add(new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(2))); \n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = xx; \n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 12:\n//#line 123 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\tList<Variable> xx = new ArrayList<Variable>(); \n\t\t\t\t\t\t\t\txx.add(new Variable (lexico.getLine(), lexico.getColumn(), (String) val_peek(0))); \n\t\t\t\t\t\t\t\tyyval = xx; \n\t\t\t\t\t\t\t\t}\nbreak;\ncase 13:\n//#line 128 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(2); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), (String)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!((ArrayList<Variable>)yyval).contains(v))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Variable>)yyval).add(v); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException (\"One variable is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 14:\n//#line 144 \"./sinj.y\"\n{ yyval = new ArrayList<VariableDefinition> ();}\nbreak;\ncase 15:\n//#line 145 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (VariableDefinition vd: (ArrayList<VariableDefinition>)val_peek(0)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!((ArrayList<VariableDefinition>)yyval).contains(vd))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<VariableDefinition>)yyval).add(vd); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException(\"One field struct is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 16:\n//#line 156 \"./sinj.y\"\n{yyval = new ArrayList<Sentence> (); }\nbreak;\ncase 17:\n//#line 157 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1);\n\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Sentence>)yyval).add((Sentence)val_peek(0)); \n\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 18:\n//#line 163 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\tyyval = new ArrayList<Expression>();\n\t\t\t\t\t\t\t((ArrayList<Expression>)yyval).add((Expression)val_peek(0)); \n\t\t\t\t\t\t\t}\nbreak;\ncase 19:\n//#line 167 \"./sinj.y\"\n{\n\t\t\t\t\t \t\t\t\t\t\t\tyyval = val_peek(2);\n\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Expression>)yyval).add((Expression)val_peek(0)); \n\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 20:\n//#line 174 \"./sinj.y\"\n{ yyval = new ArrayList<Expression> (); }\nbreak;\ncase 29:\n//#line 187 \"./sinj.y\"\n{yyval = new Write(lexico.getLine(), lexico.getColumn(), (List<Expression>)val_peek(1)); }\nbreak;\ncase 30:\n//#line 188 \"./sinj.y\"\n{ yyval = new Read(lexico.getLine(), lexico.getColumn(), (List<Expression>)val_peek(1)); }\nbreak;\ncase 31:\n//#line 189 \"./sinj.y\"\n{ yyval = new Assign(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(3), (Expression)val_peek(1)); }\nbreak;\ncase 32:\n//#line 190 \"./sinj.y\"\n{ yyval = new Invocation (lexico.getLine(), lexico.getColumn(), (String) val_peek(4), (List<Expression>)val_peek(2)); }\nbreak;\ncase 33:\n//#line 191 \"./sinj.y\"\n{ yyval = new Return (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(1)); }\nbreak;\ncase 34:\n//#line 192 \"./sinj.y\"\n{ yyval = new While (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(4), (List<Sentence>) val_peek(1)); }\nbreak;\ncase 35:\n//#line 195 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\tifBody.add((Sentence) val_peek(0));\n\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), ifBody, new ArrayList<Sentence>());\n\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 36:\n//#line 200 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.add((Sentence) val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.add((Sentence)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(4), ifBody, elseBody);\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 37:\n//#line 207 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(4));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.add((Sentence)val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(6), ifBody, elseBody);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 38:\n//#line 215 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(6));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.addAll((List<Sentence>)val_peek(4));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(8), ifBody, elseBody);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 39:\n//#line 223 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(4), ifBody, elseBody);\n\t}\nbreak;\ncase 40:\n//#line 234 \"./sinj.y\"\n{ yyval = new TypeInteger(); }\nbreak;\ncase 41:\n//#line 235 \"./sinj.y\"\n{ yyval = new TypeDouble(); }\nbreak;\ncase 42:\n//#line 236 \"./sinj.y\"\n{ yyval = new TypeChar(); }\nbreak;\ncase 43:\n//#line 237 \"./sinj.y\"\n{ yyval = createArray((Type)val_peek(3), Integer.parseInt(String.valueOf((val_peek(1)))));/*$$ = new TypeArray((Type)$1, Integer.parseInt(String.valueOf(($3))));*/ }\nbreak;\ncase 44:\n//#line 238 \"./sinj.y\"\n{ yyval = new TypeVoid (); }\nbreak;\ncase 45:\n//#line 239 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\tList <VariableDefinition> variables = (ArrayList<VariableDefinition>) val_peek(1);\n\t\t\t\t\t\t\tList <FieldDefinition> fieldsStruct = new ArrayList<FieldDefinition> ();\n\t\t\t\t\t\t\tfor (VariableDefinition vd : variables) {\n\t\t\t\t\t\t\t\tFieldDefinition field = new FieldDefinition (vd.getLine(), vd.getColumn(), vd.getType(), vd.getVariable());\n\t\t\t\t\t\t\t\tfieldsStruct.add(field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tyyval = new TypeStruct (fieldsStruct);\n\t\t\t\t\t\t\t}\nbreak;\ncase 46:\n//#line 253 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 47:\n//#line 254 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 48:\n//#line 255 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 49:\n//#line 256 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 50:\n//#line 257 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 51:\n//#line 258 \"./sinj.y\"\n{ yyval= new AccesoArray(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(3), (Expression)val_peek(1)); }\nbreak;\ncase 52:\n//#line 259 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 53:\n//#line 260 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 54:\n//#line 261 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 55:\n//#line 262 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 56:\n//#line 263 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 57:\n//#line 264 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 58:\n//#line 265 \"./sinj.y\"\n{ yyval = new Logic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 59:\n//#line 266 \"./sinj.y\"\n{ yyval = new Logic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 60:\n//#line 267 \"./sinj.y\"\n{ yyval= new UnaryNegation (lexico.getLine(), lexico.getColumn(), (Expression)val_peek(0)); }\nbreak;\ncase 61:\n//#line 268 \"./sinj.y\"\n{ yyval= new Literal (lexico.getLine(), lexico.getColumn(), (Integer) val_peek(0)); }\nbreak;\ncase 62:\n//#line 269 \"./sinj.y\"\n{ yyval = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()); }\nbreak;\ncase 63:\n//#line 270 \"./sinj.y\"\n{ yyval= new RealNumber (lexico.getLine(), lexico.getColumn(), (Double) val_peek(0)); }\nbreak;\ncase 64:\n//#line 271 \"./sinj.y\"\n{ yyval= val_peek(1);}\nbreak;\ncase 65:\n//#line 272 \"./sinj.y\"\n{ yyval = new FieldAccess (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()));}\nbreak;\ncase 66:\n//#line 273 \"./sinj.y\"\n{ yyval = new FunctionInvocation (lexico.getLine(), lexico.getColumn(), (String) val_peek(3), (List<Expression>)val_peek(1)); }\nbreak;\ncase 67:\n//#line 274 \"./sinj.y\"\n{ yyval = new Cast (lexico.getLine(), lexico.getColumn(), (Type) val_peek(2), (Expression) val_peek(0)); }\nbreak;\ncase 68:\n//#line 275 \"./sinj.y\"\n{ yyval = new LogicalNegation (lexico.getLine(), lexico.getColumn(), (Expression)val_peek(0)); }\nbreak;\ncase 69:\n//#line 276 \"./sinj.y\"\n{ yyval = new Char (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()); }\nbreak;\n//#line 1070 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 36 \"src/parsers/AdvConditionParser.y\"\n{\r\n\ttopAdvCondition=(AdvCondition)val_peek(0).obj;\r\n\tSystem.out.println(\"AdvConditionParser work completed. \"); \r\n}\nbreak;\ncase 2:\n//#line 42 \"src/parsers/AdvConditionParser.y\"\n{Expression e=new tokens.Number(val_peek(0).ival);yyval=new AdvConditionParserVal(e);}\nbreak;\ncase 3:\n//#line 43 \"src/parsers/AdvConditionParser.y\"\n{Expression e=new Variable(getStringValue(val_peek(0)));yyval=new AdvConditionParserVal(e);}\nbreak;\ncase 4:\n//#line 45 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_PLUS);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 5:\n//#line 50 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_MINUS);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 6:\n//#line 55 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_MULTIPLY);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 7:\n//#line 61 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new NegativeExpression((Expression)val_peek(0).obj);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 8:\n//#line 67 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tyyval=val_peek(1);\r\n }\nbreak;\ncase 9:\n//#line 72 \"src/parsers/AdvConditionParser.y\"\n{yyval=new AdvConditionParserVal(new AdvCondition((Condition)val_peek(0).obj));}\nbreak;\ncase 10:\n//#line 74 \"src/parsers/AdvConditionParser.y\"\n{\r\n yyval=new AdvConditionParserVal(new AdvCondition((AdvCondition)val_peek(3).obj,(AdvCondition)val_peek(0).obj,AdvCondition.Type_AND)); \r\n}\nbreak;\ncase 11:\n//#line 79 \"src/parsers/AdvConditionParser.y\"\n{\r\n yyval=new AdvConditionParserVal(new AdvCondition((AdvCondition)val_peek(3).obj,(AdvCondition)val_peek(0).obj,AdvCondition.Type_OR));\r\n}\nbreak;\ncase 12:\n//#line 84 \"src/parsers/AdvConditionParser.y\"\n{yyval=val_peek(1);}\nbreak;\ncase 13:\n//#line 88 \"src/parsers/AdvConditionParser.y\"\n{yyval=val_peek(0);((AdvCondition)yyval.obj).negateSelf();}\nbreak;\ncase 14:\n//#line 91 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equal);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 15:\n//#line 96 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.notequal);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 16:\n//#line 101 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equalsmaller);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 17:\n//#line 106 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equallarger);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 18:\n//#line 111 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,ConType.smaller);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 19:\n//#line 116 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,ConType.larger);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\n//#line 689 \"AdvConditionParser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n //if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n //if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n //if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n //if (yychar < 0) //it it didn't work/error\n // {\n // yychar = 0; //change it to default string (no -1!)\n //if (yydebug)\n // yylexdebug(yystate,yychar);\n // }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n //if (yydebug)\n //debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n //if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0 || valptr<0) //check for under & overflow here\n {\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n //if (yydebug)\n //debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n //if (yydebug)\n //debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0 || valptr<0) //check for under & overflow here\n {\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n //if (yydebug)\n //{\n //yys = null;\n //if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n //if (yys == null) yys = \"illegal-symbol\";\n //debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n //}\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n //if (yydebug)\n //debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n if (reduceListener == null || reduceListener.onReduce(yyrule[yyn])) // if intercepted!\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 61 \"Parser.y\"\n{\n\t\t\t\t\t\ttree = new Tree.TopLevel(val_peek(0).clist, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 2:\n//#line 67 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.clist.add(val_peek(0).cdef);\n\t\t\t\t\t}\nbreak;\ncase 3:\n//#line 71 \"Parser.y\"\n{\n \t\tyyval.clist = new ArrayList<Tree.ClassDef>();\n \t\tyyval.clist.add(val_peek(0).cdef);\n \t}\nbreak;\ncase 5:\n//#line 81 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.vdef = new Tree.VarDef(val_peek(0).ident, val_peek(1).type, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 6:\n//#line 87 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.type = new Tree.TypeIdent(Tree.INT, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 7:\n//#line 91 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.VOID, val_peek(0).loc);\n \t}\nbreak;\ncase 8:\n//#line 95 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.BOOL, val_peek(0).loc);\n \t}\nbreak;\ncase 9:\n//#line 99 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.STRING, val_peek(0).loc);\n \t}\nbreak;\ncase 10:\n//#line 103 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeClass(val_peek(0).ident, val_peek(1).loc);\n \t}\nbreak;\ncase 11:\n//#line 107 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeArray(val_peek(2).type, val_peek(2).loc);\n \t}\nbreak;\ncase 12:\n//#line 113 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc,false);\n\t\t\t\t\t}\nbreak;\ncase 13:\n//#line 117 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc,true);\n\t\t\t\t\t}\nbreak;\ncase 14:\n//#line 123 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.ident = val_peek(0).ident;\n\t\t\t\t\t}\nbreak;\ncase 15:\n//#line 127 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 16:\n//#line 133 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).vdef);\n\t\t\t\t\t}\nbreak;\ncase 17:\n//#line 137 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).fdef);\n\t\t\t\t\t}\nbreak;\ncase 18:\n//#line 141 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.flist = new ArrayList<Tree>();\n \t}\nbreak;\ncase 20:\n//#line 149 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>(); \n \t}\nbreak;\ncase 21:\n//#line 156 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\n\t\t\t\t\t}\nbreak;\ncase 22:\n//#line 160 \"Parser.y\"\n{\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>();\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\n \t}\nbreak;\ncase 23:\n//#line 167 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.fdef = new MethodDef(true, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 24:\n//#line 171 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.fdef = new MethodDef(false, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 25:\n//#line 177 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Block(val_peek(1).slist, val_peek(2).loc);\n\t\t\t\t\t}\nbreak;\ncase 26:\n//#line 183 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\n\t\t\t\t\t}\nbreak;\ncase 27:\n//#line 187 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.slist = new ArrayList<Tree>();\n \t}\nbreak;\ncase 28:\n//#line 194 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = val_peek(0).vdef;\n\t\t\t\t\t}\nbreak;\ncase 29:\n//#line 199 \"Parser.y\"\n{\n \t\tif (yyval.stmt == null) {\n \t\t\tyyval.stmt = new Tree.Skip(val_peek(0).loc);\n \t\t}\n \t}\nbreak;\ncase 40:\n//#line 217 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Foreach(val_peek(6).bvar,val_peek(4).expr,val_peek(2).expr,val_peek(0).stmt, val_peek(6).loc);\n\t\t\t\t\t}\nbreak;\ncase 41:\n//#line 221 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Foreach(val_peek(4).bvar,val_peek(2).expr,val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 42:\n//#line 227 \"Parser.y\"\n{\n\t\t\t\t\tyyval.bvar = new Tree.BoundVariable(val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 43:\n//#line 231 \"Parser.y\"\n{\n\t\t\t\t\tyyval.bvar = new Tree.BoundVariable(val_peek(1).type,val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 44:\n//#line 236 \"Parser.y\"\n{\n\t\t\t\t\tyyval.stmt = new Tree.GuardedStmt(val_peek(1).elist, val_peek(1).loc);\n\t\t\t\t}\nbreak;\ncase 45:\n//#line 241 \"Parser.y\"\n{\n\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 46:\n//#line 246 \"Parser.y\"\n{\n yyval = new SemValue();\n yyval.elist = new ArrayList<Expr> ();\n yyval.elist.add(val_peek(0).expr);\n }\nbreak;\ncase 47:\n//#line 252 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 48:\n//#line 258 \"Parser.y\"\n{\n\t\t\t\t\tyyval.expr = new Tree.IfBranch(val_peek(2).expr, val_peek(0).stmt, val_peek(2).loc);\t\t\t\t\n\t\t\t\t}\nbreak;\ncase 49:\n//#line 263 \"Parser.y\"\n{\n\t\t\t\t\tyyval.stmt = new Scopy(val_peek(3).ident,val_peek(1).expr,val_peek(5).loc);\t\n\t\t\t\t}\nbreak;\ncase 50:\n//#line 269 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Assign(val_peek(2).lvalue, val_peek(0).expr, val_peek(1).loc);\n\t\t\t\t\t}\nbreak;\ncase 51:\n//#line 273 \"Parser.y\"\n{\n \t\tyyval.stmt = new Tree.Exec(val_peek(0).expr, val_peek(0).loc);\n \t}\nbreak;\ncase 52:\n//#line 277 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 54:\n//#line 284 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 55:\n//#line 290 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.lvalue = new Tree.Ident(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\nbreak;\ncase 56:\n//#line 297 \"Parser.y\"\n{\n \t\tyyval.lvalue = new Tree.Indexed(val_peek(3).expr, val_peek(1).expr, val_peek(3).loc);\n \t}\nbreak;\ncase 58:\n//#line 304 \"Parser.y\"\n{\n \tyyval.lvalue = new Tree.Var(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\n\t\t\t\t\t\t}\n }\nbreak;\ncase 59:\n//#line 313 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Tree.CallExpr(val_peek(4).expr, val_peek(3).ident, val_peek(1).elist, val_peek(3).loc);\n\t\t\t\t\t\tif (val_peek(4).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(3).loc;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\nbreak;\ncase 60:\n//#line 322 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = val_peek(0).lvalue;\n\t\t\t\t\t}\nbreak;\ncase 63:\n//#line 328 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.PLUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 64:\n//#line 332 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MINUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 65:\n//#line 336 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MUL, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 66:\n//#line 340 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.DIV, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 67:\n//#line 344 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MOD, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 68:\n//#line 348 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.EQ, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 69:\n//#line 352 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.NE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 70:\n//#line 356 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.LT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 71:\n//#line 360 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.GT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 72:\n//#line 364 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.LE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 73:\n//#line 368 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.GE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 74:\n//#line 372 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.AND, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 75:\n//#line 376 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.OR, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 76:\n//#line 380 \"Parser.y\"\n{\n \t\tyyval = val_peek(1);\n \t}\nbreak;\ncase 77:\n//#line 384 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Unary(Tree.NEG, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 78:\n//#line 388 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Unary(Tree.NOT, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 79:\n//#line 392 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ReadIntExpr(val_peek(2).loc);\n \t}\nbreak;\ncase 80:\n//#line 396 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ReadLineExpr(val_peek(2).loc);\n \t}\nbreak;\ncase 81:\n//#line 400 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ThisExpr(val_peek(0).loc);\n \t}\nbreak;\ncase 82:\n//#line 404 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.NewClass(val_peek(2).ident, val_peek(3).loc);\n \t}\nbreak;\ncase 83:\n//#line 408 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.NewArray(val_peek(3).type, val_peek(1).expr, val_peek(4).loc);\n \t}\nbreak;\ncase 84:\n//#line 412 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.TypeTest(val_peek(3).expr, val_peek(1).ident, val_peek(5).loc);\n \t}\nbreak;\ncase 85:\n//#line 416 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.TypeCast(val_peek(2).ident, val_peek(0).expr, val_peek(0).loc);\n \t}\nbreak;\ncase 86:\n//#line 420 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayRepeat(val_peek(2).expr, val_peek(0).expr, val_peek(2).loc);\n \t}\nbreak;\ncase 87:\n//#line 424 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayAdd(val_peek(2).expr, val_peek(0).expr, val_peek(2).loc);\n\t }\nbreak;\ncase 88:\n//#line 428 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.subArray(val_peek(5).expr, val_peek(3).expr,val_peek(1).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 89:\n//#line 432 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayDefault(val_peek(5).expr, val_peek(3).expr,val_peek(0).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 90:\n//#line 436 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayPython(val_peek(5).expr, val_peek(3).ident,val_peek(1).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 91:\n//#line 440 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayPython(val_peek(7).expr, val_peek(5).ident,val_peek(3).expr,val_peek(1).expr,val_peek(7).loc);\n\t \t}\nbreak;\ncase 92:\n//#line 446 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Tree.Literal(val_peek(0).typeTag, val_peek(0).literal, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 93:\n//#line 450 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Null(val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 94:\n//#line 454 \"Parser.y\"\n{\n\t\t\t\t\n\t\t\t\t\t\tyyval.expr = new Tree.ListConst(val_peek(1).elist, val_peek(1).loc);\n\t\t\t\t}\nbreak;\ncase 95:\n//#line 461 \"Parser.y\"\n{\n\t\t\t\t\tyyval = new SemValue();\n yyval.elist = new ArrayList<Expr> ();\n yyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 96:\n//#line 467 \"Parser.y\"\n{\n\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 97:\n//#line 471 \"Parser.y\"\n{\n\t\t\t\t\tyyval = new SemValue();\n\t\t\t\t}\nbreak;\ncase 99:\n//#line 479 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\n \t}\nbreak;\ncase 100:\n//#line 486 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t\t}\nbreak;\ncase 101:\n//#line 490 \"Parser.y\"\n{\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n \t}\nbreak;\ncase 102:\n//#line 497 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.WhileLoop(val_peek(2).expr, val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 103:\n//#line 503 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.ForLoop(val_peek(6).stmt, val_peek(4).expr, val_peek(2).stmt, val_peek(0).stmt, val_peek(8).loc);\n\t\t\t\t\t}\nbreak;\ncase 104:\n//#line 509 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Break(val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 105:\n//#line 515 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.If(val_peek(3).expr, val_peek(1).stmt, val_peek(0).stmt, val_peek(5).loc);\n\t\t\t\t\t}\nbreak;\ncase 106:\n//#line 521 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = val_peek(0).stmt;\n\t\t\t\t\t}\nbreak;\ncase 107:\n//#line 525 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval = new SemValue();\n\t\t\t\t\t}\nbreak;\ncase 108:\n//#line 531 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Return(val_peek(0).expr, val_peek(1).loc);\n\t\t\t\t\t}\nbreak;\ncase 109:\n//#line 535 \"Parser.y\"\n{\n \t\tyyval.stmt = new Tree.Return(null, val_peek(0).loc);\n \t}\nbreak;\ncase 110:\n//#line 541 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Print(val_peek(1).elist, val_peek(3).loc);\n\t\t\t\t\t}\nbreak;\n//#line 1539 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n //if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n //if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n //if (yychar<0) yychar=0; //clean, if necessary\n //if (yydebug)\n //yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n //if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-796));\n // Undeclared exception!\n try { \n xPathLexer0.number();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "int yyparse()\r\n{\r\nboolean doaction;\r\n init_stacks();\r\n yynerrs = 0;\r\n yyerrflag = 0;\r\n yychar = -1; //impossible char forces a read\r\n yystate=0; //initial state\r\n state_push(yystate); //save it\r\n while (true) //until parsing is done, either correctly, or w/error\r\n {\r\n doaction=true;\r\n //if (yydebug) debug(\"loop\"); \r\n //#### NEXT ACTION (from reduction table)\r\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\r\n {\r\n //if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\r\n if (yychar < 0) //we want a char?\r\n {\r\n yychar = yylex(); //get next token\r\n //if (yydebug) debug(\" next yychar:\"+yychar);\r\n //#### ERROR CHECK ####\r\n //if (yychar < 0) //it it didn't work/error\r\n // {\r\n // yychar = 0; //change it to default string (no -1!)\r\n //if (yydebug)\r\n // yylexdebug(yystate,yychar);\r\n // }\r\n }//yychar<0\r\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\r\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\r\n {\r\n //if (yydebug)\r\n //debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\r\n //#### NEXT STATE ####\r\n yystate = yytable[yyn];//we are in a new state\r\n state_push(yystate); //save it\r\n val_push(yylval); //push our lval as the input for next rule\r\n yychar = -1; //since we have 'eaten' a token, say we need another\r\n if (yyerrflag > 0) //have we recovered an error?\r\n --yyerrflag; //give ourselves credit\r\n doaction=false; //but don't process yet\r\n break; //quit the yyn=0 loop\r\n }\r\n\r\n yyn = yyrindex[yystate]; //reduce\r\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\r\n { //we reduced!\r\n //if (yydebug) debug(\"reduce\");\r\n yyn = yytable[yyn];\r\n doaction=true; //get ready to execute\r\n break; //drop down to actions\r\n }\r\n else //ERROR RECOVERY\r\n {\r\n if (yyerrflag==0)\r\n {\r\n yyerror(\"syntax error\");\r\n yynerrs++;\r\n }\r\n if (yyerrflag < 3) //low error count?\r\n {\r\n yyerrflag = 3;\r\n while (true) //do until break\r\n {\r\n if (stateptr<0 || valptr<0) //check for under & overflow here\r\n {\r\n return 1;\r\n }\r\n yyn = yysindex[state_peek(0)];\r\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\r\n {\r\n //if (yydebug)\r\n //debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\r\n yystate = yytable[yyn];\r\n state_push(yystate);\r\n val_push(yylval);\r\n doaction=false;\r\n break;\r\n }\r\n else\r\n {\r\n //if (yydebug)\r\n //debug(\"error recovery discarding state \"+state_peek(0)+\" \");\r\n if (stateptr<0 || valptr<0) //check for under & overflow here\r\n {\r\n return 1;\r\n }\r\n state_pop();\r\n val_pop();\r\n }\r\n }\r\n }\r\n else //discard this token\r\n {\r\n if (yychar == 0)\r\n return 1; //yyabort\r\n //if (yydebug)\r\n //{\r\n //yys = null;\r\n //if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\r\n //if (yys == null) yys = \"illegal-symbol\";\r\n //debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\r\n //}\r\n yychar = -1; //read another\r\n }\r\n }//end error recovery\r\n }//yyn=0 loop\r\n if (!doaction) //any reason not to proceed?\r\n continue; //skip action\r\n yym = yylen[yyn]; //get count of terminals on rhs\r\n //if (yydebug)\r\n //debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\r\n if (yym>0) //if count of rhs not 'nil'\r\n yyval = val_peek(yym-1); //get current semantic value\r\n if (reduceListener == null || reduceListener.onReduce(yyrule[yyn])) // if intercepted!\r\n switch(yyn)\r\n {\r\n//########## USER-SUPPLIED ACTIONS ##########\r\ncase 1:\r\n//#line 59 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\ttree = new Tree.TopLevel(val_peek(0).clist, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 2:\r\n//#line 65 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.clist.add(val_peek(0).cdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 3:\r\n//#line 69 \"Parser.y\"\r\n{\r\n \t\tyyval.clist = new ArrayList<Tree.ClassDef>();\r\n \t\tyyval.clist.add(val_peek(0).cdef);\r\n \t}\r\nbreak;\r\ncase 5:\r\n//#line 79 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.vdef = new Tree.VarDef(val_peek(0).ident, val_peek(1).type, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 6:\r\n//#line 85 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.type = new Tree.TypeIdent(Tree.INT, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 7:\r\n//#line 89 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.VOID, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 8:\r\n//#line 93 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.BOOL, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 9:\r\n//#line 97 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.STRING, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 10:\r\n//#line 101 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeClass(val_peek(0).ident, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 11:\r\n//#line 105 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeArray(val_peek(2).type, val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 12:\r\n//#line 111 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 13:\r\n//#line 117 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.ident = val_peek(0).ident;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 14:\r\n//#line 121 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 15:\r\n//#line 127 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).vdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 16:\r\n//#line 131 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).fdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 17:\r\n//#line 135 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.flist = new ArrayList<Tree>();\r\n \t}\r\nbreak;\r\ncase 19:\r\n//#line 143 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>(); \r\n \t}\r\nbreak;\r\ncase 20:\r\n//#line 150 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 21:\r\n//#line 154 \"Parser.y\"\r\n{\r\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>();\r\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\r\n \t}\r\nbreak;\r\ncase 22:\r\n//#line 161 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.fdef = new MethodDef(true, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 23:\r\n//#line 165 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.fdef = new MethodDef(false, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 24:\r\n//#line 171 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Block(val_peek(1).slist, val_peek(2).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 25:\r\n//#line 177 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 26:\r\n//#line 181 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.slist = new ArrayList<Tree>();\r\n \t}\r\nbreak;\r\ncase 27:\r\n//#line 188 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = val_peek(0).vdef;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 28:\r\n//#line 193 \"Parser.y\"\r\n{\r\n \t\tif (yyval.stmt == null) {\r\n \t\t\tyyval.stmt = new Tree.Skip(val_peek(0).loc);\r\n \t\t}\r\n \t}\r\nbreak;\r\ncase 39:\r\n//#line 211 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Assign(val_peek(2).lvalue, val_peek(0).expr, val_peek(1).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 40:\r\n//#line 215 \"Parser.y\"\r\n{\r\n \t\tyyval.stmt = new Tree.Exec(val_peek(0).expr, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 41:\r\n//#line 219 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 43:\r\n//#line 226 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 44:\r\n//#line 232 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.lvalue = new Tree.Ident(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\r\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\r\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 45:\r\n//#line 239 \"Parser.y\"\r\n{\r\n \t\tyyval.lvalue = new Tree.Indexed(val_peek(3).expr, val_peek(1).expr, val_peek(3).loc);\r\n \t}\r\nbreak;\r\ncase 46:\r\n//#line 245 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Tree.CallExpr(val_peek(4).expr, val_peek(3).ident, val_peek(1).elist, val_peek(3).loc);\r\n\t\t\t\t\t\tif (val_peek(4).loc == null) {\r\n\t\t\t\t\t\t\tyyval.loc = val_peek(3).loc;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 47:\r\n//#line 254 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = val_peek(0).lvalue;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 50:\r\n//#line 260 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.PLUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 51:\r\n//#line 264 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MINUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 52:\r\n//#line 268 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MUL, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 53:\r\n//#line 272 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.DIV, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 54:\r\n//#line 276 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MOD, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 55:\r\n//#line 280 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.EQ, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 56:\r\n//#line 284 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.NE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 57:\r\n//#line 288 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.LT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 58:\r\n//#line 292 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.GT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 59:\r\n//#line 296 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.LE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 60:\r\n//#line 300 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.GE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 61:\r\n//#line 304 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.AND, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 62:\r\n//#line 308 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.OR, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 63:\r\n//#line 312 \"Parser.y\"\r\n{\r\n \t\tyyval = val_peek(1);\r\n \t}\r\nbreak;\r\ncase 64:\r\n//#line 316 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Unary(Tree.NEG, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 65:\r\n//#line 320 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Unary(Tree.NOT, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 66:\r\n//#line 324 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ReadIntExpr(val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 67:\r\n//#line 328 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ReadLineExpr(val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 68:\r\n//#line 332 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ThisExpr(val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 69:\r\n//#line 336 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.NewClass(val_peek(2).ident, val_peek(3).loc);\r\n \t}\r\nbreak;\r\ncase 70:\r\n//#line 340 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.NewArray(val_peek(3).type, val_peek(1).expr, val_peek(4).loc);\r\n \t}\r\nbreak;\r\ncase 71:\r\n//#line 344 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.TypeTest(val_peek(3).expr, val_peek(1).ident, val_peek(5).loc);\r\n \t}\r\nbreak;\r\ncase 72:\r\n//#line 348 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.TypeCast(val_peek(2).ident, val_peek(0).expr, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 73:\r\n//#line 352 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Ternary(Tree.COND, val_peek(4).expr, val_peek(2).expr, val_peek(0).expr, val_peek(4).loc);\r\n \t}\r\nbreak;\r\ncase 74:\r\n//#line 356 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.PCLONE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 75:\r\n//#line 362 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Tree.Literal(val_peek(0).typeTag, val_peek(0).literal, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 76:\r\n//#line 366 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Null(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 78:\r\n//#line 373 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\r\n \t}\r\nbreak;\r\ncase 79:\r\n//#line 380 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 80:\r\n//#line 384 \"Parser.y\"\r\n{\r\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\r\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\r\n \t}\r\nbreak;\r\ncase 81:\r\n//#line 391 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.WhileLoop(val_peek(2).expr, val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 82:\r\n//#line 397 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Repeat(val_peek(4).stmt, val_peek(1).expr, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 83:\r\n//#line 403 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.ForLoop(val_peek(6).stmt, val_peek(4).expr, val_peek(2).stmt, val_peek(0).stmt, val_peek(8).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 84:\r\n//#line 409 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Break(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 85:\r\n//#line 415 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.If(val_peek(3).expr, val_peek(1).stmt, val_peek(0).stmt, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 86:\r\n//#line 421 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = val_peek(0).stmt;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 87:\r\n//#line 425 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 88:\r\n//#line 431 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Return(val_peek(0).expr, val_peek(1).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 89:\r\n//#line 435 \"Parser.y\"\r\n{\r\n \t\tyyval.stmt = new Tree.Return(null, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 90:\r\n//#line 441 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Print(val_peek(1).elist, val_peek(3).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 91:\r\n//#line 447 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Switch(val_peek(5).expr, val_peek(2).slist, val_peek(1).stmt, val_peek(7).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 92:\r\n//#line 453 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 93:\r\n//#line 457 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n \t\tyyval.slist = new ArrayList<Tree>();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 94:\r\n//#line 464 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Case(val_peek(2).expr, val_peek(0).slist, val_peek(3).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 95:\r\n//#line 470 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Default(val_peek(0).slist, val_peek(2).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 96:\r\n//#line 474 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 97:\r\n//#line 480 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Continue(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\n//#line 1319 \"Parser.java\"\r\n//########## END OF USER-SUPPLIED ACTIONS ##########\r\n }//switch\r\n //#### Now let's reduce... ####\r\n //if (yydebug) debug(\"reduce\");\r\n state_drop(yym); //we just reduced yylen states\r\n yystate = state_peek(0); //get new state\r\n val_drop(yym); //corresponding value drop\r\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\r\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\r\n {\r\n //if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\r\n yystate = YYFINAL; //explicitly say we're done\r\n state_push(YYFINAL); //and save it\r\n val_push(yyval); //also save the semantic value of parsing\r\n if (yychar < 0) //we want another character?\r\n {\r\n yychar = yylex(); //get next character\r\n //if (yychar<0) yychar=0; //clean, if necessary\r\n //if (yydebug)\r\n //yylexdebug(yystate,yychar);\r\n }\r\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\r\n break; //quit the loop--all DONE\r\n }//if yystate\r\n else //else not done yet\r\n { //get next state and push, for next yydefred[]\r\n yyn = yygindex[yym]; //find out where to go\r\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\r\n yystate = yytable[yyn]; //get new state\r\n else\r\n yystate = yydgoto[yym]; //else go to new defred\r\n //if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\r\n state_push(yystate); //going again, so push state & val...\r\n val_push(yyval); //for next action\r\n }\r\n }//main loop\r\n return 0;//yyaccept!!\r\n}", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(91);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 91. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "protected static void reportParseError(int expectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 514 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \" token.\");\n/* */ }", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado Error Fatal\");\n TablaErr.add(datos);\n */\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "private void parseErrorUnlessPermittedSlash() throws SAXException,\n IOException {\n if (endTag) {\n err(\"Stray \\u201C/\\u201D in an end tag.\");\n return;\n }\n char c = read();\n if (c == '>') {\n if (!currentIsVoid() && !html4) {\n if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4.\");\n } else {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is only permitted on void elements.\");\n }\n } else if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4. (HTML4-only error)\");\n }\n } else {\n err(\"Stray \\u201C/\\u201D in tag.\");\n }\n unread(c);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "public void reportError(final int category, final ErrorMsg error) {\n switch (category) {\n case Constants.INTERNAL:\n // Unexpected internal errors, such as null-ptr exceptions, etc.\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.UNSUPPORTED:\n // XSLT elements that are not implemented and unsupported ext.\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.FATAL:\n // Fatal error in the stylesheet input (parsing or content)\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.ERROR:\n // Other error in the stylesheet input (parsing or content)\n // Does not terminate compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.WARNING:\n // Other error in the stylesheet input (content errors only)\n // Does not terminate compilation, a translet is produced\n _warnings.add(error);\n break;\n }\n }", "public static void registerError() {\r\n errorCount++;\r\n }", "private void errorCheck( Token token, String kind ) {\n if( ! token.isKind( kind ) ) {\n System.out.println(\"Error: expected \" + token + \" to be of kind \" + kind );\n System.exit(1);\n }\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n StringReader stringReader0 = new StringReader(\"}y5+{SPClS&QvLb0Qm\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.jjFillToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n StringReader stringReader0 = new StringReader(\"'L+XUG}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2292, 16, 18);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2292, column 18. Encountered: \\\"+\\\" (43), after : \\\"\\\\'L\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "@Override\n public void warning(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).warning(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.warning(transformerException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }", "public Vector collectParseErrors() {\n \n \t\tNode n = null;\n \t\tDatum d = null;\n \t\tVector parseErrors = new Vector();\n \t\tString dependenciesErrors = null;\n \t\tString actionErrors = null;\n \t\tString answerChoicesErrors = null;\n \t\tString readbackErrors = null;\n \t\tVector nodeParseErrors = null;\n \t\tVector nodeNamingErrors = null;\n \t\tboolean hasErrors = false;\n \t\t\n \t\tparser.resetErrorCount();\n \n \t\tfor (int i=0;i<size();++i) {\n \t\t\tn = nodes.getNode(i);\n \t\t\tif (n == null)\n \t\t\t\tcontinue;\n \n \t\t\thasErrors = false;\n \t\t\tdependenciesErrors = null;\n \t\t\tactionErrors = null;\n \t\t\tanswerChoicesErrors = null;\n \t\t\treadbackErrors = null;\n \t\t\tnodeParseErrors = null;\n \t\t\tnodeNamingErrors = null;\n \n \t\t\tparser.booleanVal(evidence, n.getDependencies());\n \n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tdependenciesErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tint actionType = n.getQuestionOrEvalType();\n \t\t\tString s = n.getQuestionOrEval();\n \n \t\t\t/* Check questionOrEval for syntax errors */\n \t\t\tif (s != null) {\n \t\t\t\tif (actionType == Node.QUESTION) {\n \t\t\t\t\tparser.parseJSP(evidence, s);\n \t\t\t\t}\n \t\t\t\telse if (actionType == Node.EVAL) {\n \t\t\t\t\tparser.stringVal(evidence, s);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t/* Check min & max range delimiters for syntax errors */\n \t\t\ts = n.getMinStr();\n \t\t\tif (s != null) {\n \t\t\t\tparser.stringVal(evidence, s);\n \t\t\t}\n \t\t\ts = n.getMaxStr();\n \t\t\tif (s != null) {\n \t\t\t\tparser.stringVal(evidence, s);\n \t\t\t}\n \t\t\t\n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tactionErrors = parser.getErrors();\n \t\t\t}\n \t\t\t\n \t\t\tVector v = n.getAnswerChoices();\n \t\t\tif (v != null) {\n \t\t\t\tfor (int j=0;j<v.size();++j) {\n \t\t\t\t\tAnswerChoice ac = (AnswerChoice) v.elementAt(j);\n \t\t\t\t\tif (ac != null)\n \t\t\t\t\t\tac.parse(parser, evidence);\t// any errors will be associated with the parser, not the node (although this is misleading)\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tanswerChoicesErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tif (n.hasParseErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tnodeParseErrors = n.getParseErrors();\n \t\t\t}\n \t\t\tif (n.hasNamingErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tnodeNamingErrors = n.getNamingErrors();\n \t\t\t}\n \t\t\t\n \t\t\tif (n.getReadback() != null) {\n \t\t\t\tparser.parseJSP(evidence,n.getReadback());\n \t\t\t}\n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\treadbackErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tif (hasErrors) {\n \t\t\t\tparseErrors.addElement(new ParseError(n, dependenciesErrors, actionErrors, answerChoicesErrors, readbackErrors, nodeParseErrors, nodeNamingErrors));\n \t\t\t}\n \t\t}\n \t\treturn parseErrors;\n \t}", "@FormatMethod\n private void reportError(Token token, @FormatString String message, Object... arguments) {\n if (token == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(token.getStart(), message, arguments);\n }\n }", "public void correctErrors();", "private static void fail(Scanner scanner, String message) throws RuntimeException {\n String msg = message + \"\\n @ ...\";\n for (int i = 0; i < 10 && scanner.hasNext(); i++) {\n msg += \" \" + scanner.next();\n }\n throw new RuntimeException(msg + \"...\");\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-2521));\n // Undeclared exception!\n try { \n xPathLexer0.nextToken();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\" 6PR~\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 2);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 2. Encountered: \\\"6\\\" (54), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n StringReader stringReader0 = new StringReader(\"NXMnbm>`7-o(jz g3N\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-439), 1101);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line -439, column 1108. Encountered: \\\"`\\\" (96), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.consume((-1));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n StringReader stringReader0 = new StringReader(\"#crIx\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2897, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2897, column 32. Encountered: \\\"#\\\" (35), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"}tH?N[RLAs'&]u\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 128, 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 128, column 44. Encountered: <EOF> after : \\\"\\\\\\\"}tH?N[RLAs\\\\'&]u\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test\n public void testWarningsParser() throws IOException {\n Collection<FileAnnotation> warnings = new GccParser().parse(openFile());\n\n assertEquals(WRONG_NUMBER_OF_WARNINGS_DETECTED, 8, warnings.size());\n\n Iterator<FileAnnotation> iterator = warnings.iterator();\n FileAnnotation annotation = iterator.next();\n checkWarning(annotation,\n 451,\n \"`void yyunput(int, char*)&apos; defined but not used\",\n \"testhist.l\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 73,\n \"implicit typename is deprecated, please see the documentation for details\",\n \"/u1/drjohn/bfdist/packages/RegrTest/V00-03-01/RgtAddressLineScan.cc\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 4,\n \"foo.h: No such file or directory\",\n \"foo.cc\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 0,\n \"undefined reference to &apos;missing_symbol&apos;\",\n \"foo.so\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_sp\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_flags\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_size\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 52,\n \"large integer implicitly truncated to unsigned type\",\n \"src/test_simple_sgs_message.cxx\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n }", "public static void errorRecovery (CD19Parser p) throws Exception {\n\n int nextComma = p.nextTokenOccursAt(Token.TCOMA);\n\n int nextMinViableTokenBesidesComma = -1;\n int nextSemiComma = p.nextTokenOccursAt(Token.TSEMI);\n int nextLeftParanthesis = p.nextTokenOccursAt(Token.TLPAR);\n if (nextSemiComma != -1) {\n nextMinViableTokenBesidesComma = nextSemiComma;\n }\n if (nextLeftParanthesis != -1 && nextLeftParanthesis < nextMinViableTokenBesidesComma) {\n nextMinViableTokenBesidesComma = nextLeftParanthesis;\n }\n\n // if there is no necessary token for\n // NREPT or NFOR then just fail anyway\n // as it will fail NREPT or NFOR ultimately\n if (nextMinViableTokenBesidesComma == -1) {\n throw new Exception(\"Unable to recover.\");\n }\n\n // there is no next comma\n // i.e. we have to jump the parser\n // the next sensible section\n if (nextComma == -1) {\n // there is a next comma but it doesn't occur\n // in the <initlist>. thus we can only attempt to jump\n // the parser to the next sensisble section\n if (nextMinViableTokenBesidesComma != -1) {\n p.tokensJumpTo(nextMinViableTokenBesidesComma);\n } else {\n throw new Exception(\"Unable to recover\");\n }\n return;\n }\n\n // if next comma occurs before the next ';' or ')'\n // jump there\n if (nextComma < nextMinViableTokenBesidesComma) {\n p.tokensJumpTo(nextComma);\n return;\n }\n\n\n throw new Exception(\"Unable to recover\");\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n StringReader stringReader0 = new StringReader(\"interface\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaCharStream0.nextCharInd = (-1232);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected static void reportParseError(int expectedToken, int otherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 523 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \" or a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \" token.\");\n/* */ }", "protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n byte[] byteArray0 = new byte[1];\n byteArray0[0] = (byte) (-25);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0, 119, (-820), 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 119, column -819. Encountered: <EOF> after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void error();", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"\");\n // Undeclared exception!\n try { \n xPathLexer0.LA(0);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2568));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.6284956", "0.6284956", "0.61203915", "0.5630205", "0.5612845", "0.55875844", "0.546607", "0.54657555", "0.5451778", "0.5374529", "0.5371829", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5348111", "0.5282164", "0.52628577", "0.5261151", "0.52530473", "0.525138", "0.52328885", "0.5223247", "0.5209358", "0.52081996", "0.52081996", "0.5197733", "0.51748395", "0.5146724", "0.5146724", "0.5144373", "0.5141327", "0.51350945", "0.5134566", "0.5126579", "0.51251864", "0.51018125", "0.5074349", "0.50685686", "0.5057345", "0.5044647", "0.5027372", "0.5026636", "0.501965", "0.5018476", "0.5010572", "0.5009665", "0.50084615", "0.50000316", "0.49951097", "0.49949053", "0.49948376", "0.4947675", "0.49443778", "0.4937711", "0.49268678", "0.49158636", "0.4910446", "0.49086845", "0.49053863", "0.49036634", "0.49034327", "0.48976916" ]
0.53252393
43
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public void finish() {\n charScanner.pushBack(currentCharToken);\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }", "private void trim() {\n read(0);\n }", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "private int _readMore(InputStream in, byte[] readBuffer, int inputPtr, int inputEnd, int maxRead)\n/* */ throws IOException\n/* */ {\n/* 1580 */ int i = 0;\n/* 1581 */ while (inputPtr < inputEnd) {\n/* 1582 */ readBuffer[(i++)] = readBuffer[(inputPtr++)];\n/* */ }\n/* 1584 */ inputPtr = 0;\n/* 1585 */ inputEnd = i;\n/* 1586 */ maxRead = Math.min(maxRead, readBuffer.length);\n/* */ do\n/* */ {\n/* 1589 */ int length = maxRead - inputEnd;\n/* 1590 */ if (length == 0) {\n/* */ break;\n/* */ }\n/* 1593 */ int count = in.read(readBuffer, inputEnd, length);\n/* 1594 */ if (count < 0) {\n/* 1595 */ return inputEnd;\n/* */ }\n/* 1597 */ inputEnd += count;\n/* 1598 */ } while (inputEnd < 3);\n/* 1599 */ return inputEnd;\n/* */ }", "private void fillBuf(int need) throws IOException {\n\n\t\tif (count > pos) {\n\t\t\tSystem.arraycopy(buf, pos, buf, 0, count - pos);\n\t\t\tcount -= pos;\n\t\t\tneed -= count;\n\t\t\tpos = 0;\n\t\t} else {\n\t\t\tcount = 0;\n\t\t\tpos = 0;\n\t\t}\n\n\t\twhile (need > 0) {\n\n\t\t\tint len = in.read(buf, count, buf.length - count);\n\t\t\tif (len <= 0) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t\tcount += len;\n\t\t\tneed -= len;\n\t\t}\n\n\t}", "public static void main(String[] args) throws IOException {\n\n String s = scanner.nextLine();\n\n String t = scanner.nextLine();\n\n int k = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String result = appendAndDelete(s, t, k);\n System.out.println(result);\n\n// bufferedWriter.write(result);\n// bufferedWriter.newLine();\n//\n// bufferedWriter.close();\n\n scanner.close();\n }", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "private void unread(char c) {\n unreadBuffer = c;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.FillBuff();\n assertEquals((-1), javaCharStream0.bufpos);\n }", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "private int getNextChar() throws IOException{\n\t\tpos++;\n\t\tsourceReader.mark(20);\n\t\treturn sourceReader.read();\n\t}", "@Override\n public void flush() throws IOException\n {\n for(;;) {\n int index = indexOneOf(builder, '\\r', '\\n');\n if(index == -1) {\n break;\n }\n // ignore false returned by offer when queue is full\n queue.offer(builder.substring(0, index));\n\n if(builder.charAt(index) == '\\r') {\n ++index;\n }\n if(builder.charAt(index) != '\\n') {\n throw new IllegalStateException();\n }\n ++index;\n builder.delete(0, index);\n }\n }", "private final int bufferedInputBytesRemaining() {\n return reading ? (buffer.remaining() + (ungotc != -1 ? 1 : 0)) : 0;\n }", "void setCharacterStream(int index, Reader reader, int count)\n throws SQLException;", "void peekAhead(GetsState gs) {\n ChannelBuffer buf;\n //Tcl_DriverBlockModeProc *blockModeProc;\n int bytesLeft;\n boolean goto_cleanup = false; // Set to true when jumping to the\n // cleanup label, used to simulate a goto.\n\n buf = gs.buf;\n\n // If there's any more raw input that's still buffered, we'll peek into\n // that. Otherwise, only get more data from the channel driver if it\n // looks like there might actually be more data. The assumption is that\n // if the channel buffer is filled right up to the end, then there\n // might be more data to read.\n\n cleanup:{\n //blockModeProc = NULL;\n if (buf.next == null) {\n bytesLeft = buf.nextAdded - (buf.nextRemoved + gs.rawRead.i);\n if (bytesLeft == 0) {\n if (buf.nextAdded < buf.bufLength) {\n // Don't peek ahead if last read was short read.\n goto_cleanup = true;\n break cleanup;\n }\n // FIXME: This non-blocking check is currently disabled, non-blocking\n // is not currently supported and it is not clean why we would\n // need to depend on non-blocking IO when peeking anyway.\n if (blocking) {\n //blockModeProc = Tcl_ChannelBlockModeProc(chanPtr->typePtr);\n if (false /*blockModeProc == NULL*/) {\n // Don't peek ahead if cannot set non-blocking mode.\n goto_cleanup = true;\n break cleanup;\n }\n //StackSetBlockMode(chanPtr, TCL_MODE_NONBLOCKING);\n }\n }\n }\n filterBytes(gs);\n //if (blockModeProc != NULL) {\n // StackSetBlockMode(chanPtr, TCL_MODE_BLOCKING);\n //}\n }\n\n if (goto_cleanup) {\n buf.nextRemoved += gs.rawRead.i;\n gs.rawRead.i = 0;\n gs.totalChars += gs.charsWrote.i;\n //gs.bytesWrote.i = 0;\n gs.charsWrote.i = 0;\n }\n }", "private void flushChars() throws SAXException, IOException {\n if (cstart != -1) {\n if (pos > cstart) {\n int currCol = col;\n int currLine = line;\n col = colPrev;\n line = linePrev;\n try {\n tokenHandler.characters(buf, cstart, pos - cstart);\n } finally {\n col = currCol;\n line = currLine;\n }\n }\n }\n cstart = -1;\n }", "public FastCharStream(final Reader reader) {\n\t\tinput = reader;\n\t}", "private char peekFurther(int distance) {\n if (current + distance >= source.length()) {\n return '\\0';\n }\n\n return source.charAt(current + distance);\n }", "private synchronized void read(byte[] dest, int amt) throws IOException {\n\t\tread(in, dest, amt);\n\t}", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "private static String readUntil(InputStreamReader r, char limit)\n\t\t\tthrows IOException {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = r.read(); i != -1; i = r.read()) {\n\t\t\tchar c = (char) i;\n\t\t\tbuilder.append(c);\n\t\t\tif (c == limit) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn builder.toString();\n\t}", "public void unreadToken(SQLToken c) {\n synchronized (lock) {\n if (tokensBufferPosition == 0) {\n throw new SQLParserException(\"Pushback buffer overflow\");\n }\n tokensBuffer[--tokensBufferPosition] = c;\n }\n }", "public void advance() {\r\n this.command = in.nextLine();\r\n }", "void readNextChar() throws ReaderException;", "private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n javaCharStream0.ReInit((InputStream) pipedInputStream0, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "public LengthLimitedInputStream(InputStream in, int limit) {\n\tsuper(in);\n\tleft = limit;\n }", "private String readFixedString(int size, DataInput in) throws IOException\n { \n var b = new StringBuilder(size);\n int i = 0;\n var done = false;\n while (!done && i < size)\n { \n char ch = in.readChar();\n i++;\n if (ch == 0) {\n done = true;\n }\n else {\n b.append(ch);\n }\n }\n \n in.skipBytes(2 * (size - i));\n return b.toString();\n }", "public void feedAndCut() throws IOException {\n feed();\n cut();\n writer.flush();\n }", "public int cscan () throws IOException {\n\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\n\t\t\t\t//if (numChars <= 0) return -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}", "public synchronized long skip(long charsToSkip) throws IOException {\n\t\tlong processed = 0;\n\n\t\t// first disregard what's in our small queue:\n\t\twhile (charsToSkip > 0 && m_queueLength > 0) {\n\t\t\tnext(false);\n\t\t\tcharsToSkip--;\n\t\t\tprocessed++;\n\t\t}\n\n\t\t// the efficient way to skip:\n\t\twhile (charsToSkip > 0) {\n\t\t\tlong skipped = m_reader.skip(charsToSkip);\n\t\t\tif (skipped == 0) {\n\t\t\t\treturn processed;\n\t\t\t}\n\t\t\tcharsToSkip -= skipped;\n\t\t\tprocessed += skipped;\n\t\t\tm_read += skipped;\n\t\t}\n\n\t\tpopulateQueue();\n\n\t\treturn processed;\n\t}", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(1);\n javaCharStream0.getLine();\n assertEquals(4094, javaCharStream0.bufpos);\n }", "void seekReset() {\n\t\tcancelEof();\n\t\tsawEofChar = false;\n\t}", "private void getNextChar() \n {\n try\n {\n int temp = in.read();\n if (temp == -1)\n eof = true;\n currentChar = (char)temp;\n }\n catch (IOException e)\n {\n System.err.println(\"Catastrophic File IO error.\\n\" + e);\n System.exit(1); \n //exit with nonzero exit code to indicate catastrophic error\n }\n }", "@Override\n\tpublic void consume(Scan scan) {\n\n\t}", "private boolean loadMore(int available) throws IOException\n {\n _byteCount += (_inputEnd - available);\n\n // Bytes that need to be moved to the beginning of buffer?\n if (available > 0) {\n if (_inputPtr > 0) {\n if (!canModifyBuffer()) {\n // 15-Aug-2022, tatu: Occurs (only) if we have half-decoded UTF-8\n // characters; uncovered by:\n //\n // https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50036\n //\n // and need to be reported as IOException\n if (_inputSource == null) {\n throw new IOException(String.format(\n\"End-of-input after first %d byte(s) of a UTF-8 character: needed at least one more\",\navailable));\n }\n }\n for (int i = 0; i < available; ++i) {\n _inputBuffer[i] = _inputBuffer[_inputPtr+i];\n }\n _inputPtr = 0;\n _inputEnd = available;\n }\n } else {\n // Ok; here we can actually reasonably expect an EOF, so let's do a separate read right away:\n int count = readBytes();\n if (count < 1) {\n freeBuffers(); // to help GC?\n if (count < 0) { // -1\n return false;\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n\n // We now have at least one byte... and that allows us to\n // calculate exactly how many bytes we need!\n @SuppressWarnings(\"cast\")\n int c = (int) _inputBuffer[_inputPtr];\n if (c >= 0) { // single byte (ascii) char... cool, can return\n return true;\n }\n\n // Ok, a multi-byte char, let's check how many bytes we'll need:\n int needed;\n if ((c & 0xE0) == 0xC0) { // 2 bytes (0x0080 - 0x07FF)\n needed = 2;\n } else if ((c & 0xF0) == 0xE0) { // 3 bytes (0x0800 - 0xFFFF)\n needed = 3;\n } else if ((c & 0xF8) == 0xF0) {\n // 4 bytes; double-char BS, with surrogates and all...\n needed = 4;\n } else {\n // 25-Aug-2016, tatu: As per [dataformat-csv#132], let's not throw\n // exception from here but let caller handle\n return true;\n }\n\n // And then we'll just need to load up to that many bytes;\n // if an EOF is hit, that'll be an error. But we need not do\n // actual decoding here, just load enough bytes.\n while ((_inputPtr + needed) > _inputEnd) {\n int count = readBytesAt(_inputEnd);\n if (count < 1) {\n if (count < 0) { // -1, EOF... no good!\n freeBuffers();\n reportUnexpectedEOF(_inputEnd, needed);\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n return true;\n }", "private String _read(InputStream in, String enc) throws IOException\n {\n int ptr = 0;\n int count;\n \n while ((count = in.read(_readBuffer, ptr, _readBuffer.length - ptr)) > 0) {\n ptr += count;\n // buffer full? Need to realloc\n if (ptr == _readBuffer.length) {\n _readBuffer = Arrays.copyOf(_readBuffer, ptr + ptr);\n }\n }\n \n return new String(_readBuffer, 0, ptr, enc);\n }", "private boolean fill() throws IOException {\n if (in == null)\n return false;\n if (bufEnd == buf.length) {\n Tokenizer.movePosition(buf, posOff, bufStart, pos);\n /* The last read was complete. */\n int keep = bufEnd - bufStart;\n if (keep == 0)\n\tbufEnd = 0;\n else if (keep + READSIZE <= buf.length) {\n\t/*\n\t * There is space in the buffer for at least READSIZE bytes.\n\t * Choose bufEnd so that it is the least non-negative integer\n\t * greater than or equal to <code>keep</code>, such\n\t * <code>bufLength - keep</code> is a multiple of READSIZE.\n\t */\n\tbufEnd = buf.length - (((buf.length - keep)/READSIZE) * READSIZE);\n\tfor (int i = 0; i < keep; i++)\n\t buf[bufEnd - keep + i] = buf[bufStart + i];\n }\n else {\n\tchar newBuf[] = new char[buf.length << 1];\n\tbufEnd = buf.length;\n\tSystem.arraycopy(buf, bufStart, newBuf, bufEnd - keep, keep);\n\tbuf = newBuf;\n }\n bufStart = bufEnd - keep;\n posOff = bufStart;\n }\n int nChars = in.read(buf, bufEnd, buf.length - bufEnd);\n if (nChars < 0) {\n in.close();\n in = null;\n return false;\n }\n bufEnd += nChars;\n bufEndStreamOffset += nChars;\n return true;\n }", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public void next() {\n\t\tif ((position == 0) && (pause != 3)) {\n\t\t\tpause++;\n\t\t} else {\n\t\t\tposition++;\n\t\t\tpause = 0;\n\t\t\tif (position == (origionalMessage.length() + 10)) {\n\t\t\t\tposition = 0;\n\t\t\t}\n\t\t}\n\n\t}", "protected int filterBytes()\n throws IOException {\n\n if (headerPending) {\n parseHeader();\n }\n\n //System.out.println(\"nEncoded: \" + nEncoded);\n //System.out.println(\"Current: \" + current);\n \n if (nEncoded <= current) {\n int br = readEncodedBytes();\n System.out.println(\"reb: \" + br);\n if (br < 0) {\n return -1;\n }\n }\n\n // bytes decoding loop\n int inserted = 0;\n while (current < nEncoded) {\n \t\n if (current < firstQuantum) {\n if (decode(current) == 0) {\n // this is the end of the encoded data\n parseTrailer();\n return inserted;\n }\n\n // store the expected number of raw bytes encoded in the line\n remaining = decode(current);\n current = firstQuantum;\n\n }\n\n if (encoded[current] == '\\n' && encoded[current + 1] != '\\n') {\n \t \n \t \n \t System.out.println(\"Cur rEad\");\n \t \n \t \n if (remaining != 0) {\n throw new IOException(\"encoded length inconsistent with encoded data\");\n }\n\n //System.out.println(\"Remaning: \" + remaining);\n \n // update state for next line\n firstQuantum = current + 2;\n\n } else if (encoded[current] == '\\n') {\n \t System.out.println(\"CurrEad\");\n \t current = current + 1;\n } else {\n // this is an encoded data byte\n int fByte;\n \n // combine the various 6-bits bytes to produce 8-bits bytes\n switch ((current - firstQuantum) % 4) {\n case 0:\n // nothing to do\n break;\n case 1:\n fByte = ((decode(current - 1) & 0x3F) << 2)\n | ((decode(current) & 0x30) >> 4);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n case 2:\n fByte = ((decode(current - 1) & 0x0F) << 4)\n | ((decode(current) & 0x3C) >> 2);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n default:\n fByte = ((decode(current - 1) & 0x03) << 6)\n | (decode(current) & 0x3F);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n \n }\n }\n\n ++current;\n\n }\n \n //System.out.println(inserted);\n\n // preserve current quantum for next round\n int start = current - ((current - firstQuantum) % 4);\n \n //System.out.println(\"FQ: \" + firstQuantum + \"S: \" + (char)encoded[current - 1]);\n \n //System.out.println(\"start: \" + start + \" nEenc-stsrt: \" + (nEncoded - start));\n \n if (firstQuantum < start) {\n System.arraycopy(encoded, start, encoded, 0, nEncoded - start);\n nEncoded -= start;\n current -= start;\n firstQuantum -= start;\n } else {\n \tnEncoded = 0;\n \tcurrent = 0;\n \tfirstQuantum = 0;\n }\n \n //System.out.println(\"out!\");\n //System.out.println (\"inserted == \" + inserted);\n \n return inserted;\n \n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "protected LookAheadReader(Reader reader, int queueSize) throws IOException {\n\t\tthis.m_queue = new char[queueSize];\n\t\tthis.m_reader = reader;\n\t\tpopulateQueue();\n\t}", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "private char advance() {\n current++;\n return source.charAt(current - 1);\n }", "@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t\t\tthrows SAXException {\n\t\t\tbuffer.append(ch);\n\t\t}", "void onInput(Terminal terminal, int numChars, String current);", "public void reset(Reader input) {\n this.buffer.dispose();\n this.buffer = new ReaderBuffer(input);\n this.previousToken = null;\n this.lastMatch.clear();\n }", "@Override\n protected List<CharSequence> getNextInput() {\n if (!mInputIterator.hasNext())\n // No more input, so we're done.\n return null;\n else {\n // Start a new cycle.\n incrementCycle();\n\n // Return a list containing character sequences to search.\n return mInputIterator.next();\n }\n }", "public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }", "private void compactIfNeeded() {\n\n // if the scan point is more than 25% into the buffer, compact...\n if( buffer.position() >= (buffer.capacity() >> 2 ) ) {\n int newLimit = buffer.limit() - buffer.position();\n buffer.compact();\n buffer.position( 0 );\n buffer.limit( newLimit );\n }\n }", "@Override\r\n public Integer numberOfCharacters(InputStream ins) throws Exception {\n return null;\r\n }", "private void updateToken() throws IOException\n\t{\n\t\ttheCurrentToken = theNextToken;\n\t\ttheNextToken = theScanner.GetToken();\n\t}", "void skip(int bytes) throws IOException {\n this.input.skip(bytes);\n }", "@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}", "public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }", "char getPreviousReadChar();", "private String next(int i) throws IOException {\r\n\t\tif(buffer!=null) {\r\n\t\t\tString s=buffer;\r\n\t\t\tbuffer=null;\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\tif (i==0) {\r\n\t\t\treturn in.readLine();\r\n\t\t} else return in2.readLine();\r\n\t}", "private void advanceUntilNL() throws BufferEndedException {\twhile (reader.getLastDelimiter()!='\\n') reader.nextToken();}", "public Scanner(InputStream inStream)\n {\n in = new BufferedReader(new InputStreamReader(inStream));\n eof = false;\n getNextChar();\n }", "void newconsume() {\n\t\tfor (;;) {\n\t\t\tif (printnewline > newinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\tif (newinfo.other[printnewline] < 0)\n\t\t\t\tshowinsert();\n\t\t\telse showmove();\n\t\t}\n\t}", "void oldconsume() {\n\t\tfor (;;) {\n\t\t\tif (printoldline > oldinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\tprintnewline = oldinfo.other[printoldline];\n\t\t\tif (printnewline < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse showmove();\n\t\t}\n\t}", "@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}", "synchronized void receive(int preknownDataLength) throws EOFException, IOException {\n byte[] buffer = new byte[preknownDataLength];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n }", "@Override\n public ByteBuffer readInput(int minBytes) throws IOException {\n if (minBytes <= byteBuffer.remaining())\n return byteBuffer;\n else\n throw new EOFException(\"Cannot read more bytes - end of buffer reached\");\n }", "public byte[] getNextInput(byte[] buffer) throws IOException {\r\n // byte[] buffer = new byte[8192];\r\n file.seek(currOffset);\r\n file.read(buffer);\r\n currOffset += buffer.length;\r\n return buffer;\r\n }", "@Test(timeout = 4000)\n public void test131() throws Throwable {\n StringReader stringReader0 = new StringReader(\"QXw?YE]We2j)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 754, 5, 5);\n javaCharStream0.ReInit((Reader) stringReader0, 754, 754);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "@Override\n \tpublic void characters(final char inbuf[], final int offset, final int len)\n \t\t\tthrows SAXException {\n \t\tif (curAtom != null || !isParsing(eIsParsing.NONE)) {\n \t\t\tfinal String tmpString = new String(inbuf, offset, len);\n \t\t\tbuf += tmpString;\n \t\t}\n \t}", "public void advance() {\n // Get the next instruction\n instruction = fileStream.next();\n removeWhitespace();\n // Split instruction apart\n instructionChunks = instruction.split(\" \");\n }", "int filterBytes(GetsState gs) {\n ChannelBuffer buf;\n byte[] raw;\n int rawStart, rawEnd;\n char[] dst;\n int offset, toRead, /*dstNeeded,*/ spaceLeft, result, rawLen, length;\n TclObject obj;\n final int ENCODING_LINESIZE = 20; // Lower bound on how many bytes\n // to convert at a time. Since we\n // don't know a priori how many\n // bytes of storage this many\n // source bytes will use, we\n // actually need at least\n // ENCODING_LINESIZE bytes of room.\n\n boolean goto_read = false; // Set to true when jumping to the read\n // label, used to simulate a goto.\n\n final boolean debug = false;\n\n obj = gs.obj;\n\n // Subtract the number of bytes that were removed from channel buffer\n // during last call.\n\n buf = gs.buf;\n if (buf != null) {\n buf.nextRemoved += gs.rawRead.i;\n if (buf.nextRemoved >= buf.nextAdded) {\n buf = buf.next;\n }\n }\n gs.totalChars += gs.charsWrote.i;\n\n read: while (true) {\n if (goto_read || (buf == null) || (buf.nextAdded == buf.BUFFER_PADDING)) {\n // All channel buffers were exhausted and the caller still hasn't\n // seen EOL. Need to read more bytes from the channel device.\n // Side effect is to allocate another channel buffer.\n\n //read:\n if (blocked) {\n if (!blocking) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n blocked = false;\n }\n if (getInput() != 0) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n buf = inQueueTail;\n gs.buf = buf;\n }\n\n // Convert some of the bytes from the channel buffer to characters.\n // Space in obj's string rep is used to hold the characters.\n\n rawStart = buf.nextRemoved;\n raw = buf.buf;\n rawEnd = buf.nextAdded;\n rawLen = rawEnd - rawStart;\n\n toRead = ENCODING_LINESIZE;\n if (toRead > rawLen) {\n toRead = rawLen;\n }\n dst = new char[toRead];\n result = externalToUnicode(raw, rawStart, rawLen,\n dst, 0, toRead,\n gs.rawRead, /*gs.bytesWrote*/ null, gs.charsWrote,\n gs.charToBytes);\n TclString.append(gs.obj, dst, 0, gs.charsWrote.i);\n\n if (debug) {\n System.out.println(\"filterBytes chars\");\n\n String srep = gs.obj.toString();\n int len = srep.length();\n\n for (int i=0; i < len; i++) {\n char c = srep.charAt(i);\n String prep;\n if (c == '\\r') {\n prep = \"\\\\r\";\n } else if (c == '\\n') {\n prep = \"\\\\n\";\n } else {\n prep = \"\" + c;\n }\n\n System.out.println(\"filtered[\" + i + \"] = '\" +\n prep +\n \"' (int) \" + ((int) srep.charAt(i)) +\n \" 0x\" + Integer.toHexString((int) srep.charAt(i)));\n }\n }\n\n // Make sure that if we go through 'gets', that we reset the\n // TCL_ENCODING_START flag still. [Bug #523988]\n\n encodingStart = false;\n\n if (result == TCL_CONVERT_MULTIBYTE) {\n // The last few bytes in this channel buffer were the start of a\n // multibyte sequence. If this buffer was full, then move them to\n // the next buffer so the bytes will be contiguous. \n\n if (debug) {\n System.out.println(\"TCL_CONVERT_MULTIBYTE decode result found\");\n }\n\n ChannelBuffer next;\n int extra;\n\n next = buf.next;\n if (buf.nextAdded < buf.bufLength) {\n if (gs.rawRead.i > 0) {\n // Some raw bytes were converted to UTF-8. Fall through,\n // returning those UTF-8 characters because a EOL might be\n // present in them.\n } else if (eofCond) {\n // There was a partial character followed by EOF on the\n // device. Fall through, returning that nothing was found.\n\n buf.nextRemoved = buf.nextAdded;\n } else {\n // There are no more cached raw bytes left. See if we can\n // get some more.\n\n goto_read = true;\n continue read; //goto read;\n }\n } else {\n if (next == null) {\n next = new ChannelBuffer(bufSize);\n buf.next = next;\n inQueueTail = next;\n }\n extra = rawLen - gs.rawRead.i;\n System.arraycopy(raw, rawStart + gs.rawRead.i,\n next.buf, buf.BUFFER_PADDING - extra, extra);\n next.nextRemoved -= extra;\n buf.nextAdded -= extra;\n\n if (debug) {\n System.out.println(\"copied \" + extra + \" bytes to \" +\n \"next ChannelBuffer\");\n }\n }\n }\n\n break read; // End loop in the normal case\n } // End read labeled while loop\n\n gs.buf = buf;\n return 0;\n }", "public static void maxTokens(Scanner in) {\n }", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }", "void setReadPosition(int minus) {\n/* 159 */ this.pos -= minus;\n/* 160 */ this.readerIndex = getReadPosition(this.pos);\n/* 161 */ this.buffer.readerIndex(this.readerIndex);\n/* */ }", "private static char[] growBuffer(char[] dest, int index, int size) {\n char[] copy = new char[size];\n if (index > 0) {\n System.arraycopy(dest, 0, copy, 0, index);\n }\n return copy;\n }", "private void scanOnceMore() {\n\n barcodeReaderFragment = new BarcodeReaderFragment();\n barcodeReaderFragment.setListener(ScannerFragment.this);\n FragmentTransaction fragmentTransaction = getChildFragmentManager().beginTransaction();\n if (isScanning.get()) fragmentTransaction.remove(barcodeReaderFragment);\n else fragmentTransaction.replace(R.id.scannerFragment, barcodeReaderFragment);\n isScanning.set(!isScanning.get());\n fragmentTransaction.commit();\n }", "public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {\n\n updateCharacterStream(columnIndex, x, (long) length);\n }", "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "@Override\n public Token nextToken(\n PushbackReader r, int cin, Tokenizer t)\n throws IOException {\n\n int i = 0;\n charbuf[i++] = (char) cin;\n int c;\n do {\n c = r.read();\n if (c < 0) {\n c = cin;\n }\n checkBufLength(i);\n charbuf[i++] = (char) c;\n } while (c != cin);\n\n String sval = copyValueOf(charbuf, 0, i);\n return new Token(TT_QUOTED, sval, 0);\n }", "private void skipBytes(int count) throws IOException {\n long currentPosition = archive.position();\n long newPosition = currentPosition + count;\n if (newPosition > archive.size()) {\n throw new EOFException();\n }\n archive.position(newPosition);\n }", "private void releaseChar() {\r\n \t\tif (index < documentContent.length())\r\n \t\t\tindex++;\r\n \t}", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public void updateNCharacterStream(String columnName, Reader x) throws SQLException {\n\n updateNCharacterStream(columnName, x, -1);\n }", "public void flush() throws IOException {\n\t\tif ((buffer.length - cursor) > 50000) {\n\t\t\tSystem.out.println(\"WASTED: \" + (buffer.length - cursor));\n\t\t}\n\t}", "public void updateCharacterStream(String columnName, Reader x, int length) throws SQLException {\n\n updateCharacterStream(columnName, x, (long) length);\n }", "public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {\n\n updateNCharacterStream(columnIndex, x, -1);\n }", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "void mark(@Nonnegative int readLimit);", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {\n currentPreparedStatement.setCharacterStream(parameterIndex, reader, length);\n }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "protected void readNextChar() throws IOException {\n nextChar = inputReader.read();\n switch (nextChar) {\n case -1: // EOF\n if (char_num == 0) {\n char_num = -1;\n break;\n }\n nextChar = '\\n';\n // fall thru\n case '\\n':\n line_num++;\n char_num = 0;\n break;\n default:\n line.append((char) nextChar);\n char_num++;\n return;\n }\n line.setLength(0);\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "@Override\n public void consume(ParsableByteArray data) {\n checkStateNotNull(sampleReader);\n checkStateNotNull(output);\n int offset = data.getPosition();\n int limit = data.limit();\n byte[] dataArray = data.getData();\n\n // Append the data to the buffer.\n totalBytesWritten += data.bytesLeft();\n output.sampleData(data, data.bytesLeft());\n\n while (true) {\n int startCodeOffset = NalUnitUtil.findNalUnit(dataArray, offset, limit, prefixFlags);\n\n if (startCodeOffset == limit) {\n // We've scanned to the end of the data without finding another start code.\n if (!hasOutputFormat) {\n csdBuffer.onData(dataArray, offset, limit);\n }\n sampleReader.onData(dataArray, offset, limit);\n if (userData != null) {\n userData.appendToNalUnit(dataArray, offset, limit);\n }\n return;\n }\n\n // We've found a start code with the following value.\n int startCodeValue = data.getData()[startCodeOffset + 3] & 0xFF;\n // This is the number of bytes from the current offset to the start of the next start\n // code. It may be negative if the start code started in the previously consumed data.\n int lengthToStartCode = startCodeOffset - offset;\n\n if (!hasOutputFormat) {\n if (lengthToStartCode > 0) {\n csdBuffer.onData(dataArray, offset, /* limit= */ startCodeOffset);\n }\n // This is the number of bytes belonging to the next start code that have already been\n // passed to csdBuffer.\n int bytesAlreadyPassed = lengthToStartCode < 0 ? -lengthToStartCode : 0;\n if (csdBuffer.onStartCode(startCodeValue, bytesAlreadyPassed)) {\n // The csd data is complete, so we can decode and output the media format.\n output.format(\n parseCsdBuffer(csdBuffer, csdBuffer.volStartPosition, checkNotNull(formatId)));\n hasOutputFormat = true;\n }\n }\n\n sampleReader.onData(dataArray, offset, /* limit= */ startCodeOffset);\n\n if (userData != null) {\n int bytesAlreadyPassed = 0;\n if (lengthToStartCode > 0) {\n userData.appendToNalUnit(dataArray, offset, /* limit= */ startCodeOffset);\n } else {\n bytesAlreadyPassed = -lengthToStartCode;\n }\n\n if (userData.endNalUnit(bytesAlreadyPassed)) {\n int unescapedLength = NalUnitUtil.unescapeStream(userData.nalData, userData.nalLength);\n castNonNull(userDataParsable).reset(userData.nalData, unescapedLength);\n castNonNull(userDataReader).consume(pesTimeUs, userDataParsable);\n }\n\n if (startCodeValue == START_CODE_VALUE_USER_DATA\n && data.getData()[startCodeOffset + 2] == 0x1) {\n userData.startNalUnit(startCodeValue);\n }\n }\n\n int bytesWrittenPastPosition = limit - startCodeOffset;\n long absolutePosition = totalBytesWritten - bytesWrittenPastPosition;\n sampleReader.onDataEnd(absolutePosition, bytesWrittenPastPosition, hasOutputFormat);\n // Indicate the start of the next chunk.\n sampleReader.onStartCode(startCodeValue, pesTimeUs);\n // Continue scanning the data.\n offset = startCodeOffset + 3;\n }\n }", "@Override\n protected int update(byte[] array, int off, int count) throws IOException {\n int mark = (int)limit;\n \n if(count >= limit) {\n append(array, off, mark);\n finished = true;\n limit = 0;\n return count - mark;\n } \n if(count > 0) {\n append(array, off, count);\n limit -= count; \n }\n return 0;\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }" ]
[ "0.5734373", "0.5665254", "0.5241355", "0.51768184", "0.51327187", "0.5131074", "0.5105206", "0.50397587", "0.5017513", "0.5015112", "0.50047463", "0.5002526", "0.4988889", "0.49811333", "0.49780416", "0.4958394", "0.49544096", "0.49515522", "0.49430543", "0.4930276", "0.49261603", "0.49245235", "0.49081114", "0.49017903", "0.49016368", "0.48913535", "0.48874757", "0.48717552", "0.48690906", "0.4860119", "0.48552942", "0.48427564", "0.4842053", "0.48418704", "0.48295897", "0.48258418", "0.48189366", "0.48143363", "0.48077172", "0.47881815", "0.47785193", "0.47713566", "0.476946", "0.47663042", "0.47373992", "0.47283247", "0.47221482", "0.47185782", "0.4709512", "0.4709448", "0.47086275", "0.47084367", "0.4701634", "0.46817577", "0.46798983", "0.4679302", "0.46775493", "0.4676594", "0.46739542", "0.4664531", "0.4660529", "0.46595377", "0.46520278", "0.46435937", "0.4642011", "0.463956", "0.46331757", "0.46306297", "0.4629568", "0.46185416", "0.46147895", "0.46048346", "0.45948723", "0.45942605", "0.458835", "0.4573183", "0.45729852", "0.45725936", "0.4571613", "0.45698684", "0.45696315", "0.45613676", "0.45578134", "0.45516792", "0.4546144", "0.45399347", "0.45359406", "0.45323843", "0.45316595", "0.45293", "0.4528854", "0.4518873", "0.45187035", "0.45139736", "0.44986498", "0.4495486", "0.4494879", "0.4494879", "0.44941503", "0.448969", "0.44879186" ]
0.0
-1
Liest die Nachricht, die in der Datei filename gespeichert ist, ein und speichert sie als byteArray in message. lokale Variablen:
public static byte[] To_Byte_Array (String filename) throws java.security.NoSuchAlgorithmException { byte[] data = null; // MessageDigest hash = MessageDigest.getInstance("SHA-512");//SHA2 //removed //Streams, in: File textFile;//Textdatei FileInputStream in;//Dateieingabe-Stream try { textFile = new File(filename); in = new FileInputStream(textFile); int size = (int)textFile.length(); // Dateilaenge int read = 0; // Anzahl der gelesenen Zeichen data = new byte[size]; // Lesepuffer // Auslesen der Datei while (read < size) read =+ in.read(data, read, size-read); in.close(); // Schreiben des Lesepuffers in Instanz von MessageDigest und speichern des Hash-Werts in message //hash.update (data);//removed //message=hash.digest ();//removed }//try catch (IOException ex) { ex.printStackTrace(); } return data;//added }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] getFileBytes(MessageObject messageObject) {\n\t\tMessageObject msgObject = winnowMessage(messageObject);\n\t\tif (messageObject.isUseTransform()) {\n\t\t\tdetransformMessageObject(messageObject);\n\t\t}\n\t\tbyte[] res = new byte[0];\n\t\tfor (MessagePart msgPart : msgObject.getMessageParts()) {\n\t\t\tres = concatByteArrays(res, msgPart.getMsg());\n\t\t}\n\t\treturn res;\n\t}", "@Override\n public void addMessage(byte[] message) throws RemoteException {\n Logger.getGlobal().log(Level.INFO,\"Ajout d'un message dans le composant post de nom : \" + this.getName());\n if(SerializationUtils.deserialize(message) instanceof _DefaultMessage){\n try {\n _DbConnectionManager.serializeJavaObjectToDB(this.dbConnection, message, this.getName(), _Component.postTableName);\n } catch (SQLException e1) {\n Logger.getGlobal().log(Level.SEVERE,\"Error save default message to bd in component : \" + this.getName());\n e1.printStackTrace();\n }\n }else{\n Logger.getGlobal().log(Level.INFO,\"Impossible de sauvegarder ce message, n'est pas un _DefaultMessage dans le component : \" + this.getName());\n }\n }", "@Override\n protected Map<String, DataPart> getByteData()\n {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(Keys.message, new DataPart(imagename + \".png\", getFileDataFromDrawable(bitmap)));\n return params;\n }", "public byte[] fromMessage(Message message) throws IOException, JMSException;", "private byte[] getExceptionMessageByte(String message) {\n return message.getBytes(StandardCharsets.UTF_8);\n }", "public byte[] getBytes(){\n\t\treturn message;\n\t}", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "@Override\n public byte[] getMessage() {\n jsonData = textPane.getText();\n return buildData();\n }", "byte[] getStructuredData(String messageData);", "@Override\n public void onByteArrayMessage(ReceivedByteArrayMessage message) {\n //ignore the message\n }", "private static byte[] messageDataAndMetadata(Message message) {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\n try {\n IOHelper.writeByteArray(message.data, byteStream);\n IOHelper.writeInt(message.senderID, byteStream);\n IOHelper.writeInt(message.blockIndex, byteStream);\n IOHelper.writeInt(message.sequenceNumber, byteStream);\n IOHelper.writeLong(message.date, byteStream);\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return byteStream.toByteArray();\n }", "public ByteArrayConversionException(String message) {\n super(message);\n }", "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n try {\n data = new String(arg0, \"UTF-8\");\n createMsg(data.trim());\n tvAppend(txtResponse, data);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "public Message toMessage(byte[] data) throws IOException, JMSException;", "MessageFile(final String name) {\n this.name = name;\n }", "@Override\n protected Message receiveMessage() throws IOException {\n String encoded = this.din.readUTF();\n this.lastMessage = new Date();\n String decodedXml = new String(\n DatatypeConverter.parseBase64Binary(encoded));\n\n return Message.msgFromXML(decodedXml);\n }", "public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "com.google.protobuf.ByteString\n getMessageBytes();", "@Override\n\t\t\t\tpublic void fileTransferRecv(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, byte[] buffer, int size) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void processMessage(byte[] message) {\n\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n try {\n ultimoDadoRecebido = ultimoDadoRecebido + new String(arg0, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "private static byte[] getLsfileaeMessage100() throws HeaderPartException, HostMessageFormatException {\r\n Map < String, Object > map = new HashMap < String, Object >();\r\n map.put(Constants.CICS_PROGRAM_NAME_KEY, \"LSFILEAE\");\r\n map.put(Constants.CICS_LENGTH_KEY, \"79\");\r\n map.put(Constants.CICS_DATALEN_KEY, \"6\");\r\n \r\n LegStarMessage legstarMessage = new LegStarMessage();\r\n legstarMessage.setHeaderPart(new LegStarHeaderPart(map, 0));\r\n legstarMessage.addDataPart(new CommareaPart(\r\n HostData.toByteArray(LsfileaeCases.getHostBytesHexRequest100())));\r\n return legstarMessage.toByteArray();\r\n\r\n }", "@Override\n public void setMessageBytes(byte[] messageContentBytes) throws AntException {\n\n }", "public static SimpleMessageObject createMessageObject(byte[] data) {\n SimpleMessageObject retVal = new SimpleMessageObject();\n \n // data is of the form:\n // byte(data type)|int(length of name)|name|int(length of value)|value\n boolean keepGoing = true;\n int currentPointer = 0;\n while(keepGoing) {\n int type = data[currentPointer];\n int bytesToRead = 0;\n String name;\n currentPointer++;\n switch(type) {\n //String\n case 0x73:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n String stringValue = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addString(name, stringValue);\n break;\n \n //int\n case 0x69:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n int intValue = DataConversions.getInt(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addInt(name, intValue); \n break;\n \n //long\n case 0x6c:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n long longValue = DataConversions.getLong(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addLong(name, longValue);\n break;\n \n //double\n case 0x64:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n double doubleValue = DataConversions.getDouble(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addDouble(name, doubleValue); \n break;\n \n //float\n case 0x66:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n float floatValue = DataConversions.getFloat(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addFloat(name, floatValue); \n break;\n \n //char\n case 0x63:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n char charValue = DataConversions.getChar(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addChar(name, charValue);\n break;\n \n //byte array\n case 0x62:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n byte[] byteValue = DataConversions.getByteArray(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addByteArray(name, byteValue);\n break;\n }\n \n if(currentPointer == data.length) {\n keepGoing = false;\n }\n }\n \n return retVal;\n }", "public void EnviarWithAdjunto(String destino, String asunto, String cuerpo, byte[] adjunto)\n {\n /*\n * \n email: [email protected]\n pasword: Comer2010\n * Servidor de correo saliente (SMTP): smtp.redmoon.es\n * Servidor de correo entrante (POP/IMAP/IMAP SSL): mail.redmoon.es\n */\n \n\n // Get system properties\n Properties propiedades = new Properties();\n \n // Setup mail server\n \n propiedades.setProperty(\"mail.smtp.host\", host);\n propiedades.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n propiedades.setProperty(\"mail.smtp.auth\", \"true\");\n propiedades.setProperty(\"mail.user\", \"[email protected]\");\n propiedades.setProperty(\"mail.password\", \"Comer2010\");\n propiedades.setProperty(\"mail.smtp.port\", \"25\");\n \n // no estoy seguro\n //propiedades.setProperty(\"mail.mime.multipart.ignoreexistingboundaryparameter\", \"true\");\n \n // creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(usuario, passwd);\n }\n };\n \n // Get the default Session object.\n Session session = Session.getInstance(propiedades, auth);\n\n \n \n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n //message.setHeader(\"Content-Type\",\"multipart/mixed; boundary=\\\"frontera\\\"\");\n \n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(destino));\n\n // Set Subject: header field\n message.setSubject(asunto);\n\n // Create the message part \n BodyPart messageBodyPart = new MimeBodyPart();\n\n // Fill the message\n messageBodyPart.setText(cuerpo);\n \n // Create a multipar message\n Multipart multipart = new MimeMultipart();\n\n \n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n\n // Part two is attachment\n //messageBodyPart = new MimeBodyPart();\n //String filename = \"myTabla.pdf\";\n \n // Type of mail, only sopported types related (html) and mixed.\n DataSource ds = new ByteArrayDataSource(adjunto, \"multipart/mixed\");\n //DataSource ds = new ByteArrayDataSource(bytes, \"multipart/\"+type);\n\n\tMimeMultipart mp = new MimeMultipart(ds);\n \n\tMimeMultipart multiPart = new MimeMultipart(\"mixed\");\n\n\tfor (int i = 0; i < mp.getCount(); i ++) {\n multiPart.addBodyPart(mp.getBodyPart(i));\n\t}\n\n /*DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n \n multipart.addBodyPart(messageBodyPart);*/\n\n // Send the complete message parts\n message.setContent(multipart);\n\n // Send message\n Transport.send(message);\n //System.out.println(\"Sent message successfully....\");\n \n }catch (MessagingException mex) {\n Logger.getLogger(SendEmail.class.getName()).log(Level.SEVERE, null, mex);\n }\n }", "public void onDataReceived(byte[] data, String message) {\n }", "private void receberMensagem() throws Exception {\n\t\ttry {\n\t\t\tbyte[] buffer = new byte[1000];\n\t\t\tMessage mensagem;\n\t\t\tDatagramPacket messageIn = new DatagramPacket(buffer, buffer.length);\n\n\t\t\tthis.socket.receive(messageIn);\n\n\t\t\tmensagem = Message.fromBytes(buffer);\n\n\t\t\tSystem.out.println(mensagem.toString());\n\n\t\t\tif (!mensagem.getRemetente().equals(this.identificador)) {\n\t\t\t\tbyte[] chavePublicaRemetenteBytes = this.listaChavesPublicas.get(mensagem.getRemetente());\n\n\t\t\t\tif (mensagem.getTipoMensagem().equals(EnumMessageType.ENTRADA)\n\t\t\t\t\t\t|| mensagem.getTipoMensagem().equals(EnumMessageType.RESPOSTA_ENTRADA)) {\n\t\t\t\t\tchavePublicaRemetenteBytes = mensagem.getChavePublica();\n\t\t\t\t}\n\n\t\t\t\tmensagem.validar(chavePublicaRemetenteBytes);\n\n\t\t\t\tthis.tratarMensagem(mensagem);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception(\"Erro ao receber mensagem\");\n\t\t}\n\t}", "public String getMessageContent()\n throws UnsupportedEncodingException {\n if ( this.messageContent == null && this.messageContentBytes == null )\n return null;\n else if (this.messageContent == null) {\n ContentType contentTypeHeader =\n (ContentType) this.nameTable.get(ContentType.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n this.messageContent =\n new String(messageContentBytes,charset);\n } else {\n this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n } else this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n return this.messageContent;\n }", "private byte[] decode(byte[] msg) {\r\n\t\treturn Base64.decode(msg); \r\n\t}", "private void uploadByteArray(ByteArrayOutputStream bytes, String messageType) {\n DatabaseReference databaseReference = rootReference.child(NodeNames.MESSAGES).child(currentUserId).child(chatUserId).push();\n String pushId = databaseReference.getKey();\n\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n String folderName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?Constants.MESSAGE_VIDEOS:Constants.MESSAGE_IMAGES;\n String fileName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?pushId+\".mp4\":pushId+\".jpg\";\n\n StorageReference fileReference = storageReference.child(folderName).child(fileName);\n UploadTask uploadTask = fileReference.putBytes(bytes.toByteArray());\n uploadProgress(uploadTask, fileReference, pushId, messageType);\n }", "@Override\r\n\t\t\t\t// here the messageReceived method is implemented\r\n\t\t\t\tpublic void messageReceived(String message) {\n\t\t\t\t\tpublishProgress(message);\r\n\t\t\t\t\t// serverMessage[0] = message;\r\n\r\n\t\t\t\t\tserverMessage[count] = message;\r\n\r\n\t\t\t\t\t// count++;\r\n\t\t\t\t\tLog.i(\"TAG\", count + \"辞獄拭辞 閤精 葵: \" + serverMessage[count]);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Log.i(\"TAG\", \"0腰属閤精 葵: \" + serverMessage[0]);\r\n\t\t\t\t\t * Log.i(\"TAG\", \"1腰属 閤精 葵: \" + serverMessage[1]);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}", "public static void sendResponse(String message, MessageReceivedEvent event)\n {\n List<String> bits = splitMessage(message);\n if(bits.size() > maxMessages)\n {\n if(event.isPrivate() || PermissionUtil.checkPermission(event.getTextChannel(), event.getJDA().getSelfInfo(), Permission.MESSAGE_ATTACH_FILES))\n {\n event.getChannel().sendTyping();\n String header = bits.get(0);\n header = header.split(\"\\n\",2)[0];\n if(header.length()>100)\n {\n header = header.substring(0,100);\n int index = header.lastIndexOf(\" \");\n if(index!=-1)\n header = header.substring(0,index);\n }\n File f = OtherUtil.writeArchive(message, \"Result\");\n event.getChannel().sendFileAsync(f, new MessageBuilder().appendString(header).build(), m -> {\n CallDepend.getInstance().add(event.getMessage().getId(), m);\n });\n return;\n }\n bits = bits.subList(0, maxMessages);\n String lastBit = bits.get(maxMessages-1);\n if(lastBit.length()>(2000-30))\n lastBit = lastBit.substring(0,1970);\n lastBit+=\"(...message too long!)\";\n bits.set(maxMessages-1, lastBit);\n }\n bits.stream().forEach((bit) -> {\n event.getChannel().sendMessageAsync(bit, m -> {\n if(!event.isPrivate())\n CallDepend.getInstance().add(event.getMessage().getId(), m);\n });\n });\n }", "private String mbrec(String message) {\r\n\t\treturn \"Reading \" + filename + \": \" + message;\r\n\t}", "public String readNwrite() {\n if (encoded) {\n try {\n msgEncoded = Files.readAllLines(msgEncodedPath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n for (String line : msgEncoded) {\n try {\n Files.writeString(msgClearPath, transCoder.decodeMsg(line) + System.lineSeparator(), StandardOpenOption.CREATE, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return \"Votre message à bien été décodé, retrouvez le ici : \" + msgClearPath;\n } else {\n try {\n msgClear = Files.readAllLines(msgClearPath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n for (String line : msgClear) {\n try {\n Files.writeString(msgEncodedPath, transCoder.encodeMsg(line) + System.lineSeparator(), StandardOpenOption.CREATE, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return \"Votre message à bien été codé, retrouvez le ici : \" + msgEncodedPath;\n }\n }", "com.google.protobuf.ByteString\n getTheMessageBytes();", "public void onReceive(Object message) throws Throwable {\n if(message instanceof InitPublish) {\n //String fileDirectory = getAbsolutePath(directory,fileName);\n\n //send ce-bay message to publish the given file\n cebay.tell(new Publish(filePath, hashedFileName(), seederAddress()), getSelf());\n //receiving this message if someone wants to download our file\n } else if(message instanceof GetFile) {\n GetFile requestedFile = (GetFile) message;\n if(requestedFile.name().equals(this.fileName)) {\n byte[] data = new byte[(int)file.length()];\n FileInputStream fis = new FileInputStream(file);\n if(fis.read(data) != -1) {\n //send the sender a message with the requested file as byte[]\n getSender().tell(new FileRetrieved(data), getSelf());\n }\n fis.close();\n\n } else {\n //if a file is requested which we don't provide send the sender a fileNotFount-message\n getSender().tell(new FileNotFound(requestedFile.name()), getSelf());\n }\n //receiving this message from ce-bay\n } else if (message instanceof GetStatus) {\n //sending the message statusRetrieved back to ce-bay\n getSender().tell(new StatusRetrieved(), getSelf());\n } else {\n //if unknown message\n getSender().tell(\"Diese Nachricht konnte nicht verarbeitet werden!\", getSelf());\n }\n }", "public Message(MessageKey key, String data) {\n\tthis.key = key;\n\tthis.data = data;\n\n\tattachment = null;\n }", "public void sendFileMessage(String msg) throws IOException {\n\t\t\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\t\n\t\tString[] tokens = msg.split(\"\\\\.(?=[^\\\\.]+$)\");\n\t\tMessage fileMessage = null;\n\t\ttry {\n\t\t\tfileMessage = Message.makeFileMessage(getUserName(), fileToByte(msg), tokens[1]);\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsocketConnection.print(fileToByte(msg),getUserName(),msg);\n\t\t\n\t}", "private void recibirArchivo() {\n \t int tam;\r\n \t try {\r\n \t\t String nombreArchivo = dis.readUTF().toString(); \r\n \t \r\n\t // Obtenemos el tamaño del archivo\r\n\t tam = dis.readInt(); \r\n\t\r\n\t // System.out.println( \"Recibiendo archivo \"+nombreArchivo );\r\n\t \r\n\t // Creamos flujo de salida, este flujo nos sirve para \r\n\t // indicar donde guardaremos el archivo\r\n\t fos = new FileOutputStream( \"C:\\\\Users\\\\feder\\\\\"+nombreArchivo );\r\n\t out = new BufferedOutputStream( fos );\r\n\t in = new BufferedInputStream( socket.getInputStream() );\r\n\t\r\n\t // Creamos el array de bytes para leer los datos del archivo\r\n\t byte[] buffer = new byte[ tam ];\r\n\t\r\n\t // Obtenemos el archivo mediante la lectura de bytes enviados\r\n\t for( int i = 0; i < buffer.length; i++ )\r\n\t {\r\n\t buffer[ i ] = ( byte )in.read( ); \r\n\t }\r\n\t\r\n\t // Escribimos el archivo \r\n\t out.write( buffer ); \r\n\t\r\n\t // System.out.println( \"Archivo Recibido \"+nombreArchivo );\r\n\t \r\n\t }\r\n\t catch( Exception e )\r\n\t {\r\n\t System.out.println( \"Recibir: \"+e.toString() ); \r\n\t }\r\n }", "private String getTextFromMessage(Message message) throws Exception {\r\n\t\tString result = \"\";\r\n\t\tif (message.isMimeType(\"text/plain\")) {\r\n\t\t\tresult = message.getContent().toString();\r\n\t\t} else if (message.isMimeType(\"multipart/*\")) {\r\n\t\t\tMimeMultipart mimeMultipart = (MimeMultipart) message.getContent();\r\n\t\t\tresult = getTextFromMimeMultipart(mimeMultipart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public MyFile getMyFile() {\r\n\t\tMyFile msg = new MyFile(path);\r\n\t\tString LocalfilePath = path;\r\n\r\n\t\ttry {\r\n\t\t\tFile newFile = new File(LocalfilePath);\r\n\t\t\tbyte[] mybytearray = new byte[(int) newFile.length()];\r\n\t\t\tFileInputStream fis = new FileInputStream(newFile);\r\n\t\t\tBufferedInputStream bis = new BufferedInputStream(fis);\r\n\r\n\t\t\tmsg.initArray(mybytearray.length);\r\n\t\t\tmsg.setSize(mybytearray.length);\r\n\r\n\t\t\tbis.read(msg.getMybytearray(), 0, mybytearray.length);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error send (Files)msg) to Server\");\r\n\t\t}\r\n\t\treturn msg;\r\n\t}", "public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }", "public String readMessage() {\r\n return new String(readMessageAsByte());\r\n }", "public void addMessage(byte[] message) throws RemoteException;", "com.google.protobuf.ByteString\n getLogMessageBytes();", "public void setMessage(byte[] messageContents) {\n currentMessage = messageContents;\n }", "public void setMessageContent(byte[] content) {\n try {\n this.contentLengthHeader.setContentLength(content.length);\n } catch (InvalidArgumentException ex) {}\n \n messageContentBytes = content;\n messageContent = null;\n messageContentObject = null;\n }", "@Override\n protected Object doInBackground() throws Exception {\n InputStream is = null;\n\n MESSAGE responseConn = MessageManger.createCommand(Command.CONNECT, null);\n MessageManger.addParameter(responseConn, \"response\", Command.OK);\n MessageManger.directWriteMessage(responseConn, ccv.getOutputStream());\n\n// ccv.getHelper().sendRequest(\"~OK\\n\");\n is = so.getInputStream();\n\n BufferedReader in = new BufferedReader(new InputStreamReader(is, Util.DEFAULTENCODING));\n String line = \"\";\n\n while ((line = in.readLine()) != null) {\n\n try {\n if (line.startsWith(\"<\")) {\n\n MESSAGE message = MessageManger.parseXML(line);\n\n //non loggo gli xml di dati perchè so troppo lunghi\n if (!message.getName().equals(Request.FILETRANSFER)) {\n log.debug(ccv.getNick() + \" \" + type + \" reder receive MESSAGE : \" + MessageManger.messageToStringFormatted(message));\n } else {\n log.debug(ccv.getNick() + \" \" + type + \" FILETRANSFER RECEIVED\");\n }\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" MESSAGE \">\n if (message.getType().equals(MESSAGE)) {\n\n String messageSt = message.getParameters().getParameter().get(0).getValue();\n Font font = Font.decode(message.getParameters().getParameter().get(1).getValue());\n Color color = Color.decode(message.getParameters().getParameter().get(2).getValue());\n\n //prendo le emoticons dai contents \n List<Emoticon> emoticons = new LinkedList<Emoticon>();\n\n try {\n if (message.getContents() != null) {\n List<MESSAGE.Contents.Content> contents = message.getContents().getContent();\n\n for (MESSAGE.Contents.Content content : contents) {\n\n log.debug(\"received emoticon : \" + content.getName());\n byte[] bs = content.getValue();\n //decomprimo l'immagine\n byte[] imageBytes = chatclient.commons.Util.decompress(bs);\n log.trace(\"data[] : \" + bs);\n// ByteArrayInputStream bais = new ByteArrayInputStream(bs);\n\n// BufferedImage bufferedImage = ImageIO.read(bais);\n// log.trace(\"BufferedImage : \" + bufferedImage);\n Emoticon emotion = new Emoticon();\n emotion.setShortcut(content.getName());\n emotion.setName(content.getName());\n emotion.setImageIcon(new ImageIcon(imageBytes, \"\"));\n emotion.setData(imageBytes);\n log.trace(\"emoticon ImageIcon : \" + emotion.getImageIcon());\n emoticons.add(emotion);\n\n }\n }\n } catch (Exception e) {\n log.warn(e);\n\n }\n\n\n\n if (message.getName().equals(Message.SINGLE)) {\n String sender = message.getSender();\n\n ChatWindow cv = ccv.getHelper().getChatWith(sender);\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n } else if (message.getName().equals(Message.CONFERENCE)) {\n String sender = message.getSender();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(sender);\n log.debug(componentsOfConferenz);\n\n ChatWindow cv = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" REQUEST \">\n } else if (message.getType().equals(REQUEST)) {\n\n if (message.getName().equals(Request.FILETRANSFER)) {\n\n try {\n String fileName = message.getParameters().getParameter().get(0).getValue();\n String fileurl = Util.readProperties().getProperty(\"downloadFolder\") + \"/\" + fileName;\n int packNum = Integer.parseInt(message.getParameters().getParameter().get(3).getValue());\n\n File outputFile = new File(fileurl);\n\n FileOutputStream fos = new FileOutputStream(outputFile, true);\n byte[] bArr = message.getData();\n\n int readed = Integer.parseInt(message.getParameters().getParameter().get(1).getValue());\n log.debug(ccv.getNick() + \"reader readed bytes : \" + readed);\n log.debug(\"write bytes to file : \" + fileurl);\n fos.write(bArr, 0, readed);\n\n fos.close();\n\n ReceiveFileDialog receiveFileDialog = ccv.getHelper().getReceiveFileDialog(fileName, message.getSender());\n receiveFileDialog.setPackReceived(packNum);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTREQUEST)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n String fileName = message.getParameters().getParameter().get(0).getValue();\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n\n ReceiveFileDialog receiveFileDialog = new ReceiveFileDialog(ccv);\n receiveFileDialog.setSender(sender);\n receiveFileDialog.setFile(fileName);\n receiveFileDialog.setFileSize(fileSize);\n\n //grafica\n String infoText = \"<html>File : \" + fileName + \" <br>\" + \"Da : &nbsp&nbsp&nbsp&nbsp<b>\" + sender + \"</b>\" + \" &nbsp&nbsp&nbsp&nbsp Dimensione : \" + (fileSize / 1024) + \"k </html>\";\n receiveFileDialog.getInfoLabel().setText(infoText);\n receiveFileDialog.setTitle(\"Ricezione - \" + fileName);\n receiveFileDialog.getStatusLabel().setText(\"\");\n\n receiveFileDialog.setLocationRelativeTo(ccv.getFrame());\n receiveFileDialog.setVisible(true);\n receiveFileDialog.toFront();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTRESPONSE)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n log.debug(\"sender : \" + sender);\n String fileName = message.getParameters().getParameter().get(0).getValue();\n log.debug(\"fileName : \" + fileName);\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"fileSize : \" + fileSize);\n String response = message.getParameters().getParameter().get(2).getValue();\n log.debug(\"response : \" + response);\n SendFileDialog sendFileDialog = ccv.getHelper().getSendFileDialog(fileName, sender);\n\n if (response.equals(Command.OK)) {\n sendFileDialog.getFileSender().setAccepted(true);\n } else {\n if (sendFileDialog.getFileSender().isAccepted() && sendFileDialog.getFileSender().isActive()) {\n sendFileDialog.transferStoppedFromReceiver();\n } else if (!sendFileDialog.getFileSender().isAccepted()) {\n sendFileDialog.transferRefusedFromReceiver();\n }\n }\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.ADDTOCONFERENCE)) {\n\n try {\n //il priomo elemento è il nick da aggiungere gli alri i membri della conferenza\n String nickToAdd = message.getParameters().getParameter().get(0).getValue();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(message.getSender());\n\n ChatWindow cw = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cw.addClientToChat(nickToAdd);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.STARTGAME)) {\n log.debug(\"start dama game\");\n try {\n\n GameHome home = new GameHome(ccv);\n home.setLocationRelativeTo(ccv.getFrame());\n home.setVisible(true);\n home.startDamaClient(message.getSender());\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.DAMAPOSITION)) {\n try {\n log.debug(\"position for dama\");\n\n int posX = (int) Double.parseDouble(message.getParameters().getParameter().get(0).getValue());\n log.debug(\"posX = \" + posX);\n int posY = (int) Double.parseDouble(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"posY = \" + posY);\n\n DamaCanvas canvas = (DamaCanvas) ccv.getHelper().getGameWith(message.getSender(), DamaCanvas.class);\n log.debug(canvas);\n canvas.setClick(new Point(posX, posY));\n canvas.setMyClick(false);\n canvas.repaint();\n\n } catch (Exception e) {\n //potrebbe da nullpointer\n log.error(e);\n }\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" COMMAND \">\n } else if (message.getType().equals(COMMAND)) {\n\n if (message.getName().equals(Command.REMOVEUSER)) {\n\n String clientToRemove = message.getParameters().getParameter().get(0).getValue();\n\n ArrayList<Client> clients = ccv.getClients();\n ListIterator<Client> li = clients.listIterator();\n boolean continua = true;\n while (li.hasNext() && continua) {\n Client elem = li.next();\n if (elem.getNick().equals(clientToRemove)) {\n log.info(\"remove element : \" + elem);\n clients.remove(elem);\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n listModel.removeElement(elem.getNick());\n ccv.getClientsList().validate();\n ccv.getFrame().pack();\n continua = false;\n }\n }\n }\n\n /*aggiungo un nuovo utente che si è connesso*/\n } else if (message.getName().equals(Command.ADDUSER)) {\n String clientToAdd = message.getParameters().getParameter().get(0).getValue();\n\n ccv.getClients().add(new Client(null, clientToAdd));\n// JList list = ccv.getClientsList();\n int position = ccv.getClientsList().getModel().getSize() - 1;\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n// listModel.add(position, clientToAdd);\n\n// listModel.remove(listModel.size() - 1);\n listModel.addElement(clientToAdd);\n// listModel.addElement(null);\n\n ccv.getClientsList().validate();\n ccv.getFrame().validate();\n\n log.debug(\"utenti connessi : \");\n for (Object elem : listModel.toArray()) {\n\n try {\n log.debug(\"utente : \" + elem.toString());\n } catch (Exception e) {\n log.debug(\"elemento NULLO\");\n }\n }\n }\n }\n\n }\n // </editor-fold>\n\n\n }\n } catch (Exception e) {\n log.error(e);\n }\n }\n\n\n try {\n is.close();\n } catch (IOException ex) {\n log.error(ex);\n }\n return null;\n\n\n }", "private void setContent (Message message) {\n String content = \"\";\n try {\n if (message.getContent() instanceof String) {\n content = (String) message.getContent();\n msgContent.setText(content);\n } else if (message.isMimeType(\"multipart/*\")) {\n Multipart multipart = (Multipart) message.getContent();\n if (multipart.getCount() > 0) {\n int i;\n for (i = 0; i < multipart.getCount(); i++) {\n content += multipart.getBodyPart(i).getContent().toString();\n }\n msgContent.setText(content);\n }\n } else {\n msgContent.setText(\"This message is in an unsupported format.\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n\n }", "private void gravarConteudoMsg(StringBuffer conteudoMsg, int codigoMsg) throws Exception {\n File diretorio = new File(\"Mensagens\");\n if (diretorio.mkdir() || diretorio.exists()) {// Cria um diretório que retorna true se criou e verifica se diretório existe\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(new File(diretorio, codigoMsg + \".txt\"))));\n out.println(conteudoMsg);\n out.close();\n return;\n } catch (IOException ex) {\n throw new Exception(\"Erro ao gravar a mensagem no arquivo\");\n }\n }\n throw new Exception(\"Não é posível salvar a mensagem no arquivo\");\n }", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "com.google.protobuf.ByteString getMsg();", "@Override\n\t\t\t\tpublic int fileTransferSend(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, ByteBuffer buffer, int size) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "abstract void onMessage(byte[] message);", "public ExcepcionArchivoNoLeido(String mensaje) {\n super(mensaje);\n }", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "public void processMessage(byte[] message) {\n try {\n Object receivedMessage = Serializer.deserialize(message);\n processMessage(receivedMessage);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public byte[] deserializeBinFile(byte[] buf){\n int size = buf.length;\n ByteBuffer buffer = ByteBuffer.wrap(buf);\n msgType = buffer.getShort(0);\n byte[] srcIP_temp = new byte[15];\n System.arraycopy(buf, 2, srcIP_temp, 0, 15);\n String srcIP_str = new String(srcIP_temp);\n srcIP = srcIP_str.trim();\n srcPort = buffer.getInt(17);\n desCost = buffer.getFloat(21);\n byte[] desIP_temp = new byte[15];\n System.arraycopy(buf, 25, desIP_temp, 0, 15);\n String desIP_str = new String(desIP_temp);\n desIP = desIP_str.trim();\n desPort = buffer.getInt(40);\n byte[] filenameBuf = new byte[filenameSize];\n System.arraycopy(buf, 44, filenameBuf, 0, filenameSize);\n String filename_str = new String(filenameBuf);\n filename = filename_str.trim();\n offset = buffer.getInt(44 + filenameSize);\n checksum = buffer.getShort(44+filenameSize+offsetSize);\n int pos = 44+filenameSize+offsetSize+2;\n if(pos>=size) return null;\n byte[] binBytes = new byte[size-pos];\n System.arraycopy(buf, pos, binBytes, 0, binBytes.length);\n return binBytes;//the returned bin array which does not include the offset.\n }", "private Hashtable<String, Object> getMessageData(String cif, String msg) {\r\n\t\tHashtable<String, Object> messageData = super.getMessageData();\r\n\t\tVector<Object> v = new Vector<Object>();\r\n\t\tv.add(\"SUPERVISOR\");\r\n\t\tmessageData.put(\"UsuarioDestino\", v);\r\n\t\tString contenido = msg;\r\n\t\tmessageData.put(INoticeSystem.NOTICE_CONTENT, contenido);\r\n\t\treturn new Hashtable<String, Object>(messageData);\r\n\t}", "public void tratarMensagemRecebida(String msg){\n String comando = msg.substring(0, 8); //Extrai o comando \n String payLoad = msg.replaceFirst(comando, \"\");\n String campo[];\n\n // Trata a mensagem conforme o protocolo\n switch (comando){\n\n case Protocolo.CHAT_MSG:\n String data;\n data = usuarioBySocket(usuarioVector, cliente).getNome() + \" enviou: \" + payLoad;\n enviarMensagemParaTodosChat(Protocolo.CHAT_MSG, data);\n break;\n\n case Protocolo.CHAT_SAI: \n enviarMensagemParaUmUsuario(Protocolo.CHAT_SAI, \"\");\n String notificacao = usuarioBySocket(usuarioVector, cliente).getNome() + \" acabou de sair.\";\n enviarMensagemParaTodosChat(Protocolo.CHAT_NOT, notificacao);\n enviarMensagemParaTodosChat(Protocolo.CHAT_REM, usuarioBySocket(usuarioVector, cliente).getNome());\n removeUsuario(usuarioVector, cliente);\n System.out.println(\"Removeu Usuario \"); \n break; \n \n case Protocolo.IMG_CQUA:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CQUA, \"\"+idImg+\":10\"+\":10\"); \n Imagem quadrado = new Imagem(idImg++, TipoFigura.QUADRADO, 10, 10);\n imagemVector.add(quadrado);\n System.out.println(\"Criar Quadrado\"); \n break;\n\n case Protocolo.IMG_CCIR:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CCIR, \"\"+idImg+\":10\"+\":10\"); \n Imagem circulo = new Imagem(idImg++, TipoFigura.CIRCULO, 10, 10);\n imagemVector.add(circulo);\n System.out.println(\"Removeu Circulo \"); \n break;\n \n case Protocolo.IMG_CTRI:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CTRI, \"\"+idImg+\":10\"+\":10\"); \n Imagem triangulo = new Imagem(idImg++, TipoFigura.TRIANGULO, 10, 10);\n imagemVector.add(triangulo);\n System.out.println(\"Criar Triangulo \"); \n break;\n \n case Protocolo.IMG_REMO:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_REMO, \"\"+payLoad);\n removeImagem(imagemVector, Integer.parseInt(payLoad));\n System.out.println(\"Removeu Figura id= \" + payLoad); \n break;\n \n case Protocolo.IMG_MOVE:\n campo = payLoad.split(\":\"); //pega id, posX e posY da figura\n atualizaPosicaoImagem(Integer.parseInt(campo[0]), Integer.parseInt(campo[1]), Integer.parseInt(campo[2]));\n enviarMensagemParaTodosEdicao(Protocolo.IMG_MOVE, payLoad); \n System.out.println(\"Mover figura\");\n break;\n \n case Protocolo.PNL_MOVP:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVP, payLoad);\n System.out.println(\"Movendo Mouse\");\n break;\n \n case Protocolo.PNL_MOVF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVF, payLoad);\n System.out.println(\"Movendo Mouse na figura\");\n break;\n\n case Protocolo.PNL_DRGF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_DRGF, payLoad);\n System.out.println(\"Movendo Mouse na figura Drag\");\n break;\n \n default:\n System.out.println(\"Case Default - MSG Recebida: \" + comando);\n }\n }", "byte[] encode(IMessage message) throws IOException;", "public void getFile(byte[] data, String name,String server) throws RemoteException;", "com.google.protobuf.ByteString\n getMsgBytes();", "private void messagesLoad(String mesagesFileName) throws IOException {\n String temp = new String(Files.readAllBytes(Paths.get(mesagesFileName)));\n String allMessages = stripAccents(temp); // only if you use mockmock or an non UTF-8 compatible SMPT server\n \n //then we split the String into an ArrayList of String\n //in the file messages.utf8 we have used \"=_=_=\" as seperator\n messages = new ArrayList<String>(Arrays.asList(allMessages.split(\"=_=_=\\n\")));\n }", "public String getData() {\n return message;\n }", "public com.google.protobuf.ByteString getMsgData() {\n return msgData_;\n }", "@Override\n\tpublic void decodeMsg(byte[] message) {\n\t\t\n\t\tIoBuffer buf = IoBuffer.allocate(message.length).setAutoExpand(true);\n\t\tbuf.put(message);\n\t\tbuf.flip();\n\t\t\n\t\tslaveId = buf.get();\n\t\tcode = buf.get();\n\t\toffset = buf.getShort();\n\t\tdata = buf.getShort();\n\n\t\tif(buf.remaining() >= 2)\n\t\t\tcrc16 = buf.getShort();\n\t}", "public String receiveString(){\n\t\ttry{\n\t\t\tString s = (String) in.readObject();\n\t\t\tSystem.out.println(\"Empfange Nachricht \" + s);\n\t\t\treturn s;\n\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }", "ByteBuf getMessageBody();", "@Override\n\tpublic void sendMessage(ByteArrayOutputStream byteArrayOutputStream) {\n\n\t\tbyte[] messageUnChoke = new byte[28];\n\n\t\t// First 8 bytes planeID\n\t\tfor (int i = 0; i < planeID.length; i++) {\n\t\t\tmessageUnChoke[i] = planeID[i];\n\t\t}\n\t\t// Next 4 bytes for length of message\n\t\tfor (int i = 0; i < LENGTH.length; i++) {\n\n\t\t\tmessageUnChoke[i + 8] = LENGTH[i];\n\t\t}\n\t\t// Next 4 bytes for priority of message\n\t\tmessageUnChoke[12] = (byte) (PRIORITY >>> 24);\n\t\tmessageUnChoke[13] = (byte) (PRIORITY >> 16 & 0xFF);\n\t\tmessageUnChoke[14] = (byte) (PRIORITY >> 8 & 0xFF);\n\t\tmessageUnChoke[15] = (byte) (PRIORITY & 0xFF);\n\t\t// Next 4 bytes for PosX of Plane\n\t\tmessageUnChoke[16] = (byte) (posx >>> 24);\n\t\tmessageUnChoke[17] = (byte) (posx >> 16 & 0xFF);\n\t\tmessageUnChoke[18] = (byte) (posx >> 8 & 0xFF);\n\t\tmessageUnChoke[19] = (byte) (posx & 0xFF);\n\t\t// Next 4 bytes for PosY of message\n\t\tmessageUnChoke[20] = (byte) (posy >>> 24);\n\t\tmessageUnChoke[21] = (byte) (posy >> 16 & 0xFF);\n\t\tmessageUnChoke[22] = (byte) (posy >> 8 & 0xFF);\n\t\tmessageUnChoke[23] = (byte) (posy & 0xFF);\n\t\t// Next 4 bytes for Type of message\n\t\tmessageUnChoke[24] = (byte) (type.ordinal() >>> 24);\n\t\tmessageUnChoke[25] = (byte) (type.ordinal() >> 16 & 0xFF);\n\t\tmessageUnChoke[26] = (byte) (type.ordinal() >> 8 & 0xFF);\n\t\tmessageUnChoke[27] = (byte) (type.ordinal() & 0xFF);\n\n\t\ttry {\n\n\t\t\tbyteArrayOutputStream.write(messageUnChoke);\n\n\t\t} catch (IOException e) {\n\n\t\t\tSystem.err.println(\"Message UnChoke failed to send\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "protected BytesMessage mockMQMessage(byte[] mockByteArray) throws JMSException {\n if (mockByteArray == null) {\n mockByteArray = dummyByteArray;\n }\n\n BytesMessage message = Mockito.mock(BytesMessage.class);\n\n // The Code Under Test needs these from the mocked BytesMessage:\n // byte[] data = new byte[(int) bytesMessage.getBodyLength()];\n // bytesMessage.readBytes(data);\n // Set getJMSMessage() on the message object of suffer headaches from this code base\n \n final byte[] finalMockByteArray = mockByteArray;\n \n //final byte[] destinationByteArray;\n //System.arraycopy(finalMockByteArray, 0, destinationByteArray, 0,\n // finalMockByteArray.length);\n \n \n Answer<?> answer = invocation -> {\n final byte[] destinationByteArray = (byte[])invocation.getArguments()[0];\n System.arraycopy(finalMockByteArray, 0, destinationByteArray, 0,\n finalMockByteArray.length);\n return null;\n };\n\n \n Mockito.when(message.getJMSMessageID()).thenReturn(\"TestId\");\n Mockito.when(message.getBodyLength()).thenReturn(new Long(mockByteArray.length));\n Mockito.when(message.readBytes(Mockito.any())).then(answer);\n return message;\n }", "protected NullMidiMessage(byte[] data) {\n super(data);\n }", "public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what){\n\t\t\tcase 0:\n \tBitmap bmp = null;\n \tbmp = Bitmap.createBitmap( mface.cols(), mface.rows(), Bitmap.Config.ARGB_8888);\n \tUtils.matToBitmap(mface, bmp);\n \tmFaceView.setImageBitmap(bmp);\n \tmFaceView.invalidate();\n \tmFaceView.setVisibility(View.VISIBLE);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tString id = (String)(msg.obj);\n\t\t\t\tmTextView.setText(\" 姓 名:\" + id);\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(INTENT_PATH_DATA, id+\".jpg\");\n\t\t\t\tLog.i(TAG, \"handleMessage id\" + id);\n\t\t\t\tFrActivity.this.setResult(Activity.RESULT_OK, intent);\n\t\t\t\tFrActivity.this.finish();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private PeerProtocolMessage readNormalMessage() throws IOException{\r\n\t\tbyte[]length=new byte[4];\r\n\t\tthis.inputStream.read(length);\r\n\t\tint lengthInt=ToolKit.bigEndianBytesToInt(length, 0);\r\n\t\tbyte[]message= new byte[lengthInt];\r\n\t\tthis.inputStream.read(message);\r\n\t\tbyte[]result=new byte[length.length+message.length];\r\n\t\tSystem.arraycopy(length, 0, result, 0, length.length);\r\n\t\tSystem.arraycopy(message, 0, result, length.length, message.length);\r\n\t\treturn PeerProtocolMessage.parseMessage(result);\r\n\t}", "@Override\n public void onMessage(WebSocket webSocket, ByteString bytes) {\n Message msg=new Message();\n msg.what=0x666;\n msg.obj=new String(bytes.toByteArray());\n handler.sendMessage(msg);\n }", "public synchronized void receiveFile(byte[] passedByteArray){\n\n try {\n \n if( passedByteArray.length + fileByteCounter > fileSize ){\n int diff = (int) (fileSize - fileByteCounter);\n passedByteArray = Arrays.copyOf(passedByteArray, diff);\n }\n \n //Copy over the bytes\n aFileStream.write(passedByteArray);\n fileByteCounter += passedByteArray.length;\n// fileDigest.update(passedByteArray);\n// DebugPrinter.printMessage(this, \"Receiving file, bytes: \" + fileByteCounter);\n \n //If the byte count has passed the file size than send a finished message\n //so the socket can be closed\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n\n } catch (IOException ex) {\n\n Log.log(Level.SEVERE, NAME_Class, \"receiveFile()\", ex.getMessage(), ex);\n\n //Clear all the file transfer variables\n cleanupFileTransfer();\n\n }\n\n }", "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "protected FileMessage(MessageWireType wireId) {\n super(wireId);\n }", "public Message createEventMessage() throws JMSException\n {\n TextMessage msg = _session.createTextMessage();\n msg.setText(_payload);\n msg.setStringProperty(Statics.FILENAME_PROPERTY, new File(_filename).getName());\n\n return msg;\n }" ]
[ "0.63134396", "0.6168197", "0.6082145", "0.6044097", "0.59999317", "0.5945019", "0.5785569", "0.5776688", "0.5770278", "0.5749989", "0.574329", "0.5728989", "0.5718754", "0.566173", "0.56467617", "0.56316835", "0.56198376", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.56003314", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5596222", "0.5582523", "0.5578471", "0.5569001", "0.5562387", "0.5547418", "0.5531535", "0.5475004", "0.5471906", "0.5471752", "0.5462264", "0.5453893", "0.5452342", "0.5451716", "0.5450502", "0.54474586", "0.5440012", "0.5437519", "0.5427698", "0.54184717", "0.5415575", "0.54095197", "0.53957593", "0.5383696", "0.5374851", "0.5370032", "0.53589576", "0.5348829", "0.5324039", "0.53190476", "0.5318228", "0.53035116", "0.53018886", "0.5301769", "0.5300593", "0.5283678", "0.52781683", "0.5268465", "0.52657396", "0.52596563", "0.5245689", "0.52295595", "0.5223662", "0.5219946", "0.521904", "0.5209898", "0.5197229", "0.519318", "0.51803863", "0.51646805", "0.51558745", "0.51513827", "0.51489365", "0.5148186", "0.5147847", "0.5147801", "0.5144773", "0.51426905", "0.51401323", "0.51398087", "0.5138361", "0.5134462", "0.51327807", "0.5132415", "0.51302344" ]
0.53867877
58
/ fileReader Method It uses bufferedReader to read line by line until the last line. Every line it will split the line string every " " and create an array of Strings. The "if"s and "else"s will catch the right lines by its patterns,give it the right treatment, and proceed with the while loop.
public void fileReader2(String fin) throws IOException { Decoder decoder = new Decoder(); Map<String,String> dicionario = new HashMap<String,String>(); Map<String,Integer> colecaoMetais = new HashMap<String,Integer>(); BufferedReader br; String alien_Sound_1,alien_Sound_2,alien_Sound_3,alien_Sound_4; try { br = new BufferedReader(new FileReader(fin)); int numLinhas = 0; String line = null; while ((line = br.readLine()) != null) { /* Read up to 7 lines of Notations and saves it on a HashMap. */ if(((line.substring(5,6)).equals("is")) && numLinhas<7){ String AlienLang = line.substring(0,4); String RomanNumeral = line.substring(8); dicionario.put(AlienLang,RomanNumeral); System.out.println(AlienLang+" "+RomanNumeral); } /* Read the info given: unidades, creditos and the type of the metal. And it saves the metal and its value in a HashMap. */ else if(line.charAt(line.length()-1) != '?' && (line.substring(0,6).equals("quanto ")==false) || line.substring(0,6).equals("quantos")==false){ int unidadesInt = decoder.romanToInt((dicionario.get(line.substring(0,3)) + dicionario.get(line.substring(5,8)))); String metal = dicionario.get(line.substring(10,13)); int creditos = decoder.romanToInt(dicionario.get(line.substring(20,21))); int metalValor = creditos/unidadesInt; colecaoMetais.put(metal,metalValor); System.out.println(metal +" "+ metalValor); } /* Recongnizes that this a question "quanto vale" and calculates it with the numbers given. if the alien numbers given are not known it will print an error messege. */ else if(numLinhas>7 && (line.substring(0,6).equals("quanto "))){ alien_Sound_1 = line.substring(12,15); alien_Sound_2 = line.substring(17,20); alien_Sound_3 = line.substring(22,25); alien_Sound_4 = line.substring(27,30); if(((dicionario.containsKey(alien_Sound_1) == false || (dicionario.containsKey(alien_Sound_2)) == false) || (dicionario.containsKey(alien_Sound_3)) == false) || (dicionario.containsKey(alien_Sound_4)) == false){ System.out.println("I have no idea what you are talking about"); } int finalCreditos = decoder.romanToInt(dicionario.get(alien_Sound_1) + (dicionario.get(alien_Sound_2)) + (dicionario.get(alien_Sound_3) + (dicionario.get(alien_Sound_4)))); System.out.println(alien_Sound_1 +" "+ alien_Sound_2 +" "+ alien_Sound_3 +" "+ alien_Sound_4 +" is "+ finalCreditos); } /* Recongnizes that this a question "quantos créditos são" and calculates it with the numbers and kind of metal given. if the alien numbers given or the metal are not known it will print an error messege. */ if(line.charAt(line.length()-1) == '?' && (line.substring(0,6).equals("quantos"))){ alien_Sound_1 = line.substring(21,24); alien_Sound_2 = line.substring(26,29); alien_Sound_3 = line.substring(31,34); if(((dicionario.containsKey(alien_Sound_1) == false) || (dicionario.containsKey(alien_Sound_2) == false) || (colecaoMetais.containsKey(alien_Sound_3) == false))){ System.out.println("I'm sorry Dave, I'm afraid I can't do that"); } int finalUnidades = decoder.romanToInt(dicionario.get(alien_Sound_1) + (dicionario.get(alien_Sound_2))); int valorMetal = colecaoMetais.get(alien_Sound_3); int finalMetalValue = finalUnidades * valorMetal; System.out.println(alien_Sound_1 +" "+ alien_Sound_2 +" "+ alien_Sound_3 +" is "+ finalMetalValue); } numLinhas++; } br.close(); } catch(IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<String> fileReader(String fileName){\n \n \n //Read a file and store the content in a string array.\n File f = new File(fileName);\n BufferedReader reader = null;\n String tempString = null;\n List<String> fileContent = new ArrayList<String>();\n //String[] fileContent = null;\n //int i = 0;\n \n try {\n reader = new BufferedReader(new FileReader(f));\n while ((tempString = reader.readLine()) != null){\n //while ((fileContent[i] = reader.readLine()) != null){\n fileContent.add(tempString);\n //i++;\n }\n reader.close();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n finally{\n if (reader != null){\n try{\n reader.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }\n }\n \n return fileContent;\n \n }", "private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }", "private String[] splitLine (String fileLine){\n String[] ans = new String[5];\n ans[0] = fileLine.substring(0, fileLine.indexOf(\"!\"));\n ans[1] = fileLine.substring(fileLine.indexOf(\"[\") + 1, fileLine.indexOf(\"]\"));\n String dfTf = fileLine.substring(fileLine.indexOf(\"]!\") + 2);\n ans[3] = dfTf;\n ans[2] = dfTf.substring(0, dfTf.indexOf(\"!\"));\n if (dfTf.contains(\"^\")) {\n ans[4] = dfTf.substring(dfTf.length() - 1);\n ans[3] = ans[3].substring(ans[3].indexOf(\"!\") + 1, ans[3].length() - 2);\n } else\n ans[3] = ans[3].substring(dfTf.indexOf(\"!\") + 1);\n\n return ans;\n }", "public String[] ReadAllFileLines(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n DataInputStream in = null;\n BufferedReader br = null;\n String strLine = \"\";\n String[] stemp = null;\n StringBuffer strbuff = new StringBuffer();\n try {\n //getting file oject\n f = new File(sFilePath);\n if (f.exists()) {\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n // Get the object of DataInputStream\n in = new DataInputStream(fstream);\n //get object for bufferreader\n br = new BufferedReader(new InputStreamReader(in, \"UTF-8\"));\n //Read File Line By Line\n while ((strLine = br.readLine()) != null) {\n strbuff.append(strLine + \"##NL##\");\n }\n\n stemp = strbuff.toString().split(\"##NL##\");\n } else {\n throw new Exception(\"File Not Found!!\");\n }\n\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadAllFileLines : \" + e.toString());\n } finally {\n //Close the input stream\n try {\n br.close();\n } catch (Exception e) {\n }\n try {\n fstream.close();\n } catch (Exception e) {\n }\n try {\n in.close();\n } catch (Exception e) {\n }\n }\n }", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }", "public String[] parseLine() throws IOException, FHIRException {\n\t\tList<String> res = new ArrayList<String>();\n\t\tStringBuilder b = new StringBuilder();\n\t\tboolean inQuote = false;\n\n\t\twhile (more() && !finished(inQuote, res.size())) {\n\t\t\tchar c = peek();\n\t\t\tnext();\n\t\t\tif (c == '\"' && doingQuotes) {\n\t\t\t\tif (ready() && peek() == '\"') {\n\t b.append(c);\n next();\n\t\t\t\t} else {\n\t\t\t inQuote = !inQuote;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!inQuote && c == delimiter ) {\n\t\t\t\tres.add(b.toString().trim());\n\t\t\t\tb = new StringBuilder();\n\t\t\t}\n\t\t\telse \n\t\t\t\tb.append(c);\n\t\t}\n\t\tres.add(b.toString().trim());\n\t\twhile (ready() && (peek() == '\\r' || peek() == '\\n')) {\n\t\t\tnext();\n\t\t}\n\t\t\n\t\tString[] r = new String[] {};\n\t\tr = res.toArray(r);\n\t\treturn r;\n\t}", "private void parse(Reader reader) throws IOException {\n/* 260 */ BufferedReader buf_reader = new BufferedReader(reader);\n/* 261 */ String line = null;\n/* 262 */ String continued = null;\n/* */ \n/* 264 */ while ((line = buf_reader.readLine()) != null) {\n/* */ \n/* */ \n/* 267 */ line = line.trim();\n/* */ \n/* */ try {\n/* 270 */ if (line.charAt(0) == '#')\n/* */ continue; \n/* 272 */ if (line.charAt(line.length() - 1) == '\\\\') {\n/* 273 */ if (continued != null) {\n/* 274 */ continued = continued + line.substring(0, line.length() - 1); continue;\n/* */ } \n/* 276 */ continued = line.substring(0, line.length() - 1); continue;\n/* 277 */ } if (continued != null) {\n/* */ \n/* 279 */ continued = continued + line;\n/* */ \n/* */ try {\n/* 282 */ parseLine(continued);\n/* 283 */ } catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* 286 */ continued = null;\n/* */ \n/* */ continue;\n/* */ } \n/* */ try {\n/* 291 */ parseLine(line);\n/* */ }\n/* 293 */ catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* */ }\n/* 297 */ catch (StringIndexOutOfBoundsException e) {}\n/* */ } \n/* */ }", "private static String[] readFile(String file){\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tString line;\n\t\t\tString data = \"\";\n\t\t\twhile((line = in.readLine()) != null){\n\t\t\t\tdata = data + '\\n' + line;\t\t\t}\n\t\t\tin.close();\n\t\t\tString[] data_array = data.split(\"\\\\n\");\n\t\t\treturn data_array;\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tString[] shouldNeverReturn = new String[1];\n\t\treturn shouldNeverReturn;\n\t}", "@Override\n public String readFile(BufferedReader reader)\n {\n try\n {\n StringBuffer strLine = new StringBuffer();\n String line;\n\n while ((line = reader.readLine()) != null)\n {\n if (!line.startsWith(\"--\", 0))\n {\n strLine.append(line);\n\n // use ; as the command delimiter and execute the query on the database.\n if (line.endsWith(\";\"))\n {\n super.exeQuery(strLine.toString());\n strLine = new StringBuffer();\n }\n }\n }\n\n return strLine.toString();\n }\n catch (IOException ioex)\n {\n logger.error(\"Error reading contents from file.\");\n return null;\n }\n }", "private String[] readLine(BufferedReader r) throws IOException\r\n\t{\r\n\t\tSystem.out.print(\"> \");\r\n\t\tfinal String line = r.readLine();\r\n\t\treturn line != null ? split(line) : null;\r\n\t}", "default String[][] txtReader(String fileString) {\n\t\ttry {\n\t\t\tScanner myReader = new Scanner(new File(fileString));\n\t\t\tArrayList<String[]> lines = new ArrayList<>();\n\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString[] splitted = myReader.nextLine().split(\" \");\n\t\t\t\tlines.add(splitted);\n\t\t\t}\n\n\t\t\tString[][] result = new String[lines.size()][];\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tresult[i] = lines.get(i);\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file is not occurred \" + e.getMessage());\n\t\t}\n\t\treturn null;\n\n\t}", "public static void main(String[] args) throws FileNotFoundException\n\t{\n\t\tFile inputfile = new File(\"Test4.java\"); //output for Test2.java: \"Unbalanced! Symbol } is mismatched\"; \n\t\t//File inputfile = new File(args[0]);\n\t\tScanner in = new Scanner(inputfile);\n\t\t//System.out.println(inputfile.exists());\n\t\tString lines = \"\"; \n\t\t\n\t\tint j=0; \n\t\twhile(in.hasNextLine()) //reading in the whole file and put them into the string. \n\t\t{\n\t\t\tString tempString = in.nextLine(); \n\t\t\t\n\t\t\t//HANDLGING COMMENT BLOCKS: \n\t\t\tif(tempString.contains(\"/*\")) //if the line read contains beginning of comment, discard this line. move on. \n\t\t\t{\n\t\t\t\tcontinue; //go to the next iteration of the loop. \n\t\t\t}\n\t\t\telse if (tempString.contains(\"*\\\\\")) //the line is the end of a comment \n\t\t\t{\n\t\t\t\tcontinue; //don't add this line to the \"lines\" string because it is a comment \n\t\t\t}\n\t\t\telse if(tempString.contains(\"//\")) //same reason as above \n\t\t\t{\n\t\t\t\t//splitting string from http://stackoverflow.com/questions/3481828/how-to-split-a-string-in-java\n\t\t\t\tString[] parts = tempString.split(\"//\"); //splits the string to BEFORE // and AFTER // \n\t\t\t\t//only using the BEFORE part because the rest is just comment --> index 0 in parts[] array \n\t\t\t\tlines=lines.concat(parts[0]);\n\t\t\t\tcontinue; \n\t\t\t}\n\t\t\t\n\t\t\t//HANDING QUOTATION MARKS:\n\t\t\telse if(tempString.contains(\"\\\"\")) //beginning of a quotation \n\t\t\t{\n\t\t\t\tint start = tempString.indexOf(\"\\\"\"); //returns the index of the first occurrence of \" \n\t\t\t\t//System.out.println(\"start is \"+start);\n\t\t\t\tint end = tempString.lastIndexOf(\"\\\"\"); //returns the index of the LAST occurrence of the \"\n\t\t\t\t//System.out.println(\"end is \"+end);\n\t\t\t\tif(start == end) //this means there's only 1 \" in the string-->mismatched\n\t\t\t\t{\n\t\t\t\t\t//lastIndexOf counts from the end of the string. if the end index is the same as the begin index of \" occurance\n\t\t\t\t\t//that means that there's only 1 \" in this line, which usually means that it is mismatched.. \n\t\t\t\t\tSystem.out.println(\"Unbalanced! Symbol \\\" is mismatched\");\n\t\t\t\t\tSystem.exit(0); \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//By replacing the quotations, we ignore the literal string.\n\t\t\t\t\tSystem.out.println(\"This is before trimming: \" + tempString);\n\t\t\t\t\tString newstring = tempString.substring(start, end+1); //returns a new string that is a substring of tempString\n\t\t\t\t\ttempString = tempString.replace(newstring, \"IGNORE\"); //replaces each substring with a replacement string \n\t\t\t\t\tSystem.out.println(\"This is after trimming: \" + tempString); \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//If the line is not a comment line, then concatenate the line to the whole string\n\t\t\tlines = lines.concat(tempString);\n\t\t\t\n\t\t}\n\t\t//System.out.print(lines);\n\t\t//////////////////////////////////////////////////////////////////////////\n\t\tint i=0; //counter as we traverse through the string \n\t\tchar temp = ' '; \n\t\t\n\t\tMyStack<Character> tempstack = new MyStack<Character>(); //NEED TO DECLARE A STACK HERER!!!!!!!! \n\t\t//System.out.println(lines);\n\t\twhile(i!=lines.length())\n\t\t{\n\t\t\t//READING in one character at a time from the string lines -->handle each char one at a time. \n\t\t\ttemp = lines.charAt(i); \n\t\t\t//System.out.print(temp); \n\t\t\tif(temp == '(' || temp=='[' || temp =='{')\n\t\t\t{\n\t\t\t\ttempstack.push(temp); //if the char is an opening symbol, then push onto the stack \n\t\t\t}\n\t\t\telse if ((temp == ')' || temp==']' || temp =='}')&& tempstack.isEmpty()) \n\t\t\t{\n\t\t\t\t//if the character is a closing symbol AND the stack is empty -->ERROR \n\t\t\t\tSystem.out.println(\"Unbalanced! Symbol \" + temp + \" is mismatched.\"); \n\t\t\t\tSystem.exit(0); \n\t\t\t}\n\t\t\telse if((temp == ')' || temp==']' || temp =='}')&& !tempstack.isEmpty()) \n\t\t\t{\n\t\t\t\t//if the character is a closing symbol BUT the stack is NOT empty, then pop the top \n\t\t\t\tchar c = tempstack.pop();\n\t\t\t\t\n\t\t\t\t//compare the top (c) to the temp (current character being read from the string) to see if matched. \n\t\t\t\tif(temp==')'&&(c!='('))\n\t\t\t\t{\n\t\t\t\t\t//unexpected pairing --> ERROR is reported \n\t\t\t\t\tSystem.out.println(\"Unbalanced! Symbol \" + temp + \" is mismatched.\"); \n\t\t\t\t\tSystem.exit(0); \n\t\t\t\t}\n\t\t\t\telse if(temp==']'&&(c!='['))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Unbalanced! Symbol \" + temp + \" is mismatched.\"); \n\t\t\t\t\tSystem.exit(0); \n\t\t\t\t}\n\t\t\t\telse if(temp=='}'&&(c!='{'))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Unbalanced! Symbol \" + temp + \" is mismatched.\"); \n\t\t\t\t\tSystem.exit(0); \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ti++; \n\t\t}\n\t\t\n\t\t//End of file (everything in lines string is read) \n\t\t//it needs to ignore the comment!!! System.out.println(\"Hey! --> \" + tempstack.pop()); \n\t\tif(tempstack.isEmpty()) // if the stack is NOT empty\n\t\t{\n\t\t\tSystem.out.println(\"This file is balanced!\"); \n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Leftover \" + tempstack.pop() + \" in the stack\");\n\t\t\tSystem.out.println(\"File not balanced!\"); \n\t\t}\n\t\t\n\t\t\n\t}", "public char[] newread(String filepath) {\n\n int x;\n char ch;\n numlines = 0;\n BufferedReader br = null;\n BufferedReader cr = null;\n /*stringBuilderdisp for storing data with new lines to display and stringBuilder\n seq for ignoring newlines and getting only sequence chars*/\n StringBuilder stringBuilderdisp = new StringBuilder();\n StringBuilder stringBuilderseq = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n int f = 0;\n\n try {\n\n String sCurrentLine;\n\n br = new BufferedReader(new FileReader(filepath));\n\n while ((sCurrentLine = br.readLine()) != null) {\n if (f == 0 && sCurrentLine.contains(\">\")) {\n fileinfo = sCurrentLine;\n f = 1;\n } else {\n stringBuilderdisp.append(sCurrentLine);\n numlines++;\n if (!(sCurrentLine.isEmpty())) {\n stringBuilderdisp.append(ls);\n }\n\n stringBuilderseq.append(sCurrentLine);\n\n }\n\n }\n\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n //ex.printStackTrace();\n return null;\n\n }\n }\n\n //System.out.println(\"Total lines=\" + numlines);\n\n String seqstr = stringBuilderseq.toString();\n\n sequence = new char[seqstr.length()];\n //extra charflag to indicate that sequence contains charecter other than A,G,C,T\n boolean extracharflag = false, checkindex = false;\n\n for (int i = 0; i < sequence.length; i++) {\n if (seqstr.charAt(i) != '\\n') {\n sequence[i] = seqstr.charAt(i);\n }\n if (extracharflag == false) {\n if ((sequence[i] != 'A') && (sequence[i] != 'T') && (sequence[i] != 'G') && (sequence[i] != 'C')) {//||sequence[i]!='C'||sequence[i]!='G'||sequence[i]!='T'){\n extracharflag = true;\n System.out.print(\"** \" + sequence[i]);\n }\n }\n }\n\n if (extracharflag) {\n // JOptionPane.showMessageDialog(null, \"Sequence Contains Characters other than A G C T\");\n }\n\n int index = 0, flag = 0;\n\n // JOptionPane.showMessageDialog(null, \"Read Successful\");\n //return the sequence with newline properties to display\n //return stringBuilderdisp.toString().toCharArray();\n return sequence;\n\n }", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "private void readFileByLines(String inputName){\n File file = new File(inputName);\n BufferedReader reader = null;\n\n try {\n reader = new BufferedReader(new FileReader(file));\n\n String tempString = null;\n this.inputContent = new StringBuilder();\n\n while((tempString = reader.readLine()) != null){\n this.inputContent.append(tempString);\n this.inputContent.append(\" \");\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }\n }", "public String[] buildEntries(String a) {\n try {\n File file = new File(a);\n Scanner input = new Scanner(file);\n while (input.hasNextLine()) {\n String line=input.nextLine();\n String name=line.substring(line.indexOf(\"\\t\"));\n name=name.substring(0,name.lastIndexOf(\"H\"));\n name=name.substring(0,name.lastIndexOf(\"\\t\"));\n int entries=Integer.parseInt(line.substring(line.lastIndexOf(\"\\t\")+1,line.lastIndexOf(\"E\")));\n while (entries>0) {\n entryList.add(name);\n entries--;\n System.out.println(\"Added: \"+name);\n }\n}\n return drawBE(entryList,a);\n }\n catch(FileNotFoundException b) {\n System.out.println(\"Error, no entries\"); \n String ret[] = new String[6];\n ret[0]=\"NOFILE\";\n return ret;\n }\n }", "List<String> shouldReadFile(BufferedReader file) throws IOException {\n List<String> payments = new ArrayList<>();\n while (true){\n String paymentLine = file.readLine();\n if(paymentLine == null){\n break;\n }\n payments.add(paymentLine);\n }\n file.close();\n return payments;\n }", "public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsString.split(\"\\n\")[fromLine - 1]);\n return newString.toString();\n } else {\n if (toLine > fileAsString.split(\"\\n\").length) {\n toLine = fileAsString.split(\"\\n\").length;\n }\n ;\n for (int i = fromLine - 1; i < toLine; i++) {\n\n newString.append(fileAsString.split(\"\\n\")[i]).append(\"\\n\");\n\n\n }\n }\n\n }\n\n\n return newString.toString();\n }", "private String readLine() throws IOException {\n/* 276 */ String line = null;\n/* */ \n/* */ \n/* 279 */ boolean isLastFilePart = (this.no == 1L);\n/* */ \n/* 281 */ int i = this.currentLastBytePos;\n/* 282 */ while (i > -1) {\n/* */ \n/* 284 */ if (!isLastFilePart && i < ReversedLinesFileReader.this.avoidNewlineSplitBufferSize) {\n/* */ \n/* */ \n/* 287 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ int newLineMatchByteCount;\n/* 292 */ if ((newLineMatchByteCount = getNewLineMatchByteCount(this.data, i)) > 0) {\n/* 293 */ int lineStart = i + 1;\n/* 294 */ int lineLengthBytes = this.currentLastBytePos - lineStart + 1;\n/* */ \n/* 296 */ if (lineLengthBytes < 0) {\n/* 297 */ throw new IllegalStateException(\"Unexpected negative line length=\" + lineLengthBytes);\n/* */ }\n/* 299 */ byte[] lineData = new byte[lineLengthBytes];\n/* 300 */ System.arraycopy(this.data, lineStart, lineData, 0, lineLengthBytes);\n/* */ \n/* 302 */ line = new String(lineData, ReversedLinesFileReader.this.encoding);\n/* */ \n/* 304 */ this.currentLastBytePos = i - newLineMatchByteCount;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 309 */ i -= ReversedLinesFileReader.this.byteDecrement;\n/* */ \n/* */ \n/* 312 */ if (i < 0) {\n/* 313 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ \n/* 319 */ if (isLastFilePart && this.leftOver != null) {\n/* */ \n/* 321 */ line = new String(this.leftOver, ReversedLinesFileReader.this.encoding);\n/* 322 */ this.leftOver = null;\n/* */ } \n/* */ \n/* 325 */ return line;\n/* */ }", "private static String[] readFile(String path) throws FileNotFoundException{\n\t\tjava.io.File file = new java.io.File(path);\n\t\tjava.util.Scanner sc = new java.util.Scanner(file); \n\t\tStringBuilder content = new StringBuilder();\n\t\twhile (sc.hasNextLine()) {\n\t\t String line = sc.nextLine();\n\t\t if (!line.startsWith(\"!--\")){\n\t\t \tline = line.trim();\n\t\t \tString[] lineContent = line.split(\"/\");\n\t\t \tfor (String entry : lineContent){\n\t\t \t\tcontent.append(entry);\n\t\t \t\tcontent.append(\"/\");\n\t\t \t}\n\t\t \tcontent.append(\"!\");\n\t\t }\n\t\t}\n\t\tsc.close();\n\t\treturn content.toString().split(\"!\");\n\t}", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "private static String readNextLine(BufferedReader reader) {\n\t\t\n\t\ttry {\n\t\t\tString line = reader.readLine();\n\t\t\treturn line;\n\t\t} catch(IOException e) {\n\t\t\tGdx.app.error(TAG, \"Failed to read the file\", e);\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch(IOException ex) {\n\t\t\t\tGdx.app.error(TAG, \"Failed to close file\");\n\t\t\t\tGdx.app.exit();\n\t\t\t}\n\t\t\tGdx.app.exit();\n\t\t\treturn null;\n\t\t}\n\t}", "public ArrayList<String> createArray(BufferedReader reader) {\n ArrayList<String> s = new ArrayList<String>();\n try {\n\n for (String x = reader.readLine(); x != null; x = reader.readLine()) {\n s.add(x);\n }\n\n }catch (IOException e)\n {}\n return s;\n }", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public ArrayList<String> createStringArray() throws Exception {\n ArrayList<String> stringsFromFile = new ArrayList<>();\n while (reader.hasNext()) {\n stringsFromFile.add(reader.nextLine());\n }\n return stringsFromFile;\n }", "public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }", "public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}", "private String[] readLine( String line ) throws IOException {\n if ( StringUtils.isBlank( line ) ) {\n return null;\n }\n if ( line.startsWith( \"#\" ) ) {\n return null;\n }\n\n String[] fields = StringUtils.splitPreserveAllTokens( line, '\\t' );\n if ( fields.length < 2 ) {\n throw new IOException( \"Illegal format, expected at least 2 columns, got \" + fields.length );\n }\n return fields;\n\n }", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "private String[] parseLine(final String nextLine, final boolean readLine)\n throws IOException {\n String line = nextLine;\n if (line.length() == 0) {\n return new String[0];\n } else {\n\n final List<String> fields = new ArrayList<String>();\n StringBuilder sb = new StringBuilder();\n boolean inQuotes = false;\n boolean hadQuotes = false;\n do {\n if (inQuotes && readLine) {\n sb.append(\"\\n\");\n line = getNextLine();\n if (line == null) {\n break;\n }\n }\n for (int i = 0; i < line.length(); i++) {\n final char c = line.charAt(i);\n if (c == CsvConstants.QUOTE_CHARACTER) {\n hadQuotes = true;\n if (inQuotes && line.length() > i + 1\n && line.charAt(i + 1) == CsvConstants.QUOTE_CHARACTER) {\n sb.append(line.charAt(i + 1));\n i++;\n } else {\n inQuotes = !inQuotes;\n if (i > 2 && line.charAt(i - 1) != this.fieldSeparator\n && line.length() > i + 1\n && line.charAt(i + 1) != this.fieldSeparator) {\n sb.append(c);\n }\n }\n } else if (c == this.fieldSeparator && !inQuotes) {\n hadQuotes = false;\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n sb = new StringBuilder();\n } else {\n sb.append(c);\n }\n }\n } while (inQuotes);\n if (sb.length() > 0 || fields.size() > 0) {\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n }\n return fields.toArray(new String[0]);\n }\n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public List<List<String>> levelsSplitter(java.io.Reader reader) throws Exception {\r\n BufferedReader bufferedReader = (BufferedReader) reader;\r\n String line;\r\n int fourChecks = 0;\r\n List<List<String>> levels = new ArrayList<>();\r\n List<String> level = new ArrayList<>();\r\n List<String> currentBlockLayOut = new ArrayList<>();\r\n boolean levelBool = false;\r\n boolean blocksBool = false;\r\n this.blocksLayOut = new ArrayList<>();\r\n try {\r\n while ((line = bufferedReader.readLine()) != null) {\r\n if (line.startsWith(\"#\") || line.startsWith(\" \")) { // empty lines and comments\r\n continue;\r\n }\r\n if (line.equals(\"START_LEVEL\")) {\r\n levelBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (levelBool) {\r\n level.add(line);\r\n }\r\n if (line.equals(\"START_BLOCKS\") && !blocksBool) {\r\n blocksBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (blocksBool) {\r\n currentBlockLayOut.add(line);\r\n }\r\n if (line.equals(\"END_BLOCKS\")) {\r\n blocksBool = false;\r\n blocksLayOut.add(currentBlockLayOut);\r\n fourChecks++;\r\n }\r\n if (line.equals(\"END_LEVEL\")) {\r\n levelBool = false;\r\n fourChecks++;\r\n if (fourChecks != 4) {\r\n throw new Exception(\"levels definition format is wrong!\");\r\n }\r\n fourChecks = 0;\r\n levels.add(level);\r\n level = new ArrayList<>();\r\n currentBlockLayOut = new ArrayList<>();\r\n }\r\n }\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found during reading the levels definition file\");\r\n } finally {\r\n if (bufferedReader != null) {\r\n try {\r\n bufferedReader.close();\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found while closing the levels definition file\");\r\n }\r\n }\r\n }\r\n return levels;\r\n }", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args){\n\n\n String fileName = \"allChar.txt\";\n FileReader file;\n BufferedReader buffer;\n String input;\n\n try {\n file = new FileReader(fileName);\n buffer = new BufferedReader(file);\n\n while((input = buffer.readLine()) != null){\n\n //remove all instances of spaces\n input = input.replaceAll(\"\\\\s+\", \"\");\n\n //remove \\n and \\r\n input = input.replace(\"\\n\", \"\");\n input = input.replace(\"\\r\", \"\");\n\n\n for(String word : input.split(\"\")){\n \n System.out.println(word);\n\n }\n\n }\n\n } catch (IOException error){\n System.out.println(error);\n }\n\n\n }", "private List<String> findAnts(String inputFileName) {\n\nList<String> lines = new ArrayList<>();\ntry {\nBufferedReader br = new BufferedReader(new FileReader(inputFileName));\nString line = br.readLine();\nwhile (line != null) {\nlines.add(line);\nline = br.readLine();\n}\n} catch (Exception e) {\n\n}\n\nchar[] splitLineByLetterOrDigit;\nList<String> saveAnts = new ArrayList<>();\n\nfor (int k = 0; k < lines.size(); k++) {\nString singleLine = lines.get(k);\nsplitLineByLetterOrDigit = singleLine.toCharArray();\nfor (int i = 0; i < splitLineByLetterOrDigit.length; i++) {\nif (Character.isLetter(splitLineByLetterOrDigit[i])) {\n// first is row\nsaveAnts.add(String.format(\"%d %d %s\", k, i, splitLineByLetterOrDigit[i]));\n}\n}\n}\n\nreturn saveAnts;\n}", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static String[] getUserInput() throws IOException{\n\t\t//Declare variables to read the file.\n\t\tFileInputStream inFile;\n\t\tInputStreamReader inReader;\n\t\tBufferedReader reader;\n\t\t\n\t\t//The test file that I used in order to run the program.\n\t\tString input = \"test.txt\";\n\t\t\n\t\t//Process the file, get it into a bufferedreader\n\t\tinFile = new FileInputStream (input);\n\t\tinReader = new InputStreamReader(inFile);\n\t\treader = new BufferedReader(inReader);\n\n\t\t//The only reason I do this thing where I make a big long string and then break it up\n\t\t//Is because I wasn't too sure about the rules surrounding things we haven't learned (Arrays)\n\t\tString fileData = \"\";\n\t\t\n\t\t//If there's more data, add the line to the end of the FileData String, with a space in between.\n\t\twhile(reader.ready()){\n\t\t\tfileData += (reader.readLine() + \" \");\n\t\t}\n\t\t\n\t\t//Then, break that line up into an array using the split function.\n\t\treturn breakInput(fileData);\n\t}", "public List<String> parse() {\n String line = null;\n int lineCounter = 0;\n StringBuilder statement = new StringBuilder();\n List<String> statements = new LinkedList<String>();\n Pattern commentPattern = Pattern.compile(\"(//|#|--)+.*$\");\n try {\n while ((line = reader.readLine()) != null) {\n lineCounter++;\n //strip comment up to the first non-comment\n Matcher m = commentPattern.matcher(line);\n if (m.find()) {\n line = line.substring(0, m.start());\n }\n\n //remove leading and trailing whitespace\n\n statement.append(\" \");\n line = statement.append(line).toString();\n line = line.replaceAll(\"\\\\s+\", \" \");\n line = line.trim();\n\n //split by ;\n //Note: possible problems with ; in ''\n String[] tokens = line.split(\";\");\n\n //trim the tokens (no leading or trailing whitespace\n for (int i = 0; i < tokens.length; i++) {\n tokens[i] = tokens[i].trim();\n }\n\n boolean containsSemicolon = line.contains(\";\");\n boolean endsWithSemicolon = line.endsWith(\";\");\n if (!containsSemicolon) {\n //statement is still open, do nothing\n continue;\n }\n if (tokens.length == 1 && endsWithSemicolon) {\n //statement is complete, semicolon at the end.\n statements.add(tokens[0]);\n statement = new StringBuilder();\n continue;\n\n }\n // other cases must have more than 1 token \n //iterate over tokens (but the last one)\n for (int i = 0; i < tokens.length - 1; i++) {\n statements.add(tokens[0]);\n statement = new StringBuilder();\n }\n //last statement may remain open:\n if (endsWithSemicolon) {\n statements.add(tokens[0]);\n statement = new StringBuilder();\n } else {\n statement = new StringBuilder();\n statement.append(tokens[tokens.length - 1]);\n }\n }\n if (statement != null && statement.toString().trim().length() > 0)\n throw new UnclosedStatementException(\"Statement is not closed until the end of the file.\");\n } catch (IOException e) {\n logger.warn(\"An error occurred!\", e);\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n logger.warn(\"An error occurred!\", e);\n }\n }\n return statements;\n }", "public void readInFile(String filename) {\r\n String lineOfData = new String (\"\");\r\n boolean done = false;\r\n //set up the BufferedReader\r\n BufferedReader fin = null;\r\n\ttry {\r\n fin = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\r\n lineOfData = fin.readLine();\r\n\t}\r\n catch(Exception c) {\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n\r\n //read in additional strings until the file is empty\r\n while (done != true){\r\n String temp[] = lineOfData.split(\" \");\r\n graph.add(new Edge(temp[0], temp[1], Integer.parseInt(temp[2]))); //add current string to graph\r\n try {\r\n lineOfData = fin.readLine();\r\n if (lineOfData == null){\r\n done = true;\r\n }\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n }\r\n }", "private ArrayList<String> saveText(){\n FileReader loadDetails = null;\n String record;\n record = null;\n\n //Create an ArrayList to store the lines from text file\n ArrayList<String> lineKeeper = new ArrayList<String>();\n\n try{\n loadDetails=new FileReader(\"employees.txt\");\n BufferedReader bin=new BufferedReader (loadDetails);\n record=new String();\n while (((record=bin.readLine()) != null)){//Read the file and store it into the ArrayList line by line*\n lineKeeper.add(record);\n }//end while\n bin.close();\n bin=null;\n }//end try\n catch (IOException ioe) {}//end catc\n\n return lineKeeper;\n\n }", "public void readViolationList (BufferedReader reader) {\n String line = \"\";\n try {\n reader.readLine();\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n addToViolationList(line);\n }\n } catch (Exception e) {\n }\n }", "public void fileWriterReader() throws Exception {\n\t\tFileReader fr = new FileReader(\"C:\\\\Users\\\\rbajya.ORADEV\\\\Desktop\\\\Testing.txt\");\n//\t\tchar [] arr = {};\n//\t\tfr.read(arr);\n//\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tint i=0;\n\t\twhile((i=fr.read())!=-1){\n\t\t\tchar ch = (char)i;\n\t\t\tif(ch=='\\n'){\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}else if(ch=='/'){\n\t\t\t\tchar ch1 = (char)fr.read();\n\t\t\t\tif(ch1=='/'){\n\t\t\t\t\tSystem.out.print(\"//\");\n\t\t\t\t\tint j=0;\n\t\t\t\t\twhile((j=fr.read())!=-1){\n\t\t\t\t\t\tSystem.out.print((char)j);\n\t\t\t\t\t\tif((char)j=='\\n'){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(ch1=='*'){\n\t\t\t\t\tSystem.out.print(\"/*\");\n\t\t\t\t\tint j=0;\n\t\t\t\t\twhile((j=fr.read())!=-1){\n\t\t\t\t\t\tSystem.out.print((char)j);\n\t\t\t\t\t\tif((char)j=='*'){\n\t\t\t\t\t\t\tint k = fr.read();\n\t\t\t\t\t\t\tif('/'==(char)k){\n\t\t\t\t\t\t\t\tSystem.out.println(\"/\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.println((char)k);\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}else{\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public String[] getFile() throws IOException {\n\t\n\t\n\ttry {\n\tFileReader reader = new FileReader(path);\n\tBufferedReader textReader = new BufferedReader(reader); // creates buffered file reader again\n\t\n\tint numberOfLines = getLines(); // calls the method above to know how many lines there are\n\tString[ ] textData = new String[numberOfLines]; //creates an array the size of the amount of lines the file has\n\t\n\tfor (int i=0; i < numberOfLines; i++) {\n\t\ttextData[ i ] = textReader.readLine(); // go through file and read each line into its own array space\n\t\t}\n\t\n\ttextReader.close( ); //reader is done\n\treturn textData; // return array\n\t} catch (IOException e) {\n\t\tString[] exceptionString = new String[1];\n\t\texceptionString[0] = \"nothing\";\n\t\treturn exceptionString;\n\t}\n}", "public static void readMultiLine(BufferedReader in) {\n try {\n char lastLine;\n fromServer = in.readLine();\n\n while (true) {\n System.out.println(\"<-- \"+ fromServer);\n lastLine = fromServer.charAt(3);\n if (lastLine == ' ') {\n break;\n }\n fromServer = in.readLine();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static ArrayList<String> getLines() throws Exception\n {\n \tArrayList<String> lines = new ArrayList<String>();\n \twhile(reader.ready())\n \t{\n \t\tlines.add(reader.readLine());//reads the line and adds them into the arraylist\n \t}\n \treturn lines;\n }", "public static List<String> readLines(BufferedReader reader) throws IOException {\n List<String> lines = new ArrayList();\n eachLine(reader, lines);\n return lines;\n }", "public String[] openFile() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Set the variable to the number of lines in the text file through the function in this class that is defined below\n\t\tnumberOfLines = readLines();\n\t\t//Creates an array of strings with size of how many lines of data there are in the file\n\t\tString[] textData = new String[numberOfLines];\n\t\t\n\t\t//Loop to read the lines from the text file for the song data\n\t\tfor (int i = 0; i < numberOfLines; i++)\n\t\t{\n\t\t\t//Read data from song file and into the string list\n\t\t\ttextData[i] = textReader.readLine();\n\t\t}\n\t\t\n\t\t//Close the BufferedReader that was opened\n\t\ttextReader.close();\n\t\t\n\t\t//Return the read data from the text file in the form of a string array\n\t\treturn textData;\n\t}", "private static String readFile(String file) throws IOException { //Doesn't work - possible error with FileReader\n //BufferedReader reader = new BufferedReader(new FileReader(file));\n //FileReader reader=new FileReader(file);\n\n\n FileReader file2 = new FileReader(file);\n System.out.println(\"Inside readFile\");\n BufferedReader buffer = new BufferedReader(file2);\n\n\n\n //String line = null;\n String line=\"\";\n\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n try {\n while ((line = buffer.readLine()) != null) {\n System.out.println(line);\n stringBuilder.append(line);\n stringBuilder.append(ls);\n }\n return stringBuilder.toString();\n\n }finally{\n buffer.close();//https://stackoverflow.com/questions/326390/how-do-i-create-a-java-string-from-the-contents-of-a-file\n }\n /*Scanner scanner = null;\n scanner = new Scanner(file);\n StringBuilder stringBuilder = new StringBuilder();\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n stringBuilder.append(line);\n\n System.out.println(\"line: \"+line);\n }\n return stringBuilder.toString();*/\n\n }", "public String readMultipleFromFiles()\n {\n String result = \"\";\n try\n {\n FileReader fileReader = new FileReader(filename);\n try\n {\n StringBuffer stringBuffer = new StringBuffer();\n Scanner scanner = new Scanner(fileReader);\n while (scanner.hasNextLine())\n {\n stringBuffer.append(scanner.nextLine()).append(\"\\n\");\n }\n stringBuffer.delete(stringBuffer.length() - 1, stringBuffer.length());\n result = stringBuffer.toString();\n } finally\n {\n fileReader.close();\n }\n } catch (FileNotFoundException e)\n {\n System.out.println(\"There is no such file called \" + filename);\n } catch (IOException e)\n {\n System.out.println(\"read \" + filename + \" error!!!\");\n } catch (NumberFormatException e)\n {\n System.out.println(\"content in file \" + filename + \" is error\");\n }\n return result;\n }", "private void ReadFile(String filePath) throws IOException{\n File file = new File(filePath);\n BufferedReader b = new BufferedReader(new FileReader(file));\n int lineNumber = 1;\n String line = \"\";\n line = b.readLine();\n while (line != null) {\n // analyze the line only when it is not empty and it is not a comment\n String trimLine = line.toString().trim();\n if(trimLine.length() != 0 && !trimLine.substring(0, 1).equals(\"/\") && !trimLine.substring(0, 1).equals(\"#\")){\n // line.toString().trim(): eliminate heading and tailing whitespaces\n // but add one whitespace to the end of the string to facilitate token manipulation\n // under the circumstances that there is only one token on one line, e.g. main\n AnalyzeByLine(line.toString().trim() + \" \", lineNumber);\n }\n lineNumber++;\n line = b.readLine();\n }\n arrL.add(new Token(\"end of file\", 255, lineNumber));\n// for(int i = 0; i < arrL.size(); i++){\n// System.out.println(arrL.get(i).getCharacters() + \" \" + arrL.get(i).getValue() + \" \" + arrL.get(i).getLineNum());\n// }\n }", "public LinkedList<Sequence> parseFile() \n\t{\n\t\tString currstr = null;\n\t\t\n\t\t//moves onto first line of file\n\t\ttry {\n\t\t\tcurrstr = input.readLine();\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t//Main read-in loop\n\t\tString tempstr = new String();\n\t\tboolean finished = false;\n\t\tString descrip = currstr.substring(1);\n\t\twhile(!finished) {\n\t\t\t//moves onto next line of input file\n\t\t\ttry {\n\t\t\t\tcurrstr = input.readLine();\n\t\t\t}\n\t\t\tcatch(IOException ioe) {\n\t\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t//checks to see if string is empty, if so, end of file, add tempstr to sequences, break\n\t\t\tif(currstr == null) {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tfinished = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//if first character is '>', add tempstr to sequences list, wipe tempstr, then break loop\n\t\t\tif(currstr.charAt(0) == '>') {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tdescrip = currstr.substring(1);\n\t\t\t\ttempstr = new String();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//attach currstr input string to end of tempstr\n\t\t\ttempstr += removeSpace(currstr.toUpperCase()); //FA convention\n\t\t}\n\t\treturn sequences;\n\t}", "public static String[] getLines(String filename)\n throws IOException {\n\n\n try (\n FileInputStream inStream = new FileInputStream(filename);\n InputStreamReader reader = new InputStreamReader(inStream);\n BufferedReader buffer = new BufferedReader(reader)\n ) {\n List<String> lines = new LinkedList<>();\n for (String line = buffer.readLine();\n line != null;\n line = buffer.readLine()) {\n line = line.trim();\n if (!line.isEmpty()) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[0]);\n }\n }", "public ArrayList<String> loadLines(String filename) {\n ArrayList<String> lines = new ArrayList<String>();\n String[] rawLines = loadStrings(filename);\n for(String str : rawLines) {\n if(str != null && !str.isEmpty()){\n lines.add(str);\n }\n }\n return lines;\n }", "private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "public void readHistory()throws Exception {\n int currentline = 0;\n File myObj = new File(\"order_history.txt\");\n Scanner myReader = new Scanner(myObj);\n outputHistoryObj = new Order[1];\n while (myReader.hasNextLine()) {\n Pizza[] list = new Pizza[1];\n String[] commentparts = null; //This is superstitious, sorry\n String[] fullparts = myReader.nextLine().split(\" // \");\n String[] pizzaparts = fullparts[1].split(\" , \");\n for(int i=0; i<=pizzaparts.length-1; i++){\n if(pizzaparts[i].contains(\" & \")){\n commentparts = pizzaparts[i].split(\" & \");\n list[i] = new Pizza(Menu.list[Integer.parseInt(commentparts[0])-1].getName(), Menu.list[Integer.parseInt(commentparts[0])-1].getIngredients(), commentparts[1], Integer.parseInt(commentparts[0]), Menu.list[Integer.parseInt(commentparts[0])-1].getPrice());\n } else {\n list[i] = new Pizza(Menu.list[Integer.parseInt(pizzaparts[i])-1].getName(), Menu.list[Integer.parseInt(pizzaparts[i])-1].getIngredients(), \"\", Integer.parseInt(pizzaparts[i]), Menu.list[Integer.parseInt(pizzaparts[i])-1].getPrice());\n }\n list = Arrays.copyOf(list, list.length + 1); //Resize name array by one more\n }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date parsed = format.parse(fullparts[3]);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(parsed.getTime());\n outputHistoryObj[currentline] = new Order(fullparts[0], Integer.parseInt(fullparts[2]), timestamp, list);\n outputHistoryObj = Arrays.copyOf(outputHistoryObj, outputHistoryObj.length + 1); //Resize name array by one more\n currentline++;\n }\n myReader.close();\n }", "public static List<String> readLines(final Reader input) throws IOException {\n final BufferedReader reader = new BufferedReader(input);\n final List<String> list = new ArrayList<String>();\n String line = reader.readLine();\n while (line != null) {\n list.add(line);\n line = reader.readLine();\n }\n return list;\n }", "private static String[] rms(BufferedReader br) throws IOException {\n return br.readLine().split(SPLIT_CHAR);\n }", "private String readFile(String fileName) {\n//Initialize\nString line = null;\nString allContent = \"\";\nBufferedReader fileReader = null;\n \nwhile (true) {\ntry {\nfileReader = new BufferedReader (new FileReader (fileName));\n \n//Replace tags with indicated content\nwhile((line = fileReader.readLine()) != null) {\nline = replaceTags(line);\nallContent += line;\n}\n} catch (Exception e) {\nSystem.err.println(\"Read error: \"+e);\nbreak;\n//Close BufferedReader if initialized\n}//end catch\nbreak;\n}//end while loop\n \nfileReadSuccessful = true;\nreturn allContent;\n}", "public static void main(String[] args) {\n File data = new File(\"C:\" + File.separatorChar + \"temp\" + File.separatorChar \r\n + \"labFile.txt\");\r\n \r\n BufferedReader in = null;\r\n int count = 0;\r\n int recordCount = 0;\r\n try {\r\n //FileReader is being decorated by BufferedReader to make it read faster\r\n //buffered allows us to talk to file\r\n //open the stream\r\n in = new BufferedReader(new FileReader(data));\r\n //read the first line\r\n String line = in.readLine();\r\n //so long as line we just read is not null then continue reading file\r\n //if line is null it's end of file\r\n while (line != null) {\r\n \r\n \r\n if (count == 0) {\r\n String[] myStringArray = line.split(\" \");\r\n \r\n System.out.println(\"First Name: \" + myStringArray[0]);\r\n System.out.println(\"Last Name: \" + myStringArray[1]); \r\n } else if (count == 1) {\r\n \r\n System.out.println(\"Street Address: \" + line); \r\n } else if (count == 2) {\r\n \r\n String[] myStringArray = line.split(\" \");\r\n System.out.println(\"City: \" + myStringArray[0].replace(\",\", \" \"));\r\n System.out.println(\"State: \" + myStringArray[1]);\r\n System.out.println(\"Zip: \" + myStringArray[2]);\r\n \r\n count = -1;\r\n recordCount++;\r\n System.out.println(\"\");\r\n System.out.println(\"Number of records read: \" + recordCount);\r\n System.out.println(\"\");\r\n } \r\n count++;\r\n \r\n //reads next line\r\n line = in.readLine(); // strips out any carriage return chars\r\n \r\n }\r\n\r\n } catch (IOException ioe) {\r\n System.out.println(\"Houston, we have a problem! reading this file\");\r\n //want to close regardless if there is an error or not\r\n } finally {\r\n try {\r\n //close the stream\r\n //closing the file throws a checked exception that has to be surrounded by try catch\r\n in.close();\r\n } catch (Exception e) {\r\n\r\n }\r\n }\r\n }", "public static ArrayList<String> getRenglones(FileReader file) throws IOException {\n ArrayList<String> producciones = new ArrayList<>();\n BufferedReader b = new BufferedReader(file);\n\n String readedString;\n while ((readedString = b.readLine()) != null) { //cuando b.readLine() == null significa que se ha encontrado un salto de linea (retorno de carro —\\n—)\n producciones.add(readedString);\n }\n return producciones;\n }", "public List<String> nextOneLine() throws IOException {\n counterSeveralLines = linesAfter;\n if (StringUtils.isBlank(currentPath)) return null;\n String sCurrentLine;\n if ((sCurrentLine = bufferReader.readLine()) != null) {\n listBefore = addToArray(sCurrentLine);\n }\n return listBefore;\n }", "private void handleFile(File file) {\n try {\n Scanner reader = new Scanner(file);\n while (reader.hasNextLine()) {\n // Get the next line\n String line = reader.nextLine();\n\n // Clean any lines from unwanted statements\n line = cleanLine(line);\n\n // Filter out the imports and save\n if (line.length() >= 7 && line.substring(0, 7).equals(\"import \")) {\n if (! (line.length() >= 12 && line.substring(0, 12).equals(\"import main.\"))) {\n imports.add(line);\n }\n } else if (! (line.length() >= 7 && line.substring(0, 7).equals(\"package\"))){\n lines.add(line);\n }\n }\n lines.add(\"\"); // Add an empty line between files\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void createLinesArray()\n {\n //This will iterate through the lines array\n for (int i = 0; i < lines.length; i++)\n {\n //Stop at end-of-File\n if (mapScanner.hasNextLine())\n {\n //Add the current line to the lines array\n lines[i] = mapScanner.nextLine();\n }\n }\n }", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static List<List<String>> readCode(String fName){\n List<String> list = Aron.readFileLineByte(fName, 200);\n List<List<String>> list2d = new ArrayList<>();\n\n List<String> line = new ArrayList<>();\n for(String s : list){\n\n if(s.trim().length() > 0){\n line.add(s);\n }else{\n if(line.size() > 0) {\n list2d.add(line);\n line = new ArrayList<>();\n }\n }\n }\n return list2d;\n }", "public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }", "List<String> obtenerlineas(String archivo) throws FileException;", "void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Scanner s2 = new Scanner(sc2.nextLine());\n while (s2.hasNext()) {\n //s is the next word\n String s = s2.next();\n this.readFile.add(s);\n }\n }\n }", "private static String[] readLines(InputStream f) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(f, \"US-ASCII\"));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null)\n\t\t\tlines.add(line);\n\t\treturn lines.toArray(new String[0]);\n\t}", "private static void read(BufferedReader br, String field, String line, int pos, GameFile gameFile) throws IOException {\r\n\t\t\r\n\t\tGameFile f = gameFile;\r\n\t\t\r\n\t\tif(field.contains(\":\")) {\r\n\t\t\tfield = field.replace(\":\", \"\");\r\n\t\t\tf = new GameFile(field);\r\n\t\t\tgameFile.add(f);\r\n\t\t}\r\n\t\t\r\n\t\t//loops through all line in file\r\n\t\tfor(String l = (line.isEmpty())? br.readLine(): line; l != null; l = br.readLine()) {\r\n\t\t\t\r\n\t\t\tl = l.replaceAll(\"\\\\s+\",\"\"); //get rid of white spaces\r\n\t\t\t\r\n\t\t\tif(l.contains(\"{\") && l.contains(\"}\")) //if both currly brackets exist on the same line, replace end curlly bracket to prevent exiting the function premacherly\r\n\t\t\t\tl = l.replace(\"}\", \"\\\\}\");\r\n\t\t\tif(l.equals(\"}\")) //if the current line contanise only an end currly breaket then exit the function\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\treadLine(br, field, l, pos, f); //interpets the current line\r\n\t\t\t\r\n\t\t\tif(l.contains(\"}\") && !l.contains(\"\\\\}\")) //if the line containes an end currly breaket in it, exit the function\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\t\t\r\n\t}", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public String[] readLines() {\n\t\tVector linesVector = new Vector(); ;\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\twhile (!eof) {\n\t\t\t\tString line = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\tlinesVector.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\tString[] lines = new String[linesVector.size()];\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tlines[i] = (String) (linesVector.get(i));\n\t\t}\n\t\treturn lines;\n\t}", "private static Employee [] readFile(String fileName) {\n Employee[] employees = new Employee[0];\n try{\n File file = new File(fileName);\n try (Scanner scanner = new Scanner(file)) {\n while(scanner.hasNextLine())\n {\n StringTokenizer st = new StringTokenizer(scanner.nextLine());\n Employee employee = new Employee();\n employee.employee = st.nextToken();\n if(st.hasMoreTokens()) {\n String manager = st.nextToken();\n \n // Check if manager is not empty, if empty then last employee\n if(!\"\".equals(manager))\n employee.manager = manager;\n }\n \n employees = addEmployee(employees, employee);\n } }\n } catch (FileNotFoundException e)\n {\n }\n \n return employees;\n }", "public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}", "public List<String> nextSeveralLines() throws IOException {\n if (StringUtils.isBlank(currentPath)) return null;\n List<String> lista = new ArrayList<String>();\n String sCurrentLine;\n int temp = 1;\n\n bufferReader.mark(10000000);\n while ((sCurrentLine = bufferReader.readLine()) != null) {\n temp++;\n if (temp > counterSeveralLines) {\n for (int i = 0; i < linesAfter; i++) {\n if ((sCurrentLine = bufferReader.readLine()) != null) {\n counterSeveralLines++;\n lista.add(sCurrentLine);\n }\n }\n bufferReader.reset();\n return lista;\n }\n }\n return lista;\n }", "public static String[] readAllLines() {\n ArrayList<String> lines = new ArrayList<String>();\n while (hasNextLine()) {\n lines.add(readLine());\n }\n return lines.toArray(new String[lines.size()]);\n }", "String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }", "public static void read8() {\n List<String> list = new ArrayList<>();\n\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n //1. filter line 3\n //2. convert all content to upper case\n //3. convert it into a List\n list = stream\n .filter(line -> !line.startsWith(\"line3\"))\n .map(String::toUpperCase)\n .collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.length == 2) {\n\t\t\t\tfileData.put(parsedLine[0], parsedLine[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Couldn't read line \" + line + \" in \" + path);\n\t\t\t}\n\t\t}\n\t\ttextreader.close();\n\t\tfr.close();\n\t}", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "private static String getString(BufferedReader reader) throws IOException{\n String result=null;\n while(result==null) {\n result = reader.readLine();\n }\n return result.trim();\n }", "private String skipEmptyLines(String line, Scanner myReader){\n while (myReader.hasNextLine()){\n if (line.length() == 0){\n line = myReader.nextLine();\n }\n else{\n String[] tokens = line.split(\" \");\n if (tokens.length > 0){\n return line;\n }\n }\n }\n return \"\";\n }", "public static void ReadVehicle(String inputfile, String outputfile, String[] styleids) {\n\r\n\t\tString StyleID_0 = \"\";\r\n\t\tString ImageID_1 = \"\";\r\n\t\tString FileName_2 = \"\";\r\n\t\tString Type_3 = \"\";\r\n\t\tString Background_4 = \"\";\r\n\t\tString Size_5 = \"\";\r\n\t\tString Carryover_6 = \"\";\r\n\t\tString Year_7 = \"\";\r\n\t\tString DivisionName_8 = \"\";\r\n\t\tString ModelName_9 = \"\";\r\n\t\tString BodyType_10 = \"\";\r\n\t\tString ExactMatch_11 = \"\";\r\n\t\tString OEMTemp_12 = \"\";\r\n\t\t// Assume default encoding.\r\n\t\tFileWriter fileWriter = null;\r\n\t\ttry {\r\n\t\t\tfileWriter = new FileWriter(outputfile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Always wrap FileWriter in BufferedWriter.\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tSystem.out.println(\"Started!\");\r\n\t\tint styleLenth = styleids.length;\r\n\t\tfor (String styleid : styleids) {\r\n\r\n\t\t\ttry (BufferedReader br = new BufferedReader(new FileReader(inputfile))) {\r\n\t\t\t\tString line;\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\t// process the line.\r\n\t\t\t\t\tList<String> elephantList = Arrays.asList(line.split(\",\"));\r\n\t\t\t\t\tStyleID_0 = elephantList.get(0);\r\n\t\t\t\t\t// StyleID_0=elephantList.get(12); //\r\n\r\n\t\t\t\t\tif (StyleID_0.equalsIgnoreCase(styleid)) {\r\n\t\t\t\t\t\t// if (StyleID_0.equalsIgnoreCase(\"~Y~\")) {\r\n\t\t\t\t\t\tbufferedWriter.write(line);\r\n\t\t\t\t\t\tbufferedWriter.newLine();\r\n\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\t// System.out.println(elephantList);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tbufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Total StyleIDs=\" + styleLenth + \". Complete!\");\r\n\r\n\t}", "private StringBlock parseNextStringBlock() {\t\t\n\t\tif(!reader.hasNext())\n\t\t\treturn null;\n\t\t\n\t\tString num = \"-1\";\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\tnum = reader.nextLine(); //read and toss out first line of chunk (number)\n\t\t\t\tcurrentLineNum++;\n\t\t\t} while(num.isEmpty());\n\t\t\t\n\t\t\tcurrentLineNum++;\n\n\t\t\t//first line = number\n\t\t\t//since the stringBlocks are stored in order,\n\t\t\t//this line can be ignored\n\t\t\t\n\t\t\tString timeStr = reader.nextLine(); //read second line of chunk\n\t\t\tcurrentLineNum++;\n\t\t\t\n\t\t\t//second line = timestamps\n\t\t\tint startTime = CSubUtility.parseTimestamp(timeStr.substring(0, 12));\n\t\t\tint endTime = CSubUtility.parseTimestamp(timeStr.substring(17, 29));\n\t\t\t\n\t\t\tString str1 = reader.nextLine(); //read third line of chunk\n\t\t\tcurrentLineNum++;\t\t\t\n\t\t\t\n\t\t\t//if there are more than 2 lines (for the love of God, whyyyyyy would a file do this? [some actually do...])\n\t\t\t//then 2nd, 3rd, 4th, etc. lines get crammed into 2nd line to keep program from crashing.\n\t\t\tString str2 = \"\";\n\t\t\tString currentLine = \"\";\n\t\t\t\n\t\t\twhile(reader.hasNext() && !(currentLine = reader.nextLine()).isEmpty()) {\n\t\t\t\tcurrentLineNum++;\n\t\t\t\tstr2 += currentLine;\n\t\t\t}\n\t\t\t\n\t\t\tcurrentLineNum++; //didn't get incremented on the read where the loop fails\n\t\t\t\n\t\t\t//strip out any html. we ain't that fancy\n\t\t\tstr1 = str1.replaceAll(\"<\\\\w*>\", \"\").replaceAll(\"</\\\\w*>\", \"\");\n\t\t\tstr2 = str2.replaceAll(\"<\\\\w*>\", \"\").replaceAll(\"</\\\\w*>\", \"\");\t\t\t\n\t\t\t\n\t\t\treturn new StringBlock(str1, str2, startTime, endTime);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalStateException(\"Failed reading line number: \" + currentLineNum + \"\\nError: \" + e.getMessage());\t\t\n\t\t}\n\t}", "public static String[] getNextLine(String lines) {\n\n final char CARRIAGE = '\\r';\n final char LINEFEED = '\\n';\n boolean canReturn = false;\n String[] result = new String[2];\n\n //we go through the given string, until we met a break line\n for(int i = 0; i < lines.length(); i++) {\n\n //MACOS and Windows break line\n if(lines.charAt(i) == CARRIAGE){\n //windows second part of break line\n if(i != lines.length() - 1 && lines.charAt(i + 1) == LINEFEED){\n i++;\n }\n canReturn = true;\n } else if(lines.charAt(i) == LINEFEED){ // Linux break line\n canReturn = true;\n }\n\n //if we encounter a break line of the third type, we split the string\n if(canReturn){\n result[0] = lines.substring(0, i + 1);\n result[1] = lines.substring(i + 1);\n\n return result;\n }\n }\n //if no break line were encountered :\n result[0] = \"\";\n result[1] = lines;\n\n return result;\n }", "private String[] loadFile(String filename, String[] skipCharacters, String delimiter) {\n\t\tString path = \"/app/src/main/resources\" + File.separator + filename;\n\n\t\tString regex = \"\";\n\t\tif (skipCharacters.length > 0) {\n\t\t\tString skipString = String.join(\"|\", skipCharacters);\n\t\t\tskipString = skipString.replaceAll(\"(?=[]\\\\[+&!(){}^\\\"~*?:\\\\\\\\])\", \"\\\\\\\\\");\n\t\t\tregex = \"^(\" + skipString + \").*?\";\n\t\t}\n\n\t\tString[] lines = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(path));\n\n\t\t\tString line = br.readLine();\n\t\t\twhile (line != null) {\n\t\t\t\tif (line.matches(regex)) {\n\t\t\t\t\tline = br.readLine();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(System.lineSeparator());\n\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\n\t\t\t// Break content by delimiter\n\t\t\tlines = sb.toString().split(delimiter);\n\t\t} catch (IOException ex) {\n\t\t\tlogger.error(ex);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t}\n\n\t\treturn lines;\n\t}", "private ArrayList limpiar() {//quita espacios en blanco y saltos de linea\n String codigoFuente = ta_source.getText();\n ArrayList retorno = new ArrayList();\n try {\n codigoFuente = codigoFuente.replaceAll(\" \", \"\");\n String aux = \"\";\n byte guardaLinea = 1, guardaBloque = 1;\n for (int i = 0; i < codigoFuente.length(); i++) {\n if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '/' && guardaBloque == 1) {\n guardaLinea = 0;//0: no guarda\n }\n if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '*' && guardaLinea == 1) {\n guardaBloque = 0;//0: no guarda\n }\n if (i > 0 && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i - 1) == '*') {\n guardaBloque = 2;//1: si guarda\n }\n if (codigoFuente.charAt(i) == '\\n' && guardaBloque == 1) {\n guardaLinea = 1;//1: si guarda\n if (aux.length() > 0) {\n retorno.add(aux);\n aux = \"\";\n }\n } else {\n if (i == codigoFuente.length() - 1) {\n aux += codigoFuente.charAt(i);\n retorno.add(aux);\n }\n }\n if (guardaBloque == 1 && guardaLinea == 1 && codigoFuente.charAt(i) != '\\n') {\n aux += codigoFuente.charAt(i);\n }\n if (guardaBloque == 2) {\n guardaBloque--;\n }\n }\n } catch (Exception e) {\n System.out.println(\"errror \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }", "public void readFile(String filePath) {\n\n\t\tFile file = new File(filePath);\n\t\t\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n \t while(sc.hasNextLine() ) {\t\t \t \n\t\t \t String line = sc.nextLine();\t\t \t \n\t\t \t linesArray.add( line.split(\",\") );\t\n\t\t \t \n\t\t\t}\n\t\t \t\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t\n\t}", "@Override\n protected void fixFile(final BufferedReader reader, final BufferedWriter writer) throws Exception {\n // init\n int lineCounter = 1;\n boolean lastLineWasEmpty = false;\n\n String line;\n while ((line = reader.readLine()) != null) {\n final String fixedLine = fixLine(line);\n\n if (fixedLine != null && !\"\".equals(fixedLine.trim())) {\n if (lastLineWasEmpty && lineIsNumberAboveZero(fixedLine)) {\n writer.newLine();\n lineCounter++;\n writer.write(\"\" + lineCounter);\n } else {\n lastLineWasEmpty = false;\n writer.write(fixedLine);\n }\n writer.newLine();\n } else {\n lastLineWasEmpty = true;\n }\n }\n }", "private ArrayList<String> readStringsFromFile(File f, String stringSeparator)\r\n\t\t\tthrows EasyCorrectionException {\r\n\t\tArrayList<String> contentOfFile = new ArrayList<String>();\r\n\t\tbyte[] buffer = new byte[(int) f.length()];\r\n\t\tBufferedInputStream stream = null;\r\n\t\ttry {\r\n\t\t\tstream = new BufferedInputStream(new FileInputStream(f));\r\n\t\t\tstream.read(buffer);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new EasyCorrectionException(\"The file \" + f.getName()\r\n\t\t\t\t\t+ \" could not be read during the Output Comparison!\");\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (stream != null) {\r\n\t\t\t\t\tstream.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new EasyCorrectionException(\"The file \" + f.getName()\r\n\t\t\t\t\t\t+ \" could not be closed during the Output Comparison!\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String string : new String(buffer).split(stringSeparator)) {\r\n\t\t\tcontentOfFile.add(string);\r\n\t\t}\r\n\r\n\t\treturn contentOfFile;\r\n\t}", "public static void main(String[] args) {\n\n String bigString = \"photo.jpg, Warsaw, 2013-09-05 14:08:15\\n\" +\n \"john.png, London, 2015-06-20 15:13:22\\n\" +\n \"myFriends.png, Warsaw, 2013-09-05 14:07:13\\n\" +\n \"Eiffel.jpg, Paris, 2015-07-23 08:03:02\\n\" +\n \"pisatower.jpg, Paris, 2015-07-22 23:59:59\\n\" +\n \"BOB.jpg, London, 2015-08-05 00:02:03\\n\" +\n \"notredame.png, Paris, 2015-09-01 12:00:00\\n\" +\n \"me.jpg, Warsaw, 2013-09-06 15:40:22\\n\" +\n \"a.png, Warsaw, 2016-02-13 13:33:50\\n\" +\n \"b.jpg, Warsaw, 2016-01-02 15:12:22\\n\" +\n \"c.jpg, Warsaw, 2016-01-02 14:34:30\\n\" +\n \"d.jpg, Warsaw, 2016-01-02 15:15:01\\n\" +\n \"e.png, Warsaw, 2016-01-02 09:49:09\\n\" +\n \"f.png, Warsaw, 2016-01-02 10:55:32\\n\" +\n \"g.jpg, Warsaw, 2016-02-29 22:13:11\";\n bufferedReading(bigString);\n try {\n bufferedReading2(bigString);\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n readAsSkipping();\n }", "@Test\n void testRead() throws IOException, URISyntaxException {\n final String[] expectedResult = {\n \"-199\t\\\"hello\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"2017/06/20\\\"\t0.0\t1\t\\\"2\\\"\t\\\"823478788778713\\\"\",\n \"2\t\\\"Sdfwer\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"1100/06/20\\\"\tInf\t2\t\\\"NaN\\\"\t\\\",1,2,3\\\"\",\n \"0\t\\\"cjlajfo.\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"3000/06/20\\\"\t-Inf\t3\t\\\"inf\\\"\t\\\"\\\\casdf\\\"\",\n \"-1\t\\\"Mywer\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"06-20-2011\\\"\t3.141592653\t4\t\\\"4.8\\\"\t\\\"  \\\\\\\" \\\"\",\n \"266128\t\\\"Sf\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"06-20-1917\\\"\t0\t5\t\\\"Inf+11\\\"\t\\\"\\\"\",\n \"0\t\\\"null\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"03/03/1817\\\"\t123\t6.000001\t\\\"11-2\\\"\t\\\"\\\\\\\"adf\\\\0\\\\na\\\\td\\\\nsf\\\\\\\"\\\"\",\n \"-2389\t\\\"\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:72\t2017-06-20\t\\\"2017-03-12\\\"\tNaN\t2\t\\\"nap\\\"\t\\\"💩⌛👩🏻■\\\"\"};\n BufferedReader result;\n File file = getFile(\"csv/ingest/IngestCSV.csv\");\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream stream = new BufferedInputStream(fileInputStream)) {\n CSVFileReader instance = createInstance();\n File outFile = instance.read(Tuple.of(stream, file), null).getTabDelimitedFile();\n result = new BufferedReader(new FileReader(outFile));\n }\n\n assertThat(result).isNotNull();\n assertThat(result.lines().collect(Collectors.toList())).isEqualTo(Arrays.asList(expectedResult));\n }", "private ArrayList<String> readFileAndCountLines(File fileName) throws IOException\n\t{\n\t\tString line = \"\";\n\t\tFileReader strm_reader = null;\n\t\tBufferedReader bffr_reader = null;\n\t\tArrayList<String> fileContents = new ArrayList<String>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstrm_reader = new FileReader(fileName);\t\n\t\t\tbffr_reader = new BufferedReader(strm_reader);\n\t\t\t\n\t\t\twhile((line = bffr_reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Add the contents of a file in a variable\n\t\t\t\tfileContents.add(line);\n\t\t\t\t//Counts the number of routers\n\t\t\t\tfileLineCount++;\n\t\t\t}\n\t\t\tif(fileContents.isEmpty())\n\t\t\t\tSystem.out.println(\"The File is Empty!\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"File not Found!\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(bffr_reader != null)\n\t\t\t\tbffr_reader.close();\n\t\t\tif(strm_reader != null)\n\t\t\t\tstrm_reader.close();\n\t\t}\n\t\treturn fileContents;\n\t}", "public String[] readAllLines(){\n\t\tArrayList<String> lines=new ArrayList<>();\n\t\twhile (hasNestLine())\n\t\t\tlines.add(readLine());\n\t\treturn lines.toArray(new String[lines.size()]);\n\t}", "List<String[]> readCsv(String inputFilePath,int skipLine)throws IOException;", "List<String[]> readCsv(String inputFilePath,int skipLine,char separator)throws IOException;", "@SuppressWarnings(\"resource\")\n \tpublic String[] readTextFileOutputLinesArray(String fileName) throws IOException{\n \t BufferedReader in = new BufferedReader(new FileReader(Common.testOutputFileDir + fileName));\n \t String str=null;\n \t ArrayList<String> lines = new ArrayList<String>();\n \t while ((str = in.readLine()) != null) {\n \t if (!str.contains(\"helper\") && (str.length() != 0)) { lines.add(str); }\n \t }\n \t String[] linesArray = lines.toArray(new String[lines.size()]);\n \t return linesArray;\n \t}" ]
[ "0.63167286", "0.628233", "0.6030367", "0.597495", "0.59133583", "0.5899139", "0.58801377", "0.5865561", "0.5861922", "0.5836567", "0.5812619", "0.580351", "0.5801435", "0.57621205", "0.57557577", "0.5732241", "0.5730388", "0.57259685", "0.5688695", "0.5686008", "0.5661317", "0.56554073", "0.55943465", "0.5587333", "0.5585929", "0.5582198", "0.55677915", "0.5565972", "0.55614233", "0.55553323", "0.5553944", "0.55354834", "0.55251217", "0.55030525", "0.5499168", "0.5482187", "0.5480979", "0.546098", "0.5456121", "0.54553896", "0.54514796", "0.54429686", "0.5435971", "0.5413406", "0.5396107", "0.5384357", "0.53823465", "0.5378376", "0.5368523", "0.5365345", "0.53638273", "0.5355955", "0.5352085", "0.5350257", "0.5348252", "0.53456026", "0.53453153", "0.53451675", "0.5342819", "0.533306", "0.5322912", "0.53174317", "0.5314745", "0.53139013", "0.5308843", "0.53040737", "0.52999157", "0.52943707", "0.52921396", "0.5283497", "0.5278385", "0.5256149", "0.5255401", "0.52511513", "0.5250249", "0.5226047", "0.5222197", "0.52152485", "0.5214084", "0.52139276", "0.5206624", "0.5203177", "0.5201368", "0.51981556", "0.519176", "0.5191406", "0.51850814", "0.51794297", "0.51782006", "0.5178107", "0.51694953", "0.5165288", "0.51652354", "0.51627004", "0.5157545", "0.515692", "0.51516235", "0.5150771", "0.51386887", "0.5131911", "0.51164776" ]
0.0
-1
Sort the key points by x if x is different, otherwise the starting point is higher than ending point, and the height is compared in natural order if they are all starting points This makes sure that when several edges overlaps, some of which are dropping edges and rising edges, the final computed height(the highest height of rising edges) is still the same as previous height, the new keypoint won't be added.
public int compareTo(KeyPoint other) { if (this.x == other.x) { int sign = (x - rec.r < 0) ? -1 : 1; int sign2 = (other.x - other.rec.r < 0) ? -1 : 1; return Integer.compare(this.rec.h * sign, other.rec.h * sign2); } return Integer.compare(this.x, other.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortByX() {\n\t\tCollections.sort(pointList, getXComparator());\n\t}", "@Override\n\t\tpublic int compareTo(Pair o) {\n\t\t\tif (x == o.x) return y-o.y;\n\t\t\treturn o.x-x;\n\t\t}", "@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, but\n //y coordinate is less (tie break)\n else if(p1.x<p2.x || p1.x==p2.x && p1.y<p2.y)\n return -1;\n else\n return 1;\n }", "@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.y - b.y));\n }", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.x - b.x));\n }", "@Override\r\n public int compare(Node x, Node y)\r\n {\n if (x.getD() < y.getD())\r\n {\r\n return -1;\r\n }\r\n else if (x.getD() > y.getD())\r\n {\r\n return 1;\r\n }\r\n return 0;\r\n }", "public int compareTo(Point that) {\n if (this.y < that.y) return -1;\n if (this.y > that.y) return +1;\n if (this.x < that.x) return -1;\n if (this.x > that.x) return +1;\n else return 0;\n }", "@Override\n public int compare(MyPoint p1, MyPoint p2) {\n int thresh = 80;\n int xComp = Double.compare(p1.x, p2.x);\n //if they are on the same column, check who is the higher one.\n if (Math.abs(p1.x - p2.x) <= thresh) {\n return -Double.compare(p1.y, p2.y);\n } else\n return xComp;\n }", "public int compareTo(Point2D that) {\r\n if (this.y < that.y) return -1;\r\n if (this.y > that.y) return +1;\r\n if (this.x < that.x) return -1;\r\n if (this.x > that.x) return +1;\r\n return 0;\r\n }", "public int compareTo(Point that) {\n if (this.y != that.y) {\n if (this.y > that.y) {\n return 1;\n }\n else {\n return -1;\n }\n }\n return new Integer(this.x).compareTo(that.x);\n }", "public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }", "private static List<Point> reorder(List<Point> points) {\n Point tl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tl.x + tl.y) > (points.get(i).x + points.get(i).y)) {\n tl = points.get(i);\n }\n }\n\n // find bottom right => max sum\n Point br = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((br.x + br.y) < (points.get(i).x + points.get(i).y)) {\n br = points.get(i);\n }\n }\n\n // find top right => max x - y\n Point tr = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tr.x - tr.y) < (points.get(i).x - points.get(i).y)) {\n tr = points.get(i);\n }\n }\n\n // find bottom left => min x - y\n Point bl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((bl.x - bl.y) > (points.get(i).x - points.get(i).y)) {\n bl = points.get(i);\n }\n }\n\n List<Point> reorderList = new ArrayList<>();\n reorderList.add(tl);\n reorderList.add(tr);\n reorderList.add(br);\n reorderList.add(bl);\n\n return reorderList;\n }", "@Override\n public int compare(Integer a, Integer b) {\n if (base.get(a) >= base.get(b)) {\n return 1;\n } else {\n return -1;\n } // returning 0 would merge keys\n }", "public int compareTo(Point that) {\r\n\r\n\t\tif(this.y == that.y && this.x == that.x) return 0;\r\n\r\n if(this.y < that.y || (this.y == that.y && this.x < that.x)) return -1;\r\n\r\n\t\treturn 1;\r\n }", "public int compareTo(Point that) {\n if (this.y < that.y)\n return -1;\n else if (this.y == that.y) {\n if (this.x < that.x)\n return -1;\n else if (this.x == that.x)\n return 0;\n }\n return 1;\n\n }", "public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms, Geometry geom,\n Collection<Geometry> unprocessed, ProcessorDistributionKey hull)\n {\n boolean timeless;\n boolean foundKey;\n if (geom instanceof ConstrainableGeometry)\n {\n final Constraints constraints = ((ConstrainableGeometry)geom).getConstraints();\n\n if (constraints == null || constraints.getTimeConstraint() == null)\n {\n timeless = true;\n foundKey = false;\n }\n else\n {\n timeless = false;\n if (myTimeAgnostic)\n {\n addTimeListeners();\n updateTime();\n }\n foundKey = sortByKeys(myActiveTimeSpans, keyToGeoms, (ConstrainableGeometry)geom, hull);\n }\n }\n else\n {\n timeless = true;\n foundKey = false;\n }\n\n if (timeless)\n {\n foundKey = sortByKeys(keyToGeoms, geom, hull, null, TimeSpanList.TIMELESS);\n }\n if (!foundKey && unprocessed != null)\n {\n unprocessed.add(geom);\n }\n }", "@Override\n public int compareTo(Point o) {\n return this.id.compareTo(o.id);\n }", "public int compare( final int x, final int y ) {\n\t\t\t\tfinal LazyIntIterator i = g.successors( x ), j = g.successors( y );\n\t\t\t\tint a, b;\n\n\t\t\t\t/* This code duplicates eagerly of the behaviour of the lazy comparator\n\t\t\t\t below. It is here for documentation and debugging purposes.\n\t\t\t\t\n\t\t\t\tbyte[] g1 = new byte[ g.numNodes() ], g2 = new byte[ g.numNodes() ];\n\t\t\t\twhile( i.hasNext() ) g1[ g.numNodes() - 1 - i.nextInt() ] = 1;\n\t\t\t\twhile( j.hasNext() ) g2[ g.numNodes() - 1 - j.nextInt() ] = 1;\n\t\t\t\tfor( int k = g.numNodes() - 2; k >= 0; k-- ) {\n\t\t\t\t\tg1[ k ] ^= g1[ k + 1 ];\n\t\t\t\t\tg2[ k ] ^= g2[ k + 1 ];\n\t\t\t\t}\n\t\t\t\tfor( int k = g.numNodes() - 1; k >= 0; k-- ) if ( g1[ k ] != g2[ k ] ) return g1[ k ] - g2[ k ];\n\t\t\t\treturn 0;\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tboolean parity = false; // Keeps track of the parity of number of arcs before the current ones.\n\t\t\t\tfor( ;; ) {\n\t\t\t\t\ta = i.nextInt();\n\t\t\t\t\tb = j.nextInt();\n\t\t\t\t\tif ( a == -1 && b == -1 ) return 0;\n\t\t\t\t\tif ( a == -1 ) return parity ? 1 : -1;\n\t\t\t\t\tif ( b == -1 ) return parity ? -1 : 1;\n\t\t\t\t\tif ( a != b ) return parity ^ ( a < b ) ? 1 : -1;\n\t\t\t\t\tparity = ! parity;\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "public int compareTo(Point that) {\n// System.out.printf(\"in compare %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (that.y == this.y && that.x == this.x)\n return 0;\n else if (that.y == this.y)\n return this.x - that.x;\n return this.y - that.y;\n }", "public int compareTo(Point that)\n {\n if (y < that.y || (y == that.y && x < that.x)) return -1;\n else if (x == that.x && y == that.y) return 0;\n return 1;\n }", "private static void sortPoints(int[][] pointSet, int start, int end)\n {\n if (start < end)\n {\n int mid = (start+end)/2;\n sortPoints(pointSet, start, mid);\n sortPoints(pointSet, mid+1, end);\n crossProductMerge(pointSet, start, mid, end);\n }\n }", "private static boolean computeBelongingToPolygon(\n final int[] xArr,\n final int[] yArr,\n final int pointCount,\n //\n final int x,\n final int y) {\n\n int hits = 0;\n\n int lastx = xArr[pointCount - 1];\n int lasty = yArr[pointCount - 1];\n int curx;\n int cury;\n\n // Looping on edges.\n for (int i = 0; i < pointCount; lastx = curx, lasty = cury, i++) {\n curx = xArr[i];\n cury = yArr[i];\n\n if (cury == lasty) {\n // Point on same line.\n continue;\n }\n\n int leftx;\n if (curx < lastx) {\n // Going left.\n if (x >= lastx) {\n // But not as far as before.\n continue;\n }\n // New leftmost.\n leftx = curx;\n } else {\n // Going rightish.\n if (x >= curx) {\n continue;\n }\n leftx = lastx;\n }\n\n double test1;\n double test2;\n if (cury < lasty) {\n if ((y < cury) || (y >= lasty)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - curx;\n test2 = y - cury;\n } else {\n if ((y < lasty) || (y >= cury)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - lastx;\n test2 = y - lasty;\n }\n\n /*\n * JDK code uses \"test1 < (test2 / dy * dx)\" here,\n * but we want to avoid the division.\n */\n final int dx = (lastx - curx);\n final int dy = (lasty - cury);\n if (dy < 0) {\n if (test1 * dy > test2 * dx) {\n hits++;\n }\n } else {\n if (test1 * dy < test2 * dx) {\n hits++;\n }\n }\n }\n\n return ((hits & 1) != 0);\n }", "@Override\n public int compareTo(Point point) {\n if (this.angle < point.getAngle()) {\n return -1;\n } else if (this.angle > point.getAngle()) {\n return 1;\n }\n return 0;\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "private ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPlayer p2) -> {\n try {\n if (p1.getPoints() == p2.getPoints()) {\n return 0;\n } else if (p1.getPoints() > p2.getPoints()) {\n return -1;\n } else {\n return 1;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return 0;\n });\n\n return arrlist;\n }", "@Override\n\t\t\tpublic int compare(Sprite s1, Sprite s2) {\n\t\t\t\tif(!s1.sort)\n\t\t\t\t\treturn -1;\n\t\t\t\tif(!s2.sort)\n\t\t\t\t\treturn 1;\n\t\n\t\t\t\t\n\t\t if (s1.position.y+s1.height < s2.position.y+s2.height) {\n\t\t return -1;\n\t\t }else {\n\t\t return 1;\n\t\t }\n\t\t\t}", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, LinkedList<Link>> o1, Entry<Integer, LinkedList<Link>> o2) {\n\t\t\t\treturn o1.getKey() - o2.getKey();\r\n\t\t\t}", "public float compareTo(float x, float y) {\r\n float dx2 = (float) Math.abs((this.xf - x) * (this.xf - x));\r\n float dy2 = (float) Math.abs((this.yf - y) * (this.yf - y));\r\n float d = (float) Math.sqrt(dx2 + dy2);\r\n if (d > 3.0f) // Points closer than 3 pixels are the same\r\n return d;\r\n return 0;\r\n }", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "@Override\n\t\t\tpublic int compare(KeyValueData o1, KeyValueData o2) {\n\t\t\t\tif(o1.value < o2.value){\n\t\t\t\t\treturn -1;\n\t\t\t\t}else if(o1.value > o2.value){\n\t\t\t\t\treturn 1;\n\t\t\t\t}else{\n\t\t\t\t\tif(o1.key.compareTo(o2.key) < 0){\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}else if(o1.key.compareTo(o2.key) > 0){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t return Double.compare(arg0.getX(), arg1.getX());\n\t\t\t}", "@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}", "Listof<Pairof<K, V>> sortedKeyVals();", "private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms,\n Collection<? extends Geometry> sortGeoms, Collection<Geometry> unprocessed)\n {\n final ProcessorDistributionKey hull = new ProcessorDistributionKey();\n for (final Geometry geom : sortGeoms)\n {\n sortByKeys(keyToGeoms, geom, unprocessed, hull);\n }\n }", "private int compareZOrder(ProcessorDistributionKey key)\n {\n int z1 = myZOrder;\n int z2 = key.getZOrder();\n return z1 < z2 ? -1 : z1 == z2 ? 0 : 1;\n }", "@Override\r\n\t\tpublic int compare(final CellData o1, final CellData o2) {\r\n\t\t\treturn o1.getY() - o2.getY();\r\n\t\t}", "public int compare(Entity e0, Entity e1) { // compares 2 entities\r\n\t\t\tif (e1.y < e0.y) return +1; // If the y position of the first entity is less (higher up) than the second entity, then it will be moved up in sorting.\r\n\t\t\tif (e1.y > e0.y) return -1; // If the y position of the first entity is more (lower) than the second entity, then it will be moved down in sorting.\r\n\t\t\treturn 0; // ends the method\r\n\t\t}", "public Comparator<Point> slopeOrder() {\n /* YOUR CODE HERE */\n return new SlopeOrder();\n }", "@Override\n\t\t\tpublic int compare(Entity o1, Entity o2)\n\t\t\t{\n\t\t\t\treturn (int) (o2.transform.position.y - o1.transform.position.y);\n\t\t\t}", "@Override\r\n public int compare(Pair<Integer, Double> o1, Pair<Integer, Double> o2) {\r\n return o2.getValue().compareTo(o1.getValue());\r\n }", "public int getIndexForXVal(double xVal) {\n\t\tint upper = pointList.size()-1;\n\t\tint lower = 0;\n\t\t\n\t\tif (pointList.size()==0)\n\t\t\treturn 0;\n\t\t\n\t\t//TODO Are we sure an binarySearch(pointList, xVal) wouldn't be a better choice here?\n\t\t//it can gracefully handle cases where the key isn't in the list of values...\n\t\tdouble stepWidth = (pointList.get(pointList.size()-1).getX()-pointList.get(0).getX())/(double)pointList.size();\n\t\t\n\t\tint index = (int)Math.floor( (xVal-pointList.get(0).getX())/stepWidth );\n\t\t//System.out.println(\"Start index: \" + index);\n\t\t\n\t\t//Check to see if we got it right\n\t\tif (index>=0 && (index<pointList.size()-1) && pointList.get(index).getX() < xVal && pointList.get(index+1).getX()>xVal) {\n\t\t\t//System.out.println(\"Got it right on the first check, returning index : \" + index);\n\t\t\treturn index;\n\t\t}\n\t\t\t\t\n\t\t//Make sure the starting index is sane (between upper and lower)\n\t\tif (index<0 || index>=pointList.size() )\n\t\t\tindex = (upper+lower)/2; \n\t\t\n\t\tif (xVal < pointList.get(0).getX()) {\n\t\t\treturn 0;\n\t\t}\n\t\t\t\n\t\tif(xVal > pointList.get(pointList.size()-1).getX()) {\n\t\t\treturn pointList.size()-1;\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\twhile( upper-lower > 1) {\n\t\t\tif (xVal < pointList.get(index).getX()) {\n\t\t\t\tupper = index;\n\t\t\t}\n\t\t\telse\n\t\t\t\tlower = index;\n\t\t\tindex = (upper+lower)/2;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\treturn index;\n\t}", "protected static List<Marker> getSortedPointSet(List<Marker> points) {\n\n final Marker lowest = getLowestPoint(points);\n List<Marker> setMarker = new ArrayList<>();\n TreeSet<Marker> set = new TreeSet<Marker>(new Comparator<Marker>() {\n @Override\n public int compare(Marker a, Marker b) {\n\n if(a == b || a.equals(b)) {\n return 0;\n }\n\n // use longs to guard against int-underflow\n double thetaA = Math.atan2(a.getPosition().latitude - lowest.getPosition().latitude, a.getPosition().longitude - lowest.getPosition().longitude);\n double thetaB = Math.atan2(b.getPosition().latitude - lowest.getPosition().latitude, b.getPosition().longitude - lowest.getPosition().longitude);\n\n if(thetaA < thetaB) {\n return -1;\n }\n else if(thetaA > thetaB) {\n return 1;\n }\n else {\n // collinear with the 'lowest' point, let the point closest to it come first\n\n // use longs to guard against int-over/underflow\n double distanceA = Math.sqrt(((lowest.getPosition().longitude - a.getPosition().longitude) * (lowest.getPosition().longitude - a.getPosition().longitude)) +\n ((lowest.getPosition().latitude - a.getPosition().latitude) * ((long)lowest.getPosition().latitude - a.getPosition().latitude)));\n double distanceB = Math.sqrt(((lowest.getPosition().longitude - b.getPosition().longitude) * (lowest.getPosition().longitude - b.getPosition().longitude)) +\n (((long)lowest.getPosition().latitude - b.getPosition().latitude) * ((long)lowest.getPosition().latitude - b.getPosition().latitude)));\n\n if(distanceA < distanceB) {\n return -1;\n }\n else {\n return 1;\n }\n }\n }\n });\n\n set.addAll(points);\n for (Marker mk :\n set) {\n\n setMarker.add(mk);\n }\n return setMarker;\n }", "@Override\n public int compareTo(Cell o) {\n return this.getPoint().compareTo(o.getPoint());\n }", "private static HashMap<Knight, Float> sortByY(HashMap<Knight, Float> hm) {\n List<Map.Entry<Knight, Float>> list =\n new LinkedList<Map.Entry<Knight, Float> >(hm.entrySet());\n\n // Sort the list\n Collections.sort(list, new Comparator<Map.Entry<Knight, Float> >() {\n public int compare(Map.Entry<Knight, Float> o1,\n Map.Entry<Knight, Float> o2)\n {\n return -1*(o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n // put data from sorted list to hashmap\n HashMap<Knight, Float> temp = new LinkedHashMap<Knight, Float>();\n for (Map.Entry<Knight, Float> aa : list) {\n temp.put(aa.getKey(), aa.getValue());\n }\n return temp;\n }", "protected static Set<Point2D.Float> getSortedPointSet(\n\t\t\tList<Point2D.Float> points) {\n\n\t\tfinal Point2D.Float lowest = getLowestPoint(points);\n\n\t\tTreeSet<Point2D.Float> set = new TreeSet<Point2D.Float>(\n\t\t\t\tnew Comparator<Point2D.Float>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(Point2D.Float a, Point2D.Float b) {\n\n\t\t\t\t\t\tif (a == b || a.equals(b)) {\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// use longs to guard against int-underflow\n\t\t\t\t\t\tdouble thetaA = Math.atan2((long) a.y - lowest.y,\n\t\t\t\t\t\t\t\t(long) a.x - lowest.x);\n\t\t\t\t\t\tdouble thetaB = Math.atan2((long) b.y - lowest.y,\n\t\t\t\t\t\t\t\t(long) b.x - lowest.x);\n\n\t\t\t\t\t\tif (thetaA < thetaB) {\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t} else if (thetaA > thetaB) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// collinear with the 'lowest' point, let the point\n\t\t\t\t\t\t\t// closest to it come first\n\n\t\t\t\t\t\t\t// use longs to guard against int-over/underflow\n\t\t\t\t\t\t\tdouble distanceA = Math\n\t\t\t\t\t\t\t\t\t.sqrt((((long) lowest.x - a.x) * ((long) lowest.x - a.x))\n\t\t\t\t\t\t\t\t\t\t\t+ (((long) lowest.y - a.y) * ((long) lowest.y - a.y)));\n\t\t\t\t\t\t\tdouble distanceB = Math\n\t\t\t\t\t\t\t\t\t.sqrt((((long) lowest.x - b.x) * ((long) lowest.x - b.x))\n\t\t\t\t\t\t\t\t\t\t\t+ (((long) lowest.y - b.y) * ((long) lowest.y - b.y)));\n\n\t\t\t\t\t\t\tif (distanceA < distanceB) {\n\t\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tset.addAll(points);\n\n\t\treturn set;\n\t}", "public void SortByPrice() {\n for (int i = 1; i < LastIndex; i++) {\n int x = i;\n while (x >= 1) {\n if (ForChild[x - 1].getPrice() > ForChild[x].getPrice()) {\n Confectionery sweets = ForChild[x - 1];\n ForChild[x - 1] = ForChild[x];\n ForChild[x] = sweets;\n\n }\n x -= 1;\n }\n }\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "@Override\r\n\t\tpublic int compare(final CellData o1, final CellData o2) {\r\n\t\t\treturn o1.getX() - o2.getX();\r\n\t\t}", "@Override\n\t\t\t\tpublic int compare(Integer a, Integer b) {\n\t\t\t\t\tInteger x= (Integer)P[a];\n\t\t\t\t\tInteger y= (Integer)P[b];\n\t\t\t\t\treturn x.compareTo(y);\n\t\t\t\t}", "public static int compare(Vertex first, Vertex second) {\n if(first.getKey() == second.getKey())\n return 0;\n else if(first.getKey() >= second.getKey())\n return 1;\n else\n return -1;\n }", "public int compareTo(Point p) {\r\n return (int) compareTo(p.x, p.y, p.z);\r\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\tif ((o1.getValue()-o2.getValue())>0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((o1.getValue()-o2.getValue())<0) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}", "private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }", "@Override\n\t\tpublic int compareTo(X o) {\n\t\t\treturn o.number - this.number; // 내림차순\n\t\t}", "@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tFloatWritable key1 = (FloatWritable) a;\n\t\tFloatWritable key2 = (FloatWritable) b;\n\n\t\t// Implemet sorting in descending order\n\t//\tint result = key1.get() < key2.get() ? 1 : key1.get() == key2.get() ? 0 : -1;\n\t\treturn -1 * key1.compareTo(key2);\n\t}", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "@Override\n public int compare(Pair<Channel, Double> lhs, Pair<Channel, Double> rhs) {\n return rhs.second.compareTo(lhs.second);\n }", "public int compareTo(Object o)\r\n {\r\n GeometryFacetBoundablePair nd = (GeometryFacetBoundablePair) o;\r\n if (minDistance < nd.minDistance) return -1;\r\n if (minDistance > nd.minDistance) return 1;\r\n return 0;\r\n }", "@Override\n public int compareTo(Pair o) {\n return this.v-o.v;\n }", "@Override\n\t\t\tpublic int compare(Set<HitVertex> arg0, Set<HitVertex> arg1) {\n\t\t\t\treturn arg1.size() - arg0.size();\n\t\t\t}", "public int compareTo(Meld that) {\n\t\treturn that.points() - this.points();\n\t}", "private ArrayList<XYValue> sortArray(ArrayList<XYValue> array){\n /*\n //Sorts the xyValues in Ascending order to prepare them for the PointsGraphSeries<DataSet>\n */\n int factor = Integer.parseInt(String.valueOf(Math.round(Math.pow(array.size(),2))));\n int m = array.size()-1;\n int count = 0;\n Log.d(TAG, \"sortArray: Sorting the XYArray.\");\n\n while(true){\n m--;\n if(m <= 0){\n m = array.size() - 1;\n }\n Log.d(TAG, \"sortArray: m = \" + m);\n try{\n //print out the y entrys so we know what the order looks like\n //Log.d(TAG, \"sortArray: Order:\");\n //for(int n = 0;n < array.size();n++){\n //Log.d(TAG, \"sortArray: \" + array.get(n).getY());\n //}\n double tempY = array.get(m-1).getY();\n double tempX = array.get(m-1).getX();\n if(tempX > array.get(m).getX() ){\n array.get(m-1).setY(array.get(m).getY());\n array.get(m).setY(tempY);\n array.get(m-1).setX(array.get(m).getX());\n array.get(m).setX(tempX);\n }\n else if(tempY == array.get(m).getY()){\n count++;\n Log.d(TAG, \"sortArray: count = \" + count);\n }\n\n else if(array.get(m).getX() > array.get(m-1).getX()){\n count++;\n Log.d(TAG, \"sortArray: count = \" + count);\n }\n //break when factorial is done\n if(count == factor ){\n break;\n }\n }catch(ArrayIndexOutOfBoundsException e){\n Log.e(TAG, \"sortArray: ArrayIndexOutOfBoundsException. Need more than 1 data point to create Plot.\" +\n e.getMessage());\n break;\n }\n }\n return array;\n }", "@Override\n\tpublic int compareTo(Key o) {\n\t\tint temp = 0;\n\t\t\t\t\n\t\tif (this.value > o.value) \t\ttemp = 1;\n\t\telse if (this.value < o.value) temp = -1;\n\t\telse \t\t\t\t\t\t\ttemp = 0;\n\t\t\n\t\treturn temp;\n\t}", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "private Value get(Point2D p, Node x) {\n if (x == null) return null;\n if (x.p.equals(p)) return x.val;\n if ((x.vertical && p.x() < x.p.x()) || (!x.vertical && p.y() < x.p.y())) {\n return get(p, x.left);\n }\n else return get(p, x.right);\n }", "@Override\n\t\t\tpublic int compare(Entry<Long, String> e1, Entry<Long, String> e2) {\n\t\t\t\t\n\t\t\t\treturn (int) (e1.getKey()-e2.getKey());\n\t\t\t}", "public int compare(Figure other){\n if(this.getArea()>other.getArea()){\n return 1; \n }\n if( this.getArea()<other.getArea()){\n return -1;\n }\n return 0;\n }", "public Comparator<Point> slopeOrder()\n {\n return new Comparator<Point>()\n {\n @Override\n public int compare(Point o1, Point o2)\n {\n if (slopeTo(o1) < slopeTo(o2)) return -1;\n else if (slopeTo(o1) == slopeTo(o2)) return 0;\n else return 1;\n }\n };\n }", "public static void balanceHeaps()\n {\n // add your code here\n if(Math.abs(s.size()-g.size()) > 1){\n if(s.size() > g.size()){\n g.add(s.poll());\n }\n else {\n s.add(g.poll());\n }\n }\n }", "@Override\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\treturn -(int) (o1.getValue().compareTo(o2.getValue()));\n\t\t\t}", "public boolean decreaseKey(Node<T> x, T k) {\n if (x.key.compareTo(k) < 0) {\n return false;\n }\n x.key = k;\n Node<T> y = x.parent;\n if (y != null && x.key.compareTo(y.key) <= 0) {\n cut(x, y);\n cascadingCut(y);\n }\n if (x.key.compareTo(min.key) <= 0) {\n min = x;\n }\n\n return true;\n }", "void orderEdges(Comparator<E> comparator);", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "@Override\r\n public final int compareTo(final OutlineShape other) {\r\n final float thisSize = getBounds().getSize();\r\n final float otherSize = other.getBounds().getSize();\r\n if( FloatUtil.isEqual(thisSize, otherSize, FloatUtil.EPSILON) ) {\r\n return 0;\r\n } else if( thisSize < otherSize ){\r\n return -1;\r\n } else {\r\n return 1;\r\n }\r\n }", "public int join(IAVLNode x, AVLTree t) {\n\t\tif (this.empty() && t.empty()) {\n\t\t\tthis.root = x;\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (this.empty()) {// t is not empty\n\t\t\tint comp = t.getRoot().getHeight() + 1;\n\t\t\tt.insert(x.getKey(), x.getValue());\n\t\t\tthis.root = t.root;\n\t\t\treturn comp;\n\t\t}\n\n\t\tif (t.empty()) {// this is not empty\n\t\t\tint comp = this.getRoot().getHeight() + 1;\n\t\t\tthis.insert(x.getKey(), x.getValue());\n\t\t\treturn comp;\n\t\t}\n\n\t\tint thisRank = this.getRoot().getHeight();\n\t\tint otherRank = t.getRoot().getHeight();\n\t\tif (thisRank == otherRank) {\n\t\t\tif (this.getRoot().getKey() < x.getKey()) {\n\t\t\t\tx.setLeft(this.getRoot());\n\t\t\t\tthis.getRoot().setParent(x);\n\t\t\t\tx.setRight(t.getRoot());\n\t\t\t\tt.getRoot().setParent(x);\n\t\t\t\tx.setHeight(x.getLeft().getHeight() + 1);\n\t\t\t\tthis.root = x;\n\t\t\t} else {// this.getRoot().getKey() > x.getKey()\n\t\t\t\tx.setRight(this.getRoot());\n\t\t\t\tthis.getRoot().setParent(x);\n\t\t\t\tx.setLeft(t.getRoot());\n\t\t\t\tt.getRoot().setParent(x);\n\t\t\t\tx.setHeight(x.getRight().getHeight() + 1);\n\t\t\t\tthis.root = x;\n\t\t\t}\n\t\t\treturn (Math.abs(thisRank - otherRank) + 1);\n\t\t} // if we got here, than the trees aren't in the same height\n\t\tboolean newIsHigher;\n\t\tboolean newIsBigger;\n\t\tnewIsHigher = (this.getRoot().getHeight() < t.getRoot().getHeight());\n\t\tnewIsBigger = (this.getRoot().getKey() < this.getRoot().getKey());\n\t\tAVLNode tempX = (AVLNode) x;\n\t\tif (newIsHigher && newIsBigger) {\n\t\t\tt.joinByLeft(tempX, this, 'R');\n\t\t}\n\t\tif (!newIsHigher && !newIsBigger) {\n\t\t\tthis.joinByLeft(tempX, t, 'L');\n\t\t}\n\t\tif (newIsHigher && !newIsBigger) {\n\t\t\tt.joinByRight(tempX, this, 'R');\n\t\t}\n\t\tif (!newIsHigher && newIsBigger) {\n\t\t\tthis.joinByRight(tempX, t, 'L');\n\t\t}\n\t\treturn (Math.abs(thisRank - otherRank) + 1);\n\t}", "public void binomialHeapDecreaseKey(Node x, int k) {\n\t\tif(k>x.key) {\n\t\t\tSystem.out.println(\"New key is greater than current key\");\n\t\t}\n\t\telse {\n\t\t\t// change the key of given node to k\n\t\t\tx.key = k;\n\t\t\tNode y = x;\n\t\t\tNode z = y.p;\n\t\t\t// bubble up the node to its correct position in the tree\n\t\t\t// by just exchanging the key values of all nodes in\n\t\t\t// y's path to the root\n\t\t\twhile(z!=null && y.key < z.key) {\n\t\t\t\tint temp = z.key;\n\t\t\t\tz.key = y.key;\n\t\t\t\ty.key = temp;\n\t\t\t\ty = z;\n\t\t\t\tz = y.p;\n\t\t\t}\n\t\t}\n\t}", "public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //go through entire array. looking for swaps that need to be done\n for(int i = 0; i<currentRide-1; i++)\n {\n //if the other RideLines has less people\n if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople())\n {\n // standard swap, using a temporary. swap with less people\n RideLines temp = rides[i];\n rides[i]=rides[i+1];\n rides[i+1]=temp;\n \n swapMade=true;//remember this pass made at least one swap\n }\n \n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }", "public void insertKey(int x){\r\n\t\tSystem.out.println(\"insertKey: Leaf\");\r\n\t\t//check if input is duplicate entry\r\n\t\tif (this.containsKey(x)){\r\n\t\t\tSystem.out.println(\"Error: Duplicate key entry\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//makes sure inputs positive\r\n\t\tif(x<1){\r\n\t\t\tSystem.out.println(\"Input Error: You cannot input a negative value for a key\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((!this.containsKey(x)) && (!this.isFull())){\r\n\t\t\tkeys[counter]=x;\r\n\t\t\tcounter++;\r\n\t\t\tArrays.sort(keys,0,counter);//sort\r\n\t\t}else if (this.isFull()){\r\n\t\t\tArrays.sort(keys);//sort\r\n\t\t\tBPlusTree.splitChild(this, x);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "private PriorityQueue<Integer> get(Node x, int key) {\n while (x != null) {\n int cmp = key - x.key;\n if (cmp < 0)\n x = x.left;\n else if (cmp > 0)\n x = x.right;\n else\n return x.val;\n }\n return null;\n }", "public ListNode<Integer> partitionListSpaceOptimised(ListNode<Integer> head , int x){\r\n\t\t\r\n\t\tListNode<Integer> head1 = null; // for elements lower than x;\r\n\t\tListNode<Integer> tail1 = null;\r\n\t\tListNode<Integer> head2 = null; // for elements greater than or equal to x;\r\n\t\tListNode<Integer> tail2 = null;\r\n\t\tListNode<Integer> p = head;\r\n\t\t\r\n\t\twhile( p != null ){\r\n\t\t\tListNode<Integer> next = p.next;\r\n\t\t\tp.next = null;\r\n\t\t\tif(p.data < x){\r\n\t\t\t\tif(head1 == null){\r\n\t\t\t\t\thead1 = p;\r\n\t\t\t\t\ttail1 = head1;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttail1.next = p;\r\n\t\t\t\t\ttail1 = tail1.next;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif(head2 == null){\r\n\t\t\t\t\thead2 = p;\r\n\t\t\t\t\ttail2 = head2;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttail2.next = p;\r\n\t\t\t\t\ttail2 = tail2.next;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tp = next;\r\n\t\t}\r\n\t\tif(head1 == null)\r\n\t\t\treturn head2;\r\n\t\t tail1.next = head2; // merge the lists;\r\n\t\treturn head1;\r\n\t}", "public void replaceIfCloser(S2Point x, S2Point y) {\n double d2 = S2Point.minus(x, y).norm2();\n if (d2 < dmin2 || (d2 == dmin2 && y.lessThan(vmin))) {\n dmin2 = d2;\n vmin = y;\n }\n }", "public Comparator<PoiPoint> getPointStartTimeComparator() {\r\n \r\n class PointStartTimeComparator implements Comparator<PoiPoint> {\r\n public int compare(PoiPoint point1, PoiPoint point2) {\r\n return (point1.getStartTimeInt() - point2.getStartTimeInt());\r\n }\r\n }\r\n \r\n return new PointStartTimeComparator();\r\n }", "public Data poll(Key key) {\n var curr = root;\n var next = root;\n while (next != null && next.key.compareTo(key) != 0) {\n curr = next;\n\n if (key.compareTo(curr.key) < 0) {\n next = curr.left; \n } else {\n next = curr.right;\n }\n }\n\n if (next == null) {\n return null;\n } else {\n var ret = next.data;\n\n if (next.right != null && next.left != null) {\n int predHeight = 0;\n var pred = next.right;\n var predP = next;\n while (pred.left != null) {\n predP = pred;\n pred = pred.left;\n predHeight++;\n }\n\n int succHeight = 0;\n var succ = next.left;\n var succP = next;\n while (succ.right != null) {\n succP = succ;\n succ = succ.right;\n succHeight++;\n }\n \n Node newNode;\n Node newNodeP;\n Node newNodeS;\n if (succHeight > predHeight) {\n newNode = succ;\n newNodeP = succP;\n newNodeS = succ.left;\n } else {\n newNode = pred;\n newNodeP = predP;\n newNodeS = succ.right;\n }\n\n if (newNodeP.right == newNode) {\n newNodeP.right = newNodeS;\n } else {\n newNodeP.left = newNodeS;\n }\n\n next.key = newNode.key;\n next.data = newNode.data;\n } else {\n var child = next.right == null ? next.left\n : next.right;\n if (next == root) {\n root = child;\n } else {\n if (curr.left == next) {\n curr.left = child;\n } else {\n curr.right = child;\n }\n }\n }\n return ret;\n }\n }", "private void sortByAmount(){\n int stopPos = 0;\n while(colours.size()-stopPos > 0){\n int inARow = 1;\n for(int i = colours.size() - 1; i > stopPos; i--){\n if(colours.get(i-1).getAmount() < colours.get(i).getAmount()){\n rgb temp = new rgb(colours.get(i-1));\n colours.set(i-1, colours.get(i));\n colours.set(i, temp);\n }else{\n inARow++;\n }\n }\n stopPos++;\n if(inARow == colours.size()){\n break;\n }\n }\n }", "private int compareGeometryType(ProcessorDistributionKey key)\n {\n // If the geometry types are the same, use geometry specific key\n if (myGeometryType == key.getGeometryType())\n {\n if (myGeometryOrderKey != null && key.getGeometryOrderKey() != null)\n {\n return myGeometryOrderKey.compareTo(key.getGeometryOrderKey());\n }\n return 0;\n }\n\n // Render tile geometries before other things.\n // TODO This needs to be fixed since it shouldn't apply to terrain\n // tiles.\n if (TileGeometry.class.isAssignableFrom(myGeometryType))\n {\n return -1;\n }\n\n if (TileGeometry.class.isAssignableFrom(key.getGeometryType()))\n {\n return 1;\n }\n return myGeometryType.hashCode() < key.getGeometryType().hashCode() ? -1 : 1;\n }", "private static boolean compareEdges(S2Point a0, S2Point a1, S2Point b0, S2Point b1) {\n if (a1.lessThan(a0)) {\n S2Point temp = a0;\n a0 = a1;\n a1 = temp;\n }\n if (b1.lessThan(b0)) {\n S2Point temp = b0;\n b0 = b1;\n b1 = temp;\n }\n return a0.lessThan(b0) || (a0.equalsPoint(b0) && b0.lessThan(b1));\n }", "public ListNode<Integer> partitionListAroundX(ListNode<Integer> head, int x){\r\n\t\t\r\n\t\tListNode<Integer> newHead = head;\r\n\t\tListNode<Integer> tail = head;\r\n\t\tListNode<Integer> p = head;\r\n\t\t\r\n\t\twhile(p != null){\r\n\t ListNode<Integer> next = p.next;\t\r\n\t if(p.data < x){\r\n\t \t //insert before head\r\n\t \t p.next = head;\r\n\t \t head = p;\r\n\t } else {\r\n\t \t //insert after tail\r\n\t \t tail.next = p;\r\n\t \t tail = p;\r\n\t }\r\n\t p = next;\r\n\t\t}\r\n\t\t\r\n\t\ttail.next = null;\r\n\t\t\r\n\t\treturn newHead;\r\n\t}", "@Override\n public int compare(Pen p1, Pen p2) {\n int r1 = p1.remaining();\n int r2 = p2.remaining();\n if(r1 == 1) r1 = 7;\n if(r2 == 1) r2 = 7;\n return Integer.compare(r1,r2);\n }", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "private void sortCorners(ArrayList<Point> corners) {\n Collections.sort(corners, new Comparator<Point>() {\n public int compare (Point a, Point b) {\n double val = a.y - b.y;\n if (val < 0) return -1;\n else if (val > 0) return 1;\n else return 0;\n }\n }\n );\n if (corners.size() > 1) {\n if (corners.get(0).x > corners.get(1).x) {\n Point temp = corners.get(0);\n corners.set(0, corners.get(1));\n corners.set(1, temp);\n }\n }\n if (corners.size() > 3) {\n if (corners.get(2).x > corners.get(3).x) {\n Point temp = corners.get(2);\n corners.set(2, corners.get(3));\n corners.set(3, temp);\n }\n }\n }", "@Override\n\t\t\tpublic int compare(Entry<String, Double> o1,\n\t\t\t\t\tEntry<String, Double> o2) {\n\t\t\t\tif(o1.getValue()>o2.getValue()){\n\t\t\t\t\treturn -1;\n\t\t\t\t}else if(o1.getValue()<o2.getValue()){\n\t\t\t\t\treturn 1;\n\t\t\t\t}else{\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}", "public static <Key extends Comparable<Key> > void sort (Key [] a){\n int n=a.length;\n //rearrange the array to a max heap\n for (int k=n/2;k>=1;k--) sink(a,k,n);\n for ( int i=0;i<a.length;i++){\n exch(a,1,n--);\n sink(a,1,n);\n }\n\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "private List<MyPair> sortAndTrim(int k, List<MyPair> neighbours) {\n\n for (int i = 0; i <= neighbours.size() - 2; i++) {\n for (int j = 0; j <= neighbours.size() - 2 - i; j++) {\n if (neighbours.get(j + 1).getValue() > neighbours.get(j).getValue()) {\n Collections.swap(neighbours, j, j + 1);\n }\n }\n }\n if (k != -1) {\n try {\n neighbours = neighbours.subList(0, k);\n } catch (IndexOutOfBoundsException e) {\n return neighbours;\n }\n }\n return neighbours;\n }", "@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tIntPaire o1 = (IntPaire) a;\n\t\tIntPaire o2 = (IntPaire) b;\n\t\tif(!o1.getFirstKey().equals(o2.getFirstKey())){\n\t\t\treturn o1.getFirstKey().compareTo(o2.getFirstKey());\n\t\t}else{\n\t\t\treturn o1.getSecondKey() - o2.getSecondKey();\n\t\t}\n\t}", "public static double closestPair(Point[] sortedX) {\n if (sortedX.length <= 1) {\n return Double.MAX_VALUE;\n }\n double mid = sortedX[(sortedX.length) / 2].getX();\n double firstHalf = closestPair(Arrays.copyOfRange(sortedX, 0, (sortedX.length) / 2));\n double secondHalf = closestPair(Arrays.copyOfRange(sortedX, (sortedX.length) / 2, sortedX.length));\n double min = Math.min(firstHalf, secondHalf);\n ArrayList<Point> close = new ArrayList<Point>();\n for (int i = 0; i < sortedX.length; i++) {\n double dis = Math.abs(sortedX[i].getX() - mid);\n if (dis < min) {\n close.add(sortedX[i]);\n }\n }\n // sort by Y coordinates\n Collections.sort(close, new Comparator<Point>() {\n public int compare(Point obj1, Point obj2) {\n return (int) (obj1.getY() - obj2.getY());\n }\n });\n Point[] near = close.toArray(new Point[close.size()]);\n\n for (int i = 0; i < near.length; i++) {\n int k = 1;\n while (i + k < near.length && near[i + k].getY() < near[i].getY() + min) {\n if (min > near[i].distance(near[i + k])) {\n min = near[i].distance(near[i + k]);\n System.out.println(\"near \" + near[i].distance(near[i + k]));\n System.out.println(\"best \" + best);\n\n if (near[i].distance(near[i + k]) < best) {\n best = near[i].distance(near[i + k]);\n arr[0] = near[i];\n arr[1] = near[i + k];\n // System.out.println(arr[0].getX());\n // System.out.println(arr[1].getX());\n\n }\n }\n k++;\n }\n }\n return min;\n }", "@Override\n public int compare(Point pointOne, Point pointTwo) {\n if (pointOne == null) {\n throw new JMetalException(\"PointOne is null\") ;\n } else if (pointTwo == null) {\n throw new JMetalException(\"PointTwo is null\") ;\n } else if (index >= pointOne.getDimension()) {\n throw new JMetalException(\"The index value \" + index\n + \" is out of range (0, \" + (pointOne.getDimension()-1) + \")\") ;\n } else if (index >= pointTwo.getDimension()) {\n throw new JMetalException(\"The index value \" + index\n + \" is out of range (0, \" + (pointTwo.getDimension()-1) + \")\") ;\n }\n\n if (pointOne.getValue(index) < pointTwo.getValue(index)) {\n return -1;\n } else if (pointOne.getValue(index) > pointTwo.getValue(index)) {\n return 1;\n } else {\n return 0;\n }\n }", "public static void sortX(ArrayList<Point> points) {\n\t\tCollections.sort(points, new Comparator<Point>() {\n\t\t\tpublic int compare(Point p1, Point p2) {\n\t\t\t\tif (p1.getX() < p2.getX())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (p1.getX() > p2.getX())\n\t\t\t\t\treturn 1;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}" ]
[ "0.584556", "0.57266855", "0.570343", "0.57005763", "0.55144477", "0.5476899", "0.5463445", "0.5415845", "0.54078066", "0.5383167", "0.53764844", "0.5302367", "0.52983916", "0.5266672", "0.52548707", "0.52398604", "0.5158393", "0.51507", "0.5150248", "0.5149169", "0.51032025", "0.5102458", "0.5086988", "0.5078641", "0.50770664", "0.5071639", "0.50372636", "0.5032638", "0.5015211", "0.50059676", "0.49748826", "0.49715972", "0.4966878", "0.49621743", "0.49244493", "0.4923293", "0.48954466", "0.48890504", "0.48873988", "0.4884104", "0.48760563", "0.48523653", "0.48422688", "0.4840893", "0.48360616", "0.48317873", "0.48255834", "0.48210984", "0.47884125", "0.47744548", "0.4767158", "0.47526234", "0.47511867", "0.47462332", "0.47462228", "0.47409108", "0.47102332", "0.47101188", "0.47100848", "0.47011", "0.46975607", "0.46952146", "0.4680581", "0.4680575", "0.46763602", "0.4660651", "0.46589154", "0.46563622", "0.46492276", "0.4646047", "0.4641785", "0.4638614", "0.4637162", "0.46312642", "0.4629742", "0.46262598", "0.46215358", "0.46200624", "0.46199703", "0.46132648", "0.4612928", "0.46125066", "0.4603339", "0.45980135", "0.4596761", "0.45896032", "0.45895034", "0.4588397", "0.4579921", "0.45766473", "0.45739052", "0.45574236", "0.4557105", "0.45568055", "0.45535696", "0.45515501", "0.45478636", "0.45441097", "0.45418587", "0.45372966" ]
0.62325186
0
BST solution O(nlogn) time and O(n) space implementation of above)
public List<int[]> getSkyline(int[][] buildings) { List<int[]> result = new ArrayList<>(); //Can also use TreeMap<Height, Count> here to implement multi-map TreeSet<Rectangle> bst = new TreeSet<>(); List<KeyPoint> sortedKeyPoints = new ArrayList<>(); for (int i = 0; i < buildings.length; ++i) { Rectangle rec = new Rectangle(buildings[i][0], buildings[i][1], buildings[i][2]); sortedKeyPoints.add(new KeyPoint(rec.l, rec)); sortedKeyPoints.add(new KeyPoint(rec.r, rec)); } sortedKeyPoints.sort(null); for (int i = 0; i < sortedKeyPoints.size(); ++i) { int x = sortedKeyPoints.get(i).x; Rectangle rec = sortedKeyPoints.get(i).rec; if (x == rec.l) { bst.add(rec); } else { bst.remove(rec); } int[] curPoint = bst.isEmpty() ? new int[]{x, 0} : new int[]{x, bst.last().h}; if (result.isEmpty()) { result.add(curPoint); } else { int[] prePoint = result.get(result.size()-1); if (prePoint[0] == curPoint[0]) { prePoint[1] = curPoint[1]; } else if (prePoint[1] != curPoint[1]) { result.add(curPoint); } } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "public static int[][] optimalBST2(double[] p,double[] q, int num){\n double[][] e = new double[num+2][num+2];//子树期望代价\n double[][] w = new double[num+2][num+2];//子树总概率\n //why e and w is two bigger than num?\n //because when i==j, e[i][i-1] + e[i+1][j] + w[i][j];\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n //init--初始化\n for(int i=1; i<num+2; i++){\n e[i][i-1] = q[i-1];\n w[i][i-1] = q[i-1];\n }\n\n for(int d = 0; d<num; d++){\n //插入个数 : 0 - num-1, 从0开始\n for(int i=1; i<=num-d; i++){\n //起始下标 : 1 - num, 从1开始\n int j = i + d;\n e[i][j] = 9999;\n w[i][j] = w[i][j-1] + p[j] + q[j];//\n\n //because of root[i][j-1] <= root[i][j] <= root[i+1][j]\n //so why?\n //\n //进行优化!!!\n if(i == j){\n root[i][j] = i;\n e[i][j] = e[i][i-1] + e[i+1][i] + w[i][i];\n }else{\n for(int k=root[i][j-1]; k<=root[i+1][j]; k++){\n //中间下标\n double temp = e[i][k-1] + e[k+1][j] + w[i][j];\n if(temp < e[i][j]){\n e[i][j] = temp;\n //找到小的,记录下来\n root[i][j] = k;\n }\n\n }\n }\n }\n }\n return root;\n }", "public static int[][] optimalBST(double[] p,double[] q, int num){\n double[][] e = new double[num+2][num+2];//子树期望代价\n double[][] w = new double[num+2][num+2];//子树总概率\n //why e and w is two bigger than num?\n //because when i==j, e[i][i-1] + e[i+1][j] + w[i][j];\n //when i = 1 or j = num, so e[1][0]、e[num+1][num]\n //here w can use the size of num+1, but in order not to so much complexity in init to judge i\n //so add a bigger w is look good!\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n //init--初始化\n for(int i=1; i<num+2; i++){\n e[i][i-1] = q[i-1];\n w[i][i-1] = q[i-1];\n }\n\n for(int d = 0; d<num; d++){\n //插入个数 : 0 - num-1, 从0开始\n for(int i=1; i<=num-d; i++){\n //起始下标 : 1 - num, 从1开始\n int j = i + d;\n e[i][j] = 9999;\n w[i][j] = w[i][j-1] + p[j] + q[j];//\n for(int k=i; k<=j; k++){\n //中间下标\n double temp = e[i][k-1] + e[k+1][j] + w[i][j];\n if(temp < e[i][j]){\n e[i][j] = temp;\n //找到小的,记录下来\n System.out.println(\"i--> \"+i+\", j--> \"+j);\n root[i][j] = k;\n }\n }\n }\n }\n return root;\n }", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "public TreeNode sortedArrayToBST2(int[] nums) {\n \n int len = nums.length;\n if ( len == 0 ) { return null; }\n \n TreeNode head = new TreeNode(0); \t// 0 as a placeholder\n \n Deque<TreeNode> nodeStack = new LinkedList<TreeNode>() {{ push(head); }};\n Deque<Integer> leftIndexStack = new LinkedList<Integer>() {{ push(0); }};\n Deque<Integer> rightIndexStack = new LinkedList<Integer>() {{ push(len-1); }};\n \n\t\twhile (!nodeStack.isEmpty()) {\n\t\t\tTreeNode currNode = nodeStack.pop();\n\t\t\t\n\t\t\tint l = leftIndexStack.pop();\n\t\t\tint r = rightIndexStack.pop();\t\t// right index\n\t\t\tint mid = l + (r - l) / 2; \t\t\t// avoid overflow\n\t\t\tcurrNode.val = nums[mid];\t\t\t// build root node\n\t\t\t\n\t\t\tif (l <= mid - 1) {\t\t// 左子树还有节点需要添加\n\t\t\t\tcurrNode.left = new TreeNode(0);\t\t// 新建一个节点并进入node stack,值后面添加\n\t\t\t\tnodeStack.push(currNode.left);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(l);\t\t\t\t// 添加一对索引(索引都是成双成对添加),缩小范围到左边\n\t\t\t\trightIndexStack.push(mid - 1);\n\t\t\t}\n\t\t\tif (mid + 1 <= r) {\t\t// right index is valid\n\t\t\t\tcurrNode.right = new TreeNode(0);\n\t\t\t\tnodeStack.push(currNode.right);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(mid + 1);\n\t\t\t\trightIndexStack.push(r);\n\t\t\t}\n\t\t}\n return head;\n }", "private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n public void searchNodesBST()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(6);\n bst.insert(root, root);\n bst.insert(root, new No(2));\n bst.insert(root, new No(9));\n No k = new No(1);\n bst.insert(root, k);\n bst.insert(root, new No(4));\n bst.insert(root, new No(8));\n assertEquals(k, bst.search(root, k));\n //bst.inOrder(root);\n }", "public static int[][] optimalBST(double[] p, int num){\n double[][] e = new double[num+2][num+2];\n double[][] w = new double[num+1][num+1];\n //this will to easy count the sum of w from i to j\n //so use w[i][j] = w[i][j-1] + p[j]\n //therefor the size of w is also need num+1\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n for(int d = 0; d<num; d++){\n for(int i=1; i<=num-d; i++){\n int j = i + d;\n e[i][j] = Double.MAX_VALUE;\n w[i][j] = w[i][j-1] + p[j-1];//\n for(int k=i; k<=j; k++){\n double temp = w[i][j] + e[i][k-1] + e[k+1][j];;\n if(temp < e[i][j]){\n e[i][j] = temp;\n root[i][j] = k;\n }\n }\n }\n }\n ArrayTool.printDoubleMatrix(w);\n System.out.println(\"the total Search probability of this optimal BST is \"+ e[1][num]);\n return root;\n }", "public static void main(String[] args){\n Node root = null;\n BinarySearchTree bst = new BinarySearchTree();\n root = bst.insert(root, 15);\n root = bst.insert(root, 10);\n root = bst.insert(root, 20);\n root = bst.insert(root, 25);\n root = bst.insert(root, 8);\n root = bst.insert(root, 12);\n // System.out.println(\"search result: \" + bst.is_exists(root, 12));\n // System.out.println(\"min value: \" + bst.findMinValue(root));\n // System.out.println(\"max value: \" + bst.findMaxValue(root));\n // System.out.println(\"level order traversal: \");\n // bst.levelOrderTraversal(root);\n // System.out.println(\"preorder traversal : \");\n // bst.preorderTraversal(root);\n // System.out.println(\"inorder traversal : \");\n // bst.inorderTraversal(root);\n // System.out.println(\"postorder traversal : \");\n // bst.postorderTraversal(root);\n // System.out.println(bst.isBinarySearchTree(root));\n // root = bst.deleteNode(root, 10);\n // bst.inorderTraversal(root); // result should be: 8 12 15 20 25\n System.out.println(bst.inorderSuccessor(root, 8)); // result should be: 10\n System.out.println(bst.inorderSuccessor(root, 15)); // result should be: 20\n System.out.println(bst.inorderSuccessor(root, 20)); // result should be: 25\n System.out.println(bst.inorderSuccessor(root, 25)); // result should be: null\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n int len = nums.length;\n if (len == 0) {\n return null;\n }\n return rescurse(nums, 0, len- 1);\n\n }", "private TreeNode cBST(int begin,int end){\n\n if(begin >= end){ return null;}\n\n int index = (begin + end)/2;\n\n //Left-Visit\n TreeNode l = cBST(begin,index);\n\n //Middle-Visit\n TreeNode root = new TreeNode(cur.val);\n root.left = l;\n cur = cur.next;\n\n //Right-Visit\n TreeNode r = cBST(index+1,end);\n\n //Post-Process and return values\n root.right = r;\n return root;\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public TreeNode sortedArrayToBST(int[] nums){\r\n int length = nums.length;\r\n if( length == 0 ){\r\n return null;\r\n }else if( length == 1){\r\n return new TreeNode(nums[0]);\r\n }\r\n return sortedArrayToBST(nums, 0, length-1);\r\n }", "@Override\r\n\tpublic int insert(T element) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.size++;\r\n\t\tBSTNode<T> z = new BSTNode();\r\n\t\tz.data = element;\r\n\t\tz.parent = null;\r\n\t\tz.left = null;\r\n\t\tz.right = null;\r\n\t\t\r\n\t\t\r\n\t\tBSTNode<T> x = this.root;\r\n\t\tBSTNode<T> y = null;//trailing\r\n\t\t\r\n\t\tint traversals = 0;\r\n\t\twhile(x!= null) {\r\n\t\t\ttraversals++;\r\n\t\t\ty=x;\r\n\t\t\tif(z.data.compareTo(x.data)<0) {\r\n\t\t\t\tx = x.left;\r\n\t\t\t}else {\r\n\t\t\t\tx = x.right;\r\n\t\t\t}\r\n\t\t}\r\n\t\tz.parent = y;\r\n\t\tif(y==null) {\r\n\t\t\tthis.root=z;\r\n\t\t}else if(z.data.compareTo(y.data)<0) {\r\n\t\t\ty.left=z;\r\n\t\t}else {\r\n\t\t\ty.right=z;\r\n\t\t}\r\n\t\t\r\n\t\treturn traversals;\r\n\t}", "@Test\n public void insert_BST_0_TreeFull()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(4);\n \n bst.insert(null, root);\n //bst.printTree();\n \n bst.insert(root, new No(2));\n //bst.printTree();\n \n bst.insert(root, new No(3));\n //bst.printTree();\n \n bst.insert(root, new No(1));\n //bst.printTree();\n \n bst.insert(root, new No(6));\n //bst.printTree();\n \n bst.insert(root, new No(7));\n //bst.printTree();\n \n bst.insert(root, new No(5));\n //bst.printTree();\n \n //bst.inOrder(root);\n assertEquals(new Integer(7), bst.size());\n }", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "private Boolean isBST(BinaryNode node) {\n\n if (node == null) return true;\n\n if (node.right == null && node.left == null) {\n return true;\n } else if (node.right == null) {\n if ((Integer)node.left.element < (Integer)node.element) return isBST(node.left);\n else return false;\n } else if (node.left == null) {\n if ((Integer)node.right.element > (Integer)node.element) return isBST(node.right);\n return false;\n } else if ((Integer)node.right.element > (Integer)node.element && (Integer)node.left.element < (Integer)node.element){\n return isBST(node.right) && isBST(node.left);\n } else {return false;}\n }", "private void BinarySearch(Node node, int index) {\n Node left, right;\n left = node.left;\n right = node.right;\n\n int leftIndex = (2 * index) + 1;\n int rightIndex = (2 * index) + 2;\n if (left != null) {\n ArrayTree[leftIndex] = left.key;\n BinarySearch(left, leftIndex);\n lastIndex = Math.max(leftIndex, lastIndex);\n } else {\n if (leftIndex < ArrayTree.length - 1) {\n ArrayTree[leftIndex] = 0;\n }\n }\n\n if (right != null) {\n ArrayTree[rightIndex] = right.key;\n BinarySearch(right, rightIndex);\n lastIndex = Math.max(rightIndex, lastIndex);\n } else {\n if (rightIndex < ArrayTree.length - 1) {\n ArrayTree[rightIndex] = 0;\n }\n }\n }", "public static void main(String args[]){\n SimpleBST<Integer> t = new SimpleBST<Integer>();\n\n //build the tree / set the size manually\n //only for testing purpose\n Node<Integer> node = new Node<>(112);\n Node<Integer> node2 = new Node<>(330);\n node2 = new Node<>(440,node2,null);\n node = new Node<>(310,node,node2);\n t.root = node;\n t.size = 4;\n\n // Current tree:\n //\t\t\t 310\n // / \\\n // 112 440\n // /\n // 330\n\n\n //checking basic features\n if (t.root.data == 310 && t.contains(112) && !t.contains(211) && t.height() == 2){\n System.out.println(\"Yay 1\");\n }\n\n //checking more features\n if (t.numLeaves() == 2 && SimpleBST.findMax(t.root)==440\n && SimpleBST.findPredecessor(t.root) == 112){\n System.out.println(\"Yay 2\");\n }\n\n //toString and toArray\n if (t.toString().equals(\"112 310 330 440 \") && t.toArray().length==t.size()\n && t.toArray()[0].equals(310) && t.toArray()[1].equals(112)\n && t.toArray()[2].equals(440) && t.toArray()[3].equals(330) ){\n System.out.println(\"Yay 3\");\n //System.out.println(t.toString());\n }\n\n // start w/ an empty tree and insert to build the same tree as above\n t = new SimpleBST<Integer>();\n if (t.insert(310) && !t.insert(null) && t.size()==1 && t.height()==0\n && t.insert(112) && t.insert(440) && t.insert(330) && !t.insert(330)\n ){\n System.out.println(\"Yay 4\");\n }\n\n if (t.size()==4 && t.height()==2 && t.root.data == 310 &&\n t.root.left.data == 112 && t.root.right.data==440\n && t.root.right.left.data == 330){\n System.out.println(\"Yay 5\");\n }\n\n // more insertion\n t.insert(465);\n t.insert(321);\n t.insert(211);\n\n //\t\t\t 310\n // / \\\n // 112 440\n // \\ / \\\n // 211 330 465\n // /\n // 321\n\n\n\n //remove leaf (211), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 330 465\n // /\n // 321\n\n if (t.remove(211) && !t.contains(211) && t.size()==6 && t.height() == 3\n && SimpleBST.findMax(t.root.left) == 112){\n System.out.println(\"Yay 6\");\n }\n\n //remove node w/ single child (330), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 321 465\n\n if (t.remove(330) && !t.contains(330) && t.size()==5 && t.height() == 2\n && t.root.right.left.data == 321){\n System.out.println(\"Yay 7\");\n }\n\n //remove node w/ two children (440), after removal:\n //\t\t\t 310\n // / \\\n // 112 321\n // \\\n // 465\n\n if ((t.root!=null) && SimpleBST.findPredecessor(t.root.right) == 321 && t.remove(440) && !t.contains(440)\n && t.size()==4 && t.height() == 2 && t.root.right.data == 321){\n System.out.println(\"Yay 8\");\n }\n\n }", "@Test\n public void test(){\n BinarySearchTree tree = new BinarySearchTree(new Node(35));\n\n tree.addNode(4);\n tree.addNode(15);\n tree.addNode(3);\n tree.addNode(1);\n tree.addNode(20);\n tree.addNode(8);\n tree.addNode(50);\n tree.addNode(40);\n tree.addNode(30);\n tree.addNode(80);\n tree.addNode(70);\n\n tree.addNode(90);\n\n tree.deleteNode(50);\n System.out.println(\"=====中序遍历 递归法=====\");\n TreeUtil.traverseInOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traverseInOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====前序遍历=====\");\n TreeUtil.traversePreOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traversePreOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历=====\");\n TreeUtil.traversePostOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历 迭代法=====\");\n TreeUtil.traversePostOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====层次遍历=====\");\n TreeUtil.traverseLevelOrder(tree.getRoot());\n\n int height = TreeUtil.getChildDepth(tree.getRoot());\n System.out.println(\"\");\n System.out.println(\"树高:\"+height);\n }", "public boolean isValidBSTII(TreeNode node) {\n if (node == null) {\n return true;\n }\n Stack<TreeNode> stack = new Stack<>();\n \n while(node != null) {\n stack.push(node);\n node = node.left;\n }\n TreeNode prev = null;\n while(!stack.isEmpty()) {\n TreeNode curr = stack.peek();\n if (prev != null && prev.val >= curr.val) {\n return false;\n }\n prev = curr;\n if (curr.right == null) {\n curr = stack.pop();\n while(!stack.isEmpty() && stack.peek().right == curr) {\n curr = stack.pop();\n }\n } else {\n curr = curr.right;\n while(curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n }\n }\n return true;\n }", "public ArrayList<K> inOrdorTraverseBST(){\n BSTNode<K> currentNode = this.rootNode;\n LinkedList<BSTNode<K>> nodeStack = new LinkedList<BSTNode<K>>();\n ArrayList<K> result = new ArrayList<K>();\n \n if (currentNode == null)\n return null;\n \n while (currentNode != null || nodeStack.size() > 0) {\n while (currentNode != null) {\n nodeStack.add(currentNode);\n currentNode = currentNode.getLeftChild();\n }\n currentNode = nodeStack.pollLast();\n result.add(currentNode.getId());\n currentNode = currentNode.getRightChild();\n }\n \n return result;\n }", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "public static TreeNode insertIntoBST(TreeNode root, int val)\n{\n TreeNode droot = root;\n TreeNode par = find(droot, val, null);\n if(par==null)\n return par;\n if(par.val < val)\n par.right = new TreeNode(val);\n else\n par.left = new TreeNode(val);\n return root;\n}", "@Test\n public void insert_BST_1_TreeFull()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(8);\n \n bst.insert(null, root);\n //bst.printTree();\n \n bst.insert(root, new No(4));\n //bst.printTree();\n \n bst.insert(root, new No(12));\n //bst.printTree();\n \n bst.insert(root, new No(2));\n //bst.printTree();\n \n bst.insert(root, new No(6));\n //bst.printTree();\n \n bst.insert(root, new No(10));\n //bst.printTree();\n \n bst.insert(root, new No(13));\n //bst.printTree();\n \n bst.insert(root, new No(3));\n //bst.printTree();\n \n bst.insert(root, new No(9));\n //bst.printTree();\n \n bst.insert(root, new No(5));\n //bst.printTree();\n \n bst.insert(root, new No(7));\n //bst.printTree();\n \n bst.insert(root, new No(1));\n //bst.printTree();\n \n bst.insert(root, new No(11));\n //bst.printTree();\n \n bst.insert(root, new No(14));\n //bst.printTree();\n \n bst.insert(root, new No(15));\n //bst.printTree();\n \n //bst.inOrder(root);\n \n assertEquals(new Integer(15), bst.size());\n }", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public Vector<K> BFS(){\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tVector v= new Vector();\n\t\tif (root == null)\n\t\t\t{return v;}\n\t\tq.add(root);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode n = (Node) q.remove();\n\t\t\tv.add(n.key);\n\t\t\tif (n.left != null){\n\t\t\t\tq.add(n.left);\n\t\t\t}\n\t\t\tif (n.right != null){\n\t\t\t\tq.add(n.right);\n\t\t\t}\n\t\t}\n\t\treturn v;\n\t}", "public boolean isBSTII(TreeNode root) {\n Stack<TreeNode> stack = new Stack<>();\n double prev = - Double.MAX_VALUE;\n while (root != null || !stack.isEmpty()) {\n while(root != null) {\n stack.push(root);\n root = root.left;\n }\n root = stack.pop();\n if (root.val <= prev) {\n return false;\n }\n prev = root.val;\n root = root.right;\n }\n return true;\n }", "public Integer countBST() {\n\n if (root == null) return 0;\n try {\n Integer x = (Integer)root.element;\n } catch (NumberFormatException e) {\n System.out.println(\"count BST works only with comparable values, AKA Integers.\" + e);\n return 0;\n }\n return countBSTRecur(root);\n }", "public BST_Recursive() {\n\t\tthis.root = null;\n\t\tnumOfElements = 0; \n\t}", "@Override\n public boolean checkForBinarySearchTree() {\n if (this.rootNode == null)\n return true;\n \n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n for (int i=1; i<inorderTraverse.size(); i++) {\n if(inorderTraverse.get(i-1).compareTo(inorderTraverse.get(i)) == 1)\n return false;\n }\n \n return true;\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n if (nums.length == 0) {\n return null;\n }\n return constructBST(nums, 0, nums.length - 1);\n }", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "public Node sortedLinkedListToBST(ListNode root) {\n ListNode temp = root;\n int length = 0;\n while (temp != null) {\n temp = temp.next;\n length++;\n }\n\n list = root;\n return sortedLinkedListToBST(0, length - 1);\n //throw new IllegalArgumentException();\n }", "static void balanceBST(Node node) {\n int[] array = convertPreOrderToArray(node, new ArrayList<Integer>());\n getBalancedBST(array);\n }", "public void printBST() {\n prnt = \" \";\n try {\n int size = ((int) Math.pow(2, root.height)) - 1;\n if (size > 0) {\n ArrayTree = new int[size];\n\n int index = 0;\n ArrayTree[index] = root.key;\n\n if (size > 1) {\n BinarySearch(root, index);\n }\n for (int i = 0; i < ArrayTree.length; i++) {\n if (i <= lastIndex) {\n String bstoutput = (ArrayTree[i] == 0) ? \"null \" : ArrayTree[i] + \" \";\n prnt = prnt + \" \" + bstoutput + \", \";\n }\n }\n System.out.print(\"\\nBinary Tree: {\" + prnt + \"}\");\n }\n } catch (NullPointerException e) {\n System.out.println(\"null\");\n\n }\n }", "public static void bfsTraversal(BSTNode root) {\n\t\t // base condition\n\t\t if (root == null) {\n\t\t return;\n\t\t }\n\t\t // let's have a queue to maintain nodes\n\t\t Queue<BSTNode> q = new LinkedList<>();\n\t\t if (root != null) {\n\t\t q.add(root);\n\t\t }\n\t\t \n\t\t while (!q.isEmpty()) {\n\t\t BSTNode curr = q.poll();\n\t\t if (curr != null) {\n\t\t\t q.add(curr.left);\n\t\t\t q.add(curr.right);\n\t\t\t \n\t\t\t System.out.print(curr.data + \" \");\n\t\t }\n\t\t }\n\t\t \n\t}", "public TreeNode sortedArrayToBST2(int[] nums) {\n if (nums.length == 0) {\n return null;\n }\n return doConvertToBST(nums, 0, nums.length - 1);\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public TreeNode searchBST(TreeNode root, int x){\r\n if( root == null)\r\n return null;\r\n if( root.value == x)\r\n return root;\r\n else if( x< root.value)\r\n return searchBST(root.left, x);\r\n else\r\n return searchBST(root.right, x);\r\n }", "public void convertBinaryTreeToBinarySearchTree()\n\t{\n\t\tif(root==null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t/*Inorder traversal to fill array*/\n\t\tinOrderTraversal(root);\n\t\t/*sorting the array*/\n\t\tCollections.sort(arr);\n\t\t/*Traverse tree using inorder traversal, and replace the node data with data in sorted array*/\n\t\treplaceNodeInInorderTraverse(root);\n\t\t\n\t}", "@Override\n\tpublic boolean add(E e) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tStack<Node> stackForParent = new Stack<Node>();\n\t\t\n\t\t\n\t\tNode tempRoot = root;\n\t\tif(root == null) {\n\t\t\tsize += 1;\n\t\t\troot = new Node(e);\n\t\t\troot.height = max(heightOfNode(root.left) , heightOfNode(root.right)) + 1;\n\t\t} else {\n\n\t\t\tNode newNode = new Node(e);\n\n\t\t\tNode y = null;\n\n\t\t\twhile(tempRoot != null){\n\t\t\t\ty = tempRoot;\n\t\t\t\tif(e.compareTo(tempRoot.value) < 0){\n\t\t\t\t\tstack.push(tempRoot);\n\t\t\t\t\tstackForParent.push(tempRoot);\n\t\t\t\t\ttempRoot = tempRoot.left;\n\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(tempRoot);\n\t\t\t\t\tstackForParent.push(tempRoot);\n\t\t\t\t\ttempRoot = tempRoot.right;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(y == null){\n\t\t\t\ty = newNode;\n\t\t\t\tsize += 1;\n\t\t\t\ty.balanceFactor = 0;\n\t\t\t} else if(e.compareTo(y.value) < 0){\n\t\t\t\ty.left = newNode;\n\t\t\t\ty.left.balanceFactor = 0;\n\t\t\t\tsize += 1;\n\t\t\t} else if(e.compareTo(y.value) == 0) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\ty.right = newNode;\n\t\t\t\ty.right.balanceFactor = 0;\n\t\t\t\tsize += 1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tNode parent = null;\n\t\t\tNode walkBackNode;\n\t\t\tint lHeight,rHeight;\n\t\t\tif(!stackForParent.empty()) {\n\t\t\t\tstackForParent.pop();\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(stack.pop().value);\n\t\t\twhile(!stack.empty()) {\n\t\t\t\twalkBackNode = stack.pop();\n//\t\t\t\twalkBackNode.height = walkBackNode.height + 1;\n\t\t\t\tif(!stackForParent.empty()) {\n\t\t\t\t\tparent = stackForParent.pop();\n\t\t\t\t}\n\t\t\t\tif(walkBackNode.left == null) {\n\t\t\t\t\tlHeight = -1;\n\t\t\t\t} else {\n\t\t\t\t\tlHeight = walkBackNode.left.height ;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(walkBackNode.right == null) {\n\t\t\t\t\trHeight = -1;\n\t\t\t\t} else {\n\t\t\t\t\trHeight = walkBackNode.right.height;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twalkBackNode.balanceFactor = lHeight - rHeight;\n\t\t\t\t\n\t\t\t\twalkBackNode.height = 1 + max(lHeight,rHeight);\n\t\t\t\t\n\t\t\t\tif((walkBackNode.balanceFactor < -1) || walkBackNode.balanceFactor > 1) {\n\t\t\t\t\t// tree is violating the rules of AVL tree\n\t\t\t\t\tif(walkBackNode.balanceFactor > 1 && e.compareTo(walkBackNode.left.value) < 0) {\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = rrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.right = rrRotation(walkBackNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor < -1 && e.compareTo(walkBackNode.right.value) > 0) {\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = lrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.left = lrRotation(walkBackNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor > 1 && e.compareTo(walkBackNode.left.value) > 0) {\n\t\t\t\t\t\twalkBackNode.left = lrRotation(walkBackNode.left);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = rrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.left = rrRotation(walkBackNode);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\trrRotation(walkBackNode);\n//\t\t\t\t\t\tSystem.out.println(\"Root value:= \" + values.balanceFactor);\n//\t\t\t\t\t\tSystem.out.println(\"Left value:= \" + values.left.balanceFactor);\n//\t\t\t\t\t\tSystem.out.println(\"Right value:= \" + values.right.balanceFactor);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif(walkBackNode.balanceFactor< -1 && e.compareTo(walkBackNode.right.value) < 0) {\n\t\t\t\t\t\twalkBackNode.right = rrRotation(walkBackNode.right);\n\t\t\t\t\t\tif(walkBackNode.value == this.root.value) {\n\t\t\t\t\t\t\tthis.root = lrRotation(walkBackNode);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tparent.right = lrRotation(walkBackNode);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tlrRotation(walkBackNode); \n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public abstract boolean isBinarySearchTree();", "private static int breadthFirstSearch(Vertex start) throws Queue.UnderflowException, Queue.EmptyException {\n boolean visited[] = new boolean[48];\n //Keep a queue of vertecies and a queue of the depth of the verticies - they will be added to and poped from identically\n ListQueue<Vertex> queue = new ListQueue<Vertex>();\n ListQueue<Integer> numQueue = new ListQueue<Integer>();\n //Set the starting node as visited\n visited[start.index()] = true;\n queue.enqueue(start);\n numQueue.enqueue(new Integer(1));\n\n //Keep last\n int last = -1;\n //While the queue isnt empty\n while (!queue.isEmpty()) {\n //Pop off the top from both queues and mark as visited\n start = queue.dequeue();\n int current = numQueue.dequeue();\n visited[start.index] = true;\n //For all neigbors\n for (Vertex v : start.neighbors) {\n //If we havent visited it make sure to visit it\n if (visited[v.index()] == false) {\n //As we keep adding new nodes to visit keep track of the depth\n queue.enqueue(v);\n numQueue.enqueue(current + 1);\n }\n }\n //Keep track of the most recent depth before we pop it off (queue will be empty when we exit)\n last = current;\n }\n //Return the max of the depth\n return last;\n }", "public List<Integer> rightSideView_bfs(TreeNode root) {\n List<Integer> list = new ArrayList<>();\n if(root == null){\n return list;\n }\n Queue<TreeNode> q = new LinkedList<>();\n q.offer(root);\n while(!q.isEmpty()){\n int len = q.size();\n for(int i=0; i<len; i++){\n TreeNode node = q.poll();\n if(i == 0){\n list.add(node.val);\n }\n if(node.left != null) q.offer(node.left);\n if(node.right != null) q.offer(node.right); \n }\n }\n return list;\n }", "public void delete(K key)\r\n\t{\r\n\t\tif(search(key) == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBSTNode<E,K> node = root;\r\n\t\tBSTNode<E,K> child = null;\r\n\t\tBSTNode<E,K> parent1 = null;\r\n\t\tBSTNode<E,K> parent2 = null;;\r\n\t\tboolean Left = true;\r\n\t\tboolean Left2 = false;\r\n\t\tboolean found = false;\r\n\t\t\r\n\t\twhile(!found)\r\n\t\t{\r\n\t\t\tif(node.getKey().compareTo(key) == 0)\r\n\t\t\t{\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey())<=-1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getLeft() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getLeft();\r\n\t\t\t\t\tLeft = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey()) >= 1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getRight() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getRight();\r\n\t\t\t\t\tLeft = false;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(node.getLeft() != null && node.getRight() != null)\r\n\t\t{\r\n\t\t\tchild = node.getRight();\r\n\t\t\tparent2 = node;\r\n\t\t\twhile(child.getLeft() != null)\r\n\t\t\t{\r\n\t\t\t\tparent2 = child;\r\n\t\t\t\tchild = child.getLeft();\r\n\t\t\t\tLeft2 = true;\r\n\t\t\t}\r\n\t\t\tif(Left2)\r\n\t\t\t{\r\n\t\t\t\tparent2.setLeft(child.getLeft());\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tparent2.setRight(child.getLeft());\r\n\t\t\t}\r\n\t\t\tchild.setLeft(node.getLeft());\r\n\t\t\tchild.setRight(node.getRight());\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() != null)\r\n\t\t{\r\n\t\t child = node.getRight();\r\n\t\t}\r\n\t\telse if(node.getLeft() != null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tchild = node.getLeft();\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tif(Left)\r\n\t\t\t{\r\n\t\t\t\tparent1.setLeft(null);\r\n\t\t\t} \r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tparent1.setRight(null);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == node)\r\n\t\t{\r\n\t\t\troot = child;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(Left) \r\n\t\t{\r\n\t\t\tparent1.setLeft(child);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tparent1.setRight(child);\r\n\t\t}\r\n\t}", "public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\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}", "private BSTNode<K> insertNode(BSTNode<K> currentNode, K key) \n throws DuplicateKeyException, IllegalArgumentException {\n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n // if currentNode is null, create a new node, because of reaching a leaf\n if (currentNode == null) {\n BSTNode<K> newNode = new BSTNode<K>(key);\n return newNode;\n }\n // otherwise, keep searching through the tree until meet a leaf, or find a duplicated node \n else {\n switch(key.compareTo(currentNode.getId())){\n case -1:\n currentNode.setLeftChild(insertNode(currentNode.getLeftChild(), key));\n break;\n case 1:\n currentNode.setRightChild(insertNode(currentNode.getRightChild(), key));\n break;\n default:\n throw new DuplicateKeyException(\"A node with the same value is already existed\");\n }\n // after update currentNode's left and right childNote, let's check currentNode's balanceValue\n // ancestor two levels away from a lead node, its absolute balanceValue may exceeds 1,\n // so codes below has meaning for it \n int balanceValue = getNodeBalance(currentNode); \n if (balanceValue < -1) { // balanceValue < -1 means sublefttree is longer than subrighttree\n switch (key.compareTo(currentNode.getLeftChild().getId())) {\n case -1: // after Left Left Case, balance is updated, so sent currentNode to its ancestor \n return rotateRight(currentNode); \n case 1: // after Left Right Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setLeftChild(rotateLeft(currentNode.getLeftChild()));\n return rotateRight(currentNode);\n }\n }\n else if (balanceValue > 1) { // balanceValue < -1 means subrighttree is longer than sublefttree\n switch (key.compareTo(currentNode.getRightChild().getId())){\n case 1: // after Right Right Case, balance is updated, so sent currentNode to its ancestor \n return rotateLeft(currentNode);\n case -1: // after Right Left Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setRightChild(rotateRight(currentNode.getRightChild()));\n return rotateLeft(currentNode);\n } \n }\n }\n // for leaf node's balanceValue == 0, and for -1 <= leaf node's first ancestor's balanceValue <= 1,\n // codes above(from balanceValue) has no meaning for it, return currentNode straight forward\n return currentNode;\n }", "public V put(K key, V value){\n\t\tV v=null;\n\t\tNode n;\n\t\t\n\t\t\n\t\tif(root==null){\n\t\t\t\n\t\t\troot=new Node(key,value);\t\t\t\n\t\t\troot.parent=null;\n\t\t\t\n\t\t}\n\t\telse if(get(key)!=null){\n\t\t\t\n\t\t\tv=searchkey(root, key).value;\n\t\t\t\n\t\t\tsearchkey(root, key).value=value;\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tif(root.key.compareTo(key)>0){\n\t\t\t\tn=leftend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){if(t.key.compareTo(key)<0&&t!=root){break;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.left;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=rightend(n);\n\t\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tn.right.parent=n;\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(root.key.compareTo(key)<0 ){\n\t\t\t\t\n\t\t\t\tn=rightend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){\n\t\t\t\t\tif(t.key.compareTo(key)>0 && t!=root){\n\t\t\t\t\t\tbreak;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.right;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\t\n\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\n\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=leftend(n);\n\t\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn v;\t\n\t}", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "private TreeNode toBST(ListNode head, ListNode tail) {\n\t\tListNode slow = head;\n\t\tListNode fast = head;\n\t\tif(head==tail)\n\t\t\treturn null;\n\t\twhile(fast!=tail&&fast.next!=tail){\n\t\t\tslow = slow.next;\n\t\t\tfast = fast.next.next;\n\t\t}\n\t\tTreeNode tmp = new TreeNode(slow.val);\n\t\ttmp.left = toBST(head, slow);\n\t\ttmp.right = toBST(slow.next, tail);\n\t\t\n\t\treturn tmp;\n\t}", "private Node<T> searchRecursively(Node<T> node, T value) {\n\n // If the key is less than that of the current node, calls this method again with the current node's\n // left branch as the new node to compare keys with.\n if (value.compareTo(node.getValue()) == -1) {\n node = node.getLeft();\n return searchRecursively(node, value);\n }\n\n // Otherwise, calls the method again, comparing with the current node's right branch.\n else if (value.compareTo(node.getValue()) == 1) {\n node = node.getRight();\n return searchRecursively(node, value);\n }\n\n // If the current node contains the key, returns this node.\n return node;\n }", "public static List<Node> breadthFirstSearch(BinarySearchTree BST) {\n List<Node> breadthFirst = new LinkedList<Node>();\n LinkedList<Node> currentNodes = new LinkedList();\n Node currentNode;\n\n //Add the root node to get started\n currentNodes.add(BST.getRoot());\n //If they aren't null, add them to the queue, loop through, then remove the left-most child, add it to the\n // list, then continue looping until there are no more nodes\n while(currentNodes.size() > 0) {\n currentNode = currentNodes.removeFirst();\n breadthFirst.add(currentNode);\n if(currentNode.getLeftChild() != null) {\n currentNodes.add(currentNode.getLeftChild());\n }\n if(currentNode.getRightChild() != null) {\n currentNodes.add(currentNode.getRightChild());\n }\n }\n return breadthFirst;\n }", "public BalancedBinarySearchTree() {\r\n\t\tRoot = null;\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"--------------------------------Binary search Tree---------------------------------------\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\n\t\tBSTTree bstTree = new BSTTree();\n\t\t\n\t\tinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the list of nodes(Integer) to insert into tree with comma seperated (eg: 1,2,3): \");\n\t\t\n\t\t//Code for getting user node as Input value\n\t\t/*\n\t\t * String treeNodes = input.nextLine(); String[] nodes = treeNodes.split(\",\");\n\t\t * for (String value : nodes) { bstTree.insert(Integer.parseInt(value.trim()));\n\t\t * }\n\t\t */\n\t\t\n\t\t\t\t\n\t\t/*\n\t\t * bstTree.insert(25); bstTree.insert(20); bstTree.insert(15);\n\t\t * bstTree.insert(27); bstTree.insert(30); bstTree.insert(29);\n\t\t * bstTree.insert(26); bstTree.insert(22); bstTree.insert(32);\n\t\t * bstTree.insert(17);\n\t\t */\n\t\t\n\t\t\n\t\tbstTree.insert(100);\n\t\tbstTree.insert(58); \n\t\tbstTree.insert(30); \n\t\tbstTree.insert(47); \n\t\tbstTree.insert(25);\n\t\tbstTree.insert(39);\n\t\tbstTree.insert(125);\n\t\tbstTree.insert(111);\n\t\tbstTree.insert(137);\n\t\tbstTree.insert(110);\n\t\tbstTree.insert(120);\n\t\tbstTree.insert(130);\n\t\tbstTree.insert(140);\n\t\tbstTree.insert(109);\n\t\tbstTree.insert(121);\n\t\tbstTree.insert(119);\n\t\t\n\t\tSystem.out.println(\"Nodes are inserted into the tree\");\t\t\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\n\t\tfor(;;) {\n\t\t\tSystem.out.println(\"1. Insert Node into Tree\");\n\t\t\tSystem.out.println(\"2. In order Traversal\");\n\t\t\tSystem.out.println(\"3. Pre order Traversal\");\n\t\t\tSystem.out.println(\"4. Post order Traversal\");\n\t\t\tSystem.out.println(\"5. Find minimum value of tree\");\n\t\t\tSystem.out.println(\"6. Find maximum value of the tree\");\n\t\t\tSystem.out.println(\"7. Height of the tree\");\n\t\t\tSystem.out.println(\"8. Search Node in tree\");\n\t\t\tSystem.out.println(\"9. Delete Node in tree\");\n\t\t\tSystem.out.println(\"10. Find path between root and node\");\n\t\t\tSystem.out.println(\"Exit\");\n\t\t\tSystem.out.println(\"Enter your option : \");\t\t\t\n\t\t\tint inputOption = Integer.parseInt(input.nextLine());\t\t\t\n\t\t\tswitch(inputOption) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter the node value to insert into tree : \");\n\t\t\t\tString value = input.nextLine();\n\t\t\t\tbstTree.insert(Integer.parseInt(value.trim()));\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"In Order Traversal : \");\n\t\t\t\tbstTree.traverseInOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"Pre Order Traversal : \");\n\t\t\t\tbstTree.traversePreOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"Post Order Traversal : \");\n\t\t\t\tbstTree.traversePostOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.println(bstTree != null && bstTree.getMinimum()!=null ? \"Minimum value in the tree : \" + bstTree.getMinimum().getData() : \"Empty Tree\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 6:\t\t\t\t\n\t\t\t\tSystem.out.println(bstTree != null && bstTree.getMaximum()!= null ? \"Maximum value in the tree : \" + bstTree.getMaximum().getData() : \"Empty tree\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.println(\"Height of the Binary Search Tree : \" + bstTree.getHeight());\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.println(\"Enter the node o search in the tree : \");\n\t\t\t\tint searchNode = Integer.parseInt(input.nextLine());\t\n\t\t\t\tif(null!=bstTree.getNode(searchNode)) {\n\t\t\t\t\tSystem.out.println(\"Data \" + bstTree.getNode(searchNode) +\" is available\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Data \" + searchNode + \" is not available\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.println(\"Enter the node to be deleted\");\n\t\t\t\tint deleteNode = Integer.parseInt(input.nextLine());\n\t\t\t\tbstTree.delete(deleteNode);\n\t\t\t\tSystem.out.println(\"Node Deleted Successfully\");\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.println(\"Enter the node to get the path : \");\n\t\t\t\tint node = Integer.parseInt(input.nextLine());\n\t\t\t\tbstTree.getPath(node);\n\t\t\t\tSystem.out.println();\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"\\t\\t\\t\\tThank you!\");\n\t\t\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "static void rBSTInsert(Node tmp,int key)\n {\n // if the new value is greater than root then it will be inserted to the right subtree\n if(tmp.val<key)\n {\n if(tmp.right==null)\n {\n tmp.right=new Node(key);\n \n \n return;\n }\n \n else rBSTInsert(tmp.right,key);\n \n \n }\n // otherwise the new value will be inserted to the left subtree\n else\n {\n if(tmp.left==null)\n {\n tmp.left=new Node(key);\n \n return;\n }\n \n rBSTInsert(tmp.left,key);\n }\n return;\n }", "public Node deleteBST(Node root, int key) {\n if (root == null) {\n return root;\n }\n if (key < root.key) {\n root.left = deleteBST(root.left, key);\n } else if (key > root.key) {\n root.right = deleteBST(root.right, key);\n } // deletes the target key node\n else {\n // condition if node has only one child or no child\n if ((root.left == null) || (root.right == null)) {\n Node temp = null;\n if (temp == root.left) {\n temp = root.right;\n } else {\n temp = root.left;\n }\n\n // Condition if there's no child\n if (temp == null) {\n temp = root;\n root = null;\n // else if there's one child\n } else\n {\n root = temp;\n }\n } else {\n // Gets the Inorder traversal inlined with the node w/ two children\n Node temp = minNode(root.right);\n // Stores the inorder successor's node to this node\n root.key = temp.key;\n // Delete the inorder successor\n root.right = deleteBST(root.right, temp.key);\n }\n }\n // Condition if there's only one child then returns the root\n if (root == null) {\n return root;\n }\n // Gets the updated height of the BST\n root.height = maxInt(heightBST(root.left), heightBST(root.right)) + 1;\n int balance = getBalance(root); \n \n // If this node becomes unbalanced, then there are 4 cases \n // Left Left Case \n if (balance > 1 && getBalance(root.left) >= 0) \n return rightRotate(root); \n\n // Left Right Case \n if (balance > 1 && getBalance(root.left) < 0) \n { \n root.left = leftRotate(root.left); \n return rightRotate(root); \n } \n\n // Right Right Case \n if (balance < -1 && getBalance(root.right) <= 0) \n return leftRotate(root); \n\n // Right Left Case \n if (balance < -1 && getBalance(root.right) > 0) \n { \n root.right = rightRotate(root.right); \n return leftRotate(root); \n } \n return root;\n\n }", "public List<T> breadthFirstTraversal() {\n var result = new ArrayList<T>();\n var queue = new LinkedList<Node<T>>();\n queue.add(root);\n while(!queue.isEmpty()) {\n var node = queue.pop();\n result.add(node.value);\n acceptNotNull(node.left, queue::add);\n acceptNotNull(node.right, queue::add);\n }\n return result;\n }", "private BSTNode<K> deleteNode(BSTNode<K> currentNode, K key) throws IllegalArgumentException{ \n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n // if currentNode is null, return null\n if (currentNode == null) \n return currentNode; \n // otherwise, keep searching through the tree until meet the node with value key\n switch(key.compareTo(currentNode.getId())){\n case -1:\n currentNode.setLeftChild(deleteNode(currentNode.getLeftChild(), key));\n break;\n case 1:\n currentNode.setRightChild(deleteNode(currentNode.getRightChild(), key));\n break;\n case 0:\n // build a temporary node when finding the node that need to be deleted\n BSTNode<K> tempNode = null;\n // when the node doesn't have two childNodes\n // has one childNode: currentNode = tempNode = a childNode\n // has no childNode: currentNode = null, tempNode = currentNode\n if ((currentNode.getLeftChild() == null) || (currentNode.getRightChild() == null)) {\n if (currentNode.getLeftChild() == null) \n tempNode = currentNode.getRightChild(); \n else \n tempNode = currentNode.getLeftChild(); \n \n if (tempNode == null) {\n //tempNode = currentNode; \n currentNode = null; \n }\n else\n currentNode = tempNode;\n }\n // when the node has two childNodes, \n // use in-order way to find the minimum node in its subrighttree, called rightMinNode\n // set tempNode = rightMinNode, and currentNode's ID = tempNode.ID\n // do recursion to update the subrighttree with currentNode's rightChild and tempNode's Id\n else {\n BSTNode<K> rightMinNode = currentNode.getRightChild();\n while (rightMinNode.getLeftChild() != null)\n rightMinNode = rightMinNode.getLeftChild();\n \n tempNode = rightMinNode;\n currentNode.setId(tempNode.getId());\n \n currentNode.setRightChild(deleteNode(currentNode.getRightChild(), tempNode.getId()));\n }\n }\n // since currentNode == null means currentNode has no childNode, return null to its ancestor\n if (currentNode == null) \n return currentNode; \n // since currentNode != null, we have to update its balance\n int balanceValue = getNodeBalance(currentNode);\n if (balanceValue < -1) { // balanceValue < -1 means sublefttree is longer than subrighttree\n if (getNodeBalance(currentNode.getLeftChild()) < 0) { // Left Left Case \n return rotateRight(currentNode);\n }\n else if (getNodeBalance(currentNode.getLeftChild()) >= 0) { // Left Right Case \n currentNode.setLeftChild(rotateLeft(currentNode.getLeftChild()));\n return rotateRight(currentNode);\n }\n }\n else if (balanceValue > 1) { // balanceValue < -1 means subrighttree is longer than sublefttree\n if ((getNodeBalance(currentNode.getRightChild()) > 0)) { // Right Right Case \n return rotateLeft(currentNode);\n }\n else if ((getNodeBalance(currentNode.getRightChild()) <= 0)) {// Right Left Case \n currentNode.setRightChild(rotateRight(currentNode.getRightChild()));\n return rotateLeft(currentNode);\n }\n }\n return currentNode;\n }", "static BinaryNode searchTree(BinaryNode root, int x) {\n\t\tBinaryNode xNode = new BinaryNode(x);\n\t\t//searchLast(xNode);\n\t\t\n\t\tBinaryNode n=root;\t//start from root\n\t\tBinaryNode lastLeft=null;\n\t\twhile(n!=null){\n\t\t\tif(n.val > xNode.val){\n\t\t\t\tn=n.left;\n\t\t\t\tif(n.left !=null) lastLeft=n.left;\n\t\t\t\t//else if n is x, there is no value smaller than x.\n\t\t\t}else if(n.val == xNode.val){\n\t\t\t\treturn lastLeft;\n\t\t\t}else{\t//then the x is on the right.(bigger)\n\t\t\t\t\n\t\t\t\tn=n.right;\n\t\t\t\tlastLeft=n;\n\t\t\t}\n\t\t}\n\t\t//if goes to this line, mean failed.\n\t\treturn null;\n }", "@Override\n\tpublic List<Node<E>> bfs(DirectedGraph<E> graph) {\n\t\tList<Node<E>> returnList = new ArrayList<>(); // O(1)\n\t\tHashSet<Node<E>> visitedList = new HashSet<>(); // O(1)\n\t\tHashSet<Node<E>> hashSet = new HashSet<>(); // O(1)\n\n\t\t// If the graph does contains heads, iterate from the head.\n\t\tif(graph.headCount() > 0) { // O(1)\n\t\t\tIterator<Node<E>> heads = graph.heads(); // O(1)\n\t\t\twhile(heads.hasNext()) { // O(n)\n\t\t\t\tNode<E> node = heads.next(); // O(1)\n\n\t\t\t\tif(!visitedList.contains(node)) { // O(1)\n\t\t\t\t\tnode.num = visitedList.size(); // O(1)\n\t\t\t\t\tvisitedList.add(node); // O(1)\n\t\t\t\t\thashSet.add(node); // O(1)\n\t\t\t\t\treturnList.add(node); // O(1)\n\t\t\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Else start from the first node in the graph.\n\t\telse {\n\t\t\thashSet.add(graph.getNodeFor(graph.allItems().get(0))); // O(1)\n\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t}\n\t\treturn returnList;\n\t}", "static void insert(Node nd, int key)\n\t{\n\t\tif (nd == null) {\n\t\t\troot = new Node(key);\n\t\t\treturn;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(nd);\n\n\t\t// Do level order traversal until we find an empty place\n\t\twhile (!q.isEmpty()) {\n\t\t\tnd = q.remove();\n\n\t\t\tif (nd.left == null) {\n\t\t\t\tnd.left = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.left);\n\n\t\t\tif (nd.right == null) {\n\t\t\t\tnd.right = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.right);\n\t\t}\n\t}", "public static <E extends Comparable> int minDeep(TreeNode<E> root) {\r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int minDeep = 1;\r\n \r\n queue.add(root);\r\n \r\n while(true){\r\n for(int deep = 0; deep < Math.pow(2, minDeep); deep++) {\r\n TreeNode<E> node = queue.poll();\r\n if(node.getLeft() == null || node.getRight() == null) return minDeep;\r\n queue.add(node.getLeft());\r\n queue.add(node.getRight());\r\n }\r\n \r\n minDeep++;\r\n }\r\n }", "public static void main(String[] args){\n int array_size = 3;\n InputArray array = new InputArray(array_size);\n System.out.println(array.ToString());\n\n GenericBST<Integer> bt = new GenericBST<Integer>();\n\n //Testing InsertBST.root,\n for(int i = 0 ; i < array_size; i++){\n bt.root = bt.Insert(bt.root, array.array[i]);\n }\n\n //Testing InorderWalk\n bt.InorderWalk(bt.root);\n\n //Testing InSearch\n System.out.println();\n System.out.println(array.array[0] + \" is found in BST : \" + bt.Is_Search(bt.root,array.array[0]));\n\n //Testing Delete\n System.out.println(\"deleting \" + array.array[0] + \" from BST\");\n bt.root = bt.Delete(array.array[0],bt.root);\n System.out.println();\n bt.InorderWalk(bt.root);\n System.out.println();\n\n //Testing HeightofTree\n int h = bt.findHeight(bt.root);\n System.out.println(\"Height of BST tree is \" + h);\n }", "private PersistentLinkedList<T> addHelper(T data) {\n //there's still space in the latest element\n if (this.treeSize == 0 || this.treeSize % branchingFactor != 0) {\n return setHelper(this.treeSize, data);\n }\n\n //there's still space for the new data\n if (this.base * branchingFactor > this.treeSize) {\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n int index = this.treeSize;\n int b;\n for (b = base; b > 0; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n index = traverseData.index;\n\n if (currentNode == null) {\n b = b / branchingFactor;\n break;\n }\n }\n\n while (b > 1) {\n currentNewNode.set(0, new Node<>(branchingFactor));\n currentNewNode = currentNewNode.get(0);\n index = index % b;\n b = b / branchingFactor;\n }\n currentNewNode.set(0, new Node<>(branchingFactor, data));\n\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize + 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }\n\n //root overflow\n Node<T> newRoot = new Node<>(branchingFactor);\n newRoot.set(0, this.root);\n newRoot.set(1, new Node<>(branchingFactor));\n //newRoot[2..]=null\n Node<T> currentNewNode = newRoot.get(1);\n\n int b = base;\n while (b > 1) {\n currentNewNode.set(0, new Node<>(branchingFactor));\n currentNewNode = currentNewNode.get(0);\n b = b / branchingFactor;\n }\n currentNewNode.set(0, new Node<>(branchingFactor, data));\n\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth + 1,\n this.base * branchingFactor, this.treeSize + 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "private static void findOptimalTree(int i, int j, int[][] nodeMatrix) {\n\t\tif(i!=j){\n\t\t\tint root = nodeMatrix[i][j];\n\t\t\tSystem.out.println(\" root for \"+i+\" to \"+j+\" elements would be \"+root);\n\t\t\tfindOptimalTree(i, root-1, nodeMatrix);\n\t\t\tfindOptimalTree(root+1, j, nodeMatrix);\n\t\t}\n\t}", "public TreeNode sortedArrayToBST(int[] nums) {\n if(nums == null || nums.length == 0){\n \t return null;\n }\n return buildTree(nums, 0, nums.length - 1);\n }", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n TreeNode ans = null;\n while (root != null) {\n if (root.val > p.val) {\n ans = root;\n root = root.left;\n } else root = root.right;\n }\n return ans;\n}", "protected void pushDownRoot(int root){\n int heapSize = data.size();\n Bloque value = (Bloque)data.get(root);\n while (root < heapSize) {\n int childpos = left(root);\n if (childpos < heapSize)\n {\n if ((right(root) < heapSize) && (((Bloque)data.get(childpos+1)).compareTo((Bloque)data.get(childpos)) > 0)){\n childpos++;\n }\n // Assert: childpos indexes smaller of two children\n if (((Bloque)data.get(childpos)).compareTo(value) > 0){\n data.set(root,data.get(childpos));\n root = childpos; // keep moving down\n } else { // found right location\n data.set(root,value);\n return;\n }\n } else { // at a leaf! insert and halt\n data.set(root,value);\n return;\n }\n }\n }", "public static <E extends Comparable> int deep(TreeNode<E> root) {\r\n \r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int deep = 0;\r\n \r\n queue.add(root);\r\n TreeNode<E> startNewLine = root;\r\n \r\n while(!queue.isEmpty()) {\r\n TreeNode<E> currentNode = queue.poll();\r\n if(currentNode == startNewLine) {\r\n startNewLine = null;\r\n deep ++;\r\n }\r\n if(currentNode.getLeft() != null) queue.add(currentNode.getLeft());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getLeft();\r\n }\r\n if(currentNode.getRight()!= null) queue.add(currentNode.getRight());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getRight();\r\n }\r\n }\r\n \r\n \r\n return deep;\r\n }", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n int[] arrayNode = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n arrayNode[i] = scan.nextInt();\n }\n\n Color[] arrayColor = new Color[n + 1];\n for (int i = 1; i <= n; i++) {\n if (scan.nextInt() == 0) {\n arrayColor[i] = Color.RED;\n } else {\n arrayColor[i] = Color.GREEN;\n }\n }\n\n List<Integer>[] adjacentsList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n adjacentsList[i] = new ArrayList<Integer>();\n }\n\n for (int i = 0; i < n - 1; i++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n adjacentsList[x].add(y);\n adjacentsList[y].add(x);\n }\n\n scan.close();\n\n List<Integer>[] childrenList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n childrenList[i] = new ArrayList<Integer>();\n }\n\n int[] depths = new int[n + 1];\n boolean[] visited = new boolean[n + 1];\n\n Queue<Integer> queue = new LinkedList<Integer>();\n depths[1] = 0;\n queue.offer(1);\n while (!queue.isEmpty()) {\n int head = queue.poll();\n\n if (visited[head]) {\n continue;\n }\n visited[head] = true;\n\n for (int adjacent : adjacentsList[head]) {\n if (!visited[adjacent]) {\n childrenList[head].add(adjacent);\n depths[adjacent] = depths[head] + 1;\n queue.offer(adjacent);\n }\n }\n }\n\n Tree[] nodes = new Tree[n + 1];\n for (int i = 1; i <= n; i++) {\n if (childrenList[i].isEmpty()) {\n nodes[i] = new TreeLeaf(arrayNode[i], arrayColor[i], depths[i]);\n } else {\n nodes[i] = new TreeNode(arrayNode[i], arrayColor[i], depths[i]);\n }\n }\n for (int i = 1; i <= n; i++) {\n for (int child : childrenList[i]) {\n ((TreeNode) nodes[i]).addChild(nodes[child]);\n }\n }\n return nodes[1];\n }", "void BFS(int s);", "private int dfs(TreeNode node, TreeNode target, int K, List<Integer> res) {\r\n if (node == null) return -1;\r\n\r\n if (node.val == target.val) {\r\n // add nodes from current subtree\r\n addNodes(node, K, res);\r\n return 0;\r\n }\r\n\r\n int left = dfs(node.left, target, K, res);\r\n int right = dfs(node.right, target, K, res);\r\n \r\n // at most one of left and right could be not -1\r\n if (right != -1) {\r\n // current node is k far from target\r\n if (K == right + 1) res.add(node.val);\r\n // target is in the right subtree, add nodes in left subtree\r\n else addNodes(node.left, K - right - 2, res);\r\n return right + 1;\r\n }\r\n\r\n if (left != -1) {\r\n // current node is k far from target\r\n if (K == left + 1) res.add(node.val);\r\n // target is in the left subtree, add nodes in right subtree\r\n else addNodes(node.right, K - left - 2, res);\r\n return left + 1;\r\n }\r\n\r\n // both left and right are - 1\r\n return -1;\r\n }", "public TreeNode searchBST_2(TreeNode root, int val) {\n while (root != null && val != root.val)\n root = val < root.val ? root.left : root.right;\n return root;\n }", "public TreeNode sortedArrayToBST(int[] A) {\n return build(A, 0, A.length - 1);\n }", "public TreeNode sortedArrayToBST(int[] num) {\n return constructBST(num, 0, num.length - 1);\n }", "private Node sortedArrayToBST(List<EventPair> allEvents, int start, int end, Node root1) {\n\t\tif (start > end) {\n return createNullLeaf(root1);\n }\n\t\tint mid = (start + end) / 2;\n\t\tNode node = createNode(allEvents.get(mid), Color.BLACK, root1);\n\t\tnode.left = sortedArrayToBST(allEvents, start, mid-1, node);\n\t\tnode.right = sortedArrayToBST(allEvents, mid+1, end, node);\n\t return node;\n\t}", "public TreeNode sortedListToBST(ListNode head) {\n if (head == null) return null;\n List<Integer> nums = new ArrayList<>();\n while (head != null ) {\n nums.add(head.val);\n head = head.next;\n }\n\n TreeNode root = helper(nums, 0, nums.size()-1);\n return root;\n }", "private BinaryNode<E> bstInsert(E x, BinaryNode<E> t, BinaryNode<E> parent) {\n\n if (t == null)\n return new BinaryNode<>(x, null, null, parent);\n\n int compareResult = x.compareTo(t.element);\n\n if (compareResult < 0) {\n t.left = bstInsert(x, t.left, t);\n } else {\n t.right = bstInsert(x, t.right, t);\n }\n return t;\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n\t\treturn helper(nums, 0, nums.length - 1);\n\t}", "public void insert(T x)\n\t{\n\t\t//if the input is null, returns null\n\t\tif(x == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//if size == 0, inputs in the first index of the tree\n\t\tif(size == 0)\n\t\t{\n\t\t\tarray[0] = x;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t}\n\n\t\t//declares variable and adds the input to the last index\n\t\tint index = size;\n\t\tarray[index] = x;\n\t\tint parent = (index-1)/2;\n\t\tint gParent = (index-3)/4;\n\t\t//gets the present level after input\n\t\tint level = getLevel(index+1);\n\t\t//if size < 3; does special input\n\t\tif(size <= 3)\n\t\t{\n\t\t\t//checks if the element at 0 is greater than the new one, if yes, swaps\n\t\t\tif(object.compare(array[0], array[index]) > 0)\n\t\t\t{\n\t\t\t\tT temp = array[0];\n\t\t\t\tarray[0] = array[index];\n\t\t\t\tarray[index] = temp;\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//else does nothing. \n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t//checks if level is even\n\t\tif(level % 2 == 0)\n\t\t{\n\t\t\t//compares it to its parent and carries out the right action. \n\t\t\tif(object.compare(array[index], array[parent]) == 0)\n\t\t\t{\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) > 0)\n\t\t\t{\n\n\t\t\t\tT temp = array[parent];\n\t\t\t\tarray[parent] = array[index];\n\t\t\t\tarray[index] = temp;\n\n\n\t\t\t\tint y = parent;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\n\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t}\n\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t\telse if(object.compare(array[index], array[parent]) < 0)\n\t\t\t{\n\t\t\t\tif(object.compare(array[index], array[gParent]) >= 0)\n\t\t\t\t{\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//switch till x > grandparent\n\t\t\t\t\tint y = index;\n\t\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y >2)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t\t}\n\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[index], array[parent]) == 0)\n\t\t\t{\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) > 0)\n\t\t\t{\n\t\t\t\tif(object.compare(array[index], array[gParent]) <= 0)\n\t\t\t\t{\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//switch till x < grandparent\n\t\t\t\t\tint y = index;\n\t\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y >2)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t\t}\n\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) < 0)\n\t\t\t{\n\t\t\t\tT temp = array[parent];\n\t\t\t\tarray[parent] = array[index];\n\t\t\t\tarray[index] = temp;\n\n\t\t\t\tint y = parent;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y >2)\n\t\t\t\t{\n\n\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t}\n\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\n\t\t\t}\n\t\t}\n\n\t}", "@Test\n\tpublic void testInsert4() {\n\t\t\n\t\tBTree<Long,String> T = new BTree<Long, String>(3);\n\t\tT.insert(new Long(10), \"Ten\");\n\t\tT.insert(new Long(20), \"Twenty\");\n\t\tT.insert(new Long(30), \"Thirty\");\n\t\t\n\t\tT.insert(new Long(70), \"Seventy\");\n\t\tT.insert(new Long(60), \"Sixty\");\n\t\tT.insert(new Long(80), \"Eighty\");\n\t\t\n\t\tT.insert(new Long(50), \"Fifty\");\n\t\tT.insert(new Long(40), \"Fourty\");\n\t\tT.insert(new Long(55), \"Fifty-Five\");\n\t\tT.insert(new Long(65), \"Sixty-Five\");\n\t\t\n\t\tassertTrue( T.root instanceof InnerNode);\n\t\t\n\t\tInnerNode<Long,String> root = (InnerNode<Long,String>) T.root;\n\t\tassertEquals(1, root.keys.size());\n\t\tassertEquals(60, (long) root.keys.get(0));\n\t\tassertEquals(2, root.children.size());\n\t\t\n\t\tInnerNode<Long,String> left = (InnerNode<Long,String>) root.children.get(0);\n\t\tInnerNode<Long,String> right = (InnerNode<Long,String>) root.children.get(1);\n\t\t\n\t\tassertEquals(30, (long) left.keys.get(0));\n\t\tassertEquals(50, (long) left.keys.get(1));\n\t\t\n\t\tassertEquals(70, (long) right.keys.get(0));\n\t\t\n\t\tLeafNode<Long, String> child0 = (LeafNode<Long, String>) left.children.get(0);\n\t\tLeafNode<Long, String> child1 = (LeafNode<Long, String>) left.children.get(1);\n\t\t\n\t\tLeafNode<Long, String> child2 = (LeafNode<Long, String>) left.children.get(2);\n\t\t\n\t\tLeafNode<Long, String> child3 = (LeafNode<Long, String>) right.children.get(0);\n\t\tLeafNode<Long, String> child4 = (LeafNode<Long, String>) right.children.get(1);\n\t\t\n\t\tassertEquals(10, (long) child0.children.get(0).key);\n\t\tassertEquals(20, (long) child0.children.get(1).key);\n\t\t\n\t\tassertEquals(30, (long) child1.children.get(0).key);\n\t\tassertEquals(40, (long) child1.children.get(1).key);\n\t\t\n\t\tassertEquals(50, (long) child2.children.get(0).key);\n\t\tassertEquals(55, (long) child2.children.get(1).key);\n\t\t\n\t\tassertEquals(60, (long) child3.children.get(0).key);\n\t\tassertEquals(65, (long) child3.children.get(1).key);\n\t\t\n\t\tassertEquals(70, (long) child4.children.get(0).key);\n\t\tassertEquals(80, (long) child4.children.get(1).key);\n\t\t\n\t}", "private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }", "boolean subtree(BST<T> t) {\n Node x = minimum(this.root);\n while(x != null) {\n if (x.value.compareTo(t.search(x.value).value) != 0) return false;\n x = successor(x);\n }\n return true;\n }", "public void isBST(int i, int min, int max) {\n\t\t\tif (i == -1)\r\n\t\t\t{\treturn;}\r\n\t\t\t// Checking if a key is outside the permitted range.\r\n\t\t\tif (key[i] < min)\r\n\t\t\t{\tisBinTree = false;\r\n\t\t\t\treturn ;}\r\n\t\t\t\r\n\t\t if (key[i] > max) {\r\n\t\t\t isBinTree = false;\r\n\t\t\t\treturn ;\r\n\t\t }\r\n\t\t\t// Sending in updates ranges to the right and left subtree\r\n\t\t isBST(right[i], key[i], max); \r\n\t\t isBST(left[i], min, key[i]);\t\r\n\t\t return;\r\n\t\t}", "public void testInsert01() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(4);\r\n\r\n\t\t// Growing the leaf\r\n\t\tbt.set(\"010\", 1);\r\n\t\tbt.set(\"020\", 2);\r\n\t\tbt.set(\"030\", 3);\r\n\t\tbt.set(\"040\", 4);\r\n\t\tassertEquals(bt.root.dump(), \"[010=1, 020=2, 030=3, 040=4]\");\r\n\r\n\t\t// Leaf split (middle) and new root created\r\n\t\tbt.set(\"025\", 5);\r\n\t\tassertEquals(bt.root.dump(), \"[[010=1, 020=2], [025=5, 030=3, 040=4]]\");\r\n\r\n\t\t// Growing the right of the right side of the tree\r\n\t\t// Leaf split (last) and new child added to root\r\n\t\tbt.set(\"050\", 6);\r\n\t\tbt.set(\"060\", 7);\r\n\t\tassertEquals(bt.root.dump(), \"[[010=1, 020=2], [025=5, 030=3], [040=4, 050=6, 060=7]]\");\r\n\r\n\t\t// Growing the left of the right side of the tree\r\n\t\t// Leaf split (first) and new child added to root\r\n\t\tbt.set(\"035\", 8);\r\n\t\tbt.set(\"034\", 9);\r\n\t\tassertEquals(bt.root.dump(),\r\n\t\t\t\t\"[[010=1, 020=2], [025=5, 030=3], [034=9, 035=8, 040=4], [050=6, 060=7]]\");\r\n\r\n\t\t// Growing the right of the right side of the tree\r\n\t\t// Node split (last) and new root created\r\n\t\tbt.set(\"070\", 10);\r\n\t\tassertEquals(bt.root.dump(),\r\n\t\t\t\t\"[[[010=1, 020=2], [025=5, 030=3]], [[034=9, 035=8, 040=4], [050=6, 060=7, 070=10]]]\");\r\n\r\n\t\t// Testing key update\r\n\t\tbt.set(\"010\", -1);\r\n\r\n\t\tassertEquals(bt.get(\"010\"), Integer.valueOf(-1));\r\n\t\tassertEquals(bt.get(\"020\"), Integer.valueOf(2));\r\n\t\tassertEquals(bt.get(\"030\"), Integer.valueOf(3));\r\n\t\tassertEquals(bt.get(\"040\"), Integer.valueOf(4));\r\n\t\tassertEquals(bt.get(\"025\"), Integer.valueOf(5));\r\n\t\tassertEquals(bt.get(\"050\"), Integer.valueOf(6));\r\n\t\tassertEquals(bt.get(\"060\"), Integer.valueOf(7));\r\n\t\tassertEquals(bt.get(\"035\"), Integer.valueOf(8));\r\n\t\tassertEquals(bt.get(\"034\"), Integer.valueOf(9));\r\n\t\tassertEquals(bt.get(\"070\"), Integer.valueOf(10));\r\n\t\tassertEquals(bt.get(\"xyz\"), null);\r\n\t}", "private TreeNode createBBST(KeyValuePair[] sortedKVPArr) {\n\n if (sortedKVPArr == null || sortedKVPArr.length == 0) {\n return null;\n }\n\n int begin = 0;\n int end = sortedKVPArr.length;\n int mid = begin + (end - begin) / 2;\n\n KeyValuePair[] left = Arrays.copyOfRange(sortedKVPArr, begin, mid);\n KeyValuePair[] right = Arrays.copyOfRange(sortedKVPArr, mid + 1, end);\n\n TreeNode node = new TreeNode(sortedKVPArr[mid].getId(), sortedKVPArr[mid].getValue());\n\n if (left.length > 0)\n node.left = createBBST(left);\n if (right.length > 0)\n node.right = createBBST(right);\n\n this.root = node;\n\n return this.root;\n }", "public TreeNode helper(int[] preorder, int[] inorder, int preorderIndex, int inorderS, int inorderE) {\n if (preorderIndex == preorder.length) { return null; }\n if (inorderS > inorderE) { return null; }\n\n //general case: search for element at the index of the preorder in the inorder array. partition\n //the array from before the target element and after the target element in the inorder element\n int target = preorder[preorderIndex];\n int targetIndex = -1;\n\n for (int i = inorderS; i <= inorderE; i++) {\n if (inorder[i] == target) { targetIndex = i; break; }\n }\n\n TreeNode root = new TreeNode();\n root.data = target;\n\n //now that we have the target of the root. we can partition the inorder array into two pieces.\n //partition 1: start --> targetIndex - 1.\n //partition 2: targetIndex + 1 --> end\n //for the left side of the tree we do a recursive call to the next index in the preorder sequence\n root.left = helper(preorder, inorder, preorderIndex + 1, inorderS, targetIndex - 1);\n\n //for the right partition we need to skip all the preorder elements that correspond to the left side of the\n //binary tree that is rooted at this level of recursion. our preorderIndex is currently at our target\n //element for current root. We want to skip all elements from start to target. This is done by finding\n //the distance targetIndex - start + 1\n\n //we\n\n int skipForPreorder = (targetIndex - inorderS) + 1;\n root.right = helper(preorder, inorder, preorderIndex + skipForPreorder, targetIndex + 1, inorderE);\n\n return root;\n\n //worst case complexity of this is O(n^2). Consider the case where we have an entirely skewed tree. The\n //partition only sheds one element off and searching for root element in inorder data takes O(n) + O(n -1) +\n //O(n-2) .. O(1). This sums to O(n^2). Space is O(h). We recurse down to the height of a tree.\n\n //we can reduce the time complexity by initially creating a hashmap of mappings of element to index.\n\n //this reduces the overall running time to O(n).\n }", "private void getBalancedRootDfs(int nodeIdx, int parentNodeIdx){\r\n\t\t//get max size of subtrees of this node\r\n\t\tint maxSubSize;\r\n\t\tif(curTreeSize - subTreeSize[nodeIdx] > maxSubTreeSize[nodeIdx])\r\n\t\t\tmaxSubSize = curTreeSize - subTreeSize[nodeIdx];\r\n\t\telse\r\n\t\t\tmaxSubSize = maxSubTreeSize[nodeIdx];\r\n\t\t\r\n\t\t//if this node is best till now, update\r\n\t\tif(maxSubSize < curMinMaxSize){\r\n\t\t\tcurMinMaxSize = maxSubSize;\r\n\t\t\tcurRootIdx = nodeIdx;\r\n\t\t}\r\n\t\t\r\n\t\t//recursively visit children nodes\r\n\t\tfor(Integer idx: cities[nodeIdx].adjacentNodeIndices){\r\n\t\t\tif(parentNodeIdx == idx || visited[idx]) continue;\r\n\t\t\t\r\n\t\t\tgetBalancedRootDfs(idx, nodeIdx);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t binarytree bt = new binarytree(); bt.display();\r\n\t\t System.out.println(bt.size2()); System.out.println(bt.size());\r\n\t\t System.out.println(bt.max()); System.out.println(bt.min());\r\n\t\t \r\n\t\t System.out.println(bt.height()); System.out.println(bt.find(87));\r\n\t\t System.out.println(bt.find(5)); //bt.mirror(); bt.display();\r\n\t\t \r\n\t\t bt.preOrder(); bt.postOrder(); bt.inOrder();\r\n\t\t System.out.println(\"**************************************\");\r\n\t\t bt.levelorder(); bt.preorderI();\r\n\t\t \r\n\t\t/*\r\n\t\t * System.out.println(bt.find(87)); System.out.println(bt.find(5));\r\n\t\t * \r\n\t\t * System.out.println(bt.height());\r\n\t\t * \r\n\t\t * // bt.display();\r\n\t\t */// bt.mirror();\r\n\t\t\t// bt.display();\r\n\t\t/*\r\n\t\t * bt.preOrder(); bt.postOrder(); bt.inOrder(); bt.levelOrder();\r\n\t\t * bt.preOrderI();33\r\n\t\t * \r\n\t\t * System.out.println(bt.postOrderPred(50));\r\n\t\t * System.out.println(bt.postOrderSucc(50));\r\n\t\t * \r\n\t\t * bt.multiCalculator();\r\n\t\t */\r\n\t\tint[] pre = { 50, 25, 12, 49, 62, 87, 75 };\r\n\t\tint[] in = { 12, 25, 49, 50, 62, 75, 87 };\r\n\t\tbinarytree b2 = new binarytree(pre, in);\r\n\t\tbt.display();\r\n\t\tSystem.out.println(b2.diameter());\r\n\t\tSystem.out.println(b2.isbst());\r\n\t\tSystem.out.println(b2.isbst3());\r\n\t}", "public TreeNode sortedArrayToBST(int[] nums) {\n if(nums == null || nums.length == 0) return null;\n return makeTree(nums, 0, nums.length-1);\n }", "static boolean bfs(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode node = (TreeNode) queue.remove();\n if (node == null)\n continue;\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n queue.addAll(node.getChildren());\n // dump(queue);\n }\n return false;\n }", "protected boolean insert(Node<T> node, T value) {\n\n\t\tif (value == null)\n\t\t\treturn false;\n\t\tif (node == null) {\n\t\t\troot = new Node<T>(value);\n\t\t\treturn true;\n\t\t}\n\t\tif (value.compareTo(node.value) > 0)\n\t\t\tif (node.left != null) {\n\t\t\t\treturn insert(node.left, value);\n\t\t\t} else {\n\t\t\t\tnode.left = new Node<T>(value);\n\t\t\t\tnode.left.previous = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\telse if (value.compareTo(node.value) < 0)\n\t\t\tif (node.right != null) {\n\t\t\t\treturn insert(node.right, value);\n\t\t\t} else {\n\t\t\t\tnode.right = new Node<T>(value);\n\t\t\t\tnode.right.previous = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "static Node deleteBst(Node tmp,int v)\n { // if the tree is empty nothing to delete\n \n if(tmp==null)\n {\n System.out.println(\"Tree is empty\");\n return null;\n }\n // otherwise it will find out the node needs to be deleted\n \n if(tmp.val<v)\n tmp.right=deleteBst(tmp.right,v);\n else if(tmp.val>v)\n tmp.left=deleteBst(tmp.left,v);\n \n else {\n //deleting leaf node\n \n if(tmp.left==null && tmp.right==null)\n {tmp=null;\n return tmp;\n }\n // the target node has only one child\n \n else if(tmp.left!=null && tmp.right==null)\n return tmp.left;\n else if(tmp.left==null && tmp.right!=null)\n return tmp.right;\n \n else //the target node has two children replace the node value with it's predecessor //and then delete the predessor node\n {\n tmp.val=findpredecessor(tmp.left);\n tmp.left=deleteBst(tmp.left,tmp.val);\n }\n }\n return tmp;\n \n }" ]
[ "0.68125576", "0.6668377", "0.6644235", "0.65132076", "0.6457424", "0.62909186", "0.62766516", "0.6269686", "0.62669533", "0.6259742", "0.62108254", "0.6208555", "0.6194222", "0.61687934", "0.61633235", "0.6138764", "0.61371374", "0.6119579", "0.61060905", "0.6079167", "0.60737765", "0.60726094", "0.6059298", "0.60457146", "0.6040977", "0.60214716", "0.6009361", "0.60092884", "0.6007933", "0.5995962", "0.5993936", "0.59784174", "0.59645855", "0.59583205", "0.59435314", "0.59042656", "0.5887549", "0.58822465", "0.5861771", "0.58611584", "0.58570886", "0.58560145", "0.5854854", "0.5842273", "0.5838224", "0.5833902", "0.5823544", "0.5803241", "0.5799588", "0.5793989", "0.5790393", "0.5786953", "0.5783721", "0.57800025", "0.57628185", "0.57573307", "0.57544684", "0.57499534", "0.57455474", "0.5745302", "0.57308537", "0.5729494", "0.5728329", "0.57269114", "0.5720129", "0.5714833", "0.5710697", "0.57078964", "0.57045007", "0.5702378", "0.5702048", "0.5698791", "0.5697091", "0.56874543", "0.56846106", "0.5682364", "0.5679613", "0.56747216", "0.5673467", "0.5667171", "0.56668466", "0.56637853", "0.56561035", "0.56510806", "0.5641187", "0.56390584", "0.5633713", "0.563196", "0.5631388", "0.5624113", "0.56210256", "0.5618283", "0.56171477", "0.5610614", "0.5609462", "0.55967486", "0.5596257", "0.5594732", "0.55925524", "0.5592004", "0.558887" ]
0.0
-1
O(nlogn) time and O(n) space When there are overlaping corner points, we can postpone adding the key points until the last corner point, which is more intuitive to adding logic to the corner comparison.
public List<int[]> getSkyline(int[][] buildings) { List<int[]> result = new ArrayList<>(); if (buildings == null || buildings.length == 0 || buildings[0].length != 3) { return result; } List<Corner> corners = new ArrayList<>(); for (int[] building : buildings) { corners.add(new Corner(building[0], building[2], true)); corners.add(new Corner(building[1], building[2], false)); } Collections.sort(corners); TreeMap<Integer, Integer> heightCounts = new TreeMap<>(); for (int i = 0; i < corners.size(); ++i) { int count = heightCounts.getOrDefault(corners.get(i).y, 0); if (corners.get(i).isStart) { heightCounts.put(corners.get(i).y, count + 1); } else { heightCounts.put(corners.get(i).y, --count); if (count == 0) { heightCounts.remove(corners.get(i).y); } } if (i == corners.size() - 1 || corners.get(i + 1).x > corners.get(i).x) { int curHeight = heightCounts.isEmpty() ? 0 : heightCounts.lastKey(); if (result.isEmpty() || curHeight != result.get(result.size()-1)[1]) { result.add(new int[]{corners.get(i).x, curHeight}); } } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean computeBelongingToPolygon(\n final int[] xArr,\n final int[] yArr,\n final int pointCount,\n //\n final int x,\n final int y) {\n\n int hits = 0;\n\n int lastx = xArr[pointCount - 1];\n int lasty = yArr[pointCount - 1];\n int curx;\n int cury;\n\n // Looping on edges.\n for (int i = 0; i < pointCount; lastx = curx, lasty = cury, i++) {\n curx = xArr[i];\n cury = yArr[i];\n\n if (cury == lasty) {\n // Point on same line.\n continue;\n }\n\n int leftx;\n if (curx < lastx) {\n // Going left.\n if (x >= lastx) {\n // But not as far as before.\n continue;\n }\n // New leftmost.\n leftx = curx;\n } else {\n // Going rightish.\n if (x >= curx) {\n continue;\n }\n leftx = lastx;\n }\n\n double test1;\n double test2;\n if (cury < lasty) {\n if ((y < cury) || (y >= lasty)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - curx;\n test2 = y - cury;\n } else {\n if ((y < lasty) || (y >= cury)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - lastx;\n test2 = y - lasty;\n }\n\n /*\n * JDK code uses \"test1 < (test2 / dy * dx)\" here,\n * but we want to avoid the division.\n */\n final int dx = (lastx - curx);\n final int dy = (lasty - cury);\n if (dy < 0) {\n if (test1 * dy > test2 * dx) {\n hits++;\n }\n } else {\n if (test1 * dy < test2 * dx) {\n hits++;\n }\n }\n }\n\n return ((hits & 1) != 0);\n }", "private Corners findCorners(ArrayList<MatOfPoint> markers) {\n ArrayList<Point> corners = new ArrayList<>();\n for (MatOfPoint mrk : markers) {\n List<Point> list = mrk.toList();\n mrk.release();\n double sumx = 0, sumy = 0;\n for (Point p : list) {\n sumx += p.x;\n sumy += p.y;\n }\n corners.add(new Point(sumx/list.size(), sumy/list.size()));\n // System.out.println(list.size());\n }\n sortCorners(corners);\n // for (Point p : corners) System.out.println(p.x + \" \" + p.y);\n for (int i = 0; i < corners.size(); i++) {\n corners.get(i).x /= width;\n corners.get(i).y /= height;\n }\n if (corners.size() == 4) {\n return new Corners(corners.get(0), corners.get(1), corners.get(3), corners.get(2));\n }\n return null;\n }", "private boolean checkSurroundingOfPoint(Point p) {\n\t\tPoint check = new Point();\n\t\tcheck.x\t\t= p.x;\n\t\tcheck.y \t= p.y;\n\t\t\n\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\tcheck.y += y;\n\t\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\t\tcheck.x += x;\n\t\t\t\tif(occupiedPositions.contains(check)) return false;\n\t\t\t\t//restore values\n\t\t\t\tcheck.x\t= p.x;\n\t\t\t}\n\t\t\t//restore values\n\t\t\tcheck.y = p.y;\n\t\t}\n\t\treturn true;\n\t}", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public boolean contains2(Point p) {\n int crossings = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n boolean cond1 = (a[i].y <= p.y) && (p.y < a[j].y);\n boolean cond2 = (a[j].y <= p.y) && (p.y < a[i].y);\n if (cond1 || cond2) {\n // need to cast to double\n if (p.x < (a[j].x - a[i].x) * (p.y - a[i].y) / (a[j].y - a[i].y) + a[i].x)\n crossings++;\n }\n }\n if (crossings % 2 == 1) return true;\n else return false;\n }", "static boolean findBridge(Triangulator triRef, int ind, int i, int start,\n\t\t\t int[] ind1, int[] i1) {\n\tint i0, i2, j, numDist = 0;\n\tint ind0, ind2;\n\tBBox bb;\n\tDistance old[] = null;\n\tboolean convex, coneOk;\n\n\t// sort the points according to their distance from start.\n\tind1[0] = ind;\n\ti1[0] = i;\n\tif (i1[0] == start) return true;\n\tif (numDist >= triRef.maxNumDist) {\n\t // System.out.println(\"(1) Expanding distances array ...\");\n\t triRef.maxNumDist += triRef.INC_DIST_BK;\n\t old = triRef.distances;\n\t triRef.distances = new Distance[triRef.maxNumDist];\n\t System.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t for (int k = old.length; k < triRef.maxNumDist; k++)\n\t\ttriRef.distances[k] = new Distance();\n\t}\n\n\ttriRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\ttriRef.distances[numDist].ind = ind1[0];\n\t++numDist;\n\n\n\tind1[0] = triRef.fetchNextData(ind1[0]);\n\ti1[0] = triRef.fetchData(ind1[0]);\n\twhile (ind1[0] != ind) {\n\t if (i1[0] == start) return true;\n\t if (numDist >= triRef.maxNumDist) {\n\t\t// System.out.println(\"(2) Expanding distances array ...\");\n\t\ttriRef.maxNumDist += triRef.INC_DIST_BK;\n\t\told = triRef.distances;\n\t\ttriRef.distances = new Distance[triRef.maxNumDist];\n\t\tSystem.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t\tfor (int k = old.length; k < triRef.maxNumDist; k++)\n\t\t triRef.distances[k] = new Distance();\n\t }\n\n\t triRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\t triRef.distances[numDist].ind = ind1[0];\n\t ++numDist;\n\t ind1[0] = triRef.fetchNextData(ind1[0]);\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t}\n\n\t// qsort(distances, num_dist, sizeof(distance), &d_comp);\n\tsortDistance(triRef.distances, numDist);\n\n\t// find a valid diagonal. note that no node with index i1 > start can\n\t// be feasible!\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t if (i1[0] <= start) {\n\t\tind0 = triRef.fetchPrevData(ind1[0]);\n\t\ti0 = triRef.fetchData(ind0);\n\t\tind2 = triRef.fetchNextData(ind1[0]);\n\t\ti2 = triRef.fetchData(ind2);\n\t\tconvex = triRef.getAngle(ind1[0]) > 0;\n\n\t\tconeOk = Numerics.isInCone(triRef, i0, i1[0], i2, start, convex);\n\t\tif (coneOk) {\n\t\t bb = new BBox(triRef, i1[0], start);\n\t\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\t\treturn true;\n\t\t}\n\t }\n\t}\n\n\t// the left-most point of the hole does not lie within the outer\n\t// boundary! what is the best bridge in this case??? I make a\n\t// brute-force decision... perhaps this should be refined during a\n\t// revision of the code...\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t ind0 = triRef.fetchPrevData(ind1[0]);\n\t i0 = triRef.fetchData(ind0);\n\t ind2 = triRef.fetchNextData(ind1[0]);\n\t i2 = triRef.fetchData(ind2);\n\t bb = new BBox(triRef, i1[0], start);\n\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\treturn true;\n\t}\n\n\t// still no diagonal??? yikes! oh well, this polygon is messed up badly!\n\tind1[0] = ind;\n\ti1[0] = i;\n\n\treturn false;\n }", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public List<Point> findCornerPoints(Mat mRgba) throws NoSudokuFoundException{\n // draw edge points\n findUpperAndLowerEdge();\n findLeftAndRightEdge();\n \n for(int i=0; i<edges.length; i++){\n Point a = new Point(edges[i][0], edges[i][1]);\n Point b = new Point(edges[i][2], edges[i][3]);\n Core.line(mRgba, a, b, new Scalar(255, 0, 0), 3);\n }\n // Find the upper left corner point\n Point tl = findCornerPoint(edges[0], edges[3]);\n // Find the upper right corner point\n Point tr = findCornerPoint(edges[0], edges[1]);\n // Find the lower left corner point\n Point bl = findCornerPoint(edges[3], edges[2]);\n // Find the lower right corner point\n Point br = findCornerPoint(edges[2], edges[1]);\n \n // Sanity check: The corner points have to be correctly relative\n // to each other\n if(tl.x > tr.x || bl.x > br.x || tl.y > br.y || tr.y > br.y) {\n throw new NoSudokuFoundException(\"Points are not correctly aligned\");\n }\n \n // Sanity check: The Sudoku has to be about square\n // calculate and compare the distance of the diagonals\n // raise an exception if the difference is more than 10%.\n double a = Math.sqrt(Math.pow(tr.y-bl.y, 2) + Math.pow(tr.x-bl.x, 2));\n double b = Math.sqrt(Math.pow(tl.y-br.y, 2) + Math.pow(tl.x-br.x, 2));\n double diff = Math.abs(a-b);\n \n // Sanity check: The upper edge is the shortest because it is farthest\n // from the lens. So the area of the square found must be larger than \n // the square of the upper line.\n\n \n\n // draw the points cyan.\n Core.line(mRgba, tl, tl, new Scalar(20,255,255), 3);\n Core.line(mRgba, tr, tr, new Scalar(20,255,255), 3);\n Core.line(mRgba, bl, bl, new Scalar(20,255,255), 3);\n Core.line(mRgba, br, br, new Scalar(20,255,255), 3);\n \n if(diff * 10 > a || diff * 10 > b) {\n throw new NoSudokuFoundException(\"Structure is not a square.\");\n }\n List<Point> points = new ArrayList<Point>();\n points.add(bl);\n points.add(br);\n points.add(tr);\n points.add(tl);\n return points;\n }", "private Point[] nearestPairRec(Point[] range, boolean axis) {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (range.length < 4) return nearestPair3Points(range);\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2];\n\t\t\tdouble MinDistance = -1; //it will be change for sure, because we pass the array only if it containes 4 points and above.\n\t\t\tdouble MinDistanceInStrip;\n\t\t\t//step 4\n\t\t\tif (axis){\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getX(), range[(range.length)/2].getX(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getX(), range[range.length-1].getX() ,axis), axis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getY(), range[(range.length)/2].getY(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getY(), range[range.length-1].getY() ,axis), axis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}else if (MinPointsLeft!=null && MinPointsRight==null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}else if (MinPointsRight!=null && MinPointsLeft==null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 find the nearest point around the median\n\t\t\tint upper;\n\t\t\tint lower;\n\t\t\tif (MinDistance==-1) MinDistance = 0;\n\t\t\tif (axis){\n\t\t\t\tupper = (int) (range[(range.length)/2].getX()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getX()-MinDistance);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tupper = (int) (range[(range.length)/2].getY()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getY()-MinDistance);\n\t\t\t}\n\t\t\trange = getPointsInRangeOppAxis(lower, upper, axis);\n\t\t\tif (range.length>=2) MinPointsInStrip = nearestPointInArray(range);\n\t\t\tif (MinPointsInStrip[0]!=null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}", "public Point[] nearestPair() {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (this.size<2)\treturn null; //step 1\n\t\t\tif (this.size==2){\n\t\t\t\tAnswer[0]=this.minx.getData();\n\t\t\t\tAnswer[1]=this.maxx.getData();\n\t\t\t\treturn Answer;\t\t\t\n\t\t\t}\n\t\t\tdouble MinDistance=-1; // for sure it will be change in the next section, just for avoid warrning.\n\t\t\tdouble MinDistanceInStrip=-1;\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2]; // around the median\n\t\t\tboolean LargestAxis = getLargestAxis(); //step 2\n\t\t\tContainer median = getMedian(LargestAxis); //step 3\n\t\t\tif (LargestAxis){// step 4 - calling the recursive function nearestPairRec\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.minx.getData().getX(), median.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextX().getData().getX(), this.maxx.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.miny.getData().getY(), median.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextY().getData().getY(), this.maxy.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (MinPointsLeft!=null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}\n\t\t\telse if (MinPointsRight!=null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 - nearest point around the median\n\t\t\tif (MinDistance==-1) MinDistance=0;\n\t\t\tMinPointsInStrip = nearestPairInStrip(median, MinDistance*2, LargestAxis);\n\t\t\tif (MinPointsInStrip != null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\t@Deprecated\n\tprivate List<Integer> sffs(List<Integer> corners, Stroke stroke,\n\t\t\tIObjectiveFunction objFunction) {\n\n\t\tif (corners.size() <= 2)\n\t\t\treturn corners;\n\n\t\tdouble currError = Double.MAX_VALUE;\n\t\tList<Integer> cornerSubset = new ArrayList<Integer>();\n\t\tcornerSubset.add(0);\n\t\tcornerSubset.add(stroke.getNumPoints() - 1);\n\n\t\tList<Double> errorList = new ArrayList<Double>();\n\t\terrorList.add(objFunction.solve(cornerSubset, stroke));\n\n\t\tList<List<Integer>> cornerSubsetList = new ArrayList<List<Integer>>();\n\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\n\t\tList<List<Integer>> backOnSubset = new ArrayList<List<Integer>>();\n\n\t\tint n = 0;\n\n\t\twhile (cornerSubset.size() < corners.size()) {\n\n\t\t\t// Go forward\n\t\t\tList<Object> forwardResults = nextBestCorner(cornerSubset, corners,\n\t\t\t\t\tstroke, objFunction);\n\t\t\tint forwardCorner = (Integer) forwardResults.get(0);\n\t\t\tdouble forwardError = (Double) forwardResults.get(1);\n\n\t\t\t// Go backward (if possible)\n\t\t\tint backCorner = -1;\n\t\t\tdouble backError = Double.MAX_VALUE;\n\t\t\tList<Integer> backSubset = null;\n\t\t\tif (cornerSubset.size() < corners.size() - 1) {\n\t\t\t\tList<Object> backResults = prevBestSubset(cornerSubset, stroke,\n\t\t\t\t\t\tobjFunction);\n\t\t\t\tbackSubset = (List<Integer>) backResults.get(0);\n\t\t\t\tbackError = (Double) backResults.get(1);\n\t\t\t}\n\n\t\t\tif (backCorner != -1 && backError < errorList.get(n - 1)\n\t\t\t\t\t&& !alreadySeenSubset(cornerSubset, backOnSubset)) {\n\n\t\t\t\tbackOnSubset.add(cornerSubset);\n\t\t\t\tcornerSubset = new ArrayList<Integer>(backSubset);\n\t\t\t\tcurrError = backError;\n\t\t\t\tn--;\n\t\t\t} else {\n\t\t\t\tcornerSubset.add(forwardCorner);\n\t\t\t\tcurrError = forwardError;\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t\tif (cornerSubsetList.size() <= n) {\n\t\t\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.add(currError);\n\t\t\t} else {\n\t\t\t\tcornerSubsetList.set(n, new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.set(n, currError);\n\t\t\t}\n\t\t}\n\n\t\tList<Integer> bestSubset = null;\n\n\t\tdouble d1Errors[] = new double[errorList.size()];\n\t\tfor (int i = 0; i < errorList.size() - 1; i++) {\n\t\t\tdouble deltaError = errorList.get(i + 1) / errorList.get(i);\n\t\t\td1Errors[i] = deltaError;\n\t\t}\n\n\t\tdouble d2Errors[] = new double[errorList.size()];\n\t\tfor (int i = 0; i < errorList.size() - 2; i++) {\n\t\t\tdouble deltaDeltaError = d1Errors[i + 1] / d1Errors[i];\n\t\t\td2Errors[i] = deltaDeltaError;\n\t\t}\n\n\t\tfor (int i = 0; i < d2Errors.length - 3; i++) {\n\t\t\tif (d2Errors[i] > S_THRESHOLD) {\n\t\t\t\tbestSubset = cornerSubsetList.get(i + 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (bestSubset == null)\n\t\t\tbestSubset = cornerSubsetList.get(0);\n\n\t\tCollections.sort(bestSubset);\n\n\t\treturn bestSubset;\n\t}", "public static ArrayList<double[]> isBorder()\n {\n ArrayList<double[]> borders = new ArrayList<double[]>() ;\n // for all points\n for(int i=0; i<POINTS.length; i++)\n {\n // for all neighbouring points\n for(int k=i+1; k<POINTS.length; k++)\n {\n // System.out.println(\"Checking pair: \" + Arrays.toString(POINTS[i]) + \" \" + Arrays.toString(POINTS[k]));\n ArrayList<Double> sides = new ArrayList<Double>();\n // checking tmp vals\n for(int n=0; n<POINTS.length; n++) // O(n^3)\n {\n double[] test = POINTS[n];\n // find which side of line the test is on\n double d = side(POINTS[i], POINTS[k], POINTS[n]);\n // append to sides\n\n sides.add(d);\n //System\n }\n // check if sides for this pairing is same\n if (neg(sides) || pos(sides))\n {\n\n borders.add(POINTS[i]);\n borders.add(POINTS[k]);\n }\n }\n }\n /**double[] tmp = POINTS[i];\n double d = side(p1, p2, tmp);\n sides.add(d);\n //System.out.println(\"Printing sides array for pairing \" + p1[0] + \",\" + p1[1] + \" and \" + p2[0] + \",\" + p2[1] );\n if (neg(sides) || pos(sides))\n {\n System.out.println(\"p1 and p2 are borders\");\n borders.add(p1); borders.add(p2);\n }\n }\n for (int i=0; i<borders.size(); i++){\n System.out.println(Arrays.toString(borders.get(i)));\n }\n /**\n System.out.println(\"is all neg: \");\n System.out.println(neg(sides));\n System.out.println(\"is all pos: \");\n System.out.println(pos(sides));*/\n// return false;\n return borders;\n }", "@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }", "public Set<MapCoordinate> getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(MapCoordinate topLeftMapCoordinate, int distance, Set<MapCoordinate> alreadyFound) {\n int currentX = topLeftMapCoordinate.getXAsInt();\n int currentY = topLeftMapCoordinate.getYAsInt();\n\n // first row\n int topLeftYMinusDistance = currentY - distance;\n int topLeftXMinusDistance = currentX - distance;\n\n int totalWidth = (distance + entityData.getWidthInCells() + distance) - 1;\n int totalHeight = (distance + entityData.getHeightInCells() + distance) - 1;\n\n Set<MapCoordinate> result = new HashSet<>(alreadyFound);\n\n // -1, because it is 0 based\n for (int x = 0; x <= totalWidth; x++) {\n result.add(MapCoordinate.create(topLeftXMinusDistance + x, topLeftYMinusDistance));\n }\n\n // then all 'sides' of the structure (left and right)\n // also start one row 'lower' since we do not want to calculate the top left/right twice (as we did it\n // in the above loop already)\n // totalHeight - 2 for same reason, -1 == zero based, -2 to reduce one row\n for (int y = 1; y <= (totalHeight - 1); y++) {\n int calculatedY = topLeftYMinusDistance + y;\n\n // left side\n result.add(MapCoordinate.create(topLeftXMinusDistance, calculatedY));\n\n // right side\n int rightX = topLeftXMinusDistance + totalWidth;\n result.add(MapCoordinate.create(rightX, calculatedY));\n }\n\n // bottom row\n int bottomRowY = topLeftYMinusDistance + totalHeight;\n for (int x = 0; x <= totalWidth; x++) {\n result.add(MapCoordinate.create(topLeftXMinusDistance + x, bottomRowY));\n }\n\n if (distance > 1) {\n return getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(topLeftMapCoordinate, (distance-1), result);\n }\n return result;\n }", "public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}", "void B_time()\n {\n System.out.println(\"Ghost current position: ( \"+X+\",\"+Y+\")\");\n double[][] dup = new double[n][n];\n //int temp = rand.nextInt(10);\n for (int i = 0; i < n; i++)\n {\n for (int j = 0; j < n; j++)\n {\n double x = 0;\n //*****SIDEWAYS****\n\n if( (j-1 >= 0) && (j-1 < n))\n {\n double a = side_neighbour(i,j-1);\n x += arr[i][j-1] * sw * (1.0/a);\n }\n if( (j+1 >= 0) && (j+1 < n))\n {\n double a = side_neighbour(i,j+1);\n x += arr[i][j+1] * sw * (1.0/a);\n }\n if( (i-1 >= 0) && (i-1 < n))\n {\n double a = side_neighbour(i-1,j);\n x += arr[i-1][j] * sw * (1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n))\n {\n double a = side_neighbour(i+1,j);\n x += arr[i+1][j] * sw * (1.0/a);\n }\n\n //*****CORNERS****\n if( (i-1 >= 0) && (i-1 < n) && (j-1 >= 0) && (j-1 < n))\n {\n double a = corner_neighbours(i-1,j-1);\n x += arr[i-1][j-1] * c *(1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n) && (j+1 >= 0) && (j+1 < n))\n {\n double a = corner_neighbours(i+1,j+1);\n x += arr[i+1][j+1] * c *(1.0/a);\n }\n if( (i-1 >= 0) && (i-1 < n) && (j+1 >= 0) && (j+1 < n))\n {\n double a = corner_neighbours(i-1,j+1);\n x += arr[i-1][j+1] * c * (1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n) && (j-1 >= 0) && (j-1 < n))\n {\n double a = corner_neighbours(i+1,j-1);\n x += arr[i+1][j-1] * c * (1.0/a);\n }\n\n double a = corner_neighbours(i,j);\n x += arr[i][j] * c * (1.0/a);\n\n //arr[i][j] = x;\n dup[i][j] = x;\n }\n }\n\n\n\n arr = dup;\n B_print();\n curr_pos(X,Y);\n\n }", "public int solution(int[][] A) {\n int countSaddlePoint = 0;\n for (int p = 1 ; p < A.length -1 ; p++)\n for (int q =1 ; q < A.length - 1; q ++)\n {\n\n System.out.println(\"P: \" + p);\n System.out.println(\"Q: \" + q);\n\n if (((A[p][q-1] > A[p][q]) && (A[p][q] < A[p][q+1])\n && (A[p-1][q] < A[p][q]) && (A[p][q] > A[p+1][q]))\n || ((A[p][q-1] < A[p][q]) && (A[p][q] > A[p][q+1])\n && (A[p-1][q] > A[p][q]) && (A[p][q] < A[p+1][q]))\n )\n {\n System.out.println(\"Entering Here for \" + p);\n System.out.println(\"Entering Here for \" + q);\n ++countSaddlePoint;\n\n }\n\n }\n\n return countSaddlePoint;\n }", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private static final boolean overlapFast(final double[][] candidate, final double[] candidateBB,\n\t\t\tfinal PackedPoly placedPoly) {\n\n\t\t// 1. test bounding boxes\n\t\tif (!MathUtil.intersect_boundBoxes(candidateBB, placedPoly.bb)) {\n\t\t\treturn false;\n\t\t}\n\t\t// 2. test the centroid against candidate poly\n\t\t/*\n\t\t * NOTE this isn't completely robust (a robust method would test every point of\n\t\t * placed poly against candidate) but will catch almost all occurrences (so is\n\t\t * worth the speed-up overall).\n\t\t */\n\t\tif (MathUtil.inside(placedPoly.centroid, candidate)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// 3. test edge intersections\n\t\tfor (int i = 0; i < candidate.length; i++) {\n\t\t\tfor (int j = 0; j < placedPoly.inpts.length; j++) {\n\t\t\t\tif (MathUtil.intersectionFast(candidate[i], candidate[(i + 1) % candidate.length], placedPoly.inpts[j],\n\t\t\t\t\t\tplacedPoly.inpts[(j + 1) % placedPoly.inpts.length])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\n\t}", "public boolean isSelfCrossing(int[] x) {\n for(int i = 0; i <= x.length - 1; i ++){\n // Case 1 where arrow i goes across arrow i - 3\n if(i >= 3 && x[i] >= x[i - 2] && x[i - 1] <= x[i - 3]) return true;\n // Case 2 where arrow i goes across arrow i - 4\n if(i >= 4 && x[i] + x[i - 4] >= x[i - 2] && x[i - 1] == x[i - 3]) return true;\n // Case 3 where arrow goes across arrow i - 5\n if(i >= 5 && x[i - 1] + x[i - 5] >= x[i - 3] && x[i] + x[i - 4] >= x[i - 2]\n && x[i - 2] >= x[i - 4] && x[i - 1] <= x[i - 3]) return true;\n }\n return false;\n }", "private int cornerCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n if (coordinates.get(2).getXCoordinate() < wallCoordinates.get(0).getXCoordinate() && coordinates.get(2).getYCoordinate() < wallCoordinates.get(0).getYCoordinate())\n return 0;\n else if (coordinates.get(0).getXCoordinate() > wallCoordinates.get(1).getXCoordinate() && coordinates.get(0).getYCoordinate() < wallCoordinates.get(1).getYCoordinate())\n return 1;\n else if (wallCoordinates.get(2).getXCoordinate() < coordinates.get(0).getXCoordinate() && wallCoordinates.get(2).getYCoordinate() < coordinates.get(0).getYCoordinate())\n return 2;\n else if (coordinates.get(1).getXCoordinate() < wallCoordinates.get(3).getXCoordinate() && coordinates.get(1).getYCoordinate() > wallCoordinates.get(3).getYCoordinate())\n return 3;\n else\n return -1;\n }", "public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Point2D(0.5, 0.7));\n pset.insert(new Point2D(0.5, 0.8));\n pset.insert(new Point2D(0.1, 0.5));\n pset.insert(new Point2D(0.8, 0.5));\n pset.insert(new Point2D(0.1, 0.1));\n System.out.println(\"Empty: \" + pset.isEmpty());\n System.out.println(\"Size: \" + pset.size());\n System.out.println(\"Nearest to start: \" + pset.nearest(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #1: \" + pset.contains(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #2: \" + pset.contains(new Point2D(0.5, 0.5)));\n System.out.print(\"Range #1: \");\n for (Point2D p : pset.range(new RectHV(0.001, 0.001, 0.002, 0.002)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #2: \");\n for (Point2D p : pset.range(new RectHV(0.05, 0.05, 0.15, 0.15)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #3: \");\n for (Point2D p : pset.range(new RectHV(0.25, 0.35, 0.65, 0.75)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n \n }", "private int checkCorners(int[] arr, int[] availableMoves) {\n for (int i = 0; i <= 6; i += 6) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) { \n return i;\n } \n }\n\n // Check verticals\n for (int i = 0; i < 3; i+=2) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) {\n return i;\n } \n }\n \n return -1;\n }", "public void chase(int targetX, int targetY, ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls, 0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if (isIntersection) {\r\n if (!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isLeftCollision && this.direction != 2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos - 20) - targetY, 2);\r\n }\r\n if (!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos + 20) - targetY, 2);\r\n }\r\n if (upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n } else if (downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n } else if (rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n } else if (leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if (this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if (this.direction == 1) {\r\n yPos = yPos + 5;\r\n }\r\n if (this.direction == 2) {\r\n xPos = xPos + 5;\r\n }\r\n if (this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n\r\n }", "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 }", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Integer> sbfs(List<Integer> corners, Stroke stroke,\n\t\t\tIObjectiveFunction objFunction) {\n\n\t\tif (corners.size() <= 2)\n\t\t\treturn corners;\n\n\t\tdouble currError = Double.MAX_VALUE;\n\t\tList<Integer> cornerSubset = new ArrayList<Integer>(corners);\n\t\tList<List<Integer>> cornerSubsetList = new ArrayList<List<Integer>>(\n\t\t\t\tcornerSubset.size());\n\t\tList<Double> errorList = new ArrayList<Double>(cornerSubset.size());\n\n\t\tList<List<Integer>> forwardOnSubset = new ArrayList<List<Integer>>();\n\n\t\tint n = -1;\n\n\t\twhile (cornerSubset.size() > 2) {\n\n\t\t\t// Go backward\n\t\t\tList<Object> backResults = prevBestSubset(cornerSubset, stroke,\n\t\t\t\t\tobjFunction);\n\t\t\tList<Integer> backSubset = (List<Integer>) backResults.get(0);\n\t\t\tdouble backError = (Double) backResults.get(1);\n\n\t\t\t// Go forward (if possible)\n\t\t\tint forwardCorner = -1;\n\t\t\tdouble forwardError = Double.MAX_VALUE;\n\t\t\tif (cornerSubset.size() < corners.size() - 1) {\n\t\t\t\tList<Object> forwardResults = nextBestCorner(cornerSubset,\n\t\t\t\t\t\tcorners, stroke, objFunction);\n\t\t\t\tforwardCorner = (Integer) forwardResults.get(0);\n\t\t\t\tforwardError = (Double) forwardResults.get(1);\n\t\t\t}\n\n\t\t\t// Go forward if the error is better, otherwise continue backward\n\t\t\tif (forwardCorner != -1 && forwardError < errorList.get(n - 1)\n\t\t\t\t\t&& !alreadySeenSubset(cornerSubset, forwardOnSubset)) {\n\n\t\t\t\tforwardOnSubset.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\tcornerSubset.add(forwardCorner);\n\t\t\t\tCollections.sort(cornerSubset);\n\n\t\t\t\tcurrError = forwardError;\n\t\t\t\tn--;\n\t\t\t} else {\n\t\t\t\tcornerSubset = backSubset;\n\t\t\t\tcurrError = backError;\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t\t// Update the list of best subsets for n corners\n\t\t\tif (cornerSubsetList.size() <= n) {\n\t\t\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.add(currError);\n\t\t\t} else {\n\t\t\t\tcornerSubsetList.set(n, new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.set(n, currError);\n\t\t\t}\n\t\t}\n\n\t\tList<Integer> bestSubset = null;\n\n\t\tdouble d1Errors[] = new double[errorList.size()];\n\t\tfor (int i = 1; i < errorList.size(); i++) {\n\t\t\tdouble deltaError = errorList.get(i) / errorList.get(i - 1);\n\t\t\td1Errors[i] = deltaError;\n\t\t}\n\n\t\tfor (int i = 2; i < d1Errors.length; i++) {\n\t\t\tif (d1Errors[i] > S_THRESHOLD) {\n\t\t\t\tbestSubset = cornerSubsetList.get(i - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (bestSubset == null)\n\t\t\tbestSubset = cornerSubsetList.get(0);\n\n\t\tCollections.sort(bestSubset);\n\n\t\treturn bestSubset;\n\t}", "private void sortCorners(ArrayList<Point> corners) {\n Collections.sort(corners, new Comparator<Point>() {\n public int compare (Point a, Point b) {\n double val = a.y - b.y;\n if (val < 0) return -1;\n else if (val > 0) return 1;\n else return 0;\n }\n }\n );\n if (corners.size() > 1) {\n if (corners.get(0).x > corners.get(1).x) {\n Point temp = corners.get(0);\n corners.set(0, corners.get(1));\n corners.set(1, temp);\n }\n }\n if (corners.size() > 3) {\n if (corners.get(2).x > corners.get(3).x) {\n Point temp = corners.get(2);\n corners.set(2, corners.get(3));\n corners.set(3, temp);\n }\n }\n }", "Point3D getLeftUpperBackCorner();", "private boolean isCorner(int x, int y)\n {\n return x-1 >= 0 && x+1 < LoadMap.MAPWIDTHINTILES && y-1 >= 0 && y+1 < LoadMap.MAPHEIGHTINTILES && (\n (connectedTiles[y][x+1] != null && (connectedTiles[y+1][x] != null || connectedTiles[y-1][x] != null))\n || (connectedTiles[y][x-1] != null && (connectedTiles[y+1][x] != null || connectedTiles[y-1][x] != null)));\n }", "public boolean contains(Point p) {\n int winding = 0;\n for (int i = 0; i < N; i++) {\n int ccw = Point.ccw(a[i], a[i+1], p);\n if (a[i+1].y > p.y && p.y >= a[i].y) // upward crossing\n if (ccw == +1) winding++;\n if (a[i+1].y <= p.y && p.y < a[i].y) // downward crossing\n if (ccw == -1) winding--;\n }\n return winding != 0;\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 static double divideAndConquer(ArrayList<Point> X, ArrayList<Point> Y) {\n\n\t\t//Assigns size of array\n\t\tint size = X.size();\n\n\t\t//If less than 3 points, efficiency is better by brute force\n\t\tif (size <= 3) {\n\t\t\treturn BruteForceClosestPairs(X);\n\t\t}\n\t\t\n\t\t//Ceiling of array size / 2\n\t\tint ceil = (int) Math.ceil(size / 2);\n\t\t//Floor of array size / 2\n\t\tint floor = (int) Math.floor(size / 2);\n\t\t\n\t\t//Array list for x & y values left of midpoint\n\t\tArrayList<Point> xL = new ArrayList<Point>();\t\n\t\tArrayList<Point> yL = new ArrayList<Point>();\n\t\t\n\t\t//for [0 ... ceiling of array / 2]\n\t\t//add the points onto the new arrays\n\t\tfor (int i = 0; i < ceil; i++) {\n\t\t\t\n\t\t\txL.add(X.get(i));\n\t\t\tyL.add(Y.get(i));\n\t\t}\n\t\t\n\t\t// Array list for x & y values right of midpoint\n\t\tArrayList<Point> xR = new ArrayList<Point>();\n\t\tArrayList<Point> yR = new ArrayList<Point>();\n\t\t\n\t\t//for [floor of array / 2 ... size of array]\n\t\t//add the points onto the new arrays\n\t\tfor (int i = floor; i < size - 1; i++) {\n\n\t\t xR.add(X.get(i));\n\t\t\tyR.add(Y.get(i));\n\t\t}\n\t\t\n\t\t//Recursively find the shortest distance\n\t\tdouble distanceL = divideAndConquer(xL, yL);\n\t\tdouble distanceR = divideAndConquer(xR, xL);\n\t\t//Smaller of both distances\n\t\tdouble distance = Math.min(distanceL, distanceR);\n\t\t//Mid-line\n\t\tdouble mid = X.get(ceil - 1).getX();\n\n\t\tArrayList<Point> S = new ArrayList<Point>();\n\n\t\t//copy all the points of Y for which |x - m| < d into S[0..num - 1]\n\t\tfor (int i = 0; i < Y.size() - 1; i++) {\n\n\t\t\tif (Math.abs(X.get(i).getX() - mid) < distance) {\n\t\t\t\tS.add(Y.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Square minimum distance\n\t\tdouble dminsq = distance * distance;\n\t\t//Counter\n\t\tint k = 0;\n\t\tint num = S.size();\n\n\t\tfor (int i = 0; i < num - 2; i++) {\n\t\t\t\n\t\t\tk = i + 1;\n\t\t\t\n\t\t\twhile (k <= num - 1 && (Math.pow((S.get(k).getY() - S.get(i).getY()), 2) < dminsq)) {\n\n\t\t\t\t//Find distance between points and find the minimum compared to dminsq\n\t\t\t\tdminsq = Math.min(Math.pow(S.get(k).getX() - S.get(i).getX(), 2) \n\t\t\t\t\t\t\t\t+ Math.pow(S.get(k).getY() - S.get(i).getY(), 2), dminsq);\n\n\t\t\t\tk = k + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn Math.sqrt(dminsq);\n\t}", "private static boolean isCorner(int[][] area, int x, int y, boolean countEdges) {\r\n\t\t// Find the coordinates of the spaces adjacent to this one\r\n\t\tint[][] around = { { x - 1, y },// Left 1\r\n\t\t\t\t{ x + 1, y },// Right 1\r\n\t\t\t\t{ x, y - 1 },// Down 1\r\n\t\t\t\t{ x, y + 1 } };// Up 1\r\n\t\tint walls = 0; // Create a variable to store how many walls are next to\r\n\t\t\t\t\t // the current space\r\n\t\tfor (int[] coords : around) {// test each adjacent space\r\n\t\t\tif ((coords[1] < 0) || (coords[0] >= area.length)\r\n\t\t\t\t\t|| (coords[0] < 0) || (coords[1] >= area[x].length)) {\r\n\t\t\t\t// If this square is out of the map then it counts as a wall\r\n\t\t\t\tif (countEdges) {\r\n\t\t\t\t\twalls++;\r\n\t\t\t\t}\r\n\t\t\t} else if (area[coords[0]][coords[1]] >= 1) {\r\n\t\t\t\t// The space has a wall next to it\r\n\t\t\t\twalls++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (walls == 2 || walls == 3) { // if the block is surrounded by 2 or 3\r\n\t\t\t\t\t\t\t\t\t\t// walls, it's a corner \r\n\t\t\t\r\n\t\t\t//Check to see if this wall is just a corridor\r\n\t\t\tif( (isCorridor(area, around[0][0],around[0][1], around[1][0], around[1][1])) && \r\n\t\t\t\t\t(!isCorridor(area, around[2][0],around[2][1], around[3][0], around[3][1]))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif( (!isCorridor(area, around[0][0],around[0][1], around[1][0], around[1][1])) && \r\n\t\t\t\t\t(isCorridor(area, around[2][0],around[2][1], around[3][0], around[3][1]))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void checkOverlaps() {\r\n final ArrayList<Vertex> overlaps = new ArrayList<Vertex>(3);\r\n final int count = getOutlineNumber();\r\n boolean firstpass = true;\r\n do {\r\n for (int cc = 0; cc < count; cc++) {\r\n final Outline outline = getOutline(cc);\r\n int vertexCount = outline.getVertexCount();\r\n for(int i=0; i < outline.getVertexCount(); i++) {\r\n final Vertex currentVertex = outline.getVertex(i);\r\n if ( !currentVertex.isOnCurve()) {\r\n final Vertex nextV = outline.getVertex((i+1)%vertexCount);\r\n final Vertex prevV = outline.getVertex((i+vertexCount-1)%vertexCount);\r\n final Vertex overlap;\r\n\r\n // check for overlap even if already set for subdivision\r\n // ensuring both triangular overlaps get divided\r\n // for pref. only check in first pass\r\n // second pass to clear the overlaps array(reduces precision errors)\r\n if( firstpass ) {\r\n overlap = checkTriOverlaps0(prevV, currentVertex, nextV);\r\n } else {\r\n overlap = null;\r\n }\r\n if( overlaps.contains(currentVertex) || overlap != null ) {\r\n overlaps.remove(currentVertex);\r\n\r\n subdivideTriangle(outline, prevV, currentVertex, nextV, i);\r\n i+=3;\r\n vertexCount+=2;\r\n addedVerticeCount+=2;\r\n\r\n if(overlap != null && !overlap.isOnCurve()) {\r\n if(!overlaps.contains(overlap)) {\r\n overlaps.add(overlap);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n firstpass = false;\r\n } while( !overlaps.isEmpty() );\r\n }", "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 boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n long sz = (long)t + 1;\n Map<Long, Long> map = new HashMap<>();\n for (int i = 0; i < nums.length; ++i) {\n long bucket = getBucket(nums[i], sz);\n if (map.containsKey(bucket)) return true;\n if (map.containsKey(bucket + 1) && Math.abs(nums[i] - map.get(bucket + 1)) < sz) return true;\n if (map.containsKey(bucket - 1) && Math.abs(nums[i] - map.get(bucket - 1)) < sz) return true;\n map.put(bucket, (long)nums[i]);\n if (i >= k) map.remove(getBucket(nums[i - k], sz));\n }\n return false;\n}", "public static int mergeStones(int[] stones, int K) {\n int N = stones.length;\n if ((N-1)%(K-1)!=0) return -1;\n\n // dp[i][j] stores from i to j if can merge, what is the min cost, if (Len(j, i)-1)%(K-1) == 0 that means it can merge to 1 pile, otherwise, we only calculate\n // (from i(start point) to the farest point which can finally merge to 1 pile)'s merge cost\n int[][] dp = new int[N][N];\n\n int[] sum = new int[N+1];\n for (int i=0; i<N; i++) sum[i+1] = sum[i]+stones[i];\n\n for (int L=K; L<=N; L++) { // L is the length of small range\n // i is the subPiles is start point\n for (int i=0; i<=N-L; i++) {\n // j is the end point, L 不一定是K的倍数\n int j=i+L-1;\n dp[i][j]=Integer.MAX_VALUE;\n\n // each time we need keep from i to m is a \"can-merge-to-one-pile\" piles set, so m step is K-1; because each time besides i, we add(K-1) to the piles\n // [i, i+K-1] length is K\n // 把区间[i, j] split to [i, m] and [m+1,j], the left range must be merged to one pile, the right one maybe can or can not\n for (int m=i; m<j; m+=K-1) {\n dp[i][j]=Math.min(dp[i][j], dp[i][m] + dp[m+1][j]);\n }\n if ((j-i)%(K-1)==0) {\n dp[i][j]+=sum[j+1] - sum[i]; // if [i, j] can merge to 1 pile, we need finally add each elem from i to j\n System.out.println(dp[i][j]);\n }\n }\n }\n\n return dp[0][N-1];\n }", "public static List<Point> ParetoOptimal(List<Point> listofPts)\n {\n \n if(listofPts.size() == 1 || listofPts.size() == 0)\n return listofPts;\n \n \n \n \n int pos = listofPts.size() /2 ;\n \n /*\n * quickSelect time complexity (n)\n */\n \n Point median = quickSelect(listofPts, pos, 0, listofPts.size() - 1); \n \n \n \n List<Point> points1 = new ArrayList<Point>();\n List<Point> points2 = new ArrayList<Point>();\n List<Point> points3 = new ArrayList<Point>();\n List<Point> points4 = new ArrayList<Point>();\n \n //O(n)\n if(oldMedian == median)\n {\n \t\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() <= median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n else\n {\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() < median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n //O(n)\n int yRightMax = -100000;\n for(int x= 0; x < points2.size(); x++)\n {\n if(points2.get(x).getY() > yRightMax)\n yRightMax = (int) points2.get(x).getY();\n \n }\n \n \n for(int x= 0; x < points1.size() ; x++)\n {\n if(points1.get(x).getY()> yRightMax)\n { \n points3.add(points1.get(x));\n \n } \n }\n \n for(int x= 0; x < points2.size() ; x++)\n {\n if(points2.get(x).getY() < yRightMax)\n {\n points4.add(points2.get(x));\n \n }\n \n }\n //System.out.println(\"points2: \" + points2);\n /*\n * Below bounded by T(n/c) + T(n/2) where c is ratio by which left side is shortened \n */\n oldMedian = median;\n return addTo \n ( ParetoOptimal(points3), \n ParetoOptimal(points2)) ;\n }", "protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "private boolean winsByDiagonalTopLeftToBottomRight(char symbol){\n int max_diagonal_count = 0;\n\n // Deals with the diagonals below the midpoint in the array. Iterates through diagonals from last row to the\n // first row.\n for (int i = this.boardRows - 1; i > 0; i--) {\n\n // reset counter at each new diagonal\n int count = 0;\n\n // Iterates through the diagonal with origin (top left point) at first element of row i\n for (int j = 0, x = i; x < this.boardRows; j++, x++) {\n\n // If j surpasses the number of available cols we break out the inner for loop. This happens when the\n // num of rows and cols in the array are different\n if (j>=this.boardColumns){\n break;\n }\n // If char symbol is the same as the element in the diagonal, we increment counter by 1 and update\n // max_diagonal_count if possible.\n if(symbol == this.gameBoard[x][j]){\n count+=1;\n\n if (count>max_diagonal_count){\n max_diagonal_count=count;\n }\n }\n //Otherwise, we reset the counter to 0\n else {\n count = 0;\n }\n }\n }\n\n // Deals with the diagonals at and after the midpoint in the array. Iterates through diagonals from first column to the\n // last column\n for (int i = 0; i < this.boardColumns; i++) {\n\n // Resets counter for each new diagonal\n int count = 0;\n\n // Iterates through diagonal values with origin (top left point) at first element of col i\n for (int j = 0, y = i; y < this.boardColumns; j++, y++) {\n\n // If j surpasses the number of available cols we break out the inner for loop. This happens when the\n // num of rows and cols in the array are different\n if (j>=this.boardRows){\n break;\n }\n\n // If char symbol is the same as the element in the diagonal, we increment counter by 1 and update\n // max_diagonal_count if possible.\n if(symbol == this.gameBoard[j][y]){\n count+=1;\n\n if (count>max_diagonal_count){\n max_diagonal_count=count;\n }\n }\n //Otherwise, we reset the counter to 0\n else {\n count = 0;\n }\n }\n }\n\n // If the max_diagonal_count is greater than or equal to tilesNeeded, then we have sufficient tiles in a diagonal\n // for char symbol to win so we return true. Otherwise, we return false.\n if (max_diagonal_count >= this.tilesNeeded){\n return true;\n }\n else {\n return false;\n }\n\n }", "public static void main(String[] args) {\n Random r = new Random();\n// r.setSeed(1982);\n int R = 500;\n int L = 100000;\n\n int start = -500;\n int end = 500;\n HashSet<Point> hi3 = new HashSet<>();\n List<Point> hi5 = new ArrayList<>();\n Stopwatch sw = new Stopwatch();\n for (int i = 0; i < L; i += 1) {\n double ran = r.nextDouble();\n double x = start + (ran * (end - start));\n ran = r.nextDouble();\n double y = start + (ran * (end - start));\n Point temp = new Point(x, y);\n hi5.add(temp);\n\n }\n KDTree speedTest = new KDTree(hi5);\n NaivePointSet speedTest2 = new NaivePointSet(hi5);\n\n// for (int i = 0; i < 1000; i++) {\n// double ran = r.nextDouble();\n// double x2 = start + (ran *(end - start));\n// ran = r.nextDouble();\n// double y2 = start + (ran *(end - start));\n// assertEquals(speedTest2.nearest(x2, y2), speedTest.nearest(x2, y2 ));\n// }\n// assertEquals(speedTest2.nearest(r.nextInt(R + 1 - 500) + 500,\n// r.nextInt(R + 1 - 500) + 100), speedTest.nearest(427.535670, -735.656403));\n\n System.out.println(\"elapsed time1: \" + sw.elapsedTime());\n\n int R2 = 100;\n int L2 = 10000;\n Stopwatch sw2 = new Stopwatch();\n for (int i = 0; i < L2; i += 1) {\n\n speedTest2.nearest(r.nextDouble(), r.nextDouble());\n }\n\n System.out.println(\"elapsed time: \" + sw2.elapsedTime());\n }", "private Point backtrack(Point p){\n\t\t// coordinates of the point\n\t\tint x = (int)p.getX();\n\t\tint y = (int)p.getY();\n\t\t// neigh hold the return value\n\t\tPoint neigh= p;\n\t\t// the lowest score\n\t\tint score=10000;\n\t\t// look at all the neighbor and compare them\n\t\tif(x>0\t && topology[x-1][y]>=0){\n\t\t\tscore = topology[x-1][y];\n\t\t\tneigh = new Point(x-1,y);\n\t\t}\n\t\tif(x<row-1 && topology[x+1][y]>=0 && score > topology[x+1][y]) {\n\t\t\tscore = topology[x+1][y];\n\t\t\tneigh = new Point(x+1,y);\n\t\t}\n\t\tif(y<col-1 && topology[x][y+1]>=0 && score > topology[x][y+1]) {\n\t\t\tscore = topology[x][y+1];\n\t\t\tneigh = new Point(x,y+1);\n\t\t}\n\t\tif(y>0 && topology[x][y-1]>=0 && score > topology[x][y-1]) {\n\t\t\tscore = topology[x][y-1];\n\t\t\tneigh = new Point(x,y-1);\n\t\t}\n\t\treturn neigh;\n\t}", "private static void crossProductMerge(int[][] pointSet, int start, int mid, int end)\n {\n int[][] L = new int[2][mid-start+1];\n int[][] R = new int[2][end-mid];\n for (int i = 0; i<= L[0].length-1; i++)\n {\n L[0][i] = pointSet[0][start+i]; L[1][i] = pointSet[1][start+i];\n }\n for (int j = 0; j<= R[0].length-1; j++)\n {\n R[0][j] = pointSet[0][mid+j+1]; R[1][j] = pointSet[1][mid+j+1];\n }\n int i = 0;\n int j = 0;\n for (int k = start; k <= end; k++) \n {\n if (i == L[0].length || j == R[0].length)\n {\n if (i == L[0].length)\n {\n pointSet[0][k] = R[0][j]; pointSet[1][k] = R[1][j]; j++;\n }\n else\n {\n pointSet[0][k] = L[0][i]; pointSet[1][k] = L[1][i]; i++;\n }\n }\n else\n {\n if (((L[0][i]-pointSet[0][0])*(R[1][j]-pointSet[1][0]))-\n ((R[0][j]-pointSet[0][0])*(L[1][i]-pointSet[1][0])) > 0)\n {\n pointSet[0][k] = L[0][i]; pointSet[1][k] = L[1][i]; i++; \n }\n else\n {\n pointSet[0][k] = R[0][j]; pointSet[1][k] = R[1][j]; j++; \n }\n }\n }\n }", "boolean checkPointInsidePolygon(Point[] points, PVector input) {\n\t\tint i, j;\n\t\tboolean c = false;\n\t\tfor (i = 0, j = points.length - 1; i < points.length; j = i++) {\n\t\t\tif (((points[i].y > input.y) != (points[j].y > input.y))\n\t\t\t\t\t&& (input.x < (points[j].x - points[i].x) * (input.y - points[i].y) / (points[j].y - points[i].y)\n\t\t\t\t\t\t\t+ points[i].x))\n\t\t\t\tc = !c;\n\t\t}\n\t\treturn c;\n\t}", "static void kClosestPoints(int x[], int y[], \n int n, int k) \n{ \n // Create a priority queue \n PriorityQueue<Pair> pq = new PriorityQueue<Pair>(); \n\n // Pushing all the points \n // in the queue \n for(int i = 0; i < n; i++) \n { \n pq.add(new Pair(x[i], y[i])); \n } \n\n // Print the first K elements \n // of the queue \n for(int i = 0; i < k; i++) \n { \n\n // Remove the top of the queue \n // and store in a temporary pair \n Pair p = pq.poll(); \n\n // Print the first (x) \n // and second (y) of pair \n System.out.println(p.first + \n \" \" + p.second); \n } \n}", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Integer> sbfsForCVTesting(List<Integer> corners,\n\t\t\tStroke stroke, IObjectiveFunction objFunction, double threshold) {\n\n\t\tdouble currError = Double.MAX_VALUE;\n\n\t\tList<Integer> cornerSubset = new ArrayList<Integer>(corners);\n\t\tList<List<Integer>> cornerSubsetList = new ArrayList<List<Integer>>(\n\t\t\t\tcornerSubset.size());\n\t\tList<Double> errorList = new ArrayList<Double>(cornerSubset.size());\n\n\t\tList<List<Integer>> forwardOnSubset = new ArrayList<List<Integer>>();\n\n\t\tint n = -1;\n\n\t\twhile (cornerSubset.size() > 2) {\n\n\t\t\t// Go backward\n\t\t\tList<Object> backResults = prevBestSubset(cornerSubset, stroke,\n\t\t\t\t\tobjFunction);\n\t\t\tList<Integer> backSubset = (List<Integer>) backResults.get(0);\n\t\t\tdouble backError = (Double) backResults.get(1);\n\n\t\t\t// Go forward (if possible)\n\t\t\tint forwardCorner = -1;\n\t\t\tdouble forwardError = Double.MAX_VALUE;\n\t\t\tif (cornerSubset.size() < corners.size() - 1) {\n\t\t\t\tList<Object> forwardResults = nextBestCorner(cornerSubset,\n\t\t\t\t\t\tcorners, stroke, objFunction);\n\t\t\t\tforwardCorner = (Integer) forwardResults.get(0);\n\t\t\t\tforwardError = (Double) forwardResults.get(1);\n\t\t\t}\n\n\t\t\tif (forwardCorner != -1 && forwardError < errorList.get(n - 1)\n\t\t\t\t\t&& !alreadySeenSubset(cornerSubset, forwardOnSubset)) {\n\n\t\t\t\tforwardOnSubset.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\tcornerSubset.add(forwardCorner);\n\t\t\t\tCollections.sort(cornerSubset);\n\n\t\t\t\tcurrError = forwardError;\n\t\t\t\tn--;\n\t\t\t} else {\n\t\t\t\tcornerSubset = backSubset;\n\t\t\t\tcurrError = backError;\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t\tif (cornerSubsetList.size() <= n) {\n\t\t\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.add(currError);\n\t\t\t} else {\n\t\t\t\tcornerSubsetList.set(n, new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.set(n, currError);\n\t\t\t}\n\t\t}\n\n\t\tList<Integer> bestSubset = null;\n\n\t\tdouble d1Errors[] = new double[errorList.size()];\n\t\tfor (int i = 1; i < errorList.size(); i++) {\n\t\t\tdouble deltaError = errorList.get(i) / errorList.get(i - 1);\n\t\t\td1Errors[i] = deltaError;\n\t\t}\n\n\t\tfor (int i = 1; i < d1Errors.length; i++) {\n\t\t\tif (d1Errors[i] > threshold) {\n\t\t\t\tbestSubset = cornerSubsetList.get(i - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (bestSubset == null) {\n\t\t\tbestSubset = cornerSubsetList.get(0);\n\t\t}\n\n\t\tCollections.sort(bestSubset);\n\n\t\treturn bestSubset;\n\t}", "int[][] Naive(int m, Pointd[] points){\n int[][] tours = new int[m][];\n for(int i=0; i<m; i++){\n if(i<points.length%m) tours[i] = new int[points.length/m+1];\n else tours[i] = new int[points.length/m];\n }\n\n //Select the first point, find the next closest point, find the next closest point to that etc\n boolean[] alreadyInTour = new boolean[points.length];\n double minDistance;\n double distance;\n Pointd pointA;\n Pointd pointB;\n int index = 0;\n int n;\n\n for(int k=0; k<m; k++){\n //Each row of tours, first find a node that isn't in a tour\n n = 0;\n while(alreadyInTour[n]) n++;\n pointA = points[n];\n tours[k][0] = n;\n alreadyInTour[n] = true;\n\n int iterate = 0;\n int j=1;\n while(j<tours[k].length){\n if(!alreadyInTour[iterate]){\n minDistance = Double.MAX_VALUE;\n //Find next closest point to pointA\n for(int i=0; i<points.length; i++){\n pointB = points[i];\n if(!alreadyInTour[i]){\n distance = Math.sqrt( Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2) );\n if(distance < minDistance){\n minDistance = distance;\n index = i;\n }\n }\n }\n //System.out.println(index);\n tours[k][j] = index;\n alreadyInTour[index] = true;\n j++;\n }\n iterate++;\n if(iterate >= points.length) iterate = 0;\n }\n }\n for(int i=0; i<tours.length; i++){\n //System.out.println(Arrays.toString(tours[i]));\n }\n return tours;\n }", "IntPair findPacmansCrossRoad(IntPair pacPosition, Direction.directionType pacDirection)\n {\n IntPair delta = Direction.directionToIntPair(pacDirection);\n if (isCorner(pacPosition.item1, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(\n new IntPair(pacPosition.item1 + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n\n if (delta.item1 == 0) {\n for (int y = pacPosition.item2; y >= 0 && y < LoadMap.MAPHEIGHTINTILES; y += delta.item2) {\n if (isCrossroad(pacPosition.item1, y)) {\n return new IntPair(pacPosition.item1, y);\n } else if (isCorner(pacPosition.item1, y)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, y, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(pacPosition.item1 + nd.item1, y + nd.item2), newDirection);\n }\n }\n } else {\n for (int x = pacPosition.item1; x >= 0 && x < LoadMap.MAPWIDTHINTILES; x += delta.item1) {\n if (isCrossroad(x, pacPosition.item2)) {\n return new IntPair(x, pacPosition.item2);\n } else if (isCorner(x, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(x, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(x + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n }\n }\n\n return pacPosition;\n }", "private primitives.Color AdaptiveDiffusedAndGlossyRec(Point3D centerP, double WidthAndHeight, double minCubeSize, Point3D pIntersection,Vector Vright,Vector Vup , Vector normal, int direction, int level , double k, double ktr, List<Point3D> prePoints) throws Exception {\r\n List<Point3D> nextCenterPList = new LinkedList<Point3D>();\r\n List<Point3D> cornersList = new LinkedList<Point3D>();\r\n List<primitives.Color> colorList = new LinkedList<primitives.Color>();\r\n Point3D tempCorner;\r\n GeoPoint gp;\r\n Ray tempRay;\r\n for (int i = -1; i <= 1; i += 2)\r\n for (int j = -1; j <= 1; j += 2) {\r\n tempCorner = centerP.add(Vright.scale(i * WidthAndHeight / 2)).add(Vup.scale(j * WidthAndHeight / 2));\r\n cornersList.add(tempCorner);\r\n if (prePoints == null || !isInList(prePoints, tempCorner)) {\r\n tempRay = new Ray(pIntersection, tempCorner.subtract(pIntersection), normal);\r\n if ((normal.dotProduct(tempRay.getDir()) < 0 && direction == 1) || (normal.dotProduct(tempRay.getDir()) > 0 && direction == -1)) {\r\n nextCenterPList.add(centerP.add(Vright.scale(i * WidthAndHeight / 4)).add(Vup.scale(j * WidthAndHeight / 4)));\r\n gp = findClosestIntersection(tempRay);\r\n if (gp == null)\r\n colorList.add(scene.background);\r\n else {\r\n colorList.add(calcColor(gp, tempRay, level - 1, k));\r\n } \r\n }\r\n \r\n }\r\n }\r\n\r\n if (nextCenterPList == null || nextCenterPList.size() == 0) {\r\n return primitives.Color.BLACK;\r\n }\r\n\r\n\r\n if (WidthAndHeight < minCubeSize * 2) {\r\n primitives.Color sumColor = primitives.Color.BLACK;\r\n for (primitives.Color color : colorList) {\r\n sumColor = sumColor.add(color);\r\n }\r\n return sumColor.reduce(colorList.size());\r\n }\r\n\r\n\r\n boolean isAllEquals = true;\r\n primitives.Color tempColor = colorList.get(0);\r\n for (primitives.Color color : colorList) {\r\n if (!tempColor.isAlmostEquals(color))\r\n isAllEquals = false;\r\n }\r\n if (isAllEquals && colorList.size() > 1)\r\n return tempColor;\r\n\r\n\r\n tempColor = primitives.Color.BLACK;\r\n for (Point3D center : nextCenterPList) {\r\n tempColor = tempColor.add(AdaptiveDiffusedAndGlossyRec(center, WidthAndHeight / 2, minCubeSize, pIntersection, Vright, Vup, normal, direction, level, k, ktr, cornersList));\r\n }\r\n return tempColor.reduce(nextCenterPList.size());\r\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "private boolean inPolygonLineCount(Double[] p, double x, double y) {\n\t\t\t\tint crosscount = 0;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < p.length ; i++) {\n\t\t\t\t\tdouble pix = p[i].x;\n\t\t\t\t\tdouble piy = p[i].y;\n\t\t\t\t\tdouble pi1x = p[(i+1) % p.length].x;\n\t\t\t\t\tdouble pi1y = p[(i+1) % p.length].y;\n\t\t\t\t\tdouble vx = pi1x - pix;\n\t\t\t\t\tdouble vy = pi1y - piy;\n\t\t\t\t\tdouble xint = pix + ((y-piy) / vy) * vx;\n\t\t\t\t\tif (pix > x || pi1x > x) {\n\t\t\t\t\t\tif (piy < y && y <= pi1y && xint > x) {\n\t\t\t\t\t\t\tcrosscount++;\n\t\t\t\t\t\t} else if (pi1y < y && y <= piy && xint > x) {\n\t\t\t\t\t\t\tcrosscount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn crosscount%2 == 1;\n\t\t\t}", "@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, but\n //y coordinate is less (tie break)\n else if(p1.x<p2.x || p1.x==p2.x && p1.y<p2.y)\n return -1;\n else\n return 1;\n }", "private Vector detectCommonSegPt(Vector segVL, Stroke theStroke)\n\t{\n\t\t\n\t\tint len = theStroke.getM_ptList().size();\n\t\tint[] stk_Arr = new int[len];\n\t\tint methodCnt = segVL.size(); //number of methods used to detect seg-points. \n\n\t\t// check if accepable value is set to a reasonable vaule\n\t\tif((Prefs.getAcceptableVotes() >= 1) && (Prefs.getAcceptableVotes() <= methodCnt))\n\t\t{\n\t\t\t// set the method count to acceptable votes.\n\t\t\tmethodCnt = Prefs.getAcceptableVotes();\n\t\t}\n\t\t\n\t\t// TODO: is there a better way to do it? \n\t\t// init the array to all 0\n\t\tfor(int i=0; i<len; i++) stk_Arr[i]=0;\n\t\t\n\t\tint commonWindow = COMMON_SEG_WINDOW;\n\t\tdouble commonDistance = COMMON_SEG_DISTANCE+2;\n\t\t/* commonDistance size of anchor_point, which are end-points of segments.\n\t\t * We want to filter-out seg-points too close together and create 'large'\n\t\t * seg-points to replace them.\n\t\t */\n\t\tVector commonSegPts = new Vector();\n\t\tIterator iter = segVL.iterator();\n\t\t\n\t\t// repeat for each segmentation algorithm\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tVector element = (Vector) iter.next();\n\t\t\tIterator iterator = element.iterator();\n\t\t\tint lastUsedPos=-1;\n\t\t\twhile (iterator.hasNext())\n\t\t\t{\n\t\t\t\tInteger obj = (Integer) iterator.next(); //get the seg point index\n\t\t\t\tint index = obj.intValue();\n\t\t\t\tPixelInfo indexPt = (PixelInfo)theStroke.getM_ptList().get(index);\n\t\t\t\t\n\t\t\t\tint start = index - commonWindow;\n\t\t\t\tint end = index + commonWindow;\n\t\t\t\t// check if i is within the array bounds, if yes, increment the array,\n\t\t\t\t// make sure that one segmentation scheme increments one point only once\n\t\t\t\tstart = (start>lastUsedPos)? start:lastUsedPos+1;\n\t\t\t\tend = (end<len)? end:len-1;\n\t\t\t\tfor(int i=start; i<=end; i++)\n\t\t\t\t{\n\t\t\t\t\tPixelInfo pt = (PixelInfo)theStroke.getM_ptList().get(i);\n\t\t\t\t\tif(indexPt.distance(pt) <= commonDistance)\n\t\t\t\t\t{\n\t\t\t\t\t\tstk_Arr[i]++;\n\t\t\t\t\t\tlastUsedPos = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// find the points with more than methodCnt value\n\t\tint i = 0;\n\t\twhile(i<len)\n\t\t{\n\t\t\t// store the index as the segment point, if condition is met\n\t\t\tif(stk_Arr[i] >= methodCnt)\n\t\t\t{\n\t\t\t\t// find out the streak of continuous pixels\n\t\t\t\tint beginIdx = i;\n\t\t\t\tint endIdx = i;\n\t\t\t\ti++;\n\t\t\t\twhile(i<len)\n\t\t\t\t{\n\t\t\t\t\tif(stk_Arr[i] >= methodCnt)\n\t\t\t\t\t{\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\tendIdx = i-1;\n\t\t\t\t\n\t\t\t\t// find one point from that streak\n\t\t\t\tint segPt = 0;\n\t\t\t\t// check if the segment is very short\n\t\t\t\tif((beginIdx==0)&&(endIdx==(len-1)))\n\t\t\t\t{\n\t\t\t\t\tif(beginIdx==endIdx) commonSegPts.add(new Integer(beginIdx));\n\t\t\t\t\telse\n\t\t\t\t\t{\t// segment is not just one point\n\t\t\t\t\t\tcommonSegPts.add(new Integer(beginIdx));\n\t\t\t\t\t\tcommonSegPts.add(new Integer(endIdx));\n\t\t\t\t\t}\n\t\t\t\t\treturn commonSegPts;\n\t\t\t\t}\n\t\t\t\telse if(beginIdx==0) segPt = 0;\n\t\t\t\telse if(endIdx==(len-1)) segPt = endIdx;\n\t\t\t\telse segPt = (int)Math.floor((beginIdx+endIdx)/2);\n\t\t\t\t\n\t\t\t\t// add segPt to the list of detected segments.\n\t\t\t\tcommonSegPts.add(new Integer(segPt));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn commonSegPts;\n\t}", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Integer> sbfsForCVTraining(List<Integer> corners,\n\t\t\tStroke stroke, IObjectiveFunction objFunction, int knownNumCorners) {\n\n\t\tS_ELBOW_THRESHOLD_LOWER_BOUND = -1.0;\n\t\tS_ELBOW_THRESHOLD_UPPER_BOUND = -1.0;\n\n\t\tdouble currError = Double.MAX_VALUE;\n\n\t\tList<Integer> cornerSubset = new ArrayList<Integer>(corners);\n\t\tList<List<Integer>> cornerSubsetList = new ArrayList<List<Integer>>(\n\t\t\t\tcornerSubset.size());\n\t\tList<Double> errorList = new ArrayList<Double>(cornerSubset.size());\n\n\t\tList<List<Integer>> forwardOnSubset = new ArrayList<List<Integer>>();\n\n\t\tint n = -1;\n\n\t\twhile (cornerSubset.size() > 2) {\n\n\t\t\t// Go backward\n\t\t\tList<Object> backResults = prevBestSubset(cornerSubset, stroke,\n\t\t\t\t\tobjFunction);\n\t\t\tList<Integer> backSubset = (List<Integer>) backResults.get(0);\n\t\t\tdouble backError = (Double) backResults.get(1);\n\n\t\t\t// Go forward (if possible)\n\t\t\tint forwardCorner = -1;\n\t\t\tdouble forwardError = Double.MAX_VALUE;\n\t\t\tif (cornerSubset.size() < corners.size() - 1) {\n\t\t\t\tList<Object> forwardResults = nextBestCorner(cornerSubset,\n\t\t\t\t\t\tcorners, stroke, objFunction);\n\t\t\t\tforwardCorner = (Integer) forwardResults.get(0);\n\t\t\t\tforwardError = (Double) forwardResults.get(1);\n\t\t\t}\n\n\t\t\tif (forwardCorner != -1 && forwardError < errorList.get(n - 1)\n\t\t\t\t\t&& !alreadySeenSubset(cornerSubset, forwardOnSubset)) {\n\n\t\t\t\tforwardOnSubset.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\tcornerSubset.add(forwardCorner);\n\t\t\t\tCollections.sort(cornerSubset);\n\n\t\t\t\tcurrError = forwardError;\n\t\t\t\tn--;\n\t\t\t} else {\n\t\t\t\tcornerSubset = backSubset;\n\t\t\t\tcurrError = backError;\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t\tif (cornerSubsetList.size() <= n) {\n\t\t\t\tcornerSubsetList.add(new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.add(currError);\n\t\t\t} else {\n\t\t\t\tcornerSubsetList.set(n, new ArrayList<Integer>(cornerSubset));\n\t\t\t\terrorList.set(n, currError);\n\t\t\t}\n\t\t}\n\n\t\tList<Integer> bestSubset = null;\n\n\t\tdouble d1Errors[] = new double[errorList.size()];\n\t\tfor (int i = 1; i < errorList.size(); i++) {\n\t\t\tdouble deltaError = errorList.get(i) / errorList.get(i - 1);\n\t\t\td1Errors[i] = deltaError;\n\t\t}\n\n\t\tfor (int i = 1; i < cornerSubsetList.size(); i++) {\n\t\t\tif (cornerSubsetList.get(i).size() == knownNumCorners) {\n\t\t\t\tS_ELBOW_THRESHOLD_LOWER_BOUND = d1Errors[i];\n\t\t\t\tS_ELBOW_THRESHOLD_UPPER_BOUND = d1Errors[i + 1];\n\t\t\t\tbestSubset = cornerSubsetList.get(i);\n\t\t\t}\n\t\t}\n\n\t\tif (bestSubset == null) {\n\t\t\tbestSubset = cornerSubsetList.get(0);\n\t\t}\n\n\t\tCollections.sort(bestSubset);\n\n\t\treturn bestSubset;\n\t}", "private int[] computePolyline(Point left, Point right, int baseline, int lineHeight) {\n \n \t\t\tfinal int WIDTH= 4; // must be even\n \t\t\tfinal int HEIGHT= 2; // can be any number\n //\t\t\tfinal int MINPEEKS= 2; // minimal number of peeks\n \n \t\t\tint peeks= (right.x - left.x) / WIDTH;\n //\t\t\tif (peeks < MINPEEKS) {\n //\t\t\t\tint missing= (MINPEEKS - peeks) * WIDTH;\n //\t\t\t\tleft.x= Math.max(0, left.x - missing/2);\n //\t\t\t\tpeeks= MINPEEKS;\n //\t\t\t}\n \n \t\t\tint leftX= left.x;\n \n \t\t\t// compute (number of point) * 2\n \t\t\tint length= ((2 * peeks) + 1) * 2;\n \t\t\tif (length < 0)\n \t\t\t\treturn new int[0];\n \n \t\t\tint[] coordinates= new int[length];\n \n \t\t\t// cache peeks' y-coordinates\n \t\t\tint top= left.y + Math.min(baseline + 1, lineHeight - HEIGHT - 1);\n \t\t\tint bottom= top + HEIGHT;\n \n \t\t\t// populate array with peek coordinates\n \t\t\tfor (int i= 0; i < peeks; i++) {\n \t\t\t\tint index= 4 * i;\n \t\t\t\tcoordinates[index]= leftX + (WIDTH * i);\n \t\t\t\tcoordinates[index+1]= bottom;\n \t\t\t\tcoordinates[index+2]= coordinates[index] + WIDTH/2;\n \t\t\t\tcoordinates[index+3]= top;\n \t\t\t}\n \n \t\t\t// the last down flank is missing\n\t\t\tcoordinates[length-2]= Math.min(Math.max(0, right.x - 1), left.x + (WIDTH * peeks));\n \t\t\tcoordinates[length-1]= bottom;\n \n \t\t\treturn coordinates;\n \t\t}", "private int gallop_right(PyObject key, PyObject[] aData, int localA, int localN,\n int hint)\n {\n //assert_(n > 0 && hint >= 0 && hint < n);\n localA += hint;\n int lastofs = 0;\n int ofs = 1;\n \n if (iflt(key, aData[localA])) {\n /* key < a[hint] -- gallop left, until\n * a[hint - ofs] <= key < a[hint - lastofs]\n */\n int maxofs = hint + 1; /* data[a] is lowest */\n while (ofs < maxofs) {\n if (iflt(key, aData[localA - ofs])) {\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n } else {\n /* a[hint - ofs] <= key */\n break;\n }\n }\n if (ofs > maxofs)\n ofs = maxofs;\n /* Translate back to positive offsets relative to &a[0]. */\n int k = lastofs;\n lastofs = hint - ofs;\n ofs = hint - k;\n } else {\n /* a[hint] <= key -- gallop right, until\n * a[hint + lastofs] <= key < a[hint + ofs]\n */\n int maxofs = localN - hint; /* data[a + n - 1] is highest */\n while (ofs < maxofs) {\n if (iflt(key, aData[localA + ofs]))\n break;\n /* a[hint + ofs] <= key */\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) /* int overflow */\n ofs = maxofs;\n }\n if (ofs > maxofs)\n ofs = maxofs;\n /* Translate back to offsets relative to &a[0]. */\n lastofs += hint;\n ofs += hint;\n }\n localA -= hint;\n \n //assert_(-1 <= lastofs && lastofs < ofs && ofs <= n);\n \n /* Now a[lastofs] <= key < a[ofs], so key belongs somewhere to the\n * right of lastofs but no farther right than ofs. Do a binary\n * search, with invariant a[lastofs-1] <= key < a[ofs].\n */\n ++lastofs;\n while (lastofs < ofs) {\n int m = lastofs + ((ofs - lastofs) >> 1);\n if (iflt(key, aData[localA + m]))\n ofs = m; // key < data[a + m]\n else\n lastofs = m+1; // data[a + m] <= key\n }\n //assert_(lastofs == ofs); // so data[a + ofs -1] <= key < data[a+ofs]\n return ofs;\n }", "Point3D getRightLowerFrontCorner();", "public int[] isTripleCopy(Region r) {\n\t\tint[] res=new int[2];\n\t\tif (!nearlyEquals(this.sizeX, r.sizeX) && !nearlyEquals(this.sizeY, r.sizeY))\n\t\t\treturn res;\n\t\tRegion newr=this.generateEqual(new Pair(0,0));\n\t\tif (!nearlyEquals(this.sizeY, r.sizeY)) {\n\t\t\tif (this.sizeY<r.sizeY)\n\t\t\t\treturn res;\n\t\t\tnewr.cutRegion(r, 2);\n\t\t\tnewr.cutRegion(r, 3);\n\t\t\t\n\t\t\tint error=0;\n\t\t\tfor (int i=0;i<r.sizeX;i++) {\n\t\t\t\tfor (int j=0;j<r.sizeY;j++) {\n\t\t\t\t\tif (newr.get(i, (newr.sizeY-r.sizeY)/2+j)!=r.get(i, j))\n\t\t\t\t\t\terror++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (error<r.square/10) {\n\t\t\t\tres[0]=2;\n\t\t\t\tres[1]=(newr.sizeY-r.sizeY)/2;\n\t\t\t}\n\t\t\treturn res;\n\t\t} else if (!nearlyEquals(this.sizeX, r.sizeX)) {\n\t\t\tif (this.sizeX<r.sizeX)\n\t\t\t\treturn res;\n\t\t\tnewr.cutRegion(r, 0);\n\t\t\tnewr.cutRegion(r, 1);\n\t\t\t\n\t\t\tint error=0;\n\t\t\tfor (int i=0;i<r.sizeX;i++) {\n\t\t\t\tfor (int j=0;j<r.sizeY;j++) {\n\t\t\t\t\tif (newr.get((newr.sizeX-r.sizeX)/2+i, j)!=r.get(i, j))\n\t\t\t\t\t\terror++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (error<r.square/10) {\n\t\t\t\tres[0]=1;\n\t\t\t\tres[1]=(newr.sizeX-r.sizeX)/2;\n\t\t\t}\n\t\t\treturn res;\n\t\t} else\n\t\t\treturn res;\n\t}", "private void findLargestNNIPointsIndexPair(float ratioInh, float ratioAct) {\n ArrayList<Point> pts0 = new ArrayList<Point>();\n ArrayList<Point> pts1 = new ArrayList<Point>();\n Dimension dim = layoutPanel.getLayoutSize();\n int height = dim.height;\n int width = dim.width;\n int size = height * width;\n int newNListSize;\n if (ratioInh > ratioAct) {\n newNListSize = (int) (size * ratioInh);\n pts0 = cnvIndexList2Points(layoutPanel.activeNList);\n pts1 = cnvIndexList2Points(layoutPanel.inhNList);\n } else {\n newNListSize = (int) (size * ratioAct);\n pts0 = cnvIndexList2Points(layoutPanel.inhNList);\n pts1 = cnvIndexList2Points(layoutPanel.activeNList);\n }\n double len = Math.sqrt((double) size / (double) newNListSize);\n\n ArrayList<Point> union = new ArrayList<Point>(pts0);\n union.addAll(pts1);\n double maxNNI = calcNearestNeighborIndex(union);\n ArrayList<Point> maxPts0 = pts0;\n ArrayList<Point> maxPts1 = pts1;\n for (int xShift = (int) Math.floor(-len / 2); xShift <= Math\n .ceil(len / 2); xShift++) {\n for (int yShift = (int) Math.floor(-len / 2); yShift <= Math\n .ceil(len / 2); yShift++) {\n if (xShift == 0 && yShift == 0) {\n continue;\n }\n int xShift0 = (int) Math.ceil((double) xShift / 2);\n int xShift1 = (int) Math.ceil((double) -xShift / 2);\n int yShift0 = (int) Math.ceil((double) yShift / 2);\n int yShift1 = (int) Math.ceil((double) -yShift / 2);\n // System.out.println(\"xShift = \" + xShift + \", xShift0 = \" +\n // xShift0 + \", xShift1 = \" + xShift1);\n ArrayList<Point> sftPts0 = getShiftedPoints(pts0, xShift0,\n yShift0);\n ArrayList<Point> sftPts1 = getShiftedPoints(pts1, xShift1,\n yShift1);\n union = new ArrayList<Point>(sftPts0);\n union.addAll(sftPts1);\n double nni = calcNearestNeighborIndex(union);\n if (nni > maxNNI) {\n maxNNI = nni;\n maxPts0 = sftPts0;\n maxPts1 = sftPts1;\n }\n }\n }\n\n if (ratioInh > ratioAct) {\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts1);\n } else {\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts1);\n }\n }", "private static boolean isCornerTile(Tile t, List<Integer> uniqueHashes) {\n\t\tint unique = 0;\n\t\tif(uniqueHashes.contains(t.getTHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getRHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getBHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getLHash())){\n\t\t\tunique++;\n\t\t}\n\t\treturn unique == 2;\n\t}", "private static List<int[]> getSkyLineRecur(int[][] buildings, int start, int end) {\n List<int[]> result = new ArrayList<>();\n if (start == end) {\n int[] building = buildings[start];\n result.add(new int[]{building[0], building[2]});\n result.add(new int[]{building[1], 0});\n return result;\n }\n int mid = start + (end - start) / 2;\n List<int[]> leftPoints = getSkyLineRecur(buildings, start, mid);\n List<int[]> rightPoints = getSkyLineRecur(buildings, mid + 1, end);\n int prevLeftHeight = 0, prevRightHeight = 0;\n int prevHeight = 0;\n int l = 0, r = 0;\n for(; l < leftPoints.size() && r < rightPoints.size();) {\n int[] leftPoint = leftPoints.get(l);\n int[] rightPoint = rightPoints.get(r);\n if (leftPoint[0] < rightPoint[0]) {\n int newHeight = Math.max(leftPoint[1], prevRightHeight);\n if (newHeight != prevHeight) {\n result.add(new int[]{leftPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevLeftHeight = leftPoint[1];\n l++;\n } else if (leftPoint[0] > rightPoint[0]) {\n int newHeight = Math.max(rightPoint[1], prevLeftHeight);\n if (newHeight != prevHeight) {\n result.add(new int[]{rightPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevRightHeight = rightPoint[1];\n r++;\n } else {\n int newHeight = Math.max(leftPoint[1], rightPoint[1]);\n if (newHeight != prevHeight) {\n result.add(new int[]{leftPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevLeftHeight = leftPoint[1];\n prevRightHeight = rightPoint[1];\n l++;\n r++;\n }\n }\n List<int[]> rest = (l == leftPoints.size()) ? rightPoints : leftPoints;\n int i = (l == leftPoints.size()) ? r : l;\n for (; i < rest.size(); ++i) {\n result.add(rest.get(i));\n }\n return result;\n }", "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 }", "boolean hasXYPairs();", "public static Point[] closestPair(double[] x, double[]y) throws Exception\r\n {\r\n /*if x-coordinates dont match y-coordinates*/\r\n if(x.length != y.length)\r\n {\r\n System.out.println(\"Can't compute closest pair. Input lengths mismatch!\");\r\n throw new Exception();\r\n }\r\n /*if there is one or less points*/\r\n if(x.length <2 || y.length <2)\r\n {\r\n System.out.println(\"Can't compute closest pair. Fewer inputs!\");\r\n throw new Exception();\r\n }\r\n /*if there are two points*/\r\n if(x.length == 2)\r\n {\r\n Point[] closest = {new Point(x[0],y[0]), new Point(x[1],y[1])};\r\n return closest;\r\n }\r\n /*if there are three points*/\r\n if(x.length == 3)\r\n {\r\n double cx1 = x[0], cy1 = y[0], cx2 = x[1], cy2 = y[1];\r\n //P0 and P1\r\n double cdist = Math.pow((cx1-cx2),2) + Math.pow((cy1-cy2),2); //ignoring square root to reduce computation time\r\n //P1 and P2\r\n double dist = Math.pow((x[0]-x[2]),2) + Math.pow((y[0]-y[2]),2);\r\n if(dist<cdist)\r\n {\r\n cx1 = x[0]; cy1 = y[0]; cx2 = x[2]; cy2 = y[2]; cdist = dist;\r\n }\r\n //P2 and P3\r\n dist = Math.pow((x[1]-x[2]),2) + Math.pow((y[1]-y[2]),2);\r\n if(dist<cdist)\r\n {\r\n cx1 = x[1]; cy1 = y[1]; cx2 = x[2]; cy2 = y[2]; cdist = dist;\r\n }\r\n Point[] closest = {new Point(cx1,cy1), new Point(cx2,cy2)};\r\n return closest;\r\n }\r\n \r\n //sorting based on x values\r\n int i=0;\r\n double z,zz;\r\n while (i < x.length) \r\n \t{\r\n \t\tif (i == 0 || x[i-1] <= x[i])\r\n \t\t\ti++;\r\n \t\telse \r\n \t\t{\r\n \t\t\tz = x[i];\r\n \t\t\tzz = y[i];\r\n \t\t\tx[i] = x[i-1];\r\n \t\t\ty[i] = y[i-1];\r\n \t\t\tx[--i] = z;\r\n \t\t\ty[i] = zz;\r\n \t\t}\r\n \t}\r\n \r\n //finding left closest pair\r\n Point[] closestL = closestPair(Arrays.copyOfRange(x, 0, x.length/2),Arrays.copyOfRange(y, 0, y.length/2));\r\n //finding right closest pair\r\n Point[] closestR = closestPair(Arrays.copyOfRange(x, x.length/2, x.length),Arrays.copyOfRange(y, y.length/2, y.length));\r\n \r\n double distLsq = Math.pow((closestL[0].getX() - closestL[1].getX()),2) + Math.pow((closestL[0].getY() - closestL[1].getY()),2);\r\n double distRsq = Math.pow((closestR[0].getX() - closestR[1].getX()),2) + Math.pow((closestR[0].getY() - closestR[1].getY()),2);\r\n \r\n double minD;\r\n Point[] closest;\r\n if(distLsq<distRsq)\r\n {\r\n minD = distLsq;\r\n closest = closestL;\r\n }\r\n else \r\n {\r\n minD = distRsq;\r\n closest = closestR;\r\n }\r\n \r\n double midLine = ((x[x.length/2-1]) + (x[x.length/2]))/2;\r\n \r\n //System.out.println(Arrays.toString(x));\r\n //System.out.println(\"midline... x = \" + midLine);\r\n \r\n /*looking at points at a horizontal distance of minD from the mid line*/\r\n for(i = 0; i < x.length/2; i++)\r\n {\r\n if(midLine - x[i] < minD)\r\n {\r\n for(int j = x.length/2; j < x.length; j++)\r\n {\r\n /*looking at points at a vertical and horizontal distance of minD from the current point*/\r\n if((x[j] - midLine < minD) && (y[j] - y [i] < minD || y[i] - y [j] < minD))\r\n {\r\n if(Math.pow((x[i] - x[j]),2) + Math.pow((y[i] - y[j]),2) < minD)\r\n {\r\n closest = new Point[]{new Point(x[i],y[i]), new Point(x[j],y[j])};\r\n minD = Math.pow((x[i] - x[j]),2) + Math.pow((y[i] - y[j]),2);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return closest;\r\n \r\n }", "protected static List<Marker> getSortedPointSet(List<Marker> points) {\n\n final Marker lowest = getLowestPoint(points);\n List<Marker> setMarker = new ArrayList<>();\n TreeSet<Marker> set = new TreeSet<Marker>(new Comparator<Marker>() {\n @Override\n public int compare(Marker a, Marker b) {\n\n if(a == b || a.equals(b)) {\n return 0;\n }\n\n // use longs to guard against int-underflow\n double thetaA = Math.atan2(a.getPosition().latitude - lowest.getPosition().latitude, a.getPosition().longitude - lowest.getPosition().longitude);\n double thetaB = Math.atan2(b.getPosition().latitude - lowest.getPosition().latitude, b.getPosition().longitude - lowest.getPosition().longitude);\n\n if(thetaA < thetaB) {\n return -1;\n }\n else if(thetaA > thetaB) {\n return 1;\n }\n else {\n // collinear with the 'lowest' point, let the point closest to it come first\n\n // use longs to guard against int-over/underflow\n double distanceA = Math.sqrt(((lowest.getPosition().longitude - a.getPosition().longitude) * (lowest.getPosition().longitude - a.getPosition().longitude)) +\n ((lowest.getPosition().latitude - a.getPosition().latitude) * ((long)lowest.getPosition().latitude - a.getPosition().latitude)));\n double distanceB = Math.sqrt(((lowest.getPosition().longitude - b.getPosition().longitude) * (lowest.getPosition().longitude - b.getPosition().longitude)) +\n (((long)lowest.getPosition().latitude - b.getPosition().latitude) * ((long)lowest.getPosition().latitude - b.getPosition().latitude)));\n\n if(distanceA < distanceB) {\n return -1;\n }\n else {\n return 1;\n }\n }\n }\n });\n\n set.addAll(points);\n for (Marker mk :\n set) {\n\n setMarker.add(mk);\n }\n return setMarker;\n }", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint t = in.nextInt();\n\t\twhile( t-- > 0 )\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tString s[] = new String[n];\n\t\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\t{\n\t\t\t\ts[i] = in.next();\n\t\t\t}\n\t\t\tArrayList<Point> p = new ArrayList<>();\n\t\t\tfor(int i = 0 ; i < n ; i++ )\n\t\t\t{\n\t\t\t\tfor(int j = 0 ; j < m ; j++)\n\t\t\t\t{\n\t\t\t\t\tif(s[i].charAt(j) == '1')\n\t\t\t\t\t{\n\t\t\t\t\t\tp.add(new Point(i,j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n//\t\t\tfor(int i = 0 ; i < p.size() ;i++ )\n//\t\t\t{\n//\t\t\t\tSystem.out.println(p.get(i).x +\" \" + p.get(i).y );\n//\t\t\t}\n\t\t\t\n\t\t\tHashMap<Integer,Integer> map = new HashMap<>();\n\t\t\tfor(int i = 1 ; i < p.size() ; i++ )\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < p.size() ;i++ )\n\t\t\t{\n\t\t\t\tfor(int j = i + 1 ; j < p.size() ; j++ )\n\t\t\t\t{\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint p1 = p.get(i);\n\t\t\t\t\t\tPoint p2 = p.get(j);\n\t\t\t\t\t\tint d = Math.abs(p1.x - p2.x) + Math.abs(p1.y - p2.y);\n\t\t\t\t\t\tif(!map.containsKey(d))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmap.put(d, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmap.put(d, map.get(d) + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1 ; i <= n + m - 2 ; i++)\n\t\t\t{\n\t\t\t\tif (map.containsKey(i))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(map.get(i)+ \" \");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(0 + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "private static int findMaxPointsFromTopLeftToBottomRight(char[][] matrix, int startingCellX, int startingCellY, int endCellX, int endCellY, int[][] memory) {\n if (!inRange(matrix, startingCellX, startingCellY)) {\n return 0;\n }\n\n/*\n if (visited[startingCellX][startingCellY]) {\n return 0;\n }\n*/\n\n if (memory[startingCellX][startingCellY] != -1) {\n return memory[startingCellX][startingCellY];\n }\n\n char ch = matrix[startingCellX][startingCellY];\n\n //visited[startingCellX][startingCellY] = true;\n\n if (ch == '#') {\n return 0;\n }\n\n if (startingCellX == endCellX && startingCellY == endCellY) {\n if (ch == '#' || ch == '.') {\n return 0;\n }\n return 1; // if '*'\n }\n\n if (ch == '*') {\n\n int maxPointsFromDown = findMaxPointsFromTopLeftToBottomRight(matrix, startingCellX + 1, startingCellY, endCellX, endCellY, memory);\n int maxPointsFromRight = findMaxPointsFromTopLeftToBottomRight(matrix, startingCellX, startingCellY + 1, endCellX, endCellY, memory);\n\n /* if (maxPointsFromRight < maxPointsFromDown) {\n if (inRange(matrix, startingCellX, startingCellY + 1)) {\n visited[startingCellX][startingCellY + 1] = false;\n }\n } else {\n if (inRange(matrix, startingCellX + 1, startingCellY)) {\n visited[startingCellX + 1][startingCellY] = false;\n }\n }\n*/\n int maxPoints = 1 + Math.max(maxPointsFromRight, maxPointsFromDown);\n\n // memoization for top-down approach\n memory[startingCellX][startingCellY] = maxPoints;\n\n return maxPoints;\n\n } else if (ch == '.') {\n\n int maxPointsFromDown = findMaxPointsFromTopLeftToBottomRight(matrix, startingCellX + 1, startingCellY, endCellX, endCellY, memory);\n int maxPointsFromRight = findMaxPointsFromTopLeftToBottomRight(matrix, startingCellX, startingCellY + 1, endCellX, endCellY, memory);\n\n /* if (maxPointsFromRight < maxPointsFromDown) {\n if (inRange(matrix, startingCellX, startingCellY + 1)) {\n visited[startingCellX][startingCellY + 1] = false;\n }\n } else {\n if (inRange(matrix, startingCellX + 1, startingCellY)) {\n visited[startingCellX + 1][startingCellY] = false;\n }\n }*/\n\n int maxPoints = Math.max(maxPointsFromRight, maxPointsFromDown);\n\n // memoization for top-down approach\n memory[startingCellX][startingCellY] = maxPoints;\n\n return maxPoints;\n } else { // if ch == '#'\n\n int maxPoints = 0;\n\n // memoization for top-down approach\n memory[startingCellX][startingCellY] = 0;\n\n return 0;\n }\n }", "@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // There are 6 possible edge orderings at a shared vertex (all\n // of these orderings are circular, i.e. abcd == bcda):\n //\n // (1) a2 b2 b0 a0: A contains B\n // (2) a2 a0 b0 b2: B contains A\n // (3) a2 a0 b2 b0: A and B are disjoint\n // (4) a2 b0 a0 b2: A and B intersect in one wedge\n // (5) a2 b2 a0 b0: A and B intersect in one wedge\n // (6) a2 b0 b2 a0: A and B intersect in two wedges\n //\n // In cases (4-6), the boundaries of A and B cross (i.e. the boundary\n // of A intersects the interior and exterior of B and vice versa).\n // Thus we want to distinguish cases (1), (2-3), and (4-6).\n //\n // Note that the vertices may satisfy more than one of the edge\n // orderings above if two or more vertices are the same. The tests\n // below are written so that we take the most favorable\n // interpretation, i.e. preferring (1) over (2-3) over (4-6). In\n // particular note that if orderedCCW(a,b,c,o) returns true, it may be\n // possible that orderedCCW(c,b,a,o) is also true (if a == b or b == c).\n\n if (orderedCCW(a0, a2, b2, ab1)) {\n // The cases with this vertex ordering are 1, 5, and 6,\n // although case 2 is also possible if a2 == b2.\n if (orderedCCW(b2, b0, a0, ab1)) {\n return 1; // Case 1 (A contains B)\n }\n\n // We are in case 5 or 6, or case 2 if a2 == b2.\n return (a2.equalsPoint(b2)) ? 0 : -1; // Case 2 vs. 5,6.\n }\n // We are in case 2, 3, or 4.\n return orderedCCW(a0, b0, a2, ab1) ? 0 : -1; // Case 2,3 vs. 4.\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 boolean isOverlapping( int[] t0, int[] t1)\n {\n if ( t0.length == 1)\n {\n return t0[ 0] >= t1[ 0]; \n }\n else\n {\n return t0[ 1] >= t1[ 0]; \n }\n }", "@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A not to intersect B (where each loop interior is defined to be\n // its left side), the CCW edge order around ab1 must be a0 b2 b0 a2.\n // Note that it's important to write these conditions as negatives\n // (!OrderedCCW(a,b,c,o) rather than Ordered(c,b,a,o)) to get correct\n // results when two vertices are the same.\n return (orderedCCW(a0, b2, b0, ab1) && orderedCCW(b0, a2, a0, ab1) ? 0 : -1);\n }", "public void frighten(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n Random r = new Random();\r\n int targetX = 25;\r\n int targetY = 25;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos-20) - targetY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos+20) - targetY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n }", "private int gallop_left(PyObject key, PyObject[] localData, int localA, int localN,\n int hint)\n {\n //assert_(n > 0 && hint >= 0 && hint < n);\n localA += hint;\n int ofs = 1;\n int lastofs = 0;\n \n if (iflt(localData[localA], key)) {\n /* a[hint] < key -- gallop right, until\n * a[hint + lastofs] < key <= a[hint + ofs]\n */\n int maxofs = localN - hint; // data[a + n - 1] is highest\n while (ofs < maxofs) {\n if (iflt(localData[localA + ofs], key)) {\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n } else {\n // key < data[a + hint + ofs]\n break;\n }\n }\n if (ofs > maxofs)\n ofs = maxofs;\n // Translate back to offsets relative to a.\n lastofs += hint;\n ofs += hint;\n } else {\n /* key <= a[hint] -- gallop left, until\n * a[hint - ofs] < key <= a[hint - lastofs]\n */\n int maxofs = hint + 1; // data[a] is lowest\n while (ofs < maxofs) {\n if (iflt(localData[localA - ofs], key))\n break;\n // key <= data[a + hint - ofs]\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n }\n if (ofs > maxofs)\n ofs = maxofs;\n // Translate back to offsets relative to a.\n int k = lastofs;\n lastofs = hint - ofs;\n ofs = hint - k;\n }\n localA -= hint;\n //assert_(-1 <= lastofs && lastofs < ofs && ofs <= n);\n /* Now a[lastofs] < key <= a[ofs], so key belongs somewhere to the\n * right of lastofs but no farther right than ofs. Do a binary\n * search, with invariant a[lastofs-1] < key <= a[ofs].\n */\n ++lastofs;\n while (lastofs < ofs) {\n int m = lastofs + ((ofs - lastofs) >> 1);\n if (iflt(localData[localA + m], key))\n lastofs = m+1; // data[a + m] < key\n else\n ofs = m; // key <= data[a + m]\n }\n //assert_(lastofs == ofs); // so data[a + ofs -1] < key <= data[a+ofs]\n return ofs;\n }", "@Override\n public ArrayList<ArrayList<String>> getNeighborhood(ArrayList<String> point, double argument1, double argument2) {\n ArrayList<ArrayList<String>> neighborhood = new ArrayList<>();\n String[] moves = {\"U\", \"D\", \"L\", \"R\"};\n if(point.size() == 0){\n point.add(moves[(int)(Math.random()*4)]);\n }\n\n //kazde rozwiązanie powstaje przez wstawienie każdego ruchu w środku ścieżki\n for(int i = 0; i<point.size(); i++){\n for(String move : moves){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.add(i, move);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n for(String move : moves){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.add(i, move);\n newPath.add(i, move);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n }\n\n //kazde rozwiązanie powstaje przez usunięcie jednego elementu\n for(int i=0; i<point.size(); i++){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.remove(i);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n\n //kazde rozwiązanie powstaje przez swapowanie wszystkich z losowym\n int random = (int)(Math.random()*point.size());\n for(int i=0; i<point.size(); i++){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.set(i, point.get(random));\n newPath.set(random, point.get(i));\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n\n //System.out.println(neighborhood.size());\n\n ArrayList<ArrayList<String>> newNeighborhood = new ArrayList<>();\n for (int i = 0; i < neighborhood.size(); i++) {\n newNeighborhood.add(shortenPath(neighborhood.get(i)));\n }\n\n return newNeighborhood;\n }", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }", "public int infectNeighbours(Map map);", "private static boolean isCornerTile(Tile tile, Map<Border, List<Tile>> borderMap) {\n int n = 0;\n for (Border border : tile.getBorders()) {\n if (borderMap.get(border).size() == 1) {\n n++;\n }\n }\n return n == 2;\n }", "static boolean helper1(Set<String> set, int[] stones, int index, int k) {\n System.out.println(index + \" \" + k);\n for (int i = index + 1; i < stones.length; i++) {\n int gap = stones[i] - stones[index];\n if (gap >= k - 1 && gap <= k + 1) {\n boolean res = helper1(set, stones, i, gap);\n if (res == true) return true;\n } else if (gap > k + 1) break;\n }\n return (index == stones.length - 1);\n }", "private int surroundingMines(int x, int y) {\r\n int startingX, startingY, endingX, endingY;\r\n int count = 0;\r\n \r\n // putting condition for edges\r\n startingX = startEdgeConditon(x);\r\n startingY = startEdgeConditon(y);\r\n endingX = endEdgeConditon(x);\r\n endingY = endEdgeConditon(y);\r\n \r\n // check surrounding cells\r\n for (int i = startingX; i < endingX; i++) {\r\n for (int j = startingY; j < endingY; j++) {\r\n if (mines[i][j]) {\r\n count++;\r\n }\r\n }\r\n }\r\n return count;\r\n }", "public ArrayList<Point> getRightZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xRightCentroid = 0;\n int yRightCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = divider.x; x < w; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //\n//\t\t\t\t\tSystem.out.print(\"1\");\n }\n\n }\n //\t\tSystem.out.println(\"\");\n }\n//\t\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n\n double d_yRightCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xRightCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yRightCentroid = (int) Math.round(new Double(d_yRightCentroid));\n xRightCentroid = (int) Math.round(new Double(d_xRightCentroid));\n\n //xRightCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n //yRightCentroid = (int)Math.round(new Double(y_sum)/new Double(count));\n\n point3 = new Point(xRightCentroid, yRightCentroid);\n\n Point begin = new Point(divider.x, 0);\n Point end = new Point(xRightCentroid, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xRightCentroid;//�\n begin.y = 0;\n\n end.x = w;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n\n status = \"reset\";\n return points;\n }", "public void makeNeighboursOrientationConsistent(ScalarOperator sop,\n\t\t\tFlagMap flags) {\n\t\tStack<Object[]> upcoming = new Stack<Object[]>();\n\t\tTriangleElt3D current = this;\n\t\tdo {\n\t\t\t// set visited status\n\t\t\tflags.add(current);\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tTriangleElt3D nb = current.getNeighbour(i);\n\t\t\t\tif (nb != null && (!flags.check(nb))) {\n\t\t\t\t\tupcoming.push(new Object[] { i, nb, current });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tObject[] nbObj = null;\n\t\t\ttry {\n\t\t\t\tnbObj = upcoming.pop();\n\t\t\t} catch (EmptyStackException ese) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tint index = -1;\n\t\t\tTriangleElt3D nb = null;\n\t\t\tTriangleElt3D current2 = null;\n\t\t\tif (nbObj != null) {\n\t\t\t\tindex = (Integer) nbObj[0];\n\t\t\t\tnb = (TriangleElt3D) nbObj[1];\n\t\t\t\tcurrent2 = (TriangleElt3D) nbObj[2];\n\t\t\t}\n\n\t\t\tif ((nb != null) && (!flags.check(nb))) {\n\t\t\t\t// if not already visited\n\n\t\t\t\t// point indices of common edge (common edge has (in this)\n\t\t\t\t// direction p1->p2)\n\t\t\t\tint p1 = (index + 1) % 3;\n\t\t\t\tint p2 = (index + 2) % 3;\n\n\t\t\t\tint j = 0;\n\n\t\t\t\t// find nb's index j for opposite point of common edge\n\t\t\t\tfor (j = 0; j < 3; j++)\n\t\t\t\t\tif (!(current2.getPoint(p1).isEqual(nb.getPoint(j), sop) || current2\n\t\t\t\t\t\t\t.getPoint(p2).isEqual(nb.getPoint(j), sop)))\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t// nb's index for first point of common edge\n\t\t\t\tj = (j + 1) % 3;\n\n\t\t\t\tif (current2.getPoint(p1).isEqual(nb.getPoint(j), sop))\n\t\t\t\t\tnb.invertOrientation();\n\n\t\t\t\t// orientNeighbours for nb\n\t\t\t}\n\t\t\tcurrent = nb;\n\n\t\t} while (upcoming.size() != 0 || current != null);\n\n\t}", "private boolean overlaps(int x1, int z1, int x2, int z2, int radius)\r\n {\r\n int var6 = x1 - x2;\r\n int var7 = z1 - z2;\r\n return var6 >= -radius && var6 <= radius ? var7 >= -radius && var7 <= radius : false;\r\n }", "private Polygon2D findDistAtCorner(Point2D currIn, Point2D currOut, Point2D innerEndpoint1, Point2D innerEndpoint2,\n \t\tPoint2D outerEndpoint1, Point2D outerEndPoint2, double step, double lenRate, List<Voter> voters, boolean reverse, int repPerDistrict, int party, boolean gmable, double popRate) {\n \t\tdouble efgp;\n\t\tdouble max_efgp = 0;\n\t\tPolygon2D result = null;\n \t\tdouble dir_step = step;\n\t\tif(reverse)\n\t\t\tdir_step = -dir_step;\n\t\tfor(double innerX = innerEndpoint1.getX(); ; innerX += dir_step) {\n\t\t\tif(reverse && innerX < innerEndpoint2.getX())\n\t\t\t\tbreak;\n\t\t\tif(!reverse && innerX > innerEndpoint2.getX())\n\t\t\t\tbreak;\n\t\t\tdouble innerY = findYByX(innerX, innerEndpoint1, innerEndpoint2);\n\t\t\tdouble outerX = lenRate * (innerX - innerEndpoint1.getX()) + outerEndpoint1.getX();\n\t\t\tdouble outerY = findYByX(outerX, outerEndpoint1, outerEndPoint2);\n\t\t\tPolygon2D polygon = new Polygon2D();\n\t\t\tpolygon.append(innerEndpoint1);\n\t\t\tpolygon.append(currIn);\n\t\t\tpolygon.append(currOut);\n\t\t\tpolygon.append(outerEndpoint1);\n\t\t\tpolygon.append(outerX, outerY);\n\t\t\tpolygon.append(innerX, innerY);\n\t\t\tint p = Run.countInclusion(voters, polygon);\n\t\t\tif(gmable) {\n\t\t\t\tif(p >= 0.9 * avgVotersPerDistrict && p <= 1.1 * avgVotersPerDistrict) {\n\t\t\t\t\tefgp = efficiencyGap(voters, polygon, repPerDistrict, party);\n\t\t\t\t\tif(efgp > max_efgp) {\n\t\t\t\t\t\tmax_efgp = efgp;\n\t\t\t\t\t\tresult = polygon;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(p >= 1.1*(double)(avgVotersPerDistrict))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(p >= (1.0 - th)*popRate && p <= (1.0 + th)*popRate) {\n\t\t\t\t\treturn polygon;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private boolean checkConvexity()\r\n \t{\r\n\t\tswap(0, findLowest());\r\n\t\tArrays.sort(v, new Comparator() {\r\n\t\t\tpublic int compare(Object a, Object b)\r\n\t\t\t{\r\n\t\t\t\tint as = area_sign(v[0], (Pointd)a, (Pointd)b);\r\n\t\t\t\tif ( as > 0)\t\t/* left turn */\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if (as < 0)\t/* right turn */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse \t\t\t\t\t/* collinear */\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble x = Math.abs(((Pointd)a).getx() - v[0].getx()) - Math.abs(((Pointd)b).getx() - v[0].getx());\r\n\t\t\t\t\tdouble y = Math.abs(((Pointd)a).gety() - v[0].gety()) - Math.abs(((Pointd)b).gety() - v[0].gety());\r\n\t\t\t\t\tif ( (x < 0) || (y < 0) )\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\telse if ( (x > 0) || (y > 0) )\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\telse\t\t// points are coincident\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n \t\tfor (int i=0; i < nv; i++)\r\n \t\t{\r\n \t\t\ti2 = next(i, nv);\r\n \t\t\ti3 = next(i2, nv);\r\n \t\t\tif ( !lefton(\tv[i], v[i2], v[i3]) )\r\n \t\t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n\t}", "@Test\n public void basicTest() {\n Point myPoint;\n\n// myPoint = pointSet.nearest(2, 2);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(2, -2);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(1, 4);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(3, -100);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(0, 0);\n// System.out.println(myPoint.toString());\n//\n// myPoint = kdPointSet.nearest(2, 2); //THIS ONE DOES NOT MATCH NAIVE!\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(2, -2);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(1, 4);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(3, -100);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(0, 0);\n// System.out.println(myPoint.toString());\n\n\n\n\n\n\n }", "boolean _ptPoly(PVector pt, PVector[] poly) { \n // count edges crossed by the line connecting the target point to \"the outside\"\n int count = 0;\n \n for(int i = 0; i < poly.length; i++) {\n PVector a = poly[i], b = poly[(i+1)%poly.length]; // edge points\n if(_clockwise(a, pt, out) != _clockwise(b, pt, out) && // a & b on different sides of line\n _clockwise(a, b, pt) != _clockwise(a, b, out)) { // tgt & out on diff sides of edge\n count++;\n }\n }\n \n return count % 2 == 1;\n // a convex poly would be crossed on one edge;\n // concave could be crossed on any odd # of edges\n }", "ArrayList<OrderedPair<Curve, Integer>>\n tryFindIntersections(\n XY mid_point,\n HashSet<Curve> all_curves,\n HashSet<XY> curve_joints,\n double diameter, double tol,\n Random random)\n {\n for (int i = 0; i < 25; i++)\n {\n double rand_ang = random.nextDouble() * Math.PI * 2;\n double dx = Math.sin(rand_ang);\n double dy = Math.cos(rand_ang);\n\n XY direction = new XY(dx, dy);\n\n XY start = mid_point.minus(direction.multiply(diameter));\n\n LineCurve lc = new LineCurve(start, direction, 2 * diameter);\n\n // must use a smaller tolerance here as our curve splitting can\n // give us curves < 2 * tol long, and if we are on the midpoint of one of those\n // we can't cleat both ends by tol...\n if (!lineClearsPoints(lc, curve_joints, tol / 10))\n continue;\n\n ArrayList<OrderedPair<Curve, Integer>> ret =\n tryFindCurveIntersections(lc, all_curves);\n\n if (ret != null)\n {\n return ret;\n }\n }\n\n return null;\n }", "public HashSet<Point> getValidMoves(){\n HashSet<Point> set = new HashSet<Point>();\n if(this.validMove(this.x() + 2, this.y() + 1)){\n set.add(new Point(this.x() + 2, this.y() + 1));\n }\n if(this.validMove(this.x() + 2, this.y() - 1)){\n set.add(new Point(this.x() + 2, this.y() - 1));\n }\n if(this.validMove(this.x() - 2, this.y() + 1)){\n set.add(new Point(this.x() - 2, this.y() + 1));\n }\n if(this.validMove(this.x() - 2, this.y() - 1)){\n set.add(new Point(this.x() - 2, this.y() - 1));\n }\n if(this.validMove(this.x() + 1, this.y() + 2)){\n set.add(new Point(this.x() + 1, this.y() + 2));\n }\n if(this.validMove(this.x() + 1, this.y() - 2)){\n set.add(new Point(this.x() + 1, this.y() - 2));\n }\n if(this.validMove(this.x() - 1, this.y() + 2)){\n set.add(new Point(this.x() - 1, this.y() + 2));\n }\n if(this.validMove(this.x() - 1, this.y() - 2)){\n set.add(new Point(this.x() - 1, this.y() - 2));\n }\n return set;\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }", "private boolean overlaps(Point2D p0, Point2D p1)\n {\n return Math.abs(p0.getX() - p1.getX()) < 0.001 && Math.abs(p0.getY() - p1.getY()) < 0.001;\n }", "private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }", "public boolean overlaps(CompositeKey s) {\n\t if (this.key2 == 0 && s.getKey2() == 0) {\n\t\t\treturn true;\n\t\t}\n\t\tif (this.key2 == 0) {\n\t\t\treturn (this.key1 < s.getKey2());\n\t\t}\n\t\tif (s.getKey2() == 0) {\n\t\t\treturn !(this.key2 <= s.getKey1());\n\t\t}\n\treturn !(this.key2 <= s.getKey1() || this.key1 >= s.getKey2());\n}", "public Collection<IntPair> findEmptyNeighbors(int x, int y);", "static boolean rectanglesOverlap(Rectangle r1, Rectangle r2){\n List<int[]> pointsOfInterest = new ArrayList<int[]>();\n for (int[] i : r1.getPoints())\n for (int[] j : r2.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r2.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n\n // Check if any points in rectangle 2 fall in 1\n //List<int[]> pointsOfInterest = new ArrayList<int[]>();\n pointsOfInterest.clear();\n for (int[] i : r2.getPoints())\n for (int[] j : r1.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r1.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n \n return false;\n }", "@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }", "public void convexHull(int n) {\n // There must be at least 3 points\n if (n < 3) return;\n\n // Initialize Result\n Vector<Marker> hull = new Vector<>();\n\n // Find the leftmost point\n int l = 0;\n for (int i = 1; i < n; i++)\n if (markers.get(i).getPosition().longitude < markers.get(l).getPosition().longitude)\n l = i;\n\n // Start from leftmost point, keep moving\n // counterclockwise until reach the start point\n // again. This loop runs O(h) times where h is\n // number of points in result or output.\n int p = l, q;\n do {\n // Add current point to result\n hull.add(markers.get(p));\n\n // Search for a point 'q' such that\n // orientation(p, x, q) is counterclockwise\n // for all points 'x'. The idea is to keep\n // track of last visited most counterclock-\n // wise point in q. If any point 'i' is more\n // counterclock-wise than q, then update q.\n q = (p + 1) % n;\n\n for (int i = 0; i < n; i++) {\n // If i is more counterclockwise than\n // current q, then update q\n if (orientation(p, i, q)\n == 2)\n q = i;\n }\n\n // Now q is the most counterclockwise with\n // respect to p. Set p as q for next iteration,\n // so that q is added to result 'hull'\n p = q;\n\n } while (p != l); // While we don't come to first\n\n drawer = new ArrayList<>(hull);\n }", "private boolean arePointsRepeated(Point[] points) {\n for (int i = 0; i < points.length; i++) {\r\n for (int j = i + 1; j < points.length; j++) {\r\n if (points[i].compareTo(points[j]) == 0)\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private List<Object> nextBestCorner(List<Integer> cornerSubset,\n\t\t\tList<Integer> corners, Stroke stroke, IObjectiveFunction objFunction) {\n\n\t\tList<Double> errorValues = new ArrayList<Double>();\n\t\tCollections.sort(cornerSubset);\n\n\t\tfor (int i = 0; i < corners.size(); i++) {\n\t\t\tInteger currCorner = corners.get(i);\n\n\t\t\tif (!cornerSubset.contains(currCorner)) {\n\n\t\t\t\tList<Integer> tempSubset = new ArrayList<Integer>(cornerSubset);\n\t\t\t\ttempSubset.add(currCorner);\n\n\t\t\t\tdouble value = objFunction.solve(tempSubset, stroke);\n\t\t\t\terrorValues.add(value);\n\t\t\t} else {\n\t\t\t\terrorValues.add(Double.MAX_VALUE);\n\t\t\t}\n\t\t}\n\n\t\tDouble minError = Collections.min(errorValues);\n\t\tint index = errorValues.indexOf(minError);\n\t\tint bestCorner = corners.get(index);\n\n\t\tList<Object> returnList = new ArrayList<Object>();\n\t\treturnList.add(bestCorner);\n\t\treturnList.add(minError);\n\n\t\treturn returnList;\n\t}", "private ArrayList<Point> calculateMidPoints() {\n ArrayList<Point> midPoints = new ArrayList<>();\n boolean isFirst = true; // Holds weather or not both points have been found yet.\n\n // Iterate over every point in the left and right lanes.\n for (int idx = 0; idx < leftLine.getLanePoints().size(); idx++) {\n Point leftPoint = leftLine.getLanePoints().get(idx); // The left point at the element idx.\n Point rightPoint = rightLine.getLanePoints().get(idx); // The right point at the element idx.\n int yValue = getCameraHeight() - (START_SEARCH + idx); // The y value of the left and right points.\n\n // If neither line is found, add a point at cameraWidth / 2, yValue\n if (leftPoint.isEmpty() && rightPoint.isEmpty()) {\n if (USE_NO_LANE_DETECTION) {\n midPoints.add(new Point(getCameraWidth() / 2, yValue));\n }\n // If Ony the right Point is found, add a point at the x rightPoint - road width / 2.\n } else if (leftPoint.isEmpty()) {\n midPoints.add(new Point(rightPoint.getX() - (calculateRoadWidth(yValue) / 2), yValue));\n // If Only the left Point is found, add a point at the x leftPoint + road width / 2.\n } else if (rightPoint.isEmpty()) {\n midPoints.add(new Point(leftPoint.getX() + (calculateRoadWidth(yValue) / 2), yValue));\n // If both lines are found, average the two lines.\n } else {\n midPoints.add(new Point((int) Math.round((leftPoint.getX() + rightPoint.getX()) / 2.0), yValue));\n // Set x1 and y1 to be the first Points to have lines on both sides.\n if (isFirst) {\n calcSlopePoint1.setX(Math.abs(leftPoint.getX() - rightPoint.getX()));\n calcSlopePoint1.setY(yValue);\n isFirst = false;\n // set x2 and y2 to be the last points to have lines on both sides.\n } else {\n calcSlopePoint2.setX(Math.abs(leftPoint.getX() - rightPoint.getX()));\n calcSlopePoint2.setY(yValue);\n }\n }\n }\n\n if (isReliable(calcSlopePoint1, calcSlopePoint2)) {\n slope = calculateRoadSlope(calcSlopePoint1, calcSlopePoint2);\n }\n return midPoints;\n }" ]
[ "0.6317035", "0.57946783", "0.5772809", "0.5762414", "0.56539434", "0.5650106", "0.55551934", "0.55550045", "0.5552069", "0.55310464", "0.54901505", "0.54334813", "0.54237366", "0.5413989", "0.54024744", "0.539359", "0.5369403", "0.53651327", "0.53629047", "0.5355555", "0.5329327", "0.5320772", "0.5313101", "0.5310444", "0.5293434", "0.52921504", "0.5288836", "0.5285867", "0.52840215", "0.52667874", "0.5266432", "0.5259503", "0.52584714", "0.5244879", "0.52418643", "0.5240563", "0.5239207", "0.52349687", "0.5229784", "0.5228992", "0.5227834", "0.5219928", "0.5205621", "0.5205369", "0.5203949", "0.5193211", "0.51916987", "0.5176482", "0.5173734", "0.51721394", "0.51633", "0.5161747", "0.51500195", "0.5149323", "0.5148891", "0.5148377", "0.51433706", "0.51366055", "0.5135933", "0.5127251", "0.51210594", "0.5119828", "0.51160526", "0.50881237", "0.5087219", "0.5085452", "0.50813586", "0.50785804", "0.5074892", "0.5062029", "0.5061734", "0.50579655", "0.5056297", "0.5052318", "0.50507", "0.5049984", "0.504778", "0.5046871", "0.5041714", "0.50329274", "0.50280935", "0.50247616", "0.5023155", "0.50215816", "0.5018944", "0.50120056", "0.5011195", "0.50104105", "0.5009081", "0.50081885", "0.5007416", "0.5003787", "0.5003265", "0.50005454", "0.49994028", "0.49981734", "0.49956316", "0.49955833", "0.49892205", "0.49747115", "0.49687248" ]
0.0
-1
Divide and conquer solution. O(nlogn) time and O(n) space Faster than BST solution, but harder to come up with.
private static List<int[]> getSkyLineRecur(int[][] buildings, int start, int end) { List<int[]> result = new ArrayList<>(); if (start == end) { int[] building = buildings[start]; result.add(new int[]{building[0], building[2]}); result.add(new int[]{building[1], 0}); return result; } int mid = start + (end - start) / 2; List<int[]> leftPoints = getSkyLineRecur(buildings, start, mid); List<int[]> rightPoints = getSkyLineRecur(buildings, mid + 1, end); int prevLeftHeight = 0, prevRightHeight = 0; int prevHeight = 0; int l = 0, r = 0; for(; l < leftPoints.size() && r < rightPoints.size();) { int[] leftPoint = leftPoints.get(l); int[] rightPoint = rightPoints.get(r); if (leftPoint[0] < rightPoint[0]) { int newHeight = Math.max(leftPoint[1], prevRightHeight); if (newHeight != prevHeight) { result.add(new int[]{leftPoint[0], newHeight}); prevHeight = newHeight; } prevLeftHeight = leftPoint[1]; l++; } else if (leftPoint[0] > rightPoint[0]) { int newHeight = Math.max(rightPoint[1], prevLeftHeight); if (newHeight != prevHeight) { result.add(new int[]{rightPoint[0], newHeight}); prevHeight = newHeight; } prevRightHeight = rightPoint[1]; r++; } else { int newHeight = Math.max(leftPoint[1], rightPoint[1]); if (newHeight != prevHeight) { result.add(new int[]{leftPoint[0], newHeight}); prevHeight = newHeight; } prevLeftHeight = leftPoint[1]; prevRightHeight = rightPoint[1]; l++; r++; } } List<int[]> rest = (l == leftPoints.size()) ? rightPoints : leftPoints; int i = (l == leftPoints.size()) ? r : l; for (; i < rest.size(); ++i) { result.add(rest.get(i)); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "public static int[][] optimalBST2(double[] p,double[] q, int num){\n double[][] e = new double[num+2][num+2];//子树期望代价\n double[][] w = new double[num+2][num+2];//子树总概率\n //why e and w is two bigger than num?\n //because when i==j, e[i][i-1] + e[i+1][j] + w[i][j];\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n //init--初始化\n for(int i=1; i<num+2; i++){\n e[i][i-1] = q[i-1];\n w[i][i-1] = q[i-1];\n }\n\n for(int d = 0; d<num; d++){\n //插入个数 : 0 - num-1, 从0开始\n for(int i=1; i<=num-d; i++){\n //起始下标 : 1 - num, 从1开始\n int j = i + d;\n e[i][j] = 9999;\n w[i][j] = w[i][j-1] + p[j] + q[j];//\n\n //because of root[i][j-1] <= root[i][j] <= root[i+1][j]\n //so why?\n //\n //进行优化!!!\n if(i == j){\n root[i][j] = i;\n e[i][j] = e[i][i-1] + e[i+1][i] + w[i][i];\n }else{\n for(int k=root[i][j-1]; k<=root[i+1][j]; k++){\n //中间下标\n double temp = e[i][k-1] + e[k+1][j] + w[i][j];\n if(temp < e[i][j]){\n e[i][j] = temp;\n //找到小的,记录下来\n root[i][j] = k;\n }\n\n }\n }\n }\n }\n return root;\n }", "public static int[][] optimalBST(double[] p,double[] q, int num){\n double[][] e = new double[num+2][num+2];//子树期望代价\n double[][] w = new double[num+2][num+2];//子树总概率\n //why e and w is two bigger than num?\n //because when i==j, e[i][i-1] + e[i+1][j] + w[i][j];\n //when i = 1 or j = num, so e[1][0]、e[num+1][num]\n //here w can use the size of num+1, but in order not to so much complexity in init to judge i\n //so add a bigger w is look good!\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n //init--初始化\n for(int i=1; i<num+2; i++){\n e[i][i-1] = q[i-1];\n w[i][i-1] = q[i-1];\n }\n\n for(int d = 0; d<num; d++){\n //插入个数 : 0 - num-1, 从0开始\n for(int i=1; i<=num-d; i++){\n //起始下标 : 1 - num, 从1开始\n int j = i + d;\n e[i][j] = 9999;\n w[i][j] = w[i][j-1] + p[j] + q[j];//\n for(int k=i; k<=j; k++){\n //中间下标\n double temp = e[i][k-1] + e[k+1][j] + w[i][j];\n if(temp < e[i][j]){\n e[i][j] = temp;\n //找到小的,记录下来\n System.out.println(\"i--> \"+i+\", j--> \"+j);\n root[i][j] = k;\n }\n }\n }\n }\n return root;\n }", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n TreeNode cur = root;\n while (true) {\n if (cur.val > p.val && cur.val > q.val) cur = cur.left;\n else if (cur.val < p.val && cur.val < q.val) cur = cur.right;\n else return cur;\n }\n}", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "void BFS(int s);", "public TreeNode sortedArrayToBST2(int[] nums) {\n \n int len = nums.length;\n if ( len == 0 ) { return null; }\n \n TreeNode head = new TreeNode(0); \t// 0 as a placeholder\n \n Deque<TreeNode> nodeStack = new LinkedList<TreeNode>() {{ push(head); }};\n Deque<Integer> leftIndexStack = new LinkedList<Integer>() {{ push(0); }};\n Deque<Integer> rightIndexStack = new LinkedList<Integer>() {{ push(len-1); }};\n \n\t\twhile (!nodeStack.isEmpty()) {\n\t\t\tTreeNode currNode = nodeStack.pop();\n\t\t\t\n\t\t\tint l = leftIndexStack.pop();\n\t\t\tint r = rightIndexStack.pop();\t\t// right index\n\t\t\tint mid = l + (r - l) / 2; \t\t\t// avoid overflow\n\t\t\tcurrNode.val = nums[mid];\t\t\t// build root node\n\t\t\t\n\t\t\tif (l <= mid - 1) {\t\t// 左子树还有节点需要添加\n\t\t\t\tcurrNode.left = new TreeNode(0);\t\t// 新建一个节点并进入node stack,值后面添加\n\t\t\t\tnodeStack.push(currNode.left);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(l);\t\t\t\t// 添加一对索引(索引都是成双成对添加),缩小范围到左边\n\t\t\t\trightIndexStack.push(mid - 1);\n\t\t\t}\n\t\t\tif (mid + 1 <= r) {\t\t// right index is valid\n\t\t\t\tcurrNode.right = new TreeNode(0);\n\t\t\t\tnodeStack.push(currNode.right);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(mid + 1);\n\t\t\t\trightIndexStack.push(r);\n\t\t\t}\n\t\t}\n return head;\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root.val < p.val && root.val < q.val) return lowestCommonAncestor(root.right, p, q);\n else if (root.val > p.val && root.val > q.val) return lowestCommonAncestor(root.left, p, q);\n return root;\n}", "public Vector<K> BFS(){\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tVector v= new Vector();\n\t\tif (root == null)\n\t\t\t{return v;}\n\t\tq.add(root);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode n = (Node) q.remove();\n\t\t\tv.add(n.key);\n\t\t\tif (n.left != null){\n\t\t\t\tq.add(n.left);\n\t\t\t}\n\t\t\tif (n.right != null){\n\t\t\t\tq.add(n.right);\n\t\t\t}\n\t\t}\n\t\treturn v;\n\t}", "private TreeNode cBST(int begin,int end){\n\n if(begin >= end){ return null;}\n\n int index = (begin + end)/2;\n\n //Left-Visit\n TreeNode l = cBST(begin,index);\n\n //Middle-Visit\n TreeNode root = new TreeNode(cur.val);\n root.left = l;\n cur = cur.next;\n\n //Right-Visit\n TreeNode r = cBST(index+1,end);\n\n //Post-Process and return values\n root.right = r;\n return root;\n }", "private static int buildSegmentTree(int[] arr, int[] segtree, int beg, int end, int treeIndex) {\n if (beg == end) {\n segtree[treeIndex] = arr[beg];\n } else {\n // recursive case\n int mid = (beg + end) / 2;\n int leftPart = buildSegmentTree(arr, segtree, beg, mid, 2 * treeIndex);\n int rightPart = buildSegmentTree(arr, segtree, mid + 1, end, 2 * treeIndex + 1);\n segtree[treeIndex] = Math.min(leftPart, rightPart);\n }\n return segtree[treeIndex];\n }", "public TreeNode helper(int in_left, int in_right)\n {\n if (in_left == in_right) return null;\n\n // pick up pre_idx element as a root\n int root_val = preorder[pre_idx];\n TreeNode root = new TreeNode(root_val);\n\n // root splits inorder list\n // into left and right subtrees\n int index = idx_map.get(root_val);\n\n // recursion\n pre_idx++;\n // build left subtree\n root.left = helper(in_left, index);\n // build right subtree\n root.right = helper(index + 1, in_right);\n return root;\n }", "public TreeNode helper(int[] preorder, int[] inorder, int preorderIndex, int inorderS, int inorderE) {\n if (preorderIndex == preorder.length) { return null; }\n if (inorderS > inorderE) { return null; }\n\n //general case: search for element at the index of the preorder in the inorder array. partition\n //the array from before the target element and after the target element in the inorder element\n int target = preorder[preorderIndex];\n int targetIndex = -1;\n\n for (int i = inorderS; i <= inorderE; i++) {\n if (inorder[i] == target) { targetIndex = i; break; }\n }\n\n TreeNode root = new TreeNode();\n root.data = target;\n\n //now that we have the target of the root. we can partition the inorder array into two pieces.\n //partition 1: start --> targetIndex - 1.\n //partition 2: targetIndex + 1 --> end\n //for the left side of the tree we do a recursive call to the next index in the preorder sequence\n root.left = helper(preorder, inorder, preorderIndex + 1, inorderS, targetIndex - 1);\n\n //for the right partition we need to skip all the preorder elements that correspond to the left side of the\n //binary tree that is rooted at this level of recursion. our preorderIndex is currently at our target\n //element for current root. We want to skip all elements from start to target. This is done by finding\n //the distance targetIndex - start + 1\n\n //we\n\n int skipForPreorder = (targetIndex - inorderS) + 1;\n root.right = helper(preorder, inorder, preorderIndex + skipForPreorder, targetIndex + 1, inorderE);\n\n return root;\n\n //worst case complexity of this is O(n^2). Consider the case where we have an entirely skewed tree. The\n //partition only sheds one element off and searching for root element in inorder data takes O(n) + O(n -1) +\n //O(n-2) .. O(1). This sums to O(n^2). Space is O(h). We recurse down to the height of a tree.\n\n //we can reduce the time complexity by initially creating a hashmap of mappings of element to index.\n\n //this reduces the overall running time to O(n).\n }", "private int recursiveBinarySearchSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n if (root.left != null) { // 判断左子节点是否为空\n // 若左子节点不为空,计算左子树的节点数\n int leftCount = countNodes(root.left);\n if (leftCount >= k) { // 说明第k小的数一定在当前的左子树\n return recursiveBinarySearchSol(root.left, k);\n } else { // 说明第k小的数不再当前左子树,减去左子树的节点数量\n k -= leftCount;\n }\n }\n\n if (k == 1) { // 说明第k小的数就是当前根节点\n return root.val;\n } else { // 否则减去当前根节点的数量(1)\n k -= 1;\n }\n\n // 此时说明第k小的数一定在当前右子树\n return recursiveBinarySearchSol(root.right, k);\n }", "public TreeNode solution(TreeNode t1, TreeNode t2) {\n if(t2 == null){\n return t1;\n }\n if(t1 == null){\n return t2;\n }\n TreeNode root = new TreeNode(t1.val+t2.val);\n Peer peer = new Peer(t1,t2);\n List<TreeNode> quene = new LinkedList<>();\n quene.add(root);\n List<Peer> peers = new LinkedList();\n peers.add(peer);\n while(peers.size()>0){\n Peer cur = peers.get(0);\n TreeNode curNode = quene.get(0);\n if(cur.t1.left == null){\n curNode.left = cur.t2.left;\n }else if(cur.t2.left == null){\n curNode.left = cur.t1.left;\n }else{\n TreeNode left = new TreeNode(cur.t1.left.val + cur.t2.left.val);\n curNode.left = left;\n quene.add(left);\n peers.add(new Peer(cur.t1.left,cur.t2.left));\n }\n\n if(cur.t1.right == null){\n curNode.right = cur.t2.right;\n }else if(cur.t2.right == null){\n curNode.right = cur.t1.right;\n }else{\n TreeNode right = new TreeNode(cur.t1.right.val + cur.t2.right.val);\n curNode.right = right;\n quene.add(right);\n peers.add(new Peer(cur.t1.right,cur.t2.right));\n }\n peers.remove(0);\n quene.remove(0);\n }\n return root;\n }", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public int solution(Tree T) {\n if(T == null)\n {\n return 0;\n\n }\n //Check if the tree has no children\n if(T.l == null && T.r == null)\n {\n return 0;\n }\n\n\n AtomicInteger leftSide = new AtomicInteger(0);\n AtomicInteger rightSide = new AtomicInteger(0);\n\n if(T.l != null) traverseTree(T.l, 0, true, leftSide);\n if(T.r != null) traverseTree(T.r, 0, false, rightSide);\n\n\n if(leftSide.intValue() > rightSide.intValue())\n {\n return leftSide.intValue();\n }\n else{\n return rightSide.intValue();\n }\n\n }", "private static int breadthFirstSearch(Vertex start) throws Queue.UnderflowException, Queue.EmptyException {\n boolean visited[] = new boolean[48];\n //Keep a queue of vertecies and a queue of the depth of the verticies - they will be added to and poped from identically\n ListQueue<Vertex> queue = new ListQueue<Vertex>();\n ListQueue<Integer> numQueue = new ListQueue<Integer>();\n //Set the starting node as visited\n visited[start.index()] = true;\n queue.enqueue(start);\n numQueue.enqueue(new Integer(1));\n\n //Keep last\n int last = -1;\n //While the queue isnt empty\n while (!queue.isEmpty()) {\n //Pop off the top from both queues and mark as visited\n start = queue.dequeue();\n int current = numQueue.dequeue();\n visited[start.index] = true;\n //For all neigbors\n for (Vertex v : start.neighbors) {\n //If we havent visited it make sure to visit it\n if (visited[v.index()] == false) {\n //As we keep adding new nodes to visit keep track of the depth\n queue.enqueue(v);\n numQueue.enqueue(current + 1);\n }\n }\n //Keep track of the most recent depth before we pop it off (queue will be empty when we exit)\n last = current;\n }\n //Return the max of the depth\n return last;\n }", "public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }", "private void BinarySearch(Node node, int index) {\n Node left, right;\n left = node.left;\n right = node.right;\n\n int leftIndex = (2 * index) + 1;\n int rightIndex = (2 * index) + 2;\n if (left != null) {\n ArrayTree[leftIndex] = left.key;\n BinarySearch(left, leftIndex);\n lastIndex = Math.max(leftIndex, lastIndex);\n } else {\n if (leftIndex < ArrayTree.length - 1) {\n ArrayTree[leftIndex] = 0;\n }\n }\n\n if (right != null) {\n ArrayTree[rightIndex] = right.key;\n BinarySearch(right, rightIndex);\n lastIndex = Math.max(rightIndex, lastIndex);\n } else {\n if (rightIndex < ArrayTree.length - 1) {\n ArrayTree[rightIndex] = 0;\n }\n }\n }", "public List<Integer> rightSideView_bfs(TreeNode root) {\n List<Integer> list = new ArrayList<>();\n if(root == null){\n return list;\n }\n Queue<TreeNode> q = new LinkedList<>();\n q.offer(root);\n while(!q.isEmpty()){\n int len = q.size();\n for(int i=0; i<len; i++){\n TreeNode node = q.poll();\n if(i == 0){\n list.add(node.val);\n }\n if(node.left != null) q.offer(node.left);\n if(node.right != null) q.offer(node.right); \n }\n }\n return list;\n }", "public static int[][] optimalBST(double[] p, int num){\n double[][] e = new double[num+2][num+2];\n double[][] w = new double[num+1][num+1];\n //this will to easy count the sum of w from i to j\n //so use w[i][j] = w[i][j-1] + p[j]\n //therefor the size of w is also need num+1\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n for(int d = 0; d<num; d++){\n for(int i=1; i<=num-d; i++){\n int j = i + d;\n e[i][j] = Double.MAX_VALUE;\n w[i][j] = w[i][j-1] + p[j-1];//\n for(int k=i; k<=j; k++){\n double temp = w[i][j] + e[i][k-1] + e[k+1][j];;\n if(temp < e[i][j]){\n e[i][j] = temp;\n root[i][j] = k;\n }\n }\n }\n }\n ArrayTool.printDoubleMatrix(w);\n System.out.println(\"the total Search probability of this optimal BST is \"+ e[1][num]);\n return root;\n }", "private Queue<Integer> breadthSearch(int i, int j, Queue<Integer> queue, Queue<Integer> path) {\n while(queue.size() != 0) {\n queue.poll();\n }//while\n return new LinkedList();\n }", "private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }", "static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "private int dfs(TreeNode node, TreeNode target, int K, List<Integer> res) {\r\n if (node == null) return -1;\r\n\r\n if (node.val == target.val) {\r\n // add nodes from current subtree\r\n addNodes(node, K, res);\r\n return 0;\r\n }\r\n\r\n int left = dfs(node.left, target, K, res);\r\n int right = dfs(node.right, target, K, res);\r\n \r\n // at most one of left and right could be not -1\r\n if (right != -1) {\r\n // current node is k far from target\r\n if (K == right + 1) res.add(node.val);\r\n // target is in the right subtree, add nodes in left subtree\r\n else addNodes(node.left, K - right - 2, res);\r\n return right + 1;\r\n }\r\n\r\n if (left != -1) {\r\n // current node is k far from target\r\n if (K == left + 1) res.add(node.val);\r\n // target is in the left subtree, add nodes in right subtree\r\n else addNodes(node.right, K - left - 2, res);\r\n return left + 1;\r\n }\r\n\r\n // both left and right are - 1\r\n return -1;\r\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }", "public static List<Node> breadthFirstSearch(BinarySearchTree BST) {\n List<Node> breadthFirst = new LinkedList<Node>();\n LinkedList<Node> currentNodes = new LinkedList();\n Node currentNode;\n\n //Add the root node to get started\n currentNodes.add(BST.getRoot());\n //If they aren't null, add them to the queue, loop through, then remove the left-most child, add it to the\n // list, then continue looping until there are no more nodes\n while(currentNodes.size() > 0) {\n currentNode = currentNodes.removeFirst();\n breadthFirst.add(currentNode);\n if(currentNode.getLeftChild() != null) {\n currentNodes.add(currentNode.getLeftChild());\n }\n if(currentNode.getRightChild() != null) {\n currentNodes.add(currentNode.getRightChild());\n }\n }\n return breadthFirst;\n }", "private void getBalancedRootDfs(int nodeIdx, int parentNodeIdx){\r\n\t\t//get max size of subtrees of this node\r\n\t\tint maxSubSize;\r\n\t\tif(curTreeSize - subTreeSize[nodeIdx] > maxSubTreeSize[nodeIdx])\r\n\t\t\tmaxSubSize = curTreeSize - subTreeSize[nodeIdx];\r\n\t\telse\r\n\t\t\tmaxSubSize = maxSubTreeSize[nodeIdx];\r\n\t\t\r\n\t\t//if this node is best till now, update\r\n\t\tif(maxSubSize < curMinMaxSize){\r\n\t\t\tcurMinMaxSize = maxSubSize;\r\n\t\t\tcurRootIdx = nodeIdx;\r\n\t\t}\r\n\t\t\r\n\t\t//recursively visit children nodes\r\n\t\tfor(Integer idx: cities[nodeIdx].adjacentNodeIndices){\r\n\t\t\tif(parentNodeIdx == idx || visited[idx]) continue;\r\n\t\t\t\r\n\t\t\tgetBalancedRootDfs(idx, nodeIdx);\r\n\t\t}\r\n\t}", "public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\r\n\t\t if(root == null || p == root || q == root)\r\n\t return root;\r\n\t \r\n\t TreeNode left = lowestCommonAncestor(root.left, p, q);\r\n\t TreeNode right = lowestCommonAncestor(root.right, p, q);\r\n\t \r\n\t if(left == null && right != null) { // both on right\r\n\t return right;\r\n\t }\r\n\t if(right == null && left != null) { // both on left\r\n\t return left;\r\n\t }\r\n\t if(right == null && left == null) { // not in left and right\r\n\t return null;\r\n\t }\r\n\t return root; // right != null && left != null, one in left, one in right\r\n\t }", "private static BigInteger singleTree(int n) {\n \tif (T[n] != null) {\n \t\treturn T[n];\n \t}\n \tBigInteger ret = BigInteger.ZERO;\n \tfor (int i = 1; i < n; i++) {\n \t\tret = ret.add(binomial(n, i).multiply(BigInteger.valueOf(n - i).pow(n - i))\n \t\t\t\t .multiply(BigInteger.valueOf(i).pow(i)));\n \t}\n \treturn T[n] = ret.divide(BigInteger.valueOf(n));\n }", "private static void findOptimalTree(int i, int j, int[][] nodeMatrix) {\n\t\tif(i!=j){\n\t\t\tint root = nodeMatrix[i][j];\n\t\t\tSystem.out.println(\" root for \"+i+\" to \"+j+\" elements would be \"+root);\n\t\t\tfindOptimalTree(i, root-1, nodeMatrix);\n\t\t\tfindOptimalTree(root+1, j, nodeMatrix);\n\t\t}\n\t}", "private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) {\n if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) {\n return null;\n }\n\n TreeNode root = new TreeNode(postorder[postIdx[0]--]);\n\n root.right = helper(inorder, inIdx, postorder, postIdx, root);\n\n inIdx[0]--;\n\n root.left = helper(inorder, inIdx, postorder, postIdx, finish);\n\n return root;\n }", "public static int dfs(TreeNode root, int sum){\n\t\tif(root.left == null && root.right == null){\r\n\t\t\treturn 10*sum + root.val;\r\n\t\t\t//result.add(sum);\r\n\t\t}\r\n\t\tif(root.left != null && root.right == null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val);\r\n\t\t}\r\n\t\tif(root.right != null && root.left == null){\r\n\t\t\treturn dfs(root.right, 10*sum+root.val);\r\n\t\t}\r\n\t\t//if(root.left != null && root.right != null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val)+dfs(root.right, 10*sum+root.val);\r\n\t\t//}\r\n\t\t//for(int i = 0; i < result.size(); i++){\r\n\t\t\t//System.out.print( result.get(i) + \"->\");\r\n\t\t//}\r\n\t}", "int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }", "private int first_leaf() { return n/2; }", "void constructSTUtil(int arr[], int ss, int se, int si)\n {\n if (ss == se) {\n st[si] = arr[ss];\n //return arr[ss];\n } else {\n\n // If there are more than one elements, then recur for left and\n // right subtrees and store the sum of values in this node\n int mid = getMid(ss, se);\n constructSTUtil(arr, ss, mid, si * 2 + 1);\n constructSTUtil(arr, mid + 1, se, si * 2 + 2);\n st[si] = Math.min(st[si*2+1] , st[si*2+ 2]);\n }\n }", "public static <E extends Comparable> int minDeep(TreeNode<E> root) {\r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int minDeep = 1;\r\n \r\n queue.add(root);\r\n \r\n while(true){\r\n for(int deep = 0; deep < Math.pow(2, minDeep); deep++) {\r\n TreeNode<E> node = queue.poll();\r\n if(node.getLeft() == null || node.getRight() == null) return minDeep;\r\n queue.add(node.getLeft());\r\n queue.add(node.getRight());\r\n }\r\n \r\n minDeep++;\r\n }\r\n }", "public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\n \n //base\n if(root == null || p == root || q == root){\n return root;\n }\n \n //Logic\n TreeNode left = lowestCommonAncestor2(root.left, p, q);\n TreeNode right = lowestCommonAncestor2(root.right, p, q);\n \n if(left != null && right != null){\n return root; \n }\n else if(left != null){\n return left;\n }\n else \n return right;\n }", "public boolean isSameTree_bfs(TreeNode p, TreeNode q) {\n if (p == null && q == null) return true;\n if (p == null || q == null) return false;\n if (p.val != q.val) return false;\n\n Queue<TreeNode> qp = new LinkedList<>();\n qp.add(p);\n Queue<TreeNode> qq = new LinkedList<>();\n qq.add(q);\n\n while (!qp.isEmpty() || !qq.isEmpty()) {\n int sizep = qp.size();\n int sizeq = qq.size();\n if (sizep != sizeq) return false;\n\n for (int i = 0; i < sizep; i++) {\n TreeNode np = qp.poll();\n TreeNode nq = qq.poll();\n if (np.val != nq.val) return false;\n\n if (np.left != null && nq.left != null) {\n qp.add(np.left);\n qq.add(nq.left);\n } else if (!(np.left == null && nq.left == null)) {\n return false;\n }\n\n if (np.right != null && nq.right != null) {\n qp.add(np.right);\n qq.add(nq.right);\n } else if (!(np.right == null && nq.right == null)) {\n return false;\n }\n }\n }\n\n return true;\n\n }", "static void buildtree(int arr[], int tree[], int start, int end, int index) {\r\n\t\tif (start == end) {\r\n\t\t\ttree[index] = arr[start];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint mid = (start + end) / 2;\r\n\t\tbuildtree(arr, tree, start, mid, 2 * index);\r\n\t\tbuildtree(arr, tree, mid + 1, end, (2 * index) + 1);\r\n\r\n\t\ttree[index] = tree[2 * index] + tree[(2 * index) + 1];\r\n\r\n\t}", "private List<TreeNode> helper(int m, int n) {\n\t\t//System.out.println(\"== \" + m + \" \" + n + \"== \");\n\t\tList<TreeNode> result = new ArrayList<TreeNode>();\n\t\tif (m > n) {\n\t\t\t/* MUST add null \n\t\t\t * Cannot do nothing because foreach loop cannot find it if nothing inside \n\t\t\t */\n\t\t\tresult.add(null);\n\t\t} else if (m == n) {\n\t\t\tTreeNode node = new TreeNode(m);\n\t\t\tresult.add(node);\n\t\t} else {\n\t\t\tfor (int i = m; i <= n; i++) {\n\t\t\t\t//System.out.println(\"m, n, i : \" + m + \" \" + n + \" - \" + i);\n\t\t\t\tList<TreeNode> ls = helper(m, i - 1);\n\t\t\t\tList<TreeNode> rs = helper(i + 1, n);\n\t\t\t\t\n\t\t\t\tfor(TreeNode l: ls){\n\t\t\t\t\tfor(TreeNode r: rs){\n\t\t\t\t\t\tTreeNode node = new TreeNode(i);\n\t\t\t\t\t\tnode.left =l;\n\t\t\t\t\t\tnode.right=r;\n\t\t\t\t\t\tresult.add(node);\n\t\t\t\t\t\t//System.out.println(\">>>>>>>\");\n\t\t\t\t\t\t//node.printBFS();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public List<T> breadthFirstTraversal() {\n var result = new ArrayList<T>();\n var queue = new LinkedList<Node<T>>();\n queue.add(root);\n while(!queue.isEmpty()) {\n var node = queue.pop();\n result.add(node.value);\n acceptNotNull(node.left, queue::add);\n acceptNotNull(node.right, queue::add);\n }\n return result;\n }", "public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\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}", "public void delete(K key)\r\n\t{\r\n\t\tif(search(key) == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == null) \r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBSTNode<E,K> node = root;\r\n\t\tBSTNode<E,K> child = null;\r\n\t\tBSTNode<E,K> parent1 = null;\r\n\t\tBSTNode<E,K> parent2 = null;;\r\n\t\tboolean Left = true;\r\n\t\tboolean Left2 = false;\r\n\t\tboolean found = false;\r\n\t\t\r\n\t\twhile(!found)\r\n\t\t{\r\n\t\t\tif(node.getKey().compareTo(key) == 0)\r\n\t\t\t{\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey())<=-1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getLeft() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getLeft();\r\n\t\t\t\t\tLeft = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(key.compareTo(node.getKey()) >= 1)\r\n\t\t\t{\r\n\t\t\t\tif(node.getRight() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tparent1 = node;\r\n\t\t\t\t\tnode = node.getRight();\r\n\t\t\t\t\tLeft = false;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(node.getLeft() != null && node.getRight() != null)\r\n\t\t{\r\n\t\t\tchild = node.getRight();\r\n\t\t\tparent2 = node;\r\n\t\t\twhile(child.getLeft() != null)\r\n\t\t\t{\r\n\t\t\t\tparent2 = child;\r\n\t\t\t\tchild = child.getLeft();\r\n\t\t\t\tLeft2 = true;\r\n\t\t\t}\r\n\t\t\tif(Left2)\r\n\t\t\t{\r\n\t\t\t\tparent2.setLeft(child.getLeft());\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tparent2.setRight(child.getLeft());\r\n\t\t\t}\r\n\t\t\tchild.setLeft(node.getLeft());\r\n\t\t\tchild.setRight(node.getRight());\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() != null)\r\n\t\t{\r\n\t\t child = node.getRight();\r\n\t\t}\r\n\t\telse if(node.getLeft() != null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tchild = node.getLeft();\r\n\t\t}\r\n\t\telse if(node.getLeft() == null && node.getRight() == null)\r\n\t\t{\r\n\t\t\tif(Left)\r\n\t\t\t{\r\n\t\t\t\tparent1.setLeft(null);\r\n\t\t\t} \r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tparent1.setRight(null);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(root == node)\r\n\t\t{\r\n\t\t\troot = child;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(Left) \r\n\t\t{\r\n\t\t\tparent1.setLeft(child);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tparent1.setRight(child);\r\n\t\t}\r\n\t}", "private BSTNode<K> deleteNode(BSTNode<K> currentNode, K key) throws IllegalArgumentException{ \n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n // if currentNode is null, return null\n if (currentNode == null) \n return currentNode; \n // otherwise, keep searching through the tree until meet the node with value key\n switch(key.compareTo(currentNode.getId())){\n case -1:\n currentNode.setLeftChild(deleteNode(currentNode.getLeftChild(), key));\n break;\n case 1:\n currentNode.setRightChild(deleteNode(currentNode.getRightChild(), key));\n break;\n case 0:\n // build a temporary node when finding the node that need to be deleted\n BSTNode<K> tempNode = null;\n // when the node doesn't have two childNodes\n // has one childNode: currentNode = tempNode = a childNode\n // has no childNode: currentNode = null, tempNode = currentNode\n if ((currentNode.getLeftChild() == null) || (currentNode.getRightChild() == null)) {\n if (currentNode.getLeftChild() == null) \n tempNode = currentNode.getRightChild(); \n else \n tempNode = currentNode.getLeftChild(); \n \n if (tempNode == null) {\n //tempNode = currentNode; \n currentNode = null; \n }\n else\n currentNode = tempNode;\n }\n // when the node has two childNodes, \n // use in-order way to find the minimum node in its subrighttree, called rightMinNode\n // set tempNode = rightMinNode, and currentNode's ID = tempNode.ID\n // do recursion to update the subrighttree with currentNode's rightChild and tempNode's Id\n else {\n BSTNode<K> rightMinNode = currentNode.getRightChild();\n while (rightMinNode.getLeftChild() != null)\n rightMinNode = rightMinNode.getLeftChild();\n \n tempNode = rightMinNode;\n currentNode.setId(tempNode.getId());\n \n currentNode.setRightChild(deleteNode(currentNode.getRightChild(), tempNode.getId()));\n }\n }\n // since currentNode == null means currentNode has no childNode, return null to its ancestor\n if (currentNode == null) \n return currentNode; \n // since currentNode != null, we have to update its balance\n int balanceValue = getNodeBalance(currentNode);\n if (balanceValue < -1) { // balanceValue < -1 means sublefttree is longer than subrighttree\n if (getNodeBalance(currentNode.getLeftChild()) < 0) { // Left Left Case \n return rotateRight(currentNode);\n }\n else if (getNodeBalance(currentNode.getLeftChild()) >= 0) { // Left Right Case \n currentNode.setLeftChild(rotateLeft(currentNode.getLeftChild()));\n return rotateRight(currentNode);\n }\n }\n else if (balanceValue > 1) { // balanceValue < -1 means subrighttree is longer than sublefttree\n if ((getNodeBalance(currentNode.getRightChild()) > 0)) { // Right Right Case \n return rotateLeft(currentNode);\n }\n else if ((getNodeBalance(currentNode.getRightChild()) <= 0)) {// Right Left Case \n currentNode.setRightChild(rotateRight(currentNode.getRightChild()));\n return rotateLeft(currentNode);\n }\n }\n return currentNode;\n }", "static int[] bfs(int n, int m, int[][] edges, int s) {\r\n \r\n HashSet<Integer> aList[] = new HashSet[n];\r\n // Array of the nodes of the tree\r\n\r\n Queue<Integer> bfsQueue = new LinkedList();\r\n\r\n boolean visited[] = new boolean[n];\r\n // check if a node is visited or not\r\n\r\n\r\n int cost[] = new int[n];\r\n // cost to travel from one node to other\r\n\r\n for (int i = 0; i < n; i++) {\r\n // intialising the values\r\n visited[i] = false;\r\n cost[i] = -1;\r\n\r\n aList[i] = new HashSet<Integer>();\r\n // Each element of aList is a Set\r\n // To store the neighbouring nodes of a particular node\r\n }\r\n\r\n for (int i = 0; i < m; i++) {\r\n // let node[i] <--> node[j]\r\n\r\n // adding node[j] to neighbours list of node[i]\r\n aList[edges[i][0] - 1].add(edges[i][1] - 1);\r\n\r\n // adding node[i] to neighbours list of node[j]\r\n aList[edges[i][1] - 1].add(edges[i][0] - 1);\r\n }\r\n\r\n //\r\n s = s - 1;\r\n bfsQueue.add(s);\r\n visited[s] = true;\r\n cost[s] = 0;\r\n //\r\n \r\n \r\n while (!bfsQueue.isEmpty()) {\r\n \r\n int curr = bfsQueue.poll();\r\n // takes the last element of the queue\r\n \r\n for (int neigh : aList[curr]) { // iterating the neighbours of node 'curr'\r\n if (!visited[neigh]) { // checking if node neigh id already visited during the search\r\n visited[neigh ] = true;\r\n bfsQueue.add(neigh); //add the node neigh to bfsqueue\r\n cost[neigh] = cost[curr] + 6; \r\n }\r\n }\r\n }\r\n\r\n int result[] = new int[n-1];\r\n\r\n for (int i=0, j=0; i<n && j<n-1; i++, j++) {\r\n if (i == s){\r\n i++;\r\n }\r\n result[j] = cost[i];\r\n }\r\n \r\n return result;\r\n }", "@Override\n\tpublic Spliterator<Node> trySplit() {\n\t\tif(root.getSx()!=null && root.getDx()!=null) {\n\t\t\tNode d = root.getDx();\n\t\t\tNode sin = root.getSx();\n\t\t\tList<Node> newList = new LinkedList<>();\n\t\t\tnewList.add(this.root);\n\t\t\tthis.root = sin;\n\t\t\treturn new BinaryTreeSpliterator(d,newList);\n\t\t}\n\t\telse if (root.getSx()!=null) {\n\t\t\tNode sin = root.getSx();\n\t\t\tthis.list.add(this.root);\n\t\t\tthis.root = sin;\n\t\t\treturn trySplit();\n\t\t} else if (root.getDx()!=null) {\n\t\t\tNode d = root.getDx();\n\t\t\tthis.list.add(this.root);\n\t\t\tthis.root = d;\n\t\t\treturn trySplit();\n\t\t}\n\t\treturn null;\n\t}", "public TreeNode lowestCommonAncestor_1(TreeNode root, TreeNode p, TreeNode q){\n Deque<TreeNode> stack = new ArrayDeque<>();\n Map<TreeNode, TreeNode> parent = new HashMap<>();\n parent.put(root, null);\n stack.push(root);\n\n // Iterate until we find both the nodes p and q\n while(!parent.containsKey(p) || !parent.containsKey(q)){\n TreeNode node = stack.pop();\n if (node.left != null){\n parent.put(node.left, node);\n stack.push(node.left);\n }\n if (node.right != null){\n parent.put(node.right, node);\n stack.push(node.right);\n }\n }\n // Ancestors set() for node p\n Set<TreeNode> ancestors = new HashSet<>();\n // Process all ancestors for node p using parent pointers.\n while(p!=null){\n ancestors.add(p);\n p = parent.get(p);\n }\n // The first ancestors of q which appears in\n // p's ancestor set() is their lowest common ancestor\n while(!ancestors.contains(q))\n q = parent.get(q);\n return q;\n }", "@Test\n public void test(){\n BinarySearchTree tree = new BinarySearchTree(new Node(35));\n\n tree.addNode(4);\n tree.addNode(15);\n tree.addNode(3);\n tree.addNode(1);\n tree.addNode(20);\n tree.addNode(8);\n tree.addNode(50);\n tree.addNode(40);\n tree.addNode(30);\n tree.addNode(80);\n tree.addNode(70);\n\n tree.addNode(90);\n\n tree.deleteNode(50);\n System.out.println(\"=====中序遍历 递归法=====\");\n TreeUtil.traverseInOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traverseInOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====前序遍历=====\");\n TreeUtil.traversePreOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traversePreOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历=====\");\n TreeUtil.traversePostOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历 迭代法=====\");\n TreeUtil.traversePostOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====层次遍历=====\");\n TreeUtil.traverseLevelOrder(tree.getRoot());\n\n int height = TreeUtil.getChildDepth(tree.getRoot());\n System.out.println(\"\");\n System.out.println(\"树高:\"+height);\n }", "private int binarySearchRecursive(int[] array,int target,int left,int right) {\n if (left > right)\n return -1;\n\n int middle = (left + right) / 2;\n\n if (array[middle] == target)\n return middle;\n\n if (array[middle] < target)\n return binarySearchRecursive(array,target,middle+1,right);\n\n return binarySearchRecursive(array, target,left,middle-1);\n }", "private static int query(int[] segtree, int l, int r, int ns, int ne, int index) {\n if (ns >= l && ne <= r) {\n // complete overlap\n return segtree[index];\n } else if (ns > r || ne < l) {\n // no overlap\n return Integer.MAX_VALUE;\n } else {\n int mid = (ns + ne) / 2;\n int leftAns = query(segtree, l, r, ns, mid, 2 * index);\n int rightAns = query(segtree, l, r, mid + 1, ne, 2 * index + 1);\n return Math.min(leftAns, rightAns);\n }\n }", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "int binarySearchWithRecursion(int[] arr, int low, int high, int key){\n if (high < low)\n return -1;\n int mid = (low + high) / 2;\n if (key == arr[mid])\n return mid;\n if (key > arr[mid])\n return binarySearchWithRecursion(arr,(mid + 1), high, key);\n return binarySearchWithRecursion(arr, low, (mid - 1), key);\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root == null) return null;\n if (root == q || root == p) return root;\n if (root.val > Math.max(p.val, q.val)) {\n return lowestCommonAncestor(root.left, p, q);\n } \n if (root.val < Math.min(p.val, q.val)) {\n return lowestCommonAncestor(root.right, p, q);\n }\n if (root.val > q.val && root.val < p.val || root.val > p.val && root.val < q.val) {//else\n return root;\n }\n \n return null;//never\n }", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "Result commonAncestorHelper(TreeNode root, TreeNode p, TreeNode q) {\n\tif (root == null) return new Result(null, false);\n\n\n\t// they are the same node, and is the root\n\tif (root == p && root == q) {\n\t\treturn new Result(root, true);\n\t}\n\t// searching left subtree\n\tResult rx = commonAncestorHelper(root.left, p, q);\n\t// found a common ancestor \n\tif (rx.isAncestor) { \n\t\treturn rx; \n\t}\n\n\t// searching right subtree\n\tResult ry = commonAncestorHelper(root.right, p, q);\n\tif (ry.isAncestor) {\n\t\treturn ry; \n\t}\n\n\tif (rx.node != null && ry.node != null) {\n\t\treturn new Result(root, true); // common ancestor \n\t} else if (root == p || root == q) {\n\t\t// we're currently at p or q\n\t\t// found one of those nodes in subtree, then ancestor\n\t\t// flag TRUE\n\t\tboolean isAncestor = rx.node != null || ry.node != null; \n\t\treturn new Result(root, isAncestor)\n\t} else {\n\t\treturn new Result(rx.node != null ? rx.node : ry.node, false);\n\t}\n\n\n}", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "private int pushDown(int start_index) {\n\t\tif(left(start_index)<heap.size()-1 && hasTwoChildren(start_index)==false) {\n\t\t\tif(heap.get(left(start_index)).priority< heap.get(start_index).priority){\n\t\t\t\tswap(start_index,left(start_index));\n\t\t\t\treturn pushDown(left(start_index));\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn start_index;\n\t\t\t}\n\t\t}\n\t\telse if (hasTwoChildren(start_index)){\n\t\t\tint priorityLeft= heap.get(left(start_index)).priority;\n\t\t\tint priorityRight= heap.get(right(start_index)).priority;\n\t\t\tint priorityParent= heap.get(start_index).priority;\n\t\t\tif(priorityLeft<=priorityRight && priorityLeft<priorityParent){\n\t\t\t\tswap(start_index,left(start_index));\n\t\t\t\treturn pushDown(left(start_index));\n\t\t\t}\n\t\t\telse if (priorityRight<priorityLeft && priorityRight<priorityParent) {\n\t\t\t\tswap(start_index,right(start_index));\n\t\t\t\treturn pushDown(right(start_index));\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn start_index;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn start_index;\n\t\t}\n\n\t}", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n int[] arrayNode = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n arrayNode[i] = scan.nextInt();\n }\n\n Color[] arrayColor = new Color[n + 1];\n for (int i = 1; i <= n; i++) {\n if (scan.nextInt() == 0) {\n arrayColor[i] = Color.RED;\n } else {\n arrayColor[i] = Color.GREEN;\n }\n }\n\n List<Integer>[] adjacentsList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n adjacentsList[i] = new ArrayList<Integer>();\n }\n\n for (int i = 0; i < n - 1; i++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n adjacentsList[x].add(y);\n adjacentsList[y].add(x);\n }\n\n scan.close();\n\n List<Integer>[] childrenList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n childrenList[i] = new ArrayList<Integer>();\n }\n\n int[] depths = new int[n + 1];\n boolean[] visited = new boolean[n + 1];\n\n Queue<Integer> queue = new LinkedList<Integer>();\n depths[1] = 0;\n queue.offer(1);\n while (!queue.isEmpty()) {\n int head = queue.poll();\n\n if (visited[head]) {\n continue;\n }\n visited[head] = true;\n\n for (int adjacent : adjacentsList[head]) {\n if (!visited[adjacent]) {\n childrenList[head].add(adjacent);\n depths[adjacent] = depths[head] + 1;\n queue.offer(adjacent);\n }\n }\n }\n\n Tree[] nodes = new Tree[n + 1];\n for (int i = 1; i <= n; i++) {\n if (childrenList[i].isEmpty()) {\n nodes[i] = new TreeLeaf(arrayNode[i], arrayColor[i], depths[i]);\n } else {\n nodes[i] = new TreeNode(arrayNode[i], arrayColor[i], depths[i]);\n }\n }\n for (int i = 1; i <= n; i++) {\n for (int child : childrenList[i]) {\n ((TreeNode) nodes[i]).addChild(nodes[child]);\n }\n }\n return nodes[1];\n }", "public int findHieghtOfTree(Node r) {\r\n\t\tif(r==null) \r\n\t\t\treturn 0;\r\n\t\tif(r.left==null && r.right==null)\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tint left=1,right=1;\r\n\t\t\tif(r.left!=null)\r\n\t\t\t\tleft=left+findHieghtOfTree(r.left);\r\n\t\t\tif(r.right!=null)\r\n\t\t\t\tright=right+findHieghtOfTree(r.right);\r\n\t\t\tif(left>right) \r\n\t\t\t\treturn left; \r\n\t\t\telse \r\n\t\t\t\treturn right;\r\n\t\t}\r\n\t\t\r\n\t}", "private void keepRangeRecur(BinaryNode node, E a, E b) {\n\n if (node == null) return;\n\n //node is within a-b bounds so keep it\n if (a.compareTo((E)node.element) <= 0 && b.compareTo((E)node.element) >= 0) {\n keepRangeRecur(node.left, a, b);\n keepRangeRecur(node.right, a, b);\n\n //node is to the left of boundaries\n } else if (a.compareTo((E)node.element) > 0) {\n if (node == root) {\n root = node.right;\n node.right.parent = null;\n } else if (node.parent.right == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.left, a, b);\n } else { //node is out but its parent is in\n node.parent.left = node.right;\n if (node.right != null) node.right.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.right, a, b);\n\n // node is to the right of boundaries\n } else if (b.compareTo((E)node.element) < 0) {\n if (node == root) {\n root = node.left;\n node.left.parent = null;\n } else if (node.parent.left == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.right, a, b);\n } else { //node is out but its parent is in\n node.parent.right = node.left;\n if (node.left != null) node.left.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.left, a, b);\n }\n }", "public static void findClosestSharedParentBST() {\n \n // initialize graph (adjacency list) as a BST\n int[][] bst = {\n {1,2}, // vertex 0 ....\n {3,4},\n {5,6},\n {7,8},\n {},\n {},\n {},\n {9},\n {},\n {} // vertex 9\n }; \n // Given 2 Nodes in a BST, find their closest shared parent\n Graph g = new Graph(bst);\n g.dijsktra(g.getVertices().get(0));\n List<Vertex> path1 = g.getShortestPath(g.getVertices().get(1));\n List<Vertex> path2 = g.getShortestPath(g.getVertices().get(9));\n\n // parent will be the last item in each path before the diverge\n // EX: [1,2,3], [1,2,4,5]. - searched for 3 and 5. parent is 2.\n // EX: [1,2], [1,2,4,5]. - searched for 2 and 5. parent is 2.\n int min = Math.min(path1.size(), path2.size()) -1;\n int parentidx = 0;\n for (int i = 0; i <= min; i++) {\n if (path1.get(i) == path2.get(i)) {\n parentidx = i;\n } else {\n break;\n }\n }\n System.out.println(\"shared parent: \" + path1.get(parentidx));\n }", "public TreeNode searchBST(TreeNode root, int x){\r\n if( root == null)\r\n return null;\r\n if( root.value == x)\r\n return root;\r\n else if( x< root.value)\r\n return searchBST(root.left, x);\r\n else\r\n return searchBST(root.right, x);\r\n }", "private BinaryNode<AnyType> findParentNode1(BinaryNode<AnyType> t, AnyType x)\r\n\t{\r\n\t\tif(t == null)\r\n\t\t\treturn null;\r\n\t\telse if(t == root && (x.compareTo(root.element)== 0))\r\n\t\t\treturn t;\r\n\t\telse\r\n\t\t{\r\n\t\t\tif((t.left!= null && (x.compareTo(t.left.element) == 0)) || (t.right!= null && (x.compareTo(t.right.element) == 0)))\r\n\t\t\t\treturn t;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tBinaryNode<AnyType> temp = findParentNode1(t.left,x);\r\n\t\t\t\tif(temp == null)\r\n\t\t\t\t\treturn findParentNode1(t.right,x);\r\n\t\t\t\telse\r\n\t\t\t\t\treturn temp;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint array[]={2,3,4,6};\n\t\tint n=array.length;\n\t\tint maximum=Integer.MIN_VALUE;\n\t\tint minimum=Integer.MAX_VALUE;\n\t\tfor(int i:array)\n\t\t{\n\t\t\tif(i>maximum)\n\t\t\t\tmaximum=i;\n\t\t\tif(i<minimum)\n\t\t\t\tminimum=i;\n\t\t}\n\t\t\n\t\tint mark[]=new int[maximum+2];\n\t\tint value[]=new int[maximum+2];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tmark[array[i]]=1; // marking ki exist karta hai no need to search in the array.\n\t\t\tvalue[array[i]]=1; //har value se ek fbt to banega hi (1 node ka)\n\t\t}\n\t\tint ans=0;\n\t\tfor(int i=minimum;i<=maximum;i++){\n\t\t\tif(mark[i]==1) // element is present in the array.// we have found the first factor now find 2nd factor.\n\t\t\t{\n\t\t// find the multiples of arr[i] which are less than max value and also less than its square\n\t\t\tfor(int j=i+i ;j<=maximum && j/i<=i;j=j+i)\n\t\t\t{\n\t\t\t\tif(mark[j]==1 && mark[j/i]==1) // i is the first factor and j/i is the 2nd factor.j is the product that serves as root.\n\t\t\t\t{\n\t\t\t\t\t// value =all combination of left child with right child.\n\t\t\t\t\tvalue[j]=value[j] + (value[i] * value[j/i]);\n\t\t\t\t\t\n\t\t\t\t\t// if the 2 child are not same then one more orientation.\n\t\t\t\t\tif(i!=(j/i))\n\t\t\t\t\t\tvalue[j]=value[j] + (value[i] * value[j/i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tans=ans+value[i];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "private static TreeNode helper2(TreeNode node, int[] nums, int start, int end) {\n if (start > end) {\n return null;\n }\n int max = Integer.MIN_VALUE;\n int middle = 0;\n for(int i = start; i <= end; i++) {\n if (nums[i] >= max) {\n max = nums[i];\n middle = i;\n }\n }\n node = new TreeNode(max);\n node.left = helper2(node.left, nums, start, middle - 1);\n node.right = helper2(node.right, nums, middle + 1, end);\n return node;\n }", "private static int queryLazy(int[] segtree, int[] lazyValue, int l, int r, int ns, int ne, int index) {\n if(lazyValue[index]!=0){\n segtree[index]+=lazyValue[index];\n if(ns!=ne){\n lazyValue[2*index]+=lazyValue[index];\n lazyValue[2*index+1]+=lazyValue[index];\n }\n lazyValue[index]=0;\n }\n if(r<ns || l>ne){\n //no overlap\n return Integer.MAX_VALUE;\n }\n if(ns>=l && ne<=r){\n //complete overlap\n return segtree[index];\n }else{\n //partial overlap\n int mid=(ns+ne)/2;\n int leftAns=queryLazy(segtree, lazyValue, l, r, ns, mid, 2*index);\n int rightAns=queryLazy(segtree, lazyValue, l, r, mid+1, ne, 2*index+1);\n return Math.min(leftAns,rightAns);\n }\n }", "@Override\n @SuppressWarnings(\"Duplicates\")\n public V remove(K key) {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n V value = null;\n TreeNode<KeyValuePair<K, V>> result = null;\n int iter = 0;\n while(true) {\n if(current == null) {\n break;\n }\n// System.out.println(\"Iteration #\" + iter);\n// System.out.println(\"Previous = \" + previous.getValue());\n// System.out.println(\"Current = \" + current.getValue());\n if(key.compareTo(current.getValue().getKey()) < 0) {\n// System.out.println(\"Less\");\n smaller = true;\n previous = current;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n// System.out.println(\"Larger\");\n smaller = false;\n previous = current;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n if(current.getValue().getKey() == previous.getValue().getKey()) {\n if(current.getLeft() == null && current.getRight() == null) root = null;\n else if(current.getLeft() == null && current.getRight() != null) root = root.getRight();\n else if(current.getLeft() != null && current.getRight() == null) root = root.getLeft();\n else if(current.getRight() != null && current.getLeft() != null) current.setValue(minVal(current));\n }\n// System.out.println(\"Found the value! key:val = \" + current.getValue().getKey()+\":\"+current.getValue().getValue());\n// System.out.println(\"Previous = \" + previous.getValue());\n result = current;\n break;\n }\n iter++;\n }\n if(result != null) {\n// System.out.println(\"not null result\");\n value = result.getValue().getValue();\n if(current.getLeft() == null && current.getRight() == null) {\n if(smaller) previous.setLeft(null);\n else previous.setRight(null);\n } else if(current.getLeft() != null && current.getRight() == null) {\n if(smaller) previous.setLeft(current.getLeft());\n else previous.setRight(current.getLeft());\n } else if(current.getLeft() == null && current.getRight() != null) {\n// System.out.println(\"Right not null\");\n// System.out.println(\"Previous = \" + previous.getValue());\n// System.out.println(\"Current = \" + current.getValue());\n if(smaller) previous.setLeft(current.getRight());\n else previous.setRight(current.getRight());\n } else {\n// System.out.println(\"Else\");\n current.setValue(minVal(current));\n }\n size--;\n return value;\n }\n return null;\n }", "private static int divideAndConquer(int[] hist, int first, int last) {\n if (last - first < 2) { // single bar or 2 bars don't hold water\n return 0;\n } else {\n final int idxMax = findIndexOfMaxInside(hist, first, last);\n final int maxVal = hist[idxMax];\n final int level = Math.min(hist[first], hist[last]);\n\n if (maxVal <= level) { // hollow area: base case!\n int water = 0;\n for (int i = first + 1; i < last; ++i) {\n water += level - hist[i]; // subtract 'bottom'\n }\n return water;\n } else { // maxVal sticks above water: conquer\n return divideAndConquer(hist, first, idxMax) + divideAndConquer(hist, idxMax, last);\n }\n }\n }", "public int binarySearch(int[] nums, int target, int left, int right) {\n int res = left - 1;\n while (left <= right) {\n int mid = left + (right - left) / 2;\n if (nums[mid] <= target) {\n right = mid - 1;\n } else {\n res = mid;\n left = mid + 1;\n }\n }\n return res;\n }", "static BinaryNode searchTree(BinaryNode root, int x) {\n\t\tBinaryNode xNode = new BinaryNode(x);\n\t\t//searchLast(xNode);\n\t\t\n\t\tBinaryNode n=root;\t//start from root\n\t\tBinaryNode lastLeft=null;\n\t\twhile(n!=null){\n\t\t\tif(n.val > xNode.val){\n\t\t\t\tn=n.left;\n\t\t\t\tif(n.left !=null) lastLeft=n.left;\n\t\t\t\t//else if n is x, there is no value smaller than x.\n\t\t\t}else if(n.val == xNode.val){\n\t\t\t\treturn lastLeft;\n\t\t\t}else{\t//then the x is on the right.(bigger)\n\t\t\t\t\n\t\t\t\tn=n.right;\n\t\t\t\tlastLeft=n;\n\t\t\t}\n\t\t}\n\t\t//if goes to this line, mean failed.\n\t\treturn null;\n }", "TreeNode commonAncestor(TreeNode p, TreeNode q) {\n\t// find depths of the two nodes \n\tint depthP = depth(p);\n\tint depthQ = depth(q);\n\t// find difference in depths \n\tint diffDepths = depthP - depthQ;\n\t// q is more shallow\n\tTreeNode first = diffDepths > 0 ? q : p; \n\t// p is more deep\n\tTreeNode second = diffDepths > 0 ? p : q; \n\t// Bring the second one up \n\tsecond = goUpBy(second, Math.abs(delta));\n\n\t// FIND INTERSECTING PATH BY GOING UP ONE AT A TIME\n\t// WHILE THEY ARE NOT THE SAME AND BOTH NOT NULL \n\twhile (first != second && first != null && second != null) {\n\t\tfirst = first.parent;\n\t\tsecond = second.parent; \n\t}\n\t// if either is null, no common, therefore return null\n\t// else we can return one of the two bc they are the same\n\treturn first == null || second == null ? null : first; \n\n}", "public TreeNode subtreeWithAllDeepest(TreeNode root) {\n }", "private static void commonNodesBSTFind(Node r1, Node r2)\n {\n if(r1 == null || r2==null)\n return;\n commonNodesBSTFind(r1.left, r2);\n findNode(r2,r1.data);\n commonNodesBSTFind(r1.right,r2);\n }", "public static void main(String[] args) {\n Node root = new Node(10);\n root.right = new Node(-3);\n root.right.right = new Node(11);\n\n Node l1 = root.left = new Node(5);\n l1.right = new Node(2);\n l1.right.right = new Node(1);\n\n l1.left = new Node(3);\n l1.left.right = new Node(-2);\n l1.left.left = new Node(3);\n\n int k = 7;\n List<Node> path = new ArrayList<>();\n findPath(root, 7, path); //O(n^2) in worst, O(nlogn) if tree is balanced.\n\n }", "private void trickleDown(int index) {\n Map.Entry<String, Double> smallest;\n Map.Entry<String, Double> top = this.get(index);\n int currentSize = this.size();\n\n while (index < currentSize / 2) { // while node has at leat one child\n Map.Entry<String, Double> left = LEFT(this.get(index));\n Map.Entry<String, Double> right = RIGHT(this.get(index));\n\n // find smaller child\n // if right child exists\n if (right != null && left.getValue().compareTo(right.getValue()) > 0) {\n smallest = right;\n } else {\n smallest = left;\n }\n\n // top <= smallest ?\n if (top.getValue().compareTo(smallest.getValue()) <= 0) {\n break;\n }\n\n // shift child up\n int smallestIndex = this.indexOf(smallest);\n Collections.swap(this, index, smallestIndex);\n index = smallestIndex;\n } // end while\n }", "public static void main(String[] args){\n Node root = null;\n BinarySearchTree bst = new BinarySearchTree();\n root = bst.insert(root, 15);\n root = bst.insert(root, 10);\n root = bst.insert(root, 20);\n root = bst.insert(root, 25);\n root = bst.insert(root, 8);\n root = bst.insert(root, 12);\n // System.out.println(\"search result: \" + bst.is_exists(root, 12));\n // System.out.println(\"min value: \" + bst.findMinValue(root));\n // System.out.println(\"max value: \" + bst.findMaxValue(root));\n // System.out.println(\"level order traversal: \");\n // bst.levelOrderTraversal(root);\n // System.out.println(\"preorder traversal : \");\n // bst.preorderTraversal(root);\n // System.out.println(\"inorder traversal : \");\n // bst.inorderTraversal(root);\n // System.out.println(\"postorder traversal : \");\n // bst.postorderTraversal(root);\n // System.out.println(bst.isBinarySearchTree(root));\n // root = bst.deleteNode(root, 10);\n // bst.inorderTraversal(root); // result should be: 8 12 15 20 25\n System.out.println(bst.inorderSuccessor(root, 8)); // result should be: 10\n System.out.println(bst.inorderSuccessor(root, 15)); // result should be: 20\n System.out.println(bst.inorderSuccessor(root, 20)); // result should be: 25\n System.out.println(bst.inorderSuccessor(root, 25)); // result should be: null\n }", "private List<BinaryTreeNode> findAncestor(BinaryTreeNode head, BinaryTreeNode node1, BinaryTreeNode node2) {\n if (head == null) {\n return new ArrayList<BinaryTreeNode>();\n }\n\n List<BinaryTreeNode> leftSearch = findAncestor(head.getLeft(), node1, node2);\n List<BinaryTreeNode> rightSearch = findAncestor(head.getRight(), node1, node2);\n\n leftSearch.addAll(rightSearch);\n if (leftSearch.contains(node1) && leftSearch.contains(node2)) {\n if (leftSearch.size() == 2) {\n leftSearch.add(head);\n }\n return leftSearch;\n }\n\n if (head.getValue() == node1.getValue() || head.getValue() == node2.getValue()) {\n leftSearch.add(head);\n }\n return leftSearch;\n }", "public abstract boolean isBinarySearchTree();", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n if (root == null) return null;\n if (root.val > p.val) {\n TreeNode left = inorderSuccessor(root.left, p);\n return left == null ? root : left;\n } else return inorderSuccessor(root.right, p);\n}", "public static void delete(Node node){\n // There should be 7 cases here\n if (node == null) return;\n\n if (node.left == null && node.right == null) { // sub-tree is empty case\n if (node.key < node.parent.key) { // node น้อยกว่าข้างบน\n node.parent.left = null;\n }\n else {\n node.parent.right = null;\n }\n\n return;\n }\n\n else if (node.left != null && node.right == null) { // right sub-tree is empty case\n if (node.left.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.left.parent = node.parent;\n node.parent.left = node.left;\n }\n else {\n node.left.parent = node.parent;\n node.parent.right = node.left;\n }\n return;\n }\n else if (node.right != null && node.left == null) { // left sub-tree is empty case\n if (node.right.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.right.parent = node.parent;\n node.parent.left = node.right;\n }\n else {\n node.right.parent = node.parent;\n node.parent.right = node.right;\n }\n return;\n }\n else { // full node case\n // หา min ของ right-subtree เอา key มาเขียนทับ key ของ node เลย\n Node n = findMin(node.right);\n node.key = n.key;\n delete(n);\n }\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n int len = nums.length;\n if (len == 0) {\n return null;\n }\n return rescurse(nums, 0, len- 1);\n\n }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "public TreeNode resolve(TreeNode root, TreeNode node){\n if (root == null) {\n return node;\n }\n else if(root.val > node.val){ // no replace, keep going down\n root.right = resolve(root.right, node);\n return root;\n }\n else { // new biggest, old root becomes left child\n node.left = root;\n root = null;\n return node;\n }\n }", "private static void commonNodesIterInOrd(Node root1,Node root2)\n {\n if(root1 == null || root2 == null) return;\n \n LinkedList<Node> stack1 = new LinkedList<>();\n LinkedList<Node> stack2 = new LinkedList<>();\n \n Node n1 = root1, n2 = root2;\n \n while(true)\n {\n if(n1!=null)\n {\n stack1.push(n1); n1 = n1.left;\n }\n if(n2!=null)\n {\n stack2.push(n2); n2 = n2.left;\n } \n \n if(n1 == null && n2 == null)\n {\n if(stack1.size() == 0 || stack2.size() == 0)\n break;\n \n n1 = stack1.peekFirst(); n2 = stack2.peekFirst();\n \n if(n1.data < n2.data)\n {\n stack1.pop(); n1 = n1.right; n2 = null;\n }\n else if(n1.data > n2.data)\n {\n stack2.pop(); n2 = n2.right; n1 = null;\n }\n else\n {\n stack1.pop(); stack2.pop(); \n System.out.print(n1.data+\" \");\n n1 = n1.right; n2 = n2.right;\n }\n }\n }\n }", "public int[] mRtreeFromSource(int s,int k){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n\n d[s] = 0;\n parent[s]=s;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n\n int extractedVertex = minHeap.extractMin();\n\n if(d[extractedVertex]==INFINITY)\n break;\n\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n\n double newKey = edge.weight ; //the different part with previous method\n double currentKey = d[destination];\n if(currentKey>=newKey){\n if(currentKey==newKey){\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n return parent;\n }", "private Node<T> searchRecursively(Node<T> node, T value) {\n\n // If the key is less than that of the current node, calls this method again with the current node's\n // left branch as the new node to compare keys with.\n if (value.compareTo(node.getValue()) == -1) {\n node = node.getLeft();\n return searchRecursively(node, value);\n }\n\n // Otherwise, calls the method again, comparing with the current node's right branch.\n else if (value.compareTo(node.getValue()) == 1) {\n node = node.getRight();\n return searchRecursively(node, value);\n }\n\n // If the current node contains the key, returns this node.\n return node;\n }", "public BST_Recursive() {\n\t\tthis.root = null;\n\t\tnumOfElements = 0; \n\t}", "public V put(K key, V value){\n\t\tV v=null;\n\t\tNode n;\n\t\t\n\t\t\n\t\tif(root==null){\n\t\t\t\n\t\t\troot=new Node(key,value);\t\t\t\n\t\t\troot.parent=null;\n\t\t\t\n\t\t}\n\t\telse if(get(key)!=null){\n\t\t\t\n\t\t\tv=searchkey(root, key).value;\n\t\t\t\n\t\t\tsearchkey(root, key).value=value;\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tif(root.key.compareTo(key)>0){\n\t\t\t\tn=leftend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){if(t.key.compareTo(key)<0&&t!=root){break;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.left;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=rightend(n);\n\t\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tn.right.parent=n;\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(root.key.compareTo(key)<0 ){\n\t\t\t\t\n\t\t\t\tn=rightend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){\n\t\t\t\t\tif(t.key.compareTo(key)>0 && t!=root){\n\t\t\t\t\t\tbreak;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.right;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\t\n\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\n\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=leftend(n);\n\t\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn v;\t\n\t}", "public TreeNode<T> Search(TreeNode<T> n, T s){\n if(n == null || n.elem.equals(s)) {return n;}\n else if(s.compareTo(n.elem) < 0) {return Search(n.left, s);}\n else {return Search(n.right, s);}\n\n }", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "public static void bfsTraversal(BSTNode root) {\n\t\t // base condition\n\t\t if (root == null) {\n\t\t return;\n\t\t }\n\t\t // let's have a queue to maintain nodes\n\t\t Queue<BSTNode> q = new LinkedList<>();\n\t\t if (root != null) {\n\t\t q.add(root);\n\t\t }\n\t\t \n\t\t while (!q.isEmpty()) {\n\t\t BSTNode curr = q.poll();\n\t\t if (curr != null) {\n\t\t\t q.add(curr.left);\n\t\t\t q.add(curr.right);\n\t\t\t \n\t\t\t System.out.print(curr.data + \" \");\n\t\t }\n\t\t }\n\t\t \n\t}" ]
[ "0.6518015", "0.63205886", "0.62513536", "0.61904585", "0.61470646", "0.6055447", "0.60328496", "0.6004581", "0.59352535", "0.58750015", "0.5868052", "0.5858513", "0.5841162", "0.5840783", "0.58161", "0.5815412", "0.5814452", "0.58055913", "0.57999897", "0.57921594", "0.5788569", "0.5776755", "0.57494634", "0.5748543", "0.5747854", "0.5719599", "0.5707014", "0.56922346", "0.56714433", "0.5668758", "0.56645364", "0.5642229", "0.5625556", "0.5593818", "0.5580156", "0.5575398", "0.55336654", "0.5527462", "0.5523878", "0.55163187", "0.5510705", "0.550426", "0.5502115", "0.5498547", "0.549379", "0.54919565", "0.5489399", "0.5486163", "0.548475", "0.5482658", "0.5476244", "0.5475675", "0.5475667", "0.5465421", "0.5450001", "0.54411393", "0.54334056", "0.5430471", "0.54176205", "0.5398264", "0.5392834", "0.5389671", "0.5389398", "0.53882074", "0.53800815", "0.5376002", "0.53734666", "0.53679574", "0.5365442", "0.5365021", "0.53566813", "0.53548485", "0.53487736", "0.53465784", "0.53418314", "0.5331437", "0.5323076", "0.5310637", "0.5306114", "0.5302572", "0.5301375", "0.53005874", "0.52959156", "0.5291378", "0.52913666", "0.5279739", "0.52710414", "0.526022", "0.52578115", "0.5256065", "0.5255734", "0.525377", "0.5249039", "0.5248297", "0.52414596", "0.52403784", "0.5240277", "0.52392924", "0.5234849", "0.5229166", "0.5228894" ]
0.0
-1
Adds/replaces the xml entity in the shared configuration we don't need to trigger the change listener for this modification, so it's ok to operate on the original configuration object
public void addXmlEntity(XmlEntity xmlEntity, String[] groups) { lockSharedConfiguration(); try { Region<String, Configuration> configRegion = getConfigurationRegion(); for (String group : listOf(groups)) { Configuration configuration = configRegion.get(group); if (configuration == null) { configuration = new Configuration(group); } String xmlContent = configuration.getCacheXmlContent(); if (xmlContent == null || xmlContent.isEmpty()) { xmlContent = generateInitialXmlContent(); } try { Document doc = XmlUtils.createAndUpgradeDocumentFromXml(xmlContent); XmlUtils.addNewNode(doc, xmlEntity); configuration.setCacheXmlContent(XmlUtils.prettyXml(doc)); configRegion.put(group, configuration); } catch (Exception e) { logger.error("error updating cluster configuration for group {}", group, e); } } } finally { unlockSharedConfiguration(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void modifyXmlAndProperties(Properties properties, XmlEntity xmlEntity, String[] groups) {\n lockSharedConfiguration();\n try {\n Region<String, Configuration> configRegion = getConfigurationRegion();\n for (String group : listOf(groups)) {\n Configuration configuration = configRegion.get(group);\n if (configuration == null) {\n configuration = new Configuration(group);\n }\n\n if (xmlEntity != null) {\n String xmlContent = configuration.getCacheXmlContent();\n if (xmlContent == null || xmlContent.isEmpty()) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n CacheXmlGenerator.generateDefault(pw);\n xmlContent = sw.toString();\n }\n try {\n Document doc = XmlUtils.createAndUpgradeDocumentFromXml(xmlContent);\n // Modify the cache attributes\n XmlUtils.modifyRootAttributes(doc, xmlEntity);\n // Change the xml content of the configuration and put it the config region\n configuration.setCacheXmlContent(XmlUtils.prettyXml(doc));\n } catch (Exception e) {\n logger.error(\"error updating cluster configuration for group {}\", group, e);\n }\n }\n\n if (properties != null) {\n configuration.getGemfireProperties().putAll(properties);\n }\n configRegion.put(group, configuration);\n }\n } finally {\n unlockSharedConfiguration();\n }\n }", "@Override\n public void saveConfig() {\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext context = pm.getContext(\n LocalizationType.COMMON_STATIC, LocalizationLevel.SITE);\n String newFileName = getExistingConfigFilePath();\n ILocalizationFile locFile = pm.getLocalizationFile(context,\n newFileName);\n\n try {\n statusHandler.info(\"Saving -- \" + locFile.getPath());\n try (SaveableOutputStream os = locFile.openOutputStream()) {\n jaxb.marshalToStream(mesoCfgXML, os);\n os.save();\n }\n } catch (Exception e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Failed to save \" + getExistingConfigFilePath(), e);\n }\n }", "public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }", "public void saveXMLConfig() {\n\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\t\t// Update NameServers. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserversElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServers\", ns);\n\t\tnameserversElement.removeChildren(\"nameServer\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameservers.size(); i++) {\n\t\t\t nameserversElement.addContent( new Element(\"nameServer\", ns).\n\t\t\t addContent(new Element(\"identifier\", ns).\n\t\t\t\t setText((String)_nameservers.get(i))));\n\t\t}\n\n\t\t// Update NameServerPorts. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserverPortsElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServerPorts\", ns);\n\t\tnameserverPortsElement.removeChildren(\"nameServerPort\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameserverPorts.size(); i++) {\n\t\t\t nameserverPortsElement.addContent( new Element(\"nameServerPort\",\n\t\t\t ns).\n\t\t\t addContent(new Element(\"pidentifier\", ns).\n\t\t\t\t setText((String)_nameserverPorts.get(i))));\n\t\t}\n\n\t\t// Update obsRecord Event Channel Name\n\t\t_root.getChild(\"server\", ns)\n\t\t .getChild(\"obsRecordEventChannelName\", ns)\n\t\t .setText(_obsRecordEventChannelName);\n\t}", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public synchronized void updateConfiguration(String configureFilePath) throws ParserConfigurationException, SAXException, IOException {\n\t\t// no need to consider concurrent problem when update configuration xml file.\n\t\t// if the last mConfiguration instance was being read when we change its reference to\n\t\t// a new instance, the last operation will continue to use the old instance.\n\t\tmConfiguration = parseXmlConfigFile(configureFilePath);\n\t}", "void overwriteConfiguration(Map<String, Object> config);", "@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }", "private static synchronized void changeXML(Path filepath, File conf, String name){\n try {\n // Строим объектную модель исходного XML файла\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = db.parse(conf);\n doc.normalize();\n \n NodeList appenders = doc.getElementsByTagName(\"appender\");\n for (int i = 0; i < appenders.getLength(); i++) {\n Node appender = appenders.item(i);\n //if this node is suitable appender, then change TextContext 'file'\n if (isMyRollingFileAppender(appender, name)) {\n NodeList childNodes = appender.getChildNodes();\n for (int j = 0; j < childNodes.getLength(); j++) {\n Node nextChild = childNodes.item(j);\n if (nextChild.getNodeName().equals(\"file\")) {\n nextChild.setTextContent(filepath.toString());\n break;\n }\n }\n break;\n }\n }\n // Write changes to XML-file\n Transformer transformer = TransformerFactory.newInstance()\n .newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(conf);\n transformer.transform(source, result);\n \n } catch (SAXException | IOException | ParserConfigurationException\n | TransformerConfigurationException ex) {\n System.out.println(\"Ошибка ввода-вывода при изменении XML-файла: \"+ex.getMessage());\n } catch (TransformerException ex) {\n System.out.println(\"Ошибка в траносформации XML \"+ex.getMessage());\n }\n }", "public void setXml(java.lang.String newXml);", "void configurationUpdated();", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }", "protected void propagateConfigData() {\n\t\tList<MeshNode> potentialChildren = configData.getChildNodes();\n\t\tList<MeshNode> notChildren = new ArrayList<MeshNode>();\n\t\tList<MeshNode> realChildren = new ArrayList<MeshNode>();\n\t\tfor (MeshNode i : potentialChildren) {\n\t\t\tif (!meshNetwork.probe(this, i)) {\n\t\t\t\tnotChildren.add(i);\n\t\t\t} else {\n\t\t\t\trealChildren.add(i);\n\t\t\t}\n\t\t}\n\t\tint startNumberCnt = 1;\n\t\tfor (MeshNode i : realChildren) {\n\t\t\ti.setStartNumber((startNumberCnt++) + this.startNumber);\n\t\t\tConfigData forExport = new ConfigData(i, notChildren);\n\t\t\tforExport.addParent(this);\n\t\t\tforExport.removeChildNode(i);\n\t\t\tmeshNetwork.sendConfigData(i, this, forExport);\n\t\t\tconfigData.configAckMap.put(i, false);\n\t\t}\n\t\tconfigData.setChildNodes(realChildren);\n\t}", "private void configureMerge(EObject original) {\n DSEMergeConfigurator configurator = configuratorMapping.get(original.eClass().getEPackage().getNsURI());\n if (configurator != null) {\n configureMerge(configurator);\n } else {\n logger.error(\"Missing required configuration for \" + original.eClass().getEPackage().getNsURI()); \n }\n }", "void overwrite(IConfiguration configuration);", "public static native Element overwrite(String oldId, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, configJS);\r\n\t}-*/;", "@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }", "public abstract boolean updateConfig();", "public abstract void updatePendingConfiguration(Configuration config);", "static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "public abstract void changeConfiguration(Configuration configuration);", "public void configure(Element node) throws Exception;", "public void testSaveConfig(PluginContainer container)throws Exception{\n \t System.out.print(\"Test mapping of rhq configuration to augeas tree.\");\n \t ApacheAugeasUtil apacheUtil = new ApacheAugeasUtil();\t \n \t //load augeas tree from temporary folder\n \t String path = ApacheTestConstants.getApacheConfigFilesPath();\n \t AugeasProxy proxy = apacheUtil.initAugeas(path+ApacheTestConstants.ROOT_CONFIG_FILE_NAME, path, path); \n \t AugeasTree tree = proxy.getAugeasTree(ApacheTestConstants.MODULE_NAME, true);\n \t //load augeas tree from temporary folder \"updateconfig\"\n \t String pathUpdate = ApacheTestConstants.getApacheConfigFilesPathForUpdate();\n \t AugeasProxy proxyUpdate = apacheUtil.initAugeas(pathUpdate+ApacheTestConstants.ROOT_CONFIG_FILE_NAME, pathUpdate, pathUpdate); \n \t AugeasTree treeUpdate = proxyUpdate.getAugeasTree(ApacheTestConstants.MODULE_NAME, true);\n \t \n \t for (Components component : Components.values()){\n List<AugeasNode> nodes = component.getAllNodes(tree);\n ConfigurationDefinition configDef = ApacheConfigurationUtil.getConfigurationDefinition(container, component);\n \n for (int i=0;i<nodes.size();i++){\n //load component from first tree - transfare that tree to configuration - and update second tree with that configuration\n String key = AugeasNodeSearch.getNodeKey(nodes.get(i), tree.getRootNode());\n Configuration config = ApacheConfigurationUtil.componentToConfiguration(container, component, key, tree);\n AugeasNode updateNode = AugeasNodeSearch.findNodeById(treeUpdate.getRootNode(), key);\n \n ApacheAugeasMapping mapping = new ApacheAugeasMapping(treeUpdate); \n mapping.updateAugeas(updateNode, config, configDef);\n }\n }\n \t treeUpdate.save();\n //test if the updated augeas tree can be mapped to configuration stored at files in \"loadconfig\" temporary directory \n \t testLoadConfig(treeUpdate, container);\n System.out.println(\" [success!]\");\n \t }", "protected void additionalConfig(ConfigType config){}", "@Override\n\tpublic Element saveToXml(boolean includeConfigState) {\n\t\treturn null;\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "public void testReplaceTokensInSamlConfigFile() throws Exception {\n String expectedGsaEntityId = C.entityIdForGsa(SecurityManagerTestCase.GSA_TESTING_ISSUER);\n String expectedSmEntityId = C.entityIdForSecMgr(SecurityManagerTestCase.GSA_TESTING_ISSUER);\n\n // the current iteration of what saml-metadata.xml looks like\n // which uses the ${GSA_ENTITY_ID} tag that needs to be replaced\n Metadata.setMetadataFile(\n new File(getClass().getResource(\"/saml-metadata.xml\").getFile()));\n Metadata metadata = Metadata.getInstanceForTest(\"currenthost.com\");\n assertEquals(expectedGsaEntityId, metadata.getGsaEntity().getEntityID());\n assertEquals(expectedSmEntityId, metadata.getSmEntity().getEntityID());\n\n // after 7.2, the secmgr string was {$GSA_ENTITY_ID}/security-manager\n // check that we replace this properly\n Metadata.setMetadataFile(\n new File(getClass().getResource(\"/saml-metadata-72.xml\").getFile()));\n metadata = Metadata.getInstanceForTest(\"72host.com\");\n assertEquals(expectedGsaEntityId, metadata.getGsaEntity().getEntityID());\n assertEquals(expectedSmEntityId, metadata.getSmEntity().getEntityID());\n\n // after 7.0, we used a simple hardcoded path, http://google.com/enterprise/gsa\n Metadata.setMetadataFile(\n new File(getClass().getResource(\"/saml-metadata-70.xml\").getFile()));\n metadata = Metadata.getInstanceForTest(\"70host.com\");\n assertEquals(expectedGsaEntityId, metadata.getGsaEntity().getEntityID());\n assertEquals(expectedSmEntityId, metadata.getSmEntity().getEntityID());\n\n // before 7.0, we used a hardcoded path with a ${ENT_CONFIG_NAME} tag that\n // would be replaced by the appliance ID. make sure we now replace it with\n // the proper value\n Metadata.setMetadataFile(\n new File(getClass().getResource(\"/saml-metadata-pre70.xml\").getFile()));\n metadata = Metadata.getInstanceForTest(\"pre70host.com\");\n assertEquals(expectedGsaEntityId, metadata.getGsaEntity().getEntityID());\n assertEquals(expectedSmEntityId, metadata.getSmEntity().getEntityID());\n\n // throughout all versions, we respected any path that was hardcoded that wasn't\n // our \"magic ids/tags\" (i.e. we don't replace them)\n Metadata.setMetadataFile(\n new File(getClass().getResource(\"/saml-metadata-fixedname.xml\").getFile()));\n metadata = Metadata.getInstanceForTest(\"fixedname.com\");\n assertEquals(\"http://some.id.name\", metadata.getGsaEntity().getEntityID());\n assertEquals(\"http://some.other.id.name\", metadata.getSmEntity().getEntityID());\n }", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "void confAltered(String path, ChangeType changeType);", "public void syncConfig(Configuration config)\n {\n userModCfgs = new HashMap<String, ThirdPartyModConfig>();\n /*\n * Get / Set 3rd Party Mod configs\n */\n TCSettings.userConfigOverridesIMC = config.getBoolean(\"userConfigOverridesIMC\", Reference.CTGY_TREE_MOD_CFG,\n TCSettings.userConfigOverridesIMCDefault, Reference.userConfigOverridesIMCDesc, \"bspkrs.tc.configgui.userConfigOverridesIMC\");\n TCSettings.saveIMCConfigsToFile = config.getBoolean(\"saveIMCConfigsToFile\", Reference.CTGY_TREE_MOD_CFG,\n TCSettings.saveIMCConfigsToFileDefault, Reference.saveIMCConfigsToFileDesc, \"bspkrs.tc.configgui.saveIMCConfigsToFile\");\n\n TCLog.configs(config, Reference.CTGY_TREE_MOD_CFG);\n\n config.setCategoryComment(Reference.CTGY_TREE_MOD_CFG, Reference.TREE_MOD_CFG_CTGY_DESC);\n config.setCategoryLanguageKey(Reference.CTGY_TREE_MOD_CFG, \"bspkrs.tc.configgui.ctgy.\" + Reference.CTGY_TREE_MOD_CFG);\n\n if (!config.hasCategory(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS))\n {\n // Write default tree/mod settings to config\n for (Entry<String, ThirdPartyModConfig> e : defaultConfigs().entrySet())\n e.getValue().writeToConfiguration(config, Reference.CTGY_TREE_MOD_CFG + \".\" + e.getKey());\n\n TCLog.info(\"Looks like a fresh config; default config loaded.\");\n }\n else\n TCLog.info(\"Proceeding to load tree/mod configs from file.\");\n\n config.setCategoryComment(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS, Reference.VAN_TREES_ITEMS_CTGY_DESC);\n config.setCategoryLanguageKey(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS,\n \"bspkrs.tc.configgui.ctgy.\" + Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS);\n\n // Load all configs found in the file to ModConfigRegistry\n for (String ctgy : config.getCategoryNames())\n {\n ConfigCategory cc = config.getCategory(ctgy);\n if (ctgy.indexOf(Reference.CTGY_TREE_MOD_CFG + \".\") != -1 && cc.containsKey(Reference.MOD_ID)\n && (cc.get(Reference.MOD_ID).getString().equals(Reference.MINECRAFT) || Loader.isModLoaded(cc.get(Reference.MOD_ID).getString())))\n {\n TCLog.debug(\"Loading file config for mod %s (config category %s)...\", cc.get(Reference.MOD_ID).getString(), ctgy);\n registerUserModConfig(ThirdPartyModConfig.readFromConfiguration(config, ctgy));\n }\n }\n }", "public void configure(Element parent) {\n }", "@Test\n public void testInterpolationOverMultipleSources()\n throws ConfigurationException\n {\n File testFile =\n ConfigurationAssert.getTestFile(\"testInterpolationBuilder.xml\");\n factory.setFile(testFile);\n CombinedConfiguration combConfig = factory.getConfiguration(true);\n assertEquals(\"Wrong value\", \"abc-product\",\n combConfig.getString(\"products.product.desc\"));\n XMLConfiguration xmlConfig =\n (XMLConfiguration) combConfig.getConfiguration(\"test\");\n assertEquals(\"Wrong value from XML config\", \"abc-product\",\n xmlConfig.getString(\"products/product/desc\"));\n SubnodeConfiguration subConfig =\n xmlConfig\n .configurationAt(\"products/product[@name='abc']\", true);\n assertEquals(\"Wrong value from sub config\", \"abc-product\",\n subConfig.getString(\"desc\"));\n }", "public void changed() {\n // from ChangeHandler\n configSave.enable();\n }", "private void saveConfiguration() {\n }", "@Override\n abstract public void commitPendingXmlChanges();", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "private static OMElement loadConfigXML() throws EventBrokerConfigurationException {\n\n String carbonConfigHome = CarbonBaseUtils.getCarbonConfigDirPath();\n File confFile = Paths.get(carbonConfigHome, EventBrokerConstants.EB_CONF).toFile();\n String path = confFile.toString();\n BufferedInputStream inputStream = null;\n try {\n inputStream = new BufferedInputStream(new FileInputStream(confFile));\n XMLStreamReader parser = XMLInputFactory.newInstance().\n createXMLStreamReader(inputStream);\n StAXOMBuilder builder = new StAXOMBuilder(parser);\n OMElement omElement = builder.getDocumentElement();\n omElement.build();\n return omElement;\n } catch (FileNotFoundException e) {\n throw new EventBrokerConfigurationException(EventBrokerConstants.EB_CONF\n + \"cannot be found in the path : \" + path, e);\n } catch (XMLStreamException e) {\n throw new EventBrokerConfigurationException(\"Invalid XML for \" + EventBrokerConstants.EB_CONF\n + \" located in the path : \" + path, e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ingored) {\n throw new EventBrokerConfigurationException(\"Can not close the input stream\");\n }\n }\n }", "void overwriteContent(Md2Entity content);", "@Override\n public void loadNewConfig(String newCfgName) {\n currentConfigFileName = newCfgName;\n mesoCfgXML = (SCANConfigMesoXML) readExistingConfig();\n createAttributeMap(getAttributes());\n }", "@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}", "public void testXmlInsert() {\r\n \r\n GrouperSession.startRootSession();\r\n \r\n AuditType auditTypeOriginal = exampleAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\");\r\n \r\n //not sure why I need to sleep, but the last membership update gets messed up...\r\n GrouperUtil.sleep(1000);\r\n \r\n //do this because last membership update isnt there, only in db\r\n auditTypeOriginal = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n AuditType auditTypeCopy = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n AuditType auditTypeCopy2 = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n HibernateSession.byObjectStatic().delete(auditTypeCopy);\r\n \r\n //lets insert the original\r\n auditTypeCopy2.xmlSaveBusinessProperties(null);\r\n auditTypeCopy2.xmlSaveUpdateProperties();\r\n\r\n //refresh from DB\r\n auditTypeCopy = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n \r\n assertFalse(auditTypeCopy == auditTypeOriginal);\r\n assertFalse(auditTypeCopy.xmlDifferentBusinessProperties(auditTypeOriginal));\r\n assertFalse(auditTypeCopy.xmlDifferentUpdateProperties(auditTypeOriginal));\r\n \r\n }", "public abstract void updatePendingActivityConfiguration(IBinder activityToken,\n Configuration overrideConfig);", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "void overwriteDefaultConfiguration(Map<String, Object> config);", "private void override() {\n AppSettings.setInstance(\n ConfigFactory.parseMap(newSettingsMap).withFallback(AppSettings.getInstance()));\n }", "public Configuration update(final Configuration configuration);", "public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}", "private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }", "private boolean loadXmlConfigFile(){\n\n // Load the configuration file into a CnfData instance\n CnfXml cnfXml = new CnfXml();\n if (!cnfXml.loadFile()) {\n System.out.println(\"ERROR, failed to load XML Config file\");\n return false;\n }\n\n CnfData newData = cnfXml.getCnfData();\n\n // Validate cnfData first (and fix if necessary)\n newData.setLinks(CnfData.getInstance().getAllLinks());\n newData.validateAndFix();\n\n // Store the loaded data into the H2Database\n CnfDao cnfDao = new CnfDao();\n cnfDao.setDbConnection(H2DatabaseAccess.getDbConnection());\n\n try {\n cnfDao.setAllCnfDevices(newData.getAllDevices());\n cnfDao.setAllCnfViews(newData.getAllViews());\n cnfDao.setAllCnfViewLinks(newData.getAllViews());\n cnfDao.setAllCnfSections(newData.getAllSections());\n cnfDao.setAllCnfLinks(newData.getAllLinks());\n } catch (SQLException e) {\n System.out.println(\"ERROR, failed to write XML Config file data to H2 database\");\n return false;\n }\n\n // Update the singleton CnfData\n\t\tCnfData.getInstance().setDevices(newData.getAllDevices());\n CnfData.getInstance().setViews(newData.getAllViews());\n CnfData.getInstance().setSections(newData.getAllSections());\n CnfData.getInstance().setLinks(newData.getAllLinks());\n\n return true;\n }", "public void save() {\n if (worldOreConfig == null) {\n return;\n }\n\n final WorldOreConfig worldOreConfig;\n\n if (!(this.worldOreConfig instanceof ConfigurationSerializable)) {\n worldOreConfig = new WorldOreConfigYamlImpl(this.worldOreConfig.getName(), this.worldOreConfig.getConfigType(), this.worldOreConfig.getOreSettings(), this.worldOreConfig.getBiomeOreSettings());\n } else {\n worldOreConfig = this.worldOreConfig;\n }\n\n final Config config = new Config(file);\n\n config.set(\"value\", worldOreConfig);\n\n try {\n config.options().header(\"This file is machine generated, please use the in game commands and gui to change values. \\nModifying this file per hand on your own risk.\").copyHeader(true);\n config.save(file);\n } catch (final IOException e) {\n throw new RuntimeException(\"Unexpected error while saving WorldOreConfig \" + worldOreConfig.getName() + \" to disk!\", e);\n }\n }", "private PlexusConfiguration copyConfiguration( Xpp3Dom src, String iteratorName, String value )\n {\n\n XmlPlexusConfiguration dom = new XmlPlexusConfiguration( src.getName() );\n\n if ( src.getValue() == null )\n {\n dom.setValue( src.getValue() );\n }\n else\n {\n if ( src.getValue().contains( iteratorName ) )\n {\n dom.setValue( src.getValue().replaceAll( iteratorName, value ) );\n }\n else\n {\n dom.setValue( src.getValue() );\n }\n }\n\n for ( String attributeName : src.getAttributeNames() )\n {\n dom.setAttribute( attributeName, src.getAttribute( attributeName ) );\n }\n\n for ( Xpp3Dom child : src.getChildren() )\n {\n dom.addChild( copyConfiguration( child, iteratorName, value ) );\n }\n\n return dom;\n }", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "private static void putPreferencesInXml(Element elt, Document doc, Preferences prefs, boolean subTree) throws BackingStoreException {\n Preferences[] kidsCopy = null;\n String[] kidNames = null;\n synchronized (((AbstractPreferences) prefs).lock) {\n if (((AbstractPreferences) prefs).isRemoved()) {\n elt.getParentNode().removeChild(elt);\n return;\n }\n int i;\n String[] keys = prefs.keys();\n Element map = (Element) elt.appendChild(doc.createElement(PolicyMappingsExtension.MAP));\n for (i = 0; i < keys.length; i++) {\n Element entry = (Element) map.appendChild(doc.createElement(\"entry\"));\n entry.setAttribute(\"key\", keys[i]);\n entry.setAttribute(\"value\", prefs.get(keys[i], null));\n }\n if (subTree) {\n kidNames = prefs.childrenNames();\n kidsCopy = new Preferences[kidNames.length];\n for (i = 0; i < kidNames.length; i++) {\n kidsCopy[i] = prefs.node(kidNames[i]);\n }\n }\n }\n }", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "private TBMFocalElement extendOld(TBMFocalElement focalElement, TBMVarDomain domain) {\n\n TBMFocalElement result = this.createFocalElement();\n\n result.setMass(focalElement.getMass());\n result.setDomain(domain);\n // Get from domain the variables that are not in focalElement \n Set<Resource> diff = domain.listVariables().filterDrop(r -> focalElement.getDomain().hasVariable(r)).toSet();\n\n if (diff.isEmpty()) { //there are no differences, clone the focalElement and it's configurations\n // Clone focal element\n Set<TBMConfiguration> iterConfs = focalElement.listAllConfigurations().toSet();\n for (TBMConfiguration conf : iterConfs) {\n //Create empty conf\n TBMConfiguration newConfig = this.createConfiguration();\n //Add variables of config\n //configuration.listAllElements().forEachRemaining(res -> newConfig.addElement(res)); \n conf.listAllElements().toSet().forEach(elem -> newConfig.addElement(elem));\n //newConfig.addElement(iterElements.next());\n\n //Add config to result\n result.addConfiguration(newConfig);\n }\n } else { //there are differences\n\n Set<TBMConfiguration> resultConfigurations = new HashSet<>();\n\n ExtendedIterator<TBMConfiguration> origConfigurations = focalElement.listAllConfigurations();\n while (origConfigurations.hasNext()) {\n resultConfigurations.add(origConfigurations.next());\n }\n\n // For each of the different variables\n for (Resource var : diff) {\n\n Set<TBMConfiguration> newConfigurations = new HashSet<>();\n\n // For each of the instances of the variable\n Set<Resource> instance = this.listSubjectsWithProperty(RDF.type, var).toSet();\n for (Resource newVar : instance) {\n\n for (TBMConfiguration resultConfiguration : resultConfigurations) {\n //Create empty conf\n TBMConfiguration currentConfig = this.createConfiguration();\n //Add variables of current config\n for (Resource res : resultConfiguration.listAllElements().toSet()) {\n currentConfig.addElement(res);\n }\n //resultConfiguration.listAllElements().forEachRemaining(res -> currentConfig.addElement(res));\n //Add new variable\n currentConfig.addElement(newVar);\n //Add result to current congig\n newConfigurations.add(currentConfig);\n }\n }\n //replace old configs with new configs\n resultConfigurations = newConfigurations;\n }\n\n //add resulting configs to result FE\n resultConfigurations.forEach(conf -> result.addConfiguration(conf));\n\n }\n return result;\n\n }", "public void updateOMConfigs(OzoneConfiguration newConf) {\n for (OzoneManager om : omhaService.getActiveServices()) {\n om.setConfiguration(newConf);\n }\n }", "public void setConfigurationContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localConfigurationContextTracker = true;\n \n this.localConfigurationContext=param;\n \n\n }", "public void configChanged ()\n {\n// log.info(\"Config changed \" + _tree.getSelectedNode().getConfig(),\n// \"lastValue\", _lastValue);\n ManagedConfig oldLastValue = _lastValue;\n _lastValue = (ManagedConfig)\n ((ManagedConfig)_tree.getSelectedNode().getConfig()).clone();\n maybePostUndo(\n new ConfigEdit(ConfigEdit.Type.CHANGE, group, _lastValue, oldLastValue));\n\n DirtyGroupManager.setDirty(group, true);\n _tree.selectedConfigChanged();\n }", "public static XMLConfiguration getNewXMLConfiguration(String configName) throws ConfigurationException, IOException{\n\t\tif (configList.containsKey(configName)){\n\t\t\tconfigList.remove(configName);\n\t\t}\n\t\treturn getXMLConfiguration(configName);\n\t}", "void saveConfig() {\r\n\t\ttry {\r\n\t\t\tPrintWriter out = new PrintWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(\"open-ig-mapeditor-config.xml\"), 64 * 1024), \"UTF-8\"));\r\n\t\t\ttry {\r\n\t\t\t\tout.printf(\"<?xml version='1.0' encoding='UTF-8'?>%n\");\r\n\t\t\t\tout.printf(\"<mapeditor-config>%n\");\r\n\t\t\t\tout.printf(\" <window x='%d' y='%d' width='%d' height='%d' state='%d'/>%n\", getX(), getY(), getWidth(), getHeight(), getExtendedState());\r\n\t\t\t\tout.printf(\" <language id='%s'/>%n\", ui.languageEn.isSelected() ? \"en\" : \"hu\");\r\n\t\t\t\tout.printf(\" <splitters main='%d' preview='%d' surfaces='%d'/>%n\", split.getDividerLocation(), toolSplit.getDividerLocation(), featuresSplit.getDividerLocation());\r\n\t\t\t\tout.printf(\" <editmode type='%s'/>%n\", ui.buildButton.isSelected());\r\n\t\t\t\tout.printf(\" <tabs selected='%d'/>%n\", propertyTab.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <lights preview='%d' map='%s'/>%n\", alphaSlider.getValue(), Float.toString(alpha));\r\n\t\t\t\tout.printf(\" <filter surface='%s' building='%s'/>%n\", XML.toHTML(filterSurface.getText()), XML.toHTML(filterBuilding.getText()));\r\n\t\t\t\tout.printf(\" <allocation worker='%s' strategy='%d'/>%n\", ui.allocationPanel.availableWorkers.getText(), ui.allocationPanel.strategies.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <view buildings='%s' minimap='%s' textboxes='%s' zoom='%s' standard-fonts='%s' placement-hints='%s'/>%n\", ui.viewShowBuildings.isSelected(), \r\n\t\t\t\t\t\tui.viewSymbolicBuildings.isSelected(), ui.viewTextBackgrounds.isSelected(), Double.toString(renderer.scale), ui.viewStandardFonts.isSelected()\r\n\t\t\t\t\t\t, ui.viewPlacementHints.isSelected());\r\n\t\t\t\tout.printf(\" <custom-surface-names>%n\");\r\n\t\t\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-surface-names>%n\");\r\n\t\t\t\tout.printf(\" <custom-building-names>%n\");\r\n\t\t\t\tfor (TileEntry te : buildingTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-building-names>%n\");\r\n\t\t\t\tout.printf(\" <recent>%n\");\r\n\t\t\t\tfor (int i = ui.fileRecent.getItemCount() - 1; i >= 2 ; i--) {\r\n\t\t\t\t\tout.printf(\" <entry file='%s'/>%n\", XML.toHTML(ui.fileRecent.getItem(i).getText()));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </recent>%n\");\r\n\t\t\t\tout.printf(\"</mapeditor-config>%n\");\r\n\t\t\t} finally {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void updateConfig(ContestConfig contestConfig) throws ContestManagementException {\r\n\r\n }", "@Test\n public void testExtendedXMLConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(EXTENDED_PROVIDER_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n Configuration config = cc.getConfiguration(\"xml\");\n assertNotNull(\"Test configuration not present\", config);\n assertTrue(\"Configuration is not ExtendedXMLConfiguration, is \" +\n config.getClass().getName(), config instanceof ExtendedXMLConfiguration);\n }", "public void notifyConfigChange() {\n }", "public void mergePlugin(NewPortalConfigListener other) {\n // if other didn't actually set anything for the default portal name\n // then we should continue to use the current value. This way if an extension\n // doesn't set it, it wont override the parent's set value.\n if (other.defaultPortalSpecified) {\n this.defaultPortal = other.defaultPortal;\n }\n \n if (other.defaultPortalTemplate != null && other.defaultPortalTemplate.length() > 0) {\n this.defaultPortalTemplate = other.defaultPortalTemplate;\n }\n \n if (configs == null) {\n this.configs = other.configs;\n } else if (other.configs != null && !other.configs.isEmpty()) {\n List<NewPortalConfig> result = new ArrayList<NewPortalConfig>(configs);\n result.addAll(other.configs);\n this.configs = Collections.unmodifiableList(result);\n }\n \n if (templateConfigs == null) {\n this.templateConfigs = other.templateConfigs;\n } else if (other.templateConfigs != null && !other.templateConfigs.isEmpty()) {\n List<SiteConfigTemplates> result = new ArrayList<SiteConfigTemplates>(templateConfigs);\n result.addAll(other.templateConfigs);\n this.templateConfigs = Collections.unmodifiableList(result);\n }\n }", "void addHasNodeSettings(NodeSettings newHasNodeSettings);", "public void salvaConfigurazione(Configurazione conf) {\n\t\tthis.aggiungiInCatalogo((Componente) conf);\n\t}", "public void reload() {\n try {\n this.configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void updateConfig(ContestConfig arg0) throws ContestManagementException {\r\n }", "private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }", "@Override\n\tpublic void setConfigChanged(boolean changed) {\n\t\t//do nothing\n\t}", "@Override\n public void apply(EntityLocal entity) {\n if (entity.getParent() != null) {\n return;\n }\n EntitlementContext entitlementContext = Entitlements.getEntitlementContext();\n AttributeSensor<DeploymentMetadata> sensor = Sensors.newSensor(\n DeploymentMetadata.class,\n DEPLOYMENT_METADATA,\n \"A map of metadata information about this particular deployment. Contains at least who triggered it and when.\");\n ((EntityInternal) entity).getMutableEntityType().addSensor(sensor);\n\n DeploymentMetadata result = new DeploymentMetadata();\n\n // will convert config, then tag, and then republish\n\n result.read( entity.config().get(ConfigKeys.newConfigKey(Object.class, DEPLOYMENT_METADATA)), false );\n result.read(BrooklynTags.findSingleKeyMapValue(DEPLOYMENT_METADATA, Object.class, entity.tags().getTags()), false);\n result.read(ImmutableMap.of(\n \"user\", entitlementContext != null\n ? entitlementContext.user()\n : \"Unknown\",\n \"created\", Instant.now()), false);\n\n entity.sensors().set(sensor, result);\n\n }", "public void updatePersistentConfiguration(Configuration config) {\n this.mService.updatePersistentConfiguration(config);\n }", "protected SourceInterestMap updateEntity(SourceInterestMap entity, SourceInterestMap newEntity) {\n EntityManager em = PersistenceService.getInstance().getEntityManager();\n InterestArea interestAreaId = entity.getInterestAreaId();\n InterestArea interestAreaIdNew = newEntity.getInterestAreaId();\n Source sourceId = entity.getSourceId();\n Source sourceIdNew = newEntity.getSourceId();\n entity = em.merge(newEntity);\n if (interestAreaId != null && !interestAreaId.equals(interestAreaIdNew)) {\n interestAreaId.getSourceInterestMapCollection().remove(entity);\n }\n if (interestAreaIdNew != null && !interestAreaIdNew.equals(interestAreaId)) {\n interestAreaIdNew.getSourceInterestMapCollection().add(entity);\n }\n if (sourceId != null && !sourceId.equals(sourceIdNew)) {\n sourceId.getSourceInterestMapCollection().remove(entity);\n }\n if (sourceIdNew != null && !sourceIdNew.equals(sourceId)) {\n sourceIdNew.getSourceInterestMapCollection().add(entity);\n }\n return entity;\n }", "public void\t\tsetConfiguration(Object obj);", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList addNewServiceConfigurationList();", "protected void updateConfiguration(final Configuration newConfig) {\n this.privateConfig = new PrivateConfig(newConfig, this);\n }", "public void extend(){\n\t\tsolenoid1.set(true);\n\t\tsolenoid2.set(true);\n\t}", "@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}", "@Override\n public void setConf(Configuration conf) {\n }", "public void transferStateToConfig() {\r\n \t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_RUNTIME_NAME,\r\n \t\t\t\t\tjBossSeamHomeEditor.getValueAsString());\r\n \r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_CONNECTION_PROFILE,\r\n \t\t\t\t\tconnProfileSelEditor.getValueAsString());\r\n \t\t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.JBOSS_AS_DEFAULT_DEPLOY_AS,\r\n \t\t\t\t\tthis.jBossAsDeployAsEditor.getValueAsString());\r\n \t\t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.HIBERNATE_DEFAULT_DB_TYPE,\r\n \t\t\t\t\tthis.jBossHibernateDbTypeEditor.getValueAsString());\r\n \t\t\t\r\n \t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKXml() throws Exception {\n\t}", "public void configAdded (ConfigEvent<ManagedConfig> event) {\n maybePostUndo(new ConfigEdit(ConfigEdit.Type.ADD,\n (ConfigGroup<?>)event.getSource(),\n event.getConfig(),\n null));\n }", "@Override\n public Boolean mergeMsgConfiguration(Configuration configuration) {\n boolean result = isMsgConfigurationExist(configuration.getName());\n if ( !result ) {\n try {\n configurationDao.save(configuration);\n return true;\n } catch (Exception e) {\n logger.error(\"Error when saving configuration\", e);\n }\n }\n return false;\n }", "public abstract void setConfig(String config) throws java.rmi.RemoteException;", "@Test\n public void testLoadXMLWithSettings() throws Exception\n {\n File confDir = new File(\"conf\");\n File targetDir = new File(\"target\");\n File testXMLValidationSource = new File(confDir,\n \"testValidateInvalid.xml\");\n File testSavedXML = new File(targetDir, \"testSave.xml\");\n File testSavedFactory = new File(targetDir, \"testSaveFactory.xml\");\n URL dtdFile = getClass().getResource(\"/properties.dtd\");\n final String publicId = \"http://commons.apache.org/test.dtd\";\n\n XMLConfiguration config = new XMLConfiguration(\"testDtd.xml\");\n config.setPublicID(publicId);\n config.save(testSavedXML);\n factory.addProperty(\"xml[@fileName]\", testSavedXML.getAbsolutePath());\n factory.addProperty(\"xml(0)[@validating]\", \"true\");\n factory.addProperty(\"xml(-1)[@fileName]\", testXMLValidationSource\n .getAbsolutePath());\n factory.addProperty(\"xml(1)[@config-optional]\", \"true\");\n factory.addProperty(\"xml(1)[@validating]\", \"true\");\n factory.save(testSavedFactory);\n\n factory = new DefaultConfigurationBuilder();\n factory.setFile(testSavedFactory);\n factory.registerEntityId(publicId, dtdFile);\n factory.clearErrorListeners();\n Configuration c = factory.getConfiguration();\n assertEquals(\"Wrong property value\", \"value1\", c.getString(\"entry(0)\"));\n assertFalse(\"Invalid XML source was loaded\", c\n .containsKey(\"table.name\"));\n\n testSavedXML.delete();\n testSavedFactory.delete();\n }", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public void store() {\n \n try {\n ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Object>() {\n public Object run() {\n \n resolveProjectDependencies();\n \n // Some properties need special handling e.g. if the\n // property changes the project.xml files\n for(final PropertyInfo pi:properties.values()) {\n pi.encode();\n }\n \n final ProjectConfiguration configs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final HashSet<ProjectConfiguration> newConfigs = new HashSet<ProjectConfiguration>(Arrays.asList(devConfigs));\n for (int i=0; i<configs.length; i++) {\n if (!newConfigs.remove(configs[i])) {\n configHelper.removeConfiguration(configs[i]);\n }\n }\n for (ProjectConfiguration cfg:newConfigs) {\n configHelper.addConfiguration(cfg.getDisplayName());\n }\n \n \n // Reread the properties. It may have changed when\n // e.g. when setting references to another projects\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n\n // Set the changed properties\n for( final PropertyInfo pi:properties.values()) {\n final PropertyDescriptor pd = pi.getPropertyDescriptor();\n if (pd != null && pi.isModified()) {\n final String newValueEncoded = pi.getNewValueEncoded();\n if ( newValueEncoded != null ) {\n (pd.isShared() ? sharedProps : privateProps).setProperty( pd.getName(), newValueEncoded );\n } else {\n // remove property\n (pd.isShared() ? sharedProps : privateProps).remove(pd.getName());\n }\n }\n }\n \n // Store the property changes into the project\n antProjectHelper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, sharedProps);\n antProjectHelper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, privateProps);\n \n // Invoke this method to perform cyclic dependencies check and potentionally show warning dilalog\n CustomizerGeneral cg = new CustomizerGeneral();\n cg.initValues(J2MEProjectProperties.this, null);\n cg.getSortedSubprojectsList();\n \n //storing global default encoding by dcurrent project (see issue #97855)\n String enc = sharedProps.getProperty(DefaultPropertiesDescriptor.JAVAC_ENCODING);\n if (enc != null) FileEncodingQuery.setDefaultEncoding(Charset.forName(enc));\n \n // save the project under write lock\n try {\n ProjectManager.getDefault().saveProject(project);\n } catch (IOException ex) {\n ErrorManager.getDefault().notify(ex);\n }\n\n return null;\n }\n });\n } catch (MutexException e) {\n ErrorManager.getDefault().notify(e.getException());\n }\n \n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdXml() throws Exception {\n\t}", "private static void updateExternalReferences(GenEditorGenerator newEditorGenerator, final GenEditorGenerator oldEditorGenerator, List<EObject> allContentButOldGenerator) {\n \t\tfinal Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = new ExternalCrossReferencer(allContentButOldGenerator) {\n \t\t\t@Override\n \t\t\tprotected boolean crossReference(EObject object, EReference reference, EObject crossReferencedEObject) {\n \t\t\t\treturn super.crossReference(object, reference, crossReferencedEObject) && EcoreUtil.isAncestor(oldEditorGenerator, crossReferencedEObject);\n \t\t\t}\n \n \t\t\tMap<EObject, Collection<EStructuralFeature.Setting>> find() {\n \t\t\t\treturn findExternalCrossReferences();\n \t\t\t}\n \t\t}.find();\n \t\t// match new and old objects using reconciler without decisions\n \t\tnew Reconciler(new GMFGenConfig()) {\n \t\t\t@Override\n \t\t\tprotected void handleNotMatchedCurrent(EObject current) {/*no-op*/};\n \t\t\t@Override\n \t\t\tprotected EObject handleNotMatchedOld(EObject currentParent, EObject notMatchedOld) {\n \t\t\t\treturn null; /*no-op*/\n \t\t\t};\n \t\t\t@Override\n \t\t\tprotected void reconcileVertex(EObject current, EObject old) {\n \t\t\t\tif (!crossReferences.containsKey(old)) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t// and replace old values with new\n \t\t\t\tfor (EStructuralFeature.Setting s : crossReferences.get(old)) {\n \t\t\t\t\ts.set(current);\n \t\t\t\t}\n \t\t\t}\n \t\t}.reconcileTree(newEditorGenerator, oldEditorGenerator);\n \t}", "abstract void putXMLProperty(XMLName name, Object value);", "public void markLocalConfigApnReplace() throws JNCException {\n markLeafReplace(\"localConfigApn\");\n }", "public interface FacesConfig extends JSFConfigComponent, IdentifiableElement {\n \n /**\n * Property for &lt;managed-bean&gt; element\n */\n String MANAGED_BEAN = JSFConfigQNames.MANAGED_BEAN.getLocalName();\n /**\n * Property of &lt;navigation-rule&gt; element\n */\n String NAVIGATION_RULE = JSFConfigQNames.NAVIGATION_RULE.getLocalName();\n /**\n * Property of &lt;converter&gt; element\n */\n String CONVERTER = JSFConfigQNames.CONVERTER.getLocalName();\n \n /**\n * Property of &lt;application&gt; element\n */\n String APPLICATION = JSFConfigQNames.APPLICATION.getLocalName();\n \n /**\n * Property of &lt;ordering&gt; element\n */\n String ORDERING = JSFConfigQNames.ORDERING.getLocalName();\n \n /**\n * Property of &lt;absolute-ordering&gt; element\n */\n String ABSOLUTE_ORDERING =JSFConfigQNames.ABSOLUTE_ORDERING.getLocalName();\n \n /**\n * Property of &lt;factory&gt; element\n */\n String FACTORY =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;component&gt; element\n */\n String COMPONENT =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;name&gt; element.\n */\n String NAME = JSFConfigQNames.NAME.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String REFERENCED_BEAN = JSFConfigQNames.REFERENCED_BEAN.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String RENDER_KIT = JSFConfigQNames.RENDER_KIT.getLocalName();\n \n /**\n * Property of &lt;lifecycle&gt; element.\n */\n String LIFECYCLE= JSFConfigQNames.LIFECYCLE.getLocalName();\n \n /**\n * Property of &lt;validator&gt; element.\n */\n String VALIDATOR= JSFConfigQNames.VALIDATOR.getLocalName();\n \n /**\n * Property of &lt;faces-config-extension&gt; element.\n */\n String FACES_CONFIG_EXTENSION= JSFConfigQNames.FACES_CONFIG_EXTENSION.getLocalName();\n \n /**\n * Property of &lt;behavior&gt; element.\n */\n String BEHAVIOR= JSFConfigQNames.BEHAVIOR.getLocalName();\n \n \n /**\n * Attribute &lt;metadata-complete&gt; element.\n */\n String METADATA_COMPLETE = \"metadata-complete\"; // NOI18N\n \n /**\n * Attribute &lt;version&gt; element.\n */\n String VERSION = \"version\"; // NOI18N\n\n /**\n * Attribute &lt;faces-flow-definition&gt; element.\n */\n String FLOW_DEFINITION = JSFConfigQNames.FLOW_DEFINITION.getLocalName();\n\n /**\n * Attribute &lt;protected-views&gt; element.\n */\n String PROTECTED_VIEWS = JSFConfigQNames.PROTECTED_VIEWS.getLocalName();\n \n List<Ordering> getOrderings();\n void addOrdering(Ordering ordering);\n void removeOrdering(Ordering ordering);\n \n List<AbsoluteOrdering> getAbsoluteOrderings();\n void addAbsoluteOrdering(AbsoluteOrdering ordering);\n void removeAbsoluteOrdering(AbsoluteOrdering ordering);\n \n List<Factory> getFactories();\n void addFactories( Factory factory );\n void removeFactory( Factory factory );\n \n List<Component> getComponents();\n void addComponent( FacesComponent component );\n void removeComponent( FacesComponent component );\n \n List<Name> getNames();\n void addName( Name name );\n void removeName(Name name );\n \n List<ReferencedBean> getReferencedBeans();\n void addReferencedBean( ReferencedBean bean );\n void removeReferencedBean( ReferencedBean bean);\n \n List<RenderKit> getRenderKits();\n void addRenderKit( RenderKit kit );\n void removeRenderKit( RenderKit kit );\n \n List<Lifecycle> getLifecycles();\n void addLifecycle( Lifecycle lifecycle );\n void removeLifecycle( Lifecycle lifecycle );\n \n List<FacesValidator> getValidators();\n void addValidator( FacesValidator validator );\n void removeValidator( FacesValidator validator );\n \n List<FacesConfigExtension> getFacesConfigExtensions();\n void addFacesConfigExtension( FacesConfigExtension extension );\n void removeFacesConfigExtension( FacesConfigExtension extension );\n \n List<Converter> getConverters();\n void addConverter(Converter converter);\n void removeConverter(Converter converter);\n \n List <ManagedBean> getManagedBeans();\n void addManagedBean(ManagedBean bean);\n void removeManagedBean(ManagedBean bean);\n \n List<NavigationRule> getNavigationRules();\n void addNavigationRule(NavigationRule rule);\n void removeNavigationRule(NavigationRule rule);\n \n List<Application> getApplications();\n void addApplication(Application application);\n void removeApplication(Application application);\n \n List<FacesBehavior> getBehaviors();\n void addBehavior( FacesBehavior behavior );\n void removeBehavior( FacesBehavior behavior );\n\n List<FlowDefinition> getFlowDefinitions();\n void addFlowDefinition(FlowDefinition flowDefinition);\n void removeFlowDefinition(FlowDefinition flowDefinition);\n\n List<ProtectedViews> getProtectedViews();\n void addProtectedView(ProtectedViews protectedView);\n void removeProtectedView(ProtectedViews protectedView);\n \n void addFacesConfigElement( int index, FacesConfigElement element );\n List<FacesConfigElement> getFacesConfigElements();\n \n Boolean isMetaDataComplete();\n void setMetaDataComplete( Boolean isMetadataComplete);\n \n String getVersion();\n void setVersion(String version);\n}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }", "Map<String, Object> updateConfig(VirtualHost vhost, String configtype, String id, Map<String, Object> doc);", "public void addConfiguredXMLCatalog(XMLCatalog catalog) {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n // Add all nested elements to our catalog\n getElements().addAll(catalog.getElements());\n\n // Append the classpath of the nested catalog\n Path nestedClasspath = catalog.getClasspath();\n createClasspath().append(nestedClasspath);\n\n // Append the catalog path of the nested catalog\n Path nestedCatalogPath = catalog.getCatalogPath();\n createCatalogPath().append(nestedCatalogPath);\n setChecked(false);\n }", "protected void elementInstered(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.elementInstered(evt);\r\n\t\t// the inserted node\r\n\t\tElement t = (Element) evt.getTarget();\r\n\t\t// its next sibling\r\n\t\tNode s = t.getNextSibling();\r\n\t\twhile (s != null && s.getNodeType() != Node.ELEMENT_NODE) {\r\n\t\t\ts = s.getNextSibling();\r\n\t\t}\r\n\t\tDUNID sdunid = DUNIDDocHelper.getDUNID((Element) s);\r\n\t\t// its parent node\r\n\t\tElement p = (Element) t.getParentNode();\r\n\t\tDUNID pdunid = DUNIDDocHelper.getDUNID(p);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tDocument d = getOwnerDUNIDDoc(p).getDocument();\r\n\t\tElement pori = DUNIDDocHelper.getElement(d, pdunid);\r\n\t\tpori.insertBefore(d.importNode(t, true),\r\n\t\t\t\tDUNIDDocHelper.getElement(d, sdunid));\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\td = getTargetsDescriptor().getDocument();\r\n\t\tpori = DUNIDDocHelper.getElement(d, pdunid);\r\n\t\tif (pori != null) { // inserted node parent is in the targets descriptor\r\n\t\t\tpori.insertBefore(d.importNode(t, true),\r\n\t\t\t\t\tDUNIDDocHelper.getElement(d, sdunid));\r\n\t\t}\r\n\t}", "public void saveProperties()\n {\n _appContext.Configuration.save();\n }", "void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;", "@Override\n public void addAdditionalConfig(List<String> list, boolean visible_only) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; RTGraphComponent mycomp = (RTGraphComponent) getRTComponent();\n list.add(\"#AC extents|\" + extents.getX() + \"|\" + extents.getY() + \"|\" + extents.getWidth() + \"|\" + extents.getHeight());\n // Save the retained nodes\n if (retained_nodes.size() > 0) {\n StringBuffer sb = new StringBuffer();\n Iterator<String> it = retained_nodes.iterator();\n sb.append(\"#AC retain\"); while (it.hasNext()) sb.append(\"|\" + Utils.encToURL(it.next()));\n list.add(sb.toString());\n }\n // Save the sticky labels\n if (mycomp.sticky_labels != null && mycomp.sticky_labels.size() > 0) {\n StringBuffer sb = new StringBuffer(); \n Iterator<String> it = mycomp.sticky_labels.iterator();\n sb.append(\"#AC sticky\"); while (it.hasNext()) sb.append(\"|\" + Utils.encToURL(it.next()));\n list.add(sb.toString());\n }\n // Pick out the right iterator -- if the visible one is available, use that\n Iterator<String> it;\n if (visible_only && myrc != null) it = myrc.entity_counter_context.binIterator();\n else it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next(); Point2D point = entity_to_wxy.get(entity);\n list.add(\"#AC wxy|\" + Utils.encToURL(entity) + \"|\" + point.getX() + \"|\" + point.getY());\n }\n list.add(\"#AC graphend\");\n }" ]
[ "0.59380907", "0.5821351", "0.5687506", "0.5663774", "0.5659796", "0.56261486", "0.55657804", "0.5505939", "0.5491875", "0.54860663", "0.5450124", "0.54325753", "0.5398225", "0.5334266", "0.52795786", "0.5265751", "0.5262127", "0.52533674", "0.5243266", "0.52291685", "0.52107626", "0.52049667", "0.5204025", "0.50991875", "0.5076821", "0.5069395", "0.506222", "0.50514144", "0.50214535", "0.50035304", "0.49993843", "0.49977696", "0.4977712", "0.49563393", "0.49441665", "0.49261057", "0.4925329", "0.49137843", "0.49069038", "0.48850986", "0.48647505", "0.48573166", "0.48533425", "0.48517475", "0.48352697", "0.48336852", "0.48332638", "0.48279786", "0.48205823", "0.4815924", "0.48157188", "0.48131", "0.481278", "0.47929367", "0.4789965", "0.4785436", "0.47804326", "0.4776835", "0.47765902", "0.4767296", "0.47575998", "0.47558528", "0.4748283", "0.4744213", "0.47439635", "0.47358805", "0.473283", "0.47304124", "0.47287184", "0.4720547", "0.47140145", "0.46938595", "0.46900553", "0.4675416", "0.46597415", "0.4649635", "0.46472615", "0.46340597", "0.46319342", "0.462716", "0.4625452", "0.4624679", "0.46226758", "0.4619784", "0.4618091", "0.46162724", "0.46138895", "0.46121523", "0.46067402", "0.46062714", "0.46028167", "0.45991164", "0.4598016", "0.45971534", "0.45934466", "0.45861435", "0.4584576", "0.45818323", "0.45812765", "0.45760417" ]
0.6293838
0
Deletes the xml entity from the shared configuration.
public void deleteXmlEntity(XmlEntity xmlEntity, String[] groups) { lockSharedConfiguration(); try { Region<String, Configuration> configRegion = getConfigurationRegion(); // No group is specified, so delete in every single group if it exists. if (groups == null) { Set<String> groupSet = configRegion.keySet(); groups = groupSet.toArray(new String[0]); } for (String group : groups) { Configuration configuration = configRegion.get(group); if (configuration != null) { String xmlContent = configuration.getCacheXmlContent(); try { if (xmlContent != null && !xmlContent.isEmpty()) { Document doc = XmlUtils.createAndUpgradeDocumentFromXml(xmlContent); XmlUtils.deleteNode(doc, xmlEntity); configuration.setCacheXmlContent(XmlUtils.prettyXml(doc)); configRegion.put(group, configuration); } } catch (Exception e) { logger.error("error updating cluster configuration for group {}", group, e); } } } } finally { unlockSharedConfiguration(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "abstract void deleteXMLProperty(XMLName name);", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Override\n\tpublic Map<String, Object> delete(StoreBase entity) {\n\t\treturn null;\n\t}", "public void deleteConfigurationValue(String name);", "@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public void delete() throws EntityPersistenceException {\n\n }", "public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "public void delete(Amministratore a){\r\n\tEntityManagerFactory emf= Persistence.createEntityManagerFactory(\"esercitazione-unit\");\r\n\tthis.em= emf.createEntityManager();\r\n\tEntityTransaction et= em.getTransaction();\r\n\tet.begin();\r\n\tem.remove(em.contains(a)? a: em.merge(a));\r\n\tet.commit();\r\n\tem.close();\r\n\temf.close();\r\n\t}", "public void delete(String entity_name, String key) {\r\n \r\n Entity entity = getEntity(entity_name);\r\n int RF = entity.RF;\r\n\r\n //For each node\r\n for ( int i_node =0 ; i_node < numar_noduri && RF > 0; i_node++) {\r\n\r\n int i_instance = 0;\r\n while (i_instance < noduri.get(i_node).dimensiune && RF > 0) {\r\n\r\n Instance instance = noduri.get(i_node).instances.get(i_instance);\r\n \r\n if (instance.entity_name.equals(entity_name)\r\n && String.valueOf(instance.values.get(0)).equals(key)) {\r\n\r\n noduri.get(i_node).instances.remove(i_instance);\r\n noduri.get(i_node).dimensiune--;\r\n RF--;\r\n i_instance--;\r\n }\r\n i_instance++;\r\n }\r\n }\r\n if (RF > 0) {\r\n System.out.println(\"NO INSTANCE TO DELETE\");\r\n }\r\n }", "@Override\n\tpublic void delete(Object key) throws Exception {\n\t\tpropertyConfigMapper.deleteByPrimaryKey(key);\n\t}", "public StokContract Delete(StokContract entity) {\n\t\treturn null;\n\t}", "@Override\n public void deleteEntity(String entitySetName, OEntityKey entityKey) {\n super.deleteEntity(entitySetName, entityKey);\n }", "public void delete()\n throws ROSRSException {\n annotation.deletePropertyValues(subject, property, merge ? null : value);\n if (annotation.getStatements().isEmpty()) {\n annotation.delete();\n } else {\n annotation.update();\n }\n value = null;\n }", "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }", "@Override\r\n\tpublic void deleteEntity(TypeModePaiement entity) {\n\t\trepository.deleteById(entity.getIdTypeMdp());\r\n\t}", "@Override\n\tpublic int delete(Tags tag) {\n\t\tentityMgr.remove(tag);\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void deleteGeominas(Geominas entity) throws Exception;", "public abstract void writeDelete(Kml kml) throws KmlException;", "@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}", "public void delete(HrJBorrowcontract entity);", "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }", "@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}", "@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }", "public void delete() throws Exception\n {\n try\n {\n if (this.config == null)\n throw new ApplicationException(i18n.tr(\"Keine zu löschende Kartenleser-Konfiguration ausgewählt\"));\n\n // Synchronisierung der Konten komplett deaktivieren - wuerde sonst nur Fehler liefern, weil\n // das Sicherheitsmedium nicht mehr da ist\n List<Konto> konten = this.config.getKonten();\n if (konten != null)\n {\n for (Konto k:konten)\n {\n Logger.info(\"disable all synchronize options for account [id: \" + k.getID() + \"]\");\n SynchronizeOptions options = new SynchronizeOptions(k);\n options.setAll(false);\n }\n }\n \n // Konfiguration loeschen\n DDVConfigFactory.delete(this.config);\n Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr(\"Kartenleser-Konfiguration gelöscht\"),StatusBarMessage.TYPE_SUCCESS));\n }\n catch (Exception e)\n {\n String msg = e.getMessage();\n if (!(e instanceof ApplicationException))\n {\n Logger.error(\"error while deleting ddv config\",e);\n msg = i18n.tr(\"Fehler beim Löschen der Kartenleser-Konfiguration: {0}\",e.getMessage());\n }\n Application.getMessagingFactory().sendMessage(new StatusBarMessage(msg,StatusBarMessage.TYPE_ERROR));\n }\n finally\n {\n this.config = null;\n }\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete KeyConfig : {}\", id);\n keyConfigRepository.deleteById(id);\n }", "@Atomic\n\tpublic void delete(){\n\t\tfor(User u: getUserSet()){\n\t\t\tu.delete();\n\t\t}\n\t\tfor(Session s: getSessionSet()){\n\t\t\ts.delete();\n\t\t}\n\t\tsetRoot(null);\n\t\tdeleteDomainObject();\n\t}", "void delete(int entityId);", "public void delete(Address entity);", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}", "public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}", "@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }", "@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(Empregado entity) throws Exception {\n\t\tentity.setAtivo(false);\r\n\t\tem.unwrap(Session.class).update(entity);\r\n\t}", "@VisibleForTesting\n void clear() {\n try {\n configStore.delete(NamespaceId.SYSTEM.getNamespace(), TYPE, NAME);\n } catch (ConfigNotFoundException e) {\n // does not matter, ignore it\n }\n }", "protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "Map<String, Object> deleteConfig(VirtualHost vhost, String type, String id);", "@Override\n public void delete()\n {\n }", "public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}", "public void delete(HrCStatitem entity);", "public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }", "@Override\n\tpublic void delete(SdkConfigVO sdkConfigVO) throws DatabaseException {\n\t\tgetSqlMapClientTemplate().delete(\"sdkConfigSqlMap.delete\", sdkConfigVO);\n\n\t}", "@Override\r\n\tpublic int delete(CommonParamDomain t) {\n\t\treturn getPersistanceManager().delete(getNamespace() + \".delete\", t);\r\n\t}", "public void deleteEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException {\n final List<UriResource> resourcePaths = uriInfo.getUriResourceParts();\n // Note: here the first segment is always the EntitySet\n final UriResourceEntitySet uriResourceEntitySet = (UriResourceEntitySet) resourcePaths.get(0);\n final EdmEntitySet edmEntitySet = uriResourceEntitySet.getEntitySet();\n\n // 2. delete the data in backend\n final List<UriParameter> keyPredicates = uriResourceEntitySet.getKeyPredicates();\n mCRUDHandler.deleteEntityData(edmEntitySet, keyPredicates);\n\n //3. configure the response object\n response.setStatusCode(HttpStatusCode.NO_CONTENT.getStatusCode());\n }", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "public boolean del(Account entity) {\n\t\treturn false;\n\t}", "public void delete(CbmCItemFininceItem entity);", "@Override\r\n\tpublic void delete(int idStrumento) {\n\t\tstrumentoRepository.delete(idStrumento);\r\n\t}", "void delete(E entity);", "void delete(E entity);", "private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}", "public void delete(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"deleting ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n \tentity = entityManager.getReference(ShoppingCartLine.class, entity.getId());\n entityManager.remove(entity);\n \t\t\tLogUtil.log(\"delete successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"delete failed\", Level.SEVERE, re);\n\t throw re;\n }\n }", "@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}", "public void delete(Contract entity) {\n\r\n\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "void delete(Entity entity);", "void deleteEntityById(Long id);", "public void deleteShare()\r\n\t{\r\n\t\tshare = null;\r\n\t\tdeletedFlag = true;\r\n\t}", "@Test\n\t@Override\n\tpublic void testDeleteObjectOKXml() throws Exception {\n\t}", "public abstract void delete() throws ArchEException;", "public void delete(final T entity)\n\t{\n\t\tentity.setDeleted(true);\n\t\t em.merge(entity);\n\t}", "@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}", "public <T extends IDBEntities> void delete(T element) {\n\t\tif (element == null)\n\t\t\treturn;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\t// Entity must be attached\n\t\t\tif (!em.contains(element))\n\t\t\t\telement = em.merge(element);\n\t\t\tem.remove(element);\n\t\t\tem.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tem.getTransaction().rollback();\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic GlobalResult deleteEquip(String mspno) {\n\t\treturn null;\r\n\t}", "public void removeFromStorage() throws Exception {\n String baseUrl = REST_URL + \"/core/device\";\n\n Treespace t = dbService.getControllerTreespace();\n String qStr =\n String.format(\"/core/device[id=\\\"%s\\\"]/security-ip-address\",\n eKey);\n Query q = Query.parse(qStr);\n t.deleteData(q, AuthContext.SYSTEM);\n }", "@Override\r\n\tpublic void delete(Country entity) {\r\n\t\tif (entity == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treadMapFromFile();\r\n\t\t\tthis.daoMap.remove(entity.getName());\r\n\t\t\twriteMapToFile();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void deleteNode ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)node.getParent();\n int index = parent.getIndex(node);\n ((DefaultTreeModel)_tree.getModel()).removeNodeFromParent(node);\n int ccount = parent.getChildCount();\n node = (ccount > 0) ?\n (ConfigTreeNode)parent.getChildAt(Math.min(index, ccount - 1)) : parent;\n if (node != _tree.getModel().getRoot()) {\n _tree.setSelectionPath(new TreePath(node.getPath()));\n }\n DirtyGroupManager.setDirty(group, true);\n }", "public void deleteDefectEntity(Long id);", "public void deleteArticle(Article entity) {\n\t\tif(!entityManager.contains(entity)) {\n\t\t\tentity = entityManager.merge(entity);\n\t\t}\n\t\tentity.getCategory().removeAll(entity.getCategory());\n//\t\tentity.setAuthor(new Author());\n\t\tentityManager.remove(entity);\n\t\t\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "public void delete(final CastorConnection conn, final Identity identity)\r\n throws PersistenceException {\n if (identity.size() != _ids.length) {\r\n throw new PersistenceException(\"Size of identity field mismatched!\");\r\n }\r\n\r\n _removeStatement.executeStatement(conn, identity);\r\n \r\n // Must also delete record of extend path from extending to root class\r\n if (_extends != null) {\r\n _extends.delete(conn, identity);\r\n }\r\n }", "public final void delete( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).deleteOnServer( this );\n\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@Override\n public void delete(LineEntity entity) {\n\n }", "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }", "public <T> boolean delete(T entity);", "public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "public boolean delete();", "@Override\n public void delete(SideDishEntity entity) {\n\n }", "default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }", "@Override\r\n\tpublic int deleteConfig(Integer id) {\n\t\treturn baseConfigMapper.deleteByPrimaryKey(id);\r\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t}", "@Override\r\n\tpublic TypeModePaiement delete(TypeModePaiement entity) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\tbusinessconfigStuffDao.delete(id);\n\t}", "public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}", "public void deleteSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n session.delete(originEntity);\n tx.commit();\n log.warn(\"Deleted supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }", "public void delete(ControlAcceso entity) {\n\n\t}" ]
[ "0.6037528", "0.59348065", "0.59195566", "0.5767857", "0.5733693", "0.5732217", "0.57143396", "0.5707618", "0.5683092", "0.56778574", "0.5641055", "0.56293994", "0.56252676", "0.5591086", "0.55874646", "0.557065", "0.5541259", "0.5536874", "0.55307996", "0.5509858", "0.5503242", "0.5497638", "0.5487483", "0.5462158", "0.54552805", "0.5442841", "0.54412687", "0.5439269", "0.54246706", "0.5422251", "0.54212415", "0.5420034", "0.5416117", "0.5403625", "0.53865016", "0.53795487", "0.5367578", "0.53606844", "0.53530717", "0.53503996", "0.5347593", "0.53310335", "0.5328892", "0.53260255", "0.5324084", "0.5319544", "0.5309439", "0.5304996", "0.5303757", "0.5285506", "0.5284425", "0.5282852", "0.52676666", "0.5267029", "0.52665454", "0.5250834", "0.52494985", "0.52494985", "0.5247939", "0.52400684", "0.52399963", "0.5222831", "0.5220594", "0.5217561", "0.5215167", "0.5209246", "0.5208339", "0.5199797", "0.5199526", "0.51983374", "0.5197104", "0.51891005", "0.5188116", "0.5186404", "0.51846784", "0.51759547", "0.51749897", "0.5166698", "0.5165578", "0.5162174", "0.51602864", "0.5159688", "0.5159688", "0.51596665", "0.51593834", "0.51590055", "0.5158011", "0.5154162", "0.5150918", "0.5145859", "0.51399964", "0.5136037", "0.51327175", "0.51284677", "0.51273847", "0.51272595", "0.51267076", "0.5120949", "0.51163113", "0.5115328" ]
0.6689218
0