query
stringlengths 8
1.54M
| document
stringlengths 9
312k
| negatives
sequencelengths 19
20
| metadata
dict |
---|---|---|---|
Removes the current employee and disables all but the Employee Tab. | public void logout() {
this.currentEmployee = null;
this.disable();
} | [
"public boolean deActivateEmployee(String employeeId);",
"@RolesAllowed(\"ADMIN\")\n public void disableEmployee(Employee e) {\n e.setStatus(false);\n e.setLasttype(e.getType());\n e.setType(Employee.EmployeeType.Disabled);\n employeefacade.edit(e);\n logger.warn(e.getLasttype() + \" type account: \" + e.getLogin() + \" has been successfully DISABLED by: \" + ApplicationUtils.getUserName());\n }",
"public void clearEmployee() {\n\t\temployees.clear();\n\t}",
"protected void removeDepartmentEmployees() {\r\n\r\n\t\tthis.department = null;\r\n\t\temployeesTable.removeAll();\r\n\t\temployeesTable.setSortColumn(null);\r\n\t\tif (logger.isLoggable(Level.CONFIG)) {\r\n\t\t\tlogger.config(\"removeDepartmentEmployees():\");\r\n\t\t}\r\n\t}",
"public void removeEmployee(Employee e) {\r\n\t\teCont.removeEmployee(e);\r\n\t}",
"public void clearEmployee() {\n genClient.clear(CacheKey.employee);\n }",
"public void removeEmployee(Employee employee);",
"public void removeEmployee(Employee emp) {\n employees.remove(emp);\n }",
"public void disable() {\n productTab.setDisable(true);\n produceTab.setDisable(true);\n productionTab.setDisable(true);\n }",
"void disableEmployee(String[] employeeId);",
"protected void exitEditMode(){\n editName.setEnabled(false);\n editEmail.setEnabled(false);\n saveButton.setVisibility(View.INVISIBLE);\n }",
"private void disableTabs()\n {\n tab_MasterLog.setSelectedIndex(0);\n tab_InventoryLog.setSelectedIndex(0);\n tab_OperationLog.setSelectedIndex(0);\n }",
"public static void disableTab(int tab){\n \n }",
"public void EmployeeManager ()\n {\n currentEmployees = 0;\n }",
"private void modifyEmployee() {\n String hourlyStatusSelection = (String) employeeHourlyField.getSelectedItem();\n String newEmployeeName = employeeNameField.getText();\n boolean hourlyStatus = hourlyStatusSelection.equals(\"Hourly\") ? true : false;\n int newEmployeeWage = (Integer) employeeWageField.getValue();\n Employee employeeToModify = new Employee(newEmployeeName, hourlyStatus, newEmployeeWage);\n boolean nameTaken = selectedEmployee.getName().equals(employeeNameField.getText());\n boolean listContainsEmployee = employeeList.contains(employeeToModify);\n if (!nameTaken && listContainsEmployee) {\n JOptionPane.showMessageDialog(new JPanel(), \"ERROR: Employee with same name already exists\");\n } else {\n selectedEmployee.reset(employeeNameField.getText(), hourlyStatus,\n (Integer) employeeWageField.getValue());\n }\n }",
"@RolesAllowed(\"ADMIN\")\n public void deleteEmployee(Employee e) {\n employeefacade.remove(e);\n logger.warn(e.getType() + \" type account: \" + e.getLogin() + \" has been successfully DELETED by: \" + ApplicationUtils.getUserName());\n }",
"public void removeTab() {\r\n // confirm selected tab and remove it\r\n tabbedPane.removeTabAt(tabbedPane.getSelectedIndex());\r\n // if all tabs are removed\r\n if (tabbedPane.getTabCount() == 0) {\r\n // re-enable the username textfield and issue prompt notifying user\r\n JOptionPane.showMessageDialog(null, \"Username textField re-enabled\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n textField.setEnabled(true);\r\n }\r\n }",
"public void removeEmployee(EmployeeInfo theEmployee) {\n\t\tint empPlace = theEmployee.getEmpNumber() % bucketCount;\r\n\t\tint empNum = theEmployee.getEmpNumber();\r\n\t\tfor (int i = 0; i < buckets[empPlace].size(); i++) {\r\n\r\n\t\t\tif (buckets[empPlace].get(i).getEmpNumber() == theEmployee.getEmpNumber()) {\r\n\t\t\t\tbuckets[empPlace].remove(i);\r\n\t\t\t\tSystem.out.println(\"\\nEmployee \" + empNum + \" has been removed.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void RemoveFromTeam(Employee employee) {\r\n\t\tif (this.team.contains(employee)) { this.team.remove(employee); this.numOfEmployee--; }\r\n\t\telse { System.out.println(\"This Employee isn't on the Team!\"); }\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the rate rule of the variable | public HierarchicalNode getRateRule() {
return rateRule;
} | [
"public java.lang.String getRateRule() {\r\n return rateRule;\r\n }",
"private double getDynamicRate(String resourceName) {\n logger.trace(\"BEGIN double getDynamicRate(String resourceName)\");\n double rate;\n RateEngineResponse response;\n RuleEngineClient client = new RuleEngineClient();\n\n response = client.getRate(resourceName);\n rate = response.getRate();\n //System.out.println(\"Got the response from rule engine. Rate: \" + response.getRate());\n logger.trace(\"END double getDynamicRate(String resourceName)\");\n return rate;\n }",
"public String getRate();",
"public Number getRate() {\r\n return (Number) getAttributeInternal(RATE);\r\n }",
"public float getRuleWeight (){\n return ruleWeight;\n }",
"default double getRate(){\n\t\treturn 2.50;\n\t}",
"public Integer getRate() {\r\n return rate;\r\n }",
"public java.lang.Integer getRateRuleId() {\n return rateRuleId;\n }",
"public Integer getRule() {\n return rule;\n }",
"Rule getRule();",
"public R getRule() {\n return this.rule;\n }",
"public int getRate(){\r\n return wage;\r\n }",
"public float getRate(){\r\n return rate;\r\n }",
"String getReviewrate();",
"java.lang.String getRule();",
"public BigDecimal getRATE() {\r\n return RATE;\r\n }",
"double getRateOfChangeOfAppliedCantOverLength();",
"public void setRateRule(java.lang.String rateRule) {\r\n this.rateRule = rateRule;\r\n }",
"Rate getRevenueRate();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method Name: stringHash Parameters: String s Return value(s): int Partners: None Given a string, will return the hash value of that entire string, using a base 26 number system to create the hash. | private int stringHash(String s)
{
char[] characters = new char[s.length()];
int[] hash = new int[s.length()];
int sum = 0;
//Goes through the string given and assigns each character in that string a corresponding spot in the array characters
for (int x = 0; x < s.length(); x++)
{
characters[x] = s.charAt(x);
}
//Goes through the newly created array of characters and turns it into an array of ints
//according to the charNumericValue method defined below; then hashes the ints using the base 26 number system
for (int y = 0; y < characters.length; y++)
{
hash[y] = charNumericValue(characters[y]);
hash[y] = hash[y] * ((int) Math.pow(26, (s.length() - (y+1))));
}
//Adds up all the ints in the array hash, giving a unique hash value for strings of the same size
for (int p = 0; p < hash.length; p++)
{
sum += hash[p];
}
return sum;
} | [
"public String computeHash(String s);",
"private static String hash(String s) {\r\n\t\treturn Hashing.sha256().hashString(s, StandardCharsets.UTF_8).toString();\r\n\t}",
"public static int hashString(String s) {\n return hashString(s, Charset.defaultCharset());\n }",
"int hash(String s) {\n\t\tint hash = 0;\n\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\thash = hash * 31 + (int) s.charAt(i);\n\n\t\tif (hash < 0)\n\t\t\thash = hash * -1;\n\n\t\treturn hash % ((int) Math.pow(2, KEY_BITS));\n\t}",
"private int hash(String s) {\n\t\tint hashSum = 0;\n\t\tint EXPONENT = 31;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\thashSum = Math.abs(EXPONENT * hashSum + s.charAt(i)); //math.abs to prevent negative output\n\t\t}\n\t\thashSum = hashSum % size; //compression of the ID tof it the size of our dictionary\n\t\treturn hashSum;\t\n\t}",
"public long hashCode(String s){\r\n //returns a hashCode. We use VIN as our key and return a long,\r\n //which needs to be converted into a usable index\r\n long hash = 0;\r\n for(int i = 0; i<s.length(); i++){\r\n hash = hash * 31 + s.charAt(i);\r\n }\r\n return hash;\r\n }",
"public static int randomHashOfString(String s)\r\n\t{\r\n\t\tBigInteger hash=FNV64INIT;\r\n\t\tfor(int j=0;j<s.length();j++)\r\n\t\t{\r\n\t\t\thash=hash.xor(BigInteger.valueOf(s.charAt(j)));\r\n\t\t\thash=hash.multiply(FNV64PRIME).mod(TWO.pow(64));\r\n\t\t}\r\n\t\treturn hash.intValue();\r\n\t}",
"private int hash(String str, int h){\n return hashFunctions[h].apply(str);\n }",
"@Override\n public byte[] hash(String string) {\n logger.debug(\"Calculating hash with algorithm {}...\", algorithm);\n byte[] hash;\n if (string == null || string.length() == 0) throw new CryptoRuntimeException(\"No input String given to calculate hash\");\n try {\n MessageDigest md = getDigestInstance();\n hash = md.digest(string.getBytes(UTF_8));\n logger.debug(\"Success calculate hash with algorithm {}\", algorithm);\n } catch (Exception e) {\n logger.debug(\"Fail calculate hash with algorithm {}\", algorithm);\n throw new CryptoRuntimeException(\"Not able to do hash from given input String\", e);\n }\n return hash;\n }",
"public int hashCode(String s);",
"public Hash(String s) {\r\n\t\tif (s == null) throw new NullPointerException();\r\n\t\tif (s.length() % 2 != 0) throw new IllegalArgumentException();\r\n\t\thash = new byte[s.length()/2];\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tint byteValue = Integer.parseInt(s.substring(i*2+0, i*2+2), 16);\r\n\t\t\t\thash[i] = (byte)byteValue;\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t}",
"public int getHash(String value);",
"private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }",
"java.lang.String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"static int GetHashValue(String S) {\n\t\tint length = S.length();\n\t\tint hash_value;\n\t\tint total_hash = 0;\n\t\tint char_number;\n\t\tint mult_three = 29791;\n\t\tint mult_two = 961;\n\t\tint mult_one = 31;\n\t\tint mult_zero = 1;\n\t\twhile(length > 0){\n\t\t\tif(length > 0){\n\t\t\t\tchar_number = GetCharNum(S.charAt(length - 1));\n\t\t\t\thash_value = char_number * mult_zero;\n\t\t\t\ttotal_hash = total_hash + hash_value;\n\t\t\t\tlength--;\n\t\t\t}\n\t\t\tif(length > 0){\n\t\t\t\tchar_number = GetCharNum(S.charAt(length - 1));\n\t\t\t\thash_value = char_number * mult_one;\n\t\t\t\ttotal_hash = total_hash + hash_value;\n\t\t\t\tlength--;\n\t\t\t}\n\t\t\tif(length > 0){\n\t\t\t\tchar_number = GetCharNum(S.charAt(length - 1));\n\t\t\t\thash_value = char_number * mult_two;\n\t\t\t\ttotal_hash = total_hash + hash_value;\n\t\t\t\tlength--;\n\t\t\t}\n\t\t\tif(length > 0){\n\t\t\t\tchar_number = GetCharNum(S.charAt(length - 1));\n\t\t\t\thash_value = char_number * mult_three;\n\t\t\t\ttotal_hash = total_hash + hash_value;\n\t\t\t\tlength--;\n\t\t\t} \n\t\t}\n\t\treturn total_hash;\n\t}",
"String hashFast(String data);",
"public int hash(String k) {\n int x = 29;\n int hash = 0;\n // TODO: Compute a polynomial hash function for the String k. Make sure that the hash value h returned is a proper index \n // in the hash table, ie. in the range [0...capacity-1]. \n for (int i = 0; i < k.length(); i++) \n {\n hash = ((hash * x) + (int) k.charAt(i)) % size;\n }\n\n return hash;\n }",
"public static String hash(String input) {\r\n\t\tStringBuilder hash = new StringBuilder();\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\t\tbyte[] bytes = digest.digest(input.getBytes(\"utf-8\"));\r\n\r\n\t\t\t// convert to hex\r\n\t\t\tfor (int i = 0; i < bytes.length; i++) {\r\n\t\t\t\thash.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t} catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\r\n\t\t\tLOG.error(String.format(\"Error while creating hash -- %s\",\r\n\t\t\t\t\te.getMessage()));\r\n\t\t\tthrow new AppException(e.getMessage(), e);\r\n\t\t}\r\n\t\treturn hash.toString();\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes atom signature and reconstructs CDK molecule | public IAtomContainer reconstruct(String signature) throws CDKException {
ColoredTree tree = AbstractVertexSignature.parse(signature);
MoleculeFromSignatureBuilder builder = new MoleculeFromSignatureBuilder(DefaultChemObjectBuilder.getInstance());
builder.makeFromColoredTree(tree);
IAtomContainer generatedMolecule = builder.getAtomContainer();
AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(generatedMolecule);
ElectronDonation model = ElectronDonation.cdk();
CycleFinder cycles = Cycles.cdkAromaticSet();
Aromaticity aromaticity = new Aromaticity(model, cycles);
aromaticity.apply(generatedMolecule);
generatedMolecule.setProperty(NPScorerConstants.AROMATICITY_PERCEIVED,true);
return generatedMolecule;
} | [
"private void preprocessMolecule(IAtomContainer original) throws IOException, CDKException \n {\n \tbondEnergies = new HashMap<String, Double>();\n try \n {\n \tInputStream istream = this.getClass().getClassLoader().getResourceAsStream(\"/bondenergies.txt\");\n\n \t // Get the object of DataInputStream\n \t DataInputStream in = new DataInputStream(istream);\n \t BufferedReader br = new BufferedReader(new InputStreamReader(in));\n \t String strLine;\n \t //Read File Line By Line\n \t while ((strLine = br.readLine()) != null) {\n \t // Print the content on the console\n \t //System.out.println (strLine);\n \t if(strLine.equals(\"//\"))\n \t \t break;\n \t String bond = strLine.substring(0,5).trim();\n \t String energy = strLine.substring(6).trim();\n \t bondEnergies.put(bond, Double.parseDouble(energy));\n \t //System.out.println(\"Bond: '\" + bond + \"' Energy: '\" + energy + \"'\");\n \t }\n \t //Close the input stream\n \t in.close();\n } \n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n \t\n \t//prepare atom weights\n prepareAtomWeights(original);\n \n //mark all the bonds and atoms with numbers --> identify them later on \n this.originalMolecule = markAllBonds(original);\n \n \n //do ring detection with the original molecule\n AllRingsFinder allRingsFinder = new AllRingsFinder();\n allRingsFinder.setTimeout(100000);\n allRings = allRingsFinder.findAllRings(this.originalMolecule);\n this.aromaticBonds = new ArrayList<IBond>();\n \n CDKHueckelAromaticityDetector.detectAromaticity(this.originalMolecule);\n \n \tfor (IBond bond : this.originalMolecule.bonds()) {\n boolean aromatic = false;\n //lets see if it is a ring and aromatic\n IRingSet rings = allRings.getRings(bond);\n //don't split up aromatic rings...see constructor for option\n \tfor (int i = 0; i < rings.getAtomContainerCount(); i++) {\n \t\taromatic = AromaticityCalculator.isAromatic((IRing)rings.getAtomContainer(i), this.originalMolecule);\n \tif(aromatic)\n \t{\n \t\taromatic = true;\n \t\tthis.aromaticBonds.add(bond);\n \t\tbreak;\n \t}\n\t\t\t}\n }\n \t\n \tif(isOnlyBreakSelectedBonds)\n \t{\n \t\t//now find all bonds which are worth splitting\n \ttry {\n \t\tCharges bondPrediction = new Charges();\n \t\t\tthis.bondsToBreak = bondPrediction.calculateBondsToBreak(this.originalMolecule);\n \t\t} catch (CloneNotSupportedException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t\n \t\n }",
"private void remark350() throws Exception {\n JmolList<Matrix4f> biomts = null;\n vBiomolecules = new JmolList<Map<String,Object>>();\n chainAtomCounts = new int[255];\n String title = \"\";\n String chainlist = \"\";\n int iMolecule = 0;\n boolean needLine = true;\n Map<String, Object> info = null;\n int nBiomt = 0;\n Matrix4f mIdent = new Matrix4f();\n mIdent.setIdentity();\n while (true) {\n if (needLine)\n readLine();\n else\n needLine = true;\n if (line == null || !line.startsWith(\"REMARK 350\"))\n break;\n try {\n if (line.startsWith(\"REMARK 350 BIOMOLECULE:\")) {\n if (nBiomt > 0)\n Logger.info(\"biomolecule \" + iMolecule + \": number of transforms: \"\n + nBiomt);\n info = new Hashtable<String, Object>();\n biomts = new JmolList<Matrix4f>();\n iMolecule = parseIntStr(line.substring(line.indexOf(\":\") + 1));\n title = line.trim();\n info.put(\"molecule\", Integer.valueOf(iMolecule));\n info.put(\"title\", title);\n info.put(\"chains\", \"\");\n info.put(\"biomts\", biomts);\n vBiomolecules.addLast(info);\n nBiomt = 0;\n //continue; need to allow for next IF, in case this is a reconstruction\n }\n if (line.indexOf(\"APPLY THE FOLLOWING TO CHAINS:\") >= 0) {\n if (info == null) {\n // need to initialize biomolecule business first and still flag this section\n // see http://www.ebi.ac.uk/msd-srv/pqs/pqs-doc/macmol/1k28.mmol\n needLine = false;\n line = \"REMARK 350 BIOMOLECULE: 1 APPLY THE FOLLOWING TO CHAINS:\";\n continue;\n }\n chainlist = \":\" + line.substring(41).trim().replace(' ', ':');\n needLine = false;\n while (readLine() != null && line.indexOf(\"BIOMT\") < 0 && line.indexOf(\"350\") == 7)\n chainlist += \":\" + line.substring(11).trim().replace(' ', ':');\n if (checkFilterKey(\"BIOMOLECULE \" + iMolecule + \";\")) {\n setFilter(filter.replace(':', '_') + chainlist);\n Logger.info(\"filter set to \\\"\" + filter + \"\\\"\");\n this.vBiomts = biomts;\n }\n info.put(\"chains\", chainlist);\n continue;\n }\n /*\n 0 1 2 3 4 5 6 7\n 0123456789012345678901234567890123456789012345678901234567890123456789\n REMARK 350 BIOMT2 1 0.000000 1.000000 0.000000 0.00000\n */\n if (line.startsWith(\"REMARK 350 BIOMT1 \")) {\n nBiomt++;\n float[] mat = new float[16];\n for (int i = 0; i < 12;) {\n String[] tokens = getTokens();\n mat[i++] = parseFloatStr(tokens[4]);\n mat[i++] = parseFloatStr(tokens[5]);\n mat[i++] = parseFloatStr(tokens[6]);\n mat[i++] = parseFloatStr(tokens[7]);\n if (i == 4 || i == 8)\n readLine();\n }\n mat[15] = 1;\n Matrix4f m4 = new Matrix4f();\n m4.setA(mat);\n if (m4.equals(mIdent))\n biomts.add(0, m4);\n else\n biomts.addLast(m4);\n continue;\n }\n } catch (Exception e) {\n // probably just \n this.vBiomts = null;\n this.vBiomolecules = null;\n return;\n }\n }\n if (nBiomt > 0)\n Logger.info(\"biomolecule \" + iMolecule + \": number of transforms: \"\n + nBiomt);\n }",
"public static TargetMolecularSignature makePaperExampleMolecularSignature() {\n TargetMolecularSignature sig = new TargetMolecularSignature(2);\n sig.add(\"[H]([C]([H][H][C]))\", 9, \"h3\");\n sig.add(\"[H]([C]([H][C][C]))\", 12, \"h2\");\n sig.add(\"[H]([C]([C][C][C]))\", 1, \"h1\");\n sig.add(\"[C]([H][H][H][C]([H][C][C]))\", 1, \"c31\");\n sig.add(\"[C]([H][H][H][C]([H][H][C]))\", 2, \"c32\");\n sig.add(\"[C]([H][H][C]([H][H][H])[C]([H][H][C]))\", 2, \"c232\");\n sig.add(\"[C]([H][H][C]([H][H][C])[C]([H][H][C]))\", 2, \"c222\");\n sig.add(\"[C]([H][H][C]([H][H][C])[C]([H]CC))\", 2, \"c221\");\n \n // NOTE : why is this called '1322' in the paper, when all the\n // others follow the naming pattern of number of hydrogens? \n sig.add(\"[C]([H][C]([H][H][H])[C]([H][H][C])[C]([H][C][C]))\", 1, \"c1322\");\n\n return sig;\n }",
"ReleaseFile parseClearSigned( InputStream is, InputStream keyStream ) throws IOException;",
"String componentSignature();",
"private IAtomContainer makeAtomContainer(IAtom atom, List<IBond> parts) {\n \t\n \tboolean[] atomsDone = new boolean[this.atomsContained];\n \t\n IAtomContainer partContainer = new AtomContainerMetFrag();\n partContainer.addAtom(atom);\n atomsDone[Integer.parseInt(atom.getID())] = true;\n \n for (IBond aBond : parts) {\n for (IAtom bondedAtom : aBond.atoms()) {\n \t//check if the atom is already contained\n \tif(atomsDone[Integer.parseInt(bondedAtom.getID())])\n \t\tcontinue;\n \t\n \tpartContainer.addAtom(bondedAtom);\n \tatomsDone[Integer.parseInt(bondedAtom.getID())] = true;\n }\n partContainer.addBond(aBond);\n }\n return partContainer;\n }",
"ReleaseFile parseWithSignature( InputStream is, InputStream signStream, InputStream keyStream ) throws IOException;",
"public static TargetMolecularSignature makeAdenineSignature() {\n TargetMolecularSignature sig = new TargetMolecularSignature(2);\n sig.add(\"[C]([N][N])\", 3);\n sig.add(\"[C]([N][N][C])\", 2);\n sig.add(\"[N]([C][C])\", 3);\n sig.add(\"[N]([C][C][C])\", 1);\n sig.add(\"[N]([C])\", 1);\n return sig;\n }",
"public static TargetMolecularSignature makeHexaneSignature() {\n TargetMolecularSignature sig = new TargetMolecularSignature(5);\n sig.add(\"[C]([C]([C]([C]([C]([C])))))\", 2);\n sig.add(\"[C]([C][C]([C]([C]([C]))))\", 2);\n sig.add(\"[C]([C]([C]([C]))[C]([C]))\", 2);\n return sig;\n }",
"public BagItManifestMetadataExtractor(String checksumAlgorithm) {\n this.checksumAlgorithm = checksumAlgorithm;\n }",
"public EgcDecodeResult decodeEdgc(String prefixedEncodedCompressedCose) {\n VerificationResult verificationResult = new VerificationResult();\n ContextIdentifierService contextIdentifierService = new DefaultContextIdentifierService();\n Base45Service base45Service = new DefaultBase45Service();\n CompressorService compressorService = new DefaultCompressorService();\n val plainInput = contextIdentifierService.decode(prefixedEncodedCompressedCose, verificationResult);\n val compressedCose = base45Service.decode(plainInput, verificationResult);\n\n EgcDecodeResult egcDecodeResult = new EgcDecodeResult();\n StringBuilder errorMessages = new StringBuilder();\n try {\n val cose = compressorService.decode(compressedCose, verificationResult);\n egcDecodeResult.setCoseHex(Hex.toHexString(cose));\n Message message = Message.DecodeFromBytes(cose);\n if ((message instanceof Sign1Message)) {\n Sign1Message singn1Message = (Sign1Message)message;\n validateSignature(egcDecodeResult, errorMessages, singn1Message);\n } else {\n errorMessages.append(\"not Sign1 cose message\");\n }\n StringWriter stringWriter = new StringWriter();\n cborDumpService.dumpCbor(message.GetContent(), stringWriter);\n egcDecodeResult.setCborDump(stringWriter.getBuffer().toString());\n egcDecodeResult.setCborHex(Hex.toHexString(message.GetContent()));\n\n CBORObject certData = CBORObject.DecodeFromBytes(message.GetContent());\n egcDecodeResult.setCborJson(cborToJson(certData));\n\n CBORObject protectedHeader = message.getProtectedAttributes();\n egcDecodeResult.setCoseProtected(protectedHeader.toString());\n egcDecodeResult.setCoseProtectedJson(cborToJson(protectedHeader));\n\n CBORObject unprotectedHeader = message.getUnprotectedAttributes();\n egcDecodeResult.setCoseUnprotected(unprotectedHeader.toString());\n egcDecodeResult.setCoseUnprotectedJson(cborToJson(unprotectedHeader));\n\n validateCosePayload(errorMessages, certData);\n } catch (CBORException cborException) {\n errorMessages.append(\"CBOR decode exception: \").append(cborException.getMessage());\n } catch (Exception exception) {\n // We try to provide as much usable information as possible even\n // if we do not know the specific exception here\n errorMessages.append(\"Decode exception: \").append(exception.getMessage());\n }\n if (errorMessages.length() > 0) {\n egcDecodeResult.setErrorMessage(errorMessages.toString());\n }\n\n return egcDecodeResult;\n }",
"public Molecule(final String name) {\n\n }",
"private PDBAtom readAtom(String cLine, int lineLength) {\n\t\t// a line looks like:\n\t\t// 01234567890123456789012345678901234567890123456789012345678901234567890123456789\n\t\t// ATOM 1 O5* C A 1 20.662 36.632 23.475 1.00 10.00 114D 45\n \t\t// ATOM 1186 1H ALA 1 10.105 5.945 -6.630 1.00 0.00 1ALE1288\n\n\t\tif (lineLength < 59) {\n\t\t\tthrow new RuntimeException(\"PDBReader error during readAtom(): line too short\");\n\t\t}\n\t\tString elementSymbol = cLine.substring(12, 14).trim();\n\t\t\n\t\tif (elementSymbol.length() == 2) {\n\t\t\t// ensure that the second char is lower case\n\t\t\telementSymbol = elementSymbol.charAt(0) + elementSymbol.substring(1).toLowerCase();\n\t\t}\n\t\tString rawAtomName = cLine.substring(12, 16).trim();\n\t\tString resName = cLine.substring(17, 20).trim();\n\t\ttry {\n\t\t\tIAtomType type = pdbFactory.getAtomType(resName+\".\"+rawAtomName);\n\t\t\telementSymbol = type.getSymbol();\n\t\t} catch (NoSuchAtomTypeException e) {\n\t\t\tlogger.error(\"Did not recognize PDB atom type: \" + resName+\".\"+rawAtomName);\n\t\t}\n\t\tPDBAtom oAtom = new PDBAtom(elementSymbol, \n\t\t\tnew Point3d(Double.parseDouble(cLine.substring(30, 38)),\n\t\t\t Double.parseDouble(cLine.substring(38, 46)),\n\t\t\t Double.parseDouble(cLine.substring(46, 54))\n\t\t\t)\n\t\t);\n\t\t\n oAtom.setRecord(cLine);\n oAtom.setSerial(Integer.parseInt(cLine.substring(6, 11).trim()));\n oAtom.setName(rawAtomName.trim());\n oAtom.setAltLoc(cLine.substring(16, 17).trim());\n oAtom.setResName(resName);\n oAtom.setChainID(cLine.substring(21, 22).trim());\n oAtom.setResSeq(cLine.substring(22, 26).trim());\n oAtom.setICode(cLine.substring(26, 27).trim());\n oAtom.setAtomTypeName(oAtom.getResName()+\".\"+rawAtomName);\n\t\tif (lineLength >= 59) {\n String frag = cLine.substring(54, 60).trim();\n if (frag.length() > 0) {\n oAtom.setOccupancy(Double.parseDouble(frag));\n }\n\t\t}\n\t\tif (lineLength >= 65) {\n String frag = cLine.substring(60, 66).trim();\n if (frag.length() > 0) {\n oAtom.setTempFactor(Double.parseDouble(frag));\n }\n\t\t}\n\t\tif (lineLength >= 75) {\n oAtom.setSegID(cLine.substring(72, 76).trim());\n\t\t}\n//\t\tif (lineLength >= 78) {\n// oAtom.setSymbol((new String(cLine.substring(76, 78))).trim());\n//\t\t}\n\t\tif (lineLength >= 79) {\n String frag = cLine.substring(78, 80).trim();\n if (frag.length() > 0) {\n oAtom.setCharge(Double.parseDouble(frag));\n }\n\t\t}\n\t\t\n\t\t/*************************************************************************************\n\t\t * It sets a flag in the property content of an atom,\n\t\t * which is used when bonds are created to check if the atom is an OXT-record => needs\n\t\t * special treatment.\n\t\t */\n\t\tString oxt = cLine.substring(13, 16).trim();\n\t\t\n\t\tif(oxt.equals(\"OXT\"))\t{\n\t\t\toAtom.setOxt(true);\n\t\t}\n\t\telse\t{\n\t\t\toAtom.setOxt(false);\n\t\t}\n\t\t/*************************************************************************************/\n\t\t\n\t\treturn oAtom;\n\t}",
"public SignatureFragment(int count, String signatureString) {\n super(count);\n this.signatureString = signatureString;\n this.fragmentAtomContainer = \n MoleculeSignature.fromSignatureString(signatureString, \n NoNotificationChemObjectBuilder.getInstance());\n }",
"void setMolecule(String mol, Object conc);",
"public Signature() {}",
"public Molecule(Atom root){\n if(root == null)\n throw new IllegalArgumentException(\"Root atom cannot be null\");\n //initialise bonds to a new array\n atoms = new ArrayList<>();\n longestChain = new ArrayList<>();\n this.root = root;\n this.atoms.add(root);\n this.longestChain.add(root);\n }",
"public Object interpret(RowReference row)\n throws DBException\n {\n MGIMarker marker = new MGIMarker(row.getString(1));\n\t // set the preferred MGI ID as a MGIMarker attribute\n marker.mgiID = row.getString(1);\n\t \n marker.symbol = row.getString(2);\n marker.name = row.getString(3);\n marker.chromosome = row.getString(4);\n marker.type = row.getString(5);\n marker.key = row.getInt(6);\n\n // adds the the preferred MGI ID to the set of all MGI Ids\n\t // for this MGIMarker\n // adds the preferred MGI ID to the Bucketizable SVASet\n marker.addMGIID(new SequenceAccession(marker.mgiID,\n SequenceAccession.MGI));\n\n /**\n * obtain sequence associations AND non-preferred MGI ids for the \n\t * marker\n */\n try\n {\n\t\t // sequences also contains non-preferred MGI IDs\n Vector sequences = sequenceLookup.lookup(marker.key);\n if (sequences == null)\n return marker;\n for (int i = 0; i < sequences.size(); i++)\n {\n SequenceAccession acc =\n (SequenceAccession)sequences.get(i);\n String seq = acc.getAccid();\n String seqCategory = accidClassifier.classify(seq);\n\n if (seqCategory.equals(Constants.GENBANK))\n {\n // set bucketizable data\n marker.addGenBankSequence(acc);\n }\n else if (seqCategory.equals(Constants.XM))\n {\n // set bucketizable data\n marker.addXMSequence(acc);\n }\n else if (seqCategory.equals(Constants.XR))\n {\n // set bucketizable data\n marker.addXRSequence(acc);\n }\n else if (seqCategory.equals(Constants.XP))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addXPSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NM))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNMSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NR))\n\t\t {\n\t\t // set bucketizable data\n marker.addNRSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NP))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNPSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NG))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNGSequence(acc);\n\t\t }\n\t\t else if (seqCategory.equals(Constants.NT))\n {\n // set bucketizable data\n marker.addNTSequence(acc);\n }\n\t\t else if (seqCategory.equals(Constants.NW))\n {\n // set bucketizable data\n marker.addNWSequence(acc);\n }\n else if (seqCategory.equals(Constants.MGIID))\n {\n // set bucketizable data\n marker.addMGIID(acc);\n }\n }\n }\n catch (CacheException e)\n {\n DBExceptionFactory eFactory = new DBExceptionFactory();\n DBException e2 = (DBException)\n eFactory.getException(DBExceptionFactory.ConfigErr, e);\n throw e2;\n }\n\n return marker;\n }",
"public ICDKMolecule asCDKMolecule(IMolecule imol) throws BioclipseException {\n\n if (imol instanceof ICDKMolecule) {\n return (ICDKMolecule) imol;\n }\n\n // First try to create from CML\n try {\n String cmlString = imol.toCML();\n if (cmlString != null) {\n return fromCml(cmlString);\n }\n }\n catch (IOException e) {\n logger.debug(\"Could not create mol from CML\");\n }\n catch (UnsupportedOperationException e) {\n logger.debug(\"Could not create mol from CML\");\n }\n\n // Secondly, try to create from SMILES\n return fromSMILES( imol.toSMILES(\n ) );\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the dataFormat option. | public static Options dataFormat(String dataFormat) {
return new Options().dataFormat(dataFormat);
} | [
"public void setDataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n }",
"public Options dataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n return this;\n }",
"@JsonSetter(\"target_storage.data_format.type\")\n private void setDataFormat(String dataFormat) {\n this.dataFormats = asList(dataFormat);\n }",
"public void setDataFormat(short fmt)\n {\n format.setFormatIndex(fmt);\n }",
"public void setFormat(Object format);",
"public void setDataFormatPattern(String dataFormatPattern) {\r\n this.dataFormatPattern = dataFormatPattern;\r\n }",
"public void setFormat(Format format);",
"T setDataDateFormat(String dataDateFormat);",
"public void setFormat(DateFormat format) {\n super.setFormat(format);\n }",
"public void setOutputFormat(OutputFormat format);",
"void setOutputFormat(String outputFormat);",
"public void chooseDataFormat(String title) {\n\t\tnew LabeledCombo(\"Data Format:\").setSelection(title);\n\t}",
"SoGallery setFormat(String format);",
"public void setFileFormat(String format)\n {\n _fileFormat = FileFormat.valueOf(format);\n }",
"public void setDataFormatArray(TextComplexDataFormat[] dataFormatArray)\n {\n this.dataFormatArray = dataFormatArray;\n }",
"@Override\n public void setFormat( String format)\n {\n // This domain is defined by a specific format\n }",
"void setFormatId(short formatId);",
"public void setDateFormat(String format) {\n dateFormat = format;\n constructVssDateTimeFormat();\n }",
"public void setDataLabelFormatString(String dataLabelFormatString) {\r\n this.dataLabelFormatString = dataLabelFormatString;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The superclass of proxylets that handle Responses. | public interface HttpResponseProxylet extends Proxylet {
/**
* Possible return code of method 'accept'.
* <br/>The proxylet accepts the message and will not block while processing it
*/
public static final int ACCEPT = 0x03;
/**
* Possible return code of method 'accept'.
* the proxylet accepts the message but might block while processing it
*/
public static final int ACCEPT_MAY_BLOCK = 0x7;
/**
* Possible return code of method 'accept'.
* <br/>The proxylet is not interested in the message
*/
public static final int IGNORE = 0;
/**
* Called by the Engine to know how the proxylet will handle the Response.
* <br/>The possible return codes are: ACCEPT, ACCEPT_MAY_BLOCK, IGNORE.
* <b>NOTE: This method can be called by the Engine several times in a row for the same request.</b>
* Therefore it should behave accordingly.
* @param prolog the response prolog
* @param headers the response headers
* @return ACCEPT, ACCEPT_MAY_BLOCK, or IGNORE
*/
public int accept(HttpResponseProlog prolog, HttpHeaders headers);
} | [
"protected abstract TResponse createResponseInstance();",
"public interface HttpResponse {\n /**\n * Get the map of response properties.\n * <p>\n * A response property is an application-defined property that may be\n * added by the user, a filter, or the handler that is managing the\n * connection.\n *\n * @return the map of response properties.\n */\n Map<String, Object> getProperties();\n\n /**\n * Get the allowed HTTP methods from the Allow HTTP header.\n * <p />\n * Note that the Allow HTTP header will be returned by a response to an OPTIONS\n * request.\n *\n * @return the allowed HTTP methods, all methods will returned as upper case\n * strings.\n */\n Set<String> getAllow();\n\n /**\n * Get the response status represented as a response {@link Status} enumeration\n * value.\n *\n * @return the status type instance, or {@code null} if the underlying status\n * code was set using the method {@link #setStatusCode(int)} and there is no\n * mapping between the integer value and the\n * {@link javax.ws.rs.core.Response.Status response status enumeration} value.\n */\n Status getStatus();\n\n /**\n * Get the set of cookies.\n *\n * @return the cookies.\n */\n Set<NewCookie> getCookies();\n\n /**\n * Get the entity of the response as a generic {@link Object} instance.\n * <p>\n * The entity input stream is closed prior to returning from this method.\n *\n * @return a response entity instance as a generic Java object.\n *\n * @throws InvocationException if there is an error processing the response\n * or if the response status is 204 (No Content).\n */\n Object getEntity() throws InvocationException;\n\n /**\n * Get the entity of the response.\n * <p>\n * If the entity is not an instance of Closeable then the entity input stream\n * is closed prior to returning from this method.\n *\n * @param <T> the type of the response entity.\n * @param entityType the type of the entity.\n * @return a response entity instance of the specified type.\n *\n * @throws InvocationException if there is an error processing the response\n * or if the response status is 204 (No Content).\n */\n <T> T getEntity(Class<T> entityType) throws InvocationException;\n\n /**\n * Get the entity of the response represented by a generic type.\n * <p>\n * If the entity is not an instance of Closeable then the entity input stream\n * is closed prior to returning from this method.\n *\n * @param <T> the type of the response entity.\n * @param entityType the generic type of the entity.\n * @return a response entity instance of the specified generic type.\n *\n * @throws InvocationException if there is an error processing the response\n * or if the response status is 204 (No Content).\n */\n <T> T getEntity(GenericType<T> entityType) throws InvocationException;\n\n /**\n * Get the response input stream.\n *\n * @return the input stream of the response.\n */\n InputStream getEntityInputStream();\n\n /**\n * Get the entity tag.\n *\n * @return the entity tag, otherwise {@code null} if not present.\n */\n EntityTag getEntityTag();\n\n /**\n * Get the values of a single HTTP message header. The returned List is read-only.\n * This is a convenience shortcut for {@code getHeaders().get(name)}.\n *\n * @param name the header name, case insensitive.\n * @return a read-only list of header values.\n * @throws java.lang.IllegalStateException if called outside of the message\n * processing scope.\n */\n public List<String> getHeader(String name);\n \n /**\n * Get the values of HTTP message headers. The returned Map is case-insensitive\n * wrt. keys and is read-only.\n *\n * @return a read-only map of header names and values.\n * @throws java.lang.IllegalStateException if called outside of the message\n * processing scope.\n */\n MultivaluedMap<String, Object> getHeaders();\n\n /**\n * Get a HTTP header value.\n *\n * @param name the HTTP header.\n * @return the HTTP header value. If the HTTP header is not present then\n * {@code null} is returned. If the HTTP header is present but has no value\n * then the empty string is returned. If the HTTP header is present more than\n * once then the values of joined together and separated by a ',' character.\n */\n String getHeaderValue(String name);\n \n\n // TODO add support for link headers\n\n /**\n * Get the language.\n *\n * @return the language, otherwise {@code null} if not present.\n */\n String getLanguage();\n\n /**\n * Get the last modified date.\n *\n * @return the last modified date, otherwise {@code null} if not present.\n */\n Date getLastModified();\n\n /**\n * Get Content-Length value.\n *\n * @return Content-Length as integer if present and valid number. In other\n * cases returns -1.\n */\n int getLength();\n\n /**\n * Get the location.\n *\n * @return the location URI, otherwise {@code null} if not present.\n */\n URI getLocation();\n\n /**\n * Get response date (server side).\n *\n * @return the server side response date, otherwise {@code null} if not present.\n */\n Date getDate();\n\n /**\n * Get the response status code.\n *\n * @return the response status code.\n *\n */\n int getStatusCode();\n\n /**\n * Get the media type of the response.\n *\n * @return the response media type.\n */\n MediaType getType();\n\n /**\n * Check if there is an entity available in the response.\n *\n * @return {@code true} if there is an entity present in the response.\n */\n boolean hasEntity();\n\n /**\n * Buffer the entity.\n * <p>\n * All the bytes of the original entity input stream will be read and stored\n * in memory. The original entity input stream will then be closed.\n *\n * @throws InvocationException if there is an error processing the response.\n */\n void bufferEntity() throws InvocationException;\n\n /**\n * Close the response and all resources associated with the response.\n * As part of the operation, if open, the entity input stream is closed.\n *\n * @throws InvocationException if there is an error closing the response.\n */\n void close() throws InvocationException;\n\n /**\n * Set the input stream of the response.\n *\n * @param entity the input stream of the response.\n */\n void setEntityInputStream(InputStream entity);\n\n /**\n * Set the response status using the {@link StatusType} instance.\n *\n * @param status the response status type to be set.\n */\n void setStatusType(StatusType status);\n\n /**\n * Set the response status code.\n *\n * @param status the response status code to be set.\n */\n void setStatusCode(int status);\n \n // TODO: add proper setEntity method\n}",
"public interface Response<T>\n{\n\t/**\n\t * Returns <code>Request</code> object, which initiated this\n\t * response.\n\t *\n\t * @return initial <code>Request</code>\n\t */\n\tpublic Request<T> getRequest();\n\n\t/**\n\t * Returns <code>true</code> if this is last response in series of\n\t * responses.\n\t *\n\t * @return <code>true</code> if it is last response\n\t */\n\tpublic boolean isLast();\n\n\t/**\n\t * Returns <code>true</code> if the request was successfully completed.\n\t *\n\t * @return returns true if response is a success\n\t */\n\tpublic boolean success();\n\n\t/**\n\t * Returns a value if the request caused a value change. Otherwise it should\n\t * return <code>null</code>.\n\t *\n\t * @return a value;\n\t */\n\tpublic T getValue();\n\n\t/**\n\t * Optional identification tag of the response. Interpretation depends on asynchronus methods\n\t * which generated this response.\n\t *\n\t * @return identification tag.\n\t */\n\tpublic Object getIdTag();\n\n\t/**\n\t * This is a convenience method that returns a number if value is a number.\n\t * Otherwise it should return <code>null</code>\n\t *\n\t * @return a number\n\t */\n\tpublic Number getNumber();\n\n\t/**\n\t * If result of the request is an error this method will return it. Otherwise it\n\t * will return <code>null</code>\n\t *\n\t * @return error\n\t */\n\tpublic Exception getError();\n\n\t/**\n\t * Returns the source of the response, same as in associated Request.\n\t *\n\t * @see Request#getSource()\n\t *\n\t * @return response source\n\t */\n\tpublic Identifiable getSource();\n\n\t/**\n\t * Returns the condition of the response\n\t *\n\t * @return response condition\n\t */\n\tpublic DynamicValueCondition getCondition();\n\n\t/**\n\t * Returns the timestamp of the response\n\t *\n\t * @return timestamp of response\n\t */\n\tpublic Timestamp getTimestamp();\n}",
"public interface GenericResponseInterceptor<Input, Output> {\n\n /**\n * Intercept the output from the request handler after it is executed.\n *\n * @param input handler input\n * @param response handler output\n */\n default void process(Input input, Output response) { }\n\n /**\n * Intercept the output from the request handler after it is executed and return an updated response.\n *\n * @param input handler input\n * @param response handler output\n * @return updated response\n */\n default Output processResponse(Input input, Output response) {\n process(input, response);\n return response;\n }\n\n}",
"public interface Response\n{\n}",
"public interface Response {\n\tpublic String response(Parse p, HashMap<String,Object> context);\n\t\n}",
"public void setResponse(Response response);",
"public interface ResponseInterceptor {\n\n /**\n * This function is called after the response from the target is received, and the response headers for the\n * client are called. One use case is to add or remove headers or even response codes sent to the client.\n * <p>Note that the response body is not available for inspection and cannot be changed as the raw bytes\n * will be streamed asynchronously to the client.</p>\n *\n * @param clientRequest The original request from the client.\n * @param targetRequest The Jetty request that was sent to the target.\n * @param targetResponse The response received from the target server.\n * @param clientResponse The as-yet unsent response to the client. You can modify the response code, content\n * type and other headers, however you cannot alter the response body.\n * @throws Exception Any unhandled exceptions will be logged but will not stop the response being sent.\n */\n void intercept(MuRequest clientRequest, Request targetRequest, Response targetResponse, MuResponse clientResponse) throws Exception;\n\n}",
"private Response() {}",
"public ResponseWrapper(HttpServletResponse response) {\n super(response);\n }",
"public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}",
"public BaseResponse(){\n\t\tmakeSuccessfulResponse();\n\t}",
"public T getResponse() {\n return response;\n }",
"public HttpServletResponse getRealResponse();",
"protected abstract List<T2> manageResponse(String methodName, String extractedData);",
"public InternalResponse getResponse() {\n return response;\n }",
"protected ExpirePasswordResponseAccessor() {\n this(new ResponseType());\n }",
"TypedResponse createTypedResponse();",
"@Override\n public void onResponseSuccess(final String resp) {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
3 bit6ycxo1iqd2al92y8gkzlvb static inline box box_intersect(box b0, box b1) | public static Object box_intersect(Object... arg) {
UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
throw new UnsupportedOperationException();
} | [
"public static Object boxf_intersect(Object... arg) {\r\nUNSUPPORTED(\"ape22b8z6jfg17gvo42hok9eb\"); // static inline boxf boxf_intersect(boxf b0, boxf b1)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"c57pq0f87j6dnbcvygu7v6k84\"); // boxf b;\r\nUNSUPPORTED(\"9slu7bixuymxttjic76ha2nl2\"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);\r\nUNSUPPORTED(\"3uv943c2f82yuif249pf5azob\"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);\r\nUNSUPPORTED(\"74tf5h16bc9zabq3s3dyny543\"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);\r\nUNSUPPORTED(\"d99gcv3i7xes7y7rqf8ii20ux\"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);\r\nUNSUPPORTED(\"2vmm1j57brhn455f8f3iyw6mo\"); // return b;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"public static Object boxf_intersect(Object... arg) {\nUNSUPPORTED(\"ape22b8z6jfg17gvo42hok9eb\"); // static inline boxf boxf_intersect(boxf b0, boxf b1)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"c57pq0f87j6dnbcvygu7v6k84\"); // boxf b;\nUNSUPPORTED(\"9slu7bixuymxttjic76ha2nl2\"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);\nUNSUPPORTED(\"3uv943c2f82yuif249pf5azob\"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);\nUNSUPPORTED(\"74tf5h16bc9zabq3s3dyny543\"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);\nUNSUPPORTED(\"d99gcv3i7xes7y7rqf8ii20ux\"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);\nUNSUPPORTED(\"2vmm1j57brhn455f8f3iyw6mo\"); // return b;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}",
"public boolean intersect(Vec2 a1, Vec2 a2, Vec2 b1, Vec2 b2)\n{ \n return\n ((CCW(a1, a2, b1) != CCW(a1, a2, b2))\n && (CCW(b1, b2, a1) != CCW(b1, b2, a2)));\n}",
"public abstract boolean intersectsBoundingBox(BoundingBox box);",
"public static double[] AABBintersect(double[] a, double[] b){\n\t\treturn new double[]{Math.max(a[0], b[0]),Math.max(a[1], b[1]), Math.min(a[2], b[2]),Math.min(a[3], b[3])};\n\t}",
"public IntervalBox intersect(IntervalBox box) {\n return intersectInterval(Arrays.asList(this, box));\n }",
"boolean IntersectedBox(Ray ray);",
"private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}",
"public static Object boxf_overlap(Object... arg) {\r\nUNSUPPORTED(\"905nejsewihwhhc3bhnrz9nwo\"); // static inline int boxf_overlap(boxf b0, boxf b1)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"7a9wwpu7dhdphd08y1ecw54w5\"); // return OVERLAP(b0, b1);\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"public static Object box_overlap(Object... arg) {\r\nUNSUPPORTED(\"1e9k599x7ygct7r4cfdxlk9u9\"); // static inline int box_overlap(box b0, box b1)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"7a9wwpu7dhdphd08y1ecw54w5\"); // return OVERLAP(b0, b1);\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"public static Object boxf_overlap(Object... arg) {\nUNSUPPORTED(\"905nejsewihwhhc3bhnrz9nwo\"); // static inline int boxf_overlap(boxf b0, boxf b1)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"7a9wwpu7dhdphd08y1ecw54w5\"); // return OVERLAP(b0, b1);\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}",
"static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}",
"public static Object box_overlap(Object... arg) {\nUNSUPPORTED(\"1e9k599x7ygct7r4cfdxlk9u9\"); // static inline int box_overlap(box b0, box b1)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"7a9wwpu7dhdphd08y1ecw54w5\"); // return OVERLAP(b0, b1);\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}",
"public boolean intersect(BoundingBox3d b2) {\n return ((xmin <= b2.xmin && b2.xmin <= xmax) || (xmin <= b2.xmax && b2.xmax <= xmax))\n && ((ymin <= b2.ymin && b2.ymin <= ymax) || (ymin <= b2.ymax && b2.ymax <= ymax))\n && ((zmin <= b2.zmin && b2.zmin <= zmax) || (zmin <= b2.zmax && b2.zmax <= zmax));\n }",
"public final void mINTERSECT() throws RecognitionException {\n try {\n int _type = INTERSECT;\n // XQuery.g:275:11: ( 'intersect' )\n // XQuery.g:275:13: 'intersect'\n {\n match(\"intersect\"); \n\n\n\n }\n\n state.type = _type;\n }\n finally {\n }\n }",
"public IntBox intersection(IntBox p_other)\n {\n if (p_other.ll.x > ur.x)\n {\n return EMPTY;\n }\n if (p_other.ll.y > ur.y)\n {\n return EMPTY;\n }\n if (ll.x > p_other.ur.x)\n {\n return EMPTY;\n }\n if (ll.y > p_other.ur.y)\n {\n return EMPTY;\n }\n int llx = Math.max(ll.x, p_other.ll.x);\n int urx = Math.min(ur.x, p_other.ur.x);\n int lly = Math.max(ll.y, p_other.ll.y);\n int ury = Math.min(ur.y, p_other.ur.y);\n return new IntBox(llx, lly, urx, ury);\n }",
"public static Cell intersection(Cell a, Cell b){\n\t\tSet<BitVector> set1 = Utils.arToSet(a.getPA());\n\t\tSet<BitVector> set2 = Utils.arToSet(b.getPA());\n\t\tSet<BitVector> intersection = new HashSet<BitVector>(set1);\n\t\tintersection.retainAll(set2);\n\t\tCell both = new Cell(intersection, 0);\n\t\tboth.sortBySize();\n\t\treturn both;\n\t}",
"public boolean rectIntersect(int x1, int y1, int a_w, int a_h,\r\n int x3, int y3, int b_w, int b_h){\r\n //Calculates the other variables\r\n int x2 = x1 + a_w;\r\n int y2 = y1 + a_h;\r\n int x4 = x3 + b_w;\r\n int y4 = y3 + b_h;\r\n //If any of these conditions are met, the rectangles are NOT intersecting\r\n if ( x1 > x4 || x2 < x3 || y1 > y4 || y2 < y3) return false;\r\n else return true;\r\n }",
"private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column biz_apply_installment.LEASE_TIME | public Date getLeaseTime() {
return leaseTime;
} | [
"public static Long leaseTime(){\n\t\treturn Long.parseLong(properties.getProperty(\"LEASE_TIME\"));\n\t}",
"public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }",
"public static Long getRemovalTime() {\n\t\treturn Long.getLong(pkgNameDot + CONF_DB_REM, -1l);\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getPlannedShutdownTime();",
"public Long getChecktime() {\n return checktime;\n }",
"public long getAutoReturnTimeToValue()\r\n {\r\n return autoReturnTimeToValue;\r\n }",
"public long getCompletionTime() {\n\t\treturn FcpUtils.safeParseLong(getField(\"CompletionTime\"));\n\t}",
"@Generated(value = \"org.mybatis.generator.api.MyBatisGenerator\", date = \"2020-04-12T12:59:05.835+09:00\", comments = \"Source field: USER.updatedTime\")\r\n public String getUpdatedtime() {\r\n return updatedtime;\r\n }",
"public String getBuildTime() {\n checkStatus();\n return info.getOrDefault(\"Build-Time\", null);\n }",
"java.lang.String getApplyTime();",
"public java.sql.Time getDEPARTURE_FROM_LOC_TIME()\n {\n \n return __DEPARTURE_FROM_LOC_TIME;\n }",
"public String getUpdatetime() {\n return updatetime;\n }",
"@ZAttr(id=1056)\n public Date getVersionCheckLastAttempt() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraVersionCheckLastAttempt, null);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getPolicyRetrievalCompletionTime();",
"public Optional<DateTime> getUnlockCompletionTime() {\n return Optional.ofNullable(unlockCompletionTime);\n }",
"Date getDeploymentTime();",
"public String getChecktime() {\n return checktime;\n }",
"public Date getUpdate_time() {\n\t\treturn update_time;\n\t}",
"public Date getDeploytime() {\n return deploytime;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to test validate token throwing exception | @Test
public void testValidateTokenThrowsException() {
when(authClient.verifyToken("token")).thenThrow(RuntimeException.class);
assertThrows(InvalidTokenException.class, () -> ipTreatmentOfferingsServiceImpl.validateToken("token"));
} | [
"public void testImplementation_validToken() throws Exception;",
"public void testImplementation_invalidToken() throws Exception;",
"@Test\n public void validateJwtToken_simpleWrongToken_failure() {\n String jwtToken = testHelper.createAndLoginAccount();\n assertThatThrownBy(() -> jwtTokenValidationService.validateJwtToken(jwtToken + \"x\"));\n }",
"boolean isTokenValid();",
"@Test\n public void shouldNotGetInvalidToken() {\n when()\n .weGetAToken(\"invalid-token\");\n\n then()\n .theApiErrorCustomCodeIs(\"TKN_NOT_FOUND\");\n }",
"private boolean validateToken(String tokenHeader) {\n return true;\r\n }",
"@Test (expected = Exception.class)\r\n\tpublic void testGetTokenInvalidKey() throws Exception {\r\n\t\tString password = \"a5d16217cdaabaccdb5c928a64c61afe065bd567077\";\t\t\r\n\r\n\t\tAuthenticationService service = AuthenticationService.getInstance();\r\n\t\tString token = service.getAuthToken(SL_ACCOUNTID, UnitTestConstants.SL_USERNAME, password);\r\n\t\tassertNull(token);\r\n\t}",
"@Test\n public void tokenTest() {\n // TODO: test token\n }",
"public void testIsValidSchemaToken ()\r\n {\r\n checkValidSchemaToken(\"XXXX\");\r\n checkValidSchemaToken(\"XXX XXXX\");\r\n checkValidSchemaToken(\"X X\");\r\n checkValidSchemaToken(\"\");\r\n }",
"String validationToken();",
"private void validateToken(){\n\n LoginCache loginToken = tokenAuthenticationService.decodeToken();\n\n if(StringUtils.isEmpty(loginToken)) throw new UnAuthorizedException(\"invalid_token\");\n\n SettingCache settingCache = settingCacheCoreService.getCoreSetting(\"idle_timeout\");\n\n if(loginToken.hasExpired(Long.valueOf(settingCache.getValue())))throw new ScaffoldException(\"session_expired\");\n\n Login login = loginService.getLogin(loginToken.getId());\n\n tokenAuthenticationService.validateLoginStatus(login);\n\n Date date = new Date();\n\n tokenAuthenticationService.refreshToken(loginToken, date);\n tokenAuthenticationService.refreshTracker(loginToken.getTracker(), date);\n\n RequestUtil.setLoginToken(loginToken);\n RequestUtil.setLogin(login);\n }",
"private static boolean checkToken(String token){\n\t\treturn true;\n\t}",
"public void testFailedAuthWithInvalidToken() {\n start();\n\n assertNotNull(mListener.lastMessage);\n mChannel.receiveMessage(\"auth:{\\\"msg\\\":\\\"Token malformed\\\",\\\"code\\\":400}\");\n assertEquals(User.Status.NOT_AUTHORIZED, mAuthStatus);\n }",
"private static void assertToken(StringTokenizer tokenizer, String token) {\n String realToken = tokenizer.nextToken();\n if (!realToken.equals(token))\n throw new IllegalArgumentException(\n \"Bad token \\\"\" + realToken + \"\\\", expected \\\"\" + token + \"\\\" instead\");\n }",
"@Test(expected = TokenInvalidoException.class)\n\tpublic void bajaUsuarioNoExiste() throws TokenInvalidoException {\n\t\tString tk =\"notexist\";\n\t\tservidor.baja(tk);\n\t}",
"protected void validateToken() {\n\n authToken = preferences.getString(getString(R.string.auth_token), \"\");\n saplynService = new SaplynService(preferences.getInt(debugLvl, -1), authToken);\n\n // Check if user already authenticated\n if (authToken.equals(\"\")) {\n Intent intent = new Intent(HomeActivity.this, AuthenticationActivity.class);\n startActivityForResult(intent, 0);\n }\n else {\n populateUser();\n }\n }",
"public void testCtor_Failure1() {\r\n try {\r\n new TCAuthToken(-2);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n //success\r\n }\r\n }",
"JwtUser validate(String token);",
"@Test\n\tpublic void testAuthenticateAdminAccountWithInvalidToken() {\n\n\t\tString error = null;\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(USERNAME2);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"An error occured. Please try again.\", error);\n\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for property rowId. | public String getRowId() {
return rowId;
} | [
"@Override\r\n\tpublic Object getRowKey() {\n\t\treturn rowId;\r\n\t}",
"private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }",
"public final String getRowIdentifier() {\n return properties.get(ROW_IDENTIFIER_PROPERTY);\n }",
"public RowID getRowID() {\n return (RowID)getAttributeInternal(ROWID);\n }",
"public String getIdForRow(int row);",
"public String rowKey() {\n return this.rowKey;\n }",
"public String getRowKey() {\n Property p = getProperty(\"RowKey\");\n return p == null ? null : (String) p.getValue();\n }",
"protected Object getRowKey(Object row)\n {\n assert (_rowKeyProperty != null);\n return __resolveProperty(row, _rowKeyProperty);\n }",
"int getRowId();",
"public Long getRowKey() {\n return (Long) getAttributeInternal(ROWKEY);\n }",
"public String getRowKeyProperty()\n {\n return _rowKeyProperty;\n }",
"public Object getPropertyId() {\r\n return columnPropertyId;\r\n }",
"public InternalRow getRow(int rowId) {\n return columnarBatch.getRow(rowId);\n }",
"public Integer getRowNumber() {\n\t\tif (isRowNumber) {\n\t\t\treturn (int) lineId;\n\t\t}\n\t\treturn null;\n\t}",
"String getRowId(DynamicPropertySet properties)\n {\n Object idObject = properties.getValue(DatabaseConstants.ID_COLUMN_LABEL);\n return idObject != null ? String.valueOf(idObject) : null;\n }",
"public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }",
"protected ElementId getId(Row row) {\n return getElementId(row.getAs(ParquetConstants.IDENTIFIER));\n }",
"public Integer getRowNo() {\n return rowNo;\n }",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column PMSTRADE.QTY_TEXT | public String getQTY_TEXT() {
return QTY_TEXT;
} | [
"public void setQTY_TEXT(String QTY_TEXT) {\r\n this.QTY_TEXT = QTY_TEXT == null ? null : QTY_TEXT.trim();\r\n }",
"public java.lang.String getATPQTY() {\n return ATPQTY;\n }",
"public BigDecimal getQTY() {\r\n return QTY;\r\n }",
"String getRqText();",
"java.lang.String getQuantity();",
"public java.lang.String getQQ() {\n return QQ;\n }",
"public java.lang.String getDELIV_QTY() {\r\n return DELIV_QTY;\r\n }",
"public String asText() {\n String quantityStr;\n\n // we don't want to display decimal digits for int values (6.0 TBSP)\n // so check if quantity is int (check rounded-down value of quantity is the same as quantity)\n if (Math.floor(quantity) == quantity) {\n // quantity can be display as int\n quantityStr = String.valueOf(Math.round(quantity));\n } else {\n // quantity should be double\n quantityStr = String.valueOf(quantity);\n }\n\n return name + \" (\" + quantityStr + \" \" + measureUnit + \")\";\n }",
"public String getRqText() {\n Object ref = rqText_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n rqText_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public BigDecimal getSMART_OPTION_TEXT13() {\r\n return SMART_OPTION_TEXT13;\r\n }",
"public String getQuelltext()\n {\n return _quelltext;\n }",
"public BigDecimal getSMART_OPTION_TEXT11() {\r\n return SMART_OPTION_TEXT11;\r\n }",
"public String getRqText() {\n Object ref = rqText_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n rqText_ = s;\n }\n return s;\n }\n }",
"public String getValue_Text() \n {\n return text;\n }",
"public String getQtyAmt()\n {\n return qtyAmt;\n }",
"public java.lang.String getQtyvar() {\r\n return qtyvar;\r\n }",
"public String getValue() {\n\t\tfinal String getValue = getValue(getColumns().getIndex());\n\t\tlogger.trace(\"getValue()={}\", getValue); \n\t\treturn getValue;\n\t}",
"public BigDecimal getSMART_OPTION_TEXT6() {\r\n return SMART_OPTION_TEXT6;\r\n }",
"public Integer getqNo() {\n return qNo;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .POGOProtos.Rpc.RecommendedSearchProto recommended_search = 2; | @java.lang.Override
public java.util.List<? extends POGOProtos.Rpc.RecommendedSearchProtoOrBuilder>
getRecommendedSearchOrBuilderList() {
return recommendedSearch_;
} | [
"@java.lang.Override\n public POGOProtos.Rpc.RecommendedSearchProtoOrBuilder getRecommendedSearchOrBuilder(\n int index) {\n return recommendedSearch_.get(index);\n }",
"public POGOProtos.Rpc.RecommendedSearchProtoOrBuilder getRecommendedSearchOrBuilder(\n int index) {\n if (recommendedSearchBuilder_ == null) {\n return recommendedSearch_.get(index); } else {\n return recommendedSearchBuilder_.getMessageOrBuilder(index);\n }\n }",
"@java.lang.Override\n public POGOProtos.Rpc.RecommendedSearchProto getRecommendedSearch(int index) {\n return recommendedSearch_.get(index);\n }",
"public POGOProtos.Rpc.RecommendedSearchProto getRecommendedSearch(int index) {\n if (recommendedSearchBuilder_ == null) {\n return recommendedSearch_.get(index);\n } else {\n return recommendedSearchBuilder_.getMessage(index);\n }\n }",
"@java.lang.Override\n public java.util.List<POGOProtos.Rpc.RecommendedSearchProto> getRecommendedSearchList() {\n return recommendedSearch_;\n }",
"public java.util.List<? extends POGOProtos.Rpc.RecommendedSearchProtoOrBuilder> \n getRecommendedSearchOrBuilderList() {\n if (recommendedSearchBuilder_ != null) {\n return recommendedSearchBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(recommendedSearch_);\n }\n }",
"com.cst14.im.protobuf.ProtoClass.SearchInfoOrBuilder getSrchInfoOrBuilder();",
"public POGOProtos.Rpc.RecommendedSearchProto.Builder addRecommendedSearchBuilder() {\n return getRecommendedSearchFieldBuilder().addBuilder(\n POGOProtos.Rpc.RecommendedSearchProto.getDefaultInstance());\n }",
"com.cst14.im.protobuf.ProtoClass.SearchInfo getSrchInfo();",
"com.protobuftest.protobuf.GameProbuf.Game.ResultOrBuilder getResultOrBuilder();",
"com.cst14.im.protobuf.ProtoClass.MsgType getSearchType();",
"protobuf.Protobuf.rank_optionOrBuilder getOptionsOrBuilder();",
"protobuf.Protobuf.rank_option getOptions();",
"pb4server.FindAllPlayerAskReq getFindAllPlayerAskReq();",
"POGOProtos.Rpc.PokemonProtoOrBuilder getPokemonOrBuilder();",
"public interface ZenlyProto$BestFriendOrBuilder extends MessageLiteOrBuilder {\n C7938b getCategories(int i);\n\n int getCategoriesCount();\n\n List<C7938b> getCategoriesList();\n\n C6918b getFacts();\n\n C6920c getLevel();\n\n int getLevelValue();\n\n String getUserUuid();\n\n ByteString getUserUuidBytes();\n\n Timestamp getValidUntil();\n\n boolean hasFacts();\n\n boolean hasValidUntil();\n}",
"com.cst14.im.protobuf.ProtoClass.NearbySettingOrBuilder getNearbySettingOrBuilder();",
"com.google.search.now.wire.feed.ResponseProto.Response getResponse();",
"com.cst14.im.protobuf.ProtoClass.Nearby getNearBy(int index);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays a click heatmap for a given link ID. | @GetMapping("/heatmap")
public ModelAndView Heatmap_page(@RequestParam(value = "linkID", defaultValue = "") String value) {
ModelAndView result = new ModelAndView();
if (value.equals("")) {
result.addObject("control", true);
result.addObject("linkid", "");
} else {
result.addObject("linkid", value);
result.addObject("control", false);
}
return result;
} | [
"private void addClickLayer(@NonNull Style loadedMapStyle) {\n loadedMapStyle.addImage(CLICK_ICON_ID, BitmapFactory.decodeResource(\n TilequeryActivity.this.getResources(), R.drawable.red_marker));\n\n loadedMapStyle.addSource(new GeoJsonSource(CLICK_CENTER_GEOJSON_SOURCE_ID,\n FeatureCollection.fromFeatures(new Feature[] {})));\n\n loadedMapStyle.addLayer(new SymbolLayer(\"click-layer\", CLICK_CENTER_GEOJSON_SOURCE_ID).withProperties(\n iconImage(CLICK_ICON_ID),\n iconOffset(new Float[] {0f, -12f}),\n iconIgnorePlacement(true),\n iconAllowOverlap(true)\n ));\n }",
"public void mouseClicked(MouseEvent e) {\n\n\t\tif(!clickable){\n\t\t\treturn;\n\t\t} else if(!isFullyDiscovered()){\n\t\t\tJOptionPane.showConfirmDialog(this, \"Map not yet fully discovered. \\n Clickability will not be enabled until a full cleaning session has been run\", \"Undiscovered map\", JOptionPane.ERROR_MESSAGE ,JOptionPane.OK_CANCEL_OPTION, null);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(e.getSource().getClass() == VisualTile.class) {\n\t\t\tHashMap<String, String> options = ActionCommandHelper.decodeActionCommand(((VisualTile)e.getSource()).getActionCommand());\n\t\t\t\n\t\t\tCoordinate c = new Coordinate(Integer.parseInt(options.get(\"0\")), Integer.parseInt(options.get(\"1\")));\n\t\t\tvisualMap[c.getX()][c.getY()].select();\n\t\t\t\n\t\t\tif(lastSelectedCoordinate == null)\n\t\t\t\tlastSelectedCoordinate = new Coordinate(Integer.parseInt(options.get(\"0\")), Integer.parseInt(options.get(\"1\")));\n\t\t\telse {\n\t\t\t\tselectTiles(lastSelectedCoordinate, new Coordinate(Integer.parseInt(options.get(\"0\")), Integer.parseInt(options.get(\"1\"))));\n\t\t\t\tlastSelectedCoordinate = null;\n\t\t\t}\n\t\t\tSystem.out.println(\"Selected Coordinate : \" + new Coordinate(Integer.parseInt(options.get(\"0\")), Integer.parseInt(options.get(\"1\"))));\n\t\t}\n\n\t}",
"@Override\n public void mouseClicked(MouseEvent e) {\n new Maps();\n }",
"public void displayLink()\n\t{\n\t\tSystem.out.println(\"{ \" + sData + \" }\");\n\t}",
"private synchronized void drawMap(){\n\t\t\n\t\tthis.removeAll();\n\t\tint width = map.length;\n\t\tint height = map[0].length;\n\t\t\n\t\tJPanel mapPanel = new innerPanel(new GridLayout(height, width));\n\t\tvisualMap = new VisualTile[width][height];\n\t\t\n\t\tfor(int i = 0; i < height; i++) {\n\t\t\tfor(int j = 0; j < width; j++) {\n\t\t\t\t\tvisualMap[j][i] = createTile(map[j][i]);\n\t\t\t\t\tvisualMap[j][i].setActionCommand(ActionCommandHelper.encodeActionCommand(new String[]{Integer.toString(j), Integer.toString(i)}));\n\t\t\t\t\tvisualMap[j][i].addMouseListener(this);\n\t\t\t\t\tmapPanel.add(visualMap[j][i]);\n\t\t\t\t}\n\t\t\t}\n\t\tthis.add(mapPanel);\n\t}",
"private void displayPaneMouseClicked(java.awt.event.MouseEvent evt) {\r\n java.awt.Point p = evt.getPoint();\r\n java.awt.Rectangle rect = this.displayScrollPane.getViewport().getViewRect();\r\n double x = p.getX();\r\n double y = p.getY();\r\n helixImgGen.setPrimarySelectionLocation(x, y, rect.getSize());\r\n this.updateImage();\r\n // for an unknown reason, normal updates do not seem to\r\n // take place in the case of a click; perhaps it is due\r\n // to interference from processing events but in any\r\n // case, an explicit repaint will work\r\n displayPane.repaint();\r\n // IMPORTANT: current helix is not up-to-date until after\r\n // the image is updated; the propertyChange() method is\r\n // used to respond slightly later, after an update\r\n }",
"@Override\n \tpublic JPanel getContextLinkPanel(int selectedDataCount) {\n \n \t\tfinal ClientApplication application = Session.getSession().getApplication();\n \n \t\tif (!application.isStandalone()) {\n \t\t\treturn null;\n \t\t}\n \n \t\tJPanel contentPanel = new JPanel();\n \n \t\t// Initialise context link panel\n \t\tcontentPanel.setBackground(Color.WHITE);\n \t\tcontentPanel.setLayout(new GridBagLayout());\n \t\tGridBagConstraints c = new GridBagConstraints();\n \t\tc.gridx = 0;\n \t\tc.gridy = 0;\n \t\tc.anchor = GridBagConstraints.NORTHWEST;\n \n \t\tint topMargin = 15;\n \t\tint leftMargin = 30;\n \t\tc.insets.set(topMargin, leftMargin, 0, 0);\n \t\tcontentPanel.add(new JLabel(VisualConstants.QUICKLINK_ICON), c);\n \t\tJXHyperlink link;\n \t\tboolean currentSelectionVisualisable = false;\n \t\ttry {\n \t\t\tVisualisation visualisation = MicroarrayModule.VisualisationMethods.GBROWSER.getVisualiser(null);\n \t\t\tif (visualisation != null) {\n \t\t\t\tList<DataBean> selection = application.getSelectionManager().getSelectedDataBeans();\n \t\t\t\tcurrentSelectionVisualisable = visualisation.canVisualise(selection);\n \t\t\t}\n \t\t} catch (Exception e2) {\n \t\t\t// ignore\n \t\t}\n \n \t\tif (selectedDataCount > 0 && currentSelectionVisualisable) {\n \t\t\t// Selection can be visualised directly\n \t\t\tlink = new JXHyperlink(new AbstractAction() {\n \t\t\t\t@Override\n \t\t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\t\tapplication.setVisualisationMethod(MicroarrayModule.VisualisationMethods.GBROWSER, null, application.getSelectionManager().getSelectedDataBeans(), FrameType.MAIN);\n \t\t\t\t}\n \t\t\t});\n \t\t\tlink.setText(\"Open genome browser\");\n \n \n \t\t} else if (selectedDataCount < application.getDataManager().databeans().size()) {\n \t\t\t// Not all datasets are selected, they might be visualisable when selected, so suggest it\n \t\t\tlink = new JXHyperlink(new AbstractAction() {\n \t\t\t\t@Override\n \t\t\t\tpublic void actionPerformed(ActionEvent e) {\n \n \t\t\t\t\t// Select all datasets (creates a bunch of events)\n \t\t\t\t\tapplication.selectAllItems();\n \n \t\t\t\t\t// Check if selection can be visualised\n \t\t\t\t\tboolean canVisualise = false;\n \t\t\t\t\ttry {\n \t\t\t\t\t\tcanVisualise = MicroarrayModule.VisualisationMethods.GBROWSER.getVisualiser(null).canVisualise(application.getSelectionManager().getSelectedDataBeans());\n \t\t\t\t\t} catch (Exception e1) {\n \t\t\t\t\t\t// ignore\n \t\t\t\t\t}\n \n \t\t\t\t\tif (canVisualise) {\n \t\t\t\t\t\t// Use invokeLater so that visualisation system can process events from selectAllItems \n \t\t\t\t\t\t// before this. Otherwise the system is not synchronized and the visualisation panel\n \t\t\t\t\t\t// does not update.\n \t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t\t\tapplication.setVisualisationMethod(MicroarrayModule.VisualisationMethods.GBROWSER, null, application.getSelectionManager().getSelectedDataBeans(), FrameType.MAIN);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \t\t\t\t\t} else {\n \t\t\t\t\t\tapplication.showDialog(\"Cannot open genome browser\", \"Currect dataset selection cannot be visualised in genome browser\", \"Unselect improper datasets to open genome browser.\", Severity.INFO, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\tlink.setText(\"Select all and open genome browser\");\n \n \t\t} else {\n \t\t\t// No links available, bail out\n \t\t\treturn null;\n \t\t}\n \n \t\tc.insets.set(topMargin, 5, 0, 0);\n \t\tc.gridx++;\n \t\tcontentPanel.add(link, c);\n \n \t\treturn contentPanel;\n \t}",
"public void displaymap(AircraftData data);",
"@Override\n public void onMouseClicked(final MouseEvent event) {\n super.onMouseClicked(event);\n final Point mouseMapPoint = getMap().toMapPoint(event.getX(), event.getY());\n\n if (event.getButton() == MouseEvent.BUTTON1) {\n\n SwingUtilities.invokeLater(new Runnable() {\n \n @Override\n public void run() {\n HashMap<Layer, ArrayList<Feature>> hitResultMap = new HashMap<Layer, ArrayList<Feature>>();\n // hit test the layers starting with the topmost\n for (int index = getMap().getLayers().size() - 1; index >= 0; index--) {\n ArrayList<Feature> hitTestResult = new ArrayList<Feature>();\n Layer l = getMap().getLayers().get(index);\n if (_layers.contains(l)) {\n if(l instanceof GraphicsLayer){\n GraphicsLayer curGraphicsLayer = (GraphicsLayer)l;\n int[] hitIDs = curGraphicsLayer.getGraphicIDs(event.getX(), event.getY(), 0);\n for (int i : hitIDs) {\n hitTestResult.add(curGraphicsLayer.getGraphic(i));\n }\n \n if(!hitTestResult.isEmpty()){\n hitResultMap.put(curGraphicsLayer, hitTestResult);\n }\n }else if(l instanceof FeatureLayer){\n FeatureLayer curFeatureLayer = (FeatureLayer) l;\n FeatureTable table = curFeatureLayer.getFeatureTable();\n long[] hitIDs = curFeatureLayer.getFeatureIDs(event.getX(), event.getY(), 12);\n for(long id: hitIDs){\n try {\n hitTestResult.add(table.getFeature(id));\n } catch (TableException e) {\n e.printStackTrace();\n }\n }\n \n if(!hitTestResult.isEmpty()){\n hitResultMap.put(curFeatureLayer, hitTestResult);\n }\n }else{\n // Handle map service layer\n ArrayList<LayerInfo> layerInfos = new ArrayList<LayerInfo>();\n \n // Get list of sublayers\n if(l instanceof ArcGISDynamicMapServiceLayer){\n layerInfos.addAll(((ArcGISDynamicMapServiceLayer)l).getLayersList());\n }else if(l instanceof ArcGISTiledMapServiceLayer){\n layerInfos.addAll(((ArcGISTiledMapServiceLayer)l).getLayersList());\n }\n int layerCount = layerInfos.size();\n \n // Perform a query on each sublayer\n for(int count = 0; count < layerCount; ++count){\n if(l.getPopupInfo(count) != null){\n String queryUrl = l.getQueryLayerUrl(count);\n \n if(queryUrl != null){\n QueryParameters query = new QueryParameters();\n \n if(layerInfos.get(count).getGeometryType() != Type.POLYGON){\n // Create an envelope around the clicked point and to an intersects\n // spatial query\n \n double contractRatio = getMap().getExtent().getWidth() / 20;\n Envelope inputEnvelope = new Envelope(mouseMapPoint.getX() - contractRatio,\n mouseMapPoint.getY() - contractRatio,\n mouseMapPoint.getX() + contractRatio,\n mouseMapPoint.getY() + contractRatio);\n query.setGeometry(inputEnvelope);\n query.setSpatialRelationship(SpatialRelationship.INTERSECTS);\n }else{\n // Have a polygon layer, we can do a spatial query for features containing\n // the clicked point.\n query.setGeometry(mouseMapPoint);\n query.setSpatialRelationship(SpatialRelationship.WITHIN);\n }\n \n SpatialReference spatialReference = getMap().getSpatialReference();\n query.setInSpatialReference(spatialReference);\n query.setOutSpatialReference(spatialReference);\n query.setOutFields(new String[]{\"*\"});\n QueryTask queryTask = new QueryTask(queryUrl);\n FeatureResult results;\n try {\n results = queryTask.execute(query);\n if(results != null){\n for(Object curResult: results){\n if (curResult instanceof Feature)\n hitTestResult.add((Feature)curResult);\n }\n }\n } catch (Exception e) {\n }\n }\n hitResultMap.put(l, hitTestResult);\n }\n }\n }\n }\n }\n \n if (!hitResultMap.isEmpty()) {\n displayPopup(hitResultMap, event.getLocationOnScreen());\n } \n }\n });\n }\n }",
"private void fireLinkEvent(int actionId, SessionDetailModel data) {\n // ANALYTICS EVENT: Click on a link in the Session Details page.\n // Contains: The link's name and the session title.\n AnalyticsHelper.sendEvent(\"Session\", getString(actionId), data.getSessionTitle());\n }",
"public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);",
"public void hyperlinkUpdate(HyperlinkEvent e) {\r\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n System.out.println(e.getURL().toString());\r\n tabbedPane1.setSelectedIndex(1);\r\n infComic = new infoComics(e.getURL().toString()+\"?&ts=1&apikey=3560ed6e3f1152119172d09d56535ffe&hash=0d7c00977c36d82b6858c8fe6b3fe53b\");\r\n changement(false);\r\n changPanel(infComic); } }",
"void showTooltip();",
"void onThumbnailClick(String thumbnailUrl);",
"public void switchHeatMap() {\n if (googleMap != null && mMapLatLng.get() != null) {\n if (heatMapLocations != null && heatMapLocations.size() > 0)\n if (!heatmapSet.get()) {\n mProvider = new HeatmapTileProvider.Builder().data(heatMapLocations).build();\n mOverlay = googleMap.addTileOverlay(new TileOverlayOptions().tileProvider(mProvider));\n mProvider.setGradient(ALT_HEATMAP_GRADIENT);\n mProvider.setRadius(ALT_HEATMAP_RADIUS);\n mProvider.setData(heatMapLocations);\n mOverlay.clearTileCache();\n// heatmapSet.set(true);\n } /*else {\n mOverlay.remove();\n heatmapSet.set(false);\n }*/\n }\n }",
"public void setLinkid(Integer linkid) {\n this.linkid = linkid;\n }",
"public void doubleClickDashboardWidgetTitle( String id ) {\n switchToDashboardFrame();\n format( lblDashboardWidgetTitle, id ).doubleClick();\n }",
"public void drawHighlightedLinksForTableEntries(LinkedList<ResultsTableEntry> tableEntries, Graphics2D g2, GChromoMap selectedMap)\r\n\t{\r\n\t\tfor (ResultsTableEntry resultsTableEntry : tableEntries)\r\n\t\t{\r\n\t\t\t//draw a link but only if the entry on the table is not just a feature on its own but there is a homolog too\r\n\t\t\tif(resultsTableEntry.getHomologFeature() != null)\r\n\t\t\t{\r\n\t\t\t\t//if the selectedMap is null here that means we have got here not through a mouse based selection event but through displaying the feature table\r\n\t\t\t\t//in that case we can just use the first instance of a map that contains the target feature\r\n\t\t\t\tif(Strudel.winMain.fatController.selectedMap == null)\r\n\t\t\t\t{\r\n\t\t\t\t\t//we need to check that we have two adjacent mapsets for this though\r\n\t\t\t\t\t//if there is more than one graphical instance of our target feature's mapset, we need to at least attempt to pair it up with\r\n\t\t\t\t\t//an adjacent mapset that has the homolog on it\r\n\t\t\t\t\tselectedMap = Utils.getAdjacentPairOfGMaps(resultsTableEntry.getTargetFeature(), resultsTableEntry.getHomologFeature());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcheckLinkAndDraw(g2, resultsTableEntry.getTargetFeature(), resultsTableEntry.getHomologFeature(), Float.parseFloat(resultsTableEntry.getLinkEValue()), true, selectedMap, false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void broadcastHeatmap(final String jsonApiHeatmap) {\n final OutboundSseEvent event = this.sse.newEventBuilder()\n .name(SSE_EVENT_NAME)\n .mediaType(APPLICATION_JSON_API_TYPE)\n .data(jsonApiHeatmap)\n .build();\n\n this.broadcaster.broadcast(event);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Broadcast new landscape metrics to clients\");\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests matching an Array of URIs against an expected result | private void checkUris(String[] uris, String expectedMimeType) {
for (String uri : uris) {
String mimeType = mContentResolver.getType(Uri.parse(uri));
Assert.assertEquals("Failed for " + uri, expectedMimeType, mimeType);
}
} | [
"@Test\n public void filterUrisTest() {\n // TODO: test filterUris\n }",
"public void testUriMatcher() {\n UriMatcher testMatcher = RecipeProvider.buildUriMatcher();\n\n assertEquals(\"Error: The INGREDIENT URI was matched incorrectly.\",\n testMatcher.match(TEST_INGREDIENT), RecipeProvider.INGREDIENT);\n assertEquals(\"Error on all ingredient match.\", testMatcher.match(TEST_INGREDIENT_ALL), RecipeProvider.INGREDIENT_ALL);\n assertEquals(\"Error: The WEATHER WITH LOCATION URI was matched incorrectly.\",\n testMatcher.match(TEST_RECIPE), RecipeProvider.RECIPE);\n }",
"public boolean matches(String uri);",
"@Test\n public void testGetUrlOfAllFilesOfMetsDocument() throws Exception {\n System.out.println(\"getUrlOfAllFilesOfMetsDocument\");\n String resourceId = \"id_0016\";\n String items[] = {\"url16\", \"url2_16\"};\n\n this.mockMvc.perform(get(\"/api/v1/metastore/mets/\" + resourceId + \"/files/url\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$\", Matchers.hasSize(2)))\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.[*]\", Matchers.hasItems(items)))\n .andReturn();\n }",
"UrlMappingInfo[] matchAll(String uri);",
"public void testGetResolvedUrlMethod() {\n\t\teq(\"http://monaca.mobi\", UrlUtil.getResolvedUrl(\"http://monaca.mobi\"));\n\t\teq(\"http://monaca.mobi/features/../\", UrlUtil.getResolvedUrl(\"http://monaca.mobi/features/../\"));\n\t\teq(\"http://blog.asial.co.jp/category/21/../../\", UrlUtil.getResolvedUrl(\"http://blog.asial.co.jp/category/21/../../\"));\n\n\t\teq(\"file:///android_asset/www\", \"file:///android_asset/www\");\n\t\teq(\"file:///android_asset/www/\", \"file:///android_asset/www/\");\n\n\t\teq(\"file:///android_asset\", UrlUtil.getResolvedUrl(\"file:///android_asset/\"));\n\t\teq(\"file:///android_asset\", UrlUtil.getResolvedUrl(\"file:///android_asset/www/../\"));\n\t\teq(\"file:///android_asset\", UrlUtil.getResolvedUrl(\"file:///android_asset/www/hoge/../../\"));\n\t\teq(\"file:///android_asset\", UrlUtil.getResolvedUrl(\"file:///android_asset/www/hoge/foo/../../../\"));\n\n\t\teq(\"file:///data/data/mobi.monaca.framework.psedo\", UrlUtil.getResolvedUrl(\"file:///data/data/mobi.monaca.framework.psedo/\"));\n\t\teq(\"file:///data/data/mobi.monaca.framework.psedo\", UrlUtil.getResolvedUrl(\"file:///data/data/mobi.monaca.framework.psedo/www/../\"));\n\t\teq(\"file:///data/data/mobi.monaca.framework.psedo\", UrlUtil.getResolvedUrl(\"file:///data/data/mobi.monaca.framework.psedo/www/hoge/../../\"));\n\t\teq(\"file:///data/data/mobi.monaca.framework.psedo\", UrlUtil.getResolvedUrl(\"file:///data/data/mobi.monaca.framework.psedo/www/hoge/foo/../../../\"));\n\t}",
"@Test\n public void testManualTest()\n {\n\t UrlValidator urlVal = new UrlValidator(null, null, UrlValidator.ALLOW_ALL_SCHEMES);\n\t //sanity check\n\t ResultPair sane = new ResultPair(\"http://www.amazon.com\", true);\n\t collector.checkThat(sane.item, sane.valid, equalTo(urlVal.isValid(sane.item)));\n\t //test manualUrls\n\t for(ResultPair res : this.m_fileUrls)\n\t {\n\t\t collector.checkThat(res.item, res.valid, equalTo(urlVal.isValid(res.item)));\n\t }\n }",
"public void testUriMatcher() {\n UriMatcher testMatcher = TrackProvider.buildUriMatcher();\n\n assertEquals(\"Error: The TRACK URI was matched incorrectly.\",\n testMatcher.match(TEST_TRACK_DIR), TrackProvider.TRACK);\n assertEquals(\"Error: The TRACK WITH LOCATION URI was matched incorrectly.\",\n testMatcher.match(TEST_TRACK_WITH_LOCATION_DIR), TrackProvider.TRACK_WITH_LOCATION);\n assertEquals(\"Error: The TRACK WITH LOCATION AND DATE URI was matched incorrectly.\",\n testMatcher.match(TEST_TRACK_WITH_LOCATION_AND_DATE_DIR), TrackProvider.TRACK_WITH_LOCATION_AND_DATE);\n assertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n testMatcher.match(TEST_LOCATION_DIR), TrackProvider.LOCATION);\n }",
"public void testUriMatcher() {\n\n // 0. get the created Uri matcher\n // 1. test the match for the weather\n // 2. test the match for the weather with location\n // 3. test the match for the weather with location and date\n // 4. test the match for the location\n\n // 0. get the created Uri matcher\n\n UriMatcher uriMatcher = WeatherProvider.buildUriMatcher();\n\n // 1. test the match for the weather\n\n assertEquals( \"Error: WEATHER was not matched.\" ,\n WeatherProvider.WEATHER,\n uriMatcher.match( TEST_WEATHER_DIR ) );\n\n // 2. test the match for the weather with location\n\n assertEquals( \"Error: WEATHER WITH LOCATION was not matched.\" ,\n WeatherProvider.WEATHER_WITH_LOCATION,\n uriMatcher.match( TEST_WEATHER_WITH_LOCATION_DIR ) );\n\n // 3. test the match for the weather with location and date\n\n assertEquals( \"Error: WEATHER WITH LOCATION AND DATE was not matched.\" ,\n WeatherProvider.WEATHER_WITH_LOCATION_AND_DATE,\n uriMatcher.match( TEST_WEATHER_WITH_LOCATION_AND_DATE_DIR ) );\n\n // 4. test the match for the location\n\n assertEquals( \"Error: LOCATION was not matched.\" ,\n WeatherProvider.LOCATION,\n uriMatcher.match( TEST_LOCATION_DIR ) );\n\n }",
"public void testUriMatcher() {\n\t\tUriMatcher testMatcher = MoviesProvider.buildUriMatcher();\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_MOVIE_TRAILERS: %s MoviesProvider.MOVIE_TRAILERS: %s\", TEST_MOVIE_TRAILERS, MoviesProvider.MOVIE_TRAILERS));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_MOVIE_TRAILERS), MoviesProvider.MOVIE_TRAILERS);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_MOVIE_REVIEWS: %s MoviesProvider.MOVIE_REVIEWS: %s\", TEST_MOVIE_REVIEWS, MoviesProvider.MOVIE_REVIEWS));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_MOVIE_REVIEWS), MoviesProvider.MOVIE_REVIEWS);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_MOVIE_BY_ID: %s MoviesProvider.MOVIE_BY_ID: %s\", TEST_MOVIE_BY_ID, MoviesProvider.MOVIE_BY_ID));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_MOVIE_BY_ID), MoviesProvider.MOVIE_BY_ID);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_MOVIES_DIR: %s MoviesProvider.MOVIES: %s\", TEST_MOVIES_DIR, MoviesProvider.MOVIES));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_MOVIES_DIR), MoviesProvider.MOVIES);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_FAVORITE_BY_ID: %s MoviesProvider.FAVORITE_BY_ID: %s\", TEST_FAVORITE_BY_ID, MoviesProvider.FAVORITE_BY_ID));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_FAVORITE_BY_ID), MoviesProvider.FAVORITE_BY_ID);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_REMOVE_FAVORITE_BY_ID: %s MoviesProvider.REMOVE_FAVORITE_BY_ID: %s\", TEST_REMOVE_FAVORITE_BY_ID, MoviesProvider.REMOVE_FAVORITE_BY_ID));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_REMOVE_FAVORITE_BY_ID), MoviesProvider.REMOVE_FAVORITE_BY_ID);\n\t\tLog.d(getClass().getSimpleName(), String.format(\"TEST_FAVORITE_MOVIES: %s MoviesProvider.TEST_FAVORITE_MOVIES: %s\", TEST_FAVORITE_MOVIES, MoviesProvider.FAVORITE_MOVIES));\n\t\tassertEquals(\"Error: The LOCATION URI was matched incorrectly.\",\n\t\t\t\ttestMatcher.match(TEST_FAVORITE_MOVIES), MoviesProvider.FAVORITE_MOVIES);\n\t}",
"private void testToUri003() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testToUri003\");\n\t\t\tTestCase.assertTrue(\"Asserts that Uri.toUri(String[]) returns an empty URI (\\\"\\\") if \" +\n\t\t\t\t\t\"the specified path is an empty array\",Uri.toUri(new String[0]).equals(\"\"));\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t}\n\t}",
"private void testValidIRISpecified(final String service,\n final String redirectPrefix,\n final String[] resourcesThatShouldResolve) {\n // Include an ampersand in the test suffix, as it is important\n // to confirm that this comes back without any form of escaping applied.\n String dummyTestSuffix = \"&dummyTestSuffix\";\n Response response = null;\n URI redirectLocation;\n for (String resource : resourcesThatShouldResolve) {\n try {\n response =\n NetClientUtils.doGetWithAdditionalComponentsNoRedirects(\n baseURL, service,\n webTarget -> webTarget.queryParam(\"iri\",\n resource));\n Assert.assertEquals(response.getStatusInfo().getFamily(),\n Family.REDIRECTION,\n \"lookupIRI response status for iri: \" + resource);\n redirectLocation = response.getLocation();\n } finally {\n if (response != null) {\n response.close();\n response = null;\n }\n }\n Assert.assertEquals(redirectLocation.toString(),\n redirectPrefix + \"?uri=\" + resource,\n \"Redirect URL for \" + resource);\n // Now again, with a suffix provided.\n try {\n response =\n NetClientUtils.doGetWithAdditionalComponentsNoRedirects(\n baseURL, service,\n webTarget -> webTarget.queryParam(\"iri\",\n resource)\n .queryParam(\"suffix\", dummyTestSuffix));\n Assert.assertEquals(response.getStatusInfo().getFamily(),\n Family.REDIRECTION,\n \"lookupIRI response status for iri: \" + resource);\n redirectLocation = response.getLocation();\n } finally {\n if (response != null) {\n response.close();\n response = null;\n }\n }\n Assert.assertEquals(redirectLocation.toString(),\n redirectPrefix + \"?uri=\" + resource + dummyTestSuffix,\n \"Redirect URL for \" + resource\n + \" with suffix \" + dummyTestSuffix);\n }\n }",
"private static void assertAdditionalLinksEqual(List<String> expected, List<String> actual) {\n\t\tAssertions.assertEquals(expected.size(), actual.size());\n\n\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\tAssertions.assertEquals(expected.get(i), actual.get(i));\n\t\t}\n\t}",
"private void testOne(String text, String expectedURL) throws Exception {\n Collection<TestData> testDataCol = makeData(text, expectedURL);\n for (TestData testData: testDataCol) {\n extractor.process(testData.uri);\n HashSet<CrawlURI> expected = new HashSet<CrawlURI>();\n if (testData.expectedResult != null) {\n expected.add(testData.expectedResult);\n }\n assertEquals(expected, testData.uri.getOutLinks());\n assertNoSideEffects(testData.uri);\n }\n }",
"@Test\n public void testUrlParser() {\n for(String url: urls) {\n System.out.println(\"Parsing: \" + url);\n UrlData data = new UrlData(url);\n assertEquals(\"Parsing \" + url + \" failed.\", url, data.constructUrl());\n }\n }",
"public void testIsValid()\n {\n\t ResultPair [] protocolPairs = {\n\t\t\t /*new ResultPair(\"aaa://\", true),\n\t\t\t new ResultPair(\"aaas://\", true),\n\t\t\t new ResultPair(\"about://\", true),\n\t\t\t new ResultPair(\"acap://\", true),\n\t\t\t new ResultPair(\"acct://\", true),\n\t\t\t new ResultPair(\"cap://\", true),\n\t\t\t new ResultPair(\"cid://\", true),\n\t\t\t new ResultPair(\"coap://\", true),\n\t\t\t new ResultPair(\"coaps://\", true),\n\t\t\t new ResultPair(\"crid://\", true),\n\t\t\t new ResultPair(\"data://\", true),\n\t\t\t new ResultPair(\"dav://\", true),\n\t\t\t new ResultPair(\"dict://\", true),\n\t\t\t new ResultPair(\"dns://\", true),\n\t\t\t new ResultPair(\"example://\", true),\n\t\t\t new ResultPair(\"file://\", true),*/\n\t\t\t new ResultPair(\"ftp://\", true),\n\t\t\t new ResultPair(\"geo://\", true),\n\t\t\t new ResultPair(\"go://\", true),\n\t\t\t new ResultPair(\"gopher://\", true),\n\t\t\t new ResultPair(\"h323://\", true),\n\t\t\t new ResultPair(\"http://\", true),\n\t\t\t new ResultPair(\"https://\", true),\n\t\t\t new ResultPair(\"iax://\", true),\n\t\t\t new ResultPair(\"icap://\", true),\n\t\t\t new ResultPair(\"im://\", true),\n\t\t\t new ResultPair(\"imap://\", true),\n\t\t\t new ResultPair(\"info://\", true),\n\t\t\t new ResultPair(\"ipp://\", true),\n\t\t\t new ResultPair(\"ipps://\", true),\n\t\t\t new ResultPair(\"iris://\", true),/*\n\t\t\t new ResultPair(\"iris.beep://\", true),\n\t\t\t new ResultPair(\"iris.lwz://\", true),\n\t\t\t new ResultPair(\"iris.xpc://\", true),\n\t\t\t new ResultPair(\"iris.xpcs://\", true),\n\t\t\t new ResultPair(\"jabber://\", true),\n\t\t\t new ResultPair(\"ldap://\", true),\n\t\t\t new ResultPair(\"mailto://\", true),\n\t\t\t new ResultPair(\"mid://\", true),\n\t\t\t new ResultPair(\"msrp://\", true),\n\t\t\t new ResultPair(\"msrps://\", true),\n\t\t\t new ResultPair(\"mtqp://\", true),\n\t\t\t new ResultPair(\"mupdate://\", true),\n\t\t\t new ResultPair(\"news://\", true),\n\t\t\t new ResultPair(\"nfs://\", true),\n\t\t\t new ResultPair(\"ni://\", true),\n\t\t\t new ResultPair(\"nih://\", true),\n\t\t\t new ResultPair(\"nntp://\", true),\n\t\t\t new ResultPair(\"opaquelocktoken://\", true),\n\t\t\t new ResultPair(\"pkcs11://\", true),\n\t\t\t new ResultPair(\"pop://\", true),\n\t\t\t new ResultPair(\"pres://\", true),\n\t\t\t new ResultPair(\"reload://\", true),\n\t\t\t new ResultPair(\"rtsp://\", true),\n\t\t\t new ResultPair(\"rtsps://\", true),\n\t\t\t new ResultPair(\"rtspu://\", true),\n\t\t\t new ResultPair(\"service://\", true),\n\t\t\t new ResultPair(\"session://\", true),\n\t\t\t new ResultPair(\"shttp://\", true),\n\t\t\t new ResultPair(\"sieve://\", true),\n\t\t\t new ResultPair(\"sip://\", true),\n\t\t\t new ResultPair(\"sips://\", true),\n\t\t\t new ResultPair(\"sms://\", true),\n\t\t\t new ResultPair(\"snmp://\", true),\n\t\t\t new ResultPair(\"soap.beep://\", true),\n\t\t\t new ResultPair(\"soap.beeps://\", true),\n\t\t\t new ResultPair(\"stun://\", true),\n\t\t\t new ResultPair(\"stuns://\", true),\n\t\t\t new ResultPair(\"tag://\", true),\n\t\t\t new ResultPair(\"tel://\", true),\n\t\t\t new ResultPair(\"telnet://\", true),\n\t\t\t new ResultPair(\"tftp://\", true),\n\t\t\t new ResultPair(\"thismessage://\", true),\n\t\t\t new ResultPair(\"tip://\", true),\n\t\t\t new ResultPair(\"tn3270://\", true),\n\t\t\t new ResultPair(\"turn://\", true),\n\t\t\t new ResultPair(\"turns://\", true),\n\t\t\t new ResultPair(\"tv://\", true),\n\t\t\t new ResultPair(\"urn://\", true),\n\t\t\t new ResultPair(\"vemmi://\", true),\n\t\t\t new ResultPair(\"ws://\", true),\n\t\t\t new ResultPair(\"wss://\", true),\n\t\t\t new ResultPair(\"xcon://\", true),\n\t\t\t new ResultPair(\"xcon-userid://\", true),\n\t\t\t new ResultPair(\"xmlrpc.beep://\", true),\n\t\t\t new ResultPair(\"xmlrpc.beeps://\", true),\n\t\t\t new ResultPair(\"xmpp://\", true),\n\t\t\t new ResultPair(\"z39.50r://\", true),\n\t\t\t new ResultPair(\"z39.50s://\", true),*/\n\t\t\t new ResultPair(\"www?google\", false),\n\t\t\t new ResultPair(\"w12�\", false),\n\t\t\t new ResultPair(\":://\", false),\n\t\t\t new ResultPair(\"hp://www.bitup.org/\\\"\", false),\n\t\t\t new ResultPair(\"12www://\", false),\n\t\t\t new ResultPair(\"\", false),\n\t\t\t new ResultPair(\"feelin://Burn://\", false),\n\t\t\t new ResultPair(\"ls-qp://\", false),\n\t\t\t new ResultPair(\"asdfni:\\\\\", false)\n\t };\t\t \n\t \n\t /* https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains\n\t * Provides a list of valid TLDs. We used these in our key-pair map.\n\t * Commented out some because it was taking too long and crashing Eclipse,\n\t * causing the same issue with heavily repeated failure reports as with the\n\t * protocol pairs.\n\t * Might want a separate array if doing thorough testing to find all bugs\n\t * beyond the 3 for this assignment.\n\t */\n\t ResultPair [] domainPairs = {\n\t\t\t new ResultPair(\"bread.com\", true),\n\t\t\t new ResultPair(\"bagels.org\", true),\n\t\t\t new ResultPair(\"google.net\", true),\n\t\t\t new ResultPair(\"drought.int\", true),\n\t\t\t new ResultPair(\"buckets.edu\", true),\n\t\t\t new ResultPair(\"draft.gov\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.mil\", true),\n\t\t\t new ResultPair(\"www.bread.ac\", true),\n\t\t\t new ResultPair(\"www.bagels.ad\", true),\n\t\t\t new ResultPair(\"www.google.ae\", true),\n\t\t\t new ResultPair(\"www.drought.af\", true),\n\t\t\t new ResultPair(\"www.buckets.ag\", true),\n\t\t\t new ResultPair(\"www.draft.ai\", true),\n\t\t\t new ResultPair(\"bread.al\", true),\n\t\t\t new ResultPair(\"bagels.am\", true),\n\t\t\t new ResultPair(\"google.an\", true),\n\t\t\t new ResultPair(\"drought.ao\", true),\n\t\t\t new ResultPair(\"buckets.aq\", true),\n\t\t\t new ResultPair(\"draft.ar\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.as\", true),\n\t\t\t new ResultPair(\"www.bread.at\", true),\n\t\t\t new ResultPair(\"www.bagels.au\", true),\n\t\t\t new ResultPair(\"www.google.aw\", true),\n\t\t\t new ResultPair(\"www.drought.ax\", true),\n\t\t\t new ResultPair(\"www.buckets.az\", true),\n\t\t\t new ResultPair(\"www.draft.ba\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.bb\", true),\n\t\t\t new ResultPair(\"bread.bd\", true),\n\t\t\t new ResultPair(\"bagels.be\", true),\n\t\t\t new ResultPair(\"google.bf\", true),\n\t\t\t new ResultPair(\"drought.bg\", true),\n\t\t\t new ResultPair(\"buckets.bh\", true),\n\t\t\t new ResultPair(\"draft.bi\", true),/*\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.bj\", true),\n\t\t\t new ResultPair(\"www.bread.bm\", true),\n\t\t\t new ResultPair(\"www.bagels.bn\", true),\n\t\t\t new ResultPair(\"www.google.bo\", true),\n\t\t\t new ResultPair(\"www.drought.bq\", true),\n\t\t\t new ResultPair(\"www.buckets.br\", true),\n\t\t\t new ResultPair(\"www.draft.bs\", true),\n\t\t\t new ResultPair(\"bread.bt\", true),\n\t\t\t new ResultPair(\"bagels.bv\", true),\n\t\t\t new ResultPair(\"google.bw\", true),\n\t\t\t new ResultPair(\"drought.by\", true),\n\t\t\t new ResultPair(\"buckets.bz\", true),\n\t\t\t new ResultPair(\"draft.ca\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.cc\", true),\n\t\t\t new ResultPair(\"www.bread.cd\", true),\n\t\t\t new ResultPair(\"www.bagels.cf\", true),\n\t\t\t new ResultPair(\"www.google.cg\", true),\n\t\t\t new ResultPair(\"www.drought.ch\", true),\n\t\t\t new ResultPair(\"www.buckets.ci\", true),\n\t\t\t new ResultPair(\"www.draft.ck\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.cl\", true),\n\t\t\t new ResultPair(\"bread.cm\", true),\n\t\t\t new ResultPair(\"bagels.cn\", true),\n\t\t\t new ResultPair(\"google.co\", true),\n\t\t\t new ResultPair(\"drought.cr\", true),\n\t\t\t new ResultPair(\"buckets.cu\", true),\n\t\t\t new ResultPair(\"draft.cv\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.cw\", true),\n\t\t\t new ResultPair(\"www.bread.cx\", true),\n\t\t\t new ResultPair(\"www.bagels.cy\", true),\n\t\t\t new ResultPair(\"www.google.cz\", true),\n\t\t\t new ResultPair(\"www.drought.de\", true),\n\t\t\t new ResultPair(\"www.buckets.dj\", true),\n\t\t\t new ResultPair(\"www.draft.dk\", true),\n\t\t\t new ResultPair(\"bread.dm\", true),\n\t\t\t new ResultPair(\"bagels.do\", true),\n\t\t\t new ResultPair(\"google.dz\", true),\n\t\t\t new ResultPair(\"drought.ec\", true),\n\t\t\t new ResultPair(\"buckets.ee\", true),\n\t\t\t new ResultPair(\"draft.eg\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.eh\", true),\n\t\t\t new ResultPair(\"www.bread.er\", true),\n\t\t\t new ResultPair(\"www.bagels.es\", true),\n\t\t\t new ResultPair(\"www.google.et\", true),\n\t\t\t new ResultPair(\"www.drought.eu\", true),\n\t\t\t new ResultPair(\"www.buckets.fi\", true),\n\t\t\t new ResultPair(\"www.draft.fj\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.fk\", true),\n\t\t\t new ResultPair(\"bread.fm\", true),\n\t\t\t new ResultPair(\"bagels.fo\", true),\n\t\t\t new ResultPair(\"google.fr\", true),\n\t\t\t new ResultPair(\"drought.ga\", true),\n\t\t\t new ResultPair(\"buckets.gb\", true),\n\t\t\t new ResultPair(\"draft.gd\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.ge\", true),\n\t\t\t new ResultPair(\"www.bread.gf\", true),\n\t\t\t new ResultPair(\"www.bagels.gg\", true),\n\t\t\t new ResultPair(\"www.google.gh\", true),\n\t\t\t new ResultPair(\"www.drought.gi\", true),\n\t\t\t new ResultPair(\"www.buckets.gl\", true),\n\t\t\t new ResultPair(\"www.draft.gm\", true),\n\t\t\t new ResultPair(\"bread.gn\", true),\n\t\t\t new ResultPair(\"bagels.gp\", true),\n\t\t\t new ResultPair(\"google.gq\", true),\n\t\t\t new ResultPair(\"drought.gr\", true),\n\t\t\t new ResultPair(\"buckets.gs\", true),\n\t\t\t new ResultPair(\"draft.gt\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.gu\", true),\n\t\t\t new ResultPair(\"www.bread.gw\", true),\n\t\t\t new ResultPair(\"www.bagels.gy\", true),\n\t\t\t new ResultPair(\"www.google.hk\", true),\n\t\t\t new ResultPair(\"www.drought.hm\", true),\n\t\t\t new ResultPair(\"www.buckets.hn\", true),\n\t\t\t new ResultPair(\"www.draft.hr\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.ht\", true),\n\t\t\t new ResultPair(\"bread.hu\", true),\n\t\t\t new ResultPair(\"bagels.id\", true),\n\t\t\t new ResultPair(\"google.ie\", true),\n\t\t\t new ResultPair(\"drought.il\", true),\n\t\t\t new ResultPair(\"buckets.im\", true),\n\t\t\t new ResultPair(\"draft.in\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.io\", true),\n\t\t\t new ResultPair(\"www.bread.iq\", true),\n\t\t\t new ResultPair(\"www.bagels.ir\", true),\n\t\t\t new ResultPair(\"www.google.is\", true),\n\t\t\t new ResultPair(\"www.drought.it\", true),*/\n\t\t\t new ResultPair(\"www.buckets.je\", true),\n\t\t\t new ResultPair(\"www.draft.jm\", true),\n\t\t\t new ResultPair(\"bread.jo\", true),\n\t\t\t new ResultPair(\"bagels.jp\", true),\n\t\t\t new ResultPair(\"google.ke\", true),\n\t\t\t new ResultPair(\"drought.kg\", true),\n\t\t\t new ResultPair(\"buckets.kh\", true),\n\t\t\t new ResultPair(\"draft.ki\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.km\", true),\n\t\t\t new ResultPair(\"www.bread.kn\", true),\n\t\t\t new ResultPair(\"www.bagels.kp\", true),\n\t\t\t new ResultPair(\"www.google.kr\", true),\n\t\t\t new ResultPair(\"www.drought.kw\", true),\n\t\t\t new ResultPair(\"www.buckets.ky\", true),\n\t\t\t new ResultPair(\"www.draft.kz\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.la\", true),\n\t\t\t new ResultPair(\"bread.lb\", true),\n\t\t\t new ResultPair(\"bagels.lc\", true),\n\t\t\t new ResultPair(\"google.li\", true),\n\t\t\t new ResultPair(\"drought.lk\", true),\n\t\t\t new ResultPair(\"buckets.lr\", true),\n\t\t\t new ResultPair(\"draft.ls\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.lt\", true),\n\t\t\t new ResultPair(\"www.bread.lu\", true),\n\t\t\t new ResultPair(\"www.bagels.lv\", true),\n\t\t\t new ResultPair(\"www.google.ly\", true),\n\t\t\t new ResultPair(\"www.drought.ma\", true),\n\t\t\t new ResultPair(\"www.buckets.mc\", true),\n\t\t\t new ResultPair(\"www.draft.md\", true),\n\t\t\t new ResultPair(\"bread.me\", true),\n\t\t\t new ResultPair(\"bagels.mg\", true),\n\t\t\t new ResultPair(\"google.mh\", true),\n\t\t\t new ResultPair(\"drought.mk\", true),\n\t\t\t new ResultPair(\"buckets.ml\", true),\n\t\t\t new ResultPair(\"draft.mm\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.mn\", true),\n\t\t\t new ResultPair(\"www.bread.mo\", true),\n\t\t\t new ResultPair(\"www.bagels.mp\", true),\n\t\t\t new ResultPair(\"www.google.mq\", true),\n\t\t\t new ResultPair(\"www.drought.mr\", true),\n\t\t\t new ResultPair(\"www.buckets.ms\", true),\n\t\t\t new ResultPair(\"www.draft.mt\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.mu\", true),\n\t\t\t new ResultPair(\"bread.mv\", true),\n\t\t\t new ResultPair(\"bagels.mw\", true),\n\t\t\t new ResultPair(\"google.mx\", true),\n\t\t\t new ResultPair(\"drought.my\", true),\n\t\t\t new ResultPair(\"buckets.mz\", true),\n\t\t\t new ResultPair(\"draft.na\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.nc\", true),\n\t\t\t new ResultPair(\"www.bread.ne\", true),\n\t\t\t new ResultPair(\"www.bagels.nf\", true),\n\t\t\t new ResultPair(\"www.google.ng\", true),\n\t\t\t new ResultPair(\"www.drought.ni\", true),\n\t\t\t new ResultPair(\"www.buckets.nl\", true),\n\t\t\t new ResultPair(\"www.draft.no\", true),\n\t\t\t new ResultPair(\"bread.np\", true),\n\t\t\t new ResultPair(\"bagels.nr\", true),\n\t\t\t new ResultPair(\"google.nu\", true),\n\t\t\t new ResultPair(\"drought.nz\", true),\n\t\t\t new ResultPair(\"buckets.om\", true),\n\t\t\t new ResultPair(\"draft.pa\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.pe\", true),\n\t\t\t new ResultPair(\"www.bread.pf\", true),\n\t\t\t new ResultPair(\"www.bagels.pg\", true),\n\t\t\t new ResultPair(\"www.google.ph\", true),\n\t\t\t new ResultPair(\"www.drought.pk\", true),\n\t\t\t new ResultPair(\"www.buckets.pl\", true),\n\t\t\t new ResultPair(\"www.draft.pm\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.pn\", true),\n\t\t\t new ResultPair(\"bread.pr\", true),\n\t\t\t new ResultPair(\"bagels.ps\", true),\n\t\t\t new ResultPair(\"google.pt\", true),\n\t\t\t new ResultPair(\"drought.pw\", true),\n\t\t\t new ResultPair(\"buckets.py\", true),\n\t\t\t new ResultPair(\"draft.qa\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.re\", true),\n\t\t\t new ResultPair(\"www.bread.ro\", true),\n\t\t\t new ResultPair(\"www.bagels.rs\", true),\n\t\t\t new ResultPair(\"www.google.ru\", true),\n\t\t\t new ResultPair(\"www.drought.rw\", true),\n\t\t\t new ResultPair(\"www.buckets.sa\", true),\n\t\t\t new ResultPair(\"www.draft.sb\", true),\n\t\t\t new ResultPair(\"bread.sc\", true),\n\t\t\t new ResultPair(\"bagels.sd\", true),\n\t\t\t new ResultPair(\"google.se\", true),\n\t\t\t new ResultPair(\"drought.sg\", true),\n\t\t\t new ResultPair(\"buckets.sh\", true),\n\t\t\t new ResultPair(\"draft.si\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.sj\", true),\n\t\t\t new ResultPair(\"www.bread.sk\", true),\n\t\t\t new ResultPair(\"www.bagels.sl\", true),\n\t\t\t new ResultPair(\"www.google.sm\", true),\n\t\t\t new ResultPair(\"www.drought.sn\", true),\n\t\t\t new ResultPair(\"www.buckets.so\", true),\n\t\t\t new ResultPair(\"www.draft.sr\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.ss\", true),\n\t\t\t new ResultPair(\"bread.st\", true),\n\t\t\t new ResultPair(\"bagels.su\", true),\n\t\t\t new ResultPair(\"google.sv\", true),\n\t\t\t new ResultPair(\"drought.sx\", true),\n\t\t\t new ResultPair(\"buckets.sy\", true),\n\t\t\t new ResultPair(\"draft.sz\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.tc\", true),\n\t\t\t new ResultPair(\"www.bread.td\", true),\n\t\t\t new ResultPair(\"www.bagels.tf\", true),\n\t\t\t new ResultPair(\"www.google.tg\", true),\n\t\t\t new ResultPair(\"www.drought.th\", true),\n\t\t\t new ResultPair(\"www.buckets.tj\", true),\n\t\t\t new ResultPair(\"www.draft.tk\", true),\n\t\t\t new ResultPair(\"bread.tl\", true),\n\t\t\t new ResultPair(\"bagels.tm\", true),\n\t\t\t new ResultPair(\"google.tn\", true),\n\t\t\t new ResultPair(\"drought.to\", true),\n\t\t\t new ResultPair(\"buckets.tp\", true),\n\t\t\t new ResultPair(\"draft.tr\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.tt\", true),\n\t\t\t new ResultPair(\"www.bread.tv\", true),\n\t\t\t new ResultPair(\"www.bagels.tw\", true),\n\t\t\t new ResultPair(\"www.google.tz\", true),\n\t\t\t new ResultPair(\"www.drought.ua\", true),\n\t\t\t new ResultPair(\"www.buckets.ug\", true),\n\t\t\t new ResultPair(\"www.draft.uk\", true),\n\t\t\t new ResultPair(\"www.skiiiiiilllllzzzz.us\", true),\n\t\t\t new ResultPair(\"bread.uy\", true),\n\t\t\t new ResultPair(\"bagels.uz\", true),\n\t\t\t new ResultPair(\"google.va\", true),\n\t\t\t new ResultPair(\"drought.vc\", true),\n\t\t\t new ResultPair(\"buckets.ve\", true),\n\t\t\t new ResultPair(\"draft.vg\", true),\n\t\t\t new ResultPair(\"skiiiiiilllllzzzz.vi\", true),\n\t\t\t new ResultPair(\"www.bread.vn\", true),\n\t\t\t new ResultPair(\"www.bagels.vu\", true),\n\t\t\t new ResultPair(\"www.google.wf\", true),\n\t\t\t new ResultPair(\"www.drought.ws\", true),\n\t\t\t new ResultPair(\"www.buckets.ye\", true),\n\t\t\t new ResultPair(\"www.draft.yt\", true),\n\t\t\t new ResultPair(\"bread.za\", true),\n\t\t\t new ResultPair(\"bagels.zm\", true),\n\t\t\t new ResultPair(\"google.zw\", true),\n\t\t\t new ResultPair(\"Thisisaverylongsentencethatshouldabsolutelybreakthesystembecauseitshouldntallowthislongofastringforadomainlikethisisjustcrazyhowwouldanyonetypethisinatallitisjustcrazylong.com\", false),\n\t\t\t new ResultPair(\"www.open.bad!\", false),\n\t\t\t new ResultPair(\"blue.123\", false),\n\t\t\t new ResultPair(\"www.reddit.$*#\", false),\n\t\t\t new ResultPair(\"483.25939.2939\", false),\n\t\t\t new ResultPair(\"255.255.255.255\", true),\n new ResultPair(\"256.256.256.256\", false)\n\t };\n\t \n\t /* \n\t * Port numbers should not contain special characters or letters\n\t */\n\t ResultPair [] portPairs = {\n\t\t\t new ResultPair(\":5000\", true),\n\t\t\t new ResultPair(\":20\", true),\n\t\t\t new ResultPair(\":8483\", true),\n\t\t\t new ResultPair(\":#$*#\", false),\n\t\t\t new ResultPair(\":--2349\", false),\n\t\t\t new ResultPair(\":asdfasdf\", false),\n\t\t\t new ResultPair(\":\", false),\n\t\t\t new ResultPair(\"\", true)\n\t };\n\t \n\t /*\n\t * Paths shouldn't have double slashes, or .. \n\t */\n\t ResultPair [] pathPairs = {\n\t\t\t new ResultPair(\"/somepath1\", true),\n new ResultPair(\"/somepath/path2/path3\", true),\n new ResultPair(\"/sd$_asd\", true),\n new ResultPair(\"/..\", false),\n new ResultPair(\"/../\", false),\n new ResultPair(\"../\", false),\n new ResultPair(\"\", true),\n new ResultPair(\"/..//file\", false),\n new ResultPair(\"/test1//file\", false)\n\t };\n\t \n\t /* \n\t * No special characters in the wrong place. Pairs should have proper pair\n\t * configuration\n\t */\n\t ResultPair [] parameterPairs = {\n\t\t\t new ResultPair(\"?request=answer\", true),\n new ResultPair(\"?one=ten&two=eleven\", true),\n new ResultPair(\"\", true),\n new ResultPair(\"?\", true),\n new ResultPair(\"?###new=&&LUE\", false),\n new ResultPair(\"asdf=dfdd\", false),\n new ResultPair(\"?=red\", false),\n new ResultPair(\"=red\", false)\n\t };\n\n\t /* Intro text before running the programmatic testing */\n\t System.out.println(\"Programmatic testing of URLs commencing: Passed tests will not be reported (over 7 million combinations)\");\n\t System.out.println(\"Lines starting with 'TEST FAILED X:' indicates a test that has failed\");\n\t \n\t // Create variables to hold iterators, the number of tests, and the failed tests\n\t int v;\n\t int w;\n\t int x;\n\t int y;\n\t int z;\n\t int itrNum = 0;\n\t int testFails = 0;\n\t \n\t // Create an instance of our UrlValidator\n\t UrlValidator urlVal = new UrlValidator(UrlValidator.ALLOW_ALL_SCHEMES);\n\t \n\t // For loops to loop through all possible combinations\n\t for(v = 0; v < protocolPairs.length; v++)\n\t {\n\t\t for(w = 0; w < domainPairs.length; w++) \n\t\t {\n\t\t\t for(x = 0; x < portPairs.length; x++) \n\t\t\t {\n\t\t\t\t for(y = 0; y < pathPairs.length; y++) \n\t\t\t\t {\n\t\t\t\t\t for(z = 0; z < parameterPairs.length; z++) \n\t\t\t\t\t {\n\t\t\t\t\t\t // Booleans to store results\n\t\t\t\t\t\t // Counter of tests performed \n\t\t\t\t\t\t boolean inputValid;\n\t\t\t\t\t\t boolean testValid;\n\t\t\t\t\t\t itrNum++;\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Create the URL that will be tested\n\t\t\t\t\t\t String url = protocolPairs[v].item + domainPairs[w].item + portPairs[x].item \n\t\t\t\t\t\t\t\t + pathPairs[y].item + parameterPairs[z].item;\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Check to see if a valid URL was generated by our programmatic tester\n\t\t\t\t\t\t if (protocolPairs[v].valid && domainPairs[w].valid && portPairs[x].valid \n\t\t\t\t\t\t\t\t && pathPairs[y].valid && parameterPairs[z].valid) {\n\t\t\t\t\t\t\t inputValid = true; \n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t inputValid = false;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Get result from isValid method\n\t\t\t\t\t\t testValid = urlVal.isValid(url);\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Check to see if they agree\n\t\t\t\t\t\t if (inputValid == testValid) {\n\t\t\t\t\t\t\t // Do nothing because the test was successful\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t // Increment the count of failed tests. Print out error results to console\n\t\t\t\t\t\t\t testFails++;\n\t\t\t\t\t\t\t System.out.println(\"TEST FAILED \" + itrNum + \": URL: \" + url \n\t\t\t\t\t\t\t\t\t + \" Expected: \" + inputValid + \" Result: \" + testValid);\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 }\n\t \n\t // Print out aggregate results of the test to the console (good summary at the end)\n\t double d = ((double)testFails) / ((int)itrNum);\n\t System.out.println(\"TESTS RUN: \" + itrNum + \" TESTS FAILED: \" + testFails + \" Percentage: \" + d);\n }",
"public void testIsValid()\r\n {\r\n\t for (int i = 0; i < unitTestList.length; i++ ) {\r\n\t\t UrlValidator urlVal = new UrlValidator(null, null, UrlValidator.ALLOW_ALL_SCHEMES);\r\n\t\t System.out.println(\"testIsValid: \" + urlVal.isValid(unitTestList[i]));\r\n\t }\r\n }",
"public static void registerUris(UriMatcher uriMatcher){\n for(int i = 0; i < metadatas.length; i++){\n TableMetadata metadata = metadatas[i];\n String tableName = metadata.getTableName();\n // generate and setup indicators\n int collectionIndicator = i * 1;\n uriMatcher.addURI(AUTHORITY, tableName, collectionIndicator);\n uriMatchTableMetadataMap.put(collectionIndicator, metadata);\n\n int itemIndicator = (i * 1) + 1;\n uriMatcher.addURI(AUTHORITY, tableName + \"/#\", itemIndicator);\n uriMatchTableMetadataMap.put(itemIndicator, metadata);\n\n Log.d(GYCMainActivity.TAG, \"Registering uris for \" + tableName);\n }\n }",
"@Test\n\tvoid testGetAvailableImages() {\n\t\tSet<String> set = manager.getAvailableImages();\n\t\t\n\t\t\n\t\tfor(String image : TEST_IMAGES) \n\t\t\tassertTrue(set.contains(image));\n\t\t\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether the Column at position contains scalar data or not. | public void setColumnIsScalar(boolean value, int index) {
columns[index].setIsScalar(value);
} | [
"public boolean isColumnScalar(int index) {\n return columns[index].getIsScalar();\n }",
"public boolean isScalar() {\n return size == 1;\n }",
"public abstract boolean isScalarType();",
"public void setColumn(String column, String s)\n {\n String canonicalized = canonicalizeAndCheck(column);\n Object value = (s == null) ? NULL_OBJECT : s;\n if (!value.equals(data.get(canonicalized)))\n {\n data.put(canonicalized, value);\n changed.put(canonicalized, Boolean.TRUE);\n }\n }",
"public void setColumnIsNominal(boolean value, int index) {\n columns[index].setIsNominal(value);\n }",
"private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }",
"@Test\n public void testSetColumnContents() {\n DataframeColumn instance = new DataframeColumn();\n instance.setColumnContents(null);\n }",
"public void setColumn(String column, boolean b)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), b ? Boolean.TRUE : Boolean.FALSE);\n }",
"public Column setWidthUndefined() {\n checkColumnIsAttached();\n state.width = -1;\n grid.markAsDirty();\n return this;\n }",
"@VTID(134)\r\n void setDisplayEmptyColumn(\r\n boolean rhs);",
"@Override\r\n\tpublic void visit(Column column)\r\n\t{\r\n\t\tString stringValue = column.getColumnName();\r\n\t\tif (stringValue.equalsIgnoreCase(\"true\") || stringValue.equalsIgnoreCase(\"false\"))\r\n\t\t{\r\n\t\t\tsetValue(Boolean.valueOf(stringValue));\r\n\t\t}\r\n\t}",
"public boolean isSetStringVal() {\n return this.stringVal != null;\n }",
"public boolean isSetColType() {\n return this.colType != null;\n }",
"void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);",
"void setScalarIndex(int index) {\n ScalarIndex = index;\n }",
"public boolean hasSingleColumnValueFilter() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Override\n\tpublic void setAllowBlanks(UUID tableId, UUID columnId, boolean newBool) {\n\t\tif (columnId == null || tableId == null) {\n\t\t\tthrow new DomainException(\"Cannot update a column type with a null id.\");\n\t\t}\n\n\t\tTable table = getTable(tableId);\n\t\tif (table != null) {\n\t\t\ttable.updateColumnAllowBlanks(columnId, newBool);\n\t\t}\n\n\t}",
"public void setAllowSingleColumn(Boolean allowSingleColumn) {\n this.allowSingleColumn = allowSingleColumn;\n }",
"public void setColumn(String column, String s)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), s == null ? NULL_OBJECT : s);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the current state of the Kripke Structure | public void printCurrentState() {
currentState.print();
} | [
"private void printCurrentState(){\n System.out.print(\"\\u001B[2J\\u001B[3J\\u001B[H\");\n\n System.out.print(\" ╔═══════════════════╗\\n\" +\n \" ║ TOTAL COUNTER ║\\n\" +\n \" ╚═══════════════════╝\\n\" +\n \" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ DEVELOPMENT CARD ( \"+ \"\\u001B[32m\" +\"█\" + \"\\u001B[0m\"+ \" ): DEVELOPMENT CARD ( \"+ \"\\u001B[36m\" +\"█\" + \"\\u001B[0m\"+ \" ): ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 1: \" + getTotal(\"GREEN level: 1\") +\" LEVEL 1: \" + getTotal(\"BLUE level: 1\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 2: \" + getTotal(\"GREEN level: 2\") +\" LEVEL 2: \" + getTotal(\"BLUE level: 2\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 3: \" + getTotal(\"GREEN level: 3\") +\" LEVEL 3: \" + getTotal(\"BLUE level: 3\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ DEVELOPMENT CARD ( \"+ \"\\u001B[93m\" +\"█\" + \"\\u001B[0m\"+ \" ): DEVELOPMENT CARD ( \"+ \"\\u001B[35m\" +\"█\" + \"\\u001B[0m\"+ \" ): ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 1: \" + getTotal(\"YELLOW level: 1\") +\" LEVEL 1: \" + getTotal(\"PURPLE level: 1\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 2: \" + getTotal(\"YELLOW level: 2\") +\" LEVEL 2: \" + getTotal(\"PURPLE level: 2\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ LEVEL 3: \" + getTotal(\"YELLOW level: 3\") +\" LEVEL 3: \" + getTotal(\"PURPLE level: 3\") +\" ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┌────────────────────────────────────────────────────────────────────────────────────────┐ ┃ \\n\" +\n \" ┃ │ │ ┃ \\n\" +\n \" ┃ │ COIN: \");\n\n if(getTotal(\"COIN\")<10)\n System.out.print(\"0\" + getTotal(\"COIN\") + \" SERVANT: \");\n else\n System.out.print(getTotal(\"COIN\") + \" SHIELD: \");\n\n if(getTotal(\"COIN\")<10)\n System.out.print(\"0\" + getTotal(\"SERVANT\") + \" SHIELD: \");\n else\n System.out.print(getTotal(\"SERVANT\") + \" SHIELD: \");\n\n if(getTotal(\"COIN\")<10)\n System.out.print(\"0\" + getTotal(\"SHIELD\") + \" STONE: \");\n else\n System.out.print(getTotal(\"SHIELD\") + \" STONE: \");\n\n if(getTotal(\"COIN\")<10)\n System.out.print(\"0\" + getTotal(\"STONE\") + \" │ ┃ \\n\");\n else\n System.out.print(getTotal(\"STONE\") + \" │ ┃ \\n\");\n\n System.out.print(\" ┃ │ │ ┃ \\n\" +\n \" ┃ └────────────────────────────────────────────────────────────────────────────────────────┘ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┃ ┃ \\n\" +\n \" ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ \\n\\n\" +\n \" THIS IS THE TOTAL OF YOUR RESOURCES AND DEVELOPMENT CARD \\n\" +\n \" \" + \"\\u001B[92m\" + \"type leaderCard to return to the leader card selection \" + \"\\u001B[0;0m\" + \"\\n\\n\" +\n \" \");\n }",
"public void printState()\n\t{\n\t\tthis.board.printBoard();\n\t}",
"public void printCurrentState() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tSystem.out.print(this.currentState[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void printState()\n\t{\n\t\tSystem.out.println(\"================ status begin ========================\");\n\t\tSystem.out.println(\"client counter: \" + counter);\n\t\tSystem.out.println();\n\t\tSet<Integer> keySet = rooms.keySet();\n\t\tfor(Integer i: keySet)\n\t\t{\n\t\t\tRoom room = rooms.get(i);\n\t\t\tSystem.out.println(\"\\tRoom id: \" + room.id);\n\t\t\tSystem.out.println(\"\\tRoom state: \" + room.state);\n\t\t\tSystem.out.println(\"\\tRoom winner: \" + room.winner);\n\t\t\tSystem.out.println(\"\\tRoom player number:\" + room.players.size());\n\t\t\tfor(AbstractPlayer player: room.players)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\t * player id: \" + player.id);\n\t\t\t\tSystem.out.println(\"\\t\\tplayer name: \" + player.name);\n\t\t\t\tSystem.out.println(\"\\t\\tplayer is alive?: \" + player.alive);\n\t\t\t\tSystem.out.println(\"\\t\\tplayer ship Location: \");\n\t\t\t\tprintLocation(player);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"================ status end ========================\");\n }",
"public void printState(){\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"The current 8-puzzle state is\\n\");\r\n\r\n for(int index = 0; index < getStateList().size(); index++){\r\n if(index != 0 && index % 3 == 0){\r\n sb.append(\"\\n\");\r\n }\r\n if(getStateList().get(index) == 0) {\r\n sb.append(\" \\t\");\r\n }\r\n else {\r\n sb.append(getStateList().get(index) + \"\\t\");\r\n }\r\n }\r\n System.out.println(sb.toString());\r\n }",
"public void printState() {\r\n\t\tString indent = \" \";\r\n\t\tSystem.out.println(\"----------------\");\r\n\t\tSystem.out.println(\"Floor \" + floorID + \":\");\t\r\n\t\tSystem.out.println(indent + \"Total number of passengers requesting access: \" + sum(totalDestinationRequests));\r\n\t\tSystem.out.println(indent + \"Current number of passengers waiting: \" + sum(passengerRequests));\r\n\t\tSystem.out.println(indent + \"Total number of passengers that arrived on this floor: \" + sum(arrivedPassengers));\r\n\t\tif (approachingElevator == -1)\r\n\t\t\tSystem.out.println(indent + \"Elevator currently heading towards floor for passenger pickup: None\");\r\n\t\telse\r\n\t\t\tSystem.out.println(indent + \"Elevator currently heading towards floor for passenger pickup: \" + approachingElevator);\r\n\t\t\r\n\t\tSystem.out.println();\t\r\n\t}",
"void show() {\n\t\tSystem.out.println(\"k: \" + k);\n\t}",
"public void print ()\n\t{\n\t\tSystem.out.println(\"Polyhedron File Name: \" + FileName);\n\t\tSystem.out.println(\"Object active: \" + Boolean.toString(isActive()));\n\t\tprintCoordinates();\n\t}",
"public String print()\n\t{\n\t\tString result = new String();\n\t\tfor (int i = 0; i < states.size(); i++)\n\t\t{\n\t\t\tresult += (i + \" \" + states.get(i).print() + \"\\n\");\n\t\t}\n\t\treturn result;\n\t}",
"public void printState()\n {\n System.out.println(\"Final State:\");\n for (String test:variables.keySet())\n {\n System.out.println(test + \" = \" + variables.get(test));\n }\n\n }",
"void printStatus()\n {\n System.out.println(\"Knapsack's total weight: \" + totalWeight() + \" gr.\");\n System.out.println(\"Flashlight is \" + (flashlight.getState() ? \"on\" : \"off\") + \".\");\n }",
"public void printCurrentStep()\n\t{\n\t\tif(previousStates.isEmpty())\n\t\t\tSystem.out.println(\"Initial State: \" + state);\n\t\telse\n\t\t{\n\t\t\tMove move = previousStates.get(previousStates.size() - 1);\n\t\t\tif(Configuration.isCosting())\n\t\t\t\tSystem.out.println(steps + \") Step \" + (previousStates.size() - 1) + \": Move \" + move.getTarget() + \" [\" + state + \"] (Cost: \" + move.getCost() + \")\");\n\t\t\telse\n\t\t\t\tSystem.out.println(steps + \") Step \" + (previousStates.size() - 1) + \": Move \" + move.getTarget() + \" [\" + state + \"]\");\n\n\t\t\tsteps++;\n\t\t}\n\t}",
"public void printCurrentState() {\n\t\tSystem.out.println(\"Location: \" + avatar.getLocation().getX() + \",\" + avatar.getLocation().getY());\n\t\tSystem.out.println(\"Points: \" + avatar.getScore());\n\t}",
"public void printStatus(){\n System.out.print(\n \"-----------------------------------------------\\n\" +\n \"| STATUS - stage \" + (this.phase == Phase.A ? \"A\" : \"B\") + \"\\n\"+\n \"-----------------------------------------------\\n\"\n );\n\n String sV = \"\";\n for (Vertex v : this.vertices){\n sV += v.getId()+\", \";;\n }\n System.out.print(\"V = { \" + sV + \" }\\n\");\n\n\n String sBV = \"\";\n for (Vertex v : this.vertexBucket){\n sBV += v.getId()+\", \";\n }\n System.out.print(\"BV = { \" + sBV + \" }\\n\");\n\n\n String sBE = \"\";\n for (Edge e : this.edgeBucket){\n sBE += this.edgeToString(e) + \", \";\n }\n System.out.print(\"BE = { \" + sBE + \" }\\n\");\n\n String sC = \"\";\n for (Edge e : this.cycle){\n sC += this.edgeToString(e) + \", \";\n }\n if (this.cycle.size() == 0){ sC = \"None\"; }\n System.out.print(\"C = { \" + sC + \" }\\n\");\n\n System.out.print(\"-----------------------------------------------\\n\");\n }",
"public void printInfo() {\n String s = \"\";\n if (map.isEmpty()) {\n s += \"not keeping any entries\\n\";\n } else {\n s += \"This Node stores a range of \" + map.size() + \" keys :\\n from:\" + map.firstKey() + \" up to: \" + map.lastKey() + \"\\n\";\n }\n s += \"node key:\\t\" + nodeKey + \"\\n\";\n s += \"previous key:\\t\" + predKey + \"\\n\";\n\n window.getKeysInfoText().setText(s);\n }",
"final private void _showState ()\n {\n if (_tracing) _show(_showNonEmpty(_goalStack,\" Goal stack\")+\n _showNonEmpty(_goalTrail,\" Goal trail\")+\n _showNonEmpty(_exitStack,\" Exit stack\")+\n _showNonEmpty(_ctptStack,\" Cut point stack\")+\n _showNonEmpty(_chptStack,\"Choice point stack\")+\n _showChoicePointEntries());\n }",
"public void printMachine(){\n\t\tfor(State s:theStates){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"public void printStateMachine() {\n System.out.print(\" \");\n for(int i = 0; i < ALPHABET_SIZE; ++i) {\n System.out.printf(\"%3c\", alphabet[i]);\n }\n System.out.println();\n \n for (int i = 0; i < NUM_STATES; i++) {\n System.out.printf(\"%3d: \", i);\n \n for (int j = 0; j < alphabet.length; j++) {\n System.out.printf(\"%3d\", transition[i][j]);\n }\n System.out.println();\n }\n \n System.out.print(\" \");\n for(int i = 0; i < ALPHABET_SIZE; ++i) {\n System.out.printf(\"%3c\", alphabet[i]);\n }\n System.out.println();\n }",
"public void printState(int option) {\n\t\tif(option == 1)\r\n\t\t{\r\n\t\t\tfor( int i = 0 ; i < 8 ; i++ )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print( this.board[i] + \" \" );\r\n\t\t\t}\r\n\t\t\tSystem.out.println( this.board[8] );\r\n\t\t}\r\n\t\t\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method runScript is the real script content. It is supposed to be implemented by Script subclasses. | public abstract void runScript() throws Exception; | [
"public void run() {\r\n\t\tif (target.length == 1) {\r\n\t\t\tscript.runScript(text);\r\n\t\t} else {\r\n\t\t\tscript.runScript(text, target);\r\n\t\t}\r\n\t\tscript = null;\r\n }",
"void executeScript(Readable script) throws IOException;",
"public void runScript(String script) {\n Platform.runLater(() -> webView.getEngine().executeScript(script));\n }",
"public IRubyObject executeScript(String script, String filename) {\n byte[] bytes = script.getBytes();\n \n Node node = parseInline(new ByteArrayInputStream(bytes), filename, null);\n ThreadContext context = getCurrentContext();\n \n String oldFile = context.getFile();\n int oldLine = context.getLine();\n try {\n context.setFileAndLine(node.getPosition());\n return runInterpreter(node);\n } finally {\n context.setFileAndLine(oldFile, oldLine);\n }\n }",
"@WebMethod(operationName = \"RunScript\")\n @RequestWrapper(localName = \"RunScript\", targetNamespace = \"http://ns.adobe.com/InDesign/soap/\", className = \"de.jworks.fpp.labs.indesign.soap.RunScript\")\n @ResponseWrapper(localName = \"RunScriptResponse\", targetNamespace = \"http://ns.adobe.com/InDesign/soap/\", className = \"de.jworks.fpp.labs.indesign.soap.RunScriptResponse\")\n public void runScript(\n @WebParam(name = \"runScriptParameters\", targetNamespace = \"\")\n RunScriptParameters runScriptParameters,\n @WebParam(name = \"errorNumber\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\n Holder<Integer> errorNumber,\n @WebParam(name = \"errorString\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\n Holder<String> errorString,\n @WebParam(name = \"scriptResult\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\n Holder<Data> scriptResult);",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"@HandleAfterCreate\n public void scriptRunning(Script script) {\n scriptProccessingService.perform(script.getId());\n }",
"public Object executeScript(String command);",
"@Override\n public void run() {\n getWebContents().getNavigationController().loadUrl(\n new LoadUrlParams(\"javascript:(function() { \" + script + \" })()\"));\n }",
"public void setScript(String Script) {\n\t\tthis.Script = Script;\n\t}",
"public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public void runScript(StringBuffer sqlScript)\n throws DataAccessLayerException {\n runScript(sqlScript.toString());\n }",
"public void runScript(final int selectedIndex) {\n\tTabComponent tabComp = (TabComponent)\n\t\tjTabbedPane1.getTabComponentAt(selectedIndex);\n\tif(tabComp.thread != null) {\n\t if(tabComp.getState() == TabComponent.PAUSED) {\n\t\ttabComp.thread.resume();\n\t\ttabComp.setState(TabComponent.RUNNING);\n\t }\n\t else {\n\t\tcompileOut.setText(\"\");\n\t\tcompileOut.append(\"Script is already running...\");\n\t }\n\t return;\n\t}\n\tif(!tabComp.compiled) {\n\t compileScript(selectedIndex, true);\n\t return;\n\t}\n\n\ttry {\n\t String scriptName = jTabbedPane1.getTitleAt(selectedIndex);\n\n\t ScriptListener scriptListener =\n\t\t new ScriptListener(selectedIndex, scriptName) {\n\t\t@Override\n\t\tpublic void scriptFinished() {\n\t\t TabComponent tabComp = (TabComponent)\n\t\t\t jTabbedPane1.getTabComponentAt(tabIndex);\n\t\t tabComp.thread = null;\n\t\t tabComp.setState(TabComponent.STOPPED);\n\t\t}\n\n\t\t@Override\n\t\tpublic void scriptException(Exception e) {\n\t\t compileOut.setText(\"Exception in \" + name + \":\\n\");\n\t\t compileOut.append(e.getMessage());\n\t\t scriptFinished();\n\t\t}\n\t };\n\n\t ScriptRunner runner = new ScriptRunner(workspace.getPath(), scriptName);\n\n\t tabComp.thread = runner;\n\t tabComp.setState(TabComponent.RUNNING);\n\n\t runner.addListener(scriptListener);\n\t runner.start();\n\t}\n\tcatch (Exception ex) {\n\t Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);\n\t}\n }",
"public void handleScript(HtmlObjects.Script t)\n {\n }",
"@Test\n public void testExecuteScript() {\n LOG.entering(CLASS, \"testExecuteScript\");\n try{\n setUrl(URL);\n JsonObject result = MarionetteUtil.parseJsonObject(POST(\n getUri(\"executeScript\", sessionId)\n , Json.createObjectBuilder().add(\"script\", \"return document.querySelector('#menu_myaccount')\").add(\"args\", JsonValue.EMPTY_JSON_ARRAY).build().toString()\n ).body());\n Assertions.assertTrue(null != result.get(\"return\"));\n LOG.exiting(CLASS, \"testExecuteScript\", result);\n } catch(Exception e){\n LOG.throwing(CLASS, \"testExecuteScript\", e);\n throw e;\n }\n }",
"void setScript(String script);",
"protected String executeGenerationScript(GenerationScript script) throws ActiveObjectCreationException,\n NodeException, UserException {\n ScriptHandler handler = ScriptLoader.createHandler(null);\n ScriptResult<String> res = handler.handle(script);\n \n if (res.errorOccured()) {\n System.err.println(\"Error on pre-script occured : \");\n res.getException().printStackTrace();\n throw new UserException(\"PreTask script has failed on the current node\");\n }\n \n return res.getResult();\n }",
"@Override\r\n protected InputStream getScriptInputStream() {\r\n return new ReaderInputStream(new StringReader(scriptContent));\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exists the innermost scope for the type namespace only. Types declared since the last enterTypeScope call will no longer be accessible. | public void leaveTypeScope() {
depth--;
typeTable = typeStack.removeFirst();
debug("Leave type scope.");
} | [
"public void enterTypeScope() {\n typeStack.addFirst(typeTable);\n depth++;\n debug(\"Enter type scope.\");\n }",
"public static boolean hasOuterContext(TypeElement type) {\n if (getDeclaringClass(type) == null) {\n return false;\n }\n // Local types can't be declared static, but if the declaring method is\n // static then the local type is effectively static.\n ExecutableElement declaringMethod = getDeclaringMethod(type);\n if (declaringMethod != null) {\n return !ElementUtil.isStatic(declaringMethod);\n }\n return !ElementUtil.isStatic(type);\n }",
"public boolean hasChildScope(String type, String name);",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Sema/Scope.cpp\", line = 98,\n FQN=\"clang::Scope::containedInPrototypeScope\", NM=\"_ZNK5clang5Scope25containedInPrototypeScopeEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.sema/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Sema/Scope.cpp -nm=_ZNK5clang5Scope25containedInPrototypeScopeEv\")\n //</editor-fold>\n public boolean containedInPrototypeScope() /*const*/ {\n /*const*/ Scope /*P*/ S = this;\n while ((S != null)) {\n if (S.isFunctionPrototypeScope()) {\n return true;\n }\n S = S.getParent$Const();\n }\n return false;\n }",
"public void testLocalType() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" void foo() {\\n\" +\n\t\t\t\" /*start*/class Y {\\n\" +\n\t\t\t\" }/*end*/\\n\" +\n\t\t\t\" }\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((TypeDeclarationStatement) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"Y [in foo() [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}",
"public BinCIType getTopLevelEnclosingType() {\r\n if (getOwner() == null) {\r\n if (this instanceof BinCIType) {\r\n return (BinCIType) this;\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n BinCIType topLevelEnclosingType = getOwner().getBinCIType();\r\n while (topLevelEnclosingType.isInnerType()) {\r\n topLevelEnclosingType =\r\n topLevelEnclosingType.getOwner().getBinCIType();\r\n }\r\n\r\n return topLevelEnclosingType;\r\n }",
"protected abstract void initScopeType();",
"boolean isScope();",
"ISourceType getEnclosingType();",
"@Override\n\tpublic void nest(Scope scope) {\n\t\tif (scope instanceof SymbolWithScope) {\n\t\t\tthrow new SymbolTableException(\"Add SymbolWithScope instance \" + scope.getName() + \" via define()\");\n\t\t}\n\t\tnestedScopesNotSymbols.add(scope);\n\t}",
"final Scope checkExitable (Locatable extent) throws TypingErrorException\n {\n if (_exitStack.isEmpty())\n error(new TypingErrorException(\"not within an exitable scope\"),extent);\n\n return (Scope)_exitStack.peek();\n }",
"AppliedScopeType appliedScopeType();",
"public boolean startsInnerScope() {\n return false;\n }",
"public static boolean isPrivateInnerType(TypeElement type) {\n if (isPrivate(type)) {\n return true;\n }\n NestingKind nestingKind = type.getNestingKind();\n if (nestingKind == NestingKind.ANONYMOUS || nestingKind == NestingKind.LOCAL) {\n return true;\n }\n TypeElement declaringClass = getDeclaringClass(type);\n if (declaringClass != null) {\n return isPrivateInnerType(declaringClass);\n }\n return false;\n }",
"String getScopeType();",
"BeanScope getScopeForType(Class<?> typeClass) {\n Class<?> implementationClass = getImplementationClass(typeClass);\n\n if (implementationClass == null) {\n return null;\n }\n\n return discoveredClasses.get(implementationClass).scope();\n }",
"public void testVaribleDeclaredInInnerScopeCantBeAccessedFromOuterScope() {\r\n enterClassAndMethod();\r\n \r\n VariableDeclAST x = declareVariable(\"x\", \"BOOLEAN\");\r\n assertEquals(Type.BOOLEAN, x.getType());\r\n \r\n analyzer.enteringBlock();\r\n\r\n VariableDeclAST y = declareVariable(\"y\", \"INTEGER\");\r\n assertEquals(Type.INTEGER, y.getType());\r\n \r\n analyzer.visit(createParser(\"y\").handleExpression());\r\n \r\n analyzer.leavingBlock();\r\n\r\n analyzer.visit(createParser(\"y\").handleExpression());\r\n \r\n leaveClassAndMethod();\r\n TestCaseUtil.assertListContents(\r\n analyzer.getErrors(),\r\n new SemanticError(\r\n \"No variable \\\"y\\\" defined in class \\\"A\\\"\",\r\n null\r\n )\r\n );\r\n }",
"protected boolean atGlobalScope() {\n return !currentScope.hasParent();\n }",
"public MethodSymbol getEnclosingScopeOfType(Class<?> type) {\n\t\tScope s = this;\n\t\twhile (s != null) {\n\t\t\tif (s.getClass() == type) {\n\t\t\t\treturn (MethodSymbol) s;\n\t\t\t}\n\t\t\ts = s.getEnclosingScope();\n\t\t}\n\t\treturn null;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fin de CONSTRUCTEUR COMPLET.______________________________________ method convertirListModelEnEntities( List<ICivilite> pList) : convertit une Liste d'Objets Metier en liste d'Entities JAXB. | private List<CiviliteEntityJAXB> convertirListModelEnEntities(
final List<ICivilite> pList) {
if (pList == null) {
return null;
}
final List<CiviliteEntityJAXB> resultat
= new ArrayList<CiviliteEntityJAXB>();
for (final ICivilite objetMetier : pList) {
if (objetMetier != null) {
final CiviliteEntityJAXB entiteJAXB
= new CiviliteEntityJAXB(objetMetier);
resultat.add(entiteJAXB);
}
}
return resultat;
} | [
"protected abstract List<V> transEntityToView(List<E> entityList);",
"private List<ObjetivoDetailDTO> objetivosListEntity2DTO(List<ObjetivoEntity> entityList) {\r\n List<ObjetivoDetailDTO> list = new ArrayList();\r\n for (ObjetivoEntity entity : entityList) {\r\n list.add(new ObjetivoDetailDTO(entity));\r\n }\r\n return list;\r\n }",
"private List<EstadoWebDTO> estadosWebListEntity2DTO(List<EstadoWebEntity> entityList) \n {\n List<EstadoWebDTO> list = new ArrayList();\n for (EstadoWebEntity entity : entityList) \n {\n list.add(new EstadoWebDTO(entity));\n }\n return list;\n }",
"private List<InteresFotograficoDetailDTO> listEntity2DTO(List<InteresFotograficoEntity> entityList) {\n List<InteresFotograficoDetailDTO> list = new ArrayList<>();\n for (InteresFotograficoEntity entity : entityList) {\n list.add(new InteresFotograficoDetailDTO(entity));\n }\n return list;\n }",
"private List<EjercicioDetailDTO> ejerciciosListEntity2DTO(List<EjercicioEntity> entityList) {\r\n List<EjercicioDetailDTO> list = new ArrayList();\r\n for (EjercicioEntity entity : entityList) {\r\n list.add(new EjercicioDetailDTO(entity));\r\n }\r\n return list;\r\n }",
"private List<ComicDeseoDTO> listEntity2DTO(List<ComicDeseoEntity> entityList){\n \n List<ComicDeseoDTO> list = new ArrayList<ComicDeseoDTO>();\n \n for(ComicDeseoEntity entity : entityList){\n list.add(new ComicDeseoDTO(entity));\n \n }\n return list;\n }",
"public List<Product> toEntityList(List<FormDto> dtoList) {\r\n List<Product> entityList = new ArrayList<Product>();\r\n for (FormDto dto : dtoList) {\r\n entityList.add(copyDtoToEntity(dto, new Product()));\r\n }\r\n return entityList;\r\n }",
"private List<ObjetivoEntity> objetivosListDTO2Entity(List<ObjetivoDetailDTO> dtos) {\r\n List<ObjetivoEntity> list = new ArrayList<>();\r\n for (ObjetivoDetailDTO dto : dtos) {\r\n list.add(dto.toEntity());\r\n }\r\n return list;\r\n }",
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }",
"private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"private List<UbicacionDetailDTO> ubicacionListEntity2DTO(List<UbicacionEntity> entityList){\n List<UbicacionDetailDTO> list = new ArrayList<>();\n for (UbicacionEntity entity : entityList) {\n list.add(new UbicacionDetailDTO(entity));\n }\n return list;\n }",
"private List<UbicacionEntity> ubicacionesListDTO2Entity(List<UbicacionDetailDTO> dtos){\n List<UbicacionEntity> list = new ArrayList<>();\n for (UbicacionDetailDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"private List<FormaDePagoDTO> listEntityADTO(List<FormaDePagoEntity> listaEntity) {\n List<FormaDePagoDTO> list = new ArrayList<>();\n for (FormaDePagoEntity entity : listaEntity) {\n list.add(new FormaDePagoDTO(entity));\n }\n return list;\n }",
"private List<CoordinadorDetailDTO> listEntity2DTO(List<CoordinadorEntity> entityList) {\r\n List<CoordinadorDetailDTO> list = new ArrayList<>();\r\n for (CoordinadorEntity entity : entityList) {\r\n list.add(new CoordinadorDetailDTO(entity));\r\n }\r\n return list;\r\n }",
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"public EntityList(List<T> listOfEntityObjects) {\n this.listOfEntityObjects = listOfEntityObjects;\n }",
"private List<PuntoEntity> puntosListDTO2Entity(List<PuntoDTO> dtos) {\n List<PuntoEntity> list = new ArrayList<>();\n for (PuntoDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"public List<MedioPagoDTO> mediosPagoListEntity2DTO(List<MedioPagoEntity> entityList)\n {\n List<MedioPagoDTO> list = new ArrayList();\n for (MedioPagoEntity entity : entityList)\n {\n list.add(new MedioPagoDTO(entity));\n }\n return list;\n }",
"private List<EjercicioEntity> ejerciciosListDTO2Entity(List<EjercicioDetailDTO> dtos) {\r\n List<EjercicioEntity> list = new ArrayList<>();\r\n for (EjercicioDetailDTO dto : dtos) {\r\n list.add(dto.toEntity());\r\n }\r\n return list;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List of payment options that are supported | @ApiModelProperty(value = "List of payment options that are supported")
public List<PaymentOptionsEnum> getPaymentOptions() {
return paymentOptions;
} | [
"List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);",
"String getSupportedPaymentGateways();",
"List<String> getSupportedPaymentGatewaysAsList();",
"ImmutableList<SchemaOrgType> getAcceptedPaymentMethodList();",
"@Bean\n public PaymentOptions paymentOptions() {\n return new PaymentOptions(\n Arrays.asList(examplePaymentMethodHandler())\n );\n }",
"public static List<PaymentMode> getEnablePaymentModes() {\n\t\tList<PaymentMode> list = new ArrayList<PaymentMode>();\n\t\tPaymentMode paymentMode1 = new PaymentMode(\"CC\");\n\t\tpaymentMode1.setChannels(new ArrayList<String>());\n\t\tpaymentMode1.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode1.getChannels().add(EChannelId.APP.getValue());\n\n\t\tPaymentMode paymentMode2 = new PaymentMode(\"DC\");\n\t\tpaymentMode2.setChannels(new ArrayList<String>());\n\t\tpaymentMode2.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode2.getChannels().add(EChannelId.APP.getValue());\n\n\t\tlist.add(paymentMode1);\n\t\tlist.add(paymentMode2);\n\n\t\treturn list;\n\t}",
"@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();",
"public Enumeration listOptions() {\r\n Vector<Option> newVector = new Vector<Option>(2);\r\n\r\n newVector.addElement(new Option(\"\\tThe required granularity level for differential private operations (default: \" +\r\n DEFAULT_GRANULARITY + \").\", GRANULARITY_OPTION, 1,\r\n \"-\" + GRANULARITY_OPTION));\r\n\r\n newVector.addElement(new Option(\"\\tMaximal allowed depth for the induced decision tree (default: \" +\r\n DEFAULT_MAX_DEPTH + \").\", MAX_DEPTH_OPTION, 1,\r\n \"-\" + MAX_DEPTH_OPTION ));\r\n\r\n return newVector.elements();\r\n }",
"public List getOptions() {\n return options;\n }",
"Set<? extends Doclet.Option> getSupportedOptions();",
"public Enumeration listOptions() {\n \n Vector newVector = new Vector();\n \n newVector.addElement(new Option(\n \"\\tSpecify the distance measure to be employed, default: euclidean.\",\n \"distance\", 1, \n \"-distance <euclidean|cosine|extendedJaccard|extendedDice>\"));\n newVector.addElement(new Option(\n \"\\tTurn internal cluster validity assessment on or off, Default: false.\",\n \"assessIntValidity\", 1, \n \"-assessIntValidity <full|true|quick|false>\"));\n newVector.addElement(new Option(\n \"\\tTurn verbose mode on or off, default: false.\",\n \"verbose\", 1, \"-verbose <true|false>\"));\n newVector.addElement(new Option(\n \"\\tSpecify the HTML report file name, default: skip report creation.\",\n \"htmlReport\", 1, \"-htmlReport <HTML report file name>\"));\n \n return newVector.elements();\n \n }",
"String[] getOptions();",
"public Enumeration listOptions() {\n return new Vector().elements();\n }",
"public Collection<ProtocolParameterOption> getOptions() {\n return options;\n }",
"go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();",
"public void PD_PaymentOptions(String PDOptionType) {\r\n\t\ttry {\r\n\t\t\tboolean bFlagPayOpt = false;\r\n\t\t\tClickOnPaymentsTab();\r\n\t\t\tswitch (PDOptionType.trim().toUpperCase()) {\r\n\t\t\tcase \"SEND_MONEYORPAY_BILL\":\r\n\t\t\t\tif (isElementDisplayed(linksendmoney)) {\r\n\t\t\t\t\tclickJS(linksendmoney);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"TRANSFER_BETWEEN_MY_ACCOUNTS\":\r\n\t\t\t\tif (isElementDisplayed(transBetweenAccTab)) {\r\n\t\t\t\t\tclickJS(transBetweenAccTab);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"STANDING_ORDERS\":\r\n\t\t\t\tif (isElementDisplayed(standingorderlink)) {\r\n\t\t\t\t\tclickJS(standingorderlink);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"MANAGE_PAYEES\":\r\n\t\t\t\tif (isElementDisplayed(managePayeeTab)) {\r\n\t\t\t\t\tclickJS(managePayeeTab);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\tcase \"MOBILE_TOPUP\":\r\n\t\t\t\tif (isElementDisplayed(linkmobiletopup)) {\r\n\t\t\t\t\tclickJS(linkmobiletopup);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"PRIVATE_BANKING\":\r\n\t\t\t\tif (isElementDisplayed(linkPBP)) {\r\n\t\t\t\t\tclickJS(linkPBP);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DIRECT_DEBITS\":\r\n\t\t\t\tif (isElementDisplayed(linkDirectDebit)) {\r\n\t\t\t\t\tclickJS(linkDirectDebit);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"FUTURE_DATED_PAYMENTS\":\r\n\t\t\t\tif (isElementDisplayed(linkFDP)) {\r\n\t\t\t\t\tclickJS(linkFDP);\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CANCEL_DIRECTDEBITS\":\r\n\t\t\t\tif (isElementDisplayed(linkcancelDirectdebit)) {\r\n\t\t\t\t\tclickJS(linkcancelDirectdebit);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbFlagPayOpt = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbFlagPayOpt = false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (bFlagPayOpt = true) {\r\n\t\t\t\tlogMessage(PDOptionType + \" Option is selected successfully\");\r\n\t\t\t\tappendScreenshotToCucumberReport();\r\n\t\t\t\tinsertMessageToHtmlReport(\"Success in Payment type selection and navigation to page \" + PDOptionType);\r\n\t\t\t\tAllure.step(\"Success in Payment type selection and navigation to page\" + PDOptionType,Status.PASSED);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{ \r\n\t\t\t\tlogMessage(PDOptionType + \" Option is not selected successfully\");\r\n\t\t\t\tappendScreenshotToCucumberReport();\r\n\t\t\t\tinsertMessageToHtmlReport(\"Failure in Payment type selection and navigation to page \" + PDOptionType);\r\n\t\t\t\tAllure.step(\"Failure in Payment type selection and navigation to page \" + PDOptionType,Status.PASSED);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogError(\"Error occured inside Payment options type\" + e.getMessage());\r\n\t\t\tappendScreenshotToCucumberReport();\r\n\t\t\tinsertErrorMessageToHtmlReport(\"Failure in Payment type selection and navigation to page \" + PDOptionType);\r\n\r\n\t\t}\r\n\t}",
"public List<VOPaymentType> getAvailablePaymentTypesForCreation() {\n return paymentInfoBean.getAvailablePaymentTypesForCreation(\n model.getService().getKey(), getAccountingService());\n }",
"public static List<PaymentMode> getdisablePaymentModes() {\n\t\tList<PaymentMode> list = new ArrayList<PaymentMode>();\n\t\tPaymentMode paymentMode1 = new PaymentMode(\"CC\");\n\t\tpaymentMode1.setChannels(new ArrayList<String>());\n\t\tpaymentMode1.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode1.getChannels().add(EChannelId.APP.getValue());\n\n\t\tPaymentMode paymentMode2 = new PaymentMode(\"DC\");\n\t\tpaymentMode2.setChannels(new ArrayList<String>());\n\t\tpaymentMode2.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode2.getChannels().add(EChannelId.APP.getValue());\n\n\t\tlist.add(paymentMode1);\n\t\tlist.add(paymentMode2);\n\n\t\treturn list;\n\t}",
"public abstract String[] getOptions();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getDevices method, of class MockNetworkManager. | @Test
public void testGetDevices() throws Exception {
System.out.println("**** getDevices *****");
List result = instance.getDevices();
assertNotNull(result);
assertEquals(5, result.size());
} | [
"@Test\r\n public void testDeviceList()\r\n {\r\n \tSystem.out.println( \"\\ntestDeviceList\\n\" );\r\n\r\n Devices deviceHolder = PerfectoMobile.instance().devices();\r\n HandsetCollection deviceList = deviceHolder.getDevices();\r\n \r\n Assert.assertTrue( ( deviceList.getHandsetList().size() > 0 ), \"The are devices in the list\" );\r\n\r\n findAnAvailableDevice( deviceList );\r\n }",
"@Test\n public void testGetAllDevices() {\n System.out.println(\"getAllDevices\");\n deleteSaveFiles();\n final Model instance = new Model();\n final MobileDevice md = new MobileDevice(UUID.randomUUID());\n instance.addDevice(md);\n final List<MobileDevice> result = instance.getAllDevices();\n assertSame(\"size == 1\", result.size(), 1);\n assertSame(\"ass\", result.get(0), md);\n }",
"@Test(dependsOnMethods = \"addEnrollment\", description = \"Get 5 records of devices\")\n public void testGetDevicesForSetOfDevices() throws Exception{\n MDMResponse response = client.get(Constants.MobileDeviceManagement.GET_ALL_DEVICES_ENDPOINT+\"?start=0&length=5\");\n Assert.assertEquals(HttpStatus.SC_OK, response.getStatus());\n JsonObject jsonObject = parser.parse(response.getBody()).getAsJsonObject();\n Assert.assertTrue(\"missing 'recordsTotal' attribute in response\",jsonObject.has(\"recordsTotal\"));\n Assert.assertTrue(\"missing 'recordsFiltered' attribute in response\",jsonObject.has(\"recordsFiltered\"));\n Assert.assertTrue(\"missing 'data' attribute in response\",jsonObject.has(\"data\"));\n JsonArray jsonArray = jsonObject.getAsJsonArray(\"data\");\n Assert.assertTrue(\"response array length not equal to requested length\",String.valueOf(jsonArray.size()).equals(\"5\"));\n }",
"@Test\n public void testGetDevicesAddresses() throws Exception {\n System.out.println(\"****** getDevicesAddresses *******\");\n List result = instance.getDevicesAddresses();\n assertNotNull(result);\n assertEquals(5, result.size());\n }",
"@Test\n public void testListDevices() throws IOException, InterruptedException {\n HIDManager manager = HIDManager.getInstance();\n HIDDeviceInfo[] firstRun = printDevices(manager);\n System.out.println(\"Second run: Checking for HID devices again...\");\n HIDDeviceInfo[] secondRun = printDevices(manager);\n \n Assert.assertArrayEquals(\"The list of found HID devices is NOT equal. Make sure you didn't connect/disconnect a device while running the test\", \n firstRun, \n secondRun);\n manager.release();\n }",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();",
"java.util.List<yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device> \n getDevicesList();",
"@Nullable\r\n public List<DoorSensorJSON> requestDevices() {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n HttpEntity<String> entity = getHTTPEntity();\r\n String url = UriComponentsBuilder\r\n .fromHttpUrl(baseURL)\r\n .path(\"/v2/device/{networkID}\")\r\n .buildAndExpand(networkID)\r\n .toUriString();\r\n\r\n ResponseEntity<String> response = null;\r\n\r\n try {\r\n response = restTemplate.exchange(url, GET, entity, String.class);\r\n } catch (RestClientException e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n try {\r\n return objectMapper.readValue(response.getBody(), new TypeReference<List<DoorSensorJSON>>() {\r\n });\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"@Test\n public void testRefreshDevices() throws Exception {\n System.out.println(\"***** refreshDevices *****\");\n instance.refreshDevices();\n }",
"public void getDeviceList(){\n if(applicationDb.getDevice() == null){\n RetrieveDeviceListAsync retrieveDeviceListAsync = new RetrieveDeviceListAsync(raspberryId);\n retrieveDeviceListAsync.execute();\n }\n else{\n DeviceStatusRefreshAsync deviceStatusRefreshAsync = new DeviceStatusRefreshAsync();\n deviceStatusRefreshAsync.execute();\n }\n\n }",
"@Test\n public void testGetDevices() {\n System.out.println(\"getDevices\");\n final AbstractModel<AbstractDeviceImpl, AbstractSettingsImpl> instance = new AbstractModelImpl();\n final AbstractDeviceImpl dev1 = new AbstractDeviceImpl();\n final AbstractDeviceImpl dev2 = new AbstractDeviceImpl();\n final AbstractDeviceImpl dev3 = new AbstractDeviceImpl();\n final AbstractDeviceImpl dev4 = new AbstractDeviceImpl();\n instance.addDevice(dev1);\n instance.addDevice(dev2);\n instance.addDevice(dev3);\n instance.addDevice(dev4);\n\n final Map<UUID, AbstractDeviceImpl> expResult = new HashMap<UUID, AbstractDeviceImpl>();\n expResult.put(dev1.getuID(), dev1);\n expResult.put(dev2.getuID(), dev2);\n expResult.put(dev3.getuID(), dev3);\n expResult.put(dev4.getuID(), dev4);\n\n final Map<UUID, AbstractDeviceImpl> result = instance.getDevices();\n assertSame(expResult.size(), result.size());\n\n final Iterator<AbstractDeviceImpl> iter = expResult.values().iterator();\n boolean r = true;\n while (iter.hasNext()) {\n final AbstractDeviceImpl d = iter.next();\n r &= result.containsValue(d);\n }\n assertTrue(r);\n }",
"@Test\n public void getDeviceTest() {\n DatabaseTest.setupDevice();\n Device device = new Device(DatabaseTest.DEVICE_ID, DatabaseTest.TOKEN);\n\n assertEquals(device, getDevice(DatabaseTest.DEVICE_ID));\n DatabaseTest.cleanDatabase();\n }",
"@Test\n public void findDeviceByType() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n Registry registry = upnpService.getRegistry();\n\n try {\n DeviceType deviceType = new UDADeviceType(\"MY-DEVICE-TYPE\", 1); // DOC: FIND_DEV_TYPE\n Collection<Device> devices = registry.getDevices(deviceType); // DOC: FIND_DEV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n\n try {\n ServiceType serviceType = new UDAServiceType(\"MY-SERVICE-TYPE-ONE\", 1); // DOC: FIND_SERV_TYPE\n Collection<Device> devices = registry.getDevices(serviceType); // DOC: FIND_SERV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n }",
"public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }",
"@Test\n public void testGetDeviceIdsFromVtapNetwork() {\n store.createVtapNetwork(VTAP_NETWORK_KEY, VTAP_NETWORK_1);\n\n store.addDeviceToVtapNetwork(VTAP_NETWORK_KEY, DEVICE_ID_1);\n store.addDeviceToVtapNetwork(VTAP_NETWORK_KEY, DEVICE_ID_2);\n assertTrue(ERR_NOT_FOUND, store.getVtapNetworkDevices(VTAP_NETWORK_KEY).contains(DEVICE_ID_1));\n assertTrue(ERR_NOT_FOUND, store.getVtapNetworkDevices(VTAP_NETWORK_KEY).contains(DEVICE_ID_2));\n\n store.removeDeviceFromVtapNetwork(VTAP_NETWORK_KEY, DEVICE_ID_1);\n store.removeDeviceFromVtapNetwork(VTAP_NETWORK_KEY, DEVICE_ID_2);\n assertTrue(ERR_NOT_FOUND, !store.getVtapNetworkDevices(VTAP_NETWORK_KEY).contains(DEVICE_ID_1));\n assertTrue(ERR_NOT_FOUND, !store.getVtapNetworkDevices(VTAP_NETWORK_KEY).contains(DEVICE_ID_2));\n\n store.removeVtapNetwork(VTAP_NETWORK_KEY);\n }",
"public static Result devices()\n {\n return Results.ok(devicelist.render());\n }",
"private void setUpDeviceService() {\n deviceService1 = createMock(DeviceService.class);\n deviceService1.getDevice(anyObject(DeviceId.class));\n expectLastCall().andDelegateTo(new MockDeviceService()).anyTimes();\n }",
"private void loadInitialDeviceList() throws DeviceServiceException {\r\n if(devicesList.isEmpty()){\r\n try {\r\n handleRPCCommandByResult(this.connection.getJsonHTTPRPC(\"DeviceService.getActiveDevices\", null, \"DeviceService.getActiveDevices\"));\r\n } catch (PCCEntityDataHandlerException ex) {\r\n throw new DeviceServiceException(\"Problem getting devices\", ex);\r\n }\r\n }\r\n }",
"public TestDevice[] allocateDevices(final int num) throws DeviceNotAvailableException {\n \n ArrayList<TestDevice> deviceList;\n TestDevice td;\n int index = 0;\n \n if (num < 0) {\n throw new IllegalArgumentException();\n }\n if (num > mDevices.size()) {\n throw new DeviceNotAvailableException(\"The number of connected device(\"\n + mDevices.size() + \" is less than the specified number(\"\n + num + \"). Please plug in enough devices\");\n }\n deviceList = new ArrayList<TestDevice>();\n \n while (index < mDevices.size() && deviceList.size() != num) {\n td = mDevices.get(index);\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n deviceList.add(td);\n }\n index++;\n }\n if (deviceList.size() != num) {\n throw new DeviceNotAvailableException(\"Can't get the specified number(\"\n + num + \") of idle device(s).\");\n }\n return deviceList.toArray(new TestDevice[num]);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Task: Resets playDeck by getting all cards from the saveDeck. | public void reset()
{
// implement this method!
playDeck.clear();
playDeck.addAll(saveDeck);
} | [
"public void resetDeck() {\n cards.addAll(removedCards);\n removedCards.clear();\n }",
"public void resetDeck() {\n\t\tclearDeck();\n\t\tmakeDeck();\n\t\tshuffle();\n\n\t}",
"public static void resetDeck(){\n currentCard = 0;\n }",
"public void reset() {\n deck.reset();\n deck.shuffle();\n\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n board[i][j] = deck.getNextCard();\n }\n }\n }",
"public void restoreDeck() {\n\t\tdeckIndex = 0;\n\t}",
"public void reset(){\n\n deck = new PlayingCard[52];\n String[] cardTypes = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"J\", \"Q\", \"K\"};\n\n // initialise Aces separately for a cleaner loop later\n deck[0] = new PlayingCard(\"A\", PlayingCard.HEARTS, 1, 14);\n deck[1] = new PlayingCard(\"A\", PlayingCard.DIAMONDS, 1, 14);\n deck[2] = new PlayingCard(\"A\", PlayingCard.CLUBS, 1, 14);\n deck[3] = new PlayingCard(\"A\", PlayingCard.SPADES, 1, 14);\n\n int j = 0;\n\n for(int i = 0; i < Constants.SUIT_SIZE-1; ++i) {\n\n j = (i+1) * 4; // used to be able to declare 4 cards at once without overwriting\n deck[j] = new PlayingCard(cardTypes[i], PlayingCard.HEARTS, i + 2, i + 2);\n deck[j+1] = (new PlayingCard(cardTypes[i], PlayingCard.CLUBS, i + 2, i + 2));\n deck[j+2] = new PlayingCard(cardTypes[i], PlayingCard.DIAMONDS, i + 2, i + 2);\n deck[j+3] = new PlayingCard(cardTypes[i], PlayingCard.SPADES, i + 2, i + 2);\n }\n\n this.shuffle();\n }",
"public void reset() {\n\t\tfor(int i = 1; i <= 13; i++) {\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tdeck.add(new Card(i, j));\n\t\t\t}\n\t\t}\n\t\tshuffle();\n\t}",
"public void RefillDeck()\n\t{\n\t\tRefillDeck(false);\n\t}",
"public void reset() {\r\n\r\n for ( Card card : cards ) {\r\n if ( card.isFaceUp() ) {\r\n card.toggleFace( true );\r\n }\r\n }\r\n Collections.shuffle( cards );\r\n\r\n this.undoStack = new ArrayList<>();\r\n\r\n this.moveCount = 0;\r\n\r\n announce( null );\r\n }",
"public void ResetGame(){\n handComputer.clear();\n handHuman.clear();\n deck.clear();\n\n InitializeDeck();\n InitializeComputerHand();\n InitializeHumanHand();\n\n topCard = deck.get(0);\n }",
"public void resetDeck(){\n System.out.println(\"No more card in deck. Placing all discarded cards except the top card back into deck and shuffle. \");\n deck.addAll(discardPile);\n shuffle();\n Card temp = topDiscardCard();\n deck.remove(temp);\n discardPile.clear();\n discardPile.add(temp);\n }",
"private void ResetGame(){\n this.deck = new Deck();\n humanPlayer.getHand().clear();\n humanPlayer.setWager(0);\n dealer.getHand().clear();\n }",
"public void reFillCard() {\n ArrayList<Cards> refill = new ArrayList<Cards>();\n for (Cards card : playedCards) {\n refill.add(card);\n }\n setDeckCards(new Deck(refill));\n playedCards.clear();\n playedCards.add(refill.get(refill.size()-1));\n }",
"public void reset()\n {\n for(int i = 0; i < numPlayers; i++)\n {\n this.chooseHand();\n this.resetScore();\n }\n }",
"private void resetDeck() {\n\t\t// Blanks the deck\n\t\tdeck = new ArrayList<String>();\n\t\t// Array of suit shorthands\n\t\tchar[] suits = {'c', 'd', 'h', 's'};\n\t\t// Generates a 52-card deck by iterating over\n\t\t// all suits and values\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1; j <= 13; j++) {\n\t\t\t\t// Shorthand card notation: suit + value\n\t\t\t\t// For example: 3 of hearts is h3\n\t\t\t\t// King of spades is s13\n\t\t\t\tString card = \"\" + suits[i] + j;\n\t\t\t\tdeck.add(card);\n\t\t\t}\n\t\t}\n\t}",
"public void resetGame(int nbrOfDecks) {\n initiateCardGame(nbrOfDecks);\n }",
"public void clear() {\n deck.clear();\n }",
"void refillCards() {\n if (this.gameDeck.isEmpty() && !this.wonDeck.isEmpty()) {\n this.wonDeck.shufffle();\n Deck temp = this.gameDeck;\n this.gameDeck = this.wonDeck;\n this.wonDeck = temp;\n\n }\n\n }",
"public void shuffleDeck() {\n\t\tCollections.shuffle(cardDeck);\n\t\tdeckIndex = 0;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares this ScalarMap with another ScalarMap. The ScalarTypes are first compared; if they compare equal, then the DisplayRealTypes are compared. | protected int compareTo(ScalarMap that)
{
int comp = getScalar().compareTo(that.getScalar());
if (comp == 0)
comp = getDisplayScalar().compareTo(that.getDisplayScalar());
return comp;
} | [
"public boolean equals(Object o)\n {\n return o instanceof ScalarMap && compareTo(o) == 0;\n }",
"@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n typeMap.put(typeBool, typeBool2);\n typeMap.put(typeBoolean, typeBool2);\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBool));\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBoolean));\n }",
"private static boolean compareLiteralCollection(Collection<Literal> as1, Collection<Literal> as2, boolean debugMode) {\n if (as1.size() != as2.size())\n return false;\n\n List<Literal> firstList = new ArrayList<>(as1);\n List<Literal> secondList = new ArrayList<>(as2);\n\n firstList.sort(new CustomLiteralComparator());\n secondList.sort(new CustomLiteralComparator());\n\n Iterator<Literal> firstIt = firstList.iterator();\n Iterator<Literal> secondIt = secondList.iterator();\n while (firstIt.hasNext()) {\n Literal firstLiteral = firstIt.next();\n Literal secondLiteral = secondIt.next();\n\n if (debugMode) {\n System.out.println(\"A1: \" + firstLiteral + \" : \" + firstLiteral.phase());\n System.out.println(\"A2: \" + secondLiteral + \" : \" + secondLiteral.phase());\n }\n\n if (firstLiteral.phase() != secondLiteral.phase())\n return false;\n }\n return true;\n }",
"public int compareTo(Object o)\n {\n return -((ScalarMap)o).compareTo(this);\n }",
"public static void compareTs(TypeSystem t1, TypeSystem t2) {\n TypeSystemImpl ts1 = (TypeSystemImpl) t1;\n TypeSystemImpl ts2 = (TypeSystemImpl) t2;\n if (ts1.types.size() != ts2.types.size()) {\n System.out.format(\"ts1 size: %,d ts2 size: %d%n\", ts1.types.size(), ts2.types.size());\n }\n\n for (int i = 1; i < ts1.types.size(); i++) {\n if (ts1.types.get(i).hashCode() != ts2.types.get(i).hashCode()) {\n System.out.format(\"ts1 type: %s%n%nts2 type: %s%n\", ts1.types.get(i), ts2.types.get(i));\n }\n }\n System.out.println(\"done\");\n }",
"@Override\n\t\tprotected int compareInstances(final FacetData<?> facet1, final FacetData<?> facet2)\n\t\t{\n\t\t\tint result = compareValues(facet2.getPriority(), facet1.getPriority());\n\t\t\tif (EQUAL == result)\n\t\t\t{\n\t\t\t\t// If priority is equal then compare display names (ascending)\n\t\t\t\tresult = facet1.getName().compareToIgnoreCase(facet2.getName());\n\t\t\t\tif (EQUAL == result)\n\t\t\t\t{\n\t\t\t\t\t// Same priority, same display name, try the code\n\t\t\t\t\tresult = facet1.getCode().compareTo(facet2.getCode());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"static boolean compareValues(Object v1, Object v2) {\n if (v1.equals(v2)) {\n return true;\n }\n\n if (isValue(v1) && isValue(v2)\n && Obj.equals(((Map<String, Object>) v1).get(\"@value\"),\n ((Map<String, Object>) v2).get(\"@value\"))\n && Obj.equals(((Map<String, Object>) v1).get(\"@type\"),\n ((Map<String, Object>) v2).get(\"@type\"))\n && Obj.equals(((Map<String, Object>) v1).get(\"@language\"),\n ((Map<String, Object>) v2).get(\"@language\"))\n && Obj.equals(((Map<String, Object>) v1).get(\"@index\"),\n ((Map<String, Object>) v2).get(\"@index\"))) {\n return true;\n }\n\n if ((v1 instanceof Map && ((Map<String, Object>) v1).containsKey(\"@id\"))\n && (v2 instanceof Map && ((Map<String, Object>) v2).containsKey(\"@id\"))\n && ((Map<String, Object>) v1).get(\"@id\")\n .equals(((Map<String, Object>) v2).get(\"@id\"))) {\n return true;\n }\n\n return false;\n }",
"public boolean equals(Scalar s) {\n\t\tif(getValue() == ((RealScalar)s).getValue())\n\t\t\treturn true;\n\t\treturn false; \n\t}",
"public static CompareResult compare(TestEngineData data1, TestEngineData data2) {\r\n List<String> equal = new ArrayList<>();\r\n List<String> diff = new ArrayList<>();\r\n\r\n // Get the columns which are present in both sets\r\n Set<String> keys1 = new HashSet<>(data1.map.keySet());\r\n Set<String> keys2 = new HashSet<>(data2.map.keySet());\r\n\r\n Set<String> keys = new HashSet<>(keys1);\r\n keys.retainAll(data2.map.keySet());\r\n\r\n // Save information about unique columns\r\n keys1.removeAll(keys);\r\n keys2.removeAll(keys);\r\n\r\n List<String> unique1 = new ArrayList<>(keys1);\r\n List<String> unique2 = new ArrayList<>(keys2);\r\n\r\n // Compare columns with the same names\r\n for (String key : keys) {\r\n DataColumn c1 = data1.map.get(key);\r\n DataColumn c2 = data2.map.get(key);\r\n\r\n boolean flag = c1.equals(c2);\r\n if (flag) {\r\n equal.add(key);\r\n }\r\n else {\r\n diff.add(key);\r\n }\r\n }\r\n\r\n return new CompareResult(unique1, unique2, equal, diff);\r\n }",
"@Override\n public int compareTo(Complex other) {\n if (Double.compare(this.real, other.real) == 0) {\n return Double.compare(this.imaginary, other.imaginary);\n } else {\n return Double.compare(this.real, other.real);\n }\n }",
"public boolean equalCompare(RowDescriptor other) {\n\t\tList<ColumnDescriptor> thisColumns = this.getCompareColumns();\n\t\tList<ColumnDescriptor> otherColumns = other.getCompareColumns();\n\n\t\tif (thisColumns.size() != otherColumns.size()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tIterator<ColumnDescriptor> thisIt = thisColumns.iterator();\n\t\tIterator<ColumnDescriptor> otherIt = otherColumns.iterator();\n\n\t\twhile (thisIt.hasNext() && otherIt.hasNext()) {\n\t\t\tColumnDescriptor thisColumn = thisIt.next();\n\t\t\tColumnDescriptor otherColumn = otherIt.next();\n\n\t\t\tif (thisColumn.getType() != otherColumn.getType()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private int compareValue(DciValue dci1, DciValue dci2) {\n\t\tint dt1, dt2;\n\t\tString v1, v2;\n\n\t\tif (showErrors && (dci1.getErrorCount() > 0)) {\n\t\t\tdt1 = DataCollectionObject.DT_STRING;\n\t\t\tv1 = Messages.get().LastValuesLabelProvider_Error;\n\t\t} else if (dci1.getDcObjectType() == DataCollectionObject.DCO_TYPE_TABLE) {\n\t\t\tdt1 = DataCollectionObject.DT_STRING;\n\t\t\tv1 = Messages.get().LastValuesLabelProvider_Table;\n\t\t} else {\n\t\t\tdt1 = dci1.getDataType();\n\t\t\tv1 = dci1.getValue();\n\t\t}\n\n\t\tif (showErrors && (dci2.getErrorCount() > 0)) {\n\t\t\tdt2 = DataCollectionObject.DT_STRING;\n\t\t\tv2 = Messages.get().LastValuesLabelProvider_Error;\n\t\t} else if (dci2.getDcObjectType() == DataCollectionObject.DCO_TYPE_TABLE) {\n\t\t\tdt2 = DataCollectionObject.DT_STRING;\n\t\t\tv2 = Messages.get().LastValuesLabelProvider_Table;\n\t\t} else {\n\t\t\tdt2 = dci2.getDataType();\n\t\t\tv2 = dci2.getValue();\n\t\t}\n\n\t\tint dataType = Math.max(dt1, dt2);\n\t\ttry {\n\t\t\tswitch (dataType) {\n\t\t\tcase DataCollectionObject.DT_INT:\n\t\t\t\treturn Integer.signum(Integer.parseInt(v1)\n\t\t\t\t\t\t- Integer.parseInt(v2));\n\t\t\tcase DataCollectionObject.DT_UINT:\n\t\t\tcase DataCollectionObject.DT_INT64:\n\t\t\tcase DataCollectionObject.DT_UINT64:\n\t\t\t\treturn Long.signum(Long.parseLong(v1) - Long.parseLong(v2));\n\t\t\tcase DataCollectionObject.DT_FLOAT:\n\t\t\t\t// Maybe combination of String/Float because DT_FLOAT >\n\t\t\t\t// DT_STRING\n\t\t\t\tif ((dt1 == DataCollectionObject.DT_STRING)\n\t\t\t\t\t\t|| (dt2 == DataCollectionObject.DT_STRING))\n\t\t\t\t\treturn v1.compareToIgnoreCase(v2);\n\t\t\t\treturn (int) Math.signum(Double.parseDouble(v1)\n\t\t\t\t\t\t- Double.parseDouble(v2));\n\t\t\tdefault:\n\t\t\t\treturn v1.compareToIgnoreCase(v2);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn v1.compareToIgnoreCase(v2);\n\t\t}\n\t}",
"@Override\n public int compare(Map.Entry<Setup, Score> e1, Map.Entry<Setup, Score> e2)\n {\n Score score1 = e1.getValue();\n Score score2 = e2.getValue();\n int firstPlacesDiff = score2.firstPlaces - score1.firstPlaces;\n if (firstPlacesDiff == 0)\n {\n long totalAreaDiff = score1.totalArea - score2.totalArea;\n if (totalAreaDiff == 0)\n {\n return Long.signum(score1.totalFreeSpace - score2.totalFreeSpace);\n }\n return Long.signum(totalAreaDiff);\n }\n return firstPlacesDiff;\n }",
"@SuppressWarnings(\"ConstantConditions\")\n public boolean compareForEquality(BaseRowSnapshot other, Schema schema) {\n for (String cn: schema.getColumnNames()) {\n if (this.isMissing(cn) && other.isMissing(cn))\n continue;\n if (this.isMissing(cn) || other.isMissing(cn))\n return false;\n boolean same;\n switch (schema.getKind(cn)) {\n case Category:\n case String:\n case Json:\n same = this.getString(cn).equals(other.getString(cn));\n break;\n case Date:\n same = this.getDate(cn).equals(other.getDate(cn));\n break;\n case Integer:\n same = this.getInt(cn) == other.getInt(cn);\n break;\n case Double:\n same = this.getDouble(cn) == other.getDouble(cn);\n break;\n case Duration:\n same = this.getDuration(cn).equals(other.getDuration(cn));\n break;\n default:\n throw new RuntimeException(\"Unexpected kind \" + schema.getKind(cn));\n }\n if (!same)\n return false;\n }\n return true;\n }",
"public final int compare(Object o1, Object o2) {\n LabelValue lhs = (LabelValue) o1;\n LabelValue rhs = (LabelValue) o2;\n\n return c.compare(lhs.getLabel(), rhs.getLabel());\n }",
"public synchronized boolean compare(bitMap other) {\n\tfor (int i = 0; i < map.size(); i++) {\r\n\t if (other.getbitMap().get(i) == true && map.get(i) == false) {\r\n\t\treturn true;\r\n\t }\r\n\t}\r\n\treturn false;\r\n }",
"public boolean equals(Object other) {\r\n if (!(other instanceof DataTypeDescriptor))\r\n return false;\r\n \r\n DataTypeDescriptor odtd = (DataTypeDescriptor)other;\r\n if (!this.getTypeName().equals(odtd.getTypeName()) ||\r\n this.precision != odtd.getPrecision() ||\r\n this.scale != odtd.getScale() ||\r\n this.isNullable != odtd.isNullable() ||\r\n this.maximumWidth != odtd.getMaximumWidth() ||\r\n ((this.characterAttributes == null) ? (odtd.characterAttributes != null) : !this.characterAttributes.equals(odtd.characterAttributes)))\r\n return false;\r\n else\r\n return true;\r\n }",
"public int hashCode()\n {\n ScalarType s = getScalar();\n DisplayRealType ds = getDisplayScalar();\n \n int hash = 0;\n if (s != null) {\n if (ds != null) {\n hash = s.hashCode() ^ ds.hashCode();\n } else {\n hash = s.hashCode();\n }\n } else if (ds != null) {\n hash = ds.hashCode();\n }\n \n return hash;\n }",
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof DataType)) {\n return false;\n }\n DataType other = (DataType) o;\n if (!getPhysical().equals(other.getPhysical())) {\n return false;\n }\n\n if (other instanceof JavaClass) {\n boolean bound = false; // unbound parameters are equivalent to non-generic types\n for (JavaTypeInfo info : getLogical().getParameterTypesInfos()) {\n if (!Object.class.equals(info.getRawType())) {\n bound = true;\n break;\n }\n }\n if (!bound) {\n JavaClass<?> otherClazz = (JavaClass<?>) other;\n return getLogical().getRawType().equals(otherClazz.getLogical());\n }\n }\n return getLogical().equals(other.getLogical());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map created with two defined parameters : a set of segments and a segment where the ball can be released | public Map(Segment[] segmentsOfTheField, Segment segmentWhereTheBallCanBeReleased)
{
this.segmentsOfTheField = segmentsOfTheField;
this.segmentWhereTheBallCanBeReleased = segmentWhereTheBallCanBeReleased;
} | [
"private void makeMap()\r\n {\n arc = new Arc();\r\n arc.setCenterX(SCENEWIDTH / 2);\r\n arc.setCenterY(SCENEHEIGHT);\r\n arc.setRadiusX(240.0f);\r\n arc.setRadiusY(240.0f);\r\n arc.setStartAngle(0.0f);\r\n arc.setLength(180.0f); //degrees \r\n arc.setFill(Color.AQUA);\r\n arc.setOpacity(0.8);\r\n arc.setType(ArcType.ROUND);\r\n bot = new Circle(SCENEWIDTH / 2, SCENEHEIGHT, 47.025);\r\n bot.setFill(Color.BLACK);\r\n bot.setOpacity(0.5);\r\n botL = new Line((SCENEWIDTH / 2) - 47.025, SCENEHEIGHT, (SCENEWIDTH / 2) - 47.025, SCENEHEIGHT - 240);\r\n botR = new Line((SCENEWIDTH / 2) + 47.025, SCENEHEIGHT, (SCENEWIDTH / 2) + 47.025, SCENEHEIGHT - 240);\r\n \r\n \r\n //initialize all map points\r\n for(int i = 0; i < mapPoints.length; i++)\r\n {\r\n mapPoints[i] = new Circle(0, 0, 10);\r\n mapPoints[i].setFill(Color.TRANSPARENT);\r\n }\r\n }",
"private void createSegments () {\n // this call will remove each segment from the MarkerChangeListener list\n // of the start and end Marker objects of the segment. If we don't do\n // this the segments will not be garbage collected.\n stopSegmentsListening ();\n\n segments = new FeatureSegmentVector ();\n\n final Location location = getLocation ();\n\n final RangeVector ranges = location.getRanges ();\n\n for (int i = 0 ; i < ranges.size () ; ++i) {\n final Range this_range = ranges.elementAt (i);\n\n segments.add (makeSegment (this_range));\n }\n\n startSegmentsListening ();\n }",
"public void actionPerformed(ActionEvent e) {\n\n ArrayList<Vertex> pairOfVertexes = new ArrayList<Vertex>();\n Vertex firstVertex = null;\n Vertex secondVertex = null;\n \t\t\t\n\n // Add new roads to the roads of the map\n firstVertex = new Vertex(96, 41);\n secondVertex = new Vertex(73, 104);\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t// TODO add interest point to edge\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t// TODO add traffic to edge\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t// TODO add weather to edge\n \t\t\t\n \t\t\tfirstVertex = new Vertex(73, 104);\n secondVertex = new Vertex(126, 120);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(126, 120);\n secondVertex = new Vertex(68, 162);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(126, 120);\n secondVertex = new Vertex(148, 67);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Light Rain\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(126, 120);\n secondVertex = new Vertex(253, 106);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Moderate\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(253, 106);\n secondVertex = new Vertex(237, 42);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(253, 106);\n secondVertex = new Vertex(308, 141);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(308, 141);\n secondVertex = new Vertex(345, 39);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Stopped\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(308, 141);\n secondVertex = new Vertex(296, 175);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Moderate\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(308, 141);\n secondVertex = new Vertex(235, 182);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"High Rain\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(296, 175);\n secondVertex = new Vertex(361, 124);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(361, 124);\n secondVertex = new Vertex(398, 51);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(398, 51);\n secondVertex = new Vertex(408, 78);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(235, 182);\n secondVertex = new Vertex(175, 164);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Storm\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(175, 164);\n secondVertex = new Vertex(127, 192);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(127, 192);\n secondVertex = new Vertex(86, 179);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Snow\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(86, 179);\n secondVertex = new Vertex(68, 162);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(86, 179);\n secondVertex = new Vertex(73, 204);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(73, 204);\n secondVertex = new Vertex(107, 239);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Cloudy\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(107, 239);\n secondVertex = new Vertex(127, 192);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(127, 192);\n secondVertex = new Vertex(142, 250);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Light\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(142, 250);\n secondVertex = new Vertex(130, 302);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(142, 250);\n secondVertex = new Vertex(193, 330);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(193, 330);\n secondVertex = new Vertex(234, 225);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(234, 225);\n secondVertex = new Vertex(235, 182);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(107, 239);\n secondVertex = new Vertex(67, 241);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(107, 239);\n secondVertex = new Vertex(89, 274);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Light Rain\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(89, 274);\n secondVertex = new Vertex(130, 302);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(89, 274);\n secondVertex = new Vertex(51, 309);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(89, 274);\n secondVertex = new Vertex(66, 338);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(51, 309);\n secondVertex = new Vertex(30, 376);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(66, 338);\n secondVertex = new Vertex(47, 392);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(66, 338);\n secondVertex = new Vertex(137, 344);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(66, 338);\n secondVertex = new Vertex(120, 398);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(66, 338);\n secondVertex = new Vertex(120, 398);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(120, 398);\n secondVertex = new Vertex(110, 438);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(110, 438);\n secondVertex = new Vertex(100, 500);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(110, 438);\n secondVertex = new Vertex(151, 480);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(151, 480);\n secondVertex = new Vertex(218, 474);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(218, 474);\n secondVertex = new Vertex(155, 379);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(155, 379);\n secondVertex = new Vertex(137, 344);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"High Rain\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(193, 330);\n secondVertex = new Vertex(342, 310);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(342, 310);\n secondVertex = new Vertex(346, 376);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(342, 310);\n secondVertex = new Vertex(218, 474);\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(218, 474);\n secondVertex = new Vertex(283, 440);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(346, 376);\n secondVertex = new Vertex(356, 447);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Light\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(356, 447);\n secondVertex = new Vertex(370, 494);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(218, 474);\n secondVertex = new Vertex(305, 531);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(305, 531);\n secondVertex = new Vertex(197, 556);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(197, 556);\n secondVertex = new Vertex(241, 585);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(305, 531);\n secondVertex = new Vertex(426, 521);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Hail\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(426, 521);\n secondVertex = new Vertex(370, 494);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(346, 376);\n secondVertex = new Vertex(513, 431);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(513, 431);\n secondVertex = new Vertex(546, 406);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(296, 175);\n secondVertex = new Vertex(292, 246);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(292, 246);\n secondVertex = new Vertex(328, 223);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(292, 246);\n secondVertex = new Vertex(356, 265);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(328, 223);\n secondVertex = new Vertex(415, 167);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(415, 167);\n secondVertex = new Vertex(422, 114);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(415, 167);\n secondVertex = new Vertex(542, 125);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(542, 125);\n secondVertex = new Vertex(514, 165);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Moderate\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Light Rain\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(514, 165);\n secondVertex = new Vertex(599, 166);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(422, 114);\n secondVertex = new Vertex(469, 82);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(469, 82);\n secondVertex = new Vertex(447, 50);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Snow\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(469, 82);\n secondVertex = new Vertex(657, 95);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(599, 166);\n secondVertex = new Vertex(629, 201);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(629, 201);\n secondVertex = new Vertex(680, 176);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(680, 176);\n secondVertex = new Vertex(720, 123);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(356, 265);\n secondVertex = new Vertex(388, 247);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(388, 247);\n secondVertex = new Vertex(447, 299);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(447, 299);\n secondVertex = new Vertex(508, 263);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Low\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(508, 263);\n secondVertex = new Vertex(561, 291);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"Low\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(356, 265);\n secondVertex = new Vertex(457, 374);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"None\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Sunny\");\n \t\t\t\n \t\t\tfirstVertex = new Vertex(457, 374);\n secondVertex = new Vertex(548, 335);\n pairOfVertexes = new ArrayList<Vertex>();\n \t\t\tpairOfVertexes.add(firstVertex);\n \t\t\tpairOfVertexes.add(secondVertex);\n \t\t\t((MapPanel) panel_4).addRoad(pairOfVertexes);\n \t\t\t((MapPanel) panel_4).addInterestPoint(false);\n \t\t\t((MapPanel) panel_4).addTraffic(\"High\");\n \t\t\t((MapPanel) panel_4).addWeather(\"Light Rain\");\n \t\t\t\n \t\t\t world.setCurrentWeather(((MapPanel) panel_4).weather);\n world.setCurrentTraffic(((MapPanel) panel_4).traffic);\n update();\n\n \t\t\t((MapPanel) panel_4).repaint();\n \t}",
"private void drawShapes() {\n\n // get a polygon shape object\n SKPolygon polygon = new SKPolygon();\n // set the polygon's nodes\n List<SKCoordinate> nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7765));\n nodes.add(new SKCoordinate(-122.4141, 37.7765));\n nodes.add(new SKCoordinate(-122.4342, 37.7620));\n polygon.setNodes(nodes);\n // set the outline size\n polygon.setOutlineSize(3);\n // set colors used to render the polygon\n polygon.setOutlineColor(new float[]{1f, 0f, 0f, 1f});\n polygon.setColor(new float[]{1f, 0f, 0f, 0.2f});\n // render the polygon on the map\n mapView.addPolygon(polygon);\n\n // get a circle mask shape object\n SKCircle circleMask = new SKCircle();\n // set the shape's mask scale\n circleMask.setMaskedObjectScale(1.3f);\n // set the colors\n circleMask.setColor(new float[]{1f, 1f, 0.5f, 0.67f});\n circleMask.setOutlineColor(new float[]{0f, 0f, 0f, 1f});\n circleMask.setOutlineSize(3);\n // set circle center and radius\n circleMask.setCircleCenter(new SKCoordinate(-122.4200, 37.7665));\n circleMask.setRadius(300);\n // set outline properties\n circleMask.setOutlineDottedPixelsSkip(6);\n circleMask.setOutlineDottedPixelsSolid(10);\n // set the number of points for rendering the circle\n circleMask.setNumberOfPoints(150);\n // render the circle mask\n mapView.addCircle(circleMask);\n\n\n // get a polyline object\n SKPolyline polyline = new SKPolyline();\n // set the nodes on the polyline\n nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7898));\n nodes.add(new SKCoordinate(-122.4141, 37.7898));\n nodes.add(new SKCoordinate(-122.4342, 37.7753));\n polyline.setNodes(nodes);\n // set polyline color\n polyline.setColor(new float[]{0f, 0f, 1f, 1f});\n // set properties for the outline\n polyline.setOutlineColor(new float[]{0f, 0f, 1f, 1f});\n polyline.setOutlineSize(4);\n polyline.setOutlineDottedPixelsSolid(3);\n polyline.setOutlineDottedPixelsSkip(3);\n mapView.addPolyline(polyline);\n }",
"private void caterpillar(int segments) {\r\n for (int i= 0; i<SEGMENTS; i++){\r\n creatingCircle(i);\r\n }\r\n }",
"private void generateMap(){\n if(currDirections != null){\n\n\t \tPoint edge = new Point(mapPanel.getWidth(), mapPanel.getHeight());\n \tmapPanel.paintImmediately(0, 0, edge.x, edge.y);\n\t \t\n\t \t\n\t \t// setup advanced graphics object\n\t Graphics2D g = (Graphics2D)mapPanel.getGraphics();\n\t g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);\n\n\t \n\t Route rt = currDirections.getRoute();\n\t\n\t boolean singleStreet = rt.getGeoSegments().size() == 1;\n\t Route contextRoute = (!singleStreet ? rt : \n\t \t\tnew Route( virtualGPS.findFullSegment(rt.getEndingGeoSegment()) ) );\n\t \n\t // calculate the longitude and latitude bounds\n\t int[] bounds = calculateCoverage( contextRoute , edge);\n\t \n\t Collection<StreetSegment> map = virtualGPS.getContext(bounds, contextRoute);\n\t \n\t \n\t // draw every segment of the map\n\t g.setColor(Color.GRAY);\n\t for(GeoSegment gs : map){\n\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t \n\t // draw the path over the produced map in BLUE\n\t g.setColor(Color.BLUE);\n\t for(GeoFeature gf : rt.getGeoFeatures()){\n\t for(GeoSegment gs : gf.getGeoSegments()){\n\t\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t Point start = derivePoint(bounds, edge, gf.getStart());\n\t Point end = derivePoint(bounds, edge, gf.getEnd());\n\t \n\t int dX = (int)(Math.abs(start.x - end.x) / 2.0);\n\t int dY = (int)(Math.abs(start.y - end.y) / 2.0);\n\n if(!jCheckBoxHideStreetNames.isSelected()){\n \tg.setFont(new Font(g.getFont().getFontName(), Font.BOLD, g.getFont().getSize()));\n \tg.drawString(gf.getName(), start.x + (start.x<end.x ? dX : -dX),\n \t\t\tstart.y + (start.y<end.y ? dY : -dY));\n }\n\t }\n }\n }",
"private void drawSegments(List<LatLng> listPoints) {\n\n PolylineOptions rectOptions = new PolylineOptions()\n .width(8)\n .color(context.getResources().getColor(R.color.colorPolylineComplete))\n .addAll(listPoints);\n\n googleMap.addPolyline(rectOptions);\n }",
"private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }",
"public void drawOnMap(){\n mMap.clear();\n mMap.addMarker(new MarkerOptions().position(startLatLng).title(startName));\n mMap.addMarker(new MarkerOptions().position(destinationLatLng).title(destinationName).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n\n if(trainLatLng != null)\n mMap.addMarker(new MarkerOptions().position(trainLatLng).title(\"Train \" + trainNumber).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n }",
"@Test\n public void testCreateSegment() {\n\n Point startPoint = view.mapPoints[0];\n Point endPoint = view.mapPoints[1];\n MotionEvent down = createMotionEvent(MotionEvent.ACTION_DOWN, startPoint.x, startPoint.y);\n MotionEvent up = createMotionEvent(MotionEvent.ACTION_UP, endPoint.x, endPoint.y);\n view.dispatchTouchEvent(down);\n view.dispatchTouchEvent(up);\n String msg = \"Failed to create the segment from two valid points on the map\";\n int expectedSegmentSize = 1;\n assertEquals(msg, expectedSegmentSize, view.segments.size());\n\n msg = \"Segment was created, but the startPoint is not correct.\";\n Point startPointCentered = getCenterPoint(startPoint);\n assertEquals(msg, startPointCentered, view.segments.get(0)[0]);\n\n msg = \"Segment was created, but the endPoint is not correct.\";\n Point endPointCentered = getCenterPoint(endPoint);\n assertEquals(msg, endPointCentered, view.segments.get(0)[1]);\n }",
"public void drawBumpMapping(ArrayList<Light> lights, Vector view_vector) {\n\t}",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"public void addAreasToMap(){\n\t\tfor (Pair<Rectangle2D.Double,String> log:logicalAreas){\n\t\t\tfor (Node n:map){\n\t\t\t\tif (nodeToRect(n).intersects(log.getKey())){\n\t\t\t\t\tn.setLogical(log.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Pair<Rectangle2D.Double,String> phys:physicalAreas){\n\t\t\tfor (Node s:map){\n\t\t\t\tif (nodeToRect(s).intersects(phys.getKey())){\n\t\t\t\t\ts.setPhysical(phys.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void processSegment(Segment s, PolygonType pt) {\n// // if the two edge endpoints are equal the segment is dicarded\n// if (s.degenerate()) {\n// // This can be done as preprocessing to avoid \"polygons\" with less than 3 edges */\n// return;\n// }\n SweepEvent e1 = new SweepEvent(s.pBegin, true, null, pt);\n SweepEvent e2 = new SweepEvent(s.pEnd, true, e1, pt);\n e1.otherEvent = e2;\n\n if (s.min().equals(s.pBegin)) {\n e2.left = false;\n } else {\n e1.left = false;\n }\n sweepLine.eventQueue.add(e1);\n sweepLine.eventQueue.add(e2);\n }",
"private Map<ChunkCoordinate, ArrayList<Object[]>> CalculateBeginAndEndPointsPerChunk(Map<ChunkCoordinate, ArrayList<Object[]>> smoothToBlocksPerChunk)\n {\n Map<ChunkCoordinate, ArrayList<Object[]>> smoothingAreasToSpawn = new HashMap<ChunkCoordinate, ArrayList<Object[]>>();\n\n // Declare these here instead of inside for loops to help the GC (good for memory usage)\n // TODO: Find out if this actually makes any noticeable difference, it doesn't exactly\n // make the code any easier to read..\n CustomObjectCoordinate bO3;\n int blockX;\n int blockY;\n int blockZ;\n boolean smoothInDirection1;\n boolean smoothInDirection2;\n boolean smoothInDirection3;\n boolean smoothInDirection4;\n int smoothRadius;\n int normalizedSmoothFinalEndPointBlockX1;\n int normalizedSmoothFinalEndPointBlockY1;\n int normalizedSmoothFinalEndPointBlockZ1;\n ChunkCoordinate finalDestinationChunk;\n ArrayList<ChunkCoordinate>smoothingAreasToSpawnForThisBlock;\n int normalizedSmoothEndPointBlockX;\n int normalizedSmoothEndPointBlockY;\n int normalizedSmoothEndPointBlockZ;\n ChunkCoordinate destinationChunk;\n boolean bFound;\n int beginPointX;\n int beginPointY;\n int beginPointZ;\n int endPointX;\n int endPointY;\n int endPointZ;\n ArrayList<Object[]> beginningAndEndpoints;\n ChunkCoordinate chunkcontainingSmoothArea;\n ArrayList<Object[]> beginAndEndPoints;\n\n int originPointX = 0;\n\t\tint originPointY = 0;\n\t\tint originPointZ = 0;\n\t\tint finalDestinationPointX = 0;\n\t\tint finalDestinationPointY = 0;\n\t\tint finalDestinationPointZ = 0;\n Object[] objectToAdd;\n\n // Loop through smooth-line starting blocks\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkCoordSet : smoothToBlocksPerChunk.entrySet())\n {\n for(Object[] blockCoordsAndNeighbours : chunkCoordSet.getValue())\n {\n bO3 = (CustomObjectCoordinate)blockCoordsAndNeighbours[0];\n blockX = (Integer)blockCoordsAndNeighbours[1];\n blockY = (Integer)blockCoordsAndNeighbours[2];\n blockZ = (Integer)blockCoordsAndNeighbours[3];\n smoothInDirection1 = (Boolean)blockCoordsAndNeighbours[4];\n smoothInDirection2 = (Boolean)blockCoordsAndNeighbours[5];\n smoothInDirection3 = (Boolean)blockCoordsAndNeighbours[6];\n smoothInDirection4 = (Boolean)blockCoordsAndNeighbours[7];\n smoothRadius = (Integer)blockCoordsAndNeighbours[8];\n\n // used for diagonal line child lines that make up corners\n if(blockCoordsAndNeighbours.length > 14)\n {\n\t originPointX = (Integer)blockCoordsAndNeighbours[9];\n\t \t\toriginPointY = (Integer)blockCoordsAndNeighbours[10];\n\t\t\t\t\toriginPointZ = (Integer)blockCoordsAndNeighbours[11];\n\t\t\t\t\tfinalDestinationPointX = (Integer)blockCoordsAndNeighbours[12];\n\t\t\t\t\tfinalDestinationPointY = (Integer)blockCoordsAndNeighbours[13];\n\t\t\t\t\tfinalDestinationPointZ = (Integer)blockCoordsAndNeighbours[14];\n }\n\n // Find smooth end point and normalize coord\n // Add each chunk between the smooth-beginning and end points to a list along with the line-segment information (startcoords in chunk, endcoords in chunk, originCoords, finaldestinationCoords)\n // Later when a chunk is being spawned the list is consulted in order to merge all smoothing lines into 1 smoothing area for the chunk.\n // Note: Unfortunately we can only find x and z coordinates for the smoothing lines at this point. In order to find the Y endpoint\n // for a smoothing line we need the landscape to be spawned so that we can find the highest solid block in the landscape.\n // This problem is handled later during spawning, if the Y endpoint for a smoothing line in a chunk is not available when that chunk\n // is being spawned (because the endpoint is in a neighbouring chunk that has not yet been spawned) then all spawning for the chunk is paused until the Y endpoint is available (the neighbouring chunk has spawned).\n\n if(smoothRadius == 0 && blockCoordsAndNeighbours.length < 15)\n {\n \t//throw new RuntimeException();\n }\n\n // If this block is a non-outer-corner block (it does not have the smoothInDirection boolean set to true for 2 neighbouring sides)\n if(smoothInDirection1)// && (smoothRadius > 0 || test || blockCoordsAndNeighbours.length > 14))\n {\n \tnormalizedSmoothFinalEndPointBlockX1 = blockX - smoothRadius + (bO3.getX());\n \tnormalizedSmoothFinalEndPointBlockZ1 = blockZ + (bO3.getZ());\n // normalizedSmoothFinalEndPointBlockY1 will be detected later while spawning smooth areas\n \tnormalizedSmoothFinalEndPointBlockY1 = -1;\n\n finalDestinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockZ1);\n\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n\n // First get all chunks between the beginning- and end-points\n for(int i = 0; i <= smoothRadius; i++)\n {\n \tnormalizedSmoothEndPointBlockX = blockX - i + (bO3.getX());\n normalizedSmoothEndPointBlockY = blockY + bO3.getY();\n normalizedSmoothEndPointBlockZ = blockZ + (bO3.getZ());\n destinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothEndPointBlockX, normalizedSmoothEndPointBlockZ);\n\n // Check if we havent handled this chunk yet for the current line\n bFound = false;\n for(ChunkCoordinate cCoord : smoothingAreasToSpawnForThisBlock)\n {\n if(destinationChunk.getChunkX() == cCoord.getChunkX() && destinationChunk.getChunkZ() == cCoord.getChunkZ())\n {\n bFound = true;\n break;\n }\n }\n if(!bFound)\n {\n // Get the coordinates of the beginning and endpoint relative to the chunk's coordinates\n beginPointX = normalizedSmoothEndPointBlockX;\n beginPointY = normalizedSmoothEndPointBlockY;\n beginPointZ = normalizedSmoothEndPointBlockZ;\n\n endPointX = normalizedSmoothEndPointBlockX;\n endPointY = normalizedSmoothEndPointBlockY;\n endPointZ = normalizedSmoothEndPointBlockZ;\n\n if(finalDestinationChunk.getChunkX() != destinationChunk.getChunkX() || finalDestinationChunk.getChunkZ() != destinationChunk.getChunkZ())\n {\n // The smoothing area expands beyond this chunk so put the endpoint at the chunk border (0 because we're moving in the - direction)\n endPointX = destinationChunk.getChunkX() * 16;\n } else {\n // Get the endpoint by adding the remaining smoothRadius\n endPointX = normalizedSmoothEndPointBlockX -= (smoothRadius - i);\n }\n\n beginningAndEndpoints = new ArrayList<Object[]> ();\n if(blockCoordsAndNeighbours.length > 14)\n {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), -1, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1, originPointX + (bO3.getX()), originPointY, originPointZ + (bO3.getZ()), finalDestinationPointX + (bO3.getX()), finalDestinationPointY, finalDestinationPointZ + (bO3.getZ()) };\n } else {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), beginPointY, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1 };\n }\n\n \tbeginningAndEndpoints.add(objectToAdd);\n\n // Check if there are already start and endpoints for this chunk\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkcontainingSmoothAreaSet : smoothingAreasToSpawn.entrySet())\n {\n chunkcontainingSmoothArea = chunkcontainingSmoothAreaSet.getKey();\n if(chunkcontainingSmoothArea.getChunkX() == destinationChunk.getChunkX() && chunkcontainingSmoothArea.getChunkZ() == destinationChunk.getChunkZ())\n {\n bFound = true;\n beginAndEndPoints = chunkcontainingSmoothAreaSet.getValue();\n beginAndEndPoints.add(objectToAdd);\n break;\n }\n }\n if(!bFound)\n {\n smoothingAreasToSpawn.put(destinationChunk, beginningAndEndpoints);\n }\n smoothingAreasToSpawnForThisBlock.add(destinationChunk);\n }\n }\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n }\n if(smoothInDirection2)// && (smoothRadius > 0 || test || blockCoordsAndNeighbours.length > 14))\n {\n \tnormalizedSmoothFinalEndPointBlockX1 = blockX + smoothRadius + (bO3.getX());\n \tnormalizedSmoothFinalEndPointBlockZ1 = blockZ + (bO3.getZ());\n // normalizedSmoothFinalEndPointBlockY1 will be detected later while spawning smooth areas\n \tnormalizedSmoothFinalEndPointBlockY1 = -1;\n finalDestinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockZ1);\n\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n\n // First get all chunks between the beginning- and end-points\n for(int i = 0; i <= smoothRadius; i++)\n {\n \tnormalizedSmoothEndPointBlockX = blockX + i + (bO3.getX());\n normalizedSmoothEndPointBlockY = blockY + bO3.getY();\n normalizedSmoothEndPointBlockZ = blockZ + (bO3.getZ());\n destinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothEndPointBlockX, normalizedSmoothEndPointBlockZ);\n\n // Check if we havent handled this chunk yet for the current line\n bFound = false;\n for(ChunkCoordinate cCoord : smoothingAreasToSpawnForThisBlock)\n {\n if(destinationChunk.getChunkX() == cCoord.getChunkX() && destinationChunk.getChunkZ() == cCoord.getChunkZ())\n {\n bFound = true;\n break;\n }\n }\n if(!bFound)\n {\n // Get the coordinates of the beginning and endpoint relative to the chunk's coordinates\n beginPointX = normalizedSmoothEndPointBlockX;\n beginPointY = normalizedSmoothEndPointBlockY;\n beginPointZ = normalizedSmoothEndPointBlockZ;\n\n endPointX = normalizedSmoothEndPointBlockX;\n endPointY = normalizedSmoothEndPointBlockY;\n endPointZ = normalizedSmoothEndPointBlockZ;\n\n if(finalDestinationChunk.getChunkX() != destinationChunk.getChunkX() || finalDestinationChunk.getChunkZ() != destinationChunk.getChunkZ())\n {\n // The smoothing area expands beyond this chunk so put the endpoint at the chunk border (15 because we're moving in the + direction)\n endPointX = destinationChunk.getChunkX() * 16 + 15;\n } else {\n // Get the endpoint by adding the remaining smoothRadius\n endPointX = normalizedSmoothEndPointBlockX += (smoothRadius - i);\n }\n\n beginningAndEndpoints = new ArrayList<Object[]> ();\n if(blockCoordsAndNeighbours.length > 14)\n {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), -1, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1, originPointX + (bO3.getX()), originPointY, originPointZ + (bO3.getZ()), finalDestinationPointX + (bO3.getX()), finalDestinationPointY, finalDestinationPointZ + (bO3.getZ()) };\n } else {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), beginPointY, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1 };\n }\n\n \tbeginningAndEndpoints.add(objectToAdd);\n\n // Check if there are already start and endpoints for this chunk\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkcontainingSmoothAreaSet : smoothingAreasToSpawn.entrySet())\n {\n chunkcontainingSmoothArea = chunkcontainingSmoothAreaSet.getKey();\n if(chunkcontainingSmoothArea.getChunkX() == destinationChunk.getChunkX() && chunkcontainingSmoothArea.getChunkZ() == destinationChunk.getChunkZ())\n {\n bFound = true;\n beginAndEndPoints = chunkcontainingSmoothAreaSet.getValue();\n beginAndEndPoints.add(objectToAdd);\n break;\n }\n }\n if(!bFound)\n {\n \tsmoothingAreasToSpawn.put(destinationChunk, beginningAndEndpoints);\n }\n smoothingAreasToSpawnForThisBlock.add(destinationChunk);\n }\n }\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n }\n if(smoothInDirection3)// && (smoothRadius > 0 || test || blockCoordsAndNeighbours.length > 14))\n {\n \tnormalizedSmoothFinalEndPointBlockX1 = blockX + (bO3.getX());\n \tnormalizedSmoothFinalEndPointBlockZ1 = blockZ - smoothRadius + (bO3.getZ());\n // normalizedSmoothFinalEndPointBlockY1 will be detected later while spawning smooth areas\n \tnormalizedSmoothFinalEndPointBlockY1 = -1;\n finalDestinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockZ1);\n\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n\n // First get all chunks between the beginning- and end-points\n for(int i = 0; i <= smoothRadius; i++)\n {\n \tnormalizedSmoothEndPointBlockX = blockX + (bO3.getX());\n normalizedSmoothEndPointBlockY = blockY + bO3.getY();\n normalizedSmoothEndPointBlockZ = blockZ - i + (bO3.getZ());\n destinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothEndPointBlockX, normalizedSmoothEndPointBlockZ);\n\n // Check if we havent handled this chunk yet for the current line\n bFound = false;\n for(ChunkCoordinate cCoord : smoothingAreasToSpawnForThisBlock)\n {\n if(destinationChunk.getChunkX() == cCoord.getChunkX() && destinationChunk.getChunkZ() == cCoord.getChunkZ())\n {\n bFound = true;\n break;\n }\n }\n if(!bFound)\n {\n // Get the coordinates of the beginning and endpoint relative to the chunk's coordinates\n beginPointX = normalizedSmoothEndPointBlockX;\n beginPointY = normalizedSmoothEndPointBlockY;\n beginPointZ = normalizedSmoothEndPointBlockZ;\n\n endPointX = normalizedSmoothEndPointBlockX;\n endPointY = normalizedSmoothEndPointBlockY;\n endPointZ = normalizedSmoothEndPointBlockZ;\n\n if(finalDestinationChunk.getChunkX() != destinationChunk.getChunkX() || finalDestinationChunk.getChunkZ() != destinationChunk.getChunkZ())\n {\n // The smoothing area expands beyond this chunk so put the endpoint at the chunk border (0 because we're moving in the - direction)\n endPointZ = destinationChunk.getChunkZ() * 16;\n } else {\n // Get the endpoint by adding the remaining smoothRadius\n endPointZ = normalizedSmoothEndPointBlockZ -= (smoothRadius - i);\n }\n\n beginningAndEndpoints = new ArrayList<Object[]> ();\n if(blockCoordsAndNeighbours.length > 14)\n {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), -1, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1, originPointX + (bO3.getX()), originPointY, originPointZ + (bO3.getZ()), finalDestinationPointX + (bO3.getX()), finalDestinationPointY, finalDestinationPointZ + (bO3.getZ()) };\n } else {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), beginPointY, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1 };\n }\n\n \tbeginningAndEndpoints.add(objectToAdd);\n\n // Check if there are already start and endpoints for this chunk\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkcontainingSmoothAreaSet : smoothingAreasToSpawn.entrySet())\n {\n chunkcontainingSmoothArea = chunkcontainingSmoothAreaSet.getKey();\n if(chunkcontainingSmoothArea.getChunkX() == destinationChunk.getChunkX() && chunkcontainingSmoothArea.getChunkZ() == destinationChunk.getChunkZ())\n {\n bFound = true;\n beginAndEndPoints = chunkcontainingSmoothAreaSet.getValue();\n beginAndEndPoints.add(objectToAdd);\n break;\n }\n }\n if(!bFound)\n {\n \tsmoothingAreasToSpawn.put(destinationChunk, beginningAndEndpoints);\n }\n smoothingAreasToSpawnForThisBlock.add(destinationChunk);\n }\n }\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n }\n if(smoothInDirection4)// && (smoothRadius > 0 || test || blockCoordsAndNeighbours.length > 14))\n {\n \tnormalizedSmoothFinalEndPointBlockX1 = blockX + (bO3.getX());\n \tnormalizedSmoothFinalEndPointBlockZ1 = blockZ + smoothRadius + (bO3.getZ());\n // normalizedSmoothFinalEndPointBlockY1 will be detected later while spawning smooth areas\n \tnormalizedSmoothFinalEndPointBlockY1 = -1;\n\n finalDestinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockZ1);\n\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n\n // First get all chunks between the beginning- and end-points\n for(int i = 0; i <= smoothRadius; i++)\n {\n \tnormalizedSmoothEndPointBlockX = blockX + (bO3.getX());\n normalizedSmoothEndPointBlockY = blockY + bO3.getY();\n normalizedSmoothEndPointBlockZ = blockZ + i + (bO3.getZ());\n destinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothEndPointBlockX, normalizedSmoothEndPointBlockZ);\n\n // Check if we havent handled this chunk yet for the current line\n bFound = false;\n for(ChunkCoordinate cCoord : smoothingAreasToSpawnForThisBlock)\n {\n if(destinationChunk.getChunkX() == cCoord.getChunkX() && destinationChunk.getChunkZ() == cCoord.getChunkZ())\n {\n bFound = true;\n break;\n }\n }\n if(!bFound)\n {\n // Get the coordinates of the beginning and endpoint relative to the chunk's coordinates\n beginPointX = normalizedSmoothEndPointBlockX;\n beginPointY = normalizedSmoothEndPointBlockY;\n beginPointZ = normalizedSmoothEndPointBlockZ;\n\n endPointX = normalizedSmoothEndPointBlockX;\n endPointY = normalizedSmoothEndPointBlockY;\n endPointZ = normalizedSmoothEndPointBlockZ;\n\n if(finalDestinationChunk.getChunkX() != destinationChunk.getChunkX() || finalDestinationChunk.getChunkZ() != destinationChunk.getChunkZ())\n {\n // The smoothing area expands beyond this chunk so put the endpoint at the chunk border (15 because we're moving in the + direction)\n endPointZ = destinationChunk.getChunkZ() * 16 + 15;\n } else {\n // Get the endpoint by adding the remaining smoothRadius\n endPointZ = normalizedSmoothEndPointBlockZ += (smoothRadius - i);\n }\n\n beginningAndEndpoints = new ArrayList<Object[]> ();\n if(blockCoordsAndNeighbours.length > 14)\n {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), -1, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1, originPointX + (bO3.getX()), originPointY, originPointZ + (bO3.getZ()), finalDestinationPointX + (bO3.getX()), finalDestinationPointY, finalDestinationPointZ + (bO3.getZ()) };\n } else {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), beginPointY, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1 };\n }\n\n \tbeginningAndEndpoints.add(objectToAdd);\n\n // Check if there are already start and endpoints for this chunk\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkcontainingSmoothAreaSet : smoothingAreasToSpawn.entrySet())\n {\n chunkcontainingSmoothArea = chunkcontainingSmoothAreaSet.getKey();\n if(chunkcontainingSmoothArea.getChunkX() == destinationChunk.getChunkX() && chunkcontainingSmoothArea.getChunkZ() == destinationChunk.getChunkZ())\n {\n bFound = true;\n beginAndEndPoints = chunkcontainingSmoothAreaSet.getValue();\n beginAndEndPoints.add(objectToAdd);\n break;\n }\n }\n if(!bFound)\n {\n smoothingAreasToSpawn.put(destinationChunk, beginningAndEndpoints);\n }\n smoothingAreasToSpawnForThisBlock.add(destinationChunk);\n }\n }\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n }\n\n if(!smoothInDirection1 && !smoothInDirection2 && !smoothInDirection3 && !smoothInDirection4)\n {\n \tnormalizedSmoothFinalEndPointBlockX1 = blockX + (bO3.getX());\n \tnormalizedSmoothFinalEndPointBlockZ1 = blockZ + (bO3.getZ());\n // normalizedSmoothFinalEndPointBlockY1 will be detected later while spawning smooth areas\n \tnormalizedSmoothFinalEndPointBlockY1 = -1;\n\n finalDestinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockZ1);\n\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n\n // First get all chunks between the beginning- and end-points\n \tnormalizedSmoothEndPointBlockX = blockX + (bO3.getX());\n normalizedSmoothEndPointBlockY = blockY + bO3.getY();\n normalizedSmoothEndPointBlockZ = blockZ + (bO3.getZ());\n destinationChunk = ChunkCoordinate.fromBlockCoords(normalizedSmoothEndPointBlockX, normalizedSmoothEndPointBlockZ);\n\n // Check if we havent handled this chunk yet for the current line\n bFound = false;\n for(ChunkCoordinate cCoord : smoothingAreasToSpawnForThisBlock)\n {\n if(destinationChunk.getChunkX() == cCoord.getChunkX() && destinationChunk.getChunkZ() == cCoord.getChunkZ())\n {\n bFound = true;\n break;\n }\n }\n if(!bFound)\n {\n // Get the coordinates of the beginning and endpoint relative to the chunk's coordinates\n beginPointX = normalizedSmoothEndPointBlockX;\n beginPointY = normalizedSmoothEndPointBlockY;\n beginPointZ = normalizedSmoothEndPointBlockZ;\n\n endPointX = normalizedSmoothEndPointBlockX;\n endPointY = normalizedSmoothEndPointBlockY;\n endPointZ = normalizedSmoothEndPointBlockZ;\n\n beginningAndEndpoints = new ArrayList<Object[]> ();\n if(blockCoordsAndNeighbours.length > 14)\n {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), -1, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1, originPointX + (bO3.getX()), originPointY, originPointZ + (bO3.getZ()), finalDestinationPointX + (bO3.getX()), finalDestinationPointY, finalDestinationPointZ + (bO3.getZ()) };\n } else {\n \tobjectToAdd = new Object[] { beginPointX, beginPointY, beginPointZ, endPointX, endPointY, endPointZ, blockX + (bO3.getX()), beginPointY, blockZ + (bO3.getZ()), normalizedSmoothFinalEndPointBlockX1, normalizedSmoothFinalEndPointBlockY1, normalizedSmoothFinalEndPointBlockZ1 };\n }\n\n if(normalizedSmoothFinalEndPointBlockY1 != -1)\n {\n \tthrow new RuntimeException();\n }\n\n \tbeginningAndEndpoints.add(objectToAdd);\n\n // Check if there are already start and endpoints for this chunk\n for(Entry<ChunkCoordinate, ArrayList<Object[]>> chunkcontainingSmoothAreaSet : smoothingAreasToSpawn.entrySet())\n {\n chunkcontainingSmoothArea = chunkcontainingSmoothAreaSet.getKey();\n if(chunkcontainingSmoothArea.getChunkX() == destinationChunk.getChunkX() && chunkcontainingSmoothArea.getChunkZ() == destinationChunk.getChunkZ())\n {\n bFound = true;\n beginAndEndPoints = chunkcontainingSmoothAreaSet.getValue();\n beginAndEndPoints.add(objectToAdd);\n break;\n }\n }\n if(!bFound)\n {\n smoothingAreasToSpawn.put(destinationChunk, beginningAndEndpoints);\n }\n smoothingAreasToSpawnForThisBlock.add(destinationChunk);\n }\n smoothingAreasToSpawnForThisBlock = new ArrayList<ChunkCoordinate>();\n }\n }\n }\n return smoothingAreasToSpawn;\n }",
"private void initRoad()\n\t{\n\t\tverticalRoad = new Rectangle(height/2-roadWidth/2,0,roadWidth,height);\n\t\thorizontalRoad = new Rectangle(0,width/2-roadWidth/2,width,roadWidth);\n\t}",
"public void switchMap()\n\t{\n\t\tswitch(area)\n\t\t{\n\t\t\tcase Stringville:\n\t\t\t\tif (location.y==0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif(location.x==10)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_1;\n\t\t\t\t\t\tlocation.x=18;\n\t\t\t\t\t\tlocation.y=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif(location.x==11)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_1;\n\t\t\t\t\t\tlocation.x=19;\n\t\t\t\t\t\tlocation.y=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(location.x==49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif(location.y==14||location.y==15)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_0;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tif(location.y==14)\n\t\t\t\t\t\t\tlocation.y=12;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tlocation.y=13;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.y >= 27 && location.y <= 44 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_0;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x==5 && location.y == 37)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 11 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.YourHouse;\n\t\t\t\t\tlocation.x=5;\n\t\t\t\t\tlocation.y=8;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Rival_House;\n\t\t\t\t\tlocation.x=5;\n\t\t\t\t\tlocation.y=8;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 32 && location.y == 9)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Babbs_Lab;\n\t\t\t\t\tlocation.x=4;\n\t\t\t\t\tlocation.y=12;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif ((location.x == 23 && location.y == 7) || (location.x == 35 && location.y == 17))\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 23 && location.y == 7)\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\telse\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\ttransition=false;\n\t\t\t\t\treturnArea = Area.Stringville;\n\t\t\t\t\treturnPoint.x = location.x;\n\t\t\t\t\treturnPoint.y = location.y+1;\n\t\t\t\t\tarea=Area.Generic_1;\n\t\t\t\t\tlocation.x=2;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 30 && location.y == 37)\n\t\t\t\t{\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t\tgenericTransfer(Area.Gym_1,7,14);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Args_Harbor:\n\t\t\t\tif (location.x==0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif(location.y==28)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_0;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tlocation.y=12;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif(location.y==29)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_0;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tlocation.y=13;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif (location.y >= 41 && location.y <= 64 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_0;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (location.x==3 && location.y == 27)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x==9 && location.y == 45)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 3 && location.x <= 48 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_8;\n\t\t\t\t\t\tlocation.y=63;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 38 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tgenericTransfer(Area.Gym_2,12,14);\n\t\t\t\t}\n\t\t\t\tif (location.x == 59 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 16 || location.y == 17)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_14;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 35 && location.y == 31)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 21 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\thouseInt=2;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 17 && location.y == 33)\n\t\t\t\t{\n\t\t\t\t\thouseInt=3;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 29 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Lighthouse,5,11);\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 57)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Challenge_Cave;\n\t\t\t\t\tlocation.x=112;\n\t\t\t\t\tlocation.y=115;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_0:\n\t\t\t\tif (location.x==0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif(location.y==12)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y=14;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\telse if(location.y==13)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y=15;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\n\t\t\t\t\tif (location.y >= 25 && location.y <= 42 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y+=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x==59 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif(location.y==12)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y=28;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\telse if(location.y==13)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y=29;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\n\t\t\t\t\tif (location.y >= 25 && location.y <= 48 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_1:\n\t\t\t\tif (location.y==59 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif(location.x==18)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=10;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\telse if(location.x==19)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=11;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x==39 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 8 || location.y == 9)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tif(location.y==8)\n\t\t\t\t\t\t\tlocation.y=28;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tlocation.y=29;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 4 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=0;\n\t\t\t\t\t\tlocation.x=9;\n\t\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 31 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=4;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_2:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 28 || location.y == 29)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_1;\n\t\t\t\t\t\tlocation.x=39;\n\t\t\t\t\t\tif(location.y==28)\n\t\t\t\t\t\t\tlocation.y=8;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tlocation.y=9;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 24 && location.x <= 27)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Nested_Village;\n\t\t\t\t\t\tlocation.y=45;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.x >= 5 && location.x <= 22 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Nested_Village;\n\t\t\t\t\t\tlocation.y=45;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.x >= 29 && location.x <= 42 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Nested_Village;\n\t\t\t\t\t\tlocation.y=45;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\thouseInt=2;\n\t\t\t\t\tlocation.x=4;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.y == 15 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 25 || location.x == 26)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\thouseInt = 3;\n\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\tlocation.x-=21;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\thouseInt=2;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Pokecenter:\n\t\t\t\tif (location.y == 8 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 6 || location.x == 7)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=returnArea2;\n\t\t\t\t\t\tlocation.x=returnPoint2.x;\n\t\t\t\t\t\tlocation.y=returnPoint2.y;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Nested_Village:\n\t\t\t\tif (location.y == 45 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 24 && location.x <= 27)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.x >= 5 && location.x <= 22 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.x >= 29 && location.x <= 42 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 33 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 22 && location.y <= 27)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_3;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y+=10;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 37 && location.y <= 43)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_ARRAYINDEXOUTOFBOUNDSEXCEPTION;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=18;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 21 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 19 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\thouseInt=2;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Mart:\n\t\t\t\tif (location.y == 8 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 2 || location.x == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=returnArea;\n\t\t\t\t\t\tlocation.x=returnPoint.x;\n\t\t\t\t\t\tlocation.y=returnPoint.y;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_3:\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 32 && location.y <= 37)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Nested_Village;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=10;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 8 && location.y <= 9)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Villa_Del_Joe;\n\t\t\t\t\t\tlocation.x=75;\n\t\t\t\t\t\tlocation.y+=44;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.y >= 34 && location.y <= 37)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_11;\n\t\t\t\t\t\tlocation.x=69;\n\t\t\t\t\t\tlocation.y-=28;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 22 && location.y == 9)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Public_Cave;\n\t\t\t\t\tlocation.x=8;\n\t\t\t\t\tlocation.y=90;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 37 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Public_Cave;\n\t\t\t\t\tlocation.x=25;\n\t\t\t\t\tlocation.y=87;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Public_Cave:\n\t\t\t\tif (location.x == 8 && location.y == 91)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_3;\n\t\t\t\t\tlocation.x=22;\n\t\t\t\t\tlocation.y=10;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 88)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_3;\n\t\t\t\t\tlocation.x=37;\n\t\t\t\t\tlocation.y=6;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 78 && location.y == 83)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_6;\n\t\t\t\t\tlocation.x=8;\n\t\t\t\t\tlocation.y=10;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 64)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_10;\n\t\t\t\t\tlocation.x=8;\n\t\t\t\t\tlocation.y=34;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 11 && direction == 90 && location.y == 70)\n\t\t\t\t{\n\t\t\t\t\tlocation.y=63;\n\t\t\t\t}\n\t\t\t\tif (location.x == 11 && direction == 270 && location.y == 63)\n\t\t\t\t{\n\t\t\t\t\tlocation.y=70;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Villa_Del_Joe:\n\t\t\t\tif (location.x == 75 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 52 || location.y == 53)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_3;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=44;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.y == 10 || location.y == 11)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_4;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=78;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 31)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 63 && location.y == 35)\n\t\t\t\t{\n\t\t\t\t\thouseInt=3;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 51 && location.y == 47)\n\t\t\t\t{\n\t\t\t\t\thouseInt=4;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 51 && location.y == 57)\n\t\t\t\t{\n\t\t\t\t\thouseInt=5;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 51 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\thouseInt=6;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 63 && location.y == 9)\n\t\t\t\t{\n\t\t\t\t\thouseInt=7;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 43 && location.y == 1)\n\t\t\t\t{\n\t\t\t\t\thouseInt=8;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 31 && location.y == 1)\n\t\t\t\t{\n\t\t\t\t\thouseInt=9;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 53)\n\t\t\t\t{\n\t\t\t\t\thouseInt=10;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 29 && location.y == 31)\n\t\t\t\t{\n\t\t\t\t\thouseInt=11;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 8 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t\tgenericTransfer(Area.Gym_3,9,19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 5 && location.y == 49)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.J_Inc_Radio_Tower, 4, 9);\n\t\t\t\t}\n\t\t\t\tif (location.x == 10 && location.y == 51)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.J_Inc_Building, 9, 14);\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 41)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.MegaMart,11,13);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase YourHouse:\n\t\t\tcase Rival_House:\n\t\t\t\tif (location.y == 8 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 5 || location.x == 6)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (area == Area.YourHouse)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlocation.x=15;\n\t\t\t\t\t\t\tlocation.y=12;\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\tlocation.x=27;\n\t\t\t\t\t\t\tlocation.y=18;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_4:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 88 || location.y == 89)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Villa_Del_Joe;\n\t\t\t\t\t\tlocation.x=75;\n\t\t\t\t\t\tlocation.y-=78;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 18 && location.x <= 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\t\tlocation.y=39;\n\t\t\t\t\t\tlocation.x+=4;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 18 && location.y == 77)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tlocation.x=4;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.y == 73 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 18 || location.x == 19)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\thouseInt=0;\n\t\t\t\t\t\tlocation.x-=14;\n\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_5:\n\t\t\t\tif (location.y == 39 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 22 && location.x <= 25)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_4;\n\t\t\t\t\t\tlocation.x-=4;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 60 && location.x <= 65)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\t\tlocation.x-=50;\n\t\t\t\t\t\tlocation.y=49;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 62 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tlocation.x=4;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.y == 1 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 62 || location.x == 63)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\thouseInt=1;\n\t\t\t\t\t\tlocation.x-=58;\n\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 10 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Class_Cave;\n\t\t\t\t\tlocation.x=9;\n\t\t\t\t\tlocation.y=22;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 32 && location.y == 3)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Class_Cave;\n\t\t\t\t\tlocation.x=22;\n\t\t\t\t\tlocation.y=24;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Class_Cave:\n\t\t\t\tif (location.x == 9 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\tlocation.x=10;\n\t\t\t\t\tlocation.y=6;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 22 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\tlocation.x=32;\n\t\t\t\t\tlocation.y=4;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Mount_Java:\n\t\t\t\tif (location.y == 49 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 10 && location.x <= 18)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\t\tlocation.x+=50;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_9;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 19 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 42 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=1;\n\t\t\t\t\t\tlocation.x=9;\n\t\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 37 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=1;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=3;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\thouseInt=4;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\thouseInt=5;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 34 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t\tgenericTransfer(Area.Gym_4,9,19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 6 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Java_Cave;\n\t\t\t\t\tlocation.x=15;\n\t\t\t\t\tlocation.y=22;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 16 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Java_Cave;\n\t\t\t\t\tlocation.x=25;\n\t\t\t\t\tlocation.y=21;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Java_Cave:\n\t\t\t\tif (location.x == 15 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\tlocation.x=6;\n\t\t\t\t\tlocation.y=8;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 22)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\tlocation.x=16;\n\t\t\t\t\tlocation.y=12;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 6 && location.y == 16)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\tlocation.x=36;\n\t\t\t\t\tlocation.y=4;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_6:\n\t\t\t\tif (location.x == 59 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif ((location.y >= 12 && location.y <= 15) || (location.y >= 33 && location.y <= 39))\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Streamreader_Hotel;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 43 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 26 && location.x <= 29)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_8;\n\t\t\t\t\t\tlocation.x+=22;\n\t\t\t\t\t\tlocation.y = 0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 33 && location.y <= 39)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_ARRAYINDEXOUTOFBOUNDSEXCEPTION;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y-=14;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 7 && location.y == 21)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 8 && location.y == 9)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Public_Cave;\n\t\t\t\t\tlocation.x=78;\n\t\t\t\t\tlocation.y=82;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Streamreader_Hotel:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif ((location.y >= 12 && location.y <= 15) || (location.y >= 33 && location.y <= 39))\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_6;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 22 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t\tgenericTransfer(Area.Gym_5,9,19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 27)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Generic_4,2,7);\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t}\n\t\t\t\tif (location.x == 33 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Generic_4,2,7);\n\t\t\t\t\thouseInt = 1;\n\t\t\t\t}\n\t\t\t\tif (location.x == 25 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 20 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Hotel_Lobby,5,11);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Hotel_Lobby:\n\t\t\t\tif (location.y == 11 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 5 || location.x == 6)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_8:\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 48 && location.x <= 51)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_6;\n\t\t\t\t\t\tlocation.x-=22;\n\t\t\t\t\t\tlocation.y = 43;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 63 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 3 && location.x <= 63 && surfing)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=10;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 17 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\thouseInt=11;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_ARRAYINDEXOUTOFBOUNDSEXCEPTION:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 19 && location.y <= 25)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Nested_Village;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y+=18;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 19 && location.y <= 25)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_6;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=14;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 24 && location.y == 13)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Articuno_Cave;\n\t\t\t\t\tlocation.x=10;\n\t\t\t\t\tlocation.y=16;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Articuno_Cave:\n\t\t\t\tif (location.x == 10 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_ARRAYINDEXOUTOFBOUNDSEXCEPTION;\n\t\t\t\t\tlocation.x=24;\n\t\t\t\t\tlocation.y=14;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_9:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 18 || location.y == 19)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y+=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 89 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 14 || location.x == 15)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 5 && location.y == 55)\n\t\t\t\t{\n\t\t\t\t\thouseInt=13;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 19 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\thouseInt=14;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Recursive_Hot_Springs:\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 14 || location.x == 15)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_9;\n\t\t\t\t\t\tlocation.y=89;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 59 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 16 && location.x <= 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_10;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 9 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 50 || location.y == 51)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=2;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=46;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 14 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 50 || location.y == 51)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=2;\n\t\t\t\t\t\tlocation.x=9;\n\t\t\t\t\t\tlocation.y-=46;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 50 || location.y == 51)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=3;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=46;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 28 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 50 || location.y == 51)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=3;\n\t\t\t\t\t\tlocation.x=9;\n\t\t\t\t\t\tlocation.y-=46;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 24 && location.y == 35)\n\t\t\t\t{\n\t\t\t\t\thouseInt = 0;\n\t\t\t\t\tgenericTransfer(Area.Gym_6,9,19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\thouseInt=6;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\thouseInt=7;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 23 && location.y == 21)\n\t\t\t\t{\n\t\t\t\t\thouseInt=8;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_10:\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x >= 16 && location.x <= 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\tlocation.y=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 8 && location.y == 33)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Public_Cave;\n\t\t\t\t\tlocation.x=50;\n\t\t\t\t\tlocation.y=63;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_11:\n\t\t\t\tif (location.x == 69 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 6 && location.y <= 9)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_3;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=28;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 2 && location.y <= 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Enumville;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Enumville:\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 2 && location.y <= 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_11;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 18 || location.y == 19)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_12;\n\t\t\t\t\t\tlocation.y+=42;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 5 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\thouseInt=5;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 31 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\thouseInt=6;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 12 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 18 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_12:\n\t\t\t\tif (location.x == 49 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 60 || location.y == 61)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Enumville;\n\t\t\t\t\t\tlocation.y-=42;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 22 || location.x == 23)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Polymorph_Town;\n\t\t\t\t\t\tlocation.y=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 19 && location.y <= 30)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tif (VERSION.equalsIgnoreCase(\"Peaches\"))\n\t\t\t\t\t\tarea=Area.Peach_City;\n\t\t\t\t\t\telse\n\t\t\t\t\t\tarea=Area.Cream_City;\n\t\t\t\t\t\tlocation.y-=2;\n\t\t\t\t\t\tlocation.x=79;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t\tif (location.y == 35)\n\t\t\t\t\t{\n\t\t\t\t\t\tsurfing=false;\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Slipspace;\n\t\t\t\t\t\tlocation.y-=25;\n\t\t\t\t\t\tlocation.x=19;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 12 && location.y == 26)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Primal_Cave;\n\t\t\t\t\tlocation.x=10;\n\t\t\t\t\tlocation.y=16;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Primal_Cave:\n\t\t\t\tif (location.x == 10 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_12;\n\t\t\t\t\tlocation.x=12;\n\t\t\t\t\tlocation.y=27;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Polymorph_Town:\n\t\t\t\tif (location.y == 59 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 22 || location.x == 23)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_12;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 31 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 31 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\thouseInt=7;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 33 && location.y == 35)\n\t\t\t\t{\n\t\t\t\t\thouseInt=8;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 37)\n\t\t\t\t{\n\t\t\t\t\thouseInt=9;\n\t\t\t\t\tgenericTransfer(Area.Generic_2, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 22 && location.y == 13)\n\t\t\t\t{\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tgenericTransfer(Area.Gym_7, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 53)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Diglett_Cave;\n\t\t\t\t\tlocation.x=8;\n\t\t\t\t\tlocation.y=11;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Diglett_Cave:\n\t\t\t\tif (location.x == 8 && location.y == 12)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Polymorph_Town;\n\t\t\t\t\tlocation.x=27;\n\t\t\t\t\tlocation.y=54;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 20 && location.y == 49)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Route_13;\n\t\t\t\t\tlocation.x=18;\n\t\t\t\t\tlocation.y=8;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Binary_City:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_13;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 45 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 51 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 59 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.H_Border;\n\t\t\t\t\t\thouseInt=0;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=9;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 21 && location.y == 25)\n\t\t\t\t{\n\t\t\t\t\thouseInt=10;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 37 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=11;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 17 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\thouseInt=12;\n\t\t\t\t\tgenericTransfer(Area.Generic_3,2,7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 24 && location.y == 41)\n\t\t\t\t{\n\t\t\t\t\thouseInt=0;\n\t\t\t\t\tgenericTransfer(Area.Gym_8, 9, 19);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_13:\n\t\t\t\tif (location.x == 59 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 20 || location.y == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Binary_City;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 2 && location.y == 2 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tdirection=0;\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Intville;\n\t\t\t\t\tlocation.x=0;\n\t\t\t\t\tlocation.y=10;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 18 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Diglett_Cave;\n\t\t\t\t\tlocation.x=20;\n\t\t\t\t\tlocation.y=48;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_14:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 14 || location.y == 15)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\tlocation.y+=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 30 && location.y == 5)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Power_Plant,12,19);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Power_Plant:\n\t\t\t\tif (location.y == 19 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 12 || location.x == 13)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Route_7:\n\t\t\t\tif (location.x == 3 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 10 || location.y == 11)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Null_Zone;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 44 || location.y == 45)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Champions_Walk;\n\t\t\t\t\t\tlocation.x=99;\n\t\t\t\t\t\tlocation.y-=10;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 36 && location.y == 3)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Java_Cave;\n\t\t\t\t\tlocation.x=6;\n\t\t\t\t\tlocation.y=15;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 32 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 8 || location.y == 9)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Rocket_Right_Tower;\n\t\t\t\t\t\tlocation.x=18;\n\t\t\t\t\t\tlocation.y-=3;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 29 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Rocket_Right_Tower;\n\t\t\t\t\tlocation.x=9;\n\t\t\t\t\tlocation.y=14;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 18 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 18 || location.y == 19)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Rocket_Left_Tower;\n\t\t\t\t\t\tlocation.x=14;\n\t\t\t\t\t\tlocation.y-=11;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 21)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Rocket_Left_Tower;\n\t\t\t\t\tlocation.x=8;\n\t\t\t\t\tlocation.y=15;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 24 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Rocket_Central_Tower;\n\t\t\t\t\tlocation.x=12;\n\t\t\t\t\tlocation.y=20;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Rocket_Right_Tower:\n\t\t\t\tif (location.x == 18 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 5 || location.y == 6)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=32;\n\t\t\t\t\t\tlocation.y+=3;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 14 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 9 || location.x == 10)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=29;\n\t\t\t\t\t\tlocation.y=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 17 && location.y == 11)\n\t\t\t\t\tlocation.y+=19;\n\t\t\t\telse if (location.x == 17 && location.y == 30)\n\t\t\t\t\tlocation.y-=19;\n\t\t\t\telse if (location.x == 4 && location.y == 3)\n\t\t\t\t\tlocation.y+=19;\n\t\t\t\telse if (location.x == 4 && location.y == 22)\n\t\t\t\t\tlocation.y-=19;\n\t\t\t\tbreak;\n\t\t\tcase Rocket_Left_Tower:\n\t\t\t\tif (location.x == 14 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 7 || location.y == 8)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=18;\n\t\t\t\t\t\tlocation.y+=11;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 15 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 8 || location.x == 9)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=15;\n\t\t\t\t\t\tlocation.y=22;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 6 && location.y == 9)\n\t\t\t\t\tlocation.y+=20;\n\t\t\t\telse if (location.x == 6 && location.y == 29)\n\t\t\t\t\tlocation.y-=20;\n\n\t\t\t\tif (location.x == 3 && location.y == 14)\n\t\t\t\t\tlocation.y+=20;\n\t\t\t\telse if (location.x == 3 && location.y == 34)\n\t\t\t\t\tlocation.y-=20;\n\n\t\t\t\tif (location.x == 6 && location.y == 34)\n\t\t\t\t\tlocation.y+=19;\n\t\t\t\telse if (location.x == 6 && location.y == 53)\n\t\t\t\t\tlocation.y-=19;\n\n\t\t\t\tif (location.x == 13 && location.y == 34)\n\t\t\t\t\tlocation.y+=19;\n\t\t\t\telse if (location.x == 13 && location.y == 53)\n\t\t\t\t\tlocation.y-=19;\n\n\t\t\t\tbreak;\n\t\t\tcase Rocket_Central_Tower:\n\t\t\t\tif (location.x == 5 && location.y == 5)\n\t\t\t\t\tlocation.y+=22;\n\t\t\t\telse if (location.x == 5 && location.y == 27)\n\t\t\t\t\tlocation.y-=22;\n\t\t\t\tif (location.y == 20 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 12 || location.x == 13)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=24;\n\t\t\t\t\t\tlocation.y=20;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Null_Zone:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 12 || location.y == 13)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=3;\n\t\t\t\t\t\tlocation.y-=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 8 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Champions_Walk:\n\t\t\t\tif (location.x == 99 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 34 || location.y == 35)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_7;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tlocation.y+=10;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 12 || location.x == 13)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Victory_Road;\n\t\t\t\t\t\tlocation.x+=4;\n\t\t\t\t\t\tlocation.y=59;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 19)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Moltres_Cave;\n\t\t\t\t\tlocation.x=10;\n\t\t\t\t\tlocation.y=16;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 13)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 9 && location.y == 13)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 91 && location.y == 33)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\thouseInt=4;\n\t\t\t\t\tlocation.x=4;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.y == 29 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 91 || location.x == 92)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\thouseInt=4;\n\t\t\t\t\t\tlocation.x-=87;\n\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Moltres_Cave:\n\t\t\t\tif (location.x == 10 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Champions_Walk;\n\t\t\t\t\tlocation.x=50;\n\t\t\t\t\tlocation.y=20;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Victory_Road:\n\t\t\t\tif (location.y == 59 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 16 || location.x == 17)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Champions_Walk;\n\t\t\t\t\t\tlocation.x-=4;\n\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 33 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 15 || location.x == 16)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Victory_Road_Cave;\n\t\t\t\t\t\tlocation.x=35;\n\t\t\t\t\t\tlocation.y=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 16 && location.y == 47)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Victory_Road_Cave;\n\t\t\t\t\tlocation.x=15;\n\t\t\t\t\tlocation.y=82;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.y == 19 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 15 || location.x == 16)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Elite_4;\n\t\t\t\t\t\tlocation.x+=13;\n\t\t\t\t\t\tlocation.y=116;\n\t\t\t\t\t\thouseInt=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Elite_4:\n\t\t\t\tif (location.y == 116 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 28 || location.x == 29)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=Area.Victory_Road;\n\t\t\t\t\t\tlocation.x-=13;\n\t\t\t\t\t\tlocation.y=20;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 38 && location.y == 101)\n\t\t\t\t{\n\t\t\t\t\tlocation.x =29;\n\t\t\t\t\tlocation.y = 96;\n\t\t\t\t}\n\t\t\t\tif (location.x == 59 && location.y == 101)\n\t\t\t\t{\n\t\t\t\t\tlocation.x =58;\n\t\t\t\t\tlocation.y = 109;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 58 && location.y == 109)\n\t\t\t\t{\n\t\t\t\t\tlocation.x =59;\n\t\t\t\t\tlocation.y = 101;\n\t\t\t\t\tdirection=180;\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 || location.x == 28)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 77&&!trainer[0].hostile)\n\t\t\t\t\tlocation.y = 70;\n\t\t\t\t\tif (location.y == 51&&!trainer[1].hostile)\n\t\t\t\t\tlocation.y = 46;\n\t\t\t\t\tif (location.y == 26&&!trainer[2].hostile)\n\t\t\t\t\tlocation.y = 20;\n\t\t\t\t\tif (location.y == 3&&!trainer[3].hostile)\n\t\t\t\t\t{\n\t\t\t\t\t\tlocation.x += 22;\n\t\t\t\t\t\tlocation.y = 24;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 7 && direction == 90&&objectiveComplete[10])\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 49 || location.x == 50)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tif (VERSION.equalsIgnoreCase(\"Peaches\"))\n\t\t\t\t\t\tarea=Area.Peach_City;\n\t\t\t\t\t\telse\n\t\t\t\t\t\tarea=Area.Cream_City;\n\t\t\t\t\t\tlocation.x=49;\n\t\t\t\t\t\tlocation.y=30;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Peach_City:\n\t\t\tcase Cream_City:\n\t\t\t\tif (location.x == 79 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 17 && location.y <= 28)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_12;\n\t\t\t\t\t\tlocation.y+=2;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 49 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\tpokeCenterTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 55 && location.y == 29)\n\t\t\t\t{\n\t\t\t\t\tpokeMartTransfer();\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=12;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 27 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=13;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 39 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=14;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 51 && location.y == 39)\n\t\t\t\t{\n\t\t\t\t\thouseInt=15;\n\t\t\t\t\tgenericTransfer(Area.Generic_1, 2, 7);\n\t\t\t\t}\n\t\t\t\tif (location.x == 26 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_1, 7, 14);\n\t\t\t\t}\n\t\t\t\tif (location.x == 34 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_2, 12, 14);\n\t\t\t\t}\n\t\t\t\tif (location.x == 42 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_3, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 17)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_4, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 26 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_5, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 34 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_6, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 42 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_7, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.x == 50 && location.y == 11)\n\t\t\t\t{\n\t\t\t\t\thouseInt=1;\n\t\t\t\t\tgenericTransfer(Area.Gym_8, 9, 19);\n\t\t\t\t}\n\t\t\t\tif (location.y == 23 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 13 || location.x == 14)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericTransfer(Area.Battle_Tower,location.x-6,14);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Battle_Tower:\n\t\t\t\tif (location.y == 14 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 7 || location.x == 8)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Babbs_Lab:\n\t\t\t\tif (location.y == 12 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 4 || location.x == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea=Area.Stringville;\n\t\t\t\t\t\tlocation.x=32;\n\t\t\t\t\t\tlocation.y=10;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Generic_1:\n\t\t\t\tif (location.y == 7 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 2 || location.x == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\tarea=returnArea;\n\t\t\t\t\t\tlocation.x=returnPoint.x;\n\t\t\t\t\t\tlocation.y=returnPoint.y;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Gym_1:\n\t\t\t\tif (location.y == 14 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 7 || location.x == 8)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Gym_2:\n\t\t\t\tif (location.y == 14 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 12 || location.x == 13)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 5 && location.y == 7 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tlocation.x=19;\n\t\t\t\t\tlocation.y=5;\n\t\t\t\t\tdirection=180;\n\t\t\t\t}\n\t\t\t\tif (location.x == 19 && location.y == 5 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tlocation.x=5;\n\t\t\t\t\tlocation.y=7;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Intville:\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 10 || location.y == 11)\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection=0;\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_13;\n\t\t\t\t\t\tlocation.x=2;\n\t\t\t\t\t\tlocation.y=2;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 19 && location.y == 23)\n\t\t\t\t{\n\t\t\t\t\tgenericTransfer(Area.Generic_2,2,7);\n\t\t\t\t\thouseInt = 9001;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase H_Border:\n\t\t\t\tif (location.x == 9 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 4 || location.y == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tif (houseInt == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarea=Area.Route_1;\n\t\t\t\t\t\t\tlocation.x=4;\n\t\t\t\t\t\t\tlocation.y+=16;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\t\t\tlocation.x=42;\n\t\t\t\t\t\t\tlocation.y+=16;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\t\tlocation.x=14;\n\t\t\t\t\t\t\tlocation.y+=46;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\t\tlocation.x=28;\n\t\t\t\t\t\t\tlocation.y+=46;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && direction == 180)\n\t\t\t\t{\n\t\t\t\t\tif (location.y == 4 || location.y == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tif (houseInt == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarea=Area.Binary_City;\n\t\t\t\t\t\t\tlocation.x=59;\n\t\t\t\t\t\t\tlocation.y+=16;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Mount_Java;\n\t\t\t\t\t\t\tlocation.x=37;\n\t\t\t\t\t\t\tlocation.y+=16;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\t\tlocation.x=9;\n\t\t\t\t\t\t\tlocation.y+=46;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition = false;\n\t\t\t\t\t\t\tarea=Area.Recursive_Hot_Springs;\n\t\t\t\t\t\t\tlocation.x=23;\n\t\t\t\t\t\t\tlocation.y+=46;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase V_Border:\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 4 || location.x == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tif (houseInt == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Inventory.hasItem(new Item(Item.Type.BICYCLE,1)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\t\tarea=Area.Route_4;\n\t\t\t\t\t\t\t\tlocation.x+=14;\n\t\t\t\t\t\t\t\tlocation.y=73;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\t\tdirection=270;\n\t\t\t\t\t\t\t\tlocation.y++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\t\t\tlocation.x+=58;\n\t\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\t\tarea=Area.Hexadecimal_Forest;\n\t\t\t\t\t\t\tlocation.x+=12;\n\t\t\t\t\t\t\tlocation.y=39;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\t\tlocation.x+=21;\n\t\t\t\t\t\t\tlocation.y=15;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 4)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Champions_Walk;\n\t\t\t\t\t\t\tlocation.x+=87;\n\t\t\t\t\t\t\tlocation.y=29;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 7 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 4 || location.x == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tif (houseInt == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Route_4;\n\t\t\t\t\t\t\tlocation.x=18;\n\t\t\t\t\t\t\tlocation.y=78;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Route_5;\n\t\t\t\t\t\t\tlocation.x=62;\n\t\t\t\t\t\t\tlocation.y=6;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Route_2;\n\t\t\t\t\t\t\tlocation.x=25;\n\t\t\t\t\t\t\tlocation.y=30;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\t\tarea=Area.Hexadecimal_Forest;\n\t\t\t\t\t\t\tlocation.x+=16;\n\t\t\t\t\t\t\tlocation.y=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (houseInt == 4)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\t\tarea=Area.Champions_Walk;\n\t\t\t\t\t\t\tlocation.x=91;\n\t\t\t\t\t\t\tlocation.y=34;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Slipspace:\n\t\t\t\tif (location.x == 19 && direction == 0)\n\t\t\t\t{\n\t\t\t\t\tif (location.y >= 6 && location.y <= 10)\n\t\t\t\t\t{\n\t\t\t\t\t\tsurfing=true;\n\t\t\t\t\t\ttransition=true;\n\t\t\t\t\t\tarea=Area.Route_12;\n\t\t\t\t\t\tlocation.y+=25;\n\t\t\t\t\t\tlocation.x=0;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Hexadecimal_Forest:\n\t\t\t\tif (location.y == 39 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 16 || location.x == 17)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\thouseInt=2;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\tlocation.y=1;\n\t\t\t\t\t\tlocation.x-=12;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.y == 0 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 20 || location.x == 21)\n\t\t\t\t\t{\n\t\t\t\t\t\ttransition=false;\n\t\t\t\t\t\thouseInt=3;\n\t\t\t\t\t\tarea=Area.V_Border;\n\t\t\t\t\t\tlocation.y=7;\n\t\t\t\t\t\tlocation.x-=16;\n\t\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Generic_2:\n\t\t\tcase Generic_3:\n\t\t\t\tif (location.y == 7 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 2 || location.x == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Gym_8:\n\t\t\t\tif (location.x == 13 && location.y == 18)\n\t\t\t\t\tlocation.x--;\n\t\t\tcase Gym_7:\n\t\t\tcase Gym_3:\n\t\t\tcase Gym_4:\n\t\t\tcase Gym_5:\n\t\t\tcase Gym_6:\n\t\t\t\tif (location.y == 19 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 9 || location.x == 10)\n\t\t\t\t\tgenericReturn();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase J_Inc_Radio_Tower:\n\t\t\t\tif (location.y == 9 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 4 || location.x == 5)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase J_Inc_Building:\n\t\t\t\tif (location.y == 14 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 9 || location.x == 10)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 5 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tdirection = 270;\n\t\t\t\t\tlocation.y = 22;\n\t\t\t\t}\n\t\t\t\tif (location.x == 13 && location.y == 21 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tdirection = 270;\n\t\t\t\t\tlocation.y = 6;\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 21 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tdirection = 270;\n\t\t\t\t\tlocation.y = 38;\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 37 && direction == 90)\n\t\t\t\t{\n\t\t\t\t\tdirection = 270;\n\t\t\t\t\tlocation.y = 22;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Victory_Road_Cave:\n\t\t\t\tif (location.x == 89 && location.y == 59)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Mountain_Dew_Paradise;\n\t\t\t\t\tlocation.x=0;\n\t\t\t\t\tlocation.y=9;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 15 && location.y == 83)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Victory_Road;\n\t\t\t\t\tlocation.x=16;\n\t\t\t\t\tlocation.y=48;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tif (location.x == 35 && location.y == 15)\n\t\t\t\t{\n\t\t\t\t\ttransition=false;\n\t\t\t\t\tarea=Area.Victory_Road;\n\t\t\t\t\tlocation.x=15;\n\t\t\t\t\tlocation.y=33;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Mountain_Dew_Paradise:\n\t\t\t\tif (location.x == 0 && location.y == 9)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Victory_Road_Cave;\n\t\t\t\t\tlocation.x=89;\n\t\t\t\t\tlocation.y=59;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Generic_4:\n\t\t\t\tif (location.y == 7 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 2 || location.x == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 7 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\tarea=Area.Generic_5;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\tdirection = 180;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Generic_5:\n\t\t\t\tif (location.x == 7 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\tarea=Area.Generic_4;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\tdirection = 180;\n\t\t\t\t}\n\t\t\t\tif (location.x == 0 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\tarea=Area.Generic_6;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\tdirection = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Generic_6:\n\t\t\t\tif (location.x == 0 && location.y == 7)\n\t\t\t\t{\n\t\t\t\t\tarea=Area.Generic_5;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t\tdirection = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Lighthouse:\n\t\t\t\tif (location.y == 11 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 5 || location.x == 6)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcase Lighthouse_F2:\n\t\t\t\tif (location.x == 10 && location.y == 2)\n\t\t\t\t{\n\t\t\t\t\tif (area == Area.Lighthouse)\n\t\t\t\t\t\tarea = Area.Lighthouse_F2;\n\t\t\t\t\telse\n\t\t\t\t\t\tarea = Area.Lighthouse;\n\n\t\t\t\t\tdirection = 180;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MegaMart:\n\t\t\t\tif (location.y == 13 && direction == 270)\n\t\t\t\t{\n\t\t\t\t\tif (location.x == 11 || location.x == 12)\n\t\t\t\t\t{\n\t\t\t\t\t\tgenericReturn();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (location.x == 18 && location.y == 4)\n\t\t\t\t{\n\t\t\t\t\tlocation.y+=17;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 18 && location.y == 20)\n\t\t\t\t{\n\t\t\t\t\tlocation.y-=15;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 16 && location.y == 20)\n\t\t\t\t{\n\t\t\t\t\tlocation.y+=18;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 16 && location.y == 37)\n\t\t\t\t{\n\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 18 && location.y == 37)\n\t\t\t\t{\n\t\t\t\t\tlocation.y+=18;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\telse if (location.x == 18 && location.y == 54)\n\t\t\t\t{\n\t\t\t\t\tlocation.y-=16;\n\t\t\t\t\tdirection=270;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Challenge_Cave:\n\t\t\t\tif (location.x == 112 && location.y == 111)\n\t\t\t\t{\n\t\t\t\t\tlocation.x=101;\n\t\t\t\t\tlocation.y=112;\n\t\t\t\t}\n\t\t\t\telse if(location.x == 101 && location.y == 112)\n\t\t\t\t{\n\t\t\t\t\tlocation.x=112;\n\t\t\t\t\tlocation.y=111;\n\t\t\t\t}\n\t\t\t\tif (location.x == 112 && location.y == 116)\n\t\t\t\t{\n\t\t\t\t\ttransition=true;\n\t\t\t\t\tarea=Area.Args_Harbor;\n\t\t\t\t\tlocation.x=50;\n\t\t\t\t\tlocation.y=58;\n\t\t\t\t\tcreateCurrentArea();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\t}",
"public void addSegment(Vector start, Vector end) {\n ArrayList<Vector> injectTemp = new ArrayList<>();\n injectPoints(start, end, injectTemp);\n //ArrayList<Vector> smoothTemp = smooth(injectTemp, a, b, tolerance);\n //System.out.println(smoothTemp.size());\n for (int i = 0; i < injectTemp.size(); i++) {\n robotPath.add(injectTemp.get(i));\n }\n endVector = end;\n }",
"protected abstract void setBoundaries();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 authAccountFlags = 16; | int getAuthAccountFlags(); | [
"boolean hasAuthAccountFlags();",
"public int getAuthAccountFlags() {\n return authAccountFlags_;\n }",
"public int getAuthAccountFlags() {\n return authAccountFlags_;\n }",
"String getAuthflag();",
"public boolean hasAccountAuthId() {\n return fieldSetFlags()[3];\n }",
"com.tshang.peipei.protocol.protobuf.ByteString getAuth();",
"public SM_ACCOUNT_AUTH(int accountId, int loginOk, int playOk1, int playOk2) {\n super(0x01);\n this.accountId = accountId;\n this.loginOk = loginOk;\n this.playOk1 = playOk1;\n this.playOk2 = playOk2;\n }",
"int getUnionidAccountid();",
"public LongAttribute getAuthPinFlags() {\n\t\treturn authPinFlags_;\n\t}",
"public boolean hasAccountID() {\n return fieldSetFlags()[2];\n }",
"public interface PU_SNMPV3_AUTH_PROTOCOL {\n public static final int PU_SNMPV3_AUTH_MD5 = 0;\n public static final int PU_SNMPV3_AUTH_SHA = 1;\n public static final int PU_SNMPV3_AUTH_NONE = 2;\n public static final int PU_SNMPV3_AUTH_MAX = 3;\n }",
"net.nyhm.protonet.example.proto.AccountProto.Account getAccount();",
"public BpmAuthDef() {\n\t\tsuper();\n\t}",
"public boolean hasAccountID() {\n return fieldSetFlags()[6];\n }",
"public boolean hasAccountPassword() {\n return fieldSetFlags()[4];\n }",
"private IAAccountAuthREQ(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private CIAccountAuthREQ(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public int getSecretSizeInBits();",
"Pokemon.RequestEnvelop.AuthInfo getAuth();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a data slice for product equality test of products of different types. | public ProductEqualsData getProductEqualsData() {
final String name = getName();
final MonetaryAmount price = getPrice();
return new ProductEqualsData(name, price);
} | [
"@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }",
"@Test\n public void testGetAllProduct() throws Exception {\n System.out.println(\"getAllProduct\");\n prs = dao.getAllProduct();\n \n assertArrayEquals(products.toArray(), prs.toArray());\n }",
"@Test\n public void testCopyCollection2Array() {\n System.out.println(\"copyCollection2Array\");\n FlatDataCollection flatDataCollection = new FlatDataCollection(Arrays.asList(new Object[]{1,2,3,4,5}));\n Object[] expResult = new Object[]{1,2,3,4,5};\n Object[] result = Dataset.<Object>copyCollection2Array(Object.class, flatDataCollection);\n assertArrayEquals(expResult, result);\n }",
"@Test\n public void testGetProductsByPurcher() throws Exception {\n System.out.println(\"getProductsByPurcher\");\n Customer c = new Customer();\n c.setId(1l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p3));\n assertTrue(prs.size() == 1);\n c.setId(2l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n \n c.setId(3l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.isEmpty());\n }",
"TradingProduct[] getProducts(boolean enabledOnly);",
"abstract public DataSet<Type> shallowClone();",
"@DataProvider(name = \"exploretestdata\")\n\t\tpublic Object[][] getDataSecond() {\n\t\t\tProviderData provideData = new ProviderData(FileConstant.exploretestdata);\n\t\t\tObject[][] getData = provideData.provideData();\n\t\t\treturn getData;\n\t\t}",
"public void testAttQueryComplex() {\r\n\r\n\ttry {\r\n\r\n\t ProductPool pool1 = getPool();\r\n\t ProductStorage storage = new ProductStorage();\r\n\t storage.register(pool1);\r\n\r\n\t {\r\n\t\tProduct p1 = new Product(\"QueryAttP1\");\r\n\t\tp1.setInstrument(\"PACS\");\r\n\t\tp1.setModelName(\"mod1\");\r\n\t\tp1.setCreator(\"me\");\r\n\t\tp1.setType(\"TestType\");\r\n\t\tstorage.save(p1);\r\n\r\n\t\tProduct p2 = new Product(\"QueryAttP2\");\r\n\t\tp2.setInstrument(\"HIFI\");\r\n\t\tp2.setModelName(\"mod2\");\r\n\t\tp2.setCreator(\"me\");\r\n\t\tp2.setType(\"TestType\");\r\n\t\tstorage.save(p2);\r\n\r\n\t\tProduct p3 = new Product(\"QueryAttP3\");\r\n\t\tp3.setInstrument(\"SPIRE\");\r\n\t\tp3.setModelName(\"mod3\");\r\n\t\tp3.setCreator(\"me\");\r\n\t\tp3.setType(\"TestType\");\r\n\t\tstorage.save(p3);\r\n\t }\r\n\r\n\t {\r\n\t\t// Test for Attribute query that should return several products\r\n\t\tAttribQuery aq = new AttribQuery(Product.class, \"p\", \"p.creator == 'me'\");\r\n\r\n\t\tSet<ProductRef> results = null;\r\n\t\tresults = storage.select(aq);\r\n\t\tfor (ProductRef ref : results) {\r\n\t\t Product product;\r\n\t\t product = ref.getProduct();\r\n\t\t assertTrue(\"me\".equals(product.getCreator()));\r\n\t\t}\r\n\t }\r\n\r\n\t {\r\n\t\t// Test for attributes returning multiple products\r\n\t\tAttribQuery aq1 = new AttribQuery(Product.class, \"p\", \"p.modelName == 'mod1'\");\r\n\r\n\t\tSet<ProductRef> results = null;\r\n\t\tresults = storage.select(aq1);\r\n\t\tassertTrue(results.size() == 1);\r\n\r\n\t\tfor (ProductRef ref : results) {\r\n\t\t Product product;\r\n\t\t product = ref.getProduct();\r\n\t\t assertTrue(\"QueryAttP1\".equals(product.getDescription()));\r\n\t\t}\r\n\t }\r\n\r\n\t} catch (IOException e) {\r\n\t fail(\"Unexpected IOException found. Details:\" + e);\r\n\t} catch (GeneralSecurityException e) {\r\n\t fail(\"Unexpected GeneralSecurityException found. Details:\" + e);\r\n\t}\r\n\r\n }",
"public void testGetSubsetintArray() {\n\t\tMutableTable mtFull = (MutableTable) getFullTable();\n\t\tMutableTable mtEmpty = (MutableTable) getEmptyTable();\n\t\tint[] subset = { 1, 3 };\n\t\tTable tbl = mtFull.getSubset(subset);\n\t\tfor (int i = 0; i < subset.length; i++)\n\t\t\tfor (int j = 0; j < tbl.getNumColumns(); j++)\n\t\t\t\tassertEquals(\n\t\t\t\t\tmtFull.getString(subset[i], j),\n\t\t\t\t\ttbl.getString(i, j));\n\t}",
"@Test\n\tpublic void test() {\n\t\tList<Integer[]> result = subGen.subset(9);\n\t\tassertEquals(10, result.size());\n\t\tInteger[] temp = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };\n\t\tassertEquals(Arrays.toString(temp), Arrays.toString(result.get(0)));\n\n\t\tSet<Integer[]> testSet = new HashSet<Integer[]>();\n\t\tfor (int i = 0, len = result.size(); i < len; i++) {\n\t\t\ttestSet.add(result.get(i));\n\t\t}\n\t\tassertEquals(10, testSet.size());\n\n\t\tList<Integer[]> result2 = subGen.subset(3);\n\t\tassertEquals(120, result2.size());\n\n\t}",
"@Test\n public void sharedFilterEnsuresUniqueResults() {\n Filter filter = new Filter(\"test-filter\");\n final Dataset dataset1 = new Dataset(\"TEST1\", \"sql\", filter);\n final Dataset dataset2 = new Dataset(\"TEST2\", \"sql2\", filter); // shared same filter\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"001\");\n entry1.add(\"aaa\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"002\");\n entry2.add(\"bbb\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"003\");\n entry3.add(\"ccc\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"004\");\n entry4.add(\"ddd\");\n\n List<List<String>> queryResults1 = new ArrayList<>();\n queryResults1.add(entry1);\n queryResults1.add(entry2);\n queryResults1.add(entry3);\n queryResults1.add(entry4);\n\n List<String> entry5 = new ArrayList<>();\n entry5.add(\"005\"); // different\n entry5.add(\"eee\");\n\n List<String> entry6 = new ArrayList<>();\n entry6.add(\"002\"); // same\n entry6.add(\"bbb\");\n\n List<String> entry7 = new ArrayList<>();\n entry7.add(\"007\"); // different\n entry7.add(\"fff\");\n\n List<String> entry8 = new ArrayList<>();\n entry8.add(\"004\"); // same\n entry8.add(\"ddd\");\n\n List<List<String>> queryResults2 = new ArrayList<>();\n queryResults2.add(entry5);\n queryResults2.add(entry6);\n queryResults2.add(entry7);\n queryResults2.add(entry8);\n\n // given\n dataset1.populateCache(queryResults1, 200L);\n dataset2.populateCache(queryResults2, 300L);\n\n // when\n final List<String> result1 = dataset1.getCachedResult();\n final List<String> result2 = dataset1.getCachedResult();\n final List<String> result3 = dataset1.getCachedResult();\n final List<String> result4 = dataset1.getCachedResult();\n final List<String> result5 = dataset2.getCachedResult();\n final List<String> result6 = dataset2.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1); // first datset is as-is\n assertEquals(\"Wrong result 2\", entry2, result2); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry3, result3); // first datset is as-is\n assertEquals(\"Wrong result 4\", entry4, result4); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry5, result5); // second datset, not filtered out\n assertEquals(\"Wrong result 3\", entry7, result6); // second dataset, entry6 is filtered out\n\n // and\n try {\n dataset1.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n try {\n // entry7 should be filtered out, resulting in no more data\n dataset2.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST2\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset1.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(200L), dataset1.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset1.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset1.getMetrics().getFilteredOut());\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset2.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(300L), dataset2.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(3), dataset2.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(2), dataset2.getMetrics().getFilteredOut());\n }",
"private Set<Product> getProductSet(Product product) {\n\t\treturn get(product.getType(), product.getState(), product.getItemId());\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Test\n\tpublic void testDualIndexingWithOrSplit() {\n PersistenceManager pm = TestTools.openPM();\n pm.currentTransaction().begin();\n\n Query q = pm.newQuery(\"SELECT FROM \" + TestClass.class.getName());\n assertEquals(pm, q.getPersistenceManager());\n assertFalse(q.isUnmodifiable());\n\n Collection<TestClass> r;\n \n // OR\n q.setFilter(\"_int < 12345 && (_short == 32000 || _string == 'xyz') && _int >= 123\");\n r = (Collection<TestClass>) q.execute();\n int n = 0;\n for (TestClass tc: r) {\n assertTrue(\"int=\" + tc.getInt(), tc.getInt() >= 123);\n assertTrue(tc.getInt() >= 123);\n n++;\n }\n assertEquals(2, n);\n\n TestTools.closePM(pm);\n\t}",
"public SgfensPedidoProducto[] findWherePrecioUnitarioEquals(double precioUnitario) throws SgfensPedidoProductoDaoException;",
"private Set<Product> getProductSet(ProductType type, ProductState state, int itemId) {\n\t\tif (typeMap.get(type).get(state).containsKey(itemId)) {\n\t\t\treturn typeMap.get(type).get(state).get(itemId);\n\t\t} else {\n\t\t\tif (state == ProductState.PENDING) {\n\t\t\t\tswitch (type) {\n\t\t\t\tcase BUY:\n\t\t\t\t\treturn new TreeSet<>(buyComparator);\n\t\t\t\tcase SELL:\n\t\t\t\t\treturn new TreeSet<>(sellComparator);\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new TreeSet<>();\n\t\t\t}\n\t\t}\n\t}",
"@DataProvider(name = \"DoubleStreamTestData\")\n public static Object[][] makeDoubleStreamTestData() {\n return testData;\n }",
"@DataProvider\r\n\tpublic Object[][] getData(){\n\t\tObject[][] data = new Object[3][2];\r\n\t\t//1st set\r\n\t\tdata[0][0]=\"uname1\";\r\n\t\tdata[0][1]=\"pwd1\";\r\n\t\t\r\n\t\t//2nd set\r\n\t\tdata[1][0]=\"uname2\";\r\n\t\tdata[1][1]=\"pwd2\";\r\n\t\t\r\n\t\t//3rd set\r\n\t\tdata[2][0]=\"uname3\";\r\n\t\tdata[2][1]=\"pwd3\";\r\n\t\treturn data;\r\n\t}",
"public Items[] findWhereTypeEquals(String type) throws ItemsDaoException;",
"hipstershop.Demo.Product getProducts(int index);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize a MethodDefinition object with all values. | public MethodDefinition(String name, String label, List parameterDefinitions) {
m_name = name;
m_label = label;
m_parameterDefinitions = parameterDefinitions;
} | [
"MMethodDefinition createMMethodDefinition();",
"public MethodInfoImpl() {\n }",
"public MethodParser()\n {\n /* Codes_SRS_METHODPARSER_21_029: [The constructor shall create an instance of the MethodParser.] */\n /* Codes_SRS_METHODPARSER_21_030: [The constructor shall initialize all data in the collection as null.] */\n this.name = null;\n this.responseTimeout = null;\n this.connectTimeout = null;\n this.status = null;\n this.payload = null;\n\n /* Codes_SRS_METHODPARSER_21_022: [The constructor shall initialize the method operation as `none`.] */\n this.operation = Operation.none;\n }",
"void initialize(HxMethod method);",
"public ServiceMethodDefinition(String action) {\n this(action, Collections.emptyMap(), false);\n }",
"private Section createMethodDefinitionSection() {\n String[][] questions = {\n {\"31\", \"15\", \"Method scope is correctly defined...\"},\n {\"32\", \"15\", \"All exceptions are properly handled and thrown...\"},\n {\"33\", \"14\", \"Modifiers are properly used where applicable...\"},\n {\"34\", \"14\", \"Return types are appropriately defined...\"},\n {\"35\", \"14\", \"Method arguments are appropriately defined...\"},\n {\"36\", \"14\", \"The required API as stated in the requirements...\"},\n {\"37\", \"14\", \"Method details (scope, type, name, description)...\"}\n };\n\n Section result = new Section();\n result.setId(3);\n result.setWeight(15);\n result.setName(\"Method Definition\");\n\n createAndAddQuestions(questions, result);\n\n return result;\n }",
"protected void initializeMethod() throws DescriptorException {\n Class tempClass;\n if (this.getFactory() == null) {\n tempClass = this.getDescriptor().getJavaClass();\n } else {\n tempClass = this.getFactory().getClass();\n }\n this.setMethod(this.buildMethod(tempClass, this.getMethodName(), new Class[0]));\n }",
"abstract protected Set<Method> createMethods();",
"public MethodDefinition getMethodDefinition() {\n return methodDefinition;\n }",
"public AddOnMethodInfo() {\r\n\r\n\t}",
"public MethodSection createMethod() {\n MethodSection ms = newMethodSection();\n this.methods.add( ms );\n return ms;\n }",
"H create(Method method);",
"private void initTypeDef()\n {\n mCounters.push(new MethodCounter());\n }",
"public Method(String name, String descriptor) {\n this(name, descriptor, 0, false, false);\n }",
"MethodStart createMethodStart();",
"public static ServerMethodDefinition create(MethodDescriptor method, ServerCallHandler handler) {\n return new ServerMethodDefinition(method, handler);\n }",
"public MethodExpressionValidator()\n {\n }",
"public synchronized void initialize() {\n reset();\n \n UsageExpressionExtractor usageExpressionExtractor = new UsageExpressionExtractor(usageExpression);\n mandatoryUsageTokens = getUsageTokens(usageExpressionExtractor.getMandatoryExpression());\n optionalUsageTokens = getUsageTokens(usageExpressionExtractor.getOptionalExpression());\n updateSetterMethodMap(dataClass);\n }",
"Method createMethod();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test to inject instance to JAXRS resource directly from ExoContainer. | @Test
public void testInjectInstance2() throws Exception {
resources.addResource(Resource3.class, null);
Assert.assertEquals(204, launcher.service("GET", "/WebAppInjectTest.Resource3", "", null, null, null).getStatus());
resources.removeResource(Resource3.class);
} | [
"public void testInjectInstance2() throws Exception {\n resources.addResource(Resource3.class, null);\n assertEquals(204, launcher.service(\"GET\", \"/WebAppInjectTest.Resource3\", \"\", null, null, null).getStatus());\n resources.removeResource(Resource3.class);\n }",
"@Override\n public void init() throws ServletException {\n application = new JaxRsApplication(localComponents, globalComponents,\n localClassesProviders, globalClassesProviders);\n servletContainer = new ServletContainer(ResourceConfig.forApplication(application));\n servletContainer.init(getServletConfig());\n }",
"Finder inject(Class<? extends ServerResource> cls, Class<? extends Annotation> qualifier);",
"Finder inject(Class<? extends ServerResource> cls);",
"@Test\n public void testInjectProvider2() throws Exception {\n resources.addResource(Resource4.class, null);\n Assert.assertEquals(204, launcher.service(\"GET\", \"/WebAppInjectTest.Resource4\", \"\", null, null, null).getStatus());\n resources.removeResource(Resource4.class);\n }",
"ResourceAPI createResourceAPI();",
"public void testInjectProvider2() throws Exception {\n resources.addResource(Resource4.class, null);\n assertEquals(204, launcher.service(\"GET\", \"/WebAppInjectTest.Resource4\", \"\", null, null, null).getStatus());\n resources.removeResource(Resource4.class);\n }",
"public JerseyWrapper() {\n super(prc);\n }",
"@Before\n public void registerIdlingResource() {\n IdlingRegistry.getInstance().register(EspressoIdlingResource.getIdlingResource());\n }",
"public interface NexusRestApi\n extends Resource\n{\n GlobalSettingsService getGlobalSettingsService();\n\n RepositoriesService getRepositoriesService();\n\n ArtifactService getArtifactService();\n\n FeedsService getFeedsService();\n}",
"public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}",
"@Test\n void takingResourceTest() {\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n assertEquals(Resource.SHIELD,container.takeResource());\n }",
"public ExchangeAPIResource() {\n }",
"private void registerResource(){\n\t}",
"@Inject\n public void setExampleObject(ExampleObject object) {\n }",
"@Test\n public void testAddOneResource() {\n }",
"void bind(ResourceService service);",
"@Override\n public void init() {\n DefaultResourceMapping resourceMapping = new DefaultResourceMapping();\n resourceMapping.setAlias( \"/\" + this.getName() + \"/\" + this.getVersion() );\n resourceMapping.setPath( this.getResourceRootPath() );\n\n this.serviceReference = this.bundleContext.registerService( ResourceMapping.class.getName(), resourceMapping, null );\n }",
"ObjectResource createObjectResource();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column movement.idContributor | public void setIdContributor(Integer idContributor) {
this.idContributor = idContributor;
} | [
"public Integer getIdContributor() {\n return idContributor;\n }",
"public void setContributorID(Integer contributorID) {\n\t\t\n\t\tthis.contributorID = contributorID;\n\t}",
"public Integer getContributorID() {\n\t\t\n\t\treturn contributorID;\n\t}",
"void addContributor(Long userId, Long contributorId);",
"Builder addContributor(String value);",
"public Contributor findByContributorid(Integer contributorid);",
"Builder addContributor(Person value);",
"public void save(String mailContributor) throws ClassNotFoundException, SQLException {\r\n\t\ttry {\t\t\r\n\t\t\tStatement st =null;\r\n\t\t\t// Etape 3 : Création d'un statement\r\n\t\t\tst = this.cn.createStatement();\r\n\r\n\t\t\tString sql = \"INSERT INTO Contributor (`mailContributor`) VALUES ('\"+ mailContributor +\"')\";\r\n\t\t\tString sql2 = \"SELECT idContributor FROM LotuZ.Contributor Where mailContributor='\"+ mailContributor +\"'\";\r\n\r\n\t\t\t// Etape 4 : exécution requête\r\n\t\t\tst.executeUpdate(sql);\r\n\t\t\tResultSet result = st.executeQuery(sql2);\r\n\t\t\t\r\n\t\t\tint idContrib = 0;\r\n\t\t\twhile (result.next())\r\n\t\t\t{\r\n\t\t\t\tidContrib = result.getInt(\"idContributor\");\r\n\t\t\t}\r\n\r\n\t\t\tString sql3 = \"UPDATE User SET idContributor = ('\"+ idContrib +\"') Where mail='\"+ mailContributor +\"'\";\r\n\t\t\tst.executeUpdate(sql3);\r\n\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"void addContributor(Person contributor);",
"Builder addContributor(Organization value);",
"public void setContributors(List contributors) {\n _contributors = contributors;\n }",
"public void reattachContributor(Long contrId, Long oldNodeId, Long newNodeId);",
"public void setContributors(List<String> contributors) {\n this.contributors = contributors;\n }",
"@OneToMany (cascade = CascadeType.ALL, orphanRemoval = true)\r\n @JoinColumn (name=\"OWNER_ID\", referencedColumnName = \"CODE_ID\")\r\n @Valid\r\n @OrderColumn(name=\"ordinal_position\")\r\n public List<Contributor> getContributors() {\r\n return this.contributors;\r\n }",
"Entry addContributor(Person person);",
"public interface Contributor {\n\t\t/**\n\t\t * Gets the type attribute of the Contributor object\n\t\t *\n\t\t * @return The type value\n\t\t */\n\t\tpublic String getType();\n\t}",
"@Override\n public Genre updateGenre(int genreId, String genre) throws DALException\n {\n try (Connection con = dbc.getConnection())\n {\n String sql = \"UPDATE Genre SET genre=? WHERE genreId=?;\";\n\n PreparedStatement statement = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\n statement.setString(1, genre);\n statement.setInt(2, genreId);\n\n if (statement.executeUpdate() == 1)\n {\n Genre newGenre = new Genre(genreId, genre);\n newGenre.setCreatedBy(this.getClass().getName());\n return newGenre;\n }\n else\n {\n throw new DALException(\"Could not update genre: \" + genreId);\n }\n }\n catch (SQLException ex)\n {\n throw new DALException(ex.getMessage(), ex.getCause());\n }\n }",
"void setContributors(List<Person> contributors);",
"void setBorrowerId(int borrowerId){\n currentBorrowerId = borrowerId ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate rank of NoteItem. Rank is the absolute value of the triageStatus rank. If triageStatus rank is not present, then it is the value in milliseconds of the start time of the event. If the note is not an event then it is the last modified date. | private long getRank(NoteItem note) {
// Use triageStatusRank * 1000 to normalize to
// unix timestamp in milliseconds.
if(note.getTriageStatus()!=null && note.getTriageStatus().getRank()!=null) {
return note.getTriageStatus().getRank().scaleByPowerOfTen(3).longValue();
}
// otherwise use startDate * -1
BaseEventStamp eventStamp = StampUtils.getBaseEventStamp(note);
if(eventStamp!=null) {
return eventStamp.getStartDate().getTime()*-1;
}
// or occurrence date * -1
if(note instanceof NoteOccurrence) {
return ((NoteOccurrence) note).getOccurrenceDate().getTime()*-1;
}
// use modified date * -1 as a last resort
return note.getModifiedDate()*-1;
} | [
"public Integer getRank() {\n return rank;\n }",
"public java.lang.Integer getRank() {\n return rank;\n }",
"public Integer getRankNumber() {\n return rankNumber;\n }",
"public int rank() {\n return rank;\n }",
"public int getRank() {\n int rank = pref.getInt(KEY_RANK, 0);\n return rank;\n }",
"float getCalculatedRank() {\n float rank = 0.0f;\n\n rank += batteryIsCharging ? EfficientWiFiP2pGroupsActivity.mRankAlpha : 0.0f;\n rank += ((batteryLevel + 0.0001f) / 100.0f) * EfficientWiFiP2pGroupsActivity.mRankBeta;\n rank += ((batteryCapacity + 0.0001f) /\n EfficientWiFiP2pGroupsActivity.mRankMaxCapacity) *\n EfficientWiFiP2pGroupsActivity.mRankGamma;\n rank += new Random().nextFloat() * 0.0001f;\n\n Log.d(EfficientWiFiP2pGroupsActivity.TAG, \"getCalculatedRank: \" + rank);\n return rank;\n }",
"long getRank();",
"long getToRank();",
"public Rank getRank() {\n return this.rank;\n }",
"public int getIdentifiableRank(Identifiable identifiable) {\n\t\tString key = identifiable.getURI().lastSegment();\n\t\tif(rankCache.containsKey(key)) \n\t\t\treturn rankCache.get(key);\n\t\t\n\t\tActivator.logError(\"Unable to find server rank for node \"+key+\". Assigning to first server\", new Exception());\n\t\treturn 0;\n\t\t// Random\n//\t\tint hash = identifiable.getURI().toString().hashCode();\n//\t\thash = Math.abs(hash);\n//\t\tint node = hash % getNumNodes();\n//\t\treturn node;\n\n\t\t// USA Mexico\n//\t\tif((identifiable.getURI().lastSegment().startsWith(\"MX\") || identifiable.getURI().lastSegment().startsWith(\"MEX\"))) return 1; \n//\t\treturn 0; // everything else is on the first node.\n\t}",
"public Rank getRank(GeneAutoCompleteItem item) {\n int propIndex = getIndex(item.getProperty());\n int propCount = propertiesOrder.size();\n double offset = 1.0 * (propCount - propIndex) / propCount;\n\n if (item.hasSpecies() && !speciesOrder.isEmpty()) {\n String species = item.getSpecies();\n String speciesSearchKey = species.split(\" \")[0].toLowerCase();\n int pos = speciesOrder.indexOf(speciesSearchKey);\n if (pos >= 0) {\n int size = speciesOrder.size();\n return new Rank(offset + 1.0 * (size - pos) / size / propCount);\n }\n }\n return new Rank(offset);\n }",
"public Integer getReviewerRank() {\n\t return this.reviewerRank;\n\t}",
"public Rank getRank();",
"interface Rankable {\n /**\n * Returns the Rank of this object, using some algorithm and potentially\n * the internal state of the Rankable.\n */\n long getRank();\n}",
"public double calculateRank() {\n double waitTime = getWaitTime();\n\n if (level == ClassLevel.Priority) {\n return Math.max(3, waitTime * Math.log(waitTime));\n }\n else if (level == ClassLevel.VIP) {\n return Math.max(4, 2 * waitTime * Math.log(waitTime));\n }\n else {\n return waitTime;\n }\n }",
"public native static String rank(GameObject oper1);",
"public LSPRanking getRanking () {\r\n return ranking;\r\n }",
"public Integer getuRank() {\n return uRank;\n }",
"public java.lang.Integer getRawRank() {\n return rawRank;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_fs_insurance.ins_id | public Integer getInsId() {
return insId;
} | [
"public void setInsId(Integer insId) {\n this.insId = insId;\n }",
"public String getAuditInsId() {\n return auditInsId;\n }",
"public Insurance getInsurance(Integer insuranceId) throws DAOException;",
"public Integer getInsnodeid() {\n return insnodeid;\n }",
"public String getInsureId() {\r\n return insureId;\r\n }",
"public String getInsUserid() {\n return insUserid;\n }",
"public int getIncome_id() {\n\t\treturn income_id;\n\t}",
"public Integer getInboundIid() {\n return inboundIid;\n }",
"public String getInoId();",
"public Integer getInspartid() {\n return inspartid;\n }",
"public java.lang.Integer getIndId() { \n return this.indId; \n }",
"public String getActualInIdentifier() {\r\n\t\treturn inIdentifier;\r\n\t}",
"public Integer getInStockDetailId() {\n return inStockDetailId;\n }",
"public Integer getInsType() {\n return insType;\n }",
"public BigDecimal getIncomeId() {\n return (BigDecimal) getAttributeInternal(INCOMEID);\n }",
"public String getInsuranceNum() {\n return insuranceNum;\n }",
"public Integer getInstitutionid()\n {\n return institutionid; \n }",
"public java.lang.String getInsCd () {\n\t\treturn insCd;\n\t}",
"public Integer getInventory_in_id() {\n return inventory_in_id;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of duracionMax | public void setDuracionMax(int duracionMax) {
this.duracionMax = duracionMax;
} | [
"public int getDuracionMax() {\n return duracionMax;\n }",
"public void setValueMax(double valueMax) {\n this.valueMax = valueMax;\n }",
"public void setMaxduration(java.lang.Integer value) {\n this.maxduration = value;\n }",
"public void SetMaxVal(int max_val);",
"public void setTimeMax(double tmax) {\n _tmax = (float)tmax;\n }",
"void setMaxValue();",
"void setSliderMax(int value);",
"public void setDiamateMax(Double diamateMax) {\n this.diamateMax = diamateMax;\n }",
"public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }",
"public int getMaxDuration(){\n return maxDuration;\n }",
"public void setMaxValue(final double MAX_VALUE)\n {\n this.maxValue = MAX_VALUE;\n checkSettings();\n init(getWidth(), getHeight());\n repaint();\n }",
"public void setDuracion(java.lang.Integer duracion) {\n this.duracion = duracion;\n }",
"public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public void setMaxValue(Object maxValue) {\n this.maxValue = maxValue;\n }",
"public void setMax(double max)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MAX$20);\r\n }\r\n target.setDoubleValue(max);\r\n }\r\n }",
"public org.openrtb.common.api.Video.Builder setMaxduration(java.lang.Integer value) {\n validate(fields()[3], value);\n this.maxduration = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void _setMax(float max)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMaximum((int) (max * 100));\r\n } else\r\n {\r\n setMaximum((int) max);\r\n }\r\n }",
"public Double getDiamateMax() {\n return diamateMax;\n }",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Escapes a reserved word as defined in the `reservedWords` array. Handle escaping those terms here. This logic is only called if a variable matches the reserved words | @Override
public String escapeReservedWord(String name) {
// Can't start with an underscore, as our fields need to start with an
// UppercaseLetter so that Go treats them as public/visible.
// Options?
// - MyName
// - AName
// - TheName
// - XName
// - X_Name
// ... or maybe a suffix?
// - Name_ ... think this will work.
if (this.reservedWordsMappings().containsKey(name)) {
return this.reservedWordsMappings().get(name);
}
return camelize(name) + '_';
} | [
"String escapeReservedWords(String query);",
"private void SetReservedWord() {\n \n reserved[0]=\"LEFT\";\n reserved[1]=\"RIGHT\";\n reserved[2]=\"GO\";\n reserved[3]=\"GET\";\n reserved[4]=\"PUT\";\n reserved[5]=\"REPEAT\";\n reserved[6]=\"IF\";\n reserved[7]=\"NOT\";\n reserved[8]=\"WHILE\";\n reserved[9]=\"ELSE\";\n \n }",
"private boolean isReservedWord(String word) {\n return reservedWords.containsKey(word);\n }",
"private static String handleReservedNames(String filename) {\r\n String filenameWithoutExtension = stripExtensionIfAny(filename);\r\n\r\n if (Stream.of(RESERVED_NAMES).anyMatch(s -> s.equalsIgnoreCase(filenameWithoutExtension))){\r\n return SANITIZATION_TOKEN + filename;\r\n } \r\n return filename;\r\n }",
"public void setReservedFlags(java.lang.String reservedFlags) {\n this.reservedFlags = reservedFlags;\n }",
"private static boolean containsReserved(char c) {\n return !((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||\n (c >= '0' && c <= '9') || (\"/:-_.!~*'()\".indexOf(c) != -1));\n }",
"protected token readQuotedReservedWord() throws IOException, DasmError {\n charBuf.reset();\n for (;;) {\n readNextChar();\n if (isSeparator(nextChar))\n throw new DasmError(\"Unterminated ''-enclosed name\");\n if (nextChar == '\\'') {\n if (charBuf.size() == 0)\n throw new DasmError(\"Empty ''-enclosed name\");\n readNextChar(); // skip close quote\n if (!isSeparator(nextChar))\n throw new DasmError(\n \"Missed separator after ''-enclosed name\");\n return new str_token(sym.Word, charBuf.toString());\n }\n char chval = (char) nextChar;\n if (nextChar == '\\\\') chval = nameEscape();\n charBuf.add(chval);\n }\n }",
"private HashMap<String, Token> setReservedWords() {\n HashMap<String, Token> map = new HashMap<>();\n map.put(\"else\", new Token(Token.TokenType.ELSE));\n map.put(\"if\", new Token(Token.TokenType.IF));\n map.put(\"int\", new Token(Token.TokenType.INT));\n map.put(\"return\", new Token(Token.TokenType.RETURN));\n map.put(\"void\", new Token(Token.TokenType.VOID));\n map.put(\"while\", new Token(Token.TokenType.WHILE));\n return map;\n }",
"private Token getReservedWordToken(String word) {\n return reservedWords.get(word);\n }",
"public static Tokenizer forReservedWord(){\n return reserved;\n }",
"private String escape(String name) {\n return name.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n }",
"public String escapeIdentifier(String identifierName);",
"private String checkAllowedSpecialCharacters(String allowedSpecialCharactersParam) throws PasswordValidationException {\n if (!StringUtils.containsOnly(allowedSpecialCharactersParam, Configuration.getString(ConfigurationKey.um_pwValidator_allowedSpecialChars))) {\n throw new PasswordValidationException(\"The given string contains not allowed chars\");\n }\n return allowedSpecialCharactersParam;\n }",
"String escapeSpecialCharacters(final String expression) {\n String escapedExpression = expression;\n for (int i = 0; i < SPECIAL_STRINGS.length; i++) {\n escapedExpression = escapedExpression.replace(SPECIAL_STRINGS[i],\n REPLACEMENT_STRINGS[i]);\n }\n return escapedExpression;\n }",
"public static String coverForbiddenSymbols(String txt) {\r\n\t\tString[] forbidenCharacters = {\":\", \"{\", \"}\", \"[\", \"]\", \">\", \"=\", \"!\",\r\n\t\t\t\t\t\t\t\t\t\",\", \"&\", \"*\", \"#\", \"?\", \"|\", \"-\", \"<\",\r\n\t\t\t\t\t\t\t\t\t\"¡\", \"¿\", \"%\", \"@\", \"Ñ\", \"ñ\"};\r\n\t\tfor (String forbidenChar : forbidenCharacters) {\r\n\t\t\tif (txt.contains(forbidenChar)) {\r\n\t\t\t\ttxt = \"\\'\" + txt + \"\\'\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn txt;\r\n\t}",
"private List<String> getOracleReservedKeyWords()\r\n {\r\n List<String> keywords = new ArrayList<>();\r\n\r\n // oracle sql reserved key words\r\n keywords.add(\"&\");// to be decided\r\n keywords.add(\"ACCESS\");\r\n keywords.add(\"ADD\");\r\n keywords.add(\"ALL\");\r\n keywords.add(\"ALTER\");\r\n keywords.add(\"AND\");\r\n keywords.add(\"ANY\");\r\n keywords.add(\"AS\");\r\n keywords.add(\"ASC\");\r\n keywords.add(\"AUDIT\");\r\n keywords.add(\"BETWEEN\");\r\n keywords.add(\"BY\");\r\n keywords.add(\"CHAR\");\r\n keywords.add(\"CHECK\");\r\n keywords.add(\"CLUSTER\");\r\n keywords.add(\"COLUMN\");\r\n // keywords.add(\"COLUMN_VALUE\");//only reserved for attribute name\r\n keywords.add(\"COMMENT\");\r\n keywords.add(\"COMPRESS\");\r\n keywords.add(\"CONNECT\");\r\n keywords.add(\"CREATE\");\r\n keywords.add(\"CURRENT\");\r\n keywords.add(\"DATE\");\r\n keywords.add(\"DECIMAL\");\r\n keywords.add(\"DEFAULT\");\r\n keywords.add(\"DELETE\");\r\n keywords.add(\"DESC\");\r\n keywords.add(\"DISTINCT\");\r\n keywords.add(\"DROP\");\r\n keywords.add(\"ELSE\");\r\n keywords.add(\"EXCLUSIVE\");\r\n keywords.add(\"EXISTS\");\r\n keywords.add(\"FILE\");\r\n keywords.add(\"FLOAT\");\r\n keywords.add(\"FOR\");\r\n keywords.add(\"FROM\");\r\n keywords.add(\"GRANT\");\r\n keywords.add(\"GROUP\");\r\n keywords.add(\"HAVING\");\r\n keywords.add(\"IDENTIFIED\");\r\n keywords.add(\"IMMEDIATE\");\r\n keywords.add(\"IN\");\r\n keywords.add(\"INCREMENT\");\r\n keywords.add(\"INDEX\");\r\n keywords.add(\"INITIAL\");\r\n keywords.add(\"INSERT\");\r\n keywords.add(\"INTEGER\");\r\n keywords.add(\"INTERSECT\");\r\n keywords.add(\"INTO\");\r\n keywords.add(\"IS\");\r\n keywords.add(\"LEVEL\");\r\n keywords.add(\"LIKE\");\r\n keywords.add(\"LOCK\");\r\n keywords.add(\"LONG\");\r\n keywords.add(\"MAXEXTENTS\");\r\n keywords.add(\"MINUS\");\r\n keywords.add(\"MLSLABEL\");\r\n keywords.add(\"MODE\");\r\n keywords.add(\"MODIFY\");\r\n // keywords.add(\"NESTED_TABLE_ID\");//only reserved for attribute name\r\n keywords.add(\"NOAUDIT\");\r\n keywords.add(\"NOCOMPRESS\");\r\n keywords.add(\"NOT\");\r\n keywords.add(\"NOWAIT\");\r\n keywords.add(\"NULL\");\r\n keywords.add(\"NUMBER\");\r\n keywords.add(\"OF\");\r\n keywords.add(\"OFFLINE\");\r\n keywords.add(\"ON\");\r\n keywords.add(\"ONLINE\");\r\n keywords.add(\"OPTION\");\r\n keywords.add(\"OR\");\r\n keywords.add(\"ORDER\");\r\n keywords.add(\"PCTFREE\");\r\n keywords.add(\"PRIOR\");\r\n keywords.add(\"PRIVILEGES\");\r\n keywords.add(\"PUBLIC\");\r\n keywords.add(\"RAW\");\r\n keywords.add(\"RENAME\");\r\n keywords.add(\"RESOURCE\");\r\n keywords.add(\"REVOKE\");\r\n keywords.add(\"ROW\");\r\n keywords.add(\"ROWID\");// uppercase ROWID never use for column name(even quoted)\r\n keywords.add(\"ROWNUM\");\r\n keywords.add(\"ROWS\");\r\n keywords.add(\"SELECT\");\r\n keywords.add(\"SESSION\");\r\n keywords.add(\"SET\");\r\n keywords.add(\"SHARE\");\r\n keywords.add(\"SIZE\");\r\n keywords.add(\"SMALLINT\");\r\n keywords.add(\"START\");\r\n keywords.add(\"SUCCESSFUL\");\r\n keywords.add(\"SYNONYM\");\r\n keywords.add(\"SYSDATE\");\r\n keywords.add(\"TABLE\");\r\n keywords.add(\"THEN\");\r\n keywords.add(\"TO\");\r\n keywords.add(\"TRIGGER\");\r\n keywords.add(\"UID\");\r\n keywords.add(\"UNION\");\r\n keywords.add(\"UNIQUE\");\r\n keywords.add(\"UPDATE\");\r\n keywords.add(\"USER\");\r\n keywords.add(\"VALIDATE\");\r\n keywords.add(\"VALUES\");\r\n keywords.add(\"VARCHAR\");\r\n keywords.add(\"VARCHAR2\");\r\n keywords.add(\"VIEW\");\r\n keywords.add(\"WHENEVER\");\r\n keywords.add(\"WHERE\");\r\n keywords.add(\"WITH\");\r\n /*\r\n * //pl/sql reserved key words(can be table or column name) except for those\r\n * included in sql keywords.add(\"AT\"); keywords.add(\"BEGIN\");\r\n * keywords.add(\"CASE\"); keywords.add(\"CLUSTERS\"); keywords.add(\"COLAUTH\");\r\n * keywords.add(\"COLUMNS\"); keywords.add(\"CRASH\"); keywords.add(\"CURSOR\");\r\n * keywords.add(\"DECLARE\"); keywords.add(\"END\"); keywords.add(\"EXCEPTION\");\r\n * keywords.add(\"FETCH\"); keywords.add(\"FUNCTION\"); keywords.add(\"GOTO\");\r\n * keywords.add(\"IF\"); keywords.add(\"INDEXES\"); keywords.add(\"LIKE\");\r\n * keywords.add(\"OVERLAPS\"); keywords.add(\"PROCEDURE\"); keywords.add(\"SQL\");\r\n * keywords.add(\"SUBTYPE\"); keywords.add(\"TABAUTH\"); keywords.add(\"TYPE\");\r\n * keywords.add(\"VIEWS\"); keywords.add(\"WHEN\");\r\n */\r\n\r\n return keywords;\r\n }",
"public void escape() {\n exlorersEscapeReason = true;\n }",
"public final ReservedWord reservedWord() throws RecognitionException {\r\n ReservedWord result = null;\r\n\r\n int reservedWord_StartIndex = input.index();\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 11) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:82:2: ( TrueRW | FalseRW | IfRW | ThenRW | ElseRW )\r\n int alt6=5;\r\n switch ( input.LA(1) ) {\r\n case TrueRW:\r\n {\r\n alt6=1;\r\n }\r\n break;\r\n case FalseRW:\r\n {\r\n alt6=2;\r\n }\r\n break;\r\n case IfRW:\r\n {\r\n alt6=3;\r\n }\r\n break;\r\n case ThenRW:\r\n {\r\n alt6=4;\r\n }\r\n break;\r\n case ElseRW:\r\n {\r\n alt6=5;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt6) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:82:4: TrueRW\r\n {\r\n match(input,TrueRW,FOLLOW_TrueRW_in_reservedWord426); if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new TrueRW(); }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:83:4: FalseRW\r\n {\r\n match(input,FalseRW,FOLLOW_FalseRW_in_reservedWord433); if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new FalseRW(); }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:84:4: IfRW\r\n {\r\n match(input,IfRW,FOLLOW_IfRW_in_reservedWord440); if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new IfRW(); }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:85:4: ThenRW\r\n {\r\n match(input,ThenRW,FOLLOW_ThenRW_in_reservedWord447); if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new ThenRW(); }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:86:4: ElseRW\r\n {\r\n match(input,ElseRW,FOLLOW_ElseRW_in_reservedWord454); if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new ElseRW(); }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 11, reservedWord_StartIndex); }\r\n\r\n }\r\n return result;\r\n }",
"public abstract String escapeName(String name);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the basic contract of WovenClass, incluing immutability after a weave has finished | public void testWovenClass() throws Exception {
registerThisHook();
try {
Class<?>clazz = weavingClasses.loadClass(TEST_CLASS_NAME);
assertWiring();
assertTrue("Should be complete now", wc.isWeavingComplete());
assertNotSame("Should get copies of the byte array now", realBytes, wc.getBytes());
assertEquals("Wrong class", TEST_CLASS_NAME, wc.getClassName());
assertSame("Should be set now", clazz, wc.getDefinedClass());
assertSame("Should be set now", clazz.getProtectionDomain(), wc.getProtectionDomain());
assertImmutableList();
try {
wc.setBytes(fakeBytes);
fail("Should not be possible");
} catch (IllegalStateException ise) {
//No action needed
}
} finally {
unregisterThisHook();
}
} | [
"public void testBadWeaveClass() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\treg2.unregister();\n\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should have dud bytes here!\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertTrue(\"Should be complete now\", wc.isWeavingComplete());\n\t\t\t\tassertNotSame(\"Should get copies of the byte array now\", fakeBytes, wc.getBytes());\n\t\t\t\tassertTrue(\"Content should still be equal though\", Arrays.equals(fakeBytes, wc.getBytes()));\n\t\t\t\tassertEquals(\"Wrong class\", TEST_CLASS_NAME, wc.getClassName());\n\t\t\t\tassertNull(\"Should not be set\", wc.getDefinedClass());\n\n\t\t\t\tassertImmutableList();\n\n\t\t\t\ttry {\n\t\t\t\t\twc.setBytes(fakeBytes);\n\t\t\t\t\tfail(\"Should not be possible\");\n\t\t\t\t} catch (IllegalStateException ise) {\n\t\t\t\t\t//No action needed\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treg2 = getContext().registerService(WeavingHook.class, this, null);\n\t\t} finally {\n\t\t\tunregisterThisHook();\n\t\t}\n\t}",
"public void testWovenClassListener() throws Exception {\n\t\tregisterAll();\n\t\ttry {\n\t\t\tClass<?> clazz = weavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\tassertDefinedClass(listenerWovenClass, clazz);\n\t\t\tassertStates(WovenClass.TRANSFORMED, WovenClass.DEFINED);\n\t\t} \n\t\tfinally {\n\t\t\tunregisterAll();\n\t\t}\n\t}",
"@Test\n public void testWarsteinerClassifiesAsBooze() {\n //Start Solution::replacewith:://TODO T01_A1 Type of Warsteiner test, asserts\n System.out.println( \"booze = \" + booze );\n assertTrue( booze instanceof Product );\n assertTrue( booze instanceof RequiresAgeCheck );\n assertTrue( booze instanceof Booze );\n assertTrue( crisps instanceof Product );\n assertFalse( crisps instanceof RequiresAgeCheck );\n assertFalse( crisps instanceof Booze );\n //End Solution::replacewith::fail(\"test not implemented\");\n }",
"@Test\n public void testImmutability() {\n assertThatClassIsImmutable(P4PipelineModel.class);\n }",
"@Test\n public void getCopy() {\n initializeWeapons();\n Weapon w1 = a.getCopy();\n assertTrue(w1.isAxe());\n Weapon w2 = b.getCopy();\n assertTrue(w2.isBroadSword());\n Weapon w3 = f.getCopy();\n assertTrue(w3.isFlail());\n Weapon w4 = k.getCopy();\n assertTrue(w4.isKatana());\n Weapon w5 = t.getCopy();\n assertTrue(w5.isTwoHandSword());\n }",
"public void testW() {\n System.out.println(\"w\");\n MainProg instance = new MainProg();\n int expResult = 2;\n int result = instance.w();\n assertEquals(expResult, result);\n// // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testImmutability() {\n assertThatClassIsImmutable(DefaultApplication.class);\n }",
"@Test\n public void testImmutability() {\n assertThatClassIsImmutable(LinkCollectionIntent.class);\n }",
"public void testWovenClassListenerNotNotifiedWhenNoWeavingHooks() throws Exception {\n\t\tregisterThisListener();\n\t\ttry {\n\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\tassertNull(\"Listener notified with no weaving hooks registered\", listenerWovenClass);\n\t\t\tassertStates();\n\t\t}\n\t\tfinally {\n\t\t\tunregisterThisListener();\n\t\t}\n\t}",
"@Ignore\r\n @Test\r\n public void testWrite() {\r\n System.out.println(\"write\");\r\n Project project = null;\r\n SerializationDemo.write(project);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void testImmutability() {\n assertThatClassIsImmutable(EventuallyConsistentMapEvent.class);\n }",
"private static void callMutableClass() {\n\t\t\n\t}",
"@Test\n public void testHasWon() {\n Img.initImages();\n System.out.println(\"hasWon\");\n ColourGame instance = new ColourGame(Difficulty.BEGINNER, 1234);\n instance.init(null);\n for (int i = 0; i < instance.boardSize; i++) {\n for (int j = 0; j < instance.boardSize; j++) {\n instance.board[i][j].setState(State.CLICKED);\n }\n }\n boolean expResult = false;\n boolean result = instance.hasWon();\n assertEquals(expResult, result);\n }",
"@Before\n\tpublic void makeObject()\n\t{\n\t\tbetFair = new SimpleBetfair(debug);\n\t}",
"@Test\n public void testSaveSettings() {\n System.out.println(\"saveSettings\");\n final Model instance = new Model();\n instance.saveSettings();\n }",
"@Test\n public void serialization_beforeUse() throws Exception {\n final WebClient client = getWebClient();\n final WebClient copy = clone(client);\n assertNotNull(copy);\n }",
"public HawthornWandBehaviorTest() {\n \n }",
"@Test\r\n public void testSlowWolfShouldWalkOnFourLegs() {\r\n \tWolf theWolf = new Wolf();\r\n assertEquals(\"I walk on four legs\", theWolf.getMovement(false));\r\n }",
"@Test\n public void testGetHasSwear() {\n System.out.println(\"getHasSwear\");\n EncodeChromosome instance = new EncodeChromosome();\n instance.setHasSwear(true);\n int expResult = 1;\n int result = instance.getHasSwear();\n assertEquals(expResult, result);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ %L CSIRO ASKAP Science Data Archive %% Copyright (C) 2015 Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. %% Licensed under the CSIRO Open Source License Agreement (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License in the LICENSE file. L% A set of configuration related DB methods Copyright 2015, CSIRO Australia All rights reserved. | public interface ConfigurationDAO
{
/**
* Export table configuration information
*
* @param fullTableName
* full table name, including schema
* @return column configurations mapped by column name
*/
public Map<String, ColumnConfig> exportColumns(String fullTableName);
/**
* Adds column comments to column configs
*
* @param fullTableName
* full table name
* @param configs
* ColumnConfig objects mapped to column names
*/
public void addColumnComments(String fullTableName, Map<String, ColumnConfig> configs);
/**
* Updates table configuration based on information available from TAP tables table
*
* @param fullTableName
* full name of table to update
* @param config
* table configuration
* @return false if the table does not exist, else true
*/
public boolean updateTableFromTap(String fullTableName, TableConfig config);
/**
* Updates columns configuration based on information available from TAP columns table
*
* @param fullTableName
* full name of table that the columns belong to
* @param configs
* columns configurations
*/
public void updateColumnsFromTap(String fullTableName, Map<String, ColumnConfig> configs);
/**
* Get index definition statements
*
* @param fullTableName
* full name of table that the columns belong to
* @return index definition statements as Strings in a List
*/
public Map<String, String> exportIndexDefs(String fullTableName);
/**
* Get constraints information
*
* @param fullDbTableName
* full database name of table that the columns belong to
* @param constraintType
* ConfigurationDAOImpl.FOREIGN_KEYS for foreign keys, ConfigurationDAOImpl.PRIMARY_KEYS for primary keys
* @return Map constraint name -$gt; encoded constraint string
*/
public Map<String, String> exportConstraints(String fullDbTableName, String constraintType);
/**
* Query for strings using the template
*
* @param sql
* sql query with params placeholders
* @param params
* an array of params
* @return a list of String results
*/
public List<String> queryForStrings(String sql, Object[] params);
/**
* Get description of given table in given schema
*
* @param fullTableName
* full table name
*
* @return table description as a String
*/
public String exportTableDescription(String fullTableName);
/**
* Executes a statement
*
* @param statement
* sql statement
*/
public void execute(String statement);
/**
* Drops a constraint
*
* @param constraint
* constraint to drop
* @throws ConfigurationException
* if change is not allowed
*/
public void dropConstraint(ConstraintConfig constraint) throws ConfigurationException;
/**
* Adds a constraint
*
* @param constraint
* constraint to add
* @throws ConfigurationException
* if change is not allowed
*/
public void addConstraint(ConstraintConfig constraint) throws ConfigurationException;
/**
* Drops an index
*
* @param index
* index to drop
* @throws ConfigurationException
* if change is not allowed
*/
public void dropIndex(IndexConfig index) throws ConfigurationException;
/**
* Adds an index
*
* @param index
* index to add
* @throws ConfigurationException
* if change is not allowed
*/
public void addIndex(IndexConfig index) throws ConfigurationException;
/**
* Begin transaction
*/
public void begin();
/**
* Commit transaction
*/
public void commit();
/**
* Rollback transaction
*/
public void rollback();
/**
* Drops column
*
* @param columnConfig
* column configuration object of the column to drop
* @throws ConfigurationException
* if change is not allowed
*/
public void dropColumn(ColumnConfig columnConfig) throws ConfigurationException;
/**
* Creates column
*
* @param columnConfig
* column attributes
* @throws ConfigurationException
* if change is not allowed
*/
public void createColumn(ColumnConfig columnConfig) throws ConfigurationException;
/**
* Updates column
*
* @param current
* current column attributes
* @param updated
* desired column attributes
* @throws ConfigurationException
* if change is not allowed
*/
public void updateColumn(ColumnConfig current, ColumnConfig updated) throws ConfigurationException;
/**
* Creates foreign key constraint
*
* @param constraintConfig
* constraint configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;
/**
* Creates index
*
* @param indexConfig
* index configuration
* @throws ConfigurationException
* if change is not allowed
*
*/
public void createIndex(IndexConfig indexConfig) throws ConfigurationException;
/**
* Creates a table
*
* @param tableConfig
* table configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void createTable(TableConfig tableConfig) throws ConfigurationException;
/**
* Delete schema from TAP metadata tables
*
* @param schemaConfig
* schema configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void deleteTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;
/**
* Create schema in TAP metadata tables
*
* @param schemaConfig
* schema configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void createTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;
/**
* Update schema in TAP metadata tables
*
* @param newSchema
* schema configuration
* @param createOnly
* do not update the record if it exists
* @throws ConfigurationException
* if change is not allowed
*/
public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;
/**
* Delete table from TAP metadata tables
*
* @param tableConfig
* table configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void deleteTapTable(TableConfig tableConfig) throws ConfigurationException;
/**
* Create table in TAP metadata tables
*
* @param tableConfig
* table configuration
* @throws ConfigurationException
* if change is not allowed
*/
public void createTapTable(TableConfig tableConfig) throws ConfigurationException;
/**
* Update table in TAP metadata tables
*
* @param newTable
* table configuration
* @param createOnly
* do not update the record if it exists
* @throws ConfigurationException
* if change is not allowed
*/
public void updateTapTable(TableConfig newTable, boolean createOnly) throws ConfigurationException;
/**
* Adds missing records and references defined by the table's keys
*
* @param cfgTable
* TableConfig object to process
* @param createOnly
* do not update the record if it exists
* @throws ConfigurationException
* if change is not allowed
*/
void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;
/* =============================================================================== */
/* Replacements for former JPA repositories functions */
/* =============================================================================== */
/**
* Find all TAP schemas
*
* @return a collection of TapSchema objects
*/
public Collection<TapSchema> findAllSchemas();
/**
* Find all TAP tables
*
* @return a collection of TapTable objects
*/
public Collection<TapTable> findAllTables();
/**
* Find a TAP schema by name
*
* @param schemaName
* schema name
* @return TapSchema object
*/
public TapSchema findOneSchema(String schemaName);
/**
* Find all TAP columns
*
* @return a collection of TapColumn objects
*/
public Collection<TapColumn> findAllColumns();
/**
* Find a TAP table by name
*
* @param tableName
* column name
* @return TapTable object
*/
public TapTable findOneTable(String tableName);
/**
* Find all TAP key columns
*
* @return a collection of TapKeyColumn objects
*/
public Collection<TapKeyColumn> findAllKeyColumns();
/**
* Find a TAP column by its key
*
* @param tapColumnPK
* column key
* @return TapColumn object
*/
public TapColumn findOneColumn(TapColumnPK tapColumnPK);
/**
* Find all TAP keys
*
* @return a collection of TapKey objects
*/
public Collection<TapKey> findAllKeys();
/**
* Get JdbcTemplate
*
* @return JdbcTemplate used by this DAO
*/
public JdbcTemplate getTemplate();
/**
* Get schema name
*
* @return schema name of any existing table or default schema name
*/
public String getSchema();
/**
* Make sure that TAP tables satisfy current version requirements
*
* @throws ConfigurationException
* if there were configuration problems
*/
void checkTapDbVersion() throws ConfigurationException;
/**
* Refreshes the object cache, for TAP metadata cached by the application.
*/
public void refreshObjectCache();
/**
* Convert project codes to project ids
*
* @param projectCodes
* list of project codes
* @param schema
* Schema of the projects table
* @return projectIds List of project ids for codes
*/
public List<Long> convertProjectCodesToIds(List<String> projectCodes, String schema);
} | [
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"public interface IOrientdbConfig {\n /**\n * Gets the hosts.\n *\n * @return\n */\n String getHosts();\n\n /**\n * Gets the database user name.\n *\n * @return\n */\n String getDatabaseUsername();\n\n /**\n * Gets the database password.\n *\n * @return\n */\n String getDatabasePassword();\n\n /**\n * Gets the database name.\n *\n * @return\n */\n String getDatabaseName();\n\n /**\n * Gets the user name.\n *\n * @return\n */\n String getUsername();\n\n /**\n * Gets the password.\n *\n * @return\n */\n String getPassword();\n\n /**\n * Gets the autoGenerateSchema.\n *\n * @return\n */\n boolean getAutoGenerateSchema();\n\n /**\n * Gets the entity scan package.\n *\n * @return\n */\n String getEntityScanPackage();\n\n /**\n * Gets the projections scan package.\n *\n * @return\n */\n String getProjectionScanPackage();\n}",
"abstract protected void setupRdbmsOperations();",
"AnalysisOfDB() {\n\t\t// System.out.println(\"in testDb constructor with default DB and domain\");\n\t\ttry {\n\t\t\tsdb = new AmazonSimpleDBClient(new PropertiesCredentials(\n\t\t\t\t\tAnalysisOfDB.class\n\t\t\t\t\t\t\t.getResourceAsStream(\"AwsCredentials.properties\")));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetup();\n\t}",
"private void ini_SelectDB()\r\n\t{\r\n\r\n\t}",
"abstract com.webobjects.foundation.NSArray createDatabaseStatementsForConnectionDictionary(com.webobjects.foundation.NSDictionary connectionDictionary, com.webobjects.foundation.NSDictionary administrativeConnectionDictionary);",
"public interface DataBaseProvider {\n\n String getDbName();\n\n Map<String, String> getColumnComment(Connection connection, Table table) throws SQLException;\n}",
"protected static void configureTSDB() {\n\t\tcleanH2FileDir(\"CatalogSearchConfig\");\n\t\ttsdb = newTSDB(\"CatalogSearchConfig\");\n\t}",
"public interface IDataSourceConfiguration {\r\n\r\n\t/**\r\n\t * \r\n\t * @return Nombre del driver \r\n\t */\r\n\tpublic String getDriverName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param driverName Nombre del driver\r\n\t */\r\n\tpublic void setDriverName(String driverName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return User name de conexion\r\n\t */\r\n\tpublic String getUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName User name de conexion\r\n\t */\r\n\tpublic void setUserName(String userName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Password de conexion\r\n\t */\r\n\tpublic void setPassword(String password);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic String getUrl();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param url URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic void setUrl(String url);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Alternative User name de conexion\r\n\t */\r\n\tpublic String getAltUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName Alternative User name de conexion\r\n\t */\r\n\tpublic void setAltUserName(String altUserName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getAltPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Alternative Password de conexion\r\n\t */\r\n\tpublic void setAltPassword(String altPassword);\r\n\t\r\n}",
"public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }",
"@Override\r\n\tpublic boolean supportsDb(String type) {\r\n \treturn true;\r\n }",
"public interface IOrm {\n\n /**\n * <p>Setting APP info.</p>\n **/\n String APPINF = \"appInf\";\n\n /**\n * <p>Setting JDBC class.</p>\n **/\n String JDBCCLS = \"jdbcCls\";\n\n /**\n * <p>Setting DS class.</p>\n **/\n String DSCLS = \"dsCls\";\n\n /**\n * <p>Setting DB user name.</p>\n **/\n String DBUSR = \"dbUsr\";\n\n /**\n * <p>Setting DB user password.</p>\n **/\n String DBPSW = \"dbPsw\";\n\n /**\n * <p>Setting DB URL.</p>\n **/\n String DBURL = \"dbUrl\";\n\n /**\n * <p>Setting check if table exists query.</p>\n **/\n String CHECKTBL = \"checkTbl\";\n\n /**\n * <p>Table var in check if table exists query.</p>\n **/\n String TBLNM = \":tblNm\";\n\n /**\n * <p>Query initializing.</p>\n **/\n String INITSQL = \"init.sql\";\n\n /**\n * <p>Query insert.</p>\n **/\n String INSTSQL = \"inst.sql\";\n\n /**\n * <p>Query upgrade without suffix.</p>\n **/\n String UPGRSQL = \"upgr\";\n\n /**\n * <p>Query last inserted ID, e.g. for SQLITE, MySql.</p>\n **/\n String LASTID = \"lastId\";\n\n /**\n * <p>Sub-query returning ID, e.g. for Postgresql.</p>\n **/\n String RETID = \"retId\";\n\n /**\n * <p>Word that point to current dir System.getProperty(\"user.dir\").</p>\n **/\n String CURDIR = \"#currentDir#\";\n\n /**\n * <p>Word that point to current parent dir\n * System.getProperty(\"user.dir\").parent.</p>\n **/\n String CURPDIR = \"#currentParentDir#\";\n\n /**\n * <p>Optimistic locking fail, update/delete returns 0.</p>\n **/\n int DRTREAD = 1151;\n\n /**\n * <p>Error insert/update/delete entity, row count != 1.</p>\n **/\n int ACTROWERR = 1152;\n\n /**\n * <p>Initializes database, e.g. create/updates tables if need.\n * It must be invoked once by an initializer (e.g. load on startup servlet).\n * </p>\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @throws Exception - an exception\n **/\n void init(Map<String, Object> pRqVs) throws Exception;\n\n /**\n * <p>Retrieves entity from DB.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @return entity or null\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> T retEnt(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Refreshes entity from DB. If not found then ID will be nulled.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> void refrEnt(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Retrieves entity from DB by query conditions, if more than 1 result,\n * then trows exception.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pCond Not NULL e.g. \"ORID=1 and DBID=2\"\n * @return entity or null\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> T retEntCnd(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pCond) throws Exception;\n\n /**\n * <p>Retrieves entity from DB by query, if more than 1 result,\n * then trows exception.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pQu SELECT statement\n * @return entity or null\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> T retEntQu(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pQu) throws Exception;\n\n /**\n * <p>Inserts entity into DB. It's should be used by generic requester that\n * is not dedicated to concrete entity type, e.g. HTML request handler.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> void insert(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Inserts entity with no Long ID into DB.\n * It's should be used by requester that is dedicated to concrete entity\n * type with no Long ID, e.g. account saver and account has string ID.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> void insIdNln(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Inserts entity with Long ID (maybe auto-generated) into DB.\n * It's should be used by requester that is dedicated to concrete entity\n * type with Long ID, e.g. invoice saver.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<Long>> void insIdLn(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Updates entity with ID in DB.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> void update(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Deletes entity with ID from DB.</p>\n * @param <T> entity type\n * @param pRqVs request scoped vars\n * @param pVs invoker scoped vars\n * @param pEnt entity\n * @throws Exception - an exception\n **/\n <T extends IHasId<?>> void del(Map<String, Object> pRqVs,\n Map<String, Object> pVs, T pEnt) throws Exception;\n\n /**\n * <p>Retrieves a list of all entities.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @return list of all business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retLst(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls) throws Exception;\n\n /**\n * <p>Retrieves a list of entities.</p>\n * @param <T> - type of business object\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pCond Not NULL e.g. \"where name='U1' ORDER BY id\"\n * @return list of business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retLstCnd(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pCond) throws Exception;\n\n /**\n * <p>Retrieves a list of entities by complex query that may contain\n * additional joins and filters, see Beige-Webstore for example.</p>\n * @param <T> - type of business object\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pQu Not NULL complex query\n * @return list of business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retLstQu(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pQu) throws Exception;\n\n /**\n * <p>Retrieves a page of entities.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pFst number of the first record (from 0)\n * @param pPgSz page size (max records)\n * @return list of business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retPg(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, Integer pFst,\n Integer pPgSz) throws Exception;\n\n /**\n * <p>Retrieves a page of entities.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pCond not null e.g. \"name='U1' ORDER BY id\"\n * @param pFst number of the first record (from 0)\n * @param pPgSz page size (max records)\n * @return list of business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retPgCnd(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pCond, Integer pFst,\n Integer pPgSz) throws Exception;\n\n /**\n * <p>Retrieves a page of entities by given complex query.\n * For example it used to retrieve page Itms to sell in Beige-Webstore\n * by complex query what might consist of joints to filtered goods/services,\n * it also may has not all fields e.g. omit unused auctioning fields for\n * performance advantage.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pQu not null complex query without page conditions\n * @param pFst number of the first record (from 0)\n * @param pPgSz page size (max records)\n * @return list of business objects or empty list, not null\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> List<T> retPgQu(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pQu, Integer pFst,\n Integer pPgSz) throws Exception;\n\n /**\n * <p>Calculates total rows for given entity class.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars\n * @param pVs invoker scoped vars\n * @param pCls entity class\n * @return Integer row count\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> Integer evRowCnt(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls) throws Exception;\n\n /**\n * <p>Calculates total rows for given entity class and conditions.</p>\n * @param <T> - type of business object,\n * @param pRqVs request scoped vars, e.g. user preference decimal separator\n * @param pVs invoker scoped vars, e.g. \"needed fields\", not null\n * @param pCls entity class\n * @param pWhe not null e.g. \"ITSID > 33\"\n * @return Integer row count\n * @throws Exception - an exception\n */\n <T extends IHasId<?>> Integer evRowCntWhe(Map<String, Object> pRqVs,\n Map<String, Object> pVs, Class<T> pCls, String pWhe) throws Exception;\n\n /**\n * <p>Getter for database ID.\n * Any database mist has ID, int is suitable type for that cause\n * its range is enough and it's faster than String.</p>\n * @return ID database\n * @throws Exception - an exception\n **/\n Integer getDbId() throws Exception;\n}",
"public interface EOSchemaGeneration{\n /**\n * Appends expression's statement to script along with any necessary delimiter. script is the StringBuffer in which the SQL script is built.\n * Used in conjunction with schemaCreationStatementsForEntities and schemaCreationScriptForEntities to build up the SQL script to generate the specified schema for a set of EOEntities.\n */\n abstract void appendExpressionToScript(com.webobjects.eoaccess.EOSQLExpression expression, java.lang.StringBuffer script);\n\n /**\n * Generates and returns an array of EOSQLExpressions containing the SQL statements to create a database or user that can be accessed by the provided connectionDictionary and administrativeConnectionDictionary. Returns null if this feature is not supported.\n */\n abstract com.webobjects.foundation.NSArray createDatabaseStatementsForConnectionDictionary(com.webobjects.foundation.NSDictionary connectionDictionary, com.webobjects.foundation.NSDictionary administrativeConnectionDictionary);\n\n abstract com.webobjects.foundation.NSArray createIndexStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n abstract com.webobjects.foundation.NSArray createIndexStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create a table for entityGroup. Returns an empty array if entityGroup is null or empty.\n */\n abstract com.webobjects.foundation.NSArray createTableStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create the tables for each of the entity groups in entityGroups. Returns an empty array if entityGroups is null or empty.\n */\n abstract com.webobjects.foundation.NSArray createTableStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Generates and returns an array of EOSQLExpressions that define the SQL statements to drop a database or user that is accessed by the provided connectionDictionary and administrativeConnectionDictionary. Returns null if this feature is not supported.\n */\n abstract com.webobjects.foundation.NSArray dropDatabaseStatementsForConnectionDictionary(com.webobjects.foundation.NSDictionary connectionDictionary, com.webobjects.foundation.NSDictionary administrativeConnectionDictionary);\n\n abstract com.webobjects.foundation.NSArray dropIndexStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n abstract com.webobjects.foundation.NSArray dropIndexStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to drop the primary key generation support for entityGroup, or null if primary key generation is not supported.\n */\n abstract com.webobjects.foundation.NSArray dropPrimaryKeySupportStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to drop the primary key generation support for all the entities in each of the the entity groups in entityGroups. Returns an empty array if entityGroups is null or empty. Returns an array containing an error message if primary key generation support is not available.\n */\n abstract com.webobjects.foundation.NSArray dropPrimaryKeySupportStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to drop the table identified by entityGroup. Returns an empty array if entityGroup is null. The drop statement generated by this method should be sufficient to remove the table created by createTableStatementsForEntityGroup's statements.\n */\n abstract com.webobjects.foundation.NSArray dropTableStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to drop the tables for all the entity groups in entityGroups. Returns an empty array if entityGroups is null or empty.\n */\n abstract com.webobjects.foundation.NSArray dropTableStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL statements necessary to create foreign key constraints for relationship. Returns an empty array if unable to generate foreign key constraints for relationship\n */\n abstract com.webobjects.foundation.NSArray foreignKeyConstraintStatementsForRelationship(com.webobjects.eoaccess.EORelationship relationship);\n\n /**\n * Creates a new Options object, to facilitate subclassing.\n */\n abstract com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions newOptions();\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create the primary key constraints for entityGroup. Returns an empty array if any of the primary key attributes in entityGroup don't have a column name or if entityGroup is null.\n */\n abstract com.webobjects.foundation.NSArray primaryKeyConstraintStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create the primary key constraints for the entities specified in entityGroups. Returns an empty array if entityGroups is null or empty.\n */\n abstract com.webobjects.foundation.NSArray primaryKeyConstraintStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create the primary key generation support for entityGroup, or null if primary key generation is not supported.\n */\n abstract com.webobjects.foundation.NSArray primaryKeySupportStatementsForEntityGroup(com.webobjects.foundation.NSArray entityGroup);\n\n /**\n * Returns an array of EOSQLExpression objects that define the SQL necessary to create the primary key generation support for all the entities in each of the the entity groups in entityGroups. Returns an empty array if entityGroups is null or empty. Returns an array containing an error message if primary key generation support is not available.\n */\n abstract com.webobjects.foundation.NSArray primaryKeySupportStatementsForEntityGroups(com.webobjects.foundation.NSArray entityGroups);\n\n /**\n * Returns a script of SQL statements suitable to create the schema based on options for the EOEntity objects in allEntities. Returns an empty string if either options or allEntities is empty or null.\n * options is an option object used in conjunction with appendExpressionToScript and schemaCreationScriptForEntities to build up the SQL script to generate the specified schema for allEntities.\n */\n abstract java.lang.String schemaCreationScriptForEntities(com.webobjects.foundation.NSArray allEntities, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options);\n\n /**\n * Returns an array of EOSQLExpressions suitable to create the schema based on options for the EOEntity objects in allEntities. Returns an empty array if either allEntities or options is null or empty.\n * options is an option object used in conjunction with appendExpressionToScript and schemaCreationScriptForEntities to build up the SQL script to generate the specified schema for allEntities.\n */\n abstract com.webobjects.foundation.NSArray schemaCreationStatementsForEntities(com.webobjects.foundation.NSArray allEntities, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options);\n\n abstract com.webobjects.eoaccess.synchronization.EOSchemaGeneration.Delegate schemaGenerationDelegate();\n\n abstract void setSchemaGenerationDelegate(com.webobjects.eoaccess.synchronization.EOSchemaGeneration.Delegate delegate);\n\n public static interface Delegate{\n abstract com.webobjects.foundation.NSArray indexDefinitionForEntity(com.webobjects.eoaccess.EOEntity entity);\n\n }\n}",
"public VersionDAOJDBC() {\n \t\n }",
"public void generateDbConfigMapping() {// This method is used to generate\n\t\t// the Database configuration for\n\t\t// the mapping file\n\t\tprintWriter.write(\"<descriptor-repository version=\" + \"\\\"1.0\\\" \");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\t\\t\\t\\t isolation-level=\"\n\t\t\t\t+ \"\\\"read-uncommitted\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\t\\t\\t\\t proxy-prefetching-limit=\" + \"\\\"50\\\"> \");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\n\");\n\t\tgenerateJdbcConDescriptor(printWriter);// Method to generate the JDBC\n\t\t// connection descriptor\n\t}",
"DataSourceJdbcRuntimeConfig jdbc();",
"public HashMap<List<String>, List<String>> GBQDS1SDA01DWHPOL(String Query,String DBColumnName) throws IOException {\n\t\tResultSet rs =null;\n\t\tDBColumnName=\"\";\n\t\tString value = null;\n\t\tHashMap<List<String>,List<String>> DBValues = new HashMap<List<String>,List<String>>();\n\t\tList<String> columnValues=new ArrayList<String>();\n\t\tList<String> listvalues=new ArrayList<String>();\n\t\tFileReader reader = new FileReader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\config.properties\");\n\t\tProperties properties=new Properties();\n\t\tproperties.load(reader);\n\t\turl=properties.getProperty(\"url\");\n\t\tif(url.contains(\"CEAWD06440\")) {\n\t\t\turl = \"jdbc:sqlserver://CEAWD06440.EMEA.ZURICH.CORP:1282;databaseName=GBQIS1SDA01DWHBKR;integratedSecurity=true;\";\t\n\t\t}else if(url.contains(\"DEAWD05718\")) {\n\t\t\turl = \"jdbc:sqlserver://DEAWD05718.EMEA.ZURICH.DEV:1282;databaseName=GBQDS1SDA01DWHBKR;integratedSecurity=true\";\n\t\t}\n\t\ttry {\n\t\t\tClass.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t\tlog.info(\"DB Connected\");\n\t\t\tstmt = conn.createStatement();\n\t\t\trs = stmt.executeQuery(Query);\n\t\t\tResultSetMetaData rsmd =rs.getMetaData();\n\t\t\tif(DBColumnName.equals(\"\")) {\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tint IdValue=rs.getInt(\"ID\");\n\t\t\t\t\tif(IdValue>0) {\n\t\t\t\t\t\tfor(int j=1;j<=rsmd.getColumnCount();j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tDBColumnName=rsmd.getColumnName(j);\n\t\t\t\t\t\t\tvalue=rs.getString(rsmd.getColumnName(j));\n\t\t\t\t\t\t\tif(IdValue==1) {\n\t\t\t\t\t\t\t\tcolumnValues.add(DBColumnName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcolumnValues.add(DBColumnName);\n\t\t\t\t\t\t\tlistvalues.add(value);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"ID Value is less than 1\");\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tDBValues.put(columnValues, listvalues);\n\t\t\t\tSystem.out.println(DBValues);\n\t\t\t}else {\n\t\t\t\tlog.info(\"DB ColumnName is not given\");\n\t\t\t\tflag=false;\n\t\t\t}\n\t\t\tconn.close();\n\t\t\tlog.info(\"Results:\"+DBValues);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Messgae Caught while connecting to DB GBQIS1SDA01DWHPOL :\"+ e);\n\t\t}\n\t\treturn DBValues; \n\t}",
"public void displayDbProperties(){\n //com.vaadin.ui.Window.Notification()\n DatabaseMetaData dm = null;\n ResultSet rs = null;\n try{\n con= this.getConnection();\n if(con!=null){\n dm = con.getMetaData();\n \n System.out.println(\"Driver Information\");\n System.out.println(\"\\tDriver Name: \"+ dm.getDriverName());\n System.out.println(\"\\tDriver Version: \"+ dm.getDriverVersion ());\n System.out.println(\"\\nDatabase Information \");\n System.out.println(\"\\tDatabase Name: \"+ dm.getDatabaseProductName());\n System.out.println(\"\\tDatabase Version: \"+ dm.getDatabaseProductVersion());\n System.out.println(\"Avalilable Catalogs \");\n rs = dm.getCatalogs();\n while(rs.next()){\n System.out.println(\"\\tcatalog: \"+ rs.getString(1));\n }\n rs.close();\n rs = null;\n closeConnection();\n }else System.out.println(\"Error: No active Connection\");\n }catch(Exception e){\n e.printStackTrace();\n }\n dm=null;\n }",
"TimeSeriesDatabaseConnectionProperties properties();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Callback to receive device picked event | public interface Callback {
public void onDevicePicked(BluetoothDevice device);
public void onDevicePickCancelled();
} | [
"public void deviceEntered(DevicesEvent e);",
"@Override\n public void onDevicePicked(BluetoothDevice device) {\n if (DBG_LIFECYCLE) {\n Log.d(TAG, \"onDevicePicked\");\n }\n if (Settings.CHECK_FOR_UPDATES_ON_CONNECT) {\n mCanAskForFirmwareUpdate = true;\n } else {\n mCanAskForFirmwareUpdate = false;\n }\n mSenseManager.setDevice(device);\n updateConnectionStateWidgets();\n }",
"public interface onDeviceSelectedListener{\n public void onDeviceSelected(String address);\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }",
"void onNewDeviceFound(BluetoothDevice device);",
"public static void devicesChangedCallback()\n {\n Runnable devicesChangedCallback = Pa.devicesChangedCallback;\n\n if (devicesChangedCallback != null)\n devicesChangedCallback.run();\n }",
"void onDeviceFound(BluetoothDevice device);",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onAudioDeviceChanged(\n AppRTCAudioManager.AudioDevice audioDevice, Set<AppRTCAudioManager.AudioDevice> availableAudioDevices) {\n showToast(\"onAudioManagerDevicesChanged: \" + availableAudioDevices + \", \"\n + \"selected: \" + audioDevice);\n }",
"public interface OnDeviceSelectedListener {\n\n /**\n * Method used to send the address of a selected bluetooth device.\n * @param address the MAC address of the bluetooth device.\n */\n void onDeviceSelected(String address);\n}",
"void onDeviceAdded(MediaDevice device);",
"public void needDeviceInfoSettingCallBack();",
"@Override\n public void onDevicePickCancelled() {\n if (DBG_LIFECYCLE) {\n Log.d(TAG, \"onDevicePickCancelled\");\n }\n updateConnectionStateWidgets();\n }",
"private void onDeviceSelected(int position) {\n ConnectedDevice.setInstance(devices.get(position));\n Log.d(TAG, \"Selected device: \" + ConnectedDevice.getInstance().getName());\n startActivity(new Intent(MainActivity.this, DeviceActivity.class));\n }",
"void onConnectedDeviceChanged(String id);",
"void onDeviceFound(TxRxScanResult scanResult);",
"private void onAudioManagerDevicesChanged(\n final AppRTCAudioManager.AudioDevice device, final Set<AppRTCAudioManager.AudioDevice> availableDevices) {\n Log.d(TAG, \"onAudioManagerDevicesChanged: \" + availableDevices + \", \"\n + \"selected: \" + device);\n // TODO(henrika): add callback handler.\n }",
"public void onDialogDeviceSelected(String nameOfSelectedDevice) { \t\n \tif (nameOfSelectedDevice.equalsIgnoreCase(getString(R.string.SelectPreviousBtDeviceScanForNewDevicesOption))) {\n \t\t// Prompt for device discovery\n \t\tthis.doDiscoveryOfDevices();\n \t}\n \telse {\n \t\tBluetoothDevice device = this.mFindRobotFragment.FindDevice(nameOfSelectedDevice);\n \t\t\n \t\tif (device == null) {\n \t\t\tthrow new RuntimeException(String.format(\"Could not find device '%s'\", nameOfSelectedDevice));\n \t\t}\n \t\t\n \t\tthis.mBluetoothConnectionManager.connectToDevice(device);\n \t}\n }",
"void onDeviceProfileChanged(DeviceProfile dp);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Serializes the specified variant. | private void _writeVariant(final Variant variant) throws IOException {
_out.startObject();
_writeReifier(variant);
_writeItemIdentifiers(variant);
_writeScope(variant);
_writeDatatypeAware(variant);
_out.endObject();
} | [
"public void setVariant(final ProductVariant variant);",
"@Valid\n @JsonProperty(\"variant\")\n public ProductVariant getVariant();",
"@Override\n public Representation represent(Variant variant) throws ResourceException {\n //testing parameters\n// patientId = (String) this.getRequest().getAttributes().get(\"patientId\");\n//\n// System.out.println(\"patientId = \"+patientId);\n\n // String result = makeSOAPCall();\n String result = \"boo\";\n\n// System.out.println(\"endPoint: \"+ getProperty(\"SOAPEndpoint\"));\n\n Representation representation = new StringRepresentation(result, MediaType.APPLICATION_JSON);\n return representation;\n }",
"public void setVariantId(final Long variantId);",
"@Override\n public final IProperty getVariantProperty() {\n return VARIANT_PROPERTY;\n }",
"public void set_variant_type(byte t) { this.variantType=t; }",
"public Variant() {}",
"public long getVariant() {\n return variant_;\n }",
"@Override\n public int getVariantType() {\n return type;\n }",
"public Long getVariantId() {\n return this.variantId;\n }",
"java.lang.String getVariantType();",
"public byte getVariantId() {\n\t\treturn variantId;\n\t}",
"public int getVariantId() {\n return variantId_;\n }",
"java.lang.String getVariant(int index);",
"protected void sequence_variant_part(ISerializationContext context, variant_part semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();",
"public IVariant createVariant(){\r\n\t\tElement elt = createElement(DEFAULT_ELT_NAME);\r\n\t\tDOMUtils.addXSIType(elt, VariantImpl.XSD_TYPE_NSURI, VariantImpl.XSD_TYPE_NAME);\r\n\t\tVariantImpl newElt = new VariantImpl(elt);\r\n\t\tnewElt.setXArch(this.getXArch());\r\n\t\treturn newElt;\r\n\t}",
"ItemVariant getItemVariant(Integer itemVariantId);",
"public abstract String serialise();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 jointime = 4 [default = 0]; | int getJointime(); | [
"public int getJointime() {\n\t\t\treturn jointime_;\n\t\t}",
"public int getJointime() {\n\t\t\t\treturn jointime_;\n\t\t\t}",
"public Builder setJointime(int value) {\n\t\t\t\tbitField0_ |= 0x00000008;\n\t\t\t\tjointime_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"int getChattimeus();",
"public boolean hasJointime() {\n\t\t\t\treturn ((bitField0_ & 0x00000008) == 0x00000008);\n\t\t\t}",
"Integer macAdressAgeingTime();",
"public static int getDefaultTime() {\r\n\t\treturn defaultTime;\r\n\t}",
"public Laptime() {\n\t\ttime = TIME_NOT_SET;\n\t\tsectors = new int[3];\n\t}",
"public int getTime(){\r\n\t\treturn hisTime;\r\n\t}",
"int getPlayerTime();",
"public void setFlextime() {}",
"Expression getReaction_time_parm();",
"int getNano();",
"public static int getJ(){\n\t\treturn botJ;\r\n\t}",
"public abstract float getWantedTime();",
"public int getOriginalBurst_time(){\n \n return this.originalBurst_time;\n }",
"int getCreatetimeus();",
"MidiVar90NoteOn createMidiVar90NoteOn();",
"void setMTTR(int time);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops the current Scenario and writes the appropriate output files. | public void stopScenario() {
this.stopVideoRecording();
for (int i = resultPos; i < currentScenario.getNumberOfStepAnnotations(); i++) {
currentScenario.getStepAnnotation(resultPos).setMillisecondsFrom(currentEndTimestamp);
}
this.writeAnnotationFile();
currentScenario = new ScenarioAnnotationsDto();
} | [
"public void stop() {\n JacocoUtils.generateEcFile(false);\n finish(Activity.RESULT_OK, mResults);\n }",
"public void stop()\n {\n output.println(FileHandler.NEW_LINE + \"Goodbye.\");\n try\n {\n input.close();\n output.close();\n }\n catch (Exception e)\n {\n System.out.println(\"Couldn't close I/O stream.\");\n System.exit(0);\n }\n }",
"@After(order = 1000)\n public void afterScenario() {\n // Destroy scenario context as the scenario is finished.\n ScenarioContext.context = null;\n }",
"private void shutdown() {\n responses.add(\"Bye. Hope to see you again soon!\");\n save();\n System.exit(0);\n }",
"public void stop() {\n\t\tthis.writer.stop();\n\t}",
"public void shutdown() {\n factory.shutdown();\n try {\n TestUtils.deleteFile(snapshotDir);\n } catch (FileNotFoundException e) {\n // ignore\n }\n try {\n TestUtils.deleteFile(logDir);\n } catch (FileNotFoundException e) {\n // ignore\n }\n }",
"void stop() {\n synchronized (this) {\n if (fileLog != null) {\n fileLog.stop();\n fileLog = null;\n }\n }\n configuration.stop();\n }",
"@AfterClass public static void cleanup(){\n new File(outFileName).delete();\n }",
"void writeScenario(ScenarioModel model, OutputStream outputStream) throws ModelSerializationException, ModelConversionException;",
"public void close() {\n for( Stub stub: outputs.keySet() ) {\n // If the stream hasn't yet been created, create it so that there's at least an empty file present.\n if( outputs.get(stub) == null )\n getTargetStream(stub);\n\n // Close down the storage.\n outputs.get(stub).close();\n }\n }",
"public void stop()\n {\n try\n {\n\n filesToCleanup.forEach(file ->{\n try\n {\n deletePathRecursivly(file);\n }\n catch (IOException e)\n {\n log.warn(\"Unable to delete [\" + file.toString() + \"]\");\n }\n }\n );\n sshd.stop();\n }\n catch (InterruptedException e)\n {\n log.error(\"Unable to stop ssdh.\", e);\n }\n\n }",
"private void exit() {\n audrey.setExtractingSample(false);\n // If we just extracted argument samples, let the following event know that we're done with\n // arguments.\n instrumentationContext.setLookingForFirstStatement(false);\n }",
"@After\n public void afterScenario(Scenario scenario)throws IOException {\n if(scenario.isFailed()){\n scenario.write(\"The API Url is:\" + APIUrl);\n String s = response.body().prettyPrint();\n scenario.embed(s.getBytes(),\"text/html\");\n logger.error(\"Scenario :\"+scenario.getName() +\"Ended....And STATUS IS: \"+scenario.getStatus());\n }else {\n String s = response.body().prettyPrint();\n scenario.write(\"API URL is \"+APIUrl);\n scenario.embed( s.getBytes(),\"text/html\");\n logger.info(\"Scenario :\"+scenario.getName() +\"Ended....And STATUS IS: \"+scenario.getStatus());\n }\n }",
"public void scenarioDestroyed(int index);",
"public void exitSimulation() {\n\t\t// Save the UI configuration.\n//\t\tUIConfig.INSTANCE.saveFile(this);\n\n\t\t// Save the simulation.\n//\t\tSimulation sim = Simulation.instance();\n//\t\ttry {\n//\t\t\tmasterClock.setSaveSim(Simulation.SAVE_DEFAULT, null);\n//\t\t} catch (Exception e) {\n//\t\t\tlogger.log(Level.SEVERE, Msg.getString(\"MainWindow.log.saveError\") + e); //$NON-NLS-1$\n//\t\t\te.printStackTrace(System.err);\n//\t\t}\n\t\t\n\t\tendSimulationClass();\n\t\tmasterClock.exitProgram();\n\t\tSystem.exit(0);\n\t\tdestroy();\n\t}",
"@Override\n public synchronized void stopLogging() {\n stopLogging = true;\n\n try {\n myOutputWriter.close();\n myErrorWriter.close();\n } catch (IOException e) {\n System.err.println(\"Error closing the output stream.\");\n e.printStackTrace();\n }\n }",
"public void stopEngine() {\n\t\trootElement.setAttribute(\"Finish\", returnDate());\n\t\tupdateTestMetrics();\n\t\tsaveXMLFile();\n\t}",
"void afterEachOnFailure(Scenario scenario);",
"void stop( String profileId );"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The delivery stream type. This parameter can be one of the following values: DirectPut: Provider applications access the delivery stream directly. KinesisStreamAsSource: The delivery stream uses a Kinesis data stream as a source. | public CreateDeliveryStreamRequest withDeliveryStreamType(String deliveryStreamType) {
setDeliveryStreamType(deliveryStreamType);
return this;
} | [
"public void setDeliveryStreamType(String deliveryStreamType) {\n this.deliveryStreamType = deliveryStreamType;\n }",
"public String getDeliveryStreamType() {\n return this.deliveryStreamType;\n }",
"public void setDeliveryStreamName(String deliveryStreamName) {\n this.deliveryStreamName = deliveryStreamName;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"decrypted\", value = \"Optionally specify a media type to stream. If `decrypted` selected, Telnyx will decrypt incoming SIP media before forking to the target. `rx` and `tx` are required fields if `decrypted` selected.\")\n @JsonProperty(JSON_PROPERTY_STREAM_TYPE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public StreamTypeEnum getStreamType() {\n return streamType;\n }",
"public CreateDeliveryStreamRequest withDeliveryStreamType(DeliveryStreamType deliveryStreamType) {\n this.deliveryStreamType = deliveryStreamType.toString();\n return this;\n }",
"public String getDeliveryStreamName() {\n return this.deliveryStreamName;\n }",
"public void setDeliveryType(String deliveryType) {\n this.deliveryType = deliveryType;\n }",
"public String getDeliveryType() {\n return deliveryType;\n }",
"public StreamType getStreamType()\n {\n return st;\n }",
"StreamType streamType();",
"public String getStrSinkType() {\n return strSinkType;\n }",
"public CreateDeliveryStreamRequest withKinesisStreamSourceConfiguration(KinesisStreamSourceConfiguration kinesisStreamSourceConfiguration) {\n setKinesisStreamSourceConfiguration(kinesisStreamSourceConfiguration);\n return this;\n }",
"public String getDeliverytype() {\n return deliverytype;\n }",
"public void setTypeOfDelivery (java.lang.String typeOfDelivery) {\n\t\tthis.typeOfDelivery = typeOfDelivery;\n\t}",
"protected abstract String getSinkType();",
"public void setClickStreamType(java.lang.String clickStreamType) {\r\n this.clickStreamType = clickStreamType;\r\n }",
"public void setStrSinkType(final String strSinkType) {\n this.strSinkType = strSinkType;\n }",
"public String getDestinationType() {\n return destinationType;\n }",
"public StreamSource getStreamSource() {\n\t\treturn streamSource;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
converts MEs into IO and returns list for each diary entry | public ArrayList<String> getIOList(){
ArrayList<String> ioList = new ArrayList<String>(diary.size());
for(int i=0; i<diary.size(); i++){
String me = diary.get(i).get(meAtt);
if(me.equals("outdoor")||me.equals("transport"))
ioList.add("outdoor");
else
ioList.add("indoor");
}
return ioList;
} | [
"public static ArrayList<MonHoc> dsMonHoc() {\n ArrayList<MonHoc> dsmonhoc = new ArrayList<MonHoc>();\n try {\n FileInputStream f = new FileInputStream(\"monhoc.dat\");\n ObjectInputStream in = new ObjectInputStream(f);\n MonHoc mon1 = new MonHoc();\n mon1 = (MonHoc) in.readObject();\n while (mon1 != null) {\n dsmonhoc.add(mon1);\n mon1 = (MonHoc) in.readObject();\n }\n in.close();\n f.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return dsmonhoc;\n }",
"java.util.List<org.jow.common.msg.MsgDef.DHutItem> \n getIemList();",
"private ArrayList<String> getAllDataFiles(String typeName) throws IOException {\n String command = \"ls | grep -e \" + typeName + \"\\\\$[0-9]\";\n String[] args = new String[] {\"/bin/bash\", \"-c\", command, \"with\", \"args\"};\n Process process = new ProcessBuilder(args).start();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n ArrayList<String> output = new ArrayList<>();\n String line = null;\n while ( (line = reader.readLine()) != null) output.add(line);\n return output;\n }",
"Collection<Entry> loadEntries() throws IOException;",
"public ObservableList<MTable> getMTableList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n int pc = 0;\n //String.format(\"0x%08X\", decimal)\n String line = null;\n while ((line = reader.readLine()) != null) {\n String temp = String.format(\"0x%08X\", pc);\n Mlist.add(new MTable(temp, line, assemblyCode.get(pc / 4),OriginalCode.get(pc/4)));\n pc = pc + 4;\n }\n if (Mlist.isEmpty()) {\n Mlist.add(new MTable(\"\", \"\", \"\",\" \"));\n }\n return Mlist;\n }",
"public void inputFromFile(){\r\n\r\n try {\r\n\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(\"smallHardwareDatabase.dat\"));\r\n smallHardwares = (ArrayList<SmallHardware>) in.readObject();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n try {\r\n\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(\"appliancesDatabase.dat\"));\r\n appliances = (ArrayList<Appliance>) in.readObject();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private LinkedList<String> getSadEmoticons() throws IOException{\n\t\tFile happy = new File(main_folder+\"datasets/sadEmoticons\");\n\t\tBufferedReader brdr2 = new BufferedReader(new FileReader(happy));\n\t\tLinkedList<String> hemo = new LinkedList<String>();\n\t\tString line;\n\t\twhile ((line=brdr2.readLine()) != null)\n\t\t\themo.add(line);\n\t\tbrdr2.close();\n\t\treturn hemo;\n\t}",
"private LinkedList<String> getHappyEmoticons() throws IOException{\n\t\tFile happy = new File(main_folder+\"datasets/happyEmoticons\");\n\t\tBufferedReader brdr2 = new BufferedReader(new FileReader(happy));\n\t\tLinkedList<String> hemo = new LinkedList<String>();\n\t\tString line;\n\t\twhile ((line=brdr2.readLine()) != null)\n\t\t\themo.add(line);\n\t\tbrdr2.close();\n\t\treturn hemo;\n\t}",
"public static ArrayList<Medicine> readMedicine()\n {\n ArrayList<Medicine> newMedicine = new ArrayList<>();\n \n \n try\n {\n FileReader fread = new FileReader(\"Medicine.txt\");\n BufferedReader bread = new BufferedReader(fread);\n \n String Med = \"1\";\n\n while ((Med = bread.readLine()) != null) {\n \n Medicine user = new Medicine(Med);\n newMedicine.add(user); \n }\n bread.close();\n fread.close(); \n } \n catch(Exception error)\n {\n System.out.println(\"Error\" + error);\n }\n \n return (newMedicine);\n }",
"public ArrayList<Map<String, String>> read() {\n\n ArrayList<Map<String, String>> exonList = new ArrayList<>();\n\n try (BufferedReader reader = new BufferedReader(new FileReader(new File(\"/Users/Shawn/Desktop/VCF/wgEncodeGencodeBasicV17.txt\")));){\n\n String line = null;\n while ((line = reader.readLine()) != null) {\n Map<String, String> exon = new HashMap<>();\n\n // this txt file is a tab-delimited format\n String[] va = line.split(\"\\t\");\n\n // get chromosomal, number of exons, start position and end position fo each exon region\n String chromo = va[2].substring(3);\n String numExon = va[8];\n String exonStarts = va[9];\n String exonEnds = va[10];\n\n exon.put(\"chromo\",chromo);\n exon.put(\"num\", numExon);\n exon.put(\"starts\", exonStarts);\n exon.put(\"ends\", exonEnds);\n\n exonList.add(exon);\n }\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return exonList;\n }",
"public Collection getMeemEntries() {\r\n\t\tif(entryOfs == null) return Collections.EMPTY_LIST;\r\n\t\treturn entryOfs.values();\r\n\t}",
"void loadMESHOMIM2DOMappings() throws IOException {\n\n // download the disease Ontology File, or use an existing one\n File doobo = new File( WRITE_FOLDER + File.separator + \"doid.obo\" );\n if ( doobo.exists() && doobo.canRead() ) {\n log.info( \"Using existing doid.obo file for getting MESH and OMIM mappings to DOID\" );\n } else {\n log.info( \"Downloading doid.obo file for getting MESH and OMIM mappings to DOID\" );\n downloadFileFromWeb( DISEASE_ONT_PATH, DISEASE_ONT_OBO_FILE, WRITE_FOLDER, \"doid.obo\" );\n }\n\n Set<String> omimIds = new HashSet<>();\n Set<String> meshIds = new HashSet<>();\n String valueUri = null;\n\n try ( BufferedReader br = new BufferedReader( new FileReader( doobo ) ) ) {\n\n String line;\n\n boolean foundTerm = false;\n\n while ( ( line = br.readLine() ) != null ) {\n\n String[] tokens;\n\n line = line.trim();\n\n // found a term\n if ( line.equalsIgnoreCase( \"[Term]\" ) ) {\n foundTerm = true;\n valueUri = null;\n omimIds = new HashSet<>();\n meshIds = new HashSet<>();\n } else if ( foundTerm ) {\n\n if ( line.startsWith( \"id:\" ) ) {\n\n tokens = line.split( \":\" );\n\n String diseaseId = tokens[2].trim();\n // will throw exception if a number is not found\n //noinspection ResultOfMethodCallIgnored // Called for the possible exception\n Integer.parseInt( diseaseId );\n // disease id\n valueUri = \"http://purl.obolibrary.org/obo/DOID_\" + diseaseId;\n\n } else if ( line.contains( \"xref: OMIM\" ) ) {\n tokens = line.split( \":\" );\n omimIds.add( tokens[2].trim() );\n } else if ( line.contains( \"xref: MSH\" ) || line.contains( \"xref: MESH\" ) ) {\n tokens = line.split( \":\" );\n meshIds.add( tokens[2].trim() );\n }\n\n // end of a term\n else if ( line.equalsIgnoreCase( \"\" ) ) {\n\n foundTerm = false;\n\n for ( String omimId : omimIds ) {\n\n Set<String> h = new HashSet<>();\n String key = \"OMIM:\" + omimId;\n\n h = checkAndAddValue( valueUri, h, key );\n omimAndmesh2DO.put( key, h );\n }\n\n for ( String meshId : meshIds ) {\n\n String key = \"MESH:\" + meshId;\n\n Set<String> h = new HashSet<>();\n\n h = checkAndAddValue( valueUri, h, key );\n omimAndmesh2DO.put( key, h );\n }\n }\n }\n }\n }\n }",
"private Object read(InputNode node, Collection list) throws Exception { \n InputNode from = node.getParent();\n String name = node.getName();\n \n while(node != null) {\n Class type = entry.getType();\n Object item = read(node, type);\n \n if(item != null) {\n list.add(item);\n } \n node = from.getNext(name);\n }\n return list;\n }",
"public ArrayList<ArrayList<String>> getDosageInformation(){\n // Declare and Initialize variables\n ArrayList<ArrayList<String>> dosages = new ArrayList<>();\n // If there is no composite medication information\n if (indiceCompositeMedication == -1){\n return null;\n }\n\n int lengthMedications = 0;\n\n // determinate length of medications\n if(indiceAdditionalNotes != -1){\n lengthMedications = indiceAdditionalNotes - (indiceCompositeMedication + 1); // (indiceCompositeMedication + 1) => exclude the composite part\n } else {\n lengthMedications = documentsEntrys.size() - (indiceCompositeMedication + 1); // (indiceCompositeMedication + 1) => exclude the composite part\n }\n\n // iterate through all medications\n for (int i = 0; i < lengthMedications; i += 2) {\n // Declare and Initialize variables\n ArrayList<String> dosage = new ArrayList<>();\n\n // Get information from HL7 FHIR document\n NodeList nList_medicationStatementReference = documentsEntrys.get((indiceCompositeMedication + 1) + i).getElementsByTagName(IDENTIFIER);\n NodeList nList_medicationStatementMedicationReference = documentsEntrys.get((indiceCompositeMedication + 1) + i).getElementsByTagName(MEDICATIONREFERENCE);\n NodeList nList_medicationStatementDosage = documentsEntrys.get((indiceCompositeMedication + 1) + i).getElementsByTagName(DOSAGE);\n\n // Add section to medicationStatement reference\n String medicationStatementReference = util.XML.searchHierarchyByAttribute(nList_medicationStatementReference, VALUE);\n if (!util.String.isEmpty(medicationStatementReference)){\n dosage.add(0, medicationStatementReference);\n } else {\n dosage.add(0, EMPTYSTRING);\n //logger.log(Level.FINEST, \"The section to medicatinStatement reference of medication is unknown!\");\n }\n\n // Add medicationStatement to medicaiton reference\n String medicationStatementMedicationReference = util.XML.searchHierarchyByAttribute(nList_medicationStatementMedicationReference, REFERENCE);\n if (!util.String.isEmpty(medicationStatementMedicationReference)){\n dosage.add(1, medicationStatementMedicationReference);\n } else {\n dosage.add(1, EMPTYSTRING);\n //logger.log(Level.FINEST, \"The medicationStatement to medication reference of medication is unknown!\");\n }\n\n String freeText = util.XML.searchHierarchyByAttribute(nList_medicationStatementDosage, TEXT);\n if(!util.String.isEmpty(freeText)){\n dosage.add(2, freeText);\n //logger.log(Level.FINEST, \"The dosages have no time, but also a free text to the medication\");\n } else {\n // Saves the count of passage. It is needed to get the right position from the value. This is because the information is stored in 12 steps at each time you take it\n int passage = 0;\n\n // Iterate through each doses\n for (int j = 0; j < nList_medicationStatementDosage.getLength(); j++) {\n\n // set position of move position\n int movePosition;\n\n // Get the next position of the variable. Because it is stored in 12 steps\n movePosition = 12 * passage;\n\n // Get information from HL7 FHIR document\n NodeList nList_dosageWhen = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"when\");\n NodeList nList_asNeeded = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"asNeededBoolean\");\n NodeList nList_quantityQuantity = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"quantityQuantity\");\n NodeList nList_quantityRange = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"quantityRange\");\n NodeList nList_text = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(TEXT);\n NodeList nList_low = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"low\");\n NodeList nList_high = ((Element) nList_medicationStatementDosage.item(j)).getElementsByTagName(\"high\");\n\n // Add time of dosage\n String dosageWhen;\n if (nList_dosageWhen.getLength() != 0) {\n dosageWhen = ((Element) nList_dosageWhen.item(0)).getAttribute(VALUE);\n } else {\n dosageWhen = null;\n }\n\n // Add the information when the dosage should take\n if (!util.String.isEmpty(dosageWhen)) {\n dosage.add(2 + movePosition, dosageWhen);\n } else {\n dosage.add(2 + movePosition, EMPTYSTRING);\n //logger.log(Level.FINEST, \"The time of dosage is unknown!\");\n }\n\n // Add information of needed\n String asNeeded;\n if (nList_asNeeded.getLength() != 0) {\n asNeeded = ((Element) nList_asNeeded.item(0)).getAttribute(VALUE);\n } else {\n asNeeded = null;\n }\n\n // Add the information about if the dose should be taken as needed or not\n if (!util.String.isEmpty(asNeeded)) {\n dosage.add(3 + movePosition, asNeeded);\n } else {\n dosage.add(3 + movePosition, EMPTYSTRING);\n //logger.log(Level.FINEST, \"It is unknown if the dose should be taken as needed or not!\");\n }\n\n if (nList_quantityQuantity.getLength() != 0) { //case \"quantityQuantity\"\n // Set the dosage of type quantityQuantity\n dosage = setDosageQuantityQuantity(dosage, movePosition, nList_quantityQuantity);\n } else if (nList_quantityRange.getLength() != 0) { // case \"quantityRange\"\n // Set the dosage of type quantityRange\n dosage = setDosageQuantityRange(dosage, movePosition, nList_low, nList_high);\n } else if (nList_text.getLength() != 0) { // case TEXT\n // Set the dosage of type free text\n dosage = setDosageFreeText(dosage, movePosition, nList_text);\n } else {\n // Set no dosage. This case should not be visited normally\n dosage = setNoDosage(dosage, movePosition);\n }\n\n // increase passage\n passage += 1;\n }\n }\n\n // add medication to medications and increase medicationsPosition\n if(i == 0) {\n dosages.add(0, dosage);\n } else {\n dosages.add(i / 2, dosage);\n }\n }\n\n return dosages;\n }",
"private List<McuDeviceList> getMcuListfromFile(int deviceMeter) {\n \ttry{\n \t\tList<String > mdsIDList = new ArrayList<String>();\n \t FileReader fr = null;\n \t BufferedReader br = null;\n \t \n \t log.debug(\"current dir\" + new File(\".\").getAbsolutePath());\n \t \n\t try {\n\t\t fr = new FileReader(_filepath);\n\t\t \n\t \t br = new BufferedReader(fr);\n\t \t \n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \tmdsIDList.add(line);\n\t\t } \t\t \t\t\n \n\t } catch (Exception e) {\n\t \tlog.debug(e.getMessage());\n\t } finally {\n\t try {\n\t br.close();\n\t fr.close();\n\t } catch (Exception e) {\n\t \tlog.debug(e.getMessage());\n\t }\n\t }\t \n\t \n\t \tlog.debug(\"getMcuListfromFile(mdsIDList[\" + mdsIDList.size() + \"])\");\n\t \tList<McuDeviceList> mcuList = new ArrayList<McuDeviceList>();\n\n\t \tint idx = 0;\n\t for (idx=0; idx < mdsIDList.size(); idx++) {\n\t\t\t\tMeter meter = meterDao.get(mdsIDList.get(idx));\n\t\t\t\tModem modem = meter.getModem();\n\t\t\t\tif (modem == null) {\n\t\t\t\t\tlog.debug(\"Meter[\" + mdsIDList.get(idx) + \"] . Modem is null .\");\n\t \t\tcontinue;\n\t \t}\n\t\t\t\tMCU mcu = modem.getMcu();\n\n\t\t\t\tif (mcu != null) {\n\t\t\t\t\tlog.debug(\"MCU[\" + mcu.getId() + \"] . Meter[\" + meter.getMdsId() + \"] . Modem[\" + modem.getDeviceSerial() + \"] .\");\n\t\t\t\t\tint i;\n\t\t\t\t\tfor (i = 0; i < mcuList.size(); i++) {\t// Search the same mcu.\n\t\t\t\t\t\tif ( mcuList.get(i).mcuId.compareTo(mcu.getId())==0 ) { \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (i < mcuList.size()) {\t// find!\n\t\t\t\t\t\tlog.debug(\"MCU[\" + mcu.getId() + \"] has been already listed. Meter[\" + meter.getMdsId() + \"],Modem[\" + modem.getDeviceSerial() + \" is added.\");\n\t\t\t\t\t\tif ( deviceMeter==1 ){\t// meter\n\t\t\t\t\t\t\tmcuList.get(i).deviceIdList.add(meter.getMdsId());\n\t\t\t\t\t\t} else {\t// modem\n\t\t\t\t\t\t\tmcuList.get(i).deviceIdList.add(modem.getDeviceSerial());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tMcuDeviceList mml = new McuDeviceList();\n\t\t\t\t\tmml.mcuId = mcu.getId();\n\t\t\t\t\tmml.deviceIdList = new ArrayList<String>();\n\t\t\t\t\tif ( deviceMeter==1 ){\t// meter\n\t\t\t\t\t\tmml.deviceIdList.add(meter.getMdsId());\n\t\t\t\t\t}else{\t// modem\n\t\t\t\t\t\tmml.deviceIdList.add(modem.getDeviceSerial());\n\t\t\t\t\t}\n\t\t\t\t\tmml.meterMdsId = meter.getMdsId();\n\t\t\t\t\tmcuList.add(mml);\n\t\t\t\t}\n\t }\n\t return mcuList;\n \t}\n catch (Exception e) {\n \tlog.debug(e.getMessage());\n \treturn null;\n } \t\n }",
"public ArrayList<DisplayFormat> getMaterialData(){\n\t\tArrayList<DisplayFormat> out = new ArrayList<DisplayFormat>();\n\t\tfor(Material u : library.getMaterialCatalogue().getMaterials()) {\n\t\t\tout.add(compileMaterialData(u));\n\t\t}\n\t\treturn out;\n\t}",
"public List<Good> getListFromDataControlMemory();",
"private ArrayList<String> getIdsFromMIO(Probe p) {\n\t\t// the result object\n\t\tArrayList<String> ids = new ArrayList<String>();\n\t\t\n\t\t// get the IdType\n\t\tString idType = idModifier.getIdType();\n\t\t\n\t\t// get the group where to look for ids\n\t\tMIGroup miGroup = MIGROUP2modifier.get(miGroupSetting).getMIGroup4IdType(idType);\n\t\t\n\t\t// if there is one miGroup\n\t\tif(miGroup == null)\n\t\t\treturn ids;\n\t\t\n\t\t// get the MIO that stores the ids\n\t\tMIType miType =\tmiGroup.getMIO(p);\n\t\t\n\t\t// check its type - actually not necessary since getMIGroup4IdType returns instances of StringListMIO\n\t\tif (miType instanceof IdSetMIO) {\n\t\t\tIdSetMIO idSetMIO = (IdSetMIO) miType;\n\t\t\tfor(String id : idSetMIO.getValue()) {\n\t\t\t\tids.add(idModifier.manufactureId(id));\n\t\t\t}\n\t\t} else \n\t\t\tif (miType instanceof StringMIO) {\n\t\t\t\tStringMIO idSetMIO = (StringMIO) miType;\n\t\t\t\tids.add(idSetMIO.getValue());\n\t\t\t}\n\t\t\n\t\treturn ids;\n\t}",
"public void readList() {\n\t\tfor (int i = 0; i < codesList.size(); i++) {\n\t\t\tcodesList.get(i).readDiagnosis();\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a Custom Brand using Robot | public long createCustomBrand(WebDriver driver, String title, Boolean ifAgeUnder, Boolean ifAgeOver, Robot robot) throws AWTException, InterruptedException, IOException
{
long fingerprint = System.currentTimeMillis();
By browse, upload;
// try {
int i = 0;
while (((! driver.getCurrentUrl().endsWith(String.valueOf(fingerprint))) || (i == 0)) && (i < 25)) {
getUrlWaitUntil(driver, 15, Drupal.customBrand);
waitUntilElementPresence(driver, 15, By.id(Drupal.title), "Title", new Exception().getStackTrace()[0]);
driver.findElement(By.id(Drupal.title)).clear();
driver.findElement(By.id(Drupal.title)).sendKeys(title);
driver.findElement(By.xpath(Drupal.description)).clear();
driver.findElement(By.xpath(Drupal.description)).sendKeys("This is \"" + title + "\" Description");
if (ifAgeUnder) { driver.findElement(By.id("edit-field-age-group-und-1")).click(); }
if (ifAgeOver) { driver.findElement(By.id("edit-field-age-group-und-2")).click(); }
driver.findElement(By.id(Drupal.keywords)).clear();
driver.findElement(By.id(Drupal.keywords)).sendKeys(title + " (keywords)");
driver.findElement(By.xpath(Drupal.characterBannerVerticalTab)).click();
browse = By.xpath(Drupal.characterBannerBrowse);
upload = By.xpath(Drupal.characterBannerUpload);
uploader(driver, "bubble.jpg", browse, upload, robot);
driver.findElement(By.xpath(Drupal.heroBoxVerticalTab)).click();
browse = By.xpath(Drupal.heroBoxBrowse);
upload = By.xpath(Drupal.heroBoxUpload);
uploader(driver, "hero.jpg", browse, upload, robot);
driver.findElement(By.xpath(Drupal.tileVerticalTab)).click();
browse = By.xpath(Drupal.tileSmallBrowse);
upload = By.xpath(Drupal.tileSmallUpload);
uploader(driver, "small.jpg", browse, upload, robot);
driver.findElement(By.xpath(Drupal.tileVerticalTab)).click();
browse = By.xpath(Drupal.tileLargeBrowse);
upload = By.xpath(Drupal.tileLargeUpload);
uploader(driver, "large.jpg", browse, upload, robot);
i = contentSubmit(driver, i, fingerprint);
}
// } catch(Exception e) { getScreenShot(new Exception().getStackTrace()[0], e, driver); } finally { return fingerprint; }
return fingerprint;
} | [
"@Test\n public void createBrandTest() throws ApiException {\n Brand brand = null;\n Brand response = api.createBrand(brand);\n // TODO: test validations\n }",
"@Test(groups = {\"TC-35153\",\"TC-35131\"}, priority = 4)\n\tpublic void testCustomBrandDescriptionIsMandatory() throws IOException, IllegalArgumentException, MalformedURLException {\n\t try{\n\t\t // INITIALISATION:\n\t helper.printXmlPath(new RuntimeException().getStackTrace()[0]);\n\t driver = helper.getServerName(driver);\n\t\n\t // DECLARATION:\n\t String expectedURL, title;\n\t \n\t // LOGIN TO DRUPAL AS A CONTENT EDITOR:\n\t helper.logIn(driver,\"content_editor\",\"changeme\");\n\t \n\t // NAVIGATE TO A NEW CUSTOM BRAND PAGE:\n\t helper.getUrlWaitUntil(driver, 10, Drupal.customBrand);\n\t driver.manage().window().maximize();\n\t \n\t // CREATE TITLE FOR CONTENT:\n\t long fingerprint = System.currentTimeMillis();\n\t title = String.valueOf(fingerprint) + \" \" + helper.randomText(Drupal.titleMaxCharsNumber + 10);\n\t\n\t // CREATE CONTENT WITH NO DESCRIPTION:\n\t helper.createCustomBrand(driver, title, \"\", true, true, true, new Exception().getStackTrace()[0]);\n\t \n\t // ASSERT CONTENT URL DID NOT CHANGE:\n\t expectedURL = Drupal.customBrand;\n\t helper.checkCurrentURL(driver, new Exception().getStackTrace()[0], expectedURL);\n\t \n\t // ASSERT ERROR MESSAGE APPEARS:\n\t driver.findElement(By.id(Drupal.submit)).click();\n\t helper.assertWebElementExist(driver, new Exception().getStackTrace()[0], Drupal.errorDescription);\n\t \n\t } catch(Exception e) { helper.getExceptionDescriptive(e, new Exception().getStackTrace()[0], driver); }\n\t }",
"@Test(groups = {\"TC-35131\",\"TC-35153\"}, priority = 2)\n\tpublic void testCustomBrandTitleIsMandatory() throws IOException, IllegalArgumentException, MalformedURLException {\n\t try{\n\t\t // INITIALISATION:\n\t helper.printXmlPath(new RuntimeException().getStackTrace()[0]);\n\t driver = helper.getServerName(driver);\n\t\n\t // DECLARATION:\n\t String expectedURL, title, description;\n\t \n\t // LOGIN TO DRUPAL AS A CONTENT EDITOR:\n\t helper.logIn(driver,\"content_editor\",\"changeme\");\n\t \n\t // NAVIGATE TO A NEW CUSTOM BRAND PAGE:\n\t helper.getUrlWaitUntil(driver, 10, Drupal.customBrand);\n\t driver.manage().window().maximize();\n\t \n\t // PREPARE CONTENT ENTRY:\n\t title = \"\";\n\t description = helper.randomEnglishText(helper.randomInt(125, (Drupal.descriptionMaxCharsNumber - 1)));\n\t \n\t // CREATE CONTENT WITH NO DESCRIPTION:\n\t helper.createCustomBrand(driver, title, description, true, true, true, new Exception().getStackTrace()[0]);\n\t \n\t // ASSERT CONTENT URL DID NOT CHANGE:\n\t expectedURL = Drupal.customBrand;\n\t helper.checkCurrentURL(driver, new Exception().getStackTrace()[0], expectedURL);\n\t \n\t // ASSERT ERROR MESSAGE APPEARS:\n\t driver.findElement(By.id(Drupal.submit)).click();\n\t helper.assertWebElementExist(driver, new Exception().getStackTrace()[0], Drupal.errorTitle);\n\t \n\t } catch(Exception e) { helper.getExceptionDescriptive(e, new Exception().getStackTrace()[0], driver); }\n\t }",
"public long createCustomBrand(WebDriver driver, String title, Boolean ifAgeUnder, Boolean ifAgeOver, Robot robot, long fingerprint) throws AWTException, InterruptedException, IOException\n\t {\n\t By browse, upload;\n// try {\n \t int i = 0;\n \t while (((! driver.getCurrentUrl().contains(String.valueOf(fingerprint))) || (i == 0)) && (i < 25)) {\n getUrlWaitUntil(driver, 15, Drupal.customBrand);\n\t\t\twaitUntilElementPresence(driver, 15, By.id(Drupal.title), \"Title\", new Exception().getStackTrace()[0]);\n\t\t\t\n\t\t\tdriver.findElement(By.id(Drupal.title)).clear();\n\t\t\tdriver.findElement(By.id(Drupal.title)).sendKeys(title);\n\t\t\t\n\t\t\tdriver.findElement(By.xpath(Drupal.description)).clear();\n\t\t\tdriver.findElement(By.xpath(Drupal.description)).sendKeys(\"This is \\\"\" + title + \"\\\" Description\");\n\n\t\t\tif (ifAgeUnder) { driver.findElement(By.id(\"edit-field-age-group-und-1\")).click(); }\n\t\t\tif (ifAgeOver) { driver.findElement(By.id(\"edit-field-age-group-und-2\")).click(); }\n\t\t\t\n\t\t\tdriver.findElement(By.id(Drupal.keywords)).clear();\n\t\t\tdriver.findElement(By.id(Drupal.keywords)).sendKeys(title + \" (keywords)\");\n\t\t\t\n\t\t\tdriver.findElement(By.xpath(Drupal.characterBannerVerticalTab)).click();\n\t\t\tbrowse = By.xpath(Drupal.characterBannerBrowse);\n\t\t\tupload = By.xpath(Drupal.characterBannerUpload);\t\t\t\t\t\n\t\t\tuploader(driver, \"bubble.jpg\", browse, upload, robot, \"thumbnail\");\n\t\t\t\n\t\t driver.findElement(By.xpath(Drupal.heroBoxVerticalTab)).click();\n\t\t\tbrowse = By.xpath(Drupal.heroBoxBrowse);\n\t\t\tupload = By.xpath(Drupal.heroBoxUpload);\n\t\t\tuploader(driver, \"hero.jpg\", browse, upload, robot, \"image\");\n\t\t \n\t\t driver.findElement(By.xpath(Drupal.tileVerticalTab)).click();\n\t\t\tbrowse = By.xpath(Drupal.tileSmallBrowse);\n\t\t\tupload = By.xpath(Drupal.tileSmallUpload);\n\t\t\tuploader(driver, \"small.jpg\", browse, upload, robot, \"image\");\n\t\t \n\t\t driver.findElement(By.xpath(Drupal.tileVerticalTab)).click();\n\t\t\tbrowse = By.xpath(Drupal.tileLargeBrowse);\n\t\t\tupload = By.xpath(Drupal.tileLargeUpload);\n\t\t\tuploader(driver, \"large.jpg\", browse, upload, robot, \"image\");\n\n\t\t\ti = contentSubmit(driver, fingerprint, i);\t\t\t\n }\n//\t\t } catch(Exception e) { getScreenShot(new Exception().getStackTrace()[0], e, driver); } finally { return fingerprint; }\n return fingerprint;\t\n\t }",
"public void setBrand() throws Exception {\n String res = \"\";\n int start = 0;\n int end = 0;\n\n //obtain the brand from macvendors api\n String url = \"https://macvendors.co/api/\" + MAC;\n try {\n JSONObject jsonObject = IPUtil.readJsonFromUrl(url);\n res = jsonObject.getString(\"result\");\n start = res.indexOf(\"\\\":\\\"\");\n end = res.indexOf(\"\\\",\\\"\");\n } catch (Exception e) {\n e.printStackTrace();\n brand = \"-\";\n return;\n } finally {\n if (start != -1 || end != -1) {\n try {\n brand = res.substring(start + 3, end);\n } catch (Exception e) {\n brand = \"-\";\n return;\n }\n } else {\n brand = \"-\";\n }\n }\n\n //set device's type\n String helper1 = brand.toLowerCase();\n for (String b : phone) {\n String helper2 = b.toLowerCase();\n if (helper1.contains(helper2)) {\n brand = b;\n type = \"phone\";\n }\n }\n\n for (String p : pc) {\n String helper2 = p.toLowerCase();\n if (helper1.contains(helper2)) {\n brand = p;\n type = \"pc\";\n }\n }\n\n if (IP.endsWith(\".1\")) {\n type = \"router\";\n return;\n }\n\n }",
"private void setBrand(String brand) {\n\t\tthis.brand = brand;\n\t}",
"public void setBrand(String brand) {\n this.brand = brand;\n }",
"public Builder setDevicebrand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n devicebrand_ = value;\n onChanged();\n return this;\n }",
"public void setBrand (String brandIn)\r\n\t{\r\n\t\tbrand = brandIn;\r\n\t}",
"@Test(groups = {\"TC-35131\"}, priority = 1)\n public void testCustomBrandFieldsExist() throws IOException, IllegalArgumentException, MalformedURLException {\n try{\n \t // INITIALISATION:\n helper.printXmlPath(new RuntimeException().getStackTrace()[0]);\n driver = helper.getServerName(driver); \n \n // LOGIN TO DRUPAL AS A CONTENT EDITOR:\n helper.logIn(driver,\"content_editor\",\"changeme\");\n \n // NAVIGATE TO A NEW CUSTOM BRAND PAGE:\n helper.getUrlWaitUntil(driver, 10, Drupal.customBrand);\n \n \t // ASSERT EXISTANCE:\n helper.assertWebElementExist(driver, Drupal.title, new RuntimeException().getStackTrace()[0]);\n helper.assertWebElementExist(driver, Drupal.brandPageDescriptionID, new RuntimeException().getStackTrace()[0]);\n helper.assertWebElementExist(driver, Drupal.ageGroup5, new RuntimeException().getStackTrace()[0]);\n helper.assertWebElementExist(driver, Drupal.ageGroup6, new RuntimeException().getStackTrace()[0]);\n helper.assertWebElementExist(driver, Drupal.keywords, new RuntimeException().getStackTrace()[0]);\n \t \n } catch(Exception e) { helper.getExceptionDescriptive(e, new Exception().getStackTrace()[0], driver); }\n }",
"@Test(groups = {\"TC-35153\"}, priority = 6)\n public void testCustomBrandBothAgesFrontEndLocationAndLinkAreCorrect() throws IOException, IllegalArgumentException, MalformedURLException {\n\t try{\n\t \t // INITIALISATION:\n\t helper.printXmlPath(new RuntimeException().getStackTrace()[0]);\n\t driver = helper.getServerName(driver);\n\t \n\t // LOGIN TO DRUPAL AS A CONTENT EDITOR:\n\t helper.logIn(driver,\"content_editor\",\"changeme\");\n\t \n\t // CLEAN-UP:\n//\t helper.deleteAllContent(driver, \"\", \"\", \"\", new RuntimeException().getStackTrace()[0]);\n//\t helper.deleteAllContent(driver, \"Custom Brand\", \"\", \"\", new RuntimeException().getStackTrace()[0]);\n//\t helper.deleteAllContent(driver, \"Custom Brand\", \"\", \"content_editor\", new RuntimeException().getStackTrace()[0]);\n\t helper.deleteAllContent(driver, \"Custom Brand\", \"14\", \"content_editor\", new RuntimeException().getStackTrace()[0]);\n\t \n\t // NAVIGATE TO A NEW CUSTOM BRAND PAGE:\n\t helper.getUrlWaitUntil(driver, 10, Drupal.customBrand);\n\t \n\t // DECLARATION:\n\t String title, titleURL, description, xpath, expectedURL;\n\t \n\t // CREATE TITLE FOR CONTENT:\n\t long fingerprint = System.currentTimeMillis();\n\t title = String.valueOf(fingerprint) + \" \" + helper.randomWord(Drupal.titleMaxCharsNumber);\n\t titleURL = helper.reFormatStringForURL(title, Drupal.titleMaxCharsNumber);\n\t \n\t // CREATE DESCRIPTION FOR CONTENT:\n\t description = helper.randomEnglishText(helper.randomInt((Drupal.descriptionMaxCharsNumber - 30), Drupal.descriptionMaxCharsNumber));\n\t \n\t // CREATE CONTENT WITH BOTH AGES SELECTED:\n\t helper.createCustomBrand(driver, title, description, true, true, true, new Exception().getStackTrace()[0]);\n\t \n\t // LINK GENERIC XPATH:\n\t xpath = \"//a[contains(@href,'\" + titleURL + Common.XpathContainsEnd;\n\t helper.fileWriterPrinter(\"\\n\" + \"LINK GENERIC XPATH = \" + xpath + \"\\n\");\n\t \n\t // NAVIGATE TO \"AGE 5 AND UNDER\":\n\t helper.getUrlWaitUntil(driver, 10, Common.fiveAndUnderURL);\n//\t xpath = Common.fiveAndUnderLinkBase + titleURL + Common.XpathEqualsEnd;\n\t helper.assertWebElementExist(driver, new Exception().getStackTrace()[0], xpath);\n\t \n\t // ASSERT LINK IS CORRECT:\n\t expectedURL = Common.fiveAndUnderURL + \"/\" + titleURL;\n\t helper.moveToElement(driver, xpath);\n\t helper.clickLinkAndCheckURL(driver, new Exception().getStackTrace()[0], xpath, expectedURL, false, true);\n\t \n\t // NAVIGATE TO \"AGE 6 AND OVER\":\n\t helper.getUrlWaitUntil(driver, 10, Common.sixAndOverURL);\n//\t xpath = Common.sixAndOverLinkBase + titleURL + Common.XpathEqualsEnd;\n\t helper.assertWebElementExist(driver, new Exception().getStackTrace()[0], xpath);\n\t \n\t // ASSERT LINK IS CORRECT:\n\t expectedURL = Common.sixAndOverURL + \"/\" + titleURL;\n\t helper.moveToElement(driver, xpath);\n\t helper.clickLinkAndCheckURL(driver, new Exception().getStackTrace()[0], xpath, expectedURL, false, true);\n\t \n\t } catch(Exception e) { helper.getExceptionDescriptive(e, new Exception().getStackTrace()[0], driver); }\n\t }",
"public void setBrand(String value) {\n setAttributeInternal(BRAND, value);\n }",
"public void setBrandName(String brand) {\r\n\t\tthis.brandName = brand;\r\n\t}",
"java.lang.String getBrand();",
"public static void createRobot() {\n\t\t\n\t\tSystem.out.println(\"Refer the manual before creation of a robot.\");\n\t}",
"void setBrandCode(java.lang.String brandCode);",
"com.exacttarget.wsdl.partnerapi.BrandTag addNewBrandTags();",
"public void agregarRobot(Robot robot);",
"String getBrandName();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove player id from associated team. | public void removeTeamPlayer( User player ) {
if ( !players.containsValue(player)) {
//if ( !players.contains(player) ) {
throw new IllegalArgumentException();
}
if ( Objects.equals(p1Id, player.getId()) ) {
p1Id = null;
team1Count--;
} else if ( Objects.equals(p2Id, player.getId()) ) {
p2Id = null;
team1Count--;
} else if ( Objects.equals(p3Id, player.getId()) ) {
p3Id = null;
team1Count--;
} else if ( Objects.equals(p4Id, player.getId()) ) {
p4Id = null;
team1Count--;
} else if ( Objects.equals(p5Id, player.getId()) ) {
p5Id = null;
team1Count--;
} else if ( Objects.equals(p6Id, player.getId()) ) {
p6Id = null;
team2Count--;
} else if ( Objects.equals(p7Id, player.getId()) ) {
p7Id = null;
team2Count--;
} else if ( Objects.equals(p8Id, player.getId()) ) {
p8Id = null;
team2Count--;
} else if ( Objects.equals(p9Id, player.getId()) ) {
p9Id = null;
team2Count--;
} else if ( Objects.equals(p10Id, player.getId()) ) {
p10Id = null;
team2Count--;
}
removePlayer(player);
} | [
"public void deleteTeam(Long teamId);",
"void remove(Team team);",
"void deletePlayerInfoByTeamAndPlayer(Team team, Player player);",
"public void removePlayer(Player player){\n players.remove(player);\n }",
"public void remove(){\r\n\t\tleave();\r\n\t\tcustomPlayers.remove(player);\r\n\t}",
"public void removePlayer(Player player) {\n String entry = player.getName();\n Team currentTeam = null;\n\n // Find player team.\n for (Team team : scoreboard.getTeams()) if (team.hasEntry(entry)) currentTeam = team;\n\n // If no team is found, do not continue.\n if (currentTeam == null) return;\n\n // Remove player from the team.\n currentTeam.removeEntry(entry);\n\n ////////////////////////////////////////////////\n // Begin checking to see if we can remove this\n // team from the scoreboard.\n ////////////////////////////////////////////////\n\n // Check if the team has players.\n if (currentTeam.getSize() >= 1) return;\n\n // Check if the team is a default preset.\n for (UserGroup userGroup : UserGroup.values()) {\n if (userGroup.getTeamName().equals(currentTeam.getName())) return;\n }\n\n // If the team has no players and is not a default\n // preset, then lets remove the team from the\n // scoreboard.\n removeTeam(currentTeam.getName());\n }",
"public void removePlayer() {\n playerMap.clear();\n }",
"public void removePlayer(Player player){\n playerList.remove(player);\n }",
"private void removePlayer(int playerID) {\n int match = playerID/1000; //this is the ID of the match\n GameManager manager = matches.get(match);\n if(manager.playersNumber()==2) {\n clock.interrupt();\n }\n nicknames.remove(manager.getNicknameById(playerID));\n manager.removePlayer(playerID);\n }",
"@Override\n public void deletePlayerById(Long id) {\n playerRepository.deleteById(id);\n }",
"private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"public synchronized void delPlayer(@NotNull PlayerInterface player) {\n\n for(BoardCell boardCell[] : board.getGrid()) {\n for(BoardCell b : boardCell) {\n if(b.getWorker() != null) {\n if(b.getWorker().getPlayerWorker().getNickname().equals(player.getNickname())) {\n b.setWorker(null);\n }\n }\n }\n }\n player.getWorkerRef().clear();\n for (int i = 0; i < onlinePlayers.size(); i++) {\n if(onlinePlayers.get(i).getNickname().equals(player.getNickname())) {\n if(started) {\n stateList.remove(i);\n onlinePlayers.remove(i);\n nickNames.remove(player.getNickname());\n }\n break;\n }\n }\n }",
"public void deleteLegionMember(final int playerObjId)\r\n\t{\r\n\t\tlegionMembers.remove(new Integer(playerObjId));\r\n\t}",
"public void deleteTeamById(UUID id) {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teamRepo.deleteById(id);\n }",
"public void removePlayer(Player player) {\n\n\t\tplayers.remove(player);\n\t}",
"void removeObjectFromPlayer(Player player);",
"void deleteTeam(Team team);",
"public void removeTeam(Team t) {\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n while (itr.hasNext()) {\r\n //Match to be removed\r\n if (itr.next().containsTeam(t)) {\r\n itr.remove();\r\n }\r\n }\r\n \r\n //Decremente the number of teams left\r\n Team.nbTeam--;\r\n }",
"public void removePlayerFromBoard(Player player) {\n playerLayer.setCell((int) player.getPosition().x, (int) player.getPosition().y, null);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ \brief Match a ConstantInt and bind to its value. This does not match / ConstantInts wider than 64bits. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/include/llvm/IR/PatternMatch.h", line = 387,
FQN="llvm::PatternMatch::m_ConstantInt", NM="_ZN4llvm12PatternMatch13m_ConstantIntERy",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/Transforms/Scalar/EarlyCSE.cpp -nm=_ZN4llvm12PatternMatch13m_ConstantIntERy")
//</editor-fold>
public static /*inline*/ bind_const_intval_ty m_ConstantInt_bind_ci_ty(final ulong$ref/*uint64_t &*/ V) {
return new bind_const_intval_ty(V);
} | [
"IntConstant createIntConstant();",
"Rule IntConstant() {\n // Push 1 IntConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n OneOrMore(Digit())),\n actions.pushIntConstNode());\n }",
"public T caseIntConstant(IntConstant object)\n {\n return null;\n }",
"public Object visitIntegerConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeInteger(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }",
"public T caseInTimeIntConstant(InTimeIntConstant object)\n {\n return null;\n }",
"public ElementConstantInteger(int value) {\r\n\t\tsuper();\r\n\t\tthis.value = value;\r\n\t}",
"public boolean hasConstantIntValue()\n {\n return false;\n }",
"public T caseAtTimeIntConstant(AtTimeIntConstant object)\n {\n return null;\n }",
"private IntConstant checkInteger(UnOp op) {\n if (val instanceof IntConstant) return (IntConstant)val;\n throw new EvalException(\"Unary operator `\" + op + \"' applied to non-integer \" + val);\n }",
"public Constant(int value){\r\n this.value = value;\r\n }",
"public static ConstantExpression constant(Object value) { throw Extensions.todo(); }",
"public Constant (int value){\r\n this.value = value;\r\n\r\n }",
"private IntConstant evalIntegerArg(AST arg, BinOp b) {\n JamVal val = arg.accept(Evaluator.this);\n if (val instanceof IntConstant) return (IntConstant)val;\n throw new EvalException(\"Binary operator `\" + b + \"' applied to non-integer \" + val);\n }",
"ConstantValue createConstantValue();",
"public static boolean isIntegerConstant(String content) {\r\n return content.matches(\"-?\\\\d+\");\r\n }",
"public IntLit createIntLit(int val) {\n try {\n return (IntLit) xnf.IntLit(Position.COMPILER_GENERATED, IntLit.INT, val).typeCheck(this);\n } catch (SemanticException e) {\n throw new InternalCompilerError(\"Int literal with value \"+val+\" would not typecheck\", e);\n }\n }",
"Object getConstantValue();",
"public Constraint(final int value)\n\t{\n\t\tinit(AlignmentType.CONSTANT, value);\n\t}",
"abstract public int getConstantIndex();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
builder factory method for GeneralCategoryRecommendation | public static GeneralCategoryRecommendationBuilder builder() {
return GeneralCategoryRecommendationBuilder.of();
} | [
"public static GeneralCategoryRecommendationBuilder builder(final GeneralCategoryRecommendation template) {\n return GeneralCategoryRecommendationBuilder.of(template);\n }",
"public static ProjectCategoryRecommendationMetaBuilder builder() {\n return ProjectCategoryRecommendationMetaBuilder.of();\n }",
"public static ProjectCategoryRecommendationMetaBuilder builder(final ProjectCategoryRecommendationMeta template) {\n return ProjectCategoryRecommendationMetaBuilder.of(template);\n }",
"public static GeneralCategoryRecommendation of(final GeneralCategoryRecommendation template) {\n GeneralCategoryRecommendationImpl instance = new GeneralCategoryRecommendationImpl();\n instance.setCategoryName(template.getCategoryName());\n instance.setConfidence(template.getConfidence());\n return instance;\n }",
"public ProjectCategoryRecommendationMeta buildUnchecked() {\n return new ProjectCategoryRecommendationMetaImpl(productName, productImageUrl, generalCategoryNames);\n }",
"public Category build()\n {\n return new Category(\n new MultiSelectOption(fValue), fUpperBound, fUpperInclusive);\n }",
"public Builder setRecommendation(CryptoCurrencyPriceInfo.Recommendation value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n recommendation_ = value.getNumber();\n onChanged();\n return this;\n }",
"public TaxCategorySetDescriptionAction build() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }",
"private Recommendation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Recommendation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static ProjectCategoryRecommendationMeta of(final ProjectCategoryRecommendationMeta template) {\n ProjectCategoryRecommendationMetaImpl instance = new ProjectCategoryRecommendationMetaImpl();\n instance.setProductName(template.getProductName());\n instance.setProductImageUrl(template.getProductImageUrl());\n instance.setGeneralCategoryNames(template.getGeneralCategoryNames());\n return instance;\n }",
"public static TaxCategorySetDescriptionActionBuilder of() {\n return new TaxCategorySetDescriptionActionBuilder();\n }",
"Category createCategory();",
"@NonNull\n public TextClassificationContext build() {\n return new TextClassificationContext(mPackageName, mWidgetType, mWidgetVersion);\n }",
"public JDBCCategoryDatasetBuilder() {\n }",
"CategoryType createCategoryType();",
"Builder addReviews(String value);",
"CategoriesType createCategoriesType();",
"public interface Recommendation {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the kind property: Kind of resource.\n *\n * @return the kind value.\n */\n String kind();\n\n /**\n * Gets the creationTime property: Timestamp when this instance was created.\n *\n * @return the creationTime value.\n */\n OffsetDateTime creationTime();\n\n /**\n * Gets the recommendationId property: A GUID value that each recommendation object is associated with.\n *\n * @return the recommendationId value.\n */\n UUID recommendationId();\n\n /**\n * Gets the resourceId property: Full ARM resource ID string that this recommendation object is associated with.\n *\n * @return the resourceId value.\n */\n String resourceId();\n\n /**\n * Gets the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription,\n * ServerFarm, Site.\n *\n * @return the resourceScope value.\n */\n ResourceScopeType resourceScope();\n\n /**\n * Gets the ruleName property: Unique name of the rule.\n *\n * @return the ruleName value.\n */\n String ruleName();\n\n /**\n * Gets the displayName property: UI friendly name of the rule (may not be unique).\n *\n * @return the displayName value.\n */\n String displayName();\n\n /**\n * Gets the message property: Recommendation text.\n *\n * @return the message value.\n */\n String message();\n\n /**\n * Gets the level property: Level indicating how critical this recommendation can impact.\n *\n * @return the level value.\n */\n NotificationLevel level();\n\n /**\n * Gets the channels property: List of channels that this recommendation can apply.\n *\n * @return the channels value.\n */\n Channels channels();\n\n /**\n * Gets the categoryTags property: The list of category tags that this recommendation belongs to.\n *\n * @return the categoryTags value.\n */\n List<String> categoryTags();\n\n /**\n * Gets the actionName property: Name of action recommended by this object.\n *\n * @return the actionName value.\n */\n String actionName();\n\n /**\n * Gets the enabled property: True if this recommendation is still valid (i.e. \"actionable\"). False if it is\n * invalid.\n *\n * @return the enabled value.\n */\n Integer enabled();\n\n /**\n * Gets the states property: The list of states of this recommendation. If it's null then it should be considered\n * \"Active\".\n *\n * @return the states value.\n */\n List<String> states();\n\n /**\n * Gets the startTime property: The beginning time in UTC of a range that the recommendation refers to.\n *\n * @return the startTime value.\n */\n OffsetDateTime startTime();\n\n /**\n * Gets the endTime property: The end time in UTC of a range that the recommendation refers to.\n *\n * @return the endTime value.\n */\n OffsetDateTime endTime();\n\n /**\n * Gets the nextNotificationTime property: When to notify this recommendation next in UTC. Null means that this will\n * never be notified anymore.\n *\n * @return the nextNotificationTime value.\n */\n OffsetDateTime nextNotificationTime();\n\n /**\n * Gets the notificationExpirationTime property: Date and time in UTC when this notification expires.\n *\n * @return the notificationExpirationTime value.\n */\n OffsetDateTime notificationExpirationTime();\n\n /**\n * Gets the notifiedTime property: Last timestamp in UTC this instance was actually notified. Null means that this\n * recommendation hasn't been notified yet.\n *\n * @return the notifiedTime value.\n */\n OffsetDateTime notifiedTime();\n\n /**\n * Gets the score property: A metric value measured by the rule.\n *\n * @return the score value.\n */\n Double score();\n\n /**\n * Gets the isDynamic property: True if this is associated with a dynamically added rule.\n *\n * @return the isDynamic value.\n */\n Boolean isDynamic();\n\n /**\n * Gets the extensionName property: Extension name of the portal if exists.\n *\n * @return the extensionName value.\n */\n String extensionName();\n\n /**\n * Gets the bladeName property: Deep link to a blade on the portal.\n *\n * @return the bladeName value.\n */\n String bladeName();\n\n /**\n * Gets the forwardLink property: Forward link to an external document associated with the rule.\n *\n * @return the forwardLink value.\n */\n String forwardLink();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.web.fluent.models.RecommendationInner object.\n *\n * @return the inner object.\n */\n RecommendationInner innerModel();\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the background color displayed when the component is disabled. | public void setDisabledBackground(Color newValue) {
set(PROPERTY_DISABLED_BACKGROUND, newValue);
} | [
"public Color getDisabledBackground() {\n return (Color) get(PROPERTY_DISABLED_BACKGROUND);\n }",
"private void setDisabled(JComponent jc)\n\t{\n\t\tjc.setEnabled(false);\n\t\tjc.setBackground(Color.LIGHT_GRAY);\n\t}",
"public void setDisabledForeground(Color newValue) {\n set(PROPERTY_DISABLED_FOREGROUND, newValue);\n }",
"public void setBackgroundNonSelectionColor(Color color);",
"public native String getBackgroundDisabledColor() /*-{\n\t\treturn this.@com.pmt.wrap.titanium.ui.WebView::handler.backgroundDisabledColor;\n\t}-*/;",
"public void setDisabledColor(Color disabledColor){\n\t\t\tthis.disabledColor = disabledColor;\n\t\t}",
"public Color getDisabledForeground() {\n return (Color) get(PROPERTY_DISABLED_FOREGROUND);\n }",
"public void setDisabledBackgroundImage(FillImage newValue) {\n set(PROPERTY_DISABLED_BACKGROUND_IMAGE, newValue);\n }",
"public native void setBackgroundDisabledColor(String backgroundDisabledColor) /*-{\n\t\tthis.@com.pmt.wrap.titanium.ui.WebView::handler.backgroundDisabledColor = backgroundDisabledColor;\n\t}-*/;",
"public void setDisabledTextColor(Color arg1) {\r\n\t\tgetJTextField().setDisabledTextColor(arg1);\r\n\t}",
"private void setRedBackground(){\n centerPanel.setBackground(red);\n }",
"public void setTabInactiveBackground(Color newValue) {\n setProperty(PROPERTY_TAB_INACTIVE_BACKGROUND, newValue);\n }",
"public FillImage getDisabledBackgroundImage() {\n return (FillImage) get(PROPERTY_DISABLED_BACKGROUND_IMAGE);\n }",
"public void disableButton0() {\n getButton0().setEnabled(false);\n getButton0().setBackgroundColor(getResources().getColor(R.color.disabledButtonBackground));\n }",
"public Color getBackground() {\n if (!editable && !backgroundSetByClientCode) {\n return SystemColor.control;\n }\n\n return super.getBackground();\n }",
"private void setBlueBackground(){\n centerPanel.setBackground(blue);\n }",
"private void enableRedMode() {\r\n progressLabel.setTextColor(Color.RED);\r\n greenProgressBar.setVisibility(View.GONE);\r\n redProgressBar.setVisibility(View.VISIBLE);\r\n }",
"@Override\n public int backgroundColor() {\n return Color.BLACK;\n }",
"public Color getBackgroundNonSelectionColor();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Konstruktor der Klasse NoQuota. | public NoQuota() {
super("No Mailbox Quota set.");
} | [
"public Quota() {\n super();\n }",
"@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;",
"void setDefaultUserQuota(long val);",
"public MicrosoftGraphQuota() {\n }",
"public Quota getQuota() {\n\t\treturn this.quota;\n\t}",
"public double getQuotaLimit() {\n\t\treturn this.quotaLimit;\n\t}",
"void setQuotaSupported(boolean isEnabled);",
"int getQuotaModeValue();",
"public double getQuotaUnioneEuropea() {\r\n\t\t\treturn QuotaUE;\r\n\t\t}",
"@Override\n public List<QuotaConsumptionParameter> getQuotaStorageConsumptionParameters() {\n return new ArrayList<>();\n }",
"com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode getQuotaMode();",
"private static KafkaUserQuotas emptyQuotas() {\n KafkaUserQuotas emptyQuotas = new KafkaUserQuotas();\n emptyQuotas.setProducerByteRate(null);\n emptyQuotas.setConsumerByteRate(null);\n emptyQuotas.setRequestPercentage(null);\n emptyQuotas.setControllerMutationRate(null);\n\n return emptyQuotas;\n }",
"private void getQuota() {\n getProgressDialog().show();\n new Handler().postDelayed(this::onQuotaDownloadComplete, 2000);\n }",
"public void setQuotaUnioneEuropea(double QuotaUnioneEuropea) {\r\n\t\t\tthis.QuotaUE = QuotaUnioneEuropea; \r\n\t\t}",
"@ApiModelProperty(required = true, value = \"Current available service package quota.\")\n public Long getRemainingQuota() {\n return remainingQuota;\n }",
"public String quotaId() {\n return this.quotaId;\n }",
"public BigDecimal getCreditQuota() {\n return creditQuota;\n }",
"public String getQuotaid() {\n\t\treturn quotaid;\n\t}",
"public BigDecimal getSurplusQuota() {\n return surplusQuota;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mapper between BtUserBookAssociations and BtUserBookAssociationsDto | @Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE,nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT)
public interface BtUserBookAssociationIdMapper {
public BtUserBookAssociationId btUserBookAssociationIdDtoToBtUserBookAssociationId(BtUserBookAssociationIdDto userBookAssociationDto);
public BtUserBookAssociationIdDto btUserBookAssociationIdDtoFromBtUserBookAssociationId(BtUserBookAssociationId userBookAssociation);
} | [
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface BidMapper {\n\n @Mapping(source = \"bidder.id\", target = \"bidderId\")\n @Mapping(source = \"auctionItem.id\", target = \"auctionItemId\")\n BidDTO bidToBidDTO(Bid bid);\n\n List<BidDTO> bidsToBidDTOs(List<Bid> bids);\n\n @Mapping(source = \"bidderId\", target = \"bidder\")\n @Mapping(source = \"auctionItemId\", target = \"auctionItem\")\n Bid bidDTOToBid(BidDTO bidDTO);\n\n List<Bid> bidDTOsToBids(List<BidDTO> bidDTOs);\n\n default Bidder bidderFromId(Long id) {\n if (id == null) {\n return null;\n }\n Bidder bidder = new Bidder();\n bidder.setId(id);\n return bidder;\n }\n\n default AuctionItem auctionItemFromId(Long id) {\n if (id == null) {\n return null;\n }\n AuctionItem auctionItem = new AuctionItem();\n auctionItem.setId(id);\n return auctionItem;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {SUserMapper.class, BooksMapper.class})\npublic interface CollectMapper extends EntityMapper<CollectDTO, Collect> {\n\n @Mapping(source = \"suser.id\", target = \"suserId\")\n @Mapping(source = \"bookId.id\", target = \"bookIdId\")\n CollectDTO toDto(Collect collect);\n\n @Mapping(source = \"suserId\", target = \"suser\")\n @Mapping(source = \"bookIdId\", target = \"bookId\")\n Collect toEntity(CollectDTO collectDTO);\n\n default Collect fromId(Long id) {\n if (id == null) {\n return null;\n }\n Collect collect = new Collect();\n collect.setId(id);\n return collect;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {AuthorityMapper.class, })\npublic interface BizUserMapper {\n\n BizUserDTO bizUserToBizUserDTO(BizUser bizUser);\n\n List<BizUserDTO> bizUsersToBizUserDTOs(List<BizUser> bizUsers);\n\n @Mapping(target = \"companies\", ignore = true)\n @Mapping(target = \"products\", ignore = true)\n BizUser bizUserDTOToBizUser(BizUserDTO bizUserDTO);\n\n List<BizUser> bizUserDTOsToBizUsers(List<BizUserDTO> bizUserDTOs);\n\n default Authority authorityFromId(Long id) {\n if (id == null) {\n return null;\n }\n Authority authority = new Authority();\n authority.setId(id);\n return authority;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface FavouriteFilmMapper {\n\n @Mapping(source = \"film.id\", target = \"filmId\")\n @Mapping(source = \"owner.id\", target = \"ownerId\")\n @Mapping(source = \"owner.login\", target = \"ownerLogin\")\n FavouriteFilmDTO favouriteFilmToFavouriteFilmDTO(FavouriteFilm favouriteFilm);\n\n List<FavouriteFilmDTO> favouriteFilmsToFavouriteFilmDTOs(List<FavouriteFilm> favouriteFilms);\n\n @Mapping(source = \"filmId\", target = \"film\")\n @Mapping(source = \"ownerId\", target = \"owner\")\n FavouriteFilm favouriteFilmDTOToFavouriteFilm(FavouriteFilmDTO favouriteFilmDTO);\n\n List<FavouriteFilm> favouriteFilmDTOsToFavouriteFilms(List<FavouriteFilmDTO> favouriteFilmDTOs);\n\n default Film filmFromId(Long id) {\n if (id == null) {\n return null;\n }\n Film film = new Film();\n film.setId(id);\n return film;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {AddressMapper.class, AppUserMapper.class})\npublic interface WeddingGuestMapper extends EntityMapper<WeddingGuestDTO, WeddingGuest> {\n\n @Mapping(source = \"privateAddress.id\", target = \"privateAddressId\")\n @Mapping(source = \"businessAddress.id\", target = \"businessAddressId\")\n @Mapping(source = \"appUser.id\", target = \"appUserId\")\n WeddingGuestDTO toDto(WeddingGuest weddingGuest);\n\n @Mapping(source = \"privateAddressId\", target = \"privateAddress\")\n @Mapping(source = \"businessAddressId\", target = \"businessAddress\")\n @Mapping(source = \"appUserId\", target = \"appUser\")\n WeddingGuest toEntity(WeddingGuestDTO weddingGuestDTO);\n\n default WeddingGuest fromId(Long id) {\n if (id == null) {\n return null;\n }\n WeddingGuest weddingGuest = new WeddingGuest();\n weddingGuest.setId(id);\n return weddingGuest;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {BusinessAssociateMapper.class})\npublic interface BusinessAssociateAddressMapper extends EntityMapper<BusinessAssociateAddressDTO, BusinessAssociateAddress> {\n\n @Mapping(source = \"businessAssociate.id\", target = \"businessAssociateId\")\n BusinessAssociateAddressDTO toDto(BusinessAssociateAddress businessAssociateAddress);\n\n @Mapping(source = \"businessAssociateId\", target = \"businessAssociate\")\n BusinessAssociateAddress toEntity(BusinessAssociateAddressDTO businessAssociateAddressDTO);\n\n default BusinessAssociateAddress fromId(Long id) {\n if (id == null) {\n return null;\n }\n BusinessAssociateAddress businessAssociateAddress = new BusinessAssociateAddress();\n businessAssociateAddress.setId(id);\n return businessAssociateAddress;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface FornecedorMapper {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n FornecedorDTO fornecedorToFornecedorDTO(Fornecedor fornecedor);\n\n List<FornecedorDTO> fornecedorsToFornecedorDTOs(List<Fornecedor> fornecedors);\n\n @Mapping(target = \"produtos\", ignore = true)\n @Mapping(source = \"userId\", target = \"user\")\n Fornecedor fornecedorDTOToFornecedor(FornecedorDTO fornecedorDTO);\n\n List<Fornecedor> fornecedorDTOsToFornecedors(List<FornecedorDTO> fornecedorDTOs);\n}",
"private BookDTO mapBookToBookDTO(Book book) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBookDTO bookDTO = mapper.map(book, BookDTO.class);\n\t\tif (book.getCategory() != null) {\n\t\t\tbookDTO.setCategory(new CategoryDTO(book.getCategory().getCode(), book.getCategory().getLabel()));\n\t\t}\n\t\treturn bookDTO;\n\t}",
"private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}",
"@Mapper(componentModel = \"spring\", uses = {CategoryMapper.class, UserPropioMapper.class})\npublic interface EBCardMapper extends EntityMapper<EBCardDTO, EBCard> {\n\n @Mapping(source = \"category.id\", target = \"categoryId\")\n @Mapping(source = \"userPropio.id\", target = \"userPropioId\")\n EBCardDTO toDto(EBCard eBCard);\n\n @Mapping(target = \"reviews\", ignore = true)\n @Mapping(target = \"socialContacts\", ignore = true)\n @Mapping(target = \"phoneNumbers\", ignore = true)\n @Mapping(target = \"addresses\", ignore = true)\n @Mapping(source = \"categoryId\", target = \"category\")\n @Mapping(target = \"users\", ignore = true)\n @Mapping(source = \"userPropioId\", target = \"userPropio\")\n EBCard toEntity(EBCardDTO eBCardDTO);\n\n default EBCard fromId(Long id) {\n if (id == null) {\n return null;\n }\n EBCard eBCard = new EBCard();\n eBCard.setId(id);\n return eBCard;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface ReviewMapper {\n\n @Mapping(source = \"book.id\", target = \"bookId\")\n @Mapping(source = \"reviewVector.id\", target = \"reviewVectorId\")\n ReviewDTO reviewToReviewDTO(Review review);\n\n List<ReviewDTO> reviewsToReviewDTOs(List<Review> reviews);\n\n @Mapping(target = \"wordOccurrences\", ignore = true)\n @Mapping(source = \"bookId\", target = \"book\")\n @Mapping(source = \"reviewVectorId\", target = \"reviewVector\")\n Review reviewDTOToReview(ReviewDTO reviewDTO);\n\n List<Review> reviewDTOsToReviews(List<ReviewDTO> reviewDTOs);\n\n default Book bookFromId(Long id) {\n if (id == null) {\n return null;\n }\n Book book = new Book();\n book.setId(id);\n return book;\n }\n\n default ReviewVector reviewVectorFromId(Long id) {\n if (id == null) {\n return null;\n }\n ReviewVector reviewVector = new ReviewVector();\n reviewVector.setId(id);\n return reviewVector;\n }\n}",
"UserProfileDTO mapToDto(final UserProfileEntity userProfileEntity);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TourBubblRoutePointMapper {\n\n @Mapping(source = \"tourBubbl.id\", target = \"tourBubblId\")\n TourBubblRoutePointDTO tourBubblRoutePointToTourBubblRoutePointDTO(TourBubblRoutePoint tourBubblRoutePoint);\n\n List<TourBubblRoutePointDTO> tourBubblRoutePointsToTourBubblRoutePointDTOs(List<TourBubblRoutePoint> tourBubblRoutePoints);\n\n @Mapping(source = \"tourBubblId\", target = \"tourBubbl\")\n TourBubblRoutePoint tourBubblRoutePointDTOToTourBubblRoutePoint(TourBubblRoutePointDTO tourBubblRoutePointDTO);\n\n List<TourBubblRoutePoint> tourBubblRoutePointDTOsToTourBubblRoutePoints(List<TourBubblRoutePointDTO> tourBubblRoutePointDTOs);\n\n default TourBubbl tourBubblFromId(Long id) {\n if (id == null) {\n return null;\n }\n TourBubbl tourBubbl = new TourBubbl();\n tourBubbl.setId(id);\n return tourBubbl;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface ConviteComiteMapper {\n\n @Mapping(source = \"professorconvidadocomite.id\", target = \"professorconvidadocomiteId\")\n @Mapping(source = \"professorconvidadocomite.codigo\", target = \"professorconvidadocomiteCodigo\")\n @Mapping(source = \"comite.id\", target = \"comiteId\")\n @Mapping(source = \"orientadorqueconvidou.id\", target = \"orientadorqueconvidouId\")\n @Mapping(source = \"orientadorqueconvidou.codigo\", target = \"orientadorqueconvidouCodigo\")\n ConviteComiteDTO conviteComiteToConviteComiteDTO(ConviteComite conviteComite);\n\n List<ConviteComiteDTO> conviteComitesToConviteComiteDTOs(List<ConviteComite> conviteComites);\n\n @Mapping(source = \"professorconvidadocomiteId\", target = \"professorconvidadocomite\")\n @Mapping(source = \"comiteId\", target = \"comite\")\n @Mapping(source = \"orientadorqueconvidouId\", target = \"orientadorqueconvidou\")\n ConviteComite conviteComiteDTOToConviteComite(ConviteComiteDTO conviteComiteDTO);\n\n List<ConviteComite> conviteComiteDTOsToConviteComites(List<ConviteComiteDTO> conviteComiteDTOs);\n\n default Professor professorFromId(Long id) {\n if (id == null) {\n return null;\n }\n Professor professor = new Professor();\n professor.setId(id);\n return professor;\n }\n\n default Comite comiteFromId(Long id) {\n if (id == null) {\n return null;\n }\n Comite comite = new Comite();\n comite.setId(id);\n return comite;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {IdentityMapper.class, AddressMapper.class})\npublic interface PersonMapper {\n\n PersonDTO personToPersonDTO(Person person);\n\n Person personDTOToPerson(PersonDTO personDTO);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface BookMapper extends EntityMapper<BookDTO, Book> {\n\n\n}",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, UserMapper.class, })\npublic interface MessageMapper {\n\n @Mapping(source = \"idUserFrom.id\", target = \"idUserFromId\")\n @Mapping(source = \"idUserFrom.login\", target = \"idUserFromLogin\")\n @Mapping(source = \"idUserTo.id\", target = \"idUserToId\")\n @Mapping(source = \"idUserTo.login\", target = \"idUserToLogin\")\n MessageDTO messageToMessageDTO(Message message);\n\n List<MessageDTO> messagesToMessageDTOs(List<Message> messages);\n\n @Mapping(source = \"idUserFromId\", target = \"idUserFrom\")\n @Mapping(source = \"idUserToId\", target = \"idUserTo\")\n Message messageDTOToMessage(MessageDTO messageDTO);\n\n List<Message> messageDTOsToMessages(List<MessageDTO> messageDTOs);\n}",
"@Mapper(componentModel = \"spring\", uses = {ClientMapper.class})\npublic interface PhoneBookMapper extends EntityMapper<PhoneBookDTO, PhoneBook> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n PhoneBookDTO toDto(PhoneBook phoneBook);\n\n @Mapping(source = \"clientId\", target = \"client\")\n PhoneBook toEntity(PhoneBookDTO phoneBookDTO);\n\n default PhoneBook fromId(Long id) {\n if (id == null) {\n return null;\n }\n PhoneBook phoneBook = new PhoneBook();\n phoneBook.setId(id);\n return phoneBook;\n }\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to generate a random double range is (2.4 / 2) (2.4/2) | public static double randomNumber(){
Random randomGenerator = new Random();
double max = 2.4/2, min = -max;
return min + ( max - min ) * randomGenerator.nextDouble();
} | [
"private double randDouble(double min, double max) {\n return min + (max - min) * rand.nextDouble();\n }",
"private double getRandomDouble(double min, double max)\n {\n double random, result;\n\n random = new Random().nextDouble();\n result = min + (random * (max - min));\n\n return result;\n }",
"private static double getRandomNumber() {\n\t\tRandom r = new Random();\n\t\tInteger rangeMin = 1;\n\t\tInteger rangeMax = 10;\n\t\treturn (rangeMin + (rangeMax - rangeMin) * r.nextDouble());\n\t}",
"private double getRandomDouble(double min, double max)\r\n\t{\r\n\t\tdouble randNum = Math.random() * (max - min) + min;\r\n\t\treturn randNum;\r\n\t}",
"private static double randDouble(double lower, double upper) {\n\t\tRandom random = new Random();\n\t\treturn (random.nextDouble() * (upper - lower)) + lower;\n\t}",
"private static double randomGenerator(double min, double max) {\n return (double)java.lang.Math.random() * (max - min +1) + min;\n }",
"public static double rangedRandom(double a){\n\t\treturn -a + Calc.random(a * 2);\n\t}",
"@Override\n public double nextDouble() {\n return randomGenerator.nextDouble();\n }",
"public static double randomDouble() {\n return randomDouble(-Double.MAX_VALUE, Double.MAX_VALUE);\n }",
"public static double doubleSample() {\n return random_.nextDouble();\n }",
"public static double uniform() {\r\n return random.nextDouble();\r\n }",
"private double generateRandom(double value) {\n\t\treturn value * 10 - 5;\n\t}",
"double generateRandom();",
"public static double getRandomRating() {\n return (double) (RandomNumberGenerator.getRandomInt(0, 10) / 2d);\n }",
"public static double rand(double a, double b)\n{ double retval;\n \n retval=(b-a)*generator.nextDouble() + a;\n return retval;\n \n}",
"public double nextDouble() {\r\n\t\treturn rand.nextDouble();\r\n\t}",
"public static double randDouble(double minBound, double maxBound)\n\t{\n\t\tif (generator == null)\n\t\t\tgenerator = new PseudoRandom();\n\n\t\treturn generator.rndreal(minBound, maxBound);\n\t}",
"public static double random() {\r\n return uniform();\r\n }",
"private double myrand() {\n\t\tRandom r = new Random();\n\t\tdouble x = r.nextDouble();\n\t\tdouble d = 90 + Math.abs((x / 6) * 10);\n\t\treturn d / 100;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "col_range" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:1: col_range : ^( COL_RANGE ( col_ref )? DOUBLE_PERIOD ( col_ref )? ) ; | public final AstValidator.col_range_return col_range() throws RecognitionException {
AstValidator.col_range_return retval = new AstValidator.col_range_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
CommonTree _first_0 = null;
CommonTree _last = null;
CommonTree COL_RANGE262=null;
CommonTree DOUBLE_PERIOD264=null;
AstValidator.col_ref_return col_ref263 =null;
AstValidator.col_ref_return col_ref265 =null;
CommonTree COL_RANGE262_tree=null;
CommonTree DOUBLE_PERIOD264_tree=null;
try {
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:11: ( ^( COL_RANGE ( col_ref )? DOUBLE_PERIOD ( col_ref )? ) )
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:14: ^( COL_RANGE ( col_ref )? DOUBLE_PERIOD ( col_ref )? )
{
root_0 = (CommonTree)adaptor.nil();
_last = (CommonTree)input.LT(1);
{
CommonTree _save_last_1 = _last;
CommonTree _first_1 = null;
CommonTree root_1 = (CommonTree)adaptor.nil();
_last = (CommonTree)input.LT(1);
COL_RANGE262=(CommonTree)match(input,COL_RANGE,FOLLOW_COL_RANGE_in_col_range2251); if (state.failed) return retval;
if ( state.backtracking==0 ) {
COL_RANGE262_tree = (CommonTree)adaptor.dupNode(COL_RANGE262);
root_1 = (CommonTree)adaptor.becomeRoot(COL_RANGE262_tree, root_1);
}
match(input, Token.DOWN, null); if (state.failed) return retval;
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:26: ( col_ref )?
int alt66=2;
int LA66_0 = input.LA(1);
if ( (LA66_0==CUBE||LA66_0==DOLLARVAR||LA66_0==GROUP||LA66_0==IDENTIFIER) ) {
alt66=1;
}
switch (alt66) {
case 1 :
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:26: col_ref
{
_last = (CommonTree)input.LT(1);
pushFollow(FOLLOW_col_ref_in_col_range2253);
col_ref263=col_ref();
state._fsp--;
if (state.failed) return retval;
if ( state.backtracking==0 )
adaptor.addChild(root_1, col_ref263.getTree());
if ( state.backtracking==0 ) {
}
}
break;
}
_last = (CommonTree)input.LT(1);
DOUBLE_PERIOD264=(CommonTree)match(input,DOUBLE_PERIOD,FOLLOW_DOUBLE_PERIOD_in_col_range2256); if (state.failed) return retval;
if ( state.backtracking==0 ) {
DOUBLE_PERIOD264_tree = (CommonTree)adaptor.dupNode(DOUBLE_PERIOD264);
adaptor.addChild(root_1, DOUBLE_PERIOD264_tree);
}
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:49: ( col_ref )?
int alt67=2;
int LA67_0 = input.LA(1);
if ( (LA67_0==CUBE||LA67_0==DOLLARVAR||LA67_0==GROUP||LA67_0==IDENTIFIER) ) {
alt67=1;
}
switch (alt67) {
case 1 :
// /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:49: col_ref
{
_last = (CommonTree)input.LT(1);
pushFollow(FOLLOW_col_ref_in_col_range2258);
col_ref265=col_ref();
state._fsp--;
if (state.failed) return retval;
if ( state.backtracking==0 )
adaptor.addChild(root_1, col_ref265.getTree());
if ( state.backtracking==0 ) {
}
}
break;
}
match(input, Token.UP, null); if (state.failed) return retval;
adaptor.addChild(root_0, root_1);
_last = _save_last_1;
}
if ( state.backtracking==0 ) {
}
}
if ( state.backtracking==0 ) {
retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
}
}
catch(RecognitionException re) {
throw re;
}
finally {
// do for sure before leaving
}
return retval;
} | [
"public final QueryParser.col_range_return col_range() throws RecognitionException {\n QueryParser.col_range_return retval = new QueryParser.col_range_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token DOUBLE_PERIOD348=null;\n Token DOUBLE_PERIOD349=null;\n QueryParser.col_ref_return c1 =null;\n\n QueryParser.col_ref_return c2 =null;\n\n QueryParser.col_ref_return col_ref350 =null;\n\n\n Object DOUBLE_PERIOD348_tree=null;\n Object DOUBLE_PERIOD349_tree=null;\n RewriteRuleTokenStream stream_DOUBLE_PERIOD=new RewriteRuleTokenStream(adaptor,\"token DOUBLE_PERIOD\");\n RewriteRuleSubtreeStream stream_col_ref=new RewriteRuleSubtreeStream(adaptor,\"rule col_ref\");\n try {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:476:11: (c1= col_ref DOUBLE_PERIOD (c2= col_ref )? -> ^( COL_RANGE $c1 DOUBLE_PERIOD ( $c2)? ) | DOUBLE_PERIOD col_ref -> ^( COL_RANGE DOUBLE_PERIOD col_ref ) )\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==DOLLARVAR||LA96_0==GROUP||LA96_0==IDENTIFIER_L) ) {\n alt96=1;\n }\n else if ( (LA96_0==DOUBLE_PERIOD) ) {\n alt96=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 96, 0, input);\n\n throw nvae;\n\n }\n switch (alt96) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:476:13: c1= col_ref DOUBLE_PERIOD (c2= col_ref )?\n {\n pushFollow(FOLLOW_col_ref_in_col_range3500);\n c1=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_col_ref.add(c1.getTree());\n\n DOUBLE_PERIOD348=(Token)match(input,DOUBLE_PERIOD,FOLLOW_DOUBLE_PERIOD_in_col_range3502); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOUBLE_PERIOD.add(DOUBLE_PERIOD348);\n\n\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:476:43: (c2= col_ref )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==DOLLARVAR||LA95_0==GROUP||LA95_0==IDENTIFIER_L) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:476:43: c2= col_ref\n {\n pushFollow(FOLLOW_col_ref_in_col_range3508);\n c2=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_col_ref.add(c2.getTree());\n\n }\n break;\n\n }\n\n\n // AST REWRITE\n // elements: c1, DOUBLE_PERIOD, c2\n // token labels: \n // rule labels: retval, c1, c2\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_c1=new RewriteRuleSubtreeStream(adaptor,\"rule c1\",c1!=null?c1.tree:null);\n RewriteRuleSubtreeStream stream_c2=new RewriteRuleSubtreeStream(adaptor,\"rule c2\",c2!=null?c2.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 477:11: -> ^( COL_RANGE $c1 DOUBLE_PERIOD ( $c2)? )\n {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:477:14: ^( COL_RANGE $c1 DOUBLE_PERIOD ( $c2)? )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(\n (Object)adaptor.create(COL_RANGE, \"COL_RANGE\")\n , root_1);\n\n adaptor.addChild(root_1, stream_c1.nextTree());\n\n adaptor.addChild(root_1, \n stream_DOUBLE_PERIOD.nextNode()\n );\n\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:477:45: ( $c2)?\n if ( stream_c2.hasNext() ) {\n adaptor.addChild(root_1, stream_c2.nextTree());\n\n }\n stream_c2.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 2 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:478:14: DOUBLE_PERIOD col_ref\n {\n DOUBLE_PERIOD349=(Token)match(input,DOUBLE_PERIOD,FOLLOW_DOUBLE_PERIOD_in_col_range3549); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOUBLE_PERIOD.add(DOUBLE_PERIOD349);\n\n\n pushFollow(FOLLOW_col_ref_in_col_range3551);\n col_ref350=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_col_ref.add(col_ref350.getTree());\n\n // AST REWRITE\n // elements: col_ref, DOUBLE_PERIOD\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 479:11: -> ^( COL_RANGE DOUBLE_PERIOD col_ref )\n {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:479:14: ^( COL_RANGE DOUBLE_PERIOD col_ref )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(\n (Object)adaptor.create(COL_RANGE, \"COL_RANGE\")\n , root_1);\n\n adaptor.addChild(root_1, \n stream_DOUBLE_PERIOD.nextNode()\n );\n\n adaptor.addChild(root_1, stream_col_ref.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final ANTLRv3Parser.range_return range() throws RecognitionException {\r\n ANTLRv3Parser.range_return retval = new ANTLRv3Parser.range_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token c1=null;\r\n Token c2=null;\r\n Token RANGE133=null;\r\n ANTLRv3Parser.elementOptions_return elementOptions134 =null;\r\n\r\n\r\n CommonTree c1_tree=null;\r\n CommonTree c2_tree=null;\r\n CommonTree RANGE133_tree=null;\r\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\r\n RewriteRuleTokenStream stream_CHAR_LITERAL=new RewriteRuleTokenStream(adaptor,\"token CHAR_LITERAL\");\r\n RewriteRuleSubtreeStream stream_elementOptions=new RewriteRuleSubtreeStream(adaptor,\"rule elementOptions\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:2: (c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )? -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:4: c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )?\r\n {\r\n c1=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2159); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c1);\r\n\r\n\r\n RANGE133=(Token)match(input,RANGE,FOLLOW_RANGE_in_range2161); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RANGE.add(RANGE133);\r\n\r\n\r\n c2=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2165); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c2);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: ( elementOptions )?\r\n int alt61=2;\r\n int LA61_0 = input.LA(1);\r\n\r\n if ( (LA61_0==77) ) {\r\n alt61=1;\r\n }\r\n switch (alt61) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: elementOptions\r\n {\r\n pushFollow(FOLLOW_elementOptions_in_range2167);\r\n elementOptions134=elementOptions();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_elementOptions.add(elementOptions134.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: c2, c1, elementOptions\r\n // token labels: c1, c2\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_c1=new RewriteRuleTokenStream(adaptor,\"token c1\",c1);\r\n RewriteRuleTokenStream stream_c2=new RewriteRuleTokenStream(adaptor,\"token c2\",c2);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 298:3: -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:6: ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(CHAR_RANGE, c1, \"..\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_c1.nextNode());\r\n\r\n adaptor.addChild(root_1, stream_c2.nextNode());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:37: ( elementOptions )?\r\n if ( stream_elementOptions.hasNext() ) {\r\n adaptor.addChild(root_1, stream_elementOptions.nextTree());\r\n\r\n }\r\n stream_elementOptions.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"public final void synpred111_QueryParser_fragment() throws RecognitionException {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:26: ( col_range ( AS ( field_def | ( LEFT_PAREN field_def_list RIGHT_PAREN ) ) )? )\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:26: col_range ( AS ( field_def | ( LEFT_PAREN field_def_list RIGHT_PAREN ) ) )?\n {\n pushFollow(FOLLOW_col_range_in_synpred111_QueryParser2442);\n col_range();\n\n state._fsp--;\n if (state.failed) return ;\n\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:36: ( AS ( field_def | ( LEFT_PAREN field_def_list RIGHT_PAREN ) ) )?\n int alt167=2;\n int LA167_0 = input.LA(1);\n\n if ( (LA167_0==AS) ) {\n alt167=1;\n }\n switch (alt167) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:38: AS ( field_def | ( LEFT_PAREN field_def_list RIGHT_PAREN ) )\n {\n match(input,AS,FOLLOW_AS_in_synpred111_QueryParser2446); if (state.failed) return ;\n\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:42: ( field_def | ( LEFT_PAREN field_def_list RIGHT_PAREN ) )\n int alt166=2;\n int LA166_0 = input.LA(1);\n\n if ( (LA166_0==IDENTIFIER_L) ) {\n alt166=1;\n }\n else if ( (LA166_0==LEFT_PAREN) ) {\n alt166=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 166, 0, input);\n\n throw nvae;\n\n }\n switch (alt166) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:44: field_def\n {\n pushFollow(FOLLOW_field_def_in_synpred111_QueryParser2451);\n field_def();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:56: ( LEFT_PAREN field_def_list RIGHT_PAREN )\n {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:56: ( LEFT_PAREN field_def_list RIGHT_PAREN )\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/QueryParser.g:367:58: LEFT_PAREN field_def_list RIGHT_PAREN\n {\n match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred111_QueryParser2457); if (state.failed) return ;\n\n pushFollow(FOLLOW_field_def_list_in_synpred111_QueryParser2460);\n field_def_list();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_synpred111_QueryParser2462); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n }",
"@Test\n public void processRangeStatementInTypeDef() throws IOException, ParserException {\n YangNode node = manager.getDataModel(\"src/test/resources/Range\" +\n \"WithTypedef.yang\");\n assertThat((node instanceof YangModule), is(true));\n assertThat(node.getNodeType(), is(YangNodeType.MODULE_NODE));\n YangModule yangNode = (YangModule) node;\n assertThat(yangNode.getName(), is(\"Test\"));\n\n ListIterator<YangLeaf> it = yangNode.getListOfLeaf().listIterator();\n YangLeaf leaf = it.next();\n\n YangType<?> type = leaf.getDataType();\n\n assertThat(leaf.getName(), is(\"invalid-interval\"));\n assertThat(type.getDataType(), is(DERIVED));\n YangDerivedInfo info = (YangDerivedInfo) type\n .getDataTypeExtendedInfo();\n\n YangRangeRestriction ranRes1 = info.getRangeRes();\n\n assertThat(ranRes1.getDescription(), is(\"\\\"range description\\\"\"));\n assertThat(ranRes1.getReference(), is(\"\\\"range reference\\\"\"));\n\n ListIterator<YangRangeInterval> rlIt1 = ranRes1\n .getAscendingRangeIntervals().listIterator();\n YangRangeInterval range1 = rlIt1.next();\n assertThat(((YangUint8) range1.getStartValue()).getValue(),\n is((short) 2));\n assertThat(((YangUint8) range1.getEndValue()).getValue(),\n is((short) 100));\n\n YangTypeDef typeDef = (YangTypeDef) yangNode.getChild();\n YangRangeRestriction ranRes = (YangRangeRestriction) typeDef\n .getTypeDefBaseType().getDataTypeExtendedInfo();\n assertThat(ranRes.getDescription(),\n is(\"\\\"typedef description\\\"\"));\n assertThat(ranRes.getReference(), is(\"\\\"typedef reference\\\"\"));\n\n ListIterator<YangRangeInterval> rlIt2 = ranRes\n .getAscendingRangeIntervals().listIterator();\n YangRangeInterval range2 = rlIt2.next();\n assertThat(((YangUint8) range2.getStartValue()).getValue(),\n is((short) 1));\n assertThat(((YangUint8) range2.getEndValue()).getValue(),\n is((short) (100)));\n }",
"@Test\n public void processRangeStatementWithSpace() throws IOException, ParserException {\n\n YangNode node = manager.getDataModel(\"src/test/resources/RangeSta\" +\n \"tementWithSpace.yang\");\n\n assertThat((node instanceof YangModule), is(true));\n assertThat(node.getNodeType(), is(YangNodeType.MODULE_NODE));\n YangModule yangNode = (YangModule) node;\n assertThat(yangNode.getName(), is(\"Test\"));\n\n ListIterator<YangLeaf> it = yangNode.getListOfLeaf().listIterator();\n YangLeaf leaf = it.next();\n\n YangType<?> type = leaf.getDataType();\n\n assertThat(leaf.getName(), is(\"invalid-interval\"));\n assertThat(type.getDataTypeName(), is(\"int32\"));\n assertThat(type.getDataType(), is(INT32));\n YangRangeRestriction ranRes = (YangRangeRestriction) type\n .getDataTypeExtendedInfo();\n\n ListIterator<YangRangeInterval> rlIt = ranRes\n .getAscendingRangeIntervals().listIterator();\n YangRangeInterval range = rlIt.next();\n assertThat(((YangInt32) range.getStartValue()).getValue(), is(1));\n assertThat(((YangInt32) range.getEndValue()).getValue(), is(4));\n }",
"RangeExpression createRangeExpression();",
"public final CQLParser.rangeFunction_return rangeFunction() throws RecognitionException {\n CQLParser.rangeFunction_return retval = new CQLParser.rangeFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token openType=null;\n Token closeType=null;\n Token RANGE148=null;\n Token char_literal149=null;\n CQLParser.expression_return e = null;\n\n CQLParser.expression_return rangeStart = null;\n\n CQLParser.expression_return rangeEnd = null;\n\n\n Object openType_tree=null;\n Object closeType_tree=null;\n Object RANGE148_tree=null;\n Object char_literal149_tree=null;\n RewriteRuleTokenStream stream_116=new RewriteRuleTokenStream(adaptor,\"token 116\");\n RewriteRuleTokenStream stream_117=new RewriteRuleTokenStream(adaptor,\"token 117\");\n RewriteRuleTokenStream stream_114=new RewriteRuleTokenStream(adaptor,\"token 114\");\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\n RewriteRuleTokenStream stream_115=new RewriteRuleTokenStream(adaptor,\"token 115\");\n RewriteRuleTokenStream stream_118=new RewriteRuleTokenStream(adaptor,\"token 118\");\n RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,\"rule expression\");\n errorMessageStack.push(\"RANGE definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:2: ( RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' ) -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:4: RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' )\n {\n RANGE148=(Token)match(input,RANGE,FOLLOW_RANGE_in_rangeFunction2480); \n stream_RANGE.add(RANGE148);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2484);\n e=expression();\n\n state._fsp--;\n\n stream_expression.add(e.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:23: ( (openType= '[' ) | (openType= '(' ) )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==117) ) {\n alt41=1;\n }\n else if ( (LA41_0==114) ) {\n alt41=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n }\n switch (alt41) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:25: openType= '['\n {\n openType=(Token)match(input,117,FOLLOW_117_in_rangeFunction2490); \n stream_117.add(openType);\n\n\n }\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:42: openType= '('\n {\n openType=(Token)match(input,114,FOLLOW_114_in_rangeFunction2498); \n stream_114.add(openType);\n\n\n }\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_expression_in_rangeFunction2504);\n rangeStart=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeStart.getTree());\n char_literal149=(Token)match(input,115,FOLLOW_115_in_rangeFunction2506); \n stream_115.add(char_literal149);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2510);\n rangeEnd=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeEnd.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:103: (closeType= ')' | closeType= ']' )\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==116) ) {\n alt42=1;\n }\n else if ( (LA42_0==118) ) {\n alt42=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 0, input);\n\n throw nvae;\n }\n switch (alt42) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:104: closeType= ')'\n {\n closeType=(Token)match(input,116,FOLLOW_116_in_rangeFunction2515); \n stream_116.add(closeType);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:119: closeType= ']'\n {\n closeType=(Token)match(input,118,FOLLOW_118_in_rangeFunction2520); \n stream_118.add(closeType);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: openType, e, rangeEnd, rangeStart, closeType, RANGE\n // token labels: closeType, openType\n // rule labels: retval, e, rangeStart, rangeEnd\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_closeType=new RewriteRuleTokenStream(adaptor,\"token closeType\",closeType);\n RewriteRuleTokenStream stream_openType=new RewriteRuleTokenStream(adaptor,\"token openType\",openType);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_e=new RewriteRuleSubtreeStream(adaptor,\"rule e\",e!=null?e.tree:null);\n RewriteRuleSubtreeStream stream_rangeStart=new RewriteRuleSubtreeStream(adaptor,\"rule rangeStart\",rangeStart!=null?rangeStart.tree:null);\n RewriteRuleSubtreeStream stream_rangeEnd=new RewriteRuleSubtreeStream(adaptor,\"rule rangeEnd\",rangeEnd!=null?rangeEnd.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 505:3: -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:505:6: ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANGE.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_e.nextTree());\n adaptor.addChild(root_1, stream_openType.nextNode());\n adaptor.addChild(root_1, stream_closeType.nextNode());\n adaptor.addChild(root_1, stream_rangeStart.nextTree());\n adaptor.addChild(root_1, stream_rangeEnd.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }",
"public final AstValidator.order_col_return order_col() throws RecognitionException {\n AstValidator.order_col_return retval = new AstValidator.order_col_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set312=null;\n CommonTree set314=null;\n AstValidator.col_range_return col_range311 =null;\n\n AstValidator.col_ref_return col_ref313 =null;\n\n\n CommonTree set312_tree=null;\n CommonTree set314_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:494:11: ( col_range ( ASC | DESC )? | col_ref ( ASC | DESC )? )\n int alt88=2;\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==COL_RANGE) ) {\n alt88=1;\n }\n else if ( (LA88_0==CUBE||LA88_0==DOLLARVAR||LA88_0==GROUP||LA88_0==IDENTIFIER) ) {\n alt88=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 88, 0, input);\n\n throw nvae;\n\n }\n switch (alt88) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:494:13: col_range ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_range_in_order_col2620);\n col_range311=col_range();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_range311.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:494:23: ( ASC | DESC )?\n int alt86=2;\n int LA86_0 = input.LA(1);\n\n if ( (LA86_0==ASC||LA86_0==DESC) ) {\n alt86=1;\n }\n switch (alt86) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set312=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set312_tree = (CommonTree)adaptor.dupNode(set312);\n\n\n adaptor.addChild(root_0, set312_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:495:13: col_ref ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_ref_in_order_col2643);\n col_ref313=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_ref313.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:495:21: ( ASC | DESC )?\n int alt87=2;\n int LA87_0 = input.LA(1);\n\n if ( (LA87_0==ASC||LA87_0==DESC) ) {\n alt87=1;\n }\n switch (alt87) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set314=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set314_tree = (CommonTree)adaptor.dupNode(set314);\n\n\n adaptor.addChild(root_0, set314_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"RangeExpression getNameRange();",
"@Test\n public void processValidRangeStatement() throws IOException, ParserException {\n\n YangNode node = manager.getDataModel(\"src/test/resources/ValidRange\" +\n \"Statement.yang\");\n\n assertThat((node instanceof YangModule), is(true));\n assertThat(node.getNodeType(), is(YangNodeType.MODULE_NODE));\n YangModule yangNode = (YangModule) node;\n assertThat(yangNode.getName(), is(\"Test\"));\n\n ListIterator<YangLeaf> it = yangNode.getListOfLeaf().listIterator();\n YangLeaf leaf = it.next();\n\n YangType<?> type = leaf.getDataType();\n\n assertThat(leaf.getName(), is(\"invalid-interval\"));\n assertThat(type.getDataTypeName(), is(\"int32\"));\n assertThat(type.getDataType(), is(INT32));\n YangRangeRestriction ranRes = (YangRangeRestriction) type\n .getDataTypeExtendedInfo();\n\n ListIterator<YangRangeInterval> rlIt = ranRes\n .getAscendingRangeIntervals().listIterator();\n YangRangeInterval range = rlIt.next();\n assertThat(((YangInt32) range.getStartValue()).getValue(), is(1));\n assertThat(((YangInt32) range.getEndValue()).getValue(), is(4));\n }",
"public final AstValidator.rank_col_return rank_col() throws RecognitionException {\n AstValidator.rank_col_return retval = new AstValidator.rank_col_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set301=null;\n CommonTree set303=null;\n AstValidator.col_range_return col_range300 =null;\n\n AstValidator.col_ref_return col_ref302 =null;\n\n\n CommonTree set301_tree=null;\n CommonTree set303_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:483:10: ( col_range ( ASC | DESC )? | col_ref ( ASC | DESC )? )\n int alt81=2;\n int LA81_0 = input.LA(1);\n\n if ( (LA81_0==COL_RANGE) ) {\n alt81=1;\n }\n else if ( (LA81_0==CUBE||LA81_0==DOLLARVAR||LA81_0==GROUP||LA81_0==IDENTIFIER) ) {\n alt81=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 81, 0, input);\n\n throw nvae;\n\n }\n switch (alt81) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:483:12: col_range ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_range_in_rank_col2517);\n col_range300=col_range();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_range300.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:483:22: ( ASC | DESC )?\n int alt79=2;\n int LA79_0 = input.LA(1);\n\n if ( (LA79_0==ASC||LA79_0==DESC) ) {\n alt79=1;\n }\n switch (alt79) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set301=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set301_tree = (CommonTree)adaptor.dupNode(set301);\n\n\n adaptor.addChild(root_0, set301_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:484:12: col_ref ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_ref_in_rank_col2539);\n col_ref302=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_ref302.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:484:20: ( ASC | DESC )?\n int alt80=2;\n int LA80_0 = input.LA(1);\n\n if ( (LA80_0==ASC||LA80_0==DESC) ) {\n alt80=1;\n }\n switch (alt80) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set303=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set303_tree = (CommonTree)adaptor.dupNode(set303);\n\n\n adaptor.addChild(root_0, set303_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final void rangeElement() throws RecognitionException {\n try {\n // ASTVerifier.g:317:5: ( CHAR_LITERAL | STRING_LITERAL | RULE_REF | TOKEN_REF )\n // ASTVerifier.g:\n {\n if ( (input.LA(1)>=TOKEN_REF && input.LA(1)<=RULE_REF)||input.LA(1)==STRING_LITERAL||input.LA(1)==CHAR_LITERAL ) {\n input.consume();\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void range() throws RecognitionException {\n try {\n // ASTVerifier.g:313:5: ( ^( RANGE rangeElement rangeElement ) )\n // ASTVerifier.g:313:7: ^( RANGE rangeElement rangeElement )\n {\n match(input,RANGE,FOLLOW_RANGE_in_range1323);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_rangeElement_in_range1325);\n rangeElement();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rangeElement_in_range1327);\n rangeElement();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final AstValidator.real_arg_return real_arg() throws RecognitionException {\n AstValidator.real_arg_return retval = new AstValidator.real_arg_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree STAR211=null;\n AstValidator.expr_return expr210 =null;\n\n AstValidator.col_range_return col_range212 =null;\n\n\n CommonTree STAR211_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:408:10: ( expr | STAR | col_range )\n int alt57=3;\n switch ( input.LA(1) ) {\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case CUBE:\n case DIV:\n case DOLLARVAR:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case GROUP:\n case IDENTIFIER:\n case INTEGER:\n case LONGINTEGER:\n case MINUS:\n case NULL:\n case PERCENT:\n case PLUS:\n case QUOTEDSTRING:\n case TRUE:\n case BAG_VAL:\n case BIN_EXPR:\n case CASE_COND:\n case CASE_EXPR:\n case CAST_EXPR:\n case EXPR_IN_PAREN:\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n case MAP_VAL:\n case NEG:\n case TUPLE_VAL:\n {\n alt57=1;\n }\n break;\n case STAR:\n {\n int LA57_2 = input.LA(2);\n\n if ( (LA57_2==DOWN) ) {\n alt57=1;\n }\n else if ( (LA57_2==EOF||LA57_2==UP||LA57_2==BIGDECIMALNUMBER||LA57_2==BIGINTEGERNUMBER||LA57_2==CUBE||LA57_2==DIV||LA57_2==DOLLARVAR||LA57_2==DOUBLENUMBER||LA57_2==FALSE||LA57_2==FLOATNUMBER||LA57_2==GROUP||LA57_2==IDENTIFIER||LA57_2==INTEGER||LA57_2==LONGINTEGER||LA57_2==MINUS||LA57_2==NULL||LA57_2==PERCENT||LA57_2==PLUS||LA57_2==QUOTEDSTRING||LA57_2==STAR||LA57_2==TRUE||(LA57_2 >= BAG_VAL && LA57_2 <= BIN_EXPR)||(LA57_2 >= CASE_COND && LA57_2 <= CASE_EXPR)||(LA57_2 >= CAST_EXPR && LA57_2 <= EXPR_IN_PAREN)||LA57_2==FUNC_EVAL||LA57_2==INVOKER_FUNC_EVAL||(LA57_2 >= MAP_VAL && LA57_2 <= NEG)||LA57_2==TUPLE_VAL) ) {\n alt57=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 57, 2, input);\n\n throw nvae;\n\n }\n }\n break;\n case COL_RANGE:\n {\n alt57=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 57, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt57) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:408:12: expr\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_real_arg1913);\n expr210=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, expr210.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:408:19: STAR\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n STAR211=(CommonTree)match(input,STAR,FOLLOW_STAR_in_real_arg1917); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n STAR211_tree = (CommonTree)adaptor.dupNode(STAR211);\n\n\n adaptor.addChild(root_0, STAR211_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:408:26: col_range\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_range_in_real_arg1921);\n col_range212=col_range();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_range212.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"private static TableRange parseTableRange(Element e) {\n\t\t\n\t\tif (e.hasAttribute(AT_SOURCE_RANGE)) {\n\n\t\t\treturn new TableRange(e.getAttribute(AT_SOURCE_RANGE));\n\t\t}\n\t\t\n\t\tTableCell startCell = parseTableCell(e, AT_SOURCE_RANGE_START);\n\t\tTableCell endCell = parseTableCell(e, AT_SOURCE_RANGE_END);\n\t\t\n\t\tif (startCell != null && endCell != null)\n\t\t\treturn new TableRange(startCell, endCell);\n\t\t\n\t\tif (startCell != null || endCell != null)\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\"Start or end cell is missing for the range: '\" + AT_SOURCE_RANGE + \"'!\");\n\t\t\n\t\treturn null;\n\t}",
"private boolean addRangeQualifier(Predicate p,QualifierPhase phase) throws StandardException{\n DataValueDescriptor value=p.getCompareValue(baseTable);\n RelationalOperator relop=p.getRelop();\n int colNum = relop.getColumnOperand(baseTable).getColumnNumber();\n int relationalOperator = relop.getOperator();\n List<SelectivityHolder> columnHolder = getSelectivityListForColumn(colNum);\n OP_SWITCH: switch(relationalOperator){\n case RelationalOperator.EQUALS_RELOP:\n columnHolder.add(new RangeSelectivity(scc,value,value,true,true,colNum,phase));\n break;\n case RelationalOperator.NOT_EQUALS_RELOP:\n columnHolder.add(new NotEqualsSelectivity(scc,colNum,phase,value));\n break;\n case RelationalOperator.IS_NULL_RELOP:\n columnHolder.add(new NullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.IS_NOT_NULL_RELOP:\n columnHolder.add(new NotNullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.GREATER_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,true,true,colNum,phase));\n break;\n case RelationalOperator.GREATER_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = false;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,false,true,colNum,phase));\n break;\n case RelationalOperator.LESS_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,true,colNum,phase));\n break;\n case RelationalOperator.LESS_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,false,colNum,phase));\n break;\n default:\n throw new RuntimeException(\"Unknown Qualifier Type\");\n }\n return true;\n }",
"@VTID(14)\r\n excel.Range getColumnRange();",
"pb.lyft.datacatalog.Datacatalog.IntRangeFilter getRange();",
"ValidRangeType getValidRange();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show source code of the selected mutant. Changed part is colored in blue | public void showMutant(String dir_name, String mutant_log) {
try {
int changed_line = getMutatedLineNum(mutant_log);
String method_signature = getMethodSignature(mutant_log);
String changed_content = getMutatedContent(mutant_log);
changeTF.setText(" (line " + changed_line + ") " + changed_content);
changeTF.repaint();
Document ddoc = mutantTP.getDocument();
ddoc.remove(0, ddoc.getLength());
int line_num = 0;
int caret_pos = 0;
String strLine;
File myFile = new File(MutationSystem.MUTANT_PATH + "/" + method_signature + "/" + dir_name,
getFileName());
String blank_str;
LineNumberReader lReader = new LineNumberReader(new FileReader(myFile));
while ((strLine = lReader.readLine()) != null) {
blank_str = "";
line_num = lReader.getLineNumber();
int del = (new Integer(line_num)).toString().length();
for (int k = 0; k < 5 - del; k++) {
blank_str = blank_str + " ";
}
ddoc.insertString(ddoc.getLength(), line_num + blank_str, blue_attr);
if (line_num == changed_line) {
caret_pos = ddoc.getLength();
ddoc.insertString(ddoc.getLength(), strLine + "\n", blue_attr);
} else {
ddoc.insertString(ddoc.getLength(), strLine + "\n", mutantTP.getCharacterAttributes());
}
}
mutantTP.setCaretPosition(caret_pos);
originalTP.setCaretPosition(caret_pos);
originalTP.repaint();
lReader.close();
} catch (Exception e) {
System.err.println(" [error] " + e);
}
} | [
"public void showMutant(String dir_name,String mutant_log)\n {\n System.out.println(\"MutantsViewerPanel.showMutant (with mutant_log)\");\n try\n {\n int changed_line = getMutatedLineNum(mutant_log);\n String changed_content = getMutatedContent(mutant_log);\n changeTF.setText(\" (line \" + changed_line + \") \" + changed_content);\n changeTF.repaint();\n\n Document ddoc = mutantTP.getDocument();\n ddoc.remove(0, ddoc.getLength());\n\n int line_num=0;\n int caret_pos=0;\n String strLine,fileName;\n fileName = getFileName();\n File myFile = new File(MutationSystem.MUTANT_PATH +\n \"/\" + dir_name, fileName);\n System.out.println(\"showMutant: myFile =\" + myFile.getAbsolutePath());\n\n String blank_str;\n LineNumberReader lReader = new LineNumberReader(new FileReader(myFile));\n\n while ((strLine=lReader.readLine()) != null)\n {\n blank_str=\"\";\n line_num = lReader.getLineNumber();\n int del = (new Integer(line_num)).toString().length();\n for (int k=0; k<5-del; k++)\n {\n blank_str = blank_str + \" \";\n }\n ddoc.insertString(ddoc.getLength(), line_num+blank_str, blue_attr);\n if (line_num == changed_line)\n {\n caret_pos = ddoc.getLength();\n ddoc.insertString(ddoc.getLength(), strLine + \"\\n\", red_attr);\n }\n else\n {\n ddoc.insertString(ddoc.getLength(), strLine + \"\\n\", mutantTP.getCharacterAttributes());\n }\n }\n mutantTP.setCaretPosition(caret_pos);\n originalTP.setCaretPosition(caret_pos);\n originalTP.repaint();\n lReader.close();\n\n } catch(Exception e)\n {\n System.err.println(\" [error] \" + e);\n }\n }",
"private void displayChange(JTree source, TreeTableNode node) {\n\t\tSwoopChange swc = node.swoopChange;\r\n\t\tString html = \"<FONT FACE=\\\"\"+swoopModel.getFontFace()+\"\\\" SIZE=\"+swoopModel.getFontSize()+\">\";\r\n\t\thtml += \"<b>Author</b>: \"+swc.getAuthor()+\"<br>\";\r\n\t\thtml += \"<b>Time</b>: \"+swc.getTimeStamp()+\"<br>\";\r\n\t\thtml += \"<b>Comment</b>: \"+swc.comment;\r\n\t\t// add 'Edit' Comment link\r\n\t\tif (!swc.isOnRepository && !swc.isTopNode) {\r\n\t\t\tString sourceStr = \"LOCAL\";\r\n\t\t\tif (source == repChangeTT.getTree()) sourceStr = \"REMOTE\";\r\n\t\t\thtml += \" <font color=\\\"green\\\"><a href=\\\"EDIT\"+sourceStr+\":\"+node.hashCode()+\"\\\">Edit</a></font>\";\r\n\t\t\tnodeMap.put(String.valueOf(node.hashCode()), node);\r\n\t\t}\r\n\t\thtml += \"<br><br>\";\r\n\t\thtml += swc.getDescription();\r\n\t\thtml += \"</FONT>\";\r\n\t\tif (source == ontChangeTT.getTree()) {\t\t\t\r\n\t\t\tthis.ontChangeEdPane.setText(html);\r\n\t\t}\r\n\t\telse if (source == repChangeTT.getTree()) {\r\n\t\t\tthis.repChangeEdPane.setText(html);\t\t\t\t\r\n\t\t}\t\t\r\n\t}",
"public void displayParseTreeGui() {\n\n final String extractOfSource = this.source.substring(0, Math.min(this.source.length() - 1, SignatureProcessor.GUI_MAX_TITLE_SIZE));\n\n displayParseTree(this.unitContext, \"Parse tree of : '\" + extractOfSource + \"'...\");\n }",
"public void visualChange();",
"private void setupCodeView() {\n String lines = getCodeStringFromLines();\n codeView.setOptions(Options.Default.get(this).withTheme(ColorTheme.MONOKAI));\n codeView.setCode(lines);\n }",
"public String describeModification(){\n\t\treturn \"The Filler succesfully moved and filler a cave with a pit\";\n\t}",
"void showchange() {\n\t\tif (printstatus != change)\n\t\t\tprintln(\">>>> \" + printoldline + \" CHANGED FROM <br/>\");\n\t\tprintstatus = change;\n\t\toutput+=oldinfo.symbol[printoldline].showSymbol();\n\t\toutput+=\"<br/>\";\n\t\tanyprinted = true;\n\t\tprintoldline++;\n\t}",
"@Test\n public void testModifier() {\n String html = source.toHTML(new SEclipseStyle(), new SModifier());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"<span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class MainClass {\\n\"\n + \" \\n\"\n + \" <span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }<span style=\"\n + \"'color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class Foo {\\n\"\n + \" \\n\"\n + \" <span style='color\"\n + \":#7f0055; font-weight:bold; '>\"\n + \"public</span> boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }",
"public void testEditor() {\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n sampleClass1Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n int insertLine = eo.getLineNumber() + 2;\n eo.insert(\"\\n\", insertLine, 1); // NOI18N\n // Need to disable verification because shortcut \"sout\" is replaced\n // by \"System.out.println(\"\");\" and \"sout\" is not found in Editor\n eo.setCaretPositionToLine(insertLine);\n eo.txtEditorPane().setVerification(false);\n eo.txtEditorPane().typeText(\"sout\"); // NOI18N\n eo.txtEditorPane().typeKey('\\t');\n eo.txtEditorPane().setVerification(true);\n eo.insert(\"Hello\"); // NOI18N\n //eo.insert(\"System.out.println(\\\"Hello\\\");\\n\", insertLine+1, 1); // NOI18N\n final String textToCopy = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n eo.select(textToCopy);\n int oldDispatchingModel = JemmyProperties.getCurrentDispatchingModel();\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n try {\n copyAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n copyAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // wait until clipboard contains text to copy\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object obj) {\n try {\n String text = Toolkit.getDefaultToolkit().getSystemClipboard().\n getContents(null).getTransferData(DataFlavor.stringFlavor).toString();\n return textToCopy.equals(text) ? Boolean.TRUE : null;\n } catch (UnsupportedFlavorException e) {\n // The following exception can be thrown when clipboard is empty.\n // java.awt.datatransfer.UnsupportedFlavorException: Unicode String\n // at org.openide.util.datatransfer.ExTransferable$Empty.getTransferData(ExTransferable.java:461)\n // Ignore this exception.\n return null;\n } catch (IOException ioe) {\n throw new JemmyException(\"Failed getting clipboard content.\", ioe);\n }\n }\n\n @Override\n public String getDescription() {\n return (\"Clipboard contains \" + textToCopy); // NOI18N\n }\n }).waitAction(null);\n } catch (Exception ie) {\n throw new JemmyException(\"Interrupted.\", ie);\n }\n eo.insert(\"int xxxx;\\n\", insertLine + 1, 1); // NOI18N\n eo.select(\"int xxxx;\"); // NOI18N\n PasteAction pasteAction = new PasteAction();\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n eo.select(\"Hello\", 1); // NOI18N\n // \"Delete\"\n DeleteAction deleteAction = new DeleteAction();\n deleteAction.performMenu(eo);\n // wait Hello is deleted\n eo.txtEditorPane().waitText(\"System.out.println(\\\"\\\");\"); // NOI18N\n eo.insert(\"Good bye\"); // NOI18N\n // test cut action\n eo.select(3);\n // \"Cut\"\n CutAction cutAction = new CutAction();\n try {\n cutAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n cutAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // need to wait a little until editor content is refreshed after cut action\n new EventTool().waitNoEvent(500);\n // select from column 1 to 2 at line 3 \n eo.select(2, 1, 2);\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n }",
"private void editShow() {\n\t\tCinema cinemaToEditFrom = ConsoleBoundary.printEditShow();\n\t\tif(cinemaToEditFrom == null)\n\t\t\treturn;\n\t\tShow showToEdit = ConsoleBoundary.printShowList(cinemaToEditFrom);\n\t\tif(showToEdit == null)\n\t\t\treturn;\n\t\tConsoleBoundary.printEditShowDetails(showToEdit);\n\t}",
"public String getSourceCode() {\n return EditorUtilities.getSourceCode(this);\n }",
"private void updateCode(){\n codeText.setText(\"\\\"\" + wepNumber + \"\\\"\\n{\\n\\t\\\"classname\\\"\\t\\t\\\"\" + classname \n + \"\\\"\\n\\t\\\"index\\\"\\t\\t\\\"\" + index + \"\\\"\\n\\t\\\"slot\\\"\\t\\t\\\"\" + slot + \"\\\"\\n\\t\\\"quality\\\"\\t\\t\\\"\" \n + quality + \"\\\"\\n\\t\\\"level\\\"\\t\\t\\\"\" + level + \"\\\"\\n\\t\\\"attribs\\\"\\t\\t\\\"\" + attribs + \"\\\"\\n\\t\\\"ammo\\\"\\t\\t\\\"\"\n + ammo + \"\\\"\\n}\");\n }",
"public void copyCode(ActionEvent actionEvent) {\n content.putString(String.valueOf(teamCombobox.getValue().getTeamCode()));\n clipboard.setContent(content);\n displayMessage(messagePane,\"Code copied\",false);\n }",
"@Test\n void copyModeratorCodeModeratorView(FxRobot robot) {\n FxAssert.verifyThat(\"#copyModeratorCode\", NodeMatchers.isVisible());\n robot.clickOn(\"#copyModeratorCode\");\n // Expect that the content of the clipboard equals the student code of the Question Board\n clipboardTest();\n }",
"public void changeColor(){\n colorSign = \"wine\";\n sign.changeColor(colorSign); \n }",
"public void setSwingCode(String v) {this.swingCode = v;}",
"public String inspect()\n\t{\n\t\tif (!interactedWith) {\n\t\t\tItem dirtyBundle = new Item(\"dirty bundle\");\n\t\t\tdirtyBundle.setDescr(\"There's a dirty bundle on the floor.\\n\");\n\t\t\tTheGreatMansion.getCurrentRoom().addItem(dirtyBundle);\n\t\t\tinteractedWith = true;\n\t\t\treturn \"As you inspect the sleeping figure, it drops a dirty bundle.\\n\";\n\t\t} else {\n\t\t\treturn \"It's sleeping, better not disturb it.\\n\";\n\t\t}\n\t}",
"public void outputToFile(ModifierList original, ModifierList mutant) {\r\n\t\tMutantsInformationHolder.mainHolder().addMutation(MutationOperator.AMC, original, mutant);\r\n\t}",
"private void show() {\n System.out.println(team.toString());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get all the nodes in the graph | public Set<Node<T>> getAllNodes() {
return this.graph.keySet();
} | [
"Collection<Node> allNodes();",
"public Set<String> getAllNodes() {\n return this.graph.keySet();\n }",
"List<Node> getNodes();",
"Collection<Node> getNodes();",
"public List nodes()\n\t{\n\t\t// List<GraphNode>\n\t\treturn nodes ;\n\t}",
"@Override\r\n\tpublic List<N> getNodes() {\n\t\tList<N> nodeList = new ArrayList<N>();\r\n\t\tnodeList.addAll(adjacencyMap.keySet());\r\n\t\treturn nodeList;\r\n\t}",
"@Override\n public Set<Node> getNodes() throws PMException {\n return graph.getNodes();\n }",
"public ArrayList<Node> getNodes()\n {\n ArrayList<Node> ret = new ArrayList<Node>();\n for(ArrayList<Node> nodes: nodeMap.values())\n {\n for(Node node: nodes)\n {\n ret.add(node);\n }\n }\n return ret;\n }",
"public Iterator<GraphNode<N>> nodes() {\n\t\treturn _nodes.iterator();\n\t}",
"public Collection getAllNodes() {\n MNamespace model =\n ProjectManager.getManager().getCurrentProject().getModel();\n return getAllNodes(model);\n }",
"public Nodes getAllNodes() {\r\n\t\tClient client = ClientBuilder.newClient();\r\n\t\tNodes nodes = client.target(this.baseURL+\"/resource/nodes\").request(\"application/xml\").get(Nodes.class);\r\n\t\treturn nodes;\r\n\t}",
"Iterable<Node<E>> nodes();",
"public List<Node> nodes() {\n return this.nodes;\n }",
"public Set<Node> getNodes() { return nodes; }",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public Vector<PathNode> deriveAllDijkstraNodes() {\n\t\treturn shortestPathService.getAllNodes();\n\t}",
"public static ArrayList<Node> getAllNodes(){\n\t\treturn nodeList;\n\t}",
"java.util.List<lightpay.lnd.grpc.LightningNode> \n getNodesList();",
"public LNode[] getNodes() {\n return nodes;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets function that provides caption for component item. | void setItemCaptionProvider(@Nullable Function<? super I, String> itemCaptionProvider); | [
"B itemCaption(ITEM item, Localizable caption);",
"public S withItemCaption(Object itemId, String caption);",
"Imports setCaption(String caption);",
"default B itemCaption(ITEM item, String caption) {\n\t\treturn itemCaption(item, Localizable.builder().message(caption).build());\n\t}",
"@VTID(50)\r\n java.lang.String getCaption();",
"B itemCaptionGenerator(ItemCaptionGenerator<ITEM> itemCaptionGenerator);",
"String getCaption();",
"public interface HasItemCaptionProvider<I> extends Component {\n\n /**\n * Sets function that provides caption for component item.\n *\n * @param itemCaptionProvider caption provider for item\n */\n void setItemCaptionProvider(@Nullable Function<? super I, String> itemCaptionProvider);\n\n /**\n * @return caption provider for item\n */\n @Nullable\n Function<? super I, String> getItemCaptionProvider();\n\n /**\n * @return caption mode\n *\n * @deprecated use {@link HasItemCaptionProvider#getItemCaptionProvider} instead\n */\n @Deprecated\n @Nullable\n default CaptionMode getCaptionMode() {\n Function provider = ((HasItemCaptionProvider) this).getItemCaptionProvider();\n\n if (provider instanceof LegacyCaptionAdapter) {\n return ((LegacyCaptionAdapter) provider).getCaptionMode();\n }\n\n return null;\n }\n\n /**\n * Sets caption mode.\n *\n * @param captionMode caption mode\n *\n * @deprecated use {@link HasItemCaptionProvider#setItemCaptionProvider(Function)} instead\n */\n @Deprecated\n default void setCaptionMode(CaptionMode captionMode) {\n Function provider = ((HasItemCaptionProvider) this).getItemCaptionProvider();\n\n String captionProperty = null;\n if (provider instanceof LegacyCaptionAdapter) {\n captionProperty = ((LegacyCaptionAdapter) provider).getCaptionProperty();\n }\n\n LegacyCaptionAdapter adapter = captionMode != null\n || StringUtils.isNotEmpty(captionProperty)\n ? new LegacyCaptionAdapter(captionMode, captionProperty)\n : null;\n\n setItemCaptionProvider(adapter);\n }\n\n /**\n * @return caption property\n *\n * @deprecated use {@link HasItemCaptionProvider#getItemCaptionProvider} instead\n */\n @Deprecated\n @Nullable\n default String getCaptionProperty() {\n Function provider = ((HasItemCaptionProvider) this).getItemCaptionProvider();\n\n if (provider instanceof LegacyCaptionAdapter) {\n return ((LegacyCaptionAdapter) provider).getCaptionProperty();\n }\n\n return null;\n }\n\n /**\n * Sets caption property.\n *\n * @param captionProperty caption property\n *\n * @deprecated use {@link HasItemCaptionProvider#setItemCaptionProvider(Function)} instead\n */\n @Deprecated\n default void setCaptionProperty(String captionProperty) {\n CaptionMode captionMode = null;\n\n Function provider = ((HasItemCaptionProvider) this).getItemCaptionProvider();\n\n if (provider instanceof LegacyCaptionAdapter) {\n captionMode = ((LegacyCaptionAdapter) provider).getCaptionMode();\n }\n\n LegacyCaptionAdapter adapter = captionMode != null\n || StringUtils.isNotEmpty(captionProperty)\n ? new LegacyCaptionAdapter(captionMode, captionProperty)\n : null;\n\n setItemCaptionProvider(adapter);\n }\n}",
"public void setCaption(String caption) {\n this.caption = caption;\n }",
"void setDynamicCaption(GeoText caption);",
"public void setCaption(String caption) {\n mCaption = caption;\n }",
"public void setCaption(String caption) {\r\n this.caption = caption;\r\n }",
"public void setCaption(String caption) {\n\t // Note how we use the use composition of the contained widgets to provide\n\t // only the methods that we want to.\n\t checkBox.setText(caption);\n\t }",
"public S withItemCaptionPropertyId(Object propertyId);",
"public void setCaption(String caption) {\n this.caption = caption;\n }",
"public String getCaption() {\r\n return caption;\r\n }",
"public void editCaption(){\n\n\t\tint index = list.getSelectionModel().getSelectedIndex();\n\t\talbum.photos.get(index).editCaption(txtCaption.getText().toLowerCase());\n\t\trefresh();\n\n\t}",
"public String getCaption() {\n return caption;\n }",
"void setColumnCaption(Table.Column column, String caption);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__OpenCSV__NameAssignment_2" $ANTLR start "rule__OpenCSV__FileAssignment_3" InternalCsv.g:3738:1: rule__OpenCSV__FileAssignment_3 : ( RULE_STRING ) ; | public final void rule__OpenCSV__FileAssignment_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCsv.g:3742:1: ( ( RULE_STRING ) )
// InternalCsv.g:3743:2: ( RULE_STRING )
{
// InternalCsv.g:3743:2: ( RULE_STRING )
// InternalCsv.g:3744:3: RULE_STRING
{
if ( state.backtracking==0 ) {
before(grammarAccess.getOpenCSVAccess().getFileSTRINGTerminalRuleCall_3_0());
}
match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;
if ( state.backtracking==0 ) {
after(grammarAccess.getOpenCSVAccess().getFileSTRINGTerminalRuleCall_3_0());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__SaveCSV__FileAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3867:1: ( ( RULE_STRING ) )\n // InternalCsv.g:3868:2: ( RULE_STRING )\n {\n // InternalCsv.g:3868:2: ( RULE_STRING )\n // InternalCsv.g:3869:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSaveCSVAccess().getFileSTRINGTerminalRuleCall_3_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSaveCSVAccess().getFileSTRINGTerminalRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__OpenCSV__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:1315:1: ( ( ( rule__OpenCSV__FileAssignment_3 ) ) )\n // InternalCsv.g:1316:1: ( ( rule__OpenCSV__FileAssignment_3 ) )\n {\n // InternalCsv.g:1316:1: ( ( rule__OpenCSV__FileAssignment_3 ) )\n // InternalCsv.g:1317:2: ( rule__OpenCSV__FileAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpenCSVAccess().getFileAssignment_3()); \n }\n // InternalCsv.g:1318:2: ( rule__OpenCSV__FileAssignment_3 )\n // InternalCsv.g:1318:3: rule__OpenCSV__FileAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__OpenCSV__FileAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpenCSVAccess().getFileAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__File__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalData.g:1798:1: ( ( RULE_STRING ) )\n // InternalData.g:1799:2: ( RULE_STRING )\n {\n // InternalData.g:1799:2: ( RULE_STRING )\n // InternalData.g:1800:3: RULE_STRING\n {\n before(grammarAccess.getFileAccess().getNameSTRINGTerminalRuleCall_3_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getFileAccess().getNameSTRINGTerminalRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__SaveCSV__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:1773:1: ( ( ( rule__SaveCSV__FileAssignment_3 )? ) )\n // InternalCsv.g:1774:1: ( ( rule__SaveCSV__FileAssignment_3 )? )\n {\n // InternalCsv.g:1774:1: ( ( rule__SaveCSV__FileAssignment_3 )? )\n // InternalCsv.g:1775:2: ( rule__SaveCSV__FileAssignment_3 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSaveCSVAccess().getFileAssignment_3()); \n }\n // InternalCsv.g:1776:2: ( rule__SaveCSV__FileAssignment_3 )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==RULE_STRING) ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // InternalCsv.g:1776:3: rule__SaveCSV__FileAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__SaveCSV__FileAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSaveCSVAccess().getFileAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__File__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalData.g:1369:1: ( ( ( rule__File__NameAssignment_3 ) ) )\n // InternalData.g:1370:1: ( ( rule__File__NameAssignment_3 ) )\n {\n // InternalData.g:1370:1: ( ( rule__File__NameAssignment_3 ) )\n // InternalData.g:1371:2: ( rule__File__NameAssignment_3 )\n {\n before(grammarAccess.getFileAccess().getNameAssignment_3()); \n // InternalData.g:1372:2: ( rule__File__NameAssignment_3 )\n // InternalData.g:1372:3: rule__File__NameAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__File__NameAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getFileAccess().getNameAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__FileName__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:39295:1: ( ( RULE_CHAR_SEQUENCE ) )\n // InternalDsl.g:39296:2: ( RULE_CHAR_SEQUENCE )\n {\n // InternalDsl.g:39296:2: ( RULE_CHAR_SEQUENCE )\n // InternalDsl.g:39297:3: RULE_CHAR_SEQUENCE\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFileNameAccess().getNameCHAR_SEQUENCETerminalRuleCall_3_0()); \n }\n match(input,RULE_CHAR_SEQUENCE,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFileNameAccess().getNameCHAR_SEQUENCETerminalRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__FileName__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:23399:1: ( ( ( rule__FileName__NameAssignment_3 ) ) )\n // InternalDsl.g:23400:1: ( ( rule__FileName__NameAssignment_3 ) )\n {\n // InternalDsl.g:23400:1: ( ( rule__FileName__NameAssignment_3 ) )\n // InternalDsl.g:23401:2: ( rule__FileName__NameAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFileNameAccess().getNameAssignment_3()); \n }\n // InternalDsl.g:23402:2: ( rule__FileName__NameAssignment_3 )\n // InternalDsl.g:23402:3: rule__FileName__NameAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__FileName__NameAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFileNameAccess().getNameAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__OpenCSV__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:1288:1: ( ( ( rule__OpenCSV__NameAssignment_2 ) ) )\n // InternalCsv.g:1289:1: ( ( rule__OpenCSV__NameAssignment_2 ) )\n {\n // InternalCsv.g:1289:1: ( ( rule__OpenCSV__NameAssignment_2 ) )\n // InternalCsv.g:1290:2: ( rule__OpenCSV__NameAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpenCSVAccess().getNameAssignment_2()); \n }\n // InternalCsv.g:1291:2: ( rule__OpenCSV__NameAssignment_2 )\n // InternalCsv.g:1291:3: rule__OpenCSV__NameAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__OpenCSV__NameAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpenCSVAccess().getNameAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__OpenCSV__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3727:1: ( ( RULE_ID ) )\n // InternalCsv.g:3728:2: ( RULE_ID )\n {\n // InternalCsv.g:3728:2: ( RULE_ID )\n // InternalCsv.g:3729:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpenCSVAccess().getNameIDTerminalRuleCall_2_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpenCSVAccess().getNameIDTerminalRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Mediafile__IdAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPlaylist.g:506:1: ( ( RULE_STRING ) )\n // InternalPlaylist.g:507:2: ( RULE_STRING )\n {\n // InternalPlaylist.g:507:2: ( RULE_STRING )\n // InternalPlaylist.g:508:3: RULE_STRING\n {\n before(grammarAccess.getMediafileAccess().getIdSTRINGTerminalRuleCall_3_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getMediafileAccess().getIdSTRINGTerminalRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Folder__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalData.g:1753:1: ( ( RULE_STRING ) )\n // InternalData.g:1754:2: ( RULE_STRING )\n {\n // InternalData.g:1754:2: ( RULE_STRING )\n // InternalData.g:1755:3: RULE_STRING\n {\n before(grammarAccess.getFolderAccess().getNameSTRINGTerminalRuleCall_3_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getFolderAccess().getNameSTRINGTerminalRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Data__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:15443:1: ( ( ruleEString ) )\n // InternalMyDsl.g:15444:2: ( ruleEString )\n {\n // InternalMyDsl.g:15444:2: ( ruleEString )\n // InternalMyDsl.g:15445:3: ruleEString\n {\n before(grammarAccess.getDataAccess().getNameEStringParserRuleCall_3_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getDataAccess().getNameEStringParserRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__FileExtension__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:39310:1: ( ( RULE_CHAR_SEQUENCE ) )\n // InternalDsl.g:39311:2: ( RULE_CHAR_SEQUENCE )\n {\n // InternalDsl.g:39311:2: ( RULE_CHAR_SEQUENCE )\n // InternalDsl.g:39312:3: RULE_CHAR_SEQUENCE\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFileExtensionAccess().getNameCHAR_SEQUENCETerminalRuleCall_3_0()); \n }\n match(input,RULE_CHAR_SEQUENCE,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFileExtensionAccess().getNameCHAR_SEQUENCETerminalRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EPrimary__FileAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:26032:1: ( ( RULE_STRING ) )\n // InternalAADMParser.g:26033:2: ( RULE_STRING )\n {\n // InternalAADMParser.g:26033:2: ( RULE_STRING )\n // InternalAADMParser.g:26034:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPrimaryAccess().getFileSTRINGTerminalRuleCall_0_1_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPrimaryAccess().getFileSTRINGTerminalRuleCall_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Action__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1254:1: ( ( ( rule__Action__NameAssignment_3 ) ) )\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1255:1: ( ( rule__Action__NameAssignment_3 ) )\n {\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1255:1: ( ( rule__Action__NameAssignment_3 ) )\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1256:1: ( rule__Action__NameAssignment_3 )\n {\n before(grammarAccess.getActionAccess().getNameAssignment_3()); \n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1257:1: ( rule__Action__NameAssignment_3 )\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1257:2: rule__Action__NameAssignment_3\n {\n pushFollow(FOLLOW_rule__Action__NameAssignment_3_in_rule__Action__Group__3__Impl2440);\n rule__Action__NameAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getActionAccess().getNameAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Attribute__NameAssignment_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:2223:1: ( ( ruleEString ) )\n // InternalMyDsl.g:2224:2: ( ruleEString )\n {\n // InternalMyDsl.g:2224:2: ( ruleEString )\n // InternalMyDsl.g:2225:3: ruleEString\n {\n before(grammarAccess.getAttributeAccess().getNameEStringParserRuleCall_3_0_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAttributeAccess().getNameEStringParserRuleCall_3_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Rule__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8739:1: ( ( ( rule__Rule__EnameAssignment_3 ) ) )\n // InternalDsl.g:8740:1: ( ( rule__Rule__EnameAssignment_3 ) )\n {\n // InternalDsl.g:8740:1: ( ( rule__Rule__EnameAssignment_3 ) )\n // InternalDsl.g:8741:2: ( rule__Rule__EnameAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRuleAccess().getEnameAssignment_3()); \n }\n // InternalDsl.g:8742:2: ( rule__Rule__EnameAssignment_3 )\n // InternalDsl.g:8742:3: rule__Rule__EnameAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__Rule__EnameAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRuleAccess().getEnameAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__SaveCSV__OpenAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3848:1: ( ( ( RULE_ID ) ) )\n // InternalCsv.g:3849:2: ( ( RULE_ID ) )\n {\n // InternalCsv.g:3849:2: ( ( RULE_ID ) )\n // InternalCsv.g:3850:3: ( RULE_ID )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSaveCSVAccess().getOpenOpenCSVCrossReference_2_0()); \n }\n // InternalCsv.g:3851:3: ( RULE_ID )\n // InternalCsv.g:3852:4: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSaveCSVAccess().getOpenOpenCSVIDTerminalRuleCall_2_0_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSaveCSVAccess().getOpenOpenCSVIDTerminalRuleCall_2_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSaveCSVAccess().getOpenOpenCSVCrossReference_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Table__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:14337:1: ( ( ruleEString ) )\n // InternalMyDsl.g:14338:2: ( ruleEString )\n {\n // InternalMyDsl.g:14338:2: ( ruleEString )\n // InternalMyDsl.g:14339:3: ruleEString\n {\n before(grammarAccess.getTableAccess().getNameEStringParserRuleCall_3_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getTableAccess().getNameEStringParserRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
coin to use optional string coin_name = 3 [default = "Bitcoin"]; | com.google.protobuf.ByteString
getCoinNameBytes(); | [
"java.lang.String getCoinName();",
"public CoinLabel (Value<Integer> coins)\n {\n this(\"\", coins);\n }",
"public CoinLabel (int coins)\n {\n this(\"\", coins);\n }",
"public CoinLabel (String label, int coins)\n {\n this(label, new Value<Integer>(coins));\n }",
"public Coin(String aName, int aValue) \n { \n value = aValue; \n name = aName.toLowerCase();\n }",
"public CoinType getCoin();",
"public int getCoinNumber(){\r\n\t\treturn coinNumber;\r\n\t}",
"public Coin(double value, String name) {\n this.value = value;\n this.name = name;\n }",
"public String getCoinCode() {\n return coinCode;\n }",
"public Coin()\r\n\t{\r\n\t\tthis.value = 0.0;\r\n\t\tthis.name = \"N/A\";\r\n\t}",
"Money(MoneyType coin)\r\n\t{\r\n\t\tthis(coin,0);\r\n\t}",
"public void setCoinCode(String coinCode) {\n this.coinCode = coinCode;\n }",
"public CoinLabel (String label, Value<Integer> coins)\n {\n super(coins, \"machine\", \"inline\");\n _label = label;\n }",
"protected void increaseCoin(String userID, double coin){\n }",
"public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }",
"public GoldCoin(){\r\n\t\tcoinNumber = ++totalCoin; //prefix so that coinNumber would start with 1\r\n\t}",
"public static Coin getOneDollarOfBitcoin() throws IOException, ParseException {\n System.out.println(\"Getting Bitcoin price\");\n\n // create request\n URL url = new URL(\"https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD\");\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"GET\");\n con.connect();\n\n // handle status code of response\n int responseCode = con.getResponseCode();\n\n if (responseCode != HttpURLConnection.HTTP_OK) {\n throw new RuntimeException(\"Could not retrieve current price due to bad HTTP response\");\n }\n\n // read response\n Scanner sc = new Scanner(url.openStream());\n StringBuilder response = new StringBuilder();\n while (sc.hasNext()) {\n response.append(sc.nextLine());\n }\n\n sc.close();\n\n // create JSON object from response and get price\n JSONParser parse = new JSONParser();\n JSONObject obj = (JSONObject) parse.parse(response.toString());\n double price = (Double) obj.get(\"USD\");\n double dollarWorthOfBitcoin = 1 / price;\n\n // Get number of satoshis in a dollar and return Coin equivalent\n double dollarWorthOfSatoshis = dollarWorthOfBitcoin * 100000000;\n long satoshis = Math.round(dollarWorthOfSatoshis);\n\n return Coin.SATOSHI.multiply(satoshis);\n }",
"Money(MoneyType coin, int amount)\r\n\t{\r\n\t\tsuper(coin.toString(),coin.getValue(),amount);\r\n\t\tmMoneyType = coin;\r\n\t}",
"public void setCoinCount(int coins){\n coinCount = coins;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(void)receiveSymbol:(NSString )symbol fromSource:(NSString )source; | public void receiveSymbol(NSString symbol, NSString source); | [
"public void symbolAdded(SourceType symbol);",
"@Override\n public void sendSymbol(Morse.Symbol symbol) {\n addToBuffer(new SymbolTuple(symbol));\n }",
"java.lang.String getSymbol();",
"@Override\n public void sendSymbol(Morse.Symbol symbol, @Nullable OperationCompletedListener listener) {\n addToBuffer(new SymbolTuple(symbol, listener));\n }",
"public abstract int getSymbol(final BitInputStream in) throws IOException ;",
"public void loadSymbol(String symbol);",
"public void symbolRenamed(SourceType symbol, String oldName);",
"public void symbolScopeChanged(SourceType symbol);",
"public void setSymbol(Symbol symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t}",
"int getSymbol();",
"public String getNewSymbol(int unitLength, FileInputStream input, FileOutputStream output, String buffer) {\n\t\tbyte[] newlyRead = new byte[1];\n\t\ttry {\n\t\t\t// Get the necessary number of bytes to have a byte representation of the symbol\n\t\t\tfor (int index=0; index<unitLength; index++) {\n\t\t\t\tinput.read(newlyRead);\n\t\t\t\tbuffer += String.format(\"%8s\", Integer.toBinaryString(newlyRead[0] & 0xFF)).replace(' ', '0');\n\t\t\t}\n\t\t\t// First n bytes represent the newly read symbol\n\t\t\tString byteRepOfSymbol = buffer.substring(0, 8*unitLength);\n\t\t\t// The rest is the leftovers - return it as buffer\n\t\t\tif (buffer.length()>8*unitLength) {\n\t\t\t\tbuffer = buffer.substring(8*unitLength);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbuffer = \"\";\n\t\t\t}\n\t\t\t// We also need to update the code tree, thus store the bytes\n\t\t\tbyte[] symbolInBytes = new byte[unitLength];\n\t\t\tint index = 0;\n\n\t\t\t// Test whether the symbol just received has not already been seen (in that case it is the end of the stream)\n\t\t\tString temp = byteRepOfSymbol;\n\t\t\twhile (temp.length()>0) {\n\t\t\t\t// Take the first 8 elements (length of a byte)\n\t\t\t\tString byteAsString = temp.substring(0, 8);\n\t\t\t\t// Parse them into a byte\n\t\t\t\tfinal byte[] byteArray = new BigInteger(byteAsString, 2).toByteArray();\n\t\t\t\t byte toWrite = (byte)0;\n\t\t\t\tfor (byte b : byteArray) {\n\t\t\t\t\ttoWrite=b;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbyte byteToWrite = toWrite;\n\t\t\t\t\n\t\t\t\t// Store in a byte array to be able to check\n\t\t\t\tsymbolInBytes[index] = byteToWrite;\n\n\t\t\t\t// Truncate the string\n\t\t\t\tif (temp.length()>8) {\n\t\t\t\t\ttemp = temp.substring(8);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// If the symbol has already been seen, the end of the file is reached. Return.\n\t\t\tif (codeTree.getsymbolNodeMap().keySet().contains(symbolInBytes)) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Loop through the string, cutting bytes off it, writing them to the output and updating the code tree using them\n\t\t\twhile (byteRepOfSymbol.length()>0) {\n\t\t\t\t// Take the first 8 elements (length of a byte)\n\t\t\t\tString byteAsString = byteRepOfSymbol.substring(0, 8);\n\t\t\t\t\n\t\t\t\t// Parse them into a byte\n\t\t\t\tfinal byte[] byteArray = new BigInteger(byteAsString, 2).toByteArray();\n\t\t\t\t byte toWrite = (byte)0;\n\t\t\t\tfor (byte b : byteArray) {\n\t\t\t\t\ttoWrite=b;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbyte byteToWrite = toWrite;\n\t\t\t\t\n\t\t\t\t// Write the output\n\t\t\t\toutput.write(byteToWrite);\n\t\t\t\toutput.flush();\n\t\t\t\tif (byteRepOfSymbol.length()>8) {\n\t\t\t\t\tbyteRepOfSymbol = byteRepOfSymbol.substring(8);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbyteRepOfSymbol = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Update the code tree\n\t\t\tcodeTree.updateTree(symbolInBytes);\n\t\t\treturn buffer;\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public void createNewSymbol(String name);",
"public abstract void receive(CommNode source, Object packet, simulation.timebased.Simulator simulator);",
"abstract void setSymbol(char symbol);",
"public interface SutInterface {\n\t\n\tpublic Symbol sendInput(Symbol input);\n\t\n\tpublic void sendReset();\n}",
"public abstract String getFullTickerSymbol(SymbolData parsedSymbol, StockExchange exchange);",
"public void putSymbol(String s) throws MathLinkException;",
"public void primarySymbolSet(SourceType symbol);",
"public Symbol getCurrentPlayerSymbol();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stops the layout process and decrease CPU load | public void stopLayouting() {
PrefuseForceAbstractLayoutStorage.getForceDirectedLayout(viewManagerID).setEnabled(false);
} | [
"public void stopLayoutThread() {\n \tif (fLayoutThread != null) {\n \t\tfLayoutThread.doLayout = false;\n \tfLayoutThread.interrupt();\n \tfLayoutThread = null;\n \t}\n }",
"public void endLayout()\n {\n }",
"public void stopRendering()\n\t{\n\t}",
"public void shutDown() {\n hideElements();\n turnOffButton();\n }",
"public void stop() {\n if (this.visRunnable != null) {\n this.visRunnable.stop();\n }\n setRelaxing(false);\n }",
"public void destroy() {\n processor.stopVisualising();\n processor.destroyCanvas();\n }",
"public void stop() {\n\t\tif (canvas != null) {\n\t\t\t// AJKL: 04/15/06 for Cytoscape 2.3\n\t\t\t// canvas.removeInputEventListener(this);\n\t\t\tcanvas.removeMouseListener(this);\n\t\t\tcanvas.removeMouseMotionListener(this);\n\t\t\tcanvas.removeKeyListener(this);\n\t\t\tthis.view = null;\n\t\t\tthis.canvas = null;\n\t\t}\n\t}",
"Pool stopResize();",
"public void stop()\n\t\t\t{\n\t\t\t\tif (canvas.mainThread != null) {\n\t\t\t\t\tcanvas.mainThread.stop();\n\t\t\t\t\tcanvas.cleanup();\n\t\t\t\t}\n\t\t\t}",
"public void stopLoad();",
"private void turnOff()\r\n\t{\n\t\tdisplay.calcRunning = false;\r\n\t}",
"public void stopSweeper()\r\n\t{\r\n\t\tsynchronized (lock) {\r\n\t\t\tcache = null;\r\n\t\t\tlock.notify();\r\n\t\t}\r\n\t}",
"public void switchOff() {\n\n\t\treleaseResources();\n\t\t\n\t\texit();\n\t}",
"public void stopUI() {\n stopPlayStation(null);\n Displayable d = currDisplayable_;\n \n if (logger_ != null) {\n logger_.flush();\n }\n showLog();\n model_.save();\n \n try {\n Thread.sleep((logger_ == null) ? 1000 : 4000); // 1sec\n } catch (InterruptedException ex) { /*...*/ }\n }",
"static void endTrimMemory() {\n Gl20Renderer.endTrimMemory();\n }",
"public void resetLayout() {\n\t\t\n\t}",
"void stopHorizontally();",
"public void stop() {\n intake(0.0);\n }",
"@Override\r\n\tpublic void stopClicked() {\r\n\t\t\r\n\t\tfor(MineLayer mineLayer : this.mineLayers){\r\n\t\t\tmineLayer.setLayerRunning(false);\r\n\t\t}\r\n\t\t\r\n\t\tfor(MineSweeper mineSweeper : this.mineSweepers){\r\n\t\t\tmineSweeper.setSweeperRunning(false);\r\n\t\t}\r\n\t\t\r\n\t\tlayersExecutor.shutdown();\r\n\t\tsweepersExecutor.shutdown();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// block thread to wait 1 minute for the exeutor services to shutdown\r\n\t\t\tlayersExecutor.awaitTermination(1, TimeUnit.MINUTES);\r\n\t\t\tsweepersExecutor.awaitTermination(1, TimeUnit.MINUTES);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tlayersExecutor.shutdownNow();\r\n\t\tsweepersExecutor.shutdownNow();\r\n\t\t\r\n\t\tthis.board.clearBoard();\r\n\t\t\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove all transitions from the transition set. | public void removeAllTransitions() {
getTransitions().clear();
} | [
"public void removeTransitions(ApplicationStateTransition transition) {\n PropertyIterator iter = getTransitions().iterator();\n while (iter.hasNext()) {\n ApplicationStateTransition item =\n (ApplicationStateTransition) iter.next().getObjectValue();\n if (transition.equals(item)) {\n iter.remove();\n }\n }\n }",
"public android.transition.TransitionSet removeTransition(android.transition.Transition transition) { throw new RuntimeException(\"Stub!\"); }",
"public static void removeAllActivities() {\n\n for (int i = 0; i < activityStore.size(); i++) {\n try {\n if (activityStore.get(i) != null) {\n (activityStore.get(i)).overridePendingTransition(0, 0);\n (activityStore.get(i)).finish();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n System.runFinalizersOnExit(true);\n activityStore.clear();\n }",
"public Set<Transition> transitionsFrom();",
"@Override\n public void clear() {\n super.clear();\n setProperty(new CollectionProperty(TRANSITIONS, new ArrayList()));\n }",
"public void trimTransitionsArray() {\n if (numTransitions < transitionsArray.length) {\n final Transition[] newArray = new Transition[numTransitions];\n System.arraycopy(transitionsArray, 0, newArray, 0, numTransitions);\n transitionsArray = newArray;\n }\n }",
"public void removeAll()\r\n {\r\n synchronized (myObjectToStateMap)\r\n {\r\n myAllObjects = null;\r\n synchronized (myTaskMap)\r\n {\r\n for (Task task : myTaskMap.values())\r\n {\r\n task.cancelAll();\r\n }\r\n }\r\n myObjectToStateMap.clear();\r\n myStateToObjectsMap.clear();\r\n }\r\n }",
"void unsetTransitionType();",
"public void removeAll()\n {\n Iterator<String> it = CollectionFactory.createHashedSet( created ).iterator();\n while (it.hasNext()) removeGraph( it.next() );\n }",
"void removeTransition(Transition transition){\n TransitionGroup transitionGroup = transitionToTransitionGroup.remove(transition);\n this.closeStateSettingsRectangle();\n this.closeTransitionSettingsRectangle();\n graphGroup.getChildren().remove(transitionGroup);\n }",
"private void deleteSelectedTransition()\n {\n Transition oppositeTransition = optionsPanel.getWorkspacePanel().findTransitionBetween(transition.getToState(), transition.getFromState());\n if (oppositeTransition != null)\n {\n oppositeTransition.setTangent(false);\n }\n optionsPanel.getWorkspacePanel().repaint();\n optionsPanel.getWorkspacePanel().getNFA().removeTransition(transition);\n optionsPanel.getWorkspacePanel().setTool(LMWorkspacePanel.SELECT_TOOL);\n optionsPanel.changeOptions(\"blank\");\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (WorkflowRequest workflowRequest : findAll()) {\n\t\t\tremove(workflowRequest);\n\t\t}\n\t}",
"private void removeIntransitionMap(final Transition t) {\n final List<Transition> list = intransitionMap.get(t.getTarget());\n list.remove(t);\n }",
"public void clearHistory() {\n historyStack.clear();\n lastTransition = null;\n }",
"public Set<Transition> transitionsTo();",
"@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }",
"public void clearActions() {\n internalGroup.clearActions();\n }",
"public void removeAll () {\n\t\teffects.clear();\n\t}",
"public void clearAllRemoved() {\r\n\t\t\r\n\t\troot=clearAllRemoved(root);\r\n\t\t\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads parameters for the provided base key depending on whether the other image is RAW. | public List<String> readParameters(final String baseKey, final boolean otherRaw) {
if (otherRaw) {
return readParameters(baseKey + RAW_KEY);
} else {
return readParameters(baseKey + NON_RAW_KEY);
}
} | [
"rfid.Rfid.BaseParamOrBuilder getBaseInfoOrBuilder();",
"private void readParameters() throws IOException\n\t\t{\n\t\tboolean found=false;\n\t\tFile fParamsDir=new File(basedir,\"parameters\");\n\t\tfor(File f:fParamsDir.listFiles())\n\t\t\t{\n\t\t\tif(f.getName().endsWith(\"-parameters\"))\n\t\t\t\t{\n\t\t\t\tfound=true;\n\t\t\t\tString content=EvFileUtil.readFile(f);\n\t\t\t\tStringTokenizer stok=new StringTokenizer(content, \"\\n\");\n\t\t\t\twhile(stok.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\tString line=stok.nextToken();\n\t\t\t\t\tif(!line.startsWith(\"#\") && !line.equals(\"\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer linetok=new StringTokenizer(line, \" \");\n\t\t\t\t\t\tString key=linetok.nextToken();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(key.equals(\"xy_res\"))\n\t\t\t\t\t\t\txy_res=Double.parseDouble(linetok.nextToken());\n\t\t\t\t\t\telse if(key.equals(\"z_res\"))\n\t\t\t\t\t\t\tz_res=Double.parseDouble(linetok.nextToken());\n\t\t\t\t\t\telse if(key.equals(\"time_interval\"))\n\t\t\t\t\t\t\ttime_interval=new EvDecimal(linetok.nextToken()).multiply(60);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.println(\"Unhandled: \"+key);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(!found)\n\t\t\tthrow new IOException(\"No parameters file found\");\n\t\t\t\n\t\t}",
"private void readParameterTable()\n// throws IOException\n {\n\n if (this.parameters != null) return;\n parameters = new Grib1Parameter[NPARAMETERS];\n\n int center;\n int subcenter;\n int number;\n\n try{\n\n BufferedReader br;\n if (filename != null && filename.length() > 0)\n {\n GribPDSParamTable tab = (GribPDSParamTable) fileTabMap.get(filename);\n if (tab != null)\n {\n this.parameters = tab.parameters;\n return;\n }\n }\n if (url != null){\n InputStream is = url.openStream();\n InputStreamReader isr = new InputStreamReader(is);\n br = new BufferedReader(isr);\n }else{\n br = new BufferedReader(new FileReader(\"tables\\\\\" + filename));\n }\n\n\n // Read first\n String line = br.readLine();\n String[] tableDefArr = SmartStringArray.split(\":\", line);\n\n center = Integer.parseInt(tableDefArr[1].trim());\n subcenter = Integer.parseInt(tableDefArr[2].trim());\n number = Integer.parseInt(tableDefArr[3].trim());\n// if (center != center_id && subcenter != subcenter_id &&\n// number!= table_number){\n// throw new java.io.IOException(\"parameter table header values do not \" +\n// \" match values in GRIB file. Possible error in lookup table.\");\n// }\n\n //int i=0; // peg - Variable never used\n // rdg - added the 0 line length check to cover the case of blank lines at\n // the end of the parameter table file.\n while ((line = br.readLine()) != null )\n {\n line = line.trim();\n if (line.length() == 0 || line.startsWith(\"//\")) continue;\n\n Grib1Parameter parameter = new Grib1Parameter();\n tableDefArr = SmartStringArray.split(\":\", line);\n parameter.number = Integer.parseInt(tableDefArr[0].trim());\n parameter.code = tableDefArr[1].trim();\n // check to see if unit defined, if not, parameter is undefined\n if (tableDefArr[2].indexOf('[') == -1)\n {\n // Undefined unit\n parameter.description = parameter.units = tableDefArr[2].trim();\n }\n else\n {\n String[] arr2 = SmartStringArray.split(\"[\", tableDefArr[2]);\n parameter.description = arr2[0].trim();\n // Remove \"]\"\n parameter.units = arr2[1].substring(0, arr2[1].lastIndexOf(']')).trim();\n// parameter.unit = arr2[1].substring(0, arr2[1].lastIndexOf(']')).trim();\n }\n //this.parameters[i++]=parameter;\n if (!this.setParameter(parameter)){\n Logger.println(\"Warning, bad parameter ignored (\" + filename + \"): \" + parameter.toString(), Logger.ERROR);\n }\n }\n if (filename != null && filename.length() > 0){\n GribPDSParamTable loadedTable = new GribPDSParamTable(filename, center, subcenter, number, this.parameters);\n fileTabMap.put(filename, loadedTable);\n }\n } catch (IOException ioError) {\n Logger.println(\"An error occurred in GribPDSParamTable while \" +\n \"trying to open the parameter table \" + filename + \" : \" + ioError,\n Logger.ERROR);\n }\n }",
"rfid.Rfid.BaseParam getBaseInfo();",
"public BufferedImage readImage(File file, String thisMode, String otherMode) throws IOException {\n if (thisMode.equals(Photohawk.READ_MODE_DIRECT)) {\n return readDirect(file);\n }\n\n if (thisMode.equals(Photohawk.READ_MODE_DCRAW)) {\n List<String> params = parameterReader.readParameters(baseKey, otherMode.equals(Photohawk.READ_MODE_DCRAW));\n RawImageReader ir = new RawImageReader();\n return ir.read(file.getAbsolutePath(), params);\n }\n return null;\n }",
"abstract public String getImageKey();",
"private int readObjectDataValues(final PdfObject pdfObject, int i, final byte[] raw, final int length) {\n \n int level=0;\n //allow for no << at start\n if(isInlineImage) {\n level = 1;\n }\n \n while(true){\n \n if(i<length && raw[i]==37) //allow for comment and ignore\n {\n i = stripComment(length, i, raw);\n }\n \n /**\n * exit conditions\n */\n if ((i>=length ||\n (endPt !=-1 && i>= endPt))||\n (raw[i] == 101 && raw[i + 1] == 110 && raw[i + 2] == 100 && raw[i + 3] == 111)||\n (raw[i]=='s' && raw[i+1]=='t' && raw[i+2]=='r' && raw[i+3]=='e' && raw[i+4]=='a' && raw[i+5]=='m')) {\n break;\n }\n \n /**\n * process value\n */\n if(raw[i]==60 && raw[i+1]==60){\n i++;\n level++;\n }else if(raw[i]==62 && i+1!=length && raw[i+1]==62 && raw[i-1]!=62){\n i++;\n level--;\n \n if(level==0) {\n break;\n }\n }else if (raw[i] == 47 && (raw[i+1] == 47 || raw[i+1]==32)) { //allow for oddity of //DeviceGray and / /DeviceGray in colorspace\n i++;\n }else if (raw[i] == 47) { //everything from /\n \n i++; //skip /\n \n final int keyStart=i;\n final int keyLength= Dictionary.findDictionaryEnd(i, raw, length);\n i += keyLength;\n \n if(i==length) {\n break;\n }\n \n //if BDC see if string\n boolean isStringPair=false;\n if(pdfObject.getID()== PdfDictionary.BDC) {\n isStringPair = Dictionary.isStringPair(i, raw, isStringPair);\n }\n \n final int type=pdfObject.getObjectType();\n \n if(debugFastCode) {\n System.out.println(\"type=\" + type + ' ' + ' ' + pdfObject.getID() + \" chars=\" + (char) raw[i - 1] + (char) raw[i] + (char) raw[i + 1] + ' ' + pdfObject + \" i=\" + i + ' ' + isStringPair);\n }\n \n //see if map of objects\n final boolean isMap = isMapObject(pdfObject, i, raw, length, keyStart, keyLength, isStringPair, type);\n \n if(raw[i]==47 || raw[i]==40 || (raw[i] == 91 && raw[i+1]!=']')) //move back cursor\n {\n i--;\n }\n \n //check for unknown value and ignore\n if(pdfKeyType==-1) {\n i = ObjectUtils.handleUnknownType(i, raw, length);\n }\n \n /**\n * now read value\n */\n if(PDFkeyInt==-1 || pdfKeyType==-1){\n if(debugFastCode) {\n System.out.println(padding + pdfObject.getObjectRefAsString() + \" =================Not implemented=\" + PDFkey + \" pdfKeyType=\" + pdfKeyType);\n }\n }else{\n i = setValue(pdfObject, i, raw, length, isMap);\n }\n \n //special case if Dest defined as names object and indirect\n }else if(raw[i]=='[' && level==0 && pdfObject.getObjectType()==PdfDictionary.Outlines){\n \n final Array objDecoder=new Array(objectReader,i, raw.length, PdfDictionary.VALUE_IS_MIXED_ARRAY,null, PdfDictionary.Names);\n objDecoder.readArray(false, raw, pdfObject, PdfDictionary.Dest);\n \n }\n \n i++;\n \n }\n \n return i;\n }",
"public Map<String, List<String>> getBaseParams() {\n return baseParams;\n }",
"protected abstract RMItem readData( int id, String key );",
"public void readRunParams(Configuration conf) throws IOException {\n \t\tPath[] uris = DistributedCache.getLocalCacheFiles(conf);\n \t\t\n \t\tfor (int i = 0; i < uris.length; i++) {\n \t\t\tif (uris[i].toString().contains(SPARAMS_FILENAME)) {\n \t\t\t\tBufferedReader fis = new BufferedReader(new FileReader(uris[i].toString()));\n \t\t\t\t_run_params.readFromXML(fis);\n \t\t\t}\n \t\t}\n \t}",
"private List<String> readParameters(final String key) {\n List<String> parameters = new ArrayList<String>();\n String p = null;\n try {\n p = getProperties().getProperty(key);\n if (p != null) {\n parameters.addAll(Arrays.asList(p.split(\"\\\\s+\")));\n }\n } catch (IOException e) {\n throw new DcrawException(\"Error reading dcraw properties.\", e);\n }\n return parameters;\n }",
"public BDdfIdParams getReadParameters() { return (BDdfIdParams)get(readParameters); }",
"private void loadBaseFromContext() {\n errorReporter.requireNonNull(baseRef, \"baseRef must be non-null in AnalysisReport.loadBaseFromContext\");\n errorReporter.requireNonNull(contextResourceBundle, \"contextResourceBundle must be non-null in AnalysisReport.loadBaseFromContext\");\n errorReporter.requireNull(baseObj, \"baseObj must be null in AnalysisReport.loadBaseFromContext\");\n\n Map<String, String> params = baseRef.getParametersAsMap();\n BaseResource resource = null;\n if (hasValue(params, \"focusUrl\")) {\n String focusUrl = params.get(\"focusUrl\");\n ResourceWrapper wrapper = findResourceInBundle(getContextBundle(), focusUrl);\n resource = wrapper.getResource();\n } else if (hasValue(params, \"fhirPath\")) {\n FhirPath fhirPath = new FhirPath(params.get(\"fhirPath\"));\n resource = resourceFromBundle((Bundle) contextResourceBundle.getResource(), fhirPath);\n } else if (\"Bundle\".equals(baseRef.getResourceType()) &&\"Bundle\".equals(contextResourceBundle.getResourceType())){\n Bundle bundle = (Bundle) contextResourceBundle.getResource();\n if (isPDBRequest(bundle)) {\n baseObj = findSubmissionSetFhirCounterpartInRequestBundle(bundle);\n if (baseObj != null) {\n Ref baseObjRef = baseObj.getRef();\n baseObj.setContext(bundle);\n baseRef.addParameter(\"focusUrl\", baseObjRef.toString());\n baseObj.setRef(baseRef);\n }\n } else if (isPDBResponse(bundle)) {\n Ref dmLocation = findSubmissionSetFhirCounterpartInResponseBundle(bundle);\n if (dmLocation != null) {\n try {\n baseObj = contextResourceBundle;\n // Since DocResponder can be independent from the docRecip, use the direct location from the PDB response if the location is a URL\n // try direct location reference if it exists in the response\n Ref absRef = new Ref(dmLocation.getUri().toURL()); // Will automatically use this URL in future\n FhirClient fhirClient = new FhirClient();\n ResourceWrapper dm = fhirClient.readResource(absRef);\n baseObj = dm;\n baseRef = absRef;\n } catch (Exception ex) {\n // try rebase using the self link if it exists\n String bundleLink = bundle.hasLink() ? bundle.getLink(\"self\").getUrl() : null;\n if (bundleLink != null) {\n Ref dmRef = dmLocation.rebase(bundleLink);\n FhirClient fhirClient = new FhirClient();\n ResourceWrapper dm = fhirClient.readResource(dmRef);\n baseObj = dm;\n baseRef = dmRef;\n }\n // else\n // Default behavior\n // Possible option: rebase using the proxy channel fhir base address\n }\n }\n } else {\n baseObj = new ResourceWrapper(bundle)\n .setRef(baseRef)\n .setContext((Bundle)contextResourceBundle.getResource());\n }\n } else {\n load(baseRef, null);\n }\n if (resource != null && baseObj == null)\n baseObj = new ResourceWrapper(resource)\n .setRef(baseRef)\n .setContext((Bundle)contextResourceBundle.getResource());\n }",
"private void calculateBaseAndHeight() {\n\n if (ribs[0].equals(ribs[1])) {\n base = ribs[2].getLength();\n height = calculateHeight(ribs[0].getLength(),base);\n } else if (ribs[1].equals(ribs[2])) {\n base = ribs[0].getLength();\n height = calculateHeight(ribs[1].getLength(),base);\n } else if (ribs[2].equals(ribs[0])) {\n base = ribs[1].getLength();\n height = calculateHeight(ribs[2].getLength(),base);\n } else {\n base = 0;\n height = 0;\n }\n\n }",
"public void setBaseParams(Map<String, List<String>> baseParams) {\n this.baseParams = baseParams;\n }",
"public void read() {\n\t\trfRowNr = new HashMap<String, String>();\n\t\tparameters = new HashMap<String, String>();\n\n\t\tBufferedReader reader = null;\n\t\t\n\t\tLog.d(TAG,\"Reading resources\");\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(rf));\n\t\t\tString row;\n\t\t\tint rownr = 0;\n\t\t\twhile ((row = reader.readLine()) != null) {\n\t\t\t\tif (row.startsWith(\"#\") || row.trim() == \"\") {\n\t\t\t\t\trfRowNr.put(String.valueOf(rownr), row);\n\t\t\t\t\trownr += 1;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString[] keyValuePair = row.split(\":\");\n\t\t\t\t// For rfRowNr, rownumber is key and value is settings key-word\n\t\t\t\trfRowNr.put(String.valueOf(rownr), keyValuePair[0]);\n\t\t\t\tparameters.put(keyValuePair[0], keyValuePair[1].trim());\n\t\t\t\trownr += 1;\n\t\t\t}\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\tLog.e(TAG, \"Error: \" + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tLog.e(TAG, \"Error: \" + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\treader.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(TAG, \"Error: \" + e.getMessage());\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.last_read = this.rf.lastModified();\n\t}",
"@Nullable\n public byte[] getAdditionalParameter(@NonNull String key) {\n require(key, notNullValue());\n return mAdditionalParams.get(key);\n }",
"protected static void populateKeyParams(BasicSecurityConfiguration config) {\n // Maybe populate some DSA parameters here, if there are commonly accepcted default values\n }",
"private void readParameters() {\n File file = new File(\"C:\\\\Users\\\\Sergio\\\\IdeaProjects\\\\engine-circlesimage\\\\parameters.txt\");\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n String line = br.readLine();\n while ( line != null ) {\n String[] splittedLine = line.split(\" \");\n setScreenParameters(splittedLine);\n setPopulationParameters(splittedLine);\n setVariationCircleImages(splittedLine);\n setBackgroundsImagesPaths(splittedLine);\n setScreenShootPath(splittedLine);\n setProgramCosmetics(splittedLine);\n line = br.readLine();\n }\n br.close();\n } catch ( IOException e ) {\n System.out.println(\"The file can't be read!\");\n e.printStackTrace();\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor for the name of the load fetch group | String getLoadFetchGroup(); | [
"java.lang.String getGroupName();",
"public String getName()\n\t{\n\t\treturn groupName;\n\t}",
"public String groupName() {\n return this.groupName;\n }",
"public String getGroupName() {\n return groupName;\n }",
"java.lang.String getGrpNm();",
"MemberMetadata setLoadFetchGroup(String grp);",
"@Override\r\n public LoadGroup getGroup(String attributeNameOrPath) {\r\n return (LoadGroup)super.getGroup(attributeNameOrPath);\r\n }",
"public String getGroupName() {\n return groupInfo.groupName;\n }",
"public String getGroupName() {\n return (String)getAttributeInternal(GROUPNAME);\n }",
"public String getSGroupName() {\n return sGroupName;\n }",
"public String getGroupName() {\r\n return (String) getAttributeInternal(GROUPNAME);\r\n }",
"public String getLabelGroupName() {\n return this.labelGroupName;\n }",
"String getRequestReaderGroupName();",
"java.lang.String getOrderGroupNm();",
"default String getGroup() {\n return this.getModuleId().getGroup();\n }",
"public abstract String getJobGroup();",
"java.lang.String getHospGroupName();",
"String getKvtReaderGroupName();",
"public String getGroup() {\n return group;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.proto.UserRegister.PreferenceMethod preference_method = 4; | net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod(); | [
"net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod();",
"void savePreference(SignUpResponse response);",
"net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();",
"void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeException;",
"@java.lang.Override public net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod() {\n @SuppressWarnings(\"deprecation\")\n net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod result = net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.valueOf(preferenceMethod_);\n return result == null ? net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.UNRECOGNIZED : result;\n }",
"public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }",
"void registerPreference(VendorPreference preference) {\n this.preference = preference;\n }",
"public interface UserProto$UserProbationOrBuilder extends MessageLiteOrBuilder {\n boolean getDeleted();\n\n Timestamp getDeletedSince();\n\n boolean getHasChurned();\n\n boolean getSuspended();\n\n Timestamp getSuspendedSince();\n\n Timestamp getSuspendedUntil();\n\n String getUserUuid();\n\n ByteString getUserUuidBytes();\n\n boolean hasDeletedSince();\n\n boolean hasSuspendedSince();\n\n boolean hasSuspendedUntil();\n}",
"@Headers({\"Content-Type: application/json\", \"Cache-Control: no-cache\"})\n @POST(\"/userpreference/create\")\n Call<Void> createUserPreference(@Body List<Preference> preferences);",
"pl.stormit.protobuf.UserProtos.User.UserType getUserType();",
"pb4server.AddInstanceStrengthAskReq getAddInstanceStrengthAskReq();",
"void register(String name, Prototype proto);",
"public void setProto(String p) {\n\t\tproto = p;\n\t}",
"public interface PreferenceKV {\n\n /*Name of SharedPreference*/\n String SHARED_PREFERENCE = \"UserSharedPreference\";\n\n String KEY_IS_PROFILE_PIC_GENERATED = \"isProfilePicGenerated\";\n boolean DEF_IS_PROFILE_PIC_GENERATED = false;\n\n String KEY_IS_CV_GENERATED = \"isCVGenerated\";\n boolean DEF_IS_CV_GENERATED = false;\n\n String USER_NUM = \"mobileNumber\";\n String DEF_NUM = \"0\";\n\n\n\n}",
"public interface PU_REQ_TYPE {\n public static final int REQ_NULL = 0;\n public static final int REQ_GET = 1;\n public static final int REQ_SET = 2;\n }",
"protocol.Message.NotifyFriendChangedReqMsg.Detail.Action getAction();",
"com.zzsong.netty.protobuff.two.ProtoData.Person.Gender getGender();",
"com.openmdmremote.harbor.HRPCProto.RemoteAuth.Type getType();",
"CommandResult createPartyTypePasswordStringPolicy(UserVisitPK userVisitPK, CreatePartyTypePasswordStringPolicyForm form);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field15' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField15() {
field15 = null;
fieldSetFlags()[15] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n return this;\n }",
"private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmZipCodeValue.setText(\"\");\r\n\t\tmZipCodeValue.setHint(\"Zipcode\");\r\n\t\tmCVVNoValue.setText(\"\");\r\n\t\tmCVVNoValue.setHint(\"CVV\");\r\n\t}",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n return this;\n }",
"private void clearCreditCardFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmCardNoValue1.requestFocus();\r\n\t}",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField158() {\n field158 = null;\n fieldSetFlags()[158] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField1015() {\n field1015 = null;\n fieldSetFlags()[1015] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField115() {\n field115 = null;\n fieldSetFlags()[115] = false;\n return this;\n }",
"private void clearFields(){\r\n\r\n acctBalanceField.clear();\r\n acctNameField.clear();\r\n\r\n\r\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar15() {\n var15 = null;\n fieldSetFlags()[16] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField11() {\n field11 = null;\n fieldSetFlags()[11] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField345() {\n field345 = null;\n fieldSetFlags()[345] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField154() {\n field154 = null;\n fieldSetFlags()[154] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField141() {\n field141 = null;\n fieldSetFlags()[141] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField121() {\n field121 = null;\n fieldSetFlags()[121] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField34() {\n field34 = null;\n fieldSetFlags()[34] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField16() {\n field16 = null;\n fieldSetFlags()[16] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField213() {\n field213 = null;\n fieldSetFlags()[213] = false;\n return this;\n }",
"private void clearTextFields() {\n for(int i = 0; i < 4; i++)\n field[i].setText(\"\");\n }",
"private void clear(TextField inputField) {\n\n inputField.clear(); // clear keyboard nextLine for enter key\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifiers declared in rule constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3 | private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3() {
return identifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3;
} | [
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16() {\r\n return identifiers_constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_2_COMPONENT_txtOp_4() {\r\n return identifiers_constrainInterpretation01_PATH_1_GOAL_2_COMPONENT_txtOp_4;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17() {\r\n return identifiers_constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22() {\r\n return identifiers_constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9() {\r\n return identifiers_constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6() {\r\n return identifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7() {\r\n return identifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20() {\r\n return identifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13() {\r\n return identifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13;\r\n }",
"public String[] getDeclaredIdentifiers(int ruleIndex) {\r\n switch (ruleIndex) {\r\n case 0: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_1_COMPONENT_txtParcela1_0();\r\n case 1: return getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1();\r\n case 2: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2();\r\n case 3: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3();\r\n case 4: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_2_COMPONENT_txtOp_4();\r\n case 5: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5();\r\n case 6: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6();\r\n case 7: return getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7();\r\n case 8: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8();\r\n case 9: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9();\r\n case 10: return getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_4_COMPONENT_txtResp_10();\r\n case 11: return getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11();\r\n case 12: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12();\r\n case 13: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13();\r\n case 14: return getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14();\r\n case 15: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15();\r\n case 16: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16();\r\n case 17: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17();\r\n case 18: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18();\r\n case 19: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19();\r\n case 20: return getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20();\r\n case 21: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21();\r\n case 22: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22();\r\n case 23: return getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_8_COMPONENT_txtResp_23();\r\n case 24: return getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_8_COMPONENT_txtResp_24();\r\n case 25: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25();\r\n default: return new String[0];\r\n }\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11() {\r\n return identifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Flow__EventAssignment_1_1" $ANTLR start "rule__ENAME__ElabelAssignment_0" InternalDsl.g:35060:1: rule__ENAME__ElabelAssignment_0 : ( ruleELABEL ) ; | public final void rule__ENAME__ElabelAssignment_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:35064:1: ( ( ruleELABEL ) )
// InternalDsl.g:35065:2: ( ruleELABEL )
{
// InternalDsl.g:35065:2: ( ruleELABEL )
// InternalDsl.g:35066:3: ruleELABEL
{
if ( state.backtracking==0 ) {
before(grammarAccess.getENAMEAccess().getElabelELABELParserRuleCall_0_0());
}
pushFollow(FOLLOW_2);
ruleELABEL();
state._fsp--;
if (state.failed) return ;
if ( state.backtracking==0 ) {
after(grammarAccess.getENAMEAccess().getElabelELABELParserRuleCall_0_0());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Event__ElabelAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35728:1: ( ( ruleELABEL ) )\n // InternalDsl.g:35729:2: ( ruleELABEL )\n {\n // InternalDsl.g:35729:2: ( ruleELABEL )\n // InternalDsl.g:35730:3: ruleELABEL\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEventAccess().getElabelELABELParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleELABEL();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEventAccess().getElabelELABELParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleELABEL() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:892:2: ( ( ( rule__ELABEL__LabelAssignment ) ) )\n // InternalDsl.g:893:2: ( ( rule__ELABEL__LabelAssignment ) )\n {\n // InternalDsl.g:893:2: ( ( rule__ELABEL__LabelAssignment ) )\n // InternalDsl.g:894:3: ( rule__ELABEL__LabelAssignment )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getELABELAccess().getLabelAssignment()); \n }\n // InternalDsl.g:895:3: ( rule__ELABEL__LabelAssignment )\n // InternalDsl.g:895:4: rule__ELABEL__LabelAssignment\n {\n pushFollow(FOLLOW_2);\n rule__ELABEL__LabelAssignment();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getELABELAccess().getLabelAssignment()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Flow__EventAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35034:1: ( ( ruleENAME ) )\n // InternalDsl.g:35035:2: ( ruleENAME )\n {\n // InternalDsl.g:35035:2: ( ruleENAME )\n // InternalDsl.g:35036:3: ruleENAME\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFlowAccess().getEventENAMEParserRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleENAME();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFlowAccess().getEventENAMEParserRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ENAME__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:5127:1: ( ( ( rule__ENAME__ElabelAssignment_0 ) ) | ( ( rule__ENAME__ScheventnameAssignment_1 ) ) )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==RULE_ID) ) {\n alt5=1;\n }\n else if ( (LA5_0==36||(LA5_0>=55 && LA5_0<=58)) ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // InternalDsl.g:5128:2: ( ( rule__ENAME__ElabelAssignment_0 ) )\n {\n // InternalDsl.g:5128:2: ( ( rule__ENAME__ElabelAssignment_0 ) )\n // InternalDsl.g:5129:3: ( rule__ENAME__ElabelAssignment_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENAMEAccess().getElabelAssignment_0()); \n }\n // InternalDsl.g:5130:3: ( rule__ENAME__ElabelAssignment_0 )\n // InternalDsl.g:5130:4: rule__ENAME__ElabelAssignment_0\n {\n pushFollow(FOLLOW_2);\n rule__ENAME__ElabelAssignment_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENAMEAccess().getElabelAssignment_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalDsl.g:5134:2: ( ( rule__ENAME__ScheventnameAssignment_1 ) )\n {\n // InternalDsl.g:5134:2: ( ( rule__ENAME__ScheventnameAssignment_1 ) )\n // InternalDsl.g:5135:3: ( rule__ENAME__ScheventnameAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENAMEAccess().getScheventnameAssignment_1()); \n }\n // InternalDsl.g:5136:3: ( rule__ENAME__ScheventnameAssignment_1 )\n // InternalDsl.g:5136:4: rule__ENAME__ScheventnameAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__ENAME__ScheventnameAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENAMEAccess().getScheventnameAssignment_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final EObject ruleENAME() throws RecognitionException {\n EObject current = null;\n\n EObject lv_elabel_0_0 = null;\n\n Enumerator lv_scheventname_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalDsl.g:1137:2: ( ( ( (lv_elabel_0_0= ruleELABEL ) ) | ( (lv_scheventname_1_0= ruleEventName ) ) ) )\n // InternalDsl.g:1138:2: ( ( (lv_elabel_0_0= ruleELABEL ) ) | ( (lv_scheventname_1_0= ruleEventName ) ) )\n {\n // InternalDsl.g:1138:2: ( ( (lv_elabel_0_0= ruleELABEL ) ) | ( (lv_scheventname_1_0= ruleEventName ) ) )\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0==RULE_ID) ) {\n alt16=1;\n }\n else if ( (LA16_0==187||(LA16_0>=205 && LA16_0<=208)) ) {\n alt16=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n }\n switch (alt16) {\n case 1 :\n // InternalDsl.g:1139:3: ( (lv_elabel_0_0= ruleELABEL ) )\n {\n // InternalDsl.g:1139:3: ( (lv_elabel_0_0= ruleELABEL ) )\n // InternalDsl.g:1140:4: (lv_elabel_0_0= ruleELABEL )\n {\n // InternalDsl.g:1140:4: (lv_elabel_0_0= ruleELABEL )\n // InternalDsl.g:1141:5: lv_elabel_0_0= ruleELABEL\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getENAMEAccess().getElabelELABELParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_elabel_0_0=ruleELABEL();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getENAMERule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"elabel\",\n \t\t\t\t\t\tlv_elabel_0_0,\n \t\t\t\t\t\t\"scheduling.Dsl.ELABEL\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalDsl.g:1159:3: ( (lv_scheventname_1_0= ruleEventName ) )\n {\n // InternalDsl.g:1159:3: ( (lv_scheventname_1_0= ruleEventName ) )\n // InternalDsl.g:1160:4: (lv_scheventname_1_0= ruleEventName )\n {\n // InternalDsl.g:1160:4: (lv_scheventname_1_0= ruleEventName )\n // InternalDsl.g:1161:5: lv_scheventname_1_0= ruleEventName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getENAMEAccess().getScheventnameEventNameEnumRuleCall_1_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_scheventname_1_0=ruleEventName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getENAMERule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"scheventname\",\n \t\t\t\t\t\tlv_scheventname_1_0,\n \t\t\t\t\t\t\"scheduling.Dsl.EventName\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final void rule__ELABEL__LabelAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35848:1: ( ( RULE_ID ) )\n // InternalDsl.g:35849:2: ( RULE_ID )\n {\n // InternalDsl.g:35849:2: ( RULE_ID )\n // InternalDsl.g:35850:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getELABELAccess().getLabelIDTerminalRuleCall_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getELABELAccess().getLabelIDTerminalRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Event__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:10575:1: ( ( ( rule__Event__ElabelAssignment_1 ) ) )\n // InternalDsl.g:10576:1: ( ( rule__Event__ElabelAssignment_1 ) )\n {\n // InternalDsl.g:10576:1: ( ( rule__Event__ElabelAssignment_1 ) )\n // InternalDsl.g:10577:2: ( rule__Event__ElabelAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEventAccess().getElabelAssignment_1()); \n }\n // InternalDsl.g:10578:2: ( rule__Event__ElabelAssignment_1 )\n // InternalDsl.g:10578:3: rule__Event__ElabelAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__Event__ElabelAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEventAccess().getElabelAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Flow__EventAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35049:1: ( ( ruleENAME ) )\n // InternalDsl.g:35050:2: ( ruleENAME )\n {\n // InternalDsl.g:35050:2: ( ruleENAME )\n // InternalDsl.g:35051:3: ruleENAME\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFlowAccess().getEventENAMEParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleENAME();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFlowAccess().getEventENAMEParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Label__NameAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:15575:1: ( ( ruleEString ) )\n // InternalMyDsl.g:15576:2: ( ruleEString )\n {\n // InternalMyDsl.g:15576:2: ( ruleEString )\n // InternalMyDsl.g:15577:3: ruleEString\n {\n before(grammarAccess.getLabelAccess().getNameEStringParserRuleCall_4_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getLabelAccess().getNameEStringParserRuleCall_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final EObject ruleELABEL() throws RecognitionException {\n EObject current = null;\n\n Token lv_label_0_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalDsl.g:2732:2: ( ( (lv_label_0_0= RULE_ID ) ) )\n // InternalDsl.g:2733:2: ( (lv_label_0_0= RULE_ID ) )\n {\n // InternalDsl.g:2733:2: ( (lv_label_0_0= RULE_ID ) )\n // InternalDsl.g:2734:3: (lv_label_0_0= RULE_ID )\n {\n // InternalDsl.g:2734:3: (lv_label_0_0= RULE_ID )\n // InternalDsl.g:2735:4: lv_label_0_0= RULE_ID\n {\n lv_label_0_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(lv_label_0_0, grammarAccess.getELABELAccess().getLabelIDTerminalRuleCall_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tif (current==null) {\n \t\t\t\t\tcurrent = createModelElement(grammarAccess.getELABELRule());\n \t\t\t\t}\n \t\t\t\tsetWithLastConsumed(\n \t\t\t\t\tcurrent,\n \t\t\t\t\t\"label\",\n \t\t\t\t\tlv_label_0_0,\n \t\t\t\t\t\"scheduling.Dsl.ID\");\n \t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final void ruleEvent() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:410:2: ( ( ( rule__Event__NameAssignment ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:411:1: ( ( rule__Event__NameAssignment ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:411:1: ( ( rule__Event__NameAssignment ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:412:1: ( rule__Event__NameAssignment )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEventAccess().getNameAssignment()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:413:1: ( rule__Event__NameAssignment )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:413:2: rule__Event__NameAssignment\r\n {\r\n pushFollow(FOLLOW_rule__Event__NameAssignment_in_ruleEvent821);\r\n rule__Event__NameAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEventAccess().getNameAssignment()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__EventDef__EventnameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:39700:1: ( ( ruleEventName ) )\n // InternalDsl.g:39701:2: ( ruleEventName )\n {\n // InternalDsl.g:39701:2: ( ruleEventName )\n // InternalDsl.g:39702:3: ruleEventName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEventDefAccess().getEventnameEventNameEnumRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleEventName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEventDefAccess().getEventnameEventNameEnumRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Rule__EnameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35124:1: ( ( ruleENAME ) )\n // InternalDsl.g:35125:2: ( ruleENAME )\n {\n // InternalDsl.g:35125:2: ( ruleENAME )\n // InternalDsl.g:35126:3: ruleENAME\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRuleAccess().getEnameENAMEParserRuleCall_3_0()); \n }\n pushFollow(FOLLOW_2);\n ruleENAME();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRuleAccess().getEnameENAMEParserRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EventDef__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:25506:1: ( ( ( rule__EventDef__EventnameAssignment_0 ) ) )\n // InternalDsl.g:25507:1: ( ( rule__EventDef__EventnameAssignment_0 ) )\n {\n // InternalDsl.g:25507:1: ( ( rule__EventDef__EventnameAssignment_0 ) )\n // InternalDsl.g:25508:2: ( rule__EventDef__EventnameAssignment_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEventDefAccess().getEventnameAssignment_0()); \n }\n // InternalDsl.g:25509:2: ( rule__EventDef__EventnameAssignment_0 )\n // InternalDsl.g:25509:3: rule__EventDef__EventnameAssignment_0\n {\n pushFollow(FOLLOW_2);\n rule__EventDef__EventnameAssignment_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEventDefAccess().getEventnameAssignment_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EventProp__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:6977:1: ( ( ( rule__EventProp__EventNameAssignment_0_2 ) ) )\n // InternalSymboleoide.g:6978:1: ( ( rule__EventProp__EventNameAssignment_0_2 ) )\n {\n // InternalSymboleoide.g:6978:1: ( ( rule__EventProp__EventNameAssignment_0_2 ) )\n // InternalSymboleoide.g:6979:2: ( rule__EventProp__EventNameAssignment_0_2 )\n {\n before(grammarAccess.getEventPropAccess().getEventNameAssignment_0_2()); \n // InternalSymboleoide.g:6980:2: ( rule__EventProp__EventNameAssignment_0_2 )\n // InternalSymboleoide.g:6980:3: rule__EventProp__EventNameAssignment_0_2\n {\n pushFollow(FOLLOW_2);\n rule__EventProp__EventNameAssignment_0_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEventPropAccess().getEventNameAssignment_0_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ControlFlow__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:8122:1: ( ( ruleEString ) )\n // InternalActivityDiagram.g:8123:1: ( ruleEString )\n {\n // InternalActivityDiagram.g:8123:1: ( ruleEString )\n // InternalActivityDiagram.g:8124:1: ruleEString\n {\n before(grammarAccess.getControlFlowAccess().getNameEStringParserRuleCall_1_0()); \n pushFollow(FollowSets000.FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getControlFlowAccess().getNameEStringParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void entryRuleELABEL() throws RecognitionException {\n try {\n // InternalDsl.g:880:1: ( ruleELABEL EOF )\n // InternalDsl.g:881:1: ruleELABEL EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getELABELRule()); \n }\n pushFollow(FOLLOW_1);\n ruleELABEL();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getELABELRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void rule__ENAME__ScheventnameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35079:1: ( ( ruleEventName ) )\n // InternalDsl.g:35080:2: ( ruleEventName )\n {\n // InternalDsl.g:35080:2: ( ruleEventName )\n // InternalDsl.g:35081:3: ruleEventName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENAMEAccess().getScheventnameEventNameEnumRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleEventName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENAMEAccess().getScheventnameEventNameEnumRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EventFunction__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35788:1: ( ( RULE_ID ) )\n // InternalDsl.g:35789:2: ( RULE_ID )\n {\n // InternalDsl.g:35789:2: ( RULE_ID )\n // InternalDsl.g:35790:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEventFunctionAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEventFunctionAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the named direct children of this node as a list of ValidatedNode objects. | public List getChildren(String elementName) {
List namedList = new ArrayList();
for (Iterator i = children.iterator(); i.hasNext();) {
ValidatedNode currentNode = (ValidatedNode) i.next();
if (elementName.equals(currentNode.getElement().getName())) {
namedList.add(currentNode);
}
}
return namedList;
} | [
"public List<SaveGameNode> getAllChilden(String name) {\r\n List<SaveGameNode> list = new ArrayList();\r\n list.addAll(this.children.stream().filter(child -> child.equals(name)).collect(Collectors.toList()));\r\n return list;\r\n }",
"public StrieNode[] getAllChildren(){\r\n\t\t// O(1)\r\n\t\treturn children;\r\n\t}",
"public synchronized List<Xen> children() {\n if ( (children == NO_CHILDREN) && notAttrMock())\n children = new ArrayList<Xen>();\n\n return children;\n }",
"public List<Node> gather_children() {\n \n List<Node> child_list = new ArrayList<Node>();\n \n NodeList children = node.getChildNodes();\n if (children != null) {\n for (int ii = 0; ii < children.getLength(); ii++) {\n Node child = children.item(ii);\n if (child.getNodeType() == Node.ELEMENT_NODE) {\n child_list.add (child);\n }\n }\n }\n return child_list;\n }",
"public List<String> leafElements(String name) {\n List<Child> children = this.children; // fix the snapshot that we'll work with\n \n final List<String> r = new ArrayList<String>();\n for (Child child : children) {\n if (child.name.equals(name)) {\n // error check on model guarantees that this cast works.\n r.add(t(((LeafChild) child).value));\n }\n }\n return r;\n }",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }",
"public List<StringNode> getChildren() {\n return children;\n }",
"public static List<Element> getChildElementsOfName(Node n, String name) {\n //if ( name == null ) throw new IllegalArgumentException(\"Name cannot be null\");\n return getChildElementsOfName( n, name, false );\n }",
"public Set<Step> children() {\n return ImmutableSet.copyOf(children);\n }",
"public final Set<Node> getAllErrorNodes() {\n\t\tSet<Node> result = new HashSet<Node>();\n\t\tif (this.containsErrors()) {\n\t\t\tresult.add(this);\n\t\t}\n\t\tfor (final Node child : this.getChildrenNodesAsArray()) {\n\t\t\tresult.addAll(child.getAllErrorNodes());\n\t\t}\n\n\t\tresult = Collections.unmodifiableSet(result);\n\n\t\tContract.ensureResultNotNull(result);\n\t\treturn result;\n\t}",
"public Set<String> getChildren() {\n return Collections.unmodifiableSet(children);\n }",
"public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }",
"public List<Dom> nodeElements(String elementName) {\n List<Child> children = this.children; // fix the snapshot that we'll work with\n \n final List<Dom> r = new ArrayList<Dom>();\n int len = children.size();\n for( int i=0; i<len; i++ ) {\n Child child = children.get(i);\n if(child.name.equals(elementName)) {\n // error check on model guarantees that this works.\n r.add(((NodeChild)child).dom);\n }\n }\n return r;\n }",
"public Element[] getChildren(){\n\t\tElement[] elems = new Element[children.size()];\n\t\treturn children.toArray(elems);\n\t}",
"protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }",
"public List<Node> getChildren(){\n List<Node> list = new ArrayList<Node>();\n for(Node child : children){\n list.add(child.copy());\n }\n return list;\n }",
"public ArrayList<String> getAllChildren(){ \n\t\treturn getAllChildrenRecursive(this,1);\n\t}",
"public ArrayList<Node> getChildList(){\n return children;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ The constructor that initializes the customer ID. | public Customer (int i){
ID = i;
} | [
"public Customer()\n {\n // initialise instance variables\n id = genID();\n name = genName();\n }",
"public Customer(int id) {\n\t\tthis.id = id;\n\t}",
"public Customer(String name, int idNum)\n {\n this.name = name;\n id = idNum;\n }",
"public Customer(int customerID){\n\t this.customerName = \"Name\";\n\t this.customerAddress = \"Address\";\n this.customerID = customerID;\n // initialize bank accounts\n checkingAccount = new CheckingAccount(customerID, customerName, 0);\n savingsAccount = new SavingsAccount(customerID, customerName, 0);\n studentAccount = new SavingsAccount(customerID, customerName, 0);\n autoAccount = new SavingsAccount(customerID, customerName, 0);\n }",
"public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}",
"Customer(String name, int id) {\n\t\t\n\t\t// Initialize name and id as provided\n\t\tthis.name = name;\n\t\tthis.id = id;\n\t\t\n\t}",
"public Customer()\r\n {\r\n super();\r\n customerNumber = \"\";\r\n mailingList = false;\r\n }",
"public Customer(int id, String myName, String myEmail) {\n\t\tID = id ;\n\t\tname = myName ;\n\t\temail = myEmail ;\n\t}",
"public void setCustomerID(int value) {\r\n this.customerID = value;\r\n }",
"public Customer_view_main(int customerId) {\n this.id = customerId;\n }",
"public Customer() {\n\t\tsuper();\n\t}",
"public void setIdCustomer(int idCustomer) {\n this.idCustomer = idCustomer;\n }",
"public void setCustomerId(String value)\n {\n customerId = value;\n }",
"public Customer(int id, String surname, String name, String patronymic, String address, int creditCardNumber, int bankAccountNumber) {\n this.id = id;\n this.surname = surname;\n this.name = name;\n this.patronymic = patronymic;\n this.address = address;\n this.creditCardNumber = creditCardNumber;\n this.bankAccountNumber = bankAccountNumber;\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public com.diviso.graeshoppe.order.avro.Order.Builder setCustomerId(java.lang.String value) {\n validate(fields()[1], value);\n this.customerId = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public Customer() {\n\t\tcustref++;\n\t}",
"Customer(int customerid, int duration, int arrivaltime) {\r\n\t\t// add statements\r\n\t\tthis.customerID = customerid;\r\n\t\tthis.transactionTime = duration;\r\n\t\tthis.arrivalTime = arrivaltime;\r\n\t}",
"public void setCustId(java.lang.CharSequence value) {\n this.custId = value;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
name: prev action: updates board to prev solution | protected void prev(View v){
this.draw_board(s.get_grid_index(this.current));
this.set_message("Solution #"+current);
this.current--;
if(this.current<0){
this.current=91;
}
} | [
"public void previous() {\r\n\t\tif (currentIndex == 0) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"There are no more teams\", \"Previous team\",\r\n\t\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t} else {\r\n\t\t\tcurrentIndex--;\r\n\t\t\tupdateInterface();\r\n\t\t}\r\n\t}",
"private void update_single_backwards(TrainingDojoMain.playedGame result) {\n ArrayList<TrainingDojoMain.state> states = result.states;\n ArrayList<Direction> actions0 = result.actions0;\n ArrayList<Direction> actions1 = result.actions1;\n\n // Handle last state as it is special\n TrainingDojoMain.state cur_game = states.get(states.size() - 1);\n Integer[][] cur_state = toBoard(cur_game.snake0, cur_game.snake1, result.mazeSize, cur_game.apple);\n Integer[][] inv_cur_state = toBoard(cur_game.snake1, cur_game.snake0, result.mazeSize, cur_game.apple);\n\n Direction cur_action0 = actions0.get(states.size() - 1);\n Direction cur_action1 = actions1.get(states.size() - 1);\n\n if (result.winner == -1) {\n updateQ(cur_state, cur_action0, 10d);\n updateQ(inv_cur_state, cur_action1, -10d);\n } else if (result.winner == 1) {\n updateQ(cur_state, cur_action0, -10d);\n updateQ(inv_cur_state, cur_action1, 10d);\n } else {\n updateQ(cur_state, cur_action0, -1);\n updateQ(inv_cur_state, cur_action1, -1);\n }\n\n Integer[][] next_state = cur_state;\n Integer[][] inv_next_state = inv_cur_state;\n\n // Looping Backwards, should improve convergence as it already\n // takes the updated value for the next_state into account\n for (int i = states.size() - 1; i > 1; i--) {\n // Load the current state and convert it to a for our QTable compatible format\n cur_game = states.get(i - 1);\n cur_state = toBoard(cur_game.snake0, cur_game.snake1, result.mazeSize, cur_game.apple);\n // Invert board (switching snake0 and 1 from position) to maximize learning from single example\n inv_cur_state = toBoard(cur_game.snake1, cur_game.snake0, result.mazeSize, cur_game.apple);\n\n // Calculate the reward from going from the cur_state to the next_state\n double reward0 = calculateReward(cur_state, next_state);\n double reward1 = calculateReward(inv_cur_state, inv_next_state);\n\n // Update the Q table with\n updateQ(cur_state, next_state, cur_action0, reward0);\n updateQ(inv_cur_state, inv_next_state, cur_action1, reward1);\n\n //Load values for next iteration\n next_state = cur_state;\n inv_next_state = inv_cur_state;\n cur_action0 = actions0.get(i - 1);\n cur_action1 = actions1.get(i - 1);\n }\n }",
"private void updatePreviousTransition() {\n \t\tEnvelope env = this.transitions.getPreviousTransition(this.lockedRank);\n \t\tthis.previousLeftIndex = env.getLinenumber();\n \n \t\t// Go back until you reach the first call or beginning\n \t\tif (env.isCollective() && this.lockedRank == -1) {\n \t\t\twhile (true) {\n \t\t\t\tenv = this.transitions.getPreviousTransition(this.lockedRank);\n \t\t\t\tif (env == null) {\n \t\t\t\t\tupdateFirstTransition(true);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\tif (env.getLinenumber() != this.previousLeftIndex) {\n \t\t\t\t\tenv = this.transitions.getNextTransition(this.lockedRank);\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tthis.previousLeftIndex = env.getLinenumber();\n \t\tsetButtonEnabledState();\n \t\tupdateCodeViewers();\n \t\tdisplayEnvelopes(env);\n \t\tupdateSelectedLine(true);\n \t\tthis.transitionLabelIndex--;\n \t\tsetMessageLabelText();\n \t}",
"private void prevQuestion(){\n if (!index.isFirst()){\n saveAnswer();\n index.moveToPrevious();\n displayQuestion();\n }\n }",
"SolutionChange getPreviousChange();",
"@Override\n\tpublic boolean undoAction() {\n\n\t\tPuzzleLevel level = (PuzzleLevel) BuilderViewReference.get().getModel().getCurrentLevel();\n\t\t\n\t\tif(prev == value){\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlevel.setMaxMoves(prev);\n\t\t\treturn true;\n\t\t}\n\t}",
"public void undo(Move prevMove) {\n\t\tif (prevMove == null) {\n\t\t\treturn ;\n\t\t}\n\t\tprevMove.swap();\n\t\tupdateView(prevMove);\n\t\tif (prevMove.getDeletedPiece() == null) {\n\t\t\treturn;\n\t\t}\n\t\tString pieceName = prevMove.getDeletedPiece().toString();\n\t\tboolean isBlackPiece = prevMove.getDeletedPiece().isBlackPiece();\n\t\tpieceName = \"resources/images/\" + (isBlackPiece ? \"black\" : \"white\") + pieceName.toLowerCase() +\".png\";\n\n\t\tPosition source = prevMove.getSource();\n\t\tBufferedImage cellImg = PhotosUtilities.loadImage(pieceName);\n\t\tif (cellImg != null) {\n\t\t\t_boardButtons[source.getRow()][source.getColumn()].setIcon(new ImageIcon(cellImg));\n\t\t}\n\t}",
"private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then undo that impact as well\n if (checkGameWin(button.getSmallGame().getLettersOfAllButtons())) {\n //Resets \"partOfWonBoard\" for the buttons on the same smallGame\n for (ButtonClass b: button.getSmallGame().getAllButtons()) {\n b.setPartOfWonBoard(false);\n }\n button.getSmallGame().changeGameColor(R.color.black);\n }\n button.resetButtonResource();\n allClickedButtons.remove(button);\n if(allClickedButtons.size() > 0) {\n chosenButton = allClickedButtons.get(allClickedButtons.size()-1);\n chosenGame = chosenButton.getSmallGame();\n updateBigGameBoardForNextMove();\n } else {\n activity.startGame();\n }\n } else {\n Toast.makeText(activity,\n \"Cannot undo at this time\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"public void setPreviousBoardIndex(int previousBoardIndex) {\n this.previousBoardIndex = previousBoardIndex;\n }",
"public void prevFrame();",
"private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }",
"public void previousSolution() {\r\n\t\tif (solutionIndex > 0) {\r\n\t\t\tsolutionIndex--;\r\n\t\t\tcreateObjectDiagram(solutions.get(solutionIndex));\r\n\t\t} else {\r\n\t\t\tLOG.info(LogMessages.pagingFirst);\r\n\t\t}\r\n\t}",
"public void switchToPreviousPlayer() {\r\n if (currentPlayerIndex == 0) {\r\n currentPlayerIndex = players.size() - 1;\r\n } else {\r\n currentPlayerIndex = currentPlayerIndex - 1;\r\n }\r\n }",
"public void undo() {\n if (undoAvailable()) {\n int saved[] = this.previousMoves.get(this.previousMoves.size() - 1);\n this.previousMoves.remove(this.previousMoves.size() - 1);\n this.board.makeMove(saved[0], saved[1], saved[2], saved[3]);\n addScoreBy(2); //penalty for using undo\n }\n }",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"public void previous() {\n\t\tcurrentStation = (currentStation > 0) ? --currentStation : 0;\n\t\tdisplay();\n\t}",
"public int getPreviousBoardIndex() {\n return previousBoardIndex;\n }",
"public void stepToPreviousElement() {\r\n\t\tstopReplay();\r\n\t\tif(DataProvider.getInstance().getActiveReplay() != null)\r\n\t\t\tDataProvider.getInstance().decrementReplayPosition();\r\n\t}",
"public void previousStep(){\n logger.info(\"\");\n logger.info(\"BUTTON - BACK\");\n disableNavButtons();\n \t// delegate data consumption to background thread\n \tPrevStepTask task = new PrevStepTask();\n \tnew Thread(task).start();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Blocking Deque BlockingDeque size limited by Redis to 4 294 967 295 elements. poll, pollFromAny, pollLastAndOfferFirstTo and take methods will be resubscribed automatically during reconnection to Redis server or Redis server failover. | public static void testBlockingDeque() throws InterruptedException {
RedissonClient redisson = RedissonUtil.getRedissonClient();
RBlockingDeque<Integer> deque = redisson.getBlockingDeque("anyDeque");
deque.putFirst(1);
deque.putLast(2);
Integer firstValue = deque.takeFirst();
Integer lastValue = deque.takeLast();
Integer firstValue1 = deque.pollFirst(10, TimeUnit.MINUTES);
Integer lastValue1 = deque.pollLast(3, TimeUnit.MINUTES);
} | [
"int getAutoGrowCollectionLimit();",
"public int getQueueCapacity();",
"public static void testBoundedBlockingQueue() throws InterruptedException {\r\n\t\tRedissonClient redisson = RedissonUtil.getRedissonClient();\r\n\t\tRBoundedBlockingQueue<String> queue = redisson.getBoundedBlockingQueue(\"anyQueue\");\r\n\t\t\r\n\t\t// returns `true` if capacity set successfully and `false` if it already set.\r\n\t\tqueue.trySetCapacity(2);\r\n\r\n\t\tqueue.offer(\"a\");\r\n\t\tqueue.offer(\"b\");\r\n\t\t\r\n\t\t// waits for space to become available\r\n\t\tqueue.put(\"c\");\r\n\r\n\t\tString obj = queue.peek();\r\n\t\tString someObj = queue.poll();\r\n\t\tString ob = queue.poll(10, TimeUnit.MINUTES);\r\n\t}",
"public int size() { return dequeSize; }",
"@Override\n public int capacity() {\n return queue.length;\n }",
"public interface BlockingBoundedQueue\n{\n /*. \n * Sets the capacity of the buffer. Can be called only once.. more info on 1point3acres.com\n * If called more than once or if the passed capacity is <= 0,\n * throw an exception.\n */\n public void init(int capacity) throws Exception; \n /*\n * Get the next item from the queue\n * throws Exception if not initialized\n */\n public Object get() throws Exception;\n\n /*\n * Put the item to the tail of the queue.\n * throws Exception if not initialized\n */\n public void put(Object obj) throws Exception;\n}",
"public Blocking_queue(int maximum_size) {\n this.maximum_size = maximum_size;\n }",
"public DLDeque(){\n\t_front = null;\n\t_end = null;\n\t_size = 0;\n\t//default capacity value\n\t_capacity = 10;\n }",
"private static void unboundedBlockingQueue() {\r\n\t\tBlockingQueue<String> blockingQueue = new LinkedBlockingQueue<String>();\r\n\t}",
"public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}",
"E dequeue() throws QueueUnderflowException;",
"public int can_take() { return ( settings.req_max_backlog - request_queue.size() ); }",
"public void testHostLimitExcludesQueued() throws Exception {\n UploadSettings.HARD_MAX_UPLOADS.setValue(1);\n UploadSettings.SOFT_MAX_UPLOADS.setValue(1);\n UploadSettings.UPLOADS_PER_PERSON.setValue(2);\n UploadSettings.UPLOAD_QUEUE_SIZE.setValue(1);\n\n // take up the free slot\n HTTPDownloader d1 = addUploader(uploadManager, rfd1, \"1.1.1.1\", true);\n connectDloader(d1, true, rfd1, true);\n\n // take up the queue slot\n HTTPDownloader d2 = addUploader(uploadManager, rfd2, \"1.1.1.1\", true);\n try {\n connectDloader(d2, true, rfd2, true);\n fail(\"d2 should have been queued\");\n } catch (QueuedException expected) {\n }\n\n // third request should get rejected\n HTTPDownloader d3 = addUploader(uploadManager, rfd3, \"1.1.1.1\", true);\n try {\n connectDloader(d3, true, rfd3, true);\n fail(\"Host limit reached, should not have accepted d3\");\n } catch (QueuedException qx) {\n fail(\"host limit reached should not queue\", qx);\n } catch (TryAgainLaterException expectedException) {\n } catch (IOException ioe) {\n }\n\n // have the queued downloader re-poll, it should\n // still be queued.\n\n Thread.sleep(HTTPUploadSession.MIN_POLL_TIME\n + HTTPUploadSession.MAX_POLL_TIME / 2);\n try {\n connectDloader(d2, true, rfd2, true);\n fail(\"should have been queued\");\n } catch (QueuedException expected) {\n }\n }",
"int threadPoolQueueSize();",
"@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }",
"<V> RBlockingDeque<V> getBlockingDeque(String name);",
"protected void updateMaxQueueLength() {\n if (this.waitingQueue.size() >= this.maxQueueLength) {\n if (this.currentCustomer != null) {\n this.maxQueueLength = this.waitingQueue.size() + 1;\n } else {\n this.maxQueueLength = this.waitingQueue.size();\n }\n }\n }",
"public int size() {\r\n\t\treturn FIFOQueue.size();\r\n\t}",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save the current content of this cipher. | void save() {
if (counterSave == null) {
counterSave = new byte[blockSize];
encryptedCounterSave = new byte[blockSize];
}
System.arraycopy(counter, 0, counterSave, 0, blockSize);
System.arraycopy(encryptedCounter, 0, encryptedCounterSave, 0,
blockSize);
usedSave = used;
} | [
"private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"public void save() {\n if (message == null || currentView == null) {\n return;\n }\n\n if (isEditable) {\n if (currentView.hasChanged()) {\n currentView.save();\n }\n }\n }",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"public String getCipher() { return this.cipher; }",
"public byte[] getCipherPayload(){\r\n\t\treturn cipherPayload;\r\n\t}",
"public void writeToCipherFile(String str)\n {\n\n File cipherFile = new File(\"cipher.txt\");\n\n try (FileOutputStream fop = new FileOutputStream(cipherFile)) {\n\n // if file doesn't exists, then create it\n if (!cipherFile.exists()) {\n cipherFile.createNewFile();\n }\n\n // get the content in bytes\n byte[] contentInBytes = str.getBytes();\n\n fop.write(contentInBytes);\n fop.flush();\n fop.close();\n\n System.out.println(\"Done encrypting and writing the encryption into Cipher.txt\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }",
"void restore() {\n System.arraycopy(counterSave, 0, counter, 0, blockSize);\n System.arraycopy(encryptedCounterSave, 0, encryptedCounter, 0,\n blockSize);\n used = usedSave;\n }",
"public void saved()\r\n {\r\n /////////////////////////////////\r\n // TODO: work with cloned value\r\n }",
"public void save(String filePath, String password) {\n FileOutputStream fos = null;\n CipherOutputStream cos = null;\n ObjectOutputStream oos = null;\n try {\n fos = new FileOutputStream(filePath);\n try {\n if (password != null) {\n cos = new CipherOutputStream(fos, Crypto.getCipher(\n Crypto.Mode.ENCRYPT,\n password));\n oos = new ObjectOutputStream(cos);\n } else {\n oos = new ObjectOutputStream(fos);\n }\n oos.writeObject(this);\n oos.flush();\n oos.close();\n if (password != null) {\n cos.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(Manager.class.getName()).\n log(Level.SEVERE, null, ex);\n }\n try {\n fos.close();\n } catch (IOException ex) {\n Logger.getLogger(Manager.class.getName()).\n log(Level.SEVERE, null, ex);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void saveNewCharacter() {\n LocallySavedFiles save = new LocallySavedFiles(context);\n save.saveNewCharacterLocally(className);\n }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void writeFile(){\n\t\t//Checks if the save type is 1+\n\t\tif(TypeOfEn == 0){\n\t\t\ttry{\n\t\t\t\t//Gets the content from the text area and saves into a string\n\t\t\t\tString Content = TextA.getText();\n\n\t\t\t\t//This string is for the end product after the encryption\n\t\t\t\tString EnContent = \"\";\n\n\t\t\t\t//This loop will read every char of the Content string and add one to the\n\t\t\t\t//ASCII number.\n\t\t\t\tfor(int i = 0; i< Content.length(); i++){\n\t\t\t\t\tif(Character.isLetter(Content.charAt(i))){\n\t\t\t\t\t\tchar NL = (char) (Content.charAt(i)+1);\n\t\t\t\t\t\tEnContent = EnContent + NL;\n\t\t\t\t\t}\n\t\t\t\t\t//If its not a character we skip it.\n\t\t\t\t\telse\n\t\t\t\t\t\tEnContent = EnContent + Content.charAt(i);\n\t\t\t\t}\n\n\t\t\t\t//Write the file\n\t\t\t\tFileWriter outFile = new FileWriter(FN);\n\t\t\t\toutFile.write(EnContent);\n\n\t\t\t\t// Close the file\n\t\t\t\toutFile.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File Not Found: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IO Error: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t\t//Checks if the save type is reverse\n\t\tif(TypeOfEn == 1){\n\t\t\ttry{\n\t\t\t\t//Gets the content from the text area and saves into a string\n\t\t\t\tString Content = TextA.getText();\n\n\t\t\t\t//This string is for the end product after the encryption\n\t\t\t\tString EnContent = \"\";\n\n\t\t\t\t//This loop will read every char of the Content string from last to first,\n\t\t\t\t//then add them to the new encrypted string.\n\t\t\t\tint length = Content.length();\n\t\t\t\tfor(int i = length-1; i>= 0; i--){\n\t\t\t\t\tchar NL = (char) (Content.charAt(i));\n\t\t\t\t\tEnContent = EnContent + NL;\n\t\t\t\t}\n\n\t\t\t\t//Prints the file\n\t\t\t\tFileWriter outFile = new FileWriter(FN);\n\t\t\t\toutFile.write(EnContent);\n\n\t\t\t\t// Close the file\n\t\t\t\toutFile.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File Not Found: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IO Error: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t\t//Checks if the save type is normal\n\t\tif(TypeOfEn == 2){\n\t\t\ttry{\n\t\t\t\t//Just writes text if no encryption is needed\n\t\t\t\tFileWriter outFile = new FileWriter(FN);\n\t\t\t\tTextA.write(outFile);\n\n\t\t\t\t// Close the file\n\t\t\t\toutFile.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File Not Found: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IO Error: \" + e.getMessage());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\t\n\t}",
"protected void saveMessage()\n {\n if (isEditable)\n {\n /*\n * This means that the message is stil a draft that hasn't been sent\n * yet. We'll want to save the message contents and the subject.\n */\n ComposeMessageFrame.this.message.setMessage(messageArea.getText());\n ComposeMessageFrame.this.message.setSubject(subjectField.getText());\n UserContext context =\n ComposeMessageFrame.this.storage.getLocalUser().getContext();\n if (context != null)\n context.getMessageHistoryFrame().reload();\n }\n }",
"public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}",
"void saveState() {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(this);\n oos.flush();\n keyValStore.setValue(keyValStoreName, Hex.toHexString(bos.toByteArray()));\n bos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void saveState() {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(this);\n oos.flush();\n keyValStore.setValue(keyValStoreName, Hex.toHexString(bos.toByteArray()));\n bos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected void save() {\n\t\tif (currentModel == null) {\n\t\t\tsaveAs();\n\t\t\treturn;\n\t\t}\n\t\tString text = makeFile();\n\t\ttry {\n\t\t\tFiles.write(currentModel, text.getBytes(StandardCharsets.UTF_8));\n\t\t} catch (IOException e1) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Error while attempting to create file: \"\n\t\t\t\t\t\t\t\t\t+ e1.getMessage(), \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\tstateChanged = false;\n\n\t}",
"public void save(){\n try {\n // open the filestream and write to it\n FileOutputStream fos = new FileOutputStream(\n System.getProperty(\"user.dir\")+\n \"/settings/keyBindings.xml\");\n XMLEncoder xmlEncoder = new XMLEncoder(fos);\n xmlEncoder.writeObject(this.keyState);\n xmlEncoder.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method name: getPrincipal This method prompts the user to enter a balance Precondition: none. Postcondition: Returns the principal to the calling function | private int getPrincipal() {
int principal = readInt("Enter starting balance: ");
return (int) principal;
} | [
"org.beangle.security.session.protobuf.Model.Account getPrincipal();",
"public Principal getPrincipalByAccount(String account)throws AccessorException;",
"@Override\n public BigDecimal calculatePrincipal(final BigDecimal annuity, final BigDecimal interest) {\n return annuity.subtract(interest).round(MathContext.DECIMAL32);\n }",
"public AccountHolder(double initialBalance){\n\t\t// if the initial balance is not negative, proceed normally\n\t\tif(initialBalance >= 0.0){\n\t\t\tthis.balance = initialBalance;\n\t\t}\n\t\t// if the initial balance is negative, do the following:\n\t\telse{\n\t\t\t// show possible actions to proceed. Create and account with balance 0.0 or introduce a different balance\n\t\t\tSystem.out.println(\"Initial balance can not be negative. Please, select one of the following actions:\");\n\t\t\tSystem.out.println(\"a. Create an account with balance 0.0\");\n\t\t\tSystem.out.println(\"b. Introduce a different positive balance\");\n\t\t\t\n\t\t\t// open scanner to receive input from the user\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tString answer = scanner.next();\n\t\t\t\n\t\t\t// the user must select one of the possible actions to proceed. The user is asked again until he proceeds correctly\n\t\t\twhile(!answer.equals(\"a\") && !answer.equals(\"A\") && !answer.equals(\"b\") && !answer.equals(\"B\")){\n\t\t\t\tSystem.out.println(\"Please, select one of the possible actions (a or b)\");\n\t\t\t\tanswer = scanner.next();\n\t\t\t}\n\t\t\t\n\t\t\t// a. Create an account with balance 0\n\t\t\tif(answer.equals(\"a\")||answer.equals(\"A\")){\n\t\t\t\tthis.balance = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t// b. Introduce a different positive balance\n\t\t\telse {\n\t\t\t\t// ask for the new positive balance\n\t\t\t\tSystem.out.println(\"Please, introduce the new balance: \");\n\t\t\t\tdouble newBalance = scanner.nextDouble();\n\t\t\t\t// if the balance introduced continues to be negative, ask again until the value introduced is positive\n\t\t\t\tif(newBalance < 0.0){\n\t\t\t\t\t// boolean to indicate that the balance introduced by the user is negative\n\t\t\t\t\tboolean negativeBalance = true;\n\t\t\t\t\tSystem.out.println(\"Please, introduce a positive value for the balance: \");\n\t\t\t\t\t\n\t\t\t\t\t// the user is asked until the balance introduced is correct (non negative)\n\t\t\t\t\twhile(negativeBalance){\n\t\t\t\t\t\tnewBalance = scanner.nextDouble();\n\t\t\t\t\t\t// if the value introduced is negative, ask again\n\t\t\t\t\t\tif(newBalance < 0.0){\n\t\t\t\t\t\t\tSystem.out.println(\"Please, introduce a positive value for the balance: \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// when the value is finally positive or 0, then exit the while loop and proceed to create the account\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t// exit the loop by changing the value of the boolean\n\t\t\t\t\t\t\tnegativeBalance = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//when the new balance introduced is positive or 0, create the new account with that balance\n\t\t\t\tthis.balance = newBalance;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t// inform the user about the balance of the new account created\n\t\tSystem.out.println(\"The balance of your new account is: $\"+balance);\n\n\t}",
"public BigDecimal getReturnedPrincipal() {\n return returnedPrincipal;\n }",
"String createAccount(int initialBalance);",
"public abstract Principal getGuarantor();",
"double getBalance(UserName userName) throws RemoteException;",
"public Double inputBalanceMoney(){\n\t\tSystem.out.println(balanceEntrymessage);\n\t\tDouble balMoney = input.nextDouble(); \n\t\treturn balMoney;\n\t}",
"private double compoundPrincipalValue(double P) {\n if (futureValueInput.getText().length() != 0 && interestValueInput.getText().length() != 0) {\n double A = Double.parseDouble(futureValueInput.getText());\n double I = Double.parseDouble(interestValueInput.getText());\n P = A - I; // Formula derived from: A = P + I\n formulaDisplay.setText(simpleFormulaLegend + \"\\nAnnuity = A\\nFrequency = f\\n\\nP = A - I\"); // Stating used formula\n } else if (interestRateInput.getText().length() != 0 && futureValueInput.getText().length() != 0\n && timeInput.getText().length() != 0) {\n double r = Double.parseDouble(interestRateInput.getText());\n double A = Double.parseDouble(futureValueInput.getText());\n double t = Double.parseDouble(timeInput.getText());\n int f = switchCaseCompoundFrequencyInput(); // Frequency check\n double i = r / f, n = f * t;\n P = A * Math.pow(1 + i, -n); // Formula derived from: PV = A(1+i)^(-n), i = r/f, n = f*t\n formulaDisplay.setText(simpleFormulaLegend + \"\\nAnnuity = A\\nFrequency = f\\n\\nP = A(1 + i)^(-n), i = r / f, n = f * t\"); // Stating used formula\n } else if (annuityInput.getText().length() != 0 && interestRateInput.getText().length() != 0\n && timeInput.getText().length() != 0) {\n double R = Double.parseDouble(annuityInput.getText());\n double r = Double.parseDouble(interestRateInput.getText());\n double t = Double.parseDouble(timeInput.getText());\n int f = switchCaseCompoundFrequencyInput(); // Frequency check\n double i = r / f, n = f * t;\n P = R * ((1 - Math.pow(1 + i, -n)) / i); // Formula derived from: PV = R((1-(1+i)^-n)/i), i = r/f, n = f*t\n formulaDisplay.setText(simpleFormulaLegend + \"\\nAnnuity = A\\nFrequency = f\\n\\nP = R((1 - (1 + i)^(-n) / i), i = r / f, n = f * t\"); // Stating used formula\n }\n return P;\n }",
"@Override\n public BigDecimal calculateRemainingOutstandingPrincipal(final BigDecimal initialOutstandingPrincipal, final BigDecimal principal) {\n return initialOutstandingPrincipal.subtract(principal).round(MathContext.DECIMAL32).setScale(NumberUtils.INTEGER_TWO);\n }",
"Node getPrincipal();",
"public double getPrincipalAmount(){return this.principal_amount;}",
"public Principal getPrincipalByName(String name)throws AccessorException;",
"String getFundAccount();",
"private void testGetPrincipal001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testGetPrincipal001\");\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,\n\t\t\t\t\t\".\", DmtSession.LOCK_TYPE_ATOMIC);\n\n\t\t\tTestCase.assertEquals(\"Asserts that getPrincipal returns the principal passed in the DmtSession's constructor\",\n\t\t\t\t\tDmtConstants.PRINCIPAL, session.getPrincipal());\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session, null);\n\t\t}\n\t}",
"public void setReturnedPrincipal(BigDecimal returnedPrincipal) {\n this.returnedPrincipal = returnedPrincipal;\n }",
"public double searchBalance(int accountId) throws BusinessException;",
"private double promptForDepositAmount() {\n\n // display the prompt\n depositView.PrintAmountInCent();\n int input = keypad.getInput(); // receive input of deposit amount\n \n // check whether the user canceled or entered a valid amount\n if (input == CANCELED) {\n return CANCELED;\n }\n else {\n return (double) input / 100; // return dollar amount\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form VAsginarPersonal | public VAsignarPersonal() {
initComponents();
} | [
"public frm_registro_admision_ingreso_registro() {\n }",
"public frm_tutor_subida_prueba() {\n }",
"public CrearPersona() {\n initComponents();\n this.persona = persona;\n \n }",
"public void createItem(View v){\n Intent intent = new Intent(this, PantryItemForm.class);\n startActivityForResult(intent, FORM_CREATE_CODE);\n }",
"public void crearPersonas() {\r\n\r\n Personas pe = new Personas();\r\n pe.setCedula(cedula);\r\n pe.setTelefono(telefono);\r\n pe.setNombre(nombre);\r\n pe.setApellidos(apellido);\r\n pe.setDireccion(direccion);\r\n pe.setEmail(email);\r\n pe.setCiudadesId(ciudad);\r\n // busca un afiliado por su cedula\r\n Afiliados a = afiliadosEJB.buscar(personaId);\r\n Afiliados af = new Afiliados(nivelesEJB.buscar(idNiveles), fechaAfiliacion, '0', null, null, cedula, telefono, nombre, apellido, direccion, email, ciudad, a);\r\n // crea el afiliado y la persona\r\n afiliadosEJB.crear(af);\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Informacion\", \"Ha insertado correctamente \"));\r\n System.out.println(\"ha insertado correctamente\");\r\n limpiar();\r\n\r\n }",
"protected void creaViste() {\n /* variabili e costanti locali di lavoro */\n Vista vista;\n VistaElemento elem;\n\n try { // prova ad eseguire il codice\n /* crea la vista specifica (un solo campo) */\n super.addVista(VISTA_SIGLA, CAMPO_SIGLA);\n\n /* crea la vista specifica (un solo campo) */\n super.addVista(VISTA_DESCRIZIONE, CAMPO_DESCRIZIONE);\n\n /* vista all'interno del conto */\n vista = new Vista(AlbSottoconto.VISTA_PC_CONTO, this.getModulo());\n elem = vista.addCampo(Modello.NOME_CAMPO_SIGLA);\n// vista.addCampo(AlbSottoconto.CAMPO_FISSO);\n this.addVista(vista);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public Result newVolunteer() {\n Form<Volunteer> volunteerForm = formFactory.form(Volunteer.class);\n\n return ok(newvolunteer.render(volunteerForm));\n }",
"@Listen(\"onClick=#btnNuevo\")\n\tpublic void nuevo(){\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"Persona\", null);\n\t\tparams.put(\"VentanaPadre\", this);\n\t\tWindow ventanaCargar = (Window) Executions.createComponents(\"/mvc/personaEditar.zul\", winListaPersonas, params);\n\t\tventanaCargar.doModal();\n\t}",
"public void crearCuentaAdmin() {\n if (todos().isEmpty()) {\n PersonaServicio persona = new PersonaServicio();\n persona.getPersona().setNombre(\"Franz Flores\");\n persona.getPersona().setCedula(\"1104015928\");\n persona.getPersona().setTelefono(\"2572310\");\n persona.getPersona().setDireccion(\"Andrés Bello y Juan Jose Peña\");\n persona.getPersona().setRol(new RolServicio().buscarRolNombre(\"Administrador\"));\n\n Cuenta c = new Cuenta();\n c.setUsuario(\"franz\");\n c.setClave(\"franz\");\n c.setCreacion(new Date());\n c.setPersona(persona.getPersona());\n persona.getPersona().setCuenta(c);\n persona.guardar();\n }\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }",
"private void createPersonForm() {\n windowPerson = new Window();\n createWindowCenter(windowPerson, widthPersonWin, heightPersonWin, constants.person());\n windowPerson.addItem(addFormPerson(\"[\" + constants.name() + \"]\", \"-\", \"-\", true, ADD));\n configureFormWindow(windowPerson);\n errorMessage.setVisible(false);\n windowPerson.addItem(errorMessage);\n }",
"public void crearNewVacuna(NewVacuna newVacuna) {\n ContentValues cv = NewVacunaHelper.crearNewVacunaContentValues(newVacuna);\n mDb.insertOrThrow(ConstantsDB.NEWVAC_TABLE, null, cv);\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public frmVentanaPrincipal() {\n initComponents();\n }",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"Compuesta createCompuesta();",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method setSilicateMin Set the 'silicateMin' class variable | public int setSilicateMin(String silicateMin) {
try {
setSilicateMin(new Float(silicateMin).floatValue());
} catch (Exception e) {
setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);
} // try
return silicateMinError;
} | [
"public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }",
"public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }",
"private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }",
"public float getSilicateMin() {\n return silicateMin;\n }",
"public void setMinSilentTime(double min_silent_time)\n {\n this.min_silent_time = min_silent_time;\n }",
"public String getSilicateMin(String s) {\n return ((silicateMin != FLOATNULL) ? new Float(silicateMin).toString() : \"\");\n }",
"public M csmiCertifyTypeMin(Object min){this.put(\"csmiCertifyTypeMin\", min);return this;}",
"public int setSilicateMax(Integer silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }",
"public int setSilicateMax(String silicateMax) {\n try {\n setSilicateMax(new Float(silicateMax).floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }",
"public void setMinuti(int value) {\r\n this.minuti = value;\r\n }",
"public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }",
"void setNilWagerMinimum();",
"public int setSilicateMax(Float silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }",
"public void setMin(double min)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MIN$18);\r\n }\r\n target.setDoubleValue(min);\r\n }\r\n }",
"public void setMinimum(Number min) {\n this.min = min;\n }",
"public final native void setMin(double min) /*-{\n\t\tthis.min = min;\n\t}-*/;",
"private void setSilicateMaxError (float silicateMax, Exception e, int error) {\n this.silicateMax = silicateMax;\n silicateMaxErrorMessage = e.toString();\n silicateMaxError = error;\n }",
"void setNilSingleBetMinimum();",
"public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for property returnInstallments. | public void setReturnInstallments(List<Installment> returnInstallments) {
this.returnInstallments = returnInstallments;
} | [
"public List<Installment> getReturnInstallments() {\n return returnInstallments;\n }",
"public List<Installment> getFactoringInstallments() {\n return factoringInstallments;\n }",
"public List<Installment> getLoanInstallments() {\n return loanInstallments;\n }",
"public List<Double> getFactoringInstallmentAmounts() {\n return factoringInstallmentAmounts;\n }",
"boolean isSetNumberOfInstallments();",
"public List<PlatformInstall> getInstallers () {\n return filter(getAllInstallers(),PlatformInstall.class);\n }",
"public List<Boolean> getFactoringInstallmentInvoiceds() {\n return factoringInstallmentInvoiceds;\n }",
"java.math.BigInteger getNumberOfInstallments();",
"@OneToMany(mappedBy=\"product\")\n\tpublic Set<Returnstatus> getReturnstatuses() {\n\t\treturn this.returnstatuses;\n\t}",
"public List<String> getFactoringInstallmentDates() {\n return factoringInstallmentDates;\n }",
"public double calculateSumForMonthInstallments () {\n\t\t\tdouble sumForMonthInstallments = 0;\n\t\t\tfor (int i = 0; i < credits.length; i++) {\n\t\t\t\tif (credits[i] != null ) { //ako ima kredit\n\t\t\t\t\tsumForMonthInstallments += credits[i].monthInstallment; //tazi suma se uvelichava s razmera na mesechnata mu vnoska po suotvetniq kredits\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sumForMonthInstallments;\n\t\t}",
"protected AutomatedInstallData getInstallData()\n {\n return installData;\n }",
"protected IVMInstall getVMInstall() {\n \t\treturn fVmInstall;\n \t}",
"public void setLoanInstallments(List<Installment> loanInstallments) {\n this.loanInstallments = loanInstallments;\n }",
"public void setFactoringInstallments(List<Installment> factoringInstallments) {\n this.factoringInstallments = factoringInstallments;\n }",
"public List<String> getReturnDates() {\n return returnDates;\n }",
"public List<Double> getReturnAmount() {\n return returnAmount;\n }",
"org.apache.xmlbeans.XmlInteger xgetNumberOfInstallments();",
"@JsonGetter(\"return_entries\")\r\n public Boolean getReturnEntries() { \r\n return this.returnEntries;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the request token, this must be called first. | public Token getRequestToken(); | [
"GetToken.Req getGetTokenReq();",
"public static String getRequestToken(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN, null);\n\t\t}",
"RequestToken getOAuthRequestToken() throws MoefouException;",
"public String getRequestTokenARN() {\n return this.requestTokenARN;\n }",
"public String getClientRequestToken() {\n return this.clientRequestToken;\n }",
"String getTransactionRequestToken();",
"public java.lang.String getToken() {\n return token;\n }",
"protected @Nullable Token getOAuth1RequestToken() {\n int oAuthVersion = prefs.getInt(OAuthConstants.VERSION, 0);\n\n if (oAuthVersion == 1) {\n return new OAuth1RequestToken(prefs.getString(OAUTH1_REQUEST_TOKEN, \"\"),\n prefs.getString(OAUTH1_REQUEST_TOKEN_SECRET, \"\"));\n }\n return null;\n }",
"public OAuthTokenResponse getToken() {\n return token;\n }",
"public String getToken() {\n Cookie[] cookies = request.getCookies();\n String token = \"\";\n\n // get token from cookie\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if (cookie.getName().equals(\"token\")) {\n token = cookie.getValue();\n try {\n token = URLDecoder.decode(token, \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n logger.info(\"token decode error\");\n }\n }\n }\n }\n return token;\n }",
"private String getToken(HttpServletRequest request){\n String header = request.getHeader(\"Authorization\");\n if(header != null && header.startsWith(\"Bearer\"))\n \t// Sacamos al bearer del token\n return header.replace(\"Bearer \", \"\");\n return null;\n }",
"@ApiModelProperty(value = \"An authorization token used to authorize for future request\")\n \n public String getToken() {\n return token;\n }",
"@Test(priority = 1)\n\tpublic void getRequestToken() {\n\t\tRestAssured.baseURI = prop.getProperty(\"baseURI\");\n\t\ttry {\n\n\t\t\tresponse = given().log().all().header(\"Content-Type\", \"application/json\")\n\t\t\t\t\t.body(ReusableMethods.gettokenPayload1()).when().post(\"user/validate\").then().log().all()\n\t\t\t\t\t.assertThat().statusCode(200).extract().response().asString();\n\n\t\t\tJsonPath js = new JsonPath(response);\n\t\t\taccessToken = js.getString(\"data.token\");\n\n\t\t\tAssert.assertEquals(js.getString(\"success\"), \"true\");\n\t\t\t\n\t\t\tlog.info(\"Received request token and value is::\" + accessToken+\" and received response as::\"+response);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(\"Getting error message and unable to get request tokens::\" + e.toString());\n\t\t}\n\t}",
"public static TokenRequestInterceptor getTokenRequestInterceptor() {\n\t\treturn tokenRequestInterceptor;\n\t}",
"private void popRequestToken() {\n\t\tSharedPreferences prefs = context.getSharedPreferences(AUTHENTICATION_PREFERENCES, Context.MODE_PRIVATE);\n\t\tString token = prefs.getString(REQUEST_TOKEN, null);\n\t\tString tokenSecret = prefs.getString(REQUEST_TOKEN_SECRET, null);\n\t\tif (token != null && tokenSecret != null) {\n\t\t\tconsumer.setTokenWithSecret(token, tokenSecret);\n\t\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\t\teditor.remove(REQUEST_TOKEN);\n\t\t\teditor.remove(REQUEST_TOKEN_SECRET);\n\t\t\teditor.commit();\n\t\t}\n\t}",
"public Future<GetTokenByCallerResponse> getTokenByCallerAsync(final GetTokenByCallerRequest request);",
"public String getSessionToken();",
"public static String getTokenFromRequest(final HttpServletRequest httpServletRequest)\n\t{\n\t\tfinal String requestCsrfToken = httpServletRequest.getParameter(CSRF_PARAM_NAME);\n\n\t\tif (requestCsrfToken == null)\n\t\t{\n\t\t\treturn httpServletRequest.getHeader(CSRF_PARAM_NAME);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn requestCsrfToken;\n\t\t}\n\t}",
"public String requestUploadToken() {\n JSONObject body = new JSONObject();\n body.put(\"authority\", \"ROLE_REPO_UPLOAD\");\n try {\n HttpResponse<JsonNode> response = Unirest.post(baseUrl + TOKEN_REQUEST_URL).basicAuth(username, password).body(body.toString()).asJson();\n return (String) response.getBody().getArray().get(0);\n } catch (UnirestException e) {\n log.error(e);\n }\n return null;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Result of double 128.0 R x5d x80 | public double replyDouble_m128_0(); | [
"public static double RToD(int raw){ return (2.0*((double)raw*(5.0/256)) - 5.0); }",
"public double replyDouble_128_0();",
"public java.lang.Double getVar256() {\n return var256;\n }",
"public java.lang.Double getVar256() {\n return var256;\n }",
"public java.lang.Double getVar255() {\n return var255;\n }",
"public double replyDouble_65_536();",
"private double wexpmx(double x) {\n double w = x >= 1. ? 0.86 * x + 0.01 : Math.exp(0.8 * x - 0.65); // initial guess\n double r = x >= 1. ? x - Math.log(w) - w : 0.2 * x + 0.65 - w; // residual\n double t = 1. + w;\n double u = 2. * t * (t + 2. * r / 3.); // magic\n return w * (1. + r / t * (u - r) / (u - 2. * r)) - x; // more magic\n }",
"public double replyDouble_m32768_0();",
"byte [] readBin128();",
"public abstract double GetRaw();",
"public Object argDouble_m128_0(Object v);",
"private static final byte[] xfuzzy_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1,\n\t\t\t\t-1, -1, -82, 69, 12, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t36, -124, -113, -87, -101, -31, -33, 32, 120, 97, 57, 68, -93,\n\t\t\t\t-54, -26, 90, -24, 49, 84, -59, 116, -100, 88, -99, -102, 25,\n\t\t\t\t30, -19, 36, -103, -97, -89, -62, 117, -119, 51, 5, 0, 59 };\n\t\treturn data;\n\t}",
"@Override\n\tpublic double getOutput(double input) {\n\t\t// Change the function below, it's just a sigmoid for testing\n\t\tvar = 1/(Math.pow(Math.E, -1*input)+1);\n\t\treturn var;\n\t}",
"protected static float[] getBinomialKernelSigmaFour() {\n // sigma=4 n=64\n // NOTE: the curvature tests for the non-binomial kernal sigma four \n // are better, so use those.\n float a = 1.f/82.0f;\n return new float[]{\n (float) (1.4677788298671463E-5) * a, (float) (5.577559553495156E-5) * a,\n (float) (1.924887094025772E-4) * a, (float) (6.059829740451504E-4) * a,\n (float) (0.0017466568075419043) * a, (float) (0.004623503314081511) * a,\n (float) (0.011267648817280127) * a, (float) (0.02533103004787036) * a,\n (float) (0.05261060086865382) * a, (float) (0.10104575722392242) * a,\n (float) (0.17954411407556464) * a, (float) (0.2950768483502758) * a,\n (float) (0.4480796586059744) * a, (float) (0.627311522048364) * a,\n (float) (0.8065433854907539) * a, (float) (0.9459459459459458) * a,\n (float) (1.0) * a, (float) (0.9310344827586206) * a, (float) (0.7241379310344828) * a,\n (float) (0.3971078976640712) * a, (float) (0.0) * a, (float) (-0.3971078976640712) * a,\n (float) (-0.7241379310344828) * a, (float) (-0.9310344827586206) * a,\n (float) (-1.0) * a, (float) (-0.9459459459459458) * a, (float) (-0.8065433854907539) * a,\n (float) (-0.627311522048364) * a, (float) (-0.4480796586059744) * a,\n (float) (-0.2950768483502758) * a, (float) (-0.17954411407556464) * a,\n (float) (-0.10104575722392242) * a, (float) (-0.05261060086865382) * a,\n (float) (-0.02533103004787036) * a, (float) (-0.011267648817280127) * a,\n (float) (-0.004623503314081511) * a, (float) (-0.0017466568075419043) * a,\n (float) (-6.059829740451504E-4) * a, (float) (-1.924887094025772E-4) * a,\n (float) (-5.577559553495156E-5) * a, (float) (-1.4677788298671463E-5) * a\n };\n }",
"public double carry1DPnL()\n\t{\n\t\treturn _dbl1DCarryPnL;\n\t}",
"private double getNormalizedEncoder() {\n // Subtracts ARM_MIN to make this work even when the min is in the negatives\n return (armEncoder.get() - ARM_MIN) * 1 / (ARM_MAX - ARM_MIN);\n }",
"public double mseRecon();",
"public abstract double noise1(double x);",
"public static float mw2pu(float mw) {return mw/100F;}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column ecs_takegoods_order.paisong_name | public void setPaisongName(String paisongName) {
this.paisongName = paisongName == null ? null : paisongName.trim();
} | [
"public void setNameSP(String nameSP) {\n this.nameSP = nameSP;\n }",
"public void setPname(String pname) {\n this.pname = pname;\n }",
"public void setGoodsName(String goodsName) {\n this.goodsName = goodsName;\n }",
"public void setOrderName(String name) {\n orderName = name;\n }",
"public String getPaisongName() {\n return paisongName;\n }",
"protected final void setJPAEntityName(final String jpaEntityName) {\n this.jpaEntityName = jpaEntityName;\n }",
"public void setPayeename(String payeename) {\n this.payeename = payeename;\n }",
"public void ChangeProductName(String inName)\n\t\t{\n\t\t\tproductName = inName;\n\t\t}",
"public void setGoodsName(String goodsName) {\n\t\tthis.goodsName = goodsName;\n\t}",
"public void setName(String newName) {\n this.productName = newName;\n }",
"public void setGoodsName(String goodsName) {\n this.goodsName = goodsName == null ? null : goodsName.trim();\n }",
"public void setNamepurchase(String namepurchase) {\n this.namepurchase = namepurchase;\n }",
"public String setLongName(String longName) {\n\t\tString oldLongName = this.longName;\n\t\tthis.longName = longName;\n\n\t\tnotifyObservers(\"name\");\n\n\t\treturn oldLongName;\n\t}",
"public void setName(String name) { // name der bank\n\t\tthis.name = name;\n\t}",
"public void setPersistenceUnitName(java.lang.String persistenceUnitName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PERSISTENCEUNITNAME$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PERSISTENCEUNITNAME$2);\n }\n target.setStringValue(persistenceUnitName);\n }\n }",
"public void setGoupName(String goupName) {\n this.goupName = goupName == null ? null : goupName.trim();\n }",
"public void setProName(String proName) {\r\n this.proName = proName;\r\n }",
"public void setName(String name){\r\n\t\talbumName = name;\r\n\t\talbumNameProp.set(name);\r\n\t}",
"public void setNamePro(String namePro) {\n this.namePro = namePro;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the array of high score values in the world. | public Array<Integer> getHighScoreValues()
{
return highScoreValues;
} | [
"public double[] getHighScore() {\r\n\t\treturn highScore;\r\n\t}",
"public int[] getHighScore() {\n return HighScore;\n }",
"public List<ScoreInfo> getHighScores() {\r\n return this.highScores;\r\n }",
"public static ArrayList<Score> getHighscore() {\n //TODO: Get all highscores\n //ArrayList<Score> highScores = db.getHighscore();\n\n return db.getHighscore();\n }",
"public List<ScoreInfo> getHighScores() {\r\n return this.listScores;\r\n }",
"public ArrayList<LevelHighScore> getLevelHighScore() {\n\t\treturn levelHighScores;\n\t}",
"public List<Highscore> getHighscore(Context context){\n highscore = db.getHighscore();\n return highscore;\n }",
"public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }",
"public static List<String> getHighScores() {\n\t\ttry {\n\t\t\tURL url = new URL(GameUtilities.CONNECT_URL);\n\t\t\tHttpURLConnection c = (HttpURLConnection) url.openConnection();\n\n\t\t\tc.setConnectTimeout(4000);\n\t\t\tc.setRequestMethod(\"GET\");\n\t\t\tint i = c.getResponseCode();\n\t\t\tif(i == 200) {\n\t\t\t\tString s = (new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tc.getInputStream()))).readLine();\n\t\t\t\tSystem.out.println(s);\n\t\t\t\tif(s != null) {\n\t\t\t\t\tList<String> high = new ArrayList<String>();\n\t\t\t\t\tfor(String d : s.split(\";\")) {\n\t\t\t\t\t\thigh.add(d.substring(0, d.indexOf(',')) + \": \" + d.substring(d.indexOf(',') + 1));\n\t\t\t\t\t}\n\t\t\t\t\treturn high;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"int[] getScores();",
"public String[] getHighscoreStringArray()\n {\n \tString[] splitString = getHighscoreString().split(\"\\n\");\n \treturn splitString;\n }",
"public ArrayList<HighScore> getScores() {\r\n loadScoreFile();\r\n sortScores();\r\n removeLowScores();\r\n return savedHighScoresList;\r\n }",
"int getHighScore() {\n return getStat(highScore);\n }",
"public Array<Text> getHighScoreTexts()\n {\n return highScoreTexts;\n }",
"public int getHighScore() {\n return highScore;\n }",
"public String getHighscores(){\r\n\t\tString returnString = \"\";\r\n\t\tList<Score> allScores = database.getAllScores(\"hard\");\r\n\t\t\r\n\t\t//loop through top 4 entries of table as obtained in the allScores list\r\n\t\tfor(int i = allScores.size()-1, j = 3; i>=0 && j>=0; j--, i--){\r\n\t\t\treturnString += String.valueOf(allScores.get(i).score + \" | \" + allScores.get(i).time + \"\\n\");\r\n\t\t}\r\n\t\treturn returnString;\r\n\t}",
"private void getHighScores()\n\t{\n\t\tString loadData = \"\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\tFile file = new File(\"Data/high_scores.txt\");\n\t\t\tScanner scanner = new Scanner(file);\n\t\t\tloadData = scanner.nextLine();\n\t\t\t\n\t\t\tscanner.close();\n\t\t\t\n\t\t\tString[] data = loadData.split(\",\");\n\t\t\t\n\t\t\t// Throw exception if data for 10 players was not present\n\t\t\t// in the file.\n\t\t\tif(data.length != 20) throw new Exception();\n\t\t\tfor(int i = 0; i < highScoreNames.length; i++)\n\t\t\t{\n\t\t\t\thighScoreNames[i] = data[i * 2];\n\t\t\t\t// Convert text data to an integer.\n\t\t\t\thighScoreValues[i] = Integer.parseInt(data[i * 2 + 1]);\n\t\t\t}\n\t\t\t\n\t\t} catch(Exception ex)\n\t\t{\n\t\t\tSystem.out.println(\"Failed to load high scores - check folder.\");\n\t\t}\n\t}",
"String getHighScoresForLevel(int levelId);",
"public ArrayList<UserData> getHighScoreList() {\n\n setRead();\n\n String[] columns = {\n SQLConstants.Entries._ID,\n SQLConstants.Entries.HIGHSCORES_NAME,\n SQLConstants.Entries.HIGHSCORE_SCORE\n };\n\n Cursor queryCursor = db.query(\n SQLConstants.Entries.TABLE_NAME,\n columns,\n null,\n null,\n null,\n null,\n SQLConstants.Entries.HIGHSCORE_SCORE + \" DESC\"\n );\n\n ArrayList<UserData> userData = new ArrayList<>();\n while (queryCursor.moveToNext()) {\n UserData user = new UserData();\n user.setName(queryCursor.getString(queryCursor.getColumnIndexOrThrow(SQLConstants.Entries.HIGHSCORES_NAME)));\n user.setScore(queryCursor.getInt(queryCursor.getColumnIndexOrThrow(SQLConstants.Entries.HIGHSCORE_SCORE)));\n\n userData.add(user);\n }\n\n queryCursor.close();\n\n return userData;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that fills the database. Takes a track and gets all top listeners form that track. Then it fills the listenings table for each of those users. Then it fills recordings with the information of all tracks in database. | public void fillLocalDatabase(String artist, String track)
{
openConnection();
if(artist != null && track !=null)
{
Track t = external.getTrack(artist, track);
if (t!=null)
{
Collection<User> users = external.getListeners(t);
insertDataIntoPersons(users);
for(User u : users)
{
if(u!=null)
{
try
{
Collection<Track> tracks = User.getTopTracks(u.getName(), key);
insertDataIntoListenings(u, tracks);
System.out.println(u.getName()+" added to listenings");
insertDataIntoRecordings(tracks);
System.out.println(u.getName()+"s' tracks added to recordings");
}
catch(Exception e)
{
System.out.println("Invalid Used data while adding to listeners");
}
}
}
}
}
closeConnection();
} | [
"protected void createTableListenings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Listenings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"user\t\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track\t\t\tVARCHAR(259),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"playcount\t\tINTEGER,\" \t\t\t\t\t\t\t\t\t\t\t+ \n\t\t\t\t\"FOREIGN KEY (user) REFERENCES Persons(lfm_username),\" \t\t\t\t+\n\t\t\t\t\"FOREIGN KEY (listens_to) REFERENCES Recordings(unique_track)\"\t\t+\n\t\t\t\t\");\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}",
"private void populatePatientRecords(){\n\n //**********Patient 1 Record and visits**********************\n PatientRecord p1 = new PatientRecord(patientIDs.get(0),\n \"A. One\", \"04/15/1981\");\n\n //***Visit One***\n VisitRecord vr = new VisitRecord();\n vr.put(VisitRecord.Field.BLOOD_PRESSURE, \"120/80\");\n vr.put(VisitRecord.Field.TEMPERATURE, \"99.2\");\n vr.put(VisitRecord.Field.WEIGHT, \"150\");\n vr.put(VisitRecord.Field.OTHER, \"None\");\n vr.put(VisitRecord.Field.STAFF, \"P. Body\");\n p1.addVisit(vr);\n\n //***Visit Two\n vr = new VisitRecord(1990, 02, 13);\n\n vr.put(VisitRecord.Field.BLOOD_PRESSURE, \"160/80\");\n vr.put(VisitRecord.Field.TEMPERATURE, \"97.7\");\n vr.put(VisitRecord.Field.WEIGHT, \"120\");\n vr.put(VisitRecord.Field.OTHER, \"None\");\n vr.put(VisitRecord.Field.STAFF, \"H. Jass\");\n p1.addVisit(vr);\n \n patientRecordDatabase.put(patientIDs.get(0), p1);\n\n //********Patient Two\n PatientRecord p2 = new PatientRecord(patientIDs.get(1),\n \"B. Two\", \"02/29/1977\");\n\n //*** Patient Two visit 1 ***\n vr = new VisitRecord(2015, 05, 20);\n\n vr.put(VisitRecord.Field.BLOOD_PRESSURE, \"Wow\");\n vr.put(VisitRecord.Field.TEMPERATURE, \"Holy Shit\");\n vr.put(VisitRecord.Field.WEIGHT, \"10000\");\n vr.put(VisitRecord.Field.OTHER, \"And How\");\n vr.put(VisitRecord.Field.STAFF, \"Zaius\");\n p2.addVisit(vr);\n\n patientRecordDatabase.put(patientIDs.get(1), p2);\n\n //**** Patient 3\n PatientRecord p3 = new PatientRecord(patientIDs.get(2),\n \"C. Three\", \"04/22/2017\");\n patientRecordDatabase.put(patientIDs.get(2), p3);\n\n //*** Patient 4\n PatientRecord p4 = new PatientRecord(patientIDs.get(3),\n \"D. Four\", \"12/31/1999\");\n patientRecordDatabase.put(patientIDs.get(3), p4);\n }",
"protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}",
"private void loadTrackers() {\r\n listTrackers = trackerServiceBean.loadTrackers();\r\n }",
"private synchronized void loadTrackers() {\n String dateString = DATE_FORMAT.format(new Date());\n new LoadTrackers(dateString).execute();\n }",
"@PostConstruct\n\tprivate void loadDataIntoH2Database() {\n\n\t\t// for testing purpose we have given same emailId\n Stream.of(\n \t\tnew Participant(\"Mike\",\"US\",25,email),\n \t\tnew Participant(\"Jack\",\"ENG\",25,email),\n \t\tnew Participant(\"Ross\",\"NZ\",25,email),\n \t\tnew Participant(\"Ken\",\"WI\",25,email),\n \t\tnew Participant(\"Clark\",\"AUS\",36,email),\n \t\tnew Participant(\"Adam\",\"SL\",25,email),\n \t\tnew Participant(\"Tanaka\",\"JP\",25,email),\n \t\tnew Participant(\"Akram\",\"PAK\",25,email),\n \t\tnew Participant(\"Pankaj\",\"IN\",25,email),\n \t\tnew Participant(\"Kemp\",\"SA\",25,email)\t\t\t\t\n ).forEach(participant -> {\n \tparticipant.setParticipantId(generateParticipantId());\n \tparticipantList.add(participant); \t\n });\n }",
"private void fillData()\n\t{\n\t\tNightliesAdapter na = new NightliesAdapter( context );\n\t\ttry\n\t\t{\n\t\t\tna.read();\n\n\t\t\t// get Downloads\n\t\t\tCursor cur_dl = na.getDownloadsCursor();\n\t\t\tcur_dl.moveToFirst();\n\n\t\t\t// we will start db records from 1: 0 reserved for our custom record\n\t\t\tint count_dl = cur_dl.getCount() + 1;\n\t\t\tif ( count_dl > 1 )\n\t\t\t{\n\t\t\t\tdownloads = new DownloadsRecord[count_dl];\n\t\t\t\tchangelogs = new ChangeLogRecord[count_dl][];\n\n\t\t\t\tDownloadsRecord dr;\n\t\t\t\tlong dateTo = ( new Date() ).getTime();\n\t\t\t\tlong dateFrom = cur_dl.getLong( cur_dl.getColumnIndex( NightliesAdapter.CM_DATE ) );\n\n\t\t\t\t// empty first record\n\t\t\t\tdr = new DownloadsRecord();\n\t\t\t\tdr.filename = \"next nightly\";\n\t\t\t\tdr.type = \"nightly\";\n\t\t\t\tdr.size = \"\";\n\t\t\t\tdr.md5sum = \"\";\n\t\t\t\tdr.date_added = new Date();\n\t\t\t\tdownloads[0] = dr;\n\n\t\t\t\t// get change log data\n\t\t\t\tchangelogs[0] = fillChangeLogData( na, dateFrom, dateTo );\n\n\t\t\t\tfor ( int i = 1; i < count_dl && !cur_dl.isAfterLast(); i++ )\n\t\t\t\t{\n\t\t\t\t\tdr = new DownloadsRecord();\n\t\t\t\t\tdr.filename = cur_dl.getString( cur_dl\n\t\t\t\t\t\t\t.getColumnIndex( NightliesAdapter.CM_FILENAME ) );\n\t\t\t\t\tdr.type = cur_dl.getString( cur_dl.getColumnIndex( NightliesAdapter.CM_TYPE ) );\n\t\t\t\t\tdr.md5sum = cur_dl.getString( cur_dl\n\t\t\t\t\t\t\t.getColumnIndex( NightliesAdapter.CM_MD5SUM ) );\n\t\t\t\t\tdr.size = cur_dl.getString( cur_dl.getColumnIndex( NightliesAdapter.CM_SIZE ) );\n\t\t\t\t\tdateFrom = cur_dl.getLong( cur_dl.getColumnIndex( NightliesAdapter.CM_DATE ) );\n\t\t\t\t\tdr.date_added = new Date( dateFrom );\n\t\t\t\t\tdownloads[i] = dr;\n\n\t\t\t\t\t// get change log data\n\t\t\t\t\tchangelogs[i] = fillChangeLogData( na, dateFrom, dateTo );\n\n\t\t\t\t\tdateTo = dateFrom;\n\t\t\t\t\tcur_dl.moveToNext();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdownloads = new DownloadsRecord[1];\n\t\t\t\tchangelogs = new ChangeLogRecord[1][0];\n\n\t\t\t\t// no records found\n\t\t\t\tDownloadsRecord dr = new DownloadsRecord();\n\t\t\t\tdr.filename = \"No Records found, please refresh\";\n\t\t\t\tdr.type = \"nightly\";\n\t\t\t\tdr.size = \"\";\n\t\t\t\tdr.md5sum = \"\";\n\t\t\t\tdr.date_added = null;\n\t\t\t\tdownloads[0] = dr;\n\t\t\t}\n\t\t}\n\t\tcatch ( SQLException e )\n\t\t{\n\t\t\t// data base does not exist or cannot be opened for read\n\t\t\tdownloads = new DownloadsRecord[1];\n\t\t\tchangelogs = new ChangeLogRecord[1][0];\n\n\t\t\t// no records found\n\t\t\tDownloadsRecord dr = new DownloadsRecord();\n\t\t\tdr.filename = \"Problem with DB, please refresh\";\n\t\t\tdr.type = \"nightly\";\n\t\t\tdr.size = \"\";\n\t\t\tdr.md5sum = \"\";\n\t\t\tdr.date_added = null;\n\t\t\tdownloads[0] = dr;\n\n\t\t\tLog.e( TAG, \"DB Fail\", e );\n\t\t}\n\t\tcatch ( CursorIndexOutOfBoundsException e )\n\t\t{\n\t\t\tdownloads = new DownloadsRecord[1];\n\t\t\tchangelogs = new ChangeLogRecord[1][0];\n\n\t\t\t// no records found\n\t\t\tDownloadsRecord dr = new DownloadsRecord();\n\t\t\tdr.filename = \"Problem with DB, please refresh\";\n\t\t\tdr.type = \"nightly\";\n\t\t\tdr.size = \"\";\n\t\t\tdr.md5sum = \"\";\n\t\t\tdr.date_added = null;\n\t\t\tdownloads[0] = dr;\n\n\t\t\tLog.e( TAG, \"DB Fail\", e );\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif ( na != null )\n\t\t\t{\n\t\t\t\tna.close();\n\t\t\t}\n\t\t}\n\t}",
"public void attachDatabaseListener() {\n dRef.addChildEventListener(new ChildEventListener() {\n\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Trail addedTrail = dataSnapshot.getValue(Trail.class);\n if(checkTrailUser(addedTrail.getuserId(), user.getUid())) {\n trails.add(addedTrail);\n keys.add(dataSnapshot.getKey());\n trailAdapter.notifyDataSetChanged();\n App.trainer.addTrail(addedTrail);\n }\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Trail changedTrail = dataSnapshot.getValue(Trail.class);\n if(checkTrailUser(changedTrail.getuserId(), user.getUid())) {\n String key = dataSnapshot.getKey();\n trails.set(keys.indexOf(key), changedTrail);\n App.trainer.setTrail(keys.indexOf(key), changedTrail);\n trailAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n Trail removedTrail = dataSnapshot.getValue(Trail.class);\n if(checkTrailUser(removedTrail.getuserId(), user.getUid())) {\n keys.remove(dataSnapshot.getKey());\n removeTrail(removedTrail);\n App.trainer.removeTrail(removedTrail.getTrailID());\n trailAdapter.notifyDataSetChanged();\n }\n }\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {}\n public void onCancelled(DatabaseError databaseError) {}\n });\n }",
"private void getTracks(){\n\n playlistTracksService.setPlaylistId(playlistId);\n\n playlistTracksService.getPlaylistTracks(() -> {\n tracks = playlistTracksService.getPlaylistTracks();\n\n //Call to update playlists\n updateTracks();\n });\n }",
"private void loadDataAndFillTableFromDatabase() {\n ServerOutLoadFriends loadFriends = new ServerOutLoadFriends();\n client.sendPacket(loadFriends);\n }",
"private void initializePatientDB() {\n patientDB = FirebaseDatabase.getInstance().getReference().child(\"patients\");\n\n // Attaching a ValueEventListener is better, since upon any changes, the entire list is\n // updated. This prevents writing methods for adding, updating and deleting data.\n ValueEventListener patientChangeListener = new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Patient patient;\n patients.clear();\n\n // The parameter snapshot basically contains the entire list. We iterate on the list\n // by calling the getChildren method on the param snapshot\n for (DataSnapshot childSnapshot : snapshot.getChildren()) {\n patient = childSnapshot.getValue(Patient.class);\n Log.d(TAG, \"onDataChange patientDB: \" + patient);\n patients.put(patient, childSnapshot.getKey());\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled patientDB: \" + error.toException());\n }\n };\n patientDB.addValueEventListener(patientChangeListener);\n Values.patientDB = patientDB;\n }",
"private void loadReportList() {\n Query reportRef = mDatabase.child(\"report_receiver\")\n .orderByChild(\"receiver_id\")\n .equalTo(FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n mReportList.clear();\n mReportRecyclerViewAdapter.notifyDataSetChanged();\n\n reportRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n mReportList.clear();\n for(DataSnapshot singleSnapshot : dataSnapshot.getChildren()){\n final ReportReceiverVO rpt = singleSnapshot.getValue(ReportReceiverVO.class);\n\n mDatabase.child(\"report\")\n .child(rpt.getReport_id())\n .addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n ReportVO r = dataSnapshot.getValue(ReportVO.class);\n r.setRpt_id(dataSnapshot.getKey());\n r.setRpt_read(rpt.getReceived());\n mReportList.add(r);\n mReportRecyclerViewAdapter.notifyDataSetChanged();\n }\n @Override public void onCancelled(@NonNull DatabaseError databaseError) {}\n });\n\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.d(\"TAG\", \"ERROR!\");\n }\n });\n }",
"private static void RecordsFromDB() {\n records.uploadRecordsFromDB();\n }",
"public void requestAllRecords() {\n\t\t//fetch the data\n\t\tString fetchAllRecords = \"SELECT * FROM Records\";\n\t\ttry {\n\t\t\trs = statement.executeQuery(fetchAllRecords);\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"Error fetching all records.\");\n\t\t}\n\n\t\t//put data into object and then linked list\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\t//get data from result set to make object\n\t\t\t\tint id = rs.getInt(\"Id\");\n\t\t\t\tString title = rs.getString(\"Title\");\n\t\t\t\tString artist = rs.getString(\"Artist\");\n\t\t\t\tdouble price = rs.getDouble(\"Price\");\n\t\t\t\tint consignerId = rs.getInt(\"ConsignerId\");\n\t\t\t\t//parse date \n\t\t\t\tDate dateAdded = rs.getDate(\"DateAdded\");\n\t\t\t\tCalendar calAdded = new GregorianCalendar();\n\t\t\t\tcalAdded.setTime(dateAdded);\n\n\t\t\t\tRecord r = new Record(title, artist, price, consignerId, calAdded);\n\t\t\t\tr.setId(id);\n\n\t\t\t\tcontroller.addToAllRecords(r);\n\n\t\t\t}\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"Error reading record data.\");\n\n\t\t}\n\t}",
"private void populateTimes() {\n\n int trackID = preferences.getInt(\"Track\", -1);\n int reverse = preferences.getInt(\"Reverse\", -1);\n Cursor topTimes = DBQueries.getTopTimes(trackID, reverse, \"liststring\", 3, database);\n Cursor latestTimes = DBQueries.getLatestTimes(trackID, reverse, \"liststring\", 3, database);\n\n ListView latestTimeList = (ListView) findViewById(R.id.latestTimes);\n ListView topTimesList = (ListView) findViewById(R.id.topTimes);\n\n ListAdapter topTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n topTimes,\n new String[]{topTimes.getColumnName(topTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n ListAdapter latestTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n latestTimes,\n new String[]{latestTimes.getColumnName(latestTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n\n topTimesList.setAdapter(topTimesAdapter);\n latestTimeList.setAdapter(latestTimesAdapter);\n\n Utilities.setListViewHeightFromContent(topTimesList);\n Utilities.setListViewHeightFromContent(latestTimeList);\n }",
"private void addAllDataAsInitialStartup() {\n\t\t\n\t\tfinal String methodName = \"addAllRecordsToDisplay\";\n\t\tGUILogger.entering(CLASS_NAME, methodName);\n\t\t\n\t\tList<Record> currentRecordsInTable = new ArrayList<Record>();\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif (database == null) {\n\t\t\t\t\n\t\t\t\tGUILogger.warning(CLASS_NAME, methodName, \n\t\t\t\t\t\t\"Database object is null\");\n\t\t\t\t\n\t\t\t\tthrow new RemoteException(\"Database object is null\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\tcurrentRecordsInTable = database.find(null, null);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\t\n\t\t\tGUILogger.warning(CLASS_NAME, methodName, \"Unable to load all \"\n\t\t\t\t\t+ \"records to display in the initial startup: \" \n\t\t\t\t\t+ e.getMessage());\n\t\t\t\n\t\t\tGUIUtils.showErrorMessageDialog(this, \n\t\t\t\t\tGUIMessages.CANT_CONTACT_DB_MESSAGE);\n\t\t\t\n\t\t\tsetStatusLabelText(GUIMessages.NOT_CONNECTED_TO_SERVER_MESSAGE);\n\t\t\t\n\t\t}\n\t\t\n\t\taddDataToTableModel(currentRecordsInTable);\n\t\t\n\t\tGUILogger.exiting(CLASS_NAME, methodName);\n\t\t\n\t}",
"private void addToDatabase() throws SQLException {\n\n ArrayList<Event> events = this.events;\n\n PersonDAO dao_person = new PersonDAO();\n EventDAO dao_event = new EventDAO();\n for(int i = 0; i < persons.size(); i++) {\n Person person = persons.get(i);\n dao_person.addPerson(person);\n personCount++;\n }\n for(int j = 0; j < events.size(); j++) {\n Event event = events.get(j);\n dao_event.addEvent(event);\n eventCount++;\n }\n }",
"@Override\n\tpublic List<Track> getAllTracks() {\n\t\tLOGGER.info(\"Getting All Tracks From DB...\");\n\t\tList<Track> tracks = null;\n\t\ttry {\n\t\t\t\n\t\t\tOrder o1 = new Order(Direction.DESC,\"type\").ignoreCase();\n\t\t\tOrder o2 = new Order(Direction.DESC,\"country\").ignoreCase();\n\t\t\tOrder o3 = new Order(Direction.ASC,\"id\").ignoreCase();\n\n\t\t\tSort sort = new Sort(new Order[]{o1,o2,o3}) ;\n\t\t\t\n\t\t\t\n\t\t\ttracks = tracksRepository.findAll(sort);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Error while fetching all Tracks \", e);\n\t\t}\n\t\treturn tracks;\n\t}",
"public void initEntireDatabase() {\n\n // Inserts all the counties into the county table\n for (int state_id = 1; state_id < 52; state_id++) {\n this.insertCounties(state_id);\n }\n\n // Inserts all the state and county results into their respective tables, as well as state\n // demographics information\n for (int year = 1972; year <= 2016; year += 4) {\n this.insertStateResult(year);\n for (int state_id = 1; state_id < 52; state_id++) {\n this.insertCountyResult(state_id, year);\n this.insertDemographicData(state_id, year);\n }\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column activity.internal_top_img | public void setInternalTopImg(String internalTopImg) {
this.internalTopImg = internalTopImg == null ? null : internalTopImg.trim();
} | [
"public String getInternalTopImg() {\n return internalTopImg;\n }",
"public void setTop_actif(String top_actif) {\r\n\t\tthis.top_actif = top_actif;\r\n\t}",
"private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }",
"public void setImgNo(Integer imgNo) {\n this.imgNo = imgNo;\n }",
"public void hideTopImage() {\n topImageContainer.setVisibility(GONE);\n }",
"public void setHotActivityImageUrl(String hotActivityImageUrl) {\r\n this.hotActivityImageUrl = hotActivityImageUrl == null ? null : hotActivityImageUrl.trim();\r\n }",
"public void setUserheadimg(String userheadimg) {\n this.userheadimg = userheadimg;\n }",
"public void setTopuserid(Integer topuserid) {\n this.topuserid = topuserid;\n }",
"private void setPicture(){\n\t\tif(getResources().getConfiguration().orientation != Configuration.ORIENTATION_LANDSCAPE){\n\n\t\t\tif(mData.getMintemperature()<=0){\n\t\t\t\tmImageView.setImageResource(R.drawable.frost_pic);\n\t\t\t\tmImageView.setVisibility(android.view.View.VISIBLE);\t\t\n\t\t\t}else {\n\t\t\t\tmImageView.setImageResource(R.drawable.sunflowers);\n\t\t\t\tmImageView.setVisibility(android.view.View.VISIBLE);\n\t\t\t}\n\t\t}\n\t}",
"public String getUrlImgMenuTop() {\n return this.URL_IMG_MENU_TOP;\n }",
"public void setTopId(Integer topId) {\n this.topId = topId;\n }",
"public void setProfileImg() {\n }",
"public void setHeadimgUrl(String headimgUrl) {\n this.headimgUrl = headimgUrl == null ? null : headimgUrl.trim();\n }",
"public void setProfilePic(){\n mDBManager.databaseOpenToRead();\n mUser = mDBManager.findUserByID(sSharedPreferences.getLong(Constants.CURRENT_USER_ID,-1));\n mProfilePic.setImageBitmap(mUser.getImageBitmap());\n }",
"public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}",
"public void setImgUrlBig(String imgUrlBig) {\n\t\tthis.imgUrlBig = imgUrlBig == null ? null : PIC_SERVER+imgUrlBig.trim();\n }",
"void setImageProperty() {\n\t\t imgView.setImageResource(R.drawable.weathericon);\n\t\tMatrix matrix = new Matrix();\n\t\trotate += 30;\n\t\tif (rotate == 360) {\n\t\t\trotate = 0;\n\t\t}\n\t\tfloat centerX = imgView.getWidth() / 2;\n\t\tfloat centerY = imgView.getHeight() / 2;\n\t\tmatrix.setRotate(rotate, centerX, centerY);\n\t\t//matrix.setTranslate(10, 20);\n\t\timgView.setImageMatrix(matrix); \n\t\t//ScaleType type = ScaleType.\n\t\t\n\t\t//imgView.setScaleType(scaleType);\n\t \n\t}",
"private void fetchThumbnail() {\n image.fetch(ImageEntity_.thumbnail, JoinType.INNER);\n }",
"public void setImage(Image img){\r\n this.elementImage = img;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated Property Getter for attribute SYM111 | @Override
public java.lang.Object getSym111() throws G2AccessException {
java.lang.Object retnValue = getAttributeValue (SYM_111_);
return (java.lang.Object)retnValue;
} | [
"@Override\n public java.lang.Object getSym122() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_122_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym133() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_133_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym11() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_11_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym177() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_177_);\n return (java.lang.Object)retnValue;\n }",
"String attributeValue();",
"@Override\n public java.lang.Object getSym18() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_18_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym188() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_188_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym1() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_1_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym8() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_8_);\n return (java.lang.Object)retnValue;\n }",
"String getIdAttribute();",
"@Override\n public java.lang.Object getSym144() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_144_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym155() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_155_);\n return (java.lang.Object)retnValue;\n }",
"@Override\n public java.lang.Object getSym19() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_19_);\n return (java.lang.Object)retnValue;\n }",
"SProperty getSproperty();",
"int getIntAttribute2();",
"public String getKey_property_code() {\n\t\treturn key_property_code;\n\t}",
"String trafficProperty();",
"public String getKey_property_code() {\n return key_property_code;\n }",
"public abstract String getK0001();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "overrideClrMapping" element | public boolean isSetOverrideClrMapping()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OVERRIDECLRMAPPING$2) != 0;
}
} | [
"public boolean isSetMasterClrMapping()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MASTERCLRMAPPING$0) != 0;\n }\n }",
"public void setOverrideClrMapping(org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping overrideClrMapping)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().find_element_user(OVERRIDECLRMAPPING$2, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().add_element_user(OVERRIDECLRMAPPING$2);\n }\n target.set(overrideClrMapping);\n }\n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping addNewOverrideClrMapping()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().add_element_user(OVERRIDECLRMAPPING$2);\n return target;\n }\n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping getOverrideClrMapping()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().find_element_user(OVERRIDECLRMAPPING$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@XmlElement\n public boolean isHasMapping() {\n return hasMapping;\n }",
"public void unsetOverrideClrMapping()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(OVERRIDECLRMAPPING$2, 0);\n }\n }",
"public boolean isNativeMaps() {\n return internalNative != null;\n }",
"@DISPID(17) //= 0x11. The runtime will prefer the VTID if present\n @VTID(38)\n boolean isCustomizable();",
"boolean isSetOverride();",
"final boolean hasMappingProperties()\r\n {\r\n return this.mappingProperties != null && !this.mappingProperties.getProperties().isEmpty();\r\n }",
"public boolean hasOverrideFor(String fontKey) {\n return super.hasValueFor(fontKey);\n }",
"protected final boolean loadMapping() {\r\n if (_loaded) { return false; }\r\n _loaded = true;\r\n return true;\r\n }",
"public boolean isAddOverrideForAccessors() {\n return addOverrideForAccessors;\n }",
"public boolean isPrefixMapping()\n {\n return prefix != null;\n }",
"boolean hasRuntimeMetadata();",
"public boolean isExtensionMapping()\n {\n return extension != null;\n }",
"@DISPID(17) //= 0x11. The runtime will prefer the VTID if present\n @VTID(39)\n void isCustomizable(\n boolean pVal);",
"public boolean isNewColormap() {\n return (val & NEW_COLORMAP) != 0;\n }",
"boolean hasCdefinedobjectinheritedFields();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a media copy object. | public void setMediaCopy(MediaCopy mediaCopy) {
this.mediaCopy = mediaCopy;
} | [
"public void setMedia(Media media) {\r\n\t\tthis.media = media;\r\n\t}",
"public\t void setMediaField(MediaField m) \n \t \t{ mediaField = m ; }",
"void setMedia(org.hl7.fhir.Media media);",
"@Override\n\tpublic void setCopySource(Waveform w)\n\t{\n\t\t/*\n\t\t * if(w != null) w.SetCopySelected(true); else if(copy_waveform != null)\n\t\t * copy_waveform.SetCopySelected(false);\n\t\t */\n\t\tif (w != null)\n\t\t{\n\t\t\tif (w == copy_waveform)\n\t\t\t{\n\t\t\t\tw.SetCopySelected(false);\n\t\t\t\tcopy_waveform = null;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\tw.SetCopySelected(true);\n\t\t}\n\t\tif (copy_waveform != null)\n\t\t\tcopy_waveform.SetCopySelected(false);\n\t\tcopy_waveform = w;\n\t}",
"public void copy() {\n\t\tObject[] data = super.copyMediaData();\n\t\tAudioBook clone = new AudioBook((String)data[0],(String)data[1],(String)data[2],(String)data[3],((Boolean)data[4]).booleanValue(),((Integer)data[5]).intValue(),\n\t\t\t\tthis.author,this.narrator);\n\t}",
"@Accessor(qualifier = \"jobMedia\", type = Accessor.Type.SETTER)\n\tpublic void setJobMedia(final ImpExMediaModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(JOBMEDIA, value);\n\t}",
"public MediaCopy getMediaCopy() {\r\n\t\treturn this.mediaCopy;\r\n\t}",
"private void setMediaAssetFileHolder(com.whensunset.wsvideoeditorsdk.model.MediaFileHolder value) {\n if (value == null) {\n throw new NullPointerException();\n }\n mediaAssetFileHolder_ = value;\n \n }",
"public Builder setReference(com.google.storage.v1.GetObjectMediaRequest value) {\n if (referenceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n data_ = value;\n onChanged();\n } else {\n referenceBuilder_.setMessage(value);\n }\n dataCase_ = 5;\n return this;\n }",
"public void setMediaField(MediaField m) {\n\tmediaField = m;\n }",
"public void setMedia(String media) {\n this.getHints().put(ImageTranscoder.KEY_MEDIA, media);\n }",
"public void setMedia(final SessionContext ctx, final Media value)\r\n\t{\r\n\t\tif( ctx == null || ctx.getLanguage() == null )\r\n\t\t{\r\n\t\t\tthrow new JaloInvalidParameterException(\"GeneratedCMSMediaParagraphLinkComponent.setMedia requires a session language\", 0 );\r\n\t\t}\r\n\t\tsetLocalizedProperty(ctx, MEDIA,value);\r\n\t}",
"Builder addAssociatedMedia(MediaObject value);",
"private Media(Element media)\n\t\t{\n\t\t\tthis.mediaElement = media;\n\t\t}",
"public void set(Rectangle copy) {\n\t\tthis.position = new Vector(copy.position);\n\t\tthis.size = new Vector(copy.size);\n\t}",
"@Override\n public void setMediaPath(String path)\n {\n setVariable(MEDIA_PATH, path);\n }",
"public final void setSample(Object obj)\n { /* setSample */\n this.sample= obj; \n }",
"public T caseMediaSet(MediaSet object) {\r\n\t\treturn null;\r\n\t}",
"void setSetSampleObject(com.smartbear.SetSampleObjectDocument.SetSampleObject setSampleObject);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests ClientUtilityImplremoveClients(long[],boolean) for accuracy. | public void testRemoveClients() throws Exception {
Client client = AccuracyTestHelper.createClient(1);
instance.addClient(client, true);
instance.removeClients(new long[] {client.getId()}, true);
assertNull("Failed to remove client.", instance.retrieveClient(client.getId()));
} | [
"public void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);",
"public boolean deleteClient(String nomClient);",
"@Test\n public void testClientTracker() throws Exception {\n \tassertEquals(clientManager.getClients().size(),0);\n \taddClientToClientManagerSingleSsid(MacAddress.of(\"00:00:00:00:00:01\"),\n\t\t\t\t\t\t\t\t InetAddress.getByName(\"172.17.1.1\"),\n\t\t\t\t\t\t\t\t MacAddress.of(\"00:00:00:00:00:01\"),\n\t\t\t\t\t\t\t\t \"sdwn\");\n\t\t\n\t\tassertEquals(clientManager.getClients().size(),1);\n\t\taddClientToClientManagerSingleSsid(MacAddress.of(\"00:00:00:00:00:01\"),\n\t\t\t\t\t\t\t\t InetAddress.getByName(\"172.17.1.2\"),\n\t\t\t\t\t\t\t\t MacAddress.of(\"00:00:00:00:00:02\"),\n\t\t\t\t\t\t\t\t \"sdwn\");\n\t\tassertEquals(clientManager.getClients().size(),1); // Same hw-addr cant exist twice\n\n\t\t// TODO: None of the other parameters should repeat either!\n\t\tclientManager.removeClient(MacAddress.of(\"00:00:00:00:00:02\"));\n\t\tassertEquals(clientManager.getClients().size(),1);\n\t\t\n\t\tclientManager.removeClient(MacAddress.of(\"00:00:00:00:00:01\"));\n\t\tassertEquals(clientManager.getClients().size(),0);\n\t\t\n\t\tclientManager.removeClient(MacAddress.of(\"00:00:00:00:00:01\"));\n\t\tassertEquals(clientManager.getClients().size(),0);\n }",
"public void testRemoveClient() throws Exception {\r\n Client client = AccuracyTestHelper.createClient(1);\r\n instance.addClient(client, true);\r\n instance.removeClient(client.getId(), true);\r\n assertNull(\"Failed to remove client.\", instance.retrieveClient(client.getId()));\r\n }",
"public Integer deleteClientById(Long idClient);",
"private void removeClient(List<Integer> clientIds) {\r\n\r\n\t\t//remove from the domains first\r\n\t\tsynchronized (domainBroadcasters) {\r\n\t\t\tfor (Domain domain : domainBroadcasters.keySet()) {\r\n\t\t\t\tSet<Integer> set = domainBroadcasters.get(domain);\r\n\t\t\t\t//remove all the ids\r\n\t\t\t\tfor (Integer integer : clientIds) {\r\n\t\t\t\t\tset.remove(integer);\r\n\t\t\t\t}\r\n\t\t\t\t//if the set is empty, remove it from the map\r\n\t\t\t\tif (set.isEmpty())\r\n\t\t\t\t\tdomainBroadcasters.remove(domain);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//then remove from the map\r\n\t\tfor (Integer integer : clientIds) {\r\n\t\t\tlogger.debug(\"[AtmosphereManager] remove client \"+integer);\r\n\t\t\tclientResources.remove(integer);\r\n\t\t}\r\n\t\t\r\n\t}",
"public synchronized void decrementClients()\r\n\t{\r\n\t\tnumberOfClients--;\r\n\t}",
"@Test\n public void testKillClientBeforeServer()\n {\n int cServers = 3;\n Properties propsClient = new Properties();\n propsClient.put(\"coherence.distributed.localstorage\", \"false\");\n propsClient.put(\"coherence.cluster\", \"testKillClientBeforeServer\");\n Properties propsServer = new Properties();\n propsServer.put(\"coherence.cluster\", \"testKillClientBeforeServer\");\n CoherenceClusterMember[] servers = ClusteringTests.startServers(\"server-witness\", \"witness\", propsServer, cServers);\n CoherenceClusterMember client = startCacheServer(\"client-witness\", \"witness\", null, propsClient);\n\n Eventually.assertThat(invoking(servers[cServers-1]).getClusterSize(), is(4));\n\n UID uidClient = client.getLocalMemberUID();\n client.invoke(new ConnectionDestroyer(2));\n\n Eventually.assertThat(invoking(servers[cServers-1]).getClusterMemberUIDs().contains(uidClient), is(false));\n\n for (int i = 0; i < cServers; i++)\n {\n servers[i].close();\n }\n client.close();\n ClusteringTests.stopServers(\"server-witness\", cServers);\n AbstractFunctionalTest.stopCacheServer(\"client-witness\");\n Base.sleep(10000);\n }",
"@Test\n public void canRemoveNetworkConfigInClientMode() throws Exception {\n boolean result;\n when(mWifiConfigManager.removeNetwork(eq(0), anyInt())).thenReturn(true);\n initializeAndAddNetworkAndVerifySuccess();\n mLooper.startAutoDispatch();\n result = mWsm.syncRemoveNetwork(mWsmAsyncChannel, 0);\n mLooper.stopAutoDispatch();\n assertTrue(result);\n }",
"boolean deleteClient(Long id) throws ConnectorException;",
"public void deleteClientFromConseiller(int idClient, String matricule) {\n\t}",
"public void testRemoveAddresses() throws Exception {\r\n try {\r\n this.dao.removeAddresses(new long[]{-1}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }",
"@Test(groups = {\"Regression\", \"IntakeLender\"})\t\n\tpublic void RemoveLoanTaskfee_clients() throws InterruptedException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tUsers1.select_intakeLender();\n\t\tClients Clients1 = homePage.navigateToClients();\n\t\tClients1.validateHeaderNav();\n\t\t\n\t}",
"void unsetClientVersionResult();",
"@Test\r\n private void testDelete() {\r\n ClusterNodeList clusterNodeList = null;\r\n try {\r\n clusterNodeList = resource.remove(uuid);\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n clusterNodeList = null;\r\n fail();\r\n }\r\n if (clusterNodeList == null) {\r\n System.err.println(\"No matching confidence interval found\");\r\n fail();\r\n } else {\r\n System.out.println(\"testDelete() : \");\r\n System.out.println(clusterNodeList);\r\n assertTrue(clusterNodeList != null);\r\n }\r\n }",
"private synchronized void removeClient(int id){\r\n for(int i=0; i<this.clientList.size() ; i++){\r\n if(this.clientList.get(i).getClientId()==id){\r\n this.clientList.remove(i);\r\n return;\r\n }\r\n }\r\n \r\n \r\n }",
"@Test\n public void testClearClient() throws RemoteException {\n // Register Client for verification.\n mWifiScoreReport.setWifiConnectedNetworkScorer(mAppBinder, mWifiConnectedNetworkScorer);\n mWifiScoreReport.clearWifiConnectedNetworkScorer();\n verify(mAppBinder).unlinkToDeath(any(), anyInt());\n\n mWifiScoreReport.startConnectedNetworkScorer(10);\n verify(mWifiConnectedNetworkScorer, never()).onStart(anyInt());\n }",
"public void testRetrieveClients() throws Exception {\r\n Client client = AccuracyTestHelper.createClient(1);\r\n instance.addClient(client, true);\r\n AccuracyTestHelper.assertClients(client, instance.retrieveClients(new long[] {client.getId()})[0]);\r\n }",
"void decClientsWithCqs() {\n _stats.incLong(_numClientsWithCqsId, -1);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the checked state of the control. | public boolean getChecked()
{
return checked;
} | [
"public Integer getChecked() {\n return checked;\n }",
"boolean getCheckState();",
"public final String getCheckedAttribute() {\n return getAttributeValue(\"checked\");\n }",
"public Object getCheckedValue();",
"@Override\n\tpublic boolean getChecked() {\n\t\treturn _ibOrder.getChecked();\n\t}",
"boolean isChecked();",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return DONT_CARE;\n } else {\n // normal deselected\n return NOT_SELECTED;\n }\n }",
"public boolean getSelection () {\n\tcheckWidget();\n\tif ((style & (SWT.CHECK | SWT.RADIO)) == 0) return false;\n\treturn OS.gtk_toggle_button_get_active (handle);\n}",
"@Override\n public Type getStateType() {\n return Type.Check;\n }",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }",
"public boolean getSelection()\n {\n return checkButton.getSelection();\n }",
"boolean isCheckboxChecked();",
"public boolean getRadioState() {\n return radio.isSwitchStatus();\n }",
"@Override\n\tpublic boolean isChecked() {\n\t\treturn _ibOrder.isChecked();\n\t}",
"public boolean isChecked () {\n // declaring local variables\n WebElement webElement;\n String className;\n boolean returnValue = true;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. Returning value '\" + returnValue + \"' ===\");\n } else {\n // getting the web element with the default timeout\n webElement = getWebElement();\n\n returnValue = webElement.isSelected();\n }\n\n return returnValue;\n }",
"private boolean checkRadioButton() throws UiException {\n boolean in = incoming.isSelected();\n boolean out = outgoing.isSelected();\n\n if (!(in ^ out)) {\n throw new UiException();\n }\n\n return out;\n }",
"public void setChecked(){\n checked = true;\n }",
"public AccessibleStateSet getAccessibleStateSet() {\n AccessibleStateSet states = super.getAccessibleStateSet();\n if (getState()) {\n states.add(AccessibleState.CHECKED);\n }\n return states;\n }",
"private String getCheckbox() {\n\t\treturn checkTemplate;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the property 'verifiableAddresses' | @Test
public void verifiableAddressesTest() {
// TODO: test verifiableAddresses
} | [
"protected boolean hasAddresses() {\n if (this.addresses.isEmpty()) {\n return false;\n }\n else {\n return true;\n }\n }",
"@Test\n public void testCreateVerifyArray() throws EasyPostException {\n vcr.setUpTest(\"create_verify_array\");\n\n Map<String, Object> addressData = Fixtures.incorrectAddress();\n List<Boolean> verificationList = new ArrayList<>();\n verificationList.add(true);\n addressData.put(\"verify\", verificationList);\n\n Address address = vcr.client.address.create(addressData);\n\n assertInstanceOf(Address.class, address);\n assertTrue(address.getId().startsWith(\"adr_\"));\n assertEquals(\"417 MONTGOMERY ST FL 5\", address.getStreet1());\n }",
"@java.lang.Override\n public boolean getAllowImpreciseAddresses() {\n return allowImpreciseAddresses_;\n }",
"@java.lang.Override\n public boolean getAllowImpreciseAddresses() {\n return allowImpreciseAddresses_;\n }",
"@Test\n public void testGetAddress() {\n try {\n System.out.println(\"getAddress\");\n Calendar date = Calendar.getInstance();\n date.set(2015, 1, 10);\n Note note = new NoteImpl(1, \"TEST NOTE\", \"DEDWARDS\", new Date());\n Note note2 = new NoteImpl(2, \"TEST NOTE2\", \"DEDWARDS\", new Date());\n Element element = new ElementImpl(\"TEST\", \"TEST\", note, \"DEDWARDS\", new Date());\n AddressInterface address = new Address(1, \"12\", \"Kestrel House\", \"1\", \"The Close\", \"1\", \"The Ride\", \"Enfield\", \"London\", \"England\", \"EN3 4EN\", note2, \"DEDWARDS\", new Date());\n AddressInterface address2 = new Address(1, \"\", \"\", \"1\", \"The Close\", \"1\", \"The Ride\", \"Enfield\", \"London\", \"England\", \"EN3 4EN\", note2, \"DEDWARDS\", new Date());\n Property instance = new Property(1, address, date.getTime(), element, element, \"DEDWARDS\", new Date());\n \n assertEquals(address, instance.getAddress());\n assertEquals(false, instance.getAddress().equals(address2));\n } catch (RemoteException ex) {\n Logger.getLogger(PropertyTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Test\n public void testGetAllAddresses()\n {\n List<String> addresses = new ArrayList<String>();\n addresses.add(\"Address1\");\n \n when(m_AddressManagerService.getAddressDescriptiveStrings()).thenReturn(addresses);\n \n List<String> answer = m_SUT.getAllKnownAddresses();\n \n assertThat(answer.size(), is(1));\n assertThat(answer.get(0), is(\"Address1\"));\n \n }",
"boolean hasAddressChallenge();",
"@Test(expected=AssertionError.class)\n\tpublic void testPassInvalidToSettersAddress() {\n\t\tbeanTester.testSetterForField(\"invalid\");\n\t}",
"@Test\n public void recoveryAddressesTest() {\n // TODO: test recoveryAddresses\n }",
"@Test\n public void testSetAddress() {\n }",
"public boolean isSetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMADDRESS$6) != 0;\n }\n }",
"public boolean isSetLivingAddress() {\n return this.livingAddress != null;\n }",
"abstract void addressValidity();",
"public boolean isSetAddress() {\n return this.address != null;\n }",
"@Test\r\n public void testSetAddress() {\r\n\r\n instance.setAddress(address4);\r\n assertEquals(address4, instance.getAddress());\r\n }",
"public Boolean getAddressesRequireRegion() {\r\n return this.addressesRequireRegion;\r\n }",
"@Test\n public void testCreateVerify() throws EasyPostException {\n vcr.setUpTest(\"create_verify\");\n\n Map<String, Object> addressData = Fixtures.incorrectAddress();\n addressData.put(\"verify\", true);\n\n Address address = vcr.client.address.create(addressData);\n\n assertInstanceOf(Address.class, address);\n assertTrue(address.getId().startsWith(\"adr_\"));\n assertEquals(\"417 MONTGOMERY ST FL 5\", address.getStreet1());\n }",
"@Test\n public void testCreateAndVerify() throws EasyPostException {\n vcr.setUpTest(\"create_and_verify\");\n\n Map<String, Object> addressData = Fixtures.caAddress1();\n\n Address address = vcr.client.address.createAndVerify(addressData);\n\n assertInstanceOf(Address.class, address);\n assertTrue(address.getId().startsWith(\"adr_\"));\n assertEquals(\"388 TOWNSEND ST APT 20\", address.getStreet1());\n }",
"@Test\n public void testHandleInspectAddresses() {\n final List<Long> addresses = LongStream.rangeClosed(1L, 16L).boxed().collect(Collectors.toList());\n final List<Long> expectedEmpty = addresses.stream()\n .filter(address -> address > 9L).collect(Collectors.toList());\n\n RequestMsg request = getRequestMsg(\n getBasicHeader(ClusterIdCheck.CHECK, EpochCheck.CHECK),\n getInspectAddressesRequestMsg(addresses)\n );\n\n addresses.forEach(address -> when(mStreamLog.contains(address)).thenReturn(address < 10L));\n ArgumentCaptor<ResponseMsg> responseCaptor = ArgumentCaptor.forClass(ResponseMsg.class);\n logUnitServer.handleMessage(request, mChannelHandlerContext, mServerRouter);\n\n // Assert that the payload has an INSPECT_ADDRESSES response and that the\n // base header fields have remained the same.\n verify(mServerRouter).sendResponse(responseCaptor.capture(), eq(mChannelHandlerContext));\n ResponseMsg response = responseCaptor.getValue();\n assertTrue(compareBaseHeaderFields(request.getHeader(), response.getHeader()));\n assertTrue(response.getPayload().hasInspectAddressesResponse());\n\n // Assert that the response contains the expected addresses.\n assertEquals(expectedEmpty, response.getPayload().getInspectAddressesResponse().getEmptyAddressList());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get Only one Specialization by ID | public SpecializationBean getSpecializationID(int id) {
List<SpecializationBean> list = getSpecializationList(id);
if (!list.isEmpty()) {
return list.get(0);
}
return null;
} | [
"@Override\n @Transactional\n public DoctorspecializationEntity getSpecialization( Integer id ) {\n return em.find( DoctorspecializationEntity.class, id );\n }",
"public CandidatoSpecializzazione get(String id);",
"public Animal retrieve(long id);",
"SpeciesEntity getSpeciesById(Integer id);",
"@Override\n\tpublic SpecimenDTO fetchByID(int id) {\n\t\tSpecimenDTO specimenDTO = new SpecimenDTO();\n\t\t\n\t\tfor(SpecimenDTO specimen : specimenList) {\n\t\t\tif(specimen.getSpecimenID() == id) {\n\t\t\t\treturn specimen;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new SpecimenDTO();\n\t}",
"Optional<Computer> findOne(long idToSelect);",
"@Transactional(readOnly = true) \n public Genre findOne(Long id) {\n log.debug(\"Request to get Genre : {}\", id);\n Genre genre = genreRepository.findOne(id);\n return genre;\n }",
"public List<SpecializationBean> getSpecializationList(int id) {\n\t\t\tList<SpecializationBean> specializationList = new ArrayList<>();\n\t\t\tConnection connection = DBConnection.getConnection();\n\t\t\tResultSet resultSet = null;\n\t\t\tString query;\n\t\t\tif (id == 0) {\n\t\t\t\tquery = \"SELECT * FROM speciality\";\n\t\t\t} else {\n\t\t\t\tquery = \"SELECT * FROM speciality WHERE id = \" + id;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(query);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tint sid = resultSet.getInt(\"id\");\n\t\t\t\t\tString sname = resultSet.getString(\"name\");\n\t\t\t\t\t\n\t\t\t\t\tSpecializationBean sb = new SpecializationBean(sid, sname);\n\t\t\t\t\tspecializationList.add(sb);\n\t\t\t\t}\n\t\t\t\tconnection.close();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t\treturn specializationList;\n\n\t\t}",
"Recipe getRecipeById(int id);",
"public Manufacturer findById(String id) {\n return manufacturerRepository.findById(id).orElse(null);\n }",
"Concept getConcept(String id);",
"public Equipment findEquipmentById(int id){\n Optional<Equipment> equipment = equipmentRepository.findById(id);\n return equipment.orElse(null);\n }",
"TipoCarro findOne(Long id);",
"@Override\n @Transactional(readOnly = true)\n public BaseMajor findOne(Long id) {\n log.debug(\"Request to get BaseMajor : {}\", id);\n return baseMajorRepository.findOne(id);\n }",
"Subdivision findById(Long id);",
"@Transactional(readOnly = true)\n public Optional<Ivision> findOne(Long id) {\n log.debug(\"Request to get Ivision : {}\", id);\n return ivisionRepository.findById(id);\n }",
"public Recipe getRecipeById(String id) throws Exception;",
"@Transactional(readOnly = true)\n public Optional<StoreEquipment> findOne(Long id) {\n log.debug(\"Request to get StoreEquipment : {}\", id);\n return storeEquipmentRepository.findById(id);\n }",
"Ingredient findById(int id);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the fxUfTasaSuciaCosto property. | public void setFxUfTasaSuciaCosto(double value) {
this.fxUfTasaSuciaCosto = value;
} | [
"public double getFxUfTasaSuciaCosto() {\r\n return fxUfTasaSuciaCosto;\r\n }",
"public void setFxUfTasaCosto(double value) {\r\n this.fxUfTasaCosto = value;\r\n }",
"public double getFxUfTasaCosto() {\r\n return fxUfTasaCosto;\r\n }",
"public void setFxUfTasaSuciaCliente(double value) {\r\n this.fxUfTasaSuciaCliente = value;\r\n }",
"public double getFxUfTasaSuciaCliente() {\r\n return fxUfTasaSuciaCliente;\r\n }",
"public void setTipoCufe(java.lang.String tipoCufe) {\n this.tipoCufe = tipoCufe;\n }",
"public void addFantaCrediti() {\n\t\tfantallenatore.setFantaCrediti(500);\n\t}",
"public void setTcCosto(double value) {\r\n this.tcCosto = value;\r\n }",
"public void setCofImportanceSla(double cofImportanceSla) {\n if (cofImportanceSla < 0 || cofImportanceSla > 1) {\n throw new IllegalArgumentException(\"Coefficient of SLA importance must be between 0 and 1\");\n } else {\n this.cofImportanceSla = cofImportanceSla;\n }\n }",
"public boolean isSetCoResultadoUsTransfontanela() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADOUSTRANSFONTANELA_ISSET_ID);\n }",
"public void setCuota(java.lang.String cuota) {\n this.cuota = cuota;\n }",
"public void setCosto_produccion(double costo_produccion) {\r\n this.costo_produccion = costo_produccion;\r\n }",
"public void setFxForwardCosto(double value) {\r\n this.fxForwardCosto = value;\r\n }",
"public void setCuota(java.lang.String cuota);",
"public void setFiNguoitao(String fiNguoitao) {\n this.fiNguoitao = fiNguoitao;\n }",
"public void setFiNguoitao( String fiNguoitao ) {\n this.fiNguoitao = fiNguoitao;\n }",
"public void setCostFunction(int cost) {\r\n costFxn = cost;\r\n }",
"public void setCufe(java.lang.String cufe) {\n this.cufe = cufe;\n }",
"public Transaccion(float cantidad, String concepto, Fecha fecha, Usuario usuario){\n this.cantidad = cantidad;\n this.concepto = concepto;\n this.fecha = fecha;\n this.usuario = usuario;\n if(cantidad >= 0) {\n this.esVenta = true;\n } else {\n this.esVenta = false;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when Role's data change. | public void roleChanged(Role item)
{
event("RoleChange",
item.getId(),
-1,
-1,
false);
} | [
"public void roleChanged(Role role);",
"public interface RoleChangeListener\n{\n /**\n * Called when <code>Role</code>'s data change.\n *\n * @param role the role that changed.\n */\n public void roleChanged(Role role);\n}",
"public void updateRoleDetails() {\n\t\tSystem.out.println(\"Calling updateRoleDetails() Method To Update Role Record\");\n\t\troleDAO.updateRole(role);\n\t}",
"@Override\n public void onUserRoleChanged(JSONObject jsonObject) {\n }",
"private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}",
"public void setRole(Role _role){ role = _role; }",
"public void onGuildRoleUpdate(GuildRoleUpdateEvent event) {}",
"default void onRoleChanged(GroupID group, GroupRole role) {}",
"public void setRole(Role role);",
"public void setRole(long value) {\n this.role = value;\n }",
"public Role updateRole(Role role);",
"private RoleData() {\n initFields();\n }",
"private void setRole() throws SQLException {\n super.roleId = DatabaseHelperAdapter.getRoleIdByName(\"CUSTOMER\");\n }",
"@Override\n\tpublic void editRole(Dto pDto)\n\t{\n\t\tsuper.getFredaDao().update(\"Organization.editRole\", pDto);\n\t}",
"void setRole(String role);",
"@Override\n public void onSwitchedUserRole(JSONObject jsonObject) {\n }",
"public void setRole(User.Role role) {\n this.role = role;\n }",
"public void saveRoles(){\r\n\t\tif(roles == null)\r\n\t\t\treturn;\r\n\r\n\t\tif(!rolesTreeView.isValidRolesList())\r\n\t\t\treturn;\r\n\r\n\t\tList<Role> deletedRoles = rolesTreeView.getDeletedRoles();\r\n\t\tSaveAsyncCallback callback = new SaveAsyncCallback(MainViewControllerUtil.getDirtyCount(roles) + (deletedRoles != null ? deletedRoles.size() : 0),\r\n\t\t\t\tOpenXdataText.get(TextConstants.ROLES_SAVED_SUCCESSFULLY),OpenXdataText.get(TextConstants.PROBLEM_SAVING_ROLES),roles,deletedRoles,this);\r\n\r\n\t\t//Save new and modified roles.\r\n\t\tfor(Role role : roles) {\r\n\t\t\tif(!role.isDirty())\r\n\t\t\t\tcontinue;\r\n\t\t\telse{\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tMainViewControllerUtil.setEditableProperties(role);\r\n\t\t\t}\r\n\r\n\t\t\tContext.getPermissionService().saveRole(role, callback);\r\n\t\t}\r\n\r\n\t\t//Save deleted roles.\r\n\t\tif(deletedRoles != null){\r\n\t\t\tfor(Role role : deletedRoles) {\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tContext.getPermissionService().deleteRole(role, callback);\r\n\t\t\t}\r\n\t\t\tdeletedRoles.clear();\r\n\t\t}\r\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
spawn the group at a specific location with fire immunity as needed | public void spawnGroup(int x,int y,int z,double atk,double def,boolean fire){
Mob m=null;
mobs.clear();
for(String mn:type.getMobs()){
if(mn.equals("wither_skeleton")){
m=new Mob("skeleton",atk,def,mobEffects,mobAbilities);
m.setGroup(this);
m.spawn(w, x, y, z,fire);
mobs.add(m);
((Skeleton)m.getEntity()).setSkeletonType(Skeleton.SkeletonType.WITHER);
}else if(mn.equals("pig_zombie")){
m=new Mob(mn,atk,def,mobEffects,mobAbilities);
m.setGroup(this);
m.spawn(w, x, y, z,fire);
mobs.add(m);
((PigZombie)m.getEntity()).setAnger(32767);
((PigZombie)m.getEntity()).setAngry(true);//piss off the pigman
((PigZombie)m.getEntity()).setAnger(32767);
}else{
m=new Mob(mn,atk,def,mobEffects,mobAbilities);
m.setGroup(this);
m.spawn(w, x, y, z,fire);
mobs.add(m);
}
}
} | [
"public void spawn() {\r\n\t\tif (!isIngame) return;\r\n\t\tnew BukkitRunnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tgetPlayer().teleport(getSpawn());\r\n\t\t\t\tif (!getTeam().equals(teamName.SPECTATOR)){\r\n\t\t\t\t\tresetPlayerInfo();\r\n\t\t\t\t\tgiveClass();\r\n\t\t \t\tupdateXPbar();\r\n\t\t \t}\r\n\t\t\t}\r\n\t\t}.runTaskLater(FPSCaste.getInstance(), 5);\r\n\t}",
"public void spawn()\n\t{\n\t\tList<Location> possibleSpawns = BlockFinder.getPossibleSpawns();\n\t\tint random = new Random().nextInt(possibleSpawns.size());\n\t\tif(random < 0) return;\n\t\tspawnedLoc = possibleSpawns.get(random);\n\t\t\n\t\t// Set the block to find\n\t\tLocation itemLoc = spawnedLoc.getBlock().getLocation().add(0.5, 0.5, 0.5);\n\t\tEntity e = itemLoc.getWorld().dropItem(itemLoc, getItemStack());\n\t\te.setVelocity(e.getVelocity().zero());\n\t\tspawnedEnt = e;\n\t\t\n\t\t\n\t}",
"protected abstract void onSpawnLocationSet(int x, int y);",
"void spawnEntityAt(String typeName, int x, int y);",
"@Override\n\tpublic void spawn(){\n\t\tIntVector loc = mGM.corruptionHelper.getRandomElementIndex();\n\t\t//if corrupted layer is empty try finding a virus\n\t\tif(loc == null) \n\t\t{\n\t\t\tloc = mGM.virusHelper.getRandomElementIndex();\n\t\t}\n\t\t//if viru layer also null, do nothing.\n\t\tif(loc == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//get random offset\n\t\tint newx = rand.nextInt(5)-2;\n\t\tint newy = rand.nextInt(5)-2;\n\t\tloc = loc.add(new IntVector(newx,newy));\n\t\t//if out of bounds, scoot it back into bounds\n\t\t//make sure it spawns past the firewall\n\t\tloc.forceIntoBounds(4, 0, mGM.getWidth()-1, mGM.getHeight()-1);\n\t\t\n\t\t//now spawn a virus here \n\t\tspawnAtLocation(loc);\n\n\t}",
"void setSpawnPoint(Position spawnPoint);",
"public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}",
"private void spawn()\n {\n isSpawning = true;\n \n for(int i = 0; i < numGen.nextInt(15)+1; i++)\n {\n Engine.instance.addShip(new XShip((int)xPos, (int)yPos));\n }\n }",
"public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}",
"public void setSpawnLocation(Location spawnLocation) {\n this.spawnLocation = spawnLocation;\n }",
"public void setSpawn(boolean spawn) {\r\n this.spawn = spawn;\r\n }",
"void setSpawnLocation(IBossSpawnLocation location);",
"private void spawn(boolean randomUnit) {\n if (spawnRate - (gameTime - timeLastSpawn) < 0 || randomUnit) {\n spawnEnemy();\n\n if (!randomUnit) {\n timeLastSpawn = gameTime;\n //System.out.println(\"Spawned a unit\");\n }\n }\n }",
"public void spawnAroundBlock(Player player, Location loc, int itemID, Item3DRunnable run) {\r\n\t\tint centerx = (int) Math.floor(loc.getX());\r\n\t\tint centery = (int) Math.floor(loc.getY());\r\n\t\tint centerz = (int) Math.floor(loc.getZ());\r\n\t\t\r\n\t\t//-----------\r\n\t\t//-----------\r\n\t\t\r\n\t\tint x = centerx * 32 + 32 + 12;\r\n\t\tint y = centery * 32;\r\n\t\tint z = centerz * 32;\r\n\t\t\r\n\t\tbyte rotation = (byte) (0);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32 + 32;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 + 32 + 12;\r\n\t\t\r\n\t\trotation = (byte) (256/4*1);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32 - 12;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 + 32;\r\n\t\t\r\n\t\trotation = (byte) (256/4*2);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 - 12;\r\n\t\t\r\n\t\trotation = (byte) (256/4*3);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\r\n\t\t//-----------\r\n\t\r\n\t\tactions.put(standCounter, run);\r\n\t\t\r\n\t\t//update players\r\n\t\tfor(Player p : loc.getWorld().getPlayers()) {\r\n\t\t\trespawnAll(p);\r\n\t\t}\r\n\t\t\r\n\t\tstandCounter++;\r\n\t}",
"private void setSpawn()\n {\n currentRoom = map.getSpawn();\n }",
"private void processSpawning(Entity entity){\n RespawnComponent respawn = (RespawnComponent) entity.getComponent(RespawnComponent.ID);\n PhysicsComponent phys = (PhysicsComponent)entity.getComponent(PhysicsComponent.ID);\n HealthComponent health = (HealthComponent) entity.getComponent(HealthComponent.ID);\n\n\n Vector2 point = getRandomSpawnPoint();\n phys.setPosition(point.x, point.y);\n phys.getBody().setActive(true);\n\n\n entity.enableComponent(SpriterAnimationComponent.ID);\n entity.enableComponent(CameraTargetComponent.ID);\n\n entity.enableComponent(VirtualGamePad.ID);\n\n\n\n health.setAmount(health.getMaxAmount());\n\n respawn.setState(RespawnComponent.State.SPAWNED);\n\n\n\n\n\n\n\n\n\n }",
"public void spawnDoor()\r\n\t{\r\n\t\tspawnDoor(false);\r\n\t}",
"private static void spawn(Actor actor, ActorWorld world)\n {\n Random generator = new Random();\n int row = generator.nextInt(10);\n int col = generator.nextInt(10);\n Location loc = new Location(row, col);\n while(world.getGrid().get(loc) != null)\n {\n row = generator.nextInt(10);\n col = generator.nextInt(10);\n loc = new Location(row, col);\n }\n world.add(loc, actor);\n }",
"public void spawnWeed() {\n this.crossCrop=false;\n this.clearPlant();\n this.weed=true;\n this.markForUpdate();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The average and the standard deviation of the number of chirps per user. | @Query("select avg(u.chirps.size), stddev(u.chirps.size) from User u")
Double[] avgstdChirpsPerUser(); | [
"@Query(\"select avg(u.chirps.size),sqrt(sum(u.chirps.size *u.chirps.size)/ count(u) - (avg(u.chirps.size) *avg(u.chirps.size))) from User u\")\n Double[] avgStdChirpsPerUser();",
"public double averageChirpsPerUser() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository.averageChirpsPerUser();\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\t}",
"@Query(\"select avg(u.newspapers.size), stddev(u.newspapers.size) from User u\")\n\tDouble[] avgstdNewspapersPerUser();",
"@Query(\"select avg(u.newsPapers.size),sqrt(sum(u.newsPapers.size *u.newsPapers.size)/ count(u) - (avg(u.newsPapers.size) *avg(u.newsPapers.size))) from User u\")\n Double[] avgStdOfNewspapersPerUser();",
"@Query(\"select avg(u.newspapers.size), stddev(u.newspapers.size) from User u\")\n\tDouble[] theAvgAndStddevOfNewspapersForUser();",
"public double getAverage(User user) throws Exception;",
"public static int getAverageAgeOfAllUsers(){\r\n return getAllAgeUsers() / getHowManyUsers();\r\n}",
"public double ratioUsersMorePosted75ChirpsOfAveragePerUser() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository\n\t\t\t\t\t.ratioUsersMorePosted75ChirpsOfAveragePerUser();\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\t}",
"@Query(\"select (select count(u) from User u where u.chirps.size *1.0 > (select avg(u.chirps.size)*1.75 from User u))*1.0/count(u) from User u\")\n\tDouble usersAboveAvgChirps();",
"public double averageNewspaperPerUser() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository.averageNewspaperPerUser();\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\n\t}",
"@Query(\"select avg(u.articles.size), stddev(u.articles.size) from User u\")\n\tDouble[] avgstdArticlesPerWriter();",
"double stdDev() {\n\t\tint cnt = this.count();\n\t\tdouble sum = this.sum();\n\t\tdouble average = this.average();\n\n\t\tdouble temp = 0;\n\t\tfor (double i : this.array) {\n\t\t\ttemp += Math.pow(i - average, 2);\n\t\t}\n\t\tdouble stdDev = Math.sqrt(temp / count);\n\t\treturn stdDev;\n\t}",
"public float getAverageHours() {\n\n ArrayList<String> userList = getStudentList();\n float total = 0;\n\n if(userList.size() > 0) { //Make sure the userlist has items.\n\n for (String u : userList) { // get each users hours and add them together.\n\n total += new User(u).getTotalHours(); //Add the user's hours to the total hours.\n\n }\n\n //Return the average hours of the classroom.\n return (total / userList.size());\n\n }\n\n return 0; //No hours.\n\n }",
"double getStandardDeviation();",
"double average() {\n\t\tdouble total = this.sum();\n\t\tdouble count = this.count();\n\t\tdouble average = total / count;\n\t\treturn average;\n\t}",
"private void calculateStandardDeviation()\n\t{\n\t\tdouble sumOfPointStandardDevs = 0.0;\n\t\tfor(Integer i : allNumbers)\n\t\t{\n\t\t\tsumOfPointStandardDevs += Math.sqrt(Math.abs(average - (double)(i.intValue())));\n\t\t}\n\t\tstandardDeviation = Math.sqrt((sumOfPointStandardDevs)/((double)(count)));\n\t}",
"public static double stdDev(){\n double avg = avgRAM();\n double sum = 0;\n \n for (int i = 0; i < Stuff.stats.length; i++){\n sum += (Stuff.stats[i][Stuff.price]-avg) * (Stuff.stats[i][Stuff.price]-avg);\n }\n return Math.sqrt(sum/(Stuff.stats.length - 1));\n }",
"private float standardDeviation()\n {\n // Calculate standard deviation based on math formula\n int numberEmployees = employees.size();\n float stdev = 0f, sumSquares = 0f, \n meanGrossPay = calculateMean();\n \n // Call method to return an array of float containing all gross pays\n float[] allGrossPay = calculateAllGrossPay();\n \n // Find sum of squares\n for (int i = 0; i < numberEmployees; i++)\n {\n sumSquares += Math.pow((allGrossPay[i] - meanGrossPay), 2); \n }\n // Calculate standard deviation\n if (numberEmployees > 1)\n {\n stdev = (float) Math.sqrt(sumSquares/(numberEmployees - 1));\n }\n return stdev;\n }",
"public double stddev(){\n\t\tdouble mean = mean();\n\t\tdouble total =0.0; \n\t\tfor(int i = 0; i < times; i++){\n\t\t\ttotal += (threshold[i]-mean)*(threshold[i]-mean);\n\t\t}\n\t\treturn Math.sqrt(total/(times-1));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Intializes a player using the given Mark | public Player(Mark mark) {
this.mark = mark;
} | [
"public Player(String name, String marker) {\n\t\tthis();\n\t\tthis.name = name;\n\t\tthis.marker = marker;\n\t}",
"Player(int startAmount, int startIncome) {\n this.amount = startAmount;\n this.income = startIncome;\n }",
"public void createPlayer(String username, String marker, int playerNum){\n\n if (playerNum == 1){\n //create user player\n UserPlayer myself = new UserPlayer(username,marker);\n globalMarker = myself.markerChoice(username,marker);\n\n }else if (playerNum == 2){\n //create second player\n UserPlayer myself = new UserPlayer(username,marker);\n UserPlayer other = new UserPlayer(username,marker);\n compMarker = other.markerChoice(username,marker);\n\n\n\n }\n\n }",
"public Player() {\n\n\t\tnumberOfPlayers++;\n\t\tthis.playerNumber = \"Player \" + numberOfPlayers; \n\t\tthis.balance = 500.00; \n\t\tthis.numberOfLoans = 0;\n\t\tthis.score = 0;\n\t\tthis.inRound = true; \n\t}",
"public Player(char counter) {\n this.counter = counter;\n }",
"public void setPlayerID(int id) { playerID = id; }",
"Player(int player)\n {\n //Creates an appropriate track for player number\n track = new Track(player);\n //Sets initial values for effective token locations\n tokensFinish = 0;\n }",
"private Player() {\n this.id = -1;\n this.name = \"Nobody\";\n this.playerType = -1;\n }",
"public void setPlayer(PlayerType player){\n this.player = player;\n }",
"public Player( double lat, double lon, int Speed ) {\n\t\t\n\t\tpoint = new Point3D(lat, lon, 0);\n\t\tspeed = Speed;\n\t\tradius = 1;\n\t\ttype = \"M\";\n\t\tscore = 0;\n\t\tpixels = new int[2];\n\t\t\n\t}",
"public Command(int Player) {\r\n\t\tmyPlayer = Player;\r\n\t}",
"public Player() {\n\t\tint[] start = { 2, 2, 2, 2, 2, 2, 2, 2, 2 };\n\t\tsetStats(start);\n\t}",
"void setxPlayer(Player xPlayer){ this.xPlayer = xPlayer; }",
"public Player(){\n this.name = \"anonymous\";\n }",
"public void setPlayerNo(int value) {\n this.playerNo = value;\n }",
"public Player(String name, int healthPoints, int score){\r\n this.name = name;\r\n this.healthPoints = healthPoints;\r\n this.score = score;\r\n}",
"void setPlayerId(int playerId);",
"public Player(String name){\n this.name = name;\n this.mana = 600;\n this.life = 1000;\n }",
"public Player(char diskType,Map map){\r\n this.diskType=diskType;\r\n this.disks=new ArrayList<>();\r\n this.map=map;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor method to get the inventory product description | public String getInventoryProductDescription()
{
return inventoryProductDescription;
} | [
"java.lang.String getProductDescription();",
"public String getProductDesc() {\n return productDesc;\n }",
"public String get_product_description() {\n\t\treturn productDescription.getText();\n\t}",
"public String getProductItemDesc() {\n return (String)getAttributeInternal(PRODUCTITEMDESC);\n }",
"public java.lang.String getProductDescription() {\n return productDescription;\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _buySellProducts.getDescription();\n\t}",
"public String getProductPackDesc() {\n return (String)getAttributeInternal(PRODUCTPACKDESC);\n }",
"public String getProductVariantDesc() {\n return (String)getAttributeInternal(PRODUCTVARIANTDESC);\n }",
"public void setInventoryProductDescription \n (String inventoryProductDescription)\n {\n this.inventoryProductDescription = inventoryProductDescription;\n }",
"@Override\n public java.lang.String getProduct_code_description() {\n return _parts.getProduct_code_description();\n }",
"public String getItemDesc() {\n return itemDesc;\n }",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public synchronized String getDescription(){\n \treturn item_description;\n }",
"public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}",
"public String getProductExtDesc() {\n return (String)getAttributeInternal(PRODUCTEXTDESC);\n }",
"public String getItemDesc() {\n return (String)getAttributeInternal(ITEMDESC);\n }",
"public String getItemDescription() throws IOException {\n\t\ttry {\n\t\t\tMobileElement purchase = (MobileElement) driver.findElement(By.id(purchase_opt_id));\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\t\twait.until(ExpectedConditions.visibilityOf(purchase));\n\t\t\tMobileElement item_desc = (MobileElement) driver.findElement(By.id(item_desc_id));\n\t\t\ts.takeScreenshot(\"Checkout page\");\n\t\t\treturn item_desc.getText();\n\t\t} catch (Exception e) {\n\t\t\ts.takeScreenshot(\"Checkout page error\");\n\t\t\tLog.info(\"Exception \" + e);\n\t\t}\n\n\t\treturn null;\n\t}",
"public String getItemDescription()\n {\n return itemDescription;\n }",
"public String getItemDescription() {\r\n return ITEM_DESCRIPTION;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getResistance method, of class Dragon. | @Test
public void testGetResistance() {
System.out.println("getResistance");
Dragon instance = new Dragon("Bruno", 50, 135, 2, "Capitan");
int expResult = 2;
int result = instance.getResistance();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
if(result != expResult)
fail("The test case is a prototype.");
} | [
"@Test\r\n public void testSetResistance() {\r\n System.out.println(\"setResistance\");\r\n int resistance = 1;\r\n Dragon instance = new Dragon(\"Bruno\", 50, 135, 1, \"Capitan\");\r\n instance.setResistance(resistance);\r\n // TODO review the generated test code and remove the default call to fail.\r\n if (resistance != instance.getResistance())\r\n fail(\"The test case is a prototype.\");\r\n }",
"int getResistance();",
"public double getResistance() \r\n {\r\n return this.resistance;\r\n }",
"public void setResistance(double R);",
"public int getResistance() {\n\t\treturn resistance;\n\t}",
"EDataType getResistance();",
"@Test\r\n public void testGetRechargeSpeed() {\r\n System.out.println(\"getRechargeSpeed\");\r\n Dragon instance = new Dragon(\"Francisco\", 2, 468, 1, \"Capitan\");\r\n int expResult = 2;\r\n int result = instance.getRechargeSpeed();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n if (expResult != result)\r\n fail(\"The test case is a prototype.\");\r\n }",
"public double getResistance() {\n\t\treturn this.resistance;\n\t}",
"@Test\n\tpublic void TestCalculateDamage() \n\t{\n\t\tWeapon gun = new Gun();\n\t\t// 0<=distance between the range<=30\n\t\tgun.calculateDamage(10);\n\t\tassertEquals(15,gun.getDamage());\n\t\tassertEquals(3,((Gun) gun).gettRateofFire(),.1);\n\t\tassertEquals(39,((Gun) gun).getActualAmmo(),.1);\n\t\t//distance out of the range\n\t\tgun.calculateDamage(50);\n\t\tassertEquals(15,gun.getDamage());\n\t\tassertEquals(2,((Gun) gun).gettRateofFire(),.1);\n\t\tassertEquals(38,((Gun) gun).getActualAmmo(),.1);\n\t\t //reload when actual ammo is 0\n\t\t((Gun) gun).setActualAmmo(0);\n\t ((Gun) gun).reload();\n\t\tassertEquals(40,((Gun) gun).getActualAmmo(),.1);\n\t\t\n\t}",
"int getResistance(final IEntity entity);",
"@Test\n public void getEnergyModifierDTest() {\n \n assertEquals(0.8, hawthorn1.getEnergyModifierD(), 0.1);\n }",
"public void setResistance(double resistance) {\n\t\tthis.resistance = resistance;\n\t}",
"@Test\n void legionHasDefenseStrengthOf2andAttackStrengthOf4() {\n Unit legion = game.getUnitAt(new Position(1,1));\n assertThat(legion.getDefensiveStrength(), is(2));\n assertThat(legion.getAttackingStrength(), is(4));\n }",
"@Test\r\n public void testSetRechargeSpeed() {\r\n System.out.println(\"setRechargeSpeed\");\r\n int rechargeSpeed = 5;\r\n Dragon instance = new Dragon(\"Francisco\", 2, 468, 1, \"Capitan\");\r\n instance.setRechargeSpeed(rechargeSpeed);\r\n // TODO review the generated test code and remove the default call to fail.\r\n if (rechargeSpeed != instance.getRechargeSpeed())\r\n fail(\"The test case is a prototype.\");\r\n }",
"public void setResistance(int resistance) {\n\t\tthis.resistance = resistance;\n\t}",
"@Test\n\tpublic void testDamage() \n\t{\n\t\tPokemon testDummy = new MockPokemon();\n\t\tMove[] attacks = testDummy.getAttacks();\n\t\tint testDamage = (int) (testDummy.getSpecialAttackPower());\n\t\t\n\t\tassertEquals(testDamage, attacks[0].calcDamage());\n\t}",
"public interface HasResistance {\n \n /**\n * Sets resistance to new value.\n *\n * @param R a new <code>double</code> resistance value.\n */\n public void setResistance(double R);\n \n /**\n * Gets current resistance value.\n *\n * @return current resistance value in <code>double</code> form.\n */\n public double getResistance();\n}",
"@Test\n\tpublic void testGetCarForce() {\n\t\tSystem.out.println(\"getCarForce\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setCarForce(expResult);\n\t\tassertEquals(expResult, this.step.getCarForce());\n\t}",
"@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows an upstream error to jump over an inner transformation and is then reapplied once the inner transformation's returned Flowable terminates. | public static <T, R> ObservableTransformer<T, R> errorJump(ObservableTransformer<T, R> transformer) {
Objects.requireNonNull(transformer, "transformer");
return new ObservableErrorJump<>(null, transformer);
} | [
"private Mono<TransferTaskParent> doErrorParentStepOne(AcknowledgableDelivery m, Throwable e, TransferTaskParent parent)\n {\n log.error(LibUtils.getMsg(\"FILES_TXFR_SVC_ERR7A\", parent.toString(), e));\n m.nack(false);\n\n // First update parent task, mark FAILED_OPT or FAILED\n if (parent.isOptional())\n parent.setStatus(TransferTaskStatus.FAILED_OPT);\n else\n parent.setStatus(TransferTaskStatus.FAILED);\n parent.setEndTime(Instant.now());\n parent.setErrorMessage(e.getMessage());\n parent.setFinalMessage(\"Failed - doErrorParentStepOne\");\n try\n {\n parent = dao.updateTransferTaskParent(parent);\n // This should really never happen, it means that the parent with that ID was not in the database.\n if (parent == null) return Mono.empty();\n\n // Now update the top level task\n TransferTask topTask = dao.getTransferTaskByID(parent.getTaskId());\n // This should also not happen, it means that the top task was not in the database.\n if (topTask == null) return Mono.empty();\n\n // If parent is optional we need to check to see if top task status should be updated\n // else parent is required so update top level task to FAILED\n if (parent.isOptional())\n {\n checkForComplete(topTask.getId());\n }\n else\n {\n topTask.setStatus(TransferTaskStatus.FAILED);\n topTask.setEndTime(Instant.now());\n topTask.setErrorMessage(e.getMessage());\n log.debug(LibUtils.getMsg(\"FILES_TXFR_SVC_ERR7C\", topTask.getId(), topTask.getTag(), topTask.getUuid(), parent.getId(), parent.getUuid()));\n dao.updateTransferTask(topTask);\n }\n }\n catch (DAOException ex)\n {\n log.error(LibUtils.getMsg(\"FILES_TXFR_SVC_ERR1\", parent.getTenantId(), parent.getUsername(),\n \"doParentErrorStepOne\", parent.getId(), parent.getTag(), parent.getUuid(), ex.getMessage()), ex);\n }\n return Mono.just(parent);\n }",
"@Override\r\n public FlowState call() {\r\n // TODO: We should not need? to pass the flowState because this flow is already known (reapplying same values???)\r\n FlowState flowState = getFlowState();\r\n if ( flowState == null ) {\r\n throw new FlowException(\"No flowState with id:\", getExistingFlowStateLookupKey());\r\n } else {\r\n return getFlowManagementWithCheck().continueFlowState(getExistingFlowStateLookupKey(), true, this.getInitialFlowState());\r\n }\r\n }",
"@Override // kotlinx.coroutines.flow.FlowCollector\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1\n if (r0 == 0) goto L_0x0013\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.label = r1\n goto L_0x0018\n L_0x0013:\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1\n r0.<init>(r10)\n L_0x0018:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x005e\n if (r2 == r4) goto L_0x0044\n if (r2 != r3) goto L_0x003c\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r8 = r0.L$4\n kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8\n java.lang.Object r8 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r8\n java.lang.Object r8 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r8\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x009b\n L_0x003c:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.String r9 = \"call to 'resume' before 'invoke' with coroutine\"\n r8.<init>(r9)\n throw r8\n L_0x0044:\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r9 = r0.L$5\n java.lang.Object r2 = r0.L$4\n kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2\n java.lang.Object r4 = r0.L$3\n java.lang.Object r5 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r5 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r5\n java.lang.Object r6 = r0.L$1\n java.lang.Object r7 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r7 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r7\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0084\n L_0x005e:\n kotlin.ResultKt.throwOnFailure(r10)\n kotlinx.coroutines.flow.FlowCollector r10 = kotlinx.coroutines.flow.FlowCollector.this\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1 r2 = r2\n kotlin.jvm.functions.Function2 r2 = r2.$action$inlined\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r0\n r0.L$3 = r9\n r0.L$4 = r0\n r0.L$5 = r9\n r0.L$6 = r10\n r0.label = r4\n java.lang.Object r2 = r2.invoke(r9, r0)\n if (r2 != r1) goto L_0x007e\n return r1\n L_0x007e:\n r7 = r8\n r4 = r9\n r6 = r4\n r8 = r10\n r2 = r0\n r5 = r2\n L_0x0084:\n r0.L$0 = r7\n r0.L$1 = r6\n r0.L$2 = r5\n r0.L$3 = r4\n r0.L$4 = r2\n r0.L$5 = r9\n r0.L$6 = r8\n r0.label = r3\n java.lang.Object r10 = r8.emit(r9, r0)\n if (r10 != r1) goto L_0x009b\n return r1\n L_0x009b:\n return r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private void fixControlFlow() {\n\t\t// fix broken control flow for phi and catch instructions by removing them\n\t\tfinal Set<SDGNode> toRemove = HashSetFactory.make();\n\n\t\t// add return edges to calls\n\t\tfor (SDGNode node : sdg.vertexSet()) {\n\t\t\tif (node.kind == edu.kit.joana.ifc.sdg.graph.SDGNode.Kind.CALL) {\n\t\t\t\tSet<SDGEdge> out = sdg.outgoingEdgesOf(node);\n\t\t\t\tSet<SDGNode> succs = HashSetFactory.make();\n\t\t\t\tSet<SDGNode> calls = HashSetFactory.make();\n\t\t\t\tfor (SDGEdge edge : out) {\n\t\t\t\t\tif (edge.getKind() == edu.kit.joana.ifc.sdg.graph.SDGEdge.Kind.CALL) {\n\t\t\t\t\t\t// add possible target\n\t\t\t\t\t\tcalls.add(edge.getTarget());\n\t\t\t\t\t} else if (edge.getKind() == edu.kit.joana.ifc.sdg.graph.SDGEdge.Kind.CONTROL_FLOW) {\n\t\t\t\t\t\t// add controlflow succs\n\t\t\t\t\t\tsuccs.add(edge.getTarget());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (SDGNode entry : calls) {\n\t\t\t\t\tassert (entry.getKind() == edu.kit.joana.ifc.sdg.graph.SDGNode.Kind.ENTRY);\n\n\t\t\t\t\tSDGNode exit = findExit(entry);\n\n\t\t\t\t\tfor (SDGNode succ : succs) {\n\t\t\t\t\t\taddReturnFlow(exit, succ);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (SDGNode node : sdg.vertexSet()) {\n\t\t\tboolean brokenControlFlow = false;\n\n\t\t\tif (node.kind != edu.kit.joana.ifc.sdg.graph.SDGNode.Kind.EXIT) {\n\t\t\t\tboolean hasOutFlow = false;\n\t\t\t\tfor (final SDGEdge edge : sdg.outgoingEdgesOf(node)) {\n\t\t\t\t\tif (edge.getKind() == edu.kit.joana.ifc.sdg.graph.SDGEdge.Kind.CONTROL_FLOW) {\n\t\t\t\t\t\thasOutFlow = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbrokenControlFlow |= !hasOutFlow;\n\n//\t\t\t\tif (!hasOutFlow) {\n//\t\t\t\t\tSystem.err.println(\"No outflow for \" + node.getKind() + \": \" + node.getLabel());\n//\t\t\t\t\taddControlFlow(node, pdgExit);\n//\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (node.kind != edu.kit.joana.ifc.sdg.graph.SDGNode.Kind.ENTRY) {\n\t\t\t\tboolean hasInFlow = false;\n\t\t\t\tfor (final SDGEdge edge : sdg.incomingEdgesOf(node)) {\n\t\t\t\t\tif (edge.getKind() == edu.kit.joana.ifc.sdg.graph.SDGEdge.Kind.CONTROL_FLOW) {\n\t\t\t\t\t\thasInFlow = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbrokenControlFlow |= !hasInFlow;\n\n//\t\t\t\tif (!hasInFlow) {\n//\t\t\t\t\tSystem.err.println(\"No inflow for \" + node.getKind() + \": \" + node.getLabel());\n//\t\t\t\t\taddControlFlow(pdgEntry, node);\n//\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (brokenControlFlow) {\n\t\t\t\t// delete node and restructure edges later\n\t\t\t\ttoRemove.add(node);\n\t\t\t}\n\t\t}\n\n\t\tfor (final SDGNode node : toRemove) {\n\t\t\tremoveNode(node);\n\t\t}\n\t}",
"private void adjustFlows() {\n //Start at the sink\n int akt = sink;\n //Go back the path we found\n while (!nodes[akt].lastEdge.equals(emptyEdge)) {\n Edge e = nodes[akt].lastEdge;\n //and adjust the flow of the edges accordingly\n if (akt == e.to) {\n e.flow++;\n akt = e.from;\n } else {\n e.flow--;\n akt = e.to;\n }\n }\n }",
"public void rollbackPartitionedStep() throws Exception;",
"private void fail(Throwable e)\n {\n for (final WritableFrameChannel outputChannel : outputChannels) {\n try {\n outputChannel.fail(e);\n }\n catch (Throwable e1) {\n e.addSuppressed(e1);\n }\n }\n\n try {\n doProcessorCleanup();\n }\n catch (Throwable e1) {\n e.addSuppressed(e1);\n }\n\n finished.setException(e);\n }",
"public interface ImportTransform extends Serializable {\n\n /**\n * Should this transform stop on an error.\n * @todo example of why it shouldn't?\n * @param e The error in question\n * @return true if processing should stop, false otherwise\n */\n boolean stopOnError(Exception e);\n \n /**\n * Initialize any transient or temporary state.\n * This should be called prior to invoking any other methods on the transform.\n */\n void init();\n}",
"@Override\n public Object next() {\n if (handler != null) {\n target = handler.transform(target);\n\n final Class<? extends Object> targetClass = target.getClass();\n if (handledClassNames.contains(targetClass)) {\n // Avoid infinite loops\n throw new RuntimeException(\n \"Loop in security target transformation detected: \"\n + handledClassNames.toString()\n + \" attempting to then go back to \"\n + targetClass.getName()\n + \" again\");\n } else {\n handledClassNames.add(targetClass);\n }\n }\n return target;\n }",
"void onError(String errorMessage, FlatChain chain);",
"protected abstract TransformFunction nextFunction();",
"@Override\n protected void flowThrough(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n Set<FlowAbstraction> taintsOfThisIteration = new HashSet<FlowAbstraction>();\n // several different checks for taints\n checkGetSecret(in, d, taintsOfThisIteration);\n checkTaintOverwrite(in, d, taintsOfThisIteration);\n checkAssignmentOfTaintedLocal(in, d, taintsOfThisIteration);\n checkAssignmentOfTaintedClassField(in, d, taintsOfThisIteration);\n checkLeak(in, d, taintsOfThisIteration);\n checkTaintedOperand(in, d, taintsOfThisIteration);\n\n // merge previously found taints with the taints of the current iteration\n merge(in, taintsOfThisIteration, out);\n flowThroughCount++;\n }",
"private void backpropagate(double[] error) {\n for (int i = 0; i < network.getLayers()[network.getLayers().length - 1].getSize(); i++) {\n Sigmoid n = network.getLayer(network.getSize() - 1).getNode(i);\n n.setSignalError(error[i] * n.getOutput() * (1 - n.getOutput()));\n }\n\n // sets all the signal errors for every neuron on all the hidden layers\n for (int layer = network.getSize() - 2; layer > 0; layer--) {\n for (int node = 0; node < network.getLayer(layer).getSize(); node++) {\n double signalError = 0;\n for (int nodeInPrevLayer = 0; nodeInPrevLayer < network.getLayer(layer + 1).getSize(); nodeInPrevLayer++) {\n signalError = signalError + (network.getLayer(layer + 1).getNode(nodeInPrevLayer).getSignalError() * network.getLayer(layer + 1).getNode(nodeInPrevLayer).getWeight(node));\n }\n double output = network.getLayer(layer).getNode(node).getOutput();\n network.getLayer(layer).getNode(node).setSignalError(signalError * output * (1 - output));\n }\n }\n\n }",
"public T caseFlow(Flow object)\r\n {\r\n return null;\r\n }",
"void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}",
"public void addResidualFlowTo(int vertex, double delta) {\n\t\t\tif (vertex == v)\n\t\t\t\tflow -= delta; // backward edge\n\t\t\telse if (vertex == w)\n\t\t\t\tflow += delta; // forward edge\n\t\t\telse\n\t\t\t\tthrow new IllegalArgumentException(\"Illegal endpoint\");\n\t\t\tif (Double.isNaN(delta))\n\t\t\t\tthrow new IllegalArgumentException(\"Change in flow = NaN\");\n\t\t\tif (!(flow >= 0.0))\n\t\t\t\tthrow new IllegalArgumentException(\"Flow is negative\");\n\t\t\tif (!(flow <= capacity))\n\t\t\t\tthrow new IllegalArgumentException(\"Flow exceeds capacity\");\n\t\t}",
"public interface Transformers {\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the mapping value to that\n * success, otherwise returning the original failure.\n */\n static <IS, OS, F> Function<Result<IS, F>, Result<OS, F>> onSuccess(Function<IS, OS> mappingFunction) {\n return attempt(mappingFunction.andThen(Result::success));\n }\n\n /**\n * Returns a Consumer which takes a Result and, if it's a Success, passes it to the provided consumer.\n */\n static <S, F> ConsumableFunction<Result<S, F>> onSuccessDo(Consumer<S> consumer) {\n return r -> r.then(onSuccess(peek(consumer)));\n }\n\n /**\n * Returns a function which takes a Result with an Exception failure type and, if it's a success, applies\n * the mapping value to that success, returning a new success unless an exception is thrown, when it\n * returns a failure of that exception. If the input was a failure, it returns that failure.\n */\n static <IS, OS, X extends Exception> Function<Result<IS, Exception>, Result<OS, Exception>> onSuccessTry(\n ThrowingLambdas.ThrowingFunction<IS, OS, X> throwingFunction\n ) {\n return attempt(tryTo(throwingFunction));\n }\n\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the mapping value\n * to that success, returning a new success unless an exception is thrown, when it\n * returns a failure of the exception-mapper applied to the exception.\n * If the input was a failure, it returns that failure.\n */\n static <IS, OS, F, X extends Exception> Function<Result<IS, F>, Result<OS, F>> onSuccessTry(\n ThrowingLambdas.ThrowingFunction<IS, OS, X> throwingFunction,\n Function<Exception, F> exceptionMapper\n ) {\n return attempt(tryTo(throwingFunction).andThen(onFailure(exceptionMapper)));\n }\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the provided function\n * to that success - generating a new Result - and returns that Result. Otherwise, returns the\n * original failure.\n */\n static <IS, OS, F, OF extends F> Function<Result<IS, F>, Result<OS, F>> attempt(Function<IS, Result<OS, OF>> mappingFunction) {\n return r -> r.either(mappingFunction.andThen(onFailure((Function<OF, F>) (fv) -> HigherOrderFunctions.upcast(fv))), Result::failure);\n }\n\n /**\n * Returns a function which takes a Result and, if it's a failure, applies the provided function\n * to that failure. Otherwise, returns the original success.\n */\n static <S, IF, OF> Function<Result<S, IF>, Result<S, OF>> onFailure(Function<IF, OF> mappingFunction) {\n return recover(mappingFunction.andThen(Result::failure));\n }\n\n /**\n * Returns a consumer which takes a Result and, if it's a failure, passes it to the provided consumer\n */\n static <S, F> ConsumableFunction<Result<S, F>> onFailureDo(Consumer<F> consumer) {\n return r -> r.then(onFailure(peek(consumer)));\n }\n\n /**\n * Takes a Result of a Stream as a success or a single failure, and returns a Stream of Results\n * containing all the successes, or the single failure.\n *\n * The main use-case for this is to follow mapping over tryTo() on a function which was designed to\n * be flat-mapped over.\n */\n static <S, F> Function<Result<Stream<S>, F>, Stream<Result<S, F>>> unwrapSuccesses() {\n return r -> r.either(\n successes -> successes.map(Result::success),\n failure -> Stream.of(Result.failure(failure))\n );\n }\n\n /**\n * Returns a function which takes a Result and, if it's a failure, applies the provided function to\n * that failure - generating a new Result - and returns that Result. Otherwise, return the original\n * success.\n */\n static <S, IF, OF, OS extends S> Function<Result<S, IF>, Result<S, OF>> recover(Function<IF, Result<OS, OF>> recoveryFunction) {\n return r -> r.either(Result::success, recoveryFunction.andThen(onSuccess((Function<OS, S>) (fv) -> HigherOrderFunctions.upcast(fv))));\n }\n\n /**\n * Returns a function which takes a Result, and converts failures to successes and vice versa.\n */\n static <S, F> Function<Result<S, F>, Result<F, S>> invert() {\n return r -> r.either(Result::failure, Result::success);\n }\n\n /**\n * Returns a function which takes a Result whose success type is itself a Result, and merges the failure cases\n * so we have a flat Result.\n *\n * Note that *most of the time* this shouldn't be required, and indicates using onSuccess() when attempt() would\n * be more appropriate.\n *\n * There are some situations though where we do end up with constructs like this: one example\n * is when a function which returns a Result can throw exceptions (eg, when a Result-returning handler is passed\n * into a database context). Passing that call into a tryTo() will yield a success type of the inner Result, wrapped\n * in an outer Result for the tryTo().\n *\n * If the failure types of the inner and outer failure types do not match, you'll need to either first convert the\n * failures of the outer Result or use the overload which maps the failures of the inner Result.\n */\n static <S, F> Function<Result<Result<S, F>, F>, Result<S, F>> mergeFailures() {\n return attempt(i -> i);\n }\n\n /**\n * Returns a function which takes a Result whose success type is itself a Result, and merges the failure cases\n * so we have a flat Result.\n *\n * Note that *most of the time* this shouldn't be required, and indicates using onSuccess() when attempt() would\n * be more appropriate.\n *\n * There are some situations though where we do end up with constructs like this: one example\n * is when a function which returns a Result can throw exceptions (eg, when a Result-returning handler is passed\n * into a database context). Passing that call into a tryTo() will yield a success type of the inner Result, wrapped\n * in an outer Result for the tryTo().\n *\n * In these cases, it's more likely the inner failure type is domain-specific, so the default approach is to map the\n * outer failure to the inner failure and then merge.\n */\n static <S, F1, F2> Function<Result<Result<S, F1>, F2>, Result<S, F1>> mergeFailures(Function<F2, F1> failureMapper) {\n return r -> r.then(onFailure(failureMapper)).then(mergeFailures());\n }\n}",
"public interface ChainedNodeStepResult extends NodeStepResult{\n NodeStepResult getOriginal();\n}",
"void checkPipelineErrorWithPrevious(MetadataRepository metadataRepository);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: | default @org.jetbrains.annotations.Nullable java.util.List<java.lang.String> getFinalizers() {
return null;
} | [
"public void removeFinalizers() {\n Finalizer finalizer = (Finalizer)fastGetInternalVariable(\"__finalizer__\");\n if (finalizer != null) {\n finalizer.removeFinalizers();\n removeInternalVariable(\"__finalizer__\");\n getRuntime().removeFinalizer(finalizer);\n }\n }",
"public void finalize() {\n//$Section=DefaultDestructor$ID=417A49F50290$Preserve=yes\n//$Section=DefaultDestructor$ID=417A49F50290$Preserve=no\n }",
"@PortedFrom(file = \"Taxonomy.h\", name = \"deFinalise\")\n public void deFinalise() {\n boolean upDirection = true;\n TaxonomyVertex bot = getBottomVertex();\n for (TaxonomyVertex p : bot.neigh(upDirection)) {\n p.removeLink(!upDirection, bot);\n }\n bot.clearLinks(upDirection);\n willInsertIntoTaxonomy = true; // it's possible again to add entries\n }",
"protected void finalize () {\n children.finalizedChildrenArray ();\n }",
"public void Clean()\n\t{\n\t\tstorage.clear();\n\t}",
"public void finalize() {\n }",
"boolean isFinalizer()\n {\n // added for version 2.0.3\n return name.equals(\"finalize\") && signature.equals(\"()V\");\n }",
"public static void cleanUp() {\n\t\tHashDecay.stopAll();\n\t\tSystem.gc();\n\t}",
"private CSCollectedGarbage() {}",
"public void unsetValues()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VALUES$40, 0);\n }\n }",
"public void destroy(){\n barriers.removeAll(toRemove);\n invaders.removeAll(toRemove);\n projectiles.removeAll(toRemove);\n toRemove.clear();\n }",
"public void cleanup() {\n if (predefinedtagstoreused && ! this.tagvaluesLoaded) {\n if (!predefinedtagstoragefile.exists() && !predefinedtagstoragefile.isDirectory() && !predefinedtagstoragefile.isFile()) {\n try {\n FileOutputStream fileOut = new FileOutputStream(predefinedtagstoragefile);\n ObjectOutputStream oos = new ObjectOutputStream(fileOut);\n oos.writeObject(usedTags);\n }\n catch (Exception e) {\n System.err.println(\"ERROR: Can't write tagvalues to predefinedtagsotragefile \" + predefinedtagstoragefile.getAbsolutePath() + \".\");\n e.printStackTrace();\n }\n }\n else {\n System.err.println(\"ERROR: Can't write tagvalues to predefinedtagsotragefile \" + predefinedtagstoragefile.getAbsolutePath() + \".\");\n }\n }\n }",
"public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}",
"public native void finalise();",
"public void destroySecrets() {\n clearFileContent();\n _destroyed = true;\n }",
"public void clean() {\r\n\t\tstreams = new LinkedList<Stream>();\r\n\t}",
"public void destroy(){\n \twheels.destroy();\n \tshooter.destroy();\n \tintake.destroy();\n \tgyro.destroy();\n \taccel.destroy();\n \tcompressor.free();\n }",
"public void finalize() {\n\t\t--useCount;\n\t}",
"public void clearStorage();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the default speed at which this vehicle travels when climbing (m/sec) | WorldSpeed getDefaultClimbSpeed(); | [
"public Double getDrivingSpeed() {\n Segment seg = this.getFirst();\n if (seg.isOccupied()) {\n //System.out.println(\"getTailingSpeed: \" + seg.getTailingSpeed());\n return seg.getTailingSpeed();\n }\n //System.out.println(\"getSpeed: \" + seg.getSpeed());\n return seg.getPostedSpeed();\n }",
"void setDefaultClimbSpeed(WorldSpeed defaultClimbSpeed_m_sec);",
"private double getElevatorSpeed()\n {\n // if second speed is toggled use second instead of main speed\n if (useSecondSpeed)\n {\n return mSecondSpeed * mDirection * -1;\n }\n else\n { // else just use main speed\n return mSpeed * mDirection * -1;\n }\n }",
"double getSpeedLimit();",
"public double getSpeed() {\r\n\t\treturn travelSpeed.getSpeed();\r\n\t}",
"double getSpeed();",
"public int getSpeed() {\n\t\treturn carriage.getSpeed();\n\t}",
"public int getEnemyShipDefaultSpeed(){\r\n\t\treturn DEFAULT_SPEED;\r\n\t}",
"public int getCurrentSpeed(){\n\t\treturn speed;\n\t}",
"public double getCurrentSpeed(){\r\n return speed;\r\n }",
"public double getSpeed() {\n\t\n\t\treturn maxSpeed;\n\t}",
"public int getSpeed()\n {\n return (int) (getMovement().getLength() * 10);\n }",
"public abstract float getMinSpeed();",
"Vector getSpeed();",
"public double getMaxSpeed(){\n return maxSpeed;\n }",
"int getSpeed();",
"public double getRecommendedSpeed();",
"public float getSpeed() {\n if ( MAXFUEL == 0 ) {\n throw new IllegalArgumentException(\"Zero division at SpaceStation.getSpeed(): MAXFUEL cannot be zero\");\n //return 0f;\n } else\n return fuelUnits / MAXFUEL;\n }",
"public int getDefaultEnemySpeed(){\n\t\t\treturn DEFAULT_SPEED;\n\t\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Factory method to create a new persistent prepared transaction store for XA recovery | TransactionStore createTransactionStore() throws IOException; | [
"Store createStore();",
"public interface PersistenceAdapter extends Service {\n\n /**\n * Returns a set of all the\n * {@link org.apache.activemq.command.ActiveMQDestination} objects that the\n * persistence store is aware exist.\n *\n * @return active destinations\n */\n Set<ActiveMQDestination> getDestinations();\n\n /**\n * Factory method to create a new queue message store with the given\n * destination name\n *\n * @param destination\n * @return the message store\n * @throws IOException\n */\n MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException;\n\n /**\n * Factory method to create a new topic message store with the given\n * destination name\n *\n * @param destination\n * @return the topic message store\n * @throws IOException\n */\n TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;\n\n /**\n * Creates and returns a new Job Scheduler store instance.\n *\n * @return a new JobSchedulerStore instance if this Persistence adapter provides its own.\n *\n * @throws IOException If an error occurs while creating the new JobSchedulerStore.\n * @throws UnsupportedOperationException If this adapter does not provide its own\n * scheduler store implementation.\n */\n JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException;\n\n /**\n * Cleanup method to remove any state associated with the given destination.\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeQueueMessageStore(ActiveMQQueue destination);\n\n /**\n * Cleanup method to remove any state associated with the given destination\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeTopicMessageStore(ActiveMQTopic destination);\n\n /**\n * Factory method to create a new persistent prepared transaction store for\n * XA recovery\n *\n * @return transaction store\n * @throws IOException\n */\n TransactionStore createTransactionStore() throws IOException;\n\n /**\n * This method starts a transaction on the persistent storage - which is\n * nothing to do with JMS or XA transactions - its purely a mechanism to\n * perform multiple writes to a persistent store in 1 transaction as a\n * performance optimization.\n * <p/>\n * Typically one transaction will require one disk synchronization point and\n * so for real high performance its usually faster to perform many writes\n * within the same transaction to minimize latency caused by disk\n * synchronization. This is especially true when using tools like Berkeley\n * Db or embedded JDBC servers.\n *\n * @param context\n * @throws IOException\n */\n void beginTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Commit a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void commitTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Rollback a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void rollbackTransaction(ConnectionContext context) throws IOException;\n\n /**\n *\n * @return last broker sequence\n * @throws IOException\n */\n long getLastMessageBrokerSequenceId() throws IOException;\n\n /**\n * Delete's all the messages in the persistent store.\n *\n * @throws IOException\n */\n void deleteAllMessages() throws IOException;\n\n /**\n * @param usageManager\n * The UsageManager that is controlling the broker's memory\n * usage.\n */\n void setUsageManager(SystemUsage usageManager);\n\n /**\n * Set the name of the broker using the adapter\n *\n * @param brokerName\n */\n void setBrokerName(String brokerName);\n\n /**\n * Set the directory where any data files should be created\n *\n * @param dir\n */\n void setDirectory(File dir);\n\n /**\n * @return the directory used by the persistence adaptor\n */\n File getDirectory();\n\n /**\n * checkpoint any\n *\n * @param cleanup\n * @throws IOException\n *\n */\n void checkpoint(boolean cleanup) throws IOException;\n\n /**\n * A hint to return the size of the store on disk\n *\n * @return disk space used in bytes of 0 if not implemented\n */\n long size();\n\n /**\n * return the last stored producer sequenceId for this producer Id used to\n * suppress duplicate sends on failover reconnect at the transport when a\n * reconnect occurs\n *\n * @param id\n * the producerId to find a sequenceId for\n * @return the last stored sequence id or -1 if no suppression needed\n */\n long getLastProducerSequenceId(ProducerId id) throws IOException;\n\n void allowIOResumption();\n}",
"DatastoreTransaction newTransaction();",
"public interface TransactionStore {\n /**\n * Returns an identification number, which can be used as \n * <code>applicationID</code> in the other methods. During installation\n * each payment supporting <code>MIDletSuite</code> should get such number \n * and have it stored. From that point this number will identify that \n * <code>MIDletSuite</code> to the transaction store.\n *\n * @return the payment application id\n * @throws IOException indicates a storage failure\n */\n public int getNextApplicationID() \n throws IOException;\n \n /**\n * Reserves space for the given transaction in the store. It should be \n * called before any call to the <code>addTransaction</code> method to \n * ensure that the <code>addTransaction</code> method won't fail later\n * (when it is inappropriate) due to full store. This method can apply some \n * store policies, like enforcing a maximum number of missed transactions\n * per <code>MIDletSuite</code>.\n *\n * @param applicationID the application id\n * @param transaction the transaction\n * @return an unique ID created for the transaction\n * @throws IOException indicates that the store is full or won't accept any\n * further transaction records from that application\n */\n public int reserve(int applicationID, Transaction transaction) \n throws IOException;\n \n /**\n * Adds the given transaction to the store. It returns a new transaction \n * record for the transaction. This transaction record must have its \n * <code>wasMissed</code> flag cleared.\n *\n * @param transaction the transaction\n * @return the new transaction record\n * @throws IOException indicates a storage failure\n */\n public TransactionRecord addTransaction(Transaction transaction) \n throws IOException;\n \n /**\n * It returns <code>true</code> if the <code>setDelivered</code> method \n * was called for the given transaction ID.\n *\n * @param transactionID the transaction ID\n * @return true if the <code>setDelivered</code> method \n * was called for the given transaction ID\n *\n * @throws IOException indicates a storage failure\n */\n public boolean wasDelivered(int transactionID) throws IOException;\n\n /**\n * This method is called after the application is successfully notified \n * about the transaction with the given transaction ID.\n *\n * @param transactionID the transaction ID\n * @throws IOException indicates a storage failure\n */\n public void setDelivered(int transactionID) \n throws IOException;\n \n /**\n * Returns an array of the missed transaction records for the given \n * application ID. The transaction records are returned in the order in\n * which they have been added to the store. Each transaction record must\n * have its <code>wasMissed</code> flag set.\n *\n * @param applicationID the application ID\n * @return the array of the missed transaction records\n * @throws IOException indicates a storage failure\n */\n public TransactionRecord[] getMissedTransactions(int applicationID)\n throws IOException;\n \n /**\n * Returns an array of the past transaction records for the given \n * application ID. The transaction record are returned in the reverse order\n * as they have been added to the store (most recent first). Each \n * transaction record must have its <code>wasMissed</code> flag cleared.\n *\n * @param applicationID the application ID\n * @return the array of the missed transaction records\n * @throws IOException indicates a storage failure\n */\n public TransactionRecord[] getPassedTransactions(int applicationID)\n throws IOException;\n\n /**\n * Returns the size which is used in the store by the application of the \n * given application ID. This size doesn't include the size of the passed\n * transactions (it includes only the part of the store which is \n * removed/uninstalled by the <code>removeApplicationRecords</code> method).\n *\n * @param applicationID the application ID\n * @return the size used by the application\n * @throws IOException indicates a storage failure\n */\n public int getSizeUsedByApplication(int applicationID)\n throws IOException;\n \n /**\n * Removes the missed records used by the application of the given \n * application ID. This is to be used, when the MIDlet suite is uninstalled.\n *\n * @param applicationID the application ID\n * @throws IOException indicates a storage failure\n */\n public void removeApplicationRecords(int applicationID)\n throws IOException;\n\n /**\n * Removes all transaction records from the store. This is a helper method\n * which is used in test suites to get clean state before test execution.\n *\n * @throws IOException indicates a storage failure\n */\n public void cleanUp() throws IOException;\n}",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"protected abstract S mkStore();",
"TransactionTemplate createTransactionTemplate();",
"TransactionalContext newTransactionalContext();",
"public RawTransaction startInternalTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException;",
"public void createTransaction(Transaction trans);",
"public RawTransaction startTransaction(\n RawStoreFactory rsf,\n ContextManager contextMgr,\n String transName)\n throws StandardException;",
"protected abstract Transaction createAndAdd();",
"Transaction newTransaction();",
"Transaction newTransaction(TransactionOptions options);",
"StoreProvider<X> create(Y y);",
"private BaseLocalTransaction createLocalTransaction(String transId) {\n BaseLocalTransaction baseLocalTransaction;\n try {\n baseLocalTransaction = localTransactionConstructor.newInstance(transId, this);\n } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n BaseLocalTransaction.addLocalTransaction(baseLocalTransaction);\n return baseLocalTransaction;\n }",
"public interface IRDBMSDataStore\r\n\textends IDataStore {\r\n\t\r\n\t/**\r\n\t * Begins a transaction on this connection\r\n\t * Returns an Unique ID as the Transaction ID - this key is used to \r\n\t * manage the transactions\r\n\t * If a transaction is in progress returns NULL value\r\n\t * \r\n\t * @return\r\n\t * @throws DSPException\r\n\t */\r\n\tpublic String beginTransaction()\r\n\t\tthrows DSPException;\r\n\t\r\n\t/**\r\n\t * Commits a transaction on this connection\r\n\t * A transaction can be committed by only the caller/owner who \r\n\t * begin the transaction. The transaction id identifies the owner\r\n\t * \r\n\t * A commit by the non-owner or with invalid transaction id, logs\r\n\t * a warning message\r\n\t * \r\n\t * @param transactionId\r\n\t * @return\r\n\t * @throws DSPException\r\n\t */\r\n\tpublic boolean commitTransaction(String transactionId)\r\n\t\tthrows DSPException;\r\n\t\r\n\t/**\r\n\t * Roll back a transaction on this connection\r\n\t * A transaction can be rolled back by only the caller/owner who \r\n\t * begin the transaction. The transaction id identifies the owner\r\n\t * \r\n\t * A roll back by the non-owner or with invalid transaction id, logs\r\n\t * a warning message\r\n\t * \r\n\t * @param transactionId\r\n\t * @return\r\n\t * @throws DSPException\r\n\t */\r\n\tpublic boolean rollbackTransaction(String transactionId)\r\n\t\tthrows DSPException;\r\n\t\r\n\t/**\r\n\t * Creates a new PreparedStatement instance for this connection\r\n\t * \r\n\t * @param sql\r\n\t * @return\r\n\t * @throws SQLException \r\n\t * @throws DSPException \r\n\t */\r\n\tpublic PreparedStatement createPreparedStatement(String sql)\r\n\t\tthrows SQLException, DSPException;\r\n\t\r\n\t/**\r\n\t * Creates a new PreparedStatement instance for this connection\r\n\t * \r\n\t * @param sql\r\n\t * @param autoGeneratedKeys\r\n\t * @return\r\n\t * @throws SQLException\r\n\t * @throws DSPException \r\n\t */\r\n\tpublic PreparedStatement createPreparedStatement(String sql, int autoGeneratedKeys)\r\n\t\tthrows SQLException, DSPException;\r\n\t\r\n\t/**\r\n\t * Creates a new PreparedStatement instance for this connection\r\n\t * \r\n\t * @param sql\r\n\t * @param resultSetType\r\n\t * @param resultSetConcurrency\r\n\t * @return\r\n\t * @throws SQLException \r\n\t * @throws DSPException \r\n\t */\r\n\tpublic PreparedStatement createPreparedStatement(String sql, int resultSetType, int resultSetConcurrency)\r\n\t\tthrows SQLException, DSPException;\r\n\t\r\n\t/**\r\n\t * Creates a new Statement instance for this connection\r\n\t * \r\n\t * @param resultSetType\r\n\t * @param resultSetConcurrency\r\n\t * @return\r\n\t * @throws SQLException\r\n\t * @throws DSPException \r\n\t */\r\n\tpublic Statement createStatement(int resultSetType, int resultSetConcurrency)\r\n\t\tthrows SQLException, DSPException;\r\n\t\r\n\tpublic CallableStatement createCallableStatement(String sql) throws SQLException, DSPException;\r\n}",
"public interface BackingStoreFactory {\n\n /**\n * This method is called to create a BackingStore that will store\n * <code>SimpleMetadata</code> or <code>CompositeMetadata</code>. This\n * class must be thread safe.\n * <p>\n * The factory must return a fully initialized and operational BackingStore\n * \n * @param type\n * The type of data that will be saved (using the\n * <code>save()</code> method in BackingStore) in the store.\n * @param appId\n * the application id for which this store is created\n * @param env\n * Properties that contain any additional configuration paramters\n * to successfully initialize and use the store.\n * @return a BackingStore. The returned BackingStore will be used only to\n * store data of type K. The returned BackingStore must be thread\n * safe.\n * @throws BackingStoreException\n * If the store could not be created\n */\n public <K extends Metadata> BackingStore<K> createBackingStore(\n Class<K> type, String appId, Properties env)\n throws BackingStoreException;\n\n /**\n * This method is called to store a set of BatchMetadata objects atomically.\n * The factory must return a fully initialized and operational\n * BatchBackingStore\n * <p>\n * The factory must return a fully initialized and operational\n * BatchBackingStore\n * \n * @param env\n * Properties that contain any additional configuration paramters\n * to successfully initialize and use the store.\n * @return A BatchBackingStore\n * @throws BackingStoreException\n * If the store could not be created\n */\n public BatchBackingStore createBatchBackingStore(Properties env)\n throws BackingStoreException;\n\n}",
"public interface IStoreFactory\n{\n String description();\n boolean supportsType(String type);\n IStore createStore();\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
updating salary for employee in DB and if salary got modified in database then in memory | public void updateEmployeeSalaryInDBThenInList(String name, double salary) throws CustomPayrollException {
int result = normalisedDBServiceObj.updateEmployeeData(name, salary);
if (result == 0) {
return;
}
Contact contact = this.getEmployeePayrollData(name);
if (contact != null)
contact.salary = salary;
} | [
"public void updateEmployee(Integer repId, double salary) {\n Session session = factory.openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n SalesRep employee = (SalesRep) session.get(SalesRep.class, repId);\n employee.setRepSalary(salary);\n session.update(employee);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n }",
"public Employee updateEmployee(Employee employee);",
"public HrCOperationSalary update(HrCOperationSalary entity);",
"public void updateEmployee(Employee employee);",
"@Test\r\n\tpublic void givenUpdatedSalaryWhenUpdatedUsingPreparedStatementShouldSyncWithDatabase() throws DataBaseException {\r\n\t\temployeeList = employeePayrollService.readData();\r\n\t\temployeePayrollService.updateData(\"Diya\", 2000000.00, statementType.PREPARED_STATEMENT);\r\n\t\tboolean result = employeePayrollService.check(employeeList, \"Diya\", 2000000.00);\r\n\t\tassertTrue(result);\r\n\t}",
"public void updateEmployee(Employee employee) throws SQLException;",
"public void update (Employee employee);",
"public int updateSalary(int id) {\n\t\t\tint count = em.createQuery(\"Update Employee set salary = (salary + (salary*0.1)) where id =\"+id).executeUpdate();\n\t\t\treturn count;\n\t\t}",
"void update(EmployeeDetail detail) throws DBException;",
"public void setSalary(double empSal) {\r\n salary = empSal;\r\n }",
"public void updateEmployeeDetails(EmployeeDetails employeeDetails);",
"Pgemployee update(Pgemployee pgemployee) throws EntityNotFoundException;",
"@PutMapping(\"/salary_employee\")\r\n public ResponseEntity<List<Employee>> update(@RequestParam(value = \"ratio\") float ratio, @RequestParam(value = \"employee_id\") Integer employee_id ) {\r\n try{\r\n if ((SecurityContextHolder.getContext().getAuthentication()) != null ) {\r\n AppUser userDetails = userRepository.findByUserName(SecurityContextHolder.getContext().getAuthentication().getName());\r\n // check if the user is an admin => only the admin can raise employee salary.\r\n if(userDetails.isAdmin()){\r\n // get employee by employee_id to update the salary\r\n Employee employeeToUpdate = employeeRepository.findById(employee_id).get();\r\n // calculate the new salary\r\n float newSalary = employeeToUpdate.getSalary() + employeeToUpdate.getSalary() * ratio;\r\n // update the employee data.\r\n employeeToUpdate.setSalary(newSalary);\r\n employeeToUpdate = employeeRepository.save(employeeToUpdate);\r\n return new ResponseEntity(employeeToUpdate, HttpStatus.OK);\r\n }\r\n }\r\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\r\n }catch (Exception ex) {\r\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\r\n }\r\n }",
"public void setEmplSalary(double salary) {\n this.emplSalary = salary;\n }",
"public void setSalary(double salary);",
"public void setSalary(double salary){\r\n this.salary = salary;\r\n }",
"public void setSalary(double salary) {\n this.salary = salary;\n }",
"void addOrUpdateEmployee(Employee employee);",
"public void setSalary (int newSalary) {\n if (joined == false) {\n this.salary = newSalary;\n }else{\n System.out.println(\"It is not possible to change the salary.\");\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new Entry object referencing the input key and associated value, and insert the entry into the dictionary. Return a reference to the new entry. Multiple entries with the same key (or even the same key and value) can coexist in the dictionary. This method should run in O(1) time if the number of collisions is small. | public Entry insert(Object key, Object value) {
resize();//only if it needs to.
Entry e = new Entry();
e.key = key;
e.value = value;
int i = compFunction(key.hashCode());
buckets[i].insertFront(e);
size++;
return e;
} | [
"public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_entry.key.hashCode()); //compresses key hash code\r\n if (hash_table[comp_hash] == null) { \r\n hash_table[comp_hash] = new DList();\r\n hash_table[comp_hash].insertFront(new_entry);\r\n } else {\r\n hash_table[comp_hash].insertFront(new_entry);\r\n }\r\n size++;\r\n return new_entry;\r\n }",
"public Entry insert(Object key, Object value) {\n // Replace the following line with your solution.\n int position;\n Entry newEntry = new Entry();\n newEntry.key = key;\n newEntry.value = value;\n position=compFunction(key.hashCode());\n table[position].insertBack(newEntry);\n return newEntry;\n }",
"public Entry insert(Object key, Object value) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n Entry entry = new Entry();\n entry.key = key;\n entry.value = value;\n\n defTable[index].insertFront(entry);\n size++;\n return entry;\n }",
"public Entry<K,V> insert(K key, V value);",
"public Entry<K,V> insert(K key, V value) {\n\tEntry entry = new Entry(key,value);\n\tint index = compFunction(key.hashCode());\n\tif (buckets[index] == null) {\n\t buckets[index] = new DLinkedList();\n\t}\n\tthis.buckets[index].insertBack(entry);\n\tthis.size++;\n\tif (((double)(size) / buckets.length) >= 0.75) {\n\t resize(2);\n\t}\n\treturn entry;\n }",
"@Override\n public V add(K key, V value) {\n if ((key == null) || (value == null)) throw new IllegalArgumentException(\"Cannot add null to a dictionary.\");\n int index = probe(key);\n if (table[index] == null || table[index].available) { //Entry not found\n table[index] = new Entry<>(key, value); //Add new entry at desired index via probe\n entries++;\n attemptResize(); //resize if load factor is too high\n return null;\n }\n V temp = table[index].value; //Entry found, replace the value\n table[index].value = value;\n return temp;\n }",
"public int insert( _key_ key, _val_ value );",
"private static <K, V> Map.@NotNull Entry<K, V> immutableEntry(final K key, final V value) {\n final Map<K, V> map;\n (map = new HashMap<>()).put(key, value);\n\n return map.entrySet().iterator().next();\n }",
"protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }",
"protected SafeHashMap.Entry<K, V> instantiateEntry()\n {\n return new Entry<>();\n }",
"public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}",
"ICacheEntry <K, V> newEntry (K k) throws CacheException;",
"@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic V put(K key, V value) {\n\t\t//calls findIndex which is O(log n)\n\t\t//in the case that an old entry is being replaced, only static actions follow\n\t\t//in the case a new entry is needed, the ArrayList.add() function must be called\n\t\t//this function is O(n) so this function is O(n)\n\t\t//depending on use, replacing entries could be more or less common, so it is not fair to say the expected complexity is O(log n)\n\t\t//but O(log n) will occur often in some use cases\n\t\t\n\t\tint n = findIndex(key);\n\t\tif (n < size() && key.compareTo( table.get(n).getKey()) == 0) {\n\t\t\tV temp = table.get(n).getValue();\n\t\t\ttable.get(n).setValue(value);\n\t\t\treturn temp;\n\t\t}\n\t\ttable.add(n, new mapEntry<K,V>(key,value));\n\t\treturn null;\n\t}",
"@Override\n public V put(K key, V value) {\n // TODO: Complete this method\n // hint: use chooseBucket to determine which bucket to place the pair in\n // hint: use rehash() to appropriately grow the hashmap if needed\n V oldValue = null;\n if (containsKey(key)) {\n oldValue = remove(key);\n }\n LinkedList<Entry> map = chooseBucket(key);\n map.add(new Entry(key, value));\n size++;\n\n // check if the number of elements per map exceeds the threshold\n if (size() > buckets.length * ALPHA) rehash(GROWTH_FACTOR);\n return oldValue;\n }",
"@Override\n\tpublic void insert(K key, V value) throws IllegalNullKeyException, DuplicateKeyException {\n\t\tif (key == null) {\n\t\t\tthrow new IllegalNullKeyException();\n\t\t} else if (this.contains(key)) {\n\t\t\tthrow new DuplicateKeyException();\n\t\t}\n\t\troot = insertHelper(key, value, root);\n\t\tnumKeys++;\n\n\t}",
"void addTransientEntry(K key, V value);",
"public Entry(K key, V value)\r\n\t\t{\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n @Override\n public V put(K key, V value) throws NullPointerException {\n if(key == null) throw new NullPointerException(\"Cannot insert null key.\");\n\n int hashIndex = hashFxn(key);\n\n\n V returnValue = null;\n \n //If no LL associated with index, add it\n if(hashTable[hashIndex] == null)\n hashTable[hashIndex] = (LinkedList<HashTable<K, V>.Node>) new LinkedList();\n else for (Node x : hashTable[hashIndex]){\n //Otherwise Identify if key is already in table, add and return old value if it is\n if (x.key.equals(key)){\n returnValue = x.value;\n x.setValue(value);\n dupEntries++;\n return returnValue;\n }\n }\n \n //Otherwise add new key and increment size\n hashTable[hashIndex].add(new Node(key, value));\n size++;\n \n //If load factor > max load factor then time to expand and reHash\n if (calcLF() > maxLoadFactor){\n \thashTable = reHash(hashTable);\n }\n return returnValue;\n }",
"public Entry<K,V> insert (K k, V v) throws ClaveInvalidaException\r\n\t{\r\n\t\tif (k == null)\r\n\t\t\tthrow new ClaveInvalidaException (\"La clave que está intentando utilizar es null.\");\r\n\t\tEntry<K,V> entry = new Entrada<K,V> (k,v);//To return.\r\n\t\tupHeap(heap.add(entry));//Se reconfigura la Cola dejando el elemento mínimo (máxima prioridad) en la cabeza de la Cola.\r\n\t\treturn entry;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the CA object class in the ldap instance | public String getCAObjectClass(){
return (String) data.get(CAOBJECTCLASS);
} | [
"private LDAPAttribute getObjectClassAttribute(String field) {\n\t\tfinal String lowCaseField = field.toLowerCase();\n\t\tif(lowCaseField.equals(\"o\")) {\n\t\t\treturn new LDAPAttribute(\"objectclass\", new String[] { \"top\", \"organization\" });\n\t\t} else if(lowCaseField.equals(\"ou\")) {\n\t\t\treturn new LDAPAttribute(\"objectclass\", new String[] { \"top\", \"organizationalUnit\" });\n\t\t} else {\n\t\t\tString msg = intres.getLocalizedMessage(\"publisher.ldapintermediatenotappropriate\", field);\n\t\t\tlog.warn(msg);\n\t\t\treturn new LDAPAttribute(\"objectclass\");\n\t\t}\n\t}",
"public LACClass getClazz()\n\t{\n\t\treturn instances.getClassByIndex(indexedClass);\n\t}",
"public String getUserObjectClass(){\n\t\treturn (String) data.get(USEROBJECTCLASS);\n\t}",
"public String getClasstype() {\n return classtype;\n }",
"public Class<?> getCloudObjectClass() {\n\t\treturn cloudObjectClass;\n\t}",
"Class getObjectIdClass(Class cls);",
"public Class getInstanceClass()\n {\n return _cl;\n }",
"Act getCDAType();",
"Class getDomainClass();",
"public String getCuacctCls() {\n return cuacctCls;\n }",
"public String getSignerCn() {\r\n try {\r\n X509Certificate signerCert = this.getSignerCert();\r\n String dn = signerCert.getSubjectX500Principal().getName();\r\n\r\n //System.out.println(\"getSignerCn\");\r\n //System.out.println(dn);\r\n String cn = null;\r\n try {\r\n LdapName ldapDn = new LdapName(dn);\r\n List<Rdn> rdns = ldapDn.getRdns();\r\n for(Rdn r : rdns) {\r\n //System.out.println(r.getType());\r\n //System.out.println(r.getValue());\r\n if(\"CN\".equals(r.getType())) {\r\n cn = r.getValue().toString();\r\n }\r\n }\r\n }\r\n catch(InvalidNameException e) {\r\n // TODO\r\n }\r\n\r\n return cn;\r\n }\r\n catch(Throwable t) {\r\n log.error(\"\",t);\r\n return null;\r\n }\r\n }",
"public String getObjectClass() {\n return objectClass;\n }",
"public abstract Class<? extends DObjectDAO> getDAOClass();",
"public String getObjectClass() {\n return objectClass;\n }",
"public String getCat_class() {\n\t\treturn cat_class;\n\t}",
"public Class getObjectClass() {\n return objectFactory.getClassForPath(Collections.emptyList());\n }",
"public void setCAObjectClass(String caobjectclass){\n\t\tdata.put(CAOBJECTCLASS, caobjectclass);\t\n\t}",
"public String getCollectionClass ();",
"public Class<? extends T> getDistanceObjectClass();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.