query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Choose the group in which the letter does not appear at all.
public Boolean categoryWithoutGuess(char guess) { CharSequence seqChar = new StringBuilder(1).append(guess); Boolean containsChar = false; for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) { String tester = entry1.getKey(); if (!tester.contains(seqChar)) { containsChar = true; possibleCategoryWithoutGuess = tester; } } return containsChar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getDefaultGroup();", "java.lang.String getGroup();", "default String getGroup() {\n return null;\n }", "@Override\n public boolean isGroup() {\n return false;\n }", "public int getGroup(char letter);", "public boolean setLightForGroupingUnassigned() {\n Log.i(tag, \"setLightForGroupingUnassigned\");\n if (this.groups.isEmpty()) {\n this.groups.add(new LinkedList());\n }\n if (this.lightForGrouping.getGroupNumber() == 0) {\n Log.i(tag, \"already unassigned, dont do anything\");\n } else {\n LinkedList<Light> groupToRemove = null;\n boolean afterFirstGroup = false;\n Iterator it = this.groups.iterator();\n while (it.hasNext()) {\n LinkedList<Light> group = (LinkedList) it.next();\n group.remove(this.lightForGrouping);\n if (afterFirstGroup && group.isEmpty()) {\n groupToRemove = group;\n }\n afterFirstGroup = true;\n }\n if (groupToRemove != null) {\n Log.i(tag, \"removed group \");\n this.groups.remove(groupToRemove);\n }\n this.lightForGrouping.setGroupName(\"unassigned\", false);\n this.lightForGrouping.setGroupNumber(0, false);\n if (!((LinkedList) this.groups.get(0)).isEmpty() && ((Light) ((LinkedList) this.groups.get(0)).get(0)).getGroupNumber() != 0) {\n this.groups.addFirst(new LinkedList());\n }\n if (this.lightForGrouping instanceof DreamScreen) {\n ((LinkedList) this.groups.getFirst()).addFirst(this.lightForGrouping);\n } else {\n ((LinkedList) this.groups.getFirst()).add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n this.broadcastingToGroup = false;\n setToolbarTitle();\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }", "public SymbolGroup getDefaultGroup() {\n return defaultGroup;\n }", "public String getGroup();", "private Set<String> getNonUserActivateableGroupsById(Collection<String> groupIds)\n {\n Set<String> result = New.set();\n for (String dgiId : groupIds)\n {\n DataGroupInfo dgi = DefaultDataGroupInfo.getKeyMap().getGroupForKey(dgiId);\n if (dgi != null && !dgi.userActivationStateControl())\n {\n result.add(dgiId);\n }\n }\n return result;\n }", "void remove(String group);", "GroupOpt getGroup();", "void unsetCapitalInKind();", "private int getCharacterGroup(char c){\n\t\t// Check to see which HashSet contains the character\n\t\tif ( GROUP1.contains( c ) ) {\n\t\t\treturn 1;\n\t\t} else if ( GROUP2.contains(c) ) {\n\t\t\treturn 2;\n\t\t} else if ( GROUP3.contains(c) ) {\n\t\t\treturn 3;\n\t\t} else if ( GROUP4.contains(c) ) {\n\t\t\treturn 4;\n\t\t} else if ( GROUP5.contains(c) ) {\n\t\t\treturn 5;\n\t\t} else if ( GROUP6.contains(c) ) {\n\t\t\treturn 6;\n\t\t} else if ( GROUP7.contains(c) ) {\n\t\t\treturn 7;\n\t\t} else if ( GROUP8.contains(c) ) {\n\t\t\treturn 8;\n\t\t}\n\t\t\n\t\t// Return -1 for any failed matchings \n\t\t//(this should not occur as all alphabetical characters have been declared in a HashSet)\n\t\treturn -1;\n\t}", "public ArrayList<String> getGroupNames() {\n ArrayList<String> temp = new ArrayList<String>();\n\n for (Map.Entry<String, Integer[]> entry : tutLabGroups.entrySet()) {\n if (entry.getKey().equals(\"_LEC\")) {\n continue;\n }\n\n temp.add(entry.getKey());\n }\n\n return temp;\n }", "private static XSParticleDecl getNonUnaryGroup(XSParticleDecl p) {\n/* 1004 */ if (p.fType == 1 || p.fType == 2)\n/* */ {\n/* 1006 */ return p;\n/* */ }\n/* 1008 */ if (p.fMinOccurs == 1 && p.fMaxOccurs == 1 && p.fValue != null && ((XSModelGroupImpl)p.fValue).fParticleCount == 1)\n/* */ {\n/* 1010 */ return getNonUnaryGroup(((XSModelGroupImpl)p.fValue).fParticles[0]);\n/* */ }\n/* 1012 */ return p;\n/* */ }", "private Set<String> filterOutNonUserActivateableGroupsById(Collection<String> groupIds)\n {\n Set<String> result = New.set();\n\n for (String dgiId : groupIds)\n {\n if (isUserActivationStateControl(dgiId))\n {\n DataGroupInfo dgi = DefaultDataGroupInfo.getKeyMap().getGroupForKey(dgiId);\n if (dgi == null || !dgi.hasChildren())\n {\n result.add(dgiId);\n }\n }\n }\n return result;\n }", "public void removeGroup(String name) {\n if(isGroup(name) == true) {\n /* Now remove the tab from the tabbedpain */\n tbMain.remove((JPanel)grouptabs.get(name));\n \n /* Remove the group from the hashmap */\n grouptabs.remove(name);\n }\n }", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void removeCharacterFromGroup(Character character) {\r\n\r\n\t\tgroup.removeCharacter(character);\r\n\t\tdetermineAndSetAGL(group);\r\n\t}", "private void clearGroupIndex() {\n bitField0_ &= ~0x00000001;\n groupIndex_ = 0;\n }", "public WildLetterTypeDialog() {\n selectionValues = new String[LetterType.values().length - 1];\n getAllLetterTypesButWildLetter();\n }", "@Override\n\tpublic Object getGroup(int groupPosition) {\n\t\treturn null;\n\t}", "protected Set<String> getDefaultActiveGroupIds()\n {\n Set<String> result = New.set();\n\n if (myDefaultActiveLayers != null)\n {\n result.addAll(myDefaultActiveLayers.getGroupIds());\n }\n return result;\n }", "public void setDefaultGroup(boolean defaultGroup);", "private void removeSpeciesUnmatching(int optionselected) {\n for (String s : speciesLeft) {\n if (!(criteriaList.get(currentCriteria).getOptionList().get(optionselected).getEntities().contains(s)))\n speciesLeft.remove(s);\n }\n }", "public void newGroup() {\n addGroup(null, true);\n }", "public void assertNotSelectedLabel(final String selectLocator, final String labelPattern);", "public int getGroup() throws StandardException;", "@Override\n\tpublic boolean removeChoice(String choice){\n\t\treturn false;\n\t}", "public String getAllowedToUseGroup() {\r\n return this.allowedToUseGroup;\r\n }", "@Override\n public CharMatcher negate() {\n return new Negated(this);\n }", "private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String group() { return group; }", "@Test\n @WithMockUhUser(username = \"iamtst06\")\n public void optOutTest() throws Exception {\n assertTrue(isInCompositeGrouping(GROUPING, tst[0], tst[5]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[5]));\n\n //tst[5] opts out of Grouping\n mapGSRs(API_BASE + GROUPING + \"/optOut\");\n }", "protected <E> String selectUnassignedVariable(CSP<E> csp, Assignment<E> assignment) {\r\n\t\tList<String> unassigned= new ArrayList<String>(); \r\n\t\tfor(String i:csp.variables){\r\n\t\t\tif(!assignment.containsKey(i)){\r\n\t\t\t\tunassigned.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tRandom random = new Random();\r\n\t\tint rand=random.nextInt(unassigned.size());\r\n\t\treturn unassigned.get(rand);\r\n\t}", "public void removeAllGroups() {\n Set groupset = grouptabs.keySet();\n Iterator groupsit = groupset.iterator();\n String groupname;\n \n /* Remove all panels from the JTabbedPane */\n while(groupsit.hasNext()) {\n groupname = (String)groupsit.next();\n // while((groupname = (String)groupsit.next()).equals(null) == false) {\n tbMain.remove((JPanel)grouptabs.get(groupname));\n }\n \n /* Now clear the HashMap */\n grouptabs.clear();\n \n }", "CharGroup getActive() { return act; }", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "Iterable<String> groups();", "public void ungroupSelectedFurniture() {\n List<HomeFurnitureGroup> movableSelectedFurnitureGroups = new ArrayList<HomeFurnitureGroup>(); \n for (Selectable item : this.home.getSelectedItems()) {\n if (item instanceof HomeFurnitureGroup) {\n HomeFurnitureGroup group = (HomeFurnitureGroup)item;\n if (isPieceOfFurnitureMovable(group)) {\n movableSelectedFurnitureGroups.add(group);\n }\n }\n } \n if (!movableSelectedFurnitureGroups.isEmpty()) {\n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture();\n final boolean oldBasePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n // Sort the groups in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>> groupsMap =\n new HashMap<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>>();\n int groupsCount = 0;\n for (HomeFurnitureGroup piece : movableSelectedFurnitureGroups) {\n HomeFurnitureGroup groupGroup = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n TreeMap<Integer, HomeFurnitureGroup> sortedMap = groupsMap.get(groupGroup);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomeFurnitureGroup>();\n groupsMap.put(groupGroup, sortedMap);\n }\n if (groupGroup == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(groupGroup.getFurniture().indexOf(piece), piece);\n }\n groupsCount++;\n }\n final HomeFurnitureGroup [] groups = new HomeFurnitureGroup [groupsCount]; \n final HomeFurnitureGroup [] groupsGroups = new HomeFurnitureGroup [groups.length];\n final int [] groupsIndex = new int [groups.length];\n final Level [] groupsLevels = new Level [groups.length];\n int i = 0;\n List<HomePieceOfFurniture> ungroupedPiecesList = new ArrayList<HomePieceOfFurniture>();\n List<Integer> ungroupedPiecesIndexList = new ArrayList<Integer>();\n List<HomeFurnitureGroup> ungroupedPiecesGroupsList = new ArrayList<HomeFurnitureGroup>();\n for (Map.Entry<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>> sortedMapEntry : groupsMap.entrySet()) {\n TreeMap<Integer, HomeFurnitureGroup> sortedMap = sortedMapEntry.getValue();\n int endIndex = sortedMap.lastKey() + 1 - sortedMap.size();\n for (Map.Entry<Integer, HomeFurnitureGroup> groupEntry : sortedMap.entrySet()) {\n HomeFurnitureGroup group = groupEntry.getValue();\n groups [i] = group;\n groupsGroups [i] = sortedMapEntry.getKey();\n groupsIndex [i] = groupEntry.getKey(); \n groupsLevels [i++] = group.getLevel();\n for (HomePieceOfFurniture groupPiece : group.getFurniture()) {\n ungroupedPiecesList.add(groupPiece);\n ungroupedPiecesGroupsList.add(sortedMapEntry.getKey());\n ungroupedPiecesIndexList.add(endIndex++);\n }\n }\n } \n final HomePieceOfFurniture [] ungroupedPieces = \n ungroupedPiecesList.toArray(new HomePieceOfFurniture [ungroupedPiecesList.size()]); \n final HomeFurnitureGroup [] ungroupedPiecesGroups = \n ungroupedPiecesGroupsList.toArray(new HomeFurnitureGroup [ungroupedPiecesGroupsList.size()]); \n final int [] ungroupedPiecesIndex = new int [ungroupedPieces.length];\n final Level [] ungroupedPiecesLevels = new Level [ungroupedPieces.length];\n boolean basePlanLocked = oldBasePlanLocked;\n for (i = 0; i < ungroupedPieces.length; i++) {\n ungroupedPiecesIndex [i] = ungroupedPiecesIndexList.get(i); \n ungroupedPiecesLevels [i] = ungroupedPieces [i].getLevel();\n // Unlock base plan if the piece is a part of it\n basePlanLocked &= !isPieceOfFurniturePartOfBasePlan(ungroupedPieces [i]);\n } \n final boolean newBasePlanLocked = basePlanLocked;\n\n doUngroupFurniture(groups, ungroupedPieces, ungroupedPiecesGroups, ungroupedPiecesIndex, ungroupedPiecesLevels, newBasePlanLocked, false);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doGroupFurniture(ungroupedPieces, groups, groupsGroups, groupsIndex, groupsLevels, oldBasePlanLocked, allLevelsSelection);\n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n doUngroupFurniture(groups, ungroupedPieces, ungroupedPiecesGroups, ungroupedPiecesIndex, ungroupedPiecesLevels, newBasePlanLocked, false);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoUngroupName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }", "public boolean inGroup(Person p){\n\t return false;\n }", "public Cursor getPeopleNotInGroupId(int groupId) throws SQLException {\r\n\t\treturn db.query(DATABASE_TABLE, new String[] { KEY_PERSON_ID, KEY_NAME,\r\n\t\t\t\tKEY_GROUP_ID, KEY_GIFTEE_1_ID, KEY_GIFTEE_2_ID,\r\n\t\t\t\tKEY_NUM_TIMES_SELECTED }, KEY_GROUP_ID + \"!=\" + groupId, null,\r\n\t\t\t\tnull, null, null, null);\r\n\t}", "Boolean groupingEnabled();", "protected HashSet getNoMnemonic(){\n return tester.noMnemonic;\n }", "public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }", "public void assertNotSelectedIndex(final String selectLocator, final String indexPattern);", "public static String groupNotFound(String groupname) {\n return holder.format(\"groupNotFound\", groupname);\n }", "public Group getGroup_9_0() { return cGroup_9_0; }", "private PaletteContainer createDefault1Group() {\r\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\r\n\t\t\t\tMessages.Default1Group_title);\r\n\t\tpaletteContainer.setId(\"createDefault1Group\"); //$NON-NLS-1$\r\n\t\tpaletteContainer.setDescription(Messages.Default1Group_desc);\r\n\t\tpaletteContainer.add(createDocTopic1CreationTool());\r\n\t\treturn paletteContainer;\r\n\t}", "protected HashSet getNoLabelForPointing(){\n return tester.labelForPointingComponents;\n }", "private void setNullGroupTolerance() {\r\n\r\n QualifierCheck.QualifierInfo qualifierInfo = qualifierMap.get(Qualifier.COLLECTION_DATE_QUALIFIER_NAME);\r\n for(RegexGroupInfo regexInfo : qualifierInfo.getRegexGroupInfos()){\r\n if(regexInfo.getGroupNumber() == 3){\r\n regexInfo.setNonMatch(true);\r\n }\r\n }\r\n \r\n }", "@Override\n public String getGroupName(int group) {\n assert 0 <= group && group < groupNames.length;\n \n return groupNames[group];\n }", "private Collection<? extends ActiveGroupEntry> filterOutNonUserActivateableGroups(\n Collection<? extends ActiveGroupEntry> groups)\n {\n return groups.stream().filter(age -> isUserActivationStateControl(age)).collect(Collectors.toList());\n }", "public String getGroupOther() {\n return groupOther;\n }", "public String getFirstComboDefaultText() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getDisplayName();\r\n }", "public void overrideGroup(String group) {\n this.group = group;\n }", "@Override\n\tprotected CharSequence getDefaultChoice(String selectedValue)\n\t{\n\t\treturn \"\";\n\t}", "public void undo() {\n compositionManager.ungroup(group);\n }", "String getGroupingCode();", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "private void setGroupNodeNotProcess(int row, int col) {\n\t\tfor(int i = 0; i <= row; i++) {\n\t\t\tfor(int j = 0; j < MAX_COL; j++) {\n\t\t\t\tif(i == row && j > col) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.inputs[i][j].setWalking(true);\n\t\t\t\t\t// System.out.print(this.inputs[i][j].getNumber() + \", \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onGroupCollapsed(int groupPosition) {\n\n }", "public void ordenarXNombreSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++) {\r\n\t\t\t\tif((datos.get(j).compare(datos.get(j), menor))==(-1)) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public T caseGroup(Group object) {\n\t\treturn null;\n\t}", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "@Override\n public void deselectGolem() {\n }", "public void clearGroups() {\r\n\t\tthis.groups = null;\r\n\t}", "IGroup getFullGroup();", "public void Unassigned_Cases()\n\t{\n\t\t//assigning a ContactTracer to a case\n\t\tif(coronaCase.size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"\\nDisplaying unassigned cases: \");\n\t\t\tfor(int i = 0; i < coronaCase.size(); i++)\n\t\t\t\tif(coronaCase.get(i).isAssignedCase() == false)\n\t\t\t\t\tSystem.out.println(coronaCase.get(i).toString());\n\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No unassigned cases to display.\");\n\t\t\n\t}", "public boolean isGroup(String name) {\n return grouptabs.containsKey(name);\n }", "public void changeGroup(Character character, Group formerGroup, Group newGroup) {\r\n\r\n\t\tformerGroup.removeCharacter(character);\r\n\t\tnewGroup.addCharacter(character);\r\n\t\tdetermineAndSetAGL(formerGroup);\r\n\t\tdetermineAndSetAGL(newGroup);\r\n\t}", "public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }", "public TreeSet < Symbol > getNotRemoveableSymbolsFromAlphabet ()\n {\n TreeSet < Symbol > set = new TreeSet < Symbol > ();\n if ( this.regexNode == null )\n {\n return set;\n }\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n set.add ( new DefaultSymbol ( ( ( TokenNode ) l ).getName () ) );\n }\n else if ( l instanceof CharacterClassNode )\n {\n CharacterClassNode c = ( CharacterClassNode ) l;\n set.addAll ( c.getCharacters () );\n }\n }\n return set;\n }", "int inactiveGroup(int evg)\r\n {\r\n boolean bQuit;\r\n CEventGroup evgPtr;\r\n CEvent evtPtr;\r\n PARAM_GROUP grpPtr;\r\n\r\n evgPtr = events[evg];\r\n evgPtr.evgFlags &= CEventGroup.EVGFLAGS_DEFAULTMASK;\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_INACTIVE;\r\n\r\n for (evg++ , bQuit=false;;)\r\n {\r\n evgPtr = events[evg];\r\n evgPtr.evgFlags &= CEventGroup.EVGFLAGS_DEFAULTMASK;\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_INACTIVE;\r\n\r\n evtPtr = evgPtr.evgEvents[0];\r\n switch (evtPtr.evtCode)\r\n {\r\n case ((-10 << 16) | 65535):\t\t// CNDL_GROUP:\r\n grpPtr = (PARAM_GROUP) evtPtr.evtParams[0];\r\n grpPtr.grpFlags |= PARAM_GROUP.GRPFLAGS_PARENTINACTIVE;\r\n evg = inactiveGroup(evg);\r\n continue;\r\n case ((-11 << 16) | 65535):\t\t// CNDL_ENDGROUP:\r\n bQuit = true;\r\n evg++;\r\n break;\r\n }\r\n if (bQuit)\r\n {\r\n break;\r\n }\r\n evg++;\r\n }\r\n return evg;\r\n }", "public AllButTwoOfAKind( java.lang.String name) \r\n\t{\r\n\t\tsuper(name);\t\r\n\t}", "private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void removeFromGroup () throws PPException{\n\t\tif (PPNative.Unit_SetGroup (id, -1) == -1)\n\t\t\tthrow new PPException (\"removeFromGroup -> \"+PPNative.GetError());\n\t}", "public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "@Override\n protected CharSequence getDefaultChoice(final String _selectedValue)\n {\n return \"\";\n }", "public void filterOutSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n if (sel == null || sel.size() == 0) { getRTParent().pop(); repaint(); return; }\n Set<Bundle> new_bundles = new HashSet<Bundle>();\n if (sel != null && sel.size() > 0) {\n new_bundles.addAll(myrc.bs.bundleSet());\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) new_bundles.removeAll(myrc.entity_counter_context.getBundles(it.next()));\n getRTParent().setSelectedEntities(new HashSet<String>());\n\tgetRTParent().push(myrc.bs.subset(new_bundles));\n repaint();\n }\n }", "public void noteIncorrectGuess(char letter) \n\t{ \n\t choosePart(i);\n\t i++;\n\t wrong+=letter;\n\t wrongLabel.setLabel(wrong);\n\t add(wrongLabel);\n\t}", "boolean getGroupByCategoryNull();", "protected HashSet getNoLabelFor(){\n return tester.noLabelFor;\n }", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }" ]
[ "0.6093408", "0.60427636", "0.59502935", "0.58239794", "0.57269436", "0.56529886", "0.5618296", "0.5394805", "0.532322", "0.5320384", "0.5288007", "0.523887", "0.5236928", "0.52296484", "0.5206237", "0.5184797", "0.51761115", "0.51484716", "0.513386", "0.5106623", "0.50976634", "0.5094815", "0.5054877", "0.5039728", "0.5018469", "0.5011484", "0.50037843", "0.49881363", "0.49672177", "0.49660856", "0.49616483", "0.49581426", "0.49512675", "0.49318483", "0.49258414", "0.49054375", "0.48996884", "0.489911", "0.4892869", "0.48864388", "0.48737052", "0.48652932", "0.48607054", "0.48590595", "0.48434064", "0.48414555", "0.4836934", "0.48352247", "0.48301277", "0.48165318", "0.48161668", "0.48091796", "0.4800599", "0.47962308", "0.47885782", "0.47748026", "0.47734722", "0.47718775", "0.47717163", "0.47690254", "0.4765345", "0.47641334", "0.47611213", "0.47601604", "0.47577426", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47507858", "0.47433838", "0.473505", "0.4734708", "0.47280073", "0.47270808", "0.47266528", "0.4721214", "0.47179425", "0.47146198", "0.47073284", "0.4706518", "0.4700842", "0.47002894", "0.46969506", "0.46969506", "0.4681729", "0.46784753", "0.46720296", "0.46605766", "0.46599188", "0.46599066" ]
0.5096929
21
finds guess withrightmost guess, does tester 1 have a more rightmost guess?
public String rightmostGuess(char guess) { String tester2 = ""; String rightMostGuess = ""; for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) { //for testing word String tester = entry1.getKey(); for (Map.Entry<String, Set<String>> entry : wordsLeft.entrySet()) { //for word to test agasint tester2 = entry.getKey(); for (int i = tester.length(); i > 0; i--) { //to interate through chars of each word try { char compare1 = tester.charAt(i - 1); char compare2 = tester2.charAt(i - 1); if (compare2 == guess && compare1 == '-') { rightMostGuess = tester2; break; } if (compare2 == '-' && compare1 == guess) { rightMostGuess = tester; break; } } catch (Exception ex) { System.out.println("here"); } } } } return rightMostGuess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tryGuess(int guess) {\n int guessAssert = guesser.assertGuess(guess);\n switch (guessAssert) {\n case 0:\n guesser.madeGuess();\n System.out.println(\"Too low. Guess again: \");\n break;\n case 1:\n guesser.madeGuess();\n System.out.println(\"Too high. Guess again: \");\n break;\n case 2:\n guesser.madeGuess();\n System.out.println(\"You got it in \"+guesser.getGuess()+\" guesses!\");\n break;\n default:\n guesser.madeGuess();\n System.out.println(\"Invalid numeric value has been entered.\");\n break;\n }\n\n }", "public abstract boolean isGuessCorrect(String guess);", "abstract int nextTry(String guess);", "@Override\n public String getGuess() throws TimeoutException {\n\n int count = 1;\n\n while (this.answers.size() - count >0){\n if(this.answers.get(answers.size()-count).equals(\"yes\")) {\n\n return excuteQuery(this.getQuery(\"Guess\", \"Question=\" + \"'\" + this.questions.get(questions.size() -count) + \"'\"))\n .replaceAll(\"</br>\", \"\\n\");\n }\n count++;\n }\n\n return \"no result found\\n\";\n\n\n }", "private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}", "public int getLastGuess() {\n\t\treturn lastGuess;\n\t}", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\r\n if (numToGuess <= 0) { // the word was guessed\r\n if (currWord.equals(animal))\r\n animalGuessed = true;\r\n if (currWord.equals(country))\r\n countryGuessed = true;\r\n if (currWord.equals(superhero))\r\n superheroGuessed = true;\r\n wordsCorrect++;\r\n if (wordsCorrect >= 3) {\r\n gameOver = true;\r\n win = true;\r\n }\r\n }\r\n return true;\r\n }\r\n else { // wrong guess\r\n guessesLeft--;\r\n if (guessesLeft <= 0) { // round lost\r\n chancesLeft--;\r\n if (chancesLeft <= 0) {\r\n gameOver = true;\r\n win = false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public void rightGuess()\r\n\t{\r\n\t\tif(userWon())\r\n\t\t{\r\n\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"good job! you've correctly guessed the panel \\n would you like to guess again? if so enter yes, if you would like to add your tile to your code, reply no\\n\\n\");\r\n\t\tString answer = sc.next();\r\n\t\tif(answer.compareTo(\"yes\") == 0 || answer.compareTo(\"Yes\") == 0)\r\n\t\t{\r\n\t\t\tuserTurn(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(userRanPan.getValue() == -1)\r\n\t\t\t\tnewGame.getUserHand().addDash(false,userRanPan);\r\n\t\t\telse\r\n\t\t\t\tnewGame.getUserHand().addPanel(userRanPan,false);\r\n\r\n\t\t\tuserGuess.clear();\r\n\t\t\tslide(previousGuess,userRanPan);\r\n\r\n\t\t\tif(userWon() == false)\r\n\t\t\t\tcompTurn(false);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//foo.repaint();\r\n\t}", "private static boolean dangerZone(int closestGuess)\n {\n return (closestGuess < guessRange);\n }", "public boolean alreadyGuessed(char guess) {\r\n return false;\r\n }", "public int returnCorrectPos(String guess) {\n\t\tint correctPos = 0;\n\t\t\n\t\tfor (int i = 0; i < guess.length(); i++) {\n\t\t\tif (i > secretCode.length() - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar guessNum = guess.charAt(i);\n\t\t\tchar secretCodeNum = secretCode.charAt(i);\n\t\t\tif (guessNum == secretCodeNum) {\n\t\t\t\tcorrectPos += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn correctPos;\n\t}", "public void printWrongGuess() {\r\n\t\t\r\n\t\tSystem.out.print(\"Wrong Guesses: \" + wrongGuess + \"\\n\");\r\n\t}", "public void checkGuess() {\n\t\tString guessText = txtInput.getText();\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check the guess for too high/too low\r\n\t\t\tint guess = Integer.parseInt(guessText);\r\n\t\t\t//too high\r\n\t\t\tif (guess > theNumber) {\r\n\t\t\t\tmessage = guess + \" was too high. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else if (guess < theNumber) {\r\n\t\t\t\tmessage = guess + \" was too low. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else {\r\n\t\t\t\tmessage = guess + \" was right! You used \" + numberOfPlayerGuesses + \" guesses. Let's play again!\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnewGame();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tlblDirections2Result.setText(\"Enter a whole number between 1 and 100.\");\r\n\t\t}\r\n\t\t\r\n\t\ttxtInput.requestFocus();\r\n\t\ttxtInput.selectAll();\r\n\t\t\r\n\t\t\r\n\t}", "public abstract boolean guess(String guess);", "public int guess(int i) {\n return 1;\n }", "public void wrongGuess()\r\n\t{\r\n\t\tSystem.out.println(\"Sorry, your guess is wrong\");\r\n\t\tif(userRanPan.getValue() == -1)\r\n\t\t\tnewGame.getUserHand().addDash(true,userRanPan);\r\n\t\telse\r\n\t\t\tnewGame.getUserHand().addPanel(userRanPan,true);\r\n\r\n\t\tif(userWon() == false)\r\n\t\t\tcompTurn(false);\r\n\t\telse if(userWon())\r\n\t\t{\r\n\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public int searchCorrectAnswer() {\n\t\tint correctAnswerNum = 0; \n\t\tboolean correctAnswer = false;\n\t\tfor(int answerNum = 1; answerNum < 5; answerNum++) {\n\t\t\tcorrectAnswer = testGenerator.isAnswerCorrect(questionNo, answerNum);\n\t\t\tif(correctAnswer) {\n\t\t\t\tcorrectAnswerNum = answerNum;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn correctAnswerNum;\n\t}", "public void correctGuess(String s){\n\t\t \tif(rightAnswer==s){\n\t\t \t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\tGamesCommon.displayEndGame(GameStatus.Won, this,p);\n\t\t\t\t\t \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}else{\n\t\t \t\ttry {\n\t\t \t\t\tGamesCommon.displayEndGame(GameStatus.Lost, this,p);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}\n\t }", "public static int game(Scanner console) {\r\n Random rand = new Random();\r\n int number = rand.nextInt(MAX) + 1;\r\n System.out.println(\"I'm thinking of a number between 1 and \" + MAX + \"...\");\r\n System.out.print(\"Your guess? \");\r\n int guess = console.nextInt();\r\n int numGuesses = 1; \r\n while (guess != number) {\r\n hints(number, guess);\r\n System.out.print(\"Your guess? \");\r\n guess = console.nextInt();\r\n numGuesses++;\r\n }\r\n if (numGuesses != 1) {\r\n System.out.println(\"You got it right in \" + numGuesses + \" guesses\");\r\n } else { // numGuesses == 1\r\n System.out.println(\"You got it right in \" + numGuesses + \" guess\");\r\n }\r\n return numGuesses;\r\n }", "int getWrongAnswers();", "public int returnIncorrectPos(String guess) {\n\t\tint incorrectPos = 0;\n\t\t\n\t\tfor (int i = 0; i < guess.length(); i++) {\n\t\t\tif (i > secretCode.length() - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar guessNum = guess.charAt(i);\n\t\t\tchar secretCodeNum = secretCode.charAt(i);\n\t\t\tif (guessNum == secretCodeNum) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// check if num exists in secret code\n\t\t\telse if (secretCode.contains(new String(new char[] { guessNum }))) {\n\t\t\t\tincorrectPos += 1;\n\t\t\t}\n\t\t}\n\t\treturn incorrectPos;\n\t}", "public Code guess(){\n int minimumEliminated = -1;\n Code bestGuess = null;\n //Create a list of all codes in sample space (including both impossible and possible codes)\n List<Code> unusedCodes = new LinkedList<>(possibleCodes);\n unusedCodes.addAll(impossibleCodes);\n\n //MinMax part\n //For each code in the sample space\n for (Code arbitraryCode : unusedCodes) {\n //Create a new 2D miniMax table\n int[][] scoreTable = new int[Code.CODE_LENGTH + 1][Code.CODE_LENGTH + 1];\n //For each possibleCode\n for (Code possibleCode : possibleCodes) {\n Response response = arbitraryCode.getResponse(possibleCode); //Compare with the temporary arbitrary code and get response\n scoreTable[response.getStrikes()][response.getHits()]++; //Increase number of codes which have this response\n }\n //Find max in the table\n int maxScoreHits = -1;\n for (int[] row : scoreTable) {\n for (int i : row) {\n maxScoreHits = Integer.max(i, maxScoreHits);\n }\n }\n int score = possibleCodes.size() - maxScoreHits; //Evaluate score\n //Update minimumEliminated and bestGuess\n if (score > minimumEliminated) {\n minimumEliminated = score;\n bestGuess = arbitraryCode;\n }\n }\n\n //Update guess\n guess = bestGuess;\n\n return bestGuess;\n }", "public Integer guess(Integer g)\n {\n if (chosenNum == g){\n return 0;\n } else if (chosenNum > g){\n return -1;\n } else if (chosenNum < g){\n return 1;\n }\n return chosenNum;\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public int play(NumberGame game) {\n\t\tboolean correct = false ; \n\t\tint guess = 0 ;\n\t\tint min = 1 ;\n\t\tint max = game.getUpperBound() ;\n\t\tdo {\n\t\tSystem.out.print(\"Your answer? \");\n\t\tguess = min+((max-min)/2); \n\t\tcorrect = game.guess(guess);\n\t\tSystem.out.println(guess);\n\t\tif(game.getMessage().equals(\"The number is too small\")) {\n\t\t\tmin = guess+1 ; \n\t\t}else if(game.getMessage().equals(\"The number is too large\")) {\n\t\t\tmax = guess-1 ;\n\t\t}\n\n\t\tSystem.out.println( game.getMessage() );\n\t\t}while(!correct);\n\t\treturn guess ;\n\t}", "public static void rightAnswer(char guess) {\r\n rightAnswer(guess, answer, displayedAnswer);\r\n }", "public static void main(String[] args) {\n\t\tint computerNum = (int)(Math.random()*100) + 1; \r\n\t\t//Code generates a decimal -> multiple by 100 to make it a whole number ->\r\n\t\t//use int to convert to integer to cut off decimal\r\n\t\tint userGuess = -100;\r\n\t\tint guessCount = 0;\r\n\t\twhile (userGuess != computerNum && userGuess != -1) {\r\n\t\t\tString input = JOptionPane.showInputDialog(null, \"This is a number guessing game. \"\r\n\t\t\t\t\t+ \"\\nPlease guess a whole number between 1 and 100.\");\r\n\t\t\tuserGuess = Integer.parseInt(input);\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"Your guess was \" + userGuess + \".\");\r\n\t\t\tif (userGuess == -1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You have chosen to leave the program.\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < 0 || userGuess > 100){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Your number is invalid.\"\r\n\t\t\t\t\t\t+ \" Please enter a number between 1 and 100.\");\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (userGuess > computerNum){\r\n\t\t\t\tif (userGuess - 10 <= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess a little too high, \"\r\n\t\t\t\t\t\t\t+ \" but within 10 of the number! Guess a little lower.\");\r\n\t\t\t\t\t//guessCount ++; \r\n\t\t\t\t\t//return guessCount;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was too high! \"\r\n\t\t\t\t\t\t\t+ \"Make a lower guess.\");\r\n\t\t\t\t\t//guessCount ++;\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < computerNum) {\r\n\t\t\t\tif (userGuess + 10 >= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was a little too low, \"\r\n\t\t\t\t\t\t\t+ \"but within 10 of the number! Guess a little higher.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showConfirmDialog(null, \"Your guess was too low!\"\r\n\t\t\t\t\t\t\t+ \" Make a higher guess.\");\t\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Yay! You guessed correctly!\");\r\n\t\t\t}\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"# = \" + computerNum +\r\n\t\t\t\t\t//\"# of guesses = \" + guessCount);\r\n\t\t}\r\n\t\tJOptionPane.showMessageDialog(null, \"The random number was: \" + computerNum +\r\n\t\t\t\t\"\\nIt took you \" + guessCount + \" guesses.\");\r\n\r\n\t}", "private static int guessing() {\n\t\t\n\t\tSystem.out.println(\"Guess a number between 1 and 100, you have 5 trials: \");\n\t\t\n\t\tint trials = 5;\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//set a random number as the number to be guessed\n\t\tint num = (int)(100 * Math.random()) + 1;\n\t\tint points = 0;\n\t\t\n\t\t//use a flag to check if player guess the correct number or not\n\t\tboolean flag = false;\n\t\twhile ( trials > 0) {\n\t\t\tint guess = input.nextInt();\n\t\t\ttrials--;\n\t\t\tif ( guess == num ) {\n\t\t\t\tpoints = trials == 0? 20 : trials * 20;\n\t\t\t\t//System.out.println(\"You guess the number with\"+trials+\"trials left, congratulation! +\"+ (points = trials == 0? 20 : trials * 20)+\" points\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}else if ( guess < num ) {\n\t\t\t\tSystem.out.println(\"The guess is too small, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"The guess is too large, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif ( !flag ) System.out.println(\"Trials used up, + 0 points\");\n\t\treturn points;\n\t\t\n\t}", "public Main()\n {\n \n Random rand = new Random();\n int n = rand.nextInt(10);\n n+=1;\n \n Scanner sc = new Scanner(System.in);\n int i = 0;\n do {\n \n i = sc.nextInt();\n\n //System.out.println(i);\n if(i<n){\n System.out.println(\"too small\");\n if (previousNum!=i){\n count += 1;\n }\n }\n else if(i>n){\n System.out.println(\"too big\");\n if (previousNum!=i){\n count +=1;\n }\n }\n else {\n System.out.println(\"correct guess\");\n \n count +=1;\n \n }\n \n previousNum = i;\n }while (i!=n);\n System.out.println(\"it took you \"+count+\" guesses!\");\n \n }", "public void checkGuess() {\n\t\tString guessText = txtGuess.getText();\n\t\tString message = \"\";\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\t//check users guess too high/too low\n\t\t\tint guess = Integer.parseInt(guessText);\n\t\t\t\n\t\t\tif ( guess < 0 || guess > 100) {\n\t\t\t\tthrow new Exception(\"User entry out of range\");\n\t\t\t}//if\n\n\t\t\t//too high\n\t\t\tif(guess > theNumber){\n\t\t\t\tmessage = guess + \" is to high guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}//if\n\t\t\t//too low\n\t\t\telse if (guess < theNumber){\n\t\t\t\tmessage = guess + \" is to low guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}else{//guessed correct\n\t\t\t\tmessage = guess + \" was right! You win! Let's play again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t\tnewGame();\n\t\t\t}//else\n\t\t}//try\n\t\tcatch(Exception e) {\n\t\t\tlblOutput.setText(\"Enter a whole number between 1-100\"); \n\t\t}//catch\n\t\tfinally {\n\t\t\t\n\t\t\ttxtGuess.requestFocus();\n\t\t\ttxtGuess.selectAll();\n\t\t\t\n\t\t}//finally\n\t}", "public void checkUserGuess(int userGuess, int randomNumber) {\n guessesLeft();\n if (userGuess == randomNumber) {\n gameFragmentLayout.setVisibility(View.VISIBLE);\n savehighscore();\n level++;\n hideKeybord();\n\n CorrectGameFragment correctGameFragment = new CorrectGameFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n correctGameFragment.getCorrectFragInfo(this, level, levelMaxRange, guessesLeft);\n fragmentManager.beginTransaction()\n .replace(R.id.game_fragment, correctGameFragment)\n .commit();\n }\n }", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "void setMaxWrongGuesses(Integer max);", "public String solve() {\n char[] secret = new char[NUM_DIGITS];\n for (int i = 0; i < secret.length; i++) {\n shuffle(secret, i);\n }\n\n final int RoundThreshold = 10;\n int rounds = 0;\n int errors = distance(secret);\n int previous = errors;\n\n while (errors != 0) {\n // replace every digit by a different random number, keep\n // those that minimize the error metric\n for (int i = 0; i < secret.length; i++) {\n // replace by a new random digit\n char previousDigit = secret[i];\n shuffle(secret, i);\n\n int modified = distance(secret);\n if (modified <= errors) {\n // we have improvement, keep the digit\n errors = modified;\n } else {\n // restore previous digit if no improvement\n secret[i] = previousDigit;\n }\n }\n\n if (errors == previous) {\n // we didn't improve on the previous guess\n if (++rounds == RoundThreshold) {\n // stuck too long? try to escape local optimum by\n // changing a random number\n shuffle(secret, rand.nextInt(secret.length));\n errors = distance(secret);\n rounds = 0;\n }\n } else {\n // we got closer to the goal\n rounds = 0;\n previous = errors;\n }\n }\n\n return new String(secret);\n }", "public static void main(String[] args) {\n\t\tdouble guess;\r\n\t\t\r\n\t\tScanner bob = new Scanner(System.in);\r\n\t\tint answer = (int)(10.0 * Math.random());\r\n\t\tSystem.out.println(answer);\r\n\t\t\r\n\t\tfor(int i =0; i < 3; i++){\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Please guess a number between 1 and 10 : \");\r\n\t\t\tguess = bob.nextDouble();\r\n\t\t\t\r\n\t\t\twhile (guess>10)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"This number is out of range please guess between 1 and 10\");\r\n\t\t\t\tSystem.out.println(\"Please guess a number between 1 and 10 : \");\r\n\t\t\t\tguess = bob.nextDouble();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t if (guess == answer) {\r\n\t\t\t System.out.println(\"RIGHT!\");\r\n\t\t\t i=4;\r\n\t } \r\n\t\t\telse if ((answer == guess + 1) || (answer == guess - 1)) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t System.out.println(\"hot, please try again\");\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\telse if ((answer == guess + 2) || (answer == guess - 2)){\r\n\t\t\t\t System.out.println(\"warm!, please try again\");\r\n\t\t\t }\r\n\t\t\t\t else if ((answer == guess + 3) || (answer == guess - 3)){\r\n\t\t\t\t\t System.out.println(\"cold!, please try again\"); \r\n\t\t\t\t \t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t else if (i == 2){\r\n\t\t\t\t\t System.out.println(\"You loose \"); \r\n\t\t\t\t\t \r\n\t\t\t\t }else {\r\n\t\t\t\t\t System.out.println(\"cold!, please try again\"); \r\n\t\t\t \t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t}\r\n\t\tSystem.out.println(\"The answer is :\"+answer);\r\n\t\t\r\n\t\t\r\n}", "public boolean solve() {\r\n\r\n\tint nextBox = findLeast();\r\n\t//coors for the least box\r\n\tint c = nextBox % 10;\r\n\tint r = nextbox/10;\r\n\t\r\n\r\n\t//look for least\r\n\t//for the numbers in the least box\r\n\t//assignT == true \r\n\t//check the max; if max is 100; well done! return true\r\n\t//if its not then if (solve() == true) again\r\n\t//if \r\n }", "static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }", "protected boolean guessAnswer(String answer) {\n if (answer.equals(correctAnswer)) {\n currentScore++;\n nextQuestion();\n return true;\n } else {\n nextQuestion();\n return false;\n }\n }", "private boolean gameOver()\n {\n \t//lose case\n \tif (guess_number == 0)\n \t{\n \t\twin = false;\n \t\treturn true;\n \t}\n \t//win case\n \tif (mask.compareTo(word) == 0)\n \t{\n \t\twin = true;\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public boolean isCorrect(String theguess){\n\t\treturn (correctA.contains(theguess));\n\t}", "public int getGuessesLeft() {\r\n return (guessesAllowed - numWrongGuesses);\r\n }", "private static int findWinner(ArrayList<ArrayList<Card>> hands,\n ArrayList<Card> tableCardsFinal) {\n FiveCardHand bestHand = null;\n int bestHandIndex = -1;\n for (int i = 0; i < hands.size(); i++) {\n ArrayList<Card> hand = hands.get(i);\n ArrayList<Card> handOfSeven = (ArrayList<Card>) hand.clone();\n handOfSeven.addAll(tableCardsFinal);\n FiveCardHand best = findBestHand(handOfSeven);\n\n if (bestHand == null) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) > 0) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) == 0) { // handle ties by returning hands.size()\n bestHandIndex = hands.size();\n }\n }\n\n return bestHandIndex;\n }", "public static int make_guess(int hits, int strikes) {\n int myguess = 1000;\n\n /*\n * IMPLEMENT YOUR GUESS STRATEGY HERE\n */\n\n //First guess is always 1122, which is suggested by Donald Knuth in Mastermind(4,6)\n if (isFirstGuess){\n isFirstGuess = false;\n myguess = 1122; //Initial guess recommended by Donald Knuth\n SOLVER.setGuess(new Code(1122, true));\n } else {\n Response response = new Response(strikes, hits);\n SOLVER.processResponse(response);\n Code guess = SOLVER.guess();\n myguess = guess.getCode();\n }\n\n return myguess;\n }", "public boolean isWinner(Coordinates guess, String playerSymbol){\n //idea for antidiag win test from\n // https://stackoverflow.com/questions/1056316/algorithm-for-determining-tic-tac-toe-game-over\n for (int i = 0; i < 3; i++) {\n if (board[guess.getRow()][i].getSymbol() != playerSymbol) {\n break;\n }\n if (i == 3 - 1) {\n return true;\n }\n }\n\n for (int j = 0; j < 3; j++) {\n if (board[j][guess.getColumn()].getSymbol() != playerSymbol) {\n break;\n }\n if (j==3-1) {\n return true;\n }\n }\n\n if (guess.getColumn()==guess.getRow()){\n for(int k = 0; k < 3; k++){\n if(board[k][k].getSymbol() != playerSymbol)\n break;\n if(k == 3-1){\n return true;\n }\n }\n }\n\n if (guess.getColumn()+guess.getRow()==3-1){\n for (int l = 0; l < 3; l++) {\n if(board[l][3-1-l].getSymbol()!= playerSymbol){\n break;\n }\n if (l==3-1){\n return true;\n }\n }\n }\n\n return false;\n }", "private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }", "public int getGuessesLeft() {\r\n return 0;\r\n }", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "boolean isFinalAnswer(List<List<Integer>> puzzle) {\n List<Integer> expectedList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);\n\n // check row\n int rowMatchedCount = 9;\n for (int rowIndex = 0; rowIndex < 9; rowIndex++) {\n List<Integer> rowNums = new ArrayList<>(puzzle.get(rowIndex));\n Collections.sort(rowNums);\n if (rowNums.equals(expectedList)) {\n rowMatchedCount -= 1;\n }\n }\n\n // check col\n int colMatchedCount = 9;\n for (int colIndex = 0; colIndex < 9; colIndex++) {\n List<Integer> colNums = new ArrayList<>(getColValues(colIndex, puzzle));\n Collections.sort(colNums);\n if (colNums.equals(expectedList)) {\n colMatchedCount -= 1;\n }\n }\n\n // check block\n int blockMatchedCount = 9;\n for (List<Integer> rowAndCol : getAllBlockTopLeftPos()) {\n List<Integer> blockNums =\n new ArrayList<>(getBlockValues(rowAndCol.get(0), rowAndCol.get(1), puzzle));\n Collections.sort(blockNums);\n if (blockNums.equals(expectedList)) {\n blockMatchedCount -= 1;\n }\n }\n\n return (rowMatchedCount + colMatchedCount + blockMatchedCount) == 0;\n }", "public int play(NumberGame game){\n\n System.out.println( game.toString() );\n System.out.println();\n int min = 1;\n int max = game.getUpperBound();\n int guess = min + (max - min)/2;\n while(true){\n if(game.guess(guess)){\n break;\n }else {\n\n if(game.getMessage().contains(\"small\")){\n min = guess + 1;\n }else {\n max = guess - 1;\n }\n\n guess = min + (max - min)/2;\n\n }\n\n }\n\n return guess;\n }", "public int getWorstScore()\n {\n return -1;\n }", "public static void main(String[] args) {\n\t\tint lottery=(int)(100+Math.random()*900);\r\n\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner input=new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"Enter your lottery pick(three digits):\");\r\n int guess=input.nextInt(); \r\n\r\n int lotteryDigit1=lottery/100;\r\n int lotteryDigit2=(lottery/10)%10;\r\n int lotteryDigit3=lottery%10; \r\n\r\n int guessDigit1=guess/100;\r\n int guessDigit2=(guess/10)%10;\r\n int guessDigit3=guess%10;\r\n \r\n System.out.println(\"The lottery number is \"+lottery);\r\n\r\n if(guess==lottery)\r\n \tSystem.out.println(\"Exact match: you win $10,000\");\r\n else if ((lotteryDigit1 == guessDigit1 && lotteryDigit2 == guessDigit3 && lotteryDigit3 == guessDigit2)\r\n || (lotteryDigit1 == guessDigit3 && lotteryDigit2 == guessDigit2 && lotteryDigit3 == guessDigit1)\r\n || (lotteryDigit1 == guessDigit2 && lotteryDigit2 == guessDigit3 && lotteryDigit3 == guessDigit1)\r\n || (lotteryDigit1 == guessDigit3 && lotteryDigit2 == guessDigit1 && lotteryDigit3 == guessDigit3)\r\n || (lotteryDigit1 == guessDigit2 && lotteryDigit2 == guessDigit1 && lotteryDigit3 == guessDigit2))\r\n System.out.println(\"Match all digits: you win $3,000\");\r\n else if (guessDigit1 == lotteryDigit1\r\n || guessDigit1 == lotteryDigit2\r\n || guessDigit1 == lotteryDigit3\r\n || guessDigit2 == lotteryDigit1\r\n || guessDigit2 == lotteryDigit2\r\n || guessDigit2 == lotteryDigit3\r\n || guessDigit3 == lotteryDigit1\r\n || guessDigit3 == lotteryDigit2\r\n || guessDigit3 == lotteryDigit3)\r\n System.out.println(\"Match one digit: you win $1,000\");\r\n else\r\n System.out.println(\"Sorry,no match\");\r\n\t}", "private static String getValidGuess(BagelGame game) {\n Scanner scan = new Scanner(System.in);\n boolean valid = false;\n String guess = \"\";\n String error;\n \n while (!valid) {\n System.out.print(\"Guess # \" + game.getGuessNum() + \" ? \");\n guess = scan.nextLine().trim();\n error = game.validateGuess(guess);\n if (error == \"\") {\n valid = true;\n } else {\n System.out.println(error);\n }\n }\n return guess;\n }", "public int guessCount(String tester, char guess) {\n StringBuilder r = new StringBuilder(tester);\n\n int guessCount = 0;\n for (int i = 0; i < tester.length(); i++) {\n if (r.charAt(i) == guess) {\n guessCount++;\n }\n }\n\n return guessCount;\n }", "private boolean canIGenerateNextRound() {\n\t\tint totalRounds = mTournament.getTotalRounds();\n\t\tint currentRouns = mTournament.getRounds().size();\n\n\t\tList<Integer> roundNumbers = new ArrayList<>();\n\t\tfor (ChesspairingRound round : mTournament.getRounds()) {\n\t\t\tif (roundNumbers.contains(round.getRoundNumber())) {\n\t\t\t\t// you have 2 rounds with the same id\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\troundNumbers.add(round.getRoundNumber());\n\t\t}\n\n\t\tif (currentRouns < totalRounds) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void makeGuess() {\n columnGuess = ((int) (Math.random() * 100000)) % 10;\n\n int number = ((int) (Math.random() * 100000)) % 10;\n rowGuess = (char) (number + 65);\n }", "public boolean alreadyGuessed(char guess) {\r\n \t//Convert guess to string, use contains method to check guessesMade ArrayList.\r\n if (guessesMade.contains(String.valueOf(guess))) {\r\n \treturn true;\r\n }\r\n \treturn false;\r\n }", "private static int howManyDigitsMatch(UNumber newGuess, UNumber oldGuess) {\r\n\t\t\t// If the characteristics is not the same, the digits in the mantissa do not matter\r\n\t\t\tif (newGuess.getCharacteristic() != oldGuess.getCharacteristic()) return 0;\r\n\t\t\t\r\n\t\t\t// The characteristic is the same, so fetch the mantissas so we can compare them\r\n\t\t\tbyte[] newG = newGuess.getMantissa();\r\n\t\t\tbyte[] oldG = oldGuess.getMantissa();\r\n\t\t\t\r\n\t\t\t// Computer the shorter of the two\r\n\t\t\tint size = newGuess.length();\r\n\t\t\t//System.out.println(size);\r\n\t\t\tint otherOne = oldGuess.length();\r\n\t\t\tif (otherOne < size) \r\n\t\t\t\tsize = otherOne;\r\n\t\t\t\r\n\t\t\t// Loop through the digits as long as they match\r\n\t\t\tfor (int ndx = 0; ndx < size; ndx++)\r\n\t\t\t\tif (newG[ndx] != oldG[ndx]) return ndx;\t// If the don't match, ndx is the result\r\n\t\t\t\r\n\t\t\t// If the loop completes, then the size of the shorter is the length of the match\r\n\t\t\treturn size;\r\n\t\t}", "boolean hasCorrect();", "public static Player whoLostGame() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tPlayer loser = null;\r\n\t\t\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\tloser = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}", "@Test\n public void testUsersRealNhsNoBestGuess() {\n String unitCode = userMappingDao.getUsersRealNhsNoBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect nhsno found with best guess\", \"nhsno2\", unitCode);\n }", "public boolean guessAgain(ArrayList<Range> ranges, ArrayList<Range> compRanges)\r\n\t{\r\n\t\tint minR = 12;\r\n\t\tint minRComp = 12;\r\n\r\n\t\tfor(int i = 0; i<ranges.size(); i++)\r\n\t\t{\r\n\t\t\tif(ranges.get(i).getStart() != -1 && ranges.get(i).getRange() <minR)\r\n\t\t\t{\r\n\t\t\t\tminR = ranges.get(i).getRange();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i <compRanges.size(); i++)\r\n\t\t{\r\n\t\t\tif(ranges.get(i).getStart() != -1 && ranges.get(i).getRange() <minR)\r\n\t\t\t{\r\n\t\t\t\tminR = ranges.get(i).getRange();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(minR == 0 || minR == 1)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tif(minRComp<2)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif(minR == 2)\r\n\t\t{\t\r\n\t\t\tint ranNum = (int)(Math.random()*10);\r\n\t\t\tif(ranNum<6)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\tif(minR == 3)\r\n\t\t{\r\n\t\t\tint ranNum = (int)(Math.random()*10);\r\n\t\t\tif(ranNum<4)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\tif(minR == 4)\r\n\t\t{\r\n\t\t\tint ranNum = (int)(Math.random()*10);\r\n\t\t\tif(ranNum<3)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public int answerCheck() {\n int score = -36; // 36 squares already filled in game.\n char[][] userAnswer = new char[9][9];\n \n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n userAnswer[i][j] = index[i][j].getText().charAt(0);\n }\n }\n \n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if(answer[i][j] == userAnswer[i][j]){\n score++;\n }\n }\n }\n return score;\n }", "public boolean guessIsRight(String secretWord, char guess){\n\t\tboolean isCorrect = false;\n\t\tfor (int i=0; i<secretWord.length(); i++){\n\t\t\tchar secretLetter = secretWord.charAt(i);\n\t\t\tif (secretLetter == guess){\n\t\t\t\t isCorrect = true;\n\t\t\t}\n\t\t}\n\t\treturn isCorrect;\n\t}", "public boolean guess(int number) {\n\t\tcount++;\n\t\tif (number == secret) {\n\t\t\tsetHint(String.format(\"Correct. The secret is %d. You used %d guesses.\", this.secret, this.count));\n\t\t\treturn true;\n\n\t\t} else if (number < secret) {\n\t\t\tsetHint(\"Sorry,your guess is too small\");\n\t\t} else {\n\t\t\tsetHint(\"Sorry,your guess is too large\");\n\t\t}\n\t\treturn false;\n\n\t}", "boolean hasCorrectAnswer();", "public String getIsguess() {\r\n return isguess;\r\n }", "public static String getHint(String secret, String guess) {\n \tint bulls=0, cows=0;\n int[] map=new int[10];\n for(int i=0; i<secret.length(); i++){\n \tif(secret.charAt(i)==guess.charAt(i)){\n \t\tbulls++;\n \t}else{\n \t\tmap[secret.charAt(i)-'0']++;\n \t}\n }\n for(int i=0; i<guess.length(); i++){\n \tif(guess.charAt(i)!=secret.charAt(i)){\n \t\tif(map[guess.charAt(i)-'0']!=0){\n \t\t\tcows++;\n \t\t\tmap[guess.charAt(i)-'0']--;\n \t\t}\n \t}\n }\n \treturn bulls+\"A\"+cows+\"B\";\n }", "@Test\n public void testUsersRealUnitcodeBestGuess() {\n String unitCode = userMappingDao.getUsersRealUnitcodeBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect unitcode found with best guess\", \"unitcode2\", unitCode);\n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "public static void paintHangman() {\n if (count == 1) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"1 incorrect guess, 6 guesses left\");\n }\n if (count == 2) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"2 incorrect guesses, 5 guesses left\");\n }\n if (count == 3) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|\");\n System.out.println(\" | / |\");\n System.out.println(\" | / |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"3 incorrect guesses, 4 guesses left\");\n }\n if (count == 4) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"4 incorrect guesses, 3 guesses left\");\n }\n if (count == 5) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | /\");\n System.out.println(\" | /\");\n System.out.println(\" | _/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"5 incorrect guesses, 2 guesses left\");\n }\n if (count == 6) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < ' |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"6 incorrect guesses, only 1 guess left!\");\n }\n if (count == 7) {\n System.out.println(\"GAME OVER!\");\n System.out.println(\"7 incorrect guesses\");\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / X X \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | __ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"RIP \" + UserName.getUserName());\n System.out.println(\"GAME OVER! The word was \" + CategorySelector.word);\n }\n }", "public boolean computerGuess()\r\n\t{\r\n\t\tboolean isWhite;\r\n\t\tint randomBool = (int) (Math.random()*50);\r\n\t\tif(randomBool<25)\r\n\t\t\tisWhite = true;\r\n\t\telse\r\n\t\t\tisWhite = false;\r\n\t\twhile(newGame.containsColor(isWhite) == false)\r\n\t\t{\r\n\t\t\trandomBool = (int) (Math.random()*50);\r\n\t\t\tif(randomBool<25)\r\n\t\t\t\tisWhite = true;\r\n\t\t\telse\r\n\t\t\t\tisWhite = false;\r\n\t\t}\r\n\t\tint randomPanel = (int) (Math.random()*newGame.getUserHandLength());\r\n\t\t//System.out.println(randomPanel);\r\n\t\tint randomGuess = (int) (Math.random()*12);\r\n\t\tif(newGame.getCompHand().contains(new Panel(isWhite,randomGuess,false)))\r\n\t\t{\r\n\t\t\tif(newGame.getUserHand().getPanel(randomPanel).compareTo(new Panel(isWhite,randomGuess,false)) == 0)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isWrongUserSquare()\n {\n boolean isWrong = false;\n int aux = 0;\n \n for (int i = 0; i < BOARD_WIDTH / 2; i++)\n {\n for (int j = 0; j < BOARD_HEIGHT / 2; j++)\n {\n aux = aux + playerBoardPos[i][j];\n }\n }\n \n if (!(aux == 10)) // Si el aux no tiene un 10 significa que hay un numero repetido.\n {\n isWrong = true;\n }\n \n return isWrong;\n }", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n\r\n return null;\r\n }", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n \t//N.B. : METHOD IS SUB 25 LINES W/O SPACING AND COMMENTING\r\n \t//Base TreeMap for this method.\r\n \tTreeMap <String, ArrayList<String>> lists = new TreeMap<String, ArrayList<String>>();\r\n \t\r\n \t//Used at the very end to check if this method changed the pattern:\r\n \t//if so, then guess is correct, otherwise: wrong\r\n \tString oldPattern = pattern; \r\n \t\r\n \t//Fill lists using helper method sub.\r\n \tlists = fillLists(guess);\r\n \t\r\n \t//Create Set of Keys based on lists, helpful for operations below.\r\n \tSet <String> keys = lists.keySet();\r\n\t\r\n \t//Create ArrayList of Family Objects (class below) to be sorted by difficulty\r\n \tArrayList<families> toSort = new ArrayList<families>();\r\n \tIterator<String> it2 = keys.iterator();\r\n \twhile (it2.hasNext()) {\r\n \t\tString temp = it2.next();\r\n \t\t//Add new families object to array to be sorted\r\n \t\ttoSort.add(new families(temp, lists.get(temp)));\r\n \t}\r\n \t\r\n \t//Sort using compareTo implemented in Families class\r\n \tCollections.sort(toSort);\r\n \t\r\n \t//Determine Hardest from position in sorted ArrayList of families\r\n \t//Using helper below\r\n \tString keyOfHardest = keyOfHardest(toSort);\r\n\r\n \t//Update Pattern to keyOfHardest\r\n \tpattern = keyOfHardest;\r\n \t\r\n \t//Update WordsList\r\n \tactiveWords = lists.get(keyOfHardest);\r\n \t\r\n \t//Update numWrongGuesses if pattern is unchanged \t\r\n \tif (oldPattern.equals(pattern)) numWrongGuesses++;\r\n \t\r\n \t//Update letters Guessed (convert guess to String)\r\n \tguessesMade.add(String.valueOf(guess));\r\n \t\r\n \t//Update current guess\r\n \tthisGuess++;\r\n \t\r\n \t//Return DebugMap asked by method, using helper below\r\n \treturn debugMap(keys, lists);\r\n }", "public boolean isSpotValidForGuess(int x, int y, int guess) {\n boolean grid = doesSubGridHaveGuess(x, y, guess);\n return !grid;\n }", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\t// Introduction and random number selection between 1-10\n\t\tSystem.out.println(\"Hey you!\" + \"\\n\\n\"\n\t\t\t\t+ \"Word on the street says you're a pretty good number guesser. I beg to differ, nobody has ever guessed my number correctly in the entire history of number guessing!\"\n\t\t\t\t+ \"\\n\\n\"\n\t\t\t\t+ \"See if you can guess my number hotshot! I'm thinking of a number between 1 and 10, and no mindreading, because thats cheating!\\n\");\n\t\tint secretNum = new Random().nextInt(11 + 1);\n\t\tSystem.out.println(secretNum);\n\t\t// MainGame functionality\n\t\ttry {\n\n\t\t\tint guess = input.nextInt();\n\t\t\tint count = 0;\n\t\t\twhile (guess < 1 || guess > 10) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Hey, that's not a number between 1 and 10. You can't count let alone guess my number! Try again, but for real this time...\");\n\t\t\t\tguess = input.nextInt();\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif(guess == secretNum){\n\t\t\t\tSystem.out.println(\"So it is true what everybody says. You truly are the master number guesser. You have my respects sir, I am sorry I ever doubted you. Please take my money.\");\n\t\t\t\tSystem.exit(0); \n\t\t\t}\n\t\t\twhile (guess > 1 && guess < 10 && guess != secretNum) {\n\t\t\t\tcount++;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tSystem.out.println(\"That's your first guess? HAH!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 2) {\n\t\t\t\t\tSystem.out.println(\"Oh come on, are you even trying???\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 3) {\n\t\t\t\t\tSystem.out.println(\"Actually you're getting quite close... NOT!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 4) {\n\t\t\t\t\tSystem.out.println(\"My grandmother is a better guesser than you!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 5) {\n\t\t\t\t\tSystem.out.println(\"Okay, now this is getting embarressing.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 6) {\n\t\t\t\t\tSystem.out.println(\"You are a fake! A sham!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 7) {\n\t\t\t\t\tSystem.out.println(\"This is pathetic. Forget I even asked!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 8) {\n\t\t\t\t\tSystem.out.println(\"Wow... Honestly i'm speechless.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 9) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"I didn't even think it was possible to guess this many times and STILL not get the answer. You should be ashamed. I am reporting you to the number guessing authorities and you are going pay for wasting my time. HORRENDOUS!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InputMismatchException ex) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"You don't even know the difference between a number and a letter. Pathetic. You are no master number guesser.\");\n\t\t}\n\n\t}", "public void clearGuess() {\n\t\tthis.guessTimes = 0;\n\t}", "public int getNumGuesses() {\n\t\treturn this.guessList.length;\n\t}", "public abstract boolean testRightmostBit();", "public void isRoundOver(){\n if (redTrickScore == 5) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 1) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 0) {\n redScore += 1;\n } else if (blueTrickScore == 5) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 0) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 1) {\n blueScore += 1;\n }\n\n // reset the trick scores\n int trickSum = blueTrickScore + redTrickScore;\n if(trickSum == 5) {\n blueTrickScore = 0;\n redTrickScore = 0;\n }\n }", "public static Boolean compare(String prevGuess[], String currGuess) {\r\n for(int x = 0; x<correctCounter; x++) {\r\n if(prevGuess[x].equalsIgnoreCase(currGuess) == true) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n \r\n //returns false if the currGuess isnt in prevGuess list\r\n }", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "public static boolean isCorrectGuess( List<Character> selectedChars, \n \t char guess ) {\n boolean correctGuess = false;\n for( char c : selectedChars ) {\n if( guess == c ) {\n correctGuess = true;\n break;\n }\n }\n return correctGuess;\n }", "public abstract Boolean higherScoreBetter();", "private boolean checkForBigGameWin(){\n boolean truth = false;\n if (checkGameWin(getLettersOfAllGames())){\n truth = true;\n }\n return truth;\n }", "private void tryGuess(char letter) {\n\t\tSystem.out.println(\"=============================\");\n\t\t// if the same guess has been done before, print corresponding information\n\t\tif (this.guessedLetters.contains(letter)){\n\t\t\tSystem.out.println(\"Letter already guessed, try another one.\");\n\t\t}else {\n\t\t\t// else, update the guessedLetters\n\t\t\tthis.guessedLetters.add(letter);\n\t\t\t// if the guess is correct\n\t\t\tif(this.word.takeGuess(letter)) {\n\t\t\t\t// print corresponding information\n\t\t\t\tSystem.out.println(\"Correct letter!\");\n\t\t\t}else {\n\t\t\t\t// else, add the letter to the wrongLetters list\n\t\t\t\tthis.wrongLetters.add(letter);\n\t\t\t\t// increase the count of wrong guesses\n\t\t\t\tthis.numOfWrongGuess ++;\n\t\t\t\t// print out the corresponding information\n\t\t\t\tSystem.out.println(\"Wrong letter, better luck next turn.\");\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "public static int imminentWin(char mark) {\n\t\t// check if there is an imminent win in first row\n\t\tif (board[0][0] == mark && board[0][1] == mark && isSquareEmpty(3)) {\n\t\t\treturn 3;\n\t\t} else if (board[0][1] == mark && board[0][2] == mark\n\t\t\t\t&& isSquareEmpty(1)) {\n\t\t\treturn 1;\n\t\t} else if (board[0][0] == mark && board[0][2] == mark\n\t\t\t\t&& isSquareEmpty(2)) {\n\t\t\treturn 2;\n\t\t}\n\t\t// check if there is an imminent win in the second row\n\t\telse if (board[1][0] == mark && board[1][1] == mark && isSquareEmpty(6)) {\n\t\t\treturn 6;\n\t\t} else if (board[1][1] == mark && board[1][2] == mark\n\t\t\t\t&& isSquareEmpty(4)) {\n\t\t\treturn 4;\n\t\t} else if (board[1][0] == mark && board[1][2] == mark\n\t\t\t\t&& isSquareEmpty(5)) {\n\t\t\treturn 5;\n\t\t}\n\t\t// check if there is an imminent win in the third row\n\t\telse if (board[2][0] == mark && board[2][1] == mark && isSquareEmpty(9)) {\n\t\t\treturn 9;\n\t\t} else if (board[2][1] == mark && board[2][2] == mark\n\t\t\t\t&& isSquareEmpty(7)) {\n\t\t\treturn 7;\n\t\t} else if (board[2][0] == mark && board[2][2] == mark\n\t\t\t\t&& isSquareEmpty(8)) {\n\t\t\treturn 8;\n\t\t}\n\t\t// check if there is an imminent win in the first column\n\t\telse if (board[0][0] == mark && board[1][0] == mark && isSquareEmpty(7)) {\n\t\t\treturn 7;\n\t\t} else if (board[0][0] == mark && board[2][0] == mark\n\t\t\t\t&& isSquareEmpty(4)) {\n\t\t\treturn 4;\n\t\t} else if (board[2][0] == mark && board[1][0] == mark\n\t\t\t\t&& isSquareEmpty(1)) {\n\t\t\treturn 1;\n\t\t}\n\t\t// check if there is an imminent win in the second column\n\t\telse if (board[0][1] == mark && board[1][1] == mark && isSquareEmpty(8)) {\n\t\t\treturn 8;\n\t\t} else if (board[0][1] == mark && board[2][1] == mark\n\t\t\t\t&& isSquareEmpty(5)) {\n\t\t\treturn 5;\n\t\t} else if (board[2][1] == mark && board[1][1] == mark\n\t\t\t\t&& isSquareEmpty(2)) {\n\t\t\treturn 2;\n\t\t}\n\t\t// check if there is an imminent win in the third column\n\t\telse if (board[0][2] == mark && board[1][2] == mark && isSquareEmpty(9)) {\n\t\t\treturn 9;\n\t\t} else if (board[0][2] == mark && board[2][2] == mark\n\t\t\t\t&& isSquareEmpty(6)) {\n\t\t\treturn 6;\n\t\t} else if (board[2][2] == mark && board[1][2] == mark\n\t\t\t\t&& isSquareEmpty(3)) {\n\t\t\treturn 3;\n\t\t}\n\t\t// check if there is an imminent win along the diagonal 1\n\t\telse if (board[0][0] == mark && board[1][1] == mark && isSquareEmpty(9)) {\n\t\t\treturn 9;\n\t\t} else if (board[0][0] == mark && board[2][2] == mark\n\t\t\t\t&& isSquareEmpty(5)) {\n\t\t\treturn 5;\n\t\t} else if (board[2][2] == mark && board[1][1] == mark\n\t\t\t\t&& isSquareEmpty(1)) {\n\t\t\treturn 1;\n\t\t}\n\t\t// check if there is an imminent win along diagonal 2\n\t\telse if (board[0][2] == mark && board[1][1] == mark && isSquareEmpty(7)) {\n\t\t\treturn 7;\n\t\t} else if (board[0][2] == mark && board[2][0] == mark\n\t\t\t\t&& isSquareEmpty(5)) {\n\t\t\treturn 5;\n\t\t} else if (board[2][0] == mark && board[1][1] == mark\n\t\t\t\t&& isSquareEmpty(3)) {\n\t\t\treturn 3;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static void main(String[] args)\n {\n int answer;\n int counter = 0;\n char guessAgain;\n Random rGen = new Random();\n Scanner myScanner = new Scanner(System.in);\n int guess;\n //Let's give our number a value between 0 and 100\n answer = rGen.nextInt(201) - 100;\n do\n {\n //Let's ask them to guess\n System.out.println(\"I've picked a number between -100 and 100, inclusive.\");\n System.out.println(\"Betcha can't guess it!\");\n guess = myScanner.nextInt();\n counter++;\n System.out.println(\"Your guess: \" + guess);\n if(guess == answer)\n {\n if(counter==1)\n {\n System.out.println(\"Wow, nice guess! That was it!\");\n return;\n }\n else\n {\n System.out.println(\"Well, it's about time!\");\n return;\n }\n }\n else if(guess < answer)\n {\n System.out.println(\"Ha, nice try - too low!\");\n }\n else\n {\n System.out.println(\"Too bad, way too high.\");\n }\n System.out.println(\"Would you like to guess again? (y/n)\");\n guessAgain = myScanner.next().charAt(0);\n counter++;\n myScanner.nextLine();\n }while(guessAgain=='y');\n System.out.println(\"Well, the answer was: \" + answer);\n }", "public boolean guess(int number) {\n\t\tcountRound++;\n\t\tlastGuess = number;\n\t\t\n\t\tif(number == secret) {\n\t\t\tsetChanged();\n\t\t\tnotifyObservers(number);\n\t\t\tsetMessage(\"Wow! Correct!! I'm thinking of \"+secret+\".\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (number < secret && number >= 1) setMessage(\"Umm, \" + number + \" is too small.\");\n\t\telse if (number > secret && number <= this.upperBound) setMessage(\"Oh! \" + number + \" is too large.\");\n\t\telse setMessage(\"Oops! Please input a valid number!!\");\n\t\t\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n Random rand = new Random();\r\n int answer = rand.nextInt(10) + 1;\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"John's Guessing Game\");\r\n System.out.println(\"Guess a number between 1 and 10\");\r\n\r\n while (true) {\r\n System.out.print(\"Enter a number: \");\r\n int guess = sc.nextInt();\r\n if (guess == answer) {\r\n break;\r\n } else if (guess >= answer) {\r\n System.out.println(\"The number is lower, try again...\");\r\n } else {\r\n System.out.println(\"The number is higher, try again...\");\r\n }\r\n }\r\n System.out.println(\"You got it!!!\");\r\n }", "public boolean guess(int number) {\n\t\tif (number == secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Correct! The secret is \"+secret+\"\\n\"+\"The count is \"+ count);\n\t\t\treturn true;\n\t\t} else if (number < secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too small.\");\n\t\t} else if (number > secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too large.\");\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isGameLost() {\r\n\t\tboolean gameLost = false;\r\n\t\t\r\n\t\t//Game lost for three handed game.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.player2Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.player3Score) <= Main.loseScoreNumb) {\r\n\t\t\t\tgameLost = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Game lost for four handed single player game.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.player2Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.player3Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.player4Score) <= Main.loseScoreNumb) {\r\n\t\t\t\tgameLost = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Game lost for four handed team game.\r\n\t\tif (Main.isFourHandedTeams){\r\n\t\t\tif (Utils.stringToInt(Main.team1Score) <= Main.loseScoreNumb ||\r\n\t\t\t\t\tUtils.stringToInt(Main.team2Score) <= Main.loseScoreNumb) {\r\n\t\t\t\tgameLost = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Set Main variable.\r\n\t\tMain.isGameLost = gameLost;\r\n\r\n\t\treturn gameLost;\r\n\t}", "@LargeTest\n\tpublic void testScore_perfectEnding() {\n\t\tsolve();\n\t\tassertEquals((Integer) START_SCORE, Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "private int gameState() {\n\t\t\n\t\tint gameNotOver = 0;\n\t\tint gameOverWinnerX = 1;\n\t\tint gameOverWinnerO = 2;\n\t\tint gameOverTie = 3;\n\t\t\n\t\t\n\t\t\n\t\t//Win Vertically \n\t\t// 0 3 6 , 1 4 7 , 2 5 8\n\t\t\t\t\n\t\t//Win Horizontally\n\t\t//0 1 2 , 3 4 5 , 6 7 8 \n\t\t\t\t\n\t\t//Win Diagonally\n\t\t// 0 4 8 , 2 4 6\n\t\t\t\t\n\t\t//Assuming it's an equal grid\n\t\t\t\t\n\t\tMark winningMark = null;\n\t\t\t\t\n\t\tboolean hasFoundWinner = false;\n\t\t\t\t\n\t\tint row = 0;\n\t\tint column = 0;\n\t\t\t\t\n\t\t//Horizontal Winner Test\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\tcolumn ++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcolumn = 0;\n\t\t\trow++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Vertical Winner Test\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\n\t\twhile (!hasFoundWinner && column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\trow = 0;\n\t\t\tcolumn++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Winner Test \"\\\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Test \"/\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = COLUMN_COUNT - 1;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn--;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If there are no moves left, and there is no winner, game ends inn a tie \n\t\t\n\t\tboolean foundNoMove = false;\n\t\tfor (int i = 0; i < movesArray.length; i++) {\n\t\t\tif (movesArray[i] == NO_MOVE) {\n\t\t\t\tfoundNoMove = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!foundNoMove && !hasFoundWinner) {\n\t\t\treturn gameOverTie;\n\t\t}\n\t\t\n\t\t// If there is no winner and there are still moves left, game is not over\n\t\t\n\t\treturn gameNotOver;\n\t\t\n\t}", "java.lang.String getCorrectAnswer();", "public static void hints(int number, int guess) {\r\n int hint = 0;\r\n if (guess < number) {\r\n System.out.println(\"It's higher.\");\r\n } else { // guess > number\r\n System.out.println(\"It's lower.\");\r\n }\r\n }", "public int play(NumberGame game) {\n\t\tint max = game.getUpperBound();\n\t\tint min = 0;\n\t\tint ans;\n\t\tboolean check = false;\n\t\tdo {\n\t\t\tans = (max + min) / 2;\n\t\t\tcheck = game.guess(ans);\n\t\t\tif (game.getMessage().contains(\"small\")) min = ans;\n\t\t\telse if (game.getMessage().contains(\"large\")) max = ans;\n\t\t} while (!check);\n\t\treturn ans;\n\t}", "public boolean alreadyGuessed(char guess) {\r\n return this.guesses.contains(guess);\r\n }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }" ]
[ "0.6417335", "0.6387839", "0.6338577", "0.6296816", "0.62788653", "0.6253509", "0.6218323", "0.62075746", "0.6191702", "0.61057824", "0.6089506", "0.6083443", "0.6069047", "0.6061082", "0.60390574", "0.59910494", "0.59822524", "0.59481066", "0.5935913", "0.58740115", "0.58558935", "0.58448464", "0.584309", "0.5828372", "0.58191305", "0.57953864", "0.5788649", "0.5694555", "0.5680553", "0.5678594", "0.56762516", "0.5653787", "0.56491363", "0.56435406", "0.5593186", "0.5583532", "0.5576058", "0.55760145", "0.55728644", "0.5557281", "0.5531976", "0.552547", "0.551963", "0.54969215", "0.54964995", "0.54908246", "0.5487549", "0.5475615", "0.544777", "0.5413518", "0.5413434", "0.5407635", "0.5403222", "0.5402938", "0.5400996", "0.53889644", "0.53881556", "0.5384079", "0.5380123", "0.53760463", "0.5372829", "0.5365804", "0.5362457", "0.53624105", "0.53597665", "0.5359578", "0.53504276", "0.53486955", "0.5340596", "0.5335529", "0.53246903", "0.5323415", "0.5313421", "0.53071487", "0.5306146", "0.5301565", "0.5298818", "0.5286372", "0.5281857", "0.52805114", "0.5273644", "0.5273267", "0.5269163", "0.52676153", "0.5263766", "0.5253907", "0.52489334", "0.5246349", "0.52400964", "0.5239841", "0.5237094", "0.52329516", "0.52276766", "0.52197826", "0.5219275", "0.5219194", "0.52162343", "0.5215119", "0.5213375", "0.5212352" ]
0.689722
0
tally up number of guesses
public int guessCount(String tester, char guess) { StringBuilder r = new StringBuilder(tester); int guessCount = 0; for (int i = 0; i < tester.length(); i++) { if (r.charAt(i) == guess) { guessCount++; } } return guessCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int guessing() {\n\t\t\n\t\tSystem.out.println(\"Guess a number between 1 and 100, you have 5 trials: \");\n\t\t\n\t\tint trials = 5;\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//set a random number as the number to be guessed\n\t\tint num = (int)(100 * Math.random()) + 1;\n\t\tint points = 0;\n\t\t\n\t\t//use a flag to check if player guess the correct number or not\n\t\tboolean flag = false;\n\t\twhile ( trials > 0) {\n\t\t\tint guess = input.nextInt();\n\t\t\ttrials--;\n\t\t\tif ( guess == num ) {\n\t\t\t\tpoints = trials == 0? 20 : trials * 20;\n\t\t\t\t//System.out.println(\"You guess the number with\"+trials+\"trials left, congratulation! +\"+ (points = trials == 0? 20 : trials * 20)+\" points\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}else if ( guess < num ) {\n\t\t\t\tSystem.out.println(\"The guess is too small, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"The guess is too large, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif ( !flag ) System.out.println(\"Trials used up, + 0 points\");\n\t\treturn points;\n\t\t\n\t}", "public Main()\n {\n \n Random rand = new Random();\n int n = rand.nextInt(10);\n n+=1;\n \n Scanner sc = new Scanner(System.in);\n int i = 0;\n do {\n \n i = sc.nextInt();\n\n //System.out.println(i);\n if(i<n){\n System.out.println(\"too small\");\n if (previousNum!=i){\n count += 1;\n }\n }\n else if(i>n){\n System.out.println(\"too big\");\n if (previousNum!=i){\n count +=1;\n }\n }\n else {\n System.out.println(\"correct guess\");\n \n count +=1;\n \n }\n \n previousNum = i;\n }while (i!=n);\n System.out.println(\"it took you \"+count+\" guesses!\");\n \n }", "public int getNumGuesses() {\n\t\treturn this.guessList.length;\n\t}", "public void countPoints() {\n points = 0;\n checkAnswerOne();\n checkAnswerTwo();\n checkAnswerThree();\n checkAnswerFour();\n checkAnswerFive();\n checkAnswerSix();\n checkAnswerSeven();\n checkAnswerEight();\n checkAnswerNine();\n checkAnswerTen();\n }", "int getTries();", "static int waysToGiveACheck(char[][] board) {\n\t\tint[] pawnPos = new int[2];\n\t\tint[] bkPos = new int[2];\n\t\tint[] wkPos = new int[2];\n\t\tint[] forthPos = new int[2];\n\t\tchar fourth = 'x';\n\t\tint answerCount = 0;\n\t\tint hashCount = 0;\n\t\tfor(int board_i = 0; board_i < 8; board_i++){\n\t\t\tfor(int board_j = 0; board_j < 8; board_j++){\n\t\t\t\tswitch(board[board_i][board_j]){\n\t\t\t\tcase 35:\n\t\t\t\t\thashCount++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 80:\n\t\t\t\t\t{pawnPos[0] = board_i;\n\t\t\t\t\tpawnPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tcase 107:\n\t\t\t\t\t{bkPos[0] = board_i;\n\t\t\t\t\tbkPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tcase 75:\n\t\t\t\t\t{wkPos[0] = board_i;\n\t\t\t\t\twkPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tdefault:\n\t\t\t\t\t{forthPos[0] = board_i;\n\t\t\t\t\tforthPos[1] = board_j;\n\t\t\t\t\tfourth = board[board_i][board_j];\n\t\t\t\t\tbreak;}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint xdistPk = Math.abs(pawnPos[0] - bkPos[0]);\n\t\tint ydistPk = Math.abs(pawnPos[1] - bkPos[1]);\n\n\t\tif(xdistPk == ydistPk)\n\t\t\tanswerCount = answerCount+2;\n\t\tif(xdistPk==0)\n\t\t\tanswerCount++;\n\t\tif(ydistPk ==0)\n\t\t\tanswerCount++;\n\t\tif((xdistPk == 2 && ydistPk==1) || (xdistPk == 1 && ydistPk==2) )\n\t\t\tanswerCount++;\n\n\t\treturn answerCount;\n\n\t}", "private int getRowCountFromGuessing() {\n\t\treturn rowCountFromGuessing;\n\t}", "public int getGuessesLeft() {\r\n return (guessesAllowed - numWrongGuesses);\r\n }", "void setMaxWrongGuesses(Integer max);", "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "int reps() {\n\tint b[] = new int[64];\n\tint c = 0; /*\n\t* count of squares that are different from the current\n\t* position\n\t*/\n\tint r = 0; /* number of repetitions */\n\n\t/* is a repetition impossible? */\n\tif (fifty <= 3)\n\treturn 0;\n\n\t/* loop through the reversible moves */\n\tfor (int i = hply - 1; i >= hply - fifty - 1; --i) {\n\tif (++b[histDat[i].m.getFrom()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (--b[histDat[i].m.getTo()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (c == 0)\n\t++r;\n\t}\n\n\treturn r;\n\t}", "public void resetTally() {\n won_stayed = 0;\n won_switched = 0;\n total_stayed = 0;\n total_switched = 0;\n }", "public int tripsTest()\n\t{\n\t\tboolean trips = false;\n\t\tint index = 0, confirm = -1;\n\t\t\n\t\twhile (index<(hand.length-2) && (!trips))\n\t\t{\n\t\t\tif ((intRep[index] == intRep[index+1]) &&\n\t\t\t\t(intRep[index+1] == intRep[index+2]) &&\n\t\t\t\t(intRep[index] == intRep[index+2]) )\n\t\t\t{\n\t\t\t\thandScore = 30000;\n\t\t\t\thandScore += 3 * (100 * intRep[index]);\n\t\t\t\ttrips = true;\n\t\t\t\tconfirm = index;\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\tif (trips)\n\t\t{\n\t\t\tswitch(index)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\thandScore += (intRep[3] + intRep[4]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\thandScore += (intRep[0] + intRep[4]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn confirm;\n\t}", "public int getGuesses() {\n\t\treturn this.guesses;\n\t}", "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "public int hamming() {\n int numIncorrect = -1;\n int index = 1;\n\n for (int[] row : tiles) {\n for (int tile : row) {\n if (tile != index)\n numIncorrect++;\n index++;\n }\n }\n return numIncorrect;\n }", "public static int game(Scanner console) {\r\n Random rand = new Random();\r\n int number = rand.nextInt(MAX) + 1;\r\n System.out.println(\"I'm thinking of a number between 1 and \" + MAX + \"...\");\r\n System.out.print(\"Your guess? \");\r\n int guess = console.nextInt();\r\n int numGuesses = 1; \r\n while (guess != number) {\r\n hints(number, guess);\r\n System.out.print(\"Your guess? \");\r\n guess = console.nextInt();\r\n numGuesses++;\r\n }\r\n if (numGuesses != 1) {\r\n System.out.println(\"You got it right in \" + numGuesses + \" guesses\");\r\n } else { // numGuesses == 1\r\n System.out.println(\"You got it right in \" + numGuesses + \" guess\");\r\n }\r\n return numGuesses;\r\n }", "private void countAnswers(){\n\t\tfor(Student student: students){\n\t\t\tif(isCorrectAnswer(student.getAnswers())){\n\t\t\t\tcorrectAnswers+=1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twrongAnswers+=1;\n\t\t\t}\n\t\t}\n\t}", "public int countHandShakes(){\n\t\tif (this.getNCouples() < 1) {\n\t\t\treturn 0;\n\t\t}else if (this.getNCouples() == 1) {\n\t\t\treturn 1;\n\t\t}else{\n\t\t\tthis.setNCouples(this.getNCouples() - 1);\n\t\t\treturn (this.getNCouples() + 1) * 3 - 2 + countHandShakes();\n\t\t}\n\t}", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "long getMisses();", "public void clearGuess() {\n\t\tthis.guessTimes = 0;\n\t}", "public static void countWays() {\n\t\t//ways to climb up 7 stories if 1 to 3 steps can be taken.\n\t\t//int ways = countWaysUtil(7, 3);\n\t\tint ways = countWaysUtilDp(7, 3);\n\t\tSystem.out.println(\"ways \"+ways);\n\t}", "public int getGuessesLeft() {\r\n return 0;\r\n }", "Integer totalRetryAttempts();", "public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}", "@Override\n public String getGuess() throws TimeoutException {\n\n int count = 1;\n\n while (this.answers.size() - count >0){\n if(this.answers.get(answers.size()-count).equals(\"yes\")) {\n\n return excuteQuery(this.getQuery(\"Guess\", \"Question=\" + \"'\" + this.questions.get(questions.size() -count) + \"'\"))\n .replaceAll(\"</br>\", \"\\n\");\n }\n count++;\n }\n\n return \"no result found\\n\";\n\n\n }", "public int play(NumberGame game){\n\n System.out.println( game.toString() );\n System.out.println();\n int min = 1;\n int max = game.getUpperBound();\n int guess = min + (max - min)/2;\n while(true){\n if(game.guess(guess)){\n break;\n }else {\n\n if(game.getMessage().contains(\"small\")){\n min = guess + 1;\n }else {\n max = guess - 1;\n }\n\n guess = min + (max - min)/2;\n\n }\n\n }\n\n return guess;\n }", "public int getNumTimes();", "private void increaseAttempts() {\n attempts++;\n }", "private void tryGuess(int guess) {\n int guessAssert = guesser.assertGuess(guess);\n switch (guessAssert) {\n case 0:\n guesser.madeGuess();\n System.out.println(\"Too low. Guess again: \");\n break;\n case 1:\n guesser.madeGuess();\n System.out.println(\"Too high. Guess again: \");\n break;\n case 2:\n guesser.madeGuess();\n System.out.println(\"You got it in \"+guesser.getGuess()+\" guesses!\");\n break;\n default:\n guesser.madeGuess();\n System.out.println(\"Invalid numeric value has been entered.\");\n break;\n }\n\n }", "protected void computeUpfloatCounts(int roundNumber) {\n\t\tthis.upfloatCounts = new HashMap<>();\n\t\tfor (String playerKey : this.presentPlayerKeys) {\n\t\t\tthis.upfloatCounts.put(playerKey, new Integer(0));\n\t\t}\n\n\t\tfor (int i = 1; i < roundNumber; i++) {\n\t\t\tfor (ChesspairingPlayer upfloater : getRound(i).getUpfloaters()) {\n\t\t\t\tInteger count = this.upfloatCounts.get(upfloater.getPlayerKey()) + 1;\n\t\t\t\tthis.upfloatCounts.put(upfloater.getPlayerKey(), count);\n\t\t\t}\n\t\t}\n\t}", "public void increaseCount()\n {\n minesLeft++;\n repaint();\n if (minesLeft == 0 && minesFound == numMines)\n {\n endGame(true); //This could only trigger if the player had flagged too many squares,\n }\t\t\t\t\t\t//then went back and removed the erroneous ones.\n }", "public int play(NumberGame game) {\n\t\tint max = game.getUpperBound();\n\t\tint min = 0;\n\t\tint ans;\n\t\tboolean check = false;\n\t\tdo {\n\t\t\tans = (max + min) / 2;\n\t\t\tcheck = game.guess(ans);\n\t\t\tif (game.getMessage().contains(\"small\")) min = ans;\n\t\t\telse if (game.getMessage().contains(\"large\")) max = ans;\n\t\t} while (!check);\n\t\treturn ans;\n\t}", "public float trumpsPerGame() {\n if (totalGames() == 0) return 0;\n float res = (float) trumps / (float) (totalGames());\n return Math.round(res * 10) / 10f;\n }", "public int numberOfBoomerangs(int[][] points) {\n int re=0;\n \tfor(int i=0; i<points.length; i++){\n \t\tMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n \t\tfor(int j=0; j<points.length; j++){\n \t\t\tint x=points[i][0]-points[j][0];\n \t\t\tint y=points[i][1]-points[j][1];\n \t\t\tint dis=x*x+y*y; \t\t\t\n \t\t\tmap.put(dis, map.getOrDefault(dis, 0)+1);\n \t\t}\n \t\t\n \t\tfor(Integer cnt: map.values()){\n \t\t\tif(cnt>=2){\n \t\t\t\tre+=cnt*(cnt-1);\n \t\t\t}\n \t\t}\n \t}\n \treturn re;\n }", "public static void adjustScoreIncrement() {\n\t\tint extraPoints = 0;\n\t\tif (!Snake.warpWallOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Block.blocksOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsQuickly) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsReallyQuickly) {\n\t\t\textraPoints+=3;\n\t\t}\n\t\t// increment equals all the bonuses, starting at a minimum of 1. This decreases if user switches to easier modes. Bigness and Fastness are reduced by 1 each here to keep the amount of increase down; it could be pumped up for a really high-scoring game\n\t\tincrement = extraPoints + SnakeGame.getBigness()-1 + SnakeGame.getFastness()-1 + Snake.snakeSize/10 ;\n\t}", "public static void main(String[] args) {\n\t\tint computerNum = (int)(Math.random()*100) + 1; \r\n\t\t//Code generates a decimal -> multiple by 100 to make it a whole number ->\r\n\t\t//use int to convert to integer to cut off decimal\r\n\t\tint userGuess = -100;\r\n\t\tint guessCount = 0;\r\n\t\twhile (userGuess != computerNum && userGuess != -1) {\r\n\t\t\tString input = JOptionPane.showInputDialog(null, \"This is a number guessing game. \"\r\n\t\t\t\t\t+ \"\\nPlease guess a whole number between 1 and 100.\");\r\n\t\t\tuserGuess = Integer.parseInt(input);\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"Your guess was \" + userGuess + \".\");\r\n\t\t\tif (userGuess == -1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You have chosen to leave the program.\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < 0 || userGuess > 100){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Your number is invalid.\"\r\n\t\t\t\t\t\t+ \" Please enter a number between 1 and 100.\");\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (userGuess > computerNum){\r\n\t\t\t\tif (userGuess - 10 <= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess a little too high, \"\r\n\t\t\t\t\t\t\t+ \" but within 10 of the number! Guess a little lower.\");\r\n\t\t\t\t\t//guessCount ++; \r\n\t\t\t\t\t//return guessCount;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was too high! \"\r\n\t\t\t\t\t\t\t+ \"Make a lower guess.\");\r\n\t\t\t\t\t//guessCount ++;\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < computerNum) {\r\n\t\t\t\tif (userGuess + 10 >= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was a little too low, \"\r\n\t\t\t\t\t\t\t+ \"but within 10 of the number! Guess a little higher.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showConfirmDialog(null, \"Your guess was too low!\"\r\n\t\t\t\t\t\t\t+ \" Make a higher guess.\");\t\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Yay! You guessed correctly!\");\r\n\t\t\t}\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"# = \" + computerNum +\r\n\t\t\t\t\t//\"# of guesses = \" + guessCount);\r\n\t\t}\r\n\t\tJOptionPane.showMessageDialog(null, \"The random number was: \" + computerNum +\r\n\t\t\t\t\"\\nIt took you \" + guessCount + \" guesses.\");\r\n\r\n\t}", "private static int howManyDigitsMatch(UNumber newGuess, UNumber oldGuess) {\r\n\t\t\t// If the characteristics is not the same, the digits in the mantissa do not matter\r\n\t\t\tif (newGuess.getCharacteristic() != oldGuess.getCharacteristic()) return 0;\r\n\t\t\t\r\n\t\t\t// The characteristic is the same, so fetch the mantissas so we can compare them\r\n\t\t\tbyte[] newG = newGuess.getMantissa();\r\n\t\t\tbyte[] oldG = oldGuess.getMantissa();\r\n\t\t\t\r\n\t\t\t// Computer the shorter of the two\r\n\t\t\tint size = newGuess.length();\r\n\t\t\t//System.out.println(size);\r\n\t\t\tint otherOne = oldGuess.length();\r\n\t\t\tif (otherOne < size) \r\n\t\t\t\tsize = otherOne;\r\n\t\t\t\r\n\t\t\t// Loop through the digits as long as they match\r\n\t\t\tfor (int ndx = 0; ndx < size; ndx++)\r\n\t\t\t\tif (newG[ndx] != oldG[ndx]) return ndx;\t// If the don't match, ndx is the result\r\n\t\t\t\r\n\t\t\t// If the loop completes, then the size of the shorter is the length of the match\r\n\t\t\treturn size;\r\n\t\t}", "@Override\n protected int getMaxPossibleAttempts(){\n int choiceCt = questionData.getChoices().size();\n //if there's one choice, it's intentionally obvious\n return (choiceCt == 1 ? 1 : choiceCt - 1);\n }", "public static void paintHangman() {\n if (count == 1) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"1 incorrect guess, 6 guesses left\");\n }\n if (count == 2) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"2 incorrect guesses, 5 guesses left\");\n }\n if (count == 3) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|\");\n System.out.println(\" | / |\");\n System.out.println(\" | / |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"3 incorrect guesses, 4 guesses left\");\n }\n if (count == 4) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"4 incorrect guesses, 3 guesses left\");\n }\n if (count == 5) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | /\");\n System.out.println(\" | /\");\n System.out.println(\" | _/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"5 incorrect guesses, 2 guesses left\");\n }\n if (count == 6) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < ' |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"6 incorrect guesses, only 1 guess left!\");\n }\n if (count == 7) {\n System.out.println(\"GAME OVER!\");\n System.out.println(\"7 incorrect guesses\");\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / X X \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | __ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"RIP \" + UserName.getUserName());\n System.out.println(\"GAME OVER! The word was \" + CategorySelector.word);\n }\n }", "public int numberOfBoomerangs(int[][] points) {\n\n Map<Integer, Integer> map = new HashMap<>();\n int result = 0;\n for (int i = 0; i < points.length; i++){\n for(int j = 0; j < points.length; j++){\n if(j != i){\n int distance = calcSquareDistance(points[i],points[j]);\n map.put(distance, map.getOrDefault(distance,0) + 1);\n }\n }\n for(Integer val : map.values()){\n result += (val * (val-1));\n }\n map.clear();\n }\n return result;\n }", "public void isRoundOver(){\n if (redTrickScore == 5) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 1) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 0) {\n redScore += 1;\n } else if (blueTrickScore == 5) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 0) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 1) {\n blueScore += 1;\n }\n\n // reset the trick scores\n int trickSum = blueTrickScore + redTrickScore;\n if(trickSum == 5) {\n blueTrickScore = 0;\n redTrickScore = 0;\n }\n }", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "int getFaintedPokemonCount();", "public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }", "public int play(NumberGame game) {\n\t\tboolean correct = false ; \n\t\tint guess = 0 ;\n\t\tint min = 1 ;\n\t\tint max = game.getUpperBound() ;\n\t\tdo {\n\t\tSystem.out.print(\"Your answer? \");\n\t\tguess = min+((max-min)/2); \n\t\tcorrect = game.guess(guess);\n\t\tSystem.out.println(guess);\n\t\tif(game.getMessage().equals(\"The number is too small\")) {\n\t\t\tmin = guess+1 ; \n\t\t}else if(game.getMessage().equals(\"The number is too large\")) {\n\t\t\tmax = guess-1 ;\n\t\t}\n\n\t\tSystem.out.println( game.getMessage() );\n\t\t}while(!correct);\n\t\treturn guess ;\n\t}", "private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }", "public static int numberOfRounds() {\n System.out.print(\"Entrez le nombre de rounds de cette partie : \");\n while (true) {\n try {\n int rounds = new Scanner(System.in).nextInt();\n if (rounds > 0) return rounds;\n } catch (Exception ignored) {\n }\n System.out.println(\"Entrez un entier supérieur à 0 : \");\n }\n }", "private String getClassGuess(List<String> guesses) {\n\t\t// build structures to count occurrence of unique class guesses\n\t\tArrayList<Integer> countGuesses = new ArrayList<>();\n\t\tArrayList<String> uniqueEntry = new ArrayList<>();\n\n\t\t// build list to be populated with likely guesses\n\t\tArrayList<String> highCountGuess = new ArrayList<>();\n\n\t\tfor (String check : guesses) {\n\t\t\t// if we have already seen this guess\n\t\t\tif (uniqueEntry.contains(check)) {\n\t\t\t\t// grab the index of guess, and increment count\n\t\t\t\tint sharedIndex = uniqueEntry.indexOf(check);\n\t\t\t\tint oldVal = countGuesses.get(sharedIndex);\n\t\t\t\tcountGuesses.set(sharedIndex, oldVal + 1);\n\t\t\t} else {\n\t\t\t\t// new class guess, add to uniqueEntry\n\t\t\t\tcountGuesses.add(1);\n\t\t\t\tuniqueEntry.add(check);\n\t\t\t} // end if-else\n\t\t} // end for\n\n\t\tint highestCount = 0; // largest occurrence\n\t\tfor (int i = 0; i < uniqueEntry.size(); i++) {\n\t\t\tif (countGuesses.get(i) > highestCount) {\n\t\t\t\thighCountGuess.clear();\n\t\t\t\thighCountGuess.add(uniqueEntry.get(i));\n\t\t\t} else if (countGuesses.get(i) == highestCount) {\n\t\t\t\thighCountGuess.add(uniqueEntry.get(i));\n\t\t\t} // end if-else\n\t\t} // end for\n\t\tRandom rng = new Random();\n\t\treturn highCountGuess.get(rng.nextInt(highCountGuess.size()));\n\t}", "public static int make_guess(int hits, int strikes) {\n int myguess = 1000;\n\n /*\n * IMPLEMENT YOUR GUESS STRATEGY HERE\n */\n\n //First guess is always 1122, which is suggested by Donald Knuth in Mastermind(4,6)\n if (isFirstGuess){\n isFirstGuess = false;\n myguess = 1122; //Initial guess recommended by Donald Knuth\n SOLVER.setGuess(new Code(1122, true));\n } else {\n Response response = new Response(strikes, hits);\n SOLVER.processResponse(response);\n Code guess = SOLVER.guess();\n myguess = guess.getCode();\n }\n\n return myguess;\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public int getGuessesLeft() {\r\n return this.numGuesses;\r\n }", "abstract int nextTry(String guess);", "public void checkGuess() {\n\t\tString guessText = txtInput.getText();\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check the guess for too high/too low\r\n\t\t\tint guess = Integer.parseInt(guessText);\r\n\t\t\t//too high\r\n\t\t\tif (guess > theNumber) {\r\n\t\t\t\tmessage = guess + \" was too high. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else if (guess < theNumber) {\r\n\t\t\t\tmessage = guess + \" was too low. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else {\r\n\t\t\t\tmessage = guess + \" was right! You used \" + numberOfPlayerGuesses + \" guesses. Let's play again!\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnewGame();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tlblDirections2Result.setText(\"Enter a whole number between 1 and 100.\");\r\n\t\t}\r\n\t\t\r\n\t\ttxtInput.requestFocus();\r\n\t\ttxtInput.selectAll();\r\n\t\t\r\n\t\t\r\n\t}", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "private static void findBigramCountsTuring() {\n\n\t\tbigramCountTI= new HashMap<Integer,Double>();\n\t\tdouble value;\n\t\tfor(int i:bucketCountT.keySet()){\n\t\t\tif(i==0)\n\t\t\t\tcontinue;\n\t\t\tvalue= ((i+1)*bucketCountT.getOrDefault(i+1, 0.0))/bucketCountT.get(i);\n\t\t\tbigramCountTI.put(i,value);\n\t\t}\n\t}", "private void updateRetries(int tries) {\n synchronized(this) {\n maxNum = maxNum < tries ? tries : maxNum;\n minNum = minNum < tries ? minNum : tries;\n }\n if (tries > 0 && Utils.VERBOSE) {\n System.err.println(\"Retries this round: \" + tries);\n }\n }", "private void getCorrectAnswers() {\n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\tif(randomNumbers.get(i).equals(answers.get(i)))\n\t\t\t\tcorrectAnswers++;\n\t\t}\n\t}", "public static void main(String[] args){\n Scanner keyboard = new Scanner(System.in);\n //declare variables for the answer, user's guess, and number fo guesses\n int answer;\n int guess;\n int numOfGuess = 0;\n \n boolean done = false;\n answer = (int)(100*Math.random())+1;\n \n //print an introduction that tells the user how to play this game\n System.out.println(\"Hello user! I will generate a number between 1-100 inclusive and you will try to guess it! I will tell you if your answer is too low or too high after each incorrect guess!\");\n do \n {\n System.out.print(\"Please enter your guess:\");\n guess = keyboard.nextInt();\n if (guess > answer){\n System.out.println(\"Too high!\");\n }\n else if( guess < answer){\n System.out.println(\"Too low!\");\n }\n else{\n done = true;\n }\n numOfGuess += 1;\n } while (done == false);\n \n System.out.println(\"Congratulations! You're score is \" + numOfGuess);\n if (numOfGuess >= 20){\n System.out.println(\"Rating: You are terrible at this game!\");\n }\n else if (numOfGuess >= 10 && numOfGuess <=19){\n System.out.println(\"Rating: You need more practice!\");\n }\n else if (numOfGuess >= 5 && numOfGuess <= 9){\n System.out.println(\"Rating: Not too bad, But can you get it in fewer than 5 guesses?\");\n }\n else if (numOfGuess >= 2 && numOfGuess <= 4){\n System.out.println(\"Rating: AWESOME. You win a trip to Hawaii!\");\n }\n else{\n System.out.println(\"Rating: That was pure LUCK and you know it!\");\n }\n \n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public static void startGame(Scanner console){\r\n // 1. generate new game ans the random number\r\n GuessFourDigits guess = new GuessFourDigits(4);\r\n \r\n System.out.println(\"Welcome to GuessDigits\"); \r\n System.out.println(\"-----------------------------------------\");\r\n System.out.println(\"guess the right sequence of digits in \"+guess.NUMBER_LENGTH+ \"digits number.\");\r\n System.out.println(\"with each try there will be tipp about result\");\r\n System.out.println(\"-----------------------------------------\");\r\n \r\n // declaring and initialization of loop flag\r\n boolean tipp = false;\r\n \r\n //counter of tries\r\n int counterTry = 0;\r\n \r\n do{\r\n // 2. asking User to guess\r\n System.out.println(\"Your guess: \");\r\n String usersNumber = UserInput.askUserToInsert(console);\r\n \r\n // 2a. check validity of inserted number\r\n if(!guess.validityCheckOfNumber(usersNumber)){\r\n System.out.println(\" inserted number is not valid+\\n\"\r\n + \" a 4 digit positive number, no digit repeated.\");\r\n continue;\r\n }\r\n \r\n // if inserted nummer valid, tipp counter goes up\r\n counterTry++;\r\n \r\n // 3. comparing numbers\r\n int[] comparingNum = guess.compareTheNumbers(usersNumber);\r\n \r\n // 4. giving tipps and congratulating user\r\n if(comparingNum[0] == guess.NUMBER_LENGTH){\r\n //user wins\r\n System.out.println(\"Congrats, you reach \"+usersNumber+\" in \"\r\n + counterTry+ \" tries.\\n\");\r\n tipp = true;\r\n }else{\r\n // tipp to user\r\n System.out.println(\"right number at right position: \"\r\n +comparingNum[0]+ \" right number at wrong position: \"\r\n + comparingNum[1]+ \"\\n\");\r\n }\r\n \r\n \r\n \r\n }while(!tipp);\r\n \r\n }", "public int incrementNumberWins()\n\t{\n\t\treturn myNumberWins++;\n\t}", "public void gamblerGame(int stake,int trials,int goal){\r\n\t\tint bets=0;\r\n\t\tint wins=0,loose=0;\r\n\t\tint cashPrice = stake;\r\n\t\tfor(int i=0;i<trials;i++)\r\n\t\t{\r\n\t\t\tif ((cashPrice > 0) && (cashPrice < goal)) {\t\r\n\t\t\t\tbets++;\r\n\t\t\t\tif (Math.random() > 0.5){\r\n\t\t\t\t\tcashPrice++;\r\n\t\t\t\t wins++;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcashPrice--;\r\n\t\t\t\t loose++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out.println(wins+\"wins of trials:\"+trials);\r\n\t\tSystem.out.println(loose+\"loose of trials\"+trials);\r\n\t\tSystem.out.println(\"% of wins:-\"+(wins*100)/trials);\r\n\t\tSystem.out.println(\"% of loose:-\"+(loose*100)/trials);\r\n\t\t}", "private static void playGame(int maxGuessCount) {\n Random random = new Random();\n int randomNumber = random.nextInt(50) + 1;\n\n // track user guesses and set a limit\n int userGuess;\n int guessCount = 0;\n\n // INITIALIZE GAME\n\n // the number range is modified through param when calling method validateInput\n System.out.println(\"Please type a number between 1 and 50.\");\n\n while (guessCount < maxGuessCount) {\n guessCount++;\n // put param for lowest and highest number range\n userGuess = validateInput(1, 50);\n\n if (userGuess == randomNumber) {\n System.out.println(\"That's right, you won!\");\n break;\n }\n if (userGuess < randomNumber) {\n System.out.println(\"Nope, try something higher.\" + \"\\n\");\n continue;\n } else if (userGuess > randomNumber) {\n System.out.println(\"Nope, try something lower.\" + \"\\n\");\n continue;\n }\n }\n\n // decide if game should restart or not\n System.out.println(\"\\n\" + \"Would you like to start over?\" + \"\\n\" + \"1. Yes\" + \"\\n\" + \"2. No\");\n int playAgainOrNot = validateInput(1, 2);\n\n switch (playAgainOrNot) {\n case 1:\n playAgain = true;\n break;\n case 2:\n System.out.println(\"Ok, see you next time.\");\n playAgain = false;\n break;\n }\n\n }", "private static int coinFlip() {\n\t\tint num = (Math.random() <= 0.5) ? 1 : 2; \n\t\tString answer;\n\t\tif ( num == 1) {\n\t\t\tanswer = \"h\";\n\t\t}else {\n\t\t\tanswer = \"t\";\n\t\t}\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n System.out.print(\"Enter you guess (h = heads, t = tails):\");\n String guess = input.next();\n //change the guess to lower case to accept both capital or lower case answer\n guess.toLowerCase();\n \n //gain 50 points if win the toss\n if ( guess.equals(answer)) {\n \t//System.out.println(\"You won the toss, congratulation! +50 points\");\n \treturn 50;\n }else {\n \t //System.out.println(\"Wrong guess! 0 points\");\n \t return 0;\n }\n \n\t}", "int getTotalLeased();", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tRandom rand = new Random();\n\t\tint number = rand.nextInt(100), guesses = 0;\n\t\tSystem.out.print(\"Can you guess the number? (1-100)\");\n\t\tfor(int userGuess = 0 ; userGuess != number; guesses++) {\n\t\t\tSystem.out.print(\"Guess: \");\n\t\t\tuserGuess = scan.nextInt();\n\t\t\tif(userGuess < number) {\n\t\t\t\tSystem.out.println(\"Up\");\n\t\t\t} else if(userGuess > number) {\n\t\t\t\tSystem.out.println(\"Down\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Congratulations! That is the number!\");\n\t\tSystem.out.println(\"It took you \" + guesses+1 + \" guesses!\");\n\t\tscan.close();\n\t\t\n}", "@Override\r\n\tpublic void nextGuessResult(ResultPegs resultPegs) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\t// Not used here\r\n\t}", "public static int fullHouseYahtzee(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(2, 6, result);\n int secondPairVal = score/2;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 25;\n } else {\n score = 0;\n }\n\n return score;\n }", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "@Test\r\n\tpublic void executeReinforcement() {\r\n\r\n\t\tInteger reinforcementArmy = playerOne.getStrategyType().calculateReinforcementArmy();\r\n\r\n\t\tHashSet<String> countriesOwned = playerOne.getStrategyType().gameData.gameMap\r\n\t\t\t\t.getConqueredCountries(playerOne.getStrategyType().getPlayerID());\r\n\r\n\t\tArrayList<String> countriesOwnedList = new ArrayList<>(countriesOwned);\r\n\r\n\t\tHashMap<String, Integer> expectedArmyCountPerCountryAfterReinforcement = new HashMap<>();\r\n\r\n\t\tfor (String country : countriesOwnedList) {\r\n\t\t\texpectedArmyCountPerCountryAfterReinforcement.put(country,\r\n\t\t\t\t\tplayerOne.getStrategyType().gameData.gameMap.getCountry(country).getCountryArmyCount());\r\n\t\t}\r\n\r\n\t\twhile (reinforcementArmy > 0) {\r\n\r\n\t\t\tInteger randomReinforcementCount = 0;\r\n\t\t\tInteger randomCountryIndex = random.nextInt(countriesOwnedList.size());\r\n\r\n\t\t\tString randomCountry = countriesOwnedList.get(randomCountryIndex);\r\n\r\n\t\t\twhile (randomReinforcementCount == 0) {\r\n\t\t\t\trandomReinforcementCount = random.nextInt(reinforcementArmy + 1);\r\n\t\t\t}\r\n\r\n\t\t\tInteger randomCountryArmyCountBeforeFortification = expectedArmyCountPerCountryAfterReinforcement\r\n\t\t\t\t\t.get(randomCountry);\r\n\r\n\t\t\tInteger randomCountryArmyCountAfterFortification = randomCountryArmyCountBeforeFortification\r\n\t\t\t\t\t+ randomReinforcementCount;\r\n\r\n\t\t\texpectedArmyCountPerCountryAfterReinforcement.put(randomCountry, randomCountryArmyCountAfterFortification);\r\n\r\n\t\t\treinforcementArmy -= randomReinforcementCount;\r\n\r\n\t\t}\r\n\r\n\t\tplayerOne.getStrategyType().executeReinforcement();\r\n\r\n\t\tHashMap<String, Integer> actualArmyCountPerCountryAfterReinforcement = new HashMap<>();\r\n\r\n\t\tfor (String country : countriesOwnedList) {\r\n\t\t\tactualArmyCountPerCountryAfterReinforcement.put(country,\r\n\t\t\t\t\tplayerOne.getStrategyType().gameData.gameMap.getCountry(country).getCountryArmyCount());\r\n\t\t}\r\n\r\n\t\tassertEquals(actualArmyCountPerCountryAfterReinforcement, expectedArmyCountPerCountryAfterReinforcement);\r\n\t\t// assertTrue(strongerCountryAfterReinforcement >\r\n\t\t// strongerCountryBeforeReinforcement);\r\n\r\n\t}", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n \t// check precondition: alreadyGuessed(guess)\r\n \tif (alreadyGuessed(guess)) {\r\n \t\tthrow new IllegalStateException(\"guess another letter\");\r\n \t}\r\n \tString previous = this.currPattern;\r\n \tthis.times++;\r\n \t// update letters that have been guessed so far\r\n \tthis.guesses.add(guess);\r\n \t// split words into word families\r\n \tTreeMap<String, ArrayList<String>> wordFamilies = new TreeMap<String, ArrayList<String>>();\r\n \tupdatePatterns(guess);\r\n \tArrayList<String> allPatterns = convertChar();\r\n \tTreeMap<String, Integer> results = getWordsCount(wordFamilies, allPatterns);\r\n \t// sort the wordFamilies based on difficulties\r\n \tArrayList<PatternSorter> wordFamiliesSorter = new ArrayList<PatternSorter>();\r\n \tfor (String s : wordFamilies.keySet()) {\r\n \t\tPatternSorter ps = new PatternSorter(wordFamilies.get(s), s);\r\n \t\twordFamiliesSorter.add(ps);\r\n \t}\r\n \tCollections.sort(wordFamiliesSorter);\r\n \t// update the active word list and remove irrelevant patterns\r\n \tupdateActiveWords(wordFamiliesSorter);\r\n \tcleanPatterns();\r\n \t// compare previous pattern and updated pattern, updating number of guesses left\r\n \tif (previous.equals(this.currPattern)) {\r\n \t\tthis.numGuesses--;\r\n \t}\r\n return results;\r\n }", "private void numberResults ()\r\n {\r\n int partIndex = 0;\r\n\r\n for (Result result : connection.getResultMap().keySet()) {\r\n ScorePart scorePart = (ScorePart) result.getUnderlyingObject();\r\n scorePart.setId(++partIndex);\r\n }\r\n }", "public void fix_gamesFailed() {\n this._gamesFailed -= 1;\n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "int fillCount();", "int getNewlyAvailableQuestsCount();", "@Override\n\t\t\tpublic int compare(Integer a, Integer b) {\n\t\t\t\treturn guessCount[a - 1] - guessCount[b - 1];\n\t\t\t}", "int getRepeatCount();", "public int getTotRuptures();", "public void increaseNumHits() {\n\t\tthis.numHits += 1;\n\t}", "long getNumberOfComparisons();", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\r\n if (numToGuess <= 0) { // the word was guessed\r\n if (currWord.equals(animal))\r\n animalGuessed = true;\r\n if (currWord.equals(country))\r\n countryGuessed = true;\r\n if (currWord.equals(superhero))\r\n superheroGuessed = true;\r\n wordsCorrect++;\r\n if (wordsCorrect >= 3) {\r\n gameOver = true;\r\n win = true;\r\n }\r\n }\r\n return true;\r\n }\r\n else { // wrong guess\r\n guessesLeft--;\r\n if (guessesLeft <= 0) { // round lost\r\n chancesLeft--;\r\n if (chancesLeft <= 0) {\r\n gameOver = true;\r\n win = false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public int calculateNextRound(Tournament tournament) {\r\n\t\treturn tournament.getRounds().size() + 1;\r\n\t}", "private int getNumberOfRounds(int changingAxiomsCount) {\n\t\treturn Math.min(maxRounds_,\n\t\t\t\t2 * (31 - Integer.numberOfLeadingZeros(changingAxiomsCount)));\n\t}", "public static void main(String[] args) {\n\t\tint randNum,num;\n\t\tGuessGame player=new GuessGame();\n\t\twhile(true) {\n\t\t\t//生成随机数\n\t\t\trandNum=player.RandomNum();\t\n\t\t\tSystem.out.println(\"请输入你猜的数字(你只有3次机会)\");\n\t\t\tfor(int i=3;i>0;i--) {\n\t\t\t\tnum=player.inputNum();\n\t\t\t\tif(player.isTrue(randNum, num)) {\n\t\t\t\t\tSystem.out.println(\"你猜对了,你的得分是:\"+player.counter);\n\t\t\t\t\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\tif(i-1!=0)\n\t\t\t\t\t\tSystem.out.println(\"你猜错了,你还有\"+(i-1)+\"次机会\");\n\t\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"你猜错了,已经没有机会了。\");\n\t\t\t\t\t\tSystem.out.println(\"最终得分:\"+player.counter);\n\t\t\t\t\t\tSystem.out.println(\"随机数为:\"+randNum);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"游戏结束,按“1”,重玩,按“0”退出\");\n\t\t\tif(player.inputNum()==0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tplayer.counter=0;//重置分数为0\t\t\t\n\t\t}\t\t\n\t}", "private int numberOfIncorrectFollowUp(JigsawNode jNode) {\n\t\tint s = 0;\n\t\tint dimension = JigsawNode.getDimension();\n\t\tfor (int index = 1; index < dimension * dimension; index++) {\n\t\t\tif (jNode.getNodesState()[index] + 1 != jNode.getNodesState()[index + 1])\n\t\t\t\ts++;\n\t\t}\n\t\treturn s;\n\t}", "private static int printEndDialogue(int total_guesses, int num_games, int OPTIMALGUESSCNT) {\n System.out.println(\"The maximum possible number of guesses was: \" + OPTIMALGUESSCNT);\n System.out.println(\"Your stats are as follows:\");\n System.out.println(\"Total Guesses: \" + total_guesses);\n float avg_guesses = (float)total_guesses/num_games;\n System.out.printf(\"Average Number of guesses per game: %.1f.\\n\", avg_guesses);\n\n if (avg_guesses == (OPTIMALGUESSCNT-2) || avg_guesses == (OPTIMALGUESSCNT-1)) {\n System.out.println(\"You Did A Phenomenal Job!!! Here's something for you:\");\n }\n else if (avg_guesses < (OPTIMALGUESSCNT-2)) {\n System.out.println(\"Nice job!\");\n }\n else if (avg_guesses == (OPTIMALGUESSCNT) || avg_guesses == (OPTIMALGUESSCNT+1)) {\n System.out.println(\"You did alright.\");\n }\n else {\n System.out.println(\"I'm sure you'll do better next.\");\n }\n\n System.out.println(\"My batteries are low, and it's getting dark... goodbye\");\n\n return 0;\n }", "public void calcTroops() {\r\n\t\t//Based on how many troops the player owns this will add to their spendage with a minimum of 2\r\n\t\ttroopSpendage = (players.get(turnCounter).getCountries().size()) / 3;\r\n\t\tif (troopSpendage < 3) {\r\n\t\t\ttroopSpendage = 3;\r\n\t\t}\r\n\t\t//If a player owns an entire continent, they will get a continent bonus to their spendage\r\n\t\t//these counters record how much of a continent the player owns\r\n\t\tint Kjersia = 0;\r\n\t\tint Estoveria = 0;\r\n\t\tint Moa = 0;\r\n\t\tint Shilov = 0;\r\n\t\tint Tormudd = 0;\r\n\t\tint Eschilles = 0;\r\n\t\t\r\n\t\t//increment the corresponding continent counter based on the continent value stored in the country objects the player owns\r\n\t\tfor (Country c:players.get(turnCounter).getCountries()) {\r\n\t\t\tswitch (c.getContinent()) {\r\n\t\t\tcase \"Kjersia\": Kjersia++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Estoveria\": Estoveria++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Moa\": Moa++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Shilov\": Shilov ++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Tormudd\": Tormudd++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Eschilles\": Eschilles++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If the player owns all countries in a continent (each continent has different numbers of countries), give them a corresponding troop bonus as decided by the rules of the game\r\n\t\tif (Kjersia == 4) {\r\n\t\t\ttroopSpendage += 2;\r\n\t\t}\r\n\t\tif (Estoveria == 8) {\r\n\t\t\ttroopSpendage += 5;\r\n\t\t}\r\n\t\tif (Moa == 9) {\r\n\t\t\ttroopSpendage += 6;\r\n\t\t}\r\n\t\tif (Shilov == 4) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Tormudd == 5) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Eschilles == 12) {\r\n\t\t\ttroopSpendage += 7;\r\n\t\t}\r\n\r\n\t\t//If a player owns the card and owns the coresponding country on that card they get one extra troop\r\n\t\tfor(Card C: players.get(turnCounter).getCards()) \r\n\t\t\tfor(Country co: players.get(turnCounter).getCountries())\r\n\t\t\t\tif (C.getCountry().equals(co.getName()))\r\n\t\t\t\t\ttroopSpendage++;\t\t\r\n\t\t\r\n\t\t//Updates the display of how many troops the player has to deploy\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t}", "private static int heuristic(int[] unsortedPancakes) {\n int h = 0;\n for (int i = 0; i < unsortedPancakes.length - 1; i++) {\n if (Math.abs(unsortedPancakes[i] - unsortedPancakes[i + 1]) > 1) {\n h++;\n }\n }\n return h;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the very generic game of...Guess the Number!\");\r\n\t\t\r\n\t\tScanner difficultyChoice = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Select parameters below. 1 = 1-15, 2 = 1-25, and 3 = 1-50\");\r\n\t\t\r\n\t\tString choice = difficultyChoice.nextLine();\r\n\t\t\r\n\t\tint selection = 0;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tif(choice.equals(\"1\")){\r\n\t\t\t\tselection = 1;\r\n\r\n\t\t\t} else if(choice.equals(\"2\")) {\r\n\t\t\t\tselection = 2;\r\n\r\n\t\t\t} else if(choice.equals(\"3\")) {\r\n\t\t\t\tselection = 3;\r\n\t\t\t}\r\n\t\t\tif(selection == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid entry. Please try again. Remember* 1 for 1-25, 2 for 1-50, and 3 for 1-100\");\r\n\t\t\t\tchoice = difficultyChoice.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} while(selection ==0);\r\n\t\t\r\n\t\tRandom computerNumber = new Random();\r\n\r\n\t\tint randomNum = 0;\r\n\r\n\t\tif(selection == 1){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(15);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-15. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 2){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(25);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-25. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 3){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(50);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-50. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint guessTotal = 0;\r\n\r\n\t\tRandom RandomNum = computerNumber; \r\n\r\n\t\tScanner playerGuess1 = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Please enter your first guess on the line below: \");\r\n\r\n\t\tint guess1 = playerGuess1.nextInt();\r\n\r\n\t\tif(guess1 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your first try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(guess1 != randomNum) {\r\n\t\t\tguessTotal = 1;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 2)\");\r\n\t\t\tif(guess1 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tif(guess1 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tScanner playerGuess2 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your second guess on the line below: \");\r\n\r\n\t\tint guess2 = playerGuess2.nextInt();\r\n\r\n\t\tif(guess2 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your second try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tif(guess2 != randomNum) {\r\n\t\t\tguessTotal = 2;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 1)\");\r\n\t\t\tif(guess2 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess2 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tScanner playerGuess3 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your third guess on the line below: \");\r\n\r\n\t\tint guess3 = playerGuess3.nextInt();\r\n\r\n\t\tif(guess3 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your third try!\");\r\n\t\t}\r\n\r\n\t\tif(guess3 != randomNum) {\r\n\t\t\tguessTotal = 3;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 0) Game over!\");\r\n\t\t\t/*if(guess3 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess3 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\");\r\n\t\t\tSystem.out.println(\"The correct number was \" + randomNum);\r\n\t\t}", "public void game(int set1hometeampoints, int set2hometeampoints,\n int set3hometeampoints, int set4hometeampoints, int set5hometeampoints,\n int set1awayteampoints, int set2awayteampoints, int set3awayteampoints, \n int set4awayteampoints, int set5awayteampoints)\n { \n if (set1hometeampoints == 21){\n setsWonHT ++;\n } else if(set1awayteampoints == 21){\n setsWonAT ++; \n } \n if (set2hometeampoints == 21){\n setsWonHT ++;\n } else if(set2awayteampoints == 21){\n setsWonAT ++; \n } \n if (set3hometeampoints == 21){\n setsWonHT ++;\n } else if(set3awayteampoints == 21){\n setsWonAT ++; \n }\n if (set4hometeampoints == 21){\n setsWonHT ++;\n } else if(set4awayteampoints == 21){\n setsWonAT ++; \n } \n if (set5hometeampoints == 15){\n setsWonHT ++;\n } else if(set5awayteampoints == 15){\n setsWonAT ++; \n }\n }", "public static void gambler(int stake,int trails,int goal,int bets,int win)\n\t{\n\t\tfor(int i=0;i<trails;i++)\n\t\t{\n\t\t\tint cash=stake;\n\t\t\twhile(cash>0 && cash<goal)\n\t\t\t{\n\t\t\t\tbets++;\n\t\t\t\tif(Math.random()>0.5)\n\t\t\t\t{\n\t\t\t\t\tcash++;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcash--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cash==goal)\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t}\n\t\t\tSystem.out.println(win+\" win of \"+trails);\n\t\t\tSystem.out.println(\"Percentage of game \"+100.0*win/trails);\n\t\t\tSystem.out.println(\"Average of bets \"+1.0*bets/trails);\n\t\t}\n\t}", "public static void attempts(Scanner s, int n) {\n\t\tint p = 1;\r\n\t\twhile (dif(n) > 5) {\r\n\t\t\tp++;\r\n\t\t\tSystem.out.println(\"The difference is greater than 5.\");\r\n\t\t\tSystem.out.println(\"Try it again!\");\r\n\t\t\tSystem.out.println(\"Enter the number:\");\r\n\t\t\tn = readNum(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCongrats! You succeeded in \" + p + \" attempts!\");\r\n\t\tendProgram();\r\n\t}", "private void countChange() {\n /* To make 0.00, we use 0 coins. */\n myIndices[0] = 0;\n \n /* \n * Work from subproblem $0.01 to target. \n * Because subproblems overlap, we will\n * store them and use them dynamically.\n */\n for (int curr = 1; curr <= myTarget; curr++) {\n /* \n * Adds one coin (current-next used) to\n * the preemptive minimum coins needed.\n */\n myIndices[curr] = getMinPrior(curr) + 1;\n }\n \n myMinCoins = myIndices[myTarget];\n }", "private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }" ]
[ "0.70477784", "0.66046935", "0.64927995", "0.63918424", "0.6113939", "0.6049123", "0.6018039", "0.6012162", "0.5998862", "0.59364593", "0.58731675", "0.58454704", "0.58283573", "0.5790062", "0.57801837", "0.5779441", "0.5748587", "0.57435936", "0.5714134", "0.5659138", "0.56563276", "0.5647704", "0.5634149", "0.56264937", "0.55992174", "0.5586169", "0.5585933", "0.5585283", "0.55840164", "0.5573788", "0.5559017", "0.5541583", "0.5541216", "0.55404544", "0.5528536", "0.55261934", "0.5522866", "0.551648", "0.5505032", "0.55014163", "0.55005264", "0.5498392", "0.5493518", "0.54902303", "0.5488487", "0.54871255", "0.54840505", "0.54818094", "0.54752797", "0.54747736", "0.54739696", "0.5473248", "0.54646313", "0.54631704", "0.5460491", "0.54503214", "0.54482025", "0.54379046", "0.5434271", "0.54286623", "0.5426034", "0.5424764", "0.542341", "0.5407672", "0.5406666", "0.54010075", "0.5399046", "0.5391853", "0.53845274", "0.53578895", "0.53542304", "0.53542054", "0.5348083", "0.5341627", "0.5338086", "0.5335415", "0.5325828", "0.5321987", "0.531608", "0.5312041", "0.531156", "0.52970004", "0.5294695", "0.52928185", "0.5291264", "0.52888507", "0.5287723", "0.52764094", "0.5274333", "0.52733105", "0.5266667", "0.52582806", "0.52574205", "0.5255623", "0.52500814", "0.5248108", "0.52460843", "0.5246049", "0.52399033", "0.52303636" ]
0.5457614
55
Reorders the action sequence queue, presumably to explore the most interesting action sequences first.
public interface ActionSequencePrioritizer { /** * Given the current action sequence deque, returns a new one that has * the "most interesting" sequences at the top of the deque. * Note that there is no requirement that the resulting action sequence * deque contains exactly the same elements as the given one. So you * can also use this interface for filtering out (or even adding in new) * action sequences. * * @param actionSequences the action sequences to examine. * @return the action sequences you want to run going forward. */ ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "public void swapEventQueues ()\r\n {\n myNextEventQueue.addAll(0, myCurrentEventQueue);\r\n myCurrentEventQueue.clear();\r\n\r\n LinkedList<IFiredEvent> temp = myCurrentEventQueue;\r\n\r\n myCurrentEventQueue = myNextEventQueue;\r\n // for memory efficiency, recycle the old queue\r\n myNextEventQueue = temp;\r\n myNextEventQueue.clear();\r\n }", "public void advance () {\n while (currentGroup == null ||\n (!actionIter.hasNext() && groupIter.hasNext()))\n {\n currentGroup = groupIter.next();\n actionIter = actions.iterator();\n }\n // now get the next action (assuming we're in valid state)\n currentAction = (actionIter.hasNext() ? actionIter.next() : null);\n }", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveUp() {\n exQ.moveUp(JobIdFactory.newId());\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //the first shouldent be moved\n exQ.moveUp(this.ids.get(0));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveUp(this.ids.get(1));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(1),this.runnables.get(0));\n }", "void moveLaterFutureTargetsToIterator() {moveStackToIterator(laterFutureTargets);}", "public void assignStackOrdering() {\n this.mTaskStackContainers.assignStackOrdering(getPendingTransaction());\n }", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveDown() {\n exQ.moveUp(JobIdFactory.newId());\n //the first shouldent be moved\n exQ.moveDown(this.ids.get(3));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveDown(this.ids.get(2));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(2),this.runnables.get(3));\n }", "private void movieOrder(Mnode newMovie0, int movieRank0){\n\t\tint counter = 19;\n\t\tif (movieRank0 > numMP)\n\t\t\tmoviePref[numMP] = newMovie0;\n\t\telse{\n\t\t\twhile (counter > (movieRank0-1)){\n\t\t\t\tmoviePref[counter] = moviePref[counter-1];\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tmoviePref[(movieRank0-1)] = newMovie0;\n\t\t}\n\t\tSystem.out.println(newMovie0.getName() + \" was added to wishlist\");\n\t\tnumMP++;\n\t}", "public void move(){\n\t\tint y, z;\n\t\t\n\t\tif(queueArrayGetValue(1) == null && (queueArrayGetValue(2) == null || queueArrayGetValue(3) == null)){\n\t\t\tif(queueArrayGetValue(2) == null && queueArrayGetValue(3) != null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(3), queueArrayGetValue(3));\n\t\t\t\tqueueArraySetKeyValue(3, null, null);\n\t\t\t}else if(queueArrayGetValue(2) != null && queueArrayGetValue(3) == null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(2), queueArrayGetValue(2));\n\t\t\t\tqueueArraySetKeyValue(2, null, null);\n\t\t\t}\n\t\t}else{\n\t\t\touterloop:\n\t\t\tfor(int i = 1; i < queueArrayLength(); i++){\n\t\t\t\tif(queueArrayGetValue(i) == null){\n\t\t\t\t\ty = i * 2;\n\t\t\t\t\tz = i * 2 + 1;\n\t\t\t\t\tif(y >= queueArrayLength()){\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else if(z >= queueArrayLength()){\n\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(lessThan(y,z)){\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(z), queueArrayGetValue(z));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(z, null, null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}", "public List<A> orderActions(S state, List<A> actions, P player, int depth) {\n return actions;\n }", "void moveFutureTargetsToIterator() {moveStackToIterator(newFutureTargets);}", "private static void updateOrderOnRemove( int nOrderId )\n {\n for ( GroupAction groupActionChange : getGroupActionList( ) )\n {\n int nGroupActionToUpdateOrder = groupActionChange.getOrdre( );\n\n if ( ( nGroupActionToUpdateOrder > nOrderId ) )\n {\n groupActionChange.setOrdre( nGroupActionToUpdateOrder - CONSTANT_STEP_ORDER );\n _dao.store( groupActionChange, _plugin );\n }\n }\n }", "public void sortBasedPendingJobs();", "private void updateOrder() {\n Arrays.sort(positions);\n }", "@Override\n\tpublic void postorder() {\n\n\t}", "public void changeSortOrder();", "private <E> void preOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t//System.out.println(root.value);\n\t\taction.execute(root.value);\n\n\t\tpreOrder(root.left,action);\n\t\t\n\t\tpreOrder(root.right,action);\n\t\t\n\t}", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "public void moveSort() {\r\n\t\trefX = 0;\r\n\t\tmoveSort(root);\r\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "protected void resetActionsCache() {\r\n\t\tactionsCache.clear();\r\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public void swap(){\n\t\ttempQueue = new LinkedBlockingQueue<Run>();\n\t\t\n\t\tint count = 1;\n\t\t// Loop through queue and add to the tempQueue.\n\t\twhile( !finishQueue.isEmpty() ) {\n\t\t\tRun current = finishQueue.poll();\n\t\t\tif( count == 2 ){\n\t\t\t\tsecondRunner = current;\t// Save second runner for swapping.\n\t\t\t} else {\n\t\t\t\ttempQueue.add(current);\n\t\t\t}\n\t\t\t++count;\n\t\t}\t\n\t\t\n\t\tfinishQueue.add(secondRunner);\n\t\twhile(!tempQueue.isEmpty()){\n\t\t\tRun current = tempQueue.poll();\n\t\t\tfinishQueue.add(current);\n\t\t}\n\t}", "public void insertReorderBarrier() {\n\t\t\n\t}", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "private void re_queue() {\n\n Queue<String> queue = new LinkedList<>();\n queue.offer(\"我\");\n queue.offer(\"爱\");\n queue.offer(\"刷\");\n queue.offer(\"题\");\n queue.offer(\"呵呵\");\n\n System.out.println(\"*********queue*********\");\n System.out.println(queue);\n System.out.println(\"*********queue*********\");\n System.out.println(\"查看队首元素,不改变队列结构:\" + queue.peek());\n System.out.println(queue.size());\n System.out.println(\"*********queue*********\");\n System.out.println(\"取出队首元素,改变队列结构:\" + queue.poll());\n System.out.println(queue.size());\n System.out.println(\"*********queue*********\");\n while (queue.size() > 0) {\n System.out.println(queue.poll());\n System.out.println(queue);\n }\n }", "public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }", "public void resetShuffleOrder() {\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tthis.shuffleSongIndex = -1;\n\t}", "@Override\n public int getOrder() {\n return 0;\n }", "private void arrangeIt(ActionEvent actionEvent) {\n\t\tfor (EditorSession es : MainFrame.getEditorSessions()) {\n\t\t\tif (es.getGraph() != null) {\n\t\t\t\tif ((actionEvent.getModifiers() & ActionEvent.SHIFT_MASK) > 0)\n\t\t\t\t\trestoreFrames();\n\t\t\t\tif ((actionEvent.getModifiers() & ActionEvent.CTRL_MASK) > 0)\n\t\t\t\t\ticonizeFrames();\n\n\t\t\t\tDimension desktopdim = MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t\t\t\t.getSize();\n\n\t\t\t\tint number = getOpenFrameCnt(), cnt = 0;\n\n\t\t\t\tif (number == 0)\n\t\t\t\t\tnumber = 1;\n\n\t\t\t\t// calculate frame positions\n\n\t\t\t\tswitch (order) {\n\t\t\t\t\tcase HORIZONTAL:\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(desktopdim.width * (cnt++) / number,\n\t\t\t\t\t\t\t\t\t\t\t\t0, desktopdim.width / number,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.height);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase VERTICAL:\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(0, desktopdim.height * (cnt++)\n\t\t\t\t\t\t\t\t\t\t\t\t/ number, desktopdim.width,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.height / number);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUADRATIC:\n\t\t\t\t\t\tint inRow = (int) Math.ceil(Math.sqrt(number));\n\t\t\t\t\t\tint rows = (int) Math.ceil((double) number\n\t\t\t\t\t\t\t\t\t\t\t/ (double) inRow);\n\t\t\t\t\t\tint row = 0,\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(desktopdim.width * (col + 0) / inRow,\n\t\t\t\t\t\t\t\t\t\t\t\t(row + 0) * desktopdim.height / rows,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.width / inRow, desktopdim.height\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ rows);\n\t\t\t\t\t\t\tcol++;\n\t\t\t\t\t\t\tif (col >= inRow) {\n\t\t\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t\t\t\trow++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void order_moves() {\n\t\tfor (int i = 0; i < future_moves.size(); i += 1) {\n\t\t\tArrayList<Integer> curr_smallest = future_moves.get(i);\n\t\t\tint smallest = i;\n\t\t\t\n\t\t\tfor (int j = i; j < future_moves.size(); j += 1) {\n\t\t\t\tArrayList<Integer> curr_checking = future_moves.get(j);\n\t\t\t\t\n\t\t\t\tif (curr_checking.get(1) < curr_smallest.get(1)) {\n\t\t\t\t\tcurr_smallest = curr_checking;\n\t\t\t\t\tsmallest = j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Swap the current and the smallest\n\t\t\tfuture_moves.set(smallest, future_moves.get(i));\n\t\t\tfuture_moves.set(i, curr_smallest);\n\t\t}\n\t\t\n\t}", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public void sort(){\n\t\t\n\t\tif(Q.size() != 1){\n\t\t\tArrayQueue<E> tempQueue1 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue2 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue3 = merge(tempQueue1, tempQueue2);\n\t\t\tQ.enqueue(tempQueue3);\n\t\t\tsort();\n\t\t}\n\t\t\n\t}", "private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }", "public void postOrder() {\n postOrder(root);\n }", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public void PostOrder() {\n\t\tPostOrder(root);\n\t}", "public void incrementOrder() {\n mOrder++;\n }", "private void replayNextOp() {\n\t\topNum++;\n\t\tif (opNum > ops.length) {\n\t\t\topNum = -1;\n\t\t\tupdate();\n\t\t} else if (!getExited()) {\n\t\t\tjavax.swing.SwingUtilities.invokeLater(doReplayNextOp);\n\t\t}\n\t}", "public void preOrder() {\n preOrder(root);\n }", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "void decrementOrderByOne( int nOrder, int nIdWorkflow );", "public void decrementOrder() {\n mOrder--;\n }", "private void fixQueOrder(Connection con) throws SQLException, qdbException {\n \n if(mod_type == null || mod_type.equalsIgnoreCase(MOD_TYPE_TST)|| mod_type.equals(MOD_TYPE_SVY) || mod_type.equals(MOD_TYPE_EVN)) {\n //only standard test (TST) needs to fix que order bt its nature\n //for other module type, nothing should have been fixed\n //therefore try to fix the que order if the module tpye is unknown\n PreparedStatement stmt = null;\n try {\n //get the module's questions\n Vector vQue = dbResourceContent.getChildAss(con, mod_res_id);\n for(int i=0; i<vQue.size(); i++) {\n dbResourceContent rcn = (dbResourceContent) vQue.elementAt(i);\n if(rcn.rcn_order != i+1) {\n //if the que is in order, update it\n rcn.rcn_order = i+1;\n rcn.updOrder(con);\n }\n }\n } finally {\n if(stmt!=null) {stmt.close();}\n }\n }\n return;\n }", "protected void fastReTx() {\n\t\tActualSegment unackCur = unackHead;\n\n\t\twhile(unackCur != null) {\n\t\t\teventQueue.remove(unackCur);\n\t\t\tpipe.write(unackCur);\n\t\t\tunackCur = unackCur.next;\n\t\t}\n\t}", "private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }", "protected void resetSequence() {\n doQuery(\"ALTER SEQUENCE feedentryqueue_id_seq RESTART\");\n }", "public synchronized void reSort(int t){\n Process[] newQueue = new Process[queue.length];\n Process temp;\n int k =0;\n for(int i = 0; i<queue.length; i++){\n temp =null;\n for(int j =0; j < pros.proSize(); j++){\n if(queue[j].getArrivalTime() > t){\n\n }else if(queue[j].getArrivalTime() <= t && temp == null){\n temp = new Process(queue[j]);\n }else if (queue[j].getArrivalTime() <= t && temp != null && (t-queue[j].getArrivalTime()) < (t-temp.getArrivalTime())){\n temp = queue[j];\n } else if (queue[j].getArrivalTime() <= t && queue[j].getArrivalTime() == temp.getArrivalTime() && queue[j].getId() < temp.getId()){\n temp = queue[j];\n }\n\n }\n if(temp != null){\n newQueue[k++] = temp;\n pros.remove(temp.getId());\n }\n }\n if(pros.proSize() > 0){\n for(int i=0; k<queue.length; i++){\n if(notInArray(queue[i], newQueue)){\n newQueue[k++] = queue[i];\n pros.remove(queue[i].getId());\n }\n }\n }\n //pass newly organized queue to the queue variable\n queue = newQueue;\n //re-insert processes into the arraylist\n for(int i = 0; i< queue.length; i++){\n pros.addPro(queue[i]);\n }\n }", "public void clearActions() {\n internalGroup.clearActions();\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "private int move(int position) {\n\t\tremoveQueue(queues[position]);\n\t\tint angriness = queues[position].queue.poll();\n\t\tallQueues.add(queues[position]);\n\t\tif (queues[position].queue.size() > 0) {\n\t\t\tallHeads.add(queues[position]);\n\t\t}\n\t\treturn insert(angriness);\n\t}", "public void resendRequestingQueue() {\n Logger.m1416d(TAG, \"Action - resendRequestingQueue - size:\" + this.mRequestingQueue.size());\n printRequestingQueue();\n printRequestingCache();\n while (true) {\n Requesting requesting = (Requesting) this.mRequestingQueue.pollFirst();\n if (requesting == null) {\n return;\n }\n if (requesting.request.getCommand() == 2) {\n this.mRequestingQueue.remove(requesting);\n this.mRequestingCache.remove(requesting.request.getHead().getRid());\n } else {\n requesting.retryAgain();\n sendCommandWithLoggedIn(requesting);\n }\n }\n }", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "@Override\n\tpublic void reorganize() {\n\n\t}", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "@Override\n public int getOrder() {\n return 4;\n }", "private void buffer(Runnable action) {\n actions.add(action);\n }", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "public void fillPlayerQueue() {\r\n for (Player p : this.players) {\r\n if (p.getLife() > 0) {\r\n this.ordering.add(p);\r\n }\r\n }\r\n }", "private Packet handleSequenceAcknowledgementAction(Packet request) {\n AcknowledgementData ackData = rc.protocolHandler.getAcknowledgementData(request.getMessage());\n rc.destinationMessageHandler.processAcknowledgements(ackData);\n\n request.transportBackChannel.close();\n return rc.communicator.createNullResponsePacket(request);\n }", "private void enqueueNewContinueStates(GraalActionState graalActionState, Action action) {\n graalActionState\n .getNewContinueStates()\n .forEach(\n continueState -> {\n proto.ExecuteAction originalExecuteAction;\n switch (action.getValueCase()) {\n case EXECUTE:\n originalExecuteAction = action.getExecute();\n break;\n case CONTINUEEXECUTE:\n originalExecuteAction = action.getContinueExecute().getOriginalExecuteAction();\n break;\n default:\n throw new AssertionError(\"Unexpected action type:\" + action.getValueCase());\n }\n if (!graalActionState.hasResultsOrError()) {\n // Mark everything as the proxy because we don't actually know which is going to\n // return the final results\n String proxyId =\n action.getProxyId().isEmpty() ? action.getId() : action.getProxyId();\n continueState.continueExecuteActionBuilder.setProxyId(proxyId);\n }\n\n continueState\n .continueExecuteActionBuilder\n .getContinueExecuteBuilder()\n .setOriginalExecuteAction(originalExecuteAction);\n\n // All ContinueExecuteActions, regardless of type, are enqueued the same way.\n ExecutionContext.getLocal()\n .getActionQueue()\n .addAsyncAction(\n continueState.continueExecuteActionBuilder.build(),\n continueState.future,\n graalActionState);\n\n graalActionState\n .getQueuedContinueStates()\n .put(continueState.continueExecuteActionBuilder.getId(), continueState);\n });\n graalActionState.getNewContinueStates().clear();\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tthis.priorityElements = Lists.newArrayList(originalElements);\r\n\t\tCollections.shuffle(priorityElements);\r\n\t\tthis.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size());\r\n\t\tthis.currentElements.addAll(originalElements);\r\n\t}", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }", "private void addToMoveQueue() {\n\t\tSimulation.INSTANCE.getMoveQueue().offer(new Move(prevNode, currentNode));\n\t}", "@Override\n public void forEachRemaining(Consumer<? super T> action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n }\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn CoreEvent.DEFAULT_ORDER - 1;\n\t}", "void shiftUp(int i) {\n\t while(i>1&&patients.get(parent(i)).compareTo(patients.get(i))<0){\n\t\t Patient p=patients.get(i);\n\t\t patients.set(i,patients.get(parent(i)));\n\t\t queueMap.put(patients.get(parent(i)).getName(), i);\n\t\t patients.set(parent(i),p);\n\t\t queueMap.put(p.getName(), parent(i));\n\t\t i=parent(i);\n\t }\n }", "public void sortByQnNum() {\r\n\t\tfor (int j = 0; j < displayingList.size() - 1; j++) {\r\n\t\t\tfor (int i = 0; i < displayingList.size() - j - 1; i++) {\r\n\t\t\t\tif (displayingList.get(i).getQnNum() > displayingList.get(i + 1).getQnNum()) {\r\n\t\t\t\t\tswapPosition(displayingList, i, i + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public void nextAction(){\n\t\tif (this.currentAction == this.onAction){\n\t\t\tthis.currentAction = this.offAction;\n\t\t\tthis.currentAction = this.currentAction.next();\n\t\t\tthis.lastOffDelay = this.currentAction.getCurrentLapsTime();\n\t\t}else{\n\t\t\tthis.currentAction = this.onAction;\n\t\t\tthis.currentAction = this.currentAction.next();\n\t\t\tthis.currentAction.spendTime(this.lastOffDelay);\n\t\t}\n\t}", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }", "private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }", "public void reorganizeNote() {\n note = Position.orderList(note);\n }", "public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}", "protected void printQueue()\r\n\t{\r\n\t\tint south = 1;\r\n\t\tint west = 2;\r\n\t\tint midwest = 3;\r\n\t\t\r\n\t\tgetPriorityHeader(south);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplaySouth();\r\n\t\t\r\n\t\tgetPriorityHeader(west);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplayWest();\r\n\t\t\r\n\t\tgetPriorityHeader(midwest);\r\n\t\tSystem.out.println(State.getHeader());\r\n\t\tdisplayMidwest();\r\n\t}", "void reverse()\n\t{\n\t\tint a;\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\telse\n\t\t{\t\n\t\t\ta = dequeue();\n\t\t\treverse(); \n\t\t\tenqueue(a);\n\t\t}\n\t}", "protected void processOrder( Game game )\n {\n }", "public void postorder() {\n\t\tpostorder(root);\n\t}", "protected void setDisplayOrder(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tInteger displayOrder = rs.getInt(UiActionTable.COLUMN_DISPLAY_ORDER);\n\t\t\n\t\tif(displayOrder == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setDisplayOrder(displayOrder);\n\t}", "protected void takeAction() {\n lastAction = System.currentTimeMillis();\n }", "private void archive(final ImmutableSortedSet<T> aMessages) {\n _history.apply(new Syncd.Transformer<ImmutableSortedSet<T>, ImmutableSortedSet<T>>() {\n public Tuple<ImmutableSortedSet<T>, ImmutableSortedSet<T>> apply(ImmutableSortedSet<T> aBefore) {\n ImmutableSortedSet<T> myRevisedHistory;\n\n if ((aBefore.size() + aMessages.size() > _maxHistory)) {\n LinkedList<T> myCompleteHistory = new LinkedList<>(aBefore);\n myCompleteHistory.addAll(aMessages);\n myRevisedHistory = new ImmutableSortedSet.Builder<>(new MessageComparator<T>()).addAll(\n new TreeSet<>(myCompleteHistory.subList(myCompleteHistory.size() - _maxHistory,\n myCompleteHistory.size()))).build();\n\n } else {\n myRevisedHistory = new ImmutableSortedSet.Builder<>(\n new MessageComparator<T>()).addAll(aBefore).addAll(aMessages).build();\n }\n\n return new Tuple<>(myRevisedHistory, myRevisedHistory);\n }\n });\n }", "public void preorder() {\n\t\tpreorder(root);\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "private void calculateActions() {\n\n //Generate All Possible Moves In Tree\n this.possibleMoves.clear();\n this.possibleRotation = 0;\n Thread instance = new Thread(this);\n instance.start();\n try {\n instance.join();\n } catch (InterruptedException e) {}\n\n //Choose Best Move From List\n double [] move = chooseBestMove(possibleMoves);\n\n //Calculate Actions from this move and push to queue\n generateActions(move);\n }", "private void workOnQueue() {\n }", "public void reorderQueuedQuestions(Long playerId, List<Integer> newOrder) {\r\n\t\tPlayer player = lookupPlayer(playerId);\r\n\r\n\t\t// check for invalid ids\r\n\t\tfor (Integer id : newOrder) {\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\t\tif (qq.getQuestion().getId()==id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tlogger.error(\"Invalid question id in reorder. id=\"+id);\r\n\t\t\t\tthrow new TrivolousError(\"Invalid question id \" + id);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// rerank by new order and make list of not found ids to delete\r\n\t\tArrayList<QueuedQuestion> qqsToBeDeleted = new ArrayList<QueuedQuestion>(); \r\n\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\tboolean found = false;\r\n\t\t\tint qid = qq.getQuestion().getId();\r\n\t\t\tint rank = 1;\r\n\t\t\tfor (Integer id : newOrder) {\r\n\t\t\t\tif (qid == id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\trank++;\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tqqsToBeDeleted.add(qq);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// reorder based on new order\r\n\t\t\t\tqq.setRank(rank);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// delete separately to prevent concurrent mod error\r\n\t\tfor (QueuedQuestion qq : qqsToBeDeleted) {\r\n\t\t\tquestionRemove(player, qq);\r\n\t\t}\r\n\t}", "private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }" ]
[ "0.7011788", "0.5916189", "0.5759197", "0.555722", "0.5552515", "0.5492171", "0.5434178", "0.5409177", "0.53885084", "0.53845793", "0.5378345", "0.5350243", "0.5336967", "0.52873254", "0.52751315", "0.5255823", "0.5238144", "0.5203841", "0.5194587", "0.5194175", "0.5188333", "0.51758295", "0.51711524", "0.51686585", "0.5162077", "0.51545215", "0.51000875", "0.5099344", "0.5097316", "0.50896496", "0.50879616", "0.5085357", "0.50810975", "0.50770044", "0.50767434", "0.50713253", "0.50674623", "0.5059122", "0.50536007", "0.50531465", "0.50514203", "0.5049979", "0.5041865", "0.5039205", "0.5037323", "0.5030155", "0.50258565", "0.5024083", "0.50214136", "0.5015363", "0.49995995", "0.49833044", "0.49822864", "0.49748832", "0.4972914", "0.49677774", "0.49621686", "0.49510947", "0.49501362", "0.49299517", "0.4920309", "0.49120608", "0.49041906", "0.48981023", "0.48875728", "0.48862344", "0.48843297", "0.48823693", "0.48819637", "0.48814967", "0.48766935", "0.48764342", "0.4863905", "0.4862693", "0.48583096", "0.485612", "0.4848146", "0.48431098", "0.48399258", "0.48335987", "0.48273194", "0.48250958", "0.48223522", "0.48211715", "0.48181885", "0.48002702", "0.47914365", "0.47867683", "0.47847852", "0.47751474", "0.47734398", "0.47628155", "0.47618732", "0.47611228", "0.47485", "0.47415283", "0.47351095", "0.47345975", "0.47305018", "0.47296056" ]
0.62718284
1
Given the current action sequence deque, returns a new one that has the "most interesting" sequences at the top of the deque. Note that there is no requirement that the resulting action sequence deque contains exactly the same elements as the given one. So you can also use this interface for filtering out (or even adding in new) action sequences.
ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ActionSequencePrioritizer {\n\n /**\n * Given the current action sequence deque, returns a new one that has\n * the \"most interesting\" sequences at the top of the deque.\n * Note that there is no requirement that the resulting action sequence\n * deque contains exactly the same elements as the given one. So you\n * can also use this interface for filtering out (or even adding in new)\n * action sequences.\n * \n * @param actionSequences the action sequences to examine.\n * @return the action sequences you want to run going forward.\n */\n ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);\n}", "public T peekBest();", "public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "@Override\n public AmortizedDeque<T> popFront() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return new AmortizedDeque<>(head.popFront(), tail);\n }", "public IClause uncheckedFront() {\n assert back!=front : \"Deque is empty\";\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public DVDPackage front() {\n\t\treturn queue.peek();\n\t}", "public IClause popFront() {\n if (back==front)\n \tthrow new BufferUnderflowException();\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "public int peekFront();", "protected PuzzleState popFrontier()\r\n\t{\n\t\tPuzzleState thisState = Frontier.pop();\r\n\t\t// Add it to the list of searched states, so that it isn't searched again\r\n\t\tSearched.add(thisState);\r\n\t\t\r\n\t\treturn thisState;\r\n\t}", "public AscriptionVisitor pop() {\n return outer;\n }", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "public Action getBestAction() {\n long startTime = System.currentTimeMillis();\n\n // Continue iterating through the search algorithm until the time limit\n // is reached\n while (System.currentTimeMillis() < startTime + timeLimit) {\n Node newNode = selectAndExpandNewNode();\n double randomPlayout = simulateRandomPlayout(newNode);\n backPropagate(newNode, randomPlayout);\n }\n\n // Technically this function will take us slightly over timeLimit, but\n // that's why a buffer is removed from timeLimit when passed to this\n // class\n return bestActionFromFinishedTree();\n }", "public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}", "public int dequeueFront();", "public int peek() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n return s2.peek();\n }", "public IClause front() {\n if (back==front)\n throw new BufferUnderflowException();\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public int peek() {\n\t\tif(output.isEmpty()){\n\t\t\twhile(!input.isEmpty()){\n\t\t\t\toutput.push(input.pop());\n\t\t\t}\n\t\t}\n\t\treturn output.peek();\n\t}", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "public Event dequeue() {\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null){\n\t\t\treturn null;\n\t\t}else if(timeoutSet.peek() == null && eventSet.peek() != null){\n\t\t\treturn eventSet.poll();\n\t\t}else if(eventSet.peek() == null && timeoutSet.peek() != null){\n\t\t\treturn timeoutSet.poll();\n\t\t}else if(eventSet.peek().getTime() < timeoutSet.peek().getTime()){\n\t\t\treturn eventSet.poll();\n\t\t}else if(eventSet.peek().getTime() >= timeoutSet.peek().getTime()){\n\t\t\treturn timeoutSet.poll();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private PriorityQueue<PCB> newRemainingQueue() {\n\n\t\t// Comparator for sorting low priorities first\n\t\tComparator<PCB> byLowestPriority =\n\t\t\t(p1, p2) -> new Integer(p1.getPriority()).compareTo(p2.getPriority());\n\n\t\treturn new PriorityQueue<>(byLowestPriority);\n\t}", "UAction nextAction() { What should we do next? Override this for custom AI.\n //\n updateSeenEntities();\n UAction bestAction = null;\n float bestUrgency = 0f;\n int bc=0;\n for (UBehavior behavior : behaviors) {\n bc++;\n UAction action = behavior.getAction(this);\n if (action != null) {\n if (bestAction == null) {\n bestAction = action;\n bestUrgency = behavior.getCurrentUrgency();\n } else if (behavior.getCurrentUrgency() > bestUrgency) {\n bestAction = action;\n bestUrgency = behavior.getCurrentUrgency();\n }\n }\n }\n return bestAction;\n }", "public AnyType dequeue() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\tAnyType prevHeader = header.next.data; // assign back to header\n\t\theader.next = header.next.next;\n\t\tif (empty()) {\n\t\t\tback = header.next;\n\t\t}\n\t\treturn prevHeader; // if not return old header, check to see if removed\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "static <T> Function<T, T> peek(Consumer<T> action) {\n return t -> {\n action.accept(t);\n return t;\n };\n }", "public IClause uncheckedPopBack() {\n \t\tassert back!=front : \"Deque is empty\";\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "private Action bestActionFromFinishedTree() {\n return Collections.max(validActionsDiscretized, Comparator.comparing(\n c -> root.getActionReward(c) / (double) root.getActionVisits(c)));\n }", "public int peekRear();", "public Item peek(){\n if(isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n return first.item;\n }", "public E peekFront();", "public Message peek() \n { \n return elements[head]; \n }", "public E peek(){\n return front!=rear?(E) data[(int)((front) & (max_size - 1))]:null;\n }", "public Item dequeue() {\n\t\tItem i = first.item;\n\t\tfirst = first.next;\n\t\treturn i;\n\t}", "T dequeue() {\n return contents.removeFromTail();\n }", "public E dequeue() {\n\t\treturn list.removeFirst();\n\t}", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "public int peek() {\n while(!stack.isEmpty()) container.push(stack.pop());\n int res = container.peek();\n while(!container.isEmpty()) stack.push(container.pop());\n return res;\n }", "public Object dequeue(){\r\n return super.remove(size()-1);\r\n }", "public E peekFirst();", "public E dequeue() {\n return pop();\n }", "public int peek() {\n \tint l1 = s1.size();\n \tfor(int i=0;i<l1;i++){\n \ts2.push(s1.pop());\n }\n \tint s = s2.peek();\n \tint l2 = s2.size();\n \tfor(int i=0;i<l2;i++){\n \ts1.push(s2.pop());\n }\n \treturn s;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Can not call removeFirst() on an empty deque\");\n }\n\n Item item = first.item;\n first = first.next;\n n--;\n if (isEmpty()) {\n last = null;\n }\n else {\n first.prev = null;\n }\n return item;\n\n }", "protected ClusterMerger updateBeam()\n {\n for (boolean process = false; !process; )\n {\n ClusterMerger top = beam.getFirst();\n process = top.getDepth() >= maxDepth;\n\n if (!process)\n {\n ClusterMerger merger = top.next();\n if (merger != null) beam.addFirst(merger);\n else process = true;\n }\n }\n\n return beam.removeFirst();\n }", "public E peek() {\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn apq.get(1);\n\t}", "public IClause uncheckedBack() {\n assert back!=front : \"Deque is empty\";\n\n return tab[back];\n }", "public Object peek() {\n\t\tcheckIfStackIsEmpty();\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tObject lastElement = collection.get(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "@Override\n public T dequeue() {\n T frontChar = myQ[0];\n\n for(int i = 1; i < myLength; i++) {\n myQ[i - 1] = myQ[i];\n }\n myLength--;\n return frontChar;\n }", "Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "public E removeFirst() {\n return pop();\n }", "public Estimate poll() {\n Estimate e = null;\n Estimate[] newQueue = new Estimate[queue.length];\n \n if (last > 0) {\n for(int i = 0; i < last; i ++) {\n newQueue[i] = queue[i +1]; \n }\n }\n last--;\n e = queue[0];\n queue = newQueue;\n \n return e;\n }", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "public static void queueVsStack() {\n\n Queue<String> collection1 = new PriorityQueue<>();\n collection1.add(\"banana\");\n collection1.add(\"orange\");\n collection1.add(\"apple\");\n\n //what will be printed\n System.out.println(collection1.iterator().next());\n\n Deque<String> collection2 = new ArrayDeque<>();\n collection2.addFirst(\"banana\");\n collection2.addFirst(\"apple\");\n collection2.addFirst(\"orange\");\n\n //what will be printed\n System.out.println(collection2.iterator().next());\n\n }", "public Object peek() {return collection.get(collection.size() - 1);}", "@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}", "@Override\n public void forEachRemaining(Consumer<? super T> action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n }\n }", "default ItemStack moveOneItemTo(IInventoryComposite dest, Predicate<ItemStack> filter) {\n for (IInventoryAdapter src : this) {\n for (IInventoryAdapter dst : dest) {\n InventoryManipulator imSource = InventoryManipulator.get(src);\n ItemStack moved = imSource.moveItem(dst, filter);\n if (!InvTools.isEmpty(moved))\n return moved;\n }\n }\n return InvTools.emptyStack();\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}", "public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Trying to remove an item from an empty deque.\");\n }\n\n Item item = first.item; // save item to return\n first = first.next; // delete first node\n if (first == null) {\n last = null;\n } else {\n first.previous = null;\n }\n size--;\n if (isEmpty()) {\n last = null;\n }\n assert check();\n return item; // return the saved item\n }", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public E peek()\r\n/* 145: */ {\r\n/* 146:367 */ E[] buffer = this.consumerBuffer;\r\n/* 147:368 */ long index = this.consumerIndex;\r\n/* 148:369 */ long mask = this.consumerMask;\r\n/* 149: */ \r\n/* 150:371 */ long offset = LinkedArrayQueueUtil.modifiedCalcElementOffset(index, mask);\r\n/* 151:372 */ Object e = UnsafeRefArrayAccess.lvElement(buffer, offset);\r\n/* 152:373 */ if ((e == null) && (index != lvProducerIndex())) {\r\n/* 153: */ do\r\n/* 154: */ {\r\n/* 155:379 */ e = UnsafeRefArrayAccess.lvElement(buffer, offset);\r\n/* 156:381 */ } while (e == null);\r\n/* 157: */ }\r\n/* 158:383 */ if (e == JUMP) {\r\n/* 159:385 */ return newBufferPeek(getNextBuffer(buffer, mask), index);\r\n/* 160: */ }\r\n/* 161:387 */ return e;\r\n/* 162: */ }", "@Override\n public Integer peek() {\n return ar[pos-1];\n }", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public int peek() {\n return queue.firstElement();\n }", "@Override\n public E peek() {\n return (E)queue[0];\n }", "public Item peek() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n return first.item;\r\n }", "public Country removeFront() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tfront.previous = null;\n\t\t\t\ttemp = front.data;\n\t\t\t\tfront = front.next;\n\t\t\t} else {\n\t\t\t\tfront = end = null;\n\t\t\t\ttemp = front.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}", "public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException(\"Removing from an empty deque\");\n Node<Item> tmpFirst = first;\n Item firstItem = tmpFirst.item;\n first = tmpFirst.next;\n size--;\n if (isEmpty()) last = null;\n else first.prev = null;\n return firstItem;\n }", "public Item dequeue() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n Item removed = s[first + idx];\n s[first + idx] = null;\n if (idx == 0) first++;\n else if (idx != N-1) {\n shrink(first+idx);\n }\n N--;\n if (N == 0) first = 0;\n return removed;\n }", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ImmutableQueue<T> deQueue() {\r\n\t\tif (this.isEmpty())\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t\r\n\t\tif (!this.dequeueStack.isEmpty()) \r\n\t\t\treturn new ImmutableQueue<T>(this.enqueueStack, this.dequeueStack.getTail());\r\n\t\telse \t\t\t\r\n\t\t\treturn new ImmutableQueue<T>(ImmutableStack.empty(), this.enqueueStack.reverse().getTail());\r\n\t\t\r\n\t}", "public T peek() {\r\n return get(size() - 1);\r\n\t}", "public T dequeue() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T itemToReturn = rb[first];\n rb[first] = null;\n fillCount -= 1;\n if (isEmpty()) {\n first = 0;\n last = 0;\n return itemToReturn;\n }\n first = (first + 1) % capacity;\n return itemToReturn;\n\n // Dequeue the first item. Don't forget to decrease fillCount and update\n }", "public NodeBase<V> dequeue() {\r\n \tif(!isEmpty()){\r\n \tNodeBase<V> min=queue[0];\r\n \tint j=0;\r\n for(int i=0;i<currentSize;i++){\r\n \t if(min.getPriority()>queue[i].getPriority()){\r\n \t\t min=queue[i];\r\n \t\t j=i;\r\n \t }\r\n }\r\n for(int x=j;x<currentSize-1;x++){\r\n \t queue[x]=queue[x+1];\r\n }\r\n \r\n currentSize--;\r\n \r\n return min;\r\n \t}\r\n \telse{\r\n \t\treturn null;\r\n \t}\r\n }", "public E peek() \r\n {\r\n return list.get(getSize() - 1);\r\n }", "public Item peek() \n {\n if (isEmpty()) \n \tthrow new NoSuchElementException(\"Queue underflow\");\n \n if (stack2.isEmpty())\n \tmoveStack1ToStack2();\n \n return stack2.peek();\n }", "E dequeue();", "E dequeue();", "E dequeue();", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "public Integer peek() {\n if (hasTop)\n return top;\n top = it.next();\n hasTop = true;\n return top;\n }", "@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}", "public Item dequeue() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n int random = StdRandom.uniform(this.currentIndex);\n Item saved = this.storage[random];\n this.storage[random] = null;\n this.size--;\n this.storage[random] = this.storage[currentIndex - 1];\n this.storage[currentIndex - 1] = null;\n this.currentIndex--;\n if (this.size <= (1.0 / 4.0) * this.storage.length) {\n int ceiling = (int) ((1.0 / 2.0) * this.storage.length);\n Item[] newArray = (Item[]) new Object[ceiling];\n for (int i = 0; i < this.size; i++) {\n newArray[i] = this.storage[i];\n }\n this.storage = newArray;\n\n }\n return saved;\n\n }", "@Override\n public E dequeue() {\n if(array.isEmpty()) {\n throw new NoSuchElementException(\"Cannot dequeue from an empty queue.\");\n }\n return array.removeFirst();\n }", "public int dequeueRear();", "public Integer peek() {\n List<Integer> temp = new ArrayList<>();\n \n while(iterator.hasNext()){\n \ttemp.add(iterator.next());\n }\n \n Integer result = null;\n if(temp.size() > 0){\n result = temp.get(0);\n }\n \n iterator = temp.iterator();\n return result;\n\t}", "public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public int dequeue() {\n if (!isEmpty()){\n int e = data[first];\n count --;\n if(first == data.length-1) {\n first = 0;\n } else {\n first++;\n }\n return e;\n }\n else{\n throw new RuntimeException(\"A fila está vazia\");\n }\n }", "public E peekFront() {\r\n if (front == rear) {\r\n throw new NoSuchElementException();\r\n } else {\r\n return elem[front];\r\n }\r\n }", "private Action selectBestAction(Node node) {\n return Collections.max(validActionsDiscretized, Comparator.comparing(c -> UCTValue(c,\n node)));\n }", "public TagSequence getBestTag();", "public Action getBestAction(State state);", "public IEvent peek(){\r\n\t\treturn queue.peek();\r\n\t}", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }" ]
[ "0.67140406", "0.5160916", "0.5106746", "0.49228486", "0.48896378", "0.4849831", "0.48485392", "0.4838689", "0.48334008", "0.48243955", "0.48130372", "0.4808508", "0.47968206", "0.47569105", "0.47554216", "0.47483894", "0.46548894", "0.46389076", "0.4636616", "0.46170104", "0.45839402", "0.45811772", "0.4579634", "0.45681414", "0.45659697", "0.45644432", "0.4561281", "0.45474228", "0.45473546", "0.45457515", "0.45449987", "0.45435733", "0.45339063", "0.45155138", "0.45088613", "0.45001373", "0.4500055", "0.44924328", "0.44880304", "0.4475576", "0.44701144", "0.44665506", "0.44662645", "0.44601214", "0.445746", "0.44530058", "0.44481647", "0.44410178", "0.44369277", "0.44234654", "0.44161358", "0.44148558", "0.44119132", "0.4411032", "0.44073966", "0.44055626", "0.44032493", "0.43947792", "0.43918815", "0.43853718", "0.4385218", "0.43826452", "0.4382518", "0.43809375", "0.43727267", "0.43702513", "0.43667695", "0.43624857", "0.43622386", "0.4357431", "0.43542877", "0.43462268", "0.43444124", "0.43400398", "0.43391377", "0.43352652", "0.4330257", "0.43294537", "0.43280792", "0.43270662", "0.43213362", "0.43203026", "0.43184075", "0.43184075", "0.43184075", "0.43157035", "0.43135613", "0.43092978", "0.43069312", "0.43061614", "0.4303614", "0.43025365", "0.429686", "0.42938536", "0.42907214", "0.42903903", "0.42886826", "0.4279969", "0.42792514", "0.42790034" ]
0.540546
1
the reference hook of the spawn point (usually previous map) Primary constructor. Requires the width in tiles of the map, the height in tiles of the map, the logical width/height of map tiles, a Boolean grid of passable/impassable tiles, and a String grid of reference hooks attached to logical map tiles.
Map(int width, int height, long tileWidth, Boolean[][] clip, String[][] hooks) { this.width = width; this.height = height; this.tileWidth = tileWidth; this.clip = clip; this.hooks = hooks; hookCurrent = "default_map"; hookSpawn = "spawn"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MiniMap(Grid grid) {\n\t\tcurrent = this;\n\t\timg = new PImage(grid.cols, grid.rows);\n\t\tint x = Rogue.stage.width - WIDTH;\n\t\tthis.grid = grid;\n\t\tthis.pos = new Int2D(x, 0);\n\t\tbg = createBG();\n\t\tupdate();\n\t\tignoreDiscovered = Registry.getBoolean(\"game.clear_minimap\");\n\t}", "public Grid()\n {\n dest = new GridReference[2];\n dest[0] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.2));\n dest[1] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.8));\n //dest[2] = new GridReference(5,50);\n defaultStart = new GridReference((int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.5));\n defaultWalker = Walkers.WEIGHTED2;\n \n createField();\n \n walkers = new ArrayList<>();\n //addUnits(randDest(), randDest());\n /*for (int i = 0; i < grassPatches.length; i++)\n {\n System.out.println(i + \":\" + grassPatches[i]);\n }*/\n }", "public void setupPlainVariables_xjal()\n/* 422: */ {\n/* 423:492 */ this.mapPanel = \n/* 424:493 */ new TileMapPanel(new TileImageProvider());\n/* 425: */ }", "public MapTile() {}", "public Map(Tile[][] tiles) {\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n this.tiles = tiles;\n }", "public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public TiledMapPlus(String ref, boolean loadTileSets) throws SlickException {\r\n super(ref, loadTileSets);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "public GridMapPanel() {\n super();\n initialize();\n }", "public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}", "public SpaceHulkWorldModel(TiledMap map, int players)\r\n/* 49: */ {\r\n/* 50: 49 */ super(map);\r\n/* 51: 50 */ this.mission = false;\r\n/* 52: 51 */ this.reachablePlaces = 0;\r\n/* 53: 52 */ this.highlight = new int[getWidthInTiles()][getHeightInTiles()];\r\n/* 54: 53 */ this.walkable = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 55: 54 */ this.blocked = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 56: 55 */ this.finish = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 57: 56 */ this.door = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 58: 57 */ this.rock = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 59: 58 */ this.fire = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 60: 59 */ this.grass = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 61: 60 */ this.sand = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 62: */ \r\n/* 63: 62 */ this.reach = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 64: 64 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 65: 66 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 66: 69 */ this.walkable[x][y] = checkTileProperty(x, y, \"walkable\", \"true\");\r\n/* 67: */ }\r\n/* 68: */ }\r\n/* 69: */ }", "EnemyTile(int xGraphic, int yGraphic, int xGrid, int yGrid){\n super(xGraphic,yGraphic, xGrid, yGrid);\n }", "public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "BehaviorProcessor(SparseGrid2D grid){\n\t\tworld = grid;\n\t}", "public Map(int canvasWidth, int canvasHeight, GraphicsContext canvas, boolean grid) {\n this.canvasWidth = canvasWidth;\n this.canvasHeight = canvasHeight;\n this.correction = null;\n this.drawGrid = grid;\n this.claimedArea = new ArrayList();\n this.canvas = canvas;\n\n instance = this;\n\n // Do a first calculation of the map size\n calculateMapSize(false);\n\n playerTracking = new ArrayList();\n listeners = new ArrayList();\n }", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}", "public FireTile() {\n super();\n setUtility(5);\n }", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}", "public WallTile()\n\t{\n\t\t\n\t}", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "VolaTile(int x, int y, boolean isSurfaced, Set<VirtualZone> aWatchers, Zone zon) {\n/* 291 */ this.tilex = x;\n/* 292 */ this.tiley = y;\n/* 293 */ this.surfaced = isSurfaced;\n/* 294 */ this.zone = zon;\n/* 295 */ this.watchers = aWatchers;\n/* 296 */ checkTransition();\n/* 297 */ checkIsLava();\n/* */ }", "protected Tile(Polygon shape, int centerX, int centerY, int numSides,\r\n ColorScheme colors, int baseColorIndex, int xIndex, int yIndex){\r\n polyGon = shape;\r\n adjTiles = new Tile[numSides];\r\n colorIdx = baseColorIndex;\r\n this.colors = colors;\r\n isActive = true;\r\n x = centerX;\r\n y = centerY;\r\n this.xIndex = xIndex;\r\n this.yIndex = yIndex;\r\n highLight = TileStatus.NONE;\r\n id = idCounter;\r\n idCounter++;\r\n }", "public IsoTiledTest() {\r\n\t\tsuper(\"Isometric Tiled Map Test\");\r\n\t}", "@Override\r\n \tpublic void init(GameContainer gc) throws SlickException \r\n \t{\r\n \t\t// Initialization of map, camera, player, pathfinding\r\n \t\ttheMap = new TiledMap(\"res/tilemap01.tmx\");\r\n \t\tthePTBMap = new PropertyTileBasedMap(theMap);\r\n \t\tcamera = new Camera(0f, 0f);\r\n \t\tunitOne = new Player(64f, 64f);\r\n \t\tunitTwo = new Player(64f, 128f);\r\n \t\tpathFinder = new AStarPathFinder(thePTBMap, 100, false);\r\n \t\t\r\n \t\t// player's animation. Need a better way to deal with it\r\n \t\t\r\n \t\tint duration[] = {200, 200, 200};\r\n \t\tSpriteSheet character = new SpriteSheet(\"res/monsters.png\", tileSize, tileSize);\r\n \t\tImage[] walkUp = {character.getSubImage(6, 1), character.getSubImage(7, 1), character.getSubImage(8, 1)};\r\n \t\tImage[] walkDown = {character.getSubImage(0, 1), character.getSubImage(1, 1), character.getSubImage(2, 1)};\r\n \t\tImage[] walkLeft = {character.getSubImage(9, 1), character.getSubImage(10, 1), character.getSubImage(11, 1)};\r\n \t\tImage[] walkRight = {character.getSubImage(3, 1), character.getSubImage(4, 1), character.getSubImage(5, 1)};\r\n \t\t\r\n \t\tmovingUp = new Animation(walkUp, duration, true);\r\n \t\tmovingDown = new Animation(walkDown, duration, true);\r\n \t\tmovingLeft = new Animation(walkLeft, duration, true);\r\n \t\tmovingRight = new Animation(walkRight, duration, true);\r\n \t\t\r\n \t\tunitOne.setMovement(movingDown);\r\n \t\tunitTwo.setMovement(movingDown);\r\n \t}", "public RegularGrid() {\r\n }", "@Override\r\n\tpublic void setup() {\r\n\t\tthis.gridCells = this.world.getCells();\r\n\t\tthis.markerDrawOrders = new HashMap<Cell, Integer>();\r\n\t\tsetMarkerDrawOrders(this.gridCells);\r\n\t\t//Number of hexagons in columns and rows\r\n\t\tthis.numHexRow = this.gridCells.length;\r\n\t\tthis.numHexCol = this.gridCells[0].length;\r\n\t\t//Calculate the total width and height in pixels the hexagons take up\r\n\t\tthis.totalHexWidth = (this.numHexCol * HEX_WIDTH) + HEX_WIDTH / 2;\r\n\t\tthis.totalHexHeight = \r\n\t\t\t\t(HEX_ANGLE_HEIGHT + HEX_VERT_HEIGHT) \r\n\t\t\t\t* this.numHexRow + HEX_ANGLE_HEIGHT;\r\n\t\t\r\n\t\t//Work out which dimension take up the most space\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tthis.largestDimension = Dimensions.HORIZONTAL;\r\n\t\t} else {\r\n\t\t\tthis.largestDimension = Dimensions.VERTICAL;\r\n\t\t}\r\n\t\tsize(PIXEL_WIDTH, PIXEL_HEIGHT);\r\n\t\t\r\n\t\t//Gives the garbage clearer time to free up memory before the \r\n\t\t//background buffer is recalculated\r\n\t\tthis.backgroundBuffer = null; \r\n\t\t//Of screen buffer to where the background tiles of the ant world a are\r\n\t\t//drawn. This means that each time the buffer is drawn to the screen,\r\n\t\t//rather than all the tiles which makes it much faster!\r\n\t\tthis.backgroundBuffer = createGraphics(this.totalHexWidth,\r\n\t\t\t\tthis.totalHexHeight, P2D);\r\n\t\t\r\n\t\tsmooth(); //Turn on anti aliasing\r\n\t\tframeRate(10); //Turn down the frame rate for less processing power\r\n\t\t//Text variables\r\n\t\ttextFont(this.courierFont, 30);\r\n\t\tfill(255); //Fill colour (white) for the text\r\n\t\tthis.zoomer = new ZoomPan(this); // Initialise the zoomer\r\n\t\tthis.zoomer.allowZoomButton(false); \r\n\t\tsetInitialPanAndZoom(); //Set the initial zoom and pan\r\n\t\tupdateImageScale(); //Update the image scales because zoom scale has\r\n\t\t\t\t\t\t\t//been changed\r\n\t\tbufferWorld(); //Buffer the background tiles\r\n\t}", "public lv3()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //super(950, 600, 1); \n //prepare();\n prepare();\n stopped();\n started();\n }", "@Override\r\n\tpublic void gameInit() \r\n\t{\r\n\t\tfont = new Font(\"Courier\", Font.BOLD, 14);\r\n\t\tfontInfo = this.getFontMetrics(font);\r\n\t\tkeys = new KeyValues();\r\n\t\t\r\n\t\tbackground.loadImage(\"/images/sky.png\");\r\n\t\ttileset = new TileSet(10,10,32,32);\r\n\t\ttileset.loadTiles(\"/images/test_tiles.png\");\r\n\t\tmap = new Map(tileset, 20, 50);\r\n\t\tmap.readMap(\"res/maps/testmap2.txt\");\r\n\t\t\r\n\t\tcamera.setDimensions(getScreenWidth(), getScreenHeight());\r\n\t\tcamera.setXRange(0, map.getWidth() - getScreenWidth());\r\n\t\tcamera.setYRange(0, map.getHeight() - getScreenHeight());\r\n\t}", "public BoardFactory(PacManSprites spriteStore) {Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\");this.sprites = spriteStore; Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\", \"689\");}", "public levelTwo()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n prepare();\n }", "public static void main(String[] args) {\n new Tiles();\n }", "public TileGIS(Engine engine, Agent owner, AgentArrayList<? extends TileGIS> collection)\n/* 337: */ {\n/* 338:416 */ super(engine, owner, collection);\n/* 339: */ }", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public TiledMapPlus(String ref) throws SlickException {\r\n this(ref, true);\r\n }", "@Override\n protected void generateTiles() {\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public TiledMapPlus(String ref, String tileSetsLocation) throws SlickException {\r\n super(ref, tileSetsLocation);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "public ClassTester()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(new NonScrollingBackground(\"Stage - 0.jpg\"),300,131);\n addObject(playerMage,35,170);\n addObject(new AbilityDisplayer(playerMage),125,268);\n }", "@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}", "public Manual(MainMenu mainMenu)\n { \n // Create a new world with 1330x2048 cells with a cell size of 1x1 pixels.\n super(1330, 2048, 1); \n this.mainMenu = mainMenu;\n setThisManual();\n }", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }", "private void initiateProjectile() {\n\t}", "public Layer() {\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tfor (int j = 0; j < 16; j++) {\n\t\t\t\tgrid[i][j] = false;\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }", "protected Tile() {\n super();\n }", "public GridMapCompassMoves() {\n super();\n }", "@Override\n\tprotected void generateTiles() {\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic static void main(String[] args) {\n\t\tField field = new Field(0,6);\n\t\tArrayList<TileOnPositionEX> move = new ArrayList<TileOnPositionEX>();\n\t\t\n\t\t// Colors\n\t\tint blue \t= 1;\n\t\tint green \t= 5;\n\t\tint purple \t= 4;\n\t\tint orange \t= 3;\n\t\tint red \t= 0;\n\t\tint yellow \t= 2;\n\t\t// Shapes\n\t\tint circle\t= 0;\n\t\tint club \t= 11;\n\t\tint diamond\t= 3;\n\t\tint square\t= 1;\n\t\tint star\t= 7;\n\t\tint sun\t\t= 4;\n\t\t\n\t\t/* TEST CASE\tTILEONPOSITION(X,Y,TILE)\tTILE(COLOR,SHAPE,UNIQUEID) */\n\t\t// CAUTION: EVERY TILEONPOSITION WITH THE SAME TILE HAS CURRENTLY THE SAME UNIQUEID!\n\t\t\n\t\t// BLUE\n\t\tTile blueCircle\t\t= new Tile(blue,circle,0);\n\t\tTile blueClub\t\t= new Tile(blue,club,1);\n\t\tTile blueDiamond\t= new Tile(blue,diamond,2);\n\t\tTile blueSquare\t\t= new Tile(blue,square,3);\n\t\tTile blueStar\t\t= new Tile(blue,star,4);\n\t\tTile blueSun\t\t= new Tile(blue,sun,5);\n\t\t// GREEN\n\t\tTile greenCircle\t= new Tile(green,circle,6);\n\t\tTile greenClub\t\t= new Tile(green,club,7);\n\t\tTile greenDiamond\t= new Tile(green,diamond,8);\n\t\tTile greenSquare\t= new Tile(green,square,9);\n\t\tTile greenStar\t\t= new Tile(green,star,10);\n\t\tTile greenSun\t\t= new Tile(green,sun,11);\n\t\t// PURPLE\n\t\tTile purpleCircle\t= new Tile(purple,circle,12);\n\t\tTile purpleClub\t\t= new Tile(purple,club,13);\n\t\tTile purpleDiamond\t= new Tile(purple,diamond,14);\n\t\tTile purpleSquare\t= new Tile(purple,square,15);\n\t\tTile purpleStar\t\t= new Tile(purple,star,16);\n\t\tTile purpleSun\t\t= new Tile(purple,sun,17);\n\t\t// ORANGE\n\t\tTile orangeCircle\t= new Tile(orange,circle,18);\n\t\tTile orangeClub\t\t= new Tile(orange,club,19);\n\t\tTile orangeDiamond\t= new Tile(orange,diamond,20);\n\t\tTile orangeSquare\t= new Tile(orange,square,21);\n\t\tTile orangeStar\t\t= new Tile(orange,star,22);\n\t\tTile orangeSun\t\t= new Tile(orange,sun,23);\n\t\t// RED\n\t\tTile redCircle\t\t= new Tile(red,circle,24);\n\t\tTile redClub\t\t= new Tile(red,club,25);\n\t\tTile redDiamond\t\t= new Tile(red,diamond,26);\n\t\tTile redSquare\t\t= new Tile(red,square,27);\n\t\tTile redStar\t\t= new Tile(red,star,28);\n\t\tTile redSun\t\t\t= new Tile(red,sun,29);\n\t\t// YELLOW\n\t\tTile yellowCircle\t= new Tile(yellow,circle,30);\n\t\tTile yellowClub\t\t= new Tile(yellow,club,31);\n\t\tTile yellowDiamond\t= new Tile(yellow,diamond,32);\n\t\tTile yellowSquare\t= new Tile(yellow,square,33);\n\t\tTile yellowStar\t\t= new Tile(yellow,star,34);\n\t\tTile yellowSun\t\t= new Tile(yellow,sun,35);\n\t\t\n\t\tmove.add(new TileOnPositionEX(0,1,redCircle));\n\t\tmove.add(new TileOnPositionEX(0,0,blueCircle));\n\t\t\n\t\tfield.processMove(move, ControlParameters.Server);\n\t\tArrayList<TileOnPositionEX> tilesOnField = field.getTilesOnBoard();\n\t\tmove.clear();\n\t\t\n\t\tmove.add(new TileOnPositionEX(2,1,redClub));\n\t\tmove.add(new TileOnPositionEX(4,1, redStar));\n\t\tmove.add(new TileOnPositionEX(3,1, redDiamond));\n\t\tmove.add(new TileOnPositionEX(1,1, redSun));\n\t\tmove.add(new TileOnPositionEX(5,1, redSquare));\n\t\tfield.processMove(move, ControlParameters.Server);\n\t\ttilesOnField = field.getTilesOnBoard();\n\t\tmove.clear();\n\n\t\t\n\t\tSystem.out.println(\"\\nAMOUNT OF TILES ON FIELD: \" + tilesOnField.size() + \"\\n\");\n\t\tfor (TileOnPositionEX tile : tilesOnField) {\n\t\t\tSystem.out.println(\"The tile: \" + tile);\n\t\t\tif(tile.getNeighbor(Neighbor.Top)!=null) {System.out.println(\"TOP: \" + tile.getNeighbor(Neighbor.Top));}else {System.out.println(\"TOP: NULL\");}\n\t\t\tif(tile.getNeighbor(Neighbor.Right)!=null) {System.out.println(\"RIGHT: \" + tile.getNeighbor(Neighbor.Right));}else {System.out.println(\"RIGHT: NULL\");}\n\t\t\tif(tile.getNeighbor(Neighbor.Bottom)!=null) {System.out.println(\"BOTTOM: \" + tile.getNeighbor(Neighbor.Bottom));}else {System.out.println(\"BOTTOM: NULL\");}\n\t\t\tif(tile.getNeighbor(Neighbor.Left)!=null) {System.out.println(\"LEFT: \" + tile.getNeighbor(Neighbor.Left) + \"\\n\");}else {System.out.println(\"LEFT: NULL\\n\");}\n\t\t}\n\t}", "private LookUpTableGrid(CurvilinearCoords curvGrid, LookUpTable lut) {\n super(curvGrid);\n this.lut = lut;\n }", "public void onStartup()\n/* 359: */ {\n/* 360:438 */ super.onStartup();\n/* 361: */ \n/* 362:440 */ this.mapPanel.addMouseListener(new MouseAdapter()\n/* 363: */ {\n/* 364: */ public void mouseClicked(MouseEvent e)\n/* 365: */ {\n/* 366:443 */ if (e.getButton() == 1)\n/* 367: */ {\n/* 368:444 */ Point p = e.getPoint();\n/* 369:445 */ if ((TileGIS.this.mapPanel.courtesyBounds != null) && (TileGIS.this.mapPanel.courtesyBounds.contains(p)))\n/* 370: */ {\n/* 371:446 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 372: */ }\n/* 373:447 */ else if ((TileGIS.this.mapPanel.courtesyImgBounds != null) && (TileGIS.this.mapPanel.courtesyImgBounds.contains(p)))\n/* 374: */ {\n/* 375:448 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 376: */ }\n/* 377: */ else\n/* 378: */ {\n/* 379:451 */ Point mP = TileGIS.this.mapPanel.panelToMap(p);\n/* 380:452 */ double lon = MercatorProj.XtoLon(mP.x, TileGIS.this.mapPanel.zoom);\n/* 381:453 */ double lat = MercatorProj.YtoLat(mP.y, TileGIS.this.mapPanel.zoom);\n/* 382:454 */ TileGIS.this.onClick(lat, lon);\n/* 383: */ }\n/* 384: */ }\n/* 385: */ }\n/* 386:458 */ });\n/* 387:459 */ getPresentation().getPanel().addContainerListener(new ContainerListener()\n/* 388: */ {\n/* 389: */ public void componentAdded(ContainerEvent e)\n/* 390: */ {\n/* 391:461 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 392:462 */ TileGIS.this.getPresentation().getPanel().add(TileGIS.this.mapPanel);\n/* 393: */ }\n/* 394: */ }\n/* 395: */ \n/* 396: */ public void componentRemoved(ContainerEvent e)\n/* 397: */ {\n/* 398:467 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 399:468 */ TileGIS.this.getPresentation().getPanel().remove(TileGIS.this.mapPanel);\n/* 400: */ }\n/* 401: */ }\n/* 402:472 */ });\n/* 403:473 */ this.placeholder.getJComponent().addComponentListener(new ComponentListener()\n/* 404: */ {\n/* 405: */ public void componentShown(ComponentEvent e) {}\n/* 406: */ \n/* 407: */ public void componentHidden(ComponentEvent e) {}\n/* 408: */ \n/* 409: */ public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }\n/* 413: */ \n/* 414: */ public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }\n/* 418: */ });\n/* 419: */ }", "private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}", "public void Define() {\n manager = new Manager(); // Initialize other classes\n save = new Save();\n store = new Store();\n menu = new Menu();\n postgame = new PostGame();\n\n map = new ImageIcon(\"res/map.png\").getImage(); // Load background image\n \t\n \n // Load the track image\n track = new ImageIcon(\"res/TrackCorner.png\").getImage(); // Initialize the track image file\n \n // Load images for the towers\n tileset_towers[0] = new ImageIcon(\"res/redlasertower.png\").getImage();\n tileset_towers[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_towers[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n \n // Load images for the indicators\n tileset_indicators[0] = new ImageIcon(\"res/button.png\").getImage();\n tileset_indicators[1] = new ImageIcon(\"res/money.png\").getImage();\n tileset_indicators[2] = new ImageIcon(\"res/heart.png\").getImage();\n \n // Load images for the buttons\n tileset_buttons[0] = new ImageIcon(\"res/redLaserTower.png\").getImage();\n tileset_buttons[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_buttons[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n tileset_buttons[3] = new ImageIcon(\"res/trash.png\").getImage();\n \n // Load images for the solider\n tileset_soldier[0] = new ImageIcon(\"res/enemyD1.png\").getImage();\n tileset_soldier[1] = new ImageIcon(\"res/enemyD2.png\").getImage();\n \n tileset_soldier[2] = new ImageIcon(\"res/enemyR1.png\").getImage();\n tileset_soldier[3] = new ImageIcon(\"res/enemyR2.png\").getImage();\n \n tileset_soldier[4] = new ImageIcon(\"res/enemyL1.png\").getImage();\n tileset_soldier[5] = new ImageIcon(\"res/enemyL2.png\").getImage();\n \n tileset_soldier[6] = new ImageIcon(\"res/enemyU1.png\").getImage();\n tileset_soldier[7] = new ImageIcon(\"res/enemyU2.png\").getImage();\n \n // Save the configuration of the track\n save.loadSave(new File(\"save/mission.txt\"));\n save.loadHighScore();\n \n // Initialize enemy objects\n for(int i = 0; i < enemies.length; i++) {\n \tenemies[i] = new Enemy();\n }\n \n }", "public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "public Tile(int x, int y, String type) {\n\tthis.x = x;\n\tthis.y = y;\n\tthis.type = type;\n\tboundingShape = null;\n }", "public void onTileEntry(Tile tile) {}", "public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "protected void registerTile(int x, int y) {}", "protected abstract void setTile( int tile, int x, int y );", "public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }", "public final void initNewGame(final Tile[] tiles) {\r\n this.tiles = tiles;\r\n tilesPlayed = 0;\r\n initRails();\r\n }", "public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Zombie(int x, int y, Map map) {\r\n\t\tsuper(x, y, imagePath, map);\r\n\t\t\r\n\t}", "public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small] = new Tile(this);\r\n }\r\n mLargeTiles[large].setSubTiles(mSmallTiles[large]);\r\n }\r\n mEntireBoard.setSubTiles(mLargeTiles);\r\n\r\n // If the player moves first, set which spots are available\r\n mLastSmall = -1;\r\n mLastLarge = -1;\r\n setAvailableFromLastMove(mLastSmall);\r\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }", "protected void initCurrentGP() {\n\t\t// centers the falling pieces at the top row\n\t\tcurrentPieceGridPosition = new int[]{0, 3};\n\t}", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "public void drawTile() {\n\n }", "public void initLevelGrid(int[][] initGrid, int initGridColumns, int initGridRows)\n {\n // KEEP ALL THE GRID INFO\n levelGrid = initGrid;\n gridColumns = initGridColumns;\n gridRows = initGridRows;\n\n // AND BUILD THE TILE GRID FOR STORING THE TILES\n // SINCE WE NOW KNOW ITS DIMENSIONS\n tileGrid = new ArrayList[gridColumns][gridRows];\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n // EACH CELL HAS A STACK OF TILES, WE'LL USE\n // AN ARRAY LIST FOR THE STACK\n tileGrid[i][j] = new ArrayList();\n }\n }\n // MAKE ALL THE TILES VISIBLE\n enableTiles(true);\n }", "protected LAbstractGrid(final boolean isUniqueID, final IPoint pt) {\n \t\tsuper(isUniqueID, pt);\n \n \t\txLabelSouth \t= true;\n \t\tyLabelWest \t= true;\n \t\toriginx \t= 0;\n \t\toriginy \t= 0;\n \t\tgridStartx\t\t= 0;\n \t\tgridStarty\t\t= 0;\n \t\tgridEndx\t\t= 2;\n \t\tgridEndy\t\t= 2;\n \t\tlabelSize\t\t= 10;\n \t}", "public MapArchitect(String a_fileName, int rows, int cols)\n {\n m_fileName=a_fileName;\n m_waypoints = new LinkedList<Vector2d>();\n m_maxNumWaypoints = 10;\n m_brush = 4;\n m_startPoint = null;\n m_mousePosition = new Vector2d();\n\n this.m_grid =new char[rows][cols];\n\n for(int i=0;i< m_grid.length;i++)\n for(int j=0;j< m_grid[i].length;j++)\n m_grid[i][j]=EMPTY;\n\n this.addMouseListener(this);\n this.addMouseMotionListener(this);\n }", "public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }", "public MapPanel(String map, Object[] toLoad) {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tthis.setSize(this.getPreferredSize());\n\t\tthis.setVisible(true);\n\t\tthis.setFocusable(true);\n\t\tthis.requestFocus();\n\t\ttheMap = new Map(map, 50);\n\t\ttheTrainer = new Trainer(theMap, toLoad);\n\n\t\tinBattle = false;\n\t}", "GridUnit(PrimaryGridUnit primary, int colSpanIndex, int rowSpanIndex) {\n this(primary.getCell(), colSpanIndex, rowSpanIndex);\n this.primary = primary;\n }", "public MovingTile(double locx, double locy, double width, double height, Image[] imgs, Tile[][] tiles, Hero hero, Sprite[] enemies,TurningPoint[] turningPoints,boolean movingHorizontal) {\r\n super(locx, locy, width, height, imgs, tiles, hero);\r\n g = 0;\r\n speed = tileW*0.2;\r\n state = imgs[1];\r\n this.hero = hero;\r\n this.enemies = enemies;\r\n this.turningPoints = turningPoints;\r\n if (movingHorizontal)\r\n vx = -speed;\r\n else\r\n vy = -speed;\r\n\r\n movingTile = true;\r\n inFrame = true;\r\n\r\n }", "public TileEntity a_()\n {\n return new TileMarker();\n }", "private void setup()\n {\n // TO STUDENTS: Add, revise, or remove methods as needed to define your own game's world\n //addLeftGround();\n //addFences();\n //addMetalPlateSteps();\n addClouds();\n addEnemy();\n addCoin();\n //addRightGround();\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n addHero();\n }", "@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public void addTileOnBeginning(Tile tile);", "public CaveTile(Coordinate2D coords, int laneIndex) {\n super(coords,TILE_CHAR, laneIndex);\n }", "public GrassTile(int id) {\r\n\t\tsuper(Color.GREEN, id);\r\n\t}", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "Level( int tiles_per_cam_width , int tiles_per_cam_height ) {\r\n\t\ttotal_scroll = 0;\r\n\t\tleft_map_scroll = 0;\r\n\t\tleft_map_width = 20;\r\n\t\tleft_map = 0;\r\n\t\tcollision = new int[2][];\r\n\t\t_load(0,0);\r\n\t\t_load(1,1);\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\tcamera[i]= new OrthographicCamera();\r\n\t\t\tcamera[i].setToOrtho(false, tiles_per_cam_width, \r\n\t\t\t\t\ttiles_per_cam_height ); }\r\n\t}", "public Gate(int centerX, int centerY, Grid grid){\r\n this.angle = Math.random()*6.28; //create a random initial angle\r\n this.rotationSpeed = 0.05;\r\n this.length = 150;\r\n this.centerX = centerX;\r\n this.centerY = centerY;\r\n this.xSpeed = 1;\r\n this.ySpeed = 1;\r\n this.grid = grid;\r\n \r\n /*Determine the x and y of each end point based on the length and angle (using cosine and sine to calculate its\r\n * position relative to the center*/\r\n int x1 = centerX + (int)((length / 2)*(Math.cos(angle)));\r\n int y1 = centerY + (int)((length / 2)*(Math.sin(angle)));\r\n int x2 = centerX - (int)((length / 2)*(Math.cos(angle)));\r\n int y2 = centerY - (int)((length / 2)*(Math.sin(angle)));\r\n \r\n //Give the end points those x and y coordinates\r\n this.p1 = new Point(x1, y1);\r\n this.p2 = new Point(x2, y2);\r\n }", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "public BigLpiece()\r\n\t{\r\n\t\tsuper();\r\n\t\ttype=BIGL_PIECE; \r\n\t\tpositions = new Point[][]{{new Point (0,1), new Point (0,2), new Point (0,3), new Point (1,3)}, \r\n\t\t\t\t{new Point (1,0), new Point (2,0), new Point (3,0), new Point (3,-1)},\r\n\t\t\t\t{new Point (0,-1), new Point (0,-2), new Point (0,-3), new Point (-1,-3)},\r\n\t\t\t\t{new Point (-1,0), new Point (-2,0), new Point (-3,0), new Point (-3,1)},\r\n\t\t\t\t{new Point (0,-1), new Point (0,-2), new Point (0,-3), new Point (1,-3)},\r\n\t\t\t\t{new Point (1,0), new Point (2,0), new Point (3,0), new Point (3,1)},\r\n\t\t\t\t{new Point (0,1), new Point (0,2), new Point (0,3), new Point (-1,3)}, \r\n\t\t\t\t{new Point (-1,0), new Point (-2,0), new Point (-3,0), new Point (-3,-1)}};\r\n\t}", "public RailRoad(String tileID, int boardIndex) {\n this.tileID = tileID;\n this.boardIndex = boardIndex;\n this.owner = null;\n this.cost = 200;\n this.group_color = \"rr\";\n this.group_number = 4;\n this.mortgaged = false;\n }", "public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.6257365", "0.60038745", "0.57730967", "0.574065", "0.5637944", "0.5585538", "0.5579779", "0.5576887", "0.5574816", "0.55732644", "0.5556998", "0.5548277", "0.5541945", "0.55042446", "0.5493597", "0.54719895", "0.5470132", "0.54697907", "0.54652166", "0.5457382", "0.54567784", "0.54188126", "0.54188126", "0.54084706", "0.54035926", "0.5393434", "0.53739756", "0.5343939", "0.53254443", "0.53195256", "0.53149635", "0.52960783", "0.52940035", "0.5293904", "0.5285746", "0.528312", "0.52825016", "0.5279342", "0.5266618", "0.52477527", "0.52467954", "0.52393067", "0.52259105", "0.519806", "0.5197908", "0.5193787", "0.519094", "0.5177552", "0.51696724", "0.51668596", "0.5157134", "0.5156927", "0.51535416", "0.51532805", "0.5153265", "0.5137646", "0.5135749", "0.5113703", "0.5111708", "0.5107415", "0.5084956", "0.50781226", "0.5075116", "0.50748116", "0.507377", "0.507377", "0.5063759", "0.5063007", "0.505837", "0.5058125", "0.5056825", "0.5055189", "0.5054691", "0.5051239", "0.5043035", "0.50389194", "0.50383884", "0.50368196", "0.503469", "0.5023841", "0.5020811", "0.50199753", "0.50160897", "0.50050235", "0.4999404", "0.4996309", "0.49960667", "0.49928895", "0.498984", "0.49827132", "0.49782497", "0.4975788", "0.4974004", "0.49669546", "0.496637", "0.49660325", "0.49636146", "0.4963012", "0.49584273", "0.49569544" ]
0.635835
0
Get the width of the map in tiles.
int getWidth() { return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }", "public static Integer getMapWidth() {\n\t\treturn MAPWIDTH;\n\t}", "public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }", "public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}", "public int getTileWidth() {\n return 8;\n }", "@Override\n public int getTileWidth() {\n return this.tileWidth;\n }", "long getTileWidth()\n {\n return tileWidth;\n }", "int getTileWidth(Long id) throws RemoteException;", "public int getActualTileWidth() {\n return 32;\n }", "public static int getTileSize(){\n\t\treturn tileDim;\n\t}", "int getTileSize();", "public int levelWidth() {\r\n\t\treturn left_map_width + \r\n\t\t\t\tmap[r()].getProperties().get(\"width\", Integer.class);\r\n\t}", "protected int askForMapWidth() {return myManager.getMapWidth();}", "public Vector2i getSizeInTiles() {\n return new Vector2i(getWidthInTiles(), getHeightInTiles());\n }", "public Vector2i getActualSizeInTiles() {\n return new Vector2i(getActualWidthInTiles(), getActualHeightInTiles());\n }", "public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}", "public double getWidth() {\n return location.width();\n }", "public int leftMapWidth() {\r\n\t\treturn left_map_width;\r\n\t}", "public static int DimNum() {\n\t\treturn root_map.size();\n\t}", "public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "private int getWidth() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n \r\n int result = tileWidth;\r\n if ((getX() == numCols - 1) && (width % tileWidth != 0)) {\r\n // if this is the last column and the width isn't exactly divisible\r\n result = width % tileWidth;\r\n }\r\n \r\n return result;\r\n }", "public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}", "public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}", "public int getWidth(){\r\n\t\treturn grid.length;\r\n\t}", "public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}", "public Vector2i getTileSize() {\n return new Vector2i(getTileWidth(), getTileHeight());\n }", "public int getMapSize() {\n return mapSize;\n }", "public int width() {\n return picture().width();\n }", "public float getWidth()\n {\n return getBounds().width();\n }", "public Dimension getMapSize() {\n \t\treturn new Dimension(15, 13);\n \t}", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }", "public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}", "public final int getWidth() {\r\n return (int) size.x();\r\n }", "public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}", "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }", "public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }", "public int getWidth()\r\n\t{\r\n\t\treturn mWidth;\r\n\t}", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public int getWidth() {\n\t\treturn width;\r\n\t}", "public int getWidth() {\n return width_;\n }", "public int getWidth() {\n return width_;\n }", "public int width() {\n return picture.width();\n }", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() \n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\n return width_;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth()\n\t{\n\t\treturn mWidth;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n return width_;\n }", "public final int getTilesXSize() {\n\t\treturn xSize;\n\t}", "public Integer getWidth() {\n\t\t\treturn width;\n\t\t}", "public double getWidth();", "public double getWidth();", "public int getWidth() {\n return mWidth;\n }", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth() {\n return type.getWidth();\n }", "public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}", "public int getWidth() {\r\n\t\t\r\n\t\treturn width;\r\n\t}", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int GetMapSize() {\n\t\treturn m_mapSize;\n\t}", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n\t\t\treturn width;\n\t\t}", "long getWidth();", "public int getWidth() {\n return mySize.getWidth();\n }", "public int getWidth()\n {\n return larghezza;\n }", "public final int getWidth(){\n return width_;\n }", "public int getWidth()\n\t{\n\t\treturn this._width;\n\t}" ]
[ "0.84149176", "0.8175846", "0.81419605", "0.7841482", "0.76608384", "0.7657652", "0.76119745", "0.7541802", "0.75096965", "0.73633206", "0.73255914", "0.7267583", "0.7202413", "0.7061046", "0.70416856", "0.7032515", "0.6954688", "0.6896274", "0.6892199", "0.6884975", "0.6876747", "0.6875744", "0.68618834", "0.68549824", "0.68405896", "0.68313766", "0.6829825", "0.6751541", "0.6746493", "0.67440677", "0.67246354", "0.6719724", "0.67052597", "0.6699394", "0.6698607", "0.6697268", "0.66970134", "0.66950727", "0.6688633", "0.6688633", "0.6688633", "0.66861624", "0.66854864", "0.66854864", "0.6671173", "0.666904", "0.666904", "0.66581625", "0.66581625", "0.6656921", "0.665481", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.6653852", "0.66498023", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647908", "0.6647678", "0.66440296", "0.6639758", "0.66330665", "0.66330665", "0.66314435", "0.66252065", "0.6623964", "0.6618987", "0.6618312", "0.66178197", "0.66178197", "0.66178197", "0.66164774", "0.6605336", "0.65943116", "0.65943116", "0.65866685", "0.6585001", "0.6575094", "0.6572755", "0.656539", "0.6562358" ]
0.0
-1
Get the height of the map in tiles.
int getHeight() { return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }", "public static Integer getMapHeight() {\n\t\treturn MAPHEIGHT;\n\t}", "public int getActualHeightInTiles() {\n return getHeight() / getActualTileHeight();\n }", "public static int getMapHeight() {\r\n\t\treturn 7;\r\n\t}", "@Override\n public int getTileHeight() {\n return this.tileHeight;\n }", "public int getTileHeight() {\n return 8;\n }", "public int getActualTileHeight() {\n return 32;\n }", "int getTileHeight(Long id) throws RemoteException;", "public int levelHeight() {\r\n\t\treturn map[0].getProperties().get(\"height\", Integer.class);\r\n\t}", "public int getHeight() {\n\t\treturn WORLD_HEIGHT;\n\t}", "public double getHeight() {\n return location.height();\n }", "public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "public int getHeight()\r\n\t{\r\n\t\treturn mHeight;\r\n\t}", "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}", "public double getHeight();", "public double getHeight();", "private int getHeight() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n int result = tileHeight;\r\n if ((getY() == numRows - 1) && (height % tileHeight != 0)) {\r\n result = height % tileHeight;\r\n }\r\n \r\n return result;\r\n }", "public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight() {\n return mHeight;\n }", "public int getHeight() {\n return mHeight;\n }", "public int getHeight() \n\t{\n\t\treturn height;\n\t}", "long getHeight();", "public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}", "public int getHeight()\n\t{\n\t\treturn mHeight;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public final int getHeight() {\r\n return (int) size.y();\r\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}", "public final int getHeight() {\r\n return height;\r\n }", "public int getHeight() {\n\t\t\treturn height;\n\t\t}", "public Number getHeight() {\n\t\treturn getAttribute(HEIGHT_TAG);\n\t}", "public int getHeight(){\r\n\t\treturn grid[0].length;\r\n\t}", "public int getHeight() {\n return height_;\n }", "public int getHeight() {\n return height_;\n }", "public long getMaxHeight(){\r\n\t\treturn world.getHeight();\r\n\t}", "public double getHeight() {\n\t\t\treturn height.get();\n\t\t}", "public int getHeight()\n {\n return height;\n }", "public double getHeight () {\n return height;\n }", "public int getHeight()\n {\n \treturn height;\n }", "public Vector2i getTileSize() {\n return new Vector2i(getTileWidth(), getTileHeight());\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public double getHeight()\r\n {\r\n return height;\r\n }", "public int getHeight() {\r\n return Height;\r\n }", "public double getHeight() {\r\n return height;\r\n }", "public double getHeight() {\n return height;\n }", "public double getHeight() {\n return height;\n }", "int getTileSize();", "public double getHeight() {\r\n\t\treturn height;\r\n\t}", "public float getHeight();", "public int getHeight() {\n return (int) Math.round(height);\n }", "public final int getTilesYSize() {\n\t\treturn ySize;\n\t}", "public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }", "public double getHeight() {\n\t\treturn height;\n\t}", "public double getHeight() {\n\t\treturn height;\n\t}", "public double getHeight() {\n\t\treturn height;\n\t}", "public double getHeight() {\n\t\treturn height;\n\t}", "public double getHeight() {\n\t\treturn height;\n\t}", "public double getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn getHeight(this);\n\t}", "double getHeight();", "public double getHeight()\r\n {\r\n return height;\r\n }", "public final int getHeight(){\n return height_;\n }", "public Floor getHeight() {\r\n return height;\r\n }", "public int getHeight()\n {\n return height;\n }", "public double getHeight() {\n return getElement().getHeight();\n }", "public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}", "public int getHeight() {\r\n\t\treturn this.height;\r\n\t}" ]
[ "0.83480877", "0.8221704", "0.79586047", "0.7777566", "0.7689865", "0.7622195", "0.7598038", "0.74940497", "0.7414376", "0.7163611", "0.7133213", "0.70829064", "0.6971552", "0.6969707", "0.696723", "0.69576746", "0.69576746", "0.695059", "0.69499904", "0.6946955", "0.6946955", "0.6942876", "0.6942876", "0.69416875", "0.69416875", "0.6935065", "0.6933938", "0.69335115", "0.6930577", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6927084", "0.6922111", "0.6922111", "0.6922111", "0.6922111", "0.6922111", "0.6922111", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69209063", "0.69158643", "0.6902002", "0.6900002", "0.6894027", "0.6888812", "0.6886948", "0.6858091", "0.6857658", "0.68545496", "0.6853112", "0.68319845", "0.68311924", "0.6830791", "0.6830191", "0.68190837", "0.6814131", "0.6814131", "0.6814131", "0.6813393", "0.68113273", "0.6802094", "0.6781786", "0.6781786", "0.6772626", "0.6771907", "0.67712367", "0.67698723", "0.6769701", "0.67689794", "0.6755309", "0.6755309", "0.6755309", "0.6755309", "0.6755309", "0.6755309", "0.67487824", "0.67432344", "0.67431414", "0.6739068", "0.6738996", "0.67350143", "0.6733442", "0.6725934", "0.6722183" ]
0.0
-1
Get the logical width/height of a map tile.
long getTileWidth() { return tileWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTileSize();", "public Vector2i getTileSize() {\n return new Vector2i(getTileWidth(), getTileHeight());\n }", "public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}", "public static int getTileSize(){\n\t\treturn tileDim;\n\t}", "public int getActualTileHeight() {\n return 32;\n }", "public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}", "public int getTileHeight() {\n return 8;\n }", "public static int getTileBits() {\n return TILE_BITS;\n }", "public int getActualHeightInTiles() {\n return getHeight() / getActualTileHeight();\n }", "public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }", "public int getActualTileWidth() {\n return 32;\n }", "public static int getTileBitSize() {\n return TILE_BIT_SIZE;\n }", "public int getTileWidth() {\n return 8;\n }", "public Vector2i getActualSizeInTiles() {\n return new Vector2i(getActualWidthInTiles(), getActualHeightInTiles());\n }", "@Override\n public int getTileHeight() {\n return this.tileHeight;\n }", "int getTileHeight(Long id) throws RemoteException;", "public Vector2i getSizeInTiles() {\n return new Vector2i(getWidthInTiles(), getHeightInTiles());\n }", "public static Integer getMapHeight() {\n\t\treturn MAPHEIGHT;\n\t}", "public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }", "int getTileWidth(Long id) throws RemoteException;", "@Override\n public int getTileWidth() {\n return this.tileWidth;\n }", "public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }", "public static Integer getMapWidth() {\n\t\treturn MAPWIDTH;\n\t}", "private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }", "public static float getHalfTileHeight() {\r\n\t\treturn 32;\r\n\t}", "public static int getMapHeight() {\r\n\t\treturn 7;\r\n\t}", "public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}", "public Dimension getMapSize() {\n \t\treturn new Dimension(15, 13);\n \t}", "public int getMapSize() {\n return mapSize;\n }", "public Rect getTileRect(){\n return this.tileRect;\n }", "public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}", "public int GetMapSize() {\n\t\treturn m_mapSize;\n\t}", "public Vector2i getSize() {\n return new Vector2i(getWidth(), getHeight());\n }", "public int getTileY()\n\t{\n\t\treturn this.tileY;\n\t}", "public XYPoint getMapSize();", "int getMinTileY(Long id) throws RemoteException;", "public native float kbGetMapXSize();", "public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}", "public int getTileLevel()\n {\n return tileLevel;\n }", "public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}", "public int getTileY() {\n\t\treturn tileY;\n\t}", "long getHeight();", "public final int getTilesYSize() {\n\t\treturn ySize;\n\t}", "public int getArea() {\n\t\treturn this.height * this.width;\n\t}", "public int tileType(){\n\t\treturn this.type;\n\t}", "int getBoardSize() {\n return row * column;\n }", "public static int DimNum() {\n\t\treturn root_map.size();\n\t}", "public int getLargeur() {\n return getWidth();\n }", "public int levelHeight() {\r\n\t\treturn map[0].getProperties().get(\"height\", Integer.class);\r\n\t}", "public Floor getHeight() {\r\n return height;\r\n }", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getSize() {\n return rows * cols;\n }", "public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}", "TileRenderProperties getTileRenderProperties();", "public void getTile_B8();", "Map<Integer, Symbol> getBoardLayout() {\n return tiles.getBoardLayout();\n }", "private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }", "public int getTileType() {\r\n\t\treturn 3;\r\n\t}", "int getAreaSize();", "public int getH() { return height; }", "int getNumYTiles(Long id) throws RemoteException;", "public int getNumYTiles() { \r\n return numRows;\r\n }", "public native int kbAreaGetNumberTiles(int areaID);", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "private int getHeight() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n int result = tileHeight;\r\n if ((getY() == numRows - 1) && (height % tileHeight != 0)) {\r\n result = height % tileHeight;\r\n }\r\n \r\n return result;\r\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "long getWidth();", "Dimension getSize();", "Dimension getSize();", "public int getSize() {\n\t\treturn WORLD_SIZE;\n\t}", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "public native int kbAreaGetNumberVisibleTiles(int areaID);", "public int getHeight() { return height; }", "public int height();", "public int height();", "public int height();", "public int height();", "int getBoundsHeight();", "public int getHeight(){\r\n\t\treturn grid[0].length;\r\n\t}", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();" ]
[ "0.76466537", "0.74906754", "0.74746805", "0.73810774", "0.7333481", "0.73176897", "0.72590566", "0.7235907", "0.7161863", "0.7127342", "0.71186477", "0.7102776", "0.70512515", "0.70146996", "0.6954826", "0.69011784", "0.68964887", "0.68900514", "0.68593717", "0.6825618", "0.6775449", "0.67443395", "0.670912", "0.6619538", "0.6592516", "0.65051705", "0.64457774", "0.6342034", "0.6334888", "0.63130665", "0.6291314", "0.6270454", "0.6211589", "0.618438", "0.61720127", "0.61559844", "0.6142257", "0.6128825", "0.611948", "0.6102391", "0.60678", "0.6049367", "0.603229", "0.60108334", "0.599662", "0.5975016", "0.5971259", "0.5969097", "0.5963569", "0.59585565", "0.5933142", "0.5933142", "0.5933142", "0.5933142", "0.5933142", "0.5933142", "0.59239024", "0.5914034", "0.59123266", "0.5907919", "0.5879714", "0.5875498", "0.5868683", "0.58590865", "0.5855897", "0.5850223", "0.5836402", "0.58357424", "0.58107746", "0.58072907", "0.579293", "0.57926047", "0.5777256", "0.5776056", "0.5776056", "0.57743037", "0.57691026", "0.57671875", "0.57592195", "0.5746356", "0.57456225", "0.57456225", "0.57456225", "0.57456225", "0.5733536", "0.5733221", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175", "0.5730175" ]
0.70173335
13
Get the grid of passable (clip true) and impassable (clip false) tiles.
Boolean[][] getClip() { return clip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasGrid();", "@Override\n public Tile[][] getGrid() { return grid; }", "public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }", "List<Tile> getAdjacentTiles();", "public boolean getGrid(int x, int y) {\n\t\tif ((x < 0) || (x > width)) {\n\t\t\treturn true;\n\t\t} else if ((y < 0) || (y > height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn grid[x][y]; // YOUR CODE HERE\n\t\t}\n\t}", "public boolean getGrid(int x, int y){\n\t\treturn grid[x][y];\n\t}", "public List<Square> getSquareGrid();", "public Puzzle exPuzzle() {\n List<Tile> tiles = new ArrayList<>(9);\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.C, Half.x), new Pic(Pattern.C, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y), new Pic(Pattern.C, Half.y)));\n return new Puzzle(tiles);\n }", "public ArrayList<MahjongSolitaireTile>[][] getTileGrid() \n { \n return tileGrid; \n }", "@VisibleForTesting\n Drawable tileify(Drawable drawable, boolean clip) {\n if (drawable instanceof WrappedDrawable) {\n Drawable inner = ((WrappedDrawable) drawable).getWrappedDrawable();\n if (inner != null) {\n inner = tileify(inner, clip);\n ((WrappedDrawable) drawable).setWrappedDrawable(inner);\n }\n } else if (drawable instanceof LayerDrawable) {\n LayerDrawable background = (LayerDrawable) drawable;\n final int N = background.getNumberOfLayers();\n Drawable[] outDrawables = new Drawable[N];\n\n for (int i = 0; i < N; i++) {\n int id = background.getId(i);\n outDrawables[i] = tileify(background.getDrawable(i),\n (id == android.R.id.progress || id == android.R.id.secondaryProgress));\n }\n\n LayerDrawable clone = new LayerDrawable(outDrawables);\n for (int i = 0; i < N; i++) {\n clone.setId(i, background.getId(i));\n if (Build.VERSION.SDK_INT >= 23) {\n Api23Impl.transferLayerProperties(background, clone, i);\n }\n }\n\n return clone;\n\n } else if (drawable instanceof BitmapDrawable) {\n final BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;\n final Bitmap tileBitmap = bitmapDrawable.getBitmap();\n if (mSampleTile == null) {\n mSampleTile = tileBitmap;\n }\n\n final ShapeDrawable shapeDrawable = new ShapeDrawable(getDrawableShape());\n final BitmapShader bitmapShader = new BitmapShader(tileBitmap,\n Shader.TileMode.REPEAT, Shader.TileMode.CLAMP);\n shapeDrawable.getPaint().setShader(bitmapShader);\n shapeDrawable.getPaint().setColorFilter(bitmapDrawable.getPaint().getColorFilter());\n return clip ? new ClipDrawable(shapeDrawable, Gravity.LEFT,\n ClipDrawable.HORIZONTAL) : shapeDrawable;\n }\n\n return drawable;\n }", "private float[] getBounds(TileCoolantPipe tile) {\n float[] bounds = new float[6];\n boolean[] connected = tile.getConnectedSides();\n float hDiameter = cableDiameter / 2.0F;\n for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {\n float width = 0.5F;\n if (!connected[dir.ordinal()]) {//(sides & dir.flag) != dir.flag) {\n width = hDiameter;\n }\n if (dir.ordinal() % 2 == 0) {\n width *= -1;\n }\n bounds[dir.ordinal()] = 0.5F + width;\n }\n return bounds;\n }", "public boolean getGrid(int x, int y) {\n\t\treturn (!isValid(x,y) || grid[x][y]);\n\t}", "public List<Cell> getFlaggedCells() {\n List<Cell> gameBoard = new ArrayList<Cell>();\n List<Cell> flaggedCells = new ArrayList<Cell>();\n for (Cell cell : gameBoard)\n if (cell.isFlagged())\n flaggedCells.add(cell);\n return flaggedCells;\n }", "public List<Grid> getGrids() {\n\tList<Grid> grids = new ArrayList<Grid>();\n\tList<Line> currentLines = _path;\n\twhile(currentLines.size()>1) {\n\t Grid grid = new Grid();\n\t grids.add(grid);\n\t List<Line> nonOverlappingLines = grid.overlapping(currentLines);\n\t \t \n\t Double[] xs = grid.xs();\n\t Double[] ys = grid.ys();\n\t \n\t if (xs.length>3 && ys.length>3) {\n\t\tDouble minx = xs[0];\n\t\tDouble maxx = xs[xs.length-1];\n\t\t\n\t\tDouble miny = ys[0];\n\t\tDouble maxy = ys[ys.length-1];\n\t\t\n\t\tfor(int i=0; i<xs.length; i++) {\n\t\t System.out.println(\"Line: \" + xs[i].toString() + \",\" + miny.toString() + \",\" + xs[i].toString() + \",\" + maxy.toString());\n\t\t}\n\t\tfor(int i=0; i<ys.length; i++) {\n\t\t System.out.println(\"Line: \" + minx.toString() + \",\" + ys[i].toString() + \",\" + maxx.toString() + \",\" + ys[i].toString());\n\t\t}\n\t }\n\n\t currentLines = nonOverlappingLines;\n\t}\n\treturn grids;\n }", "public List<Grid> getPossibleMoves(Grid g){\n\t\tint i=g.row, j=g.col;\n\t\tif(i>=0 && i<data.length && j>=0 && j<data[i].length){\n\t\t\tList<Grid> list=new ArrayList<>();\n\t\t\tif(isFree(i, j-1)) list.add(new Grid(i,j-1));\n\t\t\tif(isFree(i-1, j-1)) list.add(new Grid(i-1,j-1));\n\t\t\tif(isFree(i-1, j)) list.add(new Grid(i-1,j));\n\t\t\tif(isFree(i-1, j+1)) list.add(new Grid(i-1,j+1));\n\t\t\tif(isFree(i, j+1)) list.add(new Grid(i,j+1));\n\t\t\tif(isFree(i+1, j+1)) list.add(new Grid(i+1,j+1));\n\t\t\tif(isFree(i+1, j)) list.add(new Grid(i+1,j));\n\t\t\tif(isFree(i+1, j-1)) list.add(new Grid(i+1,j-1));\n\t\t\treturn list;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Position[] getCanMoves() {\n PieceWay way = new PieceWay(getPosition());\n Position[] PawnWay = way.waysPawnPos(color);\n return PawnWay;\n }", "public abstract Regionlike getGridBounds();", "public visibleObject[][] getVisibility() {\n\n\t\tvisibleObject visiblility[][] = new GridCell.visibleObject[2 * visionRange + 1][2 * visionRange + 1];\n\t\tGridCell[][] cellArray = MazeGame.worldGraph.cellArray;\n\n\t\tfor (int i = (-visionRange); i < visionRange + 1; i++) {\n\t\t\tfor (int j = (-visionRange); j < visionRange + 1; j++) {\n\n\t\t\t\tGridCell cell = MazeGame.worldGraph.cellArray[currentCell.rowIndex + i][currentCell.columnIndex + j];\n\n\t\t\t\tfor (int k = currentCell.rowIndex - visionRange; k < currentCell.rowIndex + visionRange + 1; k++) {\n\t\t\t\t\tfor (int l = (currentCell.columnIndex - visionRange); l < currentCell.columnIndex + visionRange\n\t\t\t\t\t\t\t+ 1; l++) {\n\n\t\t\t\t\t\tif (!cellArray[k][l].hasEastEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + j + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cellArray[k][l].hasSouthEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(currentCell.columnIndex + j + 0.5, currentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, currentCell.rowIndex + 0.5, cellArray[k][l].columnIndex,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex +1 , cellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tif(visiblility[i + visionRange][j + visionRange] != visibleObject.NULL){\n//\n//\t\t\t\t\tif (cell.cheese != null) {\n//\t\t\t\t\t\tif (cell.jerry != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY_AND_CHEESE;\n//\t\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM_AND_CHEESE;\n//\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.CHEESE;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} else if (cell.jerry != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY;\n//\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM;\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.EMPTY_SPACE;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.visiblility = visiblility;\n\t\treturn visiblility;\n\t}", "public boolean isGrid() {\n return isGrid;\n }", "public SetOfTiles getSetOfTiles();", "public Grid getGrid()\n {\n \treturn puzzle;\n }", "protected BattleGrid getGrid() {\n return grid;\n }", "public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}", "public Pawn[][] getBoardGrid() {\n\t\treturn boardGrid;\n\t}", "public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }", "public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}", "private static boolean tilesAreNotFilled(int[][] grid) {\n\t\tfor(int i = 0; i < BOUNDARY; i++) {\n\t\t\tfor(int j = 0; j < BOUNDARY; j++) {\n\t\t\t\tif(grid[i][j] == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isGridPainted() {\r\n return gridPainted;\r\n }", "public static int getTileBits() {\n return TILE_BITS;\n }", "private static boolean anyObstacles(ArrayList<CharacterSprite> pieces, int[] position, int[] destination,\n moveMode mode, boolean inclusive) {\n switch (mode) {\n case X_AXIS:\n int h = destination[0] < position[0] ? -1 : 1;\n for (int i = position[0] + h; i != destination[0]; i += h) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(i * CharacterSprite.size, position[1] * CharacterSprite.size)) {\n return true;\n }\n }\n }\n break;\n\n case Y_AXIS:\n h = destination[1] < position[1] ? -1 : 1;\n for (int i = position[1] + h; i != destination[1]; i += h) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(position[0] * CharacterSprite.size, i * CharacterSprite.size)) {\n return true;\n }\n }\n }\n break;\n\n case DIAGONAL:\n int i = destination[0], j = destination[1];\n i += i > position[0] ? -1 : 1;\n j += j > position[1] ? -1 : 1;\n\n while (i != position[0]) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(i * CharacterSprite.size, j * CharacterSprite.size)) {\n return true;\n }\n }\n\n i += i > position[0] ? -1 : 1;\n j += j > position[1] ? -1 : 1;\n }\n break;\n\n default:\n return true;\n }\n\n if (inclusive) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(destination[0] * CharacterSprite.size, destination[1] * CharacterSprite.size)) {\n return true;\n }\n }\n }\n\n return false;\n }", "public abstract TiledMapTileSet getTileSet();", "public static ArrayList<FloorTile> getEffectedTiles() {\r\n\r\n ArrayList<FloorTile> temp = new ArrayList<>();\r\n for(int i = GameControl.ytile-1; i < GameControl.ytile + 2; i++) {\r\n for(int j = GameControl.xtile-1; j < GameControl.xtile + 2; j++) {\r\n if(i >= 0 && i < board.length && j >= 0 && j < board[0].length) {\r\n temp.add(board[i][j]);\r\n }\r\n }\r\n }\r\n return temp;\r\n }", "public FloorTile[][] getBoard(){\r\n return board;\r\n }", "public abstract Grid<?> getGrid();", "List<MineTile> getSurround(int position) {\n int dimension = getDimension();\n int row = position / dimension;\n int col = position % dimension;\n List<MineTile> surround = new ArrayList<>();\n\n if (row != 0 && col != 0) {\n surround.add(getTiles().get(position - dimension - 1));\n }\n if (row != 0 && col != dimension - 1) {\n surround.add(getTiles().get(position - dimension + 1));\n }\n if (row != 0) {\n surround.add(getTiles().get(position - dimension));\n }\n if (row != dimension - 1 && col != 0) {\n surround.add(getTiles().get(position + dimension - 1));\n }\n if (row != dimension - 1 && col != dimension - 1) {\n surround.add(getTiles().get(position + dimension + 1));\n }\n if (row != dimension - 1) {\n surround.add(getTiles().get(position + dimension));\n }\n if (col != 0) {\n surround.add(getTiles().get(position - 1));\n }\n if (col != dimension - 1) {\n surround.add(getTiles().get(position + 1));\n }\n return surround;\n }", "Image[][] getImagesToDisplayInCells(boolean showBarriers);", "public abstract boolean getCell(int x, int y);", "public boolean tileWalkable(float xTile, float yTile)\r\n/* 160: */ {\r\n/* 161:183 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 162:184 */ (this.walkable[((int)xTile)][((int)yTile)] != 0);\r\n/* 163: */ }", "public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }", "public List<Tile> getOwnedTiles() {\n return new ArrayList<Tile>(ownedTiles);\n }", "private Set<IntVector2D> canAttackFromDestination() {\n\t\tif(activePath == null || !pf.isValidPath(activePath))\n\t\t\treturn new HashSet<>();\n\t\tGameCharacter gc = getUnitAt(activePath.get(0)).getEnclosed();\n\t\tboolean ranged = gc.isRanged();\n\t\tboolean melee = gc.isMelee();\n\t\tAlignment atkSide = gc.getSide();\n\t\tSet<IntVector2D> attackable = new HashSet<>();\n\t\tint x = activePath.get(activePath.size() - 1).getX();\n\t\tint y = activePath.get(activePath.size() - 1).getY();\n\t\tif(ranged) {\n\t\t\tList<IntVector2D> arr = new LinkedList<>();\n\t\t\tarr.add(new IntVector2D(x + 2, y));\n\t\t\tarr.add(new IntVector2D(x - 2, y));\n\t\t\tarr.add(new IntVector2D(x, y + 2));\n\t\t\tarr.add(new IntVector2D(x, y - 2));\n\t\t\tarr.add(new IntVector2D(x + 1, y + 1));\n\t\t\tarr.add(new IntVector2D(x - 1, y + 1));\n\t\t\tarr.add(new IntVector2D(x + 1, y - 1));\n\t\t\tarr.add(new IntVector2D(x - 1, y - 1));\n\t\t\tattackable.addAll(arr.stream()\n\t\t\t\t\t.filter((vec) -> (\n\t\t\t\t\t\t\tisTileOnMap(vec) // not sure why this is necessary\n\t\t\t\t\t\t\t&& getTileAt(vec).isOccupied()\n\t\t\t\t\t\t\t&& Alignment.areOpposed(atkSide, getUnitAt(vec).getSide())))\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\t\tif(melee) {\n\t\t\tList<IntVector2D> arr = new LinkedList<>();\n\t\t\tarr.add(new IntVector2D(x + 1, y));\n\t\t\tarr.add(new IntVector2D(x - 1, y));\n\t\t\tarr.add(new IntVector2D(x, y + 1));\n\t\t\tarr.add(new IntVector2D(x, y - 1));\n\t\t\tattackable.addAll(arr.stream()\n\t\t\t\t\t.filter((vec) -> (\n\t\t\t\t\t\t\tisTileOnMap(vec) // not sure why this is necessary\n\t\t\t\t\t\t\t&& getTileAt(vec).isOccupied()\n\t\t\t\t\t\t\t&& Alignment.areOpposed(atkSide, getUnitAt(vec).getSide())))\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\t\treturn attackable;\n\t}", "public interface Grid {\n /**\n * @name getCell\n * @desc Ritorna la cella specificata dai parametri.\n * @param {int} x - Rappresenta la coordinata x della cella.\n * @param {int} y - Rappresenta la coordinata y della cella.\n * @returns {Client.Games.Battleship.Types.Cell}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell getCell(int x, int y);\n /**\n * @name getHeigth\n * @desc Ritorna l'altezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getHeight();\n /**\n * @name getLength\n * @desc Ritorna la lunghezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getLength();\n /**\n * @name Equals\n * @desc Ritorna true se i grid sono uguali.\n * @returns {boolean}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public boolean equals(Grid grid);\n /**\n * @name getGrid\n * @desc Ritorna la la griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell [][] getCells();\n}", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "public static Bitmap CreateBitmapFromGridOfCells(TrafficCell[][] i_grid,int i_mode, boolean i_drawVehicles) {\n// The first index is the y coordinate measured from the top; the second\n// index is the x coordinate measured from the left.\nint t_height = i_grid.length;\nint t_width = 0;\nif (i_grid[0] != null)\nt_width = i_grid[0].length;\n\nBitmap.Config t_conf = Bitmap.Config.ARGB_8888;\nBitmap t_bitmap = Bitmap.createBitmap(t_width, t_height, t_conf);\n\n// this is a slow method\n// TODO: change this to setPixels or to copyPixelsFrom...\nfor (int i = 0; i < t_height; i++) {\nfor (int j = 0; j < t_width; j++) {\nt_bitmap.setPixel(j, i,\nCalulateColorFromTrafficCell(i_grid[i][j], i_mode,i_drawVehicles));\n}\n}\nreturn t_bitmap;\n}", "public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }", "private List<Cell> getSurroundingCells(int x, int y) {\n ArrayList<Cell> cells = new ArrayList<>();\n for (int i = x - 1; i <= x + 1; i++) {\n for (int j = y - 1; j <= y + 1; j++) {\n // Don't include the current position i != x && j != y &&\n if ( isValidCoordinate(i, j)) {\n if (i == x && j == y) {\n continue;\n } else {\n cells.add(gameState.map[j][i]);\n }\n }\n }\n }\n return cells;\n }", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "public ArrayList<Tile> getAllBoardTiles() {\n\n\t\tArrayList<ArrayList<Tile>> tilesMapValues=new ArrayList<ArrayList<Tile>>(getTilesMap().values()) ;\n\t\tArrayList<Tile> allTiles =new ArrayList<Tile>() ;\n\t\tfor(ArrayList<Tile> tileList : tilesMapValues) {\n\t\t\tallTiles.addAll(tileList);\n\n\t\t}\n\t\treturn allTiles;\n\t}", "public ArrayList<FloorTile> getFixedTilesFromBoard() {\r\n ArrayList<FloorTile> fixedTiles = new ArrayList<FloorTile>();\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if (board[i][j].isFixedTile()) {\r\n fixedTiles.add(board[i][j]);\r\n }\r\n }\r\n }\r\n\r\n return fixedTiles;\r\n }", "public abstract int[][] setupBattleships(int[] ships, int gridSize);", "@Override\r\n\tpublic void getLegalMoves() {\r\n\t\tint pawnX = this.getX();\r\n\t\tint pawnY = this.getY();\r\n\t\tchar pawnColor = getColor();\r\n\t\tTile[][] chessBoard = SimpleChess.getChessBoard();\r\n\t\tcheckInFront(chessBoard,pawnX,pawnY,pawnColor);\r\n\t\tcheckDiagonal(chessBoard,pawnX,pawnY,pawnColor);\r\n\t}", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "private ArrayList<GameSquare> getAdjacentSquares()\n {\n ArrayList<GameSquare> list = new ArrayList<GameSquare>();\n for (int r = row - 1; r <= row + 1; r++)\n {\n if (r >= 0 && r < grid.length)\n {\n for (int c = col - 1; c <= col + 1; c++)\n {\n if (c >= 0 && c < grid[0].length)\n {\n list.add(grid[r][c]);\n }\n }\n }\n }\n return list;\n }", "public boolean tileGrass(float xTile, float yTile)\r\n/* 212: */ {\r\n/* 213:236 */ return (tileInBounds(xTile, yTile)) && (this.grass[((int)xTile)][((int)yTile)] != 0);\r\n/* 214: */ }", "private static Image[][] getTileBases()\n\t{\n\t\tImage[][] tileBases = new Image[2][4];\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[0][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \".png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\t\t}\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[1][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \"_trans.png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn tileBases;\n\t}", "public Array<BlockDrawable> getGhostBlocksToDraw() {\t\t\r\n\t\tif(hasFalling()){\r\n\t\t\treturn ghost.allOuterBlocks();\r\n\t\t}\t\t\r\n\t\treturn new Array<BlockDrawable>();\r\n\t}", "private void setupGrid() {\n mGrid = (GridView) findViewById(R.id.grid_view);\n\n // Setting number of columns in the grid:\n mGrid.setNumColumns(mGame.getmBoard().getNumberOfCols());\n\n // Setting the adapter for the grid:\n mGrid.setAdapter(new TileAdapter(getApplicationContext(), mGame.getmBoard()));\n\n // Setting a click listener for the grid:\n mGrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n // Making sure the game hasn't ended and that its a proper timing to let the player make his turn.\n if (mGame.getmGameStatus() == Game.GameStatus.ONGOING && mIsAllowedToPlay) {\n\n Log.d(\"Playable Tiles\" , mPlayableTiles.toString());\n Log.d(\"Position\" , \"\" + position);\n\n // If this tile is playable:\n if (mPlayableTiles.contains(position)){\n\n mIsAllowedToPlay = false; // Disabling the player to play for now.\n\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Playing proper sound.\n\n // Cancel Guidelines:\n if(mGuidelines != null) {\n mGuidelines.cancel();\n mGuidelines = null;\n // refresh tiles' color:\n for(int i = 0; i < mGrid.getChildCount(); i++){\n mGrid.getChildAt(i).setBackgroundResource(R.drawable.button_tile);\n }\n }\n\n // Making the play and updating grid:\n mGame.playTile(position/mGame.getmBoard().getNumberOfCols(),position%mGame.getmBoard().getNumberOfCols());\n ((TileAdapter)mGrid.getAdapter()).notifyDataSetChanged();\n\n // Updating Counters:\n mBlackCounter.setText(\"\" + mGame.getmBoard().getmNumberOfBlackPieces());\n mWhiteCounter.setText(\"\" + mGame.getmBoard().getmNumberOfWhitePieces());\n\n // While the UI changes, make a proper sound for flipping pieces (after a short delay):\n // And then move on (update UI, let opponent play next, end game, etc.)\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start(); // Playing proper sound.\n\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Now back to UI thread in order to update UI:\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n\n // If game is still ongoing:\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != mPlayerGamePiece) {\n\n // Updating colors for profile areas:\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mOpponentUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mPlayerUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now A.I. opponent should make a move:\n makeAIMove();\n\n }\n\n // Otherwise, player gets another turn:\n else{\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n\n }\n\n else{ // Otherwise, game has ended.\n handleGameEnding();\n }\n\n }\n });\n\n\n }\n\n }).start();\n\n }\n\n }\n\n }\n });\n\n }", "private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }", "public abstract Set<Tile> getNeighbors(Tile tile);", "public ArrayList<Movable> getProjectiles(){\n\t\tArrayList<Movable> moving = new ArrayList<Movable>(temp);\n\t\ttemp = new ArrayList<Movable>();\n\t\treturn moving;\n\t}", "public int[][] getGrid()\n {\n return grid;\n }", "boolean isImageTileType();", "public Tile[][] getTiles() {\n return tiles;\n }", "protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }", "public boolean isCollidable() {\n return tileCollidable;\n }", "private boolean isThereLegalTilesNotColored(){\n\n\t\tArrayList<Tile> legalTiles=getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tlegalTiles.removeAll(coloredTilesList);\n\t\tif(legalTiles.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}", "public void fillWithIslandTiles() {\n\t\tthis.addCard(new IslandTile(\"Breakers Bridge\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Bronze Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cliffs of Abandon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cave of Embers\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Crimson Forest\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Copper Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Coral Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Cave of Shadows\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Dunes of Deception\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Fool's Landing\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Gold Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Howling Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Iron Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Lost Lagoon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Misty Marsh\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Observatory\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Phantom Rock\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Silver Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Moon\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Tidal Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Sun\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Twilight Hollow\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Whispering Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Watchtower\", CardType.TILE, TreasureType.NONE));\n\t}", "public void getPossibleMoves() { \n\t\t\tsuper.getPossibleMoves();\n\t\t\tfor (int i = 0; i < Math.abs(xrange); i++) {\n\t\t\t\tif (currentx + xrange - ((int) Math.pow(-1,color)*i) >= 0) { \n\t\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + xrange - ((int) Math.pow(-1,color)*i) ][currenty]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( currentx - 1 >= 0 && currenty - 1 >= 0 &&\n\t\t\t\t\tGameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty - 1].isOccupiedByOpponent()) {\t// Diagonol left space occupied\n\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty - 1]);\n\t\t\t}\n\t\t\tif (currentx - 1 >= 0 && currenty + 1 <= 7 &&\n\t\t\t\t\tGameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty + 1].isOccupiedByOpponent()) { \t//Diagonol right space occupied\n\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty + 1]);\n\t\t\t}\n\t\t\t\n\t}", "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "public ArrayList<Entity> checkGrid(int x, int y) {\n \tArrayList<Entity> entitiesOnGrid = new ArrayList<Entity>();\n \tfor (Entity e: entities) {\n \t\tif (e != null) {\n \t\tif (e.getX() == x && e.getY() == y) {\n \t\t\tentitiesOnGrid.add(e);\n \t\t} \t\t\t\n \t\t}\n \t}\n \treturn entitiesOnGrid;\n }", "private ArrayList<Tile> getPossibleRedTiles(){\n\t\tArrayList<Tile> toReturn = new ArrayList<>();\n\n\t\tGame game=Game.getInstance();\n\t\tArrayList<Tile> legalTiles= getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tArrayList<Tile> blockedTiles=new ArrayList<Tile>();\n\t\tlegalTiles.removeAll(coloredTilesList);\n\n\t\t//\t\tonly one soldier can move\n\t\tif(game.getTurn().isLastTileRed()) {\n\t\t\tPiece lastPMoved = game.getTurn().getLastPieceMoved();\n\t\t\tArrayList<Tile> possibleTiles=lastPMoved.getPossibleMoves(game.getCurrentPlayerColor());\n\t\t\tpossibleTiles.removeAll(coloredTilesList);\n\t\t\tif(!possibleTiles.isEmpty()) {\n\t\t\t\tfor(Tile t: possibleTiles) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(lastPMoved instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tblockedTiles.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpossibleTiles.removeAll(blockedTiles);\n\t\t\t}\n\t\t\ttoReturn = possibleTiles;\n\t\t}\n\t\telse {\n\t\t\tHashMap<Tile, ArrayList<Piece>> tempCollection = new HashMap<>();\n\n\t\t\tfor(Tile t:legalTiles) {\n\t\t\t\tfor(Piece p : getColorPieces(Game.getInstance().getCurrentPlayerColor())){\n\t\t\t\t\tboolean canMove = false;\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(canMove) {\n\t\t\t\t\t\tArrayList<Piece> pp = null;\n\t\t\t\t\t\tif(!tempCollection.containsKey(t)) {\n\t\t\t\t\t\t\tpp = new ArrayList<>();\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tpp = tempCollection.get(t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpp.add(p);\n\t\t\t\t\t\ttempCollection.put(t, pp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<Tile> tilesToRemove = new ArrayList<>();\n\n\t\t\tfor(Tile t : tempCollection.keySet()) {\n\t\t\t\tArrayList<Piece> pieces= tempCollection.get(t);\n\t\t\t\tfor(Piece p : pieces) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(p instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tif(!tilesToRemove.contains(t))\n\t\t\t\t\t\t\ttilesToRemove.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Tile t : tilesToRemove) {\n\t\t\t\ttempCollection.remove(t);\n\t\t\t}\n\n\t\t\ttoReturn = new ArrayList<Tile>(tempCollection.keySet());\t\n\t\t}\n\t\treturn toReturn;\n\t}", "public static ArrayList<Grid> getGrids() {\n\n return grids;\n }", "private void disableRestrictedTiles(int x, int y) {\n\t\tif (shipsToPlace == 3) {\n\t\t\tfor (int i = 6; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[i][j].setEnabled(false);\n\t\t\t\t\tplayerBoard[i][j].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[i][j].setName((j) + \"\" + (i) + \"f\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (shipsToPlace == 2) {\n\t\t\t// disables long ship tiles\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (y - i >= 0) {\n\t\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setName((x + j) + \"\" + (y - i) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disables restricted tiles\n\t\t\tfor (int i = 8; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the second ship\");\n\t\t} else if (shipsToPlace == 1) {\n\t\t\t// disable medium ship tiles\n\t\t\tif (y - 1 >= 0) {\n\t\t\t\tplayerBoard[x][y - 1].setEnabled(false);\n\t\t\t\tplayerBoard[x][y - 1].setBackground(Color.lightGray);\n\t\t\t\tplayerBoard[x][y - 1].setName(x + \"\" + (y - 1) + \"f\");\n\t\t\t}\n\t\t\tplayerBoard[x][y].setEnabled(false);\n\t\t\tplayerBoard[x][y + 1].setEnabled(false);\n\t\t\tplayerBoard[x][y + 2].setEnabled(false);\n\n\t\t\tplayerBoard[x][y].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\n\t\t\tplayerBoard[x][y].setName(x + \"\" + y + \"f\");\n\t\t\tplayerBoard[x][y + 1].setName(x + \"\" + (y + 1) + \"f\");\n\t\t\tplayerBoard[x][y + 2].setName(x + \"\" + (y + 2) + \"f\");\n\n\t\t\t// disables long ship tiles\n\t\t\tfor (int counter1 = 0; counter1 < 2; counter1++) {\n\t\t\t\tif (longShipCoords[1] - counter1 >= 0) {\n\n\t\t\t\t\tfor (int longcount = 0; longcount < 5; longcount++) {\n\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setName((longShipCoords[0] + longcount) + \"\" + (longShipCoords[1] - counter1) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disable restricted tiles\n\t\t\tfor (int i = 9; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the third ship\");\n\t\t} else {\n\t\t\tenableAllTiles();\n\t\t}\n\t}", "ArrayList<ArrayList<Cell>> assignedCells(ArrayList<ArrayList<Cell>> links) {\n for (int i = 0; i < links.size(); i = i + 1) {\n for (int j = 0; j < links.get(i).size(); j = j + 1) {\n Cell c = links.get(i).get(j);\n if (i <= 0) {\n c.left = c;\n }\n else {\n c.left = links.get(i - 1).get(j);\n }\n if (i >= ForbiddenIslandWorld.ISLAND_SIZE - 1) {\n c.right = c;\n }\n else {\n c.right = links.get(i + 1).get(j);\n }\n if (j <= 0) {\n c.top = c;\n }\n else {\n c.top = links.get(i).get(j - 1);\n }\n if (j >= ForbiddenIslandWorld.ISLAND_SIZE - 1) {\n c.bottom = c;\n }\n else {\n c.bottom = links.get(i).get(j + 1);\n }\n }\n }\n return links;\n }", "public Creature[][] getGrid()\n\t{\n\t\treturn grid;\n\t}", "TileRenderProperties getTileRenderProperties();", "public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public int[][] getBoard();", "public Rect getTileRect(){\n return this.tileRect;\n }", "private ArrayList<BooleanProperty> checkSurroundings(int layoutX, int layoutY) {\n\n ArrayList<BooleanProperty> neighbors = new ArrayList<>();\n BooleanProperty[][] gameCells = controller.getGameCells();\n\n for (int i = layoutX - 1; i <= layoutX + 1; i++) {\n for (int j = layoutY - 1; j <= layoutY + 1; j++) {\n\n if (!(i == layoutX && j == layoutY)) {\n if (i < gameCells.length && i > -1 && j < gameCells[i].length && j > -1 && gameCells[i][j].get()) {\n neighbors.add(gameCells[i][j]);\n }\n }\n }\n }\n return neighbors;\n }", "private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }", "public GameCell[] getBoardCells(){\r\n return this.boardCells;\r\n }", "public Cell[][] getGrid() {\n return grid;\n }", "public Tile[][] getTiles() {\n return tiles;\n }", "@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }", "public boolean inGrid(int y, int x) {\n\n if (y > 0 && x > 0 && y < height - 1 && x < width - 1) {\n return true;\n }\n\n return false;\n }", "public boolean[][] getCells() {\n return cells;\n }", "public boolean isApplicable(int xCells, int yCells, int tileSize)\n{\n //int actualXCells = m.getOutputImageManager().getMosaic().getFlipH().length;\n //int actualYCells = m.getOutputImageManager().getMosaic().getFlipH()[0].length;\n \n int actualTileSize = (int)cp5.getController(\"sizeOfTiles\").getValue();\n boolean isThereMatch = false;\n \n int actualXCells;\n int actualYCells;\n \n for(int i = 1; i < cp5.getController(\"sizeOfTiles\").getMax()+1; i++)\n {\n actualXCells = (m.getOutputImageManager().getMosaic().getXCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getW()*i)+3;\n actualYCells = (m.getOutputImageManager().getMosaic().getYCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getH()*i);\n if(xCells == actualXCells && yCells == actualYCells)\n isThereMatch = true;\n //println(xCells, yCells, i);\n //println(actualXCells,actualYCells, actualTileSize);\n //println(\"\");\n }\n return isThereMatch;\n}", "public Row(Context context, boolean black, int x, int y, int tileWidth, int tileHeight, int index) {\n this.blackFirst = black;\n this.context = context;\n this.index = index;\n this.x = x;\n this.y = y;\n dy = GamePanel.gameSpeed;\n\n\n// BLACK_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.black);\n// WHITE_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.white);\n\n tiles = new ArrayList<>();\n if (blackFirst) {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// } else {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// }\n// tiles.add(i, tile);\n// }\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n }\n tiles.add(i, tile);\n }\n } else {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// } else {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// }\n// tiles.add(i, tile);\n// }\n\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n }\n tiles.add(i, tile);\n }\n }\n\n\n }", "private void drawBackgroundGrid(Canvas canvas) {\n Resources resources = getResources();\n Drawable backgroundCell = resources.getDrawable(R.drawable.cell_rectangle);\n // Outputting the game grid\n for (int xx = 0; xx < game.numSquaresX; xx++) {\n for (int yy = 0; yy < game.numSquaresY; yy++) {\n int sX = startingX + gridWidth + (cellSize + gridWidth) * xx;\n int eX = sX + cellSize;\n int sY = startingY + gridWidth + (cellSize + gridWidth) * yy;\n int eY = sY + cellSize;\n\n drawDrawable(canvas, backgroundCell, sX, sY, eX, eY);\n }\n }\n }", "public ArrayList<Cell> getPseudoLegalMoves() {\n\n int[][] offsetMultiplier = {{-1,-1},{-1,1},{1,-1},{1,1}}; //4 directions NW, NE, SW, SE\n int x = getRow(); int y = getColumn();\n\n\n return Piece.slidingPieceMoves(x,y,this.getColor(),offsetMultiplier);\n\n }", "public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }", "private void makeGrid(JLabel moves, JLabel remainingBombs) {\r\n this.grid = new Tile[gridSize][gridSize]; \r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (solution[r][c] == 1) {\r\n grid[r][c] = new Tile(r, c, true);\r\n } else {\r\n grid[r][c] = new Tile(r, c, false);\r\n }\r\n final Tile t = grid[r][c];\r\n t.repaint();\r\n handleClicksAndMoves(t, moves, remainingBombs); \r\n }\r\n }\r\n }", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "protected BoardGrid getGrid() {\n return GameController.getInstance().getGrid();\n }" ]
[ "0.611782", "0.60651803", "0.5915533", "0.58614486", "0.5772863", "0.57516944", "0.57348984", "0.5683961", "0.5645355", "0.5637256", "0.5596443", "0.5563297", "0.5557892", "0.5547274", "0.55144083", "0.55141836", "0.55119705", "0.5500461", "0.5457296", "0.54548264", "0.54426354", "0.5401883", "0.5382814", "0.5363874", "0.53456795", "0.53387225", "0.5338073", "0.5314446", "0.5310358", "0.5304751", "0.53013027", "0.52958053", "0.5267399", "0.52662617", "0.52587336", "0.52585745", "0.525502", "0.5254017", "0.5251121", "0.5248475", "0.5208299", "0.51998943", "0.5195801", "0.51939106", "0.51903456", "0.51823187", "0.5181642", "0.5178189", "0.5169367", "0.5161784", "0.51612324", "0.51583594", "0.5151818", "0.5149516", "0.51474375", "0.51410896", "0.51357394", "0.5135466", "0.5134105", "0.5129563", "0.51253223", "0.5124207", "0.5113044", "0.51102823", "0.5108647", "0.51065046", "0.5099527", "0.5099025", "0.5098193", "0.50973004", "0.5096807", "0.5095036", "0.5077832", "0.5077176", "0.50680196", "0.5063228", "0.50607127", "0.5060261", "0.5058363", "0.50473005", "0.50468725", "0.50463146", "0.50458956", "0.50426763", "0.5036864", "0.5035308", "0.50214595", "0.50205916", "0.5019581", "0.5015375", "0.5012193", "0.5000447", "0.49984163", "0.49962616", "0.49887377", "0.49833164", "0.49806923", "0.49779", "0.4977332", "0.4970097" ]
0.54554206
19
Update the grid of passable (clip true) and impassable (clip false) tiles.
void setClip(Boolean[][] clip) { this.clip = clip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }", "private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }", "private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }", "public void makeChanges() { \n for(int i = 1; i < 9; i++) {\n for(int j = 1; j < 11; j++) {\n if(!(controller.getBoard().getPiece(i, j) instanceof Forbidden)) {\n Cell[i][j].setBackground(Color.white);\n if(controller.getBoard().getPiece(i,j) != null) {\n if(controller.getPlayer(controller.getTurn()).getColour() != controller.getBoard().getPiece(i,j).getColour()) {\n if(controller.getTurn() == 1) {\n Cell[i][j].setIcon(new ImageIcon(\"pieces\\\\redHidden.png\"));\n Cell[i][j].setEnabled(false);\n } else {\n Cell[i][j].setIcon(new ImageIcon(\"pieces\\\\blueHidden.png\"));\n Cell[i][j].setEnabled(false);\n }\n } else {\n Cell[i][j].setIcon((controller.getBoard().getPiece(i, j).getIcon()));\n Cell[i][j].setEnabled(true);\n }\n if(controller.getBoard().getPiece(i,j) instanceof Trap || controller.getBoard().getPiece(i,j) instanceof Flag) {\n Cell[i][j].removeActionListener(handler);\n Cell[i][j].setEnabled(false);\n }\n } else {\n Cell[i][j].setBackground(Color.white);\n Cell[i][j].setEnabled(false);\n }\n }\n }\n }\n controller.setTurn(); \n }", "private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}", "@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }", "private void setupGrid() {\n mGrid = (GridView) findViewById(R.id.grid_view);\n\n // Setting number of columns in the grid:\n mGrid.setNumColumns(mGame.getmBoard().getNumberOfCols());\n\n // Setting the adapter for the grid:\n mGrid.setAdapter(new TileAdapter(getApplicationContext(), mGame.getmBoard()));\n\n // Setting a click listener for the grid:\n mGrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n // Making sure the game hasn't ended and that its a proper timing to let the player make his turn.\n if (mGame.getmGameStatus() == Game.GameStatus.ONGOING && mIsAllowedToPlay) {\n\n Log.d(\"Playable Tiles\" , mPlayableTiles.toString());\n Log.d(\"Position\" , \"\" + position);\n\n // If this tile is playable:\n if (mPlayableTiles.contains(position)){\n\n mIsAllowedToPlay = false; // Disabling the player to play for now.\n\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Playing proper sound.\n\n // Cancel Guidelines:\n if(mGuidelines != null) {\n mGuidelines.cancel();\n mGuidelines = null;\n // refresh tiles' color:\n for(int i = 0; i < mGrid.getChildCount(); i++){\n mGrid.getChildAt(i).setBackgroundResource(R.drawable.button_tile);\n }\n }\n\n // Making the play and updating grid:\n mGame.playTile(position/mGame.getmBoard().getNumberOfCols(),position%mGame.getmBoard().getNumberOfCols());\n ((TileAdapter)mGrid.getAdapter()).notifyDataSetChanged();\n\n // Updating Counters:\n mBlackCounter.setText(\"\" + mGame.getmBoard().getmNumberOfBlackPieces());\n mWhiteCounter.setText(\"\" + mGame.getmBoard().getmNumberOfWhitePieces());\n\n // While the UI changes, make a proper sound for flipping pieces (after a short delay):\n // And then move on (update UI, let opponent play next, end game, etc.)\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start(); // Playing proper sound.\n\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Now back to UI thread in order to update UI:\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n\n // If game is still ongoing:\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != mPlayerGamePiece) {\n\n // Updating colors for profile areas:\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mOpponentUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mPlayerUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now A.I. opponent should make a move:\n makeAIMove();\n\n }\n\n // Otherwise, player gets another turn:\n else{\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n\n }\n\n else{ // Otherwise, game has ended.\n handleGameEnding();\n }\n\n }\n });\n\n\n }\n\n }).start();\n\n }\n\n }\n\n }\n });\n\n }", "public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}", "@Override\r\n protected void paintComponent(Graphics g) {\n paintWater(g);\r\n \r\n g.setColor(new Color(255, 255, 255, 70));\r\n g.fillRect(0, 0, 500, 500);\r\n \r\n \r\n // Paint the Grid ------------------------------------------\r\n g.setColor(Color.BLACK);\r\n \r\n for (int i = -1; i < 500; i += 50) {\r\n \r\n g.fillRect(i, 0, 2, 500);\r\n g.fillRect(0, i, 500, 2);\r\n \r\n }\r\n \r\n paintShips(g);\r\n paintHits(g);\r\n \r\n \r\n if (isPainted && shortBoard == ATTACK_BOARD && newGD.isMyTurn() && !missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, mouseX, mouseY, null);\r\n }\r\n \r\n if (shortBoard == ATTACK_BOARD && newGD.isMyTurn() && missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, missile.getPosition().x, missile.getPosition().y, null);\r\n }\r\n \r\n // Paint square under mouse pointer (also for testing)\r\n /*if (isPainted) {\r\n \r\n g.setColor(colorSquare);\r\n g.fillRect(mouseX, mouseY, 50, 50);\r\n \r\n }*/\r\n \r\n }", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n \n Color color;\n ImageIcon image;\n \n switch ( terrain )\n {\n case SAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sand.jpg\")); break;\n case FOREST : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\")); break;\n case WETLAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/forest.jpg\")); break;\n case SCRUB : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\")); break;\n case WATER : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\")); break;\n case BRICK : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick.jpg\")); break;\n default : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/gray.jpg\")); break; \n }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column));\n lblText.setHorizontalTextPosition((int) CENTER_ALIGNMENT);\n lblText.setVerticalTextPosition((int) CENTER_ALIGNMENT);\n \n setVisible(true);\n \n //Kiwifruit\n if( row == 6 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick2.jpg\"));\n }\n \n if( row == 0 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n \n if( row == 7 && column == 0 || row == 7 && column == 7 || row == 6 && column == 6 || row == 8 && column == 3 || row == 9 && column == 3 || row == 9 && column == 4 || row == 9 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassk.jpg\"));\n }\n \n if( row == 2 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n //Trap\n if(\"T\".equals(game.getOccupantStringRepresentation(row, column))){\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/trap.jpg\"));\n lblText.setIcon(image);\n }\n //Food\n //if(game.getOccupantStringRepresentation(row, column) == \"apple\" ) {\n //image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n //}\n if( row == 6 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 5 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassm.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 2 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubs.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 8 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grasso.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n //Predator\n if( row == 2 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 9 && column == 7 ||row == 5 && column == 2 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassp.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 3 && column == 4 || row == 6 && column == 4 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 4 && column == 1) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/waters.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\"));\n }\n }\n //Mystical Creature\n if( row == 7 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brickf.jpg\"));\n }\n \n if( row == 4 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandph.jpg\"));\n }\n \n if( row == 0 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandm.jpg\"));\n }\n \n if( row == 4 && column == 6 || row == 6 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubp.jpg\"));\n }\n \n if( row == 8 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassd.jpg\"));\n }\n \n \n //Hazard\n if( squareExplored && row == 2 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n\n \n if( squareExplored && row == 3 && column == 5 || squareExplored && row == 7 && column == 4 || squareExplored && row == 6 && column == 5 || squareExplored && row == 7 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 1 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 5 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if ( squareVisible && !squareExplored ) \n {\n\n }\n lblText.setIcon(image);\n \n // set border colour according to \n // whether the player is in the grid square or not\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n }\n else\n {\n lblText.setText(\"\");\n lblText.setIcon(null);\n setBorder(normalBorder);\n }\n }", "private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }", "private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }", "public void paint(Graphics g){\r\n super.paintComponent(g);\r\n for(int row = 0; row < 8; row++) {\r\n for (int col = 0; col < 8; col++) {\r\n if((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)){\r\n g.setColor(Color.gray.brighter()); //pale yellow\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n else{\r\n g.setColor(Color.gray.darker()); //dark brown\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n if ((currentPlayer.getColor()==checks[row][col])) {\r\n g.setColor(Color.darkGray.darker());\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.nextMove[row][col] == 1) {\r\n g.setColor(Color.getHSBColor(98,70,43));\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.checks[row][col] != 0) {\r\n if (this.checks[row][col] == WHITE) {\r\n drawPiece(row, col, g, Color.yellow.brighter());\r\n if (row == 7)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n else{\r\n drawPiece(row, col, g, Color.black);\r\n if (row == 0)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(isOver && isGame){\r\n gameOverDisplay(g);\r\n }\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (mGame.getmGameStatus() == Game.GameStatus.ONGOING && mIsAllowedToPlay) {\n\n Log.d(\"Playable Tiles\" , mPlayableTiles.toString());\n Log.d(\"Position\" , \"\" + position);\n\n // If this tile is playable:\n if (mPlayableTiles.contains(position)){\n\n mIsAllowedToPlay = false; // Disabling the player to play for now.\n\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start(); // Playing proper sound.\n\n // Cancel Guidelines:\n if(mGuidelines != null) {\n mGuidelines.cancel();\n mGuidelines = null;\n // refresh tiles' color:\n for(int i = 0; i < mGrid.getChildCount(); i++){\n mGrid.getChildAt(i).setBackgroundResource(R.drawable.button_tile);\n }\n }\n\n // Making the play and updating grid:\n mGame.playTile(position/mGame.getmBoard().getNumberOfCols(),position%mGame.getmBoard().getNumberOfCols());\n ((TileAdapter)mGrid.getAdapter()).notifyDataSetChanged();\n\n // Updating Counters:\n mBlackCounter.setText(\"\" + mGame.getmBoard().getmNumberOfBlackPieces());\n mWhiteCounter.setText(\"\" + mGame.getmBoard().getmNumberOfWhitePieces());\n\n // While the UI changes, make a proper sound for flipping pieces (after a short delay):\n // And then move on (update UI, let opponent play next, end game, etc.)\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start(); // Playing proper sound.\n\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Now back to UI thread in order to update UI:\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n\n // If game is still ongoing:\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != mPlayerGamePiece) {\n\n // Updating colors for profile areas:\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mOpponentUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mPlayerUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now A.I. opponent should make a move:\n makeAIMove();\n\n }\n\n // Otherwise, player gets another turn:\n else{\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n\n }\n\n else{ // Otherwise, game has ended.\n handleGameEnding();\n }\n\n }\n });\n\n\n }\n\n }).start();\n\n }\n\n }\n\n }", "private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (!grid[r][c].isHidden() && !grid[r][c].isBomb()) {\r\n count++;\r\n }\r\n }\r\n }\r\n clearedTiles = count;\r\n }", "public void update(GameState gameState) {\n for (int i = 0;i < map.length; i++) {\n for (int j = 0;j < map[0].length;j++) {\n if (map[i][j] == TileType.WATER) {\n continue;\n }\n\n if (map[i][j] == TileType.MY_ANT) {\n map[i][j] = TileType.LAND;\n }\n\n if (gameState.getMap()[i][j] != TileType.UNKNOWN) {\n this.map[i][j] = gameState.getMap()[i][j];\n }\n }\n }\n\n this.myAnts = gameState.getMyAnts();\n this.enemyAnts = gameState.getEnemyAnts();\n this.myHills = gameState.getMyHills();\n this.seenEnemyHills.addAll(gameState.getEnemyHills());\n\n // remove eaten food\n MapUtils mapUtils = new MapUtils(gameSetup);\n Set<Tile> filteredFood = new HashSet<Tile>();\n filteredFood.addAll(seenFood);\n for (Tile foodTile : seenFood) {\n if (mapUtils.isVisible(foodTile, gameState.getMyAnts(), gameSetup.getViewRadius2())\n && getTileType(foodTile) != TileType.FOOD) {\n filteredFood.remove(foodTile);\n }\n }\n\n // add new foods\n filteredFood.addAll(gameState.getFoodTiles());\n this.seenFood = filteredFood;\n\n // explore unseen areas\n Set<Tile> copy = new HashSet<Tile>();\n copy.addAll(unseenTiles);\n for (Tile tile : copy) {\n if (isVisible(tile)) {\n unseenTiles.remove(tile);\n }\n }\n\n // remove fallen defenders\n Set<Tile> defenders = new HashSet<Tile>();\n for (Tile defender : motherlandDefenders) {\n if (myAnts.contains(defender)) {\n defenders.add(defender);\n }\n }\n this.motherlandDefenders = defenders;\n\n // prevent stepping on own hill\n reservedTiles.clear();\n reservedTiles.addAll(gameState.getMyHills());\n\n targetTiles.clear();\n }", "private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "@Override\n\t\tpublic void update(Graphics g) {\n\t\t\t\n\t\t\tImage pieceImg = null;\n\t\t\tif (board.square(row,column).isOccupied()) {\n\t\t\t\tint index = board.square(row,column).piece().imageIndex();\n\t\t\t\tpieceImg = pieceImages[index];\n\t\t\t}\n\t\t\tif (lightSquare)\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, lightSquareImg))); }\n\t\t\telse\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, darkSquareImg))); }\n\t\t}", "private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n if (game.hasPlayer(row, column)){\n setImage2(\"images/player.png\");\n } else {\n player = null;\n }\n \n //ImageIcon image = null;//new ImageIcon(\"images/blank.png\");\n JLabel lblImage = new JLabel(); // create a new label to put an image on\n \n // call the method to set a new Buffered image to this panel\n \n if (squareVisible && image == null){\n switch ( terrain )\n {\n case SAND : setImage(\"images/sand.png\"); break;// = new ImageIcon(\"images/sand.png\"); break;\n case FOREST : setImage(\"images/forest.png\"); break;\n case WETLAND : setImage(\"images/wetland.png\"); break;\n case SCRUB : setImage(\"images/scrub.png\"); break;\n case WATER : setImage(\"images/water.png\"); break;\n default : image = null; break;\n }\n }\n \n// this is old code that use to change the graphics, trying BufferedImage instead of IconImage\n// switch ( terrain )\n// {\n// case SAND : setImage(\"images/forest.png\");// = new ImageIcon(\"images/sand.png\"); break;\n// case FOREST : image = new ImageIcon(\"images/forest.png\"); break;\n// case WETLAND : image = new ImageIcon(\"images/wetland.png\"); break;\n// case SCRUB : image = new ImageIcon(\"images/scrub.png\"); break;\n// case WATER : image = new ImageIcon(\"images/water.png\"); break;\n// default : image = null; break;\n// }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column)); \n }\n else {\n lblText.setText(\"\");\n image = null;\n }\n \n // if the game is not being played, remove the activeBorder (this fixes the multiple borders glitch)\n// if (game.getState() != GameState.PLAYING) {\n// setBorder(normalBorder);\n// } \n \n // set the redsquare border to active if the player is here\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n \n\n // add the imageIcon to the gridsquare panel\n //lblImage.setIcon((Icon) image); // add the image to the label\n this.add(lblImage); // add the jlabel image to the current gridsquare\n \n JLabel lblImage2 = new JLabel(); \n this.add(lblImage2);\n \n }", "private void checkMoves(Tile t, MouseEvent e, ImageView img)\n {\n for(Tile tile : gb.getTiles())\n {\n tile.setStyle(null);\n tile.setOnMouseClicked(null);\n }\n ArrayList<Move> moves = t.getPiece().availableMoves(gb);\n for(Move m : moves)\n {\n gb.getTile(m.getX(),m.getY()).setStyle(\"-fx-background-color: #98FB98;\");\n gb.getTile(m.getX(),m.getY()).setOnMouseClicked(ev -> {\n if(ev.getTarget().getClass() == Tile.class)\n {\n movePiece(e,ev,t,img,moves);\n }\n else\n {\n ImageView img1 = (ImageView) ev.getTarget();\n Tile t2 = (Tile) img1.getParent();\n if(t2.isOccupied())\n {\n if(t2.getPiece().getClass() == King.class)\n {\n gb.setBlackKing(false);\n if(gameLogic.game(mainPane,gb.isBlackKing()))\n {\n cleanUp();\n }\n else {\n Platform.exit();\n }\n }\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n\n }\n else\n {\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n }\n cleanUpTile(moves);\n ev.consume();\n e.consume();\n }\n });\n }\n e.consume();\n }", "public void update() {\n\t\tfor (Entry<String, Integer> entry : countMap.entrySet()) {\n\t\t\tcountMap.put(entry.getKey(), 0);\n\t\t}\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = newGrid[i][j];\n\t\t\t\tc.setRow(i);\n\t\t\t\tc.setCol(j);\n\t\t\t\tblocks[i][j].setFill(c.getColor());\n\t\t\t\tcurrentGrid[i][j] = newGrid[i][j];\n\t\t\t}\n\t\t}\n\t\tempty(newGrid);\n\t}", "public void resetGrid() {\n background(50, 50, 50);\n this.grid = new ArrayList();\n //boolean black = true;\n for (int y=topHeight; y<h; y+=pixelSize) {\n for (int x=0; x<w; x+=pixelSize) {\n grid.add(new Location(x, y));\n }\n }\n populateGrid();\n\n this.gridCache = new ArrayList();\n this.doFullRender = true; // Why does this variable save as true in this method, but not when placed into resetGame()?\n}", "void updateBoard() {\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tif (filled[x][y]) {\r\n\t\t\t\t\t// Draw filled square\r\n\t\t\t\t\tdouble rand = Math.random();\r\n\t\t\t\t\tColor use = new Color(0, 0, 0);\r\n\t\t\t\t\tif (rand < .25) {\r\n\t\t\t\t\t\tuse = a;\r\n\t\t\t\t\t} else if (rand < .50) {\r\n\t\t\t\t\t\tuse = b;\r\n\t\t\t\t\t} else if (rand < .75) {\r\n\t\t\t\t\t\tuse = c;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuse = d;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length, use, true);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Draw empty square\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length,\r\n\t\t\t\t\t\t\tnew Color(192, 192, 192), false);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void redraw() {\r\n for (int row = 0; row < maxRows; row++) {\r\n for (int column = 0; column < maxColumns; column++) {\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n }\r\n }\r\n grid[snake[HEAD].row][snake[HEAD].column].setBackground(\r\n SNAKE_HEAD_COLOR);\r\n for (int i = 1; i < length; i++) {\r\n grid[snake[i].row][snake[i].column].setBackground(SNAKE_BODY_COLOR);\r\n }\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "public void setAllUnexplored() {\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (in_start(row, col) || in_goal(row, col)) {\n grid[row][col].setIsExplored(true);\n } else {\n grid[row][col].setIsExplored(false);\n }\n }\n }\n }", "private void disableRestrictedTiles(int x, int y) {\n\t\tif (shipsToPlace == 3) {\n\t\t\tfor (int i = 6; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[i][j].setEnabled(false);\n\t\t\t\t\tplayerBoard[i][j].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[i][j].setName((j) + \"\" + (i) + \"f\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (shipsToPlace == 2) {\n\t\t\t// disables long ship tiles\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (y - i >= 0) {\n\t\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setName((x + j) + \"\" + (y - i) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disables restricted tiles\n\t\t\tfor (int i = 8; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the second ship\");\n\t\t} else if (shipsToPlace == 1) {\n\t\t\t// disable medium ship tiles\n\t\t\tif (y - 1 >= 0) {\n\t\t\t\tplayerBoard[x][y - 1].setEnabled(false);\n\t\t\t\tplayerBoard[x][y - 1].setBackground(Color.lightGray);\n\t\t\t\tplayerBoard[x][y - 1].setName(x + \"\" + (y - 1) + \"f\");\n\t\t\t}\n\t\t\tplayerBoard[x][y].setEnabled(false);\n\t\t\tplayerBoard[x][y + 1].setEnabled(false);\n\t\t\tplayerBoard[x][y + 2].setEnabled(false);\n\n\t\t\tplayerBoard[x][y].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\n\t\t\tplayerBoard[x][y].setName(x + \"\" + y + \"f\");\n\t\t\tplayerBoard[x][y + 1].setName(x + \"\" + (y + 1) + \"f\");\n\t\t\tplayerBoard[x][y + 2].setName(x + \"\" + (y + 2) + \"f\");\n\n\t\t\t// disables long ship tiles\n\t\t\tfor (int counter1 = 0; counter1 < 2; counter1++) {\n\t\t\t\tif (longShipCoords[1] - counter1 >= 0) {\n\n\t\t\t\t\tfor (int longcount = 0; longcount < 5; longcount++) {\n\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setName((longShipCoords[0] + longcount) + \"\" + (longShipCoords[1] - counter1) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disable restricted tiles\n\t\t\tfor (int i = 9; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the third ship\");\n\t\t} else {\n\t\t\tenableAllTiles();\n\t\t}\n\t}", "public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }", "private void updatePawnOnGrid(Image image, int actionIndex) {\n gridMap.get(gridFreeSlot).setImage(image);\n gridFreeSlot++;\n }", "private void update() {\n // Set for each cell\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n cell.setBackground(BKGD_DARK_GRAY);\n cell.setForeground(Color.WHITE);\n cell.setFont(new Font(\"Halvetica Neue\", Font.PLAIN, 36));\n cell.setBorder(new LineBorder(Color.BLACK, 0));\n cell.setHorizontalAlignment(JTextField.CENTER);\n cell.setCaretColor(new Color(32, 44, 53));\n cell.setDragEnabled(false);\n cell.setTransferHandler(null);\n\n // Add subgrid separators\n CellPosition pos = cell.getPosition();\n if (pos.getColumn() == 2 || pos.getColumn() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 2, new Color(146, 208, 80)));\n } else if (pos.getRow() == 2 || pos.getRow() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 0, new Color(146, 208, 80)));\n }\n if ((pos.getColumn() == 2 && pos.getRow() == 2) || (pos.getColumn() == 5 && pos.getRow() == 5)\n || (pos.getColumn() == 2 && pos.getRow() == 5) || (pos.getColumn() == 5 && pos.getRow() == 2)) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 2, new Color(146, 208, 80)));\n }\n\n // Validate User's Cell Input + Mouse Listeners\n cell.removeKeyListener(cellKeyListener);\n cell.removeMouseListener(cellMouseListener);\n if (cell.isLocked()) {\n cell.setEditable(false);\n cell.setHighlighter(null);\n } else {\n cell.setBackground(BKGD_LIGHT_GRAY);\n cell.addMouseListener(cellMouseListener);\n cell.addKeyListener(cellKeyListener);\n }\n if (cell.isEmpty()) {\n cell.setText(\"\");\n } else {\n cell.setText(String.valueOf(cell.getUserValue()));\n }\n\n // Adds cell to the view's grid\n this.view.getGamePanel().getGrid().add(cell);\n }\n\n }", "public void paintVisible(Graphics g){\n\n for (int i = 0; i < listOfTiles.size(); i++) {\n //In setPixels, the 3rd arguement is essentially the \"z\" height\n TileView holder = listOfTiles.get(i);\n\n //The tile Y pixels should be increased based on the z coordinate per column\n yPixel -= 8; //Now this will be the same as paintMapObjects\n holder.setPixels(xPixel, yPixel);\n holder.paintComponent(g);\n }\n }", "@VisibleForTesting\n Drawable tileify(Drawable drawable, boolean clip) {\n if (drawable instanceof WrappedDrawable) {\n Drawable inner = ((WrappedDrawable) drawable).getWrappedDrawable();\n if (inner != null) {\n inner = tileify(inner, clip);\n ((WrappedDrawable) drawable).setWrappedDrawable(inner);\n }\n } else if (drawable instanceof LayerDrawable) {\n LayerDrawable background = (LayerDrawable) drawable;\n final int N = background.getNumberOfLayers();\n Drawable[] outDrawables = new Drawable[N];\n\n for (int i = 0; i < N; i++) {\n int id = background.getId(i);\n outDrawables[i] = tileify(background.getDrawable(i),\n (id == android.R.id.progress || id == android.R.id.secondaryProgress));\n }\n\n LayerDrawable clone = new LayerDrawable(outDrawables);\n for (int i = 0; i < N; i++) {\n clone.setId(i, background.getId(i));\n if (Build.VERSION.SDK_INT >= 23) {\n Api23Impl.transferLayerProperties(background, clone, i);\n }\n }\n\n return clone;\n\n } else if (drawable instanceof BitmapDrawable) {\n final BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;\n final Bitmap tileBitmap = bitmapDrawable.getBitmap();\n if (mSampleTile == null) {\n mSampleTile = tileBitmap;\n }\n\n final ShapeDrawable shapeDrawable = new ShapeDrawable(getDrawableShape());\n final BitmapShader bitmapShader = new BitmapShader(tileBitmap,\n Shader.TileMode.REPEAT, Shader.TileMode.CLAMP);\n shapeDrawable.getPaint().setShader(bitmapShader);\n shapeDrawable.getPaint().setColorFilter(bitmapDrawable.getPaint().getColorFilter());\n return clip ? new ClipDrawable(shapeDrawable, Gravity.LEFT,\n ClipDrawable.HORIZONTAL) : shapeDrawable;\n }\n\n return drawable;\n }", "public void draw(Graphics g){\n\t\tif(firstRepaint==false){\n\t\t\tfirstRepaint = true;\n\t\t}\n\t\tif(secondRepaint==false&&firstRepaint==true){\n\t\t\t\n\t\t\tcenterAlignPlayer();\n\t\t\tsecondRepaint = true;\n\t\t}\n\t\t\n\t\t//Tile the backgroundTile if it exists.\n\t\tif(backgroundTile != null){\n\t\t\t\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint imageW = darkenedTileImage.getWidth(this);\n\t\t\tint imageH = darkenedTileImage.getHeight(this);\n\t\t\t\n\t\t\t// Tile the image to fill our area.\n\t\t\tif(player != null){ //Use player offsets.\n\t\t\t\tfor (int x = roundDownWidth(offsetX)-GameConstants.TILE_WIDTH; x <= roundUpWidth(offsetX + width); x += imageW){\n\t\t\t\t\tfor (int y = roundDownHeight(offsetY)-GameConstants.TILE_HEIGHT; y <= roundUpHeight(offsetY + height); y += imageH){\n\t\t\t\t\t\tif(levelArea.contains(x, y)){\n\t\t\t\t\t\t\tg.drawImage(darkenedTileImage, x-offsetX, y-offsetY, this);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tg.drawImage(tileImage, x-offsetX, y-offsetY, this);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor (int x = 0; x <= width; x += imageW){\n\t\t\t\t\tfor (int y = 0; y <= height; y += imageH){\n\t\t\t\t\t\tif(levelArea.contains(x, y)){\n\t\t\t\t\t\t\tg.drawImage(darkenedTileImage, x, y, this);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tg.drawImage(tileImage, x, y, this);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tsuper.draw(g);\n\t\t\n\t\t//Show FPS and fly indicator if there is a reference to PuzzBlocks game.\n\t\tif(GameConstants.DEBUG_MODE){\n\t\t\tif(game != null){\n\t\t\t\tColor oldColor = g.getColor();\n\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\n\t\t\t\tg.setFont( new Font(GameConstants.FPS_FONT, Font.BOLD, GameConstants.FPS_FONT_SIZE) );\n\t\t\t\tg.drawString(\"FPS: \" + game.getFPS(), 0, (int)(GameConstants.FPS_FONT_SIZE * 0.75) ); // (+ \"\") converts int to String.\n\t\t\t\t\n\t\t\t\tif(Physics.isFlyEnabled()){\n\t\t\t\t\tg.drawString(\"Flying enabled\", 0, getHeight());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tg.setColor(oldColor);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void updateFromHit(int x, int y, boolean hit) {\n\t\tfloat[][] old = board.getBoardCopy();\n\t\tint fromX = Math.max(x - TOWER_RANGE, 0);\n\t\tint toX = Math.min(old.length, x + TOWER_RANGE);\n\t\tint fromY = Math.max(y - TOWER_RANGE, 0);\n\t\tint toY = Math.min(old[0].length, y + TOWER_RANGE);\n\t\tfor (int r = fromX; r < toX; r++) {\n\t\t\tfor (int c = fromY; c < toY; c++) {\n\t\t\t\tif (board.getSeen(r, c) // Only need to update out-of-view cells.\n\t\t\t\t\t\t|| distance(x, y, r, c) <= TOWER_RANGE) { // tower has circular range\n\t\t\t\t\tcontinue; \n\t\t\t\t}\n\n\t\t\t\tfloat phn, pht;\n\t\t\t\tif (hit) {\n\t\t\t\t\t// P(H|N) = 1 - P(S|N)\n\t\t\t\t\tphn = 1;\n\t\t\t\t\tfor (int rr = fromX; rr < toX; rr++) {\n\t\t\t\t\t\tfor (int cc = fromY; cc < toY; cc++) {\n\t\t\t\t\t\t\tif (rr == r && cc == c) continue;\n\t\t\t\t\t\t\t// P(S) = P(N)+(P(T)*(1-P(H)))\n\t\t\t\t\t\t\tphn *= (1f - old[rr][cc]) + (old[rr][cc] * (1f - TOWER_ACCURACY));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tphn = 1f - phn;\n\n\t\t\t\t\t// P(H|T): same as above, but without skipping r, c\n\t\t\t\t\t// Simplifies to 1-((1-P(H|N))*P(M)) since tower existing is given.\n\t\t\t\t\tpht = 1f - ((1f - phn) * (1f - TOWER_ACCURACY));\n\t\t\t\t} else {\n\t\t\t\t\t// P(S|N) = P(S)\n\t\t\t\t\tphn = 1;\n\t\t\t\t\tfor (int rr = fromX; rr < toX; rr++) {\n\t\t\t\t\t\tfor (int cc = fromY; cc < toY; cc++) {\n\t\t\t\t\t\t\tif (rr == r && cc == c) continue;\n\t\t\t\t\t\t\t// P(S) = P(N)+(P(T)*(1-P(H)))\n\t\t\t\t\t\t\tphn *= (1f - old[rr][cc]) + (old[rr][cc] * (1f - TOWER_ACCURACY));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// P(S|T): same as above, but without skipping r, c\n\t\t\t\t\t// Simplifies to P(H|N))*P(M) since tower existing is given.\n\t\t\t\t\tpht = phn * (1f - TOWER_ACCURACY);\n\t\t\t\t}\n\n\t\t\t\t// P(T|H) = P(H|T)*P(T)/(P(H|T)*P(T)+P(H|N)*P(N))\n\t\t\t\tboard.setTowerProbability(r, c, pht * old[r][c] / (pht * old[r][c] + phn * (1 - old[r][c])));\n\t\t\t}\n\t\t}\n\t}", "public void presetPattern(){\n // clear all the cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n }\n \n // change specific cells to live\n for (int i = 7; i < 12; i++) {\n for (int j = 7; j < 12; j++) {\n game.grid[i][j] = true;\n }\n }\n \n // remove middle cell\n game.grid[9][9] = false;\n \n repaint();\n }", "public void drawCell()\n {\n // if mouse is not inside tile area dont draw anything\n if(showHover)\n {\n noStroke();\n \n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n \n if(brushSize == 1)\n {\n if(!pattern[hover[0]][hover[1]])\n {\n pattern[hover[0]][hover[1]] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]][hover[1]] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n }\n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells)\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells &&\n hover[0]+i >= 0 && hover[1]+j >= 0 )\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }", "@Override \r\n public void paintComponent(final Graphics theGraphics) { \r\n super.paintComponent(theGraphics); \r\n final Graphics2D g2d = (Graphics2D) theGraphics; \r\n \r\n final int width = myBoard.getWidth(); \r\n final int height = myBoard.getHeight(); \r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON); \r\n \r\n // draw purple game grid\r\n g2d.setColor(PURPLE); \r\n for (int i = 0; i < Math.max(width, height); i++) { \r\n final int lines = i * GRID_SIZING; \r\n \r\n //draws horizontal lines\r\n g2d.draw(new Line2D.Double(lines, ZERO, lines, height * GRID_SIZING));\r\n \r\n //draws vertical lines\r\n g2d.draw(new Line2D.Double(ZERO, lines, width * GRID_SIZING, lines));\r\n \r\n if (myBoard.isGameOver()) { \r\n myGameOver = true; \r\n myGamePaused = true; \r\n }\r\n } \r\n \r\n //update blocks\r\n drawCurrentPiece(g2d, height, width);\r\n drawFrozenBlocks(g2d, height, width);\r\n handlePausedGame(g2d);\r\n }", "public void update(GameModel model) {\n assert model.getRowCount() == this.rowCount && model.getColumnCount() == this.columnCount;\n //\n for (int row = 0; row < this.rowCount; row++){\n for (int column = 0; column < this.columnCount; column++){\n CellValue value = model.getCellValue(row, column);\n if (value == CellValue.WALL) {\n this.cellViews[row][column].setImage(this.wallImage);\n }\n else if (value == CellValue.PISTOLA) {\n this.cellViews[row][column].setImage(this.pistolaImage);\n }\n else if (value == CellValue.ALIENEGG) {\n this.cellViews[row][column].setImage(this.alienEggImage);\n }\n else {\n this.cellViews[row][column].setImage(null);\n }\n //verifique en qué dirección va astronauta y muestre la imagen correspondiente\n if (row == model.getAstronautaLocation().getX() && column == model.getAstronautaLocation().getY() && (GameModel.getLastDirection() == GameModel.Direction.RIGHT || GameModel.getLastDirection() == GameModel.Direction.NONE)) {\n this.cellViews[row][column].setImage(this.astronautaImage);\n }\n else if (row == model.getAstronautaLocation().getX() && column == model.getAstronautaLocation().getY() && GameModel.getLastDirection() == GameModel.Direction.LEFT) {\n this.cellViews[row][column].setImage(this.astronautaImage);\n }\n else if (row == model.getAstronautaLocation().getX() && column == model.getAstronautaLocation().getY() && GameModel.getLastDirection() == GameModel.Direction.UP) {\n this.cellViews[row][column].setImage(this.astronautaImage);\n }\n else if (row == model.getAstronautaLocation().getX() && column == model.getAstronautaLocation().getY() && GameModel.getLastDirection() == GameModel.Direction.DOWN) {\n this.cellViews[row][column].setImage(this.astronautaImage);\n }\n //hacer que los OVNIS \"parpadeen\" hacia el final de ovniEatingMode (mostrar imágenes OVNI regulares en actualizaciones alternas del contador)\n if (GameModel.isOvniEatingMode() && (Controller.getovniEatingModeCounter() == 6 ||Controller.getovniEatingModeCounter() == 4 || Controller.getovniEatingModeCounter() == 2)) {\n if (row == model.getOvniLocation().getX() && column == model.getOvniLocation().getY()) {\n this.cellViews[row][column].setImage(this.ovniImage);\n }\n if (row == model.getOvni2Location().getX() && column == model.getOvni2Location().getY()) {\n this.cellViews[row][column].setImage(this.ovni2Image);\n }\n }\n //mostrar OVNIS azules en ovniEatingMode\n else if (GameModel.isOvniEatingMode()) {\n if (row == model.getOvniLocation().getX() && column == model.getOvniLocation().getY()) {\n this.cellViews[row][column].setImage(this.ovnidestructibleImage);\n }\n if (row == model.getOvni2Location().getX() && column == model.getOvni2Location().getY()) {\n this.cellViews[row][column].setImage(this.ovnidestructibleImage);\n }\n }\n //display imágenes OVNIS regulares de lo contrario\n else {\n if (row == model.getOvniLocation().getX() && column == model.getOvniLocation().getY()) {\n this.cellViews[row][column].setImage(this.ovniImage);\n }\n if (row == model.getOvni2Location().getX() && column == model.getOvni2Location().getY()) {\n this.cellViews[row][column].setImage(this.ovni2Image);\n }\n }\n }\n }\n }", "@Override\n public void revealAllMines() {\n for (Tile[] tiles : grid) {\n for (Tile t : tiles) {\n if (t.getType() == Tile.MINE) {\n t.setState(Tile.REVEALED);\n }\n }\n }\n }", "private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}", "private void updateBattleSides() {\n ArrayList<MovingEntity> convertedEnemies = new ArrayList<MovingEntity>();\n ArrayList<MovingEntity> convertedAllies = new ArrayList<MovingEntity>();\n for (MovingEntity e: battleEnemies) {\n // check converting enemies to allies\n if (e.isFriendly() == true) {\n convertedEnemies.add(e);\n }\n }\n // convert here to avoid ConcurrentModificationException\n for (MovingEntity converted: convertedEnemies) {\n checkSideSwap(converted, true, battleAllies, targetAllies, battleEnemies, targetEnemies);\n }\n for (MovingEntity e: battleAllies) {\n // check converting allies to enemies\n if (e.isFriendly() == false) {\n convertedAllies.add(e);\n }\n }\n for (MovingEntity converted: convertedAllies) {\n checkSideSwap(converted, false, battleEnemies, targetEnemies, battleAllies, targetAllies);\n }\n }", "public static void updateGrid(int grid[][])\n {\n\n int tempGrid [][] = new int [10][10];\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n tempGrid[i][j] = grid[i][j];\n }\n }\n for (int i =1; i<9;i++)\n {\n for (int j = 1; j<9;j++)\n {\n //check neighbors\n int neighbors = grid[i-1][j-1]+grid[i-1][j]+grid[i-1][j+1]+grid[i][j-1]+grid[i][j+1]+grid[i+1][j-1]+grid[i+1][j]+grid[i+1][j+1];\n if (grid[i][j]==1 && ((neighbors>=4 || neighbors<=1))) // check rules\n {\n tempGrid[i][j] =0;\n }\n else if (grid[i][j]==0 && neighbors==3) //check rules\n {\n tempGrid[i][j] =1;\n }\n }\n }\n displayGrid(tempGrid); //display the grid\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n grid[i][j]=tempGrid[i][j]; //change the original grid\n }\n }\n \n }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "private void prepareBoard(){\n gameBoard.arrangeShips();\n }", "private void checkIfOccupied(int row, int col) {\n if (status == MotionStatus.DOWN || AIisAttacking) {\n\n// if (player && playerAttacks != null) {\n// // Ignore touch if player has previously committed an attack on that cell.\n// for (int i = 0; i < playerAttacks.size(); i++) {\n// if (playerAttacks.get(i).equals(row,col)) {\n// Log.i(\"for\", \"You Hit this Previously!\");\n// }\n// }\n// }\n\n for (int i = 0; i < occupiedCells.size(); i++) {\n if (occupiedCells.get(i).x == row && occupiedCells.get(i).y == col) {\n Point p = new Point(row, col);\n selectedShip = findWhichShip(p); //Touching View Updated\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n setHit(true);\n break;\n }\n }\n\n if (selectedShip == null) {\n setHit(false);\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n }\n\n } else if (status == MotionStatus.MOVE) {//MotionStatus.MOVE\n if (selectedShip != null) {//Need to make sure none of the current ship parts will overlap another.\n int rowHolder = selectedShip.getHeadCoordinatePoint().x;\n int colHolder = selectedShip.getHeadCoordinatePoint().y;\n int tempRow, tempCol;\n selectedShip.moveShipTo(row, col);\n for (Ship s : ships) {\n if (s != selectedShip) {\n\n for (int i = 0; i < selectedShip.getShipSize(); i++) {\n tempRow = selectedShip.getBodyLocationPoints()[i].x;\n tempCol = selectedShip.getBodyLocationPoints()[i].y;\n\n for (int j = 0; j < s.getShipSize(); j++) {\n if (tempRow == s.getBodyLocationPoints()[j].x && tempCol == s.getBodyLocationPoints()[j].y) {\n selectedShip.moveShipTo(rowHolder, colHolder);\n }\n }//for\n }//for\n }\n }//for\n }\n }//Move\n }", "public void updateGridX();", "private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }", "@Override\r\n\tpublic void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\t\t_resolutionResolver = new ScaledResolution(Minecraft.getMinecraft(), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);\r\n\t\tthis.width = _resolutionResolver.getScaledWidth();\r\n\t\tthis.height = _resolutionResolver.getScaledHeight();\r\n\r\n\t\t// Handle when the player clicked on a cell\r\n\t\tif (_selectedCell != -1) {\r\n\t\t \r\n\t\t\t// make sure we have our player or otherwise we will\r\n\t\t // not be able to set the correct position for the player\r\n\t\t\tif (HubbyUtils.getServerPlayer() != null) {\r\n\t\t\t\tint cellIndex = _startCell + _selectedCell;\r\n\t\t\t\tif (cellIndex < UltraTeleportWaypoint.getWaypointCount()) {\r\n\t\t\t\t UltraTeleportWaypoint p = UltraTeleportWaypoint.getWaypoints().get(cellIndex);\r\n\t\t\t\t double posX = p.getPos().getX();\r\n\t\t\t\t double posY = p.getPos().getY();\r\n\t\t\t\t double posZ = p.getPos().getZ();\r\n\t\t\t\t float yaw = p.getRotationY();\r\n\t\t\t\t float pitch = p.getRotationX();\r\n\r\n\t\t\t\t // Get the client world to be able to find the proper block for teleporting\r\n\t\t\t\t World world = HubbyUtils.getClientWorld();\r\n\t\t\t\t if (world != null) {\r\n\t\t\t\t while (true) {\r\n\t\t\t\t \tBlockPos pos = new BlockPos(posX, posY, posZ);\r\n\t\t\t\t if (world.isAirBlock(pos)) {\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t posY += 1.0d;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\r\n\t\t\t\t // Update the player's location on the server and then\r\n\t\t\t\t // that will pass down to the client player and update his\r\n\t\t\t\t // position as well\r\n\t\t\t\t HubbyUtils.getServerPlayer().playerNetServerHandler.setPlayerLocation(posX, posY, posZ, yaw, pitch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t_selectedCell = -1;\r\n\t\t}\r\n\r\n\t\t// update selected list\r\n for (int i = 0; i < UltraTeleportWaypoint.getWaypointCount(); ++i) {\r\n if (i >= _selectedList.size()) {\r\n _selectedList.add(false);\r\n }\r\n }\r\n\r\n // Only show delete button when we have something selected\r\n if (getSelectedCount() > 0) {\r\n this.buttonList.add(_deleteButton);\r\n }\r\n else {\r\n this.buttonList.clear();\r\n }\r\n\t}", "private void bufferWorld() {\r\n\t\t//Draws to a PGraphics object must be surrounded with this...\r\n\t\tthis.backgroundBuffer.beginDraw();\r\n\t\t//Set a dark grey background\r\n\t\tthis.backgroundBuffer.background(50, 50, 50);\r\n\t\t//Iterate for each hexgon in the grid\r\n\t\tfor (int row = 0; row < this.numHexRow; row++) {\r\n\t\t\tfor (int col = 0; col < this.numHexCol; col++) {\r\n\t\t\tif (this.gridCells[row][col].getAnthill() == 1) {\r\n\t\t\t\t//If it is black anthill\r\n\t\t\t\tdrawImage(this.blackAnthillTile, row, col, 1);\r\n\t\t\t} else if (this.gridCells[row][col].getAnthill() == 2) { \r\n\t\t\t\t\t//If the cell is a red ant hill\r\n\t\t\t\t\tdrawImage(this.redAnthillTile, row, col, 1);\r\n\t\t\t\t} else if (this.gridCells[row][col].isRocky()) {\r\n\t\t\t\t\t//If it's rocky, randomly pick shade of grey\r\n\t\t\t\t\tint shade = this.random.nextInt(2);\r\n\t\t\t\t\tswitch (shade) {\r\n\t\t\t\t\t\tcase 0: this.backgroundBuffer.tint(LIGHT_ROCK_TINT);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1: this.backgroundBuffer.tint(NEUTRAL_ROCK_TINT);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2: this.backgroundBuffer.tint (DARK_ROCK_TINT);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdrawImage(this.rockTile, row, col, 1);\r\n\t\t\t\t\tthis.backgroundBuffer.tint(255); //Restore default no tint\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Otherwise it is a grass tile\r\n\t\t\t\t\tdrawImage(this.grassTile, row, col, 1); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.backgroundBuffer.endDraw();\r\n\t}", "public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}", "@FXML\n\tpublic void gridUpdate() {\n\t\tfor (int i = 0; i < gridPlayer.getChildren().size(); i++)\n\t\t\tif (gridPlayer.getChildren().get(i).getClass() == st.getClass())\n\t\t\t\t((Text) (gridPlayer.getChildren().get(i))).setText(\"\");\n\n\t\tTournament current = Tournament.getInstance();\n\t\tTeam t = current.getTeams()[current.getMyTeamId()];\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tText playerName = new Text(t.getPlayers().get(i).getName());\n\t\t\tText overall = new Text(t.getPlayers().get(i).getOverall() + \"\");\n\t\t\tText nation = new Text(t.getPlayers().get(i).getNationality());\n\t\t\tText value = new Text(t.getPlayers().get(i).getValue() / 1000000 + \"m €\");\n\n\t\t\tif (i < 11) {\n\t\t\t\toverall.setStyle(\"-fx-font-weight: bold\");\n\t\t\t\tplayerName.setStyle(\"-fx-font-weight: bold\");\n\t\t\t\tnation.setStyle(\"-fx-font-weight: bold\");\n\t\t\t\tvalue.setStyle(\"-fx-font-weight: bold\");\n\t\t\t}\n\n\t\t\tFile nationImg = new File(\"img/flags/\" + nation.getText().toLowerCase().trim() + \".png\");\n\t\t\tImageView flag = new ImageView(new Image(nationImg.toURI().toString()));\n\t\t\tflag.setFitHeight(20);\n\t\t\tflag.setFitWidth(40);\n\n\t\t\tgridPlayer.add(playerName, 1, i);\n\t\t\tgridPlayer.add(overall, 2, i);\n\t\t\tgridPlayer.add(flag, 3, i);\n\t\t\tgridPlayer.add(value, 4, i);\n\t\t}\n\t}", "private void setGridOnCollectibleSelected() {\n showCardInfo(getNameFromID(selectedCollectibleID));\n setGridColor(Color.GOLD);\n for (int row = 0; row < Map.NUMBER_OF_ROWS; row++) {\n for (int column = 0; column < Map.NUMBER_OF_COLUMNS; column++) {\n ImageView interactor = getInteractor(row, column);\n int finalRow = row, finalColumn = column;\n interactor.setOnMouseClicked(e -> handleUseCollectible(finalRow, finalColumn, false));\n\n }\n }\n }", "protected void repaint() {\n if (_tile!=null)\n _tile.repaint();\n }", "private void setValidMoves() {\n\t\tl.getValidMoves();\n\n\t\tif(l.upValid) {\t// Update upward movement\n\t\t\ttmp=layout_Circle[l.y-1][l.x];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\n\t\tif(l.leftValid) {\t// Update leftward movement\n\t\t\ttmp=layout_Circle[l.y][l.x-1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\n\t\tif(l.rightValid) {\t// Update rightward movement\n\t\t\ttmp=layout_Circle[l.y][l.x+1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Green\"));\n\t\t}\n\t}", "protected void doBright() {\r\n\t\talpha = 1.0f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}", "public void setTileStatus(int x, int y, TileStatus ts) throws IndexOutOfBoundsException{\n if(x < 0 || y < 0 || x >= grid.length || y >= grid[0].length) {\n throw new IndexOutOfBoundsException(\"Il n'existe pas de tuile à la position (\"+x+\",\"+y+\")\");\n }\n grid[x][y].setStatus(ts);\n }", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public void updateGridY();", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "private void update() {\n if (_dirty) {\n _fmin = _clips.getClipMin();\n _fmax = _clips.getClipMax();\n _fscale = 256.0f/(_fmax-_fmin);\n _flower = _fmin;\n _fupper = _flower+255.5f/_fscale;\n _dirty = false;\n }\n }", "private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }", "private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }", "@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}", "Board (boolean[][] board, List<Piece> pieces) {\n\n this.board = board;\n unusedPieces = new ArrayList<>(pieces);\n List<Piece> possiblePieces = new ArrayList<>(pieces);\n tessellate(possiblePieces.get(0));\n }", "void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }", "public void update()\n {\n if (sashButton != null) {\n Rectangle r = sashButton.getBounds();\n\n if (topGridSash.isVisible()) {\n topGridSash.resetBounds(r);\n }\n\n if (leftGridSash.isVisible()) {\n leftGridSash.resetBounds(r);\n }\n }\n }", "@Override\n public void updateImages()\n {\n image = ThemeManager.getInstance().getObstacleImage();\n blackedOutImage = ThemeManager.getInstance().getDisabledImage(\"obstacle\");\n }", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\t\t\t\t\t \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\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }", "@Override\n public void update(final Observable the_observed, final Object the_arg)\n {\n if (!my_board.isFull())\n {\n repaint();\n }\n }", "public void updateDisplay()\n {\n //Step 3\n\t Color color = null;\n //Hint - use a nested for loop\n\t for(int row = 0; row < grid.length; row++)\n\t {\n\t\t for(int col = 0; col < grid[0].length; col++)\n\t\t {\n\t\t\t if(grid[row][col] == EMPTY)\n\t\t\t {\n\t\t\t\t color = Color.BLACK;\n\t\t\t }\n\t\t\t else if(grid[row][col] == METAL)\n\t\t\t {\n\t\t\t\t color = Color.GRAY;\n\t\t\t }\n\t\t\t else if(grid[row][col] == SAND)\n\t\t\t {\n\t\t\t\t color = new Color(204, 186, 25);\n\t\t\t }\n\t\t\t else if(grid[row][col] == WATER)\n\t\t\t {\n\t\t\t\t color = new Color(7, 125, 116);\n\t\t\t }\n\t\t\t else if(grid[row][col] == HELIUM)\n\t\t\t {\n\t\t\t\t color = Color.WHITE;\n\t\t\t }\n\t\t\t else if(grid[row][col] == BOUNCE)\n\t\t\t {\n\t\t\t\t color = new Color(255, 0, 200);\n\t\t\t }\n\t\t\t else if(grid[row][col] == VIRUS)\n\t\t\t {\n\t\t\t\t color = new Color(153, 51, 204);\n\t\t\t }\n\t\t\t else if(grid[row][col] == FIRE)\n\t\t\t {\n\t\t\t\t color = new Color(229, 64, 0);\n\t\t\t }\n\t\t\t else if(grid[row][col] == VINE)\n\t\t\t {\n\t\t\t\t color = new Color(45, 102, 25);\n\t\t\t }\n\t\t\t else if(grid[row][col] == TELEPORT)\n\t\t\t {\n\t\t\t\t color = new Color(255, 255, 0);\n\t\t\t }\n\t\t\t else if(grid[row][col] == LASER)\n\t\t\t {\n\t\t\t\t color = new Color(245, 50, 41);\n\t\t\t }\n\t\t\t display.setColor(row, col, color);\n\t\t }\n\t }\n\t \n }", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tif (status.getStatus().equals(GameStatus.GAME_STATUS_EXEC) && arg0.getSource() instanceof ChessPiece) {\r\n\t\t\tChessPiece p = (ChessPiece)arg0.getSource();\r\n\t\t\tVector<ChessBoardBlock> blocks = this.getMovablePosition(p);\r\n\t\t\tfor (int i=0; i<blocks.size(); i++) {\r\n\t\t\t\tChessBoardBlock b = blocks.elementAt(i);\r\n\t\t\t\tb.setEnabled(true);\r\n\t\t\t\tb.setBorderPainted(true);\r\n\t\t\t\tif (p.position.equals(b.position)) {\r\n\t\t\t\t\tb.setBorder(new LineBorder(Color.BLUE, 4));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tb.setBorder(new LineBorder(Color.GREEN, 4));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tp.draggedAtX = arg0.getX();\r\n\t\t\tp.draggedAtY = arg0.getY();\r\n\t\t\tbody.repaint();\r\n\t\t}\r\n\r\n\t\t// Assign1, when press on a piece while gaming\r\n\t\tif (status.getStatus().equals(GameStatus.GAME_STATUS_EDIT) && arg0.getSource() instanceof ChessPiece) {\r\n\t\t\tChessPiece p = (ChessPiece)arg0.getSource();\r\n\t\t\tVector<ChessBoardBlock> blocks = this.getReputablePosition();\r\n\t\t\tfor (int i=0; i<blocks.size(); i++) {\r\n\t\t\t\tChessBoardBlock b = blocks.elementAt(i);\r\n\t\t\t\tb.setEnabled(true);\r\n\t\t\t\tb.setBorderPainted(true);\r\n\t\t\t\tb.setBorder(new LineBorder(Color.GREEN, 0));\r\n\t\t\t}\r\n\t\t\tp.draggedAtX = arg0.getX();\r\n\t\t\tp.draggedAtY = arg0.getY();\r\n\t\t\tbody.repaint();\r\n\t\t}\r\n\t}", "private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void updateDisplay()\n {\n\t Color metal = new Color(153, 153, 153);\n\t Color background = new Color(0, 0, 0);\n\t Color sand = new Color(251, 251, 208);\n\t Color water = new Color(102, 179, 255);\n\t int rows = grid.length;\n\t int cols = grid[0].length;\n\t for(int i = 0; i < rows; i++) {\n\t\t for(int j = 0; j < cols; j++) {\n\t\t\t if(grid[i][j] == METAL) {\n\t\t\t\t //color should be gray or whatever\n\t\t\t\t display.setColor(i, j, metal);\n\t\t\t }\n\t\t\t else if(grid[i][j] == EMPTY) {\n\t\t\t\t display.setColor(i, j, background);\n\t\t\t }\n\t\t\t else if(grid[i][j] == SAND) {\n\t\t\t\t display.setColor(i, j, sand);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t display.setColor(i, j, water);\n\t\t\t }\n\t\t }\n\t }\n }", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "public void drawTile() {\n\n }", "public abstract void update(Grid theOldGrid, Grid theNewGrid);", "public void refreshBoard(final ShipType ships[][], final ShotField shots[][]) {\n shotsBoard = shots;\n shipsBoard = ships;\n repaint();\n }", "public void update() {\n\t\t// Complete this method\n\n\t\tint [][]tempTable = new int [numberOfRows()][numberOfColumns()];\n\n\t\tfor ( int r = 0; r < numberOfRows(); r++ ){\n\t\t\tfor (int c = 0; c < numberOfColumns(); c++){\n\t\t\t\tif(neighborCount(r,c) == 3){//if there is exactly three\n\t\t\t\t\tif(gameGrid[r][c] == 0)//cell is born\n\t\t\t\t\t\ttempTable[r][c] = 1;//then you add one to your tempTable\t\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) == 2) || (neighborCount(r,c) == 3)){//if there is two or three\n\t\t\t\t\tif(gameGrid[r][c] == 1)//this is your existing cell\n\t\t\t\t\t\ttempTable[r][c] = 1;//then the cell remains\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) == 0) || (neighborCount(r,c) == 1)){//if there were two neighbors\n\t\t\t\t\tif(gameGrid[r][c] == 0)//if there is no cell\n\t\t\t\t\t\ttempTable[r][c] = 0;//a cell dies\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) > 3)){//if there is more than three\n\t\t\t\t\tif(gameGrid[r][c] == 1)//if there is no cell\n\t\t\t\t\t\ttempTable[r][c] = 0;//a cell dies\n\t\t\t\t}\n\n\t\t\t}//end of column for loop\n\t\t}//end of row for loop\n\t\tgameGrid = tempTable;\n\t}", "public abstract int[][] setupBattleships(int[] ships, int gridSize);", "public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "void setAreaForUpdate(int xOrigin, int yOrigin, int width, int height)\n {\n \n // TODO: xOrigin and yOrigin are always called as 0,0; possibility for optimisation?\n\n // Helper variables\n int xTileOrigin, yTileOrigin; // x, y values in terms of tiles \n int xTileMax, yTileMax; // maximum x, y values in terms of tiles\n\n\n // Check if an update is necessary at all\n if ((width == 0) || (height == 0))\n {\n return;\n }\n\n videocard.vgaMemReqUpdate = true;\n\n // Check which mode the adapter is in\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n // Graphics mode; calculate and set the tiles which need an update\n\n // Determine x, y values as a function of tiles\n xTileOrigin = xOrigin / VideoCard.X_TILESIZE;\n yTileOrigin = yOrigin / VideoCard.Y_TILESIZE;\n\n // Check if value is within current screen limits\n if (xOrigin < oldScreenWidth)\n {\n xTileMax = (xOrigin + width - 1) / VideoCard.X_TILESIZE;\n }\n else\n {\n xTileMax = (oldScreenWidth - 1) / VideoCard.X_TILESIZE;\n }\n \n // Check if value is within current screen limits\n if (yOrigin < oldScreenHeight)\n {\n yTileMax = (yOrigin + height - 1) / VideoCard.Y_TILESIZE;\n }\n else\n {\n yTileMax = (oldScreenHeight - 1) / VideoCard.Y_TILESIZE;\n }\n \n // Set tiles for updating; note that the upper limits ([x,y]tileMax) will be taken care of in setTileUpdate\n for (int yCounter = yTileOrigin; yCounter <= yTileMax; yCounter++)\n {\n for (int xCounter = xTileOrigin; xCounter <= xTileMax; xCounter++)\n {\n videocard.setTileUpdate(xCounter, yCounter, true);\n }\n }\n\n }\n else\n {\n // Text mode; simply invalidate the whole text snapshot\n Arrays.fill(videocard.textSnapshot, (byte) 0);\n }\n }", "public void resetGrid() {\n // reset all cells to dead\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n } \n // repaint so that the cells show up regardless of if the program has started or not\n repaint();\n }", "public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }", "public void setPreviewCanvas()\n {\n if(grayImgToFit!=null)\n {\n canvas.beginDraw();\n for(int i = 0; i < xTiles+3; i++)\n {\n for(int j = 0; j < yTiles+1; j++)\n {\n //if(i<verticalFlip[0].length && j<verticalFlip.length)\n //{\n //if(!notShow[i][j])\n //{\n // even or odd row shift\n if(j%2 == 0)\n {\n if(verticalFlip[i][j] && ! horizontalFlip[i][j])\n {\n canvas.image(tileMiniaturesV[getTileIntensityAtIndex(i,j)],i * tileMiniaturesV[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && !verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesH[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesVH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesVH[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else\n {\n canvas.image(tileMiniatures[getTileIntensityAtIndex(i,j)],i * tileMiniatures[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n }\n else\n {\n if(verticalFlip[i][j] && ! horizontalFlip[i][j])\n {\n canvas.image(tileMiniaturesV[getTileIntensityAtIndex(i,j)],i * tileMiniaturesV[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && !verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesH[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesVH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesVH[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else\n {\n canvas.image(tileMiniatures[getTileIntensityAtIndex(i,j)],i * tileMiniatures[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n }\n //}\n //else\n //{\n // canvas.fill(255,255,255);\n // canvas.noStroke();\n // if(hoverIndex[1]%2 == 0)\n // canvas.rect(i * tileMiniatures[0].width + evenRowShift,j * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n // else\n // canvas.rect(i * tileMiniatures[0].width + oddRowShift,j * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n //}\n //}\n }\n }\n \n canvas.fill(0,255,0,100);\n canvas.noStroke();\n if(hoverIndex[1]%2 == 0)\n {\n canvas.rect(hoverIndex[0] * tileMiniatures[0].width + evenRowShift,hoverIndex[1] * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n }\n else\n {\n canvas.rect(hoverIndex[0] * tileMiniatures[0].width + oddRowShift,hoverIndex[1] * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n }\n canvas.endDraw();\n }\n }", "public void setAiGrid() {\n\t\taiGrid = new Grid(false);\n\t\tsetShips(aiGrid,aiBattleShipsList,0);//1\n\t}", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }", "public boolean move(int x, int y, CheckersBoard board) {\n if (whiteTurn == true && team == Constants.TeamId.team1Id) {\n return false;\n }\n if (whiteTurn == false && team == Constants.TeamId.team2Id) {\n return false;\n }\n /**\n * then change the x - y coords of the piece\n * update the UI to remove the highlighted squares then move the piece\n * if chess and shared square you take a piece\n * if checkers you jumped them you take the piece\n * return new x - y components\n *\n * if this is too high up in the tree you can override this implementation or update it\n * to fit specific pieces if its not working for some reason\n */\n if (possible(x, y, gameBoard)) {\n int changex = this.getX()-x;\n int changey = this.getY()-y;\n CheckersPiece temp = gameBoard.boardPositions[getX()][getY()];\n gameBoard.boardPositions[getX()][getY()] = null;\n gameBoard.boardPositions[x][y] = temp;\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] != null) {\n System.out.println(\"Here\");\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].team != this.team) {\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].imageView.setVisibility(View.GONE);\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] = null;\n }\n }\n this.setX(x);\n this.setY(y);/*\n if (Math.abs(changex) == 2) {\n gameBoard.boardPositions[x + (changex/2)][y + (changey/2)] = null;\n if (team == Constants.TeamId.team1Id) {\n board.numPieces1--;\n } else if (team == Constants.TeamId.team2Id) {\n board.numPieces0--;\n }\n }*/\n\n gameBoard.boardPositions[x][y].imageView.setX(142*x);\n gameBoard.boardPositions[x][y].imageView.setY(142*y);\n // flips after move is\n whiteTurn = !whiteTurn;\n gameBoard.startTimer();\n }\n //setUpUI(gameBoard);\n if (getY() == 7 && team == Constants.TeamId.team2Id) {\n board.crown(this);\n }\n if (getY() == 0 && team == Constants.TeamId.team1Id) {\n board.crown(this);\n }\n return possible(x, y, gameBoard);\n }", "@Override\n\tpublic void draw(RoomBlocks grid) {\n\t\trenderer.setProjectionMatrix(CameraHolder.instance().getOrtho().combined);\n//\t\tCont tot = new Cont();\n\t\tColor color = new Color();\n\n\t\t\n\t\tDimensions dim = grid.getDimensions().toRoomWorldDimmensions();\n\t\tgrid.forEach(bl -> {\n//\t\t\t\n\t\t\tint x = (GeneratorConstants.ROOM_BLOCK_SIZE * bl.getX()) + GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\n\t\t\tx = (dim.getW() - x) + dim.getX();\n\t\t\t\n\t\t\tint pseudWorldRoomY = grid.getDimensions().getY() * Configuration.getLevelGridElementContentSize();\n\t\t\tint y = (bl.getY() + pseudWorldRoomY) * (GeneratorConstants.ROOM_BLOCK_SIZE);\n\t\t\t\n\t\t\tShapeType shType = ShapeType.Filled;\n\t\t\tboolean render = false;\n\t\t\t\n\t\t\tif(bl.isDoor()) {\n\t\t\t\trender = true;\n\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t} else if(bl.isWall()) {\n//\t\t\t\trender = true;\n//\t\t\t\tcolor.set(1, 1, 1, 1);\n//\t\t\t\tshType = ShapeType.Line;\n\t\t\t} else if(bl.getMetaInfo() != null) {//TODO\n\t\t\t\t\n\t\t\t\tif(bl.getMetaInfo().getType().equals(\".\")) {\n\t\t\t\t\trender = true;\n\t\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t\t} else if(!bl.getMetaInfo().getType().equals(\"x\")) {\n\t\t\t\t\t\n\t\t\t\t\tBrush brush = Configuration.brushesPerTile.get(bl.getMetaInfo().getType().charAt(0));\n\t\t\t\t\tif(brush != null) {// && bl.getOwner() != null\n\t\t\t\t\t\t\n//\t\t\t\t\t\tif(bl.getOwner() != null) {\n//\t\t\t\t\t\t\tSystem.out.println(\"owner: \" + brush.tile);\n//\t\t\t\t\t\t}\t\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t\t\trender = true;\n\t\t\t\t\t\tcolor.set(brush.color[0], brush.color[1], brush.color[2], 1);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(render) {\n\t\t\t\t\n\t\t\t\tint size = GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\t\n\t\t\t\trenderer.begin(shType);\n\t\t\t\trenderer.setColor(color);\n\t\t\t\trenderer.rect(x, y, size, size);\n\t\t\t\trenderer.end();\n\t\t\t}\n\t\t\t\n//\t\t\tif(bl.getOwner() != null ) {\n//\t\t\t\tfinal int fx = x;\n//\t\t\t\tfinal int fy = y;\n//\t\t\t\t\n//\t\t\t\tbl.getOwner().forEachItems(itm -> {//desenhando os items\n//\t\t\t\t\trenderer.begin(ShapeType.Filled);\n//\t\t\t\t\trenderer.setColor(itm.color[0], itm.color[1], itm.color[2], 1);\n//\t\t\t\t\trenderer.rect(fx + itm.dx, fy + itm.dy, itm.width, itm.height);\n//\t\t\t\t\trenderer.end();\t\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t}\t\t\t\n\t\t});\n\t}", "public boolean onGrid(int xValue, int yValue);", "private boolean updateBoardToAddingOrange(){\n\t\tArrayList<Tile> tiles = null;\n\n\t\tif(Game.getInstance().getTurn().getLastPieceMoved() != null) {\n\t\t\tif(Game.getInstance().getTurn().getLastPieceMoved().getEatingCntr() > 0 || Game.getInstance().getTurn().isLastTileRed()) {\n\t\t\t\ttiles = Game.getInstance().getTurn().getLastPieceMoved().getPossibleMoves(Game.getInstance().getCurrentPlayerColor());\n\t\t\t}\n\t\t}else {\n\t\t\ttiles = Board.getInstance().getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\n\t\t}\n\n\n\t\tfor(Tile t:this.coloredTilesList) {\n\t\t\tif(tiles.contains(t) && !(t instanceof YellowTile)) {\n\t\t\t\t//blue transfer to regular tile\n\t\t\t\tif(t instanceof BlueTile) {\n\t\t\t\t\treplaceTileInSameTileLocation(new Tile.Builder(t.getLocation(), t.getColor1()).setPiece(t.getPiece()).build());\n\t\t\t\t}else //any other color not blue or yellow\n\t\t\t\t{\n\t\t\t\t\t//remove secondary color\n\t\t\t\t\tt.setColor2(null);\n\t\t\t\t\treplaceTileInSameTileLocation(t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public void updateAll(MiniGame game)\n {\n // MAKE SURE THIS THREAD HAS EXCLUSIVE ACCESS TO THE DATA\n try\n {\n game.beginUsingData();\n \n // WE ONLY NEED TO UPDATE AND MOVE THE MOVING TILES\n for (int i = 0; i < movingTiles.size(); i++)\n {\n // GET THE NEXT TILE\n MahjongSolitaireTile tile = movingTiles.get(i);\n \n // THIS WILL UPDATE IT'S POSITION USING ITS VELOCITY\n tile.update(game);\n \n // IF IT'S REACHED ITS DESTINATION, REMOVE IT\n // FROM THE LIST OF MOVING TILES\n if (!tile.isMovingToTarget())\n {\n movingTiles.remove(tile);\n }\n }\n \n // IF THE GAME IS STILL ON, THE TIMER SHOULD CONTINUE\n if (inProgress())\n {\n // KEEP THE GAME TIMER GOING IF THE GAME STILL IS\n endTime = new GregorianCalendar();\n }\n }\n finally\n {\n // MAKE SURE WE RELEASE THE LOCK WHETHER THERE IS\n // AN EXCEPTION THROWN OR NOT\n game.endUsingData();\n }\n }", "void updateAvailMovesInLine(int x, int y, int num) {\n\t\tfor(int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][i][num-1] = false;\n\t\t\tavailMoves[i][y][num-1] = false;\n\t\t}\n\t}", "private void makeAIMove(){\n final GamePiece opponentPiece = mGame.getmCurrentlyPlaying();\n\n // Creating new thread for A.I. move calculation, just in case the calculation would be too long.\n // (So the A.I. move calculation won't freeze the screen).\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n // Making the play:\n mGame.makeAIMove(mDifficulty);\n\n // Now back to UI thread:\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n\n // Updating the grid:\n ((TileAdapter)mGrid.getAdapter()).notifyDataSetChanged();\n\n // Playing proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Updating Counters:\n mBlackCounter.setText(\"\" + mGame.getmBoard().getmNumberOfBlackPieces());\n mWhiteCounter.setText(\"\" + mGame.getmBoard().getmNumberOfWhitePieces());\n\n // Update playableTiles:\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n\n // While the UI changes, make a proper sound for flipping pieces (after a short delay):\n // And then move on (update UI, let player play next, end game, etc.)\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mSoundStatus.equals(Constants.ON)) mFlipPieceSound.start(); // Playing proper sound.\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Now back to UI thread in order to update UI:\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n\n // If game is still ongoing:\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != opponentPiece) {\n\n // Updating colors for profile areas:\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mPlayerUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mOpponentUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now Player should make a move:\n showGuidelines();\n mIsAllowedToPlay = true;\n\n }\n\n // Otherwise, opponent gets another turn:\n else{\n makeAIMove();\n }\n\n }\n\n else{ // Otherwise (game has ended)\n handleGameEnding();\n }\n\n }\n });\n\n\n }\n\n }).start();\n\n\n }\n });\n\n\n }\n }).start();\n\n }", "@Override\n public void mouseReleased(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(updateYourBoardHelper(xx, yy));\n //potential problem here during initialization of ships?\n \n }", "public void updatePossibleMovesKnights(){}" ]
[ "0.6370312", "0.63431406", "0.61560196", "0.60257494", "0.5960856", "0.5946089", "0.5935622", "0.5892965", "0.5870116", "0.58459944", "0.581478", "0.5805666", "0.5805396", "0.5771669", "0.57648635", "0.57513124", "0.57408935", "0.57404983", "0.57308924", "0.5688181", "0.5675272", "0.5665887", "0.5601999", "0.5601879", "0.55869436", "0.55627376", "0.55604863", "0.5559685", "0.55438346", "0.554098", "0.5495383", "0.54945374", "0.5474587", "0.54658985", "0.54575545", "0.545728", "0.5449029", "0.5440837", "0.54364", "0.54314756", "0.54296565", "0.542876", "0.54279304", "0.54259086", "0.5423452", "0.5418106", "0.5417774", "0.5401578", "0.5397954", "0.5381585", "0.53809404", "0.5378627", "0.5372297", "0.5369403", "0.53675306", "0.53645813", "0.53549474", "0.53524786", "0.53452384", "0.534465", "0.53415096", "0.5326238", "0.53194606", "0.5310383", "0.5306453", "0.53047997", "0.5297956", "0.52949387", "0.52944535", "0.52873707", "0.5280289", "0.52791333", "0.5275351", "0.52623945", "0.5258265", "0.524133", "0.5238492", "0.52315015", "0.52283156", "0.5225889", "0.5224141", "0.52239555", "0.5217886", "0.5217431", "0.5211983", "0.52113545", "0.5208327", "0.5205835", "0.52043873", "0.5202964", "0.52004164", "0.5195633", "0.51934284", "0.5187381", "0.5184692", "0.5181265", "0.5180488", "0.51791936", "0.51791924", "0.5177967" ]
0.5607818
22
Get the grid of reference hooks in the map.
String[][] getHooks() { return hooks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Feature> getReference();", "com.ctrip.ferriswheel.proto.v1.Grid getGrid();", "public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping getClrMap()\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(CLRMAP$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static ArrayList<Grid> getGrids() {\n\n return grids;\n }", "public List<CellRef> getCellReferences()\n {\n return myCellReferences;\n }", "@Override\n public Tile[][] getGrid() { return grid; }", "public Cluster[] getReferences () {\n return references;\n }", "public Collection<Reference> getReferences();", "public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}", "java.util.List getSurfaceRefs();", "private List<Reference> getReferences() {\n logger.debug(\"Get references\");\n\n List<Reference> references = new ArrayList<Reference>();\n\n String query = \"SELECT reference_line, pr.reference_id FROM pride_experiment pe, pride_reference pr, pride_reference_exp_link pl WHERE \" +\n \"pe.accession = ? AND pl.reference_id = pr.reference_id AND pl.experiment_id = pe.experiment_id\";\n\n List<Map<String, Object>> results = jdbcTemplate.queryForList(query, getForegroundExperimentAcc());\n for (Map<String, Object> result : results) {\n List<UserParam> userParams = getUserParams(\"pride_reference_param\", ((Long) result.get(\"reference_id\")).intValue());\n List<CvParam> cvParams = getCvParams(\"pride_reference_param\", ((Long) result.get(\"reference_id\")).intValue());\n references.add(new Reference((String) result.get(\"reference_line\"), new ParamGroup(cvParams, userParams)));\n }\n\n return references;\n }", "int[] getVisualToLogicalMap() {\n if (v2lMap == null) {\n v2lMap = createVisualToLogicalMap(levels);\n }\n return v2lMap;\n }", "public int[][] getGrid()\n {\n return grid;\n }", "public ArrayList<GridMap> getMapsList() {\n return mapsList;\n }", "public List<Square> getSquareGrid();", "public Map<Integer, CorefChain> getCorefChains () {\n\t\treturn ccg;\n\t}", "public int[][] giveMap(){\n\t\treturn map;\n\t}", "public Grid getGrid() {\n return myGrid;\n }", "public ArrayList<MahjongSolitaireTile>[][] getTileGrid() \n { \n return tileGrid; \n }", "public Map<String, Match> getReferenceMatches();", "public GMap<Integer, Stack> getStacks();", "private JTable getGridmapTable() {\n if (gridmapTable == null) {\n gridmapTable = new GridMapTable();\n }\n return gridmapTable;\n }", "protected BoardGrid getGrid() {\n return GameController.getInstance().getGrid();\n }", "Table getReferences();", "public Grid grid() { return grid; }", "public Box[][] getGrid() {\n return this.grid;\n }", "public Grid getGrid() {\n \t\treturn grid;\n \t}", "public final List<Element> getReferences() {\r\n return this.getReferences(true, true);\r\n }", "public String[] tileRefsArray() {\n String[] s = new String[tileRefs.size()];\n\n for (int i = 1; i <= tileRefs.size(); i++) {\n s[i - 1] = tileRefs.get(String.valueOf(i));\n }\n\n return s;\n }", "public GridPane getGrid(){\n\t\treturn myGrid;\n\t}", "@Override\n public List<RefsetEntry> getRefsetEntries() {\n return refsetEntries;\n }", "int[] getLogicalToVisualMap() {\n if (l2vMap == null) {\n l2vMap = getInverseOrder(getVisualToLogicalMap());\n }\n return l2vMap;\n }", "public GoogleMap getMapRef() {\n return mMap;\n }", "protected final Map getComponentMap()\n {\n return m_components;\n }", "public GridDisplay getGrid(){\n\t\treturn this.display.gridDisplay;\n\t\t//return this.grid;\n\t}", "public Cell[][] getGrid() {\n return grid;\n }", "public List<Grid> getGrids() {\n\tList<Grid> grids = new ArrayList<Grid>();\n\tList<Line> currentLines = _path;\n\twhile(currentLines.size()>1) {\n\t Grid grid = new Grid();\n\t grids.add(grid);\n\t List<Line> nonOverlappingLines = grid.overlapping(currentLines);\n\t \t \n\t Double[] xs = grid.xs();\n\t Double[] ys = grid.ys();\n\t \n\t if (xs.length>3 && ys.length>3) {\n\t\tDouble minx = xs[0];\n\t\tDouble maxx = xs[xs.length-1];\n\t\t\n\t\tDouble miny = ys[0];\n\t\tDouble maxy = ys[ys.length-1];\n\t\t\n\t\tfor(int i=0; i<xs.length; i++) {\n\t\t System.out.println(\"Line: \" + xs[i].toString() + \",\" + miny.toString() + \",\" + xs[i].toString() + \",\" + maxy.toString());\n\t\t}\n\t\tfor(int i=0; i<ys.length; i++) {\n\t\t System.out.println(\"Line: \" + minx.toString() + \",\" + ys[i].toString() + \",\" + maxx.toString() + \",\" + ys[i].toString());\n\t\t}\n\t }\n\n\t currentLines = nonOverlappingLines;\n\t}\n\treturn grids;\n }", "public Grille getMap() {\n return map;\n }", "public abstract Grid<?> getGrid();", "public int getReuseGrid()\n {\n return this.reuseGrid;\n }", "List<Coord> getDependents(int col, int row);", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "public List<Projectile> getFiredProjectiles()\n {\n return new ArrayList<Projectile>(firedArrows);\n }", "public List<TCSObjectReference<Point>> getHops() {\n return new LinkedList<>(hops);\n }", "public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}", "public java.util.List<ReferenceLine> getReferenceLines() {\n return referenceLines;\n }", "public GridPane getGrid() {\n return grid;\n }", "public Collection<UniqueID> getReferenceList() {\n return ObjectGraph.getReferenceList(this.id);\n }", "public abstract Map<String, Trigger> getTriggers();", "public Vector getRefBanks() {\r\n\treturn fxndf.getRefBanks();\r\n }", "public TetrisGrid getGrid()\r\n\t{\r\n\t\treturn grid;\r\n\t}", "Map<?,?> getComponents();", "java.util.List<org.jetbrains.r.rinterop.RRef> \n getRefsList();", "public List<Dim> getGlobals(){\n\t\t\n\t\treturn null;\n\t}", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "@Transient\r\n\tpublic Map<String, Object> getLookups() {\r\n\t\tMap<String,Object> map = new HashMap<String,Object>();\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ID, getId());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_DOCUMENT, getRegistry().getDocument());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_NAME, getRegistry().getName());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_SURNAME, getRegistry().getSurname());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ALIAS, getRegistry().getAlias());\r\n return map;\r\n\t}", "List<PropertySymbol> getAllReferences();", "public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}", "Variable getRefers();", "Layer[] getLayers();", "public MappingCellHash getMappingCells()\r\n\t\t{ return mappingCellHash; }", "public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }", "protected BattleGrid getGrid() {\n return grid;\n }", "public Tile[] getAdjs(){\r\n return adjTiles;\r\n }", "protected float[] getRgbLut() {\n if ( lut_ == null ) {\n String loc = LUT_BASE + resourceName_;\n logger_.config( \"Reading lookup table at \" + loc );\n URL url = Shaders.class.getResource( loc );\n try {\n if ( url == null ) {\n throw new FileNotFoundException( \"No resource \" + loc );\n }\n else {\n lut_ = readFloatArray( url );\n }\n }\n catch ( IOException e ) {\n logger_.warning( \"No colour map for \" + this + \": \" + e );\n lut_ = new float[ 3 ];\n }\n }\n return lut_;\n }", "public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}", "private JTextField getGridmapLocation() {\n if (gridmapLocation == null) {\n gridmapLocation = new JTextField();\n }\n return gridmapLocation;\n }", "public Map<String, Component> getMapa_componentes() {\r\n\t\treturn tabboxContendor.getMapa_componentes();\r\n\t}", "Map<Integer, Symbol> getBoardLayout() {\n return tiles.getBoardLayout();\n }", "public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn poolMaps;\n\t}", "public int getGridColumns() \n { \n return gridColumns; \n }", "public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }", "org.landxml.schema.landXML11.SurfaceNameRefs xgetSurfaceRefs();", "public WorldCoord getFrameLinkset()\r\n/* 45: */ {\r\n/* 46: 34 */ return null;\r\n/* 47: */ }", "public List<ImageResourceWrapper> getMap() {\n // Declare a new list to hold the rendering info for the physics objects.\n List<ImageResourceWrapper> rtrnResources = new ArrayList<>();\n for(PhysicsEntity physicsEntity : this.physModel.getEntities()) {\n // Get the graphics entity corresponding to the current physics entity.\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(physicsEntity.getId());\n String imgResource = graphicsEntity.getImgResId(physicsEntity.getOrientation());\n rtrnResources.add(new ImageResourceWrapper(new Point(physicsEntity.getPosition().x, physicsEntity.getPosition().y), imgResource));\n }\n for(Objective objective : this.gameStateModel.getObjectives()) {\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(objective.getId());\n // TODO: Orientation for objectives\n String imgResource = graphicsEntity.getImgResId(0);\n rtrnResources.add(new ImageResourceWrapper(new Point(objective.getPosition().x, objective.getPosition().y), imgResource));\n }\n return rtrnResources;\n }", "public GeoThemeElements getGeoThemeAccess() {\n\t\treturn eGeoTheme;\n\t}", "public Grid getGrid()\n {\n \treturn puzzle;\n }", "private static List<GridEntity> setup(MainWindow mainWindow) {\n\t\tList<GridEntity> gridEntities = new ArrayList<GridEntity>();\n\n\t\tIconGrid iconGrid = new IconGrid(GRID_ROWS, GRID_COLS, mainWindow.getSize());\n\t\tmainWindow.addPanel(iconGrid);\n\t\ticonGrid.revalidate();\n\n\t\tJLabel label = iconGrid.getLabel(4, 3);\n\t\tRobot robot = new Robot(\"stitch\", iconGrid, 4, 3);\n\t\tlabel.setIcon(robot.getIcon(label.getSize()));\n\n\t\tmainWindow.revalidate();\n\n\t\tgridEntities.add(robot);\n\n\t\treturn gridEntities;\n\t}", "List<Coord> allActiveCells();", "public SetOfTiles getSetOfTiles();", "private NeighborhoodHelper[] getHelpers()\n/* */ {\n/* 230 */ return this.helpers;\n/* */ }", "public String[] getGhostsInLevel(){\n\t\treturn ghosts_in_level;\n\t}", "public Map<Integer, Coord> getGlobalMap(){\n\t\tif(mapExists){\r\n\t\t\tMap<Integer, Coord> realCoordMap = new HashMap<Integer, Coord>();\r\n\t\t\tfor(Map.Entry<Integer, Coord> c : this.globalMap.entrySet()){\r\n\t\t\t\t//core.Debug.p(\"c: id\" + c.getKey() + \", v:\" + c.getValue().toString() + \", r:\"+ realCoord(c.getValue()).toString());\r\n\t\t\t\trealCoordMap.put(c.getKey(), realCoord(c.getValue()));\r\n\t\t\t}\r\n\t\t\treturn realCoordMap;\r\n\t\t}\r\n\t\telse return null;\r\n\t}", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "Map<Coord, ICell> getAllCells();", "public static native PointerByReference OpenMM_AmoebaTorsionTorsionForce_getTorsionTorsionGrid(PointerByReference target, int index);", "public void getTile_B8();", "public int[][] getRawGrid()\n\t{\n\t\treturn grid;\n\t}", "public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }", "public LookupLocator[] getLookupLocators() throws RemoteException {\n\t\treturn disco.getLocators();\n\t}", "@Override\n public List<Map<Frequency, DataForDetection>> getStuffReference() {\n return super.getStuffReference();\n }", "public abstract Map<String, ReaderBlueprint> getReaderBlueprints();", "public abstract TiledMapTileSet getTileSet();", "public final List<Brush> getBrushes() {\n ArrayList<Brush> result = new ArrayList<Brush>(brushMap.values());\n Collections.sort(result);\n return result;\n }", "@Override\n public Map<String,Map<String,Object>> getLocatedLocations() {\n Map<String,Map<String,Object>> result = new LinkedHashMap<String,Map<String,Object>>();\n Map<Location, Integer> counts = new EntityLocationUtils(mgmt()).countLeafEntitiesByLocatedLocations();\n for (Map.Entry<Location,Integer> count: counts.entrySet()) {\n Location l = count.getKey();\n Map<String,Object> m = MutableMap.<String,Object>of(\n \"id\", l.getId(),\n \"name\", l.getDisplayName(),\n \"leafEntityCount\", count.getValue(),\n \"latitude\", l.getConfig(LocationConfigKeys.LATITUDE),\n \"longitude\", l.getConfig(LocationConfigKeys.LONGITUDE)\n );\n result.put(l.getId(), m);\n }\n return result;\n }", "@NotNull\r\n BlockState[] getTileEntities();", "public abstract Regionlike getGridBounds();", "public GameMap map() {\n\t\treturn map;\n\t}", "public HashMap<Integer,Category_components> get_classes(){\n return game_classes;\n }", "public GridAlg getGrid() {\n\t\treturn grid;\n\t}" ]
[ "0.5872547", "0.5662727", "0.5612596", "0.55962664", "0.55479884", "0.5532105", "0.5492023", "0.54756886", "0.5468173", "0.54500824", "0.5399968", "0.53319305", "0.53058594", "0.5249037", "0.5213874", "0.5208864", "0.5199429", "0.5192492", "0.5191996", "0.5181288", "0.5171946", "0.51552767", "0.51546997", "0.51419014", "0.51359063", "0.5129731", "0.5126322", "0.5102183", "0.50841904", "0.50797445", "0.5073184", "0.5069399", "0.50686777", "0.50632024", "0.50514233", "0.5040454", "0.50333345", "0.50271803", "0.501083", "0.4998909", "0.49798113", "0.49752453", "0.4959992", "0.49596363", "0.49554157", "0.49522716", "0.4949764", "0.49428958", "0.49175885", "0.49156216", "0.49077314", "0.48985693", "0.48804623", "0.48719808", "0.48706883", "0.48682365", "0.48648813", "0.48628435", "0.48616287", "0.48600996", "0.4859385", "0.48545572", "0.4844103", "0.4841236", "0.48400685", "0.48267308", "0.48224282", "0.48222613", "0.48213363", "0.48193273", "0.48129955", "0.48045236", "0.48030758", "0.47974017", "0.4794539", "0.4786786", "0.47863886", "0.47799107", "0.47727504", "0.47725233", "0.47707176", "0.47612435", "0.47582898", "0.47556967", "0.4753664", "0.47485077", "0.4747321", "0.47461727", "0.47352168", "0.47341084", "0.47325805", "0.4729808", "0.47297037", "0.47286296", "0.47250062", "0.471965", "0.4717768", "0.47160852", "0.4714031", "0.47039026" ]
0.5222338
14
Update the grid of reference hooks in the map.
void setHooks(String[][] hooks) { this.hooks = hooks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}", "public void update() {\n\t\tfor (Entry<String, Integer> entry : countMap.entrySet()) {\n\t\t\tcountMap.put(entry.getKey(), 0);\n\t\t}\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = newGrid[i][j];\n\t\t\t\tc.setRow(i);\n\t\t\t\tc.setCol(j);\n\t\t\t\tblocks[i][j].setFill(c.getColor());\n\t\t\t\tcurrentGrid[i][j] = newGrid[i][j];\n\t\t\t}\n\t\t}\n\t\tempty(newGrid);\n\t}", "public void updateGridX();", "private void refreshMapAndFrame()\n\t{\n\t\tMapAccess.refresh();\n\t\tFrameMap.refresh();\n\t}", "private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}", "public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}", "private void updateGrid() {\n if (intersection != null) {\n colorizeGrid();\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setText(intersection.getLetterCode(x, y));\n }\n }\n }\n }", "public void update(int delta)\r\n/* 103: */ throws SlickException\r\n/* 104: */ {\r\n/* 105:117 */ this.highlight = new int[getWidthInTiles()][getHeightInTiles()];\r\n/* 106: */ \r\n/* 107:119 */ super.update(delta);\r\n/* 108: */ }", "void setMapChanged();", "private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}", "public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(utilities.getOrderedWayPoints());\n\t}", "synchronized void updateActivatedLandmarks () {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n\n for (int i = 0; i < mapLandmarks.length; ++i) {\n if (mapLandmarks[i].isActive ()) {\n int x0 = mapLandmarks[i].getX () - 16 - offsetX;\n int y0 = mapLandmarks[i].getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n }\n }\n }", "@Override\n public void reloadGridsData() {\n \n }", "void updateControls();", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "@Override\r\n\tpublic void update(GameContainer gc, int detla) throws SlickException\r\n\t{\n\t\t\r\n\t}", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }", "public abstract void update(Grid theOldGrid, Grid theNewGrid);", "public void update()\n\t{\n\t\tGViewMapManager gViewMapManager = this.guiController.getCurrentStyleMapManager();\n\t\tLayout layout = gViewMapManager.getLayout();\n\n\t\tswitch (layout)\n\t\t{\n\t\t\tcase LINEAR:\n\t\t\t\tthis.linear.setSelected(true);\n\t\t\t\tbreak;\n\t\t\tcase CIRCULAR:\n\t\t\t\tthis.circular.setSelected(true);\n\t\t\t\tbreak;\n default:\n break;\n\t\t}\n\t}", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "void updateMap(MapData map);", "@Override\n\tpublic void update(GameContainer gc) {\n\t\t\n\t}", "private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }", "public void updateAllTerritories() {\r\n\t\tBoard b = gameAgent.getBoard();\r\n\r\n\t\tfor(Entry<String, BoardLabel> e: labels.entrySet()) {\r\n\t\t\t// Convert to Territory type\r\n\t\t\tTerritory t = b.getTerritory(e.getKey());\r\n\t\t\t// Update the color with the current player\r\n\t\t\tString thisColor = playerColors.get(b.getPlayerFromTerritory(t));\r\n\t\t\te.getValue().setPlayerColor(thisColor);\r\n\t\t\t// Updates the total number of soldiers\r\n\t\t\te.getValue().setText(t.getNumSoldiers() + \"\");\r\n\t\t\t// Forces repaint\r\n\t\t\te.getValue().revalidate();\r\n\t\t\te.getValue().repaint();\r\n\t\t}\r\n\t\t\r\n\t}", "private void updateLight() {\r\n\t}", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "public void updateValues() {\n\t\tlightResistances = new float[width][height];\n\t\twalls = new boolean[width][height];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tlightResistances[x][y] = map[x][y].getLighting();\n\t\t\t\twalls[x][y] = map[x][y].isWall();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void notifyMapObservers() {\n for(MapObserver mapObserver : mapObservers){\n // needs all the renderInformation to calculate fogOfWar\n System.out.println(\"player map: \" +playerMap);\n mapObserver.update(this.playerNumber, playerMap.returnRenderInformation(), entities.returnUnitRenderInformation(), entities.returnStructureRenderInformation());\n entities.setMapObserver(mapObserver);\n }\n }", "public void updateGrid(ShelterGrid shelters)\n {\n this.shelters = shelters;\n gridWidth = Parameters.getDefaultGridSize();\n gridHeight = gridWidth;\n\n simulation.reset(); // remove all agents, etc.\n\n // call repaint to redisplay the new background, then agents & grid\n repaint();\n }", "private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}", "public void updateOpenTiles(){\r\n\t\tthis.openTiles = getOpenTiles() - 1;\r\n\t}", "@Override\n public void displayMapTiles(MapTile[][] grid)\n {\n Platform.runLater(() -> {\n MapView mapArea = gui.getMapArea();\n mapArea.displayMapGrid(grid, -3, -3);\n });\n }", "public abstract void updateLocations();", "private void updateMap(){\n mMap.clear();\n // this instruction clears the Map object from the other object, it's needed in orther to display\n //the right current geofences without having the previous ones still on screen\n\n mOptions.setOption(mOptions.getOption().center(circle.getCenter()));\n mOptions.setOption(mOptions.getOption().radius(circle.getRadius()));\n\n\n circle=mMap.addCircle(mOptions.getOption());//i need to add again the user circle object on screen\n\n //TODO have to implement settings\n //set markers based on the return objects of the geoquery\n for (int ix = 0; ix < LOCATIONS.length; ix++) {\n mMap.addMarker(new MarkerOptions()\n .title(LOCATIONS[ix].getExplaination())\n .snippet(\"TODO\")\n .position(LOCATIONS[ix].getPosition()));\n }\n }", "public static void reload() {\n\t\tatlasHelpScreen.reload();\n\t}", "@Override\n protected void refreshVisuals() {\n getFigure().updateLabels();\n }", "private void refreshMouseMap() {\r\n Point currentMousePos = MouseInfo.getPointerInfo().getLocation();\r\n int iMax = 5;\r\n this.mousePositions.clear();\r\n for (int i = 0; i < iMax; i++)\r\n this.mousePositions.add(currentMousePos);\r\n }", "public void updategrid(int[][] grid) {\n this.grid = grid;\n }", "public void updateStats() {\n ObservableList<Node> children = gpLocations.getChildren();\n for (int i = 0; i < gpLocations.getChildren().size() / 2; i++)\n for (Node n : children)\n if (gpLocations.getRowIndex(n) == i + 1 && gpLocations.getColumnIndex(n) == 1) {\n Text t = (Text) n;\n t.setText(String.format(\n \"\\t\\t%.1f\", activeCar.getCurrentLocation().getDistanceToLocation(locations.get(i))));\n }\n\n children = gpCars.getChildren();\n for (int j = 0; j < gpCars.getChildren().size() / 2; j++)\n for (Node m : children)\n if (gpCars.getRowIndex(m) == j + 1 && gpCars.getColumnIndex(m) == 1) {\n Text tmpM = (Text) m;\n tmpM.setText(String.format(\"\\t\\t%.1f\", cars.get(j).getTime()));\n }\n\n children = gridPane.getChildren();\n for (Node o : children)\n if (gridPane.getRowIndex(o) == 5 && gpCars.getColumnIndex(o) == 0) {\n Text tmpO = (Text) o;\n tmpO.setText(\"Active Car\\t\" + activeCar.getIdentifier() + \" \" + activeCar.getEnd().getName());\n }\n }", "private void updateShapeHandles() {\n for (Shape shape : this.model.getShapes()) {\n shape.updateHandles(this.viewModel.getZoomFactor());\n }\n }", "@Override\n public void refreshDataEntries() {\n }", "public void refreshPanelComponents() {\r\n }", "public void update()\n {\n for (Container container : containers)\n container.update(false);\n\n Gui.update(BanksGUI.class);\n Gui.update(BankGUI.class);\n Gui.update(ItemsGroupsGUI.class);\n }", "public void repaintMap() {\r\n\t\tpolygonMap.repaint();\r\n\t}", "private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }", "public void hookLEDs() {\r\n\t\ttable.putBoolean(\"hooked\", true);\r\n\t}", "private void refresh(int width, int height) {\n Integer numUnexposed = mainField.numUnexposed();\n nonminesLabel.setText(numUnexposed.toString());\n Integer numMarked = mainField.numMarked();\n if (numMarked < 0) {\n cellsUnmarked.setText(\"Too Many Marked!\");\n }\n else {\n cellsUnmarked.setText(numMarked.toString());\n }\n // iterate through all the buttons and update the text if it's an exposed cell\n for (int i = 0;i < width;i++) {\n for (int j = 0;j < height;j++) {\n int cellState = mainField.getCellState(i,j);\n if (cellState == mainField.EXPOSED) {\n Integer numValue = mainField.getValue(i,j);\n if (numValue == -1) {\n btArray[i][j].setText(\"B\");\n btArray[i][j].setStyle(\"-fx-background-color: #FF0000;\");\n }\n else if (numValue == 0) {\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n else {\n btArray[i][j].setText(numValue.toString());\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n }\n }\n }\n }", "public static void reload() {\n\t\tatlasUIElements.reload();\n\t}", "void update(List<IProjectile> projectilesList, float newAgle, boolean hasTarget);", "public void updateMap(TileMap tileMap){\n\t\tthis.tileMap = tileMap;\n\n\t}", "public void updateOnCtWindowChange() {\n int[] displayImageData = resolveRaw(imgData[currentLayer]);\n raster.setPixels(0, 0, imgWidth, imgHeight, displayImageData);\n image.setData(raster);\n }", "private void update() {\n gsm.update();\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }", "protected void followup(Refactoring refactoring) {\r\n updateSummaries();\r\n\r\n // Update the GUIs\r\n ReloaderSingleton.reload();\r\n }", "@Override\n\tpublic void hookUpdatedValues() {\n\t\tWeatherUtil.doBlockList();\n\t\tWeatherUtilConfig.processLists();\n\t}", "@Override\n\tpublic void updateLabels() {\n\n\t}", "public abstract void updateLabels();", "public void updateDataCell();", "private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }", "private void updateMhoLocationList() {\n\n\t\t//clear all the mhos in mhoLocations\n\t\tmhoLocations.clear();\n\n\t\t//add the locations of all the mhos in mhoLocations\n\t\tfor (int i = 1; i < 11; i++)\n\t\t\tfor (int j = 1; j < 11; j++) \n\t\t\t\tif(newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmhoLocations.add(i);\n\t\t\t\t\tmhoLocations.add(j);\n\t\t\t\t}\n\t}", "public void refreshAll() {\n\t\tdrawingPanel.repaint();\n\t}", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}", "public void updateLUTRecorder() {\r\n if ( lutRecorder != null ) {\r\n lutRecorder.dragPoint( ( (ViewJComponentHistoLUT) componentHistogram ).getLUT() );\r\n }\r\n }", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "Lab refresh();", "@Override\r\n\tpublic void update() {\r\n\t}", "private void attachActionListenersToGrid (MobiLogicContext context) {\n for (Integer key: app.getWorkSpace().getWorkSpaceMap().keySet()) {\n app.getWorkSpace().getGridCell(key).addActionListener(evt -> {\n removeActionListeners();\n app.getWorkSpace().getGridCell(key).addComponent(app, userSelectedComponent);\n app.getMainMenu().updateGateSelected(\"Selected Tool\");\n context.setState(new InitState(app));\n context.getState().computeAction(context);\n });\n }\n }", "public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }", "public void updateGridY();", "public void updateMenusRegardingGPSData() {\r\n\t\tthis.menuBar.updateAdditionalGPSMenuItems();\r\n\t\tthis.menuToolBar.updateGoogleEarthToolItem();\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "public void _patchReferencesInternal(SL_Obj fromObjArg) {\n SATableReadCapabilityAttributesExtension fromObj = (SATableReadCapabilityAttributesExtension)fromObjArg;\n\n // Get the map of old->new references\n Map<SL_Obj, SL_Obj> map = rootObj.get_patchRefsMap();\n\n SL_Obj wkObj;\n super._patchReferencesInternal(fromObj);\n\n\n }", "private void refreshScreen() {\n app.getMainMenu().getTextField().clear();\n for (int key = 0; key < 96; key++) {\n app.getWorkSpace().getGridCell(key).unhighlightGridCell();\n app.getWorkSpace().getGridCell(key).updateState(app);\n }\n Storage.getInstance().writeObject(\"workspace\", app.getWorkSpace().getWorkSpaceMap());\n app.show();\n }", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n \n Color color;\n ImageIcon image;\n \n switch ( terrain )\n {\n case SAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sand.jpg\")); break;\n case FOREST : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\")); break;\n case WETLAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/forest.jpg\")); break;\n case SCRUB : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\")); break;\n case WATER : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\")); break;\n case BRICK : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick.jpg\")); break;\n default : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/gray.jpg\")); break; \n }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column));\n lblText.setHorizontalTextPosition((int) CENTER_ALIGNMENT);\n lblText.setVerticalTextPosition((int) CENTER_ALIGNMENT);\n \n setVisible(true);\n \n //Kiwifruit\n if( row == 6 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick2.jpg\"));\n }\n \n if( row == 0 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n \n if( row == 7 && column == 0 || row == 7 && column == 7 || row == 6 && column == 6 || row == 8 && column == 3 || row == 9 && column == 3 || row == 9 && column == 4 || row == 9 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassk.jpg\"));\n }\n \n if( row == 2 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n //Trap\n if(\"T\".equals(game.getOccupantStringRepresentation(row, column))){\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/trap.jpg\"));\n lblText.setIcon(image);\n }\n //Food\n //if(game.getOccupantStringRepresentation(row, column) == \"apple\" ) {\n //image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n //}\n if( row == 6 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 5 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassm.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 2 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubs.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 8 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grasso.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n //Predator\n if( row == 2 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 9 && column == 7 ||row == 5 && column == 2 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassp.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 3 && column == 4 || row == 6 && column == 4 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 4 && column == 1) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/waters.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\"));\n }\n }\n //Mystical Creature\n if( row == 7 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brickf.jpg\"));\n }\n \n if( row == 4 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandph.jpg\"));\n }\n \n if( row == 0 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandm.jpg\"));\n }\n \n if( row == 4 && column == 6 || row == 6 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubp.jpg\"));\n }\n \n if( row == 8 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassd.jpg\"));\n }\n \n \n //Hazard\n if( squareExplored && row == 2 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n\n \n if( squareExplored && row == 3 && column == 5 || squareExplored && row == 7 && column == 4 || squareExplored && row == 6 && column == 5 || squareExplored && row == 7 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 1 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 5 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if ( squareVisible && !squareExplored ) \n {\n\n }\n lblText.setIcon(image);\n \n // set border colour according to \n // whether the player is in the grid square or not\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n }\n else\n {\n lblText.setText(\"\");\n lblText.setIcon(null);\n setBorder(normalBorder);\n }\n }", "protected abstract void updateInfos();", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public void applyUpdates() {\r\n synchronized (visualItemMap) {\r\n adder.execute(parentGroup);\r\n for (VisualItem3D item : visualItemMap.values()) {\r\n item.applyTransform();\r\n }\r\n }\r\n }", "public void reloadMarkers() {\n this.markers.reload();\n }", "public void _update(double dt, Map map) {\n for (Ghost ghost: ghostList) {\n ghost._update(dt, map);\n }\n }", "public void update(GameBoard gameBoard, Player link, ArrayList<Enemy> goblinsList, Arrow arrow) {\r\n assert gameBoard.getRowCount() == this.rowCount && gameBoard.getColumnCount() == this.columnCount;\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n GameBoard.CellValue cellValue = gameBoard.getCellValue(row, column);\r\n if (cellValue == zelda.GameBoard.CellValue.ENEMY) {\r\n this.cellViews[row][column].setFill(new ImagePattern(southStance));\r\n //this.cellViews[row][column].setFill(Color.RED);\r\n } else if (cellValue == zelda.GameBoard.CellValue.SCRAPHEAP) {\r\n this.cellViews[row][column].setFill(new ImagePattern(new Image(\"/res/tomb.png\")));\r\n //this.cellViews[row][column].setFill(Color.BLUE);\r\n } else if (cellValue == zelda.GameBoard.CellValue.ARROW) {\r\n this.cellViews[row][column].setFill(new ImagePattern(arrow.getStance()));\r\n } else if (cellValue == zelda.GameBoard.CellValue.LINK) {\r\n this.cellViews[row][column].setFill(new ImagePattern(link.getStance()));\r\n } else {\r\n this.cellViews[row][column].setFill(Color.TRANSPARENT);\r\n }\r\n }\r\n }\r\n }", "public void updateXLoc();", "public void update()\n\t{\n\t\tgrid.draw();\n\t\tmonsterSpawner.update();\n\t\tjewelSpawner.update();\n\t\t\n\t\tint numOnCenter = 0;\n\t\tfor (Player player : players)\n\t\t\tif (player.getSprite().onCenterArea())\n\t\t\t\tnumOnCenter++;\n\t\tfor (Player player : players) {\n\t\t\tif (numOnCenter < 2 && player.getSprite().onCenterArea())\n\t\t\t\tplayer.addScore(Clock.getSeconds());\n\t\t\tplayer.update();\n\t\t}\n\t\tfor (Iterator<Projectile> iterator = projectiles.iterator(); iterator.hasNext();) {\n\t\t\tProjectile projectile = iterator.next();\n\t\t\tif (!projectile.exists())\n\t\t\t\titerator.remove();\n\t\t\telse\n\t\t\t\tprojectile.update();\n\t\t}\n\t\t\n\t\tui.update();\n\t\tfor (int i = traps.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tTrap trap = traps.get(i);\n\t\t\ttrap.update();\n\t\t\tif (!trap.exists())\n\t\t\t{\n\t\t\t\ttraps.remove(i);\n\t\t\t\tgrid.removeEntity(trap.getCurrentTile());\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n \n // ADD YOU CODE HERE\n\n // Updating the number of steps label\n nbreOfStepsLabel.setText(\"Number of steps: \" + Integer.toString(gameModel.getNumberOfSteps()));\n \n // Updating the icons\n for (int i=0; i<gameModel.getHeigth(); i++) {\n\n for (int j=0; j<gameModel.getWidth(); j++) {\n\n board[i][j].setIconNumber(getIcon(j,i));\n \n } \n }\n\n pack();\n }", "public void update()\r\n {\r\n for (int i = 0; i < _menubar.length; i++)\r\n {\r\n _menubar[i].draw();\r\n }\r\n _ausgewahlt.draw();\r\n }", "public void updateStrongBox(Map<Resource,Integer> map){\n this.gameboardPanel.updateStrongBox(map);\n }", "public void tableRefChanged() {\r\n\t\t// clear the table Element so it will be recreated\r\n\t\ttableElement = null;\r\n\t\t\r\n\t\t// tell the files that this table has changed\r\n\t\tif (refFiles != null) {\r\n\t\t\tfor(ReferenceFile refFile : refFiles) {\r\n\t\t\t\trefFile.setUpdated(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void update() {\r\n\t\tthis.removeAll();\r\n\t\tdrawLinesAndLabels(this.getWidth(), this.getHeight());\r\n\t\tdrawNameSurferEntries();\r\n\t}" ]
[ "0.6254218", "0.5920852", "0.5815845", "0.57859445", "0.5774726", "0.5762361", "0.56980544", "0.56667465", "0.56643856", "0.56537825", "0.55855864", "0.55789506", "0.5565453", "0.55387866", "0.5535775", "0.55297244", "0.55235493", "0.5494156", "0.54850954", "0.54778427", "0.5473983", "0.5466364", "0.5458941", "0.5454577", "0.5393529", "0.538123", "0.5365828", "0.53366774", "0.5312359", "0.53051716", "0.53026223", "0.5288199", "0.5287985", "0.5283038", "0.5276763", "0.5271379", "0.52576065", "0.52522016", "0.52480733", "0.52233255", "0.51955134", "0.5192372", "0.5192242", "0.51910865", "0.5183149", "0.5181651", "0.51792103", "0.5161542", "0.51602566", "0.5148769", "0.5140552", "0.51403683", "0.51341397", "0.5132976", "0.51312435", "0.51184976", "0.51083446", "0.5103168", "0.50981945", "0.5092945", "0.5080649", "0.50797045", "0.5078186", "0.5073166", "0.5072837", "0.5071876", "0.5071154", "0.50695115", "0.5067425", "0.50654817", "0.5062113", "0.5055767", "0.5055761", "0.5049767", "0.5048158", "0.5047265", "0.5045297", "0.50441325", "0.504187", "0.504187", "0.504187", "0.504187", "0.504187", "0.5037391", "0.50368524", "0.5034128", "0.50305945", "0.50302565", "0.50302565", "0.50282884", "0.5024463", "0.50230974", "0.5020865", "0.50202936", "0.501733", "0.5016651", "0.50164014", "0.5013231", "0.5002308", "0.5002287", "0.5001339" ]
0.0
-1
Get the reference hook for the currently loaded map.
String getHookCurrent() { return hookCurrent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GoogleMap getMapRef() {\n return mMap;\n }", "@Override\n\tpublic HookTracker getHookTracker() {\n\t\treturn hookTracker;\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping getClrMap()\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(CLRMAP$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "String getReference();", "String getReference();", "public ReferenceHelper getReferenceHelper();", "public ExternalReferenceHandlerIF getExternalReferenceHandler() {\n return ref_handler;\n }", "String getHookSpawn()\n {\n return hookSpawn;\n }", "Symbol getRef();", "Collection<Feature> getReference();", "String[][] getHooks()\n {\n return hooks;\n }", "Variable getRefers();", "public String getReference();", "public String getReference();", "public static LogReference getRef(String standard, String refID) {\n\t\tif (rootEl == null) {\n\t\t\ttry {\n\t\t\t\tloadXml(new File(srcPath));\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tString version = getPriorVersion(standard, null);\n\t\treturn resolveRef(standard, version, refID);\n\t}", "protected MapListenerSupport getMapListenerSupport()\n {\n return m_listenerSupport;\n }", "protected MapListenerSupport getMapListenerSupport()\n {\n return m_listenerSupport;\n }", "@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}", "public static GuidoLocationListener getReference(){\r\n\t\tif(instance == null)\r\n\t\t\tinstance = new GuidoLocationListener();\r\n\t\treturn instance;\r\n\t}", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "java.lang.String getRef();", "public final String getReference() {\n return reference;\n }", "public Map getMap() {\n\t\treturn this.map;\n\t}", "@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }", "public int getShotsFiredOfLoadedMap() {\r\n\t\t\r\n\t\t//TODO\r\n\t\t\r\n\t\treturn -1;\r\n\t}", "public static LogReference getRef(String standard, String version, String refID) {\n\t\treturn getRef(standard, refID);\n\t}", "public java.lang.String getReference() {\n return reference;\n }", "@Override\n public String getMappedLocation() {\n return gameMap.convertPortReferenceToName(reference);\n }", "public Object getLocalReference()\n {\n return m_localInstance;\n }", "public Map<String, Match> getReferenceMatches();", "public Optional<LibraryHook> getHook() {\n if (hook == null) {\n try {\n hook = libraryClass.getDeclaredConstructor().newInstance();\n } catch (Exception | NoClassDefFoundError exception) {\n Bukkit.getConsoleSender().sendMessage(\"Could not grab hook of \" + this.getHumanPluginName());\n exception.printStackTrace();\n return Optional.empty();\n }\n }\n\n return Optional.of(hook);\n }", "public String getRef() {\n return ref;\n }", "@Override\n public List<Map<Frequency, DataForDetection>> getStuffReference() {\n return super.getStuffReference();\n }", "public static Reference getReference() {\n return getRequest() == null ? null : getRequest().getResourceRef();\n }", "public MapAssembly getMap() {\n return map;\n }", "public String getReference() {\n return reference;\n }", "@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}", "public BackingMapManagerContext getContext();", "public ReferenceService getReferenceService(){\n\t\treturn this.referenceService;\n\t}", "@Override\n public String getRefMapperConfig() {\n return null;\n }", "public String getUsemap() {\n return (String) attributes.get(\"usemap\");\n }", "FunctionArgument getRef();", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "Object visitMapOfReferences(MapOfReferencesNode node, Object state);", "public FumlMapping getMapping() {\r\n if (this.mapping == null) {\r\n Object element = this.getInternalElementReference().getElement();\r\n if (element != null) {\r\n this.mapping = this.fumlMap(element);\r\n }\r\n }\r\n return this.mapping;\r\n }", "public String getMap() { \n\t\treturn getMapElement().getValue();\n\t}", "public Map<?> getCurrentMap() {\n return this.currentArea;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public GHFrom getRef() {\n return ref;\n }", "public int getMapID(){\r\n\t\treturn mapID;\r\n\t}", "public static Reference getOriginalRef() {\n return getRequest() == null ? null : getRequest().getOriginalRef();\n }", "private byte l() {\r\n\t\treturn left_map;\r\n\t}", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public int getMapID() {\n return mapID_;\n }", "public BackingMapManager getBackingMapManager();", "Object getRefid();", "public MapBean getMapBean() {\n return theMap;\n }", "public Object elGetReference(Object bean);", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "@Override\n public String getReferenceInfo()\n {\n return \"\";\n }", "private static File getLocalReference(MD5Key id) {\n \n \t\tFile lnkFile = getAssetLinkFile(id);\n \t\tif (!lnkFile.exists()) {\n \t\t\treturn null;\n \t\t}\n \t\ttry {\n \t\t\tList<String> refList = FileUtil.getLines(lnkFile);\n \n \t\t\tfor (String ref : refList) {\n \t\t\t\tFile refFile = new File(ref);\n \t\t\t\tif (refFile.exists()) {\n \t\t\t\t\treturn refFile;\n \t\t\t\t}\n \t\t\t}\n \n \t\t} catch (IOException ioe) {\n \t\t\t// Just so we know, but fall through to return null\n \t\t\tioe.printStackTrace();\n \t\t}\n \n \t\t// Guess we don't have one\n \t\treturn null;\n \t}", "@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }", "public String getREFERENCE() {\r\n return REFERENCE;\r\n }" ]
[ "0.61266905", "0.57808983", "0.5693434", "0.5631485", "0.5631485", "0.55458283", "0.550685", "0.5497297", "0.54698354", "0.5442209", "0.5439287", "0.5436279", "0.54025793", "0.54025793", "0.5373534", "0.5361256", "0.5361256", "0.535085", "0.53462183", "0.53085685", "0.5280634", "0.52786565", "0.5262199", "0.52324754", "0.5209568", "0.51928884", "0.5166416", "0.5160458", "0.5147663", "0.51377815", "0.5136477", "0.51075476", "0.5090926", "0.5089101", "0.508875", "0.5081398", "0.5081315", "0.5074952", "0.507338", "0.5073154", "0.507292", "0.5071487", "0.5062749", "0.5062749", "0.5062749", "0.50517374", "0.50346136", "0.5027803", "0.5014505", "0.49985883", "0.49985883", "0.49985883", "0.49985883", "0.49985883", "0.49985883", "0.49983644", "0.49983644", "0.49983644", "0.49983644", "0.4997597", "0.4997597", "0.4997597", "0.49763978", "0.4965984", "0.49594805", "0.4947654", "0.4947246", "0.4947246", "0.4947246", "0.4947246", "0.4947246", "0.4947246", "0.49463275", "0.49463275", "0.494632", "0.494632", "0.494632", "0.494632", "0.494632", "0.494575", "0.49283618", "0.49277577", "0.4911794", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.4911637", "0.48958102", "0.48927027", "0.4891164", "0.48830375" ]
0.6091963
1
Set the reference hook for the currently loaded map.
void setHookCurrent(String hookCurrent) { this.hookCurrent = hookCurrent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReference(Reference ref)\n {\n this.ref = ref;\n }", "public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }", "private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }", "void setReference(String reference);", "public void addReference() {\r\n mReferenced = true;\r\n }", "public void setReference(final String newLocation) {\n reference = gameMap.convertNameToReference(newLocation);\n }", "public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }", "public void setMap(MapAssembly demoMap) {\n this.map = demoMap;\n }", "public void setClrMap(org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping clrMap)\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(CLRMAP$2, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().add_element_user(CLRMAP$2);\n }\n target.set(clrMap);\n }\n }", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public void hiliteByReference(String ref) {\n\t}", "public void setReference(String reference);", "void setMapChanged();", "public void _patchReferencesInternal(SL_Obj fromObjArg) {\n SATableReadCapabilityAttributesExtension fromObj = (SATableReadCapabilityAttributesExtension)fromObjArg;\n\n // Get the map of old->new references\n Map<SL_Obj, SL_Obj> map = rootObj.get_patchRefsMap();\n\n SL_Obj wkObj;\n super._patchReferencesInternal(fromObj);\n\n\n }", "public final void mo18091a(@Nullable Map map) {\n Map map2;\n Map map3 = null;\n if (map != null) {\n map3 = (Map) map.get(\"final\");\n map2 = (Map) map.get(\"default\");\n } else {\n map2 = null;\n }\n this.f3786d.f3806b = map3;\n this.f3789g.f3806b = map2;\n setChanged();\n }", "public void setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler) {\n this.ref_handler = ref_handler;\n }", "public void setMarkersReference(TableProcessor markers) {\n opensimMocoJNI.MocoTrack_setMarkersReference(swigCPtr, this, TableProcessor.getCPtr(markers), markers);\n }", "public void setActiveMap(IMap map) {\n\t\tm_activeMap = map;\n\t\t\n\t\tFile imageLocation = map.getImage();\n\t\tif (! imageLocation.exists()) {\n\t\t\tFile altImage = map.getAltImage();\n\t\t\tif ( altImage != null && altImage.exists()) {\n\t\t\t\timageLocation = altImage;\n\t\t\t}\n\t\t}\n\t\t\n\t\tloadImage(imageLocation);\n\t\tupdateZoomCanvas();\n\t}", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "void setRef(java.lang.String ref);", "protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }", "public void onChangeMap(String arg0) {\n\t\t\r\n\t}", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if(context instanceof OnMap){\n mOnMap = (OnMap) context;\n }\n }", "public final native void setMap(MapJSO map) /*-{\n\t\tthis.setMap(map);\n\t}-*/;", "void setPointOfReference(String url)\n throws IOException, SoapException;", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady()\");\n map = googleMap;\n map.setOnMapClickListener(this);\n }", "Object visitMapOfReferences(MapOfReferencesNode node, Object state);", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "public void setBaseClassMap(ClassMap baseClassMap)\n {\n this.baseClassMap = baseClassMap;\n if (baseClassMap == null)\n {\n this.baseLinkInfo = null;\n } \n }", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "public void ref() {\n\n\t}", "public void setOriginalRef(Reference originalRef) {\n this.originalRef = originalRef;\n }", "private void setMap(final Map map) {\n\t\tthis.map = map;\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t}", "public void elSetReference(Object bean);", "public SetOnceRef(Object ref) {\n this(ref, false, true);\n }", "public void setLocation(String ref, Range range) {\n if (GenomeController.getInstance().isGenomeLoaded()) {\n boolean refChanging = isValidAndNewReference(ref);\n boolean rangeChanging = !range.equals(currentViewableRange);\n if (refChanging || rangeChanging) {\n updateHistory();\n if (refChanging) {\n setReference(ref);\n }\n if (rangeChanging) {\n setRange(range);\n }\n fireEvent(new LocationChangedEvent(refChanging, currentReference, currentViewableRange));\n }\n pendingReference = null;\n pendingRange = null;\n } else {\n pendingReference = ref;\n pendingRange = range;\n }\n }", "public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }", "public void setMap(java.util.Map map)\n {\n _assert(map != null && getMap() == null, \"Map is not resettable\");\n __m_Map = (map);\n }", "void setMap(Map aMap);", "private void setCrossRef(CrossRef crossRef) { this.crossRef = crossRef; }", "public TiledMapPlus(String ref, boolean loadTileSets) throws SlickException {\r\n super(ref, loadTileSets);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "void setHook(Hook hook) throws CheckerException;", "public TiledMapPlus(String ref) throws SlickException {\r\n this(ref, true);\r\n }", "public void setContainsLocals(SlotManager map) {\n setStackFrameMap(map);\n }", "public void setReference(int pointer, Object object)\n {\n references.put(object, pointer);\n }", "public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}", "@Before\n public void loadReferenceData() {\n if (fireOnceRule.shouldFireRule()) {\n RefDataUtils.loadReferenceDataToCacheOnly();\n }\n }", "public void setReference(javax.xml.namespace.QName reference)\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(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }", "public void setReferenceService(ReferenceService referenceService){\n\t\tthis.referenceService = referenceService;\n\t}", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n }", "public abstract void adjustLocationReference(\n\t\t\tfinal OpenLREncoderProperties properties,\n\t\t\tfinal LocRefData locRefData) throws OpenLRProcessingException;", "@Override\n public void onMapLoaded() {\n mMapStatus = new MapStatus.Builder().zoom(9).build();\n mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(mMapStatus));\n }", "@Override\n public void onMapReady(GoogleMap googleMap){\n mMap = googleMap;\n }", "void setHooks(String[][] hooks)\n {\n this.hooks = hooks;\n }", "public void setReferences(org.purl.dc.elements.x11.SimpleLiteral references)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(REFERENCES$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(REFERENCES$0);\r\n }\r\n target.set(references);\r\n }\r\n }", "public void setReference(boolean isReference) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.REFERENCE_FLAG_MODIFIED, this )\n .setOldValue( this.isReference ).setNewValue( isReference ).buildEvent();\n\n this.isReference = isReference;\n publishEvent( event );\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n }", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n }", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n }", "@Override\n public boolean getDefineAlternateReferenceLocationFlag() {\n return false;\n }", "private void initializeReferences(String inputFilename) {\n\t\tparser = new Parser(inputFilename);\n\t\tlocations = new TreeMap<>();\n\t}", "protected void setFixture(Map fixture) {\n\t\tthis.fixture = fixture;\n\t}", "void setHookSpawn(String hookSpawn)\n {\n this.hookSpawn = hookSpawn;\n }", "public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}", "public void setMap(Map map) {\r\n\t\tthis.map = map;\r\n\t\tsmap.setMap(map);\r\n\t}", "public final void setReference(final String newReference) {\n reference = newReference;\n }", "void setUpRefs(GElement target) {\n\t\t if(target.isDataGenerator()){\n\t\t\t setDg((GDataGenerator)target);\n\t\t } \n\t }", "public void setMarkersReferenceFromTRC(String filename) {\n opensimMocoJNI.MocoTrack_setMarkersReferenceFromTRC__SWIG_1(swigCPtr, this, filename);\n }", "public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }", "@Override\n public void onMapViewInitialized(MapView mapView) {\n settingZoomMarkMap(mapView);\n }", "public void setReference(float[] reference){\n if(reference.length==3){\n referenceState[0]=reference[0];\n referenceState[1]=reference[1];\n referenceState[2]=reference[2];\n\n isStateSaved=true;\n\n if(referenceState[0]>Math.abs(referenceState[1])){\n isXZplane=true;\n } else{\n isXZplane=false;\n }\n }\n }", "public void setRootRef(Reference rootRef) {\n this.rootRef = rootRef;\n }", "private void switchLookupListener() {\n TopComponent active = TopComponent.getRegistry().getActivated();\n if( null != lookupRes ) {\n lookupRes.removeLookupListener( PaletteSwitch.this );\n lookupRes = null;\n }\n if( null != active ) {\n lookupRes = active.getLookup().lookup( new Lookup.Template<PaletteController>( PaletteController.class ) );\n lookupRes.addLookupListener( PaletteSwitch.this );\n lookupRes.allItems();\n }\n }", "public synchronized void landmarksChanged (CityMap sender) {\n mapLandmarks = cityMap.getMapLandmarks ();\n lastActivated = null;\n repaint ();\n }", "public void setClasspathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createClasspath().setRefid(r);\n setChecked(false);\n }", "@Override\n\tprotected void initHook() {\n\t}", "public void addTriggers(Map<String, Object> map) {\n }", "public ImageFileNameMap(FileNameMap map)\r\n {\r\n prevMap = map;\r\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "public static void registerExternal(External hooks) { external = hooks; }", "public void markCPRefs(boolean[] refs) {\n }", "public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }", "void setHashMap();", "public void setMapBean(MapBean aMap) {\n theMap = aMap;\n }", "private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }", "public void setClasspathRef(Reference r) {\r\n createClasspath().setRefid(r);\r\n }", "public void setMap2D(FXMap map);", "@Override\n\tpublic void setManualUrlMap(\n\t\tjava.util.Map<java.util.Locale, java.lang.String> manualUrlMap) {\n\t\t_scienceApp.setManualUrlMap(manualUrlMap);\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setAllGesturesEnabled(mLock);\n\n mMap.setOnMyLocationButtonClickListener(this);\n mMap.setOnMapClickListener(this);\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n enableMyLocation();\n }", "public void testExtendsMap() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setMap(true);\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n setLinkerName(extendedLinker, \"msvc\");\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"/NOLOGO\", preArgs[0]);\n assertEquals(\"/SUBSYSTEM:WINDOWS\", preArgs[1]);\n assertEquals(\"/INCREMENTAL:NO\", preArgs[2]);\n assertEquals(\"/MAP\", preArgs[3]);\n }", "public void setBonusReference(Float bonusReference) {\n this.bonusReference = bonusReference;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getCases();\n mMap.setMyLocationEnabled(true);\n mMap.setOnMarkerClickListener(this);\n }", "public void notifyMapLoaded();", "public void setUsemap(String usemap) {\n attributes.put(\"usemap\", usemap);\n }" ]
[ "0.6392707", "0.62024987", "0.59582007", "0.59047467", "0.5876259", "0.5871901", "0.5864253", "0.58626246", "0.5859656", "0.5844909", "0.58195275", "0.58010465", "0.5723719", "0.56207573", "0.5611308", "0.560136", "0.55995184", "0.5596146", "0.55925554", "0.5559597", "0.55497867", "0.5536279", "0.55250055", "0.5499097", "0.5485547", "0.5478283", "0.5459324", "0.5432994", "0.54329795", "0.54298365", "0.54274887", "0.54152817", "0.54118156", "0.5411532", "0.5406798", "0.5399908", "0.53920984", "0.53887725", "0.53813076", "0.5360126", "0.5346856", "0.53411114", "0.5338376", "0.5331251", "0.5320793", "0.5319475", "0.5316938", "0.531125", "0.5307073", "0.5304448", "0.52990496", "0.5294036", "0.52926654", "0.52916116", "0.52730745", "0.5268669", "0.5253445", "0.5248561", "0.52479494", "0.52386916", "0.52297956", "0.5227778", "0.52270573", "0.52241814", "0.5221255", "0.52045876", "0.5193035", "0.5183294", "0.51821715", "0.51803106", "0.5176731", "0.5173847", "0.5168888", "0.5164267", "0.5160599", "0.51525", "0.51224756", "0.51006675", "0.51005435", "0.50991416", "0.50962675", "0.5089699", "0.50875163", "0.50829047", "0.50829047", "0.50820714", "0.5079196", "0.5075751", "0.50723296", "0.50696385", "0.5054712", "0.5048295", "0.5044639", "0.5039116", "0.50333714", "0.5032202", "0.5024331", "0.5024036", "0.50211513", "0.5019375" ]
0.5565769
19
Get the reference hook for the player spawn location.
String getHookSpawn() { return hookSpawn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getSpawnLocation() {\n return this.spawnLocation;\n }", "public static GuidoLocationListener getReference(){\r\n\t\tif(instance == null)\r\n\t\t\tinstance = new GuidoLocationListener();\r\n\t\treturn instance;\r\n\t}", "public Location getBedSpawnLocation ( ) {\n\t\treturn extract ( handle -> handle.getBedSpawnLocation ( ) );\n\t}", "Location getPlayerLocation();", "public Location alliesSpawn(){\r\n\t\treturn alliesSpawn;\r\n\t}", "public Location mainSpawn(){\r\n\t\treturn mainSpawn;\r\n\t}", "public Point getSpawn() {\n\t\treturn spawn;\n\t}", "String getLawnPosition();", "public ImmutableSimpleLocation getSpawn() {\n return spawn;\n }", "void setHookSpawn(String hookSpawn)\n {\n this.hookSpawn = hookSpawn;\n }", "@Override\n public Location getLocation() {\n if (type == TeleportType.TPA) {\n return target.getPlayerReference(Player.class).getLocation();\n } else if (type == TeleportType.TPHERE) {\n return toTeleport.getPlayerReference(Player.class).getLocation();\n }\n\n return null;\n }", "public Location getTeamSpawn(Team team) {\n return this.config.getLocation(team.getName() + \".spawn\");\n }", "public Location getCompassTarget ( ) {\n\t\treturn extract ( handle -> handle.getCompassTarget ( ) );\n\t}", "URI location() {\n if (module.isNamed() && module.getLayer() != null) {\n Configuration cf = module.getLayer().configuration();\n ModuleReference mref\n = cf.findModule(module.getName()).get().reference();\n return mref.location().orElse(null);\n }\n return null;\n }", "public Location getRespawnLocation() {\r\n Location respawn = null;\r\n if (getId() >= 5533 && getId() <= 5538) {\r\n respawn = Location.create(2913, 5467, 0);\r\n } else if (getId() >= 5539 && getId() <= 5546) {\r\n respawn = Location.create(2916, 5473, 0);\r\n } else if (getId() >= 5547 && getId() <= 5552) {\r\n respawn = Location.create(2910, 5476, 0);\r\n } else if (getId() >= 5553 && getId() <= 5558) {\r\n respawn = Location.create(2907, 5470, 0);\r\n }\r\n return respawn;\r\n }", "public Vector3f getLookAtPoint() {\n\t\treturn mLookAtPoint;\n\t}", "public WeaponDeck getWeaponSpawnpoint() {\n return weaponSpawnpoint;\n }", "public Location getPowerSourceLocation() \n\t{\n\t\treturn factoryPowerSourceLocation;\n\t}", "String getHookCurrent()\n {\n return hookCurrent;\n }", "public String getSpawnLocationString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Location> locs = getSpawns();\n\t\tfor (int i=0;i<locs.size(); i++ ){\n\t\t\tif (locs.get(i) != null) sb.append(\"[\").append(i + 1).append(\":\").\n append(Util.getLocString(locs.get(i))).append(\"] \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public Vector3f getLightPosition();", "public ReferenceHelper getReferenceHelper();", "@Override\n public String getMappedLocation() {\n return gameMap.convertPortReferenceToName(reference);\n }", "SpawnType getGameSpawnType();", "@Nonnull\n Location getPlayerLocation();", "String getReference();", "String getReference();", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "public Location getLobbyLocation() {\n return gameLocations.get(GameLocation.LOBBY);\n }", "@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }", "public Point getReferencePoint(){\n return referencePoint;\n }", "public static MapLocation myLocation() {\n return RC.getLocation();\n }", "java.lang.String getSpawnpointId();", "private Location getPlayersLightBlockLocation(final Player player) {\r\n final Location location = player.getLocation();\r\n final World world = location.getWorld();\r\n\r\n // the block to be replaced is beneath the player's feet\r\n location.setY(location.getY() - 1);\r\n\r\n // skip undesirable blocks, e.g. air, fences, etc\r\n while (config.getIgnoredBlocks().contains(world.getBlockAt(location).getType())) {\r\n location.setY(location.getY() - 1);\r\n }\r\n return location;\r\n }", "public Vec4 getReferencePoint()\n {\n return this.currentData.getReferencePoint();\n }", "SpawnType getLobbySpawnType();", "public Float getBonusReference() {\n return bonusReference;\n }", "@Override\n\tpublic HookTracker getHookTracker() {\n\t\treturn hookTracker;\n\t}", "BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }", "public Optional<LibraryHook> getHook() {\n if (hook == null) {\n try {\n hook = libraryClass.getDeclaredConstructor().newInstance();\n } catch (Exception | NoClassDefFoundError exception) {\n Bukkit.getConsoleSender().sendMessage(\"Could not grab hook of \" + this.getHumanPluginName());\n exception.printStackTrace();\n return Optional.empty();\n }\n }\n\n return Optional.of(hook);\n }", "public Location getPlayersLocation(String player)\n\t{\n\t\treturn playerLocations.get(player);\n\t}", "public String getReference();", "public String getReference();", "private Location getSafePosition(Player player) {\n\t\tLocation safeLoc = Util.entityLocationIsSafe(player);\n\t\tif (safeLoc != null) return normalizeDeathpointLocation(safeLoc);\n\t\t\n\t\t//Else, get last known safe location from metadata\n\t\tLocation loc = (Location) player.getMetadata(\"lastSafePosition\").stream()\n\t\t\t\t.filter(value -> value.getOwningPlugin() == plugin)\n\t\t\t\t.findFirst()\n\t\t\t\t//Fallback\n\t\t\t\t.orElseGet(() -> new FixedMetadataValue(plugin, player.getLocation()))\n\t\t\t\t.value();\n\t\treturn normalizeDeathpointLocation(loc);\n\t}", "public PowerUp getPowerUp(Location loc) {\n for (PowerUp pu : powerUps) {\n for (Location l : pu.imageLocs) {\n if (l.equals(loc)) {\n return pu;\n }\n }\n }\n return null;\n}", "public final String getReference() {\n return reference;\n }", "private static ResourceLocation getCustomArmorLocation(ItemStack itemStack, int layer, String overlay) {\n/* 552 */ CustomItemProperties props = getCustomItemProperties(itemStack, 3);\n/* */ \n/* 554 */ if (props == null)\n/* */ {\n/* 556 */ return null;\n/* */ }\n/* 558 */ if (props.mapTextureLocations == null)\n/* */ {\n/* 560 */ return null;\n/* */ }\n/* */ \n/* */ \n/* 564 */ Item item = itemStack.getItem();\n/* */ \n/* 566 */ if (!(item instanceof ItemArmor))\n/* */ {\n/* 568 */ return null;\n/* */ }\n/* */ \n/* */ \n/* 572 */ ItemArmor itemArmor = (ItemArmor)item;\n/* 573 */ String material = itemArmor.getArmorMaterial().func_179242_c();\n/* 574 */ StringBuffer sb = new StringBuffer();\n/* 575 */ sb.append(\"texture.\");\n/* 576 */ sb.append(material);\n/* 577 */ sb.append(\"_layer_\");\n/* 578 */ sb.append(layer);\n/* */ \n/* 580 */ if (overlay != null) {\n/* */ \n/* 582 */ sb.append(\"_\");\n/* 583 */ sb.append(overlay);\n/* */ } \n/* */ \n/* 586 */ String key = sb.toString();\n/* 587 */ ResourceLocation loc = (ResourceLocation)props.mapTextureLocations.get(key);\n/* 588 */ return loc;\n/* */ }", "public int getSpawnY()\n {\n return spawnY;\n }", "@Override\r\n protected void computeReferencePoint ()\r\n {\r\n setReferencePoint(getHeadLocation());\r\n }", "public Location getLocation() {\n return ((Location) tile);\n }", "public Point getRobotLocation();", "int getPlayerLocation(Player p) {\n\t\t\treturn playerLocationRepo.get(p);\n\t\t}", "public Object getLocalReference()\n {\n return m_localInstance;\n }", "public interface IGameSpawn {\n\n\t/**\n\t * @return the {@link BaseGame} of this spawn\n\t */\n\t@NotNull\n\tBaseGame getGame();\n\n\t/**\n\t * Checks if this spawn are ready for use or not.\n\t * \n\t * @return true if ready\n\t */\n\tboolean isReady();\n\n\t/**\n\t * Returns an unmodifiable list of spawn locations.\n\t * \n\t * @return an unmodifiable list of location\n\t */\n\t@NotNull\n\tjava.util.List<@NotNull Location> getSpawnLocations();\n\n\t/**\n\t * Adds a new spawn location to the list.\n\t * \n\t * @param loc The {@link Location} where to save\n\t * @return true if added\n\t */\n\tboolean addSpawn(@NotNull Location loc);\n\n\t/**\n\t * Removes a spawn by location.\n\t * \n\t * @param loc The {@link Location} where to remove.\n\t * @return true if removed\n\t */\n\tboolean removeSpawn(@NotNull Location loc);\n\n\t/**\n\t * Removes all cached spawns locations.\n\t */\n\tvoid removeAllSpawn();\n\n\t/**\n\t * Checks if the game have any spawn saved.\n\t * \n\t * @return true if the game have spawn set\n\t */\n\tboolean haveAnySpawn();\n\n\t/**\n\t * Gets a random spawn location from the cached list. In case if this method returns null, means that there was no\n\t * spawn added before.\n\t * \n\t * @return {@link org.bukkit.Location}\n\t */\n\t@Nullable\n\tLocation getRandomSpawn();\n}", "public int getLocation() {\n\t\tint location=super.getLocation();\n\t\treturn location;\n\t}", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "java.lang.String getSnapshotLocation();", "public Location getLocation ( ) {\n\t\treturn extract ( handle -> handle.getLocation ( ) );\n\t}", "private Vec3 getLightPosition() {\r\n\t\tdouble elapsedTime = getSeconds() - startTime;\r\n\t\tfloat x = 5.0f * (float) (Math.sin(Math.toRadians(elapsedTime * 50)));\r\n\t\tfloat y = 2.7f;\r\n\t\tfloat z = 5.0f * (float) (Math.cos(Math.toRadians(elapsedTime * 50)));\r\n\t\treturn new Vec3(x, y, z);\r\n\r\n\t\t//return new Vec3(5f,3.4f,5f); // use to set in a specific position for testing\r\n\t}", "godot.wire.Wire.Vector3 getPosition();", "public Point getLocPoint(){\n return super.getLocation();\n }", "String getOnlineHelpLocation();", "private static File getLocalReference(MD5Key id) {\n \n \t\tFile lnkFile = getAssetLinkFile(id);\n \t\tif (!lnkFile.exists()) {\n \t\t\treturn null;\n \t\t}\n \t\ttry {\n \t\t\tList<String> refList = FileUtil.getLines(lnkFile);\n \n \t\t\tfor (String ref : refList) {\n \t\t\t\tFile refFile = new File(ref);\n \t\t\t\tif (refFile.exists()) {\n \t\t\t\t\treturn refFile;\n \t\t\t\t}\n \t\t\t}\n \n \t\t} catch (IOException ioe) {\n \t\t\t// Just so we know, but fall through to return null\n \t\t\tioe.printStackTrace();\n \t\t}\n \n \t\t// Guess we don't have one\n \t\treturn null;\n \t}", "public PointLight3D getLightSource() {\n return lightSource;\n }", "public Reference location() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_LOCATION);\n }", "public Location getLocation()\n\t{\n\t\treturn l;\n\t}", "public String getReference() {\n return reference;\n }", "@NotNull\n\tjava.util.List<@NotNull Location> getSpawnLocations();", "public Point getLocation() { return loc; }", "public LA2 getAdministeredAtLocation() { \r\n\t\tLA2 retVal = this.getTypedField(11, 0);\r\n\t\treturn retVal;\r\n }", "public int getTargetSummonUid() {\n return targetSummonUid_;\n }", "public StarSystem getCurrentLocation() {\n\t\treturn player.getLocation();\n\t}", "public MapLocation getEnemySwarmTarget() {\n\t\tdouble a = Math.sqrt(vecEnemyX * vecEnemyX + vecEnemyY * vecEnemyY) + .001;\n\n\t\treturn new MapLocation((int) (vecEnemyX * 7 / a) + br.curLoc.x,\n\t\t\t\t(int) (vecEnemyY * 7 / a) + br.curLoc.y);\n\n\t}", "public Point getMinimapLocation() {\n Actor c = getAccessor();\n int cX = methods.client.getBaseX() + (c.getLocalLocation().getX() / 32 - 2) / 4;\n int cY = methods.client.getBaseY() + (c.getLocalLocation().getY() / 32 - 2) / 4;\n return methods.calc.worldToMinimap(cX, cY);\n }", "public Location getOffset() {\n\t\treturn gfPos;\n\t}", "int getTargetSummonUid();", "Note getBukkitNote();", "public default void setSpawnPosition(SpellData data, LivingEntity casterIn){ }", "public Location getEnterLocation() {\r\n return location;\r\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public Location getLocation() {\n\t\treturn loc;\n\t}", "public float getRelX() {\n return x + (getReferenceX()-Controller.getMap().getChunkCoords(0)[0]) * Chunk.getGameWidth();\n }", "public Object getLocation() {\n return leftSide.getLocation();\n }", "public static Reference getReference() {\n return getRequest() == null ? null : getRequest().getResourceRef();\n }", "public GameEntity getTarget() {\r\n\t\tif(mode == RadarMode.LOCKED) return currentTarget; else return null;\r\n\t}", "public int getSpawnX()\n {\n return spawnX;\n }", "public java.lang.String getReference() {\n return reference;\n }", "public int getSpawnY() {\n\t\treturn spawnY;\n\t}", "public int getTargetSummonUid() {\n return targetSummonUid_;\n }", "public int getCurrentPlayerRealPosition();", "@java.lang.Override\n public double getPlayerLng() {\n return playerLng_;\n }", "public float getRelY() {\n return y + (getReferenceY()-Controller.getMap().getChunkCoords(0)[1]) * Chunk.getGameDepth();\n }", "SiteLocation getLocatedAt();", "private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "@java.lang.Override\n public double getPlayerLng() {\n return playerLng_;\n }", "public Location getEyeLocation ( ) {\n\t\treturn extract ( handle -> handle.getEyeLocation ( ) );\n\t}" ]
[ "0.61049366", "0.5934519", "0.5925307", "0.5780737", "0.5740701", "0.57249045", "0.56791514", "0.5671083", "0.5643034", "0.5623267", "0.5576446", "0.55707043", "0.5532148", "0.5503925", "0.5500314", "0.54341686", "0.54303885", "0.54153717", "0.5402799", "0.540151", "0.5400183", "0.5380043", "0.5362904", "0.5360459", "0.53504944", "0.53409886", "0.53409886", "0.5319062", "0.5309968", "0.52524775", "0.5239227", "0.5222158", "0.521719", "0.52026576", "0.5184073", "0.5154068", "0.5150108", "0.5128402", "0.51148653", "0.5103257", "0.5087508", "0.5057835", "0.5057835", "0.5053525", "0.50503886", "0.50386363", "0.5031994", "0.50235415", "0.49984813", "0.49921963", "0.49874136", "0.4986166", "0.4972", "0.49683318", "0.49635527", "0.49580145", "0.49580145", "0.4956712", "0.49512863", "0.4936492", "0.4932113", "0.49306408", "0.49267468", "0.49253425", "0.49151272", "0.49133968", "0.4909406", "0.49067238", "0.49004626", "0.48874924", "0.48852643", "0.4868699", "0.4865146", "0.48642144", "0.48616326", "0.4857688", "0.4850032", "0.48467904", "0.4844804", "0.4842068", "0.4841732", "0.4841732", "0.4841732", "0.48364356", "0.48328066", "0.48312625", "0.48306248", "0.4829129", "0.4827357", "0.48212737", "0.48200634", "0.4817803", "0.48149908", "0.48081484", "0.48054698", "0.4803482", "0.48006365", "0.4800416", "0.47985917", "0.47952533" ]
0.69962406
0
Set the reference hook for the player spawn location.
void setHookSpawn(String hookSpawn) { this.hookSpawn = hookSpawn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSpawnLocation(Location spawnLocation) {\n this.spawnLocation = spawnLocation;\n }", "public void setReference(final String newLocation) {\n reference = gameMap.convertNameToReference(newLocation);\n }", "public default void setSpawnPosition(SpellData data, LivingEntity casterIn){ }", "@Override\r\n protected void computeReferencePoint ()\r\n {\r\n setReferencePoint(getHeadLocation());\r\n }", "public void setSpawn(Location loc) {\n if (loc != null) {\n spawn = new ImmutableSimpleLocation(loc);\n }\n }", "public void setReference(Reference ref)\n {\n this.ref = ref;\n }", "void setReference(String reference);", "public void setCompassTarget ( Location loc ) {\n\t\texecute ( handle -> handle.setCompassTarget ( loc ) );\n\t}", "public void setReference(String reference);", "public void setTeamSpawn(Team team, Location loc) {\n this.config.set(team.getName() + \".spawn\", loc);\n }", "String getHookSpawn()\n {\n return hookSpawn;\n }", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "public void updatePlayerLocation() {requires new property on gamestate object\n //\n }", "private void setSpawnLocation(Object packet, Vector location, String xName, String yName, String zName) {\n ReflectUtils.setField(packet, xName, location.getX());\n ReflectUtils.setField(packet, yName, location.getY());\n ReflectUtils.setField(packet, zName, location.getZ());\n }", "public void setBedSpawnLocation ( Location location , boolean force ) {\n\t\texecute ( handle -> handle.setBedSpawnLocation ( location , force ) );\n\t}", "private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }", "private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}", "public void setBonusReference(Float bonusReference) {\n this.bonusReference = bonusReference;\n }", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}", "public void setBedSpawnLocation ( Location location ) {\n\t\texecute ( handle -> handle.setBedSpawnLocation ( location ) );\n\t}", "private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }", "public void setSpawn(boolean spawn) {\r\n this.spawn = spawn;\r\n }", "private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }", "public void setSpawned() {\n spawned = 1;\n setChanged();\n notifyObservers(1);\n }", "public void setReferencePosition(Position referencePosition)\n {\n this.referencePosition = referencePosition;\n this.reset();\n }", "void setLeader(Genome leader);", "public void setReference(float[] reference){\n if(reference.length==3){\n referenceState[0]=reference[0];\n referenceState[1]=reference[1];\n referenceState[2]=reference[2];\n\n isStateSaved=true;\n\n if(referenceState[0]>Math.abs(referenceState[1])){\n isXZplane=true;\n } else{\n isXZplane=false;\n }\n }\n }", "void setRocketTarget(Vector2 target);", "public void setLocation(String ref, Range range) {\n if (GenomeController.getInstance().isGenomeLoaded()) {\n boolean refChanging = isValidAndNewReference(ref);\n boolean rangeChanging = !range.equals(currentViewableRange);\n if (refChanging || rangeChanging) {\n updateHistory();\n if (refChanging) {\n setReference(ref);\n }\n if (rangeChanging) {\n setRange(range);\n }\n fireEvent(new LocationChangedEvent(refChanging, currentReference, currentViewableRange));\n }\n pendingReference = null;\n pendingRange = null;\n } else {\n pendingReference = ref;\n pendingRange = range;\n }\n }", "public Location alliesSpawn(){\r\n\t\treturn alliesSpawn;\r\n\t}", "@Override\n public void setLocation(Point location) {\n pos = location;\n try {\n if (TerraGen.window != null && TerraGen.window.getClient() != null)\n TerraGen.window.getClient().pushGameChange(TerraGen.window.game.getMap().getTokens().indexOf(this), NetworkType.TOKEN, this);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}", "public Location getSpawnLocation() {\n return this.spawnLocation;\n }", "public void setWarp(Location loc) {\n if (loc != null) {\n warp = new ImmutableSimpleLocation(loc);\n }\n }", "public void setRobotLocation(Point p);", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "public abstract void adjustLocationReference(\n\t\t\tfinal OpenLREncoderProperties properties,\n\t\t\tfinal LocRefData locRefData) throws OpenLRProcessingException;", "public void setRespawnPoint (float x, float y) {\n\t\trespawnX = x;\n\t\trespawnY = y;\n\t}", "public final void addPointByReference(final Position loc) {\n points.add(loc);\n }", "public GameCamera(RefLinks refLinks, float xOffset, float yOffset)\n {\n this.refLinks = refLinks;\n this.xOffset = xOffset;\n this.yOffset = yOffset;\n }", "private void renderHook(){\n\t\thook.setPosition(world.hook.position.x, world.hook.position.y);\n\t\thook.setRotation(world.hook.rotation);\n\t\thook.draw(batch);\n\t}", "public void setExplosion(String ref){\n\t ImageIcon ii = new ImageIcon(this.getClass().getResource(ref));\n\t explosion = ii.getImage();\n\t}", "public void control(Spawn spawn) {}", "public void setLobbyLocation(Location loc) {\n gameLocations.put(GameLocation.LOBBY, loc);\n }", "public void setTargetLocation(Location targetLocation) \n {\n this.targetLocation = targetLocation;\n }", "private Steak(ZooPanel refToZooPanel){\n\t\tpan = refToZooPanel;\n\t\tloadImages(null);\n\t\tint x = (pan.getWidth() - img.getWidth(null)) / 2;\n\t\tint y = (pan.getHeight() - img.getHeight(null)) / 2;\n\t\tlocation = new Point(x + 175,y + 100);\n\t}", "public static void teleportPlayer(GamePlayer player, List<Location> spawnpoint) {\r\n\t\tRandom rand = new Random();\r\n\t\tLocation spawn = spawnpoint.get(rand.nextInt(spawnpoint.size()));\r\n\t\t\r\n\t\tplayer.getPlayer().setSaturation(100000);\r\n\t\tplayer.getPlayer().setHealth(20);\r\n\t\tplayer.getPlayer().teleport(spawn);\r\n\t\tgiveStuff(player);\r\n\t}", "public Location mainSpawn(){\r\n\t\treturn mainSpawn;\r\n\t}", "public void setSpawn(String s) {\n\t\tspawnNameMap.put(0, s);\n\t}", "public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }", "public void setToFire(Point3d position){\r\n\t\tworld.setBlockState(new BlockPos(position.x, position.y, position.z), Blocks.FIRE.getDefaultState());\r\n\t}", "@Override\n\tpublic void addTrigger() {\n\t\tthis.listener = new ObjectListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onEvent(ObjectEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\t\t\tif(rankInfo!=null){\n\t\t\t\t\tgetTask().updateProcess((int)rankInfo.getSoul());\n\t\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\tplayer.addListener(this.listener, EventNameType.SOUL_FIGHT);\n\t}", "final protected void setSpawnPosition(int newX, int newY)\n {\n spawnPoint = new Point(newX, newY);\n boundingBox.setLocation(spawnPoint);\n }", "public void setPlayer(final AbstractGameObject player) {\n this.player = player;\n this.cameraHelper.setTarget(this.player);\n }", "public void hiliteByReference(String ref) {\n\t}", "@Override\n\tpublic void setTarget(Object arg0) {\n\t\tdefaultEdgle.setTarget(arg0);\n\t}", "public void setKickerFire(){\r\n\t\tkickerTarget = true;\r\n\t}", "public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}", "public void setInitLoc( Vector2 init ) { initLoc = init; }", "public void setLookAtPoint(Vector3f lookAtPoint) {\n\t\tthis.mLookAtPoint = lookAtPoint;\n\t\tthis.update();\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t\ttarget = pointEntity(caster,50);\r\n\t\tif (target == null) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trefund = true;\r\n\t\t\tdead = true;\r\n\t\t\tif (refined)\r\n\t\t\t\tsteprange = 240;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_ACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tdist = target.getLocation().distance(caster.getLocation());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void addReference() {\r\n mReferenced = true;\r\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void adjLocation(double l){this.PlayerLocation;}", "public void setOriginalLocation() {\r\n for (int i = 0; i < this.enemies.size(); i++) {\r\n Point originalPoint = this.startLocations.get(i);\r\n this.enemies.get(i).setLocation(originalPoint);\r\n }\r\n }", "private void setup() {\n\t\t map.setMyLocationEnabled(true);\n\t \n\t CameraPosition cameraPosition = new CameraPosition.Builder()\n\t .target(USMP_LOCATION) // Sets the center of the map to\n\t // Golden Gate Bridge\n\t .zoom(16) // Sets the zoom\n\t .bearing(90) // Sets the orientation of the camera to east\n\t .tilt(60) // Sets the tilt of the camera to 30 degrees\n\t .build(); // Creates a CameraPosition from the builder\n\t \n\t CameraUpdate cameraUpdate=CameraUpdateFactory.newCameraPosition(\n\t \t cameraPosition);\n\t\t map.animateCamera(cameraUpdate);\n\t\t \n\t map.addMarker(new MarkerOptions()\n\t .position(USMP_LOCATION)\n\t .title(\"DevFest 2013 Season 2\"));\n\t}", "@SubscribeEvent\n public void onItemUseFinish(LivingEntityUseItemEvent.Start event) {\n boolean didTeleport = false;\n\n if (teleportStabilize\n && event.getEntityLiving() instanceof PlayerEntity\n && event.getItem().getItem() == Items.CHORUS_FRUIT\n && !event.getEntityLiving().getEntityWorld().isRemote\n ) {\n World world = event.getEntityLiving().world;\n PlayerEntity player = (PlayerEntity) event.getEntityLiving();\n Map<Double, BlockPos> positions = new HashMap<>();\n BlockPos playerPos = player.getPosition();\n BlockPos targetPos = null;\n\n // find the blocks around the player\n BlockPos.getAllInBox(playerPos.add(-range, -range, -range), playerPos.add(range, range, range)).forEach(pos -> {\n if (world.getBlockState(pos).getBlock() == block && !pos.up(1).equals(playerPos)) {\n\n // should be able to stand on it\n if (world.getBlockState(pos.up(1)).getMaterial() == Material.AIR && world.getBlockState(pos.up(2)).getMaterial() == Material.AIR) {\n positions.put(WorldHelper.getDistanceSq(playerPos, pos.up(1)), pos.up(1));\n }\n }\n });\n\n // get the closest position by finding the smallest distance\n if (!positions.isEmpty()) {\n targetPos = positions.get(Collections.min(positions.keySet()));\n }\n\n if (targetPos != null) {\n double x = targetPos.getX() + 0.5D;\n double y = targetPos.getY();\n double z = targetPos.getZ() + 0.5D;\n if (player.attemptTeleport(x, y, z, true)) {\n didTeleport = true;\n\n // play sound at original location and new location\n world.playSound(null, x, y, z, SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, SoundCategory.PLAYERS, 1.0F, 1.0F);\n player.playSound(SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, 1.0F, 1.0F);\n }\n }\n\n if (didTeleport) {\n player.getCooldownTracker().setCooldown(Items.CHORUS_FRUIT, 20);\n event.getItem().shrink(1);\n event.setCanceled(true);\n }\n }\n }", "public static void setActorRef(Object actorRefObj) {\n actorRef = actorRefObj;\n }", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "public void setLocation(Point p) {\n // Not supported for MenuComponents\n }", "@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }", "public void addLocalLinkHook(StringTransmutator mutator) {\n\t\tm_parser.addLocalLinkHook(mutator);\n\t}", "public void setLocation(int loacation) {\n\t\tsuper.setLocation(loacation);\n\t}", "private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }", "public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }", "public void lookAt(Vector pos) {\n\t\tif(locked) {\n\t\t\tthis.pos = pos;\n\t\t} else {\n\t\t\tlastTarget = target;\n\t\t\tthis.target = pos;\n\t\t\tupdate();\n\t\t}\n\t}", "@Override\r\n\tpublic void landOnSquare(Player player) {\n\t\tsuper.landOnSquare(player);\r\n\t}", "@Override\r\n public void setLocationRelativeTo(Component c) {\n if (hasBeenShown || locLoaded) { return; }\r\n super.setLocationRelativeTo(c);\r\n }", "public void m1291a(Point point) {\r\n this.f763l = point;\r\n }", "public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }", "@Override\n public void setDefaultTarget() {\n hovered = AbstractDungeon.player;\n }", "public void setTargetPos(boolean scared, boolean foundPacman, DiscreteCoordinates cible)\n {\n if(!scared && foundPacman)\n {\n setNewValueForTargetPos(cible);\n }\n else\n {\n setNewValueForTargetPos(coordinatesDependingOnStatus(scared, foundPacman, cible));\n }\n }", "public void initialize() {\n\n\t\tif (sentryWeight <= 0)\n\t\t\tsentryWeight = 1.0;\n\t\tif (AttackRateSeconds > 30)\n\t\t\tAttackRateSeconds = 30.0;\n\n\t\tif (sentryHealth < 0)\n\t\t\tsentryHealth = 0;\n\n\t\tif (sentryRange < 1)\n\t\t\tsentryRange = 1;\n\t\tif (sentryRange > 100)\n\t\t\tsentryRange = 100;\n\n\t\tif (sentryWeight <= 0)\n\t\t\tsentryWeight = 1.0;\n\n\t\tif (RespawnDelaySeconds < -1)\n\t\t\tRespawnDelaySeconds = -1;\n\n\t\tif (Spawn == null)\n\t\t\tSpawn = myNPC.getBukkitEntity().getLocation();\n\n\n\t\t// defaultSpeed = myNPC.getNavigator().getSpeed();\n\n\t\t((CraftLivingEntity) myNPC.getBukkitEntity()).getHandle().setHealth(sentryHealth);\n\n\t\t_myDamamgers.clear();\n\n\t\tthis.sentryStatus = Status.isLOOKING;\n\t\tfaceForward();\n\n\t\tshootanim = new Packet18ArmAnimation( ((CraftEntity)myNPC.getBukkitEntity()).getHandle(),1);\n\t\thealanim = new Packet18ArmAnimation( ((CraftEntity)myNPC.getBukkitEntity()).getHandle(),6);\n\n\t\t//\tPacket derp = new net.minecraft.server.Packet15Place();\n\n\n\t\tmyNPC.getBukkitEntity().teleport(Spawn); //it should be there... but maybe not if the position was saved elsewhere.\n\n\t\t// plugin.getServer().broadcastMessage(\"NPC GUARDING!\");\n\n\t\tif (taskID == null) {\n\t\t\ttaskID = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new SentryLogicRunnable(), 40, _logicTick);\n\t\t}\n\n\n\t}", "public void setTarget(CPointer<BlenderObject> target) throws IOException\n\t{\n\t\tlong __address = ((target == null) ? 0 : target.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeLong(__io__address + 128, __address);\n\t\t} else {\n\t\t\t__io__block.writeLong(__io__address + 104, __address);\n\t\t}\n\t}", "@Override\n public void init_loop() {\n hookPosDeg = HOOK_UP;\n clawPosDeg = CLAW_OPEN;\n hookPos = map(hookPosDeg, HOOK_MIN_POS_DEG, HOOK_MAX_POS_DEG, HOOK_MIN_POS, HOOK_MAX_POS);\n clawPos = map(clawPosDeg, CLAW_MIN_POS_DEG, CLAW_MAX_POS_DEG, CLAW_MIN_POS, CLAW_MAX_POS);\n hook.setPosition(hookPos);\n claw.setPosition(clawPos);\n\n// armTarget = ARM_CENTER;\n// arm.setTargetPosition(armTarget);\n// arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// arm.setPower(.3);\n }", "public void setLocation(Drawable location) {\n this.location = location;\n setBackground(location);\n startGame();\n }", "public void setLevelWatcher(LevelWatcher gameLevelWatcher)\n {\n levelWatcher = gameLevelWatcher;\n }", "public static GuidoLocationListener getReference(){\r\n\t\tif(instance == null)\r\n\t\t\tinstance = new GuidoLocationListener();\r\n\t\treturn instance;\r\n\t}", "@Override\n\t\n\tvoid level_specific_turret_setup(){\n\t}", "void setPointOfReference(String url)\n throws IOException, SoapException;", "public void setSpawn (int x, int y) {\n xCord = x;\n yCord = y;\n }", "public void setLastHeal(int x, int y, int mapX, int mapY)\n\t{\n\t\tm_healX = x;\n\t\tm_healY = y;\n\t\tm_healMapX = mapX;\n\t\tm_healMapY = mapY;\n\t}", "void setHook(Hook hook) throws CheckerException;", "public void shootIntoRocket(){\n shoot.set(ROCKET_SHOOT);\n }", "private void setPlayer() {\n player = Player.getInstance();\n }", "public void setPlayer(Player _player) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n player = _player;\n }", "public void setAttachLocation(float attachLocationX, float attachLocationY) {\n\t\tthis.attachLocationX = attachLocationX;\n\t\tthis.attachLocationY = attachLocationY;\n\t}", "public void setLocation(Vec2f loc) {\n\t\tsuper.setLocation(loc);\n\t\tif (_shape != null) _shape.setLocation(loc);\n\t}" ]
[ "0.62871855", "0.602849", "0.6018211", "0.5951335", "0.5897272", "0.56104505", "0.55897874", "0.5584194", "0.5536016", "0.5503343", "0.5480259", "0.5464289", "0.54553956", "0.54533684", "0.54483396", "0.54019266", "0.5370947", "0.53709453", "0.535518", "0.5349202", "0.53466123", "0.5345235", "0.5298994", "0.52872574", "0.5277173", "0.5270629", "0.5263069", "0.5249234", "0.524785", "0.52442455", "0.52321076", "0.5220741", "0.52057374", "0.52033854", "0.5184183", "0.5180696", "0.51728153", "0.51705277", "0.5167869", "0.5154026", "0.5131717", "0.5128429", "0.51026225", "0.51021385", "0.5100614", "0.5100446", "0.50929207", "0.50887316", "0.50874066", "0.5085612", "0.5082776", "0.50773734", "0.5066182", "0.506092", "0.50590307", "0.5057693", "0.5053983", "0.50418043", "0.50305754", "0.50255096", "0.5019741", "0.50163054", "0.50152475", "0.50104284", "0.50104284", "0.5004297", "0.49739513", "0.49730846", "0.49650392", "0.49561542", "0.49464527", "0.49388233", "0.49360502", "0.49340463", "0.4930765", "0.49293187", "0.4928547", "0.49270564", "0.49259746", "0.49255663", "0.49248773", "0.49240586", "0.49226108", "0.4918924", "0.49156323", "0.48950955", "0.48920792", "0.48879167", "0.48868638", "0.4885998", "0.4885054", "0.48786712", "0.48773292", "0.4872536", "0.4872344", "0.4871462", "0.48650718", "0.4865029", "0.48647457", "0.48643544" ]
0.69137824
0
Register to receive cron taskrelated events
@Before public void initialize() throws Exception { cronTaskEventListenerRegistry.addListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cronScheduledProcesses();", "@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }", "void configureTasks(ScheduledTaskRegistrar taskRegistrar);", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "ScheduledEvents getScheduledEvents();", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "void registerTasks(Object taskClassObject);", "public interface EventListener {\n\n\t/**\n\t * Called when a task event has occurred.\n\t * \n\t * @param event\n\t * the task event which has occurred\n\t */\n\tvoid eventOccurred(AbstractTaskEvent event);\n}", "public interface ScheduledBillService {\n\tpublic void scheduleTaskWithCronExpression();\n}", "private void scheduleRecurringTasks() {\n\t\t//created directories expected by the system to exist\n\t\tUtil.initializeDataDirectories();\n\n\t\tTestManager.initializeTests();\n\n\t\t// Gets all the periodic tasks and runs them.\n\t\t// If you need to create a new periodic task, add another enum instance to PeriodicTasks.PeriodicTask\n\t\tSet<PeriodicTasks.PeriodicTask> periodicTasks = EnumSet.allOf(PeriodicTasks.PeriodicTask.class);\n\t\tfor (PeriodicTasks.PeriodicTask task : periodicTasks) {\n\t\t\tif (R.IS_FULL_STAREXEC_INSTANCE || !task.fullInstanceOnly) {\n\t\t\t\ttaskScheduler.scheduleWithFixedDelay(task.task, task.delay, task.period.get(), task.unit);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tPaginationQueries.loadPaginationQueries();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"unable to correctly load pagination queries\");\n\t\t\tlog.error(e.getMessage(), e);\n\t\t}\n\t}", "public Cronometro() {\n initComponents();\n cronometro = new CronometroThread(this);\n }", "@Override\n public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {\n\n taskRegistrar.addTriggerTask(\n // task content\n () -> checkAnemoData(),\n // set task schedule\n triggerContext -> {\n // get configuration\n SystemSetting cronConfig = systemSettingRepository\n .findByConfigName(Constants.ANEMO_ALARM_CHECK_CRON);\n // verify configuration\n if (cronConfig == null || StringUtils.isBlank(cronConfig.getValue())) {\n logger.error(\n \"The system configuration '\" + Constants.ANEMO_ALARM_CHECK_CRON\n + \"' IS EMPTY or BLANK now\");\n return null;\n }\n // return schedule\n return new CronTrigger(cronConfig.getValue()).nextExecutionTime(triggerContext);\n });\n }", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "public void onScheduled(long scheduledTime);", "@Test\n public void testTask() throws InterruptedException {\n\n SchedulingRunnable task1 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task1, \"0/15 * * * * ?\");\n Thread.sleep(10000);\n\n SchedulingRunnable task2 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task2, \"0/8 * * * * ?\");\n // 便于观察\n\n Thread.sleep(3000000);\n }", "private void createEvents() {\n\t}", "void onTaskStart();", "private void registerTaskInstances() {\n\t\t// For all tasks from DB\n\t\tfor (TaskFromDBTrigger trigger : tasksList) {\n\t\t\tif (trigger.isValid()) {\n\t\t\t\ttrigger.initTrigger();\n\t\t\t} else {\n\t\t\t\tlog.error(\"Invalid task from db with ID: \" + trigger.getTaskId());\n\t\t\t}\n\t\t}\n\t}", "ServerScheduledEvent getServerScheduledEvent();", "private void registerCallHomeJob() {\n String callHomeQuarzExpression = CallHomeJob.buildRandomQuartzExp();\n TaskBase callHomeJob = TaskUtils.createCronTask(\n CallHomeJob.class,\n callHomeQuarzExpression\n );\n log.debug(\"Scheduling CallHomeJob to run at '{}'\", callHomeQuarzExpression);\n taskService.startTask(callHomeJob, false);\n }", "@Scheduled\n\tpublic void executeNotification();", "void registerEventbusHandlers();", "@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n final ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(scheduledTaskPoolSize);\n threadPoolTaskScheduler.setThreadNamePrefix(scheduledTaskThreadPrefix);\n threadPoolTaskScheduler.initialize();\n scheduledTaskRegistrar.setTaskScheduler(threadPoolTaskScheduler);\n }", "private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }", "@Override\n public void execute() {\n eslClient.getEventNotificationService().register(newEventNotificationConfig(URL)\n .forEvent(EVENT1)\n .forEvent(EVENT2)\n .forEvent(EVENT3));\n\n // Get the registered event notifications\n eventNotificationConfig = eslClient.getEventNotificationService().getEventNotificationConfig();\n }", "public void taskStarted(BuildEvent event) {\n }", "@Override\n public void run() {\n List<Event> events = mDatabase.eventDao().getEventsFromToTimeList(\n Calendar.getInstance().getTimeInMillis(), mDueDateCalendar.getTimeInMillis());\n mScheduler.setEvents(events); //sets events to mScheduler\n Event eventWithTime = mScheduler.scheduleEvent(event, timeLengthInMillis);\n// //if an event couldn't be scheduled\n if(eventWithTime == null){\n toast.show();\n }\n //if a new event is being created\n else if (mEventId == DEFAULT_EVENT_ID) {\n // insert new event\n mDatabase.eventDao().insertEvent(eventWithTime);\n } else {\n //update event\n eventWithTime.setId(mEventId);\n mDatabase.eventDao().updateEvent(eventWithTime);\n }\n finish(); //closes activity\n }", "@Scheduled(cron = \"0 0 9-17 * * MON-FRI\")\n\tpublic void scheduleTaskWeekly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 9 - 17 O'clock Every Weekdays - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "void cronCheckAuthService();", "public void registerEvents(Citizens plugin);", "@Scheduled(cron = \"${toil1.schedule1}\")\n\tpublic void toiL1Schedule1() {\n\t\tlog.info(\"Running toiL1Schedule1\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"0 09 14 * * ?\")\n public void scheduleTaskWithCronExpression() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 14:09 - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron=\"0 0 * * * *\")\r\n\tpublic void task(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tloginUsers();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void sendScheduledNotifications(JobProgress progress);", "void registerListeners();", "public CronJobTrigger() {\n init();\n }", "private void scheduleJob() {\n\n }", "public void registerForEvents(Context context)\n {\n LocalBroadcastManager.getInstance(context).registerReceiver(\n mMessageReceiver, new IntentFilter(\"tts-event\"));\n }", "void eventOccurred(AbstractTaskEvent event);", "public static void registerReceiver(Context context) {\n\n //Get the milliseconds for next hour\n Calendar calendar = Calendar.getInstance(TimeZone.getDefault());\n calendar.setTimeZone(TimeZone.getTimeZone(\"Asia/Calcutta\"));\n calendar.add(Calendar.HOUR_OF_DAY, 1);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n\n //Prepare the pending intent\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context,\n REA_CODE_PENDING_INTENT,\n new Intent(context, TimeReminderReceiver.class),\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Set the alarm\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC, calendar.getTimeInMillis(), pendingIntent);\n } else {\n alarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), pendingIntent);\n }\n\n Log.d(TAG, \"registerReceiver: Next alarm registered.\");\n }", "private void setNotifications() {\n RealmManager realmManager = new RealmManager();\n realmManager.open();\n RecurringDao recurringDao = realmManager.createRecurringDao();\n\n List<Recurring> recurringTransactions = recurringDao.getAllRecurringTransactions();\n NotificationScheduler notificationScheduler = new NotificationScheduler(this);\n\n for (Recurring recurring : recurringTransactions) {\n notificationScheduler.schedule(recurring);\n }\n realmManager.close();\n }", "public void scheduleJobs();", "@Scheduled(cron = \"0 0 * * * *\")\n public void scheduleTaskYear() {\n\t\tlog.info(\"Cron Task :: Execution Time Every Hour of Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "ConferenceScheduleBuilderService startEvent();", "@Override\r\n\tpublic void eventReceived(TaskEvent event) \r\n\t{\r\n\t\t//Add new Item\r\n\t\tif (event.getOperationType() == TaskEvent.ADD_NEW_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Add a new item to the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().add((makeTaskFromArray((String[]) event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if (event.getOperationType() == TaskEvent.REMOVE_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Remove Item from the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().removeElementAt(Integer.parseInt((String)(event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if(event.getOperationType() == TaskEvent.SET_TASK_DONE_EVENT)\r\n\t\t{\r\n\t\t\t//To be implemented\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Error!!!!!\");\r\n\t\t\r\n\t}", "public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }", "public GuildScheduledEventUserAddHandler(DiscordApi api) {\n super(api, true, \"GUILD_SCHEDULED_EVENT_USER_ADD\");\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public abstract void registerListeners();", "@Inject\n public EventService(BackgroundTaskRunnerService taskRunner) {\n this.taskRunner = taskRunner;\n final ConcurrentMap<EventType, List<EventListener<? extends Event>>> tmp = new ConcurrentHashMap<>();\n for (EventType eventType : EventType.values()) {\n tmp.put(eventType, new CopyOnWriteArrayList<>());\n }\n this.eventListeners = tmp;\n }", "void addSubTask(AuctionTask task);", "public synchronized void registerScheduledTask(ParallelTask<?> task) throws QueryEvaluationException {\r\n\t\tif (done) {\r\n\t\t\tthrow new QueryEvaluationException(\"Query is aborted or closed, cannot accept new tasks\");\r\n\t\t}\r\n\t\tscheduledSubtasks.add(task);\r\n\t}", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "private static void execute(EventExecutor executor, Runnable task)\r\n/* 592: */ {\r\n/* 593: */ try\r\n/* 594: */ {\r\n/* 595:670 */ executor.execute(task);\r\n/* 596: */ }\r\n/* 597: */ catch (Throwable t)\r\n/* 598: */ {\r\n/* 599:672 */ rejectedExecutionLogger.error(\"Failed to submit a listener notification task. Event loop shut down?\", t);\r\n/* 600: */ }\r\n/* 601: */ }", "@Override\n public void run() {\n if (needRefreshRegistration(registrationUri, resolvedDeployment)) {\n sendRegistrationEvent(resolvedDeployment);\n }\n }", "@Scheduled(cron = \"${toil1.schedule2}\")\n\tpublic void toiL1Schedule2() {\n\t\tlog.info(\"Running toiL1Schedule2\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "@After\n public void tearDown()\n throws Exception\n {\n cronTaskEventListenerRegistry.removeListener(this);\n }", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "public SeamCronExtension() {\n log.debug(\"Initiailised SeamCronExtension\");\n }", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public void addTaskListener(TaskListener task){\n initListener();\n listeners.add(task);\n }", "public ScheduleEvent()\n\t{\n\n\t}", "@Bean\n public ApplicationEventMulticaster applicationEventMulticaster() {\n SimpleApplicationEventMulticaster eventMulticaster = new SimpleApplicationEventMulticaster();\n eventMulticaster.setTaskExecutor(new SimpleAsyncTaskExecutor());\n return eventMulticaster;\n }", "@Override\n public void taskStarting() {\n\n }", "public WatchListMonitorTask()\r\n {\r\n debug(\"WatchListMonitorTask() - Constructor \");\r\n }", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "private void registersHeartbeatJob() {\n TaskBase heartbeatJob = TaskUtils.createRepeatingTask(HeartbeatJob.class,\n TimeUnit.SECONDS.toMillis(ConstantValues.haHeartbeatIntervalSecs.getLong()),\n TimeUnit.SECONDS.toMillis(ConstantValues.haHeartbeatIntervalSecs.getLong()));\n taskService.startTask(heartbeatJob, false);\n }", "protected abstract void scheduler_init();", "static synchronized void schedule(Event event) {\n if (ENABLED || QUEUE.size() <= MAX_QUEUE_SIZE) {\n QUEUE.add(event);\n }\n\n if (ENABLED) {\n if (QUEUE.size() >= MAX_QUEUE_SIZE) {\n sendAllScheduled();\n } else {\n //The arrival of a new item interrupts the timer and resets the countdown.\n WikipediaApp.getInstance().getMainThreadHandler().removeCallbacks(SEND_RUNNABLE);\n WikipediaApp.getInstance().getMainThreadHandler().postDelayed(SEND_RUNNABLE, WAIT_MS);\n }\n }\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "private Zzcron() {\n\t\tsuper(\"zzcron\", net.user1.union.zz.common.model.Public.PUBLIC);\n\t}", "public static void registerEvents(JavaPlugin instance) {\n PluginManager pm = instance.getServer().getPluginManager();\n }", "private void loadEvent(String type) {\n String description = parser.parseDeadlineEventDescription(type);\n String timeString = parser.parseDateTimeEvent(type);\n LocalDate time = LocalDate.parse(timeString,\n DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"));\n Task toAdd = new Event(description, time);\n if (type.contains(\"\\u2713\")) {\n toAdd.markAsDone();\n }\n tasks.add(toAdd);\n }", "private void triggerDiscoveryAndScheduleEventService(UUID serviceUuid) {\n triggerDiscovery(serviceUuid);\n subscribeAndScheduleEventService(serviceUuid);\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "@Override\n public void onChanged(List<Event> events) {\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }", "public interface TaskEventCallable {\n /**\n * Interface to allow task threads to be manipulated during task-thread\n * processing.\n * This allows some operations used by the implementation to occur\n * while synchronizing on particular objects used internally by\n * TaskThread methods. The event returned may not be the event\n * passed as an argument (e.g., the return value may be an event\n * that is stored on a TaskQueue, not the simulation's event queue).\n * @param event the event used to schedule a task\n * @return the simulation event scheduled or stored; null if the\n * the scheduling or storing is not possible\n * @see org.bzdev.devqsim.TaskThread\n */\n SimulationEvent call(TaskThreadSimEvent event);\n}", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "@Override\n\tprotected void onRegistered(Context context, String registrationId) {\n\t\tnew GCMAsyncTask().execute(registrationId);\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "private void registerWithNotificationHubs() {\n Intent intent = new Intent(this, RegistrationIntentService.class);\n startService(intent);\n }", "void onIssueCreatedEvent(T event);", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "protected abstract void registerObserver();", "EventHubs eventHubs();" ]
[ "0.6625096", "0.64156425", "0.6228363", "0.61375695", "0.6071778", "0.5956429", "0.5929046", "0.5858109", "0.5803164", "0.579932", "0.573701", "0.56370574", "0.56297725", "0.5628302", "0.55998623", "0.55983764", "0.55860144", "0.556733", "0.5554194", "0.55536157", "0.55453485", "0.5535092", "0.5529595", "0.5528228", "0.55198234", "0.5511092", "0.55008614", "0.54994947", "0.54860425", "0.5485594", "0.5480251", "0.54476994", "0.54473335", "0.5441325", "0.54389995", "0.5436538", "0.5361178", "0.53586173", "0.53325534", "0.5329617", "0.53286594", "0.53115726", "0.5289265", "0.5289177", "0.5286709", "0.5275875", "0.5273134", "0.52716005", "0.5260776", "0.5250448", "0.5239954", "0.52126765", "0.5206916", "0.5203232", "0.51989377", "0.51844263", "0.5182657", "0.5170108", "0.51657176", "0.515762", "0.51534295", "0.5131812", "0.51274055", "0.5127219", "0.51189137", "0.5116309", "0.51145595", "0.5114504", "0.50932217", "0.5087609", "0.5086409", "0.50796515", "0.50722903", "0.5070547", "0.50701785", "0.5067837", "0.50644845", "0.5064133", "0.50561345", "0.50382316", "0.503747", "0.5033176", "0.502699", "0.50219965", "0.50149065", "0.501365", "0.50039107", "0.5001021", "0.49996325", "0.49905425", "0.49902007", "0.4987148", "0.49865887", "0.49838787", "0.49817482", "0.4973948", "0.4973948", "0.4973948", "0.49690843", "0.496734" ]
0.6143813
3
Unregister to receive cron taskrelated events
@After public void tearDown() throws Exception { cronTaskEventListenerRegistry.removeListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetSchedule();", "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "public void unregisterNotify( Notify notify );", "private void deregisterBroadcastReceiver(){\n activity.unregisterReceiver(hceNotificationsReceiver);\n }", "public abstract void unregister();", "void stopReportingTask();", "void unRegister(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "void unregisterAll();", "public void UnPostAllEvents();", "@Override\n protected void onUnregister() {\n Core.unregister(this);\n }", "public abstract void unregisterListeners();", "public abstract void unschedule();", "public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }", "public synchronized void postDeregister() {\n if (timer != null) {\n try {\n timer.cancel();\n } catch (Exception x) {\n if (LOG.isLoggable(Level.FINEST))\n LOG.log(Level.FINEST,\"Failed to cancel timer\",x);\n else if (LOG.isLoggable(Level.FINE))\n LOG.fine(\"Failed to cancel timer: \"+x);\n } finally {\n timer = null;\n }\n }\n }", "void unregisterListeners();", "@Override\n protected void onDestroy() {\n stopRepTask();\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayStartedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(TermEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SoundAlteredRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SharesTransactionedRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SpecificElementUpdate);\n super.onDestroy();\n }", "public void unregister() {\n unregistered = true;\n }", "public void shutdown() {\n shutdown = true;\n //\n // Cancel our event listener (this will cause the event wait to complete)\n //\n try {\n List<String> eventList = new ArrayList<>();\n Nxt.eventRegister(eventList, eventToken, false, true);\n } catch (IOException exc) {\n Main.log.error(\"Unable to cancel event listener\", exc);\n Main.logException(\"Unable to cancel event listener\", exc);\n }\n }", "private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }", "protected abstract void unregisterObserver();", "public static void pushUnregister(Context context) {\n PushRegistration.UnregisterTask task = new PushRegistration.UnregisterTask(context);\n executorService.submit(task);\n }", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "void cronTrimActivityQueue();", "private void removeDestroyTask() {\n // If we registered a JVM shutdown hook, we don't need it anymore now:\n // We've already explicitly closed the context.\n if (this.shutdownTask != null) {\n ShutdownHook.removeTask(this.shutdownTask);\n this.shutdownTask = null;\n }\n }", "@Override\n public void onTaskRemoved(Intent intent) {\n stopSelf();\n }", "public void removeTasks() {\n\t\t\r\n\t}", "public final void disassociateAll(@NotNull ConsumerTask<S> task)\n {\n this.unregisterAll(task);\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "public static int rmScheduledEvent()\n\t{\n\t\tString sql = \"DELETE FROM BSM_SCHEDULER_EVENT_REPORT\";\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT\");\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "private static void stopCleanUp() {\n\n if (isEventTrackerRunning && timer != null) {\n timer.cancel();\n timer.purge();\n debugLogger.info(\"Timer stopped: {}\", new Date());\n } else {\n debugLogger.info(\"Timer was already stopped : {}\", new Date());\n\n }\n isEventTrackerRunning = false;\n\n }", "public void unregister(Observer obj);", "protected void onDestroy(){\n super.onDestroy();\n LocalBroadcastManager.getInstance(this).unregisterReceiver(timeReceiver);\n }", "@Override\n public void onDisable()\n {\n if (this.schedulerManager.getScheduler() != null)\n {\n try\n {\n this.schedulerManager.getScheduler().shutdown();\n } catch (SchedulerException e)\n {\n e.printStackTrace();\n }\n }\n }", "private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }", "@Override\n public void onTaskRemoved(Intent rootIntent) {\n super.onTaskRemoved(rootIntent);\n stopSelf();\n }", "public void unregisterListeners(){\n listeners.clear();\n }", "private void registerShutdownHook() {\n Runtime.getRuntime().addShutdownHook(new Thread(\"Metastore Janitor Shutdown Hook\"){\n\n @Override\n public void run() {\n log.info(\"Shutting down all threads\");\n \n synchronized(tasks) {\n for(AbstractDynamoDBTask task : tasks) {\n task.running = false;\n }\n }\n \n synchronized(futures) {\n for(Future future: futures) {\n try {\n future.get();\n } catch (Exception ex) {\n log.error(\"\",ex);\n }\n }\n }\n \n executor.shutdown();\n }\n \n });\n }", "protected void uninstallListeners() {\n }", "protected void uninstallListeners() {\n }", "void unregister(String uuid);", "@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }", "void cronScheduledProcesses();", "void unsetCurrentrun();", "public void unregisterForEvents(Context context)\n {\n LocalBroadcastManager.getInstance(context).unregisterReceiver(\n mMessageReceiver);\n }", "public void unregister(T o);", "private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }", "private void unregister(final Intent intent) {\n\t\tLog.i(TAG, \"unregister(\" + intent.getAction() + \")\");\n\t\tsynchronized (this.pendingIOOps) {\n\t\t\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t\tfinal int l = this.pendingIOOps.size();\n\t\t\tif (l == 1) {\n\t\t\t\tthis.pendingIOOps.clear();\n\t\t\t} else {\n\t\t\t\tIntent oi;\n\t\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\t\toi = this.pendingIOOps.get(i);\n\t\t\t\t\t// note that ConnectorSpec.equals will not work here because\n\t\t\t\t\t// not all intent types have ConnectorSpec bundle in them\n\t\t\t\t\tif (ConnectorCommand.equals(intent, oi)) {\n\t\t\t\t\t\tthis.pendingIOOps.remove(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t\tif (this.pendingIOOps.size() == 0) {\n\t\t\t\t// set service to background\n\t\t\t\tif (this.mNM != null) {\n\t\t\t\t\tthis.mNM.cancel(NOTIFICATION_PENDING);\n\t\t\t\t}\n\t\t\t\tif (this.wakelock != null && this.wakelock.isHeld()) {\n\t\t\t\t\tthis.wakelock.release();\n\t\t\t\t}\n\t\t\t\t// stop unneeded service\n\t\t\t\t// this.stopSelf();\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n EventBus.getDefault().unregister(this);\n }", "private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}", "protected void uninstallListeners() {\n\t}", "public synchronized void stopScheduler() {\r\n\t\tstatus = false;\r\n\t\tstart = null;\r\n\t\tif (t != null) {\r\n\t\t\tt.cancel();\r\n\t\t\tt.purge();\r\n\t\t\tt = null;\r\n\t\t}\r\n\t\tstartDate = null;\r\n\t\tsuper.interrupt();\r\n\t}", "void removeOldNotification();", "protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}", "public void removeNotificationAlarm() {\n AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n am.cancel(buildAlarmPendingIntent());\n\n // don't need to trigger BootReceiver if notifications are disabled\n setBootReceiverEnabled(false);\n }", "void unsubscribeAll();", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "@Override\n protected void onDestroy() {\n EventBus.getDefault().unregister(this);\n\n super.onDestroy();\n }", "private void scheduleLogStop() {\n exec.schedule(new Runnable() {\n @Override\n public void run() {\n mSensorManager.unregisterListener(PhoneSensorLogService.this, mAccelerometer);\n mSensorManager.unregisterListener(PhoneSensorLogService.this, mGyroscope);\n Log.d(TAG, \"End: \" + System.currentTimeMillis());\n writeFiles();\n Log.d(TAG, \"About to stop service...\");\n stopSelf();\n }\n }, minutes, TimeUnit.MINUTES);\n }", "@Override\n protected void onStop() {\n if(scheduler != null)\n scheduler.doUnbindService();\n super.onStop();\n }", "void unregister(String methodName);", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "private void registerDestroyTask() {\n if (this.shutdownTask == null) {\n // Register a task to destroy the activity context on shutdown\n this.shutdownTask = ShutdownHook.addTask(() -> {\n synchronized (this.buildDestroyMonitor) {\n doDestroy();\n removeDestroyTask();\n }\n });\n }\n }", "public void onUnsubscribe() {\n\n }", "@Override\n public void onTaskRemoved(Intent rootIntent) {\n Log.d(TAG, TAG + \" onTaskRemoved\");\n }", "@Override\n public void onTaskRemoved(Intent rootIntent) {\n stopTracking();\n\n // Kill the service when the user has killed the app by swiping it to the left\n stopSelf();\n }", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n unregisterReceiver(broadcastReceiver);\n if(timer != null)\n timer.cancel();\n }", "@Override\n public void unregister(Object subscriber) {\n }", "void unsubscribe();", "@Override\n protected void onStop() {\n stopService(new Intent(this, MyJobScheduler.class));\n super.onStop();\n }", "private void metricUnregistering (ServiceReference srefMetric) {\n // Retrieve the service ID\n Long serviceId =\n (Long) srefMetric.getProperty(Constants.SERVICE_ID);\n logInfo(\n \"A metric service with ID \"\n + serviceId + \" is unregistering.\");\n \n // Remove this service from the list of available metric services\n if (registeredMetrics.containsKey(serviceId)) {\n registeredMetrics.remove(serviceId);\n }\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n if(task != null)\n task.cancel(true);\n }", "public void stopTask() {\r\n\t\tquit = true;\r\n\t}", "public static void exitScheduledClear() {\n stopAutoClear();\n }", "void deregister() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(false));\n patientLoaderThread.start();\n }", "public CompletableFuture<Void> unregisterEventProcessor() {\n TRACE_LOGGER.info(this.hostContext.withHost(\"Stopping event processing\"));\n\n if (this.unregistered == null) {\n // PartitionManager is created in constructor. If this object exists, then\n // this.partitionManager is not null.\n this.unregistered = this.partitionManager.stopPartitions();\n\n // If we own the executor, stop it also.\n // Owned executor is also created in constructor.\n if (this.weOwnExecutor) {\n this.unregistered = this.unregistered.thenRunAsync(() ->\n {\n // IMPORTANT: run this last stage in the default threadpool!\n // If a task running in a threadpool waits for that threadpool to terminate, it's going to wait a long time...\n\n // It is OK to call shutdown() here even if threads are still running.\n // Shutdown() causes the executor to stop accepting new tasks, but existing tasks will\n // run to completion. The pool will terminate when all existing tasks finish.\n // By this point all new tasks generated by the shutdown have been submitted.\n this.executorService.shutdown();\n\n try {\n this.executorService.awaitTermination(10, TimeUnit.MINUTES);\n } catch (InterruptedException e) {\n throw new CompletionException(e);\n }\n }, ForkJoinPool.commonPool());\n }\n }\n\n return this.unregistered;\n }", "@Override\n protected void onStop() {\n stopService(new Intent(this, JobSchedulerService.class));\n super.onStop();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t// stop the service correctly stop the task\n\t\tmServiceHandler.stopTask();\n\t}", "public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}", "private void unregisterReceivers() {\n \t\t\n\t\tunregisterReceiver(newReadingsReceiver);\n\t\tunregisterReceiver(sensorStatusReceiver);\n\t\tunregisterReceiver(servalMeshStatusReceiver);\n \t}", "public void removeTaskNotifications(Task task) {\n\t\tnotificationDao.deleteTaskNotifications(task);\n\t}", "void unsubscribe(){}", "public void stopPollingThread() {\n pool.shutdown();\n }", "public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }", "public void interruptTask() {\n }", "public void interruptTask() {\n }", "void unregister() {\n for (Component comp : jTabbedPane1.getComponents()) {\n if (comp instanceof MiniTimelinePanel) {\n DiscoveryEventUtils.getDiscoveryEventBus().unregister(comp);\n }\n }\n }", "@Override\n\tpublic void unregister() {\n\t\tEventBus.INSTANCE.removeListener(this);\n\t\tcompletedGameSound.dispose();\n\t\tlostGameSound.dispose();\n\t\tsucceededSound.dispose();\n\t\tfailSound.dispose();\n\t}", "void removeSubTask(AuctionTask task);", "public void m4567b() {\n try {\n LocalBroadcastManager.getInstance(this.f4212b).unregisterReceiver(this);\n } catch (Exception e) {\n }\n }", "private void cancelPrevRegisterTask()\n\t{\n\t\tsynchronized (mSyncObj)\n\t\t{\n\t\t\tif (null != mRegistrationAsyncTask)\n\t\t\t{\n\t\t\t\tmRegistrationAsyncTask.cancel(true);\n\t\t\t}\n\t\t\tmRegistrationAsyncTask = null;\n\t\t}\n\t}", "void shutdown() {\n if (metricRegistry != null) {\n for (String metricName : gaugeMetricNames) {\n try {\n metricRegistry.remove(metricName);\n } catch (RuntimeException e) {\n // ignore\n }\n }\n }\n }", "public void stopTask(Version v) {\n\t_stoppedTasks.add(v);\n\t_log.stopTaskLocal(v);\n }", "void cancelAllNotifications();", "@Override\n public void onTaskRemoved(Intent rootIntent) {\n super.onTaskRemoved(rootIntent);\n }", "void cronClearPermissionsCache();", "@Override\r\n public void onDestroy() {\n\tEventBus.getDefault().unregister(this);\r\n\tsuper.onDestroy();\r\n }", "public void unregisterCrashWatcher() {\n mDevice.removeWatcher(\"GoogleCamera-crash-watcher\");\n }", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}" ]
[ "0.6472517", "0.64100665", "0.63834363", "0.6315546", "0.6296995", "0.6197221", "0.6157089", "0.615491", "0.6145148", "0.61274135", "0.6122259", "0.6116148", "0.6110234", "0.609422", "0.60596675", "0.60553336", "0.6052502", "0.6049628", "0.603616", "0.6031757", "0.60053235", "0.59979534", "0.59811115", "0.59749424", "0.59378755", "0.5911221", "0.5907957", "0.58990026", "0.5897976", "0.5869362", "0.5857963", "0.5853056", "0.584872", "0.5848383", "0.58478206", "0.5838328", "0.5823869", "0.5823048", "0.58228606", "0.58228606", "0.58130884", "0.5807", "0.57994574", "0.57982665", "0.57916003", "0.5786867", "0.57667136", "0.57665306", "0.57650167", "0.57639223", "0.5760476", "0.5740453", "0.57356536", "0.5728855", "0.5728382", "0.5723402", "0.5710716", "0.5694109", "0.5690568", "0.56882817", "0.568732", "0.5685301", "0.5676042", "0.5668817", "0.5667475", "0.56553996", "0.5640512", "0.5617503", "0.5617403", "0.56079006", "0.560339", "0.5593836", "0.5588939", "0.5584192", "0.5573468", "0.55733734", "0.5569896", "0.55674", "0.55608356", "0.5560224", "0.55560267", "0.5548989", "0.55465895", "0.5544108", "0.55410737", "0.5541003", "0.5541003", "0.55365664", "0.55306786", "0.552825", "0.55254686", "0.5525168", "0.552387", "0.5515094", "0.55134743", "0.5512189", "0.5510541", "0.55083966", "0.5490589", "0.5485175" ]
0.710841
0
Find user by name.
public void testFindUserByName() throws Exception { createUser("testFindUserByName"); // try to find existed user User u = uHandler.findUserByName("demo"); assertNotNull(u); assertEquals("demo@localhost", u.getEmail()); assertEquals("Demo", u.getFirstName()); assertEquals("exo", u.getLastName()); assertEquals("demo", u.getUserName()); assertTrue(u.isEnabled()); // try to find a non existing user. We are supposed to get "null" instead of Exception. try { assertNull(uHandler.findUserByName("not-existed-user")); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("not-existed-user", UserStatus.ENABLED)); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("not-existed-user", UserStatus.DISABLED)); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("not-existed-user", UserStatus.BOTH)); } catch (Exception e) { fail("Exception should not be thrown"); } assertNotNull(uHandler.findUserByName("testFindUserByName")); assertTrue(uHandler.findUserByName("testFindUserByName").isEnabled()); assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED)); assertTrue(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED).isEnabled()); assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH)); assertTrue(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH).isEnabled()); boolean unsupportedOperation = false; try { // Disable the user testFindUserByName uHandler.setEnabled("testFindUserByName", false, true); // We should not find the user testFindUserByName anymore from the normal method assertNull(uHandler.findUserByName("testFindUserByName")); assertNull(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED)); // We should find it using the method that includes the disabled user account assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH)); assertFalse(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH).isEnabled()); // We should find it using the method that queries only the disabled user account assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.DISABLED)); assertFalse(uHandler.findUserByName("testFindUserByName", UserStatus.DISABLED).isEnabled()); // Enable the user testFindUserByName uHandler.setEnabled("testFindUserByName", true, true); // We should find it again whatever the value of the parameter status assertNotNull(uHandler.findUserByName("testFindUserByName")); assertTrue(uHandler.findUserByName("testFindUserByName").isEnabled()); assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED)); assertTrue(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED).isEnabled()); assertNotNull(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH)); assertTrue(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH).isEnabled()); // We should not find the user using the method that queries only the disabled user account assertNull(uHandler.findUserByName("testFindUserByName", UserStatus.DISABLED)); } catch (UnsupportedOperationException e) { // This operation can be unsupported unsupportedOperation = true; } // Remove the user testFindUserByName uHandler.removeUser("testFindUserByName", true); // try to find a user that doesn't exist anymore. We are supposed to get "null" instead of Exception. try { assertNull(uHandler.findUserByName("testFindUserByName")); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("testFindUserByName", UserStatus.ENABLED)); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("testFindUserByName", UserStatus.DISABLED)); } catch (Exception e) { fail("Exception should not be thrown"); } try { assertNull(uHandler.findUserByName("testFindUserByName", UserStatus.BOTH)); } catch (Exception e) { fail("Exception should not be thrown"); } // Check the listener's counters assertEquals(1, listener.preSaveNew); assertEquals(1, listener.postSaveNew); assertEquals(0, listener.preSave); assertEquals(0, listener.postSave); assertEquals(unsupportedOperation ? 0 : 2, listener.preSetEnabled); assertEquals(unsupportedOperation ? 0 : 2, listener.postSetEnabled); assertEquals(1, listener.preDelete); assertEquals(1, listener.postDelete); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public User findUser(String name) {\n\t\treturn null;\r\n\t}", "public boolean findUserBYName(String name);", "User findUserByName(String name);", "public User findUser(String name) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where name = ?\");\n\t\t\tps.setString(1, name);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "@Override\n\tpublic User findUserByName(String name) {\n\t\treturn dao.findUserByName(name);\n\t}", "public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public AgtUser findUserByName(String username);", "public User getUserByName(String name) {\n \t\tfor (User user : users) {\n \t\t\tif (user.getName().equals(name))\n \t\t\t\treturn user;\n \t\t}\n \t\treturn null;\n \t}", "User getByName(String name);", "User getUserByUsername(String name) throws InvalidUserException;", "@Override\n public User findUserByName(String name) {\n User user = new User();\n user.setName(\"admin\");\n user.setPassword(\"00b3187384f2708025074f28764a4a30\");\n return user;\n }", "User findOneByName(String name);", "public SecurityUser findByName(String username);", "public Person findPersonByUsername(String name) {\n Person person = personRepository.findByUsername(name);\n Optional<Person> byId = personRepository.findById(2L);\n return person;\n }", "UserModel findByName(String name);", "public User findByUserName(String userName) {\n logger.log(Level.INFO, \"suppp it works\");\n List<User> users = entityManager.createNamedQuery(User.FIND_BY_USERNAME)\n .setParameter(\"userName\", userName)\n .getResultList();\n if (users.isEmpty()) {\n return null;\n }\n return users.get(0);\n }", "public Usuarios findByName(String name) throws javax.persistence.NoResultException {\r\n return (Usuarios)EM.createNamedQuery(Usuarios.FIND_USER_BY_EMAIL)\r\n .setParameter(\"p1\", name)\r\n .getSingleResult();\r\n }", "public User retrieveUser(String name)\r\n\t{\r\n\t\t\r\n\t\treturn users.get(name);\r\n\t}", "public User getUser(String name);", "public User getUser(String name);", "public Users findByName(String name) {\n\t\treturn usersDAO.findByName(name);\n\t}", "@Override\n public User getUserByName(final String name){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where username = :name\");\n query.setParameter(\"name\", name);\n return (User) query.uniqueResult();\n }", "public User getSingleUserRealName(String name) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where CONCAT_WS(' ',user.firstName, user.lastName) = ? \",\n new Object[]{name},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }", "public User findUserByNickname(final String nickname);", "@Override\n\tpublic Usuario findByName(String name) {\n\t\treturn null;\n\t}", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "@Override\n public User getByName(String name) {\n return ChainWrappers.lambdaQueryChain(userMapper)\n .eq(User::getName, name).one();\n }", "public User search_userinfo(String user_name);", "User loadUserByUserName(String userName);", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic User findUserByName(String userName) {\n\t\treturn null;\r\n\t}", "User findByUserName(String userName);", "User findByUserName(String userName);", "@Override\n\tpublic User findByName(String username) {\n\t\treturn userDao.findByName(username);\n\t}", "public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n\n return user;\n }", "public User getUserByName(String username);", "public User getUserByName(String username);", "public User getUserByName(String name) {\n return getDbContext().select().from(USER).where(USER.USER_NAME.eq(name)).fetchOneInto(User.class);\n }", "public EOSUser findUser(String login) throws EOSNotFoundException;", "public User findUser(String uname) {\n\t\treturn userRepository.searchByUname(uname);\n\t}", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}", "@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "public MsUser getUser(final String name) {\n return users.get(name);\n }", "public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }", "User get(String name);", "User findByUsername(String userName);", "private User findByName(String username) {\r\n\t\tCriteriaBuilder cb = entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery cq = cb.createQuery(User.class);\r\n\t\tRoot<User> user = cq.from(User.class);\r\n\t\tcq.where(user.get(User_.username).in(username));\r\n\r\n\t\tTypedQuery<User> tq = entityManager.createQuery(cq);\r\n\t\t\r\n\t\treturn tq.getSingleResult();\r\n\t}", "@Override\n public User getUserByName(String userName) {\n return userRepository.findUserByUserName(userName);\n }", "public int search_userid(String user_name);", "public UserSession getUserForName(String name) throws SessionQueryException\n {\n UserSession returnedSession = null;\n\n SessionManagementComponent sampleComponent = new SessionManagementComponent(name, false, false);\n\n UserSession[] allSessions = getUserSessions(name);\n\n if(allSessions != null)\n {\n int index = Arrays.binarySearch(allSessions, sampleComponent, getNameComparator());\n\n if(index >= 0)\n {\n returnedSession = allSessions[index];\n }\n }\n\n return returnedSession;\n }", "User getUser(String userName) throws UserNotFoundException;", "User findUserByUsername(String username);", "@SuppressWarnings(\"static-method\")\n public @NotNull LocalUser findByName(String username) throws UserNotFoundException {\n if (\"admin\".equals(username)) {\n LocalUser user = new LocalUser(\"admin\", \"struts2\");\n return user;\n }\n throw new UserNotFoundException(username);\n }", "@Override\n\tpublic User findUserByUserName(String userName) throws Exception {\n\t\treturn userDao.findUserByUserName(userName);\n\t}", "public User getUserByUserName(String userName);", "public Users findUser (String userName) {\n String queryStr = \"select * from users where username = '\" + userName + \"'\";\r\n try {\r\n Users result = (Users) em.createNativeQuery(queryStr, Users.class).getSingleResult();\r\n return result;\r\n } catch (Exception e) {\r\n //log.error(e);\r\n return null;\r\n }\r\n }", "public boolean findUser(String name, String password) throws SQLException {\n\n\t\tSQLSelect selectStatement = new SQLSelect();\n\t\treturn selectStatement.findUser(name, password);\n\t}", "public User getSpecificUser(String username);", "public Benutzer findBenutzerByName(String name) {\n\n if (!benutzerRepo.findBenutzerByBenutzerName(name).isPresent()) {\n return null;\n }\n\n return benutzerRepo.findBenutzerByBenutzerName(name).get();\n }", "User find(String username, String password);", "public User findUser(String username) {\n if (userList.containsKey(username)) {\n return userList.get(username);\n } else {\n throw new NoSuchElementException(\"User Not Found.\");\n }\n }", "public User findByUserName(String username) throws Exception;", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "public User getUser(String name) throws DocumentException{\n\n for (Iterator iter = root.elementIterator(); iter.hasNext();)\n {\n Element e = (Element) iter.next();\n if(e.elementText(\"username\").equals(name)){\n User user = new User();\n user.setMail(e.elementText(\"mail\"));\n user.setName(e.elementText(\"username\"));\n user.setPassword(e.elementText(\"password\"));\n return user;\n }\n }\n return null;\n }", "User findUserByLogin(String login);", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "public User getUserByUserName(String username);", "@GetMapping(value = \"/{name}\")\r\n\tpublic Users findByName(@PathVariable final String name)\r\n\t{\r\n\t\treturn userJPARepository.findByName(name);\r\n\t}", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }", "public User getUser(String userName) {\n for (User u : users) {\n if (u.getName().equals(userName)) {\n return u;\n }\n\n }\n return null;\n }", "public UserQueryEntity getByName(String userName);", "@Override\n\tpublic User getUserInfoByName(String name) {\n\t\treturn userRepository.getUserInfoByName(name);\n\t}", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "@RequestMapping(method = RequestMethod.GET, params = {\"name\"})\n\t public ResponseEntity<Collection<Customer>> findUserWithName(@RequestParam(value=\"name\") String name) {\n\t return service.findCustomerWithName(name);\n\t }", "public SystemUser findByUserName(String userName);", "public User findUserByLogin(final String login);", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "User loadUser( String username ) throws UserNotFoundException;", "public User findUserByName(String id) {\n return em.find(User.class, id);\n }", "User getByUsername(String username);", "public User queryByname(String name, String password) {\n\t\tSystem.out.println(this.getClass().getName()+\"queryByname\");\n\t\treturn null;\n\t}", "@Override\r\n public UserAccount findByUsernameOrOAuthToken(String userName) {\n if (userName.startsWith(SYSTEM_CONSTS.AUTHENTIFICATION_OAUTH2_USERNAME_PREFIX)) {\r\n return findUserByOAuth2UserNameToken(userName);\r\n } else {\r\n return ops.findOne(Query.query(Criteria.where(\"username\").is(userName)), UserAccount.class);\r\n }\r\n }", "Login findByUserName (String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User findUser(String userId);", "public User findUser(String username) {\n if (activeUsers.containsKey(username)) return activeUsers.get(username);\n String fileName = username;\n try {\n return (User) loadObjFromFile(usersDirPath + fileName);\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n log(\"error finding user\");\n }\n return null;\n }", "public User searchUserByName(String userName,Long orgId) {\n\t\treturn userMapper.findUserByName(userName,orgId);\r\n\t}", "List<User> getUserByName(String name);", "User findByUsername(String username) throws UserDaoException;", "Person findPerson(String name);", "public User getByUserName(String username) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tString hql = \"from User WHERE emailid = :userame\";\n\t\tUser user = (User)session.createQuery(hql).setParameter(\"userame\", username).getSingleResult();\n\t\treturn user;\n\t}", "@Query(value = \"SELECT * FROM Users where user_name = :user_name\", nativeQuery = true) // jpql\n\tUser findUserByUserName(@Param(\"user_name\") String user_name);", "public User getUser(String userName);", "public Profile searchProfile(String name) {\r\n\t\tSystem.out.println(\"MineshafterProfileClient.searchProfile(\" + name + \")\");\r\n\r\n\t\ttry {\r\n\t\t\tname = URLEncoder.encode(name, \"UTF-8\");\r\n\t\t\tURL u = new URL(API_URL + \"?username=\" + name);\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString uuid = Util.ensureUUIDFormatted(Streams.toString(in));\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tif (uuid == null || uuid.length() == 0) { return new Profile(name); }\r\n\r\n\t\t\treturn new Profile(name, uuid);\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile(name);\r\n\t}", "@Override\n\tpublic User selectUserByName(String userName) {\n\t\treturn userDao.selectUserByName(userName);\n\t}" ]
[ "0.8312892", "0.8175205", "0.79805106", "0.79206675", "0.78635937", "0.7734993", "0.77008307", "0.7526246", "0.73934835", "0.73817086", "0.7370508", "0.7337516", "0.7333749", "0.73328555", "0.7302784", "0.72908604", "0.7265139", "0.72473603", "0.7221934", "0.7211778", "0.7199653", "0.7199653", "0.71759456", "0.7155477", "0.7146713", "0.71422225", "0.71344864", "0.71195096", "0.7096636", "0.70731443", "0.7027199", "0.7018177", "0.7015215", "0.70091033", "0.70091033", "0.7009083", "0.7002869", "0.7002671", "0.7002671", "0.70000535", "0.6996141", "0.69898546", "0.6983791", "0.6979819", "0.69739133", "0.6964811", "0.6940561", "0.69262004", "0.691343", "0.68921685", "0.6853975", "0.6851619", "0.684742", "0.6840942", "0.6835542", "0.68343765", "0.68291676", "0.68246496", "0.68132275", "0.680543", "0.67963856", "0.6778893", "0.6762459", "0.6759936", "0.6759598", "0.6758871", "0.6757208", "0.67263407", "0.67241853", "0.6720215", "0.67144346", "0.6706737", "0.66973186", "0.6658156", "0.6640769", "0.6638174", "0.6635693", "0.66312134", "0.6628039", "0.66273224", "0.6624186", "0.6616028", "0.66145027", "0.6603836", "0.66037446", "0.6594498", "0.6592084", "0.6586521", "0.6586521", "0.6586521", "0.6584108", "0.65636045", "0.6554921", "0.65529555", "0.65429676", "0.6502057", "0.64975476", "0.6491031", "0.64830256", "0.6481083", "0.64760447" ]
0.0
-1
Find users by query.
public void testFindUsersByQuery() throws Exception { createUser("tolik"); uHandler.authenticate("tolik", "pwdADDSomeSaltToBeCompliantWithSomeIS00"); Query query = new Query(); query.setEmail("email@test"); // try to find user by email assertSizeEquals(1, uHandler.findUsersByQuery(query), UserStatus.ENABLED); assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED); assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH); // try to find user by name with mask query = new Query(); query.setUserName("*tolik*"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by name with mask query = new Query(); query.setUserName("tol*"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by name with mask query = new Query(); query.setUserName("*lik"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by name explicitly query = new Query(); query.setUserName("tolik"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by part of name without mask query = new Query(); query.setUserName("tol"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by fist and last names query = new Query(); query.setFirstName("first"); query.setLastName("last"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); String skipCISearchTests = System.getProperty("orgservice.test.configuration.skipCISearchTests"); if (!"true".equals(skipCISearchTests)) { // try to find user by name explicitly, case insensitive search query = new Query(); query.setUserName("Tolik"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); // try to find user by fist and last names, case insensitive search query = new Query(); query.setFirstName("fiRst"); query.setLastName("lasT"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); } String skipDateTests = System.getProperty("orgservice.test.configuration.skipDateTests"); if (!"true".equals(skipDateTests)) { // try to find user by login date Calendar calc = Calendar.getInstance(); calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1); query = new Query(); query.setFromLoginDate(calc.getTime()); query.setUserName("tolik"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); calc = Calendar.getInstance(); calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1); query = new Query(); query.setFromLoginDate(calc.getTime()); assertSizeEquals(0, uHandler.findUsersByQuery(query)); calc = Calendar.getInstance(); calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1); query = new Query(); query.setToLoginDate(calc.getTime()); assertSizeEquals(0, uHandler.findUsersByQuery(query)); calc = Calendar.getInstance(); calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1); query = new Query(); query.setToLoginDate(calc.getTime()); query.setUserName("tolik"); assertSizeEquals(1, uHandler.findUsersByQuery(query)); } createUser("rolik"); createUser("bolik"); createUser("volik"); query = new Query(); query.setUserName("olik"); ListAccess<User> users = uHandler.findUsersByQuery(query); assertSizeEquals(4, users, UserStatus.ENABLED); assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED); assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH); User[] allPage = users.load(0, 4); User[] page1 = users.load(0, 2); User[] page2 = users.load(2, 2); assertEquals(allPage[0].getUserName(), page1[0].getUserName()); assertEquals(allPage[1].getUserName(), page1[1].getUserName()); assertEquals(allPage[2].getUserName(), page2[0].getUserName()); assertEquals(allPage[3].getUserName(), page2[1].getUserName()); try { users.load(0, 0); } catch (Exception e) { fail("Exception is not expected"); } // try to load more than exist try { users.load(0, 5); fail("Exception is expected"); } catch (Exception e) { } // try to load more than exist try { users.load(1, 4); fail("Exception is expected"); } catch (Exception e) { } boolean unsupportedOperation = false; try { // Disable the user tolik uHandler.setEnabled("tolik", false, true); assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED); assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED); assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED); assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH); // Enable the user tolik uHandler.setEnabled("tolik", true, true); assertSizeEquals(4, uHandler.findUsersByQuery(query), UserStatus.ENABLED); assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED); assertSizeEquals(0, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED); assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH); } catch (UnsupportedOperationException e) { // This operation can be unsupported unsupportedOperation = true; } // Remove the user tolik uHandler.removeUser("tolik", true); assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED); assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED); assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH); // Check the listener's counters assertEquals(4, listener.preSaveNew); assertEquals(4, listener.postSaveNew); assertEquals(0, listener.preSave); assertEquals(0, listener.postSave); assertEquals(unsupportedOperation ? 0 : 2, listener.preSetEnabled); assertEquals(unsupportedOperation ? 0 : 2, listener.postSetEnabled); assertEquals(1, listener.preDelete); assertEquals(1, listener.postDelete); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<User> getSpecificUsers(String searchQuery) {\n logger.info(\"Currently in method 'getSpecificUsers()'.\");\n Database database = Database.getInstance();\n Connection connection = null;\n List<User> specificUsers = new ArrayList<User>();\n String sql = \"SELECT * FROM users WHERE id LIKE '%\" + searchQuery +\n \"%' OR first_name LIKE '%\" + searchQuery +\n \"%' or last_name LIKE '%\" + searchQuery +\n \"%' or date_of_birth LIKE '%\" + searchQuery + \"%'\";\n\n try {\n database.connect();\n connection = database.getConnection();\n Statement selectStatement = connection.createStatement();\n ResultSet results = selectStatement.executeQuery(sql);\n while (results.next()) {\n User employee = createUserFromResults(results);\n specificUsers.add(employee);\n }\n database.disconnect();\n } catch (SQLException e) {\n logger.error(\"Encountered an SQLException: \", e);\n } catch (Exception e) {\n logger.error(\"Encountered an Exception: \", e);\n }\n return specificUsers;\n }", "@Override\n\tpublic List<User> findUserByCondition(UserQuery query) throws Exception {\n\t\treturn userDao.findUserByCondition(query);\n\t}", "List<ResultDTO> searchUser(String query);", "List<User> searchUsersByUsername(String username);", "public List<User> searchUser(String searchValue);", "private void queryUsers(final String searchTerm) {\n allUsers.clear();\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n query.findInBackground(new FindCallback<ParseUser>() {\n public void done(List<ParseUser> users, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"issue loading users from parse\" + e.getMessage());\n return;\n }\n\n allUsers.addAll(filterUsers(users, searchTerm));\n adapter.notifyDataSetChanged();\n }\n });\n }", "@Override\r\n\tpublic Users queryUsers(String account) {\n\t\treturn rp.queryUsers(account);\r\n\t}", "@Override\r\n\tpublic List<TUsers> queryByCon(QueryUser query) {\n\t\treturn dao.queryByCon(query);\r\n\t}", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "public User search_userinfo(String user_name);", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "public List<User> searchUser() {\n String idUserQuery = (id == null) ? \"'%'\" : Integer.toString(id);\n String firstNameQuery = (\"\".equals(firstName) || \" \".equals(firstName)) ? \"'%'\" : \"'%\" + firstName + \"%'\";\n String lastNameQuery = (\"\".equals(lastName) || \" \".equals(lastName)) ? \"'%'\" : \"'%\" + lastName + \"%'\";\n String emailQuery = (\"\".equals(email) || \" \".equals(email)) ? \"'%'\" : \"'%\" + email + \"%'\";\n String idCityQuery = Integer.toString(idCity);\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"select * from users where id_user like \" + idUserQuery;\n query += \" and first_name like \" + firstNameQuery;\n query += \" and last_name like \" + lastNameQuery;\n query += \" and email like \" + emailQuery;\n query += \" and id_city=\" + idCityQuery;\n ResultSet rs = stmt.executeQuery(query);\n allUsers = new ArrayList<User>();\n while (rs.next()) {\n User user = new User();\n user.setId(rs.getInt(\"id_user\"));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setPhoneNumber(rs.getString(\"phone_number\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddress(rs.getString(\"address\"));\n user.setIdCity(rs.getInt(\"id_city\"));\n allUsers.add(user);\n renderUserTable = true;\n }\n if (allUsers.size() == 0) {\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User not found\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }", "@Override\n\tpublic List<User> searchByUser(String userName) {\n\t\tlog.info(\"Search by username!\");\n\t\treturn userRepository.findByFirstNameRegex(userName+\".*\");\n\t}", "public Collection findAllUsers() throws FinderException;", "@Override\n public List<User> searchUserByParams(Map<String, String> parametersSearch) throws ServiceException {\n List<User> users;\n String searchType = parametersSearch.get(USER_SEARCH_TYPE_PARAMETER_NAME);\n if (searchType == null) {\n return Collections.emptyList();\n }\n try {\n manager.beginTransaction(userDao);\n users = searchUsers(searchType, parametersSearch);\n manager.endTransaction();\n } catch (DaoException exception) {\n try {\n manager.rollback();\n } catch (DaoException rollbackException) {\n logger.error(rollbackException);\n }\n throw new ServiceException(exception);\n }\n return users;\n }", "public void findUsers() throws SQLException {\r\n\t\t// Query to get all users and ids.\r\n\t\t\r\n\t\t// Clear existing list\r\n\t\tusersList.clear();\r\n\t\tuseridsList.clear();\r\n\t\t\r\n\t\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t ResultSet rs = statement.executeQuery(\"select * from users\");\r\n\t while(rs.next())\r\n\t {\r\n\t // read the result set\r\n\t\t\t usersList.add(rs.getString(\"name\"));\r\n\t\t\t useridsList.add(rs.getInt(\"id\"));\r\n\t }\r\n\t\t// For loop to add each result to list.\r\n\r\n\t}", "List<User> searchUsers(String searchTerm) {\n return null;\n }", "Data<User> getUserSearch(String user, String fields);", "UserFilterResult find(UserFilterRequest request);", "List<UserRepresentation> searchUserAccount(final String username);", "@Override\r\n\tpublic List<User> query(int userId) {\n\t\treturn null;\r\n\t}", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "List<User> findUsers(User.UserGroup group, Long id, String fname, String lname, String email) throws Exception;", "public List<User> listSearch(String search);", "Data<User> getUserSearch(String user);", "private List<User> queryForUser(String expression,\r\n\t\t\tString paramdecl, String param, PersistenceManager pm){\r\n\t\tQuery q = pm.newQuery(User.class, expression);\r\n\t\tq.declareParameters(paramdecl);\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<User> results = (List<User>) q.execute(param);\r\n\t\treturn results;\r\n\t}", "public ArrayList<User> searchUsers(String fragment){\n \t\t\t// execute query\n\t\t\tString query = \"SELECT * FROM users WHERE id LIKE '%\" + fragment + \"%'\";\n \t\t\tSystem.out.println(query);\n \t\t\tResultSet rs = getResult(query);\n \t\t\t\n \t\t\tArrayList<User> matches = new ArrayList<User>();\n \t\t\ttry {\n \t\t\t\twhile(rs.next()){\n \t\t\t\t\t// add user to list\n \t\t\t\t\tString id = null;\t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\tid = rs.getString(\"id\");\n \t\t\t\t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\t\t\t\n \t\t\t\t\tString hash = null;\t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\thash = rs.getString(\"hash\");\n \t\t\t\t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\t\t\t\n \t\t\t\t\tboolean isAdmin = false;\n \t\t\t\t\ttry {\n \t\t\t\t\t\tisAdmin = rs.getBoolean(\"isAdmin\");\n \t\t\t\t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\t\t\t\n \t\t\t\t\tString image = null;\n \t\t\t\t\ttry {\n \t\t\t\t\t\timage = rs.getString(\"image_url\");\n \t\t\t\t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\t\t\t\n \t\t\t\t\tmatches.add(new User(id, hash, isAdmin, this, image));\n \t\t\t\t}\n \t\t\t}catch (SQLException e) {e.printStackTrace();}\t\t\t\n \t\t\t\n \t\t\treturn matches;\t\t\n \t\t}", "@PreAuthorize(\"hasAnyAuthority(T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADMIN, T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADVERTISER, T(rs.acs.uns.sw.sct.util.AuthorityRoles).VERIFIER)\")\n @GetMapping(\"/users/search\")\n public ResponseEntity<List<UserDTO>> search(@RequestParam(value = \"username\", required = false) String username,\n @RequestParam(value = \"email\", required = false) String email,\n @RequestParam(value = \"firstName\", required = false) String firstName,\n @RequestParam(value = \"lastName\", required = false) String lastName,\n @RequestParam(value = \"phoneNumber\", required = false) String phoneNumber,\n @RequestParam(value = \"companyName\", required = false) String companyName,\n Pageable pageable) {\n\n List<UserDTO> list = userService.findBySearchTerm(username, email, firstName, lastName, phoneNumber, companyName, pageable)\n .stream().map(user -> user.convertToDTO()).collect(Collectors.toList());\n\n return new ResponseEntity<>(list, HttpStatus.OK);\n }", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "Page<ParaUserDTO> search(String query, Pageable pageable);", "public List<User> searchUsers(String arg) {\n\n\t\tMUser mu = new MUser();\n\t\tList<User> searchUsers = mu.searchUsers(arg);\n\t\tif (searchUsers == null) {\n\t\t\terrorMsg = mu.errorMsg;\n\t\t\treturn null;\n\t\t}\n\t\treturn searchUsers;\n\n\t}", "@Override\n\tpublic List<User> findUser() {\n\t\treturn userdao.findUser();\n\t}", "@Override\n\tpublic ERS_USERS queryById(int id) {\n\t\treturn null;\n\t}", "List<QnowUser> findAll();", "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "List<Todo> findByUser(String user);", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "public boolean findUserBYName(String name);", "public org.eclipse.stardust.engine.api.query.Users\n getAllUsers(org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "protected Collection<RS_User> selectUsersFromPersons(String query) {\n\t\tCollection<RS_User> users = new SortedArrayList<RS_User>();\n\t\t//TODO Robbert: is deze keuze hier ok???\n\t\t\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\trs = stat.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next()) {\t\n\t\t\t\tString username = rs.getString(\"lfm_username\");\n\t\t\t\tint age = rs.getInt(\"age\");\n\t\t\t\tString country = rs.getString(\"country\");\n\t\t\t\tString language = rs.getString(\"language\");\n\t\t\t\tString gender = rs.getString(\"gender\");\n\t\t\t\tRS_User rsu = new RS_User(username, age, country, language, gender);\n\t\t\t\tusers.add(rsu);\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something went wrong selecting results from Persons\");\n\t\t}\n\t\treturn users;\n\t}", "public User queryUserByUsername(String username);", "public int search_userid(String user_name);", "@Override\n protected Collection<User> doInBackground(Void... params) {\n if(name.equals(\"\"))\n return new ArrayList<User>();\n return client.searchUsers(name, isPro, -1);\n }", "public List getUsers(User user);", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response find(@Context UriInfo ui, @Context HttpHeaders hh, @QueryParam(\"show\") JSONArray arrayShow,\n\t\t\t@QueryParam(\"query\") JSONObject query, @QueryParam(Const.RADIUS) String radiusStr,\n\t\t\t@QueryParam(Const.LAT) String latitudeStr, @QueryParam(Const.LONG) String longitudeStr,\n\t\t\t@QueryParam(Const.PAGE_NUMBER) String pageNumberStr, @QueryParam(Const.PAGE_SIZE) String pageSizeStr,\n\t\t\t@QueryParam(Const.ELEM_COUNT) String pageCount, @QueryParam(Const.ELEM_INDEX) String pageIndex,\n\t\t\t@QueryParam(Const.ORDER_BY) String orderByStr, @QueryParam(Const.ORDER_TYPE) String orderTypeStr) {\n\t\tDate startDate = Utils.getDate();\n\t\tQueryParameters qp = QueryParameters.getQueryParameters(appId, null, query, radiusStr, latitudeStr, longitudeStr, \n\t\t\t\tpageNumberStr, pageSizeStr, orderByStr, orderTypeStr, ModelEnum.users,pageCount,pageIndex);\n\t\tResponse response = null;\n\t\tString sessionToken = Utils.getSessionToken(hh);\n\t\tif (!sessionMid.checkAppForToken(sessionToken, appId)) {\n\t\t\treturn Response.status(Status.UNAUTHORIZED).entity(new Error(\"Action in wrong app: \"+appId)).build();\n\t\t}\n\t\tint code = Utils.treatParameters(ui, hh);\n\t\tif (code == 1) {\n\t\t\ttry {\n\t\t\t\tListResult res = usersMid.find(qp,arrayShow);\n\t\t\t\tresponse = Response.status(Status.OK).entity(res).build();\n\t\t\t\tDate endDate = Utils.getDate();\n\t\t\t\tLog.info(sessionToken, this, \"get users list\", \"Start: \" + Utils.printDate(startDate) + \" - Finish:\" + Utils.printDate(endDate) + \" - Time:\" + (endDate.getTime()-startDate.getTime()));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"\", this, \"find\", \"********Find Users info************\", e);\n\t\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(e.getMessage()).build();\n\t\t\t}\n\t\t} else if (code == -2) {\n\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(\"Invalid Session Token.\").build();\n\t\t} else if (code == -1) {\n\t\t\tresponse = Response.status(Status.BAD_REQUEST).entity(\"Error handling the request.\").build();\n\t\t}\n\t\treturn response;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<UserDashboardDTO> search(String query) {\n log.debug(\"Request to search UserDashboards for query {}\", query);\n return StreamSupport\n .stream(userDashboardSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(userDashboardMapper::toDto)\n .collect(Collectors.toList());\n }", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "@Override\n public ArrayList<User> findAll(Map<String, Object> params) {\n\n return null;\n }", "@RequestMapping(value = \"/find\", method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getUsersByInfo(@RequestParam String info, HttpServletRequest request) {\n\t\tUserType cred2UserType = cred2UserType(getParamCred(request));\n\t\tif (!UserType.ADM.equals(cred2UserType)\n\t\t\t\t&& !UserType.CSR.equals(cred2UserType)) {\n\t\t\treturn new Result().setErrCode(ErrorCode.NO_PRIVILIEGE);\n\t\t}\n\t\tSimpleExpression eqMobile = Restrictions.eq(\"mobilePhone\", info);\n\t\tSimpleExpression eqEmail = Restrictions.eq(\"email\", info);\n\t\tLogicalExpression exp = Restrictions.or(eqMobile, eqEmail);\n\t\tList<WlsUser> find = userDao.find(exp);\n\t\treturn new Result().setEntity(find);\n\t}", "private List<User> searchUsers(String searchType, Map<String, String> parametersSearch) throws DaoException, ServiceException {\n List<User> result;\n switch (searchType) {\n case USER_ID_PARAMETER_NAME:\n result = new ArrayList<>();\n String parameterId = parametersSearch.get(USER_ID_PARAMETER_NAME);\n long userId = (parameterId != null) ? Long.parseLong(parameterId) : 0;\n Optional<User> optionalUser = userDao.findEntity(userId);\n optionalUser.ifPresent(result::add);\n break;\n case USERNAME_PARAMETER_NAME:\n result = userDao.findByPartOfUsername(parametersSearch.get(USERNAME_PARAMETER_NAME));\n break;\n case INIT_DATE_PARAMETER_NAME:\n String date = parametersSearch.get(INIT_DATE_PARAMETER_NAME);\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_TIME_FORMAT);\n LocalDate initDate = date != null ? LocalDate.parse(date, formatter) : LocalDate.now();\n result = userDao.findByInitDate(initDate);\n break;\n default:\n throw new ServiceException(\"Impossible state - unsupported command when search User\");\n }\n return result;\n }", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "public List<User> findAll();", "public List<User> findAll();", "public ArrayList<Users> ListUsers(String ValToSearch) {\n ArrayList<Users> usersList = new ArrayList<Users>();\n\n Statement st;\n ResultSet rs;\n\n try {\n Connection con = getConnection();\n st = con.createStatement();\n String searchQuery = \"SELECT * FROM `tbl_registered` WHERE CONCAT(`user_id`,'username', `firstname`,`middlename`, `lastname`, `email`)LIKE '%\" + ValToSearch + \"%'\";\n rs = st.executeQuery(searchQuery);\n\n Users user;\n\n while (rs.next()) {\n user = new Users(\n rs.getString(\"username\"),\n rs.getString(\"firstname\"),\n rs.getString(\"middlename\"),\n rs.getString(\"lastname\"),\n rs.getString(\"email\"),\n rs.getInt(\"user_id\"));\n\n usersList.add(user);\n }\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n\n return usersList;\n }", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "public List<User> find(String hql, Class<User> class1, String[] strings);", "List<User> findAll() throws UserDaoException;", "User findByUserName(String userName);", "User findByUserName(String userName);", "public Users findByUserid(String id) {\n\tthis.createConnection();\n\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(\"select * from user where id=?;\");\n stmnt.setString(1, id);\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \");\n return new Users();\n }\n }", "@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic ArrayList<Object> searchUserByName(String search) {\n\t\t\n\t\tSystem.out.println(\"i am in service search looking for users\" + search.length());\n\t\t\n\t\tif(search == null){\n\t\t\t\n\t\t\tSystem.out.println(\"nothing can be find\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"its not 0000000000\");\n\t\t\n\t\tArrayList<Object> list = userRepository.findUserByName(search);\n\t\t\n\t\t//System.out.println(Arrays.toString(list));\n\t\treturn list;\n\t}", "public User searchByUsername(String username)\n {\n String query = \"SELECT * FROM user WHERE username = ?\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n User user; // list of users that will be returned\n try\n {\n user = template.queryForObject(query, userRowMapper, username); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n user = null; // return null\n }\n return user;\n }", "@Override\r\n\tpublic List<UserModule> find(String hql, Class<UserModule> entityClass, Object[] params) {\n\t\treturn baseDao.find(hql, entityClass, params);\r\n\t}", "public List getAllUsers();", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "User find(String email);", "public List<User> listUsers(String userName);", "@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public User queryUserByUsernameAndPassword(String username, String password);", "User findUser(String userId);", "@Override\n public List<User> findByName(String username){\n try {\n return runner.query(con.getThreadConnection(),\"select * from user where username like ?\",new BeanListHandler<User>(User.class),username);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "List<UsersDTO> findAll();", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public Users findUser (String userName) {\n String queryStr = \"select * from users where username = '\" + userName + \"'\";\r\n try {\r\n Users result = (Users) em.createNativeQuery(queryStr, Users.class).getSingleResult();\r\n return result;\r\n } catch (Exception e) {\r\n //log.error(e);\r\n return null;\r\n }\r\n }", "List<User> getUserByName(String name);", "public void onSearch(){\n usernames = getNames();\n ArrayAdapter<String> adapter = new ArrayAdapter<>(getContext(),\n android.R.layout.simple_list_item_1, usernames);\n tvAuto.setAdapter(adapter);\n\n users.clear();\n profileAdapter.notifyDataSetChanged();\n rvResults.setAdapter(profileAdapter);\n rvResults.setLayoutManager(new LinearLayoutManager(getContext()));\n\n btnSearch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userName = tvAuto.getText().toString();\n if(userName.equals(ParseUser.getCurrentUser().getUsername())){\n Toast.makeText(getContext(),\"Search for another user!\",Toast.LENGTH_SHORT).show();\n return;\n }else{\n Log.i(TAG,\"search for user!\");\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n //want to get the user's info\n query.include(User.USERNAME_KEY);\n query.whereEqualTo(User.USERNAME_KEY,userName);\n query.findInBackground(new FindCallback<ParseUser>() {\n @Override\n public void done(List<ParseUser> objects, ParseException e) {\n ParseUser user = objects.get(0);\n Log.i(TAG,\"User: \" + user.getUsername());\n Log.i(TAG,\"objects size: \" + objects.size());\n users.add(user);\n profileAdapter.notifyDataSetChanged();\n }\n });\n }\n }\n });\n }", "public Users findByUsername(String username) {\n\tthis.createConnection();\n\n try {\n Connection con = this.getCon();\n \tPreparedStatement stmnt = con.prepareStatement(this.getAllQuery() + \" where username=?;\");\n stmnt.setString(1, username);\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getErrorCode() + \":\" + e.getMessage());\n return new Users();\n }\n }", "public Collection<UserDoc> findByUserName(String username);", "List<UserDTO> findAll();", "User findByUsername(String userName);", "@Override\n\tpublic UserDTO queryUser(RequestParam rp) throws ServiceException {\n\t\ttry{\n\t\t\treturn sysUserDao.queryUser(rp);\n\t\t}catch(DaoException e) {\n\t\t\tlog.error(\"queryUser\", e);\n\t\t\tthrow new ServiceException(e);\n\t\t}\n\t}", "@Query(\"SELECT u FROM EUsuario u WHERE u.nome LIKE :query\")\n\tpublic List<EUsuario> findByQuery(@Param(\"query\") String query);", "@Override\n\tpublic void findUsers(SmbmsUserParams params) {\n\t\tint count=sud.getCount(params);\n\t\tparams.setCount(count);\n\t\tparams.setCountPage(count%params.getPageSize()==0?(count/params.getPageSize()):(count/params.getPageSize()+1));\n\t\tparams.setLi(sud.findUsers(params));\n\t}", "public UserQueryEntity getByName(String userName);", "User find(String username, String password);", "@Override\n\tpublic User findUser(String username, String password) throws SQLException {\n User user = null;\n String sql = \"SELECT * FROM user WHERE username = ? AND password = ?\";\n \n connect();\n \n PreparedStatement statement = jdbcConnection.prepareStatement(sql);\n statement.setString(1, username);\n statement.setString(2, password);\n \n \n ResultSet resultSet = statement.executeQuery();\n \n while (resultSet.next()) {\n String usrname = resultSet.getString(\"username\");\n String pwd = resultSet.getString(\"password\");\n \n user = new User(usrname, pwd);\n }\n \n resultSet.close();\n statement.close();\n \n return user;\n\t}", "List<User> findAll() throws DataAccessException;", "Page<User> getAll(Pageable pageable, String search);", "public static ArrayList<Member> findByName(String usr){\n setConnection();\n \n ArrayList<Member> members = new ArrayList<>();\n \n try{\n Statement statement = con.createStatement();\n \n //Query statement\n String query = \"SELECT * FROM member WHERE name LIKE ?\";\n\n //Create mysql prepared statement\n PreparedStatement preparedStatement = con.prepareStatement(query);\n preparedStatement.setString(1, \"%\"+usr+\"%\");\n \n //Execute the prepared statement\n ResultSet result = preparedStatement.executeQuery();\n \n while(result.next()){\n int memberId = result.getInt(1);\n String name = result.getString(2);\n String email = result.getString(3);\n String phone = result.getString(4);\n String address = result.getString(5);\n String dob = result.getString(6);\n \n members.add(new Member(memberId, name, email, phone, address, dob));\n }\n\n con.close();\n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n \n return members;\n }", "List<ClientResponse> findUsersClient(User user) throws BaseException;", "public static Result findAllUsers() {\n \tList<User> users = new User().findAllUsers();\n \treturn ok(Json.toJson(users));\n }", "@Query(value = \"SELECT user FROM User user WHERE user.active = 1 AND user.userName = :userName\")\n User findByUsername(@Param(\"userName\") String userName);", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );" ]
[ "0.7148348", "0.69363874", "0.6898959", "0.6811202", "0.6771789", "0.6738733", "0.67361915", "0.67357737", "0.6615577", "0.66020244", "0.6587098", "0.6551689", "0.6517731", "0.65057117", "0.65044105", "0.6488273", "0.648715", "0.6454647", "0.6447074", "0.6420191", "0.6406891", "0.6394643", "0.6381797", "0.6375514", "0.6373077", "0.6371715", "0.635473", "0.63467294", "0.6342837", "0.632738", "0.6321409", "0.6300508", "0.6289667", "0.6286335", "0.6274265", "0.6260138", "0.6250736", "0.6247022", "0.6244948", "0.6241707", "0.62285453", "0.6225765", "0.61985725", "0.6197122", "0.6170308", "0.6168905", "0.6144983", "0.6144983", "0.6144983", "0.6144983", "0.6137608", "0.6112206", "0.61102825", "0.61099756", "0.61080056", "0.6104124", "0.6098001", "0.6093254", "0.6093254", "0.6090603", "0.6083877", "0.60835", "0.60798216", "0.6077879", "0.6075384", "0.6075384", "0.6074895", "0.60675967", "0.6066312", "0.6059341", "0.6049173", "0.6045332", "0.60342586", "0.6032191", "0.6028821", "0.6024531", "0.6017081", "0.6008975", "0.6005436", "0.599678", "0.59947044", "0.59918076", "0.59848255", "0.59711045", "0.5969957", "0.59697044", "0.59690434", "0.59679455", "0.5958386", "0.59520936", "0.5947823", "0.5947729", "0.5946777", "0.59453696", "0.59439427", "0.59388053", "0.5910331", "0.59099376", "0.59089214", "0.5902202" ]
0.60977596
57
Get users page list.
public void testGetUserPageList() throws Exception { assertSizeEquals(4, uHandler.getUserPageList(10).getAll()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getUsers(String page);", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public List getAllUsers();", "public String[] listUsers();", "List<User> getUsers();", "List<User> getUsers();", "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "public List<User> listUsers(String userName);", "@Override\n\tpublic List<User> listByPage(int page) throws Exception {\n\t\treturn null;\n\t}", "public List<User> getUsers();", "@Override\n\tpublic List<User> listByPage(Params params) throws Exception {\n\t\treturn null;\n\t}", "public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}", "public List<User> getUserList();", "@Override\n\tpublic List<User> getList(Integer page, Integer Limit) {\n\t\treturn null;\n\t}", "public List getUsers(User user);", "@GetMapping(\"/userslist\")\n\tpublic List<User> usersList() {\n\t\treturn userService.usersList();\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public List<User> list();", "com.google.ads.googleads.v6.resources.UserList getUserList();", "public List<Utilizator> listUsers();", "@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}", "public List<User> getAllUsers();", "public ArrayList<User> showUsers(){\n\t\treturn this.userList;\n\t}", "@RequestMapping(value = {\"/list\" }, method = RequestMethod.GET)\n\tpublic String listUsers(ModelMap model) {\n\n\t\tList<User> users = userService.findAll();\n\t\tmodel.addAttribute(\"users\", users);\n\t\treturn \"userslist\";\n\t}", "@GetMapping\n\tpublic List<UserRest> getUsers(@RequestParam(value = \"page\", defaultValue = \"0\") int page,\n\t\t\t@RequestParam(value = \"limit\", defaultValue = \"25\") int limit){\n\t\t\n\t\tList<UserRest> returnValue = new ArrayList<>();\n\t\t\n\t\tList<UserDTO> users = userService.getUsers(page, limit);\n\t\t\n\t\tfor (UserDTO userDTO : users) {\n\t\t\tUserRest userModel = new UserRest();\n\t\t\tBeanUtils.copyProperties(userDTO, userModel);\n\t\t\treturnValue.add(userModel);\n\t\t}\n\t\t\n\t\treturn returnValue;\n\t}", "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n public String loadUsers(Model model) {\n if (logger.isInfoEnabled()) {\n logger.info(\"TCH User Management sub menu Viewed by user {}\", SecurityContextHolder.getContext()\n .getAuthentication().getName());\n }\n List<UserConfigurationProperties> userConfigurationProperties = userConfigurationService.loadUsers();\n model.addAttribute(\"users\",\n new JsonObjectConverter<List<UserConfigurationProperties>>().stringify(userConfigurationProperties));\n model.addAttribute(C_MODEL_ATTR_ROLES, userConfigurationService.getAllRoles());\n model.addAttribute(C_MODEL_ATTR_ISSUER, issuerService.getIssuersSortedAscendingByName());\n return V_USER_PAGE;\n\n }", "@RequestMapping(value = {\"/users/list\"}, method = RequestMethod.GET)\n\tpublic ResponseEntity<List<User>> fetchUsers() {\n\t\t\tSystem.out.println(\"fetching users\");\n\t\t\tList<User> user = userDAO.list(\"APPROVED\");\n\t\t\tSystem.out.println(user);\n\t\t\treturn new ResponseEntity<List<User>>(user, HttpStatus.OK);\n\t\t}", "@GetMapping\n public String getPage(Map<String, Object> model) {\n model.put(\"users\", userService.getAll());\n return \"users\";\n }", "@GetMapping(\"/userlist\")\n\tpublic String listUsers(Model model) {\n\t\tList<User> users = userService.getUsers();\n\t\t\n\t\t// add the customers to the model\n\t\tmodel.addAttribute(\"users\",users);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"List Users\");\n\t\treturn \"list-users\";\n\t}", "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n\tpublic String listUsers(ModelMap model)\n\t{\n\t\tList<User> users = userService.findAllUsers();\n\t\tmodel.addAttribute(\"users\", users);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipalUsername());\n\t\treturn \"userslist\";\n\t}", "public List<UsrMain> getListUsers() {\n return mobileCtrl.getListUsers();\n }", "@Nonnull\n List<User> getUsers();", "List<KingdomUser> getUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "public List<User> getUserList()\r\n\t{\r\n\t//\tGet the user list\r\n\t//\r\n\t\treturn identificationService.loadUserList();\r\n\t}", "private void listUsers(Request request, Response response) {\r\n\t\tList<UserBean> userList = null;\r\n\r\n\t\ttry {\r\n\t\t\tuserList = userService.findUsers();\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tuserList);\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "@Override\n\tpublic List<User> listByPage(int page, int listSize) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<UserVO> userList() {\n\t\treturn adao.UserList();\r\n\t}", "@Override\n\tpublic JCRPageList getPageListUserProfile() throws Exception {\n\t\treturn null;\n\t}", "@GET\n @Path(\"userlist\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getUserList(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + us.getAllUsers().toJSONString() + \")\";\n }", "public static List<User> getUsersList(){\n\t\tWSResponse response = null;\n\t\tList<User> resultList = new ArrayList<User>();\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tGson gson = new Gson();\n\t\tUser[] users = gson.fromJson(response.getBody(), User[].class);\n\t\tfor(int i=0; i<users.length; i++){\n\t\t\tresultList.add(users[i]);\n\t\t}\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn resultList;\n\t}", "@POST(\"/ListUsers\")\n\tCollection<User> listUsers();", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "@RequestMapping(value = { \"/\", \"/list\" }, method = RequestMethod.GET)\r\n public String listusers(ModelMap model) {\r\n List users = service.findAllUser();\r\n model.addAttribute(\"users\", users);\r\n return \"allusers\";\r\n }", "public UserList list();", "List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);", "public List<User> list() {\n\t\treturn userDao.list();\n\t}", "@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }", "public List<User> list(String currentUsername);", "public List<String> listUsers() \n\t{\n\t\treturn this.userList.keys();\n\t\t\n\t}", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "public List<User> list();", "@RequestMapping(value= Constant.USER_LIST, method = RequestMethod.POST)\n public ResponseEntity<RestAPIResponse> getListUser(\n HttpServletRequest request,\n @RequestBody PagingRequestModel pagingRequestModel\n ) {\n\n\n Page<UserResponse> listUsers = userService.getListUserPaging(pagingRequestModel, \"en\",\n Constant.Status.ACTIVE.getValue());\n\n return responseUtil.successResponse(listUsers);\n\n }", "com.heroiclabs.nakama.api.User getUsers(int index);", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "@GetMapping\n public String getUsers(@RequestParam(value =\"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"25\") int limit)\n {\n return \"Get users for page \" + page + \" limit \" + limit;\n }", "@Override\n\tpublic List<String> acquireUserList() {\n\t\tString url = WeChatConst.WECHATURL+WeChatConst.GETUSERLISTURI;\n\t\tboolean flag = true;\n\t\tString next_openid = null;\n\t\tList<String> openids = new ArrayList<String>(); \n\t\twhile (flag) \n\t\t{\n\t\t\tMap<String, String> param = new HashMap<String, String>();\n\t\t\tparam.put(\"access_token\",WeChatGlobalVar.accessToken);\n\t\t\tif(next_openid != null)\n\t\t\t{\n\t\t\t\tparam.put(\"next_openid\", next_openid);\n\t\t\t}\n\t\t\tString response = HttpClientUtils.doGetWithoutHead(url, param);\n\t\t\tlog.debug(\" acquireUserList response :\"+response);\n\t\t\ttry {\n\t\t\t\tJSONObject responseJson = JSONObject.parseObject(response);\n\t\t\t\tif(!responseJson.containsKey(\"errcode\"))\n\t\t\t\t{\n\t\t\t\t\tJSONObject data = responseJson.getJSONObject(\"data\");\n\t\t\t\t\tif(data != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tJSONArray openidArray = data.getJSONArray(\"openid\");\n\t\t\t\t\t\tif(openidArray != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (int i = 0; i < openidArray.size(); i++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\topenids.add(openidArray.getString(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString nextopenid = responseJson.getString(\"next_openid\");\n\t\t\t\t\tif(StringUtils.isEmpty(nextopenid))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t\tnext_openid = nextopenid;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(e);\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t}\n\t\treturn openids;\n\t}", "@Override\n\tpublic List<User> getList() {\n\t\treturn Lists.newArrayList(userRepository.findAll());\n\t}", "@Override\r\n\tpublic List<MemberVO> selectuserall(PageCriteria c) {\n\t\treturn sqlSession.selectList(NAMESPACE + \".select_page\" ,c);\r\n\t}", "private void loadUserList()\n\t{\n\t\tfinal ProgressDialog dia = ProgressDialog.show(this, null,\n\t\t\t\tgetString(R.string.alert_loading));\n\t\tParseUser.getQuery().whereNotEqualTo(\"username\", user.getUsername())\n\t\t\t\t.findInBackground(new FindCallback<ParseUser>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void done(List<ParseUser> li, ParseException e) {\n\t\t\t\t\t\tdia.dismiss();\n\t\t\t\t\t\tif (li != null) {\n\t\t\t\t\t\t\tif (li.size() == 0)\n\t\t\t\t\t\t\t\tToast.makeText(UserList.this,\n\t\t\t\t\t\t\t\t\t\tR.string.msg_no_user_found,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\tuList = new ArrayList<ParseUser>(li);\n\t\t\t\t\t\t\tListView list = (ListView) findViewById(R.id.list);\n\t\t\t\t\t\t\tlist.setAdapter(new UserAdapter());\n\t\t\t\t\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> arg0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tView arg1, int pos, long arg3) {\n\t\t\t\t\t\t\t\t\tstartActivity(new Intent(UserList.this,\n\t\t\t\t\t\t\t\t\t\t\tChat.class).putExtra(\n\t\t\t\t\t\t\t\t\t\t\tConst.EXTRA_DATA, uList.get(pos)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getUsername()));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tUtils.showDialog(\n\t\t\t\t\t\t\t\t\tUserList.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.err_users) + \" \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.getList();\n\t}", "@GetMapping(\"/users\")\n\tpublic List<User> getUsers(){\n\t\treturn userRepository.findAll();\n\t\t\n\t}", "public List<UserDTO> getUsers();", "public List<String> show () {\n\t\treturn userDao.show();\n\t}", "public List<User> displayUsers() {\n\t\t\r\n\t\ttry {\r\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from com.niit.model.User\").list();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Page> getPageList() {\n return conf.getPages().getPage();\n }", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n\tpublic List<AppUser> users() {\n\t\treturn appUserRepository.findAll();\n\t}", "@GetMapping(value = URL)\n @ResponseBody\n public List<Users> listAll() {\n return usersService.listAll();\n }", "@Override\r\n\tpublic List<EBook> getUserListPage(EBook ebook) {\n\t\treturn permissionDao.getUserListPage(ebook);\r\n\t}", "@GetMapping(\"/users\")\n\tpublic ResponseEntity<List<User>> getUsers() {\n\t\tlog.debug(\"REST request to get all Users\");\n\t\treturn new ResponseEntity<List<User>>(userService.getAll(), HttpStatus.OK);\n\t}", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "public List<UserData> list() {\n\t\treturn userDAO.list();\r\n\t}", "public List<String> displayuser() {\n\t\t// TODO Auto-generated method stub\n\t\tList<String> list = new ArrayList<>();\n\t\tlist = crud1.displayUsers();\n\t\treturn list;\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> showUsers() throws JsonMappingException, JsonProcessingException {\n\n\t\tString url = \"http://localhost:8081/fundoouser/showall\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n\t\t\n\t\treturn userList;\n\t}", "public List<User> userList() {\r\n\t\treturn DataDAO.getUserList();\r\n\r\n\t}", "public List<Limit> list(String username);", "public Single<UserResponse> userList(int params) {\n return supportAppService.userList(params);\n }", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}", "public void getAllUsers() {\n\t\t\n\t}", "@GetMapping(\"/users\")\n public String getUserList(Model model){\n List<User> users = accountService.getAllUsers();\n model.addAttribute(\"userList\", users);\n return \"listUsers\";\n }", "@RequestMapping(\"/indexAppusers\")\n\tpublic ModelAndView listAppuserss() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appuserss\", appusersService.loadAppuserss());\n\n\t\tmav.setViewName(\"appusers/listAppuserss.jsp\");\n\n\t\treturn mav;\n\t}", "List<UserDisplayDto> getAllUsers();", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List<IUser> getUsers();", "List<KingdomUser> getAllUsers();", "public List<User> listAll() throws Exception;", "public List<UserVO> pagingUser(Criteria cri);", "Iterable<User> getAllUsers();", "public ArrayList<User> list() {\n\t\tUserDao ua=new UserDao();\n\t\treturn ua.list();\n\t\t//System.out.println(\"haii\");\n\t\t \n\t}" ]
[ "0.79016215", "0.71782905", "0.7170519", "0.7151275", "0.71246445", "0.71246445", "0.7100039", "0.7094626", "0.7084122", "0.70198816", "0.69978726", "0.6925326", "0.6895307", "0.6883552", "0.6860672", "0.6847481", "0.6839595", "0.683806", "0.6835012", "0.6804207", "0.67996013", "0.67990035", "0.6798326", "0.6791856", "0.6779408", "0.6779359", "0.677654", "0.6771872", "0.6750284", "0.6737505", "0.6732048", "0.6712508", "0.6694073", "0.66927373", "0.66915977", "0.66915977", "0.6676686", "0.66654694", "0.6659837", "0.66533476", "0.6638449", "0.66374713", "0.6628171", "0.66240305", "0.66226643", "0.66147625", "0.6603304", "0.6602023", "0.65976435", "0.6579522", "0.65770847", "0.65747285", "0.65716946", "0.6566135", "0.6562624", "0.65534765", "0.65298665", "0.65279865", "0.6514046", "0.6511275", "0.6494827", "0.649443", "0.64923686", "0.64889246", "0.648657", "0.6475325", "0.64588535", "0.64569104", "0.64298207", "0.6420994", "0.64169765", "0.64127284", "0.64075536", "0.63997173", "0.63847935", "0.6381562", "0.6378446", "0.63769084", "0.6374137", "0.63708174", "0.63698924", "0.63645875", "0.63535136", "0.63532585", "0.6350198", "0.6334092", "0.63340807", "0.63323766", "0.6331445", "0.6328781", "0.6327496", "0.6325797", "0.6325099", "0.6321374", "0.6311497", "0.6308589", "0.63082016", "0.63061833", "0.630302", "0.630255" ]
0.67349714
30
Created by fbalicchia on 15/03/2018.
public interface SerializableFunction2<T1,U,R> extends BiFunction<T1,U,R>, Serializable { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void memoria() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n public int describeContents() { return 0; }", "Petunia() {\r\n\t\t}", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo4359a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "private UsineJoueur() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void initialize() {\n \n }", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void m50366E() {\n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}" ]
[ "0.61424077", "0.57892984", "0.5742806", "0.5742806", "0.5721538", "0.5683025", "0.56799704", "0.5644296", "0.5625383", "0.5592852", "0.55504704", "0.55131334", "0.55020344", "0.54943115", "0.5487252", "0.5483718", "0.5477325", "0.5477325", "0.5477325", "0.5477325", "0.5477325", "0.5477325", "0.5467264", "0.54641795", "0.54522645", "0.54513353", "0.54488504", "0.5440099", "0.5427064", "0.542671", "0.54245794", "0.5416439", "0.5408179", "0.5402484", "0.5401208", "0.5396564", "0.53922176", "0.53913146", "0.53894097", "0.5385404", "0.5382467", "0.5382467", "0.5365524", "0.5365438", "0.53596103", "0.53568554", "0.53535706", "0.5344823", "0.5321398", "0.5321398", "0.5321398", "0.5321398", "0.5321398", "0.53135264", "0.53135264", "0.5312872", "0.5296537", "0.5290349", "0.5283693", "0.526288", "0.52552986", "0.52549577", "0.5253121", "0.5253121", "0.52456874", "0.52456874", "0.52456874", "0.5242374", "0.5238923", "0.52358633", "0.52358633", "0.52358633", "0.52341676", "0.5225727", "0.5225681", "0.5225681", "0.5225681", "0.5225681", "0.5225681", "0.5225681", "0.5225681", "0.5225199", "0.5210107", "0.52062017", "0.52034533", "0.52034533", "0.52034533", "0.52029204", "0.5201626", "0.51980835", "0.5190038", "0.51838374", "0.51771766", "0.51771766", "0.51771766", "0.517463", "0.5165299", "0.5161866", "0.51609015", "0.51590466", "0.5156031" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.room_event_view, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Appends a SQL script header to the passed script.
public void append(DataModel dataModel, SQLScript script, UserInformation userInfos, DBExecMode dbmode) { for (String s : this.create(dataModel, userInfos, dbmode)) { script.addExtendingStatement(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}", "public void addCSHeader(File outfile) {\n\n\ttry {\n\t PrintWriter writer = new PrintWriter(new FileOutputStream(outfile, true)); // declares writer as a new PrintWriter, allows us to write into new file\n\n /*\n Adds C++ headers\n */\n\t writer.println(\"#include <iostream>\");\n\t writer.println(\"#include <string>\");\n\t writer.println(\"using namespace std;\");\n\t writer.println(\"int main() {\");\n\n\t writer.close();\n\t} catch (Exception IOException) {\n\t System.out.println(\"Some sort of IO error here\");\n\t}\n\n }", "public void setScriptSQL(String pInst)\r\n {\r\n this.scriptSQL = pInst;\r\n }", "public void runScript(StringBuffer sqlScript)\n throws DataAccessLayerException {\n runScript(sqlScript.toString());\n }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "private void setScriptFormatCorrectly()\n\t{\n\t\tint scriptFormatNeeded = 0;\n\t\tif(isMime(m_databaseFile, GZIP_MAGIC_NUMBERS))\n\t\t{\n\t\t\tm_logger.debug(\"Database is gzipped\");\n\t\t\tscriptFormatNeeded = 3;\n\t\t}\n\t\t\n\t\tboolean propsExists = Files.exists(m_databasePropertiesFile);\n\t\t\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t properties.load(new FileInputStream(m_databasePropertiesFile.toFile()));\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t\tproperties.setProperty(\"hsqldb.script_format\", \"\" + scriptFormatNeeded);\n\t\tif(! propsExists) // write other info\n\t\t{\n\t\t\tproperties.setProperty(\"version\",\"2.2.8\");\n\t\t\tproperties.setProperty(\"modified\", \"yes\");\n\t\t}\n\t\t\n\t\t// Write properties file.\n\t\ttry {\n\t\t properties.store(new FileOutputStream(m_databasePropertiesFile.toFile()), null);\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t}", "public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }", "private String getSQLScript() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer javaSb = new StringBuffer();\n\t\tsb.append(\"CREATE\").append(\" PROCEDURE \");\n\t\tString procedureName = procNameText.getText();\n\t\tif (procedureName == null) {\n\t\t\tprocedureName = \"\";\n\t\t}\n\t\tsb.append(QuerySyntax.escapeKeyword(procedureName)).append(\"(\");\n\t\tfor (Map<String, String> map : procParamsListData) {\n\t\t\t// \"PARAMS_INDEX\", \"PARAM_NAME\", \"PARAM_TYPE\", \"JAVA_PARAM_TYPE\"\n\t\t\tString name = map.get(\"0\");\n\t\t\tString type = map.get(\"1\");\n\t\t\tString javaType = map.get(\"2\");\n\t\t\tString paramModel = map.get(\"3\");\n\t\t\tString description = map.get(\"4\");\n\t\t\tsb.append(QuerySyntax.escapeKeyword(name)).append(\" \");\n\t\t\tif (!paramModel.equalsIgnoreCase(SPArgsType.IN.toString())) {\n\t\t\t\tsb.append(paramModel).append(\" \");\n\t\t\t}\n\t\t\tsb.append(type);\n\t\t\tif (isCommentSupport && StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t\tsb.append(\",\");\n\t\t\tjavaSb.append(javaType).append(\",\");\n\t\t}\n\t\tif (!procParamsListData.isEmpty()) {\n\t\t\tif (sb.length() > 0) {\n\t\t\t\tsb.deleteCharAt(sb.length() - 1);\n\t\t\t}\n\t\t\tif (javaSb.length() > 0) {\n\t\t\t\tjavaSb.deleteCharAt(javaSb.length() - 1);\n\t\t\t}\n\t\t}\n\t\tsb.append(\")\");\n\n\t\tsb.append(StringUtil.NEWLINE).append(\"AS LANGUAGE JAVA \").append(StringUtil.NEWLINE);\n\t\tString javaFuncName = javaNameText.getText();\n\t\tif (javaFuncName == null) {\n\t\t\tjavaFuncName = \"\";\n\t\t}\n\t\tsb.append(\"NAME '\").append(javaFuncName).append(\"(\").append(javaSb).append(\")\").append(\"'\");\n\t\tif (isCommentSupport) {\n\t\t\tString description = procDescriptionText.getText();\n\t\t\tif (StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t}\n\t\treturn formatSql(sb.toString());\n\t}", "private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }", "public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}", "private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}", "public void addHeader(String s, String s1) {\n\t\t\n\t}", "String getPostDeclareSql();", "private void writeCsvHeader(String h1, String h2, String h3,String h4,String h5) throws IOException\r\n {\r\n \t String line = String.format(\"%s,%s,%s,%s,%s\\n\",h1,h2,h3,h4,h5);\r\n \t writer.write(line);\r\n }", "void scriptStarted(Script s);", "public static void executeSQLScript(Connection conn, String file) throws Exception{\n\t\tFileInputStream fis=new FileInputStream(file);\n\t\tBufferedInputStream bis=new BufferedInputStream(fis);\n\t\tStringBuffer sb=new StringBuffer(); \n\t\tbyte[] bytes=new byte[1024];\n\t\twhile (bis.available()!=0){\n\t\t\tint length=fis.read(bytes);\n\t\t\tif (length!=1024){\n\t\t\t\tbyte[] smallBytes=new byte[length];\n\t\t\t\tSystem.arraycopy(bytes,0,smallBytes,0,length);\n\t\t\t\tbytes=smallBytes;\n\t\t\t}\t\n\t\t\tsb.append(new String(bytes));\n\t\t}\n\t\tStringTokenizer st = new StringTokenizer(sb.toString(),\";\",false);\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tString token=st.nextToken().trim();\t\n\t\t\tif (!token.equals(\"\")){\n\t\t\t\tif (token.equalsIgnoreCase(\"commit\")){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tconn.commit();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tDataAccessObject.rollback(conn);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (token.equalsIgnoreCase(\"quit\")){\n\t\t\t\t\t//do nothing\n\t\t\t\t}\t\t\t\t\n\t\t\t\telse if (token.substring(0,2).equals(\"--\")){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\texecuteSQLStatement(conn,token);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "protected void appendPrefixTo(AppendableExt app) throws IOException {\n app.append(\"INSERT INTO \").append(_table)\n .append(\" (\").append(_columns).append(\") \");\n }", "public static void header(String s) {\n\t\t// header2.set(s);\n\t}", "@Override\n public void addHeader(String arg0, String arg1) {\n\n }", "abstract public void header();", "public void headerRecord(RecordInput recordInput) {\n }", "public void addMPLSheader(MPLS header){\r\n\t\tMPLSheader.add(header);\r\n\t}", "private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "private static String headerSummary() {\r\n\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\usepackage{rotating}\\n\";\r\n output += \"\\\\usepackage{textcomp}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "private void runSqlFromFile(String fileName) throws IOException {\n String[] sqlStatements = StreamUtils.copyToString( new ClassPathResource(fileName).getInputStream(), Charset.defaultCharset()).split(\";\");\n for (String sqlStatement : sqlStatements) {\n sqlStatement = sqlStatement.replace(\"CREATE TABLE \", \"CREATE TABLE OLD\");\n sqlStatement = sqlStatement.replace(\"REFERENCES \", \"REFERENCES OLD\");\n sqlStatement = sqlStatement.replace(\"INSERT INTO \", \"INSERT INTO OLD\");\n jdbcTemplate.execute(sqlStatement);\n }\n }", "public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }", "@Override\n public String toSql(ToSqlOptions options) {\n StringBuilder sb = new StringBuilder(\"LOAD DATA INPATH '\");\n sb.append(sourceDataPath_ + \"' \");\n if (overwrite_) sb.append(\"OVERWRITE \");\n sb.append(\"INTO TABLE \" + tableName_.toString());\n if (partitionSpec_ != null) sb.append(\" \" + partitionSpec_.toSql(options));\n return sb.toString();\n }", "void addHeader(String headerName, String headerValue);", "void setHeader(java.lang.String header);", "public void setSqlScriptEncoding( String sqlScriptEncoding ) {\n this.sqlScriptEncoding = sqlScriptEncoding;\n }", "void xsetHeader(org.apache.xmlbeans.XmlString header);", "public final void header() throws RecognitionException {\n\t\tToken ACTION3=null;\n\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:83:8: ( '@header' ACTION )\n\t\t\t// org/antlr/gunit/gUnit.g:83:10: '@header' ACTION\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_header157); \n\t\t\tACTION3=(Token)match(input,ACTION,FOLLOW_ACTION_in_header159); \n\n\t\t\t\t\tint pos1, pos2;\n\t\t\t\t\tif ( (pos1=(ACTION3!=null?ACTION3.getText():null).indexOf(\"package\"))!=-1 && (pos2=(ACTION3!=null?ACTION3.getText():null).indexOf(';'))!=-1 ) {\n\t\t\t\t\t\tgrammarInfo.setGrammarPackage((ACTION3!=null?ACTION3.getText():null).substring(pos1+8, pos2).trim());\t// substring the package path\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.err.println(\"error(line \"+ACTION3.getLine()+\"): invalid header\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public void runScript(String sqlScript) throws DataAccessLayerException {\n Session session = null;\n Transaction trans = null;\n Connection conn = null;\n\n Statement stmt = null;\n try {\n session = getSession(true);\n trans = session.beginTransaction();\n conn = session.connection();\n stmt = conn.createStatement();\n } catch (SQLException e) {\n throw new DataAccessLayerException(\n \"Unable to create JDBC statement\", e);\n }\n boolean success = true;\n String[] scriptContents = sqlScript.split(\";\");\n for (String line : scriptContents) {\n if (!line.isEmpty()) {\n try {\n stmt.addBatch(line + \";\");\n\n } catch (SQLException e1) {\n logger.warn(\"Script execution failed. Rolling back transaction\");\n trans.rollback();\n try {\n if (!conn.isClosed()) {\n conn.close();\n }\n } catch (SQLException e2) {\n logger.error(\"Cannot close database connection!!\", e2);\n }\n if (session.isOpen()) {\n session.close();\n }\n throw new DataAccessLayerException(\n \"Cannot execute SQL statement: \" + line, e1);\n }\n }\n }\n try {\n stmt.executeBatch();\n } catch (SQLException e1) {\n success = false;\n trans.rollback();\n logger.error(\"Error executing script.\", e1);\n }\n\n try {\n stmt.close();\n } catch (SQLException e1) {\n success = false;\n trans.rollback();\n logger.error(\"Unable to close JDBC statement!\", e1);\n }\n\n if (success) {\n trans.commit();\n }\n try {\n if (!conn.isClosed()) {\n conn.close();\n }\n } catch (SQLException e) {\n logger.error(\"Cannot close database connection!!\", e);\n }\n if (session.isOpen()) {\n session.close();\n }\n }", "public static void header(String title){\n byte titlelength = (byte)title.length();\n System.out.println(\"+================================================+\");\n System.out.printf(\"|%-\" + ((48 - titlelength) / 2) + \"s%\" + titlelength + \"s%-\" + ((49 - titlelength) / 2) + \n \"s|\" + EOF, \"\", title.toUpperCase(), \"\");\n System.out.println(\"+================================================+\");\n }", "public void addHeader(String key, String header);", "public static void addScript(AppContext conn,HttpServletRequest request, String script){\n\t\tif( script == null || script.trim().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tSet<String> scripts = (Set<String>) request.getAttribute(REQUEST_SCRIPT_ATTR);\n\t\tif( scripts == null ){\n\t\t\tscripts=new LinkedHashSet<>();\n\t\t\trequest.setAttribute(REQUEST_SCRIPT_ATTR, scripts);\n\t\t}\n\t\tscripts.add(conn.expandText(script));\n\t}", "public void writeSQL(SQLOutput stream) throws SQLException{\r\n}", "public void logSQL(BindedCompiledSQL bsql, String sqlStatment, long nanoTime) ;", "private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }", "protected void decorateSQL(Statement stmt) throws SQLException\n {\n getConnection();\n\n // create a table with some data\n stmt.executeUpdate(\n \"CREATE TABLE foo (a int, b char(100))\");\n stmt.execute(\"insert into foo values (1, 'hello world')\");\n stmt.execute(\"insert into foo values (2, 'happy world')\");\n stmt.execute(\"insert into foo values (3, 'sad world')\");\n stmt.execute(\"insert into foo values (4, 'crazy world')\");\n for (int i=0 ; i<7 ; i++)\n stmt.execute(\"insert into foo select * from foo\");\n stmt.execute(\"create index fooi on foo(a, b)\");\n }", "private void addColumnHeader(ColumnProfile p_cp, int p_index)\n {\n String colName = m_proxy.keyAt(p_index);\n if (colName == null)\n {\n colName = UNKNOWN;\n }\n addIndent();\n openStartTag(COLUMN);\n addSpace();\n addKeyValuePair(NAME, colName);\n addSpace();\n addKeyValuePair(TABLE_NAME, p_cp.getTableName());\n addSpace();\n addKeyValuePair(DATA_TYPE, p_cp.getDataType());\n addSpace();\n addKeyValuePair(MAX_LENGTH, \"\" + m_proxy.widthAt(p_index));\n addSpace();\n addKeyValuePair(RULE_ID, \"\" + p_cp.getRuleId());\n addSpace();\n addKeyValuePair(CONTENT_MODE, p_cp.CONTENT_MODES[p_cp.getContentMode() - 1]);\n closeTag();\n }", "public void addScript(String scriptFilename) {\n scriptHistory = new ScriptHistory(scriptFilename);\n }", "protected void addDynamicHeaders() {\n }", "String getInitSql();", "private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHeader(sheet, 3, 0, reportProperties.getProperty(\"header4\"));\r\n\t\t\r\n\r\n\t}", "public void formatSql() {\r\n if (sql == null || sql.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"There is no SQL statement to format\");\r\n }\r\n sql = formatter.format(sql);\r\n }", "public void addHeader(String sipHeader) {\n String hdrString = sipHeader.trim() + \"\\n\";\n try {\n HeaderParser parser =\n ParserFactory.createParser(sipHeader);\n SIPHeader sh = parser.parse();\n this.attachHeader(sh,false);\n } catch (ParseException ex) {\n this.unrecognizedHeaders.add(hdrString);\n }\n }", "private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}", "protected void write_output_header() {\t\t\n\t\tSystem.out.println(\" H Lennard-Jones lattice-switch monte carlo code: hcp v fcc:\");\n\t\tSystem.out.println(\" H \");\n\t\t// Write out the standard parts of the LSMC header:\n\t\tsuper.write_output_header();\n\t\t// Write out LJLS-specific section:\n\t\tSystem.out.println(\" H For the Lennard-Jones Lattice-Switch: \");\n\t\tSystem.out.print(\" H lj_eta = 4*beta = +\"+lj_eta+\"\\n\");\n\t\tif( VIRT_NSWC == 1 ) {\n\t\t\tSystem.out.println(\" H VIRTUAL n-switch, structure \"+INIT_PHASE+\", en_shift = \"+EN_SHIFT);\n\t\t}\n\t\t\n\t\t// Optionally output E v. density:\n\t\tif( OUTPUT_E_V_DENSITY ) calc_e_v_dens();\n\n\t}", "private void processHeader(String header) {\n this.header = header + System.lineSeparator(); // Store the header for writing back.\n\n String[] headers = header.split(\"\\\",\\\"\");\n for (int i = 0; i < headers.length; i++) {\n String columnName = headers[i].replaceAll(\"\\\"\", \"\");\n this.headerMap.put(i, columnName);\n }\n }", "static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\r\n\t}", "public void addColumn (String header)\n\t{\n\t\tWListItemRenderer renderer = (WListItemRenderer)getItemRenderer();\n\t\trenderer.addColumn(Util.cleanAmp(header));\n\t\tgetModel().addColumn();\n\n\t\treturn;\n\t}", "@Override\n public void addIntHeader(String arg0, int arg1) {\n\n }", "private void emitHeader(OutputStream stream) throws IOException {\n int header = 0x0;\n header |= WORKBUF_PROTOCOL_VERSION;\n stream.write(TfWorkbufProtocol.intToFourBytes(header));\n }", "public PreparedSql generatePreparedSql(String prefix);", "public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }", "public static void CreateSpartanLHCScript(String outputPath, ArrayList<String> parameters,\n\t ArrayList<String> minVals, ArrayList<String> maxVals, ArrayList<String> baseline,\n\t ArrayList<String> increment)\n {\n\ttry\n\t{\n\t PrintWriter writer = new PrintWriter(outputPath + \"/OAT_Sampling.R\", \"UTF-8\");\n\t writer.println(\"library(spartan)\");\n\n\t // Write the filepath\n\n\t String OS = System.getProperty(\"os.name\").toLowerCase();\n\t if (OS.indexOf(\"win\") >= 0)\n\t {\n\t\tString winOutputPath = outputPath.replace(\"\\\\\", \"/\");\n\t\twriter.println(\"FILEPATH<-\\\"\" + winOutputPath + \"\\\"\");\n\t }\n\t else\n\t {\n\t\t// Not Windows\n\t\twriter.println(\"FILEPATH<-\\\"\" + outputPath + \"\\\"\");\n\t }\n\n\t // Now add the Parameters\n\t String parameterLine = \"PARAMETERS<-c(\";\n\t String minLine = \"PMIN<-c(\";\n\t String maxLine = \"PMAX<-c(\";\n\t String baselineLine = \"BASELINE<-c(\";\n\t String incLine = \"PINC<-c(\";\n\n\t for (int param = 0; param < parameters.size() - 1; param++)\n\t {\n\t\tparameterLine = parameterLine + \"\\\"\" + parameters.get(param) + \"\\\",\";\n\t\tminLine = minLine + \"\" + minVals.get(param) + \",\";\n\t\tmaxLine = maxLine + \"\" + maxVals.get(param) + \",\";\n\t\tbaselineLine = baselineLine + \"\" + baseline.get(param) + \",\";\n\t\tincLine = incLine + \"\" + increment.get(param) + \",\";\n\t }\n\t // Now add the final parameter\n\t parameterLine = parameterLine + \"\\\"\" + parameters.get(parameters.size() - 1) + \"\\\")\";\n\t minLine = minLine + \"\" + minVals.get(parameters.size() - 1) + \")\";\n\t maxLine = maxLine + \"\" + maxVals.get(parameters.size() - 1) + \")\";\n\t baselineLine = baselineLine + \"\" + baseline.get(parameters.size() - 1) + \")\";\n\t incLine = incLine + \"\" + increment.get(parameters.size() - 1) + \")\";\n\n\t writer.println(parameterLine);\n\t writer.println(minLine);\n\t writer.println(maxLine);\n\t writer.println(baselineLine);\n\t writer.println(incLine);\n\n\t // Write the call\n\t writer.println(\"oat_parameter_sampling(FILEPATH,PARAMETERS,BASELINE,PMIN,PMAX,PINC)\");\n\n\t writer.close();\n\n\t}\n\tcatch (Exception e)\n\t{\n\t e.printStackTrace();\n\t}\n\n }", "private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }", "public void addIntHeader(String s, int i) {\n\t\t\n\t}", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, \r\n\t\t\t\t\t\t\t\t\t\t\tReportFile file, int table)\r\n\t{\r\n\t\t// Retrieve variable count\r\n\t\tArrayList<Integer> discValues = solution.getSolution().getDiscValues();\r\n\t\tArrayList<Double> contValues = solution.getSolution().getContValues();\r\n\t\t\r\n\t\tint total = 2;\r\n\t\tint discCount = discValues == null ? 0 : discValues.size();\r\n\t\tint contCount = contValues == null ? 0 : contValues.size();\r\n\t\t\r\n\t\ttotal += discCount;\r\n\t\ttotal += contCount;\r\n\t\t\r\n\t\tString[] line1 = new String[total];\r\n\t\tString[] line2 = new String[total];\r\n\t\tString fitnessHeader = solution.getSolution().getReportHeader();\r\n\t\tString space = \"\";\r\n\t\tfor(int i = 0 ; i < fitnessHeader.split(\"\\t\").length - 1 ; i++)\r\n\t\t\tspace += \"\\t\";\r\n\t\t\r\n\t\tline1[0] = \"\\t\\t\";\r\n\t\tline1[1] = space;\r\n\t\tline2[0] = SOLUTIONS_ID + \"\\t\" + INNER_CYCLE_ID + \"\\t\" + GENERATORS_ID;\r\n\t\tline2[1] = fitnessHeader;\r\n\t\t\r\n\t\tint index = 2;\r\n\t\tint variableIndex = 0;\r\n\t\t\r\n\t\t// Add header for discrete variables\r\n\t\tif(discCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = DISC_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getDiscVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + discCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getDiscVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header for continuous variables\r\n\t\tif(contCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = CONT_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getContVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + contCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getContVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header lines to report\r\n\t\tfile.addLineToTableHeader(table, line1);\r\n\t\tfile.addLineToTableHeader(table, line2);\r\n\t}", "void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }", "final public SqlStatement ScriptStatement() throws ParseException {SqlStatement st = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USE:\n case CREATE:\n case DROP:\n case SET:\n case INSERT:\n case ALTER:\n case LOCK:\n case UNLOCK:\n case START:\n case COMMIT:\n case 117:{\n st = Statement();\n jj_consume_token(117);\n break;\n }\n case 0:{\n jj_consume_token(0);\n break;\n }\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn st;\n}", "public void performHEAD(String command)\n {\n int currow;\n\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n\n currow = headset.getCurrentRowNo();\n if (headlay.isMultirowLayout())\n headset.storeSelections();\n else\n headset.selectRow();\n headset.markSelectedRows(command);\n mgr.submit(trans);\n headset.goTo(currow);\n }", "public void setColumnName(Vector header) {\r\n numberOfcolumns = header.size();\r\n columnNames = header;\r\n /**\r\n * create new column to handle status of row. You can hide or visible it by comment or not the line code follow.\r\n */\r\n //columnNames.add(\"RecordStatus\");\r\n }", "public PreparedSql generatePreparedSql(BoundString prefix);", "@Override\n\tpublic void onToggleSort(String header) {\n\t\tsynapseClient.toggleSortOnTableQuery(this.startingQuery.getSql(), header, new AsyncCallback<String>(){\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tshowError(caught);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String sql) {\n\t\t\t\trunSql(sql);\n\t\t\t}});\n\t}", "public void createHeader() throws DocumentException\n {\n createHeader(100f, Element.ALIGN_LEFT);\n }", "private void createTableHeaderFile(final Class Class_, final String simpleName) throws IOException{\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Get the content file\n final String contentFileTableHeader = this.getContentTableHeader(simpleName,propertyNames); \n \n //Create the path\n final String className = simpleName + \"sTableHeader\"; \n final String tableHeaderPath = \"../era_views/src/main/java/com/era/views/tables/headers\";\n final String finalClassPath = tableHeaderPath + \"/\" + className + \".java\";\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(contentFileTableHeader);\n }\n }", "public void logSQL(BindedCompiledSQL bsql, long nanoTime) ;", "public void setSql(String sql) {\n this.sql = sql;\n }", "public String createCommandLine(IngresVectorwiseLoaderMeta meta) throws KettleException\n {\n StringBuffer sb = new StringBuffer(300);\n \n if ( !Const.isEmpty(meta.getSqlPath()) )\n {\n try\n {\n FileObject fileObject = KettleVFS.getFileObject(environmentSubstitute(meta.getSqlPath()), getTransMeta());\n String sqlexec = Const.optionallyQuoteStringByOS(KettleVFS.getFilename(fileObject));\n sb.append(sqlexec);\n //sql @tc-dwh-test.timocom.net,tcp_ip,VW[ingres,pwd]::dwh\n }\n catch ( KettleFileException ex )\n {\n throw new KettleException(\"Error retrieving 'sql' command string\", ex);\n } \n }\n else\n {\n if(isDetailed()) logDetailed( \"sql defaults to system path\");\n sb.append(\"sql\");\n }\n\n DatabaseMeta dm = meta.getDatabaseMeta();\n if ( dm != null )\n {\n if(meta.isUseDynamicVNode()){\n //logical portname in JDBC use a 7\n String port = environmentSubstitute(Const.NVL(dm.getDatabasePortNumberString(), \"\")).replace(\"7\", \"\");\n String userName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getUsername(), \"\"));\n String passWord = Encr.decryptPasswordOptionallyEncrypted(environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getPassword(), \"\")));\n String hostName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getHostname(), \"\"));\n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n \n sb.append(\" @\").append(hostName).append(\",\").append(port).append(\"[\").append(userName).append(\",\").append(passWord).append(\"]::\").append(dnName);\n }\n else{\n // Database Name\n // \n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n sb.append(\" \").append(dnName);\n }\n }\n else\n {\n throw new KettleException(\"No connection specified\");\n }\n\n return sb.toString(); \n }", "public void writeSQL(SQLOutput stream) throws SQLException {\n\t\tstream.writeBigDecimal(Helpers.bigDecOrNull(id));\n\t\tstream.writeString(Helpers.strOrNull(rt));\n\t\tstream.writeString(Helpers.strOrNull(name));\n\t\tstream.writeString(Helpers.strOrNull(description));\n\n\t}", "void writeSQL(boolean revTableExists, boolean pageTableExists, GeneratorMode mode)\n\t{\n\t\ttry (Writer writer = new BufferedWriter(new OutputStreamWriter(\n\t\t\t\tnew BufferedOutputStream(new FileOutputStream(outputPath)), charset))){\n\t\t\tStringBuilder dataToDump = new StringBuilder();\n\n\t\t\tdataToDump.append(generateTemplateIdSQLStatement(this.tableExists));\n\n\t\t\tif (mode.active_for_pages) {\n\t\t\t\tdataToDump.append(generatePageSQLStatement(pageTableExists,\n\t\t\t\t\t\tmode.templateNameToPageId));\n\t\t\t}\n\t\t\tif (mode.active_for_revisions) {\n\t\t\t\tdataToDump.append(generateRevisionSQLStatement(revTableExists,\n\t\t\t\t\t\tmode.templateNameToRevId));\n\t\t\t}\n\t\t\twriter.write(dataToDump.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlogger.error(\"Error writing SQL file: {}\", e.getMessage(), e);\n\t\t}\n\t}", "void executeScript(Readable script) throws IOException;", "public final void setTableHeader() {\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.date\"));\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.percent.solved\"));\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.log.type\"));\n }", "public void includeScript(String command, Vector args) throws Throwable {\n String scriptUrl = (String)args.elementAt(0);\n checkArgument(scriptUrl, \"Missing script url in \" + command);\n \n if (!scriptUrl.startsWith(\"http:\") && !scriptUrl.startsWith(\"file:\")) {\n int upCount = 0;\n while(scriptUrl.startsWith(\"..\")) {\n scriptUrl = scriptUrl.substring(\"../\".length());\n upCount++;\n }\n if (baseUrl != null) {\n String newBaseUrl = baseUrl;\n for(int i=0; i<upCount; i++) {\n int index = newBaseUrl.lastIndexOf('/');\n newBaseUrl = newBaseUrl.substring(0, index);\n }\n scriptUrl = newBaseUrl + \"/\" + scriptUrl;\n }\n }\n String tmpBaseUrl = baseUrl;\n runScriptFileI(scriptUrl, false);\n baseUrl = tmpBaseUrl;\n }", "private static String getCreateQuery(String tableName,String CSVHeader){\n\n\t\tString query=\"create table \"+tableName +\"(\";\n\t\tString columns[]=CSVHeader.split(\",\");\n\t\tfor(int i=0;i<columns.length-1;i++){\n\t\t\tquery+=columns[i]+\" string,\";\n\t\t}\n\t\tquery+=columns[columns.length-1]+\" string)\";\n\t\tquery+=\" row format delimited fields terminated by ',' stored as textfile\";\n\t\t// System.out.println(query);\n\t\treturn query;\n\t}", "public void setHeader(String header) {\n this.header = header;\n }", "private void prnHEADER()\n\t{ \n\t try\n\t {\n\t\t\tcl_dat.M_PAGENO +=1;\n\t\t\tcl_dat.M_intLINNO_pbst=0;\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"<B>\");\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC1+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC2+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC3+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',cl_dat.M_strCMPNM_pbst ,100));\n\t\t\tdosREPORT.writeBytes(\"Report Date:\"+ cl_dat.M_strLOGDT_pbst + \"\\n\");\t\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Stock Statement as on \"+(rdbDYOPN.isSelected() ? strREFDT+\" at 07:00 Hrs\" : cl_dat.M_txtCLKDT_pbst.getText()+\" \"+cl_dat.M_txtCLKTM_pbst.getText()+\" Hrs\"),100));\t\t\t\n\t\t\tdosREPORT.writeBytes(\"Page No. :\" + String.valueOf(cl_dat.M_PAGENO) + \"\\n\");\t\t\t\t\t\t\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\" \",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Product & Size\",28));\n\t\t\t//System.out.println(\"LM_COUNT = \"+LM_COUNT);\n\t\t\tfor(i=0;i<LM_COUNT;i++)\n\t\t\t\tdosREPORT.writeBytes(padSTRING('L',staMNLDS[i],12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Tot.Sq.Mts\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"S/Rtn\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Res.Qty\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Q/Hold\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Cub.Mtrs\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"M.Tons\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Pcs\",10));\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\t//crtLINE(136);\n\t\t\t//dosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\t\t\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"</B>\");\n\t\t\tcl_dat.M_intLINNO_pbst += 11;\n\t }\n\t catch(Exception L_EX)\n\t {\n\t\t\tsetMSG(L_EX + \" prnHEADER\",'E');\n\t\t}\n\t}", "String getStartTransactionSql();", "public void appendHeader(File file) {\n\n int bytesLength = (int) file.length();\n byte[] header = createHeader(bytesLength - WAV_HEADER_LENGTH);\n\n try {\n RandomAccessFile ramFile = new RandomAccessFile(file, \"rw\");\n ramFile.seek(0);\n ramFile.write(header);\n ramFile.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Aero\", \"Tried to append header to invalid file: \" + e.getLocalizedMessage());\n return;\n } catch (IOException e) {\n Log.e(\"Aero\", \"IO Error during header append: \" + e.getLocalizedMessage());\n return;\n }\n\n }", "public HttpResponse doScriptAdd(StaplerRequest res, StaplerResponse rsp, @QueryParameter(\"name\") String name, @QueryParameter(\"comment\") String comment,\n \t\t\t@QueryParameter(\"script\") String script) throws IOException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tif (StringUtils.isEmpty(script) || StringUtils.isEmpty(name)) {\n \t\t\tthrow new IllegalArgumentException(\"name and script must not be empty\");\n \t\t}\n \t\tname = fixFileName(name);\n \n \t\t// save (overwrite) the file/script\n \t\tFile newScriptFile = new File(getScriptDirectory(), name);\n \t\tWriter writer = new FileWriter(newScriptFile);\n \t\twriter.write(script);\n \t\twriter.close();\n \n \t\t// save (overwrite) the meta information\n \t\tScript newScript = new Script(name, comment);\n \t\tScriptlerConfiguration cfg = getConfiguration();\n \t\tcfg.addOrReplace(newScript);\n \t\tcfg.save();\n \n \t\treturn new HttpRedirect(\"index\");\n \t}", "protected void writeHeader(PrintStream wps, List listColumn, char cDelim)\n {\n String sData;\n int c = 0;\n for (Iterator iCol = listColumn.iterator(); iCol.hasNext(); )\n {\n ReportColumnView columnView = (ReportColumnView) iCol.next();\n if (columnView != null)\n {\n if (columnView.isVisible())\n {\n if (c != 0)\n {\n wps.print(cDelim);\n }\n c++;\n Object oResult = columnView.getHeader();\n sData = oResult == null ? \"\" : oResult.toString();\n wps.print(sData);\n }\n }\n }\n wps.println();\n // without this line sometimes the header is not printed correctly.\n wps.flush();\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "private void writeHeader(FileChannel fc, AtomicLong pointer, int version, long flags)\n throws IOException {\n LogFileHeader lfg = new LogFileHeader(version, flags);\n ByteBuffer b = lfg.getBuffer();\n pointer.getAndAdd(b.remaining());\n fc.write(b);\n fc.force(true);\n }", "private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }", "public void addVertexShader(String fileName);", "public void setSql (String sql)\n\t{\n\t\tif (sql == null)\n\t\t\tthrow new IllegalArgumentException(\"No SQL\");\n\t\tm_sqlOriginal = sql;\n\t\tint index = m_sqlOriginal.indexOf(\"\\nFROM \");\n\t\tif (index != -1)\n\t\t\tm_sqlOriginal = m_sqlOriginal.replace(\"\\nFROM \", FROM);\n\t\tindex = m_sqlOriginal.indexOf(\"\\nWHERE \");\n\t\tif (index != -1)\n\t\t\tm_sqlOriginal = m_sqlOriginal.replace(\"\\nWHERE \", WHERE);\n\t\t//\n\t\tparse();\n\t}", "<T> List<String> generateInsertScript(GremlinSource<T> source);", "protected void writeHeading ()\n {\n Util.writePackage (stream, entry, Util.HolderFile);\n Util.writeProlog (stream, stream.name ());\n if (entry.comment () != null)\n entry.comment ().generate (\"\", stream);\n stream.println (\"public final class \" + holderClass + \" implements org.omg.CORBA.portable.Streamable\");\n stream.println ('{');\n }", "public static void writeHeader(DataOutput dos,SpectrumHeader spectrumHeader) throws IOException {\n\n\t\tdos.write(fileSignature);\n\t\tdos.writeInt(spectrumHeader.k);\n\t\tdos.writeLong(spectrumHeader.nkmers);\n\t}", "public void setSql(String sql) {\n\t\tthis.sql = sql;\n\t}", "private void appendSelectStatement() {\n builder.append(SELECT).append(getSelectedFields()).append(FROM);\n }", "public StaticScript script(String script) {\n this.script = script;\n return this;\n }", "private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }" ]
[ "0.5472439", "0.5409786", "0.523873", "0.51224595", "0.5116158", "0.5090327", "0.50523466", "0.5000585", "0.49721226", "0.4970006", "0.48748896", "0.48658407", "0.48564655", "0.48351377", "0.47908664", "0.47906283", "0.4787794", "0.4784296", "0.4781527", "0.4778099", "0.47636387", "0.4760475", "0.47527933", "0.47374225", "0.47372875", "0.47104174", "0.47012007", "0.46870187", "0.46771947", "0.46737027", "0.46715617", "0.4668577", "0.46679038", "0.46650627", "0.46647707", "0.46563497", "0.46537837", "0.46516877", "0.46496522", "0.46270317", "0.46231425", "0.46195897", "0.46148568", "0.46095973", "0.45914", "0.45907915", "0.458965", "0.45878655", "0.4578416", "0.4544803", "0.4540235", "0.45387143", "0.45315585", "0.45206594", "0.45158345", "0.45146835", "0.4510975", "0.45095778", "0.4495085", "0.44890618", "0.44852632", "0.44795564", "0.44790608", "0.44731668", "0.44693655", "0.44662386", "0.44610512", "0.4446328", "0.44426", "0.44405672", "0.4440559", "0.44405293", "0.44327113", "0.4426193", "0.4423056", "0.44182625", "0.43972802", "0.4396606", "0.4394822", "0.4393994", "0.43874437", "0.4377481", "0.43721786", "0.43720734", "0.43584573", "0.43570173", "0.4344564", "0.4339204", "0.4338924", "0.4333361", "0.43269798", "0.43266246", "0.43209356", "0.43158376", "0.43148965", "0.43012542", "0.42993858", "0.4297746", "0.42961326", "0.429494", "0.4287968" ]
0.0
-1
Returns a SQL script header to the passed script.
public String[] create(DataModel dataModel, UserInformation userInfos, DBExecMode dbmode) { List<String> script = new LinkedList<String>(); script.add("/*********************************************************************"); script.add(" *"); script.add(" * Archimedes update script"); script.add(" *"); script.add(" * Schema: " + dataModel.getName()); script.add(" * Version: " + dataModel.getVersion()); script.add(" * Created at: " + new PTimestamp()); script.add(" * Created by: " + userInfos.getUserName() + " (" + userInfos.getUserToken() + ")"); script.add(" * Created for: " + userInfos.getVendorName()); script.add(" *"); script.add(" * DBMS: " + dbmode.toToken()); script.add(" *"); script.add(" *"); script.add(" * THIS SCRIPT IS GENERATED!!!"); script.add(" *"); script.add(" * Do not change manually!"); script.add(" *"); script.add(" *"); script.add(" ********************************************************************/"); script.add(""); script.add(""); return script.toArray(new String[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}", "public String getCallHeader(DatabasePlatform platform) {\r\n return platform.getFunctionCallHeader();\r\n }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "private String getSQLScript() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer javaSb = new StringBuffer();\n\t\tsb.append(\"CREATE\").append(\" PROCEDURE \");\n\t\tString procedureName = procNameText.getText();\n\t\tif (procedureName == null) {\n\t\t\tprocedureName = \"\";\n\t\t}\n\t\tsb.append(QuerySyntax.escapeKeyword(procedureName)).append(\"(\");\n\t\tfor (Map<String, String> map : procParamsListData) {\n\t\t\t// \"PARAMS_INDEX\", \"PARAM_NAME\", \"PARAM_TYPE\", \"JAVA_PARAM_TYPE\"\n\t\t\tString name = map.get(\"0\");\n\t\t\tString type = map.get(\"1\");\n\t\t\tString javaType = map.get(\"2\");\n\t\t\tString paramModel = map.get(\"3\");\n\t\t\tString description = map.get(\"4\");\n\t\t\tsb.append(QuerySyntax.escapeKeyword(name)).append(\" \");\n\t\t\tif (!paramModel.equalsIgnoreCase(SPArgsType.IN.toString())) {\n\t\t\t\tsb.append(paramModel).append(\" \");\n\t\t\t}\n\t\t\tsb.append(type);\n\t\t\tif (isCommentSupport && StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t\tsb.append(\",\");\n\t\t\tjavaSb.append(javaType).append(\",\");\n\t\t}\n\t\tif (!procParamsListData.isEmpty()) {\n\t\t\tif (sb.length() > 0) {\n\t\t\t\tsb.deleteCharAt(sb.length() - 1);\n\t\t\t}\n\t\t\tif (javaSb.length() > 0) {\n\t\t\t\tjavaSb.deleteCharAt(javaSb.length() - 1);\n\t\t\t}\n\t\t}\n\t\tsb.append(\")\");\n\n\t\tsb.append(StringUtil.NEWLINE).append(\"AS LANGUAGE JAVA \").append(StringUtil.NEWLINE);\n\t\tString javaFuncName = javaNameText.getText();\n\t\tif (javaFuncName == null) {\n\t\t\tjavaFuncName = \"\";\n\t\t}\n\t\tsb.append(\"NAME '\").append(javaFuncName).append(\"(\").append(javaSb).append(\")\").append(\"'\");\n\t\tif (isCommentSupport) {\n\t\t\tString description = procDescriptionText.getText();\n\t\t\tif (StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t}\n\t\treturn formatSql(sb.toString());\n\t}", "String getPostDeclareSql();", "String getInitSql();", "String getStartTransactionSql();", "final public SqlStatement ScriptStatement() throws ParseException {SqlStatement st = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USE:\n case CREATE:\n case DROP:\n case SET:\n case INSERT:\n case ALTER:\n case LOCK:\n case UNLOCK:\n case START:\n case COMMIT:\n case 117:{\n st = Statement();\n jj_consume_token(117);\n break;\n }\n case 0:{\n jj_consume_token(0);\n break;\n }\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn st;\n}", "private static String headerSummary() {\r\n\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\usepackage{rotating}\\n\";\r\n output += \"\\\\usepackage{textcomp}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }", "java.lang.String getHeaderTableId();", "private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }", "public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}", "java.lang.String getSqlCode();", "public abstract String header();", "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "public static String header(int homework, double project, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework);\n temp += projectLine(project);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }", "public String getScript() { \n\t\treturn null;\n\t}", "public String getSql() {\r\n String[] splitSql = this.origSql.split(\"\\\\Q\" + IN_PARAM_ESC + \"\\\\E\");\r\n StringBuffer compSql = new StringBuffer(splitSql[0]);\r\n Integer key = null;\r\n String value = IN_PARAM_ESC;\r\n for (int i = 1; i < splitSql.length && this.inMaxSqlLength(compSql.length()); i++) {\r\n key = new Integer(i);\r\n value = IN_PARAM_ESC;\r\n if (this.paramMap.containsKey(key)) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n compSql.append(splitSql[i]);\r\n }\r\n key = new Integer(splitSql.length);\r\n value = this.origSql.lastIndexOf(IN_PARAM_ESC) == (this.origSql.length() - 1) ?\r\n IN_PARAM_ESC : \"\";\r\n if (this.paramMap.containsKey(key) && this.inMaxSqlLength(compSql.length())) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n \r\n if (!this.inMaxSqlLength(compSql.length())) {\r\n compSql.delete(this.maxSqlLength, compSql.length());\r\n compSql.append(INCOMPLETE);\r\n }\r\n \r\n return compSql.toString();\r\n }", "java.lang.String getHeader();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public PreparedSql generatePreparedSql(String prefix);", "private static String getCreateQuery(String tableName,String CSVHeader){\n\n\t\tString query=\"create table \"+tableName +\"(\";\n\t\tString columns[]=CSVHeader.split(\",\");\n\t\tfor(int i=0;i<columns.length-1;i++){\n\t\t\tquery+=columns[i]+\" string,\";\n\t\t}\n\t\tquery+=columns[columns.length-1]+\" string)\";\n\t\tquery+=\" row format delimited fields terminated by ',' stored as textfile\";\n\t\t// System.out.println(query);\n\t\treturn query;\n\t}", "public static String getHeader() {\n return \"S I R\";\n }", "public String createCommandLine(IngresVectorwiseLoaderMeta meta) throws KettleException\n {\n StringBuffer sb = new StringBuffer(300);\n \n if ( !Const.isEmpty(meta.getSqlPath()) )\n {\n try\n {\n FileObject fileObject = KettleVFS.getFileObject(environmentSubstitute(meta.getSqlPath()), getTransMeta());\n String sqlexec = Const.optionallyQuoteStringByOS(KettleVFS.getFilename(fileObject));\n sb.append(sqlexec);\n //sql @tc-dwh-test.timocom.net,tcp_ip,VW[ingres,pwd]::dwh\n }\n catch ( KettleFileException ex )\n {\n throw new KettleException(\"Error retrieving 'sql' command string\", ex);\n } \n }\n else\n {\n if(isDetailed()) logDetailed( \"sql defaults to system path\");\n sb.append(\"sql\");\n }\n\n DatabaseMeta dm = meta.getDatabaseMeta();\n if ( dm != null )\n {\n if(meta.isUseDynamicVNode()){\n //logical portname in JDBC use a 7\n String port = environmentSubstitute(Const.NVL(dm.getDatabasePortNumberString(), \"\")).replace(\"7\", \"\");\n String userName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getUsername(), \"\"));\n String passWord = Encr.decryptPasswordOptionallyEncrypted(environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getPassword(), \"\")));\n String hostName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getHostname(), \"\"));\n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n \n sb.append(\" @\").append(hostName).append(\",\").append(port).append(\"[\").append(userName).append(\",\").append(passWord).append(\"]::\").append(dnName);\n }\n else{\n // Database Name\n // \n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n sb.append(\" \").append(dnName);\n }\n }\n else\n {\n throw new KettleException(\"No connection specified\");\n }\n\n return sb.toString(); \n }", "com.google.protobuf.ByteString getScript();", "public String getScriptName() {\n\t\treturn scriptName;\n\t}", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "public PreparedSql generatePreparedSql(BoundString prefix);", "public String getName() { return _sqlName; }", "public String getScriptAsString() {\n return this.script;\n }", "public String getHeaderLine() {\r\n\t\tif(header == null)return \"\";\r\n\t\treturn header;\r\n\t}", "private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }", "public String buildColumnHeader() {\n if (padder == null) {\n return this.destColumnName;\n }\n return padder.doPadding(this.destColumnName);\n }", "public String getScript() {\n return script;\n }", "private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static String getPeptideHeader() {\r\n return \"Spectrum\" + SEP\r\n + \"Peptide Sequence\" + SEP\r\n + \"No. Peptide Spectrum Matches\" + SEP\r\n + \"Protein Accession\" + SEP\r\n + \"Protein Description\" + SEP;\r\n }", "String getHeader(String headerName);", "public String getHeader();", "private String createStandardGZFieldColumnHeadings()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (str.length() != 0)\n\t\t\t{\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t\tstr.append(entry.getKey());\n\t\t\tstr.append(\" IS '\");\n\t\t\tstr.append(getColumnHeadingFromStringArray(entry.getValue()));\n\t\t\tstr.append(\"'\");\n\n\t\t}\n\t\treturn str.toString();\n\t}", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }", "private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}", "private String getStatement(String argSqlMapId) {\r\n\t\tif (StringUtils.isEmpty(argSqlMapId)) {\r\n\t\t\treturn argSqlMapId;\r\n\t\t} else {\r\n\t\t\tint index = argSqlMapId.lastIndexOf(\".\");\r\n\t\t\tif (index > 0) {\r\n\t\t\t\treturn argSqlMapId.substring(index + 1);\r\n\t\t\t} else {\r\n\t\t\t\treturn argSqlMapId;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public abstract String getHeaderRow();", "public void setScriptSQL(String pInst)\r\n {\r\n this.scriptSQL = pInst;\r\n }", "private static final String \r\n getAERenderPythonLaunchHeader() \r\n {\r\n return \r\n (\"import subprocess;\\n\" +\r\n \"import sys;\\n\\n\" +\r\n \"def launch(program, args):\\n\" +\r\n \" a = [program] + args\\n\" +\r\n \" print('RUNNING: ' + ' '.join(a))\\n\" +\r\n \" sys.stdout.flush()\\n\" + \r\n \" result = subprocess.call(a)\\n\" +\r\n \" if result != 0 and result != 9:\\n\" +\r\n \" sys.exit(' FAILED: Exit Code = ' + str(result));\\n\\n\");\r\n }", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "public String getDeleteByIdSql() {\r\n\t\treturn \"delete from SHXXB where XH=?\";\r\n\t}", "String getHeadLiteral();", "protected String getInsertionSQL() {\n\t\treturn queryData.getString(\"InsertionSQL\");\n\t}", "public String getSql() {\n return sql;\n }", "public String generateSQL(String database) {\n//\t\tString sql = \"select requesttext from dbc.tables order by createtimestamp\";\n\t\tString sql = CommonConfig.sqlQueryDDL(database);;\n//\t\tif (database!=null && !database.equals(\"\")) {\n//\t\t\tsql = \"select requesttext from dbc.tables where databasename='\"+database+\"' order by createtimestamp\";\n//\t\t}\n \t\treturn sql;\n \t}", "public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }", "String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }", "public static String headerString(final ArrayList<String> header) {\n requireGoodHeader(header);\n return Utils.join(DELIMITER, header);\n }", "public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}", "String getSqlForExternalTool(Alias alias, String sql, SqlParser parser);", "public static String header(int homework, String homeworkDescription, \n double project, String projectDescription, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework, homeworkDescription);\n temp += projectLine(project, projectDescription);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }", "com.google.protobuf.ByteString getSqlCodeBytes();", "public final void header() throws RecognitionException {\n\t\tToken ACTION3=null;\n\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:83:8: ( '@header' ACTION )\n\t\t\t// org/antlr/gunit/gUnit.g:83:10: '@header' ACTION\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_header157); \n\t\t\tACTION3=(Token)match(input,ACTION,FOLLOW_ACTION_in_header159); \n\n\t\t\t\t\tint pos1, pos2;\n\t\t\t\t\tif ( (pos1=(ACTION3!=null?ACTION3.getText():null).indexOf(\"package\"))!=-1 && (pos2=(ACTION3!=null?ACTION3.getText():null).indexOf(';'))!=-1 ) {\n\t\t\t\t\t\tgrammarInfo.setGrammarPackage((ACTION3!=null?ACTION3.getText():null).substring(pos1+8, pos2).trim());\t// substring the package path\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.err.println(\"error(line \"+ACTION3.getLine()+\"): invalid header\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "StringBuffer getSparqlHeader(StringBuffer sb) {\r\n \tString SPACE = KeywordPP.SPACE;\r\n \tList<Constant> from = getFrom();\r\n \tList<Constant> named = getNamed();\r\n \tList<Variable> select = getSelectVar();\r\n\r\n \t// Select\r\n \tif (isSelect()) {\r\n \t\tsb.append(KeywordPP.SELECT + SPACE);\r\n \t\t\r\n \t\tif (isDebug())\r\n \t\t\tsb.append(KeywordPP.DEBUG + SPACE);\r\n \t\t\r\n \t\tif (isMore())\r\n \t\t\tsb.append(KeywordPP.MORE + SPACE);\r\n \t\t\r\n \t\tif (isDistinct())\r\n \t\t\tsb.append(KeywordPP.DISTINCT + SPACE);\r\n\r\n \t\tif (isSelectAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t}\r\n \t\t\r\n \t\tif (select != null && select.size()>0){\r\n \t\t\tfor (Variable s : getSelectVar()){\r\n \r\n \t\t\t\tif (getExpression(s) != null) {\r\n \t\t\t\t\texpr(getExpression(s), s, sb);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tsb.append(s);\r\n \t\t\t\t}\r\n sb.append(SPACE);\r\n \t\t\t}\r\n \t\t} \r\n \t\t\r\n \t} \r\n \telse if (isAsk()) {\r\n \t\tsb.append(KeywordPP.ASK + SPACE);\r\n \t} \r\n \telse if (isDelete()) {\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n\t\t\t}\r\n \t\tgetDelete().toString(sb);\r\n \t\t\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse if (isConstruct()) {\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\t\tif (isInsertData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getConstruct() != null){\r\n \t\tsb.append(KeywordPP.CONSTRUCT + SPACE); \r\n \t\tgetConstruct().toString(sb); \r\n \t\t}\r\n \t\telse if (getInsert() != null){\r\n \t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getDelete() != null){\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetDelete().toString(sb); \r\n \t\t}\r\n \t} \r\n \telse if (isDescribe()) {\r\n \t\tsb.append(KeywordPP.DESCRIBE + SPACE);\r\n \t\t\r\n \t\tif (isDescribeAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t} \r\n \t\telse if (adescribe != null && adescribe.size()>0) {\r\n\r\n \t\t\tfor (Atom at : adescribe) {\r\n \t\t\t\tat.toString(sb);\r\n \t\t\t\tsb.append(SPACE);\r\n \t\t\t}\r\n \t\t}\r\n \t} \r\n \t\r\n \t// DataSet\r\n \t//if (! isConstruct()) // because it's already done in the construct case\r\n \t\tsb.append(NL);\r\n \t\r\n \t// From\r\n \tfor (Atom name: from) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// From Named\r\n \tfor (Atom name : named) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE + KeywordPP.NAMED + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// Where\r\n \tif ((! (isDescribe() && ! isWhere())) && ! isData() ){\r\n \t\tsb.append(KeywordPP.WHERE + NL) ; \r\n \t}\r\n\r\n \treturn sb;\r\n }", "public String filename()\n throws IllegalStateException\n {\n switch ( this )\n {\n case INFO:\n return \"infoCards.cypher\";\n case OPENPIPE_RESET:\n return \"openPipe-reset.cypher\";\n case OPENPIPE_SYNC:\n return \"openPipe-sync.cypher\";\n case OPENPIPE_TOPICIMG:\n return \"openPipe-topicImage.cypher\";\n case OPENPIPE_FOLDERS:\n return \"openPipe-folders.cypher\";\n case OPENPIPE_SETTINGS:\n return \"openPipe-settings.cypher\";\n case FULLSYNC:\n return \"openPipe-fullsync.cypher\";\n }\n\n throw new IllegalStateException( \"Unknown CypherScript \" + this );\n }", "public String getHeaderText(){\n\t\treturn headerText.toString();\n\t}", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "String getDeclareCursorEndSql();", "@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}", "public String getMainSql()\n\t{\n\t\tif (m_sql == null)\n\t\t\treturn m_sqlOriginal;\n\t\t\t\n\t\tif (m_sql.length == 1)\n\t\t\treturn m_sql[0];\n\t\tfor (int i = m_sql.length-1; i >= 0; i--)\n\t\t{\n\t\t\tif (m_sql[i].charAt(0) != '(')\n\t\t\t\treturn m_sql[i];\n\t\t}\n\t\treturn \"\";\n\t}", "public String getPreparedSql() {\r\n return this.origSql;\r\n }", "ColumnNames createColumnNames();", "public String getSQLString () {\n \treturn statementString;\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "private static String getPSMHeader() {\r\n return \"PSM No.\" + SEP\r\n + \"Spectrum title\" + SEP\r\n + \"Peptide Sequence\" + SEP\r\n + \"Protein Accession\" + SEP\r\n + \"Intensity Score\" + SEP\r\n + \"Matched Peaks\" + SEP;\r\n }", "private void setScriptFormatCorrectly()\n\t{\n\t\tint scriptFormatNeeded = 0;\n\t\tif(isMime(m_databaseFile, GZIP_MAGIC_NUMBERS))\n\t\t{\n\t\t\tm_logger.debug(\"Database is gzipped\");\n\t\t\tscriptFormatNeeded = 3;\n\t\t}\n\t\t\n\t\tboolean propsExists = Files.exists(m_databasePropertiesFile);\n\t\t\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t properties.load(new FileInputStream(m_databasePropertiesFile.toFile()));\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t\tproperties.setProperty(\"hsqldb.script_format\", \"\" + scriptFormatNeeded);\n\t\tif(! propsExists) // write other info\n\t\t{\n\t\t\tproperties.setProperty(\"version\",\"2.2.8\");\n\t\t\tproperties.setProperty(\"modified\", \"yes\");\n\t\t}\n\t\t\n\t\t// Write properties file.\n\t\ttry {\n\t\t properties.store(new FileOutputStream(m_databasePropertiesFile.toFile()), null);\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t}", "public String getStatement();", "public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }", "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "public StaticScript script(String script) {\n this.script = script;\n return this;\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "public String getPreSQL()\n {\n return _get_imfObject().getPreSQL();\n }", "private void createTableHeaderFile(final Class Class_, final String simpleName) throws IOException{\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Get the content file\n final String contentFileTableHeader = this.getContentTableHeader(simpleName,propertyNames); \n \n //Create the path\n final String className = simpleName + \"sTableHeader\"; \n final String tableHeaderPath = \"../era_views/src/main/java/com/era/views/tables/headers\";\n final String finalClassPath = tableHeaderPath + \"/\" + className + \".java\";\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(contentFileTableHeader);\n }\n }", "String getSingleLinkerScriptFile();", "Script createScript();", "private void addColumnHeader(ColumnProfile p_cp, int p_index)\n {\n String colName = m_proxy.keyAt(p_index);\n if (colName == null)\n {\n colName = UNKNOWN;\n }\n addIndent();\n openStartTag(COLUMN);\n addSpace();\n addKeyValuePair(NAME, colName);\n addSpace();\n addKeyValuePair(TABLE_NAME, p_cp.getTableName());\n addSpace();\n addKeyValuePair(DATA_TYPE, p_cp.getDataType());\n addSpace();\n addKeyValuePair(MAX_LENGTH, \"\" + m_proxy.widthAt(p_index));\n addSpace();\n addKeyValuePair(RULE_ID, \"\" + p_cp.getRuleId());\n addSpace();\n addKeyValuePair(CONTENT_MODE, p_cp.CONTENT_MODES[p_cp.getContentMode() - 1]);\n closeTag();\n }", "@java.lang.Override\n public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n }\n }", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "private byte[] generateHeader() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(PROTOCOL_TAG);\n\t\tsb.append(' ');\n\t\tsb.append(statusCode);\n\t\tsb.append(' ');\n\t\tsb.append(statusText);\n\t\tsb.append(LINE_SEPARATOR);\n\t\tsb.append(CONTENT_TYPE_TAG);\n\t\tsb.append(' ');\n\t\t\n\t\tif (mimeType != null && mimeType.startsWith(MIME_TYPE_CHARSET_NEEDED)) {\n\t\t\tsb.append(mimeType);\n\t\t\tsb.append(MIME_TYPE_CHARSET_ADDON);\n\t\t\tsb.append(encoding);\n\t\t} else {\n\t\t\tsb.append(mimeType);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\n\t\tif (contentLength != null) {\n\t\t\tsb.append(CONTENT_LENGTH_ADDON);\n\t\t\tsb.append(contentLength);\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\n\t\tfor (var cookie : outputCookies) {\n\t\t\tsb.append(cookieOutput(cookie));\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\t\treturn sb.toString().getBytes(Charset.forName(DEFAULT_HEADER_CHARSET_NAME));\n\t}", "public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }", "private String GetThreeColHeader(String col1Title, String col2Title, String col3Title) {\n\t\t\n\t\tStringBuffer ret = new StringBuffer();\n\t\tEntItemReportPrint.COL3_ITEMNAME = this.charSize - EntItemReportPrint.FIXED_COL3_QTY - EntItemReportPrint.FIXED_COL3_TOTAL;\n\t\tString title1 = StringUtil.padRight(col1Title, EntItemReportPrint.COL3_ITEMNAME);\n\t\tString title2 = StringUtil.padRight(col2Title, EntItemReportPrint.FIXED_COL3_QTY);\n\t\tString title3 = StringUtil.padLeft(col3Title, EntItemReportPrint.FIXED_COL3_TOTAL);\n\t\tret.append(title1).append(title2).append(title3).append(reNext);\n\n\t\treturn ret.toString();\n\t}", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}", "abstract public void header();", "String toSql();", "public String getTitle()\n {\n return \"LAB: DB Cross Site Scripting (XSS)\";\n }", "private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, \r\n\t\t\t\t\t\t\t\t\t\t\tReportFile file, int table)\r\n\t{\r\n\t\t// Retrieve variable count\r\n\t\tArrayList<Integer> discValues = solution.getSolution().getDiscValues();\r\n\t\tArrayList<Double> contValues = solution.getSolution().getContValues();\r\n\t\t\r\n\t\tint total = 2;\r\n\t\tint discCount = discValues == null ? 0 : discValues.size();\r\n\t\tint contCount = contValues == null ? 0 : contValues.size();\r\n\t\t\r\n\t\ttotal += discCount;\r\n\t\ttotal += contCount;\r\n\t\t\r\n\t\tString[] line1 = new String[total];\r\n\t\tString[] line2 = new String[total];\r\n\t\tString fitnessHeader = solution.getSolution().getReportHeader();\r\n\t\tString space = \"\";\r\n\t\tfor(int i = 0 ; i < fitnessHeader.split(\"\\t\").length - 1 ; i++)\r\n\t\t\tspace += \"\\t\";\r\n\t\t\r\n\t\tline1[0] = \"\\t\\t\";\r\n\t\tline1[1] = space;\r\n\t\tline2[0] = SOLUTIONS_ID + \"\\t\" + INNER_CYCLE_ID + \"\\t\" + GENERATORS_ID;\r\n\t\tline2[1] = fitnessHeader;\r\n\t\t\r\n\t\tint index = 2;\r\n\t\tint variableIndex = 0;\r\n\t\t\r\n\t\t// Add header for discrete variables\r\n\t\tif(discCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = DISC_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getDiscVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + discCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getDiscVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header for continuous variables\r\n\t\tif(contCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = CONT_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getContVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + contCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getContVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header lines to report\r\n\t\tfile.addLineToTableHeader(table, line1);\r\n\t\tfile.addLineToTableHeader(table, line2);\r\n\t}", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "public String makeVerificationScript()\n {\n return weaveFreemarker(verificationTemplate, scriptParameters);\n }", "public String getHeadIncludes() {\n return (String) get(\"head_includes\");\n }", "public String getScriptPubKey() {\n return scriptPubKey;\n }", "private StringBuilder headerSetup(Meal meal) {\n StringBuilder mealHeader = new StringBuilder();\n\n mealHeader.append(meal.getDesc());\n mealHeader.append(\":\\n\");\n\n return mealHeader;\n }" ]
[ "0.61047584", "0.5610562", "0.5610444", "0.5609597", "0.55905145", "0.5412034", "0.5366467", "0.5351235", "0.53410363", "0.53275335", "0.5279621", "0.5265948", "0.5207564", "0.5095998", "0.5012046", "0.49844915", "0.4975761", "0.49179783", "0.49073154", "0.4904284", "0.48917875", "0.48832038", "0.48747152", "0.48668706", "0.4864532", "0.484774", "0.48434067", "0.48404866", "0.48398903", "0.48251313", "0.48241565", "0.48097226", "0.48089212", "0.47977817", "0.47894135", "0.47857124", "0.47789386", "0.47767508", "0.4776265", "0.47727197", "0.47665998", "0.47660673", "0.47648853", "0.4760241", "0.47548178", "0.47512543", "0.4748744", "0.47405824", "0.4738961", "0.47337922", "0.47105834", "0.47060955", "0.47012183", "0.46870038", "0.46812895", "0.46789315", "0.4677863", "0.4661906", "0.46577418", "0.46564195", "0.463761", "0.46341735", "0.46330547", "0.46273625", "0.46166417", "0.46144322", "0.46130544", "0.4611225", "0.46065357", "0.46010995", "0.4597328", "0.45913574", "0.45896307", "0.45819107", "0.45811984", "0.45801586", "0.457241", "0.4571501", "0.45709053", "0.45709053", "0.45709053", "0.45614552", "0.4559125", "0.4558577", "0.45577738", "0.45574903", "0.45544025", "0.45536983", "0.45450288", "0.45427775", "0.4539037", "0.4537366", "0.4537069", "0.4529042", "0.45288208", "0.45246226", "0.45245382", "0.45234594", "0.45199457", "0.45193377", "0.45191145" ]
0.0
-1
Returns a SQL script header to the passed script.
public String createAsString(DataModel dataModel, UserInformation userInfos, DBExecMode dbmode) { String script = new String(); for (String s : this.create(dataModel, userInfos, dbmode)) { script += s + "\n"; } return script; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}", "public String getCallHeader(DatabasePlatform platform) {\r\n return platform.getFunctionCallHeader();\r\n }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "private String getSQLScript() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer javaSb = new StringBuffer();\n\t\tsb.append(\"CREATE\").append(\" PROCEDURE \");\n\t\tString procedureName = procNameText.getText();\n\t\tif (procedureName == null) {\n\t\t\tprocedureName = \"\";\n\t\t}\n\t\tsb.append(QuerySyntax.escapeKeyword(procedureName)).append(\"(\");\n\t\tfor (Map<String, String> map : procParamsListData) {\n\t\t\t// \"PARAMS_INDEX\", \"PARAM_NAME\", \"PARAM_TYPE\", \"JAVA_PARAM_TYPE\"\n\t\t\tString name = map.get(\"0\");\n\t\t\tString type = map.get(\"1\");\n\t\t\tString javaType = map.get(\"2\");\n\t\t\tString paramModel = map.get(\"3\");\n\t\t\tString description = map.get(\"4\");\n\t\t\tsb.append(QuerySyntax.escapeKeyword(name)).append(\" \");\n\t\t\tif (!paramModel.equalsIgnoreCase(SPArgsType.IN.toString())) {\n\t\t\t\tsb.append(paramModel).append(\" \");\n\t\t\t}\n\t\t\tsb.append(type);\n\t\t\tif (isCommentSupport && StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t\tsb.append(\",\");\n\t\t\tjavaSb.append(javaType).append(\",\");\n\t\t}\n\t\tif (!procParamsListData.isEmpty()) {\n\t\t\tif (sb.length() > 0) {\n\t\t\t\tsb.deleteCharAt(sb.length() - 1);\n\t\t\t}\n\t\t\tif (javaSb.length() > 0) {\n\t\t\t\tjavaSb.deleteCharAt(javaSb.length() - 1);\n\t\t\t}\n\t\t}\n\t\tsb.append(\")\");\n\n\t\tsb.append(StringUtil.NEWLINE).append(\"AS LANGUAGE JAVA \").append(StringUtil.NEWLINE);\n\t\tString javaFuncName = javaNameText.getText();\n\t\tif (javaFuncName == null) {\n\t\t\tjavaFuncName = \"\";\n\t\t}\n\t\tsb.append(\"NAME '\").append(javaFuncName).append(\"(\").append(javaSb).append(\")\").append(\"'\");\n\t\tif (isCommentSupport) {\n\t\t\tString description = procDescriptionText.getText();\n\t\t\tif (StringUtil.isNotEmpty(description)) {\n\t\t\t\tdescription = String.format(\"'%s'\", description);\n\t\t\t\tsb.append(String.format(\" COMMENT %s\", StringUtil.escapeQuotes(description)));\n\t\t\t}\n\t\t}\n\t\treturn formatSql(sb.toString());\n\t}", "String getPostDeclareSql();", "String getInitSql();", "String getStartTransactionSql();", "final public SqlStatement ScriptStatement() throws ParseException {SqlStatement st = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USE:\n case CREATE:\n case DROP:\n case SET:\n case INSERT:\n case ALTER:\n case LOCK:\n case UNLOCK:\n case START:\n case COMMIT:\n case 117:{\n st = Statement();\n jj_consume_token(117);\n break;\n }\n case 0:{\n jj_consume_token(0);\n break;\n }\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn st;\n}", "private static String headerSummary() {\r\n\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\usepackage{rotating}\\n\";\r\n output += \"\\\\usepackage{textcomp}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }", "java.lang.String getHeaderTableId();", "private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }", "public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}", "java.lang.String getSqlCode();", "public abstract String header();", "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "public static String header(int homework, double project, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework);\n temp += projectLine(project);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }", "public String getScript() { \n\t\treturn null;\n\t}", "public String getSql() {\r\n String[] splitSql = this.origSql.split(\"\\\\Q\" + IN_PARAM_ESC + \"\\\\E\");\r\n StringBuffer compSql = new StringBuffer(splitSql[0]);\r\n Integer key = null;\r\n String value = IN_PARAM_ESC;\r\n for (int i = 1; i < splitSql.length && this.inMaxSqlLength(compSql.length()); i++) {\r\n key = new Integer(i);\r\n value = IN_PARAM_ESC;\r\n if (this.paramMap.containsKey(key)) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n compSql.append(splitSql[i]);\r\n }\r\n key = new Integer(splitSql.length);\r\n value = this.origSql.lastIndexOf(IN_PARAM_ESC) == (this.origSql.length() - 1) ?\r\n IN_PARAM_ESC : \"\";\r\n if (this.paramMap.containsKey(key) && this.inMaxSqlLength(compSql.length())) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n \r\n if (!this.inMaxSqlLength(compSql.length())) {\r\n compSql.delete(this.maxSqlLength, compSql.length());\r\n compSql.append(INCOMPLETE);\r\n }\r\n \r\n return compSql.toString();\r\n }", "java.lang.String getHeader();", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public PreparedSql generatePreparedSql(String prefix);", "private static String getCreateQuery(String tableName,String CSVHeader){\n\n\t\tString query=\"create table \"+tableName +\"(\";\n\t\tString columns[]=CSVHeader.split(\",\");\n\t\tfor(int i=0;i<columns.length-1;i++){\n\t\t\tquery+=columns[i]+\" string,\";\n\t\t}\n\t\tquery+=columns[columns.length-1]+\" string)\";\n\t\tquery+=\" row format delimited fields terminated by ',' stored as textfile\";\n\t\t// System.out.println(query);\n\t\treturn query;\n\t}", "public static String getHeader() {\n return \"S I R\";\n }", "public String createCommandLine(IngresVectorwiseLoaderMeta meta) throws KettleException\n {\n StringBuffer sb = new StringBuffer(300);\n \n if ( !Const.isEmpty(meta.getSqlPath()) )\n {\n try\n {\n FileObject fileObject = KettleVFS.getFileObject(environmentSubstitute(meta.getSqlPath()), getTransMeta());\n String sqlexec = Const.optionallyQuoteStringByOS(KettleVFS.getFilename(fileObject));\n sb.append(sqlexec);\n //sql @tc-dwh-test.timocom.net,tcp_ip,VW[ingres,pwd]::dwh\n }\n catch ( KettleFileException ex )\n {\n throw new KettleException(\"Error retrieving 'sql' command string\", ex);\n } \n }\n else\n {\n if(isDetailed()) logDetailed( \"sql defaults to system path\");\n sb.append(\"sql\");\n }\n\n DatabaseMeta dm = meta.getDatabaseMeta();\n if ( dm != null )\n {\n if(meta.isUseDynamicVNode()){\n //logical portname in JDBC use a 7\n String port = environmentSubstitute(Const.NVL(dm.getDatabasePortNumberString(), \"\")).replace(\"7\", \"\");\n String userName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getUsername(), \"\"));\n String passWord = Encr.decryptPasswordOptionallyEncrypted(environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getPassword(), \"\")));\n String hostName = environmentSubstitute(Const.NVL(dm.getDatabaseInterface().getHostname(), \"\"));\n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n \n sb.append(\" @\").append(hostName).append(\",\").append(port).append(\"[\").append(userName).append(\",\").append(passWord).append(\"]::\").append(dnName);\n }\n else{\n // Database Name\n // \n String dnName = environmentSubstitute(Const.NVL(dm.getDatabaseName(), \"\"));\n sb.append(\" \").append(dnName);\n }\n }\n else\n {\n throw new KettleException(\"No connection specified\");\n }\n\n return sb.toString(); \n }", "com.google.protobuf.ByteString getScript();", "public String getScriptName() {\n\t\treturn scriptName;\n\t}", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "public PreparedSql generatePreparedSql(BoundString prefix);", "public String getName() { return _sqlName; }", "public String getScriptAsString() {\n return this.script;\n }", "public String getHeaderLine() {\r\n\t\tif(header == null)return \"\";\r\n\t\treturn header;\r\n\t}", "private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }", "public String buildColumnHeader() {\n if (padder == null) {\n return this.destColumnName;\n }\n return padder.doPadding(this.destColumnName);\n }", "public String getScript() {\n return script;\n }", "private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static String getPeptideHeader() {\r\n return \"Spectrum\" + SEP\r\n + \"Peptide Sequence\" + SEP\r\n + \"No. Peptide Spectrum Matches\" + SEP\r\n + \"Protein Accession\" + SEP\r\n + \"Protein Description\" + SEP;\r\n }", "String getHeader(String headerName);", "public String getHeader();", "private String createStandardGZFieldColumnHeadings()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (str.length() != 0)\n\t\t\t{\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t\tstr.append(entry.getKey());\n\t\t\tstr.append(\" IS '\");\n\t\t\tstr.append(getColumnHeadingFromStringArray(entry.getValue()));\n\t\t\tstr.append(\"'\");\n\n\t\t}\n\t\treturn str.toString();\n\t}", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }", "private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}", "private String getStatement(String argSqlMapId) {\r\n\t\tif (StringUtils.isEmpty(argSqlMapId)) {\r\n\t\t\treturn argSqlMapId;\r\n\t\t} else {\r\n\t\t\tint index = argSqlMapId.lastIndexOf(\".\");\r\n\t\t\tif (index > 0) {\r\n\t\t\t\treturn argSqlMapId.substring(index + 1);\r\n\t\t\t} else {\r\n\t\t\t\treturn argSqlMapId;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public abstract String getHeaderRow();", "public void setScriptSQL(String pInst)\r\n {\r\n this.scriptSQL = pInst;\r\n }", "private static final String \r\n getAERenderPythonLaunchHeader() \r\n {\r\n return \r\n (\"import subprocess;\\n\" +\r\n \"import sys;\\n\\n\" +\r\n \"def launch(program, args):\\n\" +\r\n \" a = [program] + args\\n\" +\r\n \" print('RUNNING: ' + ' '.join(a))\\n\" +\r\n \" sys.stdout.flush()\\n\" + \r\n \" result = subprocess.call(a)\\n\" +\r\n \" if result != 0 and result != 9:\\n\" +\r\n \" sys.exit(' FAILED: Exit Code = ' + str(result));\\n\\n\");\r\n }", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "public String getDeleteByIdSql() {\r\n\t\treturn \"delete from SHXXB where XH=?\";\r\n\t}", "String getHeadLiteral();", "protected String getInsertionSQL() {\n\t\treturn queryData.getString(\"InsertionSQL\");\n\t}", "public String getSql() {\n return sql;\n }", "public String generateSQL(String database) {\n//\t\tString sql = \"select requesttext from dbc.tables order by createtimestamp\";\n\t\tString sql = CommonConfig.sqlQueryDDL(database);;\n//\t\tif (database!=null && !database.equals(\"\")) {\n//\t\t\tsql = \"select requesttext from dbc.tables where databasename='\"+database+\"' order by createtimestamp\";\n//\t\t}\n \t\treturn sql;\n \t}", "public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }", "String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }", "public static String headerString(final ArrayList<String> header) {\n requireGoodHeader(header);\n return Utils.join(DELIMITER, header);\n }", "public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}", "String getSqlForExternalTool(Alias alias, String sql, SqlParser parser);", "public static String header(int homework, String homeworkDescription, \n double project, String projectDescription, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework, homeworkDescription);\n temp += projectLine(project, projectDescription);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }", "com.google.protobuf.ByteString getSqlCodeBytes();", "public final void header() throws RecognitionException {\n\t\tToken ACTION3=null;\n\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:83:8: ( '@header' ACTION )\n\t\t\t// org/antlr/gunit/gUnit.g:83:10: '@header' ACTION\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_header157); \n\t\t\tACTION3=(Token)match(input,ACTION,FOLLOW_ACTION_in_header159); \n\n\t\t\t\t\tint pos1, pos2;\n\t\t\t\t\tif ( (pos1=(ACTION3!=null?ACTION3.getText():null).indexOf(\"package\"))!=-1 && (pos2=(ACTION3!=null?ACTION3.getText():null).indexOf(';'))!=-1 ) {\n\t\t\t\t\t\tgrammarInfo.setGrammarPackage((ACTION3!=null?ACTION3.getText():null).substring(pos1+8, pos2).trim());\t// substring the package path\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.err.println(\"error(line \"+ACTION3.getLine()+\"): invalid header\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "StringBuffer getSparqlHeader(StringBuffer sb) {\r\n \tString SPACE = KeywordPP.SPACE;\r\n \tList<Constant> from = getFrom();\r\n \tList<Constant> named = getNamed();\r\n \tList<Variable> select = getSelectVar();\r\n\r\n \t// Select\r\n \tif (isSelect()) {\r\n \t\tsb.append(KeywordPP.SELECT + SPACE);\r\n \t\t\r\n \t\tif (isDebug())\r\n \t\t\tsb.append(KeywordPP.DEBUG + SPACE);\r\n \t\t\r\n \t\tif (isMore())\r\n \t\t\tsb.append(KeywordPP.MORE + SPACE);\r\n \t\t\r\n \t\tif (isDistinct())\r\n \t\t\tsb.append(KeywordPP.DISTINCT + SPACE);\r\n\r\n \t\tif (isSelectAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t}\r\n \t\t\r\n \t\tif (select != null && select.size()>0){\r\n \t\t\tfor (Variable s : getSelectVar()){\r\n \r\n \t\t\t\tif (getExpression(s) != null) {\r\n \t\t\t\t\texpr(getExpression(s), s, sb);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tsb.append(s);\r\n \t\t\t\t}\r\n sb.append(SPACE);\r\n \t\t\t}\r\n \t\t} \r\n \t\t\r\n \t} \r\n \telse if (isAsk()) {\r\n \t\tsb.append(KeywordPP.ASK + SPACE);\r\n \t} \r\n \telse if (isDelete()) {\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n\t\t\t}\r\n \t\tgetDelete().toString(sb);\r\n \t\t\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse if (isConstruct()) {\r\n \t\tif (isInsert()){\r\n \t\t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\t\tif (isInsertData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getConstruct() != null){\r\n \t\tsb.append(KeywordPP.CONSTRUCT + SPACE); \r\n \t\tgetConstruct().toString(sb); \r\n \t\t}\r\n \t\telse if (getInsert() != null){\r\n \t\tsb.append(KeywordPP.INSERT + SPACE); \r\n \t\tgetInsert().toString(sb); \r\n \t\t}\r\n \t\telse if (getDelete() != null){\r\n \t\tsb.append(KeywordPP.DELETE + SPACE); \r\n \t\tif (isDeleteData()){\r\n \t\t\tsb.append(KeywordPP.DATA + SPACE); \r\n \t\t\t}\r\n \t\tgetDelete().toString(sb); \r\n \t\t}\r\n \t} \r\n \telse if (isDescribe()) {\r\n \t\tsb.append(KeywordPP.DESCRIBE + SPACE);\r\n \t\t\r\n \t\tif (isDescribeAll()) {\r\n \t\t\tsb.append(KeywordPP.STAR + SPACE);\r\n \t\t} \r\n \t\telse if (adescribe != null && adescribe.size()>0) {\r\n\r\n \t\t\tfor (Atom at : adescribe) {\r\n \t\t\t\tat.toString(sb);\r\n \t\t\t\tsb.append(SPACE);\r\n \t\t\t}\r\n \t\t}\r\n \t} \r\n \t\r\n \t// DataSet\r\n \t//if (! isConstruct()) // because it's already done in the construct case\r\n \t\tsb.append(NL);\r\n \t\r\n \t// From\r\n \tfor (Atom name: from) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// From Named\r\n \tfor (Atom name : named) {\r\n \t\tsb.append(KeywordPP.FROM + SPACE + KeywordPP.NAMED + SPACE);\r\n \t\tname.toString(sb);\r\n \t\tsb.append(NL);\r\n \t}\r\n \t\r\n \t// Where\r\n \tif ((! (isDescribe() && ! isWhere())) && ! isData() ){\r\n \t\tsb.append(KeywordPP.WHERE + NL) ; \r\n \t}\r\n\r\n \treturn sb;\r\n }", "public String filename()\n throws IllegalStateException\n {\n switch ( this )\n {\n case INFO:\n return \"infoCards.cypher\";\n case OPENPIPE_RESET:\n return \"openPipe-reset.cypher\";\n case OPENPIPE_SYNC:\n return \"openPipe-sync.cypher\";\n case OPENPIPE_TOPICIMG:\n return \"openPipe-topicImage.cypher\";\n case OPENPIPE_FOLDERS:\n return \"openPipe-folders.cypher\";\n case OPENPIPE_SETTINGS:\n return \"openPipe-settings.cypher\";\n case FULLSYNC:\n return \"openPipe-fullsync.cypher\";\n }\n\n throw new IllegalStateException( \"Unknown CypherScript \" + this );\n }", "public String getHeaderText(){\n\t\treturn headerText.toString();\n\t}", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "String getDeclareCursorEndSql();", "@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}", "public String getMainSql()\n\t{\n\t\tif (m_sql == null)\n\t\t\treturn m_sqlOriginal;\n\t\t\t\n\t\tif (m_sql.length == 1)\n\t\t\treturn m_sql[0];\n\t\tfor (int i = m_sql.length-1; i >= 0; i--)\n\t\t{\n\t\t\tif (m_sql[i].charAt(0) != '(')\n\t\t\t\treturn m_sql[i];\n\t\t}\n\t\treturn \"\";\n\t}", "public String getPreparedSql() {\r\n return this.origSql;\r\n }", "ColumnNames createColumnNames();", "public String getSQLString () {\n \treturn statementString;\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "private static String getPSMHeader() {\r\n return \"PSM No.\" + SEP\r\n + \"Spectrum title\" + SEP\r\n + \"Peptide Sequence\" + SEP\r\n + \"Protein Accession\" + SEP\r\n + \"Intensity Score\" + SEP\r\n + \"Matched Peaks\" + SEP;\r\n }", "private void setScriptFormatCorrectly()\n\t{\n\t\tint scriptFormatNeeded = 0;\n\t\tif(isMime(m_databaseFile, GZIP_MAGIC_NUMBERS))\n\t\t{\n\t\t\tm_logger.debug(\"Database is gzipped\");\n\t\t\tscriptFormatNeeded = 3;\n\t\t}\n\t\t\n\t\tboolean propsExists = Files.exists(m_databasePropertiesFile);\n\t\t\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t properties.load(new FileInputStream(m_databasePropertiesFile.toFile()));\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t\tproperties.setProperty(\"hsqldb.script_format\", \"\" + scriptFormatNeeded);\n\t\tif(! propsExists) // write other info\n\t\t{\n\t\t\tproperties.setProperty(\"version\",\"2.2.8\");\n\t\t\tproperties.setProperty(\"modified\", \"yes\");\n\t\t}\n\t\t\n\t\t// Write properties file.\n\t\ttry {\n\t\t properties.store(new FileOutputStream(m_databasePropertiesFile.toFile()), null);\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t}", "public String getStatement();", "public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }", "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "public StaticScript script(String script) {\n this.script = script;\n return this;\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "public String getPreSQL()\n {\n return _get_imfObject().getPreSQL();\n }", "private void createTableHeaderFile(final Class Class_, final String simpleName) throws IOException{\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Get the content file\n final String contentFileTableHeader = this.getContentTableHeader(simpleName,propertyNames); \n \n //Create the path\n final String className = simpleName + \"sTableHeader\"; \n final String tableHeaderPath = \"../era_views/src/main/java/com/era/views/tables/headers\";\n final String finalClassPath = tableHeaderPath + \"/\" + className + \".java\";\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(contentFileTableHeader);\n }\n }", "String getSingleLinkerScriptFile();", "Script createScript();", "private void addColumnHeader(ColumnProfile p_cp, int p_index)\n {\n String colName = m_proxy.keyAt(p_index);\n if (colName == null)\n {\n colName = UNKNOWN;\n }\n addIndent();\n openStartTag(COLUMN);\n addSpace();\n addKeyValuePair(NAME, colName);\n addSpace();\n addKeyValuePair(TABLE_NAME, p_cp.getTableName());\n addSpace();\n addKeyValuePair(DATA_TYPE, p_cp.getDataType());\n addSpace();\n addKeyValuePair(MAX_LENGTH, \"\" + m_proxy.widthAt(p_index));\n addSpace();\n addKeyValuePair(RULE_ID, \"\" + p_cp.getRuleId());\n addSpace();\n addKeyValuePair(CONTENT_MODE, p_cp.CONTENT_MODES[p_cp.getContentMode() - 1]);\n closeTag();\n }", "@java.lang.Override\n public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n }\n }", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "private byte[] generateHeader() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(PROTOCOL_TAG);\n\t\tsb.append(' ');\n\t\tsb.append(statusCode);\n\t\tsb.append(' ');\n\t\tsb.append(statusText);\n\t\tsb.append(LINE_SEPARATOR);\n\t\tsb.append(CONTENT_TYPE_TAG);\n\t\tsb.append(' ');\n\t\t\n\t\tif (mimeType != null && mimeType.startsWith(MIME_TYPE_CHARSET_NEEDED)) {\n\t\t\tsb.append(mimeType);\n\t\t\tsb.append(MIME_TYPE_CHARSET_ADDON);\n\t\t\tsb.append(encoding);\n\t\t} else {\n\t\t\tsb.append(mimeType);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\n\t\tif (contentLength != null) {\n\t\t\tsb.append(CONTENT_LENGTH_ADDON);\n\t\t\tsb.append(contentLength);\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\n\t\tfor (var cookie : outputCookies) {\n\t\t\tsb.append(cookieOutput(cookie));\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\t\treturn sb.toString().getBytes(Charset.forName(DEFAULT_HEADER_CHARSET_NAME));\n\t}", "public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }", "private String GetThreeColHeader(String col1Title, String col2Title, String col3Title) {\n\t\t\n\t\tStringBuffer ret = new StringBuffer();\n\t\tEntItemReportPrint.COL3_ITEMNAME = this.charSize - EntItemReportPrint.FIXED_COL3_QTY - EntItemReportPrint.FIXED_COL3_TOTAL;\n\t\tString title1 = StringUtil.padRight(col1Title, EntItemReportPrint.COL3_ITEMNAME);\n\t\tString title2 = StringUtil.padRight(col2Title, EntItemReportPrint.FIXED_COL3_QTY);\n\t\tString title3 = StringUtil.padLeft(col3Title, EntItemReportPrint.FIXED_COL3_TOTAL);\n\t\tret.append(title1).append(title2).append(title3).append(reNext);\n\n\t\treturn ret.toString();\n\t}", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}", "abstract public void header();", "String toSql();", "public String getTitle()\n {\n return \"LAB: DB Cross Site Scripting (XSS)\";\n }", "private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, \r\n\t\t\t\t\t\t\t\t\t\t\tReportFile file, int table)\r\n\t{\r\n\t\t// Retrieve variable count\r\n\t\tArrayList<Integer> discValues = solution.getSolution().getDiscValues();\r\n\t\tArrayList<Double> contValues = solution.getSolution().getContValues();\r\n\t\t\r\n\t\tint total = 2;\r\n\t\tint discCount = discValues == null ? 0 : discValues.size();\r\n\t\tint contCount = contValues == null ? 0 : contValues.size();\r\n\t\t\r\n\t\ttotal += discCount;\r\n\t\ttotal += contCount;\r\n\t\t\r\n\t\tString[] line1 = new String[total];\r\n\t\tString[] line2 = new String[total];\r\n\t\tString fitnessHeader = solution.getSolution().getReportHeader();\r\n\t\tString space = \"\";\r\n\t\tfor(int i = 0 ; i < fitnessHeader.split(\"\\t\").length - 1 ; i++)\r\n\t\t\tspace += \"\\t\";\r\n\t\t\r\n\t\tline1[0] = \"\\t\\t\";\r\n\t\tline1[1] = space;\r\n\t\tline2[0] = SOLUTIONS_ID + \"\\t\" + INNER_CYCLE_ID + \"\\t\" + GENERATORS_ID;\r\n\t\tline2[1] = fitnessHeader;\r\n\t\t\r\n\t\tint index = 2;\r\n\t\tint variableIndex = 0;\r\n\t\t\r\n\t\t// Add header for discrete variables\r\n\t\tif(discCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = DISC_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getDiscVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + discCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getDiscVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header for continuous variables\r\n\t\tif(contCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = CONT_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getContVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + contCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getContVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header lines to report\r\n\t\tfile.addLineToTableHeader(table, line1);\r\n\t\tfile.addLineToTableHeader(table, line2);\r\n\t}", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "public String makeVerificationScript()\n {\n return weaveFreemarker(verificationTemplate, scriptParameters);\n }", "public String getHeadIncludes() {\n return (String) get(\"head_includes\");\n }", "public String getScriptPubKey() {\n return scriptPubKey;\n }", "private StringBuilder headerSetup(Meal meal) {\n StringBuilder mealHeader = new StringBuilder();\n\n mealHeader.append(meal.getDesc());\n mealHeader.append(\":\\n\");\n\n return mealHeader;\n }" ]
[ "0.61047584", "0.5610562", "0.5610444", "0.5609597", "0.55905145", "0.5412034", "0.5366467", "0.5351235", "0.53410363", "0.53275335", "0.5279621", "0.5265948", "0.5207564", "0.5095998", "0.5012046", "0.49844915", "0.4975761", "0.49179783", "0.49073154", "0.4904284", "0.48917875", "0.48832038", "0.48747152", "0.48668706", "0.4864532", "0.484774", "0.48434067", "0.48404866", "0.48398903", "0.48251313", "0.48241565", "0.48097226", "0.48089212", "0.47977817", "0.47894135", "0.47857124", "0.47789386", "0.47767508", "0.4776265", "0.47727197", "0.47665998", "0.47660673", "0.47648853", "0.4760241", "0.47548178", "0.47512543", "0.4748744", "0.47405824", "0.4738961", "0.47337922", "0.47105834", "0.47060955", "0.47012183", "0.46870038", "0.46812895", "0.46789315", "0.4677863", "0.4661906", "0.46577418", "0.46564195", "0.463761", "0.46341735", "0.46330547", "0.46273625", "0.46166417", "0.46144322", "0.46130544", "0.4611225", "0.46065357", "0.46010995", "0.4597328", "0.45913574", "0.45896307", "0.45819107", "0.45811984", "0.45801586", "0.457241", "0.4571501", "0.45709053", "0.45709053", "0.45709053", "0.45614552", "0.4559125", "0.4558577", "0.45577738", "0.45574903", "0.45544025", "0.45536983", "0.45450288", "0.45427775", "0.4539037", "0.4537366", "0.4537069", "0.4529042", "0.45288208", "0.45246226", "0.45245382", "0.45234594", "0.45199457", "0.45193377", "0.45191145" ]
0.0
-1
if your exception object have a message then to string method show it
public static void main(String[] args) { System.out.println(3+5*9-7); int i1 = 1; int i2 = 1; if(i1 == i2){ System.out.println("equal"); } List<String> stringList = new ArrayList<String>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\n {\n if (exception != null) {\n return exception.toString();\n } else {\n return super.toString();\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}", "String getException();", "String getException();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "@Override\r\n\tpublic String toString() {\n\t\treturn \"com.cg.Exercise4Exception\"+super.getMessage();\r\n\t}", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "String getMessage();", "String getMessage();", "String getMessage();", "public String getMessage ()\n {\n String message = super.getMessage();\n\n if (message == null && exception != null) {\n return exception.getMessage();\n } else {\n return message;\n }\n }", "protected abstract String getMessage();", "public abstract String getMessage();", "protected static String setMessage(Exception exception) {\n if (exception != null) {\n if (exception instanceof ProjectCommonException) {\n return exception.getMessage();\n } else if (exception instanceof akka.pattern.AskTimeoutException) {\n return \"Request timed out. Please try again.\";\n }\n }\n return \"Something went wrong while processing the request. Please try again.\";\n }", "@Override\r\n public String toString() {\r\n String s = \"Unknown Error\";\r\n String message = getLocalizedMessage();\r\n return (message != null) ? (message) : s;\r\n }", "protected String doErrorMessage(Exception e){\n\t\treturn \"{ \\\"ERROR\\\": \\\"\"+ e.getMessage() + \"\\\"}\" ;\n\t}", "public static String displayError(Exception e) {\r\n\t\t\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\te.printStackTrace(new PrintWriter(sw));\r\n\t\tString ret_str = sw.toString();\r\n\t\t\r\n\t\treturn ret_str;\r\n\t}", "String getCauseException();", "@Override\n public String getMessage(){\n \n }", "public String simple() {\r\n return super.getMessage();\r\n }", "public String toString() {\n\t\treturn getMessage();\n\t}", "protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);", "public static String exceptionTypeAndMsg(Exception e) {\n return e.getClass() + \" : \" + e.getMessage();\n }", "void showErrorMsg(String string);", "String buildUserMessage(Throwable t);", "public String getMessage(){\n String messageOut=\"Error\";\n if(this.akun instanceof Savings && akun instanceof Investment==false){\n messageOut=\"Savings\";\n }\n else if (this.akun instanceof Investment && akun instanceof Investment==true){\n messageOut=\"Investment\";\n }\n else if (this.akun instanceof LineOfCredit){\n messageOut=\"Line-Of-Credit\";\n }\n else if (this.akun instanceof OverDraftProtection){\n messageOut=\"Overdraft\";\n }\n return super.getMessage()+ messageOut;\n }", "String getInvalidMessage();", "String errorMessage();", "public String getMessage()\n {\n return super.getMessage()+promo_error+\"not found\";\n }", "public interface UserExceptionMessage {\n String getMessage();\n}", "void showError(String message);", "void showError(String message);", "private String formatError(String message) {\n return \"error : \" + message;\n }", "public String getMessage() {\n\t\tif (iCause == null) { return super.getMessage(); }\n\t\treturn super.getMessage() + \"; nested exception is: \\n\\t\" + iCause.toString();\n\t}", "@Override\n public String getMessage()\n {\n return message;\n }", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "public void message(String message, Throwable t);", "private static String getExceptionMessage(final Throwable throwable) {\n String message = null;\n if (throwable != null) {\n if (!isEmpty(throwable.getMessage())) {\n message = throwable.getMessage();\n } else if (throwable.getCause() != null) {\n message = getExceptionMessage(throwable.getCause());\n }\n }\n return message;\n }", "void showResultMoError(String e);", "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"홀수입력 !!\";\r\n\t}", "String message() {\n if (arguments == null || arguments.length == 0) return message; // most case, message is from exception, and without no arguments\n\n var builder = new StringBuilder(256);\n LogManager.FILTER.append(builder, message, arguments);\n return builder.toString();\n }", "@Override\n public final String toString() {\n return ErrorMessages.invalidOperation(getMessage());\n }", "public String getMessage()\n {\n return super.getMessage() + invoice_error + \" not found\";\n }", "public String getMessage() throws FIFException {\n return text;\n }", "@Override\n\tpublic String getMessage() throws WebApplicationException{\n\t\tString msg=\"\";\n\t\ttry{\n\t\tmsg= storeBusiness.getMessage();\n\t\t}catch(StoreException e)\n\t\t{\n\t\t\tthrowException(e.getStoreDetails());\n\t\t}\n\t\treturn msg;\n\t}", "static String getExtendedThrowableMessage(Throwable throwable) {\n StringBuilder messageBuilder = new StringBuilder();\n if (throwable == null) {\n return \"\";\n }\n messageBuilder.append(throwable.getClass().getName()).append(\": \");\n messageBuilder.append(throwable.getMessage());\n Throwable cause = throwable.getCause();\n while (cause != null) {\n if (!isDelimiter(messageBuilder.charAt(messageBuilder.length()-1))) {\n messageBuilder.append(\".\");\n }\n messageBuilder.append(\" Caused by \")\n .append(cause.getClass().getName())\n .append(\": \")\n .append(cause.getMessage());\n cause = cause.getCause();\n }\n return messageBuilder.toString();\n }", "public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}", "Object getMessage();", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "public static String getException(Throwable throwable) {\n StringBuilder sb = new StringBuilder();\n sb.append((null == throwable.getMessage()) ? \" General Error\" : throwable.getMessage());\n if (null != throwable.getCause()) {\n sb.append('\\n');\n sb.append(\"Cause:\");\n sb.append('\\n');\n sb.append(throwable.getCause().getMessage());\n }\n\n return sb.toString();\n }", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "private String appendExtendedExceptionMsg(String msg, SQLException sqle){\r\n final String GETSQLCA =\"getSqlca\";\r\n String exceptionMsg = new String();\r\n try {\r\n Method sqlcaM2 = sqle.getNextException().getClass()\r\n .getMethod(GETSQLCA,null);\r\n Object sqlca = sqlcaM2.invoke(sqle.getNextException(),\r\n new Object[] {});\r\n Method getSqlErrpMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrp\", null);\r\n Method getSqlWarnMethd = sqlca.getClass().\r\n getMethod(\"getSqlWarn\", null);\r\n Method getSqlErrdMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrd\", null);\r\n exceptionMsg = exceptionMsg.concat( \"SQLCA OUTPUT\" + \r\n \"[Errp=\" +getSqlErrpMethd.invoke(sqlca,new Object[]{})\r\n + \", Errd=\" + Arrays.toString((int[])\r\n (getSqlErrdMethd.invoke(sqlca, new Object[]{}))));\r\n String Warn = new String((char[])getSqlWarnMethd.\r\n invoke(sqlca, new Object[]{}));\r\n if(Warn.trim().length() != 0)\r\n exceptionMsg = exceptionMsg.concat(\", Warn=\" +Warn + \"]\" ); \r\n else\r\n exceptionMsg = exceptionMsg.concat( \"]\" ); \r\n msg = msg.concat(exceptionMsg);\r\n return msg;\r\n } catch (Throwable t) {\r\n return sqle.getMessage();\r\n }\r\n }", "static String handleStackTrace(Throwable ex){\n // add the stack trace message\n StringBuilder builder = new StringBuilder(SPACE);\n builder.append(ex.getMessage());\n builder.append(NEWLINE);\n\n // add each line of the stack trace.\n for (StackTraceElement element : ex.getStackTrace()){\n builder.append(SPACE);\n builder.append(element.toString());\n builder.append(NEWLINE);\n }\n return builder.toString();\n }", "protected void displayErrorMessage(String message, Exception ex) {\n JPanel messagePanel = new JPanel(new BorderLayout()); \n JLabel label = new JLabel(message);\n messagePanel.add(label);\n if (ex != null) {\n JComponent panel = new JXPanel(new BorderLayout());\n panel.setBorder(new RoundedBorder());\n \n // remind(aim): provide way to allow user to see exception only if desired\n StringWriter writer = new StringWriter();\n ex.printStackTrace(new PrintWriter(writer));\n JTextArea exceptionText = new JTextArea();\n exceptionText.setText(\"Cause of error:\\n\" +\n writer.getBuffer().toString());\n exceptionText.setBorder(new RoundedBorder());\n exceptionText.setOpaque(false);\n exceptionText.setBackground(\n Utilities.deriveColorHSB(UIManager.getColor(\"Panel.background\"),\n 0, 0, -.2f));\n JScrollPane scrollpane = new JScrollPane(exceptionText);\n scrollpane.setBorder(EMPTY_BORDER);\n scrollpane.setPreferredSize(new Dimension(600,240));\n panel.add(scrollpane);\n messagePanel.add(panel, BorderLayout.SOUTH); \n }\n JOptionPane.showMessageDialog(getMainFrame(), messagePanel, \n resourceMap.getString(\"error.title\"),\n JOptionPane.ERROR_MESSAGE);\n \n }", "public String toString() {\n if (!isException) {\n return \"SUCCESS(\" + value + \")\";\n } else {\n return \"FAILURE(\" + ex + \")\";\n }\n }", "@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}", "private static String getHtmlMessage(final String header, final Exception e) {\n final StringBuilder buffer = new StringBuilder(100).append(\"<html>\").append(header)\n .append(\"<br><b>\").append(e.getClass().getSimpleName()).append(\"</b>\");\n String message = e.getLocalizedMessage();\n if (message != null) {\n message = message.replace(\"&\", \"&amp;\").replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\").replace(\"\\\"\", \"&quot;\");\n buffer.append(\": \").append(message);\n }\n return buffer.append(\"</html>\").toString();\n }", "public void testPersistenceExceptionStringAccuracy() {\r\n //Construct PersistenceException with a detail message\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n assertEquals(\"Detailed error message should be identical.\", DETAIL_MESSAGE, exception.getMessage());\r\n }", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n public String getMessage() {\n return message;\n }", "public String toString() {\n return (\"AgentException occurred with cause: \" + cause);\n }", "java.lang.String getErrmsg();", "public String toString()\n {\n return \"<ERROR>\";\n }", "private String toString(final Throwable throwable) {\n final StringWriter writer = new StringWriter();\n final PrintWriter printer = new PrintWriter(writer);\n throwable.printStackTrace(printer);\n return writer.toString();\n }", "@Override\n public String getMessage() {\n return message;\n }", "public void testPersistenceExceptionStringThrowableAccuracy() {\r\n //Construct PersistenceException with a detail message and a cause\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE, CAUSE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n\r\n //altered message is the result of a modification to the BaseException component.\r\n assertEquals(\"Detailed error message with cause should be correct.\", DETAIL_MESSAGE + \", caused by null\",\r\n exception.getMessage());\r\n\r\n //Verify that there is a cause\r\n assertNotNull(\"Should have cause.\", exception.getCause());\r\n assertTrue(\"Cause should be identical.\", CAUSE == exception.getCause());\r\n }", "String getFailureMessage();", "@Override\n public String getMessage() {\n return super.getMessage() + bonus_error + \"Not Found\";\n }", "public String getMessage() {\n return null;\n }", "public String getExceptionMessage(Exception e)\n {\n String s = e.getMessage();\n\n return (s == null) ? \"\" : \": \" + s;\n }", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "void errorMsg(Exception e) {\n if (e.getMessage() == null) {\n errorMsg(e.getClass().getName());\n } else {\n errorMsg(e.getClass().getName() + \":\" + e.getMessage());\n }\n }" ]
[ "0.7649154", "0.7607391", "0.7020797", "0.7020797", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.7009241", "0.70064706", "0.69198406", "0.69198406", "0.69198406", "0.69198406", "0.69198406", "0.69198406", "0.69198406", "0.69138616", "0.69138616", "0.69138616", "0.68865085", "0.6728506", "0.6728178", "0.6691041", "0.6674386", "0.6659903", "0.6637135", "0.66176367", "0.6592055", "0.6583011", "0.65824234", "0.65685624", "0.6564309", "0.6550474", "0.6534281", "0.65125734", "0.6476096", "0.6475239", "0.64711326", "0.6459362", "0.6459063", "0.6459063", "0.6434795", "0.64251006", "0.64044595", "0.6386665", "0.6385506", "0.63566744", "0.63502985", "0.63350445", "0.63205206", "0.63135993", "0.6306138", "0.630009", "0.63000643", "0.62994903", "0.62989664", "0.6260425", "0.6257976", "0.6251891", "0.62512803", "0.6242324", "0.6237873", "0.6228124", "0.62253076", "0.62187654", "0.6196713", "0.6187997", "0.61821365", "0.6177984", "0.6169442", "0.61665297", "0.6152891", "0.61419815", "0.61415946", "0.61385196", "0.61344635", "0.61192626", "0.6104724", "0.609459", "0.6086524", "0.60858595", "0.6080609", "0.60791075", "0.60791075", "0.60791075", "0.60791075", "0.6074598", "0.6071184" ]
0.0
-1
Created by Yusiry Davids on 11/22/2015.
public interface ForumService { List<Forum> getForums(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "private void init() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo6081a() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void initialize() { \n }", "private TMCourse() {\n\t}", "public Pitonyak_09_02() {\r\n }", "protected void mo6255a() {\n }", "Petunia() {\r\n\t\t}" ]
[ "0.61597997", "0.61070496", "0.5962618", "0.59556943", "0.5936194", "0.59345067", "0.59345067", "0.5924046", "0.5860253", "0.58478475", "0.5802541", "0.57480013", "0.57416123", "0.5713371", "0.5704502", "0.57012767", "0.56950885", "0.567625", "0.5672942", "0.567074", "0.567074", "0.567074", "0.567074", "0.567074", "0.56690997", "0.5668011", "0.56666166", "0.5665012", "0.56624305", "0.56624305", "0.5655257", "0.5641367", "0.5640221", "0.56388026", "0.5634717", "0.5634717", "0.56286985", "0.56198215", "0.56198215", "0.56198215", "0.56198215", "0.56198215", "0.56198215", "0.56082535", "0.5597014", "0.55927455", "0.5583947", "0.55798006", "0.5571271", "0.5569784", "0.55518633", "0.5548345", "0.55459386", "0.5545775", "0.55365187", "0.5529937", "0.5529937", "0.5529937", "0.5525551", "0.5525551", "0.5525551", "0.5517867", "0.5517604", "0.55112094", "0.55112094", "0.5510135", "0.55068666", "0.55068666", "0.55068666", "0.55039257", "0.5499234", "0.549419", "0.54921216", "0.5491569", "0.5491569", "0.5491569", "0.5491569", "0.5491569", "0.5491569", "0.5491569", "0.54912907", "0.5488153", "0.54752755", "0.5473403", "0.54655427", "0.5460466", "0.5458526", "0.5450464", "0.5448083", "0.5439034", "0.5439034", "0.5435675", "0.5435483", "0.54333514", "0.54207623", "0.54200906", "0.5415589", "0.5397827", "0.5390058", "0.5384198", "0.538297" ]
0.0
-1
Constructor Create attribute panel
public NumberAttributePanel(JSONInheritance json_inheritance) { super(json_inheritance); GridBagLayout gridBagLayout = (GridBagLayout) getLayout(); gridBagLayout.columnWeights = new double[] { 1.0 }; value_text_field = new JTextField(); GridBagConstraints gbc_value_text_field = new GridBagConstraints(); gbc_value_text_field.insets = new Insets(0, 0, 5, 5); gbc_value_text_field.fill = GridBagConstraints.HORIZONTAL; gbc_value_text_field.gridx = 0; gbc_value_text_field.gridy = 1; add(value_text_field, gbc_value_text_field); value_text_field.setColumns(10); value_text_field.setText(json_inheritance.getValue().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createAttributeChoices(Panel panel) {\n panel.add(new Label(\"Fill\"));\n fFillColor = createColorChoice(\"FillColor\");\n panel.add(fFillColor);\n\n //panel.add(new Label(\"Text\"));\n //fTextColor = createColorChoice(\"TextColor\");\n //panel.add(fTextColor);\n\n panel.add(new Label(\"Pen\"));\n fFrameColor = createColorChoice(\"FrameColor\");\n panel.add(fFrameColor);\n\n panel.add(new Label(\"Arrow\"));\n CommandChoice choice = new CommandChoice();\n fArrowChoice = choice;\n choice.addItem(new ChangeAttributeCommand(\"none\", \"ArrowMode\", new Integer(PolyLineFigure.ARROW_TIP_NONE), fView));\n choice.addItem(new ChangeAttributeCommand(\"at Start\", \"ArrowMode\", new Integer(PolyLineFigure.ARROW_TIP_START), fView));\n choice.addItem(new ChangeAttributeCommand(\"at End\", \"ArrowMode\", new Integer(PolyLineFigure.ARROW_TIP_END), fView));\n choice.addItem(new ChangeAttributeCommand(\"at Both\", \"ArrowMode\", new Integer(PolyLineFigure.ARROW_TIP_BOTH), fView));\n panel.add(fArrowChoice);\n\n panel.add(new Label(\"Font\"));\n fFontChoice = createFontChoice();\n panel.add(fFontChoice);\n }", "public PanelAmigo() {\n initComponents();\n \n }", "public LabelAttributesPanel() {\n initComponents();\n selectedModel = nodesToggleButton.getModel();\n elementButtonGroup.setSelected(selectedModel, true);\n nodesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (nodesToggleButton.isSelected()) {\n selectedModel = nodesToggleButton.getModel();\n refresh();\n }\n }\n });\n edgesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (edgesToggleButton.isSelected()) {\n selectedModel = edgesToggleButton.getModel();\n refresh();\n }\n }\n });\n showPropertiesCheckbox.setSelected(showProperties);\n showPropertiesCheckbox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n showProperties = showPropertiesCheckbox.isSelected();\n refresh();\n }\n });\n }", "AttributeLayout createAttributeLayout();", "public Panel() {\n }", "public MetadataPanel()\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }", "public AlumniDataPanel()\n {\n initComponents();\n }", "public Panel() {\n initComponents();\n\n\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "public AttributeContainer() {\n super();\n }", "public AttributeForm() \n {\n initComponents();\n mJerseyNumberUpDown.setModel(new SpinnerNumberModel(0,0,99,1));\n \n m_Parser = new InputParser();\n m_Attributes = new JComboBox[8];\n m_Attributes[0] = m_RSBox;\n m_Attributes[1] = m_RPBox;\n m_Attributes[2] = m_MSBox;\n m_Attributes[3] = m_HPBox;\n m_Attributes[4] = m_PS_BC_PI_KABox;\n m_Attributes[5] = m_PC_REC_QU_KABox;\n m_Attributes[6] = m_ACCBox;\n m_Attributes[7] = m_APBBox;\n\n m_SimAttrs = new JSpinner[4];\n m_SimAttrs[0] = m_Sim1UpDown;\n m_SimAttrs[1] = m_Sim2UpDown;\n m_SimAttrs[2] = m_Sim3UpDown;\n m_SimAttrs[3] = m_Sim4UpDown;\n \n m_DoneInit = true;\n setCurrentState(StateEnum.QB);\n \n }", "Attribute createAttribute();", "Attribute createAttribute();", "VisualizationAttribute createVisualizationAttribute();", "public DemoPanel() {\n }", "public DataSetPanel() {\n initComponents();\n }", "public DoilyPanel() {\n\t\tthis(new DoilySettings());\n\t}", "public Analizer() {\n initComponents();\n }", "public J3DAttribute () {}", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }", "public AdmissionDetails() {\n initComponents();\n }", "public AulaView() {\n initComponents();\n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }", "public AntelopePanel() {\n this( null, null, true );\n }", "public DrawPanel() {\n initComponents();\n }", "public AttributeSet() {\n\n elements = new Hashtable();\n }", "public AppoinmentPanel() {\n initComponents();\n }", "public PanelIconos() {\n initComponents();\n }", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "protected DistributionParameterPanel()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(this.width, this.height));\r\n\t}", "public Records_Panel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "public DetailsPanel( )\n {\n initComponents();\n }", "public AadharBarcodeFieldsPanel() {\n initComponents();\n }", "public PanelSgamacView1()\n {\n }", "public SkillPanel(Player p)\n\t{\n\t\tsuper(new FlowLayout());\n\t\tthis.setBackground(Color.BLACK);\n\t\tplayer = p;\n\t\tmenu = player.getSkillMenu();\n\t\tthis.add(menu);\n\t}", "public AltaCategoria() {\n initComponents();\n }", "public VerticalProfileControl() {\n setAttributeFlags(FLAG_COLOR | FLAG_DATACONTROL | FLAG_DISPLAYUNIT);\n }", "public PanelImage( )\r\n {\r\n JLabel image = new JLabel( );\r\n ImageIcon icon = new ImageIcon( \"./data/img/header.png\" );\r\n image = new JLabel( \"\" );\r\n image.setIcon( icon );\r\n add( image );\r\n }", "public WeaponPanel() {\n initComponents();\n }", "Atributo createAtributo();", "public OptionPanel() {\n initComponents();\n }", "public LayerViewPanel()\r\n {\r\n \r\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public ControlPanel(String propFile) {\n super(propFile);\n frame = new JFrame(\"Control Panel\");\n frame.setPreferredSize(new Dimension(900, 500));\n frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n }", "public PrincipalPanel() {\n\t\tinitialize();\n\t}", "public AttributeEditPart(Attribute model) {\n\t\tsuper(model);\n\t}", "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }", "public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}", "public Attr() {\n\t\t\tsuper();\n\t\t}", "public Panel()\n/* */ {\n/* 56 */ this(new FlowLayout());\n/* */ }", "public Widget() {\r\n\t\t\r\n\t\twidgets = new LinkedHashMap<Component, String>();\r\n\t\t\r\n\t}", "public AnaPencere() {\n initComponents();\n }", "public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }", "public WithdrawPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public VirtualPanel() {}", "private Widget buildElementWithVSACValueSetWidget() {\r\n mainPanel = new VerticalPanel();\r\n mainPanel.getElement().setId(\"mainPanel_VerticalPanel\");\r\n mainPanel.setWidth(\"95%\");\r\n mainPanel.add(new SpacerWidget());\r\n mainPanel.add(new SpacerWidget());\r\n return mainPanel;\r\n }", "public MenuPanel() {\n initComponents();\n }", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }", "public TemporizadorPanel() {\n initComponents();\n }", "public illumPanelEdit1() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "public Ajuda() {\n initComponents();\n }", "public CreateNewEventJPanel() {\n }", "public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}", "public AttributeSet(Object elem) {\n\n elements = new Hashtable(1, 1);\n elements.put(elem, elem);\n }", "public AAccessLevel() {\n initComponents();\n }", "public ChooseParameterPanel() {\n initComponents();\n }", "public PanelControl() {\r\n initComponents();\r\n VersionEImageIcon versionEImageIcon = new VersionEImageIcon();\r\n versionEImageIcon.newColorFromPanel(panelColor);\r\n jLabel1.setText(INFO_LABEL);\r\n Usuario usuarioTipo = Login.getUsuario();\r\n this.administrador = usuarioTipo.isAdmin();\r\n if (!administrador)\r\n {\r\n rangos.setEnabled(false);\r\n controles.setEnabled(false);\r\n alta_usuarios.setEnabled(false);\r\n verificacion.setEnabled(false);\r\n }\r\n }", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "public vistaPanelPelicula() {\r\n initComponents();\r\n }", "public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }", "public ViewProperty() {\n initComponents();\n }", "public void initPanel(String attrib, int desired_width){\r\n\r\n slider = new JSlider(JSlider.HORIZONTAL,\r\n min, max, min);\r\n\r\n slider.addChangeListener(new SliderBarActionListener(this,attrib));\r\n\r\n slider.setMajorTickSpacing((max-min)/5);\r\n slider.setPaintTicks(true);\r\n\r\n //Create the label table\r\n Hashtable labelTable = new Hashtable();\r\n labelTable.put( new Integer( min ), new JLabel(\"\"+ min/precision));\r\n labelTable.put( new Integer( max ), new JLabel(\"\" + max/precision));\r\n slider.setLabelTable( labelTable );\r\n\r\n slider.setPaintLabels(true);\r\n\r\n Dimension currentsize = slider.getPreferredSize();\r\n currentsize.width = desired_width;\r\n currentsize.height = (DIM_HEIGHT/12) * 11;\r\n slider.setPreferredSize(currentsize);\r\n\r\n this.setLayout(new GridLayout(2,1));\r\n\r\n this.add(label, BorderLayout.NORTH);\r\n\r\n this.add(slider, BorderLayout.SOUTH);\r\n\r\n this.revalidate();\r\n }", "public anakP() {\n initComponents();\n }", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "public SequenceViewerPanel(Plasmid p) {\n plasmid = p;\n initComponents();\n initSequenceLabels();\n }", "public ModuleObjectAttributeItem() {}", "public Anggota() {\n initComponents();\n }", "public MedicalAssign()\n {\n initComponents();\n }", "public MetadataPanel(DAOSearchableElementsList sel, String rootElement, JPanel panel)\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }", "public HashDbSimplePanel() {\n initComponents();\n customizeComponents();\n }", "protected LPDMODOMAttribute() {\n }", "public Tool() {\n initComponents();\n }", "public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}", "public AttribInfo(){\n m_deprecated = false;\n m_hidden = false;\n m_multipleSelection = false;\n m_attributeValues = null;\n m_attributeValueMap = null;\n m_description = null;\n m_labelName = null;\n m_defaultValue = null;\n m_propertyMapKeyName = null;\n m_mapComponentClassName = null;\n m_preferredType = null;\n }", "public JavaPanel() {\n\t\tsuper();\n\t}", "public PanelAccountInfo() {\n initComponents();\n setTextFields();\n setLabels();\n }", "public SkillBar(WBC wbc){\n this.wbc=wbc;\n this.setLayout(null);\n \n setSkillUnable(0);\n setSkillUnable(1);\n setSkillUnable(2);\n setSkillUnable(3);\n \n skill1Label.setBounds( 0, 0, 154, 154);\n skill2Label.setBounds(154, 0, 154, 154);\n skill3Label.setBounds(308, 0, 154, 154);\n skill4Label.setBounds(462, 0, 154, 154);\n \n this.add(skill1Label); \n this.add(skill2Label);\n this.add(skill3Label);\n this.add(skill4Label);\n }", "public PanelCompra() {\n initComponents();\n lblNick.setText(PanelCuenta.cuenta.getNickName());\n lblNombre.setText(PanelCuenta.cuenta.getUsuario().getNombre());\n lblDireccion.setText(PanelCuenta.cuenta.getUsuario().getDireccion());\n llenarTabla();\n }", "public DadosVertice() {\n initComponents();\n }", "@Override\n public void setupPanel()\n {\n\n }", "public LookUpPanel() {\n initComponents(); \n }", "public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}", "protected abstract void setGUIAttributesHelper();", "private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }", "public FreimapVisualPanel2() {\n initComponents();\n }", "public CPanel(Application a, Class<? extends CCipher> Type) throws InstantiationException, IllegalAccessException {\n application = a;\n menu = new JPanel();\n content = Type.newInstance();\n hide = new JButton();\n opened = true;\n iClose = createIcon(\"icons:left\");\n iOpen = createIcon(\"icons:right\");\n initObjects();\n }" ]
[ "0.6777882", "0.65227264", "0.64300185", "0.64210045", "0.6324121", "0.6227406", "0.6221354", "0.62095857", "0.6174803", "0.61173826", "0.6097121", "0.6090106", "0.6090106", "0.60636544", "0.601074", "0.59893477", "0.5941723", "0.5938813", "0.5935953", "0.58706474", "0.58326954", "0.5829134", "0.5829065", "0.58180887", "0.5812214", "0.5792504", "0.5771642", "0.5764934", "0.57572293", "0.5756781", "0.5755697", "0.57512045", "0.5741679", "0.5737537", "0.573619", "0.572328", "0.57194513", "0.5697569", "0.569172", "0.5681543", "0.5680271", "0.56486326", "0.56476575", "0.56427366", "0.56399035", "0.56361014", "0.5635633", "0.56336594", "0.5633101", "0.5630196", "0.56198853", "0.5616162", "0.56151825", "0.5615105", "0.5609204", "0.55977947", "0.5591012", "0.5591012", "0.5590073", "0.55889744", "0.55868405", "0.5581207", "0.5580762", "0.5578013", "0.5575615", "0.55730397", "0.5572687", "0.5571442", "0.5562565", "0.55539113", "0.55509853", "0.5547372", "0.5547362", "0.55423886", "0.55333406", "0.5530195", "0.55285853", "0.5524172", "0.5522758", "0.55215573", "0.55197275", "0.5517983", "0.5515219", "0.5512438", "0.5512286", "0.5503502", "0.54982305", "0.5494328", "0.54931724", "0.54894674", "0.54867786", "0.5486517", "0.54841125", "0.54733175", "0.547207", "0.54707336", "0.5469436", "0.54691744", "0.54653627", "0.54626274", "0.54551286" ]
0.0
-1
package primarily for test without refactoring all gateways getUpdatesFromHost
public Map<String, String> processOrders(ICsvOrderImporter inCsvOrderImporter) throws JSchException, SftpException, IOException { Map<String, String> filesProcessed = new HashMap<>(); ChannelSftp sftp = connect(); try { ArrayList<String> filesToImport = retrieveImportFileList(sftp); // process all regular files found if(filesToImport.size() == 0) { LOGGER.info("No files to process at {}",getConfiguration().getUrl()); } else { int total = filesToImport.size(); for(int ix = 0; ix < total; ix++ ) { String filename = filesToImport.get(ix); filesProcessed.put(filename, null); try { Optional<String> finalPath = processImportFile(sftp, inCsvOrderImporter, filename); if (finalPath.isPresent()) { filesProcessed.put(filename, finalPath.get()); } } catch(Exception e) { LOGGER.warn("Unexpected exception processing file {} in gateway {}", filename, this.toSftpChannelDebug(), e); } } } } finally { disconnect(); } return filesProcessed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DescribeServiceUpdatesResult describeServiceUpdates(DescribeServiceUpdatesRequest describeServiceUpdatesRequest);", "com.google.search.now.wire.feed.mockserver.MockServerProto.MockUpdate getMockUpdates(int index);", "java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.MockUpdate> \n getMockUpdatesList();", "public synchronized void updateHosts() throws Exception {\r\n getHelper().update();\r\n }", "@Override\n\tpublic void checkUpdateClient() {\n\t}", "private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}", "public void receivedUpdateFromServer();", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "private void sendUpdateConnectionInfo() {\n\n }", "interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {\n }", "boolean requestRemoteUpdate(ITemplateKey key, PacketDistributor.PacketTarget target);", "boolean requestRemoteUpdate(ITemplateKey key);", "private void addUpdateAPI(FunctionGenerator fg) throws EQException\n\t{\n\t\tAPIFieldSet apiFieldSet = FunctionToolbox.getAPIFieldSet(session, \"LID\", \"MCD\", \"G01M\", \"Maintain Customer Details\", \"M\");\n\t\tfg.addUpdateAPIFieldSet(apiFieldSet);\n\t}", "@Override\n\tpublic void linkDiscoveryUpdate(List<LDUpdate> updateList)\n\t{\n\n\t}", "public CachetIncidentUpdateList getIncidentUpdates() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "public void checkForUpdate();", "protected abstract void discoverIpInterfaces(Host host, List<IpInterface> oldIpInterfaces);", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "Collection<EntityUpdateRequest> pendingUpdates();", "public void serviceUpdated(BNode n) {\n }", "public void updated(ServerList list);", "private void hockeyAppCheckForUpdates() {\n UpdateManager.register(this);\n }", "public Object getUpdate(IObserver obj);", "long getUpdated();", "@Test\n public void updateAccept() throws Exception {\n\n }", "@Test\n public void update() {\n }", "pb4server.UpdateInfoByHomeAskReq getUpdateInfoByHomeAskReq();", "private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }", "private UpdateManager () {}", "Long getUserUpdated();", "interface Update\n extends Settable<RouteTable.Update>, UpdateStages.WithDestinationAddressPrefix, UpdateStages.WithNextHopType {\n }", "protected abstract boolean supportsForUpdate();", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "private void handleUpdateProxyEvent(UpdateProxyEvent event) throws AppiaEventException {\n \n \t\tevent.loadMessage();\n \n \t\t//Get the parameters\n \t\tEndpt servertThatSentEndpt = event.getServerThatSentEndpt();\n \t\tVsGroup[] passedGroups = event.getAllGroups();\n \n \t\t//Say that the view was received (this also merges the temporary views)\n \t\tUpdateManager.addUpdateMessageReceived(servertThatSentEndpt, passedGroups);\n \n \t\t//If i have received from all live servers\n \t\tif(UpdateManager.receivedUpdatesFromAllLiveServers(vs.view) && amIleader()){\n \t\t\tSystem.out.println(\"Received an update proxy event from all alive and I am leader\");\n \n \t\t\t//Let go get our temporary view\n \t\t\tVsGroup[] newGroupList= UpdateManager.getTemporaryUpdateList();\n \n \t\t\t//Send the nre decided view to all\n \t\t\tUpdateDecideProxyEvent updateDecideProxy = new UpdateDecideProxyEvent(newGroupList);\n \t\t\tsendToOtherServers(updateDecideProxy);\n \t\t\tsendToMyself(updateDecideProxy);\t\t\n \t\t}\n \t}", "private static void updateInfo(\n Host host, Row row, Cluster.Manager cluster, boolean isInitialConnection) {\n if (!row.isNull(\"data_center\") || !row.isNull(\"rack\"))\n updateLocationInfo(\n host, row.getString(\"data_center\"), row.getString(\"rack\"), isInitialConnection, cluster);\n\n String version = row.getString(\"release_version\");\n host.setVersion(version);\n\n // Before CASSANDRA-9436 local row did not contain any info about the host addresses.\n // After CASSANDRA-9436 (2.0.16, 2.1.6, 2.2.0 rc1) local row contains two new columns:\n // - broadcast_address\n // - rpc_address\n // After CASSANDRA-9603 (2.0.17, 2.1.8, 2.2.0 rc2) local row contains one more column:\n // - listen_address\n // After CASSANDRA-7544 (4.0) local row also contains:\n // - broadcast_port\n // - listen_port\n\n InetSocketAddress broadcastRpcAddress = null;\n if (row.getColumnDefinitions().contains(\"native_address\")) {\n InetAddress nativeAddress = row.getInet(\"native_address\");\n int nativePort = row.getInt(\"native_port\");\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"native_transport_address\")) {\n // DSE 6.8 introduced native_transport_address and native_transport_port for the\n // listen address. Also included is native_transport_port_ssl (in case users\n // want to setup a different port for SSL and non-SSL conns).\n InetAddress nativeAddress = row.getInet(\"native_transport_address\");\n int nativePort = row.getInt(\"native_transport_port\");\n if (cluster.getCluster().getConfiguration().getProtocolOptions().getSSLOptions() != null\n && !row.isNull(\"native_transport_port_ssl\")) {\n nativePort = row.getInt(\"native_transport_port_ssl\");\n }\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"rpc_address\")) {\n InetAddress rpcAddress = row.getInet(\"rpc_address\");\n broadcastRpcAddress = new InetSocketAddress(rpcAddress, cluster.connectionFactory.getPort());\n }\n // Before CASSANDRA-9436, system.local doesn't have rpc_address, so this might be null. It's not\n // a big deal because we only use this for server events, and the control node doesn't receive\n // events for itself.\n host.setBroadcastRpcAddress(broadcastRpcAddress);\n\n InetSocketAddress broadcastSocketAddress = null;\n if (row.getColumnDefinitions().contains(\"peer\")) { // system.peers\n int broadcastPort =\n row.getColumnDefinitions().contains(\"peer_port\") ? row.getInt(\"peer_port\") : 0;\n broadcastSocketAddress = new InetSocketAddress(row.getInet(\"peer\"), broadcastPort);\n } else if (row.getColumnDefinitions().contains(\"broadcast_address\")) { // system.local\n int broadcastPort =\n row.getColumnDefinitions().contains(\"broadcast_port\") ? row.getInt(\"broadcast_port\") : 0;\n broadcastSocketAddress =\n new InetSocketAddress(row.getInet(\"broadcast_address\"), broadcastPort);\n }\n host.setBroadcastSocketAddress(broadcastSocketAddress);\n\n // in system.local only for C* versions >= 2.0.17, 2.1.8, 2.2.0 rc2,\n // not yet in system.peers as of C* 3.2\n InetSocketAddress listenAddress = null;\n if (row.getColumnDefinitions().contains(\"listen_address\")) {\n int listenPort =\n row.getColumnDefinitions().contains(\"listen_port\") ? row.getInt(\"listen_port\") : 0;\n listenAddress = new InetSocketAddress(row.getInet(\"listen_address\"), listenPort);\n }\n host.setListenSocketAddress(listenAddress);\n\n if (row.getColumnDefinitions().contains(\"workload\")) {\n String dseWorkload = row.getString(\"workload\");\n host.setDseWorkload(dseWorkload);\n }\n if (row.getColumnDefinitions().contains(\"graph\")) {\n boolean isDseGraph = row.getBool(\"graph\");\n host.setDseGraphEnabled(isDseGraph);\n }\n if (row.getColumnDefinitions().contains(\"dse_version\")) {\n String dseVersion = row.getString(\"dse_version\");\n host.setDseVersion(dseVersion);\n }\n host.setHostId(row.getUUID(\"host_id\"));\n host.setSchemaVersion(row.getUUID(\"schema_version\"));\n\n EndPoint endPoint = cluster.configuration.getPolicies().getEndPointFactory().create(row);\n if (endPoint != null) {\n host.setEndPoint(endPoint);\n }\n }", "Update createUpdate();", "public void update(Site site);", "interface Update {}", "@Test\n void testUpdateWhenLatestChanges() throws Exception {\n\n startMetadataTestServer(RC2);\n\n // Make the initial latestVersion call and validate the result\n\n assertInitialLatestVersionRequestPerformsUpdate(0, NANOSECONDS, VERSION_RC2, RC2_ETAG, false);\n\n // Now get the properties again and make sure we skip the zip download but still updated the latest version.\n // Note that the update is forced here because we used a zero frequency.\n\n LOG_RECORDER.clear();\n assertThat(meta.propertiesOf(latestVersion), is(not(nullValue())));\n assertLinesContainingAll(1, \"not modified\", RC2 + \"/\" + CLI_DATA_FILE_NAME);\n assertLinesContainingAll(1, \"updated\", RC2_LAST_UPDATE, \"etag \" + RC2_ETAG);\n assertLinesContainingAll(1, \"downloading\", LATEST_FILE_NAME);\n assertLinesContainingAll(1, \"connected\", LATEST_FILE_NAME);\n assertLinesContainingAll(1, \"wrote\", LATEST_FILE_NAME);\n\n // Now change the result of /latest and validate the result\n\n LOG_RECORDER.clear();\n Plugins.reset(true);\n testServer.latest(TestVersion.RC1);\n assertInitialLatestVersionRequestPerformsUpdate(0, NANOSECONDS, VERSION_RC1, RC1_ETAG, true);\n }", "private static NodeList<Expression> retrieveForUpdate(ForStmt forStmt) {\n return forStmt.getUpdate();\n }", "U getUpdateby();", "boolean requestUpdate(ITemplateKey key, PacketDistributor.PacketTarget target);", "public Client update(Client updated) throws EntityNotFoundException;", "void watchEndpointData(String clusterName, EndpointWatcher watcher) {\n }", "private void updateWsdlExtensors(String port1, String port2) {\n try {\n Definition def = bus.getExtension(WSDLManager.class)\n .getDefinition(wsdlLocation);\n Map<?, ?> map = def.getAllServices();\n for (Object o : map.values()) {\n Service service = (Service)o;\n Map<?, ?> ports = service.getPorts();\n for (Object p : ports.values()) {\n Port port = (Port)p;\n List<?> l = port.getExtensibilityElements();\n for (Object e : l) {\n if (e instanceof SOAPAddress) {\n String add = ((SOAPAddress)e).getLocationURI();\n int idx = add.indexOf(\":\" + port1);\n if (idx != -1) {\n add = add.substring(0, idx) + \":\" + port2\n + add.substring(idx + port1.length() + 1);\n ((SOAPAddress)e).setLocationURI(add);\n }\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public interface Updater\n{\n public void updateDate(InfoOfMessage[] message, InfoOfFriends[] friends, InfoOfFriends[] unApprovedFriends, String userKey);\n}", "List<FeatureUpdate> dispatchFeatureUpdates(@NonNull List<FeatureUpdate> featureUpdates) {\n for (FeatureUpdate featureUpdate : featureUpdates) {\n dispatchFeatureUpdate(featureUpdate);\n }\n return featureUpdates;\n }", "public void updateManager();", "@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}", "public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);", "public void updateSwarm();", "public interface KcsgUpdateInfoApiService {\n\n /**\n * Update information about other controller.\n *\n * @param data String data to update\n * @return JSON representation\n */\n JsonNode updateData(String data);\n}", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "public interface RemoteInvalidationProvider {\n\n /**\n * Invalidate the specified cache keys in all servers within the same data center.\n */\n void invalidateOtherServersInSameDataCenter(InvalidationEvent event);\n\n /**\n * Invalidate the specified cache keys in all servers in other data centers.\n */\n void invalidateOtherDataCenters(InvalidationEvent event);\n}", "public void checkAndUpdateIPAddresses() {\n\n List<IPAddresses> ipAddressesFromDB = ipAddressRepository.findAll();\n String ipAddressesFromPropertyFile = environment.getProperty(\"ipAddresses\");\n LinkedList<String> ipAddList = new LinkedList<String>(Arrays.asList(ipAddressesFromPropertyFile.split(\",\")));\n\n List<String> dbIPAddresses = new ArrayList<String>();\n\n ipAddressesFromDB.forEach(ipAddressObj -> {\n dbIPAddresses.add(ipAddressObj.getIpaddress());\n });\n\n CMADLogger.logInfo(this.getClass().getName(), \"dbIPAddresses \" + dbIPAddresses);\n CMADLogger.logInfo(this.getClass().getName(), \"ipAddList \" + ipAddList);\n\n ipAddList.removeAll(dbIPAddresses);\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddresses to Save is: \" + ipAddList);\n\n List<IPAddresses> ipAddressesToSave = new ArrayList<IPAddresses>();\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress will update to db are:\");\n\n ipAddList.forEach(ipAddress -> {\n IPAddresses ipAddressObject = new IPAddresses();\n CMADLogger.logInfo(this.getClass().getName(), ipAddress.trim());\n ipAddressObject.setIpaddress(ipAddress.trim());\n ipAddressesToSave.add(ipAddressObject);\n });\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress update to db done.\");\n\n if (ipAddressesToSave.size() > 0) {\n ipAddressRepository.saveAll(ipAddressesToSave);\n latch1.countDown();\n }\n\n try {\n latch1.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }", "public interface EndPointListener {\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param backupContentId\n * @param localFilePath\n */\n void contentBackedUp(String storeId,\n String spaceId,\n String contentId,\n String backupContentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param localFilePath\n */\n void contentAdded(String storeId,\n String spaceId,\n String contentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param localFilePath\n */\n void contentUpdated(String storeId,\n String spaceId,\n String contentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n */\n void contentDeleted(String storeId,\n String spaceId,\n String contentId);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param absPath\n */\n void contentUpdateIgnored(String storeId,\n String spaceId,\n String contentId,\n String absPath);\n}", "protected List<Update> getUpdates(long offset, int limit, int timeout) {\n try {\n\n UriComponentsBuilder uri = UriComponentsBuilder.fromHttpUrl(methodUrl(\"getUpdates\"))\n .queryParam(\"offset\", offset)\n .queryParam(\"limit\", limit)\n .queryParam(\"timeout\", timeout);\n\n GetUpdatesResponse response = restTemplate.getForObject(\n uri.build().encode().toUri(), GetUpdatesResponse.class);\n\n if(response == null) {\n logger.warn(\"getUpdates null result\");\n return new ArrayList<>();\n }\n\n if(!response.isOk()) {\n logger.warn(\"getUpdates error: {} - {}\", response.getErrorCode(), response.getDescription());\n return new ArrayList<>();\n }\n\n if(response.getResult() == null) {\n return new ArrayList<>();\n }\n\n return response.getResult();\n } catch(Exception e) {\n logger.error(\"getUpdates failed\", e);\n return new ArrayList<>();\n }\n }", "public int update(StoreFeedBack storeFeedBack);", "Date getLastServerUpdate();", "public final List<Update> getUpdates(UpdateRequest upr)\n\t{\n\t\tif(upr == null)\n\t\t\treturn null;\n\t\treturn rm.getUpdates(upr);\n\t}", "public abstract Response update(Request request, Response response);", "int getMockUpdatesCount();", "interface Update extends Appliable<Job>, Resource.UpdateWithTags<Update>, UpdateStages.WithCaffe2Settings, UpdateStages.WithCaffeSettings, UpdateStages.WithChainerSettings, UpdateStages.WithCntkSettings, UpdateStages.WithConstraints, UpdateStages.WithContainerSettings, UpdateStages.WithCustomToolkitSettings, UpdateStages.WithEnvironmentVariables, UpdateStages.WithExperimentName, UpdateStages.WithInputDirectories, UpdateStages.WithJobPreparation, UpdateStages.WithOutputDirectories, UpdateStages.WithPriority, UpdateStages.WithTensorFlowSettings {\n }", "@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }", "interface Update extends\n Appliable<SearchService>,\n Resource.UpdateWithTags<Update>,\n UpdateStages.WithReplicaCount,\n UpdateStages.WithPartitionCount {\n }", "private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }", "public interface CoinService {\n void triggerUpdate(List<String> symbols, WidgetUpdator widgetUpdator);\n\n void triggerListLoading(Context context, BrowserUpdator currencyBrowserUpdator);\n}", "public interface ILocalUpdater {\r\n\r\n\t/**\r\n\t * Extracts and applies any new local updates to {@code peer}.\r\n\t * \r\n\t * @param peer\r\n\t * @throws DBConnectionError\r\n\t * @throws LocalUpdatesException\r\n\t */\r\n\tpublic void extractAndApplyLocalUpdates(Peer peer)\r\n\t\t\tthrows DBConnectionError, LocalUpdatesException;\r\n\t\r\n\t/**\r\n\t * Called once during Migration so that any required setup can be done.\r\n\t * \r\n\t * @param db the database where the setup needs to be done.\r\n\t * @param relations the relations for which setup needs to be done.\r\n\t * \r\n\t */\r\n\tpublic void prepare(IDb db, List<? extends Relation> relations);\r\n\t\r\n\t/**\r\n\t * This method will be called after update exchange or reconciliation.\r\n\t * \r\n\t * @param db\r\n\t * @param relations\r\n\t */\r\n\tpublic void postReconcileHook(IDb db, List<? extends Relation> relations);\r\n}", "public void update(DroitsMembre client) {\n\n\t}", "public interface HostelService {\n\n /**\n * 验证客栈是否存在\n * @param hostelNum\n * @return\n */\n public boolean checkHostel(String hostelNum);\n\n /**\n * 验证客栈是否被审批通过\n * @param hostelNum\n * @return\n */\n public boolean checkApprove(String hostelNum);\n\n /**\n * 验证客栈编号与密码正确\n * @param hostelNum\n * @param hostelPassword\n * @return\n */\n public boolean checkPassword(String hostelNum,String hostelPassword);\n\n /**\n * 新注册一家客栈\n * @param hostel\n */\n public void registerHostel(Hostel hostel);\n\n /**\n * 获得可用客栈编号\n * @return\n */\n public String getHostelNum();\n\n /**\n * 更新客栈信息\n * 需要审批,默认状态为disapprove\n * @param hostel\n */\n public void updateHostel(Hostel hostel);\n\n /**\n * 删除客栈\n * @param hostelNum\n */\n public void deleteHostel(String hostelNum);\n\n /**\n * 根据省市查找客栈\n * @param province\n * @return\n */\n public List<Hostel> queryHostelByProvince(String province);\n public List<Hostel> queryHostelByCity(String city);\n\n /**\n * 根据客栈名查找客栈\n * @param hostelName\n * @return\n */\n public List<Hostel> queryHostelByName(String hostelName);\n\n\n /**\n * 根据客栈编号查找客栈\n * @param hostelNum\n * @return\n */\n public Hostel queryHostelByNum(String hostelNum);\n\n /**\n * 根据客栈等级筛选客栈\n * @param level\n * @return\n */\n public List<Hostel> queryHostelByLevel(int level);\n\n /**\n * 获得所有客栈\n * @return\n */\n public List<Hostel> queryAll();\n\n /**\n * 根据审批状态获得订单\n * @param approveState\n * @return\n */\n public List<Hostel> queryByApprove(String approveState);\n\n /**\n * 根据客栈编号获得其每月平均房价\n * Integer-->月份,Double[0]-->adr,Double[1]-->实际客房收入\n * @param hostelNum\n * @return\n */\n public Map<Integer,Double[]> getAdrByHostel(String hostelNum);\n\n /**\n * 根据客栈编号获得其每月入住率\n * Integer-->月份,Double[0]-->occ,Double[1]-->实际入住订单数\n * @param hostelNum\n * @return\n */\n public Map<Integer,Double[]> getOccByHostel(String hostelNum);\n\n /**\n * 根据客栈编号获得其每月平均每间可售房收入\n * Integer-->月份,Double[0]-->revpar,Double[1]-->可售房数量\n * @param hostelNum\n * @return\n */\n public Map<Integer,Double[]> getRevparByHostel(String hostelNum);\n\n /**\n * 根据客栈获得会员等级分布\n * @param hostelNum\n * @return\n */\n public Map<Integer,Integer> getLevelByHostel(String hostelNum);\n\n /**\n * 根据客栈获得指定月份的订单价格区间分布\n * @param hostelNum\n * @param months\n * @return\n */\n public Map<Integer, Map<String, Integer>> getPriceByMonth(String hostelNum, List<Integer> months);\n\n /**\n * 获得市场细分指数 adrIndex, occIndex,revparIndex\n * @param hostelNum\n * @return\n */\n public Map<Integer,Double[]> getIndexByMonth(String hostelNum);\n}", "private void processUpdates(SystemMetadata newSystemMetadata)\n throws RetryableException, UnrecoverableException, SynchronizationFailed {\n\n logger.debug(task.taskLabel() + \" entering processUpdates...\");\n\n //XXX is cloning the identifier necessary?\n Identifier pid = D1TypeBuilder.cloneIdentifier(newSystemMetadata.getIdentifier());\n\n logger.info(buildStandardLogMessage(null, \"Start ProcessUpdate\"));\n logger.debug(task.taskLabel() + \" Getting sysMeta from HazelCast map\");\n // TODO: assume that if hasReservation indicates the id exists, that \n // hzSystemMetadata will not be null...can we make this assumption?\n SystemMetadata hzSystemMetadata = hzSystemMetaMap.get(pid);\n SystemMetadataValidator validator = null;\n String errorTracker = \"\";\n try {\n errorTracker = \"validateSysMeta\";\n \tvalidator = new SystemMetadataValidator(hzSystemMetadata);\n validator.validateEssentialProperties(newSystemMetadata, nodeCommunications.getMnRead());\n\n // if here, we know that the new system metadata is referring to the same\n // object, and we can consider updating other values.\n NodeList nl = nodeCommunications.getNodeRegistryService().listNodes();\n boolean isV1Object = AuthUtils.isCNAuthorityForSystemMetadataUpdate(nl, newSystemMetadata);\n errorTracker = \"processUpdate\";\n if (task.getNodeId().contentEquals(hzSystemMetadata.getAuthoritativeMemberNode().getValue())) {\n\n if (isV1Object) {\n \t// (no seriesId in V1 to validate)\n processV1AuthoritativeUpdate(newSystemMetadata, hzSystemMetadata);\n \n } else {\n \tvalidateSeriesId(newSystemMetadata,hzSystemMetadata);\n \tprocessV2AuthoritativeUpdate(newSystemMetadata, validator);\n \n }\n } else {\n \t// not populating anything other than replica information\n processPossibleNewReplica(newSystemMetadata, hzSystemMetadata, isV1Object);\n }\n logger.info(buildStandardLogMessage(null, \" Completed ProcessUpdate\"));\n } catch (InvalidSystemMetadata e) {\n if (validator == null) {\n throw new UnrecoverableException(\"In processUpdates, bad SystemMetadata from the HzMap\", e);\n } else {\n throw new UnrecoverableException(\"In processUpdates, could not find authoritativeMN in the NodeList\", e);\n }\n } catch (NotAuthorized e) {\n \tif (errorTracker.equals(\"validateSysMeta\")) {\n \t\tthrow SyncFailedTask.createSynchronizationFailed(task.getPid(), \"In processUpdates, while validating the checksum\", e);\n \t} else {\n \t\tthrow SyncFailedTask.createSynchronizationFailed(task.getPid(), \"NotAuthorized to use the seriesId. \", e);\n \t}\n } catch (IdentifierNotUnique | InvalidRequest | InvalidToken | NotFound e) {\n \n throw SyncFailedTask.createSynchronizationFailed(task.getPid(), \"In processUpdates, while validating the checksum\", e);\n } catch (ServiceFailure e) {\n extractRetryableException(e);\n throw new UnrecoverableException(\"In processUpdates, while validating the checksum:, e\");\n } catch (NotImplemented e) {\n throw new UnrecoverableException(\"In processUpdates, while validating the checksum:, e\");\n }\n }", "String getUpdated();", "@Override\n\tpublic void onUpdatePeersReceived(UpdateEvent arg0) {\n\t\t\n\t}", "interface Update extends\n Appliable<NamespaceAuthorizationRule>,\n AuthorizationRule.UpdateStages.WithListenOrSendOrManage<Update> {\n }", "public void setUpdatesHandler(UpdatesHandler coreHandler);", "public String[] updateInfo(Session session) throws RemoteException{\n\t\tSystem.out.println(\"Server model invokes updateInfo() method\");\n\t\treturn null;\n\t\t\n\t}", "public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}", "public interface UpdateStatusStayStackInterface {\n void getUpdateStatus(String order_id, String order_status);\n}", "@Override\n\tpublic Client update(Client obj) {\n\t\treturn null;\n\t}", "public void testGetHost() {\n }", "interface Update {\n\n }", "@Test\n public void testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive() throws Exception {\n addIgnoredException(ServerConnectivityException.class.getName());\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCache);\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n createClientPoolCacheConnectionToSingleServer(getName(),\n getServerHostName(server1.getHost()));\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n\n server1.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(1, 0);\n server1.invoke(HAInterestTestCase::putK1andK2);\n server1.invoke(HAInterestTestCase::startServer);\n verifyDeadAndLiveServers(0, 1);\n final Region r1 = cache.getRegion(SEPARATOR + REGION_NAME);\n assertNotNull(r1);\n // Verify for interest registration after cache-server is started.\n server1.invoke(HAInterestTestCase::verifyInterestRegistration);\n\n WaitCriterion wc = new WaitCriterion() {\n private String excuse;\n\n @Override\n public boolean done() {\n Entry e1;\n Entry e2;\n\n try {\n e1 = r1.getEntry(k1);\n if (e1 == null) {\n excuse = \"Entry for k1 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k1.equals(e1.getValue())) {\n excuse = \"e1 value is not server_k1\";\n return false;\n }\n try {\n e2 = r1.getEntry(k2);\n if (e2 == null) {\n excuse = \"Entry for k2 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k2.equals(e2.getValue())) {\n excuse = \"e2 value is not server_k2\";\n return false;\n }\n return true;\n }\n\n @Override\n public String description() {\n return excuse;\n }\n };\n GeodeAwaitility.await().untilAsserted(wc);\n }", "public interface IService {\n\n List<BusinessTransaction> getBTs(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n List<Node> getNodes(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n}", "boolean updateBase(TRemoteHostOperateVo source, TRemoteHostOperateVo target);", "@Test\n public void updateDecline() throws Exception {\n }", "@Test\n\n public void updateWebHook() {\n }", "public IUpdates getUpdates() {\n return new Updates(transactions);\n }", "public void testGetInfo(boolean isAlreadyUpdated) throws ParseException {\n TGetInfo_Return[] PriceLists_info_out = priceListService.getInfo(new String[] { path + alias }, new String[] { \"CreationDate\" },\n null // all languages\n );\n\n // test if getinfo was successful and if all data are equal to input\n assertEquals(\"getinfo result set\", 1, PriceLists_info_out.length);\n\n TGetInfo_Return PriceList_info_out = PriceLists_info_out[0];\n assertNoError(PriceList_info_out.getError());\n assertEquals(\"alias\", alias, PriceList_info_out.getAlias());\n assertEquals(\"Number of languages\", 2, PriceList_info_out.getName().length);\n HashMap<String, String> hash = new HashMap<String, String>();\n hash.put(PriceList_info_out.getName()[0].getLanguageCode(), PriceList_info_out.getName()[0].getValue());\n hash.put(PriceList_info_out.getName()[1].getLanguageCode(), PriceList_info_out.getName()[1].getValue());\n\n if (isAlreadyUpdated) {\n Date date_in = sdf_in.parse(PriceList_update.getAttributes()[0].getValue());\n Date date_out = sdf_out.parse(PriceList_info_out.getAttributes()[0].getValue());\n assertEquals(\"CreationDate\", date_in, date_out);\n\n assertEquals(\"updated localized Name\", PriceList_update.getName()[0].getValue(),\n hash.get(PriceList_update.getName()[0].getLanguageCode()));\n assertEquals(\"updated localized Name\", PriceList_update.getName()[1].getValue(),\n hash.get(PriceList_update.getName()[1].getLanguageCode()));\n } else {\n\n Date date_in = sdf_in.parse(PriceList_in.getAttributes()[0].getValue());\n Date date_out = sdf_out.parse(PriceList_info_out.getAttributes()[0].getValue());\n assertEquals(\"CreationDate\", date_in, date_out);\n\n assertEquals(\"initial localized Name\", PriceList_in.getName()[0].getValue(),\n hash.get(PriceList_update.getName()[0].getLanguageCode()));\n assertEquals(\"initial localized Name\", PriceList_in.getName()[1].getValue(),\n hash.get(PriceList_update.getName()[1].getLanguageCode()));\n }\n\n assertTrue(\"CustomerGroups result set\", PriceList_info_out.getCustomerGroups().length == 1);\n assertTrue(\"Customers result set\", PriceList_info_out.getCustomers().length == 1);\n\n assertEquals(\"ValidFrom\", PriceList_in.getValidFrom().getTime(), PriceList_info_out.getValidFrom().getTime());\n assertEquals(\"ValidTo\", PriceList_in.getValidTo().getTime(), PriceList_info_out.getValidTo().getTime());\n\n assertEquals(\"CurrencyID\", PriceList_in.getCurrencyID(), PriceList_info_out.getCurrencyID());\n }", "public void checkForUpdate(String currentVersion);", "public java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.MockUpdate> getMockUpdatesList() {\n return java.util.Collections.unmodifiableList(\n instance.getMockUpdatesList());\n }", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "Client updateClient(Client client) throws BaseException;", "public interface CurrencyRatesUpdater {\n\n public static final String ERROR_CONNECTING = \"ERROR_CONNECTING\";\n public static final String ERROR_RESPONSE = \"ERROR_RESPONSE\";\n public static final String ERROR_UNKNOWN = \"ERROR_UNKNOWN\";\n\n public ResponseRateUpdate getRate(String fromCurrencyCode, String toCurrencyCode);\n\n public class ResponseRateUpdate {\n\n public ResponseRateUpdate() {\n }\n\n public ResponseRateUpdate(Double rateValue, Date rateDate) {\n this.rateValue = rateValue;\n this.rateDate = rateDate;\n }\n\n public ResponseRateUpdate(String error) {\n this.error = error;\n }\n\n private Double reverseRateValue;\n private Double rateValue;\n private Date rateDate;\n private String error;\n\n public Double getRateValue() {\n return rateValue;\n }\n\n public void setRateValue(Double rateValue) {\n this.rateValue = rateValue;\n }\n\n public Date getRateDate() {\n return rateDate;\n }\n\n public void setRateDate(Date rateDate) {\n this.rateDate = rateDate;\n }\n\n public Double getReverseRateValue() {\n return reverseRateValue;\n }\n\n public void setReverseRateValue(Double reverseRateValue) {\n this.reverseRateValue = reverseRateValue;\n }\n\n public String getError() {\n return error;\n }\n\n public void setError(String error) {\n this.error = error;\n }\n }\n}", "@Test(expected = java.rmi.RemoteException.class)\n\tpublic void testLiveDatabaseUpdate_2()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.liveDatabaseUpdate(aArguments, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private boolean performUpdate (WFSUpdate update) throws Exception {\r\n boolean success = true;\r\n Debug.debugMethodBegin (this, \"performUpdate (WFSUpdate)\");\r\n DBAccess osa = null;\r\n java.sql.Connection con = null;\r\n org.deegree.services.wfs.configuration.Connection connect =\r\n config.getConnection();\r\n \r\n try {\r\n // get jdbc connection and access object for oracle spatial\r\n con = pool.acuireConnection (connect.getDriver (),\r\n connect.getLogon (),\r\n connect.getUser (),\r\n connect.getPassword ());\r\n osa = new DBAccess (con);\r\n osa.setAutoCommit (false);\r\n\r\n FeatureType ft = config.getFeatureType (update.getTypeName());\r\n Set fIDs = getFeatureIDs (ft, update.getFilter(), osa);\r\n if (!fIDs.isEmpty ()) {\r\n TableDescription masterTable = ft.getMasterTable ();\r\n PointRowSelector selector = new PointRowSelector (\r\n masterTable, masterTable.getIdField (), fIDs, osa, ft);\r\n\r\n // create a new HashMap that contains the table names as\r\n // keys, and an ArrayList of changes that are to be performed\r\n // in that table (String-array with 2 values)\r\n HashMap changes = new HashMap (); \r\n HashMap properties = update.getProperties();\r\n\r\n Iterator it = properties.keySet().iterator ();\r\n while (it.hasNext ()) {\r\n String name = (String) it.next ();\r\n String value = (String) properties.get (name);\r\n\r\n if (name.startsWith (\"/\")) {\r\n name = name.substring (1);\r\n }\r\n name = name.replace ('.', '/');\r\n \r\n if (!ft.isPropertyKnown (name)) {\r\n throw new Exception (\r\n \"Property '\" + name.replace ('/', '.') + \"' is not known to Feature '\"\r\n + ft.getName() + \"' (not mapped?)\");\r\n } \r\n \r\n // get the datastore-mapping of the property\r\n String mapping = null;\r\n String [] s_ = ft.getDatastoreField (name);\r\n\r\n if (s_ == null) {\r\n throw new Exception (name +\r\n \" is not known by the datastore\");\r\n } else {\r\n mapping = s_[0];\r\n }\r\n\r\n String [] parts = splitString (mapping);\r\n String tableName = parts [0].toUpperCase ();\r\n String fieldName = parts [1].toUpperCase ();\r\n \r\n ArrayList list = (ArrayList) changes.get (tableName);\r\n if (list == null) {\r\n list = new ArrayList ();\r\n }\r\n String [] change = new String [2];\r\n change [0] = fieldName;\r\n change [1] = value;\r\n list.add (change);\r\n\r\n changes.put (tableName, list);\r\n }\r\n \r\n success = performUpdate (selector, changes);\r\n osa.commit ();\r\n }\r\n } catch (Exception e) { \r\n success = false;\r\n System.out.println (\"Exception: \" + e);\r\n if (osa != null) osa.rollback ();\r\n Debug.debugException (e, \"\");\r\n }\r\n if (con != null) {\r\n pool.releaseConnection (con, connect.getDriver (),\r\n connect.getLogon (),\r\n connect.getUser (),\r\n connect.getPassword ());\r\n } \r\n\r\n Debug.debugMethodEnd ();\r\n return success;\r\n }", "@Override\n public RespResult<List<SqlExecRespDto>> batchExecuteUpdate(String username, List<SqlExecReqDto> updates) {\n return null;\n }", "public void DispatchUpdates()\n {\n //Dispatch the updates.\n bBufferingUpdates = false;\n \n for(LaunchEntity entity : DispatchList)\n {\n for(LaunchServerSession session : Sessions.values())\n {\n if(session.CanReceiveUpdates())\n {\n session.SendEntity(entity);\n }\n }\n }\n }", "interface UpdateStages {\n /**\n * The stage of the privateendpointconnection update allowing to specify Id.\n */\n interface WithId {\n /**\n * Specifies id.\n * @param id Resource ID\n * @return the next update stage\n */\n Update withId(String id);\n }\n\n /**\n * The stage of the privateendpointconnection update allowing to specify Name.\n */\n interface WithName {\n /**\n * Specifies name.\n * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource\n * @return the next update stage\n */\n Update withName(String name);\n }\n\n /**\n * The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.\n */\n interface WithPrivateEndpoint {\n /**\n * Specifies privateEndpoint.\n * @param privateEndpoint The resource of private end point\n * @return the next update stage\n */\n Update withPrivateEndpoint(PrivateEndpointInner privateEndpoint);\n }\n\n /**\n * The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.\n */\n interface WithPrivateLinkServiceConnectionState {\n /**\n * Specifies privateLinkServiceConnectionState.\n * @param privateLinkServiceConnectionState A collection of information about the state of the connection between service consumer and provider\n * @return the next update stage\n */\n Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState);\n }\n\n /**\n * The stage of the privateendpointconnection update allowing to specify ProvisioningState.\n */\n interface WithProvisioningState {\n /**\n * Specifies provisioningState.\n * @param provisioningState The provisioning state of the private endpoint connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'\n * @return the next update stage\n */\n Update withProvisioningState(ProvisioningState provisioningState);\n }\n\n }", "protected abstract void discoverInitiators(Host host, List<Initiator> oldInitiators, HostStateChange changes);", "public interface IFoodMgr\n{\n /**\n * Update the IBubbleMgr - must be called on each pass thru update loop\n */\n void update(Env world) throws Exception;\n\n}" ]
[ "0.6192746", "0.60384536", "0.5888089", "0.5816343", "0.5785483", "0.5674194", "0.56474954", "0.5623177", "0.5623177", "0.554742", "0.5530399", "0.5489239", "0.5419249", "0.53729194", "0.5365691", "0.5362588", "0.5356596", "0.53418285", "0.53339803", "0.5314434", "0.527405", "0.5246904", "0.5235422", "0.5217093", "0.52000225", "0.51881576", "0.5181902", "0.51787525", "0.51712257", "0.5169814", "0.5155586", "0.51531386", "0.5143167", "0.51370156", "0.51329255", "0.51017463", "0.509386", "0.50918466", "0.50845194", "0.5078581", "0.50775623", "0.5076274", "0.50757957", "0.5067012", "0.5047969", "0.5043456", "0.50417006", "0.50415504", "0.50351024", "0.50298345", "0.5023683", "0.5022418", "0.5019857", "0.50083005", "0.5004018", "0.50008696", "0.49999234", "0.49979874", "0.49978203", "0.49975133", "0.49916878", "0.49914974", "0.49895734", "0.49845782", "0.4982157", "0.49674258", "0.4965496", "0.49618402", "0.49609554", "0.49603355", "0.49547285", "0.49514502", "0.49438187", "0.4940998", "0.4936635", "0.49285677", "0.4921644", "0.49157563", "0.4912845", "0.4911664", "0.4907036", "0.49041575", "0.4902996", "0.48957968", "0.4894864", "0.4894656", "0.4892988", "0.4892283", "0.48873734", "0.48863006", "0.48813632", "0.4879995", "0.48798588", "0.48770303", "0.48687744", "0.4863182", "0.4862848", "0.48625773", "0.48623714", "0.48623693", "0.4861298" ]
0.0
-1
no args constructor for serialization
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjectSerializationEncoder() {\n // Do nothing\n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "public Data() {}", "public CompactSerializable() {\n }", "public JsonFactory() { this(null); }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Payload() {}", "public Data() {\n }", "public Data() {\n }", "private SerializerFactory() {\n // do nothing\n }", "public Data() {\n \n }", "defaultConstructor(){}", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "private SingleObject(){}", "public CustomDateSerializer() {\n this(null);\n }", "private SerializationUtils() {\n\n }", "public Payload() {\n\t}", "public MinecraftJson() {\n }", "private SingleObject()\r\n {\r\n }", "void DefaultConstructor(){}", "public NetworkData() {\n }", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "O() { super(null); }", "public Constructor(){\n\t\t\n\t}", "public WCSResponseSerializer()\r\n {\r\n }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "public JSONLoader() {}", "public Commande_structureSerializationTest(){\n }", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "public \n PipedObjectReader() \n {}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public StringData() {\n\n }", "public AvroPerson() {}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Instantiation(){}", "public FileObject() {\n\t}", "public ClaseJson() {\n }", "public MetaDataContract()\n {\n }", "public JSONUtils() {\n\t\tsuper();\n\t}", "public JobPayload()\n {\n \n }", "public ParamJson() {\n\t\n\t}", "public LargeObjectAvro() {}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "public KafkaJsonSerializer() {\n\n }", "protected abstract T _createEmpty(DeserializationContext ctxt);", "public StudentRecord() {}", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "private ByteTools(){}", "@Override\n public void construct() throws IOException {\n \n }", "public JAXBConverter() {\n\t}", "private Encoder() {}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public AbstractBinaryInteraction() {\n\n\t}", "public SensorData() {\n\n\t}", "public InitialData(){}", "MessageSerializer<T> create();", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "public LoaderInfo( ) { \n\t\tsuper( null );\n\t}", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "private NewsWriter() {\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public Pojo1110110(){\r\n\t}", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "public ArchiveInfo() {\n\t}", "public TradeData() {\r\n\r\n\t}", "public Pleasure() {\r\n\t\t}", "private void __sep__Constructors__() {}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public CSSTidier() {\n\t}", "public PersonRecord() {}", "public KafkaAvroSerializer() {\n super();\n }", "Constructor() {\r\n\t\t \r\n\t }", "Gson() {\n }", "public SceneFurniRecord ()\n {\n }", "private SingleObject(){\n }", "public Item(){}", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public Postoj() {}", "public JSFOla() {\n }", "public StructureParserOutputStream ()\n {\n this(new NullOutputStream());\n }", "public StringData1() {\n }", "protected StreamParser()\n {\n }", "public XObject(){\r\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public ElementSerializer() {\n _lock = new Object();\n }", "public XObject(){\n }", "public TransformationBuff() {}", "public Item() {}", "public Pasien() {\r\n }", "public JsonRequestSerializer() {\n this(JNC.GSON);\n }", "public VehicleInfoAvro() {}", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Resource() {\n }", "public Resource() {\n }", "public Book() {}", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "public Soil()\n\t{\n\n\t}", "public Person() {}" ]
[ "0.75557977", "0.7178319", "0.6964459", "0.68985397", "0.6721738", "0.67018247", "0.66894865", "0.66690964", "0.66690964", "0.66651887", "0.6650659", "0.6645531", "0.6638823", "0.66158664", "0.6614593", "0.6518377", "0.65138596", "0.63699484", "0.63674283", "0.63548154", "0.6331753", "0.6307677", "0.6299586", "0.6286705", "0.62810326", "0.62693554", "0.6260043", "0.62463045", "0.62418234", "0.62314004", "0.62218404", "0.6218958", "0.62074775", "0.6192964", "0.61637485", "0.6144265", "0.6134351", "0.6133058", "0.61260563", "0.61258256", "0.6124976", "0.61149675", "0.6114952", "0.6110417", "0.6090088", "0.6085756", "0.6081532", "0.6073337", "0.6071174", "0.60686415", "0.60671246", "0.60635525", "0.6058501", "0.6056949", "0.60567164", "0.60552514", "0.6048506", "0.6047939", "0.604368", "0.60429376", "0.6042405", "0.6035836", "0.6029525", "0.60269034", "0.60264236", "0.6024422", "0.60229504", "0.60186476", "0.60165113", "0.6014129", "0.60138977", "0.60062575", "0.60024774", "0.59973043", "0.59920263", "0.5986568", "0.5985734", "0.5984504", "0.5977023", "0.59750885", "0.59689224", "0.5966343", "0.5963747", "0.59551966", "0.5947497", "0.5947362", "0.5946867", "0.59409785", "0.59408236", "0.5937231", "0.59308374", "0.5930034", "0.5921987", "0.59174824", "0.5914256", "0.5907961", "0.5907961", "0.59042484", "0.5902866", "0.59017056", "0.5899344" ]
0.0
-1
Set the numeric input value x for this input.
public void setInput(double x) { if(domain.contains(x)) this.x = x; else throw new BadParameterException("The input value "+x+" was rejected " + "as it is outside of the domain for this input: " + "["+domain.getLeft()+", "+domain.getRight()+"]."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setX(double x){\n this.x = x;\n }", "public void setX(double x){\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\r\n }", "public void setX(double x)\n {\n this.x = x;\n }", "public void setX(Double x);", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "void setX(double x){\r\n\t\tthis.x=x;\r\n\t}", "public void setX(double x)\n\t{\n\t\tthis.x = x;\n\t}", "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "public void setX(double value) {\n this.x = value;\n }", "double setx(double x) {\n return this.x;\n }", "public void x(double x) {\n _x = x;\n }", "void setX(float x) {\n _x = x;\n }", "public void setX(double X)\r\n {\r\n curX = X;\r\n }", "public void setX(double newX) {\r\n x = newX;\r\n }", "public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }", "public void setX(double value) {\n\t\tthis.x = value;\n\t}", "public void setX(int x){\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\n this.x = x;\r\n }", "public void setX(double x)\n\t\t{\n\t\t this.x[0] = x;\n\t\t}", "public void setX(double value) {\n\t\t\t\tthis.x = value;\n\t\t\t}", "public void setX(float x) {\n this.x = x;\n }", "@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}", "public void setX(final int x) {\n\n this.x = x;\n }", "public void setX(int x) {\n this.x = x;\n }", "public void setX(int x) {\n this.x = x;\n }", "public void NewX(double x){\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x)\n {\n this.x = x;\n }", "public void setX(int x)\r\n {\r\n this.x = x;\r\n }", "@Override\n\tpublic void setX(float x) {\n\n\t}", "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(double x) throws IllegalArgumentException {\n\t\tif (!isValidX(x)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.x = x;\n\t}", "public void setX(int newX)\n {\n x = newX;\n }", "public void setX(Float x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.X = x;\n\t}", "public void setX(double pX) {\n mX = pX;\n }", "public void setX(int x) { this.x=x; }", "protected void setX(final Number x) {\n this.xCoordinate = x;\n }", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public void setX(int x);", "public void set(float x0) {\n\t\tgrow(1);\n\t\tdata[length++] = x0;\n\t}", "@Override\n\tpublic void setX(int x) {\n\n\t}", "public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "public void setX(long x){\n this.x = x;\n }", "final void setX(double d) {\n x = d;\n }", "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}", "public void setXmultiplier(double setx)\n {\n xmultiplier = setx;\n }", "public void setX(double d) {\n\t\tthis.x = (int)d;\n\t}", "public void setMinValue(double x) {\r\n\t\tminValue = x;\r\n\t}", "public void setX(double value) {\n origin.setX(value);\n }", "public void setX(double d) {\n\t\tthis.x = d;\n\t}", "public void setX(int x)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate\n\t}", "public void setX(int x) {\n\tbaseXCoord = x;\n}", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000800;\n x_ = value;\n onChanged();\n return this;\n }", "public void setX(int newX) {\n\t\tthis.x = newX;\n\t}", "public Builder setX(double value) {\n bitField0_ |= 0x00000002;\n x_ = value;\n onChanged();\n return this;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000008;\n x_ = value;\n onChanged();\n return this;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000008;\n x_ = value;\n onChanged();\n return this;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }", "public PlotPosition setX( double x )\n {\n return setX( x, 1 );\n }", "public Builder setX(double value) {\n bitField0_ |= 0x00000004;\n x_ = value;\n onChanged();\n return this;\n }", "public void setValeur(int x) {\r\n\t\tthis.val=x;\r\n\t}", "public void setX(double point) {\n this.x = point;\n }", "void setX(int x) {\n position = position.setX(x);\n }", "public void setX(int a)\n {\n x = a;\n }", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "public void update(int x)\n {\n xValue += x;\n }", "default void setX(double x)\n {\n getAxis().setX(x);\n }", "public void setXCoordinates(double newX) { this.xCoordinates = newX; }", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setValue(Number value) {\n this.value = value;\n }", "public void setXCoordinate(int newValue)\n {\n x = newValue;\n }", "public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}", "public void setNX(int nx){\n newX=nx;\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "public void setInput(int value) {\n\t\tnumberInputField.setValue(value);\n\t}", "public void setTargetX(double x) {\r\n\t\ttargetX = x;\r\n\t}", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void setX(int x){ xPosition = x; }" ]
[ "0.7868946", "0.7868946", "0.7826045", "0.778541", "0.7759126", "0.7735238", "0.7735238", "0.7735238", "0.77039564", "0.7571548", "0.7529001", "0.74654657", "0.74005723", "0.73933023", "0.73908246", "0.73882556", "0.7373774", "0.7250674", "0.7238429", "0.71897894", "0.7157818", "0.7153947", "0.71336997", "0.71273446", "0.7113401", "0.71005845", "0.7097647", "0.7097647", "0.7093312", "0.7087502", "0.7087502", "0.7087502", "0.7087502", "0.70675015", "0.70675015", "0.70675015", "0.70675015", "0.70506734", "0.70309544", "0.7015139", "0.7008618", "0.70077467", "0.6985499", "0.6985499", "0.6985499", "0.6985499", "0.6985499", "0.6976494", "0.6948729", "0.6920246", "0.69098747", "0.6909006", "0.6875232", "0.68372524", "0.68368167", "0.6813426", "0.680492", "0.68030596", "0.6757611", "0.67499", "0.67386866", "0.6735173", "0.6717649", "0.6690036", "0.66895264", "0.6672123", "0.6663059", "0.6629425", "0.6623571", "0.6614672", "0.66095245", "0.6597257", "0.65872836", "0.6571165", "0.6562204", "0.6560411", "0.6558035", "0.6558035", "0.6557479", "0.6550406", "0.65097004", "0.6493981", "0.6476327", "0.64696103", "0.64660895", "0.64586514", "0.63744974", "0.63692963", "0.6353976", "0.6345074", "0.6332122", "0.6321262", "0.63179743", "0.6297878", "0.6293485", "0.628046", "0.6278275", "0.626073", "0.6244933", "0.62382853" ]
0.7376896
16
the first character can be a digit according to RFC 5321, but this would make difficult to decide if the source is a tag or the first digit of an IPv4 address literal. So assume that it starts with a letter. As of 201103 the only valid tag is IPv6, so this assumption is valid.
private AddressLiteralTagToken.Kind scanToken() throws ParseException { if (ALPHA.isSatisfiedBy(currentChar)) { scanStandardizedTag(); return Kind.STANDARDIZED_TAG; } else if (CharClasses.DIGIT.isSatisfiedBy(currentChar)) { return Kind.DIGIT; } else { throw currentCharToken.syntaxException("The first digit of an " + "IPv4 address, or an address type tag, like 'IPv6'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "public static boolean isWellFormedIPv4Address(String address) {\n \n int addrLength = address.length();\n char testChar;\n int numDots = 0;\n int numDigits = 0;\n \n // make sure that 1) we see only digits and dot separators, 2) that\n // any dot separator is preceded and followed by a digit and\n // 3) that we find 3 dots\n //\n // RFC 2732 amended RFC 2396 by replacing the definition \n // of IPv4address with the one defined by RFC 2373. - mrglavas\n //\n // IPv4address = 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT\n //\n // One to three digits must be in each segment.\n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if ((i > 0 && !isDigit(address.charAt(i-1))) || \n (i+1 < addrLength && !isDigit(address.charAt(i+1)))) {\n return false;\n }\n numDigits = 0;\n if (++numDots > 3) {\n return false;\n }\n }\n else if (!isDigit(testChar)) {\n return false;\n }\n // Check that that there are no more than three digits\n // in this segment.\n else if (++numDigits > 3) {\n return false;\n }\n // Check that this segment is not greater than 255.\n else if (numDigits == 3) {\n char first = address.charAt(i-2);\n char second = address.charAt(i-1);\n if (!(first < '2' || \n (first == '2' && \n (second < '5' || \n (second == '5' && testChar <= '5'))))) {\n return false;\n }\n }\n }\n return (numDots == 3);\n }", "public static byte[] parseIPv4Literal(String s) {\n s = s != null ? s.trim() : \"\";\n String[] toks = s.split(\"\\\\.\");\n byte[] ip = new byte[4];\n if (toks.length == 4) {\n for (int i = 0; i < ip.length; i++) {\n try {\n int val = Integer.parseInt(toks[i]);\n if (val < 0 || val > 255) {\n return null;\n }\n ip[i] = (byte) val;\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip;\n }\n return null;\n }", "private boolean checkTag(String tag) {\n if (tag.length() < 1) {\n return false;\n }\n char c = tag.charAt(0);\n if (!(c >= 'a' && c <= 'z')) {\n return false;\n }\n for (int i = 1; i < tag.length(); ++i) {\n c = tag.charAt(i);\n if (!(c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '-')) {\n return false;\n }\n }\n return true;\n }", "public static boolean isNameStart(int c) {\n return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;\n }", "private static int scanHexSequence (String address, int index, int end, int [] counter) {\n \n char testChar;\n int numDigits = 0;\n int start = index;\n \n // Trying to match the following productions:\n // hexseq = hex4 *( \":\" hex4)\n // hex4 = 1*4HEXDIG\n for (; index < end; ++index) {\n testChar = address.charAt(index);\n if (testChar == ':') {\n // IPv6 addresses are 128-bit, so there can be at most eight sections.\n if (numDigits > 0 && ++counter[0] > 8) {\n return -1;\n }\n // This could be '::'.\n if (numDigits == 0 || ((index+1 < end) && address.charAt(index+1) == ':')) {\n return index;\n }\n numDigits = 0;\n }\n // This might be invalid or an IPv4address. If it's potentially an IPv4address,\n // backup to just after the last valid character that matches hexseq.\n else if (!isHex(testChar)) {\n if (testChar == '.' && numDigits < 4 && numDigits > 0 && counter[0] <= 6) {\n int back = index - numDigits - 1;\n return (back >= start) ? back : (back+1);\n }\n return -1;\n }\n // There can be at most 4 hex digits per group.\n else if (++numDigits > 4) {\n return -1;\n }\n }\n return (numDigits > 0 && ++counter[0] <= 8) ? end : -1;\n }", "int getS1Ip();", "public static boolean isA(String s) {\n\t\tlong ip = IP4Style.transfer(s);\n\t\tif (ip == -1L) return false;\n\t\tlong a = (ip >>> 24) & 0xFF;\n\t\treturn (a >> 7) == 0L;\n\t}", "private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}", "private String getValidAddress(String addr) {\n\t\tint length = addr.length();\n\t\tif(length < ADDRESS_BITS) {\n\t\t\tint toAdd = ADDRESS_BITS - length;\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tfor(int i = 0; i < toAdd; i++) {\n\t\t\t\tbuilder.append(0);\n\t\t\t}\n\t\t\tbuilder.append(addr);\n\t\t\treturn builder.toString();\n\t\t} else {\n\t\t\tint toRemove = length - ADDRESS_BITS;\n\t\t\t\n\t\t\treturn addr.substring(toRemove, length);\n\t\t}\n\t}", "public static boolean isNCNameStart(int c) {\n return c < 0x10000 && (CHARS[c] & MASK_NCNAME_START) != 0;\n }", "private static boolean isValidIpAddress(String value) {\n boolean status = true;\n try {\n Ip4Address ipAddress = Ip4Address.valueOf(value);\n } catch (Exception e) {\n log.debug(\"Invalid IP address string: {}\", value);\n return false;\n }\n\n return status;\n }", "public static void parseNatAsgn() {\n if (currToken.tokenType != Token.ID) {\n handleError(\"ID\");\n }\n else if( symbols.get(currToken.tokenString) != \"NAT\"){\n throw new Error(\"NAT type expected\");\n }\n else{\n sb.append(currToken.tokenString);\n getNextToken();\n if (currToken.tokenType != Token.ASSIGN) {\n handleError(\"ASSIGN\");\n }\n else{\n sb.append(\" = \");\n getNextToken();\n parseNatExp();\n }\n }\n }", "private boolean valid128bit(String input) {\n\t\treturn input.matches(\"[0-9A-F]{32}\");\n\t}", "private void insureMinimumLettersInTypeCode(StringBuffer buffer, String type) {\r\n buffer.append(type.charAt(1));\r\n int ndx = 2;\r\n char ch = type.charAt(ndx);\r\n while (isVowel(ch)) {\r\n buffer.append(ch);\r\n ndx++;\r\n ch = type.charAt(ndx);\r\n }\r\n buffer.append(ch);\r\n }", "public static String m66044a(String str) {\n InetAddress inetAddress;\n if (str.contains(\":\")) {\n if (!str.startsWith(\"[\") || !str.endsWith(\"]\")) {\n inetAddress = m66047a(str, 0, str.length());\n } else {\n inetAddress = m66047a(str, 1, str.length() - 1);\n }\n if (inetAddress == null) {\n return null;\n }\n byte[] address = inetAddress.getAddress();\n if (address.length == 16) {\n return m66046a(address);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Invalid IPv6 address: '\");\n sb.append(str);\n sb.append(\"'\");\n throw new AssertionError(sb.toString());\n }\n try {\n String lowerCase = IDN.toASCII(str).toLowerCase(Locale.US);\n if (!lowerCase.isEmpty() && !m66068b(lowerCase)) {\n return lowerCase;\n }\n return null;\n } catch (IllegalArgumentException unused) {\n return null;\n }\n }", "private boolean validNbit(String input) {\n\t\treturn input.matches(\"[0-9A-F]+\");\n\t}", "SimpleString getPrefix(SimpleString address);", "public static boolean isValidNameFormat( String source )\n {\n int minNameLength = 3;\n\n return (source != null) && (source.length() >= minNameLength);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfEmptyString() {\n Ip4Address ipAddress;\n\n String fromString = \"\";\n ipAddress = Ip4Address.valueOf(fromString);\n }", "static int type_of_lxi(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B' || fourth=='D' || fourth=='H')\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "static boolean validateIP(String ip) {\n String[] ips = ip.split(\"\\\\.\");\n System.out.println(Arrays.toString(ips));\n if(ips.length != 4) return false;\n System.out.println(Arrays.toString(ips));\n \n for(String s : ips){\n int b;\n try{\n b = Integer.parseInt(s);\n if(b<0 || b> 255)return false;\n }catch(Exception e){\n return false;\n }\n }\n \n return true;\n\t}", "private static String applyRFC2732(String hostname) {\n if (hostname.indexOf(\":\") != -1) {\n // Assuming an IPv6 literal because of the ':'\n return \"[\" + hostname + \"]\";\n }\n return hostname;\n }", "private static String m33124a(char firstCharacter, String srcString, int indexOfSubstring) {\n if (indexOfSubstring >= srcString.length()) {\n return String.valueOf(firstCharacter);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(firstCharacter);\n sb.append(srcString.substring(indexOfSubstring));\n return sb.toString();\n }", "private boolean isNdexId(String conceptId) {\n\t\tif(conceptId.startsWith(Translator.NDEX_NS)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// ...old test, in case you\n\t\ttry {\n\t\t\tif (conceptId.length() >= 38) {\n\t\t\t\tUUID.fromString(conceptId.substring(0, 36));\n\t\t\t\treturn conceptId.charAt(36) == Translator.NETWORK_NODE_DELIMITER_CHAR;\n\t\t\t}\n\t\t\n\t\t} catch (IllegalArgumentException e) {}\n\t\t\n\t\treturn false;\n\t}", "ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws IOException;", "private int scanTagName(char[] input,\n int offset,\n int end,\n int[] lineNr)\n throws XMLParseException {\n this.tagName = this.scanIdentifier(input, offset, end);\n\n if (this.tagName == null) {\n throw this.syntaxError(\"a tag name\", lineNr[0]);\n }\n\n return offset + this.tagName.length();\n }", "private static boolean isValidJavaIdentifier(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n {\r\n return false;\r\n }\r\n char[] c = s.toCharArray();\r\n if (!Character.isJavaIdentifierStart(c[0]))\r\n {\r\n return false;\r\n }\r\n for (int i = 1; i < c.length; i++)\r\n {\r\n if (!Character.isJavaIdentifierPart(c[i]))\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "public static boolean isAlphanumericAddress(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\tif (field.trim().matches(\"[A-Za-z0-9\\\\#\\\\&\\\\'\\\\.\\\\,\\\\-\\\\(\\\\)\\\\ \\\\/_@]{0,1024}\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isSpecialPrefixTag(int ce)\n {\n return RuleBasedCollator.isSpecial(ce) &&\n RuleBasedCollator.getTag(ce) == CE_SPEC_PROC_TAG_;\n }", "private static boolean isAlphabeticStreetName(String addressLine, String pattern) {\n return STREET_NUMBER_LETR.equals(pattern) && UsAddressParserDataStrings.STREET_TYPE.containsKey(getFirstTokenAfterMatch(addressLine, pattern));\n }", "private static List<String> getIPv4First(List<InetAddress> in)\n {\n List<String> out = new ArrayList<>();\n int i = 0;\n for (InetAddress addr : in) {\n if (addr instanceof Inet4Address) {\n out.add(i++, addr.getHostAddress());\n }\n else {\n out.add(addr.getHostAddress());\n }\n }\n return out;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeTooLongMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(33);\n }", "private boolean isIdentifier(String identifier) {\n boolean isFirst = true;\n\n for (int i = 0; i < identifier.length(); i++) {\n char ch = identifier.charAt(i);\n\n if (isFirst && Character.isJavaIdentifierStart(ch)) {\n // first char of key\n } else if (Character.isJavaIdentifierPart(ch) || ch == '.') {\n // remaining chars of the key\n } else {\n // error in format\n return false;\n }\n\n isFirst = false;\n }\n\n return true;\n }", "public boolean verificarFormatoIPV4(String ip) {\n\t\ttry {\n\t\t\tif (ip == null || ip.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString[] parts = ip.split(\"\\\\.\");\n\t\t\tif (parts.length != 4) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor (String s : parts) {\n\t\t\t\tint i = Integer.parseInt(s);\n\t\t\t\tif ((i < 0) || (i > 255)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ip.endsWith(\".\")) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t}", "public static String extractDigits(String src) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < src.length(); i++) {\n\t\t\tchar c = src.charAt(i);\n\t\t\tif (Character.isDigit(c)) {\n\t\t\t\tbuilder.append(c);\n\t\t\t}\n\t\t}\n\t\treturn builder.toString();\n\t}", "private static String handleFancyStreetNumber(String addressLine, String pattern) {\n if (addressLine.matches(pattern + \".+\") && !isAlphabeticStreetName(addressLine, pattern)) {\n String rightAddr[] = addressLine.split(pattern, 2);\n if (rightAddr.length == 0) return addressLine;\n String rightPart = rightAddr[rightAddr.length - 1];\n String streetNumber = findFirstNumber(addressLine.substring(0, addressLine.indexOf(rightPart)));\n if (streetNumber.length() > 0) return streetNumber + \" \" + rightPart;\n }\n return addressLine;\n }", "public static InetAddress id2ip(String id) {\n final String table = \"aeiouAEIOU\";\n byte bytes[] = {0, 0, 0, 0};\n int p = 0;\n if (id.length() != 8) {\n return null;\n }\n for (int i = 0; i < 4; i++) {\n bytes[i] =\n (byte)(table.indexOf(id.charAt(p++))*26+(int)(id.charAt(p++)-'a'));\n }\n try {\n return (InetAddress.getByAddress(bytes));\n } catch (UnknownHostException e) {\n return null;\n }\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public String getSrcAddress1() {\r\n return (String) getAttributeInternal(SRCADDRESS1);\r\n }", "private static boolean startsWith(final String source, final String prefix) {\n return prefix.length() <= source.length() && source.regionMatches(true, 0, prefix, 0, prefix.length());\n }", "public interface DNSIPAddress extends DNSObject, Comparable<DNSIPAddress> {\r\n\r\n enum Type { IPv4, IPv6 }\r\n\r\n /**\r\n * Returns the type of this IP address.\r\n *\r\n * @return the type of this IP address\r\n */\r\n Type getType();\r\n\r\n /**\r\n * Returns the value of this IP address (in case of IPv6 the uncompressed version is returned).\r\n *\r\n * @return the (uncompressed) value of this IP address\r\n */\r\n String getAddress();\r\n\r\n /**\r\n * Returns a compressed version of this IP address. If the address cannot be compressed\r\n * the address is returned.\r\n *\r\n * @return the compressed version of this IP address\r\n */\r\n String getCompressedAddress();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is a string.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n String[] getParts();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is an integer.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n int[] getInts();\r\n\r\n /**\r\n * Determines whether this IP address has been allocated or assigned\r\n * for special use according to RFC 3330.\r\n *\r\n * @return true if this IP address has been allocated or assigned\r\n * for special use according to RFC 3330; false otherwise.\r\n */\r\n boolean isReserved();\r\n}", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "java.lang.String getIpv4();", "int getClientIpV4();", "private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "public static String getStart(String town){\n\t\treturn Character.toString(town.charAt(0));\n\t}", "String getNextIdent (boolean startsWithAlpha) {\n int p = m_pos;\n char c = getChar ();\n if (startsWithAlpha && isAlpha (c) == false) { return null; }\n while ( isAlpha (c) || isNumber (c) || isSpecial (c) ) {\n c = getNextChar ();\n }\n return m_buffer.substring (p, m_pos);\n }", "private static String convertTag(final String src) {\n final String s = TAG_NAMES.get(src);\n return s != null ? s : src;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfIncorrectString() {\n Ip4Address ipAddress;\n\n String fromString = \"NoSuchIpAddress\";\n ipAddress = Ip4Address.valueOf(fromString);\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }", "String getStartAddress();", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public static boolean isSigned_addr() {\n return false;\n }", "protected boolean isAirportIDValid(String airportID) {\n return (airportID.length() <= 5 && airportID.matches(\"[0-9]+\"));\n }", "private boolean parseHigh() {\n long hshift = HSHIFT3;\n boolean colonRequired = false;\n for (int i = 0; i < IPv6Address.HEXTETS / 2; i++) {\n if (parseZeroesSection()) {\n return true;\n }\n\n long hextet = parseColonAndHextet(colonRequired);\n if (hextet == -1) {\n return false;\n }\n\n highAddress |= hextet << hshift;\n hextetCount++;\n hshift -= HSHIFT;\n\n colonRequired = true;\n }\n return true;\n }", "public static long inetAton(String add) {\n long result = 0;\n // number between a dot\n long section = 0;\n // which digit in a number\n int times = 1;\n // which section\n int dots = 0;\n for (int i = add.length() - 1; i >= 0; --i) {\n if (add.charAt(i) == '.') {\n times = 1;\n section <<= dots * 8;\n result += section;\n section = 0;\n ++dots;\n } else {\n section += (add.charAt(i) - '0') * times;\n times *= 10;\n }\n }\n section <<= dots * 8;\n result += section;\n return result;\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfShortArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3};\n ipAddress = Ip4Address.valueOf(value);\n }", "public boolean checkValidAddress(String address) {\n for(int i = 0; i < address.length(); i++) {\n if(address.charAt(i) == '@') {\n return true;\n }\n }\n return false;\n }", "public boolean mixStart(String str) {\n if (str.length() < 3) return false;\n return (str.substring(1,3).equals(\"ix\"));\n}", "private String countryCode(String address) {\n\t\tint j = address.lastIndexOf('.') + 1;\n\t\tString cc = address.substring(j);\n\t\treturn cc.toLowerCase();\n\t}", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!tcbD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-7), 6);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"D\", token0.toString());\n assertEquals(74, token0.kind);\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "@Override\r\n public CharSequence filter(CharSequence source, int start, int end,\r\n Spanned dest, int dstart, int dend) {\n for (int i = start; i < end; i++) {\r\n\r\n \t String checkMe = String.valueOf(source.charAt(i));\r\n\r\n\t\t Pattern pattern = Pattern.compile(\"[1234]*\");\r\n\t\t Matcher matcher = pattern.matcher(checkMe);\r\n\t\t boolean valid = matcher.matches();\r\n\t\t if(!valid){\r\n\t\t Log.d(\"\", \"invalid\");\r\n\t\t return \"\";\r\n\t\t }\r\n }\r\n\r\n // If we've got this far, then return null to accept string\r\n return null;\r\n }", "@Override\n\tpublic java.lang.String getStreet1() {\n\t\treturn _candidate.getStreet1();\n\t}", "public boolean isStartWithHY(String hanyuString) {\n\t\tgetPinyin(hanyuString, HanyuPinyinCaseType.UPPERCASE).charAt(0);\n\t\treturn isStartWithHY;\n\t}", "SimpleString removePrefix(SimpleString address);", "public static boolean isValidIP(String a_ipAddress)\n\t{\n\t\tStringTokenizer tokenizer;\n\n\t\tif ( (a_ipAddress == null) || (a_ipAddress.indexOf('-') != -1))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\ttokenizer = new StringTokenizer(a_ipAddress, \".\");\n\n\t\ttry\n\t\t{\n\t\t\t// test if the IP could be IPv4 or IPv6\n\t\t\tif ( (tokenizer.countTokens() != 4) && (tokenizer.countTokens() != 16))\n\t\t\t{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\n\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t{\n\t\t\t\tif (new Integer(tokenizer.nextToken()).intValue() > 255)\n\t\t\t\t{\n\t\t\t\t\tthrow new NumberFormatException();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException a_e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean isValidEmailFormat( String source )\n {\n int minEmailLength = 5;\n\n return (source != null)\n && (source.length() >= minEmailLength)\n && (source.indexOf('@') == source.lastIndexOf('@'));\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "public boolean isAddressValid(String address) {\n\t\tString pattern = \"(^\\\\d+(w|e|s|n)\\\\d+\\\\s\\\\w+\\\\s\\\\w+\\\\.)\";\n\t\tboolean isMatch = Pattern.matches(pattern, address);\n return isMatch;\n }", "public static String getTagID(String str){\n\t\tString tag = str.substring(0, 8);\n\t\tString regEx = \"(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])\";\n\t\tPattern pattern = Pattern.compile(regEx);\n\t\tMatcher matcher = pattern.matcher(tag);\n\t\t\n\n\t\tif(!matcher.find()){\n\t\t\t\n\t\t\treturn \"\";\n\t\t}\n\t\n\t\treturn tag;\n\t}", "private static boolean validateHashTag(String line) {\n\t\tif (\"\".equals(line.trim()))\n\t\t\treturn false;\n\t\treturn Pattern.matches(\"[a-zA-Z0-9]*\", line);\n\t}", "private static boolean validatingIP(String IP)\n {\n if(IP.equalsIgnoreCase(\"localhost\"))\n {\n return true;\n }\n try\n {\n if (IP == null || IP.isEmpty())\n {\n return false;\n }\n\n String[] parts = IP.split(\"\\\\.\");\n if (parts.length != 4)\n {\n return false;\n }\n\n for (String s : parts)\n {\n int i = Integer.parseInt(s);\n if ((i < 0) || (i > 255))\n {\n return false;\n }\n }\n if (IP.endsWith(\".\"))\n {\n return false;\n }\n\n return true;\n }\n catch (NumberFormatException nfe)\n {\n return false;\n }\n\n }", "public void set_nat46fragheader(String nat46fragheader) throws Exception{\n\t\tthis.nat46fragheader = nat46fragheader;\n\t}", "private int skipPreamble(char[] input,\n int offset,\n int end,\n int[] lineNr)\n throws XMLParseException {\n char ch;\n\n do {\n offset = this.skipWhitespace(input, offset, end, lineNr);\n\n if (input[offset] != '<') {\n this.expectedInput(\"'<'\", lineNr[0]);\n }\n\n offset++;\n\n if (offset >= end) {\n throw this.unexpectedEndOfData(lineNr[0]);\n }\n\n ch = input[offset];\n\n if ((ch == '!') || (ch == '?')) {\n offset = this.skipBogusTag(input, offset, end, lineNr);\n }\n } while (!isIdentifierChar(ch));\n\n return offset;\n }", "public boolean validarDni(String dni){\n boolean isDni = true;\n while(dni.startsWith(\"0\")){\n dni = dni.substring(1);\n }\n isDni = dni.length()<10 && dni.length()>6?true:false;\n return isDni;\n }", "public static boolean validIP(String ip) {\r\n\t try {\r\n\t if ( ip == null || ip.isEmpty() ) {\r\n\t return false;\r\n\t }\r\n\r\n\t String[] parts = ip.split( \"\\\\.\" );\r\n\t if ( parts.length != 4 ) {\r\n\t return false;\r\n\t }\r\n\r\n\t for ( String s : parts ) {\r\n\t int i = Integer.parseInt( s );\r\n\t if ( (i < 0) || (i > 255) ) {\r\n\t return false;\r\n\t }\r\n\t }\r\n\t if ( ip.endsWith(\".\") ) {\r\n\t return false;\r\n\t }\r\n\r\n\t return true;\r\n\t } catch (NumberFormatException nfe) {\r\n\t return false;\r\n\t }\r\n\t}", "@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public String getValidIdentifier(String baseName, boolean truncateUsingRandomDigits);", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "private String parseName(byte[] buffer, final int offset, final int length, final ArchiveEntryEncoding encoding) throws IOException {\n int len = length;\n for (; len > 0; len--) {\n if (buffer[offset + len - 1] != 0) {\n break;\n }\n }\n if (len > 0) {\n byte[] b = new byte[len];\n System.arraycopy(buffer, offset, b, 0, len);\n return encoding.decode(b);\n }\n return \"\";\n }", "private boolean isIdentifier(String input) {\n if (this.isLetter(input.charAt(0))) {\n return true;\n } else return false;\n }", "public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}", "@Test\n\tpublic void invalidLengthShort() {\n\t\tboolean result = validator.isValid(\"73602851\");\n\t\tassertFalse(result);\n\t}", "private LispSimpleAddressStringifier() {\n }", "private boolean isAllowedXmlNodeNameStartChar(char keyCode){\n\t\treturn ((keyCode >= 'a' && keyCode <= 'z') || (keyCode >= 'A' && keyCode <= 'Z') || isControlChar(keyCode));\n\t}", "public int getOctet(int position)\n {\n position = position > 3 ? 3 : position;\n position = position < 0 ? 0 : position;\n \n return address[position];\n }", "@Nullable public abstract String ipAddress();", "@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullString() {\n Ip4Address ipAddress;\n\n String fromString = null;\n ipAddress = Ip4Address.valueOf(fromString);\n }", "public void testStringID() {\n String testID = generator.generatePrefixedIdentifier(\"test\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"test\" + ID_REGEX));\n }" ]
[ "0.5902394", "0.57218856", "0.55977464", "0.5593047", "0.5413684", "0.53468573", "0.5273739", "0.50858665", "0.503476", "0.50322574", "0.49463928", "0.49302143", "0.4908113", "0.48991242", "0.4896771", "0.48561528", "0.4829755", "0.48208305", "0.48121414", "0.48053515", "0.48011622", "0.48003536", "0.47912136", "0.4782302", "0.4772229", "0.47676003", "0.4759086", "0.47324213", "0.4704474", "0.46979633", "0.46899647", "0.46764204", "0.46623692", "0.4658571", "0.46441966", "0.4640415", "0.4635346", "0.46277872", "0.46189508", "0.46072286", "0.46002895", "0.4598304", "0.45960787", "0.4593425", "0.45864967", "0.45849425", "0.45795292", "0.45782626", "0.45762584", "0.4573053", "0.45712814", "0.456589", "0.45652968", "0.4561705", "0.45605144", "0.4557375", "0.45502144", "0.45452902", "0.4539344", "0.45346496", "0.4532804", "0.4530859", "0.4526812", "0.45261857", "0.45247972", "0.45175976", "0.45167634", "0.45121115", "0.45102662", "0.4500528", "0.44980872", "0.4497424", "0.44905943", "0.44894153", "0.44778416", "0.44774485", "0.44756222", "0.4474309", "0.4467636", "0.44657823", "0.44600114", "0.44590706", "0.44580546", "0.4456437", "0.44468182", "0.4442431", "0.44382542", "0.44336116", "0.4433356", "0.44290107", "0.4427698", "0.44273165", "0.44139075", "0.44130987", "0.44044766", "0.44004905", "0.43943286", "0.4388344", "0.43863642", "0.43836054" ]
0.635218
0
Unreads lookahead data from the underlying character scanner.
public void finish() { charScanner.pushBack(currentCharToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n zzFinalHighSurrogate = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n if (zzBuffer.length > ZZ_BUFFERSIZE)\n zzBuffer = new char[ZZ_BUFFERSIZE];\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n zzFinalHighSurrogate = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n if (zzBuffer.length > ZZ_BUFFERSIZE)\r\n zzBuffer = new char[ZZ_BUFFERSIZE];\r\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n zzFinalHighSurrogate = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n if (zzBuffer.length > ZZ_BUFFERSIZE)\r\n zzBuffer = new char[ZZ_BUFFERSIZE];\r\n }", "public void read_lookahead() throws Exception {\r\n this.lookahead = new Symbol[error_sync_size()];\r\n for (int i = 0; i < error_sync_size(); i++) {\r\n this.lookahead[i] = this.cur_token;\r\n this.cur_token = scan();\r\n }\r\n this.lookahead_pos = 0;\r\n }", "public void reset(Reader input) {\n this.buffer.dispose();\n this.buffer = new ReaderBuffer(input);\n this.previousToken = null;\n this.lastMatch.clear();\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\n zzReader = reader;\n zzAtBOL = true;\n zzAtEOF = false;\n zzEOFDone = false;\n zzEndRead = zzStartRead = 0;\n zzCurrentPos = zzMarkedPos = 0;\n yyline = yychar = yycolumn = 0;\n zzLexicalState = YYINITIAL;\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n javaCharStream0.ReInit((InputStream) pipedInputStream0, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "public final void yyreset(Reader reader) {\n\t\t// 's' has been updated.\n\t\tzzBuffer = s.array;\n\t\t/*\n\t\t * We replaced the line below with the two below it because zzRefill\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\n\t\t * \"full\" the first time through, since it points to the segment's\n\t\t * array). So, we assign zzEndRead here.\n\t\t */\n\t\t//zzStartRead = zzEndRead = s.offset;\n\t\tzzStartRead = s.offset;\n\t\tzzEndRead = zzStartRead + s.count - 1;\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\n\t\tzzLexicalState = YYINITIAL;\n\t\tzzReader = reader;\n\t\tzzAtBOL = true;\n\t\tzzAtEOF = false;\n\t}", "public final void yyreset(java.io.Reader reader) {\r\n\t\t// 's' has been updated.\r\n\t\tzzBuffer = s.array;\r\n\t\t/*\r\n\t\t * We replaced the line below with the two below it because zzRefill\r\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\r\n\t\t * \"full\" the first time through, since it points to the segment's\r\n\t\t * array). So, we assign zzEndRead here.\r\n\t\t */\r\n\t\t//zzStartRead = zzEndRead = s.offset;\r\n\t\tzzStartRead = s.offset;\r\n\t\tzzEndRead = zzStartRead + s.count - 1;\r\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\r\n\t\tzzLexicalState = YYINITIAL;\r\n\t\tzzReader = reader;\r\n\t\tzzAtEOF = false;\r\n\t}", "public void restart_lookahead() throws Exception {\r\n for (int i = 1; i < error_sync_size(); i++) {\r\n Symbol[] symbolArr = this.lookahead;\r\n symbolArr[i - 1] = symbolArr[i];\r\n }\r\n this.cur_token = scan();\r\n this.lookahead[error_sync_size() - 1] = this.cur_token;\r\n this.lookahead_pos = 0;\r\n }", "public final void yyreset(Reader reader) {\n\t\t// 's' has been updated.\n\t\tzzBuffer = s.array;\n\t\t/*\n\t\t * We replaced the line below with the two below it because zzRefill\n\t\t * no longer \"refills\" the buffer (since the way we do it, it's always\n\t\t * \"full\" the first time through, since it points to the segment's\n\t\t * array). So, we assign zzEndRead here.\n\t\t */\n\t\t//zzStartRead = zzEndRead = s.offset;\n\t\tzzStartRead = s.offset;\n\t\tzzEndRead = zzStartRead + s.count - 1;\n\t\tzzCurrentPos = zzMarkedPos = s.offset;\n\t\tzzLexicalState = YYINITIAL;\n\t\tzzReader = reader;\n\t\tzzAtEOF = false;\n\t}", "final public void yyreset(java.io.Reader reader) throws java.io.IOException {\n yyclose();\n yy_reader = reader;\n yy_atBOL = true;\n yy_atEOF = false;\n yy_endRead = yy_startRead = 0;\n yy_currentPos = yy_markedPos = yy_pushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n yy_lexical_state = YYINITIAL;\n }", "final public void yyreset(java.io.Reader reader) throws java.io.IOException {\n yyclose();\n yy_reader = reader;\n yy_atBOL = true;\n yy_atEOF = false;\n yy_endRead = yy_startRead = 0;\n yy_currentPos = yy_markedPos = yy_pushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n yy_lexical_state = YYINITIAL;\n }", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n javaCharStream0.ReInit((Reader) stringReader0);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "void unsetRawOffset();", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(1);\n javaCharStream0.getLine();\n assertEquals(4094, javaCharStream0.bufpos);\n }", "protected Token lookahead() {\n return m_current;\n }", "@Test(timeout = 4000)\n public void test131() throws Throwable {\n StringReader stringReader0 = new StringReader(\"QXw?YE]We2j)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 754, 5, 5);\n javaCharStream0.ReInit((Reader) stringReader0, 754, 754);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "private void rewind() {\n currentPos = markPos;\n }", "@Test(timeout = 4000)\n public void test052() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 122, 122, 122);\n javaCharStream0.ReInit((Reader) null, 122, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "private char peek() {\n return regEx.charAt(0);\n }", "void peekAhead(GetsState gs) {\n ChannelBuffer buf;\n //Tcl_DriverBlockModeProc *blockModeProc;\n int bytesLeft;\n boolean goto_cleanup = false; // Set to true when jumping to the\n // cleanup label, used to simulate a goto.\n\n buf = gs.buf;\n\n // If there's any more raw input that's still buffered, we'll peek into\n // that. Otherwise, only get more data from the channel driver if it\n // looks like there might actually be more data. The assumption is that\n // if the channel buffer is filled right up to the end, then there\n // might be more data to read.\n\n cleanup:{\n //blockModeProc = NULL;\n if (buf.next == null) {\n bytesLeft = buf.nextAdded - (buf.nextRemoved + gs.rawRead.i);\n if (bytesLeft == 0) {\n if (buf.nextAdded < buf.bufLength) {\n // Don't peek ahead if last read was short read.\n goto_cleanup = true;\n break cleanup;\n }\n // FIXME: This non-blocking check is currently disabled, non-blocking\n // is not currently supported and it is not clean why we would\n // need to depend on non-blocking IO when peeking anyway.\n if (blocking) {\n //blockModeProc = Tcl_ChannelBlockModeProc(chanPtr->typePtr);\n if (false /*blockModeProc == NULL*/) {\n // Don't peek ahead if cannot set non-blocking mode.\n goto_cleanup = true;\n break cleanup;\n }\n //StackSetBlockMode(chanPtr, TCL_MODE_NONBLOCKING);\n }\n }\n }\n filterBytes(gs);\n //if (blockModeProc != NULL) {\n // StackSetBlockMode(chanPtr, TCL_MODE_BLOCKING);\n //}\n }\n\n if (goto_cleanup) {\n buf.nextRemoved += gs.rawRead.i;\n gs.rawRead.i = 0;\n gs.totalChars += gs.charsWrote.i;\n //gs.bytesWrote.i = 0;\n gs.charsWrote.i = 0;\n }\n }", "private void trim() {\n read(0);\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Cf&9B{tMCu\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(4, javaCharStream0.getColumn());\n }", "void seekReset() {\n\t\tcancelEof();\n\t\tsawEofChar = false;\n\t}", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t\tint pos = findFirstNotWhitespace(line.toCharArray());\n\t\t\n\t\t//read line until next token found\n\t\twhile (pos == -1 && s.hasNextLine())\n\t\t{\n\t\t\t//read next line\n\t\t\tline = s.nextLine();\n\t\t\t//check for start of token\n\t\t\tpos = findFirstNotWhitespace(line.toCharArray());\n\t\t}\n\t\t\n\t\t//no token found till eof\n\t\tif (pos == -1)\n\t\t{\n\t\t\t//set EOF tag\n\t\t\tline = null;\n\t\t}\n\t\t//reset token values\n\t\ttoken = null;\n\t\ttType = null;\n\t}", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n StringReader stringReader0 = new StringReader(\"]X%^)tJ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0);\n char char0 = javaCharStream0.ReadByte();\n assertEquals((-1), javaCharStream0.bufpos);\n assertEquals(']', char0);\n }", "Token peek();", "void seekReset() {\n discardQueued(false);\n eofCond = false;\n stickyEofCond = false;\n blocked = false;\n sawCR = false;\n // FIXME: Change needed in Tcl\n //needNL = false;\n }", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n StringReader stringReader0 = new StringReader(\"b|}T=mM,PuM8AP|}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 10, 0, 0);\n char char0 = javaCharStream0.BeginToken();\n assertEquals('b', char0);\n \n int int0 = javaCharStream0.getEndLine();\n assertEquals(10, javaCharStream0.getBeginLine());\n assertEquals(10, int0);\n assertEquals(0, javaCharStream0.getColumn());\n }", "PTB2TextLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "abstract public void unparse(PrintWriter p, int indent);", "abstract public void unparse(PrintWriter p, int indent);", "private void decodeBuffer(boolean flushBuffer) throws IOException {\n if (!flushBuffer && bb.position() < PROCESS_THRESHOLD) {\n return;\n }\n bb.flip();\n cd.reset();\n if (bb.hasRemaining()) {\n CoderResult cr = cd.decode(bb, cb, true);\n cd.flush(cb);\n if (cr.isMalformed()) {\n // Move the tail bytes to the head\n int tailLength = bb.remaining();\n if (tailLength >= MALFORMED_INPUT_MAX_LENGTH) {\n // We only expect the bytes of one character to be broken\n throw new MalformedInputException(tailLength);\n }\n }\n bb.compact();\n } else {\n bb.clear();\n }\n }", "public ByteBuffer rollbackParseState(ByteBuffer byteBuffer);", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 3171, 3171, 3171);\n javaCharStream0.backup(8);\n javaCharStream0.BeginToken();\n javaCharStream0.AdjustBuffSize();\n javaCharStream0.AdjustBuffSize();\n assertEquals(8, javaCharStream0.bufpos);\n }", "private static int [] yy_unpack() {\n int [] trans = new int[8174];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.ReInit(javaCharStream0);\n assertEquals(0, javaCharStream0.getBeginLine());\n }", "private synchronized void popBuffer() {\n IoBuffer buf = data.removeFirst();\n if(marked) {\n resetCache.push(buf);\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n } else {\n buf.free();\n }\n }", "private int peek() {\n if (peeked == NotPeeked) {\n peeked = readChar();\n }\n return peeked;\n }", "public String popCurrentToken() throws IOException, DataFormatException {\n String token = this.currentToken;\n advance();\n return token;\n }", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "public void parse_lookahead(boolean z) throws Exception {\r\n this.lookahead_pos = 0;\r\n if (z) {\r\n debug_message(\"# Reparsing saved input with actions\");\r\n debug_message(\"# Current Symbol is #\" + cur_err_token().sym);\r\n debug_message(\"# Current state is #\" + ((Symbol) this.stack.peek()).parse_state);\r\n }\r\n Object obj = null;\r\n while (!this._done_parsing) {\r\n short s = get_action(((Symbol) this.stack.peek()).parse_state, cur_err_token().sym);\r\n if (s > 0) {\r\n cur_err_token().parse_state = s - 1;\r\n cur_err_token().used_by_parser = true;\r\n if (z) {\r\n debug_shift(cur_err_token());\r\n }\r\n this.stack.push(cur_err_token());\r\n this.tos++;\r\n if (!advance_lookahead()) {\r\n if (z) {\r\n debug_message(\"# Completed reparse\");\r\n return;\r\n }\r\n return;\r\n } else if (z) {\r\n debug_message(\"# Current Symbol is #\" + cur_err_token().sym);\r\n }\r\n } else if (s < 0) {\r\n int i = (-s) - 1;\r\n Symbol do_action = do_action(i, this, this.stack, this.tos);\r\n short[][] sArr = this.production_tab;\r\n short s2 = sArr[i][0];\r\n short s3 = sArr[i][1];\r\n if (z) {\r\n debug_reduce(i, s2, s3);\r\n }\r\n for (int i2 = 0; i2 < s3; i2++) {\r\n this.stack.pop();\r\n this.tos--;\r\n }\r\n short s4 = get_reduce(((Symbol) this.stack.peek()).parse_state, s2);\r\n do_action.parse_state = s4;\r\n do_action.used_by_parser = true;\r\n this.stack.push(do_action);\r\n this.tos++;\r\n if (z) {\r\n debug_message(\"# Goto state #\" + ((int) s4));\r\n }\r\n obj = do_action;\r\n } else if (s == 0) {\r\n report_fatal_error(\"Syntax error\", obj);\r\n return;\r\n }\r\n }\r\n }", "@Test(timeout = 4000)\n public void test129() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.getBeginLine();\n assertEquals((-1), javaCharStream0.bufpos);\n }", "char getPreviousReadChar();", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n StringReader stringReader0 = new StringReader(\"anBz*^T>\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n stringReader0.read();\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(3, javaCharStream0.getEndColumn());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n StringReader stringReader0 = new StringReader(\"c3UZts4z!|a\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 21, 47);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(9, javaCharStream0.bufpos);\n assertEquals(30, javaCharStream0.getEndColumn());\n }", "public char readChar()\r\n/* 441: */ {\r\n/* 442:454 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 443:455 */ return super.readChar();\r\n/* 444: */ }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[2];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n assertEquals(9, javaCharStream0.bufpos);\n assertEquals(10, javaCharStream0.getColumn());\n }", "public void reset()\n {\n myOffset = 0;\n amIInsideDoubleQuotes = false;\n amIInsideSingleQuotes = false;\n myCurrLexeme = null;\n }", "private void advanceUntilNL() throws BufferEndedException {\twhile (reader.getLastDelimiter()!='\\n') reader.nextToken();}", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.FillBuff();\n assertEquals((-1), javaCharStream0.bufpos);\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n StringReader stringReader0 = new StringReader(\"c3UZts4z!|a\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 21, 47);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(23, javaCharStream0.getColumn());\n }", "public void unparse(PrintWriter p, int indent) {\r\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 122, 122, 122);\n javaCharStream0.ReInit((Reader) null, 122, 122, 1500);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n javaCharStream0.maxNextCharInd = 2;\n javaCharStream0.prevCharIsCR = true;\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('\\u0000', char0);\n }", "static void getToken() throws IOException{\n curr_char = pbIn.read();\n getNonBlank();\n lookUp();\n }", "public void reset(BacktrackingTokenizerMark mark) {\n\t\tposition = mark.getPosition(tokens);\n\t}", "public void testRewind() {\n System.out.println(\"rewind\");\n BufferedCharSequence instance = null;\n BufferedCharSequence expResult = null;\n BufferedCharSequence result = instance.rewind();\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(timeout = 4000)\n public void test064() throws Throwable {\n StringReader stringReader0 = new StringReader(\"tNJ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "void setReadPosition(int minus) {\n/* 159 */ this.pos -= minus;\n/* 160 */ this.readerIndex = getReadPosition(this.pos);\n/* 161 */ this.buffer.readerIndex(this.readerIndex);\n/* */ }", "private void unpack() {\n if (!isInPackedState)\n return;\n try {\n ByteArrayInputStream bs = new ByteArrayInputStream(data);\n DataInputStream dis = new DataInputStream(bs);\n line_number_table_length = (dis.readUnsignedShort());\n line_number_table = new LineNumber[line_number_table_length];\n for (int i = 0; i < line_number_table_length; i++) line_number_table[i] = new LineNumber(dis);\n dis.close();\n // throw it away now\n data = null;\n } catch (IOException e) {\n throw new RuntimeException(\"Unpacking of LineNumberTable attribute failed\");\n }\n isInPackedState = false;\n }", "public synchronized void unpin(Buffer buff) {\n //=====================================CS4432-Project1=====================\n buff.unpin();\n if (!buff.isPinned()) {\n //if the buffer is now unpinned, we should re-add the buffer to the least recently\n //used linked list so that we can use it if need be\n if (replacementPolicy.equalsIgnoreCase(\"LRU\")){\n leastRecentlyUsedArray.add(buff.getFrameNumber());\n }\n //increment the number of available\n numAvailable++;\n }\n }", "public void unescapedCharacters(char[] chars, int start, int length);", "Character symbolStackRead();", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n StringReader stringReader0 = new StringReader(\"9F83|i5vU 84Kd\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 887, 887);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n // // Unstable assertion: assertEquals(3, javaCharStream0.bufpos);\n // // Unstable assertion: assertEquals(890, javaCharStream0.getColumn());\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1, 0);\n char char0 = javaCharStream0.readChar();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(1, javaCharStream0.getEndLine());\n assertEquals('Z', char0);\n }", "public native void deinitializeCharon();", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n StringReader stringReader0 = new StringReader(\"}y5+{SPClS&QvLb0Qm\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(3, javaCharStream0.getColumn());\n }", "Lexer (Reader rdr) {\n inSource = new PushbackReader (rdr);\n lineno = 1;\n }" ]
[ "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5657794", "0.5649852", "0.56304944", "0.56267494", "0.56267494", "0.5609325", "0.5549667", "0.546691", "0.542084", "0.534633", "0.534633", "0.52649057", "0.52649057", "0.52649057", "0.52649057", "0.52649057", "0.5260208", "0.5260208", "0.51820993", "0.51760995", "0.5170253", "0.5163734", "0.5157038", "0.5125591", "0.5125591", "0.51242065", "0.50849783", "0.50457615", "0.5000241", "0.49263594", "0.49057573", "0.4833612", "0.47663957", "0.47593778", "0.4759095", "0.47501647", "0.47080564", "0.46902865", "0.46895573", "0.46801484", "0.4644079", "0.4643593", "0.46352372", "0.4634629", "0.46171463", "0.46155655", "0.46132538", "0.4612333", "0.4612333", "0.46041435", "0.45985797", "0.45942798", "0.4563577", "0.4563279", "0.45616987", "0.45607567", "0.45591033", "0.4557244", "0.45569003", "0.45510116", "0.45403683", "0.45373374", "0.45313329", "0.4530948", "0.45303035", "0.45276317", "0.45263225", "0.45228234", "0.45167133", "0.45092192", "0.45054924", "0.45009035", "0.45007235", "0.44986317", "0.4492634", "0.44897836", "0.44829446", "0.44758794", "0.447567", "0.44722626", "0.44721153", "0.4470704", "0.44671306", "0.4465922", "0.44647437", "0.44523972" ]
0.4784076
46
will be perform before "SUPER_ADMIN" group annotated test method
@BeforeGroups(groups = "SUPER_ADMIN") protected void loginSuperAdmin() throws Exception { login("[email protected]", "spravce"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdminPerm() {\n }", "protected void runBeforeTest() {}", "@BeforeGroup\n public void beforeGroup() {\n }", "@BeforeGroups(groups = { \"NewUser\" }, value = { \"NewUser\" })\n public void preNewUser(ITestContext itc) {\n System.out.println(\"BEFOREGROUPS perfroming pre groups init\");\n// m_inj = Guice.createInjector(new JUnitModule(), new RequestModule(),\n// new GenericModule(), new SecurityModule());\n// itc.setAttribute(\"injector\", m_inj);\n }", "@Test(priority = 1)\n\tpublic void login() {\n\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void allAcctsSuperUserCreation() {\n\t\t Report.createTestLogHeader(\"MuMv\", \"Verify the Super user creation and their Audit entry in DB\"); \t \t \t \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecifics\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SubmitMeterReadodb\");\n\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"SlingshotCrmDetailsSuperuser\"); \n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes();\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewSuperUser(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile)\n\t\t.AdduserConfirmationPage();\n\t/*\t.confirmationPageVerificationLinks();\n\t\t/*.UserJourney_SuperUserAccessVerification(userProfile,smrProfile);\n\t\tnew SapCrmAction()\n\t\t.loginDetails(crmuserProfile)\n\t\t.searchCrmFieldsVerification(crmuserProfile, userProfile);\n*/\n\t}", "@Before\n public void beforeTest(){\n\n\n }", "@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifySuperUserAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the super user is able to perform journeys\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifySuperuserAccessjourneyverification();\n\t}", "@Before\n public void postSetUpPerTest(){\n\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@BeforeSuite\r\n\t\tpublic void BeforeSute()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Before suite\");\r\n\t\t}", "@Before\n public void before() {\n }", "@Before\n public void before() {\n }", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "protected final void runAsAdmin() {\n authenticationTestingUtil.grantAdminAuthority( this.applicationContext );\n }", "public void before() {\n }", "public void before() {\n }", "@Before\r\n\tpublic void before() {\r\n\t}", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "protected abstract void before();", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "@Before\r\n\t public void setUp(){\n\t }", "@Override\n public void beforeFirstLogic() {\n }", "protected void runBeforeStep() {}", "@Before(\"forDaoPackage()\")\r\n\tpublic void beforeAddAccountAdvice() {\r\n\t\tSystem.out.println(\"\\n=======>>>>> execution @Before advice on addAccount\");\r\n\t\t// run this code BEFORE-target object method: \"public void addAccount()\"\r\n\t}", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before\r\n\tpublic void set_up(){\n\t}", "@Before\r\n public void before() throws Exception {\r\n }", "@Before public void setUp() { }", "@Test(enabled = false)\n public void testAddLaunchPermissionsToImage() {\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "void before();", "void beforeRun();", "@Before\n public void beforeScenario() {\n }", "@BeforeClass\n public static void beforeClass() {\n }", "@BeforeClass\n\tpublic void beforeClass() {\n\t}", "@Before\n public void before() {\n ErrorMessageUtil errorMessages = Mockito.mock(ErrorMessageUtil.class);\n Mockito.when(errorMessages.getMessage(ArgumentMatchers.anyString(), ArgumentMatchers.any())).thenReturn(ERROR_MESSAGE);\n\n permissions = Mockito.mock(ResourcePermissions.class);\n Mockito.when(permissions.doesUserHaveRole(ArgumentMatchers.anyList())).thenReturn(true);\n\n reviewer = new FunctionalityTestedAllowedByRoleReviewer(permissions, errorMessages, RESTRICTED_FUNCTIONALITY_TESTED_JSON);\n }", "@Before\n\t public void setUp() {\n\t }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifySuperUserallaccountsConfirmationPageNavigation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether view name field is prepopulated as All accounts for super user\"); \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes()\n\t\t.EnterValid_SuperUserdata(userProfile)\t\n\t\t.AddNewUserNavigationVerification() \n\t\t.UserConfirmationPageNavigations(); \t \n\n\t}", "@BeforeClass\n public void beforeclass() {\n\t}", "@BeforeTest\npublic void hai()\n{\n\t\n\tHello();\n\t\n}", "@Test\n public void groupTest() {\n // TODO: test group\n }", "@Override\n \tpublic void setUp() throws Exception{\n \t\tLog.i(\"got to top of setup\", \"yay\");\n \t\t\n \t\tLog.i(\"solo\", \"created solo\");\n \t\t\n \t\tLog.i(\"user name\", \"set user name\");\n \t\tIntent i = new Intent();\n \t\ti.putExtra(\"groupname\", \"GroupForTestingOnly\");\n \t\ti.putExtra(\"gm\", \"UseForTestingOnly\");\n \t\tsetActivityIntent(i);\n \t\tsolo = new Solo(getInstrumentation(), getActivity());\n \t\tSaveSharedPreference.setPersistentUserName(getActivity(), VALID_USERNAME);\n \t\tLog.i(\"set the intent\", \"what?\");\n \t}", "default void beforeUse() {\n\t}", "@Before\n public void setUp() {\n }", "@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n user.setSolde(BigDecimal.valueOf(100.0));\n userRepo.save(user);\n\n }", "@Test\n public void groupListingPaginationEnableTest() {\n // TODO: test groupListingPaginationEnable\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Before\r\n\tpublic void doThisEveryTime() {\n\t}", "@Test\n\tvoid testOnAddToOrder() {\n\t}", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"IPA\");\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Before\n public void setUp () {\n }", "@Before\n public void setUp() {\n }", "@Override\r\n public void beforeScript(final String arg0, final WebDriver arg1) {\n\r\n }", "@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n userRepo.save(user);\n }", "@BeforeClass(enabled =true)\n\tpublic void beforeClass(){\n\t\tSystem.out.println(\"In BeforeClass\");\n\t}", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@BeforeAll\n\tstatic void initOperate()\n\t{\t\n\t\tSystem.out.println(\"only Before All the tests....\");\n\t\toperate = new Operations();\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateMaximumSuperUserExceeded() {\t\n\t\tReport.createTestLogHeader(\"MuMv\", \"Check the error message is getting displayed when the user tries to add sixth super user\"); \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVmorethan5superuser\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes() \n\t\t.SuperUserMaximumExceedErrorValidation(); \n\n\t}", "@Override\r\npublic void beforeScript(String arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "protected void setUp() {\n\n }", "@Before\n public void setupThis() {\n System.out.println(\"* Before test method *\");\n }", "@Test // (groups={\"All\"}) //(groups={\"smoke\"})\r\n\tpublic void createLead() {\n\t\tSystem.out.println(\"create\");\r\n\t}", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "@Before\n\tpublic void setUp() {\n\t}", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}" ]
[ "0.7036304", "0.69865316", "0.68863636", "0.660305", "0.65646756", "0.655682", "0.6536767", "0.6512943", "0.6499304", "0.63981336", "0.63858557", "0.6374804", "0.6374804", "0.6336953", "0.6336768", "0.6336768", "0.6307391", "0.6300979", "0.62943566", "0.62943566", "0.6284866", "0.6278338", "0.6278338", "0.6274111", "0.6266115", "0.6237969", "0.6178245", "0.6142277", "0.61415017", "0.61321944", "0.61321944", "0.61321944", "0.61321944", "0.61321944", "0.6116916", "0.6113763", "0.61108005", "0.60987073", "0.6080755", "0.6080755", "0.6080755", "0.6080755", "0.60781056", "0.6046429", "0.60352266", "0.6033423", "0.60315055", "0.6001156", "0.60006255", "0.59966654", "0.59941345", "0.59878725", "0.5984311", "0.59757894", "0.5973629", "0.5972014", "0.5967348", "0.59616524", "0.5961553", "0.59597194", "0.5956214", "0.59421116", "0.5931418", "0.5931418", "0.5931418", "0.5931418", "0.5931418", "0.5928989", "0.5927462", "0.59214324", "0.59203523", "0.5917657", "0.59129125", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59107137", "0.59100163", "0.5903566", "0.58934087", "0.58919775", "0.5890189", "0.5885237", "0.58845466", "0.5874428", "0.5870276" ]
0.67577314
3
will be perform before "REGION_ADMIN" group annotated test method
@BeforeGroups(groups = "REGION_ADMIN") protected void loginRegionAdmin() throws Exception { login("[email protected]", "region"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void regionTest() {\n // TODO: test region\n }", "@BeforeGroup\n public void beforeGroup() {\n }", "protected void runBeforeTest() {}", "@Test\n public void testAdminPerm() {\n }", "@Before\n public void postSetUpPerTest(){\n\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Before\n public void beforeScenario() {\n }", "@Before\n public void before() {\n }", "@Before\n public void before() {\n }", "@Before\r\n\t public void setUp(){\n\t }", "@Before\n public void beforeTest(){\n\n\n }", "@Before\r\n\tpublic void set_up(){\n\t}", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test\n public void groupListingPaginationEnableTest() {\n // TODO: test groupListingPaginationEnable\n }", "@Before\r\n\tpublic void before() {\r\n\t}", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "@Before public void setUp() { }", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void before() throws Exception {\r\n }", "@Before\n public void BeforeTestContinent() {\n continent = new Model.Continent(\"Asia\", 5);\n\n }", "@Before(\"forDaoPackage()\")\r\n\tpublic void beforeAddAccountAdvice() {\r\n\t\tSystem.out.println(\"\\n=======>>>>> execution @Before advice on addAccount\");\r\n\t\t// run this code BEFORE-target object method: \"public void addAccount()\"\r\n\t}", "@Before\n\t public void setUp() {\n\t }", "@BeforeMethod\n public void preCondtions() {\n }", "@BeforeClass\n public static void classSetUp() {\n printTestClassHeader();\n uri = Const.ActionURIs.ADMIN_INSTRUCTORACCOUNT_ADD;\n // removeAndRestoreTypicalDataInDatastore();\n }", "public void before() {\n }", "public void before() {\n }", "@Before\n public void setUp() {\n }", "@Test\n public void addRole(){\n }", "@BeforeAll\n\tstatic void initOperate()\n\t{\t\n\t\tSystem.out.println(\"only Before All the tests....\");\n\t\toperate = new Operations();\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Test\n\tvoid testOnAddToOrder() {\n\t}", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp () {\n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void before() {\n ErrorMessageUtil errorMessages = Mockito.mock(ErrorMessageUtil.class);\n Mockito.when(errorMessages.getMessage(ArgumentMatchers.anyString(), ArgumentMatchers.any())).thenReturn(ERROR_MESSAGE);\n\n permissions = Mockito.mock(ResourcePermissions.class);\n Mockito.when(permissions.doesUserHaveRole(ArgumentMatchers.anyList())).thenReturn(true);\n\n reviewer = new FunctionalityTestedAllowedByRoleReviewer(permissions, errorMessages, RESTRICTED_FUNCTIONALITY_TESTED_JSON);\n }", "@Before\n public void init(){\n }", "public void testGroupInitializer() throws Exception {\n }", "@Test(priority = 1)\n\tpublic void login() {\n\n\t}", "public void testGetRegion() {\r\n\t\tregionBuilder = getRegionTestBuilder();\r\n\t\ttry {\r\n\t\t\tRegion region = regionMgr.getRegion(RegionTestBuilder.REGION_ID_INDIA);\r\n\t\t\tassertTrue(\"Unable to get country list\", region.getName()\r\n\t\t\t\t\t.equalsIgnoreCase(\"India\"));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tassertTrue(\"An excpetion has occured\", false);\r\n\t\t}\r\n\t}", "@Override\r\n public void afterSecurityScanRequest(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityScanRequestResult securityCheckReqResult) {\n\r\n }", "@Before\n\tpublic void setUp() {\n\t}", "@BeforeTest\n\n public void Initialize() {\n\n\n}", "@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }", "@Override\r\n protected void setUp() throws Exception {\r\n deleteAllProjects();\r\n\r\n lookupProjectServiceRemoteWithUserRole();\r\n }", "@BeforeGroups(groups = { \"NewUser\" }, value = { \"NewUser\" })\n public void preNewUser(ITestContext itc) {\n System.out.println(\"BEFOREGROUPS perfroming pre groups init\");\n// m_inj = Guice.createInjector(new JUnitModule(), new RequestModule(),\n// new GenericModule(), new SecurityModule());\n// itc.setAttribute(\"injector\", m_inj);\n }", "@BeforeMethod\r\n\tpublic void beforeMethod() {\r\n\t\t//initializeTestBaseSetup();\r\n\t}", "protected void setUp() {\n\n }", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "@Before(\"com.in28minutes.spring.aop.springaop.CommonJoinPointConfig.dataLayerExecution())\")\n public void before(JoinPoint joinPoint) {\n //you do not need to check access in every class, you can\n // do it here\n\n //ADVICE\n logger.info(\"Check user access\");\n logger.info(\" Intercepted Method Call - {}\", joinPoint);\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n @Override\n public void init() {\n }", "@Test\n @WithMockUhUser(username = \"iamtst04\")\n public void optInTest() throws Exception {\n assertFalse(isInCompositeGrouping(GROUPING, tst[0], tst[3]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[3]));\n assertTrue(isInExcludeGroup(GROUPING, tst[0], tst[3]));\n\n //tst[3] opts into Grouping\n mapGSRs(API_BASE + GROUPING + \"/optIn\");\n }", "@Override\n public void beforeFirstLogic() {\n }", "@BeforeSuite\r\n\t\tpublic void BeforeSute()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Before suite\");\r\n\t\t}", "@BeforeClass\n public static void BeforeClass() {\n System.out.println(\"Entered TestContinent Class\");\n }", "@BeforeClass\n public static void beforeClass() {\n }", "@Before\n public void init() {\n }", "@Before(\"selectAll()\")\n public void beforeAdvice(){\n System.out.println(\"Going to setup calculator service...\");\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Test\n public void organizationTest() {\n // TODO: test organization\n }", "protected void runBeforeStep() {}" ]
[ "0.672076", "0.66696435", "0.6520484", "0.6296436", "0.6209714", "0.6200862", "0.6200862", "0.6194664", "0.61797816", "0.61797816", "0.6169753", "0.6158418", "0.6145157", "0.6136282", "0.6136282", "0.6108553", "0.6096198", "0.60901433", "0.60901433", "0.60901433", "0.60901433", "0.60901433", "0.60584664", "0.6052535", "0.60357696", "0.6027755", "0.6027755", "0.6027755", "0.6027755", "0.5991117", "0.5974307", "0.5973124", "0.5948674", "0.59472114", "0.594688", "0.59203374", "0.59203374", "0.5893909", "0.589196", "0.5886823", "0.5880352", "0.5880352", "0.5880352", "0.5880352", "0.5880352", "0.5879316", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5866145", "0.5865476", "0.58635306", "0.5856004", "0.58542645", "0.5854", "0.5839548", "0.5837812", "0.58269453", "0.5818176", "0.5815642", "0.5810434", "0.5805977", "0.5799712", "0.5785846", "0.5778436", "0.5778408", "0.5776859", "0.5757219", "0.5742462", "0.574225", "0.57326275", "0.57326275", "0.5727876", "0.5725106", "0.5725106", "0.57239926", "0.57224447", "0.57137847", "0.5712766", "0.5711647", "0.5708688", "0.5705749", "0.569602", "0.5695103", "0.5689092", "0.56887186" ]
0.6859155
0
will be perform before "OFFICER" group annotated test method
@BeforeGroups(groups = "OFFICER") protected void loginOfficer() throws Exception { login("[email protected]", "officer"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeTest() {}", "@BeforeGroup\n public void beforeGroup() {\n }", "@BeforeSuite\r\n\t\tpublic void BeforeSute()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Before suite\");\r\n\t\t}", "@Before\n public void beforeTest(){\n\n\n }", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"IPA\");\n\t}", "@Before\n public void before() {\n }", "@Before\n public void before() {\n }", "@Before\n public void setupThis() {\n System.out.println(\"* Before test method *\");\n }", "void before();", "protected abstract void before();", "@Before\n public void postSetUpPerTest(){\n\n }", "void beforeRun();", "@BeforeTest\npublic void hai()\n{\n\t\n\tHello();\n\t\n}", "public void before() {\n }", "public void before() {\n }", "@Before\r\n\tpublic void before() {\r\n\t}", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}", "@BeforeClass(enabled =true)\n\tpublic void beforeClass(){\n\t\tSystem.out.println(\"In BeforeClass\");\n\t}", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "default void beforeUse() {\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "@Before\r\n\t public void setUp(){\n\t }", "@BeforeMethod\n\tpublic void beforeMethod() {\n\t}", "@Override\n public void beforeMethod(BQTestScope scope, ExtensionContext context) {\n this.withinTestMethod = true;\n\n // TODO: prefilter callbacks collection of \"beforeTestIfStarted\" in a separate collection to avoid iteration\n // on every run?\n if (isStarted()) {\n callbacks.forEach((k, v) -> beforeTestIfStarted(cayenneRuntime, k, v));\n }\n }", "@Override\npublic void onStart(ITestContext context) {\n\t\n}", "@BeforeClass\n\tpublic void beforeClass() {\n\t}", "@Before\r\n public void before() throws Exception {\r\n }", "@Before public void setUp() { }", "@BeforeClass\n public static void beforeClass() {\n }", "@Before\n public void beforeScenario() {\n }", "@Override\n public void onStart(ITestContext context) {\n\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "@Stub\n\tpublic void before()\n\t{\n\t\t//\n\t}", "@BeforeTest\n\n public void Initialize() {\n\n\n}", "@Before(\"selectAll()\")\n public void beforeAdvice(){\n System.out.println(\"Going to setup calculator service...\");\n }", "@BeforeClass\n public void beforeclass() {\n\t}", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}", "@Override\r\npublic void onTestStart(ITestResult arg0) {\n\t\r\n}", "@Before\r\n\tpublic void before() {\r\n\t\tSystem.out.println(\" Before() \");\r\n\t\tcalc = new CalculadoraDos();// no forma parte del test es una precondicion para ejecutar el test\r\n\t}", "protected abstract void beforeCall();", "protected void runBeforeStep() {}", "@Test\n\tvoid testOnAddToOrder() {\n\t}", "@Before\n public void setUp() {\n }", "@Before\n\t public void setUp() {\n\t }", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "public void onTestSkipped() {}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Override\r\npublic void onStart(ITestContext arg0) {\n}", "@Override\r\n\tpublic void onStart(ISuite suite) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onStart(ITestContext Result) {\n\t\t\r\n\t}", "@Before\n public void setUp(){\n mInstrumentation = getInstrumentation();\n mRulesMonitor = mInstrumentation.addMonitor(Rider_RequestRide.class.getName(),null,false);\n mActivity = mRuleActivity.getActivity();\n }", "@Override\n\tpublic void onStart(ITestContext arg0) {\n\t\t\n\t}", "@BeforeMethod\n public void preCondtions() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void before() {\n System.out.format(\"In Before of %s\\n\", ExecutionProcedureJunit2.class.getName());\n }", "@Before\n public void setUp () {\n }", "@Before\r\n\tpublic void doThisEveryTime() {\n\t}", "@BeforeClass\n\tpublic void setup() {\n\t\tSystem.out.println(\"Before Class Annotation\");\n\t}", "@Override\npublic void onTestStart(ITestResult result) {\n\t\n}", "@Before\r\n\tpublic void set_up(){\n\t}", "@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }", "@Override\n\tpublic void onStart(ISuite suite) {\n\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Override\n\tpublic void onStart(ITestContext result) {\n\t\t\n\t}", "@BeforeAll\n public static void executedBeforeAll() {\n System.out.println(\"\\n@Before: executedBeforeall\");\n }", "@Before\n public void setup() {\n }", "@BeforeAll\n static void setup() {\n log.info(\"@BeforeAll - executes once before all test methods in this class\");\n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Override\n public void test() {\n \n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@After(\"@MobileTest\")\n public void Aftervaldiation()\n {\n System.out.println(\" After Mobile before hook\");\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }" ]
[ "0.7322957", "0.72108066", "0.7135226", "0.70447034", "0.698751", "0.68595254", "0.68595254", "0.68560183", "0.6846234", "0.68422496", "0.68195444", "0.680136", "0.67969483", "0.6785352", "0.6785352", "0.67768013", "0.6764424", "0.6677755", "0.66284513", "0.66284513", "0.66284513", "0.66284513", "0.66284513", "0.6612478", "0.6608955", "0.66087496", "0.65963364", "0.65929496", "0.6572408", "0.65686965", "0.6566063", "0.65614295", "0.656069", "0.655732", "0.6549792", "0.6545181", "0.6545181", "0.6545181", "0.6545181", "0.6543275", "0.65349877", "0.65330243", "0.65330046", "0.6513268", "0.6508821", "0.6496019", "0.64935064", "0.64874613", "0.64862144", "0.64746374", "0.6471073", "0.64551914", "0.6453045", "0.64514935", "0.64490217", "0.6445836", "0.6437905", "0.64316267", "0.6430945", "0.6429819", "0.64259905", "0.64187676", "0.64177155", "0.6413975", "0.64091253", "0.64088327", "0.6408662", "0.6407871", "0.64040285", "0.6402345", "0.6396834", "0.6395617", "0.6395617", "0.6395617", "0.6395617", "0.6395617", "0.6393494", "0.639308", "0.6392093", "0.63843316", "0.63801336", "0.6378976", "0.6377232", "0.6377232", "0.63757443", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624", "0.63754624" ]
0.0
-1
will be perform after group annotated test method
@AfterGroups(groups = {"SUPER_ADMIN", "REGION_ADMIN", "OFFICER"}) protected void logout() throws Exception { final SecurityClient securityClient = SecurityClientFactory.getSecurityClient(); securityClient.logout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterGroup\n public void afterGroup() {\n }", "protected void runAfterTest() {}", "@Test\n public void groupTest() {\n // TODO: test group\n }", "@AfterTest\n\tpublic void afterTest() {\n\t}", "@After\r\n @CallSuper\r\n public void afterTest() {\n }", "@AfterGroups({\"regression\", \"sanity\"})\n\tpublic void ag() {\n\t\tSystem.out.println(\"after group regresion\");\n\t}", "@After\n public void afterTest(){\n }", "@Test\n void markCompleted() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test(groups = {\"groupTwo\"}, dependsOnGroups= {\"groupOne\"})\n\tpublic void test5() {\n\t\tSystem.out.println(\"test five\");\n\t}", "@BeforeGroup\n public void beforeGroup() {\n }", "@Test(groups = {\"groupTwo\"},dependsOnMethods= {\"test1\"})\n\tpublic void test2() {\n\t\tSystem.out.println(\"test two\");\n\t}", "@Override\n public void doAfterAllAnalysed(AnalysisContext context) {\n\n }", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "@AfterTest\r\n public void tearDown() {\n }", "@Override\n protected void after() {\n }", "@Before\n public void postSetUpPerTest(){\n\n }", "@Test\n void setCompleted() {\n }", "@AfterMethod()\n\tpublic void afterMethod() {\n\t\textent.endTest(test);\n\t\textent.flush();\n\t}", "@Override\n public void afterMethod(BQTestScope scope, ExtensionContext context) {\n this.withinTestMethod = false;\n }", "@Override\n public void test() {\n \n }", "public void testGroupInitializer() throws Exception {\n }", "@AfterClass\n\tpublic void afterClass() {\n\t}", "@Test // (groups={\"All\"}) //(groups={\"smoke\"})\r\n\tpublic void createLead() {\n\t\tSystem.out.println(\"create\");\r\n\t}", "@AfterClass\n\tpublic void teardown() {\n\t\tSystem.out.println(\"After class Annotation\");\n\t}", "@Override\n protected void after() {\n mDescription.addChild(\n Description.createTestDescription(\"LOGS\", \"LOGS\", new LogAnnotation(mLogs)));\n }", "@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "protected abstract void after();", "@After \n public void tearDownTest()\n {\n\t System.out.println(\"Test Complete\\n\\n\\n\\n\\n\");\n }", "@After(\"@MobileTest\")\n public void Aftervaldiation()\n {\n System.out.println(\" After Mobile before hook\");\n }", "@After\n public void tearDown() {\n \n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void after() throws Exception {\r\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@After\n public void tearDown(){\n }", "@After\n public void tearDown(){\n }", "@AfterSuite\n public void AftersuiteSetup2() throws Exception {\n\t\t\n\t}", "@After\n public void tearDown () {\n }", "@After\n public void tearDown() {\n \n }", "public TestCase afterThis( Procedure callafter );", "@Override\r\n\t@After\r\n\tpublic void callTearDown() throws Exception\r\n\t{\r\n\t\tsuper.callTearDown();\r\n\t}", "@AfterClass\n\tpublic void teardown(){\n\t}", "@Override\n public void onTestSuccess(ITestResult result) {\n\n }", "protected void runBeforeTest() {}", "@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }", "@After\n public void tearDown() {\n }", "@Test\n public void test3(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@Stub\n\tpublic void after()\n\t{\n\t\t//\n\t}", "@AfterMethod\n public void tearDown(){\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@Override\npublic void onTestSuccess(ITestResult result) {\n\t\n}", "@Test\r\n public void testRentOut() {\r\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@Test\n\tpublic void test4() {\n\t}", "protected void runAfterStep() {}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "@Test\n void isComplete() {\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n\tfinal void test() {\n\t}" ]
[ "0.76677734", "0.7519378", "0.7418057", "0.7359383", "0.732594", "0.7280078", "0.71571976", "0.71244216", "0.70398986", "0.70398986", "0.6975666", "0.69742006", "0.69742006", "0.6921333", "0.69042635", "0.6871387", "0.6749229", "0.670441", "0.6699775", "0.6667586", "0.66526294", "0.66423494", "0.66419464", "0.6638502", "0.659639", "0.6591828", "0.65227777", "0.65013796", "0.648474", "0.64499474", "0.64414394", "0.6440111", "0.64196515", "0.6408499", "0.6406166", "0.6384024", "0.63751006", "0.63751006", "0.63751006", "0.63751006", "0.6366271", "0.63604707", "0.63602364", "0.63602364", "0.6346261", "0.6344025", "0.6343267", "0.63379455", "0.6332517", "0.63285476", "0.6328274", "0.6318624", "0.6308689", "0.6302787", "0.63024366", "0.6300457", "0.6300281", "0.62949216", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.6287611", "0.62870145", "0.6281984", "0.6277893", "0.6277893", "0.6277893", "0.6277893", "0.6277893", "0.62777776", "0.6273154", "0.6273132", "0.62649864", "0.62613654", "0.62609094", "0.62422335" ]
0.0
-1
will perform programmatic login
protected void login(String username, String password) throws Exception { final SecurityClient securityClient = SecurityClientFactory.getSecurityClient(); securityClient.setSimple(username, password); securityClient.login(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void login() {\n\t\t\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected Response login() {\n return login(\"\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "void login(String user, String password);", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "private void login(String username,String password){\n\n }", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "void loginAttempt(String email, String password);", "@Override\r\n\tpublic void login() {\n\r\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "RequestResult loginRequest() throws Exception;", "public boolean loginUser();", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public abstract void login(String userName, String password) throws RemoteException;", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "LoginContext login(String username, String password) throws LoginException;", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mEmailView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n //检测密码\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(\"请输入密码\");\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\r\n mPasswordView.setError(getString(R.string.error_invalid_password));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n\r\n SqlEngine sqlEngine = SqlEngine.getInstance(this);\r\n ArrayList<UserBean> list = sqlEngine.queryInfo();\r\n if (list.size() <= 0) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n for (int i = 0; i < list.size(); i++) {\r\n UserBean bean = list.get(i);\r\n Log.i(TAG, \"attemptLogin: 执行到此\");\r\n if (!bean.getUser().equals(email)) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n if (!bean.getPwd().equals(password)) {\r\n Toast.makeText(this, \"密码不正确\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n }\r\n\r\n String ip = (String) SpUtils.getValues(MyApplication.getContext(), Https.IP_ADDRESS, \"\");\r\n String port = (String) SpUtils.getValues(MyApplication.getContext(), Https.PORT, \"\");\r\n if (TextUtils.isEmpty(ip) || TextUtils.isEmpty(port)) {\r\n Toast.makeText(this, \"请先设置网络!\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // 显示一个进度微调,并启动一个后台任务\r\n // 执行用户登录尝试。\r\n showProgress(true);\r\n //判断是否勾选\r\n isCheckBox(email, password);\r\n mAuthTask = new UserLoginTask(email, password);\r\n mAuthTask.execute((Void) null);\r\n startActivity(new Intent(this, MainActivity.class));\r\n\r\n }\r\n }", "private void attemptLogin() {\n // Reset errors.\n edtID.setError(null);\n edtPassword.setError(null);\n\n // Store values at the time of the login attempt.\n String userId = edtID.getText().toString();\n String password = edtPassword.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n edtPassword.setError(\"Password is empty\");\n focusView = edtPassword;\n cancel = true;\n } else if(!isPasswordValid(password)) {\n edtPassword.setError(getString(R.string.error_invalid_password));\n focusView = edtPassword;\n cancel = true;\n }\n\n // Check for a valid user id.\n if (TextUtils.isEmpty(userId)) {\n edtID.setError(getString(R.string.error_field_required));\n focusView = edtID;\n cancel = true;\n } else if (!isUserIdValid(userId)) {\n edtID.setError(getString(R.string.error_invalid_id));\n focusView = edtID;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n JSONObject json = new JSONObject();\n try {\n json.put(\"user_id\", userId);\n json.put(\"password\", password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n reqUserID = userId;\n reqUserPW = password;\n loginConnector.request(json);\n }\n }", "Login() { \n }", "public User login(String loginName, String password) throws UserBlockedException;", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "public void StartLogIn(){\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public void login2() {\n\t\tdriver.findElement(By.cssSelector(\"input[name='userName']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='password']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='login']\")).click();\n\t\t\n\n\t\n\t\n\t}", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "public abstract User login(User data);", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }", "public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}", "public void testLogin() throws Exception {\n super.login();\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid user name.\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n } else if (!isNameValid(name)) {\n mNameView.setError(getString(R.string.error_invalid_name));\n focusView = mNameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(name, password);\n mAuthTask.execute(mUrl);\n }\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public static void forceLogin() {\n forcedLogin = true;\n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }", "User login(String username, String password);", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "public void attemptLogin() {\n if (mLoginTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String mUserName = mUserNameView.getText().toString();\n String mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_password_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mUserName)) {\n mUserNameView.setError(getString(R.string.error_username_required));\n focusView = mUserNameView;\n cancel = true;\n }\n\n if (cancel) {\n // 出错时,让相应的控件获取焦点\n focusView.requestFocus();\n } else {\n // 进行登录\n mLoginTask = new LoginTask(LoginActivity.this, mUserName, mPassword, new LoginTask.OnLoginFinished() {\n @Override\n public void onFinished(String result) {\n try {\n JSONObject userJsonObject = new JSONObject(result);\n\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.putExtra(\"UserId\", userJsonObject.getString(\"UserId\"));\n intent.putExtra(\"Key\", userJsonObject.getString(\"Key\"));\n intent.putExtra(\"UserName\", userJsonObject.getString(\"UserName\"));\n intent.putExtra(\"Orid\", userJsonObject.getString(\"Orid\"));\n if(userJsonObject.has(\"PlateType\"))\n intent.putExtra(\"PlateType\", userJsonObject.getString(\"PlateType\"));\n mLoginTask = null;\n\n rememberUserName(((CheckBox)findViewById(R.id.rememberUserName)).isChecked());\n\n startActivity(intent);\n finish();\n } catch (JSONException e) {\n Log.d(\"DFCarChecker\", \"Json解析错误:\" + e.getMessage());\n }\n }\n\n @Override\n public void onFailed(String error) {\n mLoginTask = null;\n // 登录失败,获取错误信息并显示\n Log.d(AppCommon.TAG, \"登录时出现错误:\" + error);\n\n mPasswordView.setError(error);\n mPasswordView.requestFocus();\n }\n });\n mLoginTask.execute();\n }\n }", "public login() {\r\n\t\tsuper();\r\n\t}", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "public void performLogin() {\n AppMethodBeat.m2504i(92640);\n LoginManager loginManager = getLoginManager();\n if (LoginAuthorizationType.PUBLISH.equals(LoginButton.this.properties.authorizationType)) {\n if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithPublishPermissions(LoginButton.access$800(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n } else if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithReadPermissions(LoginButton.access$900(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n }", "public Person login(String username, String password);", "public String execute(){\n\t\tint p=loginService.canLogin(uid, pwd);\n\t\tif(p==-1){\n\t\t\ttry {\n\t\t\t\tgetResponse().getWriter().write(\"{\\\"error:1\\\",\\\"reason\\\":\\\"invalidate password\\\"}\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(p==-2){\n\t\t\ttry {\n\t\t\t\tgetResponse().getWriter().write(\"{\\\"error\\\":1,\\\"reason\\\":\\\"invalidate username\\\"}\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if (p==0||p==1){\n\t\t\tgetSession().setAttribute(\"id\", uid);\n\t\t\tgetWriter().write(\"{\\\"error\\\":0,\\\"redirect\\\":\\\"project.html\\\"}\");\n\t\t\treturn null;\n\t\t}else{\n\t\t\tgetSession().setAttribute(\"id\", uid);\n\t\t\tgetWriter().write(\"{\\\"error\\\":0,\\\"redirect\\\":\\\"myself.html\\\"}\");\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "int authenticateUser(IDAOSession session, String userName, String password);", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mEMSIpview.setError(null);\n // Store values at the time of the login attempt.\n final String emsIP = mEMSIpview.getText().toString();\n final String email = mEmailView.getText().toString();\n final String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(emsIP)) {\n mEMSIpview.setError(\"Please enter an ems ip\");\n focusView = mEMSIpview;\n cancel = true;\n }\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n performNetworkOperations.doLogin(emsIP, email, password);\n// Toast.makeText(this,token,Toast.LENGTH_SHORT).show();\n// List<String> nodeData = performNetworkOperations.getNodesList(emsIP,token);\n\n }\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void login() {\n\t\tloggedIn = true;\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Test(priority = 1)\n\tpublic void login() {\n\t\tlp.loginToApp();\n\t}", "public int login() {\n\t\t\n\t\tString inId;\n\t\tint loginResult = -1;\n\t\tString inName;\n\t\tScanner scan = new Scanner(new FilterInputStream(System.in) {\n\t\t\t@Override\n\t\t\tpublic void close() {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Welcome\\n\");\n\t\t\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Please sign in\");\n\t\t\tSystem.out.print(\"ID\t: \");\t\t\n\t\t\tinId = scan.next();\n\t\t\t\n\t\t\tSystem.out.print(\"Name\t: \");\n\t\t\tinName = scan.next();\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tloginResult = dbc.login(inId, inName);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tif (loginResult == 1 || loginResult == 2) {\n\t\t\t\tid = inId;\n\t\t\t\tname = inName;\n\t\t\t\tbreak;\n\t\t\t}\t\t\n\t\t\telse if (loginResult == -1) {\n\t\t\t\tSystem.out.println(\"Error in login query\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\telse if (loginResult == 0) {\n\t\t\t\tSystem.out.println(\"Wrong authentication\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\treturn loginResult;\n\t}", "String login(Integer userId);", "private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }" ]
[ "0.8043367", "0.7596414", "0.75531995", "0.75041544", "0.7485275", "0.74088126", "0.7398476", "0.73276836", "0.728338", "0.72737056", "0.7246838", "0.72325814", "0.7230279", "0.72183645", "0.72176385", "0.7215455", "0.71932054", "0.71911407", "0.7185866", "0.7175486", "0.71738285", "0.7155185", "0.71534276", "0.7145723", "0.7144987", "0.7126669", "0.71233153", "0.7122458", "0.71094793", "0.7093706", "0.70798886", "0.70774835", "0.7065442", "0.70412314", "0.70403016", "0.703023", "0.6988994", "0.69853675", "0.69778466", "0.6961134", "0.69601876", "0.6949876", "0.69459486", "0.6943432", "0.69326615", "0.69325477", "0.6919767", "0.69169927", "0.69051474", "0.6899367", "0.68991226", "0.6894465", "0.68923897", "0.6891841", "0.68827343", "0.68764275", "0.68756366", "0.6867961", "0.6860417", "0.6858074", "0.6853882", "0.68535244", "0.6846518", "0.6846088", "0.6843603", "0.6835308", "0.6820651", "0.6820155", "0.68189037", "0.68147266", "0.6800998", "0.6789818", "0.678736", "0.6786438", "0.6783036", "0.6782638", "0.678107", "0.67533875", "0.67470807", "0.67369145", "0.67338824", "0.673008", "0.6727162", "0.67210877", "0.6718045", "0.67174417", "0.67161065", "0.6712269", "0.67100024", "0.6703606", "0.6694238", "0.6690204", "0.66856813", "0.6684995", "0.66847986", "0.66787255", "0.6674498", "0.66733277", "0.6673122", "0.6665481", "0.66640097" ]
0.0
-1
This will retrieve a list of NICs associated with the load balancer.
public Nics getAllNics(String dataCenterId, String serverId) throws RestClientException, IOException { return client.get(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/") .concat(parentResource).concat("/").concat(serverId).concat("/") .concat(resource).concat(depth), null, Nics.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "Collection<NetworkInterface> getAllNetworkInterfaces();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "java.util.List<? extends com.google.cloud.compute.v1.NetworkInterfaceOrBuilder>\n getNetworkInterfacesOrBuilderList();", "public Nics getAllBalancedNics(String dataCenterId, String loadBalancerId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(depth), null, Nics.class);\n }", "public List<NetworkInterface> networkInterfaces() {\n return this.networkInterfaces;\n }", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "public com.profitbricks.rest.domain.Nic getBalancedNic(String dataCenterId, String loadBalancerId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<NetworkList, Network> listNetwork();", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "int getNetworkInterfacesCount();", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "private Object[] getNetInterfaces(final HostBrowser hostBrowser) {\n final List<Object> list = new ArrayList<Object>();\n \n list.add(null);\n final Enumeration e = hostBrowser.getNetInterfacesNode().children();\n \n while (e.hasMoreElements()) {\n final Info i =\n (Info) ((DefaultMutableTreeNode) e.nextElement()).getUserObject();\n list.add(i);\n }\n return list.toArray(new Object[list.size()]);\n }", "public static Stream<NetworkInterface> getNetworkInterfacesAsStream() throws Exception {\n return Collections.list(NetworkInterface.getNetworkInterfaces()).stream();\n }", "public JsonArray getNetworkInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "public java.util.List<Network> getNetworksList() {\n return networks_;\n }", "@Override\n @GET\n @Path(\"/networks\")\n @Produces(\"application/json\")\n public Response getNetworks() {\n String json = String.format(\"Provider %d cluster %d networks.\", provider.getProviderId(), cluster.getClusterId());\n return Response.ok(json).build();\n }", "public com.profitbricks.rest.domain.Nic getNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "public static List<String> getAvailableInterfaces() {\r\n List<String> result;\r\n Enumeration<NetworkInterface> interfaces = null;\r\n\r\n try {\r\n interfaces = NetworkInterface.getNetworkInterfaces();\r\n } catch (SocketException e) {\r\n System.errorLogging(e);\r\n }\r\n\r\n if (interfaces == null)\r\n return Collections.emptyList();\r\n\r\n result = new ArrayList<>();\r\n\r\n while (interfaces.hasMoreElements()) {\r\n NetworkInterface iface = interfaces.nextElement();\r\n if (isIfaceConnected(iface)) {\r\n result.add(iface.getName());\r\n }\r\n }\r\n\r\n return result;\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<NetworkList, Network> listNetwork(\n @QueryMap ListNetwork queryParameters);", "@Nullable\r\n List<Network> getNetwork();", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public String[] getIntefaceNetwork() {\n\t\treturn null;\n\t}", "public java.util.List<Network> getNetworksList() {\n if (networksBuilder_ == null) {\n return java.util.Collections.unmodifiableList(networks_);\n } else {\n return networksBuilder_.getMessageList();\n }\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "List<IInboundAdapter> getInboundAdapterList();", "NetworkInterface getNetworkInterface(int id);", "public ArrayList<Network> getMyNetworks() {\n\t\treturn myNetworks;\n\t}", "public List<NetworkNode> listNetworkNode();", "public Network getNetworks(int index) {\n return networks_.get(index);\n }", "public List<Subnet> selectSubnet() {\n\n\t\tList<Subnet> customers = new ArrayList<Subnet>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from subnet\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tSubnet customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new Subnet();\n\t\t\t\tcustomer.setVpc_name(resultSet.getString(1));\n\t\t\t\tcustomer.setSubnet_name(resultSet.getString(2));\n\t\t\t\tcustomer.setCidr(resultSet.getString(3));\n\t\t\t\tcustomer.setAcl(resultSet.getString(4));\n\t\t\t\tcustomer.setSubnetId(resultSet.getString(5));\n\t\t\t\tcustomer.setVpcId(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "public java.util.List<Network.Builder> getNetworksBuilderList() {\n return getNetworksFieldBuilder().getBuilderList();\n }", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }", "public List<FirewallInbounds> selectFirewallInbounds() {\n\n\t\tList<FirewallInbounds> customers = new ArrayList<FirewallInbounds>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from firewall_inbounds\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tFirewallInbounds customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new FirewallInbounds();\n\n\t\t\t\tcustomer.setIn_type(resultSet.getString(1));\n\t\t\t\tcustomer.setIn_protocol(resultSet.getString(2));\n\t\t\t\tcustomer.setIn_portrange(resultSet.getString(3));\n\t\t\t\tcustomer.setIn_source(resultSet.getString(4));\n\t\t\t\tcustomer.setIn_ip(resultSet.getString(5));\n\t\t\t\tcustomer.setIn_ip(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "@MetadataValueMatcher(metadataValue=20)\n\tpublic List<String> getIsbns() {\n\t\treturn isbns;\n\t}", "public List<DnsARdata> getIpAddresses() {\n return ipAddresses;\n }", "public Collection<INetwork> getNetworks(IProcess process) {\n\t\treturn null;\n\t}", "public static List<Network> loadNetworks() throws Exception {\n final File dataFile = new File(kNetworkPath);\n final File[] networkFiles = dataFile.listFiles();\n List<Network> networks = new ArrayList<Network>();\n\n for (File file : networkFiles) {\n try {\n networks.add((Network)loadObject(file));\n } catch (Exception e) {\n System.err.println(\"Could not load \" + file.getName());\n }\n }\n return networks;\n }", "@Test(timeout = 10000L)\n public void testGetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testGetLoadBalancerInformation(client);\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public static Set<IpAddress> getSubnetIps(String cidr) {\n SubnetUtils utils = new SubnetUtils(cidr);\n utils.setInclusiveHostCount(false);\n SubnetUtils.SubnetInfo info = utils.getInfo();\n Set<String> allAddresses =\n new HashSet<>(Arrays.asList(info.getAllAddresses()));\n\n if (allAddresses.size() > 2) {\n allAddresses.remove(info.getLowAddress());\n allAddresses.remove(info.getHighAddress());\n }\n\n return allAddresses.stream()\n .map(IpAddress::valueOf).collect(Collectors.toSet());\n }", "NetworkCapabilities getNetworkCapabilities() {\n int size;\n NetworkCapabilities result = new NetworkCapabilities();\n boolean z = false;\n result.addTransportType(0);\n ArrayList<String> apnTypes = new ArrayList();\n for (ApnContext apnContext : this.mApnContexts.keySet()) {\n apnTypes.add(apnContext.getApnType());\n }\n boolean isBipNetwork = (this.mConnectionParams == null || this.mConnectionParams.mApnContext == null || this.mDct == null || !this.mDct.isBipApnType(this.mConnectionParams.mApnContext.getApnType())) ? false : true;\n if (this.mApnSetting != null) {\n ArrayList<ApnSetting> securedDunApns = this.mDct.fetchDunApns();\n String[] types = this.mApnSetting.types;\n if (enableCompatibleSimilarApnSettings()) {\n types = getCompatibleSimilarApnSettingsTypes(this.mApnSetting, this.mDct.getAllApnList());\n }\n int length = types.length;\n int i = 0;\n while (i < length) {\n String type = types[i];\n boolean shouldDropMeterApn = (this.mRestrictedNetworkOverride || this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || !ApnSetting.isMeteredApnType(type, this.mPhone)) ? z : true;\n if (!shouldDropMeterApn) {\n int hashCode = type.hashCode();\n switch (hashCode) {\n case 3023943:\n if (type.equals(\"bip0\")) {\n hashCode = 10;\n break;\n }\n case 3023944:\n if (type.equals(\"bip1\")) {\n hashCode = 11;\n break;\n }\n case 3023945:\n if (type.equals(\"bip2\")) {\n hashCode = 12;\n break;\n }\n case 3023946:\n if (type.equals(\"bip3\")) {\n hashCode = 13;\n break;\n }\n case 3023947:\n if (type.equals(\"bip4\")) {\n hashCode = 14;\n break;\n }\n case 3023948:\n if (type.equals(\"bip5\")) {\n hashCode = 15;\n break;\n }\n case 3023949:\n if (type.equals(\"bip6\")) {\n hashCode = 16;\n break;\n }\n default:\n switch (hashCode) {\n case -1490587420:\n if (type.equals(\"internaldefault\")) {\n hashCode = 18;\n break;\n }\n case 42:\n if (type.equals(CharacterSets.MIMENAME_ANY_CHARSET)) {\n hashCode = 0;\n break;\n }\n case 3352:\n if (type.equals(\"ia\")) {\n hashCode = 8;\n break;\n }\n case 98292:\n if (type.equals(\"cbs\")) {\n hashCode = 7;\n break;\n }\n case 99837:\n if (type.equals(\"dun\")) {\n hashCode = 4;\n break;\n }\n case 104399:\n if (type.equals(\"ims\")) {\n hashCode = 6;\n break;\n }\n case 108243:\n if (type.equals(\"mms\")) {\n hashCode = 2;\n break;\n }\n case 3149046:\n if (type.equals(\"fota\")) {\n hashCode = 5;\n break;\n }\n case 3541982:\n if (type.equals(\"supl\")) {\n hashCode = 3;\n break;\n }\n case 3673178:\n if (type.equals(\"xcap\")) {\n hashCode = 17;\n break;\n }\n case 1544803905:\n if (type.equals(\"default\")) {\n hashCode = 1;\n break;\n }\n case 1629013393:\n if (type.equals(\"emergency\")) {\n hashCode = 9;\n break;\n }\n }\n hashCode = -1;\n break;\n }\n switch (hashCode) {\n case 0:\n result.addCapability(12);\n result.addCapability(0);\n if (DcTracker.CT_SUPL_FEATURE_ENABLE && !apnTypes.contains(\"supl\") && this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n } else {\n result.addCapability(1);\n }\n result.addCapability(3);\n result.addCapability(4);\n result.addCapability(5);\n result.addCapability(7);\n size = securedDunApns.size();\n for (hashCode = 0; hashCode < size; hashCode++) {\n if (this.mApnSetting.equals(securedDunApns.get(hashCode))) {\n result.addCapability(2);\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n }\n }\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n case 1:\n result.addCapability(12);\n break;\n case 2:\n result.addCapability(0);\n break;\n case 3:\n if (!DcTracker.CT_SUPL_FEATURE_ENABLE || apnTypes.contains(\"supl\") || !this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n result.addCapability(1);\n break;\n }\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n break;\n break;\n case 4:\n result.addCapability(2);\n break;\n case 5:\n result.addCapability(3);\n break;\n case 6:\n result.addCapability(4);\n break;\n case 7:\n result.addCapability(5);\n break;\n case 8:\n result.addCapability(7);\n break;\n case 9:\n result.addCapability(10);\n break;\n case 10:\n result.addCapability(23);\n break;\n case 11:\n result.addCapability(24);\n break;\n case 12:\n result.addCapability(25);\n break;\n case 13:\n result.addCapability(26);\n break;\n case 14:\n result.addCapability(27);\n break;\n case 15:\n result.addCapability(28);\n break;\n case 16:\n result.addCapability(29);\n break;\n case 17:\n result.addCapability(9);\n break;\n case 18:\n result.addCapability(30);\n break;\n default:\n break;\n }\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Dropped the metered \");\n stringBuilder.append(type);\n stringBuilder.append(\" for the unmetered data call.\");\n log(stringBuilder.toString());\n i++;\n z = false;\n }\n if ((this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || this.mRestrictedNetworkOverride) && this.mApnSetting.isMetered(this.mPhone)) {\n result.removeCapability(11);\n } else {\n result.addCapability(11);\n }\n z = this.mHwCustDataConnection != null && this.mHwCustDataConnection.isNeedReMakeCapability();\n if (z) {\n result = this.mHwCustDataConnection.getNetworkCapabilities(types, result, this.mApnSetting, this.mDct);\n }\n if (!isBipNetwork) {\n result.maybeMarkCapabilitiesRestricted();\n }\n }\n boolean z2 = this.mRestrictedNetworkOverride && !isBipNetwork;\n if (z2) {\n result.removeCapability(13);\n result.removeCapability(2);\n }\n int up = 14;\n int down = 14;\n size = this.mRilRat;\n if (size != 19) {\n switch (size) {\n case 1:\n up = 80;\n down = 80;\n break;\n case 2:\n up = 59;\n down = 236;\n break;\n case 3:\n up = 384;\n down = 384;\n break;\n case 4:\n case 5:\n up = 14;\n down = 14;\n break;\n case 6:\n up = 100;\n down = 100;\n break;\n case 7:\n up = 153;\n down = 2457;\n break;\n case 8:\n up = 1843;\n down = 3174;\n break;\n case 9:\n up = 2048;\n down = 14336;\n break;\n case 10:\n up = 5898;\n down = 14336;\n break;\n case 11:\n up = 5898;\n down = 14336;\n break;\n case 12:\n up = 1843;\n down = 5017;\n break;\n case 13:\n up = 153;\n down = 2516;\n break;\n case 14:\n up = 51200;\n down = 102400;\n break;\n case 15:\n up = 11264;\n down = 43008;\n break;\n }\n }\n up = 51200;\n down = 102400;\n result.setLinkUpstreamBandwidthKbps(up);\n result.setLinkDownstreamBandwidthKbps(down);\n result.setNetworkSpecifier(new StringNetworkSpecifier(Integer.toString(this.mPhone.getSubId())));\n result.setCapability(18, this.mPhone.getServiceState().getDataRoaming() ^ 1);\n result.addCapability(20);\n if ((this.mSubscriptionOverride & 1) != 0) {\n result.addCapability(11);\n }\n if ((this.mSubscriptionOverride & 2) != 0) {\n result.removeCapability(20);\n }\n return result;\n }", "Set<Interface> getInterfacesByIp(IpAddress ip);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/ingresses\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<IngressList, Ingress> listIngress();", "public NetworkInstance[] getServers();", "List<NetworkInterfaceTapConfiguration> networkInterfaceTapConfigurations();", "@GetMapping(path = \"/images\", produces = \"application/json; charset=UTF-8\")\n public @ResponseBody ArrayNode getImageList() {\n final ArrayNode nodes = mapper.createArrayNode();\n for (final Image image : imageRepository.findAllPublic())\n try {\n nodes.add(mapper.readTree(image.toString()));\n } catch (final JsonProcessingException e) {\n e.printStackTrace();\n }\n return nodes;\n }", "private CloudStackNetwork getNetworksWithSecurityGroupEnabled(String zoneId) throws Exception {\n List<CloudStackNetwork> networks = getApi().listNetworks(null, null, null, null, null, null, null, null, null, zoneId);\n List<CloudStackNetwork> netWithSecGroup = new ArrayList<CloudStackNetwork>();\n for (CloudStackNetwork network : networks) {\n if (!network.getNetworkOfferingAvailability().equalsIgnoreCase(\"unavailable\") && network.getSecurityGroupEnabled())\n netWithSecGroup.add(network);\n }\n // we'll take the first one\n return netWithSecGroup.get(0);\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n return networks_;\n }", "String[] getInternalNetworkPrefix();", "public int getNetworksCount() {\n return networks_.size();\n }", "private String[] getNetworkInformation(Context context)\n {\n String[] output = new String[4];\n\n WifiManager wifiMgr = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiMgr.getConnectionInfo();\n int ip = wifiInfo.getIpAddress();\n String ipAddress = Formatter.formatIpAddress(ip);\n output[0] = ipAddress;\n // Get DNS Server\n final DhcpInfo dhcp = wifiMgr.getDhcpInfo();\n output[1] = Formatter.formatIpAddress(dhcp.netmask);\n output[2] = Formatter.formatIpAddress(dhcp.gateway);\n output[3] = Formatter.formatIpAddress(dhcp.dns1);\n return output;\n }", "public static String[] getNetworkList() {\n final File dataFile = new File(kNetworkPath);\n final File[] networkFiles = dataFile.listFiles();\n String[] networkNames = new String[networkFiles.length];\n\n for (int i = 0; i < networkNames.length; ++i) {\n networkNames[i] = networkFiles[i].getName();\n }\n\n return networkNames;\n }", "@Transactional(readOnly = true)\n public Page<EmailBalancerDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all EmailBalancers\");\n return emailBalancerRepository.findAll(pageable)\n .map(emailBalancerMapper::toDto);\n }", "public List<String> getBaseDNs()\n {\n return baseDNs;\n }", "java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();", "com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing();", "public String getCidr() {\n return cidr;\n }", "NetworkInterface getNetworkInterfaceByAddress(InterfaceAddress interfaceAddress);", "@Override\n\tpublic String listarClientes() throws MalformedURLException, RemoteException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \tString lista = datos.listaClientes();\n \treturn lista;\n \t\n\t}", "@JsonProperty(\"ipmiNicArray\")\r\n public List<IpmiNicArray> getIpmiNicArray() {\r\n return ipmiNicArray;\r\n }", "public void getNetworkIPs(String subRed)\n {\n //ArrayList<String> disponibles = new ArrayList<String>();\n //InetAddress servidor = null;\n for (int i = 1; i < 255; i++) \n {\n final int j = i;\n new Thread(() -> {\n try {\n String ser = subRed + \".\" + j;\n //System.out.println(\"Entre en el servidor: \" + ser);\n InetAddress servidor = InetAddress.getByName(subRed + \".\" + j);\n if(servidor.isReachable(2000))\n {\n //System.out.println(\"PPPPADDDDAAAAAAAAAAA\");\n if(this.isReachable(ser, 9020))\n {\n System.out.println(\"Disponible: \" + ser);\n this.conectados.add(servidor);\n } \n }\n else\n System.out.println(\"No disponible \" + ser);\n } catch (IOException e) \n {\n System.out.println(\"Error buscando ips\");\n }\n \n }).start(); \n }\n \n //return disponibles;\n }", "@SneakyThrows\r\n @GetMapping(\"/biometrics/readers\")\r\n public List<Reader> getReaders() {\r\n ResponseEntity<List<Reader>> response = restTemplate.exchange(\r\n RequestEntity.get(new URI(PROXY_URL + \"/readers\"))\r\n .header(\"Content-Type\", \"application/json\").build(),\r\n new ParameterizedTypeReference<List<Reader>>() {\r\n });\r\n return response.getBody();\r\n }", "public NetworkOrBuilder getNetworksOrBuilder(int index) {\n return networks_.get(index);\n }", "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "public Network getNetworks(int index) {\n if (networksBuilder_ == null) {\n return networks_.get(index);\n } else {\n return networksBuilder_.getMessage(index);\n }\n }", "Collection<TcpIpConnection> getConnections();", "public yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesResponse list(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListMethod(), getCallOptions(), request);\n }", "List<storage_server_connections> getAllForLun(String lunId);", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "public String [] getIpList() {\n return this.IpList;\n }", "@RequestMapping(\"/resources_nocb\")\n public ResponseEntity<List<Resource>> request_nocb() {\n IService1 service1 = Feign.builder()\n .decoder(new JacksonDecoder())\n .target(IService1.class, \"http://\"+service1host+\":\"+service1port);\n\n // Fetch and print a list of the contributors to this library.\n List<Resource> resources = service1.resources_nocb();\n\n return new ResponseEntity<List<Resource>>(resources, HttpStatus.OK);\n }", "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "@GetMapping(path = \"nic/{nic}\")\n public ResponseEntity<List<Contractor>> findAllByNic(@PathVariable String nic){\n logger.debug(\"findAllByNic(\" + nic + \")\");\n\t\tAssert.notNull(nic, \"Expects a valid nic\");\n\n List<Contractor> contractors = contractorService.findAllByNic(nic);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }", "public List<String> getPrivateDnsNames() {\n return getInstances(Running).stream().map(Instance::getPrivateDnsName).collect(Collectors.toList());\n }", "Set<Interface> getMatchingInterfaces(IpAddress ip);", "public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n if (networksBuilder_ != null) {\n return networksBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(networks_);\n }\n }", "ArrayList<Ability> getAbilities() throws RemoteException;", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByIp()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=ip\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public int[] getInterfaces() {\n return interfaces;\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();", "public Collection<Integer> getNeighbours(int i) {\n\t\n\tLinkable lble=(Linkable)Network.node[i].getProtocol(protocolID);\n\tArrayList<Integer> al = new ArrayList<Integer>(lble.degree());\n\tif( Network.node[i].isUp() )\n\t{\t\n\t\tfor(int j=0; j<lble.degree(); ++j)\n\t\t{\n\t\t\tfinal Node n = lble.getNeighbor(j);\n\t\t\t// if accessible, we include it\n\t\t\tif(n.isUp()) al.add(Integer.valueOf(n.getIndex()));\n\t\t}\n\t}\n\treturn Collections.unmodifiableList(al);\n}", "public AssetAttributes withNetworkInterfaces(java.util.Collection<NetworkInterface> networkInterfaces) {\n setNetworkInterfaces(networkInterfaces);\n return this;\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenter()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n VLANNetwork vlan2 = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan2.getConfiguration(), vlan2);\n\n IPAddress ip2 =\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP2 =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan2.getConfiguration().getMask()));\n\n persistIP(ip2, lastIP2, vdc, vlan2);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "protected static Map<Integer, Bnet> loadBnetMap(UriAdapter adapter, xURI store, String prefixName) {\n\t\t\n\t\tList<xURI> uriList = BnetCFAbstract.getUriList(store, BNET_FILEEXT, prefixName, false);\n\t\t\n\t\tMap<Integer, Bnet> bnetMap = Util.newMap();\n\t\tfor(xURI uri : uriList) {\n\t\t\tString name = uri.getLastName();\n\t\t\tString snum = name.substring(name.lastIndexOf(TextParserUtil.CONNECT_SEP) + 1, name.lastIndexOf(\".\"));\n\t\t\tint id = Integer.parseInt(snum);\n\t\t\t\n\t\t\tBnet bnet = BnetUtil.loadBnet(adapter, uri);\n\t\t\tif (bnet != null)\n\t\t\t\tbnetMap.put(id, bnet);\n\t\t}\n\n\t\treturn bnetMap;\n\t}", "String getInterfaces();", "Class<?>[] getProxiedInterfaces();", "Optional<List<ConnectionResponse>> retrieveConnections();", "@Override\n\tpublic Iterable<Banner> getBanners() {\n\t\tBooleanOperation expression = (BooleanOperation)QBanner.banner.isDeleted.eq(false);\n\t\treturn bannerRepository.findAll(expression);\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Network> readNetwork(\n @Path(\"name\") String name);", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<AzureFirewallFqdnTag> list() {\n return this.serviceClient.listAsync();\n }" ]
[ "0.69039226", "0.6852903", "0.6328831", "0.61842537", "0.6015412", "0.60055625", "0.5933271", "0.5871189", "0.5785605", "0.56518525", "0.56054974", "0.55514836", "0.5483186", "0.538101", "0.5348297", "0.5324614", "0.5309316", "0.5094483", "0.50876933", "0.50108707", "0.49924722", "0.49861476", "0.49482784", "0.49059188", "0.4858487", "0.4858487", "0.4816792", "0.4813423", "0.481099", "0.48025283", "0.47512498", "0.47301537", "0.47269464", "0.47219554", "0.47188538", "0.47178924", "0.47147232", "0.46989033", "0.46645036", "0.46478993", "0.46393603", "0.46120334", "0.4586473", "0.45727772", "0.4548973", "0.45179972", "0.45045033", "0.45031914", "0.44934267", "0.44856647", "0.44818863", "0.4465344", "0.44610617", "0.44532335", "0.44508034", "0.44270116", "0.43994334", "0.4393792", "0.43902212", "0.4374657", "0.43746433", "0.4357483", "0.4355023", "0.43537676", "0.43460384", "0.4340906", "0.43371898", "0.43204615", "0.43176877", "0.43105665", "0.43010026", "0.42996398", "0.42986", "0.42963263", "0.42912462", "0.42889553", "0.4282192", "0.42783827", "0.4276049", "0.4273918", "0.42492217", "0.42489693", "0.42445576", "0.4237462", "0.42317334", "0.42292938", "0.42287412", "0.42277735", "0.42261705", "0.42151535", "0.4212249", "0.42121747", "0.42117795", "0.42008704", "0.41983354", "0.41966662", "0.41944516", "0.4183908", "0.41799083", "0.41697997" ]
0.47247872
33
Retrieves the attributes of a given load balanced NIC.
public com.profitbricks.rest.domain.Nic getNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException { return client.get(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/") .concat(parentResource).concat("/").concat(serverId).concat("/") .concat(resource).concat("/").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IAttributes getAttributes();", "Map<String, IAttribute> getConnectedAttributes();", "@GET\r\n\t@Path(\"/imageattribs\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ImageAttribute getAttribute() {\r\n\t\tString directoryPath = ROOT_PATH_ON_MAC + \"/\" + AuxiliaryHelper.loadServerProperties().getProperty(\"image.folder\") + \"/\" ;\r\n\t\tFile folder = new File(directoryPath);\r\n\t\tFile[] files = folder.listFiles();\r\n\t\tString name = \"\";\r\n\t\tlong space = 0l;\r\n\t\tif(files.length > 0) {\r\n\t\t\tname = files[0].getName();\r\n\t\t\tspace = files[0].getTotalSpace();\r\n\t\t}\r\n\t\tImageAttribute imageAttribute = new ImageAttribute();\r\n\t\timageAttribute.setName(name);\r\n\t\timageAttribute.setSize(space);\r\n\t\treturn imageAttribute;\r\n\r\n\t}", "Attributes getAttributes();", "private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }", "public com.profitbricks.rest.domain.Nic getBalancedNic(String dataCenterId, String loadBalancerId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "Map<String, String> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "com.google.protobuf.ByteString getAttributeBytes();", "public Map<String, String> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public abstract Map<String, Object> getAttributes();", "Map<String, Object> getAttributes(String path) throws IOException;", "public ConnectionAttributes getAttributes() {\n \treturn new ConnectionAttributes(strDbName , strUser, strPasswd, strCharSet, iLoginTimeout);\n }", "Object getAttribute(int attribute);", "public void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "Collection<NetworkInterface> getAllNetworkInterfaces();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n return attributes_.get(index);\n }", "java.lang.String getAttribute();", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public Map<String, Object> getAttrs();", "public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request);\n }", "public final EObject ruleGetAttribute() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token this_BEGIN_1=null;\n Token this_END_3=null;\n EObject lv_attribute_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:6442:2: ( (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END ) )\n // InternalRMParser.g:6443:2: (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END )\n {\n // InternalRMParser.g:6443:2: (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END )\n // InternalRMParser.g:6444:3: otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END\n {\n otherlv_0=(Token)match(input,Get_attribute,FOLLOW_6); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getGetAttributeAccess().getGet_attributeKeyword_0());\n \t\t\n this_BEGIN_1=(Token)match(input,RULE_BEGIN,FOLLOW_69); \n\n \t\t\tnewLeafNode(this_BEGIN_1, grammarAccess.getGetAttributeAccess().getBEGINTerminalRuleCall_1());\n \t\t\n // InternalRMParser.g:6452:3: ( (lv_attribute_2_0= ruleGetAttributeBody ) )\n // InternalRMParser.g:6453:4: (lv_attribute_2_0= ruleGetAttributeBody )\n {\n // InternalRMParser.g:6453:4: (lv_attribute_2_0= ruleGetAttributeBody )\n // InternalRMParser.g:6454:5: lv_attribute_2_0= ruleGetAttributeBody\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getGetAttributeAccess().getAttributeGetAttributeBodyParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_8);\n lv_attribute_2_0=ruleGetAttributeBody();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getGetAttributeRule());\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\"attribute\",\n \t\t\t\t\t\tlv_attribute_2_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.GetAttributeBody\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n this_END_3=(Token)match(input,RULE_END,FOLLOW_2); \n\n \t\t\tnewLeafNode(this_END_3, grammarAccess.getGetAttributeAccess().getENDTerminalRuleCall_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "ArrayList getAttributes();", "String getAttribute();", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "@GetMapping(\"/ci-types/{ci-type-id}/attributes/{attribute-id}\")\n @ResponseBody\n public JsonResponse getCiTypeAttribute(@PathVariable(value = \"ci-type-id\") int ciTypeId, @PathVariable(value = \"attribute-id\") int attributeId) {\n //return okayWithData(cmdbServiceV2Stub.getCiTypeAttribute(attributeId));\n return error(\"This API will be discarded as never used.\");\n }", "Attribute getAttribute();", "LabNetworkProfile networkProfile();", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "@Override\n public int[] getAttributeIndexToRead()\n {\n java.util.ArrayList<Integer> attributes = new java.util.ArrayList<Integer>();\n //LN is static and read only once.\n if (LogicalName == null || LogicalName.compareTo(\"\") == 0)\n {\n attributes.add(1);\n }\n //ScalerUnit\n if (!isRead(3))\n {\n attributes.add(3);\n }\n //Value\n if (canRead(2))\n {\n attributes.add(2);\n } \n return toIntArray(attributes);\n }", "public abstract Map getAttributes();", "public java.util.Collection getAttributes();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttributeOrBuilder getAttributesOrBuilder(\n int index) {\n return attributes_.get(index);\n }", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "public HashMap<String, String> GetRawAttributes();", "java.lang.String getAttributesOrThrow(java.lang.String key);", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "private void readAttributes() throws IOException, ClassFormatException {\n final int attributes_count = dataInputStream.readUnsignedShort();\n attributes = new Attribute[attributes_count];\n for (int i = 0; i < attributes_count; i++) {\n attributes[i] = Attribute.readAttribute(dataInputStream, constant_pool);\n }\n }", "@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "NetworkInterface getNetworkInterface(int id);", "public List<TLAttribute> getAttributes();", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "public VolumeiSCSIAttributes getVolumeiSCSIAttributes() {\n return this.volumeiSCSIAttributes;\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "HashMap getMasterAttributes(String userNo, String gcif) throws BaseException;", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "@SuppressLint(\"MissingPermission\")\n private NetworkInfo getActiveNetworkInfo(){\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n return connectivityManager == null ? null : connectivityManager.getActiveNetworkInfo();\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request);\n }", "public Attributes getAttributes() { return this.attributes; }", "@GetMapping(\"/getAttributeList\")\n public String getAttributeList(String uid)\n {\n String returnVal;\n if()\n {\n returnVal = \"Attributes: \"\n for()\n {\n returnVal += \"\";\n }\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "public Enumeration getAttributes() {\n\t\treturn url.getAttributes();\n }", "public Collection<HbAttributeInternal> attributes();", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public Map getAttributes() {\n Map common = channel.getAttributes();\n \n if(map == null) {\n map = new HashMap(common);\n }\n return map;\n }", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public lnrpc.Rpc.NetworkInfo getNetworkInfo(lnrpc.Rpc.NetworkInfoRequest request) {\n return blockingUnaryCall(\n getChannel(), getGetNetworkInfoMethod(), getCallOptions(), request);\n }", "public String getAttr() {\n return attr;\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "Map<String, String> getAttr(NodeKey key);", "default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }", "java.lang.String getBssid();", "List<ObjectAttribute> getObjectAttributes(int otId) throws AccessDeniedException;", "public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n if (attributesBuilder_ == null) {\n return attributes_.get(index);\n } else {\n return attributesBuilder_.getMessage(index);\n }\n }", "public String getAttribute() {\n return attribute;\n }", "public NetworkProfile networkProfile() {\n return this.networkProfile;\n }", "public int getAttribute() {\n return Attribute;\n }", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "public String getAttr10() {\n return attr10;\n }", "@GET\n @Path(\"/info/\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"查询网络最新信息\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"success\", response = NetworkInfoDto.class)\n })\n public RpcClientResult getNetworkInfo() {\n NetworkInfoDto info = new NetworkInfoDto(NulsContext.getInstance().getBestBlock().getHeader().getHeight(),\n NulsContext.getInstance().getNetBestBlockHeight(), TimeService.getNetTimeOffset());\n\n Collection<Node> collections = networkService.getAvailableNodes();\n int inCount = 0;\n int outCount = 0;\n for (Node node : collections) {\n if (node.getType() == Node.IN) {\n inCount++;\n } else {\n outCount++;\n }\n }\n\n info.setInCount(inCount);\n info.setOutCount(outCount);\n info.setMastUpGrade(NulsContext.mastUpGrade);\n Result result = Result.getSuccess();\n result.setData(info);\n return result.toRpcClientResult();\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public Object getAttribute(Object key);", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public int getImbalance() {\n return this.imbalance;\n }", "public UserDetails getUserDetails(String NIC) {\n UserDetails ud = new UserDetails();\n try {\n con = (Connection) DriverManager.getConnection(url, this.usernamel, this.passwordl);\n String query = \"SELECT * FROM user WHERE NIC =?\";\n pst = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(query);\n pst.setString(1, NIC);\n rs = pst.executeQuery();\n while (rs.next()) {\n ud.setEmpID(rs.getInt(1));\n ud.setEmployeeType(rs.getString(2));\n ud.setName(rs.getString(3));\n ud.setAddress(rs.getString(4));\n ud.setMobile(rs.getInt(5));\n ud.setNic(rs.getString(6));\n ud.setUsername(rs.getString(7));\n }\n return ud;\n\n } catch (Exception e) {\n //System.out.println(e);\n return null;\n }\n\n }" ]
[ "0.6103077", "0.58984077", "0.57942736", "0.5683113", "0.56820345", "0.5601647", "0.5597521", "0.5596425", "0.5596425", "0.5596425", "0.55582297", "0.54244053", "0.53923637", "0.53923637", "0.53846204", "0.5290073", "0.5274112", "0.52579415", "0.52546096", "0.5237813", "0.517624", "0.51742166", "0.5163831", "0.5160815", "0.5157062", "0.5143728", "0.51221174", "0.5117875", "0.51048565", "0.51044154", "0.5099023", "0.5098921", "0.5078342", "0.5071033", "0.5063132", "0.5051093", "0.5048645", "0.50445414", "0.50437605", "0.50356907", "0.5035491", "0.5029366", "0.50240767", "0.50234234", "0.5010909", "0.49939638", "0.49870634", "0.4983468", "0.49813476", "0.4978798", "0.49682516", "0.4963998", "0.49573633", "0.49568978", "0.49527436", "0.494862", "0.49461955", "0.49411145", "0.49346966", "0.49342504", "0.49249205", "0.49149138", "0.4902209", "0.4902209", "0.4901049", "0.48973364", "0.48957443", "0.48881668", "0.4886156", "0.4865163", "0.4863849", "0.4863236", "0.48599437", "0.4849086", "0.48424563", "0.48271012", "0.4826203", "0.482049", "0.4817271", "0.48161346", "0.48152584", "0.48101628", "0.48016158", "0.4798539", "0.47900686", "0.47829598", "0.4782123", "0.4777671", "0.47738904", "0.4772676", "0.4772676", "0.4772338", "0.47716802", "0.47662628", "0.47656736", "0.47467044", "0.47467044", "0.47467044", "0.4743526", "0.4739041" ]
0.48599365
73
Adds a NIC to the target server.
public com.profitbricks.rest.domain.Nic createNic(String dataCenterId, String serverId, com.profitbricks.rest.domain.Nic nic) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { return client.create(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/") .concat(parentResource).concat("/").concat(serverId).concat("/") .concat(resource), nic, com.profitbricks.rest.domain.Nic.class, 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNetworkCopy(String serverId){\n synchronized (networkCopiesLock){\n this.networkCopies.add(serverId);\n }\n }", "@Override\n\tpublic void addServer(String arg0, int arg1) throws IOException {\n\n\t}", "@Override\n\tpublic void addServer(String arg0, int arg1, int arg2) throws IOException {\n\n\t}", "@Override\n\tpublic void addServer(InetSocketAddress arg0, int arg1) throws IOException {\n\n\t}", "@Override\n\tpublic void addServer(InetSocketAddress arg0) throws IOException {\n\n\t}", "@NotNull\n public AsynchResult<Server> addServer(AddServerRequestV1 request) {\n // TODO \n // We need first to probe the server to find out some server properties to decide what kind of client to use.\n var client = new HuaweiServerHardwareClient(request.address, request.username, request.password);\n var basicInfo = client.getServerBasicInfo();\n var currentServer = serverRepository.findFirstByAssetInfoSerialNumber(basicInfo.assetInfo.serialNumber);\n if (currentServer != null) {\n throw new ResourceAlreadyExistException();\n }\n var initializedServer = Server.initialize(basicInfo);\n initializedServer = serverRepository.save(initializedServer);\n var context = new AddServerContext();\n return context.run();\n }", "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "public Interface addInterface(String name, IpAddress addr, Mask msk,\r\n\t\t\tInteger mtu) throws NodeException {\r\n\t\tInterface ifc1 = new Interface(name, addr, msk, mtu);\r\n\t\tifaces.put(name, ifc1);\r\n\t\treturn ifc1;\r\n\t}", "public void addIpAddress() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address\",\n null,\n childrenNames());\n }", "public NextHopParameters withTargetNicResourceId(String targetNicResourceId) {\n this.targetNicResourceId = targetNicResourceId;\n return this;\n }", "public static void add(NetConnection nc) {\n\t\tncdb.init();\n\t\tncdb.add(nc);\n\t\tncdb.close();\n\t}", "public void addModule(IPModule module);", "interface Add {\n @InputDetail\n default void inputDetail() {\n or(mandatory(network().id()), mandatory(network().name()));\n optional(network().comment());\n optional(network().description());\n optional(network().ip().address());\n optional(network().ip().gateway());\n optional(network().ip().netmask());\n optional(network().mtu());\n optional(network().profileRequired());\n optional(network().stp());\n optional(network().vlan().id());\n optional(network().usages()[COLLECTION]);\n optional(network().externalProvider().id());\n optional(network().externalProviderPhysicalNetwork().id());\n optional(network().portIsolation());\n }\n @In @Out Network network();\n }", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "public com.profitbricks.rest.domain.Nic assignNicToLoadBalancer(String dataCenterId, String loadBalancerId, String nicId) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n PBObject payload = new PBObject();\n payload.setId(nicId);\n\n return client.create(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\"), payload, com.profitbricks.rest.domain.Nic.class, 202);\n }", "public synchronized void addNetworkListener(INetworkListener pNet) {\r\n\t\tLOG.finer(\"Added network listener.\");\r\n\t\tlistener.add(pNet);\r\n\t}", "public void addNotifier(RemoteNotifier rn){\n\t\tthis.notifiers.add(rn);\n\t\treturn;\n\t}", "void addPlayer(IPlayer player);", "public void add(ConnectionListener connectionListener) throws ServerException;", "public void addPacket(ITransmissible packet){\n\t\tif(!curPackets.contains(packet)){\n\t\t\tthis.curPackets.add(packet);\n\t\t\t\n\t\t\t\n\t\t\tif(packet instanceof Agent){\n\t\t\t\t//System.out.println(\"@addPacket() at edge \" + this.getEdgeId());\n\t\t\t\tthis.firePropertyChange(IConstants.PROPERTY_CHANGE_AGENT_AT_EDGE, null,\n\t\t\t\t\tthis);\n\t\t\t}\n\t\t}\n\t}", "public void add(NetworkEvent event) {\n\t\teventQueue.add(event);\n\t}", "public void addNode(final Instruction instruction) {\n instructions.add(instruction);\n if (prevInstruction != null) {\n addEdge(prevInstruction, instruction);\n }\n prevInstruction = instruction;\n }", "public void add_server(String host) throws LookupException, \n NameServerContactException{\n \n String ip = lookup_ip(host);\n int port = lookup_port(host);\n System.out.println(\"Lookup of host \" + host + \": Success\");\n \n Server server = new Server(host, ip, port);\n \n servers.put(host, server);\n }", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "public void addMember(IMember member);", "public com.profitbricks.rest.domain.Nic updateNic(String dataCenterId, String serverId, String nicId, Object nic) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n return client.update(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(\"/\").concat(nicId), nic, com.profitbricks.rest.domain.Nic.class, 202);\n }", "public void addVMinterfPair(String intrfcLabel, String ipAddress) {\n\r\n this.intrfces.add(new VMinterface(intrfcLabel, ipAddress));\r\n }", "public void addOutgoing(Connection outgoing) {\n this.outgoing.add(outgoing);\n }", "public void addToBlock(Instruction instn){\n\t\tinstns.add(instn);\n\t}", "void add_to_network(Town town, List<Town> connectedTowns);", "public boolean add(Node n) {\n\t\t\n\t\t//Validate n is not null\n\t\tif (n == null) { \n\t\t\tSystem.out.println(\"Enter a valid node\");\n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//If the node is present in the network return\n\t\tif (nodes.contains(n)) {\n\t\t\tSystem.out.println(\"Node name already exists\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Add the node to the network, with a new array for its neighbors\n\t\tnodes.add(n);\n\t\t\n\t\t//Successfully added\n\t\treturn true;\n\t}", "public void addIObserver( IObserver iobs )\n {\n if ( observers.indexOf( iobs ) < 0 ) // only add the observer if it's \n observers.addElement( iobs ); // NOT already there.\n }", "public void add(NestedInteger ni) {\n this.list.add(ni);\n }", "public final void addInterest( final String tag ) {\n Log.d( TAG, \"Adding interest for '\" + tag + \"'.\" );\n\n this.interestList.add(tag);\n\n final D2DAddInterestNotificationEvent event = new D2DAddInterestNotificationEvent( true );\n event.interestList.add( tag );\n this.sendEvent( event );\n }", "public void doAddNomination(INomination aNomination) \n {\n this.nominations.add(aNomination);\n }", "public void add(NestedInteger ni) {\n this.nestedIntegers.add(ni);\n }", "private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}", "public void addNeuron() {\n neurons.add(new Neuron(function));\n }", "void addNeighbour(Territory neighbour) {\n\t\tneighbours.add(neighbour);\n\t}", "public void addToNeighbours(Tile N) {\n \r\n neighbours.add(N);\r\n }", "public void addServerConnection(int playerID, ServerConnection serverConnection) {\n playerConnections.put(playerID, serverConnection);\n }", "public String addIprt(){\n return \"ADD IPRT:DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",REMARK=\\\"\"+iprt.getRemark()+\"\\\"\"+\n \",PRIORITY=HIGH; {\"+rncName+\"}\";\n }", "public void addIncoming(Connection incoming) {\n this.incoming.add(incoming);\n }", "void addChannel(IChannel channel);", "public void addInterface(String interf) {\n m_classBuilder.addInterface(interf);\n }", "public void registerInterest(IObserver IObserver) {\n observers.add(IObserver);\n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void addClient(Tarif targetTarif, int number) {\n\t\tint newNumber = number;\n\t\tif(numberClients.containsKey(targetTarif))\n\t\t\tnewNumber += numberClients.get(targetTarif);\n\t\tnumberClients.put(targetTarif, newNumber);\n\t}", "@Test\n public void createDnsEntryWithIp() throws IOException {\n String endpoint = \"gknox\";\n String environment = \"gtopolyai-without-freeipa\";\n boolean wildcard = false;\n List<String> ips = List.of(\"10.65.65.212\");\n dnsManagementService.createOrUpdateDnsEntryWithIp(actorCrn, accountId, endpoint, environment, wildcard, ips);\n LOGGER.info(\"dns is registered\");\n }", "public void addNameServer(String ns) {\n\t\tif (ns != null)\n\t\t// check to see if item is already in list\n\t\tif (_nameservers.indexOf(ns) < 0)\n\t\t\t_nameservers.add(ns);\n\t}", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void addRequestable(StackType option);", "public void addInstruction(Instruction inst) {\n if (encodedProgram != null) {\n throw new AssertionError(\"Trying to add instructions after program has been linked\");\n }\n\n if (program == null) {\n program = new LinkedHashMap<>(128);\n encodedProgram = null;\n }\n\n inst.setAddress(programCntr);\n String key = inst.getLabel();\n if (key == null) {\n key = \"_pc\" + programCntr; // illegal label, could never interfere with a real program\n }\n if ((program.put(key, inst)) != null) {\n throw new RuntimeException(\"Duplicate label: \" + key);\n }\n programCntr++;\n }", "public boolean addNetworkEx(WifiConfiguration wcg) {\n Method connectMethod = connectWifiByReflectMethod(wcg);\n if (connectMethod == null) {\n int wcgID = this.mWifiManager.addNetwork(wcg);\n boolean isOK = this.mWifiManager.enableNetwork(wcgID, true);\n return isOK;\n } else {\n return true;\n }\n }", "private void attachNetworkLink(IMachine machine, Link link) {\n INetworkAdapter adapter = machine.getNetworkAdapter((long) (link.getInterfaceOrder() -1));\n adapter.setAdapterType(NetworkAdapterType.I82540EM); // TODO comprobar que sea el \"menos raro\"\n if (link.isEnabled()) {\n adapter.setCableConnected(Boolean.TRUE);\n adapter.setEnabled(Boolean.TRUE);\n }\n\n // Set network type params\n Network network = link.getNetwork();\n switch (network.getType()) { // TODO: ¿evitar switch?\n case EXTERNAL_NATTED:\n adapter.setAttachmentType(NetworkAttachmentType.NAT);\n break;\n case EXTERNAL_BRIDGED:\n adapter.setAttachmentType(NetworkAttachmentType.Bridged);\n adapter.setBridgedInterface(this.vmDriverSpec.getBridgedInterface());\n break;\n case SWITCH:\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n break;\n case HUB: // caso particular de modo interno con modo promiscuo activado por defecto\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n adapter.setPromiscModePolicy(NetworkAdapterPromiscModePolicy.AllowAll); // Activar modo promiscuo\n break;\n }\n\n String interfaceName = \"eth\" + (link.getInterfaceOrder() - 1); // TODO verificar que siempre sera eth_\n if (link.getIpAddress() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/type\", \"static\");\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/address\", link.getIpAddress());\n if (link.getNetMask() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", link.getNetMask());\n } else {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", \"24\");\n }\n if (link.getBroadcast() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/broadcast\", link.getBroadcast());\n }\n }\n }", "public RecordObject addSubNetwork(String token, Object record) throws RestResponseException;", "public void addVlanHostInterface2() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"vlan-host-interface2\",\n null,\n childrenNames());\n }", "@Override\n\tpublic IVector nAdd(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().add(vector);\n\t}", "public BackendAddress add(int serverId, String ip, int port) {\n \tif (configMap.containsKey(serverId)) {\n\t\t\treturn null;\n\t\t}\n return configMap.put(serverId, new BackendAddress(serverId, ip, port));\n }", "@Override\n\tpublic int snsInsert(SnsVO vo) {\n\t\treturn map.snsInsert(vo);\n\t}", "public static void addListener(NetworkListener listener) {\n\t\tarcade.getClient().addListener(listener);\n\t}", "void addBank(IBank bank) throws RemoteException;", "public void addDevice(ProductModel ndm) {\n\t\tSystem.out.println(\"\\nNetworkDevServ-addDevice()\");\r\n\t\tdeviceData.addDevice(ndm); \r\n\t}", "public void AddInterest(Interest I) {\n \t//TODO does this add new ones to the DB or must they already exist?\n \tinterests.add(I);\n }", "public void addCommand(CommandIF command) {\r\n\t\tmelody.add(command);\r\n\t}", "public void addRemoteConnection(RemoteConnection connection) {\n service.addRemoteConnection(connection);\n }", "public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}", "@Override\n @POST\n @Path(\"/networks\")\n public Response createNetwork() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }", "public void addClient() throws IOException {\n BufferedReader in;\n Socket clientSocket; //pour chaque nouveau client\n System.out.println(\"New Client connected.\");\n clientSocket = serverSocket.accept();\n out = new PrintWriter(clientSocket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n tabClientsout.addElement(out);\n Runnable r = new recevoir(out, in);\n // genere le Thread pour le nouveau client\n new Thread(r).start();\n }", "public void addServer(Identity identity, ServerInvokerMetadata invokers[]);", "public void add(NestedInteger ni) {\n\t\tif (this.list == null) {\n\t\t\tthis.list = new ArrayList<>();\n\t\t}\n\t\tthis.list.add(ni);\n\t}", "public void addTarget(Target target) {\n SocketChannel socketChannel = null;\n try {\n socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(target.address);\n target.socketChannel = socketChannel;\n target.connectStart = System.currentTimeMillis();\n synchronized (targets) {\n targets.add(target);\n }\n selector.wakeup();\n } catch (IOException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n if (socketChannel != null) {\n try {\n socketChannel.close();\n } catch (IOException e1) {\n e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n target.failure = e;\n addFinishedTarget(target);\n }\n\n }", "public void addLayer(String layer) {\n layers.add(layer);\n }", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void addIpAddress1() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address1\",\n null,\n childrenNames());\n }", "public boolean addNail(Nail nail) {\r\n\t\treturn nails.add(nail);\r\n\t}", "public void addInternetRadioStationOwner( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER, value);\r\n\t}", "@Override\n public void addServer(String address, String port, String name) {\n model.addElement(\"Server name: #\" + name + \"# Server address: #\" + address + \"# Server port: #\" + port + \"#\");\n }", "public void addNode(String ip, int port) throws UnknownHostException {\t\r\n\t\tNodeRef ref = new NodeRef(ip, port); // create data node reference\r\n\t\tnodeMap.put(ref.getIp().getHostAddress(), ref);\r\n\t}", "public boolean addRequest(int requestId) throws Exception{\n return true;\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }", "public void addObserver(IObserver observer)\n {\n observers.add(observer);\n }", "IbeisIndividual addIndividual(String name) throws IOException, MalformedHttpRequestException, UnsuccessfulHttpRequestException, IndividualNameAlreadyExistsException;", "public void packetSent(NIOSocket socket, Object tag)\n {\n }", "public void addInternetRadioStationName( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public void addLayer( Layer layer ) {\n this.layers.put( layer.getName(), layer );\n list.add( layer );\n }", "public void connectTo(NAddress address) throws IOException;", "void SendPacket(int packetIdentifier);", "@Override\n\tpublic void addRep(ImgRep ir) {\n\t\tdao.insert(ir);\n\t}", "public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}", "public void register(NPC npc) {\n\t\tnpcs.add(npc);\n\t}", "public void addVlanHostInterface1() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"vlan-host-interface1\",\n null,\n childrenNames());\n }", "public void addNeuron(ArrayList<Double> weights, int i, int j) {\n this.network[i][j] = new Neuron(weights, i, j);\n }", "public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }", "@Override\n public void addLayer(int index, BoardLayerView layer) {\n this.layers.add(index, layer);\n }", "public void addNode(org.ow2.petals.cloud.controllers.api.runtime.Runtime runtime) {\n if (runtime == null) {\n LOG.warn(\"Can not add a null runtime to the topology\");\n return;\n }\n\n LOG.debug(\"Adding node to the topology {}\", runtime);\n\n Iterator<NotificationListener> iter = topologyListeners.iterator();\n while(iter.hasNext()) {\n NotificationListener listener = iter.next();\n // TODO : Do it async...\n // TODO : Generics...\n listener.on(\"add\", runtime);\n }\n }", "void addIdentificationRequest(Identification request);", "@ZAttr(id=562)\n public void addVirtualIPAddress(String zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void connectInterface(int interfaceNumber, SimEnt link, SimEnt node)\n\t{\n\t\tif(!uniqueAddress(node._id))\n\t\t{\n\t\t\tSystem.out.println(\"IP Address is not unique\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (interfaceNumber<_interfaces && _routingTable[interfaceNumber] == null)\n\t\t{\n\t\t\t_routingTable[interfaceNumber] = new RouteTableEntry(node._id, link);\n\t\t\tSystem.out.println(node.toString() + \" Successfully connected to \" + this.toString());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Trying to connect to port not in router\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t((Link) link).setConnector(this);\n\t}" ]
[ "0.5626741", "0.5321626", "0.52761805", "0.52587473", "0.5233492", "0.521483", "0.5209162", "0.5103981", "0.50871456", "0.5077882", "0.5055407", "0.49966994", "0.4925444", "0.4809175", "0.47409597", "0.47353745", "0.4727283", "0.46980798", "0.46942642", "0.46890166", "0.4646542", "0.4646131", "0.46396583", "0.4637698", "0.46114418", "0.46105427", "0.46019658", "0.45942116", "0.45939827", "0.4586905", "0.4575327", "0.45743385", "0.45601225", "0.45434302", "0.45345816", "0.45149025", "0.45111075", "0.44981942", "0.4490756", "0.44852495", "0.44815958", "0.44803637", "0.44763502", "0.4468493", "0.44634095", "0.44568464", "0.44463724", "0.44449216", "0.44416997", "0.44242597", "0.4419736", "0.4419736", "0.441973", "0.4402241", "0.44021916", "0.4392245", "0.43820128", "0.43731672", "0.43690297", "0.43672416", "0.4360675", "0.4359779", "0.43556198", "0.4347044", "0.43447298", "0.43429515", "0.43348697", "0.43322486", "0.43277988", "0.43232426", "0.43167803", "0.43162954", "0.43145612", "0.43135968", "0.43111092", "0.42875773", "0.42874643", "0.42753327", "0.42603192", "0.42555827", "0.4244594", "0.42283773", "0.4226513", "0.42256328", "0.42233372", "0.4218072", "0.42081556", "0.42072037", "0.4201815", "0.4200569", "0.41958773", "0.4193434", "0.41876173", "0.4185124", "0.41839236", "0.41788164", "0.41756257", "0.4173783", "0.41715017", "0.4171213" ]
0.56181204
1
You can update in full or partially various attributes on the NIC.
public com.profitbricks.rest.domain.Nic updateNic(String dataCenterId, String serverId, String nicId, Object nic) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { return client.update(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/") .concat(parentResource).concat("/").concat(serverId).concat("/") .concat(resource).concat("/").concat(nicId), nic, com.profitbricks.rest.domain.Nic.class, 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void update() throws WriteFailedException {\n Config newData = new ConfigBuilder().addAugmentation(NiPfIfCiscoAug.class,\n new NiPfIfCiscoAugBuilder()\n .setInputServicePolicy(\"input-pol1\")\n .build())\n .build();\n\n this.writer.updateCurrentAttributes(iid, data, newData, context);\n\n Mockito.verify(cli, Mockito.times(1))\n .executeAndRead(response.capture());\n\n assertEquals(UPDATE_INPUT, response.getAllValues()\n .get(0)\n .getContent());\n }", "@Test(description = \"update interface with one attribute for non existing interface\")\n public void updateOneAttribute4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final AttributeStringData attr = data.getAttributeString(\"Attribute\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\").addAttribute(attr);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select attribute dump\"),\n attr.getName(),\n \"check that only one attribute is defined\");\n }", "@Test\n void updateSubif() throws WriteFailedException {\n Config newData = new ConfigBuilder().addAugmentation(NiPfIfCiscoAug.class,\n new NiPfIfCiscoAugBuilder()\n .setInputServicePolicy(\"input-pol1\")\n .build())\n .build();\n\n this.writer.updateCurrentAttributes(iidSubif, data, newData, context);\n\n Mockito.verify(cli, Mockito.times(1))\n .executeAndRead(response.capture());\n\n assertEquals(UPDATE_INPUT_SUBIF, response.getAllValues()\n .get(0)\n .getContent());\n }", "interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {\n }", "void updateDeviceEndpointAttributes(@Nonnull final UpdateDeviceEndpointAttributesRequest request);", "UpdateNetworkResponse updateVirtualisedNetworkResource(\n UpdateNetworkRequest updateNetworkRequest, PoP poP);", "@Test\n public void testPasswordAgingAttributesWithUpdate() {\n if (getConnection().isNis()) {\n log.info(\"skipping test 'testPasswordAgingAttributesWithUpdate' for NIS configuration, as it is not supported there.\");\n return;\n }\n\n String username = getUsername();\n Set<Attribute> passwordAgingAttrs =\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.MIN.getName(), 2),\n AttributeBuilder.build(AccountAttribute.MAX.getName(), 5), AttributeBuilder\n .build(AccountAttribute.WARN.getName(), 4));\n getFacade().update(ObjectClass.ACCOUNT, new Uid(username), passwordAgingAttrs, null);\n\n ToListResultsHandler handler = new ToListResultsHandler();\n getFacade().search(\n ObjectClass.ACCOUNT,\n FilterBuilder.equalTo(AttributeBuilder.build(Name.NAME, username)),\n handler,\n new OperationOptionsBuilder().setAttributesToGet(\n CollectionUtil.newSet(AccountAttribute.MAX.getName(), AccountAttribute.MIN\n .getName(), AccountAttribute.WARN.getName())).build());\n\n assertTrue(handler.getObjects().size() >= 1);\n ConnectorObject result = handler.getObjects().get(0);\n assertTrue(controlAttributeValue(2, AccountAttribute.MIN, result));\n assertTrue(controlAttributeValue(5, AccountAttribute.MAX, result));\n assertTrue(controlAttributeValue(4, AccountAttribute.WARN, result));\n }", "@Override\n\tpublic void update(ConditionalCharacteristicSpecification acs) {\n\n\t}", "@Test\n\tpublic void testSetAttribute_UpdateMode() throws NamingException {\n\t\t// Set original attribute value\n\t\tAttribute attribute = new BasicAttribute(\"cn\", \"john doe\");\n\t\ttested.setAttribute(attribute);\n\n\t\t// Set to update mode\n\t\ttested.setUpdateMode(true);\n\n\t\t// Perform test - update the attribute\n\t\tAttribute updatedAttribute = new BasicAttribute(\"cn\", \"nisse hult\");\n\t\ttested.setAttribute(updatedAttribute);\n\n\t\t// Verify result\n\t\tModificationItem[] mods = tested.getModificationItems();\n\t\tassertEquals(1, mods.length);\n\t\tassertEquals(DirContext.REPLACE_ATTRIBUTE, mods[0].getModificationOp());\n\n\t\tAttribute modificationAttribute = mods[0].getAttribute();\n\t\tassertEquals(\"cn\", modificationAttribute.getID());\n\t\tassertEquals(\"nisse hult\", modificationAttribute.get());\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@PUT\n @Path(\"{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response updateNetwork(@PathParam(\"id\") String id, InputStream input) throws IOException {\n log.trace(String.format(MESSAGE, \"UPDATE \" + id));\n\n String inputStr = IOUtils.toString(input, REST_UTF8);\n\n if (!haService.isActive()\n && !DEFAULT_ACTIVE_IP_ADDRESS.equals(haService.getActiveIp())) {\n return syncPut(haService, NETWORKS, id, inputStr);\n }\n\n final NeutronNetwork net = (NeutronNetwork)\n jsonToModelEntity(inputStr, NeutronNetwork.class);\n\n adminService.updateNetwork(net);\n\n return status(Response.Status.OK).build();\n }", "public static base_response update(nitro_service client, inatparam resource) throws Exception {\n\t\tinatparam updateresource = new inatparam();\n\t\tupdateresource.nat46v6prefix = resource.nat46v6prefix;\n\t\tupdateresource.nat46ignoretos = resource.nat46ignoretos;\n\t\tupdateresource.nat46zerochecksum = resource.nat46zerochecksum;\n\t\tupdateresource.nat46v6mtu = resource.nat46v6mtu;\n\t\tupdateresource.nat46fragheader = resource.nat46fragheader;\n\t\treturn updateresource.update_resource(client);\n\t}", "protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }", "private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }", "interface Update extends\n Appliable<NamespaceAuthorizationRule>,\n AuthorizationRule.UpdateStages.WithListenOrSendOrManage<Update> {\n }", "protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }", "interface Update\n extends Settable<RouteTable.Update>, UpdateStages.WithDestinationAddressPrefix, UpdateStages.WithNextHopType {\n }", "public void updateMIB(double reachability, int index){\t\t\n\t\tif(this.mib < reachability){\n\t\t\tmibIndex = index;\n\t\t\tthis.mib = reachability;\n\t\t}\n\t}", "public void testUpdateAddress6() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n this.dao.updateAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "protected abstract void updateWeightsSpecific(double ni);", "public void update(NetworkNode networkNode);", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Network> patchNetwork(\n @Path(\"name\") String name, \n @Body Network body);", "public void testUpdateAddress5() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getState().setId(-1);\r\n this.dao.updateAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Network> replaceNetwork(\n @Path(\"name\") String name, \n @Body Network body);", "public static void UpdateNetworkVirtualization(AppiumDriver driver, String networkProfile) {\r\n\r\n\t\t\tHashMap<Object, Object> params = new HashMap<>();\r\n\r\n\t\t\tparams.put(\"profile\", networkProfile);\r\n\r\n\t\t\tdriver.executeScript(\"mobile:vnetwork:update\", params);\r\n\r\n\t\t}", "@Override\n @Transactional\n public void updateNetwork(Network network, long networkId) {\n logger.trace(\"Entered updateNetwork() {}\", networkId);\n\n try {\n if ((null != network) && (null != network.getStaticIpv4NetworkConfiguration()) && !CollectionUtils.isEmpty(network.getStaticIpv4NetworkConfiguration().getIpRange())) {\n // we are not allowing the ranges to be edited by this method\n BadRequestException badRequestException = new BadRequestException();\n badRequestException.setErrorCode(ErrorCodeEnum.NETWORKCONF_UPDATE_IPRANGE_INCLUDED);\n badRequestException.addAttribute(\"network\");\n throw badRequestException;\n }\n\n NetworkConfiguration networkConfiguration = networkConfigurationDtoAssembler.transform(network);\n networkConfiguration.setId(networkId);\n NetworkConfiguration oldNetworkConfiguration = networkConfigurationRepository.findOne(networkId);\n if (oldNetworkConfiguration == null) {\n NotFoundException notFoundException = new NotFoundException();\n notFoundException.setErrorCode(ErrorCodeEnum.ENUM_NOT_FOUND_ERROR);\n notFoundException.addAttribute(String.valueOf(networkId));\n throw notFoundException;\n }\n\n networkConfiguration.setIpAddressRanges(oldNetworkConfiguration.getIpAddressRanges());\n validateNetworkConfiguration(networkConfiguration);\n validateIpCountForStaticNetwork(networkConfiguration);\n\n // check if IPAddress type (DHCP <-> Static) is changed. If yes, throw validation exception\n if ( (networkConfiguration.isStatic() && !oldNetworkConfiguration.isStatic()) || (!networkConfiguration.isStatic() && oldNetworkConfiguration.isStatic()) ) {\n logger.error(\"Network Configuration's IP-Address type is changed\");\n throw new BusinessValidationException(ErrorCodeEnum.NETWORKCONF_IPADDRESS_TYPE_CHANGED);\n }\n\n networkConfiguration.setCreatedBy(oldNetworkConfiguration.getCreatedBy());\n networkConfiguration.setCreatedTime(oldNetworkConfiguration.getCreatedTime());\n String userName = UserHelper.getUserName();\n networkConfiguration.setUpdatedBy(userName);\n\n networkConfigurationRepository.save(networkConfiguration);\n logger.info(\"Updated Network Configuration for networkId {}\", networkId);\n } catch (RuntimeCoreException rce) {\n logger.error(\"RuntimeCoreException occured during updateNetworkConfiguration\", rce);\n throw rce;\n } catch (Exception e) {\n logger.error(\"Exception occured during updateNetworkConfiguration\", e);\n RuntimeCoreException runtimeCoreException = new RuntimeCoreException(e);\n runtimeCoreException.setErrorCode(ErrorCodeEnum.NETWORKCONF_SYSTEM_ERROR);\n throw runtimeCoreException;\n } finally {\n logger.trace(\"Exiting updateNetwork()\");\n }\n }", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "int updateByPrimaryKeySelective(AttributeExtend record);", "public void setAllUpdateFlags() {\n\t}", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Network> patchNetwork(\n @Path(\"name\") String name, \n @Body Network body, \n @QueryMap PatchNetwork queryParameters);", "public void updateImcState(int value) {\n }", "void setAttributes(String path, Map<String, Object> newValue) throws IOException;", "public void updateIM(){\n \n }", "public interface UpdateData {\n\n UpdateData UpdateAttributes(String data);\n}", "public abstract void updateAttributes(TaskRepository repository, IProgressMonitor monitor) throws CoreException;", "@Override\n\tpublic void update(CcNoticereceive entity) {\n\t\t\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "void updateInformation();", "@Test\n public void updateApConfiguration() throws Exception {\n /* Initialize WifiApConfigStore with default configuration. */\n WifiApConfigStore store = new WifiApConfigStore(\n mContext, mLooper.getLooper(), mBackupManagerProxy, mFrameworkFacade,\n mApConfigFile.getPath());\n verifyDefaultApConfig(store.getApConfiguration(), TEST_DEFAULT_AP_SSID);\n\n /* Update with a valid configuration. */\n WifiConfiguration expectedConfig = setupApConfig(\n \"ConfiguredAP\", /* SSID */\n \"randomKey\", /* preshared key */\n KeyMgmt.WPA_EAP, /* key management */\n WifiConfiguration.AP_BAND_2GHZ, /* AP band */\n 40, /* AP channel */\n true /* Hidden SSID */);\n store.setApConfiguration(expectedConfig);\n verifyApConfig(expectedConfig, store.getApConfiguration());\n verify(mBackupManagerProxy).notifyDataChanged();\n }", "final void setAttributes(int param1, int param2) {\n }", "ManagementLockObject.Update update();", "public void changeAttrName() {\r\n }", "private void resetNetworkProperties() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.resetNetworkProperties():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.resetNetworkProperties():void\");\n }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Network> replaceNetwork(\n @Path(\"name\") String name, \n @Body Network body, \n @QueryMap ReplaceNetwork queryParameters);", "public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }", "private void updateRunninigWiFiSettings() {\n\t\tlogger.info(\"Going to fetch WIFI settings..\");\n\t\tfor(WiFiSettings updWiFiSetting: updatedConfig.getWifiSettings()) {\n\t\t\t\n\t\t\t//runningWifiSetting = DeviceConfigurationAPI.getListItem(wifiSettingsList, Integer.valueOf(updWiFiSetting.getIndex()));\n\t\t\tpopulateWiFI( updWiFiSetting);\n\t\t\tNetworkSettings nws = updWiFiSetting.getNetworkSettings();\n\t\t\tif(nws != null) {\n\t\t\t\t\n\t\t\t\tpopulateNetwork(nws);\n\t\t\t}\n\t\t\t\n\t\t\t//int index = wifiSettingsList.indexOf(runningWifiSetting);\n\t\t\t\n\t\t}\n\t\t\n\t}", "interface Update extends Appliable<Secret>, UpdateStages.WithProperties, UpdateStages.WithTags {\n }", "interface Update extends Appliable<MoveCollection>, Resource.UpdateWithTags<Update>, UpdateStages.WithIdentity {\n }", "void update(Information info);", "Software update( Software s );", "int ibconfig (int ud, int option, int v);", "@PostMapping(\"/modifyAttribute\")\n public String modifyAttribute(String uid, String attribute, String value)\n {\n String returnVal;\n if()\n {\n if() //if object has attribute\n {\n returnVal = \"uid: \"+ uid + \"\\n\";\n } else\n {\n returnVal = \"no such attribute\\n\";\n }\n } else\n {\n returnVal = \"uid not found\\n\";\n }\n return returnVal;\n }", "@Test\n public void updateTest5() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setWifi(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isWifi() ,\"Should return true if update Servizio\");\n }", "@Override\n\tpublic void update(ReplyVO4 vo) throws Exception {\n\t\tsession.update(namespace+\".update4\",vo);\n\t}", "public void updatePICstatus2() {\n try {\n Connection connection = connectionClass.CONN();\n String query = \"UPDATE stationdashboard SET Status=2, PIC=NULL where Station='\" + Station + \"' and Line ='\" + Line + \"'\";\n PreparedStatement stmt = connection.prepareStatement(query);\n stmt.execute();\n } catch (SQLException ex) {\n }\n }", "@Test(enabled = false)\n public void testPutAttributes() throws SecurityException, NoSuchMethodException, IOException {\n Method method = SimpleDBAsyncClient.class.getMethod(\"putAttributes\", String.class, String.class, Map.class);\n HttpRequest request = processor.createRequest(method, null, \"domainName\");\n\n assertRequestLineEquals(request, \"POST https://sdb.amazonaws.com/ HTTP/1.1\");\n assertNonPayloadHeadersEqual(request, \"Host: sdb.amazonaws.com\\n\");\n assertPayloadEquals(request, \"Version=2009-04-15&Action=PutAttributes&DomainName=domainName&ItemName=itemName\"\n + \"&Attribute.1.Name=name\" + \"&Attribute.1.Value=fuzzy\" + \"&Attribute.1.Replace=true\",\n \"application/x-www-form-urlencoded\", false);\n\n assertResponseParserClassEquals(method, request, ReleasePayloadAndReturn.class);\n assertSaxResponseParserClassEquals(method, null);\n assertExceptionParserClassEquals(method, null);\n\n checkFilters(request);\n }", "public boolean EditAttribute(String attribute, String newValue)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tquery = \"UPDATE Housing SET \"+attribute+\" = '\"+newValue+\"' WHERE h_id = \"+hid; \n\t\t\tint result = con.stmt.executeUpdate(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(result > 0)\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false; \n\t}", "interface Update extends\n Appliable<SearchService>,\n Resource.UpdateWithTags<Update>,\n UpdateStages.WithReplicaCount,\n UpdateStages.WithPartitionCount {\n }", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "int updateByPrimaryKeySelective(CTelnetServers record);", "int updateByPrimaryKeySelective(TbProductAttributes record);", "public void update(Address addr, boolean validBit){\n\t\tthis.address = addr;\n\t\tthis.validBit = validBit;\n\t}", "@Override\n protected void update(ScanningContext context) {\n validateAttributes(context);\n }", "public void setPowerState(Map<String,PowerState> devicesPowerState) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;", "public void updateMount();", "public interface CephPrimaryCapacityUpdater {\n String getCephManufacturer();\n\n void update(CephCapacity capacity);\n}", "@Override\n\tpublic boolean update() {\n\t\tActuator updated = RuntimeStorage.getMyHttp().get_state_actuator(this);\n\n\t\tif (updated != null) {\n\t\t\tthis.setNumber(updated.getNumber());\n\t\t\tthis.setName(updated.getName());\n\t\t\tthis.setType(updated.getType());\n\t\t\tthis.setValue(updated.getValue(), false);\n\t\t\tthis.setUnit(updated.getUnit());\n\t\t\tthis.setUtime(updated.getUtime());\n\t\t} else\n\t\t\treturn false;\n\t\treturn true;\n\t}", "abstract void updateStructure();", "int saveNetworkInterface(NetworkInterface networkInterface);", "private void setState(Element element, State state)\n\t{\n\t\tif (element != null) {\n\t\t\tif (state == State.FULL || state == null)\n\t\t\t\telement.removeAttribute(STATE_ATTR_NAME);\n\t\t\telse\n\t\t\t\telement.setAttribute(STATE_ATTR_NAME, state.toString());\n\t\t}\n\t}", "public void updatePhysicalAddress(String newPhysicalAddress)\r\n {\r\n physicalAddress = newPhysicalAddress;\r\n }", "@Override\r\n public void updateStethoscopeInformation(StethoscopeInformation info) {\r\n\r\n update(info.getModelNumber(), modelNumber);\r\n update(info.getFirmwareVersion() + \"\", firmwareVersion);\r\n update(info.getBatteryLevel() + \"\", batteryLevel);\r\n update(info.getIsAutoBluetoothOn() + \"\", autoBluetooth);\r\n\r\n update(info.getTotalBytesRead() + \"\", bytesRead);\r\n update(info.getBytesReadPerSecond() + \"\", bytesReadSecond);\r\n\r\n update(info.getTotalBytesWritten() + \"\", bytesWritten);\r\n update(info.getBytesWrittenPerSecond() + \"\", bytesWrittenSecond);\r\n }", "int updateByPrimaryKeySelective(CmIndustryConfig record);", "public void changeOwnIP(InetAddress newOwnIP){\n boolean bound = false;\n\n this.ownIP = newOwnIP;\n\n this.packetLock.lock();\n\n this.ds.close();\n\n\n while (!bound) {\n try {\n this.ds = new DatagramSocket(null);\n InetSocketAddress isa = new InetSocketAddress(this.ownIP, this.ownPort);\n this.ds.bind(isa);\n bound = true;\n this.ds.setSendBufferSize(3000000);\n //System.out.println(\"(FASTUNICASTSENDER) BOUND TO \" + this.ownIP + \":\" + this.ownPort);\n //changeHasConnection(true);\n this.packetLock.unlock();\n\n } catch (SocketException e) {\n //System.out.println(\"(FASTUNICASTSENDER) ERROR BINDING TO \" + this.ownIP + \":\" + this.ownPort);\n e.printStackTrace();\n }\n\n if(!bound){\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "public boolean modifyImageAttribute(EC2ModifyImageAttribute request) {\n try {\n if (request.getAttribute().equals(ImageAttribute.launchPermission)) {\n EC2ImageLaunchPermission[] launchPermissions = request.getLaunchPermissionSet();\n for (EC2ImageLaunchPermission launchPermission : launchPermissions) {\n String accounts = \"\";\n Boolean isPublic = null;\n EC2ImageLaunchPermission.Operation operation = launchPermission.getLaunchPermOp();\n List<String> accountOrGroupList = launchPermission.getLaunchPermissionList();\n if (accountOrGroupList != null && !accountOrGroupList.isEmpty()) {\n boolean first = true;\n for (String accountOrGroup : accountOrGroupList) {\n if (\"all\".equalsIgnoreCase(accountOrGroup)) {\n if (operation.equals(EC2ImageLaunchPermission.Operation.add)) {\n isPublic = true;\n } else {\n isPublic = false;\n }\n } else {\n if (!first) {\n accounts = accounts + \",\";\n }\n accounts = accounts + accountOrGroup;\n first = false;\n }\n }\n }\n CloudStackInfoResponse resp = getApi().updateTemplatePermissions(request.getImageId(), accounts, null, null, isPublic, operation.toString());\n if (!resp.getSuccess())\n return false;\n }\n return true;\n } else if (request.getAttribute().equals(ImageAttribute.description)) {\n CloudStackTemplate resp = getApi().updateTemplate(request.getImageId(), null, request.getDescription(), null, null, null, null);\n if (resp != null) {\n return true;\n }\n return false;\n }\n } catch (Exception e) {\n logger.error(\"EC2 modifyImageAttribute - \", e);\n handleException(e);\n }\n return false;\n }", "void setInterfaceMacAddress(MacAddress interfaceMacAddress);", "private void commitCompetitiveNetworkFieldValues() {\r\n ((CompetitiveNetwork) competitive).getCompetitive().setUpdateMethod(\r\n (UpdateMethod) updateMethod.getSelectedItem());\r\n ((CompetitiveNetwork) competitive).getCompetitive().setLearningRate(\r\n Double.parseDouble(tfEpsilon.getText()));\r\n ((CompetitiveNetwork) competitive).getCompetitive().setWinValue(\r\n Double.parseDouble(tfWinnerValue.getText()));\r\n ((CompetitiveNetwork) competitive).getCompetitive().setLoseValue(\r\n Double.parseDouble(tfLoserValue.getText()));\r\n ((CompetitiveNetwork) competitive).getCompetitive()\r\n .setSynpaseDecayPercent(\r\n Double.parseDouble(tfSynpaseDecayPercent.getText()));\r\n ((CompetitiveNetwork) competitive).getCompetitive()\r\n .setLeakyLearningRate(\r\n Double.parseDouble(tfLeakyEpsilon.getText()));\r\n ((CompetitiveNetwork) competitive).getCompetitive()\r\n .setUseLeakyLearning(cbUseLeakyLearning.isSelected());\r\n ((CompetitiveNetwork) competitive).getCompetitive().setNormalizeInputs(\r\n cbNormalizeInputs.isSelected());\r\n }", "@Test\n public void updateDeviceTest() throws ApiException {\n String deviceId = null;\n Device device = null;\n // DeviceEnvelope response = api.updateDevice(deviceId, device);\n\n // TODO: test validations\n }", "@Override\n public void updateModemColumn(String modemTypeName, String DeviceSerial) {\n \n }", "void setInt(int attributeValue);", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "public void setEquipment(int newEquipment) throws java.rmi.RemoteException;", "int updateByPrimaryKeySelective(IymDefAssignment record);", "public Scratch_update_details(String network,String price,String pinn,String batch,String serial,String id){\n try {\n initComponents();\n setTitle(\"Details\");\n setLocationRelativeTo(this);\n loadnetwork();\n lblNetwork.setText(network);\n lblPrice.setText(price);\n pinTXT.setText(pinn);\n batchTXT.setText(batch);\n serialTXT.setText(serial);\n lblid.setText(id);\n \n } catch (Exception ex) {\n Logger.getLogger(Scratch_update_details.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n \n \n }", "@Test\n public void testPutDoesNotThrowWhenMaximumNumberOfAttributesIsAlreadyPresentIfPutIsToInactivate()\n throws Exception {\n optimisticPersister.initialise(1, mockLogger);\n\n // Configure attributes for database to return - the get is used for logging\n // only, so does not really matter.\n GetAttributesRequest simpleDBRequest = new GetAttributesRequest(testSimpleDBDomainName,\n testItemName);\n simpleDBRequest.setConsistentRead(true);\n GetAttributesResult getAttributesResult = new GetAttributesResult();\n getAttributesResult.setAttributes(allAttributes);\n mockery.checking(new Expectations() {\n {\n allowing(mockSimpleDBClient).getAttributes(with(equal(simpleDBRequest)));\n will(returnValue(getAttributesResult));\n }\n });\n\n // Don't care about further calls to SimpleDB.\n mockery.checking(new Expectations() {\n {\n ignoring(mockSimpleDBClient);\n }\n });\n\n // ACT\n // Use an 'inactivating' put i.e. value prefixed with 'Inactive'\n ReplaceableAttribute testAttribute = new ReplaceableAttribute();\n testAttribute.setName(\"Name\");\n testAttribute.setValue(\"InactiveValue\");\n // This should not throw even though we already have the max number of\n // attributes.\n optimisticPersister.put(testItemName, Optional.of(42), testAttribute);\n }", "public void setWireless(ae.etisalat.www.Middleware.UCMSComplaintIntegration.UpdateComplaintDetailsInUCMSRequest_xsd.UpdateComplaintInUCMSRequestDataHeaderElifeAndEVisionWireless[] wireless) {\n this.wireless = wireless;\n }", "interface Update extends UpdateStages.WithLevel, UpdateStages.WithNotes, UpdateStages.WithOwners {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n ManagementLockObject apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n ManagementLockObject apply(Context context);\n }", "public void updateAssignments(Toroidal2DPhysics space) {\n\t\tupdateAsteroidToShip(space);\n\t\tupdateEnergyToShip(space);\n\t\tupdateBaseToShip(space);\n\t\t// updateAssignFlagToShip(space);\n\t\t// updateAssignBaseToShip(space);\n\t}", "@Test\n public void updateTest13() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setWifi(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true , servizio.isWifi() ,\"Should return true if update Servizio\");\n }", "public interface FirewallPolicyUpdate extends ModelEntity, Buildable<FirewallPolicyUpdateBuilder> {\n\n /**\n * @return name : Human readable name for the FirewallPolicyUpdate (255 characters limit). Does not have to be unique.\n */\n public String getName();\n\n /**\n * @return description : Human readable description for the FirewallPolicyUpdate (1024 characters limit).\n */\n public String getDescription();\n\n /**\n * @return shared : When set to True makes this FirewallPolicyUpdate visible to tenants other\n * than its owner, and can be used in FirewallPolicyUpdate not owned by its tenant.\n */\n public Boolean isShared();\n\n /**\n * @return audited : When set to True by the policy owner indicates that the firewall policy has been audited.\n * This attribute is meant to aid in the firewall policy audit workflows.\n * Each time the firewall policy or the associated firewall rules are changed,\n * this attribute will be set to False and will have to be explicitly set\n * to True through an update operation.\n */\n public Boolean isAudited();\n\n /**\n * @return firewallRules(UUID)List : This is an ordered list of firewall rule uuids.\n * The firewall applies the rules in the order in which they appear in this list.\n */\n public List<String> getFirewallRuleIds();\n}", "private void updateMNetwork() {\n\t\t/*\n\t\t Having applied the network inputs, update the brain simulation.\n\t\t */\n\t\tmsimulation.step();\n\t}", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithKind,\n UpdateStages.WithSku,\n UpdateStages.WithIdentity,\n UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Account apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Account apply(Context context);\n }", "public void setKnownIv(Stat stat, int iv) {\n this.minIndividualValues.get(stat).set(iv);\n this.maxIndividualValues.get(stat).set(iv);\n }", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }", "public boolean addInterfaceAndSetAttributes(Context context, String strId, String strAdmin,\r\n \t \t\t\t\t\t\t\t\t\t\t String strInterfaceName, Map mAttrDetails)throws Exception{\r\n \t \t\tboolean bResult = true;\r\n \t \t\tString strCommand =\"\";\r\n \t \t\ttry{\r\n \t \t\t\tstrCommand = \"modify \"+ strAdmin + \" \" + strId +\" add interface \\'\"+ strInterfaceName + \"\\'\";\r\n \t \t\t\tMqlUtil.mqlCommand(context,strCommand);\r\n\r\n \t \t\t\t// check if the attribute Map is not null, if it is not null then set the attributes on the admin\r\n \t \t\t\tif(mAttrDetails!=null && mAttrDetails.size()>0){\r\n\r\n \t \t\t\t\t//DomainObject dom = new DomainObject(strId);\r\n \t \t\t\t\t//dom.setAttributeValues(context,mAttrDetails);\r\n \t \t\t\t\tString strNewFeatType = (String)mAttrDetails.get(ATTRIBUTE_NEW_FEATURE_TYPE);\r\n \t \t\t\t\tString strConflict = (String)mAttrDetails.get(ATTRIBUTE_FTRMigrationConflict);\r\n\r\n \t \t\t\t\tAttributeList attributes = new AttributeList(1);\r\n \t \t attributes.addElement(new Attribute(new AttributeType(ATTRIBUTE_NEW_FEATURE_TYPE), strNewFeatType));\r\n \t \t attributes.addElement(new Attribute(new AttributeType(ATTRIBUTE_FTRMigrationConflict), strConflict));\r\n\r\n\t\t\t\t\t\t//STEP1 - turn triggers off\r\n\r\n \t\t\t\t/*String strMqlCommandOff = \"trigger off\";\r\n \t\t\t\tMqlUtil.mqlCommand(context,strMqlCommandOff,true);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"trigger off ..\" + \"\\n\");*/\r\n\r\n \t \t BusinessObject boFeatureObj = new DomainObject(strId);\r\n \t \t\t\t\tboFeatureObj.open(context);\r\n \t \t\t\t\tboFeatureObj.setAttributeValues(context, attributes);\r\n \t \t\t\t\tboFeatureObj.close(context);\r\n\r\n\t\t\t\t\t\t/*String strMqlCommandOn = \"trigger on\";\r\n \t\t\t\tMqlUtil.mqlCommand(context,strMqlCommandOn,true);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"trigger on ..\" + \"\\n\");*/\r\n\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Stamped Feature Id ---->\"+strId +\"\\n\");\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Value of attribute NewFeatureType ---->\"+strNewFeatType +\"\\n\");\r\n \t \t\t\t\tmqlLogRequiredInformationWriter(\"Value of attribute FTRMigrationConflict ---->\"+strConflict +\"\\n\\n\");\r\n\r\n \t \t\t\t}\r\n\r\n \t \t\t}catch(Exception e){\r\n \t \t\t\tbResult = false;\r\n \t \t\t\tmqlLogRequiredInformationWriter(\"add Interface And Set Attributes Command failed ..\"+ strCommand + \"\\n\");\r\n \t \t\t\te.printStackTrace();\r\n \t \t\t\tthrow new FrameworkException(e.getMessage());\r\n \t \t\t}\r\n \t \t\treturn bResult;\r\n \t \t}", "@Override\n public void update(Restriction object) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }" ]
[ "0.6247652", "0.59613496", "0.5690667", "0.56513554", "0.5622704", "0.5621799", "0.5553001", "0.5546712", "0.54425204", "0.53318644", "0.52063936", "0.52005255", "0.51898885", "0.51825756", "0.5160438", "0.514567", "0.51072663", "0.50464886", "0.5033747", "0.4984657", "0.49618682", "0.49074784", "0.49052447", "0.4888939", "0.48794073", "0.48568845", "0.48566824", "0.48387384", "0.48302987", "0.4828733", "0.48265386", "0.4822294", "0.4817928", "0.4815099", "0.47933692", "0.4785577", "0.47811133", "0.4775223", "0.47745895", "0.47704163", "0.4770086", "0.47696993", "0.4753592", "0.475014", "0.47460386", "0.47390124", "0.4735737", "0.47322315", "0.4720815", "0.4714213", "0.47129846", "0.47095275", "0.47057477", "0.47050998", "0.4693704", "0.46897897", "0.4689126", "0.4687776", "0.4683198", "0.4682164", "0.46750644", "0.46667644", "0.46577638", "0.46557567", "0.46530056", "0.46523148", "0.46506646", "0.4636881", "0.4628046", "0.46170774", "0.46104604", "0.4607119", "0.46039313", "0.46023467", "0.4599199", "0.45983478", "0.45928854", "0.4591998", "0.459036", "0.4587913", "0.4583979", "0.4577691", "0.4576154", "0.45736352", "0.45696428", "0.45680642", "0.4562595", "0.45622402", "0.45611656", "0.4555987", "0.45498097", "0.45476863", "0.45457467", "0.45417124", "0.45361912", "0.45323303", "0.45310402", "0.4528686", "0.4528445", "0.45257315" ]
0.5078357
17
Deletes the specified NIC.
public void deleteNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException { client.delete(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/") .concat(parentResource).concat("/").concat(serverId).concat("/") .concat(resource).concat("/").concat(nicId), 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\n @Path(\"{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response deleteNetwork(@PathParam(\"id\") String id) {\n log.trace(String.format(MESSAGE, \"DELETE \" + id));\n\n if (!haService.isActive()\n && !DEFAULT_ACTIVE_IP_ADDRESS.equals(haService.getActiveIp())) {\n return syncDelete(haService, NETWORKS, id);\n }\n\n adminService.removeNetwork(id);\n return noContent().build();\n }", "public boolean removeNicCard(String vmuuid, String networkName) throws HyperVException;", "void removeDevice(int networkAddress);", "public void unassignNicFromLoadBalancer(String dataCenterId, String loadBalancerId, String nicId) throws RestClientException, IOException {\n client.delete(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(\"/\").concat(nicId), 202);\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionNetwork();", "public void removeNetwork(int index) {\n netwList.get(index).delete();\n // remove it from the list\n netwList.remove(index);\n notifyItemRemoved(index);\n }", "java.util.concurrent.Future<DeleteSolNetworkInstanceResult> deleteSolNetworkInstanceAsync(DeleteSolNetworkInstanceRequest deleteSolNetworkInstanceRequest);", "public void delete(Contract contract) {\n contract_dao.delete(contract);\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionNetwork(\n @QueryMap DeleteCollectionNetwork queryParameters);", "@Override\n\tpublic int snsDelete(SnsVO vo) {\n\t\treturn map.snsDelete(vo);\n\t}", "public com.google.protobuf.Empty deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "public void deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void removeFromStorage() throws Exception {\n String baseUrl = REST_URL + \"/core/device\";\n\n Treespace t = dbService.getControllerTreespace();\n String qStr =\n String.format(\"/core/device[id=\\\"%s\\\"]/security-ip-address\",\n eKey);\n Query q = Query.parse(qStr);\n t.deleteData(q, AuthContext.SYSTEM);\n }", "@Override\n public DeleteWirelessDeviceResult deleteWirelessDevice(DeleteWirelessDeviceRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteWirelessDevice(request);\n }", "@DeleteMapping(path = \"/{operatorId}\")\n @ApiOperation(value = \"Deletes an existing operator entity identified by its id if it's available for the requesting entity.\")\n @ApiResponses({@ApiResponse(code = 204, message = \"Success!\"),\n @ApiResponse(code = 401, message = \"Not authorized to delete the operator!\"),\n @ApiResponse(code = 404, message = \"Operator or requesting user not found!\")})\n public ResponseEntity<Void> delete(\n @RequestHeader(\"X-MBP-Access-Request\") String accessRequestHeader,\n @PathVariable(\"operatorId\") String operatorId) throws EntityNotFoundException, MissingPermissionException {\n userEntityService.deleteWithAccessControlCheck(operatorRepository, operatorId, ACAccessRequest.valueOf(accessRequestHeader));\n return ResponseEntity.noContent().build();\n }", "@Override\n public DeleteWirelessGatewayResult deleteWirelessGateway(DeleteWirelessGatewayRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteWirelessGateway(request);\n }", "void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context);", "public void removeDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DEVICE$12, i);\n }\n }", "@Query(value = \"{'dni._id' : ?0}\", delete = true)\r\n\tpublic void deleteByDni(String dni);", "public int removeInterface(String id);", "void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName);", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "public void delete(IBaseDTO dto) {\n\t\tOperInquiryCard inquiryCard=(OperInquiryCard)dao.loadEntity(OperInquiryCard.class, dto.get(\"id\").toString());\n\t\tdao.removeEntity(inquiryCard);\n\t}", "public void deleteMember(IMember member);", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\topcionRepository.deleteById(id);\n\t}", "public abstract void deleteContract(String contractNumber);", "void delete(String identifier) throws IOException;", "@Override\n\tpublic int delete(ReplyVO vo) throws Exception {\n\t\tlog.info(\"delete().vo : \" + vo);\n\t\treturn mapper.delete(vo);\n\t}", "@Override\n\tpublic void delete(Integer rno) throws Exception {\n\t\tSystem.out.println(\"gogog\");\n\t\tsession.delete(namespace+\".delete4\",rno);\n\t}", "@Override\n\tpublic void deleteIntDst(String intDstId) throws Exception {\n\n\t}", "public void deleteLink(IHyperLink link)\n throws OculusException;", "public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.DeleteImageRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteMethod(), getCallOptions(), request);\n }", "public void delete(Shipping3VO vo) {\r\n\t\tentityManager.remove(vo);\r\n\t}", "void delete(String resourceGroupName, String rackName, Context context);", "HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;", "public void eliminarElemento(int indice){ \n nodos.remove(indice);\n fireIntervalRemoved(this, indice, indice); \n }", "@POST\r\n @Path(\"deletewifi\")\r\n public void deleteWifi(@FormParam(\"ssid\")String ssid) throws ClassNotFoundException, SQLException{\r\n Class.forName(\"org.postgresql.Driver\");\r\n \r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n String query = \"Delete From wifis Where ssid=?\";\r\n\r\n // create the mysql insert preparedstatement\r\n PreparedStatement preparedStmt = connection.prepareStatement(query);\r\n preparedStmt.setString(1, ssid);\r\n\r\n preparedStmt.execute();\r\n preparedStmt.close();\r\n connection.close();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n }", "public static void deleteObject(String path, String name) throws Exception {\n if (!exists(path, name))\n throw new Exception (\"File does not exist!\");\n new File(kNetworkPath + name).delete();\n }", "public void deleteById(String id);", "public void delete(int acc_num) {\n accountRepository.deleteById(acc_num);\n }", "public String delete()\r\n\t{\r\n\t\tlog.debug(\"Delete ip addresses called\");\r\n\t\tif( ignoreIpAddressIds != null )\r\n\t\t{\r\n\t\t for(int index = 0; index < ignoreIpAddressIds.length; index++)\r\n\t\t {\r\n\t\t\t log.debug(\"Deleting ignore ip address with id \" + ignoreIpAddressIds[index]);\r\n\t\t\t IgnoreIpAddress address = ignoreIpAddressService.getIgnoreIpAddress(ignoreIpAddressIds[index], false);\r\n\t\t\t ignoreIpAddressService.deleteIgnoreIpAddress(address);\r\n\t\t }\r\n\t\t downloadStatisticsService.updateAllRepositoryFileRollUpCounts();\r\n\t\t}\r\n\t\tdeleted = true;\r\n\t\treturn \"deleted\";\r\n\t}", "public void markVlanHostInterface1Delete() throws JNCException {\n markLeafDelete(\"vlanHostInterface1\");\n }", "void deleteById(final String id);", "public void deleteCard(final WebsiteInterface.WebsiteResult verification,\n int id, String front, String back){\n Response.Listener<JSONObject> deleteCard = setResponse(verification);\n //isntantiate network request object\n NetworkRequest networkRequest = new NetworkRequest(this.appContext);\n //set api endpoint; use /:id/:front?/:back?\n //TODO: change the value here to incluse the fron and back\n String api = WebsiteInterface.DELETE_CARD + String.valueOf(id) + \"/\" + front + \"/\" + back;\n //set method\n int method = networkRequest.getMethod(\"DELETE\");\n //send the network request off into queue\n networkRequest.addToRequestQueue(new JsonObjectRequest(\n method,\n api,\n null,\n deleteCard,\n error\n ));\n }", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "void deleteById(Integer id);", "void deleteById(Integer id);", "public void deleteAt(int index) {\n if (index == 0) {\n head = head.next;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = currentNode.next;\n currentNode = null;\n }\n size--;\n }", "public static device_profile delete(nitro_service client, device_profile resource) throws Exception\r\n\t{\r\n\t\tresource.validate(\"delete\");\r\n\t\treturn ((device_profile[]) resource.delete_resource(client))[0];\r\n\t}", "public void deleteIObserver( IObserver iobs )\n {\n observers.removeElement( iobs );\n }", "public void myqnaDelete(int idx) {\n\t\tdao.myqnaDelete(idx);\r\n\t}", "public DeleteNetwork dryRun(String dryRun) {\n put(\"dryRun\", dryRun);\n return this;\n }", "public void deleteNen(Integer id) {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tNen ac = (Nen) em.find(Nen.class, id);\n\t\t\tem.remove(ac);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t}", "public void deleteIndividualAcl(Individual i);", "void delete(String resourceGroupName, String virtualMachineName);", "public void removeSegment(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SEGMENT$2, i);\n }\n }", "public void delete() throws Exception{\n\t\tm_service = new DistrictService();\n\t\tString deleteId = \"3751~`~`~`~@~#\";\n\t\tDecoder objPD = new Decoder(deleteId);\n\t\tString objReturn = m_service.delete(objPD);\n\t\tSystem.out.println(objReturn);\n\t}", "public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.operation.OperationOuterClass.Operation> delete(\n yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.DeleteImageRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getDeleteMethod(), getCallOptions()), request);\n }", "void delete(String uuid);", "public void removeCharacteristic(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(CHARACTERISTIC$12, i);\n }\n }", "@Override\r\n\tpublic void delete(Integer memNo) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tClass.forName(driver);\r\n\t\t\tcon = DriverManager.getConnection(url, userid, passwd);\r\n\t\t\tpstmt = con.prepareStatement(DELETE);\r\n\r\n\t\t\tpstmt.setInt(1, memNo);\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t// Handle any driver errors\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't load database driver. \" + e.getMessage());\r\n\t\t\t// Handle any SQL errors\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t\t// Clean up JDBC resources\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void deleteInterest(TXSemanticTag i);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\r\n\tpublic int deleteAdvertisement(int num) {\n\t\treturn session.delete(\"kdc.advertisement.deleteAdvertisement\", num);\r\n\t}", "TerminateNetworkResponse terminateVirtualisedNetworkResource(\n TerminateNetworkRequest terminateNetworkRequest, PoP poP) throws AdapterException;", "int deletePortByVimId(String vimId) throws ServiceException;", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "@Override\n public DeleteNetworkAnalyzerConfigurationResult deleteNetworkAnalyzerConfiguration(DeleteNetworkAnalyzerConfigurationRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteNetworkAnalyzerConfiguration(request);\n }", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "void delete(ServiceSegmentModel serviceSegment);", "public void delete(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.DeleteImageRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);\n }", "void delete(I id);", "@Test\n public void deleteShoppingCartConnectionTagTest() throws ApiException {\n Integer shoppingCartConnectionId = null;\n String shoppingCartConnectionTag = null;\n api.deleteShoppingCartConnectionTag(shoppingCartConnectionId, shoppingCartConnectionTag);\n\n // TODO: test validations\n }", "public void delete(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.DeleteImageRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);\n }", "public void sendUnbindRequest(Pdu packet);", "public static int deleteDotNet(Path fileName, int address) throws IOException, SAXException, ParserConfigurationException, TransformerException {\n int deletedDotNet = -1;\n Document doc = getDocument(fileName);\n NodeList dotNetNodeList = doc.getElementsByTagName(\"commsController\");\n\n for (int dotNetCount = 0; dotNetCount < dotNetNodeList.getLength(); dotNetCount++) {\n Node dotNetNode = dotNetNodeList.item(dotNetCount);\n if (dotNetNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) dotNetNode;\n if (address == Integer.parseInt(eElement.getAttribute(\"address\"))) {\n dotNetNode.getParentNode().removeChild(dotNetNode);\n deletedDotNet = address;\n saveDocument(fileName, doc);\n break;\n }\n }\n }\n return deletedDotNet;\n }", "boolean delete(final Tag tag);", "void deleteById(String accountNumber) throws AccountException;", "@Override\n\tpublic void deleteDriver(DriverPO po) throws RemoteException {\n\t\tdriverDataService.deleteDriver(po);\n\n\t}", "public int delete( Integer idConge ) ;", "@Override\r\n\tpublic Product deleteWireLessNetworkAdapterById(int id) {\n\t\tOptional<WirelessNetworkAdapters> optional = wirelessNetworkRepo.findById(id);\r\n\t\tif (optional.isPresent()) {\r\n\t\t\twirelessNetworkRepo.deleteById(id);\r\n\r\n\t\t\treturn optional.get();\r\n\t\t} else\r\n\t\t\t// if product is not found : throw custom exception\r\n\t\t\tthrow new ProductNotFoundException(\"WirelessNetworkAdapters Not Found : Invalid WirelessNetworkAdapters id \" + id);\r\n\t}", "public void markIpAddressDelete() throws JNCException {\n markLeafDelete(\"ipAddress\");\n }" ]
[ "0.5790451", "0.5551845", "0.55508405", "0.5414362", "0.52112603", "0.5115862", "0.50343555", "0.49663812", "0.48898938", "0.47923005", "0.4785112", "0.4762777", "0.47539878", "0.47326735", "0.4726606", "0.47091472", "0.47032377", "0.46951655", "0.4664714", "0.46586764", "0.46471667", "0.4637783", "0.45943204", "0.4565239", "0.45597285", "0.4551723", "0.4531963", "0.4531687", "0.45042357", "0.4501613", "0.44899568", "0.44888145", "0.44625744", "0.44617426", "0.44438133", "0.44334012", "0.44330296", "0.43847612", "0.43829212", "0.4378852", "0.43731457", "0.43667328", "0.43625432", "0.435008", "0.43468332", "0.4345214", "0.43420562", "0.43420562", "0.43393847", "0.43393847", "0.43393847", "0.43224853", "0.43224853", "0.43220082", "0.43188286", "0.43155795", "0.43137226", "0.43108374", "0.43072262", "0.4301544", "0.42929018", "0.4289394", "0.42873624", "0.42854503", "0.4284229", "0.42836353", "0.4283163", "0.42812592", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42799163", "0.42726037", "0.42679873", "0.42648897", "0.4261954", "0.4261954", "0.4261954", "0.4261954", "0.4257754", "0.42521313", "0.42520934", "0.42472807", "0.42450243", "0.42437288", "0.42396688", "0.42386976", "0.4234713", "0.42256123", "0.42228985", "0.4210293", "0.42091665", "0.4201458", "0.4191157" ]
0.630558
0
This will associate a NIC to a Load Balancer, enabling the NIC to participate in loadbalancing.
public com.profitbricks.rest.domain.Nic assignNicToLoadBalancer(String dataCenterId, String loadBalancerId, String nicId) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { PBObject payload = new PBObject(); payload.setId(nicId); return client.create(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/").concat("loadbalancers").concat("/").concat(loadBalancerId).concat("/"). concat("balancednics"), payload, com.profitbricks.rest.domain.Nic.class, 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addVMinterfPair(String intrfcLabel, String ipAddress) {\n\r\n this.intrfces.add(new VMinterface(intrfcLabel, ipAddress));\r\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Test(timeout = 10000L)\n public void testSetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testSetLoadBalancerInformation(client);\n }", "public void activate() {\n routeTables = new ConcurrentHashMap<>();\n\n routeTables.put(IPV4, new RouteTable(IPV4));\n routeTables.put(IPV6, new RouteTable(IPV6));\n\n log.info(\"Started\");\n }", "public static void addListener(NetworkListener listener) {\n\t\tarcade.getClient().addListener(listener);\n\t}", "public void addIpAddress() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address\",\n null,\n childrenNames());\n }", "public void associateIP(String instanceId, String instanceIp){\n \t System.out.println(\"Now associate IP\"); \t\t\t \n AssociateAddressRequest aar = new AssociateAddressRequest(); \t \n \t aar.setInstanceId(instanceId);\n \t aar.setPublicIp(instanceIp);\n \t ec2.associateAddress(aar);\n }", "public boolean associateAddress(EC2AssociateAddress request) {\n try {\n List<CloudStackIpAddress> cloudIps = getApi().listPublicIpAddresses(null, null, null, null, null, request.getPublicIp(), null, null, null);\n if (cloudIps == null)\n throw new Exception(\"Specified ipAddress doesn't exist\");\n CloudStackIpAddress cloudIp = cloudIps.get(0);\n\n List<CloudStackUserVm> vmList =\n getApi().listVirtualMachines(null, null, true, null, null, null, null, request.getInstanceId(), null, null, null, null, null, null, null, null, null);\n if (vmList == null || vmList.size() == 0) {\n throw new Exception(\"Instance not found\");\n }\n CloudStackUserVm cloudVm = vmList.get(0);\n\n CloudStackInfoResponse resp = getApi().enableStaticNat(cloudIp.getId(), cloudVm.getId());\n if (resp != null) {\n return resp.getSuccess();\n }\n } catch (Exception e) {\n logger.error(\"EC2 AssociateAddress - \", e);\n handleException(e);\n }\n return false;\n }", "public void addModule(IPModule module);", "public synchronized void register(String routerId)\n {\n logger.info(\"Toggle callback for routerid :\" + routerId);\n // todo : handle multiple router ids - store in map and do find for every rouer id on thread execution\n this.routerId = routerId;\n clients.put(wctx.getScriptSession().getId(), wctx.getScriptSession());\n if ( !this.active )\n {\n this.active = true;\n new Thread(this).start();\n }\n }", "public void addNetworkCopy(String serverId){\n synchronized (networkCopiesLock){\n this.networkCopies.add(serverId);\n }\n }", "public void markIpAddressCreate() throws JNCException {\n markLeafCreate(\"ipAddress\");\n }", "AllocateNetworkResponse allocateVirtualisedNetworkResource(\n AllocateNetworkRequest allocateNetworkRequest, PoP poP) throws AdapterException;", "Router(int interfaces, int networkId)\n\t{\n\t\t\n\t\t_routingTable = new RouteTableEntry[interfaces];\n\t\t_interfaces=interfaces;\n\t\tsetNetworkAddr(networkId, 0);\n\t\t_HA = new HomeAgent(this);\n\t}", "public void addInstruction(Instruction inst) {\n if (encodedProgram != null) {\n throw new AssertionError(\"Trying to add instructions after program has been linked\");\n }\n\n if (program == null) {\n program = new LinkedHashMap<>(128);\n encodedProgram = null;\n }\n\n inst.setAddress(programCntr);\n String key = inst.getLabel();\n if (key == null) {\n key = \"_pc\" + programCntr; // illegal label, could never interfere with a real program\n }\n if ((program.put(key, inst)) != null) {\n throw new RuntimeException(\"Duplicate label: \" + key);\n }\n programCntr++;\n }", "public synchronized void addNetworkListener(INetworkListener pNet) {\r\n\t\tLOG.finer(\"Added network listener.\");\r\n\t\tlistener.add(pNet);\r\n\t}", "@Override\n public boolean applyIps(Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> service) throws ResourceUnavailableException {\n return false;\n }", "public void registerObject(NetObject object);", "public void unassignNicFromLoadBalancer(String dataCenterId, String loadBalancerId, String nicId) throws RestClientException, IOException {\n client.delete(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(\"/\").concat(nicId), 202);\n }", "public void setNatAddress(String addr);", "public void addIpAddress1() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address1\",\n null,\n childrenNames());\n }", "public void connect(String ipAddress) {\n if (logger.isActivated()) {\n logger.info(\"Network access connected (\" + ipAddress + \")\");\n }\n this.ipAddress = ipAddress;\n }", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public void markIpAddressMerge() throws JNCException {\n markLeafMerge(\"ipAddress\");\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools(\n List<SubResource> loadBalancerInboundNatPools) {\n this.loadBalancerInboundNatPools = loadBalancerInboundNatPools;\n return this;\n }", "@ZAttr(id=562)\n public void addVirtualIPAddress(String zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "int saveNetworkInterface(NetworkInterface networkInterface);", "@Override\r\n\tpublic boolean hasLoadBalancerSupport() {\n\t\treturn false;\r\n\t}", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }", "void addNeighbour(Territory neighbour) {\n\t\tneighbours.add(neighbour);\n\t}", "public Interface addInterface(String name, IpAddress addr, Mask msk,\r\n\t\t\tInteger mtu) throws NodeException {\r\n\t\tInterface ifc1 = new Interface(name, addr, msk, mtu);\r\n\t\tifaces.put(name, ifc1);\r\n\t\treturn ifc1;\r\n\t}", "public void markIpAddress1Create() throws JNCException {\n markLeafCreate(\"ipAddress1\");\n }", "private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}", "public void addBridgeEntryToCache(Uint64 dpnId, BridgeEntry bridgeEntry) {\n bridgeEntryMap.put(dpnId, bridgeEntry);\n }", "public void setNatPolicy(NatPolicy policy);", "void put(String label, Identity identity) throws IOException;", "void setNilPoolId();", "public void addToBlock(Instruction instn){\n\t\tinstns.add(instn);\n\t}", "public EventMapper onBalance(final Balancer balancer) {\n\t\tValidate.notNull(balancer);\n\t\tBalancer.Directory.addCustomBalancer(balancer);\n\t\treturn this;\n\t}", "private void establishServerConnection() {\n int lb_port = Integer.parseInt(gui.getLBPort_Text().getText());\n gui.getLBPort_Text().setEnabled(false);\n String lb_ip = gui.getLBIP_Text().getText();\n gui.getLBIP_Text().setEnabled(false);\n int server_port = Integer.parseInt(gui.getServerPort_Text().getText());\n gui.getServerPort_Text().setEnabled(false);\n String server_ip = gui.getServerIP_Text().getText();\n gui.getServerIP_Text().setEnabled(false);\n obtainId(server_ip, server_port);\n lbInfo = new ConnectionInfo(lb_ip, lb_port, 3);\n\n if (connection.startServer(server_port)) {\n connectionHandler = new ServerConnections(connection, lbInfo, requestsAnswered, processingRequests, gui.getCompleted_Text(), gui.getProcessing_Text());\n new Thread(connectionHandler).start();\n\n requestServerId();\n scheduler.scheduleAtFixedRate(heartbeat, 10, 10, TimeUnit.SECONDS);\n } else {\n gui.getLBPort_Text().setEnabled(true);\n gui.getLBIP_Text().setEnabled(true);\n gui.getServerPort_Text().setEnabled(true);\n gui.getServerIP_Text().setEnabled(true);\n gui.getButton_Connect().setEnabled(true);\n }\n }", "@ZAttr(id=562)\n public Map<String,Object> addVirtualIPAddress(String zimbraVirtualIPAddress, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n return attrs;\n }", "WithAttach<ParentT> withNextHopToVirtualAppliance(String ipAddress);", "WithAttach<ParentT> withNextHopToVirtualAppliance(String ipAddress);", "public com.profitbricks.rest.domain.Nic createNic(String dataCenterId, String serverId, com.profitbricks.rest.domain.Nic nic) throws RestClientException, IOException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n return client.create(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource), nic, com.profitbricks.rest.domain.Nic.class, 202);\n }", "protected static void addNetwork(Company company, Company network) {\n addNetworksHelper(company, network);\n addNetworksHelper(network, company);\n }", "@Override\n public AssociateWirelessGatewayWithThingResult associateWirelessGatewayWithThing(AssociateWirelessGatewayWithThingRequest request) {\n request = beforeClientExecution(request);\n return executeAssociateWirelessGatewayWithThing(request);\n }", "public void addReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener) {\r\n reachabilityListeners.add(reachabilityListener);\r\n }", "public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }", "public boolean addNetworkEx(WifiConfiguration wcg) {\n Method connectMethod = connectWifiByReflectMethod(wcg);\n if (connectMethod == null) {\n int wcgID = this.mWifiManager.addNetwork(wcg);\n boolean isOK = this.mWifiManager.enableNetwork(wcgID, true);\n return isOK;\n } else {\n return true;\n }\n }", "protected void initializeNetwork() {\n logger.debug(\"Initialising ZWave controller\");\n\n // Create config parameters\n Map<String, String> config = new HashMap<String, String>();\n config.put(\"masterController\", isMaster.toString());\n config.put(\"sucNode\", sucNode.toString());\n config.put(\"secureInclusion\", secureInclusionMode.toString());\n config.put(\"networkKey\", networkKey);\n config.put(\"wakeupDefaultPeriod\", wakeupDefaultPeriod.toString());\n\n // TODO: Handle soft reset?\n controller = new ZWaveController(this, config);\n controller.addEventListener(this);\n\n // Start the discovery service\n discoveryService = new ZWaveDiscoveryService(this, searchTime);\n discoveryService.activate();\n\n // And register it as an OSGi service\n discoveryRegistration = bundleContext.registerService(DiscoveryService.class.getName(), discoveryService,\n new Hashtable<String, Object>());\n }", "public synchronized void advertise(MCMPConfig config) throws IOException {\n final MCMPConfig.AdvertiseConfig advertiseConfig = config.getAdvertiseConfig();\n if (advertiseConfig == null) {\n throw new IllegalArgumentException(\"advertise not enabled\");\n }\n MCMPAdvertiseTask.advertise(container, advertiseConfig, xnioWorker);\n }", "WithNextHopType<ParentT> withDestinationAddressPrefix(String cidr);", "WithNextHopType<ParentT> withDestinationAddressPrefix(String cidr);", "public void markIpAddress2Create() throws JNCException {\n markLeafCreate(\"ipAddress2\");\n }", "public void markIpAddress2Create() throws JNCException {\n markLeafCreate(\"ipAddress2\");\n }", "public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }", "public static void startNetworkVirtualization(AppiumDriver driver, String networkProfile) {\r\n\r\n\t\t\tHashMap<Object, Object> params = new HashMap<>();\r\n\r\n\t\t\tparams.put(\"profile\", networkProfile);\r\n\r\n\t\t\tdriver.executeScript(\"mobile:vnetwork:start\", params);\r\n\r\n\t\t}", "public void addVlanHostInterface1() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"vlan-host-interface1\",\n null,\n childrenNames());\n }", "public Inet4Address assignNewIPAddress() {\n\t\tbyte[] rawNewAddr = Arrays.copyOf(subnetAddress.getAddress(), 4);\n\n\t\t//TODO find an available IP address and register it to usedAddresses\n\t\t//TODO hardcoding 256 assuming that mask == 24; all trying ones would be in this subnet\n\t\t// starting from 2 since 0 and 1 are assumed to be used already (for network and gateway)\n\t\tfor (int i = 2; i < 256; i++) {\n\t\t\trawNewAddr[3] = (byte) i;\n\t\t\tInet4Address newAddr;\n\n\t\t\ttry {\n\t\t\t\tnewAddr = (Inet4Address) Inet4Address.getByAddress(rawNewAddr);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t// shouldn't happen\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isAddressAlreadyRegistered(newAddr)) {\n\t\t\t\t//address not registered yet -> let's register\n\t\t\t\tusedAddresses.add(newAddr);\n\t\t\t\treturn newAddr;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public abstract String associatePredefinedAddress(NodeMetadata node, String ip);", "@Test\n public void testToVendorConfiguration_generateNatPoolIpSpaces() {\n A10Configuration a10Configuration = new A10Configuration();\n a10Configuration.setHostname(\"c\");\n String poolName = \"pool\";\n a10Configuration\n .getNatPools()\n .put(poolName, new NatPool(poolName, Ip.parse(\"1.1.1.1\"), Ip.parse(\"1.1.1.10\"), 24));\n Configuration c =\n Iterables.getOnlyElement(a10Configuration.toVendorIndependentConfigurations());\n\n assertThat(\n c.getIpSpaces(),\n equalTo(\n ImmutableMap.of(\n ipSpaceNameForNatPool(poolName),\n IpRange.range(Ip.parse(\"1.1.1.1\"), Ip.parse(\"1.1.1.10\")))));\n }", "WithCreate withNetworkProfile(LabNetworkProfile networkProfile);", "public NextHopParameters withTargetNicResourceId(String targetNicResourceId) {\n this.targetNicResourceId = targetNicResourceId;\n return this;\n }", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public void setNetworkInterfaces(java.util.Collection<NetworkInterface> networkInterfaces) {\n if (networkInterfaces == null) {\n this.networkInterfaces = null;\n return;\n }\n\n this.networkInterfaces = new java.util.ArrayList<NetworkInterface>(networkInterfaces);\n }", "public void setLabeledInstance(Instance inst){\n\t\tthis._labeledInstance = inst;\n\t}", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "public void register(IObserver obj);", "@Service NetworkService network(String id);", "public void associate (String accID, Integer logicalDBKey, int mgiTypeKey,\n int objectKey)\n throws MGIException\n {\n Integer probeKey = new Integer(objectKey);\n\n logger.logdDebug(\"Make Association: \"+accID+\",\"+logicalDBKey+\",\"+\n objectKey+\",\"+mgiTypeKey,false);\n\n Vector vParts = AccessionLib.splitAccID(accID);\n\n // Create an state object for the ACC_Accession table and set its\n // attributes.\n //\n ACC_AccessionState accState = new ACC_AccessionState();\n accState.setAccID(accID);\n accState.setPrefixPart((String)vParts.get(0));\n accState.setNumericPart((Integer)vParts.get(1));\n accState.setLogicalDBKey(logicalDBKey);\n accState.setMGITypeKey(new Integer(mgiTypeKey));\n accState.setObjectKey(probeKey);\n accState.setPrivateVal(isPrivateAccID);\n accState.setPreferred(new Boolean(true));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionDAO accDAO = new ACC_AccessionDAO(accState);\n loadStream.insert(accDAO);\n\n // Create an state object for the ACC_AccessionReference table and set\n // its attributes.\n //\n ACC_AccessionReferenceState accRefState =\n new ACC_AccessionReferenceState();\n accRefState.setAccessionKey(accDAO.getKey().getKey());\n accRefState.setRefsKey(refsKey);\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionReferenceDAO accRefDAO =\n new ACC_AccessionReferenceDAO(accRefState);\n loadStream.insert(accRefDAO);\n\n // Special processing for probe associations ONLY.\n //\n if (mgiTypeKey == 3 && madeProbeRef == false)\n {\n // Determine if the probe is already associated with the reference.\n //\n if (probeRefLookup.lookup(probeKey) == null)\n {\n // Create an state object for the PRB_Reference table and set\n // its attributes.\n //\n PRB_ReferenceState probeRefState = new PRB_ReferenceState();\n probeRefState.setProbeKey(probeKey);\n probeRefState.setRefsKey(refsKey);\n probeRefState.setHasrmap(new Boolean(false));\n probeRefState.setHassequence(new Boolean(false));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n PRB_ReferenceDAO probeRefDAO = new PRB_ReferenceDAO(probeRefState);\n loadStream.insert(probeRefDAO);\n\n // Add the probe key to the lookup cache, so another bcp record\n // will not be created for it in the future.\n //\n probeRefLookup.addToCache(probeKey);\n }\n\n // The probe reference has been made.\n //\n madeProbeRef = true;\n }\n }", "public Router(String name, List<NetworkInterface> networkInterfaces) {\n this.name = name;\n this.networkInterfaces = networkInterfaces;\n }", "public AssetAttributes withNetworkInterfaces(java.util.Collection<NetworkInterface> networkInterfaces) {\n setNetworkInterfaces(networkInterfaces);\n return this;\n }", "public void addCaseToLabel(CaseUUID aCaseUUID, LabelUUID aLabelUUID);", "public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}", "public int addNetwork(long id) {\n int nextIndex = networkIds.length;\n\n long [] newIds = new long[networkIds.length+1];\n System.arraycopy(networkIds, 0, newIds, 0, networkIds.length);\n newIds[nextIndex] = id;\n\n networkIds = newIds;\n reverseMap = null; // force rebuild next time\n return nextIndex;\n }", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public void associate(Object obj, Class type);", "public void addBeaconNotifier(BeaconNotifier beaconNotifier) {\n beaconNotifiers.add(beaconNotifier);\n }", "public void setIngressThreshold(Integer ingressThreshold) {\n this.ingressThreshold = ingressThreshold;\n }", "public PrivateAccessVirtualNetwork withResourceId(String resourceId) {\n this.resourceId = resourceId;\n return this;\n }", "private void tryNickname(NicknameEvent nicknameEvent) {\n if(connectionChoice == 1) {\n if(nicknameEvent.isFirstTime()){\n //Usare amazon checkip per rmi, settare la proprietà del sistema\n try {\n remoteReference = (ClientInterfaceRMI) UnicastRemoteObject.exportObject(this, 0);\n } catch (ExportException ignore) {\n //if the object is already exported then do nothing\n } catch (RemoteException e) {\n System.err.println(CONNECTION_ERROR + e.getMessage() + \"!\");\n }\n }\n\n try {\n server.addClient(remoteReference);\n } catch (RemoteException e) {\n System.err.println(CONNECTION_ERROR + e.getMessage() + \"!\");\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n setChanged();\n notifyObservers(new ConnectionEstablishedEvent(false));\n }\n } else {\n try {\n server.notify(nicknameEvent);\n }\n catch (RemoteException e) {\n System.out.println(\"This should never happen!\");\n }\n }\n }", "private void attachNetworkLink(IMachine machine, Link link) {\n INetworkAdapter adapter = machine.getNetworkAdapter((long) (link.getInterfaceOrder() -1));\n adapter.setAdapterType(NetworkAdapterType.I82540EM); // TODO comprobar que sea el \"menos raro\"\n if (link.isEnabled()) {\n adapter.setCableConnected(Boolean.TRUE);\n adapter.setEnabled(Boolean.TRUE);\n }\n\n // Set network type params\n Network network = link.getNetwork();\n switch (network.getType()) { // TODO: ¿evitar switch?\n case EXTERNAL_NATTED:\n adapter.setAttachmentType(NetworkAttachmentType.NAT);\n break;\n case EXTERNAL_BRIDGED:\n adapter.setAttachmentType(NetworkAttachmentType.Bridged);\n adapter.setBridgedInterface(this.vmDriverSpec.getBridgedInterface());\n break;\n case SWITCH:\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n break;\n case HUB: // caso particular de modo interno con modo promiscuo activado por defecto\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n adapter.setPromiscModePolicy(NetworkAdapterPromiscModePolicy.AllowAll); // Activar modo promiscuo\n break;\n }\n\n String interfaceName = \"eth\" + (link.getInterfaceOrder() - 1); // TODO verificar que siempre sera eth_\n if (link.getIpAddress() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/type\", \"static\");\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/address\", link.getIpAddress());\n if (link.getNetMask() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", link.getNetMask());\n } else {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", \"24\");\n }\n if (link.getBroadcast() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/broadcast\", link.getBroadcast());\n }\n }\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void registerConductor(IConductor newConductor)\r\n\t{\r\n\t\tcleanUpConnections();\r\n\t\tthis.electricityNetworks.add(new ElectricityNetwork(newConductor));\r\n\t}", "private void addIntfConfig() {\n Set<Interface> interfaces = Sets.newHashSet();\n\n Set<Interface> vlanOneSet = new HashSet<>();\n\n for (int i = 1; i <= LAST_CONF_DEVICE_INTF_VLAN_IP; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n\n // Interface addresses for IPv4\n Ip4Prefix prefix1 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i - 1) + \".0/24\");\n Ip4Address addr1 = Ip4Address.valueOf(\"10.0.\" + (2 * i - 1) + \".1\");\n Ip4Prefix prefix2 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i) + \".0/24\");\n Ip4Address addr2 = Ip4Address.valueOf(\"10.0.\" + (2 * i) + \".1\");\n InterfaceIpAddress ia1 = new InterfaceIpAddress(addr1, prefix1);\n InterfaceIpAddress ia2 = new InterfaceIpAddress(addr2, prefix2);\n\n // Interface addresses for IPv6\n Ip6Prefix prefix3 = Ip6Prefix.valueOf((2 * i - 1) + \"000::0/64\");\n Ip6Address addr3 = Ip6Address.valueOf((2 * i - 1) + \"000::1\");\n Ip6Prefix prefix4 = Ip6Prefix.valueOf((2 * i) + \"000::0/64\");\n Ip6Address addr4 = Ip6Address.valueOf((2 * i) + \"000::2\");\n InterfaceIpAddress ia3 = new InterfaceIpAddress(addr3, prefix3);\n InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4);\n\n // Setting up interfaces\n Interface intf1 = new Interface(cp, Sets.newHashSet(ia1, ia3),\n MacAddress.valueOf(2 * i - 1),\n VlanId.vlanId((short) 1));\n Interface intf2 = new Interface(cp, Sets.newHashSet(ia2, ia4),\n MacAddress.valueOf(2 * i),\n VlanId.NONE);\n\n interfaces.add(intf1);\n interfaces.add(intf2);\n\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1, intf2)).anyTimes();\n }\n for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n Interface intf1 = new Interface(cp, null,\n MacAddress.NONE,\n VlanId.vlanId((short) 1));\n\n interfaces.add(intf1);\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1)).anyTimes();\n }\n expect(interfaceService.getInterfacesByVlan(VLAN1))\n .andReturn(vlanOneSet).anyTimes();\n expect(interfaceService.getInterfacesByVlan(VLAN10))\n .andReturn(Collections.emptySet()).anyTimes();\n expect(interfaceService.getInterfaces()).andReturn(interfaces).anyTimes();\n\n for (int i = LAST_CONF_DEVICE_INTF_VLAN + 1; i <= NUM_DEVICES; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i),\n P1);\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Collections.emptySet()).anyTimes();\n }\n }", "public void connectInterface(int interfaceNumber, SimEnt link, SimEnt node)\n\t{\n\t\tif(!uniqueAddress(node._id))\n\t\t{\n\t\t\tSystem.out.println(\"IP Address is not unique\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (interfaceNumber<_interfaces && _routingTable[interfaceNumber] == null)\n\t\t{\n\t\t\t_routingTable[interfaceNumber] = new RouteTableEntry(node._id, link);\n\t\t\tSystem.out.println(node.toString() + \" Successfully connected to \" + this.toString());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Trying to connect to port not in router\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t((Link) link).setConnector(this);\n\t}", "public Ethernet() {\n super();\n this.vlanID = VLAN_UNTAGGED;\n }", "@Override\n @POST\n @Path(\"/networks\")\n public Response createNetwork() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }", "@Override\n public boolean isValid(VdsNetworkInterface iface, ConstraintValidatorContext context) {\n NetworkBootProtocol bootProtocol = iface.getBootProtocol();\n String address = iface.getAddress();\n\n if (bootProtocol != null && bootProtocol == StaticIp) {\n if (isNullOrEmpty(address)) {\n context.disableDefaultConstraintViolation();\n context.buildConstraintViolationWithTemplate(\"NETWORK_ADDR_MANDATORY_IN_STATIC_IP\")\n .addNode(\"address\").addConstraintViolation();\n return false;\n }\n }\n\n if (!Config.<String> GetValue(ConfigValues.ManagementNetwork).equals(iface.getNetworkName())\n && !isNullOrEmpty(iface.getGateway())) {\n context.disableDefaultConstraintViolation();\n context.buildConstraintViolationWithTemplate(\"NETWORK_ATTACH_ILLEGAL_GATEWAY\")\n .addNode(\"gateway\").addConstraintViolation();\n return false;\n }\n\n return true;\n }", "private void processAttach(String processIP, int processPort,\n String simulatedIP, short weight) {\n RouterDescription targetRouter = new RouterDescription();\n targetRouter.processIPAddress = processIP;\n targetRouter.processPortNumber = processPort;\n targetRouter.simulatedIPAddress = simulatedIP;\n targetRouter.status = RouterStatus.INIT;\n\n // create a new link and connect to target router\n Link newLink = Link.establishConnection(this, targetRouter);\n this.ports[this.nextAvailPort] = newLink;\n this.connectedPortsThreadPool.submit(newLink::listenForIncomingCommands);\n\n\n // make sure an initial link is created\n LSA currentRouterLSA = this.lsd.getDiscoveredRouter(this.routerDesc.simulatedIPAddress);\n Optional<LinkDescription> targetLinkOpt = currentRouterLSA\n .links\n .stream()\n .filter(x -> x.linkID.equalsIgnoreCase(targetRouter.simulatedIPAddress))\n .findAny();\n if(!targetLinkOpt.isPresent()) {\n LinkDescription newLinkDesc = new LinkDescription();\n newLinkDesc.linkID = targetRouter.simulatedIPAddress;\n newLinkDesc.portNum = this.nextAvailPort;\n newLinkDesc.tosMetrics = weight;\n newLinkDesc.status = RouterStatus.INIT;\n\n currentRouterLSA.links.add(newLinkDesc);\n }\n\n this.nextAvailPort++;\n }", "public RecordObject addSubNetwork(String token, Object record) throws RestResponseException;", "public void bind(Interface i) {\n\t\t_interface = i;\n\t}", "boolean hasHttpLoadBalancing();", "public void initializeNetwork() {\n if (DataHelper.isNull(searchDTO.getNetwork())) {\n //If no Network is set we have to see which network applies for this user\n this.searchDTO.setNetwork(obtainCurrentUserNetwork());\n }\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "protected void addIpAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType_PropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_ipAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType__feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_ipAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType__feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__IP_ADDRESS_TYPE_SOFTWARE_AMAZON_AWSCDK_SERVICES_ELASTICLOADBALANCINGV2_IP_ADDRESS_TYPE_,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "void addAssociation(Association association);", "public interface NetworkInterface {\n\n\t// starting the network on the given port at the localhost\n\tpublic void startNetwork(int port);\n\n\t// stopping the local network\n\tpublic void stopNetwork();\n\t\n\t\n}", "private void turnBeaconOn( byte rollingProxyID[]) {\n\t\t\t\n\t\t\t// rollingProxyID length is well known...\n\t\t\tassert( rollingProxyID.length == Crypto.ROLLING_PROXIMITY_IDENTIFIER_LEN);\n\t\t\t\n\t\t\t// the UUID is MSB\n\t\t\tString beaconUUID = Beacon.proxyToHex( rollingProxyID, true);\n\t\t\tassert( beaconUUID != null && beaconUUID.length() == Beacon.UUID_HEX_LEN);\n\t\t\t\n\t\t\tassert( beaconUUID.length() == UUID_HEX_LEN);\n\t\t\t\n\t\t\t// get the hcitool cmd string(s). see man hcitool\n\t\t\t\n\t\t\t// we need to query the HW to get the TX power. but do this only once...\n\t\t\tint txPower = readHCITxPower();\n\t\t\t\n\t\t\tString hciToolCmds[];\n\t\t\ttry {\n\t\t\t\thciToolCmds = getHCIToolCmds( this.beacon.getAppType(), rollingProxyID, txPower, this.beacon.useRandomAddr());\n\t\t\t} catch (Exception e1) {\n\t\t\t\tlogger.severe( e1.getMessage());\n\t\t\t\te1.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\t// \"BEACON_UUID=\" + beaconUUID,\n\t\t\t\t\t\"SET_ADV_PARAMS_CMD=\" + hciToolCmds[0],\n\t\t\t\t\t\"SET_ADV_DATA_CMD=\" + hciToolCmds[1],\n\t\t\t\t\t\"SET_ADV_ENABLE_CMD=\" + hciToolCmds[2]\n\t\t\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/beacon_start\";\n\t\t\t\n\t\t\t// we seem to be getting some unsolicited events...\n\t\t\tboolean status = runScript( cmd, envVars, this.beacon, null);\n\t\t\n\t\t}" ]
[ "0.48808724", "0.48753268", "0.48263222", "0.46644863", "0.46563327", "0.46422583", "0.46122593", "0.45419636", "0.45028847", "0.44644126", "0.44566223", "0.44356802", "0.43851888", "0.43667892", "0.43623972", "0.43508345", "0.43301678", "0.4313267", "0.42923093", "0.42856798", "0.42786765", "0.42764238", "0.42684853", "0.42410097", "0.42348567", "0.4229214", "0.42229557", "0.4221741", "0.42160532", "0.4199425", "0.41912678", "0.41885182", "0.41866302", "0.41814068", "0.4171495", "0.41674796", "0.41576445", "0.4154452", "0.41482785", "0.41468164", "0.4134629", "0.41326258", "0.41326258", "0.41137594", "0.41015407", "0.41006964", "0.40997458", "0.40983364", "0.40867847", "0.40819076", "0.4078427", "0.40768945", "0.40768945", "0.40753666", "0.40753666", "0.40629143", "0.4044836", "0.40397665", "0.4032354", "0.40296388", "0.40248102", "0.40234873", "0.4020457", "0.40164584", "0.40162915", "0.40140638", "0.4009384", "0.4008186", "0.40042454", "0.40029037", "0.39996177", "0.39986548", "0.3992747", "0.3990752", "0.39871746", "0.39855355", "0.39827368", "0.398204", "0.39761412", "0.39730382", "0.39683932", "0.39654332", "0.39629453", "0.39629453", "0.39607486", "0.39601806", "0.39528096", "0.39520845", "0.39480007", "0.3944873", "0.39398968", "0.3935383", "0.39351618", "0.39243016", "0.3917561", "0.39165348", "0.39154518", "0.39118016", "0.39103988", "0.39097401" ]
0.6636744
0
Removes the association of a NIC with a load balancer.
public void unassignNicFromLoadBalancer(String dataCenterId, String loadBalancerId, String nicId) throws RestClientException, IOException { client.delete(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/").concat("loadbalancers").concat("/").concat(loadBalancerId).concat("/"). concat("balancednics").concat("/").concat(nicId), 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public void removeNetwork(long id) throws ApplicationException {\n \n if (!containsId(id)) {\n return;\n }\n\n long [] newIds = new long[networkIds.length-1];\n\n int j=0;\n for (int i=0; i<networkIds.length; i++) {\n if (networkIds[i] != id) {\n newIds[j] = networkIds[i];\n j++;\n }\n }\n \n networkIds = newIds;\n reverseMap = null;\n }", "public void deregisterIPAddress(Inet4Address address) {\n\t\tusedAddresses.remove(address);\n\t}", "@Override\n\tpublic void removeBan(String ip) throws Exception {\n\n\t}", "void removeDevice(int networkAddress);", "public void removeTrafficControl(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TRAFFICCONTROL$0, i);\r\n }\r\n }", "public void unsetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IBAN$6, 0);\n }\n }", "public synchronized void removeNetworkListener(INetworkListener pNet) {\r\n\t\tlistener.remove(pNet);\r\n\t}", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionNetwork();", "public void removeReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener) {\r\n reachabilityListeners.remove(reachabilityListener);\r\n }", "public void removeSegment(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SEGMENT$2, i);\n }\n }", "public void removeLastAssociation()\n\t{\n\t\tfinal Association a = associations.elementAt(associations.size()-1);\n\t\ta.B.assCount--;\n\t\ta.A.assCount--;\n\t\tassociations.remove(associations.size()-1);\n\t\tuser_responses--;\n\t}", "public void removeNetwork(int index) {\n netwList.get(index).delete();\n // remove it from the list\n netwList.remove(index);\n notifyItemRemoved(index);\n }", "void removeListener( AvailabilityListener listener );", "@ZAttr(id=562)\n public void removeVirtualIPAddress(String zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"-\" + Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void unassociate(Node targetNode, QName associationTypeQName);", "public void remNetworkCopy(String serverId){\n synchronized (networkCopiesLock){\n if(this.networkCopies.contains(serverId))\n this.networkCopies.remove(serverId);\n }\n }", "public void removeAssociation(String handle) {\n\n Connection connection = IdentityDatabaseUtil.getDBConnection();\n PreparedStatement prepStmt = null;\n\n try {\n\n if (isAssociationExist(connection, handle)) {\n prepStmt = connection.prepareStatement(OpenIDSQLQueries.REMOVE_ASSOCIATION);\n prepStmt.setString(1, handle);\n prepStmt.execute();\n connection.commit();\n if(log.isDebugEnabled()) {\n log.debug(\"Association \" + handle + \" successfully removed from the database\");\n }\n } else {\n if(log.isDebugEnabled()) {\n log.debug(\"Association \" + handle + \" does not exist in the database\");\n }\n }\n\n } catch (SQLException e) {\n log.error(\"Failed to remove the association \" + handle, e);\n } finally {\n IdentityDatabaseUtil.closeStatement(prepStmt);\n IdentityDatabaseUtil.closeConnection(connection);\n }\n }", "public synchronized void removeListener(IIpcEventListener listener) {\n\t\tlisteners.remove(listener);\n\t}", "void removeBridgeElement(int i);", "void removeListener(RosZeroconfListener listener);", "public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }", "public void removeConnectionListener(ConnectionListener listener);", "void removeRelation(IViewRelation relation);", "public ConnectionListener remove(String listenerID);", "void removeConstraintRelation(IViewRelation relation);", "boolean removeAssociation(AssociationEnd association);", "public void removeAgent(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(AGENT$0, i);\r\n }\r\n }", "public void unbindService(ServiceConnection connection);", "public void removeDeviceServiceLink();", "public void removeModule(IPModule module);", "public void removeServer(Identity identity);", "protected static void removeNetwork(Company company, Company network) {\n removeNetworkHelper(company, network);\n removeNetworkHelper(network, company);\n }", "public boolean removeNicCard(String vmuuid, String networkName) throws HyperVException;", "public void removeForeignkey(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FOREIGNKEY$4, i);\r\n }\r\n }", "public void removeAgent(String layer, Agent a)\n/* 175: */ {\n/* 176:247 */ this.mapPanel.removeAgent(layer, a);\n/* 177: */ }", "public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }", "public void removeFeeAccrBVOItem(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FEEACCRBVOITEM$2, i);\n }\n }", "@ZAttr(id=562)\n public Map<String,Object> removeVirtualIPAddress(String zimbraVirtualIPAddress, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"-\" + Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n return attrs;\n }", "public boolean disassociateAddress(EC2DisassociateAddress request) {\n try {\n List<CloudStackIpAddress> cloudIps = getApi().listPublicIpAddresses(null, null, null, null, null, request.getPublicIp(), null, null, null);\n if (cloudIps == null)\n throw new Exception(\"Specified ipAddress doesn't exist\");\n CloudStackIpAddress cloudIp = cloudIps.get(0);\n\n CloudStackInfoResponse resp = getApi().disableStaticNat(cloudIp.getId());\n if (resp != null) {\n return resp.getSuccess();\n }\n } catch (Exception e) {\n logger.error(\"EC2 DisassociateAddress - \", e);\n handleException(e);\n }\n return false;\n }", "@Override\n public void releasePermit() {\n balancer.release();\n }", "void removeLanes(int i);", "public void removeContract() {\n this.contract = null;\n }", "public void unsetIpAddressValue() throws JNCException {\n delete(\"ip-address\");\n }", "@ZAttr(id=659)\n public void removeACE(String zimbraACE) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"-\" + Provisioning.A_zimbraACE, zimbraACE);\n getProvisioning().modifyAttrs(this, attrs);\n }", "synchronized static void remove(Socket socket) \n {\n\t linkedList.remove(socket);\n }", "private void undeployRegion(Connection conn, ServerName sn,\n HRegionInfo hri) throws IOException, InterruptedException {\n try {\n HBaseFsckRepair.closeRegionSilentlyAndWait((HConnection) conn, sn, hri);\n if (!hri.isMetaTable()) {\n admin.offline(hri.getRegionName());\n }\n } catch (IOException ioe) {\n LOG.warn(\"Got exception when attempting to offline region \"\n + Bytes.toString(hri.getRegionName()), ioe);\n }\n }", "public void unsetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMADDRESS$6, 0);\n }\n }", "@ZAttr(id=562)\n public void unsetVirtualIPAddress() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "public Builder clearLoadBalancer() {\n if (loadBalancerBuilder_ == null) {\n if (stepInfoCase_ == 16) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 16) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n loadBalancerBuilder_.clear();\n }\n return this;\n }", "public void deleteNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException {\n client.delete(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(\"/\").concat(nicId), 202);\n }", "public void sendUnbindRequest(Pdu packet);", "void removeListener(@Nonnull final ServletRequestAttributeListenerInfo info)\n {\n final ServletRequestAttributeListener service = this.requestAttributeListeners\n .remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "@DELETE\n @Path(\"{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response deleteNetwork(@PathParam(\"id\") String id) {\n log.trace(String.format(MESSAGE, \"DELETE \" + id));\n\n if (!haService.isActive()\n && !DEFAULT_ACTIVE_IP_ADDRESS.equals(haService.getActiveIp())) {\n return syncDelete(haService, NETWORKS, id);\n }\n\n adminService.removeNetwork(id);\n return noContent().build();\n }", "public void removeConnection(Connection connection) {\n for (Object i : connections.keySet().toArray()) {\n if (connections.get(i).equals(connection)){\n connections.remove(i);\n }\n }\n }", "synchronized void remove(SocketIoSocket socket) {\n mSockets.remove(socket.getId());\n }", "private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}", "public void removeIndicatorRef(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INDICATORREF$0, i);\n }\n }", "void removeListener( ConfigurationListener listener );", "public void unsetEthnicGroupCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ETHNICGROUPCODE$20, 0);\n }\n }", "public void testRemoveAddress_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.removeAddress(address.getId(), false);\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }", "public void removeFromConference(Call call);", "public void unsetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(INTERSECTINGROADWAYREF$20);\r\n }\r\n }", "public void deductNetwork(Character ch)\n\t{\n\t\tif(characterAdded.indexOf(ch) != -1)\n\t\t{\n\t\t\tcharacterAdded.get( net_num - 1 ).net_index = ch.net_index;\n\t\t\tcharacterAdded.set(ch.net_index, characterAdded.get( net_num - 1 ) );\n\t\t\tch.net_index = -1;\n\t\t\tcharacterAdded.remove(net_num-1);\n\t\t\tnet_num--;\n\t\t}\n\t}", "public void removeCollidable(Collidable c) {\r\n this.collidObj.remove(c);\r\n }", "public void removeBootStrapNode() throws RemoteException{\n\t\tnodeIp=null;\n\t\thasNeighbours = false;\n\t\n\t}", "@Override\n\tpublic void removeBanIPForum(String ip, String forumId) throws Exception {\n\n\t}", "private void unbind() {\n ThreadUtil.checkOnMainThread();\n Iterator<Map.Entry<ComponentName, InCallServiceConnection>> iterator =\n mServiceConnections.entrySet().iterator();\n while (iterator.hasNext()) {\n Log.i(this, \"Unbinding from InCallService %s\");\n mContext.unbindService(iterator.next().getValue());\n iterator.remove();\n }\n mInCallServices.clear();\n }", "protected void removeListenerFrom(BioResource bioResource) {\n\t\t\tbioResource.removeListener(this);\n\t\t\tjava.util.List childList = bioResource.getChildrenWithoutLoading();\n\t\t\tif (childList==null) return;\n\t\t\tfor (Iterator iterator = childList.iterator(); iterator.hasNext();) {\n\t\t\t\tBioResource aResource = (BioResource) iterator.next();\n\t\t\t\tremoveListenerFrom(aResource);\n\t\t\t}\n\t\t}", "public void unassociate(Node otherNode, QName associationTypeQName, Directionality directionality);", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public int removeInterface(String id);", "public abstract void removeUI(BaseConfigInstance pPCI);", "public void removeWire(IPWire pres);", "public void delete(Long id) {\n log.debug(\"Request to delete EmailBalancer : {}\", id);\n emailBalancerRepository.deleteById(id);\n emailBalancerSearchRepository.deleteById(id);\n }", "public void delIncomingRelations();", "protected void removeNode (int seq, int neighbourIndex)\n {\n Node currentNode = adjacencySequences[seq];\n Node previousNode = null;\n while (currentNode != null && currentNode.neighbourIndex != neighbourIndex)\n {\n previousNode = currentNode;\n currentNode = currentNode.nextNode;\n }\n\n if (currentNode != null)\n {\n if (previousNode != null)\n previousNode.nextNode = currentNode.nextNode;\n else\n adjacencySequences[seq] = currentNode.nextNode;\n }\n }", "public void testdeassociate_AssociationException1()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n try {\r\n address.setId(address.getId() + 1);\r\n this.dao.deassociate(address, 1, false);\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.dao.removeAddress(address.getId() - 1, false);\r\n }\r\n }", "public void removeBr(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BR$6, i);\n }\n }", "public void removeNeighbour(final Vertex neighbour){\n\t\tif(getNeighbours().contains(neighbour))\n\t\t\tgetNeighbours().remove(neighbour);\n\t}", "void remove(String label) throws IOException;", "void removeAdvert(String aid);", "public void removeProxyConfig(ProxyConfig config);", "public static void removeATEListener(ATEListener listener) {\r\n\t\tlisteners.remove(listener);\r\n\t}", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public void removeNeuron(int index){\n for (Connection con:neurons.get(index).getUpStream()) {\n con.getFromNeuron().removeDownStream(con);\n }\n for (Connection con:neurons.get(index).getDownStream()) {\n con.getToNeuron().removeUpStream(con);\n }\n neurons.remove(index);\n }", "public void removeCollidable(Collidable c) {\r\n environment.removeCollidable(c);\r\n }", "public void removeCollidable(Collidable c) {\r\n this.collidables.remove(c);\r\n }", "@Test\n\tpublic void testRemoveLinkWithInverse() {\n\t\tAddress adr = new Address();\n\t\tadr.getType().setIdGenerator(new IdGeneratorNumeric());\n\t\tAssert.assertEquals(1, ((IdNumeric) adr.getId()).getNumber());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tadr.addInhabitant(martin);\n\t\tadr.addInhabitant(jojo);\n\n\t\tadr.removeInhabitant(jojo);\n\n\t\tAssert.assertEquals(1, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// removing last link via remove link produces\n\t\t// an empty collection but no null value\n\t\tadr.removeInhabitant(martin);\n\n\t\tAssert.assertEquals(0, adr.getInhabitants().size());\n\t\tAssert.assertNull(jojo.getAddress());\n\t\tAssert.assertNull(martin.getAddress());\n\t}", "public void deletelink(Integer linkId);", "synchronized void removeConnected(SocketIoSocket socket) {\n mConnectedSockets.remove(socket.getId());\n }", "void removeAdvisor(int index) throws AopConfigException;", "void removeListener(@Nonnull final ServletContextAttributeListenerInfo info)\n {\n final ServletContextAttributeListener service = this.contextAttributeListeners\n .remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "public void removeConnectionListener(ConnectionConfig config, ConnectionListener listener) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .removeListener(listener);\n }", "public void markIpAddressDelete() throws JNCException {\n markLeafDelete(\"ipAddress\");\n }", "public void deregisterConnection(String ID);", "public void removeProfile(Profile profile) {\n\t\tif (this.getProfiles().contains(profile)) {\n\t\t\tthis.getProfiles().remove(profile);\n\t\t\tprofile.setSystem(null);\n\t\t}\n\t}" ]
[ "0.579853", "0.5433913", "0.5272463", "0.5159038", "0.51513666", "0.5117464", "0.51155764", "0.5110782", "0.5036123", "0.50255954", "0.5011185", "0.4995332", "0.49915415", "0.49877992", "0.4937311", "0.49332213", "0.4895137", "0.48675364", "0.4858141", "0.48311666", "0.48165435", "0.48119825", "0.48054698", "0.47717428", "0.47714734", "0.47658288", "0.4754432", "0.47488165", "0.4715187", "0.4702407", "0.47021648", "0.46973377", "0.468835", "0.4687647", "0.46728045", "0.4671848", "0.46704042", "0.46679386", "0.46667722", "0.46645564", "0.46614215", "0.46585977", "0.46571842", "0.4650538", "0.46503803", "0.4632738", "0.46318945", "0.46086234", "0.46067306", "0.45946267", "0.45875144", "0.4577177", "0.45764855", "0.4569907", "0.4569099", "0.45682573", "0.45654526", "0.45643997", "0.45605808", "0.455892", "0.45581314", "0.45570213", "0.45502537", "0.45442683", "0.4544041", "0.45415837", "0.45412838", "0.45372745", "0.45360407", "0.45321795", "0.45306405", "0.45306405", "0.45306405", "0.45278516", "0.452108", "0.45203474", "0.45202193", "0.45160288", "0.4506187", "0.45039618", "0.45027077", "0.44998008", "0.44944966", "0.4492351", "0.44878575", "0.4484383", "0.44765496", "0.44765496", "0.4474282", "0.44742757", "0.44739658", "0.4472285", "0.4470388", "0.4457364", "0.44549894", "0.4449007", "0.4447654", "0.44462797", "0.4441901", "0.444082" ]
0.68839854
0
This will retrieve a list of NICs associated with the load balancer.
public Nics getAllBalancedNics(String dataCenterId, String loadBalancerId) throws RestClientException, IOException { return client.get(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/").concat("loadbalancers").concat("/").concat(loadBalancerId).concat("/"). concat("balancednics").concat(depth), null, Nics.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "Collection<NetworkInterface> getAllNetworkInterfaces();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "java.util.List<? extends com.google.cloud.compute.v1.NetworkInterfaceOrBuilder>\n getNetworkInterfacesOrBuilderList();", "public List<NetworkInterface> networkInterfaces() {\n return this.networkInterfaces;\n }", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "public com.profitbricks.rest.domain.Nic getBalancedNic(String dataCenterId, String loadBalancerId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\").concat(\"loadbalancers\").concat(\"/\").concat(loadBalancerId).concat(\"/\").\n concat(\"balancednics\").concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<NetworkList, Network> listNetwork();", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "int getNetworkInterfacesCount();", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "private Object[] getNetInterfaces(final HostBrowser hostBrowser) {\n final List<Object> list = new ArrayList<Object>();\n \n list.add(null);\n final Enumeration e = hostBrowser.getNetInterfacesNode().children();\n \n while (e.hasMoreElements()) {\n final Info i =\n (Info) ((DefaultMutableTreeNode) e.nextElement()).getUserObject();\n list.add(i);\n }\n return list.toArray(new Object[list.size()]);\n }", "public static Stream<NetworkInterface> getNetworkInterfacesAsStream() throws Exception {\n return Collections.list(NetworkInterface.getNetworkInterfaces()).stream();\n }", "public JsonArray getNetworkInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6network\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\t\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "public java.util.List<Network> getNetworksList() {\n return networks_;\n }", "@Override\n @GET\n @Path(\"/networks\")\n @Produces(\"application/json\")\n public Response getNetworks() {\n String json = String.format(\"Provider %d cluster %d networks.\", provider.getProviderId(), cluster.getClusterId());\n return Response.ok(json).build();\n }", "public com.profitbricks.rest.domain.Nic getNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "public static List<String> getAvailableInterfaces() {\r\n List<String> result;\r\n Enumeration<NetworkInterface> interfaces = null;\r\n\r\n try {\r\n interfaces = NetworkInterface.getNetworkInterfaces();\r\n } catch (SocketException e) {\r\n System.errorLogging(e);\r\n }\r\n\r\n if (interfaces == null)\r\n return Collections.emptyList();\r\n\r\n result = new ArrayList<>();\r\n\r\n while (interfaces.hasMoreElements()) {\r\n NetworkInterface iface = interfaces.nextElement();\r\n if (isIfaceConnected(iface)) {\r\n result.add(iface.getName());\r\n }\r\n }\r\n\r\n return result;\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<NetworkList, Network> listNetwork(\n @QueryMap ListNetwork queryParameters);", "@Nullable\r\n List<Network> getNetwork();", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public String[] getIntefaceNetwork() {\n\t\treturn null;\n\t}", "public java.util.List<Network> getNetworksList() {\n if (networksBuilder_ == null) {\n return java.util.Collections.unmodifiableList(networks_);\n } else {\n return networksBuilder_.getMessageList();\n }\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "List<IInboundAdapter> getInboundAdapterList();", "NetworkInterface getNetworkInterface(int id);", "public ArrayList<Network> getMyNetworks() {\n\t\treturn myNetworks;\n\t}", "public List<NetworkNode> listNetworkNode();", "public Nics getAllNics(String dataCenterId, String serverId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(depth), null, Nics.class);\n }", "public Network getNetworks(int index) {\n return networks_.get(index);\n }", "public List<Subnet> selectSubnet() {\n\n\t\tList<Subnet> customers = new ArrayList<Subnet>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from subnet\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tSubnet customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new Subnet();\n\t\t\t\tcustomer.setVpc_name(resultSet.getString(1));\n\t\t\t\tcustomer.setSubnet_name(resultSet.getString(2));\n\t\t\t\tcustomer.setCidr(resultSet.getString(3));\n\t\t\t\tcustomer.setAcl(resultSet.getString(4));\n\t\t\t\tcustomer.setSubnetId(resultSet.getString(5));\n\t\t\t\tcustomer.setVpcId(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "public java.util.List<Network.Builder> getNetworksBuilderList() {\n return getNetworksFieldBuilder().getBuilderList();\n }", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }", "public List<FirewallInbounds> selectFirewallInbounds() {\n\n\t\tList<FirewallInbounds> customers = new ArrayList<FirewallInbounds>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from firewall_inbounds\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tFirewallInbounds customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new FirewallInbounds();\n\n\t\t\t\tcustomer.setIn_type(resultSet.getString(1));\n\t\t\t\tcustomer.setIn_protocol(resultSet.getString(2));\n\t\t\t\tcustomer.setIn_portrange(resultSet.getString(3));\n\t\t\t\tcustomer.setIn_source(resultSet.getString(4));\n\t\t\t\tcustomer.setIn_ip(resultSet.getString(5));\n\t\t\t\tcustomer.setIn_ip(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "@MetadataValueMatcher(metadataValue=20)\n\tpublic List<String> getIsbns() {\n\t\treturn isbns;\n\t}", "public List<DnsARdata> getIpAddresses() {\n return ipAddresses;\n }", "public Collection<INetwork> getNetworks(IProcess process) {\n\t\treturn null;\n\t}", "public static List<Network> loadNetworks() throws Exception {\n final File dataFile = new File(kNetworkPath);\n final File[] networkFiles = dataFile.listFiles();\n List<Network> networks = new ArrayList<Network>();\n\n for (File file : networkFiles) {\n try {\n networks.add((Network)loadObject(file));\n } catch (Exception e) {\n System.err.println(\"Could not load \" + file.getName());\n }\n }\n return networks;\n }", "@Test(timeout = 10000L)\n public void testGetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testGetLoadBalancerInformation(client);\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public static Set<IpAddress> getSubnetIps(String cidr) {\n SubnetUtils utils = new SubnetUtils(cidr);\n utils.setInclusiveHostCount(false);\n SubnetUtils.SubnetInfo info = utils.getInfo();\n Set<String> allAddresses =\n new HashSet<>(Arrays.asList(info.getAllAddresses()));\n\n if (allAddresses.size() > 2) {\n allAddresses.remove(info.getLowAddress());\n allAddresses.remove(info.getHighAddress());\n }\n\n return allAddresses.stream()\n .map(IpAddress::valueOf).collect(Collectors.toSet());\n }", "NetworkCapabilities getNetworkCapabilities() {\n int size;\n NetworkCapabilities result = new NetworkCapabilities();\n boolean z = false;\n result.addTransportType(0);\n ArrayList<String> apnTypes = new ArrayList();\n for (ApnContext apnContext : this.mApnContexts.keySet()) {\n apnTypes.add(apnContext.getApnType());\n }\n boolean isBipNetwork = (this.mConnectionParams == null || this.mConnectionParams.mApnContext == null || this.mDct == null || !this.mDct.isBipApnType(this.mConnectionParams.mApnContext.getApnType())) ? false : true;\n if (this.mApnSetting != null) {\n ArrayList<ApnSetting> securedDunApns = this.mDct.fetchDunApns();\n String[] types = this.mApnSetting.types;\n if (enableCompatibleSimilarApnSettings()) {\n types = getCompatibleSimilarApnSettingsTypes(this.mApnSetting, this.mDct.getAllApnList());\n }\n int length = types.length;\n int i = 0;\n while (i < length) {\n String type = types[i];\n boolean shouldDropMeterApn = (this.mRestrictedNetworkOverride || this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || !ApnSetting.isMeteredApnType(type, this.mPhone)) ? z : true;\n if (!shouldDropMeterApn) {\n int hashCode = type.hashCode();\n switch (hashCode) {\n case 3023943:\n if (type.equals(\"bip0\")) {\n hashCode = 10;\n break;\n }\n case 3023944:\n if (type.equals(\"bip1\")) {\n hashCode = 11;\n break;\n }\n case 3023945:\n if (type.equals(\"bip2\")) {\n hashCode = 12;\n break;\n }\n case 3023946:\n if (type.equals(\"bip3\")) {\n hashCode = 13;\n break;\n }\n case 3023947:\n if (type.equals(\"bip4\")) {\n hashCode = 14;\n break;\n }\n case 3023948:\n if (type.equals(\"bip5\")) {\n hashCode = 15;\n break;\n }\n case 3023949:\n if (type.equals(\"bip6\")) {\n hashCode = 16;\n break;\n }\n default:\n switch (hashCode) {\n case -1490587420:\n if (type.equals(\"internaldefault\")) {\n hashCode = 18;\n break;\n }\n case 42:\n if (type.equals(CharacterSets.MIMENAME_ANY_CHARSET)) {\n hashCode = 0;\n break;\n }\n case 3352:\n if (type.equals(\"ia\")) {\n hashCode = 8;\n break;\n }\n case 98292:\n if (type.equals(\"cbs\")) {\n hashCode = 7;\n break;\n }\n case 99837:\n if (type.equals(\"dun\")) {\n hashCode = 4;\n break;\n }\n case 104399:\n if (type.equals(\"ims\")) {\n hashCode = 6;\n break;\n }\n case 108243:\n if (type.equals(\"mms\")) {\n hashCode = 2;\n break;\n }\n case 3149046:\n if (type.equals(\"fota\")) {\n hashCode = 5;\n break;\n }\n case 3541982:\n if (type.equals(\"supl\")) {\n hashCode = 3;\n break;\n }\n case 3673178:\n if (type.equals(\"xcap\")) {\n hashCode = 17;\n break;\n }\n case 1544803905:\n if (type.equals(\"default\")) {\n hashCode = 1;\n break;\n }\n case 1629013393:\n if (type.equals(\"emergency\")) {\n hashCode = 9;\n break;\n }\n }\n hashCode = -1;\n break;\n }\n switch (hashCode) {\n case 0:\n result.addCapability(12);\n result.addCapability(0);\n if (DcTracker.CT_SUPL_FEATURE_ENABLE && !apnTypes.contains(\"supl\") && this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n } else {\n result.addCapability(1);\n }\n result.addCapability(3);\n result.addCapability(4);\n result.addCapability(5);\n result.addCapability(7);\n size = securedDunApns.size();\n for (hashCode = 0; hashCode < size; hashCode++) {\n if (this.mApnSetting.equals(securedDunApns.get(hashCode))) {\n result.addCapability(2);\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n }\n }\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n case 1:\n result.addCapability(12);\n break;\n case 2:\n result.addCapability(0);\n break;\n case 3:\n if (!DcTracker.CT_SUPL_FEATURE_ENABLE || apnTypes.contains(\"supl\") || !this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n result.addCapability(1);\n break;\n }\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n break;\n break;\n case 4:\n result.addCapability(2);\n break;\n case 5:\n result.addCapability(3);\n break;\n case 6:\n result.addCapability(4);\n break;\n case 7:\n result.addCapability(5);\n break;\n case 8:\n result.addCapability(7);\n break;\n case 9:\n result.addCapability(10);\n break;\n case 10:\n result.addCapability(23);\n break;\n case 11:\n result.addCapability(24);\n break;\n case 12:\n result.addCapability(25);\n break;\n case 13:\n result.addCapability(26);\n break;\n case 14:\n result.addCapability(27);\n break;\n case 15:\n result.addCapability(28);\n break;\n case 16:\n result.addCapability(29);\n break;\n case 17:\n result.addCapability(9);\n break;\n case 18:\n result.addCapability(30);\n break;\n default:\n break;\n }\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Dropped the metered \");\n stringBuilder.append(type);\n stringBuilder.append(\" for the unmetered data call.\");\n log(stringBuilder.toString());\n i++;\n z = false;\n }\n if ((this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || this.mRestrictedNetworkOverride) && this.mApnSetting.isMetered(this.mPhone)) {\n result.removeCapability(11);\n } else {\n result.addCapability(11);\n }\n z = this.mHwCustDataConnection != null && this.mHwCustDataConnection.isNeedReMakeCapability();\n if (z) {\n result = this.mHwCustDataConnection.getNetworkCapabilities(types, result, this.mApnSetting, this.mDct);\n }\n if (!isBipNetwork) {\n result.maybeMarkCapabilitiesRestricted();\n }\n }\n boolean z2 = this.mRestrictedNetworkOverride && !isBipNetwork;\n if (z2) {\n result.removeCapability(13);\n result.removeCapability(2);\n }\n int up = 14;\n int down = 14;\n size = this.mRilRat;\n if (size != 19) {\n switch (size) {\n case 1:\n up = 80;\n down = 80;\n break;\n case 2:\n up = 59;\n down = 236;\n break;\n case 3:\n up = 384;\n down = 384;\n break;\n case 4:\n case 5:\n up = 14;\n down = 14;\n break;\n case 6:\n up = 100;\n down = 100;\n break;\n case 7:\n up = 153;\n down = 2457;\n break;\n case 8:\n up = 1843;\n down = 3174;\n break;\n case 9:\n up = 2048;\n down = 14336;\n break;\n case 10:\n up = 5898;\n down = 14336;\n break;\n case 11:\n up = 5898;\n down = 14336;\n break;\n case 12:\n up = 1843;\n down = 5017;\n break;\n case 13:\n up = 153;\n down = 2516;\n break;\n case 14:\n up = 51200;\n down = 102400;\n break;\n case 15:\n up = 11264;\n down = 43008;\n break;\n }\n }\n up = 51200;\n down = 102400;\n result.setLinkUpstreamBandwidthKbps(up);\n result.setLinkDownstreamBandwidthKbps(down);\n result.setNetworkSpecifier(new StringNetworkSpecifier(Integer.toString(this.mPhone.getSubId())));\n result.setCapability(18, this.mPhone.getServiceState().getDataRoaming() ^ 1);\n result.addCapability(20);\n if ((this.mSubscriptionOverride & 1) != 0) {\n result.addCapability(11);\n }\n if ((this.mSubscriptionOverride & 2) != 0) {\n result.removeCapability(20);\n }\n return result;\n }", "Set<Interface> getInterfacesByIp(IpAddress ip);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/ingresses\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<IngressList, Ingress> listIngress();", "public NetworkInstance[] getServers();", "List<NetworkInterfaceTapConfiguration> networkInterfaceTapConfigurations();", "@GetMapping(path = \"/images\", produces = \"application/json; charset=UTF-8\")\n public @ResponseBody ArrayNode getImageList() {\n final ArrayNode nodes = mapper.createArrayNode();\n for (final Image image : imageRepository.findAllPublic())\n try {\n nodes.add(mapper.readTree(image.toString()));\n } catch (final JsonProcessingException e) {\n e.printStackTrace();\n }\n return nodes;\n }", "private CloudStackNetwork getNetworksWithSecurityGroupEnabled(String zoneId) throws Exception {\n List<CloudStackNetwork> networks = getApi().listNetworks(null, null, null, null, null, null, null, null, null, zoneId);\n List<CloudStackNetwork> netWithSecGroup = new ArrayList<CloudStackNetwork>();\n for (CloudStackNetwork network : networks) {\n if (!network.getNetworkOfferingAvailability().equalsIgnoreCase(\"unavailable\") && network.getSecurityGroupEnabled())\n netWithSecGroup.add(network);\n }\n // we'll take the first one\n return netWithSecGroup.get(0);\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n return networks_;\n }", "String[] getInternalNetworkPrefix();", "public int getNetworksCount() {\n return networks_.size();\n }", "private String[] getNetworkInformation(Context context)\n {\n String[] output = new String[4];\n\n WifiManager wifiMgr = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiMgr.getConnectionInfo();\n int ip = wifiInfo.getIpAddress();\n String ipAddress = Formatter.formatIpAddress(ip);\n output[0] = ipAddress;\n // Get DNS Server\n final DhcpInfo dhcp = wifiMgr.getDhcpInfo();\n output[1] = Formatter.formatIpAddress(dhcp.netmask);\n output[2] = Formatter.formatIpAddress(dhcp.gateway);\n output[3] = Formatter.formatIpAddress(dhcp.dns1);\n return output;\n }", "public static String[] getNetworkList() {\n final File dataFile = new File(kNetworkPath);\n final File[] networkFiles = dataFile.listFiles();\n String[] networkNames = new String[networkFiles.length];\n\n for (int i = 0; i < networkNames.length; ++i) {\n networkNames[i] = networkFiles[i].getName();\n }\n\n return networkNames;\n }", "@Transactional(readOnly = true)\n public Page<EmailBalancerDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all EmailBalancers\");\n return emailBalancerRepository.findAll(pageable)\n .map(emailBalancerMapper::toDto);\n }", "public List<String> getBaseDNs()\n {\n return baseDNs;\n }", "java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();", "com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing();", "public String getCidr() {\n return cidr;\n }", "NetworkInterface getNetworkInterfaceByAddress(InterfaceAddress interfaceAddress);", "@Override\n\tpublic String listarClientes() throws MalformedURLException, RemoteException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \tString lista = datos.listaClientes();\n \treturn lista;\n \t\n\t}", "@JsonProperty(\"ipmiNicArray\")\r\n public List<IpmiNicArray> getIpmiNicArray() {\r\n return ipmiNicArray;\r\n }", "public void getNetworkIPs(String subRed)\n {\n //ArrayList<String> disponibles = new ArrayList<String>();\n //InetAddress servidor = null;\n for (int i = 1; i < 255; i++) \n {\n final int j = i;\n new Thread(() -> {\n try {\n String ser = subRed + \".\" + j;\n //System.out.println(\"Entre en el servidor: \" + ser);\n InetAddress servidor = InetAddress.getByName(subRed + \".\" + j);\n if(servidor.isReachable(2000))\n {\n //System.out.println(\"PPPPADDDDAAAAAAAAAAA\");\n if(this.isReachable(ser, 9020))\n {\n System.out.println(\"Disponible: \" + ser);\n this.conectados.add(servidor);\n } \n }\n else\n System.out.println(\"No disponible \" + ser);\n } catch (IOException e) \n {\n System.out.println(\"Error buscando ips\");\n }\n \n }).start(); \n }\n \n //return disponibles;\n }", "@SneakyThrows\r\n @GetMapping(\"/biometrics/readers\")\r\n public List<Reader> getReaders() {\r\n ResponseEntity<List<Reader>> response = restTemplate.exchange(\r\n RequestEntity.get(new URI(PROXY_URL + \"/readers\"))\r\n .header(\"Content-Type\", \"application/json\").build(),\r\n new ParameterizedTypeReference<List<Reader>>() {\r\n });\r\n return response.getBody();\r\n }", "public NetworkOrBuilder getNetworksOrBuilder(int index) {\n return networks_.get(index);\n }", "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "public Network getNetworks(int index) {\n if (networksBuilder_ == null) {\n return networks_.get(index);\n } else {\n return networksBuilder_.getMessage(index);\n }\n }", "Collection<TcpIpConnection> getConnections();", "public yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesResponse list(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListMethod(), getCallOptions(), request);\n }", "List<storage_server_connections> getAllForLun(String lunId);", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "public String [] getIpList() {\n return this.IpList;\n }", "@RequestMapping(\"/resources_nocb\")\n public ResponseEntity<List<Resource>> request_nocb() {\n IService1 service1 = Feign.builder()\n .decoder(new JacksonDecoder())\n .target(IService1.class, \"http://\"+service1host+\":\"+service1port);\n\n // Fetch and print a list of the contributors to this library.\n List<Resource> resources = service1.resources_nocb();\n\n return new ResponseEntity<List<Resource>>(resources, HttpStatus.OK);\n }", "@GetMapping(path = \"nic/{nic}\")\n public ResponseEntity<List<Contractor>> findAllByNic(@PathVariable String nic){\n logger.debug(\"findAllByNic(\" + nic + \")\");\n\t\tAssert.notNull(nic, \"Expects a valid nic\");\n\n List<Contractor> contractors = contractorService.findAllByNic(nic);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }", "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public List<String> getPrivateDnsNames() {\n return getInstances(Running).stream().map(Instance::getPrivateDnsName).collect(Collectors.toList());\n }", "Set<Interface> getMatchingInterfaces(IpAddress ip);", "public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n if (networksBuilder_ != null) {\n return networksBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(networks_);\n }\n }", "ArrayList<Ability> getAbilities() throws RemoteException;", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByIp()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=ip\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public int[] getInterfaces() {\n return interfaces;\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();", "public Collection<Integer> getNeighbours(int i) {\n\t\n\tLinkable lble=(Linkable)Network.node[i].getProtocol(protocolID);\n\tArrayList<Integer> al = new ArrayList<Integer>(lble.degree());\n\tif( Network.node[i].isUp() )\n\t{\t\n\t\tfor(int j=0; j<lble.degree(); ++j)\n\t\t{\n\t\t\tfinal Node n = lble.getNeighbor(j);\n\t\t\t// if accessible, we include it\n\t\t\tif(n.isUp()) al.add(Integer.valueOf(n.getIndex()));\n\t\t}\n\t}\n\treturn Collections.unmodifiableList(al);\n}", "public AssetAttributes withNetworkInterfaces(java.util.Collection<NetworkInterface> networkInterfaces) {\n setNetworkInterfaces(networkInterfaces);\n return this;\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenter()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n VLANNetwork vlan2 = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan2.getConfiguration(), vlan2);\n\n IPAddress ip2 =\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP2 =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan2.getConfiguration().getMask()));\n\n persistIP(ip2, lastIP2, vdc, vlan2);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "protected static Map<Integer, Bnet> loadBnetMap(UriAdapter adapter, xURI store, String prefixName) {\n\t\t\n\t\tList<xURI> uriList = BnetCFAbstract.getUriList(store, BNET_FILEEXT, prefixName, false);\n\t\t\n\t\tMap<Integer, Bnet> bnetMap = Util.newMap();\n\t\tfor(xURI uri : uriList) {\n\t\t\tString name = uri.getLastName();\n\t\t\tString snum = name.substring(name.lastIndexOf(TextParserUtil.CONNECT_SEP) + 1, name.lastIndexOf(\".\"));\n\t\t\tint id = Integer.parseInt(snum);\n\t\t\t\n\t\t\tBnet bnet = BnetUtil.loadBnet(adapter, uri);\n\t\t\tif (bnet != null)\n\t\t\t\tbnetMap.put(id, bnet);\n\t\t}\n\n\t\treturn bnetMap;\n\t}", "String getInterfaces();", "Class<?>[] getProxiedInterfaces();", "Optional<List<ConnectionResponse>> retrieveConnections();", "@Override\n\tpublic Iterable<Banner> getBanners() {\n\t\tBooleanOperation expression = (BooleanOperation)QBanner.banner.isDeleted.eq(false);\n\t\treturn bannerRepository.findAll(expression);\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Network> readNetwork(\n @Path(\"name\") String name);", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<AzureFirewallFqdnTag> list() {\n return this.serviceClient.listAsync();\n }" ]
[ "0.69040143", "0.6853467", "0.6329145", "0.6184388", "0.6015394", "0.60061496", "0.58710307", "0.5786434", "0.56542337", "0.5606346", "0.55525285", "0.54836106", "0.5381298", "0.53482366", "0.53236765", "0.5309303", "0.50952977", "0.50865775", "0.50119483", "0.4995332", "0.49863264", "0.49493966", "0.49068514", "0.48575616", "0.48575616", "0.4817103", "0.48124588", "0.48115304", "0.48031422", "0.47515157", "0.47289327", "0.47273976", "0.47262254", "0.47215834", "0.47195113", "0.47174257", "0.47152853", "0.4700023", "0.46640593", "0.46474355", "0.4638735", "0.46117243", "0.45859182", "0.45715123", "0.45479318", "0.4519111", "0.45041078", "0.45023647", "0.4493609", "0.44848573", "0.44824436", "0.44644576", "0.44610307", "0.4452538", "0.44513014", "0.4425764", "0.44007072", "0.43943974", "0.4391072", "0.4374563", "0.43740368", "0.43563375", "0.4356149", "0.43523803", "0.4346918", "0.43409663", "0.4337607", "0.43207902", "0.43176395", "0.43101504", "0.4301012", "0.42995167", "0.4298031", "0.42950088", "0.4291996", "0.4287681", "0.42840278", "0.42802268", "0.42769867", "0.42743838", "0.42486283", "0.42475256", "0.42438182", "0.42378217", "0.4232239", "0.4230563", "0.4228644", "0.4228368", "0.42276704", "0.42153853", "0.42131", "0.42126462", "0.42119396", "0.4203242", "0.41986072", "0.41972378", "0.41926885", "0.41845492", "0.41808665", "0.41701922" ]
0.59334075
6
Retrieves the attributes of a given load balanced NIC.
public com.profitbricks.rest.domain.Nic getBalancedNic(String dataCenterId, String loadBalancerId, String serverId, String nicId) throws RestClientException, IOException { return client.get(getUrlBase().concat("datacenters").concat("/").concat(dataCenterId).concat("/").concat("loadbalancers").concat("/").concat(loadBalancerId).concat("/"). concat("balancednics").concat("/").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IAttributes getAttributes();", "Map<String, IAttribute> getConnectedAttributes();", "@GET\r\n\t@Path(\"/imageattribs\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ImageAttribute getAttribute() {\r\n\t\tString directoryPath = ROOT_PATH_ON_MAC + \"/\" + AuxiliaryHelper.loadServerProperties().getProperty(\"image.folder\") + \"/\" ;\r\n\t\tFile folder = new File(directoryPath);\r\n\t\tFile[] files = folder.listFiles();\r\n\t\tString name = \"\";\r\n\t\tlong space = 0l;\r\n\t\tif(files.length > 0) {\r\n\t\t\tname = files[0].getName();\r\n\t\t\tspace = files[0].getTotalSpace();\r\n\t\t}\r\n\t\tImageAttribute imageAttribute = new ImageAttribute();\r\n\t\timageAttribute.setName(name);\r\n\t\timageAttribute.setSize(space);\r\n\t\treturn imageAttribute;\r\n\r\n\t}", "Attributes getAttributes();", "private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }", "Map<String, String> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "com.google.protobuf.ByteString getAttributeBytes();", "public Map<String, String> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public abstract Map<String, Object> getAttributes();", "Map<String, Object> getAttributes(String path) throws IOException;", "public ConnectionAttributes getAttributes() {\n \treturn new ConnectionAttributes(strDbName , strUser, strPasswd, strCharSet, iLoginTimeout);\n }", "Object getAttribute(int attribute);", "public void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "Collection<NetworkInterface> getAllNetworkInterfaces();", "com.google.cloud.compute.v1.NetworkInterface getNetworkInterfaces(int index);", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n return attributes_.get(index);\n }", "java.lang.String getAttribute();", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public Map<String, Object> getAttrs();", "public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request);\n }", "public final EObject ruleGetAttribute() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token this_BEGIN_1=null;\n Token this_END_3=null;\n EObject lv_attribute_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:6442:2: ( (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END ) )\n // InternalRMParser.g:6443:2: (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END )\n {\n // InternalRMParser.g:6443:2: (otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END )\n // InternalRMParser.g:6444:3: otherlv_0= Get_attribute this_BEGIN_1= RULE_BEGIN ( (lv_attribute_2_0= ruleGetAttributeBody ) ) this_END_3= RULE_END\n {\n otherlv_0=(Token)match(input,Get_attribute,FOLLOW_6); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getGetAttributeAccess().getGet_attributeKeyword_0());\n \t\t\n this_BEGIN_1=(Token)match(input,RULE_BEGIN,FOLLOW_69); \n\n \t\t\tnewLeafNode(this_BEGIN_1, grammarAccess.getGetAttributeAccess().getBEGINTerminalRuleCall_1());\n \t\t\n // InternalRMParser.g:6452:3: ( (lv_attribute_2_0= ruleGetAttributeBody ) )\n // InternalRMParser.g:6453:4: (lv_attribute_2_0= ruleGetAttributeBody )\n {\n // InternalRMParser.g:6453:4: (lv_attribute_2_0= ruleGetAttributeBody )\n // InternalRMParser.g:6454:5: lv_attribute_2_0= ruleGetAttributeBody\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getGetAttributeAccess().getAttributeGetAttributeBodyParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_8);\n lv_attribute_2_0=ruleGetAttributeBody();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getGetAttributeRule());\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\"attribute\",\n \t\t\t\t\t\tlv_attribute_2_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.GetAttributeBody\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n this_END_3=(Token)match(input,RULE_END,FOLLOW_2); \n\n \t\t\tnewLeafNode(this_END_3, grammarAccess.getGetAttributeAccess().getENDTerminalRuleCall_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "ArrayList getAttributes();", "String getAttribute();", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "@GetMapping(\"/ci-types/{ci-type-id}/attributes/{attribute-id}\")\n @ResponseBody\n public JsonResponse getCiTypeAttribute(@PathVariable(value = \"ci-type-id\") int ciTypeId, @PathVariable(value = \"attribute-id\") int attributeId) {\n //return okayWithData(cmdbServiceV2Stub.getCiTypeAttribute(attributeId));\n return error(\"This API will be discarded as never used.\");\n }", "Attribute getAttribute();", "LabNetworkProfile networkProfile();", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "@Override\n public int[] getAttributeIndexToRead()\n {\n java.util.ArrayList<Integer> attributes = new java.util.ArrayList<Integer>();\n //LN is static and read only once.\n if (LogicalName == null || LogicalName.compareTo(\"\") == 0)\n {\n attributes.add(1);\n }\n //ScalerUnit\n if (!isRead(3))\n {\n attributes.add(3);\n }\n //Value\n if (canRead(2))\n {\n attributes.add(2);\n } \n return toIntArray(attributes);\n }", "public abstract Map getAttributes();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public java.util.Collection getAttributes();", "com.google.cloud.compute.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index);", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttributeOrBuilder getAttributesOrBuilder(\n int index) {\n return attributes_.get(index);\n }", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "java.util.List<com.google.cloud.compute.v1.NetworkInterface> getNetworkInterfacesList();", "public HashMap<String, String> GetRawAttributes();", "java.lang.String getAttributesOrThrow(java.lang.String key);", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "private void readAttributes() throws IOException, ClassFormatException {\n final int attributes_count = dataInputStream.readUnsignedShort();\n attributes = new Attribute[attributes_count];\n for (int i = 0; i < attributes_count; i++) {\n attributes[i] = Attribute.readAttribute(dataInputStream, constant_pool);\n }\n }", "@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "NetworkInterface getNetworkInterface(int id);", "public List<TLAttribute> getAttributes();", "public VolumeiSCSIAttributes getVolumeiSCSIAttributes() {\n return this.volumeiSCSIAttributes;\n }", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "HashMap getMasterAttributes(String userNo, String gcif) throws BaseException;", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "@SuppressLint(\"MissingPermission\")\n private NetworkInfo getActiveNetworkInfo(){\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n return connectivityManager == null ? null : connectivityManager.getActiveNetworkInfo();\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n getGuestAttributes(com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request);\n }", "public Attributes getAttributes() { return this.attributes; }", "@GetMapping(\"/getAttributeList\")\n public String getAttributeList(String uid)\n {\n String returnVal;\n if()\n {\n returnVal = \"Attributes: \"\n for()\n {\n returnVal += \"\";\n }\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "public Enumeration getAttributes() {\n\t\treturn url.getAttributes();\n }", "public Collection<HbAttributeInternal> attributes();", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "public com.profitbricks.rest.domain.Nic getNic(String dataCenterId, String serverId, String nicId) throws RestClientException, IOException {\n return client.get(getUrlBase().concat(\"datacenters\").concat(\"/\").concat(dataCenterId).concat(\"/\")\n .concat(parentResource).concat(\"/\").concat(serverId).concat(\"/\")\n .concat(resource).concat(\"/\").concat(nicId).concat(depth), null, com.profitbricks.rest.domain.Nic.class);\n }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public Map getAttributes() {\n Map common = channel.getAttributes();\n \n if(map == null) {\n map = new HashMap(common);\n }\n return map;\n }", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public lnrpc.Rpc.NetworkInfo getNetworkInfo(lnrpc.Rpc.NetworkInfoRequest request) {\n return blockingUnaryCall(\n getChannel(), getGetNetworkInfoMethod(), getCallOptions(), request);\n }", "public String getAttr() {\n return attr;\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "java.lang.String getBssid();", "Map<String, String> getAttr(NodeKey key);", "default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }", "List<ObjectAttribute> getObjectAttributes(int otId) throws AccessDeniedException;", "public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n if (attributesBuilder_ == null) {\n return attributes_.get(index);\n } else {\n return attributesBuilder_.getMessage(index);\n }\n }", "public String getAttribute() {\n return attribute;\n }", "public NetworkProfile networkProfile() {\n return this.networkProfile;\n }", "public int getAttribute() {\n return Attribute;\n }", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "public String getAttr10() {\n return attr10;\n }", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "@GET\n @Path(\"/info/\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"查询网络最新信息\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"success\", response = NetworkInfoDto.class)\n })\n public RpcClientResult getNetworkInfo() {\n NetworkInfoDto info = new NetworkInfoDto(NulsContext.getInstance().getBestBlock().getHeader().getHeight(),\n NulsContext.getInstance().getNetBestBlockHeight(), TimeService.getNetTimeOffset());\n\n Collection<Node> collections = networkService.getAvailableNodes();\n int inCount = 0;\n int outCount = 0;\n for (Node node : collections) {\n if (node.getType() == Node.IN) {\n inCount++;\n } else {\n outCount++;\n }\n }\n\n info.setInCount(inCount);\n info.setOutCount(outCount);\n info.setMastUpGrade(NulsContext.mastUpGrade);\n Result result = Result.getSuccess();\n result.setData(info);\n return result.toRpcClientResult();\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public Object getAttribute(Object key);", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public int getImbalance() {\n return this.imbalance;\n }", "public UserDetails getUserDetails(String NIC) {\n UserDetails ud = new UserDetails();\n try {\n con = (Connection) DriverManager.getConnection(url, this.usernamel, this.passwordl);\n String query = \"SELECT * FROM user WHERE NIC =?\";\n pst = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(query);\n pst.setString(1, NIC);\n rs = pst.executeQuery();\n while (rs.next()) {\n ud.setEmpID(rs.getInt(1));\n ud.setEmployeeType(rs.getString(2));\n ud.setName(rs.getString(3));\n ud.setAddress(rs.getString(4));\n ud.setMobile(rs.getInt(5));\n ud.setNic(rs.getString(6));\n ud.setUsername(rs.getString(7));\n }\n return ud;\n\n } catch (Exception e) {\n //System.out.println(e);\n return null;\n }\n\n }" ]
[ "0.6102586", "0.58991647", "0.579341", "0.5682768", "0.56803924", "0.55964255", "0.5595187", "0.5595187", "0.5595187", "0.5557663", "0.54234624", "0.5391285", "0.5391285", "0.5383824", "0.52900505", "0.5274679", "0.52569884", "0.52543515", "0.5239318", "0.51774484", "0.5173464", "0.51631874", "0.51622653", "0.51568913", "0.5143459", "0.51202947", "0.5115955", "0.51044196", "0.5103859", "0.5099986", "0.50992095", "0.50785804", "0.5072316", "0.5064305", "0.50500655", "0.50482243", "0.504381", "0.5043118", "0.503611", "0.503491", "0.5029127", "0.5024899", "0.50234365", "0.50102746", "0.49949452", "0.49864775", "0.49853417", "0.49815452", "0.49782708", "0.4971546", "0.4962602", "0.4958005", "0.49561366", "0.49523205", "0.4948379", "0.49474597", "0.49404028", "0.49339387", "0.49337506", "0.492513", "0.49153593", "0.49018496", "0.49018496", "0.49003693", "0.48971125", "0.4895103", "0.4889167", "0.4885299", "0.486331", "0.486326", "0.48626733", "0.48613423", "0.4859639", "0.4848581", "0.48418", "0.48257658", "0.48254997", "0.48199984", "0.48179716", "0.48178703", "0.4815815", "0.48088163", "0.48012224", "0.47976974", "0.47902438", "0.47824425", "0.47817108", "0.47779498", "0.47734866", "0.47724763", "0.47721484", "0.47721484", "0.47720286", "0.47662413", "0.47646838", "0.47469127", "0.47469127", "0.47469127", "0.47431803", "0.47382498" ]
0.5603019
5
TODO Autogenerated method stub
public Employee getEmployeeDetailById(int id) { return dao.getEmployeeDetailById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public List<Employee> getAllEmployeeDetail() { return dao.getAllEmployeeDetail(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public boolean createEmployeeInfo(Employee employee) { return dao.createEmployeeInfo(employee); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public boolean deleteEmployeeDetail(int id) { return dao.deleteEmployeeDetail(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public boolean updateEmployeeDetail(Employee employee) { return dao.updateEmployeeDetail(employee); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
name of the lane Deprecated Constructor
public Lane() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lightning() {\n super(\"Death Lightning\", 2);\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "@java.lang.Deprecated\n public A withNewKind(java.lang.String arg0);", "@Override\n\tpublic String getName() {\n\t\treturn \"new\";\n\t}", "public Lesson(String name)\r\n { this.name = name;\r\n layer = 1; \r\n }", "@Deprecated\n String getName();", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "private Help() {\n // hidden constructor\n }", "private TMCourse() {\n\t}", "default boolean isDeprecated() {\n return false;\n }", "@Deprecated\n public CoolParser(java_cup.runtime.Scanner s) {super(s);}", "public MnjCutlyrcntrlOffstandardLImpl() {\n }", "public String getName() {\n\t\treturn \"Laser\";\n\t}", "public lo() {}", "@Deprecated\n/* */ public FlowerPot(int type) {\n/* 25 */ super(type);\n/* */ }", "public Villager(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public String getName()\r\n\t{\r\n\t\treturn \"LS\";\r\n\t}", "public Parrot(String name) {\r\n\t\tsuper(name);\r\n\t}", "protected Gate( String n ) {\n name = n;\n }", "private UsineJoueur() {}", "@Deprecated\n/* */ public Step(Material type, byte data) {\n/* 45 */ super(type, data);\n/* */ }", "public TeamD() {\n super.name = \"Delta\";\n super.section = 7;\n }", "public InfoLiveTollsStepDefinition() {\n\t\tsuper();\n\t}", "public Limelight(String name) {\n tableName = name;\n }", "public LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN() {}", "Reproducible newInstance();", "public f206(String name) {\n super(name);\n }", "public GeneratorLover(String name) {\n super(name);\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "private void __sep__Constructors__() {}", "private NameUtil() {\n }", "public CyanSus() {\n\n }", "String getDeprecated();", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public PerfIDEValidation(String name) {\n super(name);\n }", "@java.lang.Deprecated\n public A withNewKind(java.lang.String arg0) {\n return (A)withKind(new String(arg0));\n }", "@Deprecated\r\n\tpublic User(String playerName) {\r\n\t\tsuper(Main.plugin, playerName);\r\n\r\n\t}", "protected Gate( String name, float delay ) {\n\tthis.name = name;\n\tthis.delay = delay;\n }", "public Lio(int id,String name,String last_name){\n // run time\n super();\n this.id = id;\n this.name = name;\n this.last_name = last_name;\n\n }", "private Lights(int port)\n\t{\n super(port);\n System.out.println(this.getClass().getName() + \": Started Constructing\");\n System.out.println(this.getClass().getName() + \": Finished Constructing\");\n }", "public Label() {\n\t\tthis(\"L\");\n\t}", "public OpDesc() {\n\n }", "@Deprecated\n public MaterialView()\n {\n\n }", "public LLabel() {\n this(\"\");\n }", "public LoaderInfo( ) { \n\t\tsuper( null );\n\t}", "@Deprecated\r\n\tpublic NewCipher(String key)\r\n\t{\r\n\t\tthis(key.getBytes());\r\n\t}", "public OldToolInfo(String key, Class clazz)\n {\n super(key, clazz);\n }", "private Ognl() {\n }", "private Road()\n\t{\n\t\t\n\t}", "public VirtualLibraryButler(String name) {\n\tproperties = new HashMap<String, String>();\n\tproperties.put(\"name\", name);\n\tinitialized = false;\n\torg.encog.util.logging.Logging.stopConsoleLogging();\n }", "@Deprecated\n/* */ public Wool(Material type, byte data) {\n/* 33 */ super(type, data);\n/* */ }", "public LabyrinthComputerPlayer2(String name) {\n // invoke superclass constructor\n super(name);\n }", "@java.lang.Deprecated\n public A withNewType(java.lang.String arg0);", "public LVInfo() {\r\n }", "public LogKitLogger(String name)\n/* */ {\n/* 64 */ this.name = name;\n/* 65 */ this.logger = getLogger();\n/* */ }", "public PropertySpecBuilder<T> deprecatedName(String deprecatedName)\n {\n Preconditions.checkArgument(this.deprecatedName == null, \"deprecatedName already set\");\n this.deprecatedShortName = deprecatedName;\n this.deprecatedName = prefix + deprecatedName;\n\n return this;\n }", "private TbusRoadGraph() {}", "private Rekenhulp()\n\t{\n\t}", "public ThirdFrameSecondPreviousFrameStrikeState(Lane lane) {\n super(lane);\n }", "private Ognl(){\n }", "@java.lang.Deprecated\n public A withNewRule(java.lang.String original);", "@Deprecated\n\tpublic static Table<String, String, String> make(final String name_) {\n\t\treturn builder(name_).build();\n\t}", "@Deprecated\n public Parser(java_cup.runtime.Scanner s) {super(s);}", "@Deprecated\n public Parser(java_cup.runtime.Scanner s) {super(s);}", "public tuna_Ep17(String name){ \t// Constructor added in Episode 17\r\n\t\tgirlName = name;\r\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public LightParameter()\r\n\t{\r\n\t}", "private MethodType(String name) {\n super(name);\n }", "@Deprecated\n public CsvSchemaLine() {\n super();\n }", "public Lanceur() {\n\t}", "public ColorClass( String name) {\n this(name, false);\n }", "public Bazooka() throws IllegalNameException {\r\n\t}", "Seasons(String name) {\n System.out.println(\"Called constructor\");\n this.name = name;\n }", "public java.lang.String shortName () { throw new RuntimeException(); }", "public StandardDTEDNameTranslator() {}", "private Direction(String s){\n\t\tname = s;\n\t}", "private AnalysisMethodEnum(String name) {\n\t\tthis.methodName = name;\n\t}", "@java.lang.Deprecated\n public A withNewNote(java.lang.String arg0);", "private DarthSidious(){\n }", "public LegacyResultMapper() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.hardware.camera2.legacy.LegacyResultMapper.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.<init>():void\");\n }", "private Panino(String name) {\n this.name = name;\n }", "protected Span() {/* intentionally empty block */}", "public MovieManager(GenesisGetters genesisGetters)\r\n/* 151: */ {\r\n/* 152:150 */ setName(\"Video manager\");\r\n/* 153:151 */ this.gauntlet = genesisGetters;\r\n/* 154: */ }", "void DefaultConstructor(){}", "protected raVersionInfo() {\n }", "Flight() {}", "public Vertex(String argName) {\n name = argName;\n }", "public Circuit(String s) {\r\n name = s;\r\n }", "private CLUtil()\n {\n }", "public SecName(FrillLoc loc) {\n MyLocation = loc;\n NameFont = new FontFinder(FontList.FONT_LABEL);\n }", "public Fleet(String name) {\r\n this.name = name;\r\n boats = new ArrayList<Boat>();\r\n }", "public LimelightVision() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n SmartDashboard.putNumber(\"Kp_Limelight\", -0.03);\n SmartDashboard.putNumber(\"min_command_limelight\", 0.01);\n isDone = false;\n }", "@java.lang.Deprecated\n public A withNewAction(java.lang.String arg0);", "@java.lang.Deprecated\n public A withNewTopologyKey(java.lang.String original);", "public String getOperation() {\n if(isConstructor()) {\n return \"new\";\n }\n return getName();\n }", "public Name() {\n\n }", "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }" ]
[ "0.58503133", "0.5786354", "0.5776928", "0.57717943", "0.57654417", "0.57375485", "0.57347494", "0.5727774", "0.5677712", "0.5646076", "0.5606195", "0.5590316", "0.5561346", "0.5553355", "0.5535905", "0.5533446", "0.55185187", "0.55062354", "0.55027914", "0.549507", "0.5490069", "0.54559225", "0.5446977", "0.54310715", "0.5429692", "0.5427", "0.54218894", "0.5418078", "0.54088396", "0.5406855", "0.5371602", "0.53649765", "0.5362069", "0.5361055", "0.53588617", "0.53550637", "0.5351412", "0.5344235", "0.5342507", "0.5329291", "0.53200626", "0.5315907", "0.53155583", "0.53027946", "0.5298398", "0.5297386", "0.52853334", "0.52818835", "0.52811176", "0.5278664", "0.52754396", "0.52733773", "0.526794", "0.52666897", "0.5264739", "0.52643937", "0.52629566", "0.5257791", "0.5254601", "0.52539456", "0.5250128", "0.52476186", "0.5232174", "0.5230851", "0.52274156", "0.52255696", "0.52255696", "0.5223832", "0.5221749", "0.52100635", "0.5203186", "0.51884747", "0.5187382", "0.5184832", "0.51758325", "0.5175557", "0.51724315", "0.5168494", "0.51677585", "0.5165752", "0.5161775", "0.5160627", "0.5159296", "0.5158607", "0.51518905", "0.51509404", "0.5150544", "0.51495796", "0.5148186", "0.514779", "0.5146636", "0.51454353", "0.5140891", "0.513948", "0.5129856", "0.51202804", "0.5118755", "0.51179945", "0.5114621", "0.51114476" ]
0.5267766
53
Create a lane which name is the same as its id
public Lane(String id) { m_id = id; m_name = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerLane(Lane lane) {\r\n lanes.add(lane);\r\n }", "org.landxml.schema.landXML11.LanesDocument.Lanes addNewLanes();", "public void setLane(int l) {\r\n\t\tlane = l;\r\n\t}", "void createLabelToken( String name, int id );", "void nodeCreate( long id );", "void create(Team team);", "WithCreate withLabPlanId(String labPlanId);", "public void addSportmatchView(String name, int id) {\n LayoutInflater inflater = LayoutInflater.from(getContext());\n View inflatedLayout = inflater.inflate(R.layout.sportsnew, null);\n TextView sportsName = inflatedLayout.findViewById(R.id.sportsName);\n sportsName.setText(name);\n spoetsLayoyView.addView(inflatedLayout);\n\n }", "@Override\n protected void createLocationCLI() {\n /*The rooms in the hallway01 location are created---------------------*/\n \n /*Hallway-------------------------------------------------------------*/\n Room hallway = new Room(\"Hallway 01\", \"This hallway connects the Personal, Laser and Net\");\n super.addRoom(hallway);\n }", "public PlanoSaude create(long plano_id);", "private final void createAndAddNode(String name) {\n\t}", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "public Train createTrain(String id, String number, int time, Train copiedTrain) {\r\n // create new train with the same data\r\n Train train = copiedTrain.getTrainDiagram().createTrain(id);\r\n train.setNumber(number);\r\n train.setType(copiedTrain.getType());\r\n train.setDescription(copiedTrain.getDescription());\r\n train.setTopSpeed(copiedTrain.getTopSpeed());\r\n train.setAttributes(new Attributes(copiedTrain.getAttributes()));\r\n\r\n // create copy of time intervals\r\n for (TimeInterval copiedInterval : copiedTrain.getTimeIntervalList()) {\r\n TimeInterval interval = new TimeInterval(IdGenerator.getInstance().getId(), copiedInterval);\r\n // redirect to a new train\r\n interval.setTrain(train);\r\n\r\n // add interval\r\n train.addInterval(interval);\r\n }\r\n\r\n // move to new time\r\n train.move(time);\r\n\r\n return train;\r\n }", "public void createPile(int id, String name) {\n\t\tif (mTable.get(id) != null) {\n\t\t\treturn; // There was already a pile there\n\t\t}\n\t\t// Check that the name is unique and that it\n\t\tif (pileNames.contains(name)) {\n\t\t\treturn;\n\t\t} else if (name.equals(\"Pile \" + pileNo)) {\n \t\t\tpileNo++;\n \t\t\tgs.setDefaultPileNo(pileNo);\n \t\t}\n\t\t// Make a new Pile object and set() it in the list\n \t\tmTable.set(id, new Pile(name));\n \t\tpileNames.add(name);\n \t\tsendUpdatedState();\n \t}", "public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}", "org.landxml.schema.landXML11.LanesDocument.Lanes insertNewLanes(int i);", "public String getLane() {\r\n\t\treturn lane;\r\n\t}", "org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();", "public void createNewId(String id)\n { \n IDNode node=new IDNode(id);\n idReferences.put(id,node);\n }", "void create(SportActivity activity);", "public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}", "public void addDownLane(Lane lane) {\r\n\t\tif (null == downLanes)\r\n\t\t\tdownLanes = new ArrayList<Lane>();\r\n\t\tdownLanes.add(lane);\r\n\t}", "@Override\n\tpublic void add(Plane p) {\n\t\tString query = \"INSERT INTO fleet(model,planeid)\" + \"VALUES ('\" + p.getName() + \"',\" + p.getPlaneID() + \")\";\n\t\tDBManager.getInstance().addToDB(query);\n\t}", "public Road(String name) {\n this.name = name;\n this.points = new ArrayList<>();\n }", "@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CREATED)\n public LobbyTeam createTeamAndEnter(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"league\") LobbyLeagueEnum league)\n throws TeamFullException, TeamNotFoundException {\n log.info(\"user {} creates team\", user.getIdentity());\n LobbyTeam team = lobbyService.createTeam(user.getProfileId(), league);\n return lobbyService.enterIntoTeam(user.getProfileId(), team.getId().toString());\n }", "public void createHallway(int len) {\n createRoom(len, 0, 0);\n }", "public Fleet(String name) {\r\n this.name = name;\r\n boats = new ArrayList<Boat>();\r\n }", "public void createStudent(String name, String ID){}", "boolean addNode(long idNum, String label);", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "public Train createTrain(String id, String name, TrainType trainType, int topSpeed, Route route, int time, TrainDiagram diagram, int defaultStop) {\r\n Train train = diagram.createTrain(id);\r\n train.setNumber(name);\r\n train.setType(trainType);\r\n train.setTopSpeed(topSpeed);\r\n\r\n List<Pair<RouteSegment, Integer>> data = this.createDataForRoute(route);\r\n this.adjustSpeedsAndStops(data, train, topSpeed, defaultStop);\r\n\r\n int i = 0;\r\n TimeInterval interval;\r\n Node lastNode = null;\r\n\r\n for (Pair<RouteSegment, Integer> pair : data) {\r\n if (pair.first instanceof Node) {\r\n // handle node\r\n Node node = (Node)pair.first;\r\n interval = node.createTimeInterval(\r\n IdGenerator.getInstance().getId(),\r\n train, time, pair.second);\r\n lastNode = node;\r\n } else {\r\n // handle line\r\n Line line = (Line)pair.first;\r\n TimeIntervalDirection direction =\r\n (line.getFrom() == lastNode) ?\r\n TimeIntervalDirection.FORWARD :\r\n TimeIntervalDirection.BACKWARD;\r\n interval = line.createTimeInterval(\r\n IdGenerator.getInstance().getId(),\r\n train, time,\r\n direction, pair.second,\r\n this.computeFromSpeed(pair, data, i),\r\n this.computeToSpeed(pair, data, i));\r\n }\r\n\r\n // add created interval to train and set current time\r\n time = interval.getEnd();\r\n train.addInterval(interval);\r\n\r\n i++;\r\n }\r\n\r\n return train;\r\n }", "Team createTeam();", "public int createNewStaff(String name, String branch) {\n clickOnBtn(ActionsEnum.Create.name());\n fillCreateOrEditForm(name, branch);\n clickOnBtn(ActionsEnum.Save.name());\n waitForElementInvisibility(xpathBtn.replace(\"*btn*\", ActionsEnum.Save.name()));\n int id = getMaxId();\n logger.info(\"# Newly Created Staff's Id: \" + id);\n return id;\n }", "public int createNewStaff(String name, int branchId) {\n clickOnBtn(ActionsEnum.Create.name());\n fillCreateOrEditForm(name, branchId);\n clickOnBtn(ActionsEnum.Save.name());\n waitForElementInvisibility(xpathBtn.replace(\"*btn*\", ActionsEnum.Save.name()));\n int id = getMaxId();\n logger.info(\"# Newly Created Staff's Id: \" + id);\n return id;\n }", "@Override\n\tpublic Trunk create(final List<NameValuePair> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "public void addUpLane(Lane lane) {\r\n\t\tif (null == upLanes)\r\n\t\t\tupLanes = new ArrayList<Lane>();\r\n\t\tupLanes.add(lane);\r\n\t}", "@Then(\"^I can create a route called \\\"([^\\\"]*)\\\"$\")\n public void iCanCreateARouteCalled(String routeName) throws Throwable {\n createStopPoint(sp1Name);\n createStopPoint2();\n createRoute(routeName);\n }", "void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);", "Long addRoute(Route route);", "public static void resetLaneIDGenerator() {\r\n \tlaneCount = 0;\r\n }", "protected void setLane(int x)\n {\n lane = x;\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Slot createSlot();", "@Override\n\tpublic void saveLane(Lane theLane) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\tcurrentSession.saveOrUpdate(theLane);\n\t}", "Replica.DefinitionStages.Blank define(String name);", "Strobo createStrobo();", "@Override\n\tpublic ESFInstructsShootingDirector create(\n\t\tlong esfInstructsShootingDirectorId) {\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector = new ESFInstructsShootingDirectorImpl();\n\n\t\tesfInstructsShootingDirector.setNew(true);\n\t\tesfInstructsShootingDirector.setPrimaryKey(esfInstructsShootingDirectorId);\n\n\t\treturn esfInstructsShootingDirector;\n\t}", "java.lang.String getSpawnpointId();", "private int createAndAddLobby(int maxPlayers, String lobbyName, int trackID){\n\n\t\tDebugOutputHandler.printDebug(\"A new Lobby has been created\");\n\t\tLobby newLobby = new Lobby(++lobbyIdCounter, maxPlayers, lobbyName, trackID, this);\n\t\tif(lobbyMap.get(lobbyIdCounter) == null){\n\t\t\tlobbyMap.put(lobbyIdCounter, newLobby);\n\t\t\treturn lobbyIdCounter;\n\t\t}else{\n\t\t\treturn -1;\n\t\t}\n\t}", "public static HdfsCloudlet cloneCloudletAssignNewId(HdfsCloudlet cl, int newId){\n\n long cloudletLength = cl.getCloudletLength();\n int pesNumber = cl.getNumberOfPes();\n long cloudletFileSize = cl.getCloudletFileSize();\n long cloudletOutputSize = cl.getCloudletOutputSize();\n // TODO: per ora re-instanzio tutto come utilization model full, dovrei controllare che utilization model usa il cloudlet originale, ma uso solo full for now\n UtilizationModel utilizationModelCpu = new UtilizationModelFull();\n UtilizationModel utilizationModelRam = new UtilizationModelFull();\n UtilizationModel utilizationModelBw = new UtilizationModelFull();\n List<String> fileList = cl.getRequiredFiles();\n int blockSize = cl.getBlockSize();\n\n HdfsCloudlet newCl = new HdfsCloudlet(newId, cloudletLength, pesNumber, cloudletFileSize, cloudletOutputSize,\n utilizationModelCpu, utilizationModelRam, utilizationModelBw, fileList, blockSize);\n\n // set the user Id, because it's not part of the constructor\n int userId = cl.getUserId();\n newCl.setUserId(userId);\n\n // set the destination vms ids\n newCl.setDestVmIds(cl.getDestVmIds());\n\n return newCl;\n }", "public Stop(int id, String name, double latitude, double longitude) {\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tthis.latitude = latitude;\n\t\tthis.longitude = longitude;\n\t\taddStop(this);\n\t}", "private void createRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Name the new routine:\",\n \"Create new\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n Routine r = new Routine(s);\n collection.add(r);\n listModel.addElement(r);\n list.setSelectedValue(r, true);\n new WorkoutsFrame(r);\n }\n }", "public void newTeam(Team team);", "public RunStmnt(String name) {\r\n\t\tsuper();\r\n\t\tsetName(new Name(name));\r\n\t}", "public com.Hotel.model.Hotel create(long hotelId);", "@Test\n public void testAddNewLane_success() throws Exception {\n Context targetContext = InstrumentationRegistry.getInstrumentation()\n .getTargetContext();\n\n\n Intent intent = new Intent(targetContext, CustomerActivity.class);\n intent.putExtra(LoginActivity.EXTRA_USER_ID, db.getCustomerByEmail(\"a\").getCustomerID());\n mActivityRule.launchActivity(intent);\n\n onView(withId(R.id.buttonRequestLane)).perform(click());\n\n onView(withId(R.id.playersNumBox)).perform(typeText(\"1\"));\n onView(withId(R.id.playersNumBox)).perform(closeSoftKeyboard());\n onView(withId(R.id.player_submit_button)).perform(click());\n\n\n\n onView(withId(R.id.qr_scanner_button)).perform(click());\n\n onView(withId(R.id.customer_lanes_text_view)).check(matches(withText(containsString(\"1\"))));\n\n }", "@Override\n\tpublic Trunk create(final Map<String, String> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "public NetworkNode(String id, String title, String label, String name, String type, String participant) {\n super();\n this.id = id;\n this.title = title;\n this.label = label;\n this.name = name;\n this.group = type;\n this.type = type;\n this.participant = participant;\n }", "public static com.services.model.BusRoute create(long brId) {\n\t\treturn getPersistence().create(brId);\n\t}", "public static Line CreateLine(String id) { return new MyLine(id); }", "org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();", "public int getLane() {\r\n\t\treturn lane;\r\n\t}", "public Elevator(final int id) {\n this.id = id;\n }", "public void createInstance(String className, String instanceName)\r\n\t{\r\n\t\t\r\n\t\tOntClass c = obtainOntClass(className);\r\n\t\t\r\n\t\tString longName;\r\n\t\tif(instanceName.contains(\"#\"))\r\n\t\t\tlongName = instanceName;\r\n\t\tif(instanceName.contains(\":\"))\r\n\t\t\tlongName= ONT_MODEL.expandPrefix(instanceName);\r\n\t\telse\r\n\t\t\tlongName = BASE_NS + instanceName;\r\n\t\t\r\n\t\tc.createIndividual(longName);\r\n\t}", "public BDPlan makePlan(BDNameMappings nameMappings) {\n\t\tBDPlan plan = new BDPlan(m_statement, nameMappings);\n\t\tplan.generatePlan();\n\t\t\n\t\treturn plan;\n\t}", "@Override\n\tpublic IAlgoInstance createInstance(String id,\n\t\t\tIGenlabWorkflowInstance workflow) {\n\t\treturn null;\n\t}", "@PostMapping(\"/locations/addSport/{locationId}\")\n public Sport addSport(@PathVariable Integer locationId,@RequestBody Sport sport){\n\n service.addSport(locationId,sport);\n\n return sport;\n }", "public void CreateStage(int id, String name, String title,\n\t\t\tString description) throws Exception {\n\t\ttry {\n\t\t\tString query = \"INSERT INTO stage VALUES ('\" + id + \"', '\" + description + \"', '0', '\"+ name + \"', '\" + title + \"', '0')\";\n\t\t\tstatement.execute(query); \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (conex != null) {\n\t\t\t\tconex.close();\n\t\t\t}\n\t\t}\n\t}", "public Lio(int id,String name,String last_name){\n // run time\n super();\n this.id = id;\n this.name = name;\n this.last_name = last_name;\n\n }", "public Passenger(String name, int passengerId, DepartureAirportStub da, PlaneStub pl)\n {\n super (name);\n this.passengerId = passengerId;\n passengerState = PassengerStates.GOING_TO_AIRPORT;\n this.da = da;\n this.pl = pl;\n }", "Swarm createSwarm();", "public Lesson(String name)\r\n { this.name = name;\r\n layer = 1; \r\n }", "public static Flyable newAircraft(String type, String name, int longitude, int latitude, int height){\n Flyable flyable = null;\n\n Coordinates coordinates = new Coordinates(longitude, latitude, height);\n\n if (type.equals(\"Helicopter\")){\n flyable = new Helicopter(name, coordinates);\n } else if (type.equals(\"JetPlane\")){\n flyable = new JetPlane(name, coordinates);\n } else if (type.equals(\"Baloon\")){\n flyable = new Baloon(name, coordinates);\n }\n\n return flyable;\n }", "public void agregarPlanta(Integer id_planta, String nombre_planta, Boolean esAcopio) {\n\t\t\n\t\tPlanta p1 = new Planta(id_planta, nombre_planta, esAcopio);\n\t\tlistaPlantas.add(p1);\n\t}", "@ApiOperation(\"Creates a Team\")\n @PostMapping(\"/API/v1/team\")\n public ResponseEntity<TeamAPI> createTeam(@RequestParam String nombreEquipo){\n TeamString salida = teamService.crearTeam(nombreEquipo, false);\n\n if(salida.getSalida().equals(\"OK\")){\n return new ResponseEntity<>(salida.getTeam().toTeamAPI(), HttpStatus.OK);\n }\n else {\n return new ResponseEntity(salida.getSalida(), HttpStatus.NOT_FOUND);\n }\n\n }", "private void createNewLab(){\n String newLabName = NewLabNameTextfield.getText();\n // If lab doesn't exist make the new lab\n if(!Arrays.asList(labsPath.list()).contains(newLabName)){ \n try{\n LabExistLabel.setVisible(false);\n NewLabDialog.revalidate();\n //call python new_lab_script: new_lab_setup.py -b basename \n File labdir = new File(labsPath+File.separator+newLabName);\n labdir.mkdir();\n this.labName = newLabName;\n String cmd = \"new_lab_setup.py -b \"+NewLabBaseImageComboBox.getSelectedItem();\n doLabCommand(cmd);\n \n // Close the new lab dialog and open the new lab\n NewLabDialog.setVisible(false);\n openLab(new File(labsPath+File.separator+newLabName));\n } \n catch (IOException e){\n System.out.println(e);\n }\n }\n else{\n LabExistLabel.setVisible(true);\n NewLabDialog.revalidate();\n System.out.println(\"Lab already exists. Make the lab with a different name other than:\");\n printExistingLabs();\n }\n }", "interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n WithCreate withLabPlanId(String labPlanId);\n }", "public static NameID getNewName(String name, Traversable tr) {\n SymbolTable symtab = IRTools.getAncestorOfType(tr, SymbolTable.class);\n String header = (name == null) ? \"temp\" : name;\n NameID ret = new NameID(header);\n int suffix = 0;\n while (findSymbol(symtab, ret) != null) {\n ret = new NameID(header + (suffix++));\n }\n return ret;\n }", "private static void addNewScheduledTour()\r\n {\r\n\t String tourID;\r\n\t String description;\r\n\t double admissionFee;\r\n\t String tourDate;\r\n\t int maxGroupSize;\r\n\t String tourLeader;\r\n\t boolean duplicateID = false;\r\n\t \r\n System.out.println(\"Add New Scheduled Tour Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Tour ID: \");\r\n tourID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Date: \");\r\n tourDate = sc.nextLine();\r\n \r\n System.out.print(\"Enter Maximum Group Size: \");\r\n maxGroupSize = sc.nextInt();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Leader: \");\r\n tourLeader = sc.nextLine();\r\n System.out.println();\r\n \r\n // check if tourID is already in use in the booking system\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(tourID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n }\r\n \r\n if(duplicateID == false)\r\n {\r\n \t attractionList[attractionCount] = new ScheduledTour(tourID, description,\r\n \t\t\t admissionFee, tourDate, maxGroupSize, tourLeader);\r\n \t attractionCount++;\r\n }\r\n }", "@Override\n\tpublic FxzfLane getById(String arg0) {\n\t\treturn null;\n\t}", "public void turnToLand(int i) {\n parent[i] = i;\n // increment the number of connected component (pretend the new node is a standalone node)\n numOfConnectedComponents++;\n }", "@Override\n\tpublic void deleteLane(Integer laneId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Lane where laneId =:theLaneId\");\n\t\t\n\t\ttheQuery.setParameter(\"theLaneId\", laneId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}", "Tank() {\n\n print(\"Tank \" + id + \" is created!\");\n print(\"Tank \" + id + \" is created!\");\n }", "public L04Station(String name) {\r\n if (findByName(name)==null) {\r\n setName(name);\r\n stationList.add(this);\r\n }\r\n }", "@PostMapping(\"/tour-bubbls\")\n public ResponseEntity<TourBubblDTO> createTourBubbl(@Valid @RequestBody TourBubblDTO tourBubblDTO) throws URISyntaxException {\n log.debug(\"REST request to save TourBubbl : {}\", tourBubblDTO);\n if (tourBubblDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"tourBubbl\", \"idexists\", \"A new tourBubbl cannot already have an ID\")).body(null);\n }\n TourBubblDTO result = tourBubblService.save(tourBubblDTO);\n return ResponseEntity.created(new URI(\"/api/tour-bubbls/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"tourBubbl\", result.getId().toString()))\n .body(result);\n }", "public void addCrossingYieldToLaneList(Lane lane) {\r\n\t\tif (crossingYieldToLaneList == null)\r\n\t\t\tcrossingYieldToLaneList = new ArrayList<Lane>();\r\n\t\tcrossingYieldToLaneList.add(lane);\r\n\t}", "public Workflow(int workFlowId, String name, int arrivalTime, double makespan, int deadline)\n\t{\n\t\tthis.workflowId = workFlowId;\n\t\tthis.workflowName = name;\n\t\tthis.arrivalTime = arrivalTime;\n\t\tthis.makespan = makespan;\n\t\tthis.deadline = deadline;\n\t\t\n\t\tthis.taskList = new ArrayList<WTask>(); \n\t\tthis.startedFlag = false;\n\t\tthis.finishTime = -1;\n\t\tthis.successfulOrNot = false;\n\t}", "public FieldStation(String id, String name){\n this.id = id;\n this.name = name;\n \n //Initialises the SetOfSensors sensors.\n sensors = new SetOfSensors();\n }", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "private ProcessStateObject(@NotNull Long id, @NotNull String name) {\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t}", "public void createRoom(int len, int leftWid, int rightWid) {\n switch (facing) {\n case \"Up\":\n addUpBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Down\":\n addDownBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Left\":\n addLeftBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Right\":\n addRightBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n default:\n System.out.println(\"The wizard loses his direction!\");\n\n }\n }", "@Override\n\tpublic List<Lane> getLaneFromLaneId(Integer laneId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t//create a query\n\t\tQuery<Lane> theQuery = currentSession.createQuery(\"from Lane where laneId='\"+laneId+\"'\", Lane.class);\t\n\t\t\t\t\n\t\tList<Lane> theLane = theQuery.getResultList(); \n\t\t\t\t\n\t\treturn theLane;\n\t}", "public void addNewAirplane(){\r\n\t\tuiAirplaneModel.setNewAirplane(new ArrayList<UiAirplaneModel>());\r\n\t\tUiAirplaneModel plane=new UiAirplaneModel();\r\n\t\tplane.setAirplaneModel(\"\");\r\n\t\tplane.setGroupIDs(new ArrayList<String>());\r\n\t\tplane.setStatusCheck(false);\r\n\t\tplane.setApNamesList(new ArrayList<UiAirplaneModel>());\r\n\t\tplane.setAirplaneNames(\"\");\r\n\t\tplane.setStage(\"\");\r\n\t\tuiAirplaneModel.setSelectedGrp(\"\");\r\n\t\tuiAirplaneModel.getNewAirplane().add(plane);\r\n\t}", "public RouteInterface setName(String name);", "public void createStage(String name, int maxViewers) throws FileNotFoundException, IOException, ClassNotFoundException {\r\n\t\tgetOldFile();\r\n\t\tboolean stageTest = false;\r\n\t\tfor (int i = 0; i <stages.size();i++){\r\n\t\t\tif (name.equals(stages.get(i).getName())){\r\n\t\t\t\tstageTest = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (stageTest == true){\r\n\t\t\tmain.dubStage();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t stages.add(new Stage(name, maxViewers));\r\n\t\t\t\t\tmain.noDubStage();\r\n\t\t\t\t}\r\n\t\tupdate();\r\n\t}", "long /* smem_lti_id */ smem_lti_add_id(char name_letter, long name_number) throws SQLException\n {\n /* smem_lti_id */long return_val = 0;\n \n // create lti: soar_letter, number, total_augmentations,\n // activation_value, activations_total, activations_last,\n // activations_first\n db.lti_add.setLong(1, name_letter);\n db.lti_add.setLong(2, name_number);\n db.lti_add.setLong(3, 0);\n db.lti_add.setDouble(4, 0);\n db.lti_add.setLong(5, 0);\n db.lti_add.setLong(6, 0);\n db.lti_add.setLong(7, 0);\n \n return_val = JdbcTools.insertAndGetRowId(db.lti_add);\n \n // increment stat\n stats.nodes.set(stats.nodes.get() + 1); // smem_stats->chunks in CSoar\n \n return return_val;\n }", "public Todo create(long todoId);", "FlowId id();", "@Deprecated\n\tpublic IEntity spawnClone(double x, double y, double z, int tab, String name);", "public JunctionLink addNewRoad(Junction j,int typeRoad){\n JunctionLink jl=new JunctionLink(j);\n //firstSelected=jl;\n jl.setType(typeRoad);\n try {\n PSRender.addRenderedObject(this);\n } catch (Exception e) {\n e.printStackTrace();\n e.printStackTrace(DBService.getErrorStream()); //To change body of catch statement use Options | File Templates.\n }\n addRoad=true;\n // System.out.println(\"\\tout method: addNewRoad()\");\n return jl;\n }", "private static Lane newLaneConnection(Lane upLane, Lane downLane, boolean createCurve, Lane oldLane, boolean sameOutlink) {\n \t\tdouble laneWidth = downLane.getWidth();\r\n \t\tLane newLane = new Lane(null, null, null, 0, laneWidth, Lane.NOORIGIN, Lane.NODESTINATION);\r\n \t\tnewLane.addDownLane(downLane);\r\n \t\tnewLane.addUpLane(upLane);\t\t\t\t\t\t\t\r\n \t\tdownLane.addUpLane(newLane);\r\n \t\tupLane.addDownLane(newLane);\r\n \t\tif (null == upLane.getLaneVerticesCenter()) {\r\n \t\t\tSystem.err.println(\"newLaneConnection: linkPointList is null\");\r\n \t\t\tupLane.getLaneVerticesCenter();\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\tif (null == downLane.getLaneVerticesCenter()) {\r\n \t\t\tSystem.err.println(\"newLaneConnection: linkPointList is null\");\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\tif (createCurve) {\r\n \t\t\tArrayList<Vertex> up = upLane.getLaneVerticesCenter();\r\n \t\t\tArrayList<Vertex> down = downLane.getLaneVerticesCenter();\t\t\r\n \t\t\tPoint2D.Double ctrlPoint = \tCurves.createControlPoint(up, down);\r\n \t\t\tnewLane.setCtrlPointCenter(ctrlPoint);\r\n \t\t\tArrayList<Vertex> laneVerticesCenter = new ArrayList<Vertex>();\r\n \t\t\tlaneVerticesCenter = Curves.connectVerticesCurve(up, down, ctrlPoint, 0.3);\r\n \t\t\t// laneVerticesCenter.get(0).setPoint(up.get(up.size()-1).getX(), up.get(up.size()-1).getY(), up.get(up.size()-1).getZ());\r\n \t\t\t// laneVerticesCenter.get(laneVerticesCenter.size()-1).setPoint(down.get(0).getX(), down.get(0).getY(), down.get(0).getZ());\r\n \t\t\tnewLane.setDesignLine(laneVerticesCenter);\t\t\t\r\n \t\t\tnewLane.setLaneVerticesInner(Planar.createParallelVertices(laneVerticesCenter, - newLane.getLateralWidth() / 2));\r\n \t\t\tnewLane.setLaneVerticesOuter(Planar.createParallelVertices(laneVerticesCenter, + newLane.getLateralWidth() / 2));\r\n \t\t}\r\n \t\telse {\r\n \t\t\tboolean sameUp = false;\r\n \t\t\tboolean sameDown = false;\r\n \t\t\tArrayList<Vertex> laneVerticesCenter = new ArrayList<Vertex>();\r\n \t\t\tArrayList<Vertex> prevLaneVerticesCenter = oldLane.getUp().get(0).getLaneVerticesCenter();\r\n \t\t\tVertex oldUp = prevLaneVerticesCenter.get(prevLaneVerticesCenter.size()-1);\r\n \t\t\tprevLaneVerticesCenter = oldLane.getDown().get(0).getLaneVerticesCenter();\r\n \t\t\tVertex oldDown = prevLaneVerticesCenter.get(0);\r\n \t\t\tVertex up = upLane.getLaneVerticesCenter().get(upLane.getLaneVerticesCenter().size()-1);\r\n \t\t\tVertex down = downLane.getLaneVerticesCenter().get(0);\t\t\r\n \t\t\t\r\n \t\t\tif (up.equals(oldUp) && sameOutlink)\r\n \t\t\t\tsameUp = true;\r\n \t\t\tif (down.equals(oldDown))\r\n \t\t\t\tsameDown = true;\r\n \t\t\t// create parallel vertices\r\n \t\t\tprevLaneVerticesCenter = oldLane.getLaneVerticesCenter();\r\n \t\t\tlaneVerticesCenter = Planar.createParallelVertices(prevLaneVerticesCenter, -oldLane.getLateralWidth());\r\n \t\t\t// if same upLane: create weighted vertices inbetween\r\n \t\t\tif (sameUp == true) {\r\n \t\t\t\tlaneVerticesCenter = Planar.createPartlyParallelVertices(prevLaneVerticesCenter, laneVerticesCenter, sameUp, sameDown);\r\n \t\t\t}\r\n \t\t\tnewLane.setDesignLine(laneVerticesCenter);\r\n \t\t\tnewLane.setLaneVerticesInner(Planar.createParallelVertices(laneVerticesCenter, - newLane.getLateralWidth() / 2));\r\n \t\t\tnewLane.setLaneVerticesOuter(Planar.createParallelVertices(laneVerticesCenter, + newLane.getLateralWidth() / 2));\r\n \t\t}\r\n \t\treturn newLane; \t\r\n }" ]
[ "0.6051113", "0.54825944", "0.5463696", "0.54566526", "0.5439644", "0.54248875", "0.53970957", "0.5372717", "0.535361", "0.5314309", "0.528793", "0.52842253", "0.52251107", "0.5194624", "0.51617587", "0.5151524", "0.51158243", "0.5112317", "0.5094949", "0.5089762", "0.5082089", "0.5078252", "0.5035426", "0.5027119", "0.5016569", "0.50101465", "0.49671537", "0.49653292", "0.4965156", "0.4959724", "0.49422252", "0.49393624", "0.49315006", "0.4928704", "0.4920477", "0.49175128", "0.49138486", "0.49133947", "0.49125728", "0.4912488", "0.4905594", "0.4890587", "0.4888722", "0.48741966", "0.48713908", "0.4870866", "0.48674607", "0.4863477", "0.48612392", "0.48392302", "0.48391515", "0.48329595", "0.48319113", "0.4827977", "0.48166275", "0.48141494", "0.4776292", "0.476783", "0.47668472", "0.47661448", "0.47658145", "0.4765194", "0.47617775", "0.47555837", "0.47511795", "0.4747109", "0.47369123", "0.47366732", "0.4736493", "0.473608", "0.4734901", "0.47317758", "0.47293922", "0.47270444", "0.47267368", "0.47241846", "0.47071484", "0.4706901", "0.47011116", "0.46975818", "0.4693355", "0.46894157", "0.46850383", "0.4675401", "0.4675038", "0.4673138", "0.46726847", "0.4664675", "0.4663828", "0.46635872", "0.4662528", "0.46609396", "0.46601126", "0.4654048", "0.46461284", "0.46434742", "0.4642363", "0.4640765", "0.4637182", "0.46364403" ]
0.5993724
1
Convert the lane into XPDL format String
public String toXPDL() { return "\t\t\t\t<xpdl:Lane Id=\"" + m_id + "\" Name=\"" + m_name + "\"/>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String export() {\r\n\t\tString result = String.format(\"LaneData\\tlaneID:\\t%d\", getID());\r\n\r\n\t\tfor (Integer laneID : getUpLaneIDs())\t\t\t\t\r\n\t\t\tresult += String.format(\"\\tup:\\t%d\", laneID); \r\n\t\tfor (Integer laneID : getDownLaneIDs())\r\n\t\t\tresult += String.format(\"\\tdown:\\t%d\", laneID); \r\n\t\tif (getCrossingYieldToLaneList() != null) {\r\n\t\t\tfor (Lane yLane : getCrossingYieldToLaneList()) {\r\n\t\t\t\tresult += String.format(\"\\tcrossingYieldTo:\\t%d\", yLane.getID()); \r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getMergingYieldToLaneList() != null) {\r\n\t\t\tfor (Lane yLane : getMergingYieldToLaneList()) {\r\n\t\t\t\tresult += String.format(\"\\tmergingYieldTo:\\t%d\", yLane.getID()); \r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getLeft() != null)\r\n\t\t\tresult += String.format(\"\\tleft:\\t%d\", getLeft().getID()); \r\n\t\tif (getRight() != null)\r\n\t\t\tresult += String.format(\"\\tright:\\t%d\", getRight().getID()); \r\n\t\tif (isGoLeft())\r\n\t\t\tresult += String.format(\"\\tgoLeft:\\t%s\", isGoLeft()); \r\n\t\tif (isGoRight())\r\n\t\t\tresult += String.format(\"\\tgoRight:\\t%s\", isGoRight()); \r\n\t\tif (getOrigin() >= 0)\r\n\t\t\tresult += String.format(\"\\torigin:\\t%d\", getOrigin()); \r\n\t\t// FIXME Does not write destination nodes that are not only a sink\r\n\t\tif ((getDestination() >= 0) || crossSectionElement.getCrossSection().getLink().getToNode_r().isSink())\r\n\t\t\tresult += String.format(\"\\tdestination:\\t%d\", getDestination()); \r\n\t\tresult += \"\\n\";\r\n\t\treturn result;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n int startIndex = 0;\n while (startIndex < total - laneSize - 1) {\n startIndex = printOddLane(sb, startIndex);\n startIndex = printEvenLane(sb, startIndex + laneSize);\n }\n\n return sb.toString();\n }", "public String toLsString()\n {\n String sizeOrDeviceId = \"\";\n String name = this.file.getName();\n String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;\n\n switch (this.type)\n {\n case File:\n sizeOrDeviceId = String.valueOf(this.size);\n break;\n case CharacterDevice:\n case BlockDevice:\n sizeOrDeviceId = String.format(\"%3d,%4d\", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);\n break;\n case SymbolicLink:\n name = name + \" -> \" + (realPath == null ? \"(null)\" : new File(realPath).getName());\n break;\n }\n\n return String.format(\"%s %-8s %-8s %8s %s %s\",\n this.mode.getSymbols(),\n //this.hardLinkCount,\n RootTools.getUserName(this.userId),\n RootTools.getUserName(this.groupId),\n sizeOrDeviceId,\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(this.lastModified),\n name);\n }", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "@Override\n public String toProtocolExplanationString() {\n return \"LL3P Address:\" + ll3pAddress.toHexString() +\" \\n\" ;\n }", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "private String zxt (long inp, int length) {\n String result = Long.toString(inp);\n int dist = (length - result.length());\n for (int i = 0; i < dist; i++) {\n result = \"0\" + result;\n }\n return result;\n }", "private String pedometerConversion() {\n return (record[20] & 255) + \"\";\n }", "@Override\r\n\tpublic String toString() {\n\t\tString change = \"\";\r\n\t\tString min_change = \"\";\r\n\t\tString max_change = \"\";\r\n\r\n\t\tif (this.runaway_change != null) {\r\n\t\t\tchange += Unit.getDescriptionByCode(runaway_change);\r\n\t\t}\r\n\r\n\t\tif (this.containsV) {\r\n\t\t\tif (this.min_range_change != null) {\r\n\t\t\t\tmin_change += Unit.getDescriptionByCode(min_range_change);\r\n\t\t\t}\r\n\t\t\tif (this.max_range_change != null) {\r\n\t\t\t\tmax_change += Unit.getDescriptionByCode(max_range_change);\r\n\t\t\t}\r\n\t\t\treturn this.runaway_number + runaway_LCR==null?Unit.getDescriptionByCode(runaway_LCR):\"\" + \"跑道,最小跑道视程\" + this.min_range + \"米,\"\r\n\t\t\t\t\t+ min_change + \",最大跑道视程\" + this.max_range + \"米,\" + max_change + \",\";\r\n\r\n\t\t} else {\r\n\r\n\t\t\treturn this.runaway_number + Unit.getDescriptionByCode(runaway_LCR) + \"跑道,跑道视程\" + this.viusal_range + \"米,\"+change;\r\n\t\t}\r\n\t}", "@Override\n public String toString()\n {\n \tStringBuilder sb = new StringBuilder();\n\n \tsb.append( mSDF.format( new Date() ) );\n\n \tsb.append( \" MPT1327 \" );\n \t\n \tsb.append( getParity() );\n\n \tsb.append( \" \" );\n \t\n \tsb.append( getMessage() );\n \t\n \tsb.append( getFiller( sb, 100 ) );\n \t\n \tsb.append( \" [\" + mMessage.toString() + \"]\" );\n \t\n \treturn sb.toString();\n }", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }", "public String toMessage() {\n String mem = \"Mem: \"+memoryLoad+\"%\";\n String cpu = \" CPU: \"+cpuLoad+\"%\";\n String bat = \" Bat: \"+batteryLevel+\"%\";\n String threads = \"Threads: \"+numberOfThreads;\n String nbCM = \"BCs: \"+numberOfBCs;\n String nbConn = \"Connectors: \"+numberOfConnectors;\n String emiss = \"Sent PF:appli \"+networkPFOutputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n String rec = \"Rcvd PF:appli \"+networkPFInputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n return mem+\"|\"+cpu+\"|\"+threads+\"|\"+bat+\"|\"+nbCM+\"|\"+nbConn+\"|\"+emiss+\"|\"+rec; // recuperation de l'etat de l'hote\n }", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "public String toString() {\n return lfsr1.substring(0, lfsr1.length() - 1);\n }", "public static String bcdPlmnToString(byte[] data, int offset) {\n if (offset + 3 > data.length) {\n return null;\n }\n byte[] trans = new byte[3];\n trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF));\n trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF));\n trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF));\n String ret = bytesToHexString(trans);\n\n // For a valid plmn we trim all character 'F'\n if (ret.contains(\"F\")) {\n ret = ret.replaceAll(\"F\", \"\");\n }\n return ret;\n }", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "public String stateToCheckerboardString(int paraState) {\n\t\tint[][] tempCheckerboard = stateToCheckerboard(paraState);\n\t\tString resultString = \"\\r\\n\";\n\t\t//resultString += \"Checkerboard state: \\r\\n\";\n\t\tfor (int i = 0; i < tempCheckerboard.length; i++) {\n\t\t\tfor (int j = 0; j < tempCheckerboard[0].length; j++) {\n\t\t\t\tif (tempCheckerboard[i][j] == WHITE) {\n\t\t\t\t\tresultString += \"o \";\n\t\t\t\t} else if (tempCheckerboard[i][j] == BLACK) {\n\t\t\t\t\tresultString += \"x \";\n\t\t\t\t} else {\n\t\t\t\t\tresultString += \"- \";\n\t\t\t\t}//Of if\n\t\t\t}//Of for j\n\t\t\tresultString += \"\\r\\n\";\n\t\t}//Of for i\n\t\t\n\t\t//resultString += currentState;\n\t\treturn resultString;\n\t}", "public String toString() {\n String s = \" 1 2 3 4 5 6 7 8\";\n\n\n s += \"\\n --------------------\\n1 |\";\n\n for(int i=0; i < this.TAILLEX; i++){\n for(int k=0; k < this.TAILLEY; k++){\n s += this.plateau[i][k] + \"|\";\n }\n if(i<7) s += \"\\n --------------------\\n\" + (i+2) + \" |\";\n else s += \"\\n --------------------\\n\";\n }\n\n return s;\n }", "public String toString() {\n\t\treturn GrilleLoader.serialize(this, false); //isGrlFormat=false\n\t}", "public String long_ip(long numero_ip){\n String str_num_ip=\"\";\n for(int i=3; i>=0; i--){\n str_num_ip += (0b1111_1111 & (numero_ip >> (i*8) )) + (i!=0? \".\": \"\");\n }\n return str_num_ip;\n }", "private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }", "public String toString(){\n\tString sourceName;\n\tString destinationName;\n\t// its possible the wire has no source gate so this avoids null\n\t// pointer errors\n\tif( source == null){\n\t sourceName = \"No wire source\";\n\t} else {\n\t sourceName = this.source.name;\n\t}\n\t// provides the same check for destination gates\n\tif( destination == null ){\n\t destinationName = \"No wire destination\";\n\t} else {\n\t destinationName = this.destination.name;\n\t}\n\treturn \"Wire \" + sourceName + \" \"+ srcPin + \" \" +\n\t\tdestinationName + \" \" + \" \" + dstPin\n\t\t+ \" \" + delay;\n }", "private String land() {\r\n\t\tint[] temp=tile.getLand();\r\n\t\tString out=\"Tile Land: \\n\\n\";\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public String toString()\n\t{\t\n\t\tString a = \"\";\n\t\tint counter = 0; //counting how many points we have added to one line so far\n\t\tfor(int i = 0; i < hullVertices.length; i++) //iterate through the whole array\n\t\t{\n\t\t\tif(counter == 5) //go to a new line if you have added 5 points\n\t\t\t{\n\t\t\t\ta += \"\\n\";\n\t\t\t\tcounter = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//add point as a string and increment the counter\n\t\t\t\tString point = hullVertices[i].toString();\n\t\t\t\ta += point;\n\t\t\t\ta += \" \";\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn a; \n\t}", "@VTID(8)\r\n java.lang.String format();", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public String toString(){\n String temp = drv.getAbsolutePath() + \"\\n\";\n temp += freeSpace + \" / \" + totalSpace + \"\\n\";\n temp += getPercentRem() +\"%\\n\";\n temp += \"Drive Setup: \" + isSetup + \"\\n\";\n for(String i: drv.list()){\n temp += i + \"\\n\";\n }\n return temp;\n }", "@Override\n\tpublic String toString() {\n\t\tString datamedlemmer = String.format(\"%-30s%-20s%-20s%-20s%n\", \"Navn: \"\n\t\t\t\t+ forNavn + \" \" + etterNavn, \"PIN - kode: \" + pinKode,\n\t\t\t\t\"Kortnummer: \" + kortNr, \"Tilstand: \"\n\t\t\t\t\t\t+ (isSperret() ? \"Sperret\" : \"Åpen\"));\n\t\treturn datamedlemmer;\n\t}", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "public String toString(){\n\t\tString str = \"<Route: \";\n\t\tfor(int i=0; i<visits.size(); i++){\n\t\t\tVisit v = visits.get(i);\n\t\t\tstr += \"\\t\"+i+\": \"+ v +\"\\t\"+ \"At time: \"+arrivalTimes.get(i)+\"->\"+departureTimes.get(i);\n\t\t\tif(locked.get(i)) str += \" locked\";\n\t\t\tstr += \"\\n\";\n\t\t}\n\t\tstr += \"\\t\"+visits.get(0);\n\t\treturn str+\">\";\n\t}", "public String print(){\n String printBuffer = trainingAmount + \"\\n\";\n for(int i = 0; i < trainingAmount; i++) {\n \tprintBuffer += \"('\" + myDOD_EDI_PI + \"',\";\n printBuffer += \"'\" + CIN[i] + \"',\";\n printBuffer += \"'\" + CDP[i] + \"',\";\n printBuffer += \"'\" + CLS_NUM[i] + \"',\";\n printBuffer += \"'\" + LOC_NM[i] + \"',\";\n printBuffer += \"'\" + CSE_LONG_TITLE[i] + \"',\";\n printBuffer += \"'\" + TRNG_DELIV_METH_CD[i] + \"',\";\n printBuffer += \"'\" + RCRD_SRC[i] + \"',\";\n printBuffer += \"'\" + COMPL_DT[i] + \"',\";\n printBuffer += \"'\" + SCORE[i] + \"',\";\n printBuffer += \"'\" + RCRD_IND[i] + \"',\";\n printBuffer += \"'\" + RETIRE_POINT[i] + \"',\";\n printBuffer += \"'\" + CSE_LEN[i] + \"',\";\n printBuffer += \"'\" + APPROX_TRNG_EQUIV_IND[i] + \"',\";\n printBuffer += \"'\" + NA_IND[i] + \"',\";\n printBuffer += \"'\" + SYS_LOAD_DT[i] + \"')\";\n printBuffer += \"\\n\";\n }\n return printBuffer;\n }", "@Override\n public String toString() {\n return \"CapteurVitesse(\"+sonRail+\",PositionSurRail:\"+positionSurRail+\")\";\n }", "static String OIDtoString(byte[] buffer, int offset, int length) {\n StringBuffer result;\n int end;\n int t;\n int x;\n int y;\n\n if (length == 0) {\n return \"\";\n }\n\n result = new StringBuffer(40);\n\n end = offset + length;\n\n /*\n * first byte (t) always represents the first 2 values (x, y).\n * t = (x * 40) + y;\n */\n t = buffer[offset++] & 0xff;\n x = t / 40;\n y = t - (x * 40);\n\n result.append(x);\n result.append('.');\n result.append(y);\n\n x = 0;\n while (offset < end) {\n // 7 bit per byte, bit 8 = 0 means the end of a value\n x = x << 7;\n\n t = buffer[offset++];\n if (t >= 0) {\n x += t;\n result.append('.');\n result.append(x);\n x = 0;\n } else {\n x += t & 0x7f;\n }\n }\n\n return result.toString();\n }", "public String scoreTo8BitsStringNotes(){\n\t\tString str = \"\", placeholder = \"00\",seperator = \" \";\n\t\tfor(StdNote tNote : musicTrack.get(0).noteTrack){\n\n\t\t\tstr += String.format(\"%03d\",tNote.absolutePosition)\n\t\t\t\t+ tNote.downFlatSharp\n\t\t\t\t+ tNote.octave\n\t\t\t\t+ tNote.dot\n\t\t\t\t+ placeholder\n\t\t\t\t+ seperator;\n\t\t\t//这里要这样写么??\n\t\t\tif(tNote.barPoint == 1) str += ',';\n\t\t}\n\t\treturn str.trim();//去掉前后空格\n\t}", "public String toString(){\n return \"This Pass ID number is \"+ id +\n \", number of moves so far today is \"+number_of_moves+\n \", number of hours left is \"+hours_left +\n \", the protection rating is \"+ protection_rating+\n \", the project team name is \"+ name_of_project_team+\n \", the Code of the project team is \"+ code_of_project_team+\n \"\\n*******\\n\";\n }", "public String toString()\n {\n DataConversionUtility dcu = DataConversionUtility.getInstance();\n StringBuilder sb = new StringBuilder();\n sb.append(\" \");\n sb.append(this.timestamp);\n sb.append(\": \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.latitude, 6));\n sb.append(\" / \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.longitude, 6));\n sb.append(\" / elev.: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.elevation, 1));\n sb.append(\" / speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.speed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.course, 2));\n sb.append(\"] / wind speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windSpeed, 2));\n sb.append(\" - \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.maxWindSpeed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windDirection, 2));\n sb.append(\"]\\n\");\n return sb.toString();\n }", "public static String toOctalString(long addr, boolean LP64) {\n\tif (LP64)\n\t return Long.toOctalString(addr);\n\telse\n\t return Integer.toOctalString((int) addr); \n }", "public String toShortString() {\n LogBuilder lb = new LogBuilder(32);\n lb.add(getModeString(), \" \", transportable);\n Location lt = getTransportTarget();\n lb.add(\" @ \", ((lt == null) ? \"null\" : lt.toShortString()));\n Location ct = getCarrierTarget();\n if (ct != lt) lb.add(\"/\", ct.toShortString());\n return lb.toString();\n }", "private String printRoute(Rota r) {\n StringBuilder s = new StringBuilder();\n\n for (String d : r.getPontos()) {\n s.append(d + \"->\");\n }\n s = s.replace(s.length() - 2, s.length(), \".\");\n\n return s.toString();\n }", "private String LightConversion() {\n\n int exponent = ((raw[19] & 0xC0) >> 6) + ((raw[20] & 0x03) << 2);\n int mantissa = ((raw[20] & 0xFC) >> 2) + ((raw[21] & 0x03) << 6);\n double value = (Math.pow(2.0, exponent)) * mantissa * 0.025;\n\n return Double.valueOf(threeDForm.format(value)) + \"\";\n\n }", "public String plainDataToString()\n {\n String plainDataOut = \"\";\n String vetVisitData = super.plainDataToString();\n String vetVisitUrgData = \"\";\n \n vetVisitUrgData = this.getDiagnosis() + \"\\n\" +\n this.getTreatment();\n \n plainDataOut = vetVisitData + \"\\n\" + vetVisitUrgData;\n \n return plainDataOut;\n \n }", "public String toString(){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\t\r\n\t\tsb.append(String.format(\" initial pairs: %8d\\n\",num[0]));\r\n\t\t\r\n\t\tsb.append(\" time(day) samples Dxx(km) Dyy(km) Dis(km) Kxx(10^7cm^2/s) Kyy(10^7cm^2/s)\\n\");\r\n\t\t\r\n\t\tfor(int l=0,L=num.length;l<L;l++)\r\n\t\tsb.append(String.format(\r\n\t\t\t\" %5.1f %6d %7.3f %7.3f %7.3f %7.3f %7.3f\\n\",\r\n\t\t\tl*dt/86400f,num[l],Dxx[l]/1e6,Dyy[l]/1e6,Dis[l]/1e6,Kxx[l],Kyy[l]\r\n\t\t));\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "public String toString() {\n\t\tString s = \"(A street: the periode to pass this street is \" + mTravelingTime + \" minutes: \";\n\t\ts += \"The maximum amount of cars that can enter this street is \" + mCapacity + \": \";\n\t\ts += \"The current amount of cars on the street is \" + mVehicles.size();\n\t\ts += \")\";\n\t\treturn s;\n\t}", "public String toStringPrologFormatListLo()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Location lo : this.listLocation)\r\n\t\t{\r\n\t\t\toutput += lo.LocationToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\tString ppString = \"\";\n\t\tif(x >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(x >= 10 || x <= -10)\n\t\t\tppString += Math.abs(x);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(x);\n\t\tif(y >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(y >= 10 || y <= -10)\n\t\t\tppString += Math.abs(y);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(y);\n\t\treturn ppString;\n\t}", "public static String toOctalString0x(long addr, boolean LP64) {\n\tif (LP64)\n\t return \"0x\" +Long.toOctalString(addr);//NOI18N\n\telse\n\t return \"0x\" +Integer.toOctalString((int) addr); //NOI18N \n }", "private String convertDataToString(List<DataFormat> trainData) {\n return trainData\n .stream()\n .map(d -> convertBooleanToInteger(d.getValue()) + \" \" +\n convertPredicateListToString(d.getPredicateList()) + System.lineSeparator())\n .collect(Collectors.joining());\n }", "public String toString() {\n\t\treturn \"This Tram has \" + numOfStops + \" stops, and costs \" + ticketPrice + \"$. Its maximum speed is \"\n\t\t\t\t+ maxSpeed + \"km/h, route number is \" + routeNum + \", line name is \" + lineName\n\t\t\t\t+ \". it has been operated \" + beginOperationYear + \" year(s), and driver(s) name is \" + driverName;\n\t}", "public String fixedNumbersToString(){\n\t\tint numDigits = size / 10 + 1;\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// delimiter between size x size squares\n\t\tString delimiter = \"\";\n\t\tfor (int i = 0; i < (numDigits+1)*size*size+2*(size-1); i++){\n\t\t\tdelimiter += \"-\";\n\t\t}\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tif (i != 0 && i % size == 0){\n\t\t\t\tbuilder.append(delimiter);\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\tif (j != 0 && j % size == 0){\n\t\t\t\t\tbuilder.append(\"| \");\n\t\t\t\t}\n\t\t\t\tif (fixedNumbers[i][j])\n\t\t\t\t\tbuilder.append(\"x \");\n\t\t\t\telse\n\t\t\t\t\tbuilder.append(\"o \");\n\t\t\t}\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\treturn builder.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tString line = \"\";\n\t\tint lineLength = (sqRt + 1) + (sqRt) * (sqRt + sqRt + 1);\n\t\tfor(int i = 0; i < lineLength; i++) {\n\t\t\tline += \"-\";\n\t\t}\n\t\tsb.append(line + \"\\n\");\t\n\t\tfor(int i = 1; i <= dimension; i++) {\n\t\t\tfor(int j = 1; j <= dimension; j++) {\n\t\t\t\tif(j == 1) {\n\t\t\t\t\tsb.append(\"| \");\n\t\t\t\t}\n\t\t\t\tsb.append(puzzle[i - 1][j - 1]);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tif(j % sqRt == 0) \n\t\t\t\t\tsb.append(\"| \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tif(i % sqRt == 0) \n\t\t\t\tsb.append(line + \"\\n\");\t\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n String s = \"Message <RoutePacket> \\n\";\n try {\n s += \" [addr=0x\"+Long.toHexString(get_addr())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [amtype=0x\"+Long.toHexString(get_amtype())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [group=0x\"+Long.toHexString(get_group())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [length=0x\"+Long.toHexString(get_length())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [parent=0x\"+Long.toHexString(get_parent())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [hop=0x\"+Long.toHexString(get_hop())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [cost=0x\"+Long.toHexString(get_cost())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [estLength=0x\"+Long.toHexString(get_estLength())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [entries.id=\";\n for (int i = 0; i < 11; i++) {\n s += \"0x\"+Long.toHexString(getElement_entries_id(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [entries.receiveEst=\";\n for (int i = 0; i < 11; i++) {\n s += \"0x\"+Long.toHexString(getElement_entries_receiveEst(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [source=0x\"+Long.toHexString(get_source())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [seqnum=0x\"+Long.toHexString(get_seqnum())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [crc=0x\"+Long.toHexString(get_crc())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "public java.lang.String getDataFromLMS();", "public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }", "private String convertToStringLine(ProjectFilePart pfp) {\r\n return Base16.encode(pfp.getRelativeName().getBytes()) + \"~\" + Base16.encode(pfp.getHash().toByteArray()) + \"~\" + Base16.encode(pfp.getPadding()) + \"~\\n\";\r\n }", "public String RoutesArrayToString(ArrayList<Route> arrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < arrayToConvert.size(); i++) {\n if (arrayToConvert.get(i).getAirlineID() >= 0) {\n String routeString =\n arrayToConvert.get(i).getSourceAirport()\n + \" to \"\n + arrayToConvert.get(i).getDestinationAirport();\n if (i == arrayToConvert.size() - 1) {\n resultStringBuilder.append(routeString);\n } else {\n resultStringBuilder.append(routeString).append(\", \");\n }\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }", "@Override\n public String toString() {\n return \"FLIGHT'S ID: \" + Id + \"\\nFROM: \" + From + \"\\tTO: \" + To + \"\\nAIRCRAFT TYPE: \"\n + Type + \", MILITARY: \" + (Mil ? \"yes\" : \"no\") + \"\\nSPEED: \" + Spd\n + \", ALTITUDE: \" + Alt;\n }", "public String toString() \r\n {\r\n return \"The cruise ship \\\"\"+GetName()+\"\\\" was built in \"+GetYear()+\". It has a maximum payload of \"+maxPassengers+\" passengers and is currently carrying \"+curPassengers+\" passengers.\";\r\n }", "public String toString() {\n\t\treturn \"Road from \" + getLeave() + \" to \" + getArrive() + \" with toll \" + getToll();\n\t}", "private void m5095a(DrivingRoutePlanOption drivingRoutePlanOption) {\n this.a.m5234a(\"qt\", \"cars\");\n this.a.m5234a(\"sy\", drivingRoutePlanOption.mPolicy.getInt() + \"\");\n this.a.m5234a(\"ie\", \"utf-8\");\n this.a.m5234a(\"lrn\", \"20\");\n this.a.m5234a(MapboxEvent.ATTRIBUTE_VERSION, \"6\");\n this.a.m5234a(\"extinfo\", ANSIConstants.GREEN_FG);\n this.a.m5234a(\"mrs\", C0844a.f2048d);\n this.a.m5234a(\"rp_format\", \"json\");\n this.a.m5234a(\"rp_filter\", \"mobile\");\n this.a.m5234a(\"sn\", m4541a(drivingRoutePlanOption.mFrom));\n this.a.m5234a(\"en\", m4541a(drivingRoutePlanOption.mTo));\n if (drivingRoutePlanOption.mCityName != null) {\n this.a.m5234a(\"c\", drivingRoutePlanOption.mCityName);\n }\n if (drivingRoutePlanOption.mFrom != null) {\n this.a.m5234a(\"sc\", drivingRoutePlanOption.mFrom.getCity());\n }\n if (drivingRoutePlanOption.mTo != null) {\n this.a.m5234a(\"ec\", drivingRoutePlanOption.mTo.getCity());\n }\n List list = drivingRoutePlanOption.mWayPoints;\n String str = new String();\n String str2 = new String();\n if (list != null) {\n String str3 = str;\n str = str2;\n for (int i = 0; i < list.size(); i++) {\n PlanNode planNode = (PlanNode) list.get(i);\n if (planNode != null) {\n str3 = str3 + m4541a(planNode);\n str = str + planNode.getCity();\n if (i != list.size() - 1) {\n str3 = str3 + \"|\";\n str = str + \"|\";\n }\n }\n }\n this.a.m5234a(\"wp\", str3);\n this.a.m5234a(\"wpc\", str);\n }\n }", "public String toString() {\n // DecimalFormat class is used to format the output\n DecimalFormat df = new DecimalFormat(\".0\");\n return \"\\nCoordinates of Parallelogram are:\\n\"\n + super.toString()\n + \"\\nWidth is :\"\n + df.format(width)\n + \"\\nHeight is :\"\n + df.format(height)\n + \"\\nArea is :\"\n + df.format(area());\n }", "private static String toPcapString( byte[] packet )\n {\n int pcapLen = PCAP_GLOBAL_HEADER_LEN + PCAP_RECORD_HEADER_LEN + packet.length;\n ByteBuffer buf = ByteBuffers.allocate(pcapLen, BufferType.ARRAY_BACKED);\n putGlobalHeader(buf);\n putRecordHeader(buf, packet.length);\n buf.put(packet);\n buf.flip();\n return toBashBytes(buf);\n }", "private static String getXadlDirection(Direction direction) {\n\t\tString strDirection = null;\n\t\tswitch (direction) {\n\t\tcase IN:\n\t\t\tstrDirection = \"in\";\n\t\t\tbreak;\n\t\tcase OUT_MULTI:\n\t\tcase OUT_SINGLE:\n\t\t\tstrDirection = \"out\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstrDirection = \"none\";\n\n\t\t}\n\n\t\treturn strDirection;\n\t}", "private String showAddr(byte[] addr) {\n\t\tif (addr == null)\n\t\t\treturn (\"unknown\");\n\t\treturn ((int) addr[0] & 0xff) + \".\" + ((int) addr[1] & 0xff) + \".\"\n\t\t\t\t+ ((int) addr[2] & 0xff) + \".\" + ((int) addr[3] & 0xff);\n\t}", "public String toString()\r\n {\n String str = \"lrr[\" + geneId + \", \" + exons.size() + \" ex]\\n\";\r\n // str += \"Exon Starts: \" + ArrayUtils.toString(exonStarts) + \"\\n\";\r\n // str += \"Exon Ends: \" + ArrayUtils.toString(exonEnds) + \"\\n\";\r\n return str;\r\n }", "public String getLane() {\r\n\t\treturn lane;\r\n\t}", "public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "public String toString()\n {\n int spaceLength = this.lengthToSecondCol - this.name.length();\n String space = \" \";\n String n = \" \";\n String s;\n if(showName)\n {\n n = this.name;\n while(spaceLength > 1)\n {\n spaceLength--;\n space += \" \";\n }\n }\n\n switch (this.type)\n {\n case Pwr.eType_Float32:\n case Pwr.eType_Float64:\n s = n + space + this.valueFloat;\n break;\n case Pwr.eType_UInt32:\n case Pwr.eType_UInt64:\n case Pwr.eType_Int32:\n case Pwr.eType_Int64:\n case Pwr.eType_Enum:\n case Pwr.eType_Mask:\n\n //s = n + space + this.valueInt;\n\ts = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n\n case Pwr.eType_UInt16:\n s = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n case Pwr.eType_Int8:\n case Pwr.eType_UInt8:\n s = n + space + (new Integer(this.valueInt)).byteValue();\n break;\n case Pwr.eType_Int16:\n s = n + space + (new Integer(this.valueInt)).shortValue();\n break;\n case Pwr.eType_Boolean:\n if(this.valueBoolean)\n {\n s = n + space + \"1\";\n }\n else\n {\n s = n + space + \"0\";\n }\n break;\n default:\n s = n + space + this.valueString;\n break;\n }\n return s;\n }", "@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }", "public String convertBoardToString(){\n String tmp= \"\";\n\n for (int i=0; i<30; i++){\n for (int j=0; j<80; j++){\n if (board.getCharacter(j,i)==0){\n tmp += '-';\n } else {\n tmp += board.getCharacter(j,i);\n }\n }\n }\n return tmp;\n }", "public String toString() {\n\t\tthis.setDepartureTime(System.currentTimeMillis());\n\t\tfloat waittime = (float)(departureTime - arrivalTime) / 1000 ;\n\n\t\treturn \"[Time \" + departureTime + \"] Omnibus #\" + vehicleNumber + \" (\" + getBound() + \"). Tiempo total de espera \" + waittime + \" segundos.\";\n\t}", "private String rowString(int onLights, int lightsInRow, String lampType) {\n\n\t\tint offLights = lightsInRow - onLights;\n\t\tString on = String.join(\"\", Collections.nCopies(onLights, lampType));\n\t\tString off = String.join(\"\", Collections.nCopies(offLights, \"0\"));\n\n\t\treturn on + off;\n\t}", "@Override\n public String payloadToString() {\n return \"DesiredDwell[\" + hallway + \"] = \" + getValue();\n }", "public String toString() {\n/* 318 */ switch (this.h) {\n/* */ case 1:\n/* 320 */ return \"Forward RCT\";\n/* */ case 2:\n/* 322 */ return \"Forward ICT\";\n/* */ case 0:\n/* 324 */ return \"No component transformation\";\n/* */ } \n/* 326 */ throw new IllegalArgumentException(\"Non JPEG 2000 part I component transformation\");\n/* */ }", "@Override\n public String toHexString() {\n return ll3pAddress.toHexString();\n }", "public void setLane(int l) {\r\n\t\tlane = l;\r\n\t}", "public String toString() {\r\n\t\treturn String.format(\"\\t[Flight No. %d]\\n\\tClass\\t\\t\\t: \"+\r\n\t\t\"%s\\n\\tOrigin\\t\\t\\t: %s\\n\\tDestination\\t\\t: %s\" + \r\n\t\t\"\\n\\tDate\\t\\t\\t: %s\\n\\tDeparture/Arrival Time : %s\\n\\t\"+\r\n\t\t\"Price\\t\\t\\t: %.2f RM\\n\\tChild Perc.\\t\\t: %d %%\\n\\t\"+\r\n\t\t\"Movie\\t\\t\\t: %s\\n\\t\"+\r\n\t\t\"---------------------------------------------\" \r\n\t\t, getFlightNo(), getType(), getOrigin(), getDestination(), \r\n\t\tgetFormattedDate(), getDeparr(), getPrice(), getChildPerc(), \r\n\t\tshowMovie());\r\n\t}", "public String toString(){\n\t\t\tString x = (roomnumber + \" \" + nop + \" \" + equipment + \" \" + price + \" \" + priceoffer + \" \" + rating);\n\t\t\treturn x;\n\t\t}", "public String toString()\n\t{\n\t\tint poleSize = pole.size();\n\t\tString s = \"\";\n\t\tfor(int i = 0; i < poleSize; i++)\n\t\t\ts += pole.get(i).getSize() + (i < poleSize - 1 ? \", \" : \"\");\n\t\treturn s;\n\t}", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "private static String formVehicleId(Point source) {\n\t\treturn \"V{\"+ source.getX() + \",\" + source.getY() + \"}\";\n\t}", "private String lightConversion() {\n int reading = ((record[16] & 255) + ((record[21] & 0xC0) << 2));\n //return reading + \"\";\n return formatter.format(((reading * reading) * (-.0009)) + (2.099 * reading));\n }", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "private String edgesLeavingVertexToString() {\n \n //make empty string\n String s = \"\";\n \n //for loop to go through all vertices; \n for (int j = 0; j < arrayOfVertices.length; j++) {\n \n //if it has any edges...\n if (arrayOfVertices[j].getDegree() > 0) {\n \n //go through its edges\n for (int k = 0; k < arrayOfVertices[j].getDegree(); k++) {\n \n //declare an array list\n ArrayList<Vertex> newArrayList = \n arrayOfVertices[j].getAdjacent();\n \n //add to string: the vertex itself + space + edge + line break\n s += j + \" \" + newArrayList.get(k).getID() + \"\\n\"; \n \n } \n } \n }\n \n //add -1, -1 after all the edges\n s += \"-1 -1\";\n \n return s; \n }", "public String buildingString() {\r\n\t\twhichBuild = 1 - whichBuild;\r\n\t\tif (whichBuild == 1) {\r\n\r\n\t\t}\r\n\t\treturn \"420 400;10 10 140 60 60 60 10;140 10 240 60 180 60 10;240 10 400 60 320 60 20 ;10 90 120 180 40 90 15;120 90 280 180 160 90 10;280 90 400 180 340 90 10\";\r\n\t}", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "@Override\n public String toString() {\n // TODO: this, statically\n StringBuilder builder = new StringBuilder(getObs().toString());\n builder.append(\" S\");\n builder.append(firstStep + 1);\n if (lastStep > firstStep) {\n builder.append(\"-\");\n builder.append(lastStep + 1);\n }\n return builder.toString();\n }", "java.lang.String getField1275();", "void printFleet(ConsolePrinter printer);", "public String toString() {\n return \"MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA - sysid:\" + sysid + \" compid:\" + compid + \" p1x:\" + p1x + \" p1y:\" + p1y + \" p1z:\" + p1z + \" p2x:\" + p2x + \" p2y:\" + p2y + \" p2z:\" + p2z + \" frame:\" + frame + \"\";\n }", "public String getFlights(){\r\n String str = new String();\r\n Iterator<Flight> iter = flights.iterator();\r\n\r\n while (iter.hasNext()){\r\n Flight temp = iter.next();\r\n str += \"\\n Flight ID: \" + temp.flightID + \"\\n Flight \" + temp.flightDate + \"\\n Plane ID: \" + temp.plane.planeID + \"\\n\";\r\n }\r\n return \"\\n Pilot Flights \\n\" + str + \"\\n\";\r\n }", "public String toDotString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"digraph {\\n\");\n\n for (Connection connection : connections) {\n for (ConnectionEndPoint output : connection.outputs) {\n String edge = String.format(\" %s -> %s [label=\\\"%s\\\"];\\n\",\n connection.input.getStageName(), output.getStageName(), connection.getName());\n builder.append(edge);\n }\n }\n\n for (Stage stage : stages.values()) {\n builder.append(String.format(\" %s;\\n\", stage.name));\n }\n\n builder.append(\"}\\n\");\n return builder.toString();\n }", "public String toParsableString(TypeDescriptor td)\n {\n String retval = getSQLTypeName();\n\n switch (getTypeFormatId())\n {\n case StoredFormatIds.BIT_TYPE_ID_IMPL:\n case StoredFormatIds.VARBIT_TYPE_ID_IMPL:\n\t\t\t int rparen = retval.indexOf(')');\n\t\t\t String lead = retval.substring(0, rparen);\n\t\t\t retval = lead + td.getMaximumWidth() + retval.substring(rparen);\n\t\t\t break;\n\n case StoredFormatIds.CHAR_TYPE_ID_IMPL:\n case StoredFormatIds.VARCHAR_TYPE_ID_IMPL:\n case StoredFormatIds.BLOB_TYPE_ID_IMPL:\n case StoredFormatIds.CLOB_TYPE_ID_IMPL:\n retval += \"(\" + td.getMaximumWidth() + \")\";\n break;\n\n case StoredFormatIds.DECIMAL_TYPE_ID_IMPL:\n retval += \"(\" + td.getPrecision() + \",\" + td.getScale() + \")\";\n break;\n }\n\n return retval;\n }", "public final static String penniesToString(long pennies)\r\n\t{\r\n\t\tboolean negative;\r\n\t\tif (pennies < 0)\r\n\t\t{\r\n\t\t\tpennies = -pennies;\r\n\t\t\tnegative = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnegative = false;\r\n\t\t}\r\n\t\tString s = Long.toString(pennies);\r\n\t\tint len = s.length();\r\n\t\tswitch (len)\r\n\t\t{\r\n\t\tcase 1:\r\n\t\t\ts = \"0.0\" + s;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\ts = \"0.\" + s;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\ts = s.substring(0, len - 2) + \".\" + s.substring(len - 2, len);\r\n\t\t\tbreak;\r\n\t\t} // end switch\r\n\t\tif (negative)\r\n\t\t{\r\n\t\t\ts = \"-\" + s;\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public static String dnl() {\n return dnl;\n }", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}" ]
[ "0.6118267", "0.5807767", "0.5508812", "0.5376438", "0.52492917", "0.52482224", "0.5219618", "0.51805425", "0.5178427", "0.5133578", "0.5102842", "0.5094916", "0.5084879", "0.5064408", "0.50468946", "0.50441426", "0.50227326", "0.50205165", "0.5015917", "0.4992992", "0.49862635", "0.4983024", "0.49614167", "0.49313137", "0.49307123", "0.49255782", "0.49234894", "0.49203756", "0.48830584", "0.4874146", "0.48674503", "0.48551655", "0.4851037", "0.48353735", "0.481512", "0.48128828", "0.48095998", "0.48017597", "0.4791148", "0.47879863", "0.47872728", "0.47800946", "0.47794318", "0.47733667", "0.4758698", "0.4754954", "0.4753629", "0.47528327", "0.4750958", "0.4750337", "0.47436756", "0.47359985", "0.4732263", "0.47305188", "0.4723759", "0.4720112", "0.47168404", "0.47075588", "0.47013023", "0.4698812", "0.4697043", "0.46905217", "0.46904552", "0.46842888", "0.46783212", "0.4677472", "0.4670657", "0.46684718", "0.4667618", "0.46650198", "0.46598387", "0.46595162", "0.46569312", "0.4656835", "0.46510425", "0.46478793", "0.46438178", "0.46435025", "0.46404427", "0.46384272", "0.46372995", "0.4630145", "0.46168286", "0.46110046", "0.46101534", "0.4600077", "0.4595862", "0.45936763", "0.45907196", "0.45899665", "0.45839173", "0.4583505", "0.45812872", "0.45800447", "0.45757505", "0.4574297", "0.45689887", "0.45685124", "0.45630333", "0.45630333" ]
0.7470521
0
This function is the main function.
public static void main(final String[] args) { // input System.out.println("Vehicles!\n"); System.out.println("Not instantiating abstract Vehicle class\n"); Scanner truckInput = new Scanner(System.in); System.out.print("What is the color of the truck: "); try { String truckColour = truckInput.nextLine(); System.out.print("Accelerate by: "); int truckAccelerate = truckInput.nextInt(); System.out.print("Brake by: "); int truckBrake = truckInput.nextInt(); System.out.print("How much air is provided: "); int amountOfAir = truckInput.nextInt(); System.out.print("What is the plate number: "); String plateNumber = truckInput.next(); System.out.print("What is the brand: "); String brand = truckInput.next(); // try to instantiate abstract class // Vehicle myVehicle = new Vehicle("White"); // call object Truck truck = new Truck(truckColour, brand); // pass the states in truck.acceleration(truckAccelerate); truck.brake(truckBrake); truck.setPlateNumber(plateNumber); // print the changed state System.out.println("\nTruck after:"); truck.printVehicleInfo(); System.out.println("Amount of air: " + truck.provideAir(amountOfAir)); System.out.println("Plate number: " + truck.getPlateNumber()); System.out.println("Brand: " + truck.getBrand() + "\n"); System.out.println("--------------------------"); // input System.out.println(); Scanner bikeInput = new Scanner(System.in); System.out.print("What is the color of the bike: "); String bikeColour = bikeInput.nextLine(); System.out.print("Accelerate by: "); int bikeAccelerate = bikeInput.nextInt(); System.out.print("Brake by: "); int bikeBrake = bikeInput.nextInt(); System.out.print("Bike's gear: "); int bikeGear = bikeInput.nextInt(); System.out.print("Bike's tire size: "); int bikeTireSize = bikeInput.nextInt(); System.out.println("Ring the bell!"); // call object Bike bike = new Bike(bikeColour, bikeGear, bikeTireSize); // pass the states in bike.acceleration(bikeAccelerate); bike.brake(bikeBrake); // current state System.out.println("\nBike after: "); bike.printVehicleInfo(); System.out.println("Cadence: " + bike.getCadence()); System.out.println("Gear: " + bike.getGear()); System.out.println("Tire size: " + bike.getTireSize()); System.out.println(bike.ringBell()); // get the number of tires of the truck and the bike System.out.println("\n# of tires of a truck: " + truck.nOfTires()); System.out.println("# of tires of a bike: " + bike.nOfTires()); } catch (Exception err) { System.out.println("\nPlease enter an integer"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main()\n\t{\n\t}", "public static void main(String[] args)\r\t{", "public static void main(){\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \r\n\t}", "public static void main (String []args){\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String []args){\n\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args)\r\n {\n \r\n \r\n }", "public static void main() {\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main(String args[]){\n\t\t\n\t\n\t}", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}", "public static void main(String args[]){\n\t\t\n\t}", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args) {\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main (String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String args[]) {\r\n }", "public static void main(String[] args){\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args)\r\n {\r\n \r\n \r\n \r\n }", "static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t \t\n\t \t\n\t}", "public static void main(String[] args){\n \t\n }", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n \r\n}", "public static void main(String[] args) {\n \n\t\t}", "public static void main(String[] args) {\n\t\t\t\t\n\t}", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main (String [] args){\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) \n {\n\t \n\t \n\t \n}", "public static void main(String[] args) {\n\t\r\n}", "public static void main(String[] args) {\n \n }", "public Main() {\n \n \n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t \n\t}" ]
[ "0.775976", "0.7575223", "0.75165486", "0.7481834", "0.74528766", "0.74460876", "0.73535746", "0.7319316", "0.7312853", "0.7258788", "0.7258788", "0.7258788", "0.7258788", "0.7258788", "0.7258788", "0.7247764", "0.7246071", "0.72459865", "0.72459865", "0.72304296", "0.72301304", "0.7228656", "0.7228656", "0.7223978", "0.7202972", "0.7193817", "0.7189577", "0.71764743", "0.7171087", "0.71707416", "0.71707416", "0.7149401", "0.7145749", "0.71424824", "0.71422786", "0.7121403", "0.71136016", "0.7112934", "0.7112934", "0.71075624", "0.70916784", "0.7081478", "0.70765543", "0.70635974", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.7054621", "0.70465356", "0.704482", "0.70436317", "0.70436317", "0.70436317", "0.70436317", "0.7042868", "0.7042868", "0.7042868", "0.7042868", "0.70380336", "0.7037769", "0.7028769", "0.70261043", "0.7021877", "0.7018556", "0.7010197", "0.70057535", "0.70057535", "0.7001093", "0.70005673", "0.699919", "0.6994601", "0.6994409", "0.6994105", "0.69869566", "0.6983956", "0.6983403", "0.6981828" ]
0.0
-1
198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into on the same night. Given a list of nonnegative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police. Credits:
public int rob1(int[] nums) { int n = nums.length; if(n == 0) return 0; if(n == 1) return nums[0]; int max = nums[0]; for(int i = 1; i < n; i++){ int local = Math.max(nums[i - 1], nums[i] + (i > 1 ? nums[i - 2] : 0)); nums[i] = local; max = Math.max(local, max); } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int maxMoneyLooted(int[] houses) {\n int n = houses.length;\n int dp[] = new int[n];\n if(n==0)\n return 0;\n dp[0] = houses[0];\n dp[1]= Math.max(houses[0], houses[1]);\n for(int i =2; i<n ; i++)\n {\n dp[i] = Math.max(houses[i] + dp[i-2], dp[i-1] );\n }\n \n return dp[n-1];\n\t}", "public int houseRobberWithMaxAmount(int[] a) {\n\t\tint n = a.length;\n\t\tif (1 == n)\n\t\t\treturn a[0];\n\n\t\t// Rob house including 1stHouse, excluding last house\n\t\tint amt1 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 0, a.length - 2);\n\t\t// Rob house excluding 1stHouse, including last house\n\t\tint amt2 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 1, a.length - 1);\n\n\t\treturn Math.max(amt1, amt2);\n\t}", "public static int houseRobber(int[] nums) {\n\t\tif(nums==null || nums.length ==0)\n\t\t\treturn 0;\n\t\t\n\t\tint C = 0, DC = 0;\n\t\t\n\t\tfor(int x:nums) {\n\t\t\tint temp = DC;\n\t\t\tDC = Math.max(C, DC);\n\t\t\tC = x + temp;\n\t\t}\n\t\t\n\t\treturn Math.max(C, DC);\n\t}", "public int maximumRobots(int[] chargeTimes, int[] runningCosts, long budget) {\n int n = chargeTimes.length;\n // [front, end).\n int[] deque = new int[n];\n int front = 0;\n int end = 0;\n long sum = 0;\n int left = 0;\n int right = 0;\n for (; right < n; ++right) {\n // add right into the sliding window, so the window becomes [left, right].\n // update sliding window max and window sum.\n while (end - front > 0 && chargeTimes[deque[end - 1]] <= chargeTimes[right]) {\n --end;\n }\n deque[end++] = right;\n sum += runningCosts[right];\n // if the condition is met in the window, do nothing,\n // so the next window size will become one larger.\n // if the condition is not met in the window, shrink one from the front,\n // so the next window size will stay the same.\n if (chargeTimes[deque[front]] + (right - left + 1) * sum > budget) {\n while (end - front > 0 && deque[front] <= left) {\n ++front;\n }\n sum -= runningCosts[left];\n ++left;\n }\n }\n return right - left;\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0, sum = 0;\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n sum = keyboards[i] + drives[j];\n\n if (sum >= max && sum <= b){\n max = sum;\n\n }\n }\n }\n\n if (max == 0) return -1;\n return max;\n\n }", "public static int rob(int[] nums) {\n /*int n=nums.length;\n int[] dp = new int[n];\n if(nums.length==1)\n return nums[0];\n dp[0]=nums[0];\n dp[1]=Math.max(nums[0],nums[1]);\n for(int i=2;i<n;i++)\n dp[i]=Math.max(dp[i-1],dp[i-2]+nums[i]);\n System.out.println(Arrays.toString(dp));\n return dp[n-1];*/\n int n= nums.length;\n int[] dp = new int[n+1];\n dp[0]=0;\n dp[1]=nums[0];\n for(int i=2;i<=n;i++){\n dp[i]=Math.max(dp[i-2]+nums[i-1],dp[i-1]);\n }\n\n return dp[n];\n }", "static int maxLoot(int hval[], int n)\n {\n if (n == 0) return 0;\n if (n == 1) return hval[0];\n if (n == 2) return Math.max(hval[0], hval[1]);\n // dp[i] represent the maximum value stolen so far after reaching house i.\n int[] dp = new int[n];\n // Initialize the dp[0] and dp[1]\n dp[0] = hval[0];\n dp[1] = Math.max(hval[0], hval[1]);\n // Fill remaining positions\n for (int i = 2; i<n; i++)\n dp[i] = Math.max(hval[i]+dp[i-2], dp[i-1]);\n return dp[n-1];\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0;\n ArrayList<Integer> options = new ArrayList<Integer>();\n for(int i = 0 ; i < drives.length ; i++) {\n for(int j = 0 ; j < keyboards.length ; j++) {\n if(drives[i] + keyboards[j] <= b) {\n options.add(drives[i] + keyboards[j]);\n }\n }\n }\n if(options.size() == 0) {\n return -1;\n } else {\n max = options.get(0);\n for(int i = 0 ; i < options.size() ; i++) {\n if(options.get(i) > max) {\n max = options.get(i);\n }\n }\n return max;\n }\n }", "public int solve(String infile) {\r\n\r\n\t\ttry {\r\n\t\t\treadData(infile);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//A temporary object array of bids\r\n\t\tBids[] numBids = populateBids();\r\n\t\t//A temporary integer array to hold the maximum value\r\n\t\tint[] storeMaxRev = new int[numBids.length];\r\n\t\t//A temporary variable for the maximum revenue that will be updated in the main loop.\r\n\t\tint maxRev = 0;\r\n\t\t\r\n\t\t//Invokes the comparator method defined earlier\r\n\t\tLotComparator compareFinishTimes = new LotComparator();\r\n\t\tArrays.sort(numBids,compareFinishTimes);\r\n\t\t\r\n\t\t\r\n\t\t//Edge case check if the number of bids is less than 0\r\n\t\tif(numBids.length <= 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\t//Choose the first bid in the object array.\r\n\t\tstoreMaxRev[0] = numBids[0].priceOfLot;\r\n\t\t\r\n\t\t//From the second element of the object array, iterate through the array and store the price\r\n\t\t//of the element that is larger than the previous element\r\n\t\tfor(int i = 1; i < numBids.length; i++) {\r\n\t\t\tstoreMaxRev[i] = Math.max(numBids[i].priceOfLot, storeMaxRev[i - 1]);\r\n\t\t\t\r\n\t\t\t//Iterating backwards from the second last element relative to i, check if the current element is compatible.\r\n\t\t\t//A compatible bid is when the ending lot number is less than the starting lot number of the next bid.\r\n\t\t\t//If it is an compatible bid, add the price of the current bid to the previous bid and take the maximum price out of the two.\r\n\t\t\tfor(int j = i - 1; j >= 0; j--) {\r\n\t\t\t\tif(numBids[j].endLot < numBids[i].beginningLot) {\r\n\t\t\t\t\tstoreMaxRev[i] = Math.max(storeMaxRev[i], numBids[i].priceOfLot + storeMaxRev[j]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Once all of the bids in numBid object array is processed, we get an integer array that will contain the maximum revenue.\r\n\t\t//This loop iterates through storeMaxRev and selects the largest integer which is then set to the variable maxRev and returned as the answer\r\n\t\tfor(int priceIdx = 0; priceIdx < storeMaxRev.length; priceIdx++) {\r\n\t\t\tif(maxRev < storeMaxRev[priceIdx]) {\r\n\t\t\t\tmaxRev = storeMaxRev[priceIdx];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maxRev;\r\n\t}", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }", "private int highestPossibleValue(List<Card> cards) {\n int value = 0;\n int assCounter = 0;\n\n // Calculate the value without taking * into account\n for (Card card : cards) {\n value += card.getValue();\n if (card.getName().equals(\"*\")) assCounter++;\n }\n\n // Subtracts value of *\n for (int i = 0; i < assCounter; i++) {\n if (value <= 21)\n break;\n value -= 10;\n }\n\n return value;\n }", "public static int getMostMoney(String[] games, int[] time, int[] money){\n int l = time.length; //The lengths of the three lists should be same;\n int t = 120; //The total time\n int[] played = new int[l];\n int[][] val = new int[l][121];\n for(int i=1;i<l;i++){\n for(int j=1;j<121;j++){\n if(j<time[i]){\n val[i][j] = val[i-1][j];\n }else\n val[i][j]=Math.max(val[i-1][j],val[i-1][j-time[i]]+money[i]);\n }\n }\n for(int i = l-1;i>=1;i--){\n if(val[i][t] != val[i-1][t]){\n System.out.println(games[i]); //print the best combination of games\n t -= time[i];\n }\n }\n\n return val[l-1][120]; //In this question, Adam can earn $780 at most;\n }", "private Bid sealed(int turn) {\r\n\t\tint highestBidder = turn;\r\n\t\tint highestPrice = 0;\r\n\t\tfor(int i = 0; i < players.length; i++) {\r\n\t\t\tint bid = players[(i+turn+1)%players.length].getBid(-1);\r\n\t\t\tif(bid > highestPrice) {\r\n\t\t\t\thighestPrice = bid;\r\n\t\t\t\thighestBidder = (i+turn+1)%players.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Bid(highestBidder,highestPrice);\r\n\t}", "@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "static int getMoneySpent(final int[] keyboards, final int[] drives, final int b) {\n\n\t\t/*\n\t\t * Write your code here.\n\t\t */\n\t\t// Declaring variables:\n\n\t\tint maxAmountPaid = 0;\n\t\tArrayList<Integer> amountPaid = new ArrayList<Integer>();\n\n\t\t// Ordering the arrays keyboards and drives:\n\t\tArrays.sort(keyboards);\n\t\tArrays.sort(drives);\n\t\t//System.out.println(Arrays.toString(keyboards));\n\t\t//System.out.println(Arrays.toString(drives));\n\n\t\t// Choosing the matching combination (max keyboard option, max drives option)\n\t\tfor (int keyb : keyboards) {\n\t\t\tfor (int usb : drives) {\n\t\t\t\tamountPaid.add(keyb + usb);\t// For each loop, sum keyboard + drive into amountPaid\n\t\t\t\t//System.out.println(amountPaid.get(amountPaid.size()-1));\n\t\t\t}\n\t\t}\n\t\t// Ordering the amountPaid arraysList\n\t\tCollections.sort(amountPaid);\n\t\t//System.out.println(amountPaid);\n\n\t\tif (amountPaid.get(0) > b) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tfor (int amount = 0; amount < amountPaid.size(); amount++) {\n\t\t\t\tif (amountPaid.get(amount) > b && maxAmountPaid == 0) {\n\t\t\t\t\tmaxAmountPaid = amountPaid.get(amount-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maxAmountPaid;\n\t\t}\n\t\t\n\t}", "long getMaxItemFindings();", "static int maximumWealth(int[][] accounts) {\n\t\t\n\t\tint valueOfMaxCustomer = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int[] customerAccounts : accounts) {\n\t\t\t\n\t\t\tint valueOfCustomer = 0;\n\t\t\t\n\t\t\tfor(int valueInAccount : customerAccounts) {\n\t\t\t\tvalueOfCustomer += valueInAccount;\n\t\t\t}\n\t\t\t\n\t\t\tif(valueOfCustomer > valueOfMaxCustomer) {\n\t\t\t\tvalueOfMaxCustomer = valueOfCustomer;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valueOfMaxCustomer;\n \n }", "public static Trip tripWithMaxPersons(HashSet<Person> personList, HashSet<Trip> tripList) {\n ForexConverter fc = new ForexConverter();\n double threshold = 2.00;\n HashMap<Trip, Integer> result = new HashMap<>();\n // for each trip - loop\n for (Trip trip : tripList) { // trip - one trip\n // for each person\n for (Person person : personList) {\n // check price in the same currency\n // check each person whether they are ready in: price, gear, date, qualification\n if (person.getAvailableDates().contains(trip.getDate())\n && person.getGears().containsAll(trip.getGears())\n && person.getQualifications().containsAll(trip.getQualifications())\n && person.getMoney().isLargerThan(trip.getPrice(), fc)\n || person.getMoney().isCloseTo(trip.getPrice(), fc, threshold)) {\n // only add the person when there is person ready for the trip\n if (result.containsKey(trip)) {\n result.put(trip, result.get(trip) + 1);\n } else {\n result.put(trip, 1);\n }\n }\n }\n }\n int max = 0;\n Trip tripResult = null;\n// Set<Map.Entry<Trip, Integer>> entries = result.entrySet();\n// result.forEach((K,V)->{\n//\n// });\n for(Trip trip: result.keySet()){\n int personNum = result.get(trip);\n if(personNum > max) {\n max = personNum;\n tripResult = trip;\n }\n }\n return tripResult;\n }", "public static long stockmax(List<Integer> prices) {\n\t\t// Write your code here\n\t\tlong profit=0L;\n\t\tlong maxSoFar=0L;\n\t\t for (int i = prices.size() - 1; i > -1 ; i--) {\n\t if (prices.get(i) >= maxSoFar) {\n\t maxSoFar = prices.get(i);\n\t }\n\t profit += maxSoFar - prices.get(i);\n\t }\n\t return profit;\n\t}", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "String getMaximumRedeliveries();", "public static void main(String[] args){\r\n\r\n Scanner sc = new Scanner(System.in);\r\n while(sc.hasNextLong()) {\r\n int n = sc.nextInt();\r\n int p = sc.nextInt();\r\n \r\n ArrayList<Integer> listeners = new ArrayList<Integer>();\r\n \r\n int maxProfit=0;\r\n \r\n for(int i=0; i<n; i++){\r\n \tlisteners.add(sc.nextInt());\r\n }\r\n \r\n //Strip the ending\r\n while(listeners.get(0)-p <=0){\r\n \tlisteners.remove(0);\r\n }\r\n while(listeners.get(listeners.size()-1)-p<=0){\r\n \tlisteners.remove(listeners.size()-1);\r\n }\r\n \r\n for(int i=0; i<listeners.size(); i++){\r\n \tif(listeners.get(i)<=p){\r\n \t\tcontinue;\r\n \t}\r\n \tfor(int j=i; j<listeners.size(); j++){\r\n \t\tint profit=0;\r\n \t\tif(i==j){\r\n \t\t\tprofit = listeners.get(i)-p;\r\n \t\t}else{\r\n \t\t\tfor(int k=i; k<=j; k++){\r\n \t\t\t\tprofit+=listeners.get(k)-p;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif(profit > maxProfit){\r\n \t\t\tmaxProfit = profit;\r\n \t\t}\r\n \t}\r\n }\r\n\r\n\r\n System.out.println(maxProfit);\r\n }\r\n sc.close();\r\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\r\n int testcases = scan.nextInt();\r\n int max = 0;\r\n for (int p = 0;p< testcases;p++) {\r\n String ip[] = scan.nextLine().split(\" \");\r\n int n = Integer.parseInt(String.valueOf(ip[0]));\r\n int k = Integer.parseInt(String.valueOf(ip[1]));\r\n String houses[] = scan.nextLine().split(\" \");\r\n int[] houseno = new int[0];\r\n for (int i = 0; i < n; i++) {\r\n //houseno[i] = Integer.parseInt(houses[i]);\r\n houseno[i] = scan.nextInt();\r\n }\r\n for (int g = 0; g < n; g++) {\r\n for (int j = g; j < k + g; j++) {\r\n if (houseno[j] > max) {\r\n max = houseno[j];\r\n\r\n }\r\n System.out.println(max);\r\n }\r\n }\r\n }\r\n\r\n }", "private int houseRobberWithMaxAmountHousesFromItoJ(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tif (j - i == 1)\n\t\t\treturn Math.max(a[i], a[j]);\n\n\t\tint n = j - i + 1;\n\t\tSystem.out.println(n);\n\t\tint t[] = new int[n + 1];\n\t\tt[0] = 0;\n\t\tt[1] = a[i];\n\n\t\tfor (int k = i + 2; k <= n; k++) {\n\t\t\tt[k] = Math.max(t[k - 1], t[k - 2] + a[k - 1]);\n\t\t}\n\t\tCommonUtil.printArray(t);\n\t\treturn t[n];\n\t}", "private Pair[] bribeCalculateBag(final int maxCards,\n final HashMap<String, Integer> association) {\n final int minMoney = 5;\n final int maxBagSize = 3;\n if (getInventory().getMoney() < minMoney || numberOfIllegals(association) == 0) {\n return calculateBag(maxCards, association);\n }\n Pair[] result;\n if (numberOfIllegals(association) <= 2 || getInventory().getMoney() < minMoney * 2) {\n getInventory().getBagToGive().setBribe(minMoney);\n getInventory().setMoney(getInventory().getMoney() - minMoney);\n int duplicate = findIllegal(association);\n removeOneAsset(findIllegal(association));\n if (duplicate == findIllegal(association)) {\n result = new Pair[1];\n result[0] = new Pair<>(findIllegal(association), 2);\n getInventory().setNumberOfDeclared(2);\n } else {\n if (findIllegal(association) == -1) {\n result = new Pair[1];\n result[0] = new Pair<>(duplicate, 1);\n getInventory().setNumberOfDeclared(1);\n } else {\n result = new Pair[2];\n result[0] = new Pair<>(duplicate, 1);\n result[1] = new Pair<>(findIllegal(association), 1);\n getInventory().setNumberOfDeclared(2);\n }\n }\n removeOneAsset(findIllegal(association));\n getInventory().setDeclaredAssets(0);\n return result;\n } else {\n getInventory().getBagToGive().setBribe(minMoney * 2);\n getInventory().setMoney(getInventory().getMoney() - (minMoney * 2));\n int contor = maxCards - 1;\n final int contorStart = contor;\n int[] resultAux = new int[maxBagSize];\n getInventory().setDeclaredAssets(0);\n while (contor > 0 && findIllegal(association) != -1) {\n resultAux[findIllegal(association) % maxBagSize]++;\n removeOneAsset(findIllegal(association));\n contor--;\n }\n getInventory().setNumberOfDeclared(contorStart - contor);\n getInventory().setDeclaredAssets(0);\n contor = 0;\n for (int it : resultAux) {\n if (it != 0) {\n contor++;\n }\n }\n result = new Pair[contor];\n if (contor == maxBagSize) {\n result = new Pair[maxBagSize];\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n result[1] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n result[2] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n } else {\n if (contor == 1) {\n result = new Pair[1];\n if (resultAux[0] > 0) {\n result[0] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n }\n if (resultAux[1] > 0) {\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n }\n if (resultAux[2] > 0) {\n result[0] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n } else {\n result = new Pair[2];\n int i = 0;\n if (resultAux[0] > 0) {\n result[i] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n i++;\n }\n if (resultAux[1] > 0) {\n result[i] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n i++;\n }\n if (resultAux[2] > 0) {\n result[i] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n }\n }\n return result;\n }\n\n }", "public long getPropertyBalanceMax();", "public static void greatestSavings(double [] house1, double [] house2, double [] house3) {\n\t\t//Greatest savings\n if (house1[2] > 0 && house1[2] >= house2[2]) \n maxSavings = house1[2];\n else \n maxSavings = house2[2];\n \n if (house3[2] > maxSavings) \n maxSavings = house3[2];\n System.out.println(\"savings: \" + maxSavings);\n\t}", "static int howManyGames(int p, int d, int m, int s) {\n // Return the number of games you can buy\n int res = 0;\n int cost = p;\n if(p > s){\n return 0;\n }\n if(p == s){\n return 1;\n }\n while(cost>=m && s>0 && !(s<m) && s>=cost){\n if(s>=m){\n s = s-cost;\n res++;\n\n if(cost == m)\n cost = cost-m;\n else\n cost = cost-d;\n }\n if(cost <=m){\n cost = m;\n }\n }\n return res;\n }", "static int maxProfit(int[] prices)\n\t{\n\t\tint len = prices.length;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint profit = 0;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tmin = min > prices[i] ? prices[i] : min;\n\t\t\tprofit = prices[i] - min > profit ? prices[i] - min : profit; \n\t\t}\n\t\treturn profit;\n\t}", "public int rob(int[] nums) {\n\t\tif(nums == null || nums.length == 0){\n\t\t\treturn 0;\n\t\t}\n\t\tint res = 0, n = nums.length;\n\t\tint[] dp = new int[n + 1];\n\t\tdp[1] = nums[0];\n\t\tfor(int i = 2; i <= n; i++){\n\t\t\tdp[i] = Math.max(dp[i - 2] + nums[i - 1], dp[i - 1]);\n\t\t}\n\t\treturn dp[n];\n\t}", "static int max(int ropeLen) {\n\t\tint[] dp = new int[ropeLen + 1];\n\t\tdp[0] = 1;\n\t\tfor (int i = 1; i <= ropeLen; i++) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tmax = Math.max(max, dp[j] * (i - j));\n\t\t\t}\n\t\t\tdp[i] = max;\n\t\t}\n\t\treturn dp[ropeLen];\n\t}", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n\n int t = 0;\n List<Integer> r = new ArrayList<>();\n\n Arrays.sort(keyboards);\n Arrays.sort(drives);\n\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n\n t = keyboards[i] + drives[j];\n\n if(t <= b)\n r.add(t);\n }\n }\n\n Collections.sort(r);\n\n\n\n if(r.size() > 0){ return r.get(r.size()-1);}\n else{ return -1; }\n\n }", "public int maxProfit(int[] prices) {\n\n if(prices.length==0) return 0;\n\n int[] dp = new int[3];\n\n dp[0] = -prices[0];\n\n dp[1] = Integer.MIN_VALUE;\n\n dp[2] = 0;\n\n for(int i=1; i<prices.length; i++){\n\n int hold = Math.max(dp[0], dp[2]- prices[i]);\n\n int coolDown = dp[0] + prices[i];\n\n int notHold = Math.max(dp[2], dp[1]);\n\n dp[0] = hold;\n\n dp[1] = coolDown;\n\n dp[2] = notHold;\n\n\n }\n\n return Math.max(Math.max(dp[0],dp[1]),dp[2]);\n\n }", "public int rob(int[] nums) {\r\n if (nums.length == 1) return nums[0];\r\n return Math.max(rob(nums, 0, nums.length - 2), rob(nums, 1, nums.length - 1));\r\n}", "private static int maxSubArrayGolden(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n // in case the result is negative.\n int max = Integer.MIN_VALUE;\n int sum = 0;\n for (int num : nums) {\n sum += num;\n max = Math.max(sum, max);\n sum = Math.max(sum, 0);\n }\n return max;\n }", "public int selectionFunctionBiggestCoin(MyList<Integer> candidates){\n\n\t\t//-----------------------------\n\t\t//Output Variable --> InitialValue\n\t\t//-----------------------------\n\t\tint res = -1;\n\n\t\t//-----------------------------\n\t\t//SET OF OPS\n\t\t//-----------------------------\n\t\tint maxWeight = Integer.MIN_VALUE;\n\t\tint index = candidates.length() - 1;\n\n\n\t\twhile (index >= 0) {\n\t\t\t// OP1.1. Auxiliary variables:\n\t\t\t// We use 'e0' to compute the first item of 'candidate' just once.\n\t\t\tint e0 = candidates.getElement(index);\n\n\t\t\t// OP1.1. If a not previously considered item improves minWeight, we\n\t\t\t// update 'res' and 'minWeight'\n\t\t\tif (e0 > maxWeight) {\n\t\t\t\tres = index;\n\t\t\t\tmaxWeight = e0;\n\t\t\t}\n\n\t\t\t// OP1.2. We decrease 'index' so as to try the previous item of\n\t\t\t// 'candidates'\n\t\t\tindex--;\n\t\t}\n\n\t\t//-----------------------------\n\t\t//Output Variable --> Return FinalValue\n\t\t//-----------------------------\t\t\n\t\treturn res;\t\t\n\t}", "public static void greatestIncome(double [] house1, double [] house2, double [] house3) {\n //Greatest house income \n if (house1[0] > 0 && house1[0] >= house2[0]) \n maxIncome = house1[0];\n else \n maxIncome = house2[0];\n if (house3[0] > maxIncome) \n maxIncome = house3[0];\n System.out.println(\"Greatest income: \" + maxIncome);\n\t}", "private static int maxMoney(int[] coins,int coinsCount,int startIndex){\n int maxScore = 0;\n if(coinsCount==1) maxScore = coins[startIndex];\n else{\n maxScore = Math.max(coins[startIndex]+sum(coins,coinsCount-1, startIndex+1)-maxMoney(coins,coinsCount-1, startIndex+1),\n coins[coinsCount+startIndex-1]+sum(coins,coinsCount-1,startIndex)-maxMoney(coins,coinsCount-1,startIndex));\n }return maxScore;\n }", "private int houseRobberWithMaxAmountHousesFromItoJInConstantSpace(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tint incl = a[i];\n\t\tint excl = 0, temp;\n\n\t\tfor (int k = i + 1; k <= j; k++) {\n\t\t\ttemp = incl;\n\t\t\tincl = Math.max(excl + a[k], incl);\n\t\t\texcl = temp;\n\t\t}\n\t\treturn incl;\n\t}", "static long maximumPeople(long[] p, long[] x, long[] y, long[] r) {\n city[] allCity = new city[n];\n for(int i = 0; i < n; i++)\n allCity[i] = new city(p[i], x[i]);\n Arrays.sort(allCity);\n for(int i = 0; i < m; i++){\n long start = y[i] - r[i];\n long end = y[i] + r[i];\n int startindex = Arrays.binarySearch(allCity, new city(0, start));\n if(startindex < 0)\n startindex = - startindex - 1;\n else{\n long value = allCity[startindex].loc;\n while(true){\n startindex--;\n if(startindex < 0)\n break;\n if(allCity[startindex].loc != value)\n break;\n }\n startindex++;\n }\n int endindex = Arrays.binarySearch(allCity, new city(0, end));\n if(endindex < 0)\n endindex = -endindex - 2;\n else{\n long value = allCity[endindex].loc;\n while(true){\n endindex++;\n if(endindex >= n)\n break;\n if(allCity[endindex].loc != value)\n break;\n }\n endindex--;\n }\n for(int j = startindex; j <= endindex; j++){\n if(j >= n)\n break;\n allCity[j].clouds.add(i);\n }\n }\n int prev = -1;\n long sunny = 0;\n long max = 0;\n long accu = 0;\n for(int i = 0; i < n; i++){\n if(allCity[i].clouds.size() == 0)\n sunny += allCity[i].population;\n if(allCity[i].clouds.size() == 1){\n if(allCity[i].clouds.get(0) == prev){\n accu += allCity[i].population;\n if(accu > max)\n max = accu;\n }\n else {\n accu = allCity[i].population;\n prev = allCity[i].clouds.get(0);\n if(accu > max)\n max = accu;\n }\n }\n }\n return max + sunny;\n }", "public static void main(String[] args) {\n System.out.println(winningScoreForMarbleGame(9, 25));\n System.out.println(winningScoreForMarbleGame(10, 1618));\n System.out.println(winningScoreForMarbleGame(13, 7999));\n System.out.println(winningScoreForMarbleGame(17, 1104));\n System.out.println(winningScoreForMarbleGame(21, 6111));\n System.out.println(winningScoreForMarbleGame(30, 5807));\n\n// 424 players; last marble is worth 71482 points: high score is 408679\n System.out.println(winningScoreForMarbleGame(424, 71482));\n\n// 424 players; last marble is worth 71482 * 100 points: high score is 3443939356\n System.out.println(winningScoreForMarbleGame(424, 71482 * 100));\n }", "public int maxProfitBF(int prices[]) {\n int maxprofit = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n for (int j = i + 1; j < prices.length; j++) {\n int profit = prices[j] - prices[i];\n if (profit > maxprofit)\n maxprofit = profit;\n }\n }\n return maxprofit;\n }", "public int getMaxTotalCost();", "static int migratoryBirds(List<Integer> arr) {\n int count=1;\n int max=arr.get(0);\n HashMap<Integer,Integer> map=new HashMap<>();\n for(int i=0;i<arr.size();i++) {\n \tif(map.containsKey(arr.get(i))) {\n \t\tmap.replace(arr.get(i), map.get(arr.get(i))+1);\n \t}else {\n \t\tmap.put(arr.get(i), count);\n \t}\n }\n \n int ans=0;\n for(Integer i:map.keySet()) {\n \t int n=map.get(i);\n \t if(n>max) {\n \t\t max=n;\n \t\t \tans=i;\n\n \t }\n }\n /*int comp[]=new int[256];\n for(int i=0;i<arr.size();i++){\n comp[arr.get(i)]++;\n }\n for(int i=0;i<comp.length;i++){\n if(comp[i]>max)\n max=comp[i];\n }*/\n return ans;\n }", "public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Your name please\");\n String name = input.nextLine();\n\n // get a number from the user\n System.out.println(\"Give me the amount of money in cents please, \" + name);\n int money = input.nextInt();\n \n // limit the size of the number\n while(money>100000000)\n {\n\tSystem.out.println(\"This number is too big.\");\n\tSystem.out.println(\"Please enter something smaller\");\n\tmoney = input.nextInt();\n }\n \n // do the calculations\n\n int hundreds = money / 10000;\n int leftover = money % 10000;\n\n int fifties = leftover / 5000;\n leftover = leftover % 5000;\n\n int twenties = leftover / 2000;\n leftover = leftover % 2000;\n\n int tens = leftover / 1000;\n leftover = leftover % 1000;\n\n int fives = leftover / 500;\n leftover = leftover % 500;\n\n int ones = leftover / 100;\n leftover = leftover % 100;\n\n int quarters = leftover / 25;\n leftover = leftover % 25;\n\n int dimes = leftover / 10;\n leftover = leftover % 10;\n\n int nickels = leftover / 5;\n leftover = leftover % 5;\n\n int pennies = leftover / 1;\n\n // print the results\n System.out.println(\"\"); System.out.println(\"\"); //formating for results\n\n System.out.println(\"******Dollar Bills******\"); //This is printout of dollar bills \n System.out.print(hundreds + \" Hundred dollar bill(s), \");\n System.out.print(fifties + \" Fifty dollar bill(s), \");\n System.out.print(twenties + \" Twenty dollar bill(s), \"); \n System.out.print(tens + \" Ten dollar bill(s), \");\n System.out.print(fives + \" Five dollar bill(s), \");\n System.out.print(ones + \" One dollar bill(s)\");\n \n System.out.println(\"\"); System.out.println(\"\"); \n\n System.out.println(\"******Coins******\"); //This will printout coins \n System.out.print(quarters + \" Quarter(s), \");\n System.out.print(dimes + \" Dime(s), \");\n System.out.print(nickels + \" Nickel(s), \");\n System.out.print(pennies + \" Penny(s)\");\n\n System.out.println(\"\"); //formating for results2\n\n }", "public static int findMaxProfit(int [] prices){\n int max_profit = 0;\r\n for (int i = 0;i<prices.length-1;i++){\r\n if(prices [i] < prices [i+1]){\r\n max_profit = max_profit + (prices[i+1]-prices[i]);\r\n }\r\n }\r\n return max_profit;\r\n }", "private int demDoiThong(List<Card> bai) {\n List<Card> cards = new ArrayList<>() ;\n int max = 0;\n int count = 0;\n for (int i = 0; i < bai.size() - 1; i++) {\n if (bai.get(i).getId() >= 48) {\n break;\n }\n if (count == 0 && bai.get(i).getCardNumber() == bai.get(i + 1).getCardNumber()) {\n count = 1;\n if (cards.isEmpty()) {\n cards.add(bai.get(i));\n cards.add(bai.get(i + 1));\n }\n } else {\n if (count % 2 != 0) {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber() - 1) {\n count++;\n } else if (bai.get(i).getCardNumber()!= bai.get(i + 1).getCardNumber()) {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n } else {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber()) {\n if(!cards.contains(bai.get(i))){\n cards.add(bai.get(i));\n }\n if(!cards.contains(bai.get(i+1))){\n cards.add(bai.get(i+1));\n }\n count++;\n } else {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n }\n }\n }\n if (count > max) {\n max = count;\n }\n if (max >= 5) {\n this.specialCards.addAll(cards);\n }\n return (max + 1) / 2;\n }", "public int maxProfit(int[] prices, int fee) {\n\n int[] hold = new int[prices.length];\n int[] unhold = new int[prices.length];\n hold[0] = -prices[0];\n \n \n for (int i=1; i< prices.length; i++){\n hold[i] = Math.max(unhold[i-1] - prices[i], hold[i-1]);\n unhold[i] = Math.max(unhold[i-1], hold[i-1] + prices[i]- fee);\n }\n return unhold[prices.length-1];\n \n }", "static public int getGoblinMaxHP(int battles){\n maxHP = rand.nextInt(8) + 10 + battles;\n currentHP = maxHP;\n return maxHP;\n }", "public static int getMaxAreaBruteForce(List<Integer> heights) {\n int maxArea = 0, N = heights.size();\n for (int i = 0; i < N; i++)\n for (int j = i + 1; j < N; j++) {\n int currArea = Math.min(heights.get(i), heights.get(j)) * (j - i);\n if (currArea > maxArea) maxArea = currArea;\n }\n return maxArea;\n }", "public int rob(int[] nums) {\n if (nums.length == 1) {\n return nums[0];\n }\n int len = nums.length;\n return Math.max(helper(nums, 0, len - 2), helper(nums, 1, len - 1));\n}", "public static void main(String[] args) {\n\t\tint [] houses= {6,7,1,30,8,2,4};\n\t\tint val=topDown(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tint [] houses1= {20,5,1,13,6,11,40};\n\t\tval=topDown(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\t\n\t\tval=botUp(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tval=botUp(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t}", "public int maxProfit(int[] prices){\n int maxprofit = 0;\n for (int i=1;i<prices.length;i++){\n if(prices[i]>prices[i-1]){\n maxprofit += prices[i]-prices[i-1];\n }\n }\n return maxprofit;\n }", "public int rob(int[] nums) {\n int prevYes = 0, prevNo = 0; \n for (int i : nums) { \n int tmp = prevYes;\n prevYes = prevNo + i;\n prevNo = Math.max(tmp, prevNo);\n } \n return Math.max(prevNo, prevYes);\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public static void cutRod() {\n\t\tint[] price = {1,5,8,9,13};\n\t\tint N = price.length;\n\t\tint[] val = new int[N+1];\n\t\tval[0] = 0;\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tmax = Math.max(max, price[j]+val[i-j-1]);\n\t\t\t}\n\t\t\tval[i] = max;\n\t\t}\n\t\tSystem.out.println(\"max val \"+val[N]);\n\t}", "static int maxStolenValue(int[] values) {\n if(values.length == 0) return 0;\n int[] dp = new int[values.length + 1];\n dp[0] = 0;\n dp[1] = values[0];\n for(int i=2; i<=values.length; i++){\n int value1 = values[i-1] + dp[i-2];\n int value2 = values[i-2];\n if(i>=3) value2 += dp[i-3];\n dp[i] = Math.max(value1, value2);\n }\n return dp[values.length];\n }", "public int maxProfit(int[] prices) {\n if(prices.length==0){\n return 0;\n }\n int max = 0;\n int valley = prices[0];\n int peak = prices[0];\n int i=0;\n while(i < prices.length-1){\n while(i<prices.length-1 && prices[i]>=prices[i+1])\n i++;\n valley = prices[i];\n while(i<prices.length-1 && prices[i]<=prices[i+1])\n i++;\n peak = prices[i];\n max += peak- valley;\n }\n return max;\n }", "private int rob(int[] num, int lo, int hi) {\r\n int include = 0, exclude = 0;\r\n for (int j = lo; j <= hi; j++) {\r\n int i = include, e = exclude;\r\n include = e + num[j];\r\n exclude = Math.max(e, i);\r\n }\r\n return Math.max(include, exclude);\r\n}", "private void setMaxPayRaise ()\r\n {\r\n Random randomizer = new Random ();\r\n int[] randValues = {\r\n randomizer.nextInt (4) + 5, randomizer.nextInt (4) + 4,\r\n randomizer.nextInt (5) + 3, randomizer.nextInt (4) + 5,\r\n randomizer.nextInt (4) + 1, randomizer.nextInt (7) + 2,\r\n randomizer.nextInt (6) + 1\r\n };\r\n\r\n for (int j = 0; j < CAREERS.length; j++)\r\n if (CAREERS[j].equalsIgnoreCase (name))\r\n maxPayRaise = randValues[j];\r\n }", "static void getLargestWalkedAway(long amount) {\n if (amount > largestWalkedAway) {\n largestWalkedAway = amount;\n }\n }", "private int[] maxMoney(TreeNode root) {\n\t\tif (root == null) return new int[2];\n\t\tint[] ans = new int[2], l = maxMoney(root.left), r = maxMoney(root.right);\n\t\tans[0] = l[1] + r[1];\n\t\tans[1] = Math.max(root.val + l[0] + r[0], ans[0]);\n\t\treturn ans;\n\t}", "public int getLimit (CallZone zone){//method of returning how many minutes a card can call based on it's balance\r\n double maxMin = balance/costPerMin(zone);//equation of determining how many minutes remain per zone\r\n \r\n return (int)maxMin;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint max_size,n; \n \n ArrayList<item> items=new ArrayList();\n\t\t// item 1, value 6, size 1\n items.add(new item(1, 6, 1));\n\t\t// item 2, value 10, size 2\n\t\titems.add(new item(2, 10, 2));\n\t\t// item 3, value 12, size 3\n\t\titems.add(new item(3, 12, 3));\n\t\t// the size of your knapsack\n max_size=5; \n\t\t// sort items by density\n\t\tsortitems(items);\n \n System.out.println(\"The maximum value we can place into the knapsack is \"+ greedyfractionalknapsack(items, max_size));\n\n\n\n}", "private static int maxProfit(int[] prices) {\n\t\tint profit = 0;\n\t\tint buyPrice = prices[0]; //min price to buy the stock\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tbuyPrice = Math.min(buyPrice, prices[i]);\n\t\t\tprofit = Math.max(profit, (prices[i]-buyPrice));\n\t\t}\n\t\treturn profit;\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] list = new int[n+1];\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tlist[0] = 0;\n\t\tlist[1] = arr[1];\n\t\tif(n>=2) {\n\t\t\tlist[2] = arr[1] + arr[2];\n\t\t}\n\t\tif(n>=3) {\n\t\t\tfor(int i=3; i<=n; i++) {\n\t\t\t\tint a = arr[i] + arr[i-1] + list[i-3];\n\t\t\t\tint b = arr[i] + list[i-2];\n\t\t\t\tint c = list[i-1];\n\t\t\t\tlist[i] = Math.max(c, Math.max(a, b));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Math.max(list[n], list[n-1]));\n\t\t\n\t}", "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }", "private HashMap<Integer, Integer> obtainBills(double amount, HashMap<Integer, Integer> bills)\n {\n if (amount == 0)\n return bills;\n HashMap<Integer, Integer> b;\n HashMap<Integer, Integer> k;\n if (amount >= 50 && typeOfCash.get(50) - bills.get(50) > 0)\n {\n k = new HashMap<>(bills);\n k.put(50, bills.get(50) + 1);\n b = obtainBills(amount - 50, k);\n if (b != null)\n return b;\n }\n if (amount >= 20 && typeOfCash.get(20) - bills.get(20) > 0)\n {\n k = new HashMap<>(bills);\n k.put(20, bills.get(20) + 1);\n b = obtainBills(amount - 20, k);\n if (b != null)\n return b;\n }\n if (amount >= 10 && typeOfCash.get(10) - bills.get(10) > 0)\n {\n k = new HashMap<>(bills);\n k.put(10, bills.get(10) + 1);\n b = obtainBills(amount - 10, k);\n if (b != null)\n return b;\n }\n if (amount >= 5 && typeOfCash.get(5) - bills.get(5) > 0)\n {\n k = new HashMap<>(bills);\n k.put(5, bills.get(5) + 1);\n b = obtainBills(amount - 5, k);\n if (b != null)\n return b;\n }\n return null;\n }", "public static void main(String[] args) {\n int maxSolutions = 0;\r\n int bestPerimeter = 0;\r\n int[] perimeters = new int[1000];\r\n for (int a = 1; a <= 1000; a++) {\r\n for (int b = 1; b <= a; b++) {\r\n double c = Math.sqrt(a*a + b*b);\r\n if (c != (int)c) continue;\r\n int perimeter = a + b + (int)c;\r\n if (perimeter > 1000) break;\r\n perimeters[perimeter - 1]++;\r\n if (perimeters[perimeter - 1] > maxSolutions) {\r\n maxSolutions++;\r\n bestPerimeter = perimeter;\r\n }\r\n }\r\n }\r\n System.out.println(\"Best perimeter: \" + bestPerimeter);\r\n System.out.println(\"Solutions: \" + maxSolutions);\r\n }", "private int FindMaxSum(int[] arr, int length) {\r\n\t\t\r\n\t\tint incl = arr[0];\r\n\t\tint excl = 0;\r\n\t\tint excl_new = 0;\r\n\t\t\r\n\t\tfor(int i = 1;i<arr.length;i++)\r\n\t\t{\r\n\t\t\texcl_new = (incl > excl) ? incl : excl;\r\n\t\t\t \r\n /* current max including i */\r\n incl = excl + arr[i];\r\n excl = excl_new;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn excl>incl?excl:incl;\r\n\t}", "private static int maxProfit2(int[] prices) {\n\t\tint profit = 0;\n\t\t\n\t\tint[] leftProfit = new int[prices.length];\n\t\tleftProfit[0] = 0;\n\t\tint leftBuyPrice = prices[0];\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tleftBuyPrice = Math.min(prices[i], leftBuyPrice);\n\t\t\tleftProfit[i] = Math.max(leftProfit[i-1], (prices[i]-leftBuyPrice));\n\t\t}\n\t\t\n\t\tint[] rightProfit = new int[prices.length];\n\t\trightProfit[prices.length-1] = 0;\n\t\tint rightSellPrice = prices[prices.length-1];\n\t\tfor(int i=prices.length-2; i>=0; i--) {\n\t\t\trightSellPrice = Math.max(prices[i], rightSellPrice);\n\t\t\trightProfit[i] = Math.max(rightProfit[i+1], (rightSellPrice-prices[i]));\n\t\t}\n\t\t\n\t\tfor(int i=0; i<prices.length; i++) {\n\t\t\tprofit = Math.max(profit, leftProfit[i]+rightProfit[i]);\n\t\t}\n\t\treturn profit;\n\t}", "public static void main(String[]args) {\n\tint max = 0;\r\n\r\n\tfor(int i = 999; i >= 900; i--) {\r\n\tfor(int j = 999; j >= 900; j--) {\r\n\t\tif(isPalindrome(i*j) && i*j > max) max = i*j;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"The largest palindrome made from the product of two 3-digit numbers: \" + max);\r\n\t}", "public static void greatestIncomeAfterSavings(double [] house1, double [] house2, double [] house3) {\n\t\t //Greatest income after expenditure\n if (house1[1] > 0 && house1[1] >= house2[1]) \n maxAfterExp = house1[1];\n else \n maxAfterExp = house2[1];\n if (house3[1] > maxAfterExp) \n maxAfterExp = house3[1]; \n System.out.println(\"After savings: \" + maxAfterExp);\n\t}", "static int hurdleRace(int k, int[] height) {\n\t\tint huddleSum = IntStream.of(height).filter(v -> v > k).max().orElse(k) - k;\n\t\treturn huddleSum;\n\t}", "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount; col++) {\n memo[0][col] = 0;// Important. always initialize 1st row with 1s\n }\n\n // populate first col\n for (int row = 0; row < coins.length; row++) {\n memo[row][0] = 0;// Important. initialize 1st col with 1s or 0s as per your need as explained in method comment\n }\n\n /*\n populate second row\n\n if amount(col) <= coin value, then one coin is required with that value to make that amount\n if amount(col) > coin value, then\n total coins required = amount/coin_value, if remainder=0, otherwise amount/coin_value+1\n */\n for (int col = 1; col <= amount; col++) {\n if (col <= coins[0]) {\n memo[1][col] = 1;\n } else {\n int quotient = col / coins[0];\n\n memo[1][col] = quotient;\n\n int remainder = col % coins[0];\n if (remainder > 0) {\n memo[1][col] += 1;\n }\n }\n }\n\n // start iterating from second row\n for (int row = 2; row < memo.length; row++) {\n // start iterating from second col\n for (int col = 1; col < memo[row].length; col++) {\n\n int coin = coins[row - 1];\n\n // formula to find min required coins for an amount at memo[row][col]\n if (coin > col) { // if coin_value > amount\n memo[row][col] = memo[row - 1][col]; // reserve prev row's value (value determined for prev coins)\n } else {\n memo[row][col] = Math.min(memo[row - 1][col], memo[row][col - coin]) + 1; // min(value determined by prev coins - prev row, value at amount=current_amount-coin_value) + 1\n }\n }\n }\n\n printMemo(coins, memo);\n\n return memo[memo.length - 1][memo[0].length - 1]; // final value is stored in last cell\n }", "public int minOperationsMaxProfit(int[] customers, int boardingCost, int runningCost) {\n int max = 0, current = 0;\n int count = 0;\n int ans = 0, currentRound = 0;\n \n for (int i : customers) {\n count += i;\n if (count >= 4) {\n current = current + boardingCost * 4 - runningCost;\n count -= 4;\n } else {\n current = current + boardingCost * count - runningCost;\n count = 0;\n }\n currentRound++;\n if (max < current) {\n max = current;\n ans = currentRound;\n }\n }\n \n while (count > 0) {\n if (count >= 4) {\n current = current + boardingCost * 4 - runningCost;\n count -= 4;\n } else {\n current = current + boardingCost * count - runningCost;\n count = 0;\n }\n currentRound++;\n if (max < current) {\n max = current;\n ans = currentRound;\n }\n }\n \n if (max <= 0) return -1;\n return ans;\n }", "public int maxSatisfied2(int[] customers, int[] grumpy, int X) {\n int satisfied = 0;\n int max = 0;\n for (int i = 0, cur = 0; i < grumpy.length; i++) {\n satisfied += customers[i] * (1 - grumpy[i]);\n cur += grumpy[i] * customers[i];\n if (i >= X) {\n cur -= customers[i - X] * grumpy[i - X];\n }\n max = Math.max(cur, max);\n }\n return satisfied + max;\n }", "public static void main(String[] args) {\n\n\t\tlong largestSum = 0; \n\t\t\n\t\tfor(int a=1;a<100;a++)\n\t\t{\n\t\t\tfor(int b=1;b<100;b++)\n\t\t\t{\n\t\t\t\tBigInteger A = new BigInteger(a+\"\"),B = new BigInteger(b+\"\");\n\t\t\t\t\n\t\t\t\tBigInteger Result = A.pow(b);\n\t\t\t\tif(largestSum<SumOfDigitsInAString(Result.toString()))\n\t\t\t\t{\n\t\t\t\t\tlargestSum = SumOfDigitsInAString(Result.toString());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\tSystem.out.println(SumOfDigitsInAString(Result.toString()));\n\t\t\tSystem.out.println(\"a : \" + a + \"b : \" + b);\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(largestSum);\n\t}", "static int LCS(int arr[])\n {\n int size = arr.length;\n int max_so_far = Integer.MIN_VALUE, max_ending_here = 0;\n\n for (int i = 0; i < size; i++)\n {\n max_ending_here = max_ending_here + arr[i];\n if (max_so_far < max_ending_here)\n max_so_far = max_ending_here;\n if (max_ending_here < 0)\n max_ending_here = 0;\n }\n return max_so_far;\n }", "public static int calculateMaximumProfit(int[] input) {\n int minPrice = Integer.MAX_VALUE;\n int maxPrice = Integer.MIN_VALUE;\n\n if (input == null || input.length <= 1) {\n return 0;\n }\n\n for (int currentPrice : input) {\n minPrice = getMinPrice(minPrice, currentPrice);\n maxPrice = getMaxPrice(maxPrice, currentPrice);\n }\n return maxPrice - minPrice;\n }", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-1);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "public Bid getfinalBid(List<Bid> bids) {\n\t\t\r\n\t\tBid myBid=null;\r\n\t\tdouble lower=0,upper=0,total=0;\r\n\t\t//briskw meso oro\r\n\t for(int i=0;i<bids.size();i++)\r\n\t {\r\n\t \ttotal=total+US.getUtility(bids.get(i));\t \t\r\n\t }\t\t\r\n\t\tlower=total/bids.size();\r\n\t\tupper=lower;\r\n\t\t\r\n\t\t//anoigo ta oria ean den iparxei bid konta ston meso oro \r\n\t\twhile(myBid==null) {\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bids.size();i++) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdouble util = US.getUtility(bids.get(i));\r\n\t\t\t\t\tif (util >= lower && util <= upper) {\r\n\t\t\t\t\t\tmyBid=bids.get(i);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lower>=0.025 && upper<=0.974) {\r\n\t\t\t\tlower=lower-0.025;\r\n\t\t\t\tupper=upper+0.025;\r\n\t\t\t}\r\n\t\t\telse if (upper>0.974) {\r\n\t\t\t\tlower=lower-0.025;\r\n\t\t\t\tupper=1;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\treturn myBid;\r\n\t}", "public int robBetter(int[] nums) {\n int prev = 0, pprev = 0;\n for (int n : nums) {\n int c = Math.max (prev, pprev + n);\n pprev = prev;\n prev = c;\n }\n return prev;\n }", "public int maxProfitOP(int prices[]) {\n int minprice = Integer.MAX_VALUE;\n int maxprofit = 0;\n for (int i = 0; i < prices.length; i++) {\n if (prices[i] < minprice)\n minprice = prices[i];\n else if (prices[i] - minprice > maxprofit)\n maxprofit = prices[i] - minprice;\n }\n return maxprofit;\n }", "public static void main(String[] args) {\n setStandardInput();\n\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt(); // Denoting the number of balls.\n in.skip(\"\\n\");\n\n int maxN = 100005; // The maximum number of balls.\n int maxV = 10005; // The maximum value written on a ball.\n\n int[] nums = new int[maxN];\n ArrayList<Integer> sortedBalls = new ArrayList<>();\n\n for (int i = 1; i <= N; i++) {\n nums[i] = in.nextInt();\n sortedBalls.add(nums[i]);\n }\n\n Arrays.sort(sortedBalls.toArray());\n\n int[] balls = IntStream.of(nums).distinct().toArray(); // V\n\n HashMap<Integer, Integer> H = new HashMap<>();\n for (int i = 0; i < balls.length; i++) {\n H.put(balls[i], i);\n }\n\n int[] counter = new int[maxN];\n for (int i = 1; i <= N; i++) {\n counter[H.get(nums[i])]++;\n }\n\n long[] powerOfTwo = new long[maxN]; // Maybe I can change to LONG as solution\n powerOfTwo[0] = 1L;\n for (int i = 1; i <= N; i++) {\n powerOfTwo[i] = (powerOfTwo[i - 1] << 1L) % mod;\n }\n\n // Let ways[v] denotes the number of ways modulus 10^9+7 that balls can\n // be drawn from the set, so that their GCD equals the number v.\n int[] ways = new int[maxV];\n\n for (int i = 0; i < balls.length; i++) {\n// balls\n }\n\n for (int i = 0; i < balls.length; i++) {\n\n for (int v = 1; v <= 10000; v++) {\n\n int gcd = gcd(balls[i], v);\n ways[gcd] = add(ways[gcd], (int)((powerOfTwo[counter[i]] - 1) * ways[v]));\n }\n\n ways[balls[i]] = add(ways[balls[i]], (int)powerOfTwo[counter[i]] - 1);\n }\n\n int Q = in.nextInt(); // Representing the number of GCD queries that will have to be performed.\n in.nextLine();\n\n// in.skip(\"\\n\");\n\n for (int queryNum = 1; queryNum <= Q; queryNum++) {\n\n int X = in.nextInt(); // Denoting the GCD.\n\n System.out.println(ways[X]);\n }\n }", "public static int maximumProfit(int[] input){\n\t\tint maxTotalProfit = 0;\n\t\tList<Integer> firstBuySellProfits = new ArrayList<Integer>();\n\t\tint minPriceSoFar = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < input.length; i++){\n\t\t\tminPriceSoFar = Math.min(minPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, input[i] - minPriceSoFar);\n\t\t\tfirstBuySellProfits.add(maxTotalProfit);\n\t\t}\n\n\t\tint maxPriceSoFar = Integer.MIN_VALUE;\n\t\tfor(int i = input.length-1; i > 0; i--){\n\t\t\tmaxPriceSoFar = Math.max(maxPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, maxPriceSoFar - input[i] + firstBuySellProfits.get(i - 1));\n\t\t}\n\t\treturn maxTotalProfit;\n\t}", "private int evaluate(boolean maximizing) {\n int selfEval = getCountOfStonesFor(this);\n selfEval += countOfMills(this) * 5;\n selfEval += countOfPossibleMills(this) * 15;\n\n int opponentEval = getCountOfStonesFor(opponent);\n opponentEval += countOfMills(opponent) * 5;\n opponentEval += countOfPossibleMills(opponent) * 15;\n\n return (selfEval - opponentEval) * (maximizing ? 1 : -1);\n }", "public int maxCoins(int[] nums) {\n StringBuffer sb = new StringBuffer();\n HashMap<String, Integer> mem = new HashMap<>();\n for (int i : nums)\n sb.append(i);\n return helper(sb.toString(), mem);\n }", "public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int n = nums.length;\n //composite input\n int[] input = new int[n + 2];\n for (int i = 1; i <= n; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[n + 1] = 1;\n int[][] dp = new int[n + 2][n + 2];\n for (int len = 1; len <= n; len++) {\n //left moves between[1, n - len + 1]\n for (int left = 1; left <= n - len + 1; left++) {\n int right = left + len - 1; //right - left + 1 = len\n for (int k = left; k <= right; k++) {\n dp[left][right] = Math.max(dp[left][right], \n input[left - 1] * input[k] * input[right + 1] + dp[left][k - 1] + dp[k + 1][right]);\n }\n }\n }\n return dp[1][n];\n }", "int getChestsAmount();", "private boolean checkSellHouses(int debt) {\n\t\tArrayList<PropertyCard> cardsWithHouses = new ArrayList<>();\n\t\tfor(PropertyCard c: getCards()) {\n\t\t\tif(c.getHouses()>0) {\n\t\t\t\tcardsWithHouses.add(c);\n\t\t\t}\n\t\t}\n\t\tif(cardsWithHouses.size()>0) {\n\t\t\tPropertyCard mostExpensiveHouses = Collections.max(cardsWithHouses);\n\t\t\tif(debt>=mostExpensiveHouses.getHousePrice()) {\n\t\t\t\tCollections.sort(cardsWithHouses, Collections.reverseOrder());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCollections.sort(cardsWithHouses);\n\t\t\t}\n\t\t\twhile(getMoney()<debt) {\n\t\t\t\tfor(PropertyCard c: cardsWithHouses) {\n\t\t\t\t\t\tsellHouse(c);\n\t\t\t\t\t\tif(c.getHouses() == 0) {\n\t\t\t\t\t\t\tcardsWithHouses.remove(c);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getMoney()>=debt) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\tint[] a = { -2, -3, 4, -1, -2, 1, 5, -3 }; \n\t\t int size = a.length; \n\t int max_so_far = Integer.MIN_VALUE, max_ending_here=0;\n\t for (int i = 0; i < size; i++) { \n\t max_ending_here = max_ending_here + a[i]; \n\t if (max_so_far < max_ending_here) \n\t max_so_far = max_ending_here; \n\t if (max_ending_here < 0) \n\t max_ending_here = 0; \n\t } \n\t // System.out.println(max_so_far);\n\t int product=1,max=0;\n\t for (int i = 0; i < size; i++) {\n\t \t\n\t \tproduct=product*a[i];\n\t \tif(product>max)\n\t \t\tmax=product;\n\t \t if (product < 0) \n\t \t\t product = 1; \n\t \t\n\t }\n\t // System.out.println(max);\n\t \n\t Arrays.sort(a);\n\t int i=0,j=a.length-1;\n\t while(i<a.length &&j<a.length)\n\t {\n\t \t if(a[i]+a[j]==3)\n\t \t {\n\t \t\t System.out.println(a[i]+\" \"+a[j]);\n\t \t\t i++;j--;\n\t \t }\n\t \t else if(a[i]+a[j]>3)\n\t \t\t j--;\n\t \t else if(a[i]+a[j]<3)\n\t \t\t i++;\n\t }\n\t \n\t \n\t }", "public int maxProfit(final List<Integer> A) {\n \n int max = 0;\n \n for(int i=1;i<A.size();i++){\n max += A.get(i) > A.get(i-1) ? A.get(i) - A.get(i-1) : 0; \n }\n return max;\n }", "@Test\n public void returnMaxNumberOfBetsCanMade(){\n assertEquals(maxNumberOfBets,gameRule.getMaxBetsPerRound());\n }", "public int calcMaxLife() {\n\t\treturn 10;\r\n\t}", "static int getMaxCoinValMine(int vals[], int n) {\n int[][] maxVals = new int[n][n];\n for(int wind = 0; wind < n; wind++) {\n // start is always less than or equal to end\n for(int start=0, end = start+wind; end<n; start++,end++ ) {\n // no elements element\n if(wind==0) {\n maxVals[start][end] = 0;\n }\n else if(start == end) {\n // only single element\n maxVals[start][end] = vals[start];\n }\n else {\n // start >=0\n // calculate wind[start][end]\n // chose end, then value is val[end] for P1, val[start][end-1] for P2 and val[start][end-2] for P1\n int valEnd = vals[end] + (( start < end-2)? maxVals[start][end-2]:0);\n // chose start, then value is val[start] for P1, val[start+1][end] for P2 and val[start+2][end] for P1\n int valStart = vals[start] + ((start+2 < end)? maxVals[start+2][end]:0);\n maxVals[start][end] = max(valEnd, valStart);\n }\n }\n }\n return maxVals[0][n-1];\n\n }", "public Money findMaxPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney max = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (max.compareTo(current) == -1 || !flag) {\n\t\t\t\tmax = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn max;\n\t}" ]
[ "0.77231413", "0.7220972", "0.6396927", "0.63830745", "0.6335097", "0.6118086", "0.60416126", "0.60204756", "0.59964454", "0.5966733", "0.5935517", "0.59027874", "0.5901665", "0.5893838", "0.58744466", "0.58638924", "0.5860997", "0.585851", "0.58502567", "0.5824964", "0.5822781", "0.5819286", "0.5811094", "0.57999533", "0.5790044", "0.57732326", "0.5764044", "0.57440555", "0.57364446", "0.5730171", "0.57168794", "0.5706822", "0.5701663", "0.57003295", "0.5696888", "0.5670428", "0.5660595", "0.5659356", "0.56557316", "0.5640638", "0.563008", "0.56298125", "0.56024325", "0.55696225", "0.55506897", "0.55489194", "0.5538303", "0.5532425", "0.55263114", "0.5521395", "0.55148685", "0.54978967", "0.549436", "0.54871887", "0.54838437", "0.54810524", "0.5479857", "0.54753304", "0.54613876", "0.5460844", "0.5455939", "0.54533315", "0.5449431", "0.54479945", "0.5447605", "0.54390746", "0.5437193", "0.5431353", "0.5427725", "0.54265374", "0.5424701", "0.54245025", "0.5422948", "0.54225624", "0.5417275", "0.54130954", "0.5406152", "0.54017997", "0.54012865", "0.53864664", "0.53861135", "0.5385706", "0.5382344", "0.5382224", "0.5377872", "0.537398", "0.53631806", "0.53573483", "0.53536797", "0.53512233", "0.53511345", "0.5348281", "0.53481466", "0.5347278", "0.53420115", "0.53333217", "0.53292966", "0.5322292", "0.5320358", "0.53196067" ]
0.5802061
23
213. House Robber II Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This time, all houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile, the security system for these houses remain the same as for those in the previous street. Given a list of nonnegative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police.
public int rob2(int[] nums) { if(nums.length == 0) return 0; if(nums.length == 1) return nums[0]; return Math.max(max(nums, 0, nums.length - 2), max(nums, 1, nums.length - 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int maxMoneyLooted(int[] houses) {\n int n = houses.length;\n int dp[] = new int[n];\n if(n==0)\n return 0;\n dp[0] = houses[0];\n dp[1]= Math.max(houses[0], houses[1]);\n for(int i =2; i<n ; i++)\n {\n dp[i] = Math.max(houses[i] + dp[i-2], dp[i-1] );\n }\n \n return dp[n-1];\n\t}", "public int houseRobberWithMaxAmount(int[] a) {\n\t\tint n = a.length;\n\t\tif (1 == n)\n\t\t\treturn a[0];\n\n\t\t// Rob house including 1stHouse, excluding last house\n\t\tint amt1 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 0, a.length - 2);\n\t\t// Rob house excluding 1stHouse, including last house\n\t\tint amt2 = houseRobberWithMaxAmountHousesFromItoJInConstantSpace(a, 1, a.length - 1);\n\n\t\treturn Math.max(amt1, amt2);\n\t}", "public static int houseRobber(int[] nums) {\n\t\tif(nums==null || nums.length ==0)\n\t\t\treturn 0;\n\t\t\n\t\tint C = 0, DC = 0;\n\t\t\n\t\tfor(int x:nums) {\n\t\t\tint temp = DC;\n\t\t\tDC = Math.max(C, DC);\n\t\t\tC = x + temp;\n\t\t}\n\t\t\n\t\treturn Math.max(C, DC);\n\t}", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0, sum = 0;\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n sum = keyboards[i] + drives[j];\n\n if (sum >= max && sum <= b){\n max = sum;\n\n }\n }\n }\n\n if (max == 0) return -1;\n return max;\n\n }", "static int maxLoot(int hval[], int n)\n {\n if (n == 0) return 0;\n if (n == 1) return hval[0];\n if (n == 2) return Math.max(hval[0], hval[1]);\n // dp[i] represent the maximum value stolen so far after reaching house i.\n int[] dp = new int[n];\n // Initialize the dp[0] and dp[1]\n dp[0] = hval[0];\n dp[1] = Math.max(hval[0], hval[1]);\n // Fill remaining positions\n for (int i = 2; i<n; i++)\n dp[i] = Math.max(hval[i]+dp[i-2], dp[i-1]);\n return dp[n-1];\n }", "private int houseRobberWithMaxAmountHousesFromItoJ(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tif (j - i == 1)\n\t\t\treturn Math.max(a[i], a[j]);\n\n\t\tint n = j - i + 1;\n\t\tSystem.out.println(n);\n\t\tint t[] = new int[n + 1];\n\t\tt[0] = 0;\n\t\tt[1] = a[i];\n\n\t\tfor (int k = i + 2; k <= n; k++) {\n\t\t\tt[k] = Math.max(t[k - 1], t[k - 2] + a[k - 1]);\n\t\t}\n\t\tCommonUtil.printArray(t);\n\t\treturn t[n];\n\t}", "public int maximumRobots(int[] chargeTimes, int[] runningCosts, long budget) {\n int n = chargeTimes.length;\n // [front, end).\n int[] deque = new int[n];\n int front = 0;\n int end = 0;\n long sum = 0;\n int left = 0;\n int right = 0;\n for (; right < n; ++right) {\n // add right into the sliding window, so the window becomes [left, right].\n // update sliding window max and window sum.\n while (end - front > 0 && chargeTimes[deque[end - 1]] <= chargeTimes[right]) {\n --end;\n }\n deque[end++] = right;\n sum += runningCosts[right];\n // if the condition is met in the window, do nothing,\n // so the next window size will become one larger.\n // if the condition is not met in the window, shrink one from the front,\n // so the next window size will stay the same.\n if (chargeTimes[deque[front]] + (right - left + 1) * sum > budget) {\n while (end - front > 0 && deque[front] <= left) {\n ++front;\n }\n sum -= runningCosts[left];\n ++left;\n }\n }\n return right - left;\n }", "public static int rob(int[] nums) {\n /*int n=nums.length;\n int[] dp = new int[n];\n if(nums.length==1)\n return nums[0];\n dp[0]=nums[0];\n dp[1]=Math.max(nums[0],nums[1]);\n for(int i=2;i<n;i++)\n dp[i]=Math.max(dp[i-1],dp[i-2]+nums[i]);\n System.out.println(Arrays.toString(dp));\n return dp[n-1];*/\n int n= nums.length;\n int[] dp = new int[n+1];\n dp[0]=0;\n dp[1]=nums[0];\n for(int i=2;i<=n;i++){\n dp[i]=Math.max(dp[i-2]+nums[i-1],dp[i-1]);\n }\n\n return dp[n];\n }", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "private int highestPossibleValue(List<Card> cards) {\n int value = 0;\n int assCounter = 0;\n\n // Calculate the value without taking * into account\n for (Card card : cards) {\n value += card.getValue();\n if (card.getName().equals(\"*\")) assCounter++;\n }\n\n // Subtracts value of *\n for (int i = 0; i < assCounter; i++) {\n if (value <= 21)\n break;\n value -= 10;\n }\n\n return value;\n }", "private int houseRobberWithMaxAmountHousesFromItoJInConstantSpace(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tint incl = a[i];\n\t\tint excl = 0, temp;\n\n\t\tfor (int k = i + 1; k <= j; k++) {\n\t\t\ttemp = incl;\n\t\t\tincl = Math.max(excl + a[k], incl);\n\t\t\texcl = temp;\n\t\t}\n\t\treturn incl;\n\t}", "private Bid sealed(int turn) {\r\n\t\tint highestBidder = turn;\r\n\t\tint highestPrice = 0;\r\n\t\tfor(int i = 0; i < players.length; i++) {\r\n\t\t\tint bid = players[(i+turn+1)%players.length].getBid(-1);\r\n\t\t\tif(bid > highestPrice) {\r\n\t\t\t\thighestPrice = bid;\r\n\t\t\t\thighestBidder = (i+turn+1)%players.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Bid(highestBidder,highestPrice);\r\n\t}", "static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "public static void greatestIncome(double [] house1, double [] house2, double [] house3) {\n //Greatest house income \n if (house1[0] > 0 && house1[0] >= house2[0]) \n maxIncome = house1[0];\n else \n maxIncome = house2[0];\n if (house3[0] > maxIncome) \n maxIncome = house3[0];\n System.out.println(\"Greatest income: \" + maxIncome);\n\t}", "public int rob1(int[] nums) {\n int n = nums.length;\n if(n == 0) return 0;\n if(n == 1) return nums[0];\n int max = nums[0];\n for(int i = 1; i < n; i++){\n int local = Math.max(nums[i - 1], nums[i] + (i > 1 ? nums[i - 2] : 0));\n nums[i] = local;\n max = Math.max(local, max);\n }\n return max;\n }", "public static int getMostMoney(String[] games, int[] time, int[] money){\n int l = time.length; //The lengths of the three lists should be same;\n int t = 120; //The total time\n int[] played = new int[l];\n int[][] val = new int[l][121];\n for(int i=1;i<l;i++){\n for(int j=1;j<121;j++){\n if(j<time[i]){\n val[i][j] = val[i-1][j];\n }else\n val[i][j]=Math.max(val[i-1][j],val[i-1][j-time[i]]+money[i]);\n }\n }\n for(int i = l-1;i>=1;i--){\n if(val[i][t] != val[i-1][t]){\n System.out.println(games[i]); //print the best combination of games\n t -= time[i];\n }\n }\n\n return val[l-1][120]; //In this question, Adam can earn $780 at most;\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0;\n ArrayList<Integer> options = new ArrayList<Integer>();\n for(int i = 0 ; i < drives.length ; i++) {\n for(int j = 0 ; j < keyboards.length ; j++) {\n if(drives[i] + keyboards[j] <= b) {\n options.add(drives[i] + keyboards[j]);\n }\n }\n }\n if(options.size() == 0) {\n return -1;\n } else {\n max = options.get(0);\n for(int i = 0 ; i < options.size() ; i++) {\n if(options.get(i) > max) {\n max = options.get(i);\n }\n }\n return max;\n }\n }", "public static int getMaxAreaBruteForce(List<Integer> heights) {\n int maxArea = 0, N = heights.size();\n for (int i = 0; i < N; i++)\n for (int j = i + 1; j < N; j++) {\n int currArea = Math.min(heights.get(i), heights.get(j)) * (j - i);\n if (currArea > maxArea) maxArea = currArea;\n }\n return maxArea;\n }", "public static int findRadius(int[] houses, int[] heaters) {\n\n Arrays.sort(houses);\n Arrays.sort(heaters);\n\n if(heaters[0] >= houses[houses.length - 1]){\n return heaters[0] - houses[0];\n }\n if(heaters[heaters.length - 1] <= houses[0]){\n return houses[houses.length - 1] - heaters[heaters.length - 1];\n }\n\n int i = 0;\n int j = 0;\n int radius = 0;\n\n // in case [1,2,3] [2]\n //\n\n if(houses [0] < heaters[0]){\n radius = heaters[0] - houses[0];\n }\n\n while(houses[i] <= heaters[j]){\n i++;\n }\n\n while(i < houses.length && j < heaters.length - 1){\n if(houses[i] <= heaters[j + 1]){\n radius = Math.max(radius, Math.min(houses[i] - heaters[j], heaters[j + 1] - houses[i]));\n i++;\n\n }else{\n j++;\n }\n }\n\n // the biggest value of heaters is smaller than houses\n if(i < houses.length){\n radius = Math.max(radius, houses[houses.length - 1] - heaters[heaters.length - 1]);\n }\n\n return radius;\n\n }", "static long maximumPeople(long[] p, long[] x, long[] y, long[] r) {\n city[] allCity = new city[n];\n for(int i = 0; i < n; i++)\n allCity[i] = new city(p[i], x[i]);\n Arrays.sort(allCity);\n for(int i = 0; i < m; i++){\n long start = y[i] - r[i];\n long end = y[i] + r[i];\n int startindex = Arrays.binarySearch(allCity, new city(0, start));\n if(startindex < 0)\n startindex = - startindex - 1;\n else{\n long value = allCity[startindex].loc;\n while(true){\n startindex--;\n if(startindex < 0)\n break;\n if(allCity[startindex].loc != value)\n break;\n }\n startindex++;\n }\n int endindex = Arrays.binarySearch(allCity, new city(0, end));\n if(endindex < 0)\n endindex = -endindex - 2;\n else{\n long value = allCity[endindex].loc;\n while(true){\n endindex++;\n if(endindex >= n)\n break;\n if(allCity[endindex].loc != value)\n break;\n }\n endindex--;\n }\n for(int j = startindex; j <= endindex; j++){\n if(j >= n)\n break;\n allCity[j].clouds.add(i);\n }\n }\n int prev = -1;\n long sunny = 0;\n long max = 0;\n long accu = 0;\n for(int i = 0; i < n; i++){\n if(allCity[i].clouds.size() == 0)\n sunny += allCity[i].population;\n if(allCity[i].clouds.size() == 1){\n if(allCity[i].clouds.get(0) == prev){\n accu += allCity[i].population;\n if(accu > max)\n max = accu;\n }\n else {\n accu = allCity[i].population;\n prev = allCity[i].clouds.get(0);\n if(accu > max)\n max = accu;\n }\n }\n }\n return max + sunny;\n }", "public static void greatestSavings(double [] house1, double [] house2, double [] house3) {\n\t\t//Greatest savings\n if (house1[2] > 0 && house1[2] >= house2[2]) \n maxSavings = house1[2];\n else \n maxSavings = house2[2];\n \n if (house3[2] > maxSavings) \n maxSavings = house3[2];\n System.out.println(\"savings: \" + maxSavings);\n\t}", "public int rob(int[] nums) {\r\n if (nums.length == 1) return nums[0];\r\n return Math.max(rob(nums, 0, nums.length - 2), rob(nums, 1, nums.length - 1));\r\n}", "private int[] maxMoney(TreeNode root) {\n\t\tif (root == null) return new int[2];\n\t\tint[] ans = new int[2], l = maxMoney(root.left), r = maxMoney(root.right);\n\t\tans[0] = l[1] + r[1];\n\t\tans[1] = Math.max(root.val + l[0] + r[0], ans[0]);\n\t\treturn ans;\n\t}", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "static int getMoneySpent(final int[] keyboards, final int[] drives, final int b) {\n\n\t\t/*\n\t\t * Write your code here.\n\t\t */\n\t\t// Declaring variables:\n\n\t\tint maxAmountPaid = 0;\n\t\tArrayList<Integer> amountPaid = new ArrayList<Integer>();\n\n\t\t// Ordering the arrays keyboards and drives:\n\t\tArrays.sort(keyboards);\n\t\tArrays.sort(drives);\n\t\t//System.out.println(Arrays.toString(keyboards));\n\t\t//System.out.println(Arrays.toString(drives));\n\n\t\t// Choosing the matching combination (max keyboard option, max drives option)\n\t\tfor (int keyb : keyboards) {\n\t\t\tfor (int usb : drives) {\n\t\t\t\tamountPaid.add(keyb + usb);\t// For each loop, sum keyboard + drive into amountPaid\n\t\t\t\t//System.out.println(amountPaid.get(amountPaid.size()-1));\n\t\t\t}\n\t\t}\n\t\t// Ordering the amountPaid arraysList\n\t\tCollections.sort(amountPaid);\n\t\t//System.out.println(amountPaid);\n\n\t\tif (amountPaid.get(0) > b) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tfor (int amount = 0; amount < amountPaid.size(); amount++) {\n\t\t\t\tif (amountPaid.get(amount) > b && maxAmountPaid == 0) {\n\t\t\t\t\tmaxAmountPaid = amountPaid.get(amount-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maxAmountPaid;\n\t\t}\n\t\t\n\t}", "public static long stockmax(List<Integer> prices) {\n\t\t// Write your code here\n\t\tlong profit=0L;\n\t\tlong maxSoFar=0L;\n\t\t for (int i = prices.size() - 1; i > -1 ; i--) {\n\t if (prices.get(i) >= maxSoFar) {\n\t maxSoFar = prices.get(i);\n\t }\n\t profit += maxSoFar - prices.get(i);\n\t }\n\t return profit;\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\r\n int testcases = scan.nextInt();\r\n int max = 0;\r\n for (int p = 0;p< testcases;p++) {\r\n String ip[] = scan.nextLine().split(\" \");\r\n int n = Integer.parseInt(String.valueOf(ip[0]));\r\n int k = Integer.parseInt(String.valueOf(ip[1]));\r\n String houses[] = scan.nextLine().split(\" \");\r\n int[] houseno = new int[0];\r\n for (int i = 0; i < n; i++) {\r\n //houseno[i] = Integer.parseInt(houses[i]);\r\n houseno[i] = scan.nextInt();\r\n }\r\n for (int g = 0; g < n; g++) {\r\n for (int j = g; j < k + g; j++) {\r\n if (houseno[j] > max) {\r\n max = houseno[j];\r\n\r\n }\r\n System.out.println(max);\r\n }\r\n }\r\n }\r\n\r\n }", "static int maximumWealth(int[][] accounts) {\n\t\t\n\t\tint valueOfMaxCustomer = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int[] customerAccounts : accounts) {\n\t\t\t\n\t\t\tint valueOfCustomer = 0;\n\t\t\t\n\t\t\tfor(int valueInAccount : customerAccounts) {\n\t\t\t\tvalueOfCustomer += valueInAccount;\n\t\t\t}\n\t\t\t\n\t\t\tif(valueOfCustomer > valueOfMaxCustomer) {\n\t\t\t\tvalueOfMaxCustomer = valueOfCustomer;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valueOfMaxCustomer;\n \n }", "public int rob(int[] nums) {\n\t\tif(nums == null || nums.length == 0){\n\t\t\treturn 0;\n\t\t}\n\t\tint res = 0, n = nums.length;\n\t\tint[] dp = new int[n + 1];\n\t\tdp[1] = nums[0];\n\t\tfor(int i = 2; i <= n; i++){\n\t\t\tdp[i] = Math.max(dp[i - 2] + nums[i - 1], dp[i - 1]);\n\t\t}\n\t\treturn dp[n];\n\t}", "public int selectionFunctionBiggestCoin(MyList<Integer> candidates){\n\n\t\t//-----------------------------\n\t\t//Output Variable --> InitialValue\n\t\t//-----------------------------\n\t\tint res = -1;\n\n\t\t//-----------------------------\n\t\t//SET OF OPS\n\t\t//-----------------------------\n\t\tint maxWeight = Integer.MIN_VALUE;\n\t\tint index = candidates.length() - 1;\n\n\n\t\twhile (index >= 0) {\n\t\t\t// OP1.1. Auxiliary variables:\n\t\t\t// We use 'e0' to compute the first item of 'candidate' just once.\n\t\t\tint e0 = candidates.getElement(index);\n\n\t\t\t// OP1.1. If a not previously considered item improves minWeight, we\n\t\t\t// update 'res' and 'minWeight'\n\t\t\tif (e0 > maxWeight) {\n\t\t\t\tres = index;\n\t\t\t\tmaxWeight = e0;\n\t\t\t}\n\n\t\t\t// OP1.2. We decrease 'index' so as to try the previous item of\n\t\t\t// 'candidates'\n\t\t\tindex--;\n\t\t}\n\n\t\t//-----------------------------\n\t\t//Output Variable --> Return FinalValue\n\t\t//-----------------------------\t\t\n\t\treturn res;\t\t\n\t}", "static void getLargestWalkedAway(long amount) {\n if (amount > largestWalkedAway) {\n largestWalkedAway = amount;\n }\n }", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n\n int t = 0;\n List<Integer> r = new ArrayList<>();\n\n Arrays.sort(keyboards);\n Arrays.sort(drives);\n\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n\n t = keyboards[i] + drives[j];\n\n if(t <= b)\n r.add(t);\n }\n }\n\n Collections.sort(r);\n\n\n\n if(r.size() > 0){ return r.get(r.size()-1);}\n else{ return -1; }\n\n }", "private int demDoiThong(List<Card> bai) {\n List<Card> cards = new ArrayList<>() ;\n int max = 0;\n int count = 0;\n for (int i = 0; i < bai.size() - 1; i++) {\n if (bai.get(i).getId() >= 48) {\n break;\n }\n if (count == 0 && bai.get(i).getCardNumber() == bai.get(i + 1).getCardNumber()) {\n count = 1;\n if (cards.isEmpty()) {\n cards.add(bai.get(i));\n cards.add(bai.get(i + 1));\n }\n } else {\n if (count % 2 != 0) {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber() - 1) {\n count++;\n } else if (bai.get(i).getCardNumber()!= bai.get(i + 1).getCardNumber()) {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n } else {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber()) {\n if(!cards.contains(bai.get(i))){\n cards.add(bai.get(i));\n }\n if(!cards.contains(bai.get(i+1))){\n cards.add(bai.get(i+1));\n }\n count++;\n } else {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n }\n }\n }\n if (count > max) {\n max = count;\n }\n if (max >= 5) {\n this.specialCards.addAll(cards);\n }\n return (max + 1) / 2;\n }", "public static int getMaxArea(List<Integer> heights) {\n int N = heights.size(), i = 0, j = N - 1, maxArea = 0;\n while (i < j) {\n maxArea = Math.max(maxArea, Math.min(heights.get(i), heights.get(j)) * (j - i));\n if (heights.get(i) < heights.get(j)) ++i;\n else if (heights.get(i) > heights.get(j)) --j;\n else {\n ++i;\n --j;\n }\n }\n return maxArea;\n }", "private static int maxSubArrayGolden(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n // in case the result is negative.\n int max = Integer.MIN_VALUE;\n int sum = 0;\n for (int num : nums) {\n sum += num;\n max = Math.max(sum, max);\n sum = Math.max(sum, 0);\n }\n return max;\n }", "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }", "static int LCS(int arr[])\n {\n int size = arr.length;\n int max_so_far = Integer.MIN_VALUE, max_ending_here = 0;\n\n for (int i = 0; i < size; i++)\n {\n max_ending_here = max_ending_here + arr[i];\n if (max_so_far < max_ending_here)\n max_so_far = max_ending_here;\n if (max_ending_here < 0)\n max_ending_here = 0;\n }\n return max_so_far;\n }", "public int maxProfit(int[] prices) {\n\n if(prices.length==0) return 0;\n\n int[] dp = new int[3];\n\n dp[0] = -prices[0];\n\n dp[1] = Integer.MIN_VALUE;\n\n dp[2] = 0;\n\n for(int i=1; i<prices.length; i++){\n\n int hold = Math.max(dp[0], dp[2]- prices[i]);\n\n int coolDown = dp[0] + prices[i];\n\n int notHold = Math.max(dp[2], dp[1]);\n\n dp[0] = hold;\n\n dp[1] = coolDown;\n\n dp[2] = notHold;\n\n\n }\n\n return Math.max(Math.max(dp[0],dp[1]),dp[2]);\n\n }", "public Money findMaxPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney max = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (max.compareTo(current) == -1 || !flag) {\n\t\t\t\tmax = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn max;\n\t}", "static int migratoryBirds(List<Integer> arr) {\n int count=1;\n int max=arr.get(0);\n HashMap<Integer,Integer> map=new HashMap<>();\n for(int i=0;i<arr.size();i++) {\n \tif(map.containsKey(arr.get(i))) {\n \t\tmap.replace(arr.get(i), map.get(arr.get(i))+1);\n \t}else {\n \t\tmap.put(arr.get(i), count);\n \t}\n }\n \n int ans=0;\n for(Integer i:map.keySet()) {\n \t int n=map.get(i);\n \t if(n>max) {\n \t\t max=n;\n \t\t \tans=i;\n\n \t }\n }\n /*int comp[]=new int[256];\n for(int i=0;i<arr.size();i++){\n comp[arr.get(i)]++;\n }\n for(int i=0;i<comp.length;i++){\n if(comp[i]>max)\n max=comp[i];\n }*/\n return ans;\n }", "public int solve(String infile) {\r\n\r\n\t\ttry {\r\n\t\t\treadData(infile);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//A temporary object array of bids\r\n\t\tBids[] numBids = populateBids();\r\n\t\t//A temporary integer array to hold the maximum value\r\n\t\tint[] storeMaxRev = new int[numBids.length];\r\n\t\t//A temporary variable for the maximum revenue that will be updated in the main loop.\r\n\t\tint maxRev = 0;\r\n\t\t\r\n\t\t//Invokes the comparator method defined earlier\r\n\t\tLotComparator compareFinishTimes = new LotComparator();\r\n\t\tArrays.sort(numBids,compareFinishTimes);\r\n\t\t\r\n\t\t\r\n\t\t//Edge case check if the number of bids is less than 0\r\n\t\tif(numBids.length <= 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\t//Choose the first bid in the object array.\r\n\t\tstoreMaxRev[0] = numBids[0].priceOfLot;\r\n\t\t\r\n\t\t//From the second element of the object array, iterate through the array and store the price\r\n\t\t//of the element that is larger than the previous element\r\n\t\tfor(int i = 1; i < numBids.length; i++) {\r\n\t\t\tstoreMaxRev[i] = Math.max(numBids[i].priceOfLot, storeMaxRev[i - 1]);\r\n\t\t\t\r\n\t\t\t//Iterating backwards from the second last element relative to i, check if the current element is compatible.\r\n\t\t\t//A compatible bid is when the ending lot number is less than the starting lot number of the next bid.\r\n\t\t\t//If it is an compatible bid, add the price of the current bid to the previous bid and take the maximum price out of the two.\r\n\t\t\tfor(int j = i - 1; j >= 0; j--) {\r\n\t\t\t\tif(numBids[j].endLot < numBids[i].beginningLot) {\r\n\t\t\t\t\tstoreMaxRev[i] = Math.max(storeMaxRev[i], numBids[i].priceOfLot + storeMaxRev[j]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Once all of the bids in numBid object array is processed, we get an integer array that will contain the maximum revenue.\r\n\t\t//This loop iterates through storeMaxRev and selects the largest integer which is then set to the variable maxRev and returned as the answer\r\n\t\tfor(int priceIdx = 0; priceIdx < storeMaxRev.length; priceIdx++) {\r\n\t\t\tif(maxRev < storeMaxRev[priceIdx]) {\r\n\t\t\t\tmaxRev = storeMaxRev[priceIdx];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maxRev;\r\n\t}", "public static int findMax(int max, int number) {\n int num = findTotal(number);\n // base case if prev is less and curr is more\n if (num > max && findTotal(number-1) < max) {\n return number-1;\n }\n // base case if curr is less and prev is more\n else if (num < max && findTotal(number+1) > max) {\n return number;\n }\n // decrease number of gems\n else if (num > max) {\n return findMax(max, number-number/2);\n }\n // increase number of gems\n else {\n return findMax(max, number+number/2);\n }\n }", "public int rob(int[] nums) {\n if (nums.length == 1) {\n return nums[0];\n }\n int len = nums.length;\n return Math.max(helper(nums, 0, len - 2), helper(nums, 1, len - 1));\n}", "public static void greatestIncomeAfterSavings(double [] house1, double [] house2, double [] house3) {\n\t\t //Greatest income after expenditure\n if (house1[1] > 0 && house1[1] >= house2[1]) \n maxAfterExp = house1[1];\n else \n maxAfterExp = house2[1];\n if (house3[1] > maxAfterExp) \n maxAfterExp = house3[1]; \n System.out.println(\"After savings: \" + maxAfterExp);\n\t}", "public static void main(String[] args) {\n int maxSolutions = 0;\r\n int bestPerimeter = 0;\r\n int[] perimeters = new int[1000];\r\n for (int a = 1; a <= 1000; a++) {\r\n for (int b = 1; b <= a; b++) {\r\n double c = Math.sqrt(a*a + b*b);\r\n if (c != (int)c) continue;\r\n int perimeter = a + b + (int)c;\r\n if (perimeter > 1000) break;\r\n perimeters[perimeter - 1]++;\r\n if (perimeters[perimeter - 1] > maxSolutions) {\r\n maxSolutions++;\r\n bestPerimeter = perimeter;\r\n }\r\n }\r\n }\r\n System.out.println(\"Best perimeter: \" + bestPerimeter);\r\n System.out.println(\"Solutions: \" + maxSolutions);\r\n }", "private static int maxMoney(int[] coins,int coinsCount,int startIndex){\n int maxScore = 0;\n if(coinsCount==1) maxScore = coins[startIndex];\n else{\n maxScore = Math.max(coins[startIndex]+sum(coins,coinsCount-1, startIndex+1)-maxMoney(coins,coinsCount-1, startIndex+1),\n coins[coinsCount+startIndex-1]+sum(coins,coinsCount-1,startIndex)-maxMoney(coins,coinsCount-1,startIndex));\n }return maxScore;\n }", "static int maxStolenValue(int[] values) {\n if(values.length == 0) return 0;\n int[] dp = new int[values.length + 1];\n dp[0] = 0;\n dp[1] = values[0];\n for(int i=2; i<=values.length; i++){\n int value1 = values[i-1] + dp[i-2];\n int value2 = values[i-2];\n if(i>=3) value2 += dp[i-3];\n dp[i] = Math.max(value1, value2);\n }\n return dp[values.length];\n }", "public static void main(String[] args) {\n\t\tint [] houses= {6,7,1,30,8,2,4};\n\t\tint val=topDown(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tint [] houses1= {20,5,1,13,6,11,40};\n\t\tval=topDown(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\t\n\t\tval=botUp(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tval=botUp(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t}", "public int maxProfit(int[] prices, int fee) {\n\n int[] hold = new int[prices.length];\n int[] unhold = new int[prices.length];\n hold[0] = -prices[0];\n \n \n for (int i=1; i< prices.length; i++){\n hold[i] = Math.max(unhold[i-1] - prices[i], hold[i-1]);\n unhold[i] = Math.max(unhold[i-1], hold[i-1] + prices[i]- fee);\n }\n return unhold[prices.length-1];\n \n }", "static int maxProfit(int[] prices)\n\t{\n\t\tint len = prices.length;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint profit = 0;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tmin = min > prices[i] ? prices[i] : min;\n\t\t\tprofit = prices[i] - min > profit ? prices[i] - min : profit; \n\t\t}\n\t\treturn profit;\n\t}", "private static int maxSum(int arr[]) {\n int sum = 0;\n Arrays.sort(arr);\n\n // Subtracting a1, a2, a3,....., a(n/2)-1,\n // an/2 twice and adding a(n/2)+1, a(n/2)+2,\n // a(n/2)+3,....., an - 1, an twice.\n for (int i = 0; i < arr.length / 2; i++) {\n sum -= (2 * arr[i]);\n sum += (2 * arr[arr.length - i - 1]);\n }\n\n return sum;\n }", "private Pair[] bribeCalculateBag(final int maxCards,\n final HashMap<String, Integer> association) {\n final int minMoney = 5;\n final int maxBagSize = 3;\n if (getInventory().getMoney() < minMoney || numberOfIllegals(association) == 0) {\n return calculateBag(maxCards, association);\n }\n Pair[] result;\n if (numberOfIllegals(association) <= 2 || getInventory().getMoney() < minMoney * 2) {\n getInventory().getBagToGive().setBribe(minMoney);\n getInventory().setMoney(getInventory().getMoney() - minMoney);\n int duplicate = findIllegal(association);\n removeOneAsset(findIllegal(association));\n if (duplicate == findIllegal(association)) {\n result = new Pair[1];\n result[0] = new Pair<>(findIllegal(association), 2);\n getInventory().setNumberOfDeclared(2);\n } else {\n if (findIllegal(association) == -1) {\n result = new Pair[1];\n result[0] = new Pair<>(duplicate, 1);\n getInventory().setNumberOfDeclared(1);\n } else {\n result = new Pair[2];\n result[0] = new Pair<>(duplicate, 1);\n result[1] = new Pair<>(findIllegal(association), 1);\n getInventory().setNumberOfDeclared(2);\n }\n }\n removeOneAsset(findIllegal(association));\n getInventory().setDeclaredAssets(0);\n return result;\n } else {\n getInventory().getBagToGive().setBribe(minMoney * 2);\n getInventory().setMoney(getInventory().getMoney() - (minMoney * 2));\n int contor = maxCards - 1;\n final int contorStart = contor;\n int[] resultAux = new int[maxBagSize];\n getInventory().setDeclaredAssets(0);\n while (contor > 0 && findIllegal(association) != -1) {\n resultAux[findIllegal(association) % maxBagSize]++;\n removeOneAsset(findIllegal(association));\n contor--;\n }\n getInventory().setNumberOfDeclared(contorStart - contor);\n getInventory().setDeclaredAssets(0);\n contor = 0;\n for (int it : resultAux) {\n if (it != 0) {\n contor++;\n }\n }\n result = new Pair[contor];\n if (contor == maxBagSize) {\n result = new Pair[maxBagSize];\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n result[1] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n result[2] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n } else {\n if (contor == 1) {\n result = new Pair[1];\n if (resultAux[0] > 0) {\n result[0] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n }\n if (resultAux[1] > 0) {\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n }\n if (resultAux[2] > 0) {\n result[0] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n } else {\n result = new Pair[2];\n int i = 0;\n if (resultAux[0] > 0) {\n result[i] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n i++;\n }\n if (resultAux[1] > 0) {\n result[i] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n i++;\n }\n if (resultAux[2] > 0) {\n result[i] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n }\n }\n return result;\n }\n\n }", "long getMaxItemFindings();", "public long findMax(long[] incomes) {\n long current_max_index = 0;\n long current_max = incomes[0];\n for (long income : incomes)\n if (current_max < income)\n current_max = income;\n return current_max;\n }", "private int rob(int[] num, int lo, int hi) {\r\n int include = 0, exclude = 0;\r\n for (int j = lo; j <= hi; j++) {\r\n int i = include, e = exclude;\r\n include = e + num[j];\r\n exclude = Math.max(e, i);\r\n }\r\n return Math.max(include, exclude);\r\n}", "public static int findMaxProfit(int [] prices){\n int max_profit = 0;\r\n for (int i = 0;i<prices.length-1;i++){\r\n if(prices [i] < prices [i+1]){\r\n max_profit = max_profit + (prices[i+1]-prices[i]);\r\n }\r\n }\r\n return max_profit;\r\n }", "static int getMaxCoinValMine(int vals[], int n) {\n int[][] maxVals = new int[n][n];\n for(int wind = 0; wind < n; wind++) {\n // start is always less than or equal to end\n for(int start=0, end = start+wind; end<n; start++,end++ ) {\n // no elements element\n if(wind==0) {\n maxVals[start][end] = 0;\n }\n else if(start == end) {\n // only single element\n maxVals[start][end] = vals[start];\n }\n else {\n // start >=0\n // calculate wind[start][end]\n // chose end, then value is val[end] for P1, val[start][end-1] for P2 and val[start][end-2] for P1\n int valEnd = vals[end] + (( start < end-2)? maxVals[start][end-2]:0);\n // chose start, then value is val[start] for P1, val[start+1][end] for P2 and val[start+2][end] for P1\n int valStart = vals[start] + ((start+2 < end)? maxVals[start+2][end]:0);\n maxVals[start][end] = max(valEnd, valStart);\n }\n }\n }\n return maxVals[0][n-1];\n\n }", "public int maxProfitBF(int prices[]) {\n int maxprofit = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n for (int j = i + 1; j < prices.length; j++) {\n int profit = prices[j] - prices[i];\n if (profit > maxprofit)\n maxprofit = profit;\n }\n }\n return maxprofit;\n }", "public static void main(String[]args) {\n\tint max = 0;\r\n\r\n\tfor(int i = 999; i >= 900; i--) {\r\n\tfor(int j = 999; j >= 900; j--) {\r\n\t\tif(isPalindrome(i*j) && i*j > max) max = i*j;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"The largest palindrome made from the product of two 3-digit numbers: \" + max);\r\n\t}", "private int FindMaxSum(int[] arr, int length) {\r\n\t\t\r\n\t\tint incl = arr[0];\r\n\t\tint excl = 0;\r\n\t\tint excl_new = 0;\r\n\t\t\r\n\t\tfor(int i = 1;i<arr.length;i++)\r\n\t\t{\r\n\t\t\texcl_new = (incl > excl) ? incl : excl;\r\n\t\t\t \r\n /* current max including i */\r\n incl = excl + arr[i];\r\n excl = excl_new;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn excl>incl?excl:incl;\r\n\t}", "public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int n = nums.length;\n //composite input\n int[] input = new int[n + 2];\n for (int i = 1; i <= n; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[n + 1] = 1;\n int[][] dp = new int[n + 2][n + 2];\n for (int len = 1; len <= n; len++) {\n //left moves between[1, n - len + 1]\n for (int left = 1; left <= n - len + 1; left++) {\n int right = left + len - 1; //right - left + 1 = len\n for (int k = left; k <= right; k++) {\n dp[left][right] = Math.max(dp[left][right], \n input[left - 1] * input[k] * input[right + 1] + dp[left][k - 1] + dp[k + 1][right]);\n }\n }\n }\n return dp[1][n];\n }", "public int reachNumber(int target) {\n target = Math.abs(target);\n int sum = 0;\n int i = 0;\n while(sum < target){\n i++;\n sum += i;\n }\n while((sum - target) % 2 != 0){\n i++;\n sum += i;\n }\n return i;\n }", "static int hurdleRace(int k, int[] height) {\n\t\tint huddleSum = IntStream.of(height).filter(v -> v > k).max().orElse(k) - k;\n\t\treturn huddleSum;\n\t}", "public static Trip tripWithMaxPersons(HashSet<Person> personList, HashSet<Trip> tripList) {\n ForexConverter fc = new ForexConverter();\n double threshold = 2.00;\n HashMap<Trip, Integer> result = new HashMap<>();\n // for each trip - loop\n for (Trip trip : tripList) { // trip - one trip\n // for each person\n for (Person person : personList) {\n // check price in the same currency\n // check each person whether they are ready in: price, gear, date, qualification\n if (person.getAvailableDates().contains(trip.getDate())\n && person.getGears().containsAll(trip.getGears())\n && person.getQualifications().containsAll(trip.getQualifications())\n && person.getMoney().isLargerThan(trip.getPrice(), fc)\n || person.getMoney().isCloseTo(trip.getPrice(), fc, threshold)) {\n // only add the person when there is person ready for the trip\n if (result.containsKey(trip)) {\n result.put(trip, result.get(trip) + 1);\n } else {\n result.put(trip, 1);\n }\n }\n }\n }\n int max = 0;\n Trip tripResult = null;\n// Set<Map.Entry<Trip, Integer>> entries = result.entrySet();\n// result.forEach((K,V)->{\n//\n// });\n for(Trip trip: result.keySet()){\n int personNum = result.get(trip);\n if(personNum > max) {\n max = personNum;\n tripResult = trip;\n }\n }\n return tripResult;\n }", "static int max(int ropeLen) {\n\t\tint[] dp = new int[ropeLen + 1];\n\t\tdp[0] = 1;\n\t\tfor (int i = 1; i <= ropeLen; i++) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tmax = Math.max(max, dp[j] * (i - j));\n\t\t\t}\n\t\t\tdp[i] = max;\n\t\t}\n\t\treturn dp[ropeLen];\n\t}", "private HashMap<Integer, Integer> obtainBills(double amount, HashMap<Integer, Integer> bills)\n {\n if (amount == 0)\n return bills;\n HashMap<Integer, Integer> b;\n HashMap<Integer, Integer> k;\n if (amount >= 50 && typeOfCash.get(50) - bills.get(50) > 0)\n {\n k = new HashMap<>(bills);\n k.put(50, bills.get(50) + 1);\n b = obtainBills(amount - 50, k);\n if (b != null)\n return b;\n }\n if (amount >= 20 && typeOfCash.get(20) - bills.get(20) > 0)\n {\n k = new HashMap<>(bills);\n k.put(20, bills.get(20) + 1);\n b = obtainBills(amount - 20, k);\n if (b != null)\n return b;\n }\n if (amount >= 10 && typeOfCash.get(10) - bills.get(10) > 0)\n {\n k = new HashMap<>(bills);\n k.put(10, bills.get(10) + 1);\n b = obtainBills(amount - 10, k);\n if (b != null)\n return b;\n }\n if (amount >= 5 && typeOfCash.get(5) - bills.get(5) > 0)\n {\n k = new HashMap<>(bills);\n k.put(5, bills.get(5) + 1);\n b = obtainBills(amount - 5, k);\n if (b != null)\n return b;\n }\n return null;\n }", "public int countBalls(int lowLimit, int highLimit) {\n return IntStream.range(lowLimit, highLimit + 1)\n .map(this::sumDigit).boxed()\n .collect(Collectors.toMap(Function.identity(), i -> 1, Integer::sum))\n .values().stream().max(Integer::compare).get();\n }", "static int howManyGames(int p, int d, int m, int s) {\n // Return the number of games you can buy\n int res = 0;\n int cost = p;\n if(p > s){\n return 0;\n }\n if(p == s){\n return 1;\n }\n while(cost>=m && s>0 && !(s<m) && s>=cost){\n if(s>=m){\n s = s-cost;\n res++;\n\n if(cost == m)\n cost = cost-m;\n else\n cost = cost-d;\n }\n if(cost <=m){\n cost = m;\n }\n }\n return res;\n }", "public long getPropertyBalanceMax();", "public int findMaxLength2222(int[] nums) {\n if(nums == null) return 0;\n int currCount = 0, prevCount = 0, max = 0;\n for (int i = 0; i < nums.length; ) { // important not to increase i here, as we do it inside the loop\n int j = i + 1;\n currCount = 1;\n for (; j < nums.length && nums[j] == nums[i]; j++)\n currCount++;\n max = Math.max(max, Math.min(currCount, prevCount));\n prevCount = currCount;\n i = j;\n }\n\n return max * 2;\n }", "private String findMax(int[][] grid) {\n int max = 0, rx = 0, ry = 0, size = 0;\n for (int y = 1; y <= 300; y++) {\n for (int x = 1; x <= 300; x++) {\n // iterate over diameter, keep results in order to reuse them\n Map<Integer, Integer> squares = new HashMap<>(300);\n for (int d = 0; d <= 300 - Math.max(x, y); d++) {\n int current = 0;\n\n if (d == 0) {\n current += grid[y][x];\n } else {\n for (int offset = 0; offset < d; offset++) {\n current += grid[y + offset][x + d]; // skip inner square, get last column\n current += grid[y + d][x + offset]; // skip inner square, get last row\n }\n current += squares.get(d - 1); // add inner square of size (d-1)\n current += grid[y + d][x + d]; // add bottom-right corner cell\n }\n\n squares.put(d, current);\n\n if (current > max) {\n max = current;\n rx = x; ry = y;\n size = d;\n }\n }\n }\n }\n\n return rx + \",\" + ry + \",\" + (size + 1);\n }", "private boolean checkSellHouses(int debt) {\n\t\tArrayList<PropertyCard> cardsWithHouses = new ArrayList<>();\n\t\tfor(PropertyCard c: getCards()) {\n\t\t\tif(c.getHouses()>0) {\n\t\t\t\tcardsWithHouses.add(c);\n\t\t\t}\n\t\t}\n\t\tif(cardsWithHouses.size()>0) {\n\t\t\tPropertyCard mostExpensiveHouses = Collections.max(cardsWithHouses);\n\t\t\tif(debt>=mostExpensiveHouses.getHousePrice()) {\n\t\t\t\tCollections.sort(cardsWithHouses, Collections.reverseOrder());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCollections.sort(cardsWithHouses);\n\t\t\t}\n\t\t\twhile(getMoney()<debt) {\n\t\t\t\tfor(PropertyCard c: cardsWithHouses) {\n\t\t\t\t\t\tsellHouse(c);\n\t\t\t\t\t\tif(c.getHouses() == 0) {\n\t\t\t\t\t\t\tcardsWithHouses.remove(c);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getMoney()>=debt) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private Bid onceAround(int turn) {\r\n\t\tint highestBid = 0;\r\n\t\tint highestBidder = turn;\r\n\t\tfor(int i = 0; i < players.length; i++) {\r\n\t\t\tint biddingTurn = (turn+i+1)%players.length;\r\n\t\t\tint bid = players[biddingTurn].getBid(highestBid);\r\n\t\t\tif(bid > highestBid) {\r\n\t\t\t\thighestBid = bid;\r\n\t\t\t\thighestBidder = biddingTurn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new Bid(highestBidder,highestBid);\r\n\t}", "static long getWays(int amount, int[] coins){\n long[] dp = new long[amount + 1];\n \n //ways to pay amount 0 is only 1 i.e. not to give any coin\n dp[0] = 1;\n \n //outer loop works on coin array\n for(int coin : coins){\n\n //inner loop works on dp array\n for(int i = 1; i < dp.length; i++){\n if(i >= coin){\n\n //adding the number ways to pay i-coin \n dp[i] += dp[i - coin];\n }\n }\n }\n\n //returning no of ways to pay amount. \n return dp[amount];\n }", "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount; col++) {\n memo[0][col] = 0;// Important. always initialize 1st row with 1s\n }\n\n // populate first col\n for (int row = 0; row < coins.length; row++) {\n memo[row][0] = 0;// Important. initialize 1st col with 1s or 0s as per your need as explained in method comment\n }\n\n /*\n populate second row\n\n if amount(col) <= coin value, then one coin is required with that value to make that amount\n if amount(col) > coin value, then\n total coins required = amount/coin_value, if remainder=0, otherwise amount/coin_value+1\n */\n for (int col = 1; col <= amount; col++) {\n if (col <= coins[0]) {\n memo[1][col] = 1;\n } else {\n int quotient = col / coins[0];\n\n memo[1][col] = quotient;\n\n int remainder = col % coins[0];\n if (remainder > 0) {\n memo[1][col] += 1;\n }\n }\n }\n\n // start iterating from second row\n for (int row = 2; row < memo.length; row++) {\n // start iterating from second col\n for (int col = 1; col < memo[row].length; col++) {\n\n int coin = coins[row - 1];\n\n // formula to find min required coins for an amount at memo[row][col]\n if (coin > col) { // if coin_value > amount\n memo[row][col] = memo[row - 1][col]; // reserve prev row's value (value determined for prev coins)\n } else {\n memo[row][col] = Math.min(memo[row - 1][col], memo[row][col - coin]) + 1; // min(value determined by prev coins - prev row, value at amount=current_amount-coin_value) + 1\n }\n }\n }\n\n printMemo(coins, memo);\n\n return memo[memo.length - 1][memo[0].length - 1]; // final value is stored in last cell\n }", "@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}", "public int countBalls(int lowLimit, int highLimit) {\n\n int[] count = new int[100001];\n int max = -1;\n\n for (int i = lowLimit; i <= highLimit; i++) {\n int value = CountValue(i);\n count[value]++;\n max = Math.max(count[value], max);\n }\n\n return max;\n }", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-1);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int len = nums.length;\n //composite new input array\n int[] input = new int[len + 2];\n for (int i = 1; i <= len; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[len + 1] = 1;\n boolean[][] visited = new boolean[len + 2][len + 2];\n int[][] dp = new int[len + 2][len + 2];\n return searchHelper(input, dp, visited, 1, len);\n }", "public int robBetter(int[] nums) {\n int prev = 0, pprev = 0;\n for (int n : nums) {\n int c = Math.max (prev, pprev + n);\n pprev = prev;\n prev = c;\n }\n return prev;\n }", "public int rob(int[] nums) {\n int prevYes = 0, prevNo = 0; \n for (int i : nums) { \n int tmp = prevYes;\n prevYes = prevNo + i;\n prevNo = Math.max(tmp, prevNo);\n } \n return Math.max(prevNo, prevYes);\n }", "private int largestCard(Card[] cards) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < cards.length; i++)\n if (cards[i].getDenomination() > cards[max].getDenomination())\n max = i;\n\n return max;\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }", "public int maxCoins(int[] nums) {\n StringBuffer sb = new StringBuffer();\n HashMap<String, Integer> mem = new HashMap<>();\n for (int i : nums)\n sb.append(i);\n return helper(sb.toString(), mem);\n }", "public Bid getfinalBid(List<Bid> bids) {\n\t\t\r\n\t\tBid myBid=null;\r\n\t\tdouble lower=0,upper=0,total=0;\r\n\t\t//briskw meso oro\r\n\t for(int i=0;i<bids.size();i++)\r\n\t {\r\n\t \ttotal=total+US.getUtility(bids.get(i));\t \t\r\n\t }\t\t\r\n\t\tlower=total/bids.size();\r\n\t\tupper=lower;\r\n\t\t\r\n\t\t//anoigo ta oria ean den iparxei bid konta ston meso oro \r\n\t\twhile(myBid==null) {\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bids.size();i++) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdouble util = US.getUtility(bids.get(i));\r\n\t\t\t\t\tif (util >= lower && util <= upper) {\r\n\t\t\t\t\t\tmyBid=bids.get(i);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lower>=0.025 && upper<=0.974) {\r\n\t\t\t\tlower=lower-0.025;\r\n\t\t\t\tupper=upper+0.025;\r\n\t\t\t}\r\n\t\t\telse if (upper>0.974) {\r\n\t\t\t\tlower=lower-0.025;\r\n\t\t\t\tupper=1;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\treturn myBid;\r\n\t}", "private RolapCalculation getAbsoluteMaxSolveOrder() {\n // Find member with the highest solve order.\n RolapCalculation maxSolveMember = calculations[0];\n for (int i = 1; i < calculationCount; i++) {\n RolapCalculation member = calculations[i];\n if (expandsBefore(member, maxSolveMember)) {\n maxSolveMember = member;\n }\n }\n return maxSolveMember;\n }", "public int maxProfit(int[] prices){\n int maxprofit = 0;\n for (int i=1;i<prices.length;i++){\n if(prices[i]>prices[i-1]){\n maxprofit += prices[i]-prices[i-1];\n }\n }\n return maxprofit;\n }", "public static void main(String[] args) {\n\t\tint[] a = { -2, -3, 4, -1, -2, 1, 5, -3 }; \n\t\t int size = a.length; \n\t int max_so_far = Integer.MIN_VALUE, max_ending_here=0;\n\t for (int i = 0; i < size; i++) { \n\t max_ending_here = max_ending_here + a[i]; \n\t if (max_so_far < max_ending_here) \n\t max_so_far = max_ending_here; \n\t if (max_ending_here < 0) \n\t max_ending_here = 0; \n\t } \n\t // System.out.println(max_so_far);\n\t int product=1,max=0;\n\t for (int i = 0; i < size; i++) {\n\t \t\n\t \tproduct=product*a[i];\n\t \tif(product>max)\n\t \t\tmax=product;\n\t \t if (product < 0) \n\t \t\t product = 1; \n\t \t\n\t }\n\t // System.out.println(max);\n\t \n\t Arrays.sort(a);\n\t int i=0,j=a.length-1;\n\t while(i<a.length &&j<a.length)\n\t {\n\t \t if(a[i]+a[j]==3)\n\t \t {\n\t \t\t System.out.println(a[i]+\" \"+a[j]);\n\t \t\t i++;j--;\n\t \t }\n\t \t else if(a[i]+a[j]>3)\n\t \t\t j--;\n\t \t else if(a[i]+a[j]<3)\n\t \t\t i++;\n\t }\n\t \n\t \n\t }", "public static void main(String[] args) {\n setStandardInput();\n\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt(); // Denoting the number of balls.\n in.skip(\"\\n\");\n\n int maxN = 100005; // The maximum number of balls.\n int maxV = 10005; // The maximum value written on a ball.\n\n int[] nums = new int[maxN];\n ArrayList<Integer> sortedBalls = new ArrayList<>();\n\n for (int i = 1; i <= N; i++) {\n nums[i] = in.nextInt();\n sortedBalls.add(nums[i]);\n }\n\n Arrays.sort(sortedBalls.toArray());\n\n int[] balls = IntStream.of(nums).distinct().toArray(); // V\n\n HashMap<Integer, Integer> H = new HashMap<>();\n for (int i = 0; i < balls.length; i++) {\n H.put(balls[i], i);\n }\n\n int[] counter = new int[maxN];\n for (int i = 1; i <= N; i++) {\n counter[H.get(nums[i])]++;\n }\n\n long[] powerOfTwo = new long[maxN]; // Maybe I can change to LONG as solution\n powerOfTwo[0] = 1L;\n for (int i = 1; i <= N; i++) {\n powerOfTwo[i] = (powerOfTwo[i - 1] << 1L) % mod;\n }\n\n // Let ways[v] denotes the number of ways modulus 10^9+7 that balls can\n // be drawn from the set, so that their GCD equals the number v.\n int[] ways = new int[maxV];\n\n for (int i = 0; i < balls.length; i++) {\n// balls\n }\n\n for (int i = 0; i < balls.length; i++) {\n\n for (int v = 1; v <= 10000; v++) {\n\n int gcd = gcd(balls[i], v);\n ways[gcd] = add(ways[gcd], (int)((powerOfTwo[counter[i]] - 1) * ways[v]));\n }\n\n ways[balls[i]] = add(ways[balls[i]], (int)powerOfTwo[counter[i]] - 1);\n }\n\n int Q = in.nextInt(); // Representing the number of GCD queries that will have to be performed.\n in.nextLine();\n\n// in.skip(\"\\n\");\n\n for (int queryNum = 1; queryNum <= Q; queryNum++) {\n\n int X = in.nextInt(); // Denoting the GCD.\n\n System.out.println(ways[X]);\n }\n }", "public static void findLargestBalance(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"There is no account\");\r\n } else {\r\n Account largestAcct = accounts.get(0);\r\n int counterNull = 0;\r\n\r\n //have only one account\r\n if (accounts.size() == 1){\r\n System.out.println(\"Account that has largest balance: \" + largestAcct.getID());\r\n }\r\n\r\n //have more than 1 accounts\r\n if (accounts.size() > 1){\r\n\r\n //compare the first two accounts to see if it return null or a double\r\n largestAcct = accounts.get(1).largestAccount(largestAcct);\r\n\r\n //if largest account equals null, we cannot invoke the method\r\n //assign the largest to be one of the 2 accounts to continue comparing\r\n if (largestAcct == null){\r\n largestAcct = accounts.get(0);\r\n counterNull++;\r\n }\r\n\r\n //comparing the array elements with the current largest account\r\n for (int i = 2; i < accounts.size(); i++){\r\n largestAcct = accounts.get(i).largestAccount(largestAcct);\r\n //count the number of null return from largest account\r\n if (largestAcct == null){\r\n counterNull++;\r\n largestAcct = accounts.get(i);\r\n }\r\n }\r\n\r\n //when all accounts have the same balance, \r\n //the number of null counter equals the number of accounts minus one \r\n if (counterNull == accounts.size() - 1)\r\n System.out.printf(\"All acounts have the same balance of %.2f \\n\", accounts.get(0).getBalance());\r\n else\r\n System.out.println(\"Account(s) that has largest balance: \" + largestAcct.getID());\r\n } \r\n }\r\n }", "public int betThisAmountOrNextLargest(int y) {\n if (playerMoney >= y) {\n return y;\n } else {//\n return playerMoney;\n\n }\n\n }", "public static void main(String[] args) {\n System.out.println(winningScoreForMarbleGame(9, 25));\n System.out.println(winningScoreForMarbleGame(10, 1618));\n System.out.println(winningScoreForMarbleGame(13, 7999));\n System.out.println(winningScoreForMarbleGame(17, 1104));\n System.out.println(winningScoreForMarbleGame(21, 6111));\n System.out.println(winningScoreForMarbleGame(30, 5807));\n\n// 424 players; last marble is worth 71482 points: high score is 408679\n System.out.println(winningScoreForMarbleGame(424, 71482));\n\n// 424 players; last marble is worth 71482 * 100 points: high score is 3443939356\n System.out.println(winningScoreForMarbleGame(424, 71482 * 100));\n }", "public int robBest(TreeNode root) {\n\t\treturn maxMoney(root)[1];\n\t}", "public int[] mostConstrained()\n\t{\n\t\tint lowest = 123456; //initialized with very high number\n\t\tint[] mostConstrained = new int[2];\n\t\tfor(int r = 0; r < board.length; r++)\n\t\t{\n\t\t\tfor(int c = 0; c < board.length; c++)\n\t\t\t{\n\t\t\t\tif(board[r][c] == 0) //only checks spots on board that are 0\n\t\t\t\t{\n\t\t\t\t\tint count = 0; //counts the number of numbers that can be placed at s spot\n\t\t\t\t\tfor(int i = 1; i < 10; i++) //goes through numbers 1-9 and checks if the numbers can be placed at the spot\n\t\t\t\t\t{\n\t\t\t\t\t\tif(canPlace(r,c,i))\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tif(count < lowest) \n\t\t\t\t\t{\n\t\t\t\t\t\tlowest = count;\n\t\t\t\t\t\tmostConstrained[0] = r; \n\t\t\t\t\t\tmostConstrained[1] = c;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mostConstrained;\n\t}", "private static int maxProfit2(int[] prices) {\n\t\tint profit = 0;\n\t\t\n\t\tint[] leftProfit = new int[prices.length];\n\t\tleftProfit[0] = 0;\n\t\tint leftBuyPrice = prices[0];\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tleftBuyPrice = Math.min(prices[i], leftBuyPrice);\n\t\t\tleftProfit[i] = Math.max(leftProfit[i-1], (prices[i]-leftBuyPrice));\n\t\t}\n\t\t\n\t\tint[] rightProfit = new int[prices.length];\n\t\trightProfit[prices.length-1] = 0;\n\t\tint rightSellPrice = prices[prices.length-1];\n\t\tfor(int i=prices.length-2; i>=0; i--) {\n\t\t\trightSellPrice = Math.max(prices[i], rightSellPrice);\n\t\t\trightProfit[i] = Math.max(rightProfit[i+1], (rightSellPrice-prices[i]));\n\t\t}\n\t\t\n\t\tfor(int i=0; i<prices.length; i++) {\n\t\t\tprofit = Math.max(profit, leftProfit[i]+rightProfit[i]);\n\t\t}\n\t\treturn profit;\n\t}", "int getChestsAmount();", "public int maxProfit(int[] prices) {\n if(prices.length==0){\n return 0;\n }\n int max = 0;\n int valley = prices[0];\n int peak = prices[0];\n int i=0;\n while(i < prices.length-1){\n while(i<prices.length-1 && prices[i]>=prices[i+1])\n i++;\n valley = prices[i];\n while(i<prices.length-1 && prices[i]<=prices[i+1])\n i++;\n peak = prices[i];\n max += peak- valley;\n }\n return max;\n }", "public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Your name please\");\n String name = input.nextLine();\n\n // get a number from the user\n System.out.println(\"Give me the amount of money in cents please, \" + name);\n int money = input.nextInt();\n \n // limit the size of the number\n while(money>100000000)\n {\n\tSystem.out.println(\"This number is too big.\");\n\tSystem.out.println(\"Please enter something smaller\");\n\tmoney = input.nextInt();\n }\n \n // do the calculations\n\n int hundreds = money / 10000;\n int leftover = money % 10000;\n\n int fifties = leftover / 5000;\n leftover = leftover % 5000;\n\n int twenties = leftover / 2000;\n leftover = leftover % 2000;\n\n int tens = leftover / 1000;\n leftover = leftover % 1000;\n\n int fives = leftover / 500;\n leftover = leftover % 500;\n\n int ones = leftover / 100;\n leftover = leftover % 100;\n\n int quarters = leftover / 25;\n leftover = leftover % 25;\n\n int dimes = leftover / 10;\n leftover = leftover % 10;\n\n int nickels = leftover / 5;\n leftover = leftover % 5;\n\n int pennies = leftover / 1;\n\n // print the results\n System.out.println(\"\"); System.out.println(\"\"); //formating for results\n\n System.out.println(\"******Dollar Bills******\"); //This is printout of dollar bills \n System.out.print(hundreds + \" Hundred dollar bill(s), \");\n System.out.print(fifties + \" Fifty dollar bill(s), \");\n System.out.print(twenties + \" Twenty dollar bill(s), \"); \n System.out.print(tens + \" Ten dollar bill(s), \");\n System.out.print(fives + \" Five dollar bill(s), \");\n System.out.print(ones + \" One dollar bill(s)\");\n \n System.out.println(\"\"); System.out.println(\"\"); \n\n System.out.println(\"******Coins******\"); //This will printout coins \n System.out.print(quarters + \" Quarter(s), \");\n System.out.print(dimes + \" Dime(s), \");\n System.out.print(nickels + \" Nickel(s), \");\n System.out.print(pennies + \" Penny(s)\");\n\n System.out.println(\"\"); //formating for results2\n\n }" ]
[ "0.796617", "0.74900085", "0.6646799", "0.6186362", "0.6183252", "0.6170285", "0.6163386", "0.61130637", "0.6043373", "0.6036917", "0.603486", "0.5932622", "0.5931789", "0.5927203", "0.5917686", "0.58632064", "0.58459055", "0.5838723", "0.5829229", "0.57896096", "0.575467", "0.5750978", "0.5708839", "0.5698962", "0.5687881", "0.56822973", "0.5674838", "0.5669772", "0.5663979", "0.56602174", "0.56482786", "0.5641046", "0.5637277", "0.5629663", "0.56283927", "0.5608416", "0.55898345", "0.55888027", "0.5561928", "0.5559558", "0.5557889", "0.555589", "0.55494255", "0.5547669", "0.5538294", "0.55353487", "0.55271757", "0.5517671", "0.55148864", "0.55091184", "0.5506148", "0.55059105", "0.5504221", "0.549603", "0.54900634", "0.5489876", "0.5487851", "0.54872006", "0.548598", "0.54857767", "0.5485274", "0.5480997", "0.547109", "0.54706985", "0.5467108", "0.5461317", "0.5458151", "0.5455924", "0.545292", "0.5443891", "0.5442224", "0.5433713", "0.5418837", "0.5417296", "0.5415846", "0.5408011", "0.5405783", "0.5400338", "0.53914416", "0.5387638", "0.5387504", "0.5386814", "0.53836125", "0.5377712", "0.53714156", "0.53694934", "0.53670114", "0.53630036", "0.53589416", "0.5358585", "0.5345492", "0.5331073", "0.5311116", "0.53083915", "0.53083855", "0.5307464", "0.5292162", "0.5292141", "0.5291768", "0.5289118", "0.52823263" ]
0.0
-1
Convenience method to keep the route definition more concise/compact
private void processor(PriceEvent e) { store.append(Price.fromEvent(e)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Route getRoute();", "Route route(String path);", "public interface Route {\n boolean match(AreaPath path);\n\n Map<String, Object> getParameterValues();\n\n /**\n * target action path\n */\n ActionPath getActionPath();\n\n /**\n * target action processor\n */\n String getProcessor();\n\n /**\n * target action task\n */\n String getTask();\n}", "String createRoute(RouteBean route);", "public Route routes() {\n return concat(\n pathPrefix(\"hello\", () ->\n concat(\n getHello(),\n path(PathMatchers.segment(), message -> concat(\n getAck(message)\n )\n )\n )\n ),\n pathPrefix(\"mission\", this::handleMission)\n );\n }", "public RouteResponse findRoute(RouteRequest routeRequest);", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Route getRoute();", "private Route append(Map<QualifiedName, PathParamDescriptor> pathParamDescriptors, String path) throws MalformedRouteException\n {\n if (path.length() == 0 || path.charAt(0) != '/')\n {\n throw new MalformedRouteException();\n }\n\n //\n int pos = path.length();\n int level = 0;\n List<Integer> start = new ArrayList<Integer>();\n List<Integer> end = new ArrayList<Integer>();\n for (int i = 1;i < path.length();i++)\n {\n char c = path.charAt(i);\n if (c == '{')\n {\n if (level++ == 0)\n {\n start.add(i);\n }\n }\n else if (c == '}')\n {\n if (--level == 0)\n {\n end.add(i);\n }\n }\n else if (c == '/')\n {\n if (level == 0)\n {\n pos = i;\n break;\n }\n }\n }\n\n //\n Route next;\n if (start.isEmpty())\n {\n String segment = path.substring(1, pos);\n SegmentRoute route = new SegmentRoute(router, segment);\n add(route);\n next = route;\n }\n else\n {\n if (start.size() == end.size())\n {\n PatternBuilder builder = new PatternBuilder();\n builder.expr(\"^\").expr('/');\n List<String> chunks = new ArrayList<String>();\n List<PathParam> parameterPatterns = new ArrayList<PathParam>();\n\n //\n int previous = 1;\n for (int i = 0;i < start.size();i++)\n {\n builder.litteral(path, previous, start.get(i));\n chunks.add(path.substring(previous, start.get(i)));\n String parameterName = path.substring(start.get(i) + 1, end.get(i));\n\n //\n QualifiedName parameterQName = QualifiedName.parse(parameterName);\n\n // Now get path param metadata\n PathParamDescriptor parameterDescriptor = pathParamDescriptors.get(parameterQName);\n\n //\n PathParam param;\n if (parameterDescriptor != null)\n {\n param = PathParam.create(parameterDescriptor, router);\n }\n else\n {\n param = PathParam.create(parameterQName, router);\n }\n\n // Append routing regex to the route regex surrounded by a non capturing regex\n // to isolate routingRegex like a|b or a(.)b\n builder.expr(\"(?:\").expr(param.routingRegex).expr(\")\");\n\n // Add the path param with the rendering regex\n parameterPatterns.add(param);\n previous = end.get(i) + 1;\n }\n\n //\n builder.litteral(path, previous, pos);\n\n // We want to satisfy one of the following conditions\n // - the next char after the matched expression is '/'\n // - the expression matched until the end\n // - the match expression is the '/' expression\n builder.expr(\"(?:(?<=^/)|(?=/)|$)\");\n\n //\n chunks.add(path.substring(previous, pos));\n PatternRoute route = new PatternRoute(router, router.compile(builder.build()), parameterPatterns, chunks);\n\n // Wire\n add(route);\n\n //\n next = route;\n }\n else\n {\n throw new UnsupportedOperationException(\"Report error\");\n }\n }\n\n //\n if (pos < path.length())\n {\n return next.append(pathParamDescriptors, path.substring(pos));\n }\n else\n {\n return next;\n }\n }", "public String route(Class<? extends RouteHandler> clazz, Object... params) {\n Route route = getRoute(clazz);\n if (route != null) {\n return route.getRouteTemplate()\n .constructPathFromTemplate(params)\n .toString();\n }\n\n return null;\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.RouteOrBuilder getRouteOrBuilder();", "String getRouteDest();", "public void registerRoute(RouteHandler handler) {\n Class<? extends RouteHandler> clazz = handler.getClass();\n if (clazz.isAnonymousClass()) {\n throw new RouteException(\"Handler class cannot be anonymous!\");\n }\n\n Method method = handler.getMethod();\n Route route = new Route(clazz, handler.getTemplate(), handler, method);\n List<Route> routes = methodRoutes.get(method);\n if (routes == null) {\n routes = new ArrayList<>();\n routes.add(route);\n methodRoutes.put(method, routes);\n } else {\n routes.add(route);\n }\n\n // we only need to sort if a route with variable segments is inserted\n if (route.getRouteTemplate().getParameterSegmentCount() != 0) {\n routes.sort((a, b) -> {\n int segCountA = a.getRouteTemplate().getParameterSegmentCount();\n int segCountB = b.getRouteTemplate().getParameterSegmentCount();\n return segCountA - segCountB;\n });\n }\n }", "private static String getRoute(String route){\n\t\tString link = (isLocal ? url_local : url_prod) + route;\n\t\treturn link;\n\t}", "public interface Router {\n\n interface Message {\n /**\n * The reply-to header\n *\n * @return the reply-to header\n */\n default String replyTo() {\n return (String) metadata().get(\"reply-to\");\n }\n\n /**\n * The host header\n *\n * @return the host header\n */\n default String host() {\n return (String) metadata().get(\"x-host\");\n }\n\n /**\n * Get the name of the reply queue to send the message to\n *\n * @return the reply queue\n */\n default String replyQueue() {\n return (String) metadata().get(\"x-reply-queue\");\n }\n\n\n /**\n * The uri header\n *\n * @return the uri header\n */\n default String uri() {\n\n return (String) metadata().get(\"x-uri\");\n }\n\n /**\n * The scheme header\n *\n * @return the scheme header\n */\n default String scheme() {\n return (String) metadata().get(\"x-scheme\");\n }\n\n /**\n * The method header\n *\n * @return the method header\n */\n default String method() {\n String m = (String) metadata().get(\"x-method\");\n if (null == m) {\n m = \"get\";\n }\n return m.toLowerCase();\n }\n\n /**\n * Get the port... may be String, Number, or null\n *\n * @return get the port\n */\n default Object port() {\n return metadata().get(\"server-port\");\n }\n\n /**\n * get the protocol for the request\n *\n * @return\n */\n default String protocol() {\n return (String) metadata().get(\"x-server-protocol\");\n }\n\n /**\n * Get the uri args for the request\n *\n * @return the uri args for the request\n */\n default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }\n\n /**\n * The content-type header\n *\n * @return the content-type header\n */\n default String contentType() {\n return (String) metadata().get(\"content-type\");\n }\n\n /**\n * The remote address of the client\n *\n * @return remote address\n */\n default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }\n\n /**\n * The\n *\n * @return\n */\n Map<String, Object> metadata();\n\n Object body();\n\n byte[] rawBody();\n\n MessageBroker.ReceivedMessage underlyingMessage();\n }\n\n /**\n * Convert the message from the more generic one from the MessageBroker into\n * something that can be routed\n *\n * @param message\n * @return\n */\n default Message brokerMessageToRouterMessage(MessageBroker.ReceivedMessage message) {\n return new Message() {\n\n @Override\n public Map<String, Object> metadata() {\n return message.metadata();\n }\n\n @Override\n public Object body() {\n return message.body();\n }\n\n @Override\n public byte[] rawBody() {\n return message.rawBody();\n }\n\n @Override\n public MessageBroker.ReceivedMessage underlyingMessage() {\n return message;\n }\n };\n }\n\n /**\n * Route the message. This may cause the message to be queued to the next handler (Runner)\n * or route it to the handler Func.\n *\n * @param message the Message to route\n * @return the result of the Message application or void if this Router forwards the message\n */\n Object routeMessage(Message message) throws IOException;\n\n\n /**\n * Release any resources that the Router has... for example, any database pool connections\n */\n void endLife();\n\n /**\n * Get the host that this Router is listening for\n *\n * @return the name of the host. May be null\n */\n String host();\n\n /**\n * Get the base path for this Router\n *\n * @return the base path for the router\n */\n String basePath();\n\n /**\n * Return the name of the queue that is associated with the host/path combination\n *\n * @return the name of the queue associated with the host/path combination\n */\n String nameOfListenQueue();\n\n /**\n * Get the swagger for this Router\n *\n * @return the Swagger information for the router\n */\n Map<String, Object> swagger();\n\n}", "public Route() {\n }", "String viewRouteDetails(String source, String destination);", "private static String formatRouteName(Class<?> cls, String actionPath, int index) {\n\t\tString name = actionPath.replaceAll(\"/\", \"\\\\.\").replaceAll(\"\\\\{\", \"\").replaceAll(\"\\\\}\", \"\");\n\t\tif (\".\".equals(name)) {\n\t\t\tname = \".root\";\n\t\t}\n\t\tname = cls.getSimpleName() + name + \".\" + index;\n\t\treturn name.toLowerCase(Locale.US);\n\t}", "public interface PrivateApiRoutes {\n}", "@Override\n\tprotected String route() {\n\t\treturn \"api/ad\";\n\t}", "public Path getExplicitRoute() {\r\n\t\treturn this.explicitRoute;\r\n\t}", "boolean hasRoute();", "private List<Route> getRoutesFromContext() {\n Set<RequestMappingInfo> requestMappingInfos = requestMappingHandlerMapping.getHandlerMethods().keySet();\n List<Route> routes = new LinkedList<>();\n for (RequestMappingInfo handlerMethod : requestMappingInfos) {\n Set<String> patterns = handlerMethod.getPatternsCondition().getPatterns();\n for (String pattern : patterns) {\n Method method = requestMappingHandlerMapping.getHandlerMethods().get(handlerMethod).getMethod();\n routes.add(new Route(pattern, method));\n }\n }\n return routes;\n }", "public interface BaseRouteConfig {\n\n String FRAGMENT_ID_TIP = \"fragment_id_tip\";\n String PAGE_PATH = \"page_path\";\n String BUNDLE_TIP = \"bundle_tip\";\n\n}", "private String printRoute() {\n String r = String.valueOf(this.route.get(0));\n int index = 1;\n while (index < this.route.size()) {\n r = r + \" - \" + this.route.get(index);\n index++;\n }\n return r;\n }", "public String getRoute() {\n return route;\n }", "public int addRoute(RouteEntry rtEntry);", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private Route attach(Router router, String targetClassName,\r\n String uriPattern, boolean defaultRoute) {\r\n Route route = null;\r\n // Load the application class using the given class name\r\n if (targetClassName != null) {\r\n try {\r\n Class<?> targetClass = Engine.classForName(targetClassName);\r\n \r\n // First, check if we have a Resource class that should be\r\n // attached directly to the router.\r\n if (Resource.class.isAssignableFrom(targetClass)) {\r\n Class<? extends Resource> resourceClass = (Class<? extends Resource>) targetClass;\r\n \r\n if (uriPattern != null && !defaultRoute) {\r\n route = router.attach(uriPattern, resourceClass);\r\n } else {\r\n route = router.attachDefault(resourceClass);\r\n }\r\n } else {\r\n Restlet target = null;\r\n \r\n try {\r\n // Create a new instance of the application class by\r\n // invoking the constructor with the Context parameter.\r\n target = (Restlet) targetClass.getConstructor(\r\n Context.class).newInstance(getContext());\r\n } catch (NoSuchMethodException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't invoke the constructor of the target class. Please check this class has a constructor with a single parameter of type Context. The empty constructor and the context setter will be used instead.\",\r\n e);\r\n \r\n // The constructor with the Context parameter does not\r\n // exist. Instantiate an application with the default\r\n // constructor then invoke the setContext method.\r\n target = (Restlet) targetClass.getConstructor()\r\n .newInstance();\r\n \r\n // Set the context based on the component's context\r\n target.setContext(getContext());\r\n }\r\n \r\n if (target != null) {\r\n if (uriPattern != null && !defaultRoute) {\r\n route = router.attach(uriPattern, target);\r\n } else {\r\n route = router.attachDefault(target);\r\n }\r\n }\r\n }\r\n } catch (ClassNotFoundException e) {\r\n getLogger().log(\r\n Level.WARNING,\r\n \"Couldn't find the target class. Please check that your classpath includes \"\r\n + targetClassName, e);\r\n \r\n } catch (InstantiationException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check this class has an empty constructor \"\r\n + targetClassName, e);\r\n } catch (IllegalAccessException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check that you have to proper access rights to \"\r\n + targetClassName, e);\r\n } catch (NoSuchMethodException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't invoke the constructor of the target class. Please check this class has a constructor with a single parameter of Context \"\r\n + targetClassName, e);\r\n } catch (InvocationTargetException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. An exception was thrown while creating \"\r\n + targetClassName, e);\r\n }\r\n }\r\n return route;\r\n }", "private RequestNodePath() {\n }", "Long addRoute(Route route);", "public static Route prepareRoute(Microcks microcks, Context<Microcks> context) {\n logger.infof(\"Preparing desired Microcks Route for '%s'\", microcks.getMetadata().getName());\n\n final ObjectMeta microcksMetadata = microcks.getMetadata();\n final String microcksName = microcksMetadata.getName();\n\n RouteBuilder builder = new RouteBuilder()\n .withNewMetadata()\n .withName(getRouteName(microcks))\n .addToLabels(\"app\", microcksName)\n .addToLabels(\"group\", \"microcks\")\n .endMetadata()\n .withNewSpec()\n .withNewTo()\n .withKind(\"Service\")\n .withName(MicrocksServiceDependentResource.getServiceName(microcks))\n .endTo()\n .withNewPort()\n .withNewTargetPort(\"spring\")\n .endPort()\n .withNewTls()\n .withTermination(microcks.getSpec().getMicrocks().getOpenshift().getRoute().getTlsTermination())\n .endTls()\n .endSpec();\n\n // Add custom url is present in the spec.\n if (microcks.getSpec().getMicrocks().getUrl() != null) {\n builder.editSpec().withHost(microcks.getSpec().getMicrocks().getUrl());\n }\n\n // Add optional TLS configuration if specified in route spec.\n final OpenShiftRouteSpec routeSpec = microcks.getSpec().getMicrocks().getOpenshift().getRoute();\n if (routeSpec.getTlsKey() != null) {\n builder.editSpec().editTls().withKey(routeSpec.getTlsKey()).endTls().endSpec();\n }\n if (routeSpec.getTlsCertificate() != null) {\n builder.editSpec().editTls().withCertificate(routeSpec.getTlsCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsCertificate() != null) {\n builder.editSpec().editTls().withCertificate(routeSpec.getTlsCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsDestinationCaCertificate() != null) {\n builder.editSpec().editTls().withDestinationCACertificate(routeSpec.getTlsDestinationCaCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsInsecureEdgeTerminationPolicy() != null) {\n builder.editSpec().editTls().withInsecureEdgeTerminationPolicy(routeSpec.getTlsInsecureEdgeTerminationPolicy()).endTls().endSpec();\n }\n\n return builder.build();\n }", "public StaticRoute(int objectID, String name) {\n super(objectID, name);\n }", "ShipmentRouteSegment createShipmentRouteSegment();", "private void setupRoutes() {\n\t\tpost(\"/messages\", (req, res) -> {\n\n\t\t\ttry {\n\t\t\t\tMessage newMessage = mapper.readValue(req.body(), Message.class);\n\t\t\t\t// Message newMessage = gson.fromJson(req.body(),\n\t\t\t\t// Message.class);\n\t\t\t\tif (!newMessage.isValid()) {\n\t\t\t\t\tres.status(HTTP_BAD_REQUEST);\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t\tservice.messagePost(newMessage);\n\t\t\t\tres.status(HTTP_OK_REQUEST);\n\t\t\t\treturn res;\n\t\t\t} catch (Exception e) {\n\t\t\t\tres.status(HTTP_BAD_REQUEST);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * \n\t\t */\n\t\tget(\"/messages/syntesis\", (request, response) -> {\n\t\t\treturn new Synthesis(1, 12l, 12l, 12L);\n\t\t} , new JsonTransformer());\n\n\t}", "@Override\n public void addDefaultRoutes() {\n super.addDefaultRoutes();\n addRoute( \"/user\", UserResponder.class );\n addRoute( \"/user/:id\", UserResponder.class );\n addRoute( \"/user/help\", GeneralResponder.class );\n addRoute( \"/general/:param1/:param2\", GeneralResponder.class );\n addRoute( \"/photos/:customer_id/:photo_id\", null );\n addRoute( \"/test\", String.class );\n addRoute( \"/interface\", Responder.class ); // this will cause an error\n addRoute( \"/toBeDeleted\", String.class );\n removeRoute( \"/toBeDeleted\" );\n addRoute( \"/stream\", StreamUrl.class );\n addRoute( \"/browse/(.)+\", StaticPageTestResponder.class, new File( \"src/test/resources\" ).getAbsoluteFile() );\n }", "@Override\n public Route route(AsyncRequest request) {\n R route = matchByUri(request);\n if (route == null) {\n route = matchAll(request);\n }\n if (route == null) {\n return null;\n }\n return route.route;\n }", "public void setRoute(List route) \n {\n this.route = route;\n }", "List<Route> getAllRoute();", "public interface Router {\n\t/**\n\t * @return\n\t * \t\trouting target information or null, if the URI didn't match\n\t */\n\tpublic RoutingTarget routeUri(HttpServletRequest request);\n\t\n\t/**\n\t * routers should be able to access the configuration and path resolver\n\t */\n\tpublic void setConfig(WeberknechtConf conf, AreaPathResolver areaPathResolver);\n}", "String getRouteID();", "@SuppressWarnings(\"unchecked\")\r\n private Route attachWithDescriptor(Router router, String targetDescriptor,\r\n String uriPattern, boolean defaultRoute) {\r\n Route route = null;\r\n String targetClassName = null;\r\n try {\r\n // Only WADL descriptors are supported at this moment.\r\n targetClassName = \"org.restlet.ext.wadl.WadlApplication\";\r\n Class<?> targetClass = Engine.classForName(targetClassName);\r\n \r\n // Get the WADL document\r\n Response response = getContext().getClientDispatcher().get(\r\n targetDescriptor);\r\n if (response.getStatus().isSuccess()\r\n && response.isEntityAvailable()) {\r\n Representation representation = response.getEntity();\r\n // Create a new instance of the application class by\r\n // invoking the constructor with the Context parameter.\r\n Application target = (Application) targetClass.getConstructor(\r\n Context.class, Representation.class).newInstance(\r\n getContext(), representation);\r\n if (target != null) {\r\n if (uriPattern != null && !defaultRoute) {\r\n route = router.attach(uriPattern, target);\r\n } else {\r\n route = router.attachDefault(target);\r\n }\r\n }\r\n } else {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"The target descriptor has not been found or is not available, or no client supporting the URI's protocol has been defined on this component. \"\r\n + targetDescriptor);\r\n }\r\n } catch (ClassNotFoundException e) {\r\n getLogger().log(\r\n Level.WARNING,\r\n \"Couldn't find the target class. Please check that your classpath includes \"\r\n + targetClassName, e);\r\n } catch (InstantiationException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check this class has an empty constructor \"\r\n + targetClassName, e);\r\n } catch (IllegalAccessException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check that you have to proper access rights to \"\r\n + targetClassName, e);\r\n } catch (NoSuchMethodException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't invoke the constructor of the target class. Please check this class has a constructor with a single parameter of Context \"\r\n + targetClassName, e);\r\n } catch (InvocationTargetException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. An exception was thrown while creating \"\r\n + targetClassName, e);\r\n }\r\n \r\n return route;\r\n }", "abstract String getFileRoute() throws IOException;", "@Delegate\n @Path(\"/projects/{project}/global\")\n RouteApi getRouteApi(@PathParam(\"project\") String projectName);", "public void setExplicitRoute(Path route) {\r\n\t\tthis.explicitRoute = route;\r\n\t}", "@Fluent()\npublic interface Route extends HasInnerModel<RouteInner>, ChildResource<RouteTable> {\n\n /** @return the destination address prefix, expressed using the CIDR notation, to which the route applies */\n String destinationAddressPrefix();\n\n /** @return the type of the next hop */\n RouteNextHopType nextHopType();\n\n /** @return the IP address of the next hop */\n String nextHopIpAddress();\n\n // Grouping of route definition stages\n\n /** Grouping of route definition stages. */\n interface DefinitionStages {\n /**\n * The first stage of a route definition.\n *\n * @param <ParentT> the stage of the parent definition to return to after attaching this definition\n */\n interface Blank<ParentT> extends WithDestinationAddressPrefix<ParentT> {\n }\n\n /**\n * The final stage of a route definition.\n *\n * <p>At this stage, any remaining optional settings can be specified, or the route definition can be attached\n * to the parent route table definition using {@link WithAttach#attach()}.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithAttach<ParentT> extends Attachable.InDefinition<ParentT> {\n }\n\n /**\n * The stage of a route definition allowing to specify the destination address prefix.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithDestinationAddressPrefix<ParentT> {\n /**\n * Specifies the destination address prefix to apply the route to.\n *\n * @param cidr an address prefix expressed in the CIDR notation\n * @return the next stage of the definition\n */\n WithNextHopType<ParentT> withDestinationAddressPrefix(String cidr);\n }\n\n /**\n * The stage of a route definition allowing to specify the next hop type.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithNextHopType<ParentT> {\n /**\n * Specifies the next hop type.\n *\n * <p>To use a virtual appliance, use {@link #withNextHopToVirtualAppliance(String)} instead and specify its\n * IP address.\n *\n * @param nextHopType a hop type\n * @return the next stage of the definition\n */\n WithAttach<ParentT> withNextHop(RouteNextHopType nextHopType);\n\n /**\n * Specifies the IP address of the virtual appliance for the next hop to go to.\n *\n * @param ipAddress an IP address of an existing virtual appliance (virtual machine)\n * @return the next stage of the definition\n */\n WithAttach<ParentT> withNextHopToVirtualAppliance(String ipAddress);\n }\n }\n\n /**\n * The entirety of a route definition.\n *\n * @param <ParentT> the return type of the final {@link DefinitionStages.WithAttach#attach()}\n */\n interface Definition<ParentT>\n extends DefinitionStages.Blank<ParentT>,\n DefinitionStages.WithAttach<ParentT>,\n DefinitionStages.WithNextHopType<ParentT>,\n DefinitionStages.WithDestinationAddressPrefix<ParentT> {\n }\n\n /** Grouping of route update stages. */\n interface UpdateStages {\n /** The stage of a route update allowing to modify the destination address prefix. */\n interface WithDestinationAddressPrefix {\n /**\n * Specifies the destination address prefix to apply the route to.\n *\n * @param cidr an address prefix expressed in the CIDR notation\n * @return the next stage of the update\n */\n Update withDestinationAddressPrefix(String cidr);\n }\n\n /** The stage of a route update allowing to specify the next hop type. */\n interface WithNextHopType {\n /**\n * Specifies the next hop type.\n *\n * <p>To use a virtual appliance, use {@link #withNextHopToVirtualAppliance(String)} instead and specify its\n * IP address.\n *\n * @param nextHopType a hop type\n * @return the next stage of the update\n */\n Update withNextHop(RouteNextHopType nextHopType);\n\n /**\n * Specifies the IP address of the virtual appliance for the next hop to go to.\n *\n * @param ipAddress an IP address of an existing virtual appliance (virtual machine)\n * @return the next stage of the update\n */\n Update withNextHopToVirtualAppliance(String ipAddress);\n }\n }\n\n /** The entirety of a route update as part of a route table update. */\n interface Update\n extends Settable<RouteTable.Update>, UpdateStages.WithDestinationAddressPrefix, UpdateStages.WithNextHopType {\n }\n\n /** Grouping of route definition stages applicable as part of a route table update. */\n interface UpdateDefinitionStages {\n /**\n * The first stage of a route definition.\n *\n * @param <ParentT> the stage of the parent definition to return to after attaching this definition\n */\n interface Blank<ParentT> extends WithDestinationAddressPrefix<ParentT> {\n }\n\n /**\n * The final stage of a route definition.\n *\n * <p>At this stage, any remaining optional settings can be specified, or the route definition can be attached\n * to the parent route table definition using {@link WithAttach#attach()}.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithAttach<ParentT> extends Attachable.InUpdate<ParentT> {\n }\n\n /**\n * The stage of a route definition allowing to specify the destination address prefix.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithDestinationAddressPrefix<ParentT> {\n /**\n * Specifies the destination address prefix to apply the route to.\n *\n * @param cidr an address prefix expressed in the CIDR notation\n * @return the next stage of the definition\n */\n WithNextHopType<ParentT> withDestinationAddressPrefix(String cidr);\n }\n\n /**\n * The stage of a route definition allowing to specify the next hop type.\n *\n * @param <ParentT> the return type of {@link WithAttach#attach()}\n */\n interface WithNextHopType<ParentT> {\n /**\n * Specifies the next hop type.\n *\n * <p>To use a virtual appliance, use {@link #withNextHopToVirtualAppliance(String)} instead and specify its\n * IP address.\n *\n * @param nextHopType a hop type\n * @return the next stage of the definition\n */\n WithAttach<ParentT> withNextHop(RouteNextHopType nextHopType);\n\n /**\n * Specifies the IP address of the virtual appliance for the next hop to go to.\n *\n * @param ipAddress an IP address of an existing virtual appliance (virtual machine)\n * @return the next stage of the definition\n */\n WithAttach<ParentT> withNextHopToVirtualAppliance(String ipAddress);\n }\n }\n\n /**\n * The entirety of a route definition as part of a route table update.\n *\n * @param <ParentT> the return type of the final {@link UpdateDefinitionStages.WithAttach#attach()}\n */\n interface UpdateDefinition<ParentT>\n extends UpdateDefinitionStages.Blank<ParentT>,\n UpdateDefinitionStages.WithAttach<ParentT>,\n UpdateDefinitionStages.WithNextHopType<ParentT>,\n UpdateDefinitionStages.WithDestinationAddressPrefix<ParentT> {\n }\n}", "public String getRoutingNo();", "@Override\n protected RouterFunction<ServerResponse> getRoutingFunction(ErrorAttributes errorAttributes) {\n return RouterFunctions.route(RequestPredicates.all(),this::errorHandler);\n }", "@Override\r\n public Route getRoute() {\r\n return this.route;\r\n }", "public void invalidRoute() \n {\n validRoute = false;\n }", "@GET(\"/routecollection/{startLocation}\")\n void getRoutes(@Path(\"startLocation\")String startLocation, Callback<Routes> routes);", "public void routingStarted(RoutingHeader routingHeader) {\n \n }", "public void routingStarted(RoutingHeader routingHeader) {\n \n }", "@Override\n public void init(Router router) {\n\n // /////////////////////////////////////////////////////////////////////\n // some default functions\n // /////////////////////////////////////////////////////////////////////\n // simply render a page:\n router.GET().route(\"/\").with(ApplicationController.class, \"index\");\n router.GET().route(\"/examples\").with(ApplicationController.class, \"examples\");\n\n // render a page with variable route parts:\n router.GET().route(\"/user/{id}/{email}/userDashboard\").with(ApplicationController.class, \"userDashboard\");\n\n router.GET().route(\"/validation\").with(ApplicationController.class, \"validation\");\n\n // redirect back to /\n router.GET().route(\"/redirect\").with(ApplicationController.class, \"redirect\");\n\n router.GET().route(\"/session\").with(ApplicationController.class, \"session\");\n \n router.GET().route(\"/flash_success\").with(ApplicationController.class, \"flashSuccess\");\n router.GET().route(\"/flash_error\").with(ApplicationController.class, \"flashError\");\n router.GET().route(\"/flash_any\").with(ApplicationController.class, \"flashAny\");\n \n router.GET().route(\"/htmlEscaping\").with(ApplicationController.class, \"htmlEscaping\");\n\n // /////////////////////////////////////////////////////////////////////\n // Json support\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/api/person.json\").with(PersonController.class, \"getPersonJson\");\n router.POST().route(\"/api/person.json\").with(PersonController.class, \"postPersonJson\");\n \n router.GET().route(\"/api/person.xml\").with(PersonController.class, \"getPersonXml\");\n router.POST().route(\"/api/person.xml\").with(PersonController.class, \"postPersonXml\");\n\n // /////////////////////////////////////////////////////////////////////\n // Form parsing support\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/contactForm\").with(ApplicationController.class, \"contactForm\");\n router.POST().route(\"/contactForm\").with(ApplicationController.class, \"postContactForm\");\n\n // /////////////////////////////////////////////////////////////////////\n // Cache support test\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/test_caching\").with(ApplicationController.class, \"testCaching\");\n \n // /////////////////////////////////////////////////////////////////////\n // Lifecycle support\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/udpcount\").with(UdpPingController.class, \"getCount\");\n \n // /////////////////////////////////////////////////////////////////////\n // Route filtering example:\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/filter\").with(FilterController.class, \"filter\");\n router.GET().route(\"/teapot\").with(FilterController.class, \"teapot\");\n\n // /////////////////////////////////////////////////////////////////////\n // Route filtering example:\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/injection\").with(InjectionExampleController.class, \"injection\");\n\n // /////////////////////////////////////////////////////////////////////\n // Async example:\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/async\").with(AsyncController.class, \"asyncEcho\");\n\n // /////////////////////////////////////////////////////////////////////\n // I18n:\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/i18n\").with(I18nController.class, \"index\");\n router.GET().route(\"/i18n/{language}\").with(I18nController.class, \"indexWithLanguage\");\n\n // /////////////////////////////////////////////////////////////////////\n // Upload showcase\n // /////////////////////////////////////////////////////////////////////\n router.GET().route(\"/upload\").with(UploadController.class, \"upload\");\n router.POST().route(\"/uploadFinish\").with(UploadController.class, \"uploadFinish\");\n \n \n //this is a route that should only be accessible when NOT in production\n // this is tested in RoutesTest\n if (!ninjaProperties.isProd()) {\n router.GET().route(\"/_test/testPage\").with(ApplicationController.class, \"testPage\");\n }\n\n router.GET().route(\"/assets/.*\").with(AssetsController.class, \"serve\");\n }", "protected abstract Builder processSpecificRoutingRule(Builder rb);", "@Override\n protected RoutesBuilder createRouteBuilder() throws Exception {\n // override this method and provide our RouteBuilder class\n return new RestDslRouteBuilder();\n }", "private void configureRoutesAndExceptions() {\n\n }", "public void compute() {\r\n this.host = \".*\";\r\n this.hostPattern = new Pattern(host);\r\n // staticDir\r\n if (action.startsWith(\"staticDir:\")) {\r\n if (!method.equalsIgnoreCase(\"*\") && !method.equalsIgnoreCase(\"GET\")) {\r\n Logger.warn(\"Static route only support GET method\");\r\n return;\r\n }\r\n if (!this.path.endsWith(\"/\") && !this.path.equals(\"/\")) {\r\n Logger.warn(\"The path for a staticDir route must end with / (%s)\", this);\r\n this.path += \"/\";\r\n }\r\n this.pattern = new Pattern(\"^\" + path + \"({resource}.*)$\");\r\n this.staticDir = action.substring(\"staticDir:\".length());\r\n } else {\r\n // URL pattern\r\n // Is there is a host argument, append it.\r\n if (!path.startsWith(\"/\")) {\r\n String p = this.path;\r\n this.path = p.substring(p.indexOf(\"/\"));\r\n this.host = p.substring(0, p.indexOf(\"/\"));\r\n\r\n Matcher m = new Pattern(\".*\\\\{({name}.*)\\\\}.*\").matcher(host);\r\n\r\n if (m.matches()) {\r\n String name = m.group(\"name\");\r\n hostArg = new Arg();\r\n hostArg.name = name;\r\n }\r\n this.host = this.host.replaceFirst(\"\\\\{.*\\\\}\", \"\");\r\n this.hostPattern = new Pattern(host);\r\n }\r\n String patternString = path;\r\n patternString = customRegexPattern.replacer(\"\\\\{<[^/]+>$1\\\\}\").replace(patternString);\r\n Matcher matcher = argsPattern.matcher(patternString);\r\n while (matcher.find()) {\r\n Route.Arg arg = new Arg();\r\n arg.name = matcher.group(2);\r\n arg.constraint = new Pattern(matcher.group(1));\r\n args.add(arg);\r\n }\r\n\r\n patternString = argsPattern.replacer(\"({$2}$1)\").replace(patternString);\r\n this.pattern = new Pattern(patternString);\r\n // Action pattern\r\n patternString = action;\r\n patternString = patternString.replace(\".\", \"[.]\");\r\n for (Route.Arg arg : args) {\r\n if (patternString.contains(\"{\" + arg.name + \"}\")) {\r\n patternString = patternString.replace(\"{\" + arg.name + \"}\", \"({\" + arg.name + \"}\" + arg.constraint.toString() + \")\");\r\n actionArgs.add(arg.name);\r\n }\r\n }\r\n actionPattern = new Pattern(patternString, REFlags.IGNORE_CASE);\r\n }\r\n }", "public void setRoute(Route route) {\n this.route = route;\n }", "public RouteInterface setUri(String uri);", "@SneakyThrows\n private void invokeRequestRouting(Class<?> clazz, Injector injector) {\n log.info(MODULE_NAME + clazz.getName());\n Route route = clazz.getAnnotation(Route.class);\n String prefix = route.value();\n Object instance = injector.getInstance(clazz);\n clazz.getMethod(ROUTE_METHOD_NAME, String.class).invoke(instance, prefix);\n Method[] methods = clazz.getMethods();\n for (Method method : Arrays.asList(methods)) {\n if (method.isAnnotationPresent(RequestRouting.class)) {\n RequestRouting requestRouting = method.getAnnotation(RequestRouting.class);\n String path = requestRouting.path();\n int order = requestRouting.order();\n path = (StringUtils.isNotEmpty(prefix)) ? prefix + path : path;\n router.route(requestRouting.method(), path).order(order).handler(rc -> {\n try {\n method.invoke(instance, rc);\n } catch (Exception e) {\n log.error(MODULE_NAME + e.getMessage());\n }\n });\n }\n }\n }", "@Override\n public void getRoutes(LoadRouteCallback callback) {\n\n\n }", "public interface RouteProtocol {\n\n default void onBeforeLaunch(@NonNull Context context) {}\n default int getLaunchDelay() { return 0; }\n default boolean willActivityFinish() { return false; }\n @NonNull\n Intent getIntent(@NonNull Context context);\n}", "@GetMapping(\"/route/list\")\n public String allRoutesPage() {\n return \"admin/route_list\";\n }", "private String printRoute(Rota r) {\n StringBuilder s = new StringBuilder();\n\n for (String d : r.getPontos()) {\n s.append(d + \"->\");\n }\n s = s.replace(s.length() - 2, s.length(), \".\");\n\n return s.toString();\n }", "public interface RoutesApi\n{\n\n //TODO add all methods from the API and annotate according to Retrofit\n\n @GET(\"/routecollection/{startLocation}\")\n void getRoutes(@Path(\"startLocation\")String startLocation, Callback<Routes> routes);\n\n\n @POST(\"/placeRoute\")\n void placeRoute(Route newRoute, Callback callback);\n\n @DELETE(\"/deleteRoute\")\n void deleteRoute(Long routeId);\n\n\n\n}", "final RouteMatcher route(String path, Map<String, String[]> requestParams)\n {\n return new RouteMatcher(this, Path.parse(path), requestParams);\n }", "public void addRoutes(Routing routing) {\n\n // Map to /foo\n routing.route(path(\"foo\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"from the foo handler\");\n }\n }));\n\n // Map to /bar\n routing.route(path(\"bar\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"from the bar handler\");\n }\n }));\n\n // Set up a nested routing block, where\n routing.route(path(\"nested\", new RoutingBuilder<Routing>() {\n public void addRoutes(Routing routing) {\n\n // Map to /nested/*/*\n routing.route(exactPath(\":var1/:var2\", new Handler() {\n public void handle(Exchange exchange) {\n // The path tokens are the :var1 and :var2 path components above\n Map<String, String> pathTokens = exchange.getPathTokens();\n exchange.getResponse().send(\"from the nested handler, var1: \" + pathTokens.get(\"var1\") + \", \" + pathTokens.get(\"var2\"));\n }\n }));\n }\n }));\n\n // Map a dependency injected handler to\n routing.route(path(\"injected\", handler(MyHandler.class)));\n\n // Bind the /static app path to the src/ratpack/assets dir\n // Try /static/logo.png\n routing.route(assetsPath(\"static\", \"assets\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().status(404).send();\n }\n }));\n\n // If nothing above matched, we'll get to here.\n routing.route(new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"root handler!\");\n }\n });\n }", "public String routingKey();", "public abstract String getRequestPathInfo();", "private RouteMatch _find(RenderContext context)\n {\n for (RouteParam param : routeParamArray)\n {\n RenderContext.Parameter entry = context.getParameter(param.name);\n if (entry != null && !entry.isMatched() && param.value.equals(entry.getValue()))\n {\n entry.remove(entry.getValue());\n }\n else\n {\n return null;\n }\n }\n\n // Match any request parameter\n for (RequestParam requestParamDef : requestParamArray)\n {\n RenderContext.Parameter entry = context.getParameter(requestParamDef.name);\n boolean matched = false;\n if (entry != null && !entry.isMatched())\n {\n if (requestParamDef.matchPattern == null || context.matcher(requestParamDef.matchPattern).matches(entry.getValue()))\n {\n matched = true;\n }\n }\n if (matched)\n {\n entry.remove(entry.getValue());\n }\n else\n {\n switch (requestParamDef.controlMode)\n {\n case OPTIONAL:\n // Do nothing\n break;\n case REQUIRED:\n return null;\n default:\n throw new AssertionError();\n }\n }\n }\n\n // Match any pattern parameter\n if (this instanceof PatternRoute)\n {\n PatternRoute prt = (PatternRoute)this;\n for (int i = 0;i < prt.params.length;i++)\n {\n PathParam param = prt.params[i];\n RenderContext.Parameter s = context.getParameter(param.name);\n String matched = null;\n if (s != null && !s.isMatched())\n {\n switch (param.encodingMode)\n {\n case FORM:\n case PRESERVE_PATH:\n for (int j = 0;j < param.matchingRegex.length;j++)\n {\n Regex renderingRegex = param.matchingRegex[j];\n if (context.matcher(renderingRegex).matches(s.getValue()))\n {\n matched = param.templatePrefixes[j] + s.getValue() + param.templateSuffixes[j];\n break;\n }\n }\n break;\n default:\n throw new AssertionError();\n }\n }\n if (matched != null)\n {\n s.remove(matched);\n }\n else\n {\n return null;\n }\n }\n }\n\n //\n if (context.isEmpty() && terminal)\n {\n Map<QualifiedName, String> matches = Collections.emptyMap();\n for (QualifiedName name : context.getNames())\n {\n RenderContext.Parameter parameter = context.getParameter(name);\n if (matches.isEmpty())\n {\n matches = new HashMap<QualifiedName, String>();\n }\n String match = parameter.getMatch();\n matches.put(name, match);\n }\n return new RouteMatch(context, this, matches);\n }\n\n //\n for (Route route : children)\n {\n RouteMatch a = route.find(context);\n if (a != null)\n {\n return a;\n }\n }\n\n //\n return null;\n }", "java.lang.String getRoutingKey();", "@Override\r\n \t\tpublic void configRoute(Routes me) {\n \t\t\tsuper.configRoute(me);\r\n \t\t\tme.add(\"/\", TestController.class, \"\");\r\n \t\t}", "Route(String source,String destination,String departingDate,String returningDate)\r\n {\r\n this.Source=source;\r\n this.destination=destination;\r\n this.departingDate=departingDate;\r\n this.returningDate=returningDate;\r\n }", "public OptionalThing<UrlMappingOption> toRestfulMappingPath(UrlMappingResource resource) {\n final String workingMappingPath = resource.getWorkingMappingPath(); // may be filtered before\n final List<String> elementList = splitPath(workingMappingPath); // only for determination\n\n if (!determineRestfulPath(resource, elementList)) { // e.g. /, /1/products/, /products/purchases/\n return OptionalThing.empty(); // no filter\n }\n // comment out because of virtual list handling and RESTful mapping message\n // so always call conversion process here even if e.g. /products/\n //if (elementList.size() <= 2) { // e.g. /products/, /products/1/\n // return OptionalThing.empty(); // no filter\n //}\n return OptionalThing.of(createUrlMappingOption(resource, elementList));\n }", "public static <T> T fromPath(\n String argName,\n String route,\n Class<T> argType,\n boolean required,\n String defaultValue,\n String path,\n String requestId) {\n\n String value = null;\n String key = \"{\" + argName + \"}\";\n\n String[] routeBlocks = route.split(\"/\");\n String[] pathBlocks = path.split(\"/\");\n\n for (int j = 0; j < routeBlocks.length; j++) {\n if (key.equals(routeBlocks[j])) {\n value = pathBlocks[j];\n break;\n }\n }\n\n // path args are mandatory\n return tryParse(\n argName,\n value != null ? List.of(value) : List.of(),\n argType, defaultValue, required, requestId,\n CloudFunctionHelper::parseSimple).get(0);\n }", "public List<String> getRouteList();", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public void setRoute (java.lang.String route) {\n\t\tthis.route = route;\n\t}", "public interface RouteConfigurator {\n\n PSConnector setLocalIpAddress(String cidr);\n\n PSConnector setStaticRoute(String destCidr, String nextHopeIpAddress);\n\n void setTunnelStaticRoute(String siteId, String destCidr);\n\n PSConnector setTunnel(String tunnelId, String localIpAddress, String remoteIpAddress);\n\n void setSiteToTunnel(String siteId, String tunnelId);\n\n PSConnector setDefaultGateway(String ipAddress);\n\n Set<RouteEntry>getRouteEntrySet();\n\n\n\n}", "private Route(\n Class<? extends RouteHandler> handlerClass,\n RouteTemplate routeTemplate,\n RouteHandler handler,\n Method method) {\n\n this.handlerClass = handlerClass;\n this.routeTemplate = routeTemplate;\n this.handler = handler;\n this.method = method;\n\n routeMap.put(handlerClass, this);\n }", "public interface RouterB {\n @RouterUri(\"suninfo://host_b\")\n public Intent getIntentActivityB(@RouterParamters(\"name\") String name);\n}", "public RouteInterface setName(String name);", "public void configureRoutes() {\n Service http = Service.ignite();\n\n http.port( 6001 );\n\n http.after( ( (request, response) -> response.type(\"application/json\" ) ) );\n\n http.post( \"/accounts/authenticate\", this.authRoutes.authenticate );\n http.post( \"/restaurants/authenticate\", this.authRoutes.authenticateRestaurant );\n\n http.post( \"*\", (req, res) -> {\n res.status( HttpStatus.NOT_FOUND_404 );\n\n return \"{}\";\n } );\n }", "@Override\n\tpublic Router getRestlet(Context context){\n\t\tRouter router = new Router(context);\n\t\trouter.attach(\"/links/json\", LinksResource.class);\n\t\trouter.attach(\"/config/json\",FdmReq_CapResource.class);\n\t\t\n\t\t\n\t\treturn router;\n\t}", "public interface Router {\n final class BundleKeys {\n private BundleKeys() {\n }\n\n public static final String EMPLOYEE = \"employee\";\n }\n\n /**\n * This method enables navigation to {@link mk.pjonceski.empleyeemanager.ui.features.employee_details_feature.EmployeeDetailsActivity}\n *\n * @param data the extra data to be transferred.\n */\n void navigateToEmployeeDetailsActivity(@Nullable Bundle data);\n}", "protected abstract String getBaseEndpointPath();", "Route getRouteById(Long id_route) throws RouteNotFoundException;", "boolean updateRoute(RouteBean route);", "public String printRoute()\r\n {\r\n String res = this.getRoute().stream()\r\n .map(entry -> entry.getKey().getId()\r\n + \":\"\r\n + entry.getValue()\r\n + \";\")\r\n .collect(Collectors.joining());\r\n System.out.println(res);\r\n return res;\r\n }", "public RoutingC2A()\r\n\t{\r\n\t\tsuper();\r\n\t}", "void setRoute(Shape route);", "public Route() {\n responseType = ResponseType.FORWARD;\n responsePath = FORWARD_TO_ERROR_PAGE;\n }", "@Route(method = GET,uri = \"/{name}/french\")\n public Result helloFrench(@Parameter(value=\"name\") String name){\n return ok(\"Bonjour \"+name);\n }", "RouteBean findRouteId(String routeID);", "public Router getRouter();", "public static route createroute(routeparameter aRouteparameter) {\n Partitioner<Text> partitioner = aRouteparameter.getPartitioner();\n HashMap<Integer, Integer> hashBucketToPartition = aRouteparameter\n .getHashBucketToPartition();\n HashMap<Integer, Integer> rangeRouter = aRouteparameter.getRangeRouter();\n if (hashBucketToPartition == null) {\n if (rangeRouter == null) {\n return new HashRoute(partitioner);\n } else {\n return new RangeRoute(rangeRouter);\n }\n } else {\n return new BalancerHashRoute(partitioner, hashBucketToPartition);\n }\n }", "void btnGenerateRoute();", "private void buildRoutes(String type) {\r\n\t\tswitch (type.charAt(0)) {\r\n\t\tcase 'F':\r\n\t\t\tthis.wwd.firePropertyChange(\"step\", \"\", \"Création des routes FIR\");\r\n\t\t\tbreak;\r\n\t\tcase 'U':\r\n\t\t\tthis.wwd.firePropertyChange(\"step\", \"\", \"Création des routes UIR\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public Route getRoute(Class<? extends RouteHandler> clazz) {\n return Route.getRouteFromHandler(clazz);\n }", "public void setRoutes(Route base) {\n\t\tthis.base = base;\n\t}" ]
[ "0.6891416", "0.67887765", "0.66212165", "0.64386296", "0.61754644", "0.5954392", "0.59221524", "0.59016055", "0.58243096", "0.58239883", "0.58177364", "0.5772292", "0.5665876", "0.56535506", "0.5649211", "0.5611838", "0.56109923", "0.5604532", "0.55929387", "0.5592232", "0.55827266", "0.5578949", "0.5576254", "0.5560098", "0.5557702", "0.5556565", "0.55405724", "0.55359465", "0.5519298", "0.55180836", "0.55124485", "0.54907763", "0.5486666", "0.5484931", "0.5480956", "0.54801", "0.54223216", "0.5421412", "0.5417842", "0.5403377", "0.53955364", "0.53955007", "0.53919053", "0.5374721", "0.53732127", "0.5364279", "0.53623545", "0.5349328", "0.5339052", "0.53345007", "0.5331231", "0.5331231", "0.53269625", "0.532477", "0.53170633", "0.53029895", "0.52917707", "0.52908903", "0.5286718", "0.52679855", "0.5257617", "0.525439", "0.5253388", "0.5244852", "0.52346647", "0.5223095", "0.5220712", "0.5210963", "0.5206282", "0.5203068", "0.520253", "0.51981187", "0.5195554", "0.517631", "0.51751494", "0.5168088", "0.51647145", "0.5155461", "0.51534843", "0.514963", "0.5132176", "0.51272094", "0.5119258", "0.51087433", "0.5106408", "0.5106074", "0.51052785", "0.50747776", "0.507424", "0.5064059", "0.5061786", "0.5058373", "0.5057927", "0.50462645", "0.5038528", "0.50369966", "0.5033505", "0.5033145", "0.5032072", "0.502621", "0.5021945" ]
0.0
-1
/ Computing Event ============= The below code is the example to pass a Computing event to the AdGyde SDK. This event is used to get SubCategory counting as per weightage of the SubCategory Multiple values Can be passed for getting the computed values When user passes multiple values, the console shows the computed values of each value relatively NOTE : Creating the Computing Event on Console with Event ID, Parameter is Compulsory
public void onAdvertismentClicked1() { HashMap<String, String> params = new HashMap<String, String>(); // Passing a computing event is a little complex // First the Sub-Category needs to be specified in a Parameter + Value combination // Then the Weightage of the Value needs to be specified in a Value + Weightage Combination // In below Example 30%off is a Sub-Category and 1 is the Weightage of the same params.put("ParameterName", "30%off"); params.put("30%off", "1"); // Event is triggered with EventId and Parameters prepared above, the same are passed in this function AdGyde.onComputingEvent("Sale", params); Toast.makeText(this, "Computing event Ad1 clicked", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void trackEvent(@NotNull String eventCategory,\n @NotNull String eventAction,\n @Nullable String eventLabel,\n @Nullable Integer eventValue);", "int countByExample(EventDetail eventDetail);", "public EvelThresholdCross( String evname,String evid,\r\n\t\t\t String tcriticality,\r\n\t String tname,\r\n\t String tthresholdCrossed,\r\n\t String tvalue,\r\n EVEL_EVENT_ACTION talertAction,\r\n String talertDescription, \r\n EVEL_ALERT_TYPE talertType,\r\n Date tcollectionTimestamp, \r\n EVEL_SEVERITIES teventSeverity,\r\n Date teventStartTimestamp)\r\n\t{\r\n\t\tsuper(evname,evid);\r\n\t\tevent_domain = EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING;\r\n\t\tassert( tcriticality!= null );\r\n\t\tassert( tname!= null );\r\n\t\tassert( tthresholdCrossed!= null );\r\n\t\tassert( tvalue!= null );\r\n\t\tassert( talertAction!= null );\r\n\t\t\r\n\t\tadditionalParameters = new PERF_COUNTER();\r\n\t\tassert( additionalParameters != null);\r\n\t\t\r\n\t\tadditionalParameters.criticality = tcriticality;\r\n\t\tadditionalParameters.name = tname;\r\n\t\tadditionalParameters.thresholdCrossed = tthresholdCrossed;\r\n\t\tadditionalParameters.value = tvalue;\r\n alertAction = talertAction;\r\n alertDescription = talertDescription; \r\n alertType = talertType;\r\n collectionTimestamp = tcollectionTimestamp; \r\n eventSeverity = teventSeverity;\r\n eventStartTimestamp = teventStartTimestamp;\r\n\t\t\r\n additional_info = null;\r\n alertValue = new EvelOptionString();\r\n alertidList = null;\r\n dataCollector = new EvelOptionString();\r\n elementType = new EvelOptionString();\r\n interfaceName = new EvelOptionString();\r\n networkService = new EvelOptionString();\r\n possibleRootCause = new EvelOptionString();\r\n\t}", "public void trackEventForCountlyAndGA(String category, String action, String label,Map<String, String> hMap){\n\n if(hMap!=null){\n if(!TextUtils.isEmpty(category)) {\n hMap.put(\"category\", category);\n }\n if(!TextUtils.isEmpty(label)){\n hMap.put(\"label\",label);\n }\n if(!TextUtils.isEmpty(action)){\n hMap.put(\"action\", action);\n }\n }\n\n trackEventCountly(action,hMap);\n trackEventGA(category,action,label);\n }", "public void printVenueCharges (Event _event) {\n\t}", "void print_statistics(long tot_arrived, long tot_processed, Double end_time){\n\n CloudEvent cloudEvent = new CloudEvent();\n CloudletEvent cletEvent = new CloudletEvent();\n PrintFile print = new PrintFile();\n\n\n // System response time & throughput\n\n float system_response_time = (float)(sum_service_times1_clet+ sum_service_times1_cloud + sum_service_times2_clet+ sum_service_times2_cloud)/ tot_processed;\n float response_time_class1 = (float) ((sum_service_times1_clet+ sum_service_times1_cloud)/ (completition_clet_type1 + completition_cloud_type1));\n float response_time_class2 = (float) ((sum_service_times2_clet+ sum_service_times2_cloud)/ (completition_clet_type2 + completition_cloud_type2));\n\n float lambda_tot = (float) (tot_arrived/end_time);\n float lambda_1 = (float)((arrival_type1_clet+arrival_type1_cloud)/end_time);\n float lambda_2 = (float)((arrival_type2_clet+arrival_type2_cloud)/end_time);\n\n\n // per-class effective cloudlet throughput\n\n float task_rate_clet1 = (float) ((float)completition_clet_type1 / end_time);\n float task_rate_clet2 = (float) ((float)completition_clet_type2 / end_time);\n\n\n // per-class cloud throughput\n\n float lambda_cloud1 = (float) ((arrival_type1_cloud)/end_time);\n float lambda_cloud2 = (float) ((arrival_type2_cloud)/end_time);\n\n\n // class response time and mean population\n\n float response_time_cloudlet = (float) (sum_service_times1_clet+ sum_service_times2_clet)/ (completition_clet_type1 + completition_clet_type2);\n float response_time_cloudlet1 = (float) sum_service_times1_clet/ completition_clet_type1;\n float response_time_cloudlet2 = (float) (sum_service_times2_clet/ completition_clet_type2);\n\n float response_time_cloud = (float) ((sum_service_times1_cloud+ sum_service_times2_cloud)/ (completition_cloud_type1 + completition_cloud_type2));\n float response_time_cloud1 = (float) (sum_service_times1_cloud/ completition_cloud_type1);\n float response_time_cloud2 = (float) (sum_service_times2_cloud/ completition_cloud_type2);\n\n // E[N] cloudlet\n float mean_cloudlet_jobs = cletEvent.mean_cloudlet_jobs_number();\n // E[N] class 1 cloudlet\n float mean_cloudlet_jobs1 = cletEvent.mean_cloudlet_jobs_number1();\n // E[N] class 2 cloudlet\n float mean_cloudlet_jobs2 = cletEvent.mean_cloudlet_jobs_number2();\n\n // E[N] cloud\n float mean_cloud_jobs = cloudEvent.mean_cloud_jobs_number();\n // E[N] class 1 cloud\n float mean_cloud_jobs1 = cloudEvent.mean_cloud_jobs_number1();\n // E[N] class 2 cloud\n float mean_cloud_jobs2 = cloudEvent.mean_cloud_jobs_number2();\n\n\n // Altre statistiche di interesse\n\n float lambda_clet = (float) ((arrival_type1_clet+ arrival_type2_clet)/end_time);\n float lambda_clet1 = (float) ((arrival_type1_clet)/end_time);\n float lambda_clet2 = (float) ((arrival_type2_clet)/end_time);\n float lambda_cloud = (float) ((arrival_type1_cloud+ arrival_type2_cloud)/end_time);\n\n double rate1_clet = mean_cloudlet_jobs1*0.45;\n double rate2_clet = mean_cloudlet_jobs2*0.27;\n\n\n\n NumberFormat numForm = NumberFormat.getInstance();\n numForm.setMinimumFractionDigits(6);\n numForm.setMaximumFractionDigits(6);\n numForm.setRoundingMode(RoundingMode.HALF_EVEN);\n\n\n System.out.println(\"\\n\\n\\n 1) SYSTEM RESPONSE TIME & THROUGHPUT \" + \"(GLOBAL & PER-CLASS)\");\n\n System.out.println(\"\\n Global System response time ...... = \" + numForm.format( system_response_time));\n System.out.println(\" Response time class 1 ...... = \" + numForm.format( response_time_class1));\n System.out.println(\" Response time class 2 ...... = \" + numForm.format( response_time_class2));\n\n System.out.println(\"\\n Global System throughput ...... = \" + numForm.format( lambda_tot));\n System.out.println(\" Throughput class 1 ...... = \" + numForm.format( lambda_1));\n System.out.println(\" Throughput class 2 ...... = \" + numForm.format( lambda_2));\n\n\n System.out.println(\"\\n\\n\\n 2) PER_CLASS EFFECTIVE CLOUDLET THROUGHPUT \");\n System.out.println(\" Task-rate cloudlet class 1 ...... = \" + numForm.format( rate1_clet));\n System.out.println(\" Task-rate cloudlet class 2 ...... = \" + numForm.format( rate2_clet));\n\n\n System.out.println(\"\\n\\n\\n 3) PER_CLASS CLOUD THROUGHPUT \");\n System.out.println(\" Throughput cloud class 1 ...... = \" + numForm.format( lambda_cloud1));\n System.out.println(\" Throughput cloud class 2 ...... = \" + numForm.format( lambda_cloud2));\n\n\n System.out.println(\"\\n\\n\\n 4) CLASS RESPONSE TIME & MEAN POPULATION \" + \"(CLOUDLET & CLOUD)\");\n\n System.out.println(\"\\n Response Time class 1 cloudlet ...... = \" + numForm.format( response_time_cloudlet1));\n System.out.println(\" Response Time class 2 cloudlet ...... = \" + numForm.format(response_time_cloudlet2));\n System.out.println(\" Response Time class 1 cloud ...... = \" + numForm.format( response_time_cloud1));\n System.out.println(\" Response Time class 2 cloud ...... = \" + numForm.format( response_time_cloud2));\n\n System.out.println(\"\\n Mean Population class 1 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs1));\n System.out.println(\" Mean Population class 2 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs2));\n System.out.println(\" Mean Population class 1 cloud ...... = \" + numForm.format( mean_cloud_jobs1));\n System.out.println(\" Mean Population class 2 cloud ...... = \" + numForm.format( mean_cloud_jobs2));\n\n }", "private static void getFirestoreCategory(final Activity activity, final Dialog dialog, final EditText input, final Button send, final Button resend, final GifImageView counter,final String token,final String PhoneNumber){\n final FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(constants.phones).addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) {\n if (e != null) {\n Log.d(\"\", \"Error : \" + e.getMessage());\n }\n for (DocumentChange doc : documentSnapshots.getDocumentChanges()) {\n if (doc.getType() == DocumentChange.Type.ADDED) {\n Log.d(\"Brand Name: \", doc.getDocument().getId());\n doc.getDocument().getReference().collection(doc.getDocument().getId()).addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) {\n if (e != null) {\n Log.d(\"\", \"Error : \" + e.getMessage());\n }\n\n for (DocumentChange doc : documentSnapshots.getDocumentChanges()) {\n if (doc.getType() == DocumentChange.Type.ADDED) {\n Log.d(\"SubBrands Name: \", doc.getDocument().getId());\n }\n }\n\n }\n });\n }\n\n }\n }});\n final FirebaseFirestore dbs = FirebaseFirestore.getInstance();\n dbs.collection(constants.phones)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n //Documents.add(document.getId());\n }\n for (DocumentSnapshot document : task.getResult().getDocuments()) {\n //Documents.add(document.getId());\n }\n List<DocumentSnapshot> myListOfDocuments = task.getResult().getDocuments();\n //Documents.addAll(myListOfDocuments);\n //getCompanyInformation(activity);\n getFirestoreCategories(activity,dialog,input,send,resend,counter,token,PhoneNumber);\n //getIssues(activity,context, view, recyclerView); //ammended\n }\n }\n });\n }", "@Override\n public double calculatePrice(String svcName, List<DimensionData> eventData) {\n Map<String, String> evDataMap = eventData.stream()\n .collect(Collectors.toMap(d -> d.getName(), d -> d.getValue()));\n \n //Now, Fetch the Service\n Service svc = getService(svcName);\n \n //Create an evaluator\n Monetize360Evaluator evaluator = getEvaluator(svc);\n \n //Evaluate all Dimensions, with the user provided data\n evaluateDimensions(svc, evDataMap, evaluator);\n \n //Now finally Calculate the price\n Number price = (Number) evaluator.evaluate(svc.getSvcFormula());\n \n log.info(\"Evaluated Price for svc {}\", price);\n \n return price.doubleValue();\n }", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public static void performanceCountEnable(int event) { }", "int getEventValue();", "long countByExample(EventExample example);", "@Test\n public void testDefaultCategorizationUsingServiceAPI() throws Exception {\n EventServiceAdmin eventServiceAdmin = Framework.getService(EventServiceAdmin.class);\n eventServiceAdmin.setListenerEnabledFlag(\n \"documentCategorizationSyncListener\", false);\n \n // let us create some documents\n makeSomeDocuments();\n f2 = session.getDocument(f2.getRef());\n file1 = session.getDocument(file1.getRef());\n file2 = session.getDocument(file2.getRef());\n note1 = session.getDocument(note1.getRef());\n\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:language\"));\n assertEquals(null, file1.getPropertyValue(\"dc:coverage\"));\n assertEquals(null, file2.getPropertyValue(\"dc:language\"));\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // run the engine again, this time all the documents should be processed\n List<DocumentModel> updatedDocuments = service.updateCategories(Arrays.asList(\n file1, file2, note1, f2));\n assertEquals(3, updatedDocuments.size());\n \n assertEquals(\"en\", file1.getPropertyValue(\"dc:language\"));\n assertEquals(\"asia/Viet_Nam\", file1.getPropertyValue(\"dc:coverage\"));\n \n assertEquals(\"fr\", file2.getPropertyValue(\"dc:language\"));\n assertEquals(\"europe/France\", file2.getPropertyValue(\"dc:coverage\"));\n \n // TODO: handle the string content of Note document too\n assertEquals(null, note1.getPropertyValue(\"dc:language\"));\n \n // folderish documents are ignored by the categorizers\n assertEquals(null, f2.getPropertyValue(\"dc:language\"));\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n DialogsFactory.produceCreateDcsVariableTableFromHoneywellDcsExportDialog(new HoneywellDcsExport(new Source()));\n }", "public String toString(){\n return \"Eventtype: \" + eventType + \", event time: \" + eventTime + \", Tally time: \" + tallyTime + \", cash: \" + cash;\n }", "public void getSeedEntryCount(String mVarietyMstID,\n String mGradeId,String CurrentDate,\n String HeapNo,\n\n final HttpResponseListener<JSONObject> hhtpResponseListener) {\n CurrentDate = AllUtils.getFormattedDateForSql(CurrentDate);\n String url = ConstantPath.BASE_URL_NEW + \"Mahacott/CallTrackingRequest?action=getSeedEntryCount&CommodityMstId=2\"\n + \"&CommoVarietyMstId=\" + mVarietyMstID\n + \"&Grade=\" + mGradeId\n + \"&PressingDate=\" +CurrentDate\n + \"&HeapNo=\" + HeapNo + \"\";\n\n System.out.println(\"URL==\" + url);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n System.out.println(\"GET SEED STOCK QTY RESPONSE: \" + response.toString());\n hhtpResponseListener.getResponse(response);\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n error.printStackTrace();\n }\n });\n\n RequestConnection.getRequestConnection(context).addRequestQue(jsonObjectRequest);\n\n }", "public abstract int systemicEventIncidenceCount (\n\t\tfinal java.lang.String event);", "public String Get_event_value() \n {\n\n return event_value;\n }", "public static int[] getHighGradeCutValues(ImageEvent event)\n throws ProcessorException {\n int[] values = new int[4];\n String valueStr = (String) event\n .getParamValue(ImageEvent.ImageParams.ADVANCED_CUT);\n if (valueStr == null) {\n throw new ProcessorException(400, \"Missing argument: a\");\n }\n if (!valueStr.matches(\"^\\\\d+-\\\\d+-\\\\d+-\\\\d+$\")) {\n throw new ProcessorException(400,\n String.format(\"The value: %s of parameter: %s is invalid.\",\n valueStr, \"a\"));\n }\n try {\n String[] params = valueStr.split(\"-\");\n assert(params.length == 4);\n for (int i = 0; i < params.length; i++) {\n values[i] = Integer.parseInt(params[i]);\n }\n } catch (Exception e) {\n throw new ProcessorException(400,\n String.format(\"The value: %s of parameter: %s is invalid.\",\n valueStr, \"a\"));\n }\n return values;\n }", "JsonObjectBuilder evelThresholdCrossingObject()\r\n\t {\r\n\t double version = major_version+(double)minor_version/10;\r\n\r\n\t EVEL_ENTER();\r\n\t \r\n\r\n\t /***************************************************************************/\r\n\t /* Check preconditions. */\r\n\t /***************************************************************************/\r\n\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\r\n\t /***************************************************************************/\r\n\t /* Mandatory fields. */\r\n\t /***************************************************************************/\r\n\t //encode counter\r\n JsonObjectBuilder counterobj = Json.createObjectBuilder()\r\n .add( \"criticality\",additionalParameters.criticality)\r\n .add( \"name\", additionalParameters.name)\r\n .add( \"thresholdCrossed\",additionalParameters.thresholdCrossed)\r\n .add( \"value\", additionalParameters.value);\r\n\r\n\t \r\n\t JsonObjectBuilder evelrep = Json.createObjectBuilder()\r\n\t \t\t .add(\"additionalParameters\", counterobj)\r\n\t \t .add(\"alertAction\", alertAction.toString())\r\n\t \t .add(\"alertDescription\", alertDescription)\r\n .add(\"alertType\", alertType.toString())\r\n .add(\"collectionTimestamp\", collectionTimestamp.toString())\r\n .add(\"eventSeverity\",eventSeverity.toString())\r\n .add(\"eventStartTimestamp\",eventStartTimestamp.toString());\r\n\r\n\t /***************************************************************************/\r\n\t /* Optional fields. */\r\n\t /***************************************************************************/\r\n\t alertValue.encJsonValue(evelrep, \"alertValue\");\r\n\t if( alertidList != null && alertidList.size() > 0)\r\n\t {\r\n\t\t JsonArrayBuilder builder = Json.createArrayBuilder();\r\n\t\t for(int i=0;i<alertidList.size();i++) {\r\n\t\t\t String addl_info = alertidList.get(i);\r\n\t\t\t JsonObject obj = Json.createObjectBuilder()\r\n\t\t\t \t .add(\"item\",addl_info).build();\r\n\t\t\t builder.add(obj);\r\n\t\t }\r\n\t\t\tevelrep.add(\"associatedAlertIdList\", builder);\r\n\t }\r\n\r\n\t dataCollector.encJsonValue(evelrep, \"dataCollector\");\r\n\t elementType.encJsonValue(evelrep, \"elementType\");\r\n\t interfaceName.encJsonValue(evelrep, \"interfaceName\");\r\n\t networkService.encJsonValue(evelrep, \"networkService\");\r\n\t possibleRootCause.encJsonValue(evelrep, \"possibleRootCause\");\r\n\r\n\t \r\n\t evelrep.add( \"thresholdCrossingFieldsVersion\", version);\r\n\r\n\t if( additional_info != null )\r\n\t {\r\n\t JsonArrayBuilder builder = Json.createArrayBuilder();\r\n\t for(int i=0;i<additional_info.size();i++) {\r\n\t\t String[] addl_info = additional_info.get(i);\r\n\t\t JsonObject obj = Json.createObjectBuilder()\r\n\t\t \t .add(\"name\", addl_info[0])\r\n\t\t \t .add(\"value\", addl_info[1]).build();\r\n\t\t builder.add(obj);\r\n\t }\r\n\t\tevelrep.add(\"additionalFields\", builder);\r\n\t }\r\n\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return evelrep;\r\n\t}", "@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }", "String evel_json_encode_event()\r\n\t {\r\n\t\tEVEL_ENTER();\r\n\t\t\r\n\t\tassert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t \r\n\t JsonObject obj = Json.createObjectBuilder()\r\n\t \t .add(\"event\", Json.createObjectBuilder()\r\n\t\t \t .add( \"commonEventHeader\",eventHeaderObject() )\r\n\t\t \t .add( \"thresholdCrossingAlert\",evelThresholdCrossingObject() )\r\n\t\t \t ).build();\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return obj.toString();\r\n\r\n\t }", "public String addCourseEvent(Events events);", "public double getTotalCO2Emissions() {\n totalCO2Emissions = 0;\n Food foodItem;\n\n // Loop through the ArrayList with the 5 Food Categories\n // For each Food Category, loop through the food items and get the CO2e and timesPerWeek\n // Add up the total CO2 emissions for every food item\n // Returns the total CO2 emissions per year\n for(int foodCatIndex=0; foodCatIndex<foodBank.size(); foodCatIndex++){\n foodlist = foodBank.get(foodCatIndex);\n for(int foodNameIndex=0; foodNameIndex<foodlist.getSize(); foodNameIndex++){\n foodItem = foodlist.getFood(foodNameIndex);\n totalCO2Emissions += foodItem.getCo2PerServing() * foodItem.getTimesPerWeek();\n }\n }\n return totalCO2Emissions * NUM_WEEKS_IN_YEAR;\n }", "@Override\n\tpublic void sendAnalyticsData(String category, String info) {\n\n\t}", "public void process(EventData event) throws Exception {\n\t\tevent.getDoc().put(\"dimm\", memory());\n\t\tevent.getDoc().put(\"battery\", batteries());\n\t\tevent.getDoc().put(\"chassis\", chassis());\n\t\tevent.getDoc().put(\"pwrsupplies\", pwrsupplies());\n\t\tevent.getDoc().put(\"storage\", storage());\n\t\tevent.getDoc().put(\"fans\", fans());\n\n\t}", "@Override\n\tpublic String getArguments() {\n\t\treturn \"Event: the country to which you want to add influence.\\n\"\n\t\t\t\t+ \"Decision: orders for realignments or a coup.\";\n\t}", "private static void addEventTypes(Configuration cepConfig) {\n\t cepConfig.addEventType(\"Batch\", Batch.class.getName());\n\t cepConfig.addEventType(\"Span\", Span.class.getName());\n\t cepConfig.addEventType(\"Process\", Process.class.getName());\n\t cepConfig.addEventType(\"Log\", Log.class.getName());\n\t cepConfig.addEventType(\"Tag\", Tag.class.getName());\n\t cepConfig.addEventType(\"SpanRef\", SpanRef.class.getName());\n\t \n\t // SOCKET events\n\t // Metrics -> JSON influxDB\n\t // Events -> Custom definition\n\t // We register metrics and events as objects the engine will have to handle\n\t cepConfig.addEventType(\"Metric\", Metric.class.getName());\n\t cepConfig.addEventType(\"Event\", Event.class.getName());\n\t\t\n\t}", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public java.lang.String HR_ScaleByServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory, java.lang.String subServiceCategory) throws java.rmi.RemoteException;", "private void formMessageOnChange(YFCDocument calenderDetailXml) {\n\t\tString sProd = \"PROD\";\t\t\n\t\tYFCElement docCalenderDetail=calenderDetailXml.getDocumentElement();\n\t\tYFCDocument docGetResPoolCapcityDetails=YFCDocument.createDocument(XMLLiterals.RESOURCE_POOL);\n\t YFCElement eleResourcePool=docGetResPoolCapcityDetails.getDocumentElement();\n\t eleResourcePool.setAttribute(XMLLiterals.CAPACITYORGCODE, XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.RESOURCE_POOL_ID,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE)+POOLID);\n\t eleResourcePool.setAttribute(XMLLiterals.PROVIDER_ORGANIZATION_CODE,XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.NODE,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE));\n\t eleResourcePool.setAttribute(XMLLiterals.ITEM_GROUP_CODE,sProd);\n\t\tinvokeYantraService(INDG_GET_RESOURCE_POOL_CAPACITY , docGetResPoolCapcityDetails);\n\t}", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n TagsSource tagsSource = new TagsSource(new Source());\n DialogsFactory.produceEsdVariableTableDataSourceDialog(tagsSource, false, \"Create ESD Variable Table data source manually\");\n }", "public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}", "@Override\n protected void calculateCategoryRates(Node node) {\n\n double propVariable = 1.0;\n int cat = 0;\n\n //if (/*invarParameter != null && */invarParameter.getValue() > 0 ) {\n //System.out.println(\"----------------\");\n double pr;\n if(invPrLogit){\n pr = 1.0/(1.0 + Math.exp(-invarParameter.getValue()));\n //System.out.println(pr);\n }else{\n pr = invarParameter.getValue();\n }\n\n if (hasPropInvariantCategory) {\n categoryRates[0] = 0.0;\n //System.out.println(getCurrModel()+\" \"+INVAR_INDEX);\n categoryProportions[0] = pr*INDICATORS[getCurrModel()][INVAR_INDEX];\n //System.out.println(invarParameter.getValue()+\" \"+INDICATORS[getCurrModel()][INVAR_INDEX]);\n //System.out.println(\"categoryProportions[0]: \"+categoryProportions[0]);\n }\n\n //System.out.println(invarParameter.getID()+\" \" +invarParameter.getValue()+\" \"+pr);\n propVariable = 1.0 - pr*INDICATORS[getCurrModel()][INVAR_INDEX];\n if (hasPropInvariantCategory) {\n cat = 1;\n }\n //}\n\n //System.out.println(\"categoryProportions[0]: \"+categoryProportions[0]);\n\n if (INDICATORS[getCurrModel()][SHAPE_INDEX] == PRESENT) {\n\n final double a = shapeParameter.getValue();\n double mean = 0.0;\n final int gammaCatCount = categoryCount - cat;\n //System.out.println(\"a: \"+a);\n final GammaDistribution g = new GammaDistributionImpl(a, 1.0 / a);\n //System.out.println(\"gammaCatCount:\"+gammaCatCount);\n //if(gammaCatCount == 3){\n //throw new RuntimeException(\"\");\n //}\n for (int i = 0; i < gammaCatCount; i++) {\n try {\n // RRB: alternative implementation that seems equally good in\n // the first 5 significant digits, but uses a standard distribution object\n if(a < 1e-3){\n\n categoryRates[i + cat] = Double.NEGATIVE_INFINITY;\n }else if(a > 1e10){\n categoryRates[i + cat] = 1.0;\n }else if (useBeast1StyleGamma) {\n categoryRates[i + cat] = GammaDistributionQuantile((2.0 * i + 1.0) / (2.0 * gammaCatCount), a, 1.0 / a);\n \t} else {\n \t\tcategoryRates[i + cat] = g.inverseCumulativeProbability((2.0 * i + 1.0) / (2.0 * gammaCatCount));\n \t}\n\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Something went wrong with the gamma distribution calculation\");\n System.exit(-1);\n }\n mean += categoryRates[i + cat];\n\n categoryProportions[i + cat] = propVariable / gammaCatCount;\n }\n\n if(a >= 1e-3 ){\n\n mean = (propVariable * mean) / gammaCatCount;\n\n for (int i = 0; i < gammaCatCount; i++) {\n\n categoryRates[i + cat] /= mean;\n\n }\n }\n } else {\n\n int gammaCatCount = categoryCount - cat;\n //System.out.println(\"Hi!\");\n for(int i = cat; i < categoryRates.length;i++){\n categoryRates[i] = 1.0 / propVariable/gammaCatCount;\n\n categoryProportions[i] = propVariable/gammaCatCount;\n }\n }\n /*System.out.println(\"-------------------------------\");\n System.out.println(\"ID: \"+getID());\n System.out.println(modelChoice);\n System.out.print (invarParameter.getValue()*INDICATORS[getCurrModel()][INVAR_INDEX]+\" \");\n System.out.println(getID());\n System.out.println(\"alpha: \"+shapeParameter.getValue());\n System.out.println(\"invPr: \"+invarParameter.getValue());\n System.out.println(\"siteModel: \"+modelChoice.getValue());\n System.out.println(\"rate: \"+muParameter.getValue());\n for(int i = 0; i < categoryRates.length;i++){\n System.out.print(categoryRates[i]+\" \");\n }\n System.out.println();\n\n System.out.println(invarParameter.getValue());\n for(int i = 0; i < categoryProportions.length;i++){\n\n System.out.print(categoryProportions[i]+\" \");\n }\n System.out.println();\n System.out.println(\"----------------\"); */\n\n\n ratesKnown = true;\n }", "@Override\n\t\tpublic synchronized void SubGHzEvent(SubGHzEventObject evt){\n\t\t\tif(evt.getEventType() == SubGHzEventObject.DATA_AVAILABLE){\n\t\t\t\tString inputLine;\n\t\t\t\ttry {\n\t\t\t\t\tinputLine=input.readLine();\n\t\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public java.util.List<String> getEventCategories() {\n if (eventCategories == null) {\n eventCategories = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n eventCategories.setAutoConstruct(true);\n }\n return eventCategories;\n }", "public void processEvent(GovernanceEngineEvent event)\n {\n if (listener != null)\n {\n // todo\n }\n }", "public static void main(String[] args) throws Exception {\r\n\r\n // 決定作品數量及演進世代\r\n int POP_SIZE = 100;\r\n int SELECTED_SIZE = 0;\r\n int GENERATION = 300;\r\n\r\n Main main = new Main(\r\n POP_SIZE,\r\n SELECTED_SIZE,\r\n GENERATION,\r\n LogState.DISABLED);\r\n\r\n main.composer.draw(Composer.DRAWTYPE_COMBINEDCHART);\r\n System.out.println(header(\"Persisting Conservatory\"));\r\n main.composer.persistAll();\r\n\r\n var chart = new LineChart_AWT(\"Composer \" + main.composer.getId());\r\n var gsc = new GoldenSectionClimax(UnaccompaniedCello.RANGE.keySet());\r\n main.composer.getConservatory().keySet().stream()\r\n .sorted((o1, o2) -> o1.getId().compareTo(o2.getId()))\r\n .peek(gsc::updateClimaxIndexes)\r\n .forEach(c\r\n -> IntStream.range(0, c.getSize())\r\n .forEach(i\r\n -> chart.addData(gsc.getClimaxIndexes().get(i), c.getId_prefix(), \"\" + i)\r\n ));\r\n try {\r\n var max = main.composer.getConservatory().keySet().stream()\r\n .max(gsc::compareToPeak)\r\n .orElseThrow();\r\n IntStream.range(0, max.getSize())\r\n .forEach(i -> {\r\n chart.addData(gsc.getStandard(max, i), \"standard\", \"\" + i);\r\n });\r\n } catch (NoSuchElementException e) {\r\n System.out.println(\"Sorry, the Conservatory is empty. Please try again.\");\r\n }\r\n chart.createLineChart(\"SketchNode Rating Chart\",\r\n \"SketchNode\", \"Intensity Index\", 560, 367, true);\r\n chart.showChartWindow();\r\n\r\n }", "DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);", "EDataType getConductance();", "@Override\n public void onEvent(Event t) throws CSenseException {\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n DialogsFactory.produceCreateDcsVariableTableFromHoneywellScadaDatabaseDialog(new HoneywellScadaDatabase(new Source()));\n }", "@Override\n\tpublic void run() {\n\t\tthis.queryEngine.getEPAdministrator().getConfiguration().addEventType(IntEvent.class);\n \n String epl = \"select myValue from IntEvent\";\n EPStatement statement = this.queryEngine.getEPAdministrator().createEPL(epl);\n \n \n \n statement.addListener( (newData, oldData) -> {\n \tint threadNumber = (int) newData[0].get(\"threadNumber\");\n \tint loopNumber = (int) newData[0].get(\"loopNumber\");\n int myValue = (int) newData[0].get(\"myValue\");\n System.out.println(\"got a new value\");\n this.threadTimes[threadNumber][loopNumber] = Clock.getRealtimeClock().getTime();\n// System.out.println(String.format(\"New Random value: %d, Received time: %d\", myValue, System.currentTimeMillis()));\n });\n System.out.println(\"Query started\");\n\t\t\n\t}", "private void totalCPUCores_EntityChanged(Object sender, EventArgs args) {\n removeCPUListeners();\n\n behavior.totalCpuCoresChanged();\n\n // start listening again\n addCPUListeners();\n }", "@Override public void handle(ActionEvent e) {\n\t\t\t\tif(!setConfiguration()) return;\r\n\t\t\t\t//Clear the concept tableview\r\n\t\t\t\tm_Conceptsdata.clear();\r\n\t\t\t\t//Run the categorization algorithm\r\n\t\t\t\tm_Categorizer.categorize();\r\n\t\t\t\t//Refresh the dataset table\r\n\t\t\t\tm_DatasetTable.refresh();\r\n\t\t\t\t//Refresh statistics window\r\n\t\t\t\tm_StatisticsWindow.refresh();\r\n\t\t\t\t//Update the filter choicebox\r\n\t\t\t\tupdateFilterChoiceBox();\r\n\t\t\t}", "List<CitationConferenceModel> returnImpactFactorByHec();", "public static void main(String[] args) throws Exception {\n\n TransactionCompleteEvent event1 = new TransactionCompleteEvent(\"TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt\");\n\n DownloadFinishEvent event2 = new DownloadFinishEvent(\"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\");\n\n\n //PubSubLibrary.getInstance().publish(event1);\n\n //PubSubLibrary.getInstance().publish(event2);\n\n TestClassC testClassC = new TestClassC();\n\n\n\n }", "private void populateSpecialEvent() {\n try {\n vecSpecialEventKeys = new Vector();\n vecSpecialEventLabels = new Vector();\n StringTokenizer stk = null;\n //MSB -09/01/05 -- Changed configuration file and Keys\n // config = new ConfigMgr(\"customer.cfg\");\n // String strSubTypes = config.getString(\"SPECIAL_EVENT_TYPES\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"SPECIAL_EVT_TYPE\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecSpecialEventKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecSpecialEventLabels.add(value);\n }\n cbxSpcEvt.setModel(new DefaultComboBoxModel(vecSpecialEventLabels));\n } catch (Exception e) {}\n }", "public Event(int eventType, double eventTime, double tallyTime, boolean cash){\n this.eventType = eventType;\n this.eventTime = eventTime;\n this.tallyTime = tallyTime;\n this.cash = cash;\n }", "public Event(String NAME, String TYPE, String URl, double min, double max,long ID,String IMGURL, String DATE){\n this.name = NAME;\n this.type = TYPE;\n this.url=URl;\n this.priceMin = min ;\n this.priceMax=max;\n this.id =ID;\n this.imgURL= IMGURL;\n this.date = DATE;\n\n\n }", "public int getEventValue() {\n return event_;\n }", "public void setEventCategories(java.util.Collection<String> eventCategories) {\n if (eventCategories == null) {\n this.eventCategories = null;\n return;\n }\n com.amazonaws.internal.ListWithAutoConstructFlag<String> eventCategoriesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(eventCategories.size());\n eventCategoriesCopy.addAll(eventCategories);\n this.eventCategories = eventCategoriesCopy;\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n TagsSource tagsSource = new TagsSource(new Source());\n DialogsFactory.produceDcsVariableTableDataSourceDialog(tagsSource, false, \"Create document data source manually\");\n }", "public void ResultVoiceCoincidence(EventVoice event);", "@Subscribe\r\n\tpublic void onSelectCategoryAnalysis(CategoryAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}", "public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}", "public void costcenterChange(AjaxBehaviorEvent ev) {\n\t\tLOG.info(\"[costcenterChange] ev => {}\", ev);\n\t\tcostcenterChange();\n\t}", "public void calcualteFeatureValue(Collection<Instance> instanceCollection);", "@Test\n public void createManyEventsTest() {\n int numEvents = 8;\n Set<Long> eventSet = new HashSet<>();\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n IntStream.range(0, numEvents).forEach(i -> {\n Value event = createEvent.execute();\n eventSet.add(event.asNativePointer());\n assertNotNull(event);\n assertTrue(event.isNativePointer());\n });\n assertEquals(numEvents, eventSet.size());\n }\n }", "public static void main(String[] args) {\n \n //variables\n String event, month, day, year, date, hour, min, time, \n section, row, seat, price, discount, cost, prize; \n double priceNum, discountNum, costNum, prizeNum;\n \n //getting input from user\n Scanner scan = new Scanner(System.in);\n System.out.print(\"Enter your event code: \");\n String userInput = scan.nextLine().trim();\n System.out.println();\n \n //if statement\n if (userInput.length() < MIN_LENGTH) {\n \n System.out.println(\"Invalid Event Code.\\n\"\n + \"Event code must have at least 26 characters.\");\n \n } else {\n \n event = userInput.substring(25, userInput.length());\n month = userInput.substring(0, 2);\n day = userInput.substring(2, 4);\n year = userInput.substring(4, 8);\n date = month + \"/\" + day + \"/\" + year;\n hour = userInput.substring(8, 10);\n min = userInput.substring(10, 12);\n time = hour + \":\" + min;\n section = userInput.substring(19, 21);\n row = userInput.substring(21, 23);\n seat = userInput.substring(23, 25);\n \n //setup formatters\n DecimalFormat dfPrice = new DecimalFormat(\"$#,##0.00\");\n DecimalFormat dfDiscount = new DecimalFormat(\"0%\");\n DecimalFormat dfPrize = new DecimalFormat(\"0000\");\n \n //price\n price = userInput.substring(12, 17);\n priceNum = Double.parseDouble(price);\n priceNum = priceNum / 100;\n price = dfPrice.format(priceNum);\n \n //discount\n discount = userInput.substring(17, 19);\n discountNum = Double.parseDouble(discount);\n discountNum = discountNum / 100;\n discount = dfDiscount.format(discountNum);\n \n //cost\n costNum = priceNum - (priceNum * discountNum);\n cost = dfPrice.format(costNum);\n \n //prize number\n prizeNum = (Math.random() * 10000) + 1;\n prize = dfPrize.format(prizeNum);\n \n \n //print statements\n System.out.print(\"Event: \" + event + \" Date: \" \n + date + \" Time: \" + time + \"\\n\"\n + \"Section: \" + section + \" Row: \" \n + row + \" Seat: \" + seat + \"\\n\"\n + \"Price: \" + price + \" Discount: \" \n + discount + \" Cost: \" + cost + \"\\n\"\n + \"Prize Number: \" + prize); \n }\n \n }", "@Test\r\n public void testCommissionCases() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107340.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(COMMISSION_CASES_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }", "public int getEventValue() {\n return event_;\n }", "public void newClubEvent() {\n \n // Capture current category selection, if any\n String selectedTags = \"\";\n TagsNode tags = (TagsNode)tagsTree.getLastSelectedPathComponent();\n if (tags != null) {\n selectedTags = tags.getTagsAsString();\n } \n \n boolean modOK = modIfChanged();\n \n if (modOK) {\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n localPath = \"\";\n display();\n clubEventPanel1.getStatusTextSelector().setText (selectedTags);\n }\n }", "public int getCapacity(){\n return eventCapacity;\n }", "public void calcGCD() {\n\t\t\n\t\t// if there are at least two events in the list\n\t\tif (events.size() >= 2) {\n\t\t\t//for each event until the event before the last\n\t\t\tfor (int i = 0; i < events.size() - 1; i++) {\n\t\t\t\tString date1 = events.get(i).getVal(\"DTEND\");\n\t\t\t\tString date2 = events.get(i+1).getVal(\"DTSTART\");\n\t\t\t\t\n\t\t\t\tif(withinThreshold(splitDate(date1), splitDate(date2))) { \n\t\t\t\t\tString s1 = events.get(i).getVal(\"GEO\");\n\t\t\t\t\tString s2 = events.get(i + 1).getVal(\"GEO\");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"S1:\" + s1); //DEBUG\n\t\t\t\t\tSystem.out.println(\"S2:\" + s2); //DEBUG\n\t\t\t\t\t\n\t\t\t\t\t//if GEO is blank for either event\n\t\t\t\t\tif (s1 == null || s1.equals(\"\") || s2 == null || s2.equals(\"\")) {\n\t\t\t\t\t\tevents.get(i).setVal(\"DESCRIPTION\", events.get(i).getVal(\"DESCRIPTION\") + \"\\tNot enough information!\");\n\t\t\t\t\t\t\n\t\t\t\t\t//else input comment normally\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString geo1[] = events.get(i).getVal(\"GEO\").split(\";\");\n\t\t\t\t\t\tfloat lat1 = Float.parseFloat(geo1[0]);\n\t\t\t\t\t\tdouble long1 = Float.parseFloat(geo1[1]);\n\t\t\t\t\t\tString geo2[] = events.get(i + 1).getVal(\"GEO\").split(\";\");\n\t\t\t\t\t\tdouble lat2 = Float.parseFloat(geo2[0]);\n\t\t\t\t\t\tdouble long2 = Float.parseFloat(geo2[1]);\n\t\n\t\t\t\t\t\tfloat dist, km;\n\t\t\t\t\t\tdouble earthRadius = 3958.75; // miles (or 6371.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// kilometers)\n\t\t\t\t\t\tdouble dLat = Math.toRadians(lat2 - lat1);\n\t\t\t\t\t\tdouble dLng = Math.toRadians(long2 - long1);\n\t\t\t\t\t\tdouble sindLat = Math.sin(dLat / 2);\n\t\t\t\t\t\tdouble sindLng = Math.sin(dLng / 2);\n\t\t\t\t\t\tdouble a = Math.pow(sindLat, 2)\n\t\t\t\t\t\t\t\t+ Math.pow(sindLng, 2) * Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2));\n\t\t\t\t\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\t\t\t\t\tdist = (float) (earthRadius * c);\n\t\t\t\t\t\tkm = (float) (dist * 1.60934);\n\t\n\t\t\t\t\t\tString s = \"The great circle distance to your next event is \" + dist + \" miles(or \" + km + \"km).\";\n\t\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\t\tevents.get(i).setVal(\"DESCRIPTION\", events.get(i).getVal(\"DESCRIPTION\") + '\\t' + s);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tevents.get(i).setVal(\"DESCRIPTION\", events.get(i).getVal(\"DESCRIPTION\") + \"\\tNot the same date!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tevents.get(0).setVal(\"DESCRIPTION\", events.get(0).getVal(\"DESCRIPTION\") + \"\\tNot enough events for computing distance.\");\n\t\t}\n\t}", "public void addEvent(BasicEvent event) {\n if ((event instanceof TypedEvent)) {\n TypedEvent e = (TypedEvent) event;\n if (useOnePolarityOnlyEnabled) {\n if (useOffPolarityOnlyEnabled) {\n if (e.type == 1) {\n return;\n }\n } else {\n if (e.type == 0) {\n return;\n }\n }\n }\n }\n\n // save location for computing velocityPPT\n// float oldx = location.x, oldy = location.y;\n\n float m = mixingFactor, m1 = 1 - m;\n\n float dt = event.timestamp - lastTimestamp; // this timestamp may be bogus if it goes backwards in time, we need to check it later\n\n // if useVelocity is enabled, first update the location using the measured estimate of velocityPPT.\n // this will give predictor characteristic to cluster because cluster will move ahead to the predicted location of\n // the present event\n if (useVelocity && dt > 0 && velocityFitter.valid) {\n location.x = location.x + predictiveVelocityFactor * dt * velocityPPT.x;\n location.y = location.y + predictiveVelocityFactor * dt * velocityPPT.y;\n }\n\n // compute new cluster location by mixing old location with event location by using\n // mixing factor\n\n location.x = (m1 * location.x + m * event.x);\n location.y = (m1 * location.y + m * event.y);\n\n // velocityPPT of cluster is updated here as follows\n // 1. instantaneous velocityPPT is computed from old and new cluster locations and dt\n // 2. new velocityPPT is computed by mixing old velocityPPT with instaneous new velocityPPT using velocityMixingFactor\n // Since an event may pull the cluster back in the opposite direction it is moving, this measure is likely to be quite noisy.\n // It would be better to use the saved cluster locations after each packet is processed to perform an online regression\n // over the history of the cluster locations. Therefore we do not use the following anymore.\n// if(useVelocity && dt>0){\n// // update velocityPPT vector using old and new position only if valid dt\n// // and update it by the mixing factors\n// float oldvelx=velocityPPT.x;\n// float oldvely=velocityPPT.y;\n//\n// float velx=(location.x-oldx)/dt; // instantaneous velocityPPT for this event in pixels/tick (pixels/us)\n// float vely=(location.y-oldy)/dt;\n//\n// float vm1=1-velocityMixingFactor;\n// velocityPPT.x=vm1*oldvelx+velocityMixingFactor*velx;\n// velocityPPT.y=vm1*oldvely+velocityMixingFactor*vely;\n// velocityPPS.x=velocityPPT.x*VELPPS_SCALING;\n// velocityPPS.y=velocityPPT.y*VELPPS_SCALING;\n// }\n\n int prevLastTimestamp = lastTimestamp;\n lastTimestamp = event.timestamp;\n numEvents++;\n instantaneousISI = lastTimestamp - prevLastTimestamp;\n if (instantaneousISI <= 0) {\n instantaneousISI = 1;\n }\n avgISI = m1 * avgISI + m * instantaneousISI;\n instantaneousEventRate = 1f / instantaneousISI;\n avgEventRate = m1 * avgEventRate + m * instantaneousEventRate;\n\n averageEventDistance = m1 * averageEventDistance + m * distanceToLastEvent;\n averageEventXDistance = m1 * averageEventXDistance + m * xDistanceToLastEvent;\n averageEventYDistance = m1 * averageEventYDistance + m * yDistanceToLastEvent;\n \n // if scaling is enabled, now scale the cluster size\n scale(event);\n\n }", "private SensorData collectCPUUsageInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting CPU Usage Information\");\n }\n SensorData data = new SensorData();\n \n CpuPerc cpuPerc = sigar.getCpuPerc();\n \n data.add(SensorAttributeConstants.CPUConstants.CPU_IDLE, (cpuPerc.getIdle() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_USER, (cpuPerc.getUser() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_SYSTEM, (cpuPerc.getSys() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_TOTAL, (cpuPerc.getCombined() * 100));\n \n return data;\n }", "public static void main(String[] args) throws Exception {\n\t\thandleArguments(args);\n\t\t\n\t\t// grab current to timestamp in order\n\t\t// to label collected data with time\n\t\tDate collectionTime = new Date(System.currentTimeMillis());\n\t\t\n\t\tif(initIndexesOnlyOption) {\n\t\t\tinitIndexesOnly(collectionTime);\n\t\t\t// no need to go further\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tif(relativeObjectModifiedSinceOption) {\n\t\t\t// collect object data\n\t\t\tcollectObjectDataModifiedSinceDate(collectionTime, objectModifiedSinceNoOfDays);\n\t\t} else {\n\t\t\t// check if secret day shifting testing option was specified\n\t\t\tif( relativeDayShift != 0 ) {\n\t\t\t\tLong epochTime = collectionTime.getTime();\n\t\t\t\tLong daysShift = TimeUnit.DAYS.toMillis(relativeDayShift);\n\t\t\t\tcollectionTime = new Date(epochTime - daysShift);\n\t\t\t}\t\n\t\t\t\n\t\t\tif(collectData.equals(ECS_COLLECT_BILLING_DATA) ){\n\t\t\t\t// collect billing data\n\t\t\t\tcollectBillingData(collectionTime);\n\t\t\t} \n\t\t\telse if(collectData.equals(ECS_COLLECT_OBJECT_DATA) ) {\n\n\t\t\t\t// only collection all object if the modified since option has been specified\n\t\t\t\tif(!relativeObjectModifiedSinceOption){\n\t\t\t\t\t// collect object data\n\t\t\t\t\tcollectObjectData(collectionTime);\n\t\t\t\t}\n\t\t\t} else if(collectData.equals(ECS_COLLECT_OBJECT_VERSION_DATA)) {\n\n\t\t\t\t// collect object data\n\t\t\t\tcollectObjectVersionData(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_ALL_DATA)) {\n\n\t\t\t\t// collect billing data \n\t\t\t\tcollectBillingData(collectionTime);\n\n\t\t\t\t// only collection all object if the modified since option has not been specified\n\t\t\t\tif(!relativeObjectModifiedSinceOption) {\n\t\t\t\t\t// collect object data\n\t\t\t\t\tcollectObjectData(collectionTime);\n\t\t\t\t}\n\t\t\t\tcollectNamespaceDetails(collectionTime);\n\t\t\t\tcollectNamespaceQuota(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_NAMESPACE_DETAIL)) {\n\t\t\t\t// collect namespace details\n\t\t\t\tcollectNamespaceDetails(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_NAMESPACE_QUOTA)) {\n\t\t\t\t// collect namespace quota\n\t\t\t\tcollectNamespaceQuota(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_BUCKET_OWNER)) {\n\t\t\t\t// collect bucket owner\n\t\t\t\tcollectBucketOwnership(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_ALL_VDC)) {\n\t\t\t\t// collect vdc list\n\t\t\t\tcollectVdcList(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_OBJECT_DATA_NAMESPACE)) {\n\t\t\t\t// collect namespace\n\t\t\t\tcollectObjectDataByNamespace(collectionTime);\n\t\t\t} else if(collectData.equals(ECS_COLLECT_OBJECT_DATA_BUCKET)) {\n\t\t\t\t// collect bucket\n\t\t\t\tcollectObjectDataByBucket(collectionTime);\n\t\t\t} else {\t\t\n\t\t\t\tSystem.err.println(\"Unsupported data collection action: \" + collectData );\n\t\t\t\tSystem.err.println(menuString);\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// wait for all threads to complete their work\n\t\twhile ( !futures.isEmpty() ) {\n\t\t try {\n\t\t\t\tFuture<?> future = futures.poll();\n\t\t\t\tif(future != null){\n\t\t\t\t\tfuture.get();\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.error(e.getLocalizedMessage());\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.error(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\tLong objectCollectionFinish = System.currentTimeMillis();\n\t\tDouble deltaTime = Double.valueOf((objectCollectionFinish - collectionTime.getTime())) / 1000 ;\n\t\tlogger.info(\"Collected \" + objectCount.get() + \" objects\");\n\t\tlogger.info(\"Total collection time: \" + deltaTime + \" seconds\");\n\t\t\n\t\t// take everything down once all threads have completed their work\n\t\tthreadPoolExecutor.shutdown();\n\t\t\n\t\t// wait for all threads to terminate\n\t\tboolean termination = false; \n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttermination = threadPoolExecutor.awaitTermination(2, TimeUnit.MINUTES);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.error(e.getLocalizedMessage());\n\t\t\t\ttermination = true;\n\t\t\t}\n\t\t} while(!termination);\n\t\t\n\t\t\n\t}", "public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE2 = this.getOWLClass(EFBO_V_URI, \"System-2_Event\");\r\n\t\t\r\n\t\tOWLObjectProperty hasNextEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasNextEvent\");\r\n\t\tOWLObjectProperty hasPrevEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasPreviousEvent\");\r\n\t\tOWLObjectProperty isAltEventOf = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"isAlternateEventOf\");\r\n\t\t\r\n\t\tSet<OWLNamedIndividual> inds = efboStatusReportManager.getOWLNamedIndividuals(firstSystemDPE);\r\n\t\t\r\n\t\tString dpeName = \"\";\r\n\t\tfor (OWLNamedIndividual i: inds)\r\n\t\t{\r\n\t\t\tdpeName += efboStatusReportManager.getLabel(i) + \"; \"; \r\n\t\t}\r\n\t\t\r\n\t\tString g = \"@startuml\";\r\n\t g += \"\\ntitle\\n\" + efboStatusReportManager.getLabel(firstSystemDPE)\r\n + \"\\n\" + dpeName\r\n + \"\\nend title\\n\";\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-1_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-2_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += \"\\n@enduml\";\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(firstSystemDPE, hasNextEvent, nextOfDPE);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(secondSystemDPE, hasNextEvent, nextOfDPE2);\r\n\t\t\r\n\t}", "public String toString() {\r\n\treturn \"DataEvent: \"\r\n\t\t+\"source=\"+getSource()\r\n\t\t+\", jobID=\"\r\n\t\t+ vcDataJobID\r\n\t\t+ \", progress=\\\"\"\r\n\t\t+ getProgress();\r\n}", "@Override\n public void notifySubscriber(String input) {\n int in=Integer.parseInt(input);\n int result=(in*(in+1))/2;\n System.out.println(\"SummationSeries : \" + result);\n }", "private void handleCoverageDescription(CoverageInfo ci) {\n GridCoverage2D gc2d=null;\n try{\n gc2d=readSampleGridCoverage(ci);\n if(gc2d==null){\n throw new WCS20Exception(\"Unable to read sample coverage for \"+ci.getName());\n }\n // get the crs and look for an EPSG code\n final CoordinateReferenceSystem crs = gc2d.getCoordinateReferenceSystem2D();\n List<String> axesNames = envelopeDimensionsMapper.getAxesNames(gc2d.getEnvelope2D(),true);\n \n // lookup EPSG code\n Integer EPSGCode=null;\n try {\n EPSGCode = CRS.lookupEpsgCode(crs, false);\n } catch (FactoryException e) {\n throw new IllegalStateException(\"Unable to lookup epsg code for this CRS:\"+crs,e);\n }\n if(EPSGCode==null){\n throw new IllegalStateException(\"Unable to lookup epsg code for this CRS:\"+crs);\n } \n final String srsName = GMLCoverageResponseDelegate.SRS_STARTER+EPSGCode; \n // handle axes swap for geographic crs\n final boolean axisSwap = CRS.getAxisOrder(crs).equals(AxisOrder.EAST_NORTH); \n \n \n //encoding ID of the coverage\n final AttributesImpl coverageAttributes = new AttributesImpl();\n String encodedId = NCNameResourceCodec.encode(ci);\n coverageAttributes.addAttribute(\"\", \"gml:id\", \"gml:id\", \"\", encodedId);\n\n // starting encoding\n start(\"wcs:CoverageDescription\", coverageAttributes);\n\n \n // handle domain\n final StringBuilder builder= new StringBuilder();\n for(String axisName:axesNames){\n builder.append(axisName).append(\" \");\n } \n String axesLabel=builder.substring(0, builder.length()-1);\n handleBoundedBy(gc2d, axisSwap,srsName,axesLabel);\n \n //coverage id\n element(\"wcs:CoverageId\", encodedId);\n\n // handle coverage function\n handleCoverageFunction(gc2d,axisSwap);\n\n // metadata \n handleMetadata(gc2d);\n \n // handle domain\n builder.setLength(0);\n axesNames = envelopeDimensionsMapper.getAxesNames(gc2d.getEnvelope2D(),false); \n for(String axisName:axesNames){\n builder.append(axisName).append(\" \");\n } \n axesLabel=builder.substring(0, builder.length()-1); \n handleDomainSet(gc2d,encodedId,srsName,axisSwap);\n\n \n // handle rangetype\n handleRangeType(gc2d);\n \n //service parameters\n handleServiceParameters(ci);\n\n end(\"wcs:CoverageDescription\");\n }catch (Exception e) {\n throw new WcsException(e);\n } finally{\n if(gc2d!=null ){\n CoverageCleanerCallback.addCoverages(gc2d);\n }\n }\n }", "public void finalCompute(int dataCnt)\n\t{\n\t\tIterator<Integer> numericKeySetIter = m_numericValueList.keySet().iterator();\n\t\twhile(numericKeySetIter.hasNext())\n\t\t{\n\t\t\tint key = numericKeySetIter.next();\n\t\t\t\n\t\t\tPDF_Features value = m_numericValueList.get(key);\n\t\t\tvalue.average = value.sum / (double)dataCnt;\n\t\t\tvalue.variance = (value.squareSum/(double)dataCnt) - Math.pow(value.average,2);\n\t\t\t\n//\t\t\tif(value.variance == 0) value.variance = value.average / baseVarianceParameter;\n//\t\t\tif(value.variance == 0) value.variance = 1;\n\t\t\t\n\t\t\tm_numericValueList.put(key, value);\n\n\t\t}\n\t\t\n\t\tIterator<Integer> nominalKeySetIter = m_nominalValueList.keySet().iterator();\n\t\twhile(nominalKeySetIter.hasNext())\n\t\t{\n\t\t\tint key = nominalKeySetIter.next();\t\t\t\n\t\t\tHashMap<String, Double> valueMap = m_nominalValueList.get(key);\n\t\t\t\n\t\t\tIterator<String> valueKeyIter = valueMap.keySet().iterator();\n\t\t\twhile(valueKeyIter.hasNext())\n\t\t\t{\n\t\t\t\tString valueKey = valueKeyIter.next();\n\t\t\t\tvalueMap.put(valueKey, valueMap.get(valueKey) / (double)dataCnt);\n\t\t\t}\n\t\t\t\n\t\t\tm_nominalValueList.put(key, valueMap);\n\t\t}\n\t}", "public void chartMouseClicked(ChartMouseEvent event) {\n }", "@Override\n public void eCGData(int value) {\n }", "public void controlEvent(ControlEvent theEvent) {\n\n\n\n if (theEvent.isGroup()) {\n // an event from a group e.g. scrollList\n println(theEvent.group().value()+\" from \"+theEvent.group());\n }\n \n if(theEvent.isFrom(r)) {\n print(\"got an event from \"+theEvent.getName()+\"\\t\");\n for(int i=0;i<theEvent.getGroup().getArrayValue().length;i++) {\n print(PApplet.parseInt(theEvent.getGroup().getArrayValue()[i]));\n }\n println(\"\\t \"+theEvent.getValue());\n mode = theEvent.getValue();\n }\n\n if(theEvent.isFrom(s)) {\n print(\"got an event from \"+theEvent.getName()+\"\\t\");\n for(int i=0;i<theEvent.getGroup().getArrayValue().length;i++) {\n print(PApplet.parseInt(theEvent.getGroup().getArrayValue()[i]));\n }\n println(\"\\t \"+theEvent.getValue());\n soundmodevar = theEvent.getValue();\n }\n\n}", "public DescribeEventsRequest withEventCategories(java.util.Collection<String> eventCategories) {\n if (eventCategories == null) {\n this.eventCategories = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<String> eventCategoriesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(eventCategories.size());\n eventCategoriesCopy.addAll(eventCategories);\n this.eventCategories = eventCategoriesCopy;\n }\n\n return this;\n }", "public String getCollectConditionForCount()\n\t{\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableGroup() > 0)\n\t\t\t{\n\t\t\t\treturn (\"COUNT(*)\") ;\n\t\t\t}\n\t\t}\n\t\t//#CM708973\n\t\t// Return '*' as all item acquisition when data is not set in the key value. \n\t\treturn null ;\n\n\t}", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n TagsSource tagsSource = new TagsSource(new Source());\n DialogsFactory.produceFgsVariableTableDataSourceDialog(tagsSource, false, \"Create FGS Variable Table data source manually\");\n }", "public OverallEquipmentEffectiveness(@JsonProperty(\"predefinedPeriod\") PredefinedPeriod predefinedPeriod, \n\t\t\t@JsonProperty(\"origin\")Integer parent, \n\t\t\t@JsonProperty(\"originType\")MeasuredEntityType parentType) {\n\t\tsuper();\n\t\tthis.predefinedPeriod = predefinedPeriod;\n\t\tthis.parent = parent;\n\t\tthis.parentType = parentType;\n\t\tthis.productiveTime = 0;\n\t\tthis.qtySchedToProduce = 0;\n\t\tthis.qtyProduced = 0;\n\t\tthis.qtyDefective = 0;\n\t}", "@Test\n\tpublic void tc_StoreEvolutionPosternonleafCategory() throws InterruptedException {\n\t\tVodFeatures vod = new VodFeatures(driver);\n\t\tvod.storeEvolutionPosternonleafCategory();\n\t}", "public void analyze(AnalyticsRequest request){\n \n }", "@Test\n public void testToString() {\n log.info(thresholdCrossingEvent.toString());\n\n DvThresholdCrossingEvent tce = createThresholdCrossingEvent(KEPLER_ID,\n EPOCH_MJD, ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n null, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n log.info(tce.toString());\n }", "public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\n\t\t\t\t float cohScore = arg.getValue().Scores().CoherenceScore();\r\n\t\t\t\t cohScore = Math.round(cohScore*100)/100.0f;\r\n\t\t\t\t return new SimpleStringProperty(String.valueOf(cohScore));\r\n\t\t\t }", "@Override\n public void handleEvent(VehicleEntersTrafficEvent event) {\n if (!event.getNetworkMode().equals(\"car\")) {\n if( nonCarWarn <=1) {\n logger.warn(\"non-car modes are supported, however, not properly tested yet.\");\n logger.warn(Gbl.ONLYONCE);\n nonCarWarn++;\n }\n }\n Id<Link> linkId = event.getLinkId();\n Id<Vehicle> vehicleId = event.getVehicleId();\n double startEngineTime = event.getTime();\n this.vehicleId2coldEmissionEventLinkId.put(vehicleId, linkId);\n\n double parkingDuration;\n if (this.vehicleId2stopEngineTime.containsKey(vehicleId)) {\n double stopEngineTime = this.vehicleId2stopEngineTime.get(vehicleId);\n parkingDuration = startEngineTime - stopEngineTime;\n\n } else { //parking duration is assumed to be at least 12 hours when parking overnight\n parkingDuration = 43200.0;\n }\n this.vehicleId2parkingDuration.put(vehicleId, parkingDuration);\n this.vehicleId2accumulatedDistance.put(vehicleId, 0.0);\n\n Vehicle vehicle = vehicles.getVehicles().get(vehicleId);\n\n this.coldEmissionAnalysisModule.calculateColdEmissionsAndThrowEvent(\n linkId,\n vehicle,\n startEngineTime,\n parkingDuration,\n 1\n );\n }", "public static void main(final String[] args) throws IOException {\n // Instantiate a client that will be used to call the service.\n DocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n .credential(new AzureKeyCredential(\"{key}\"))\n .endpoint(\"https://{endpoint}.cognitiveservices.azure.com/\")\n .buildClient();\n\n File invoice = new File(\"./formrecognizer/azure-ai-formrecognizer/src/samples/resources/Sample-W2.jpg\");\n Path filePath = invoice.toPath();\n BinaryData invoiceData = BinaryData.fromFile(filePath, (int) invoice.length());\n\n SyncPoller<OperationResult, AnalyzeResult> analyzeW2Poller =\n client.beginAnalyzeDocument(\"prebuilt-tax.us.w2\", invoiceData);\n\n AnalyzeResult analyzeTaxResult = analyzeW2Poller.getFinalResult();\n\n for (int i = 0; i < analyzeTaxResult.getDocuments().size(); i++) {\n AnalyzedDocument analyzedTaxDocument = analyzeTaxResult.getDocuments().get(i);\n Map<String, DocumentField> taxFields = analyzedTaxDocument.getFields();\n System.out.printf(\"----------- Analyzing Document %d -----------%n\", i);\n DocumentField w2FormVariantField = taxFields.get(\"W2FormVariant\");\n if (w2FormVariantField != null) {\n if (DocumentFieldType.STRING == w2FormVariantField.getType()) {\n String merchantName = w2FormVariantField.getValueAsString();\n System.out.printf(\"Form variant: %s, confidence: %.2f%n\",\n merchantName, w2FormVariantField.getConfidence());\n }\n }\n\n DocumentField employeeField = taxFields.get(\"Employee\");\n if (employeeField != null) {\n System.out.println(\"Employee Data: \");\n if (DocumentFieldType.MAP == employeeField.getType()) {\n Map<String, DocumentField> employeeDataFieldMap = employeeField.getValueAsMap();\n DocumentField employeeName = employeeDataFieldMap.get(\"Name\");\n if (employeeName != null) {\n if (DocumentFieldType.STRING == employeeName.getType()) {\n String merchantAddress = employeeName.getValueAsString();\n System.out.printf(\"Employee Name: %s, confidence: %.2f%n\",\n merchantAddress, employeeName.getConfidence());\n }\n }\n DocumentField employeeAddrField = employeeDataFieldMap.get(\"Address\");\n if (employeeAddrField != null) {\n if (DocumentFieldType.STRING == employeeAddrField.getType()) {\n String employeeAddress = employeeAddrField.getValueAsString();\n System.out.printf(\"Employee Address: %s, confidence: %.2f%n\",\n employeeAddress, employeeAddrField.getConfidence());\n }\n }\n }\n }\n\n DocumentField employerField = taxFields.get(\"Employer\");\n if (employerField != null) {\n System.out.println(\"Employer Data: \");\n if (DocumentFieldType.MAP == employerField.getType()) {\n Map<String, DocumentField> employerDataFieldMap = employerField.getValueAsMap();\n DocumentField employerNameField = employerDataFieldMap.get(\"Name\");\n if (employerNameField != null) {\n if (DocumentFieldType.STRING == employerNameField.getType()) {\n String employerName = employerNameField.getValueAsString();\n System.out.printf(\"Employee Name: %s, confidence: %.2f%n\",\n employerName, employerNameField.getConfidence());\n }\n }\n\n DocumentField employerIDNumberField = employerDataFieldMap.get(\"IdNumber\");\n if (employerIDNumberField != null) {\n if (DocumentFieldType.STRING == employerIDNumberField.getType()) {\n String employerIdNumber = employerIDNumberField.getValueAsString();\n System.out.printf(\"Employee ID Number: %s, confidence: %.2f%n\",\n employerIdNumber, employerIDNumberField.getConfidence());\n }\n }\n }\n }\n\n DocumentField localTaxInfosField = taxFields.get(\"LocalTaxInfos\");\n if (localTaxInfosField != null) {\n System.out.println(\"Local Tax Info data:\");\n if (DocumentFieldType.LIST == localTaxInfosField.getType()) {\n Map<String, DocumentField> localTaxInfoDataFields = localTaxInfosField.getValueAsMap();\n DocumentField localWagesTips = localTaxInfoDataFields.get(\"LocalWagesTipsEtc\");\n if (DocumentFieldType.DOUBLE == localTaxInfosField.getType()) {\n System.out.printf(\"Local Wages Tips Value: %.2f, confidence: %.2f%n\",\n localWagesTips.getValueAsDouble(), localTaxInfosField.getConfidence());\n }\n }\n }\n\n DocumentField taxYearField = taxFields.get(\"TaxYear\");\n if (taxYearField != null) {\n if (DocumentFieldType.STRING == taxYearField.getType()) {\n String taxYear = taxYearField.getValueAsString();\n System.out.printf(\"Tax year: %s, confidence: %.2f%n\",\n taxYear, taxYearField.getConfidence());\n }\n }\n\n DocumentField taxDateField = taxFields.get(\"TaxDate\");\n if (employeeField != null) {\n if (DocumentFieldType.DATE == taxDateField.getType()) {\n LocalDate taxDate = taxDateField.getValueAsDate();\n System.out.printf(\"Tax Date: %s, confidence: %.2f%n\",\n taxDate, taxDateField.getConfidence());\n }\n }\n\n DocumentField socialSecurityTaxField = taxFields.get(\"SocialSecurityTaxWithheld\");\n if (localTaxInfosField != null) {\n if (DocumentFieldType.DOUBLE == socialSecurityTaxField.getType()) {\n Double socialSecurityTax = socialSecurityTaxField.getValueAsDouble();\n System.out.printf(\"Social Security Tax withheld: %.2f, confidence: %.2f%n\",\n socialSecurityTax, socialSecurityTaxField.getConfidence());\n }\n }\n }\n }", "@SuppressWarnings({ \"deprecation\", \"serial\" })\n\tprivate void doBatchCompute() {\n\t\tHConnection hConnection = null;\n\t\tHTableInterface hTableInterface = null;\n\t\tHBaseAdmin admin = null;\n\t\ttry {\n\t\t\t//scan the events table\n\t\t\thConnection = HConnectionManager.createConnection(conf);\n\t\t\thTableInterface = hConnection.getTable(DashboardUtils.curatedEvents);\n\t\t\tadmin = new HBaseAdmin(conf);\n\t\t\t\n\t\t\t//create an empty dataset here and do union or intersections in subsequent nested iterations\n\t\t\tList<DatasetBean> emptyFeed = new ArrayList<DatasetBean>();\n\t\t\tDatasetBean datasetBean = new DatasetBean();\n\t\t\t\n\t\t\t//start scanning through the table\n\t\t\tScan scan = new Scan();\n\t\t\tResultScanner scanner = hTableInterface.getScanner(scan);\n\t\t\tfor(Result r = scanner.next(); r != null; r = scanner.next()) {\n\t\t\t\t//to stop scanner from creating too many threads\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//cumulative set which is empty containing the DatasetBean class object\n\t\t\t\tDataset<Row> cumulativeSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\n\t\t\t\t//scan through every row of feedEvents table and process each corresponding event\n\t\t\t\tif(!r.isEmpty()) {\n\t\t\t\t\teventTable = Bytes.toString(r.getRow());\n\t\t\t\t\t\n\t\t\t\t\t//create table if it didn't already exist\n\t\t\t\t\tif(!admin.tableExists(eventTable)) {\n\t\t\t\t\t\tHTableDescriptor creator = new HTableDescriptor(eventTable);\n\t\t\t\t\t\tcreator.addFamily(new HColumnDescriptor(DashboardUtils.eventTab_cf));\n\t\t\t\t\t\tadmin.createTable(creator);\n\t\t\t\t\t\tlogger.info(\"**************** just created the following table in batch process since it didn't exist: \" + eventTable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//declare the dataset storing the data from betaFeed\n\t\t\t\t\tDataset<Row> feedDataSet;\n\t\t\t\t\t//long eventdatacount = eventmap.get(eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcurrentStore = RSSFeedUtils.betatable;\n\t\t\t\t\t//this dataset is populated with betaFeed data\n\t\t\t\t\tfeedDataSet = loadbetaFeed();\n\t\t\t\t\t\n\t\t\t\t\t//store the data as a temporary table to process via sparkSQL\n\t\t\t\t\tfeedDataSet.createOrReplaceTempView(currentStore);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfeedevents = Job.getInstance(conf);\n\t\t\t\t\tfeedevents.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, eventTable);\n\t\t\t\t\tfeedevents.setOutputFormatClass(TableOutputFormat.class);\n\t\t\t\t\t\n\t\t\t\t\t//read the tags attribute of the event, and start reading it from left to right....tags are in format as in the documentation\n\t\t\t\t\t//break the OR tag, followed by breaking the AND tag, followed by processing each tag or event contained in it\n\t\t\t\t\tString tags = \"\";\n\t\t\t\t\tif(r.containsColumn(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags))) {\n\t\t\t\t\t\ttags = Bytes.toString(r.getValue(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString backupTagStr = tags;\n\t\t\t\t\t\n\t\t\t\t\twhile(tags.contains(\")\")) {\n\t\t\t\t\t\tString threstr=null;\n\t\t\t\t\t\tSystem.out.println(\"tags:\" + tags.trim());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ortagstrings = tags.trim().split(\"OR\");\n\t\t\t\t\t\tfor(String ortag : ortagstrings) {\n\t\t\t\t\t\t\tSystem.out.println(\"val of ortag:\" + ortag);\n\t\t\t\t\t\t\tthrestr = ortag.trim();\n\t\t\t\t\t\t\t//these are the parameters being fetched and populated in the events...i.e, feedname,totle,link,description,categories and date\n\t\t\t\t\t\t\tString qry =\"SELECT rssFeed, title, articleLink, description, categories, articleDate FROM \" + currentStore + \" WHERE \";\n\t\t\t\t\t\t\tStringBuilder querybuilder = new StringBuilder(qry);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"tag:\"+ortag.trim());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] andtagstrings = ortag.trim().split(\"AND\");\n\t\t\t\t\t\t\tDataset<Row> andSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString proctag=null;\n\t\t\t\t\t\t\tfor(int i=0; i<andtagstrings.length; i++) {\n\t\t\t\t\t\t\t\tproctag = andtagstrings[i];\n\t\t\t\t\t\t\t\tSystem.out.println(\"process tag:\" + proctag);\n\t\t\t\t\t\t\t\t//if the part of the tag being processed is an event, open up a second stream to load data from corresponding table\n\t\t\t\t\t\t\t\tif(proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"qwerty:\" + proctag.trim());\n\t\t\t\t\t\t\t\t\tString curatedevent = proctag.trim().substring(6, proctag.trim().length()).trim().replaceAll(\" \", \"__\").replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t\t\t\t\tlogger.info(\"################################################################################# event:\"+curatedevent);\n\t\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\t\tif(admin.tableExists(curatedevent)) {\n\t\t\t\t\t\t\t\t\t\tDataset<Row> eventdataset = loadcuratedEvent(curatedevent);\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"**************************************************** event:\" + curatedevent + \" while processing:\"+eventTable);\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(andSet.count() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t\t} else if(andSet.count() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.intersect(andSet);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"*************************** event \" + curatedevent + \" does not exist *********************************\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//if it's a normal tag, make a sparkSQL query out of it\n\t\t\t\t\t\t\t\t} else if(!proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tquerybuilder.append(\"categories RLIKE '\" + proctag.trim().replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\") + \"' AND \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//once the tag is fully processed, merge all data points and store in a resultant dataset\n\t\t\t\t\t\t\tif(querybuilder.toString().length() > qry.length()) {\n\t\t\t\t\t\t\t\t//logger.info(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inside query string ###############################\");\n\t\t\t\t\t\t\t\tquerybuilder = new StringBuilder(querybuilder.toString().substring(0, querybuilder.toString().length() -5));\n\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\tDataset<Row> queryset = sparkSession.sql(querybuilder.toString());\n\n\t\t\t\t\t\t\t\t//id the set it empty, fill it with the single data point\n\t\t\t\t\t\t\t\tif(andSet.count() == 0 && !backupTagStr.contains(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tandSet = queryset.union(andSet);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ doing query string with zero count:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ doing intersect for query:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet.createOrReplaceTempView(\"andSet1\");\n\t\t\t\t\t\t\t\t\tqueryset.createOrReplaceTempView(\"querySet1\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tDataset<Row> fSet = sparkSession.sql(\"SELECT DISTINCT(a.*) FROM andSet1 a INNER JOIN querySet1 b ON a.title = b.title\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet = fSet;\n\t\t\t\t\t\t\t\t\tqueryset.unpersist();\n\t\t\t\t\t\t\t\t\tfSet.unpersist();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcumulativeSet = andSet.union(cumulativeSet);\n\t\t\t\t\t\t\tandSet.unpersist();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttags = tags.substring(threstr.length(), tags.length()).trim().replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"########################################################################################################### table:\"+eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcumulativeSet.createOrReplaceTempView(\"cumulativeEvent\");\n\t\t\t\t\n\t\t\t\t\t//as a double check, only fetch distinct records from all the merges...done via sparkSQL\n\t\t\t\t\tDataset<Row> finalSet = sparkSession.sql(\"SELECT DISTINCT(*) FROM cumulativeEvent\");\n\t\t\t\t\t\n\t\t\t\t\tJavaRDD<Row> eventRDD = finalSet.toJavaRDD();\n\t\t\t\t\tJavaPairRDD<ImmutableBytesWritable, Put> eventpairRDD = eventRDD.mapToPair(new PairFunction<Row, ImmutableBytesWritable, Put>() {\n\n\t\t\t\t\t\tpublic Tuple2<ImmutableBytesWritable, Put> call(Row arg0) throws Exception {\n\t\t\t\t\t\t\tObject link = arg0.getAs(\"articleLink\");\n\t\t\t\t\t\t\tif((String)link != null) {\n\t\t\t\t\t\t\t\t//parameters being populated into the events table\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), link, arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), \"link not available\", arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"******************************** going to dump curated events data in hbase for event: \" + eventTable);\n\t\t\t\t\teventpairRDD.saveAsNewAPIHadoopDataset(feedevents.getConfiguration());\n\t\t\t\t\t\n\t\t\t\t\teventRDD.unpersist();\n\t\t\t\t\tfinalSet.unpersist();\n\t\t\t\t\tcumulativeSet.unpersist();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tscanner.close();\n\t\t\thTableInterface.close();\n\t\t\thConnection.close();\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tlogger.info(\"error while establishing Hbase connection...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public java.lang.String HR_GradeByServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory, java.lang.String subServiceCategory) throws java.rmi.RemoteException;", "public final void a(cnf cnf, cob cob) {\n this.c = cob;\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative\"), \"AdID\", \"adId\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative\"), new cnv(cnf));\n cnf.a(a(\"VAST/Ad/%s/Survey\"), \"survey\");\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), cnh.a);\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), \"url\");\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), \"id\", \"id\");\n cnf.b(a(\"VAST/Ad/%s/Impression\", true), \"addImpression\");\n cnf.a(a(\"VAST/Ad/%s/VASTAdTagURI\", true), \"redirectUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/Duration\"), new cnw(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/AdParameters\"), new cnx(cnf));\n cnf.a(a(\"VAST/Ad/%s/Extensions/Extension\"), new cny(cnf));\n cnf.a(a(\"VAST/Ad/%s/Extensions/Extension/CustomTracking/Tracking\"), new cnz(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/AdParameters\"), \"customParameters\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), cni.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), \"addEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickThrough\", true), new coa(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), cnj.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"id\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"addClickTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), cnk.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"id\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"addCustomTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), cnl.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\", true), \"url\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"delivery\", \"delivery\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"type\", \"type\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"bitrate\", \"bitrate\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"width\", \"width\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"height\", \"height\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"scalable\", \"scalable\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"apiFramework\", \"apiFramework\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"maintainAspectRatio\", \"maintainAspectRatio\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"addMedia\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), new cno(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"width\", \"width\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"height\", \"height\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"expandedWidth\", \"expandedWidth\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"expandedHeight\", \"expandedHeight\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"apiFramework\", \"apiFramework\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/CompanionClickThrough\", true), \"destinationUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/HTMLResource\"), \"htmlResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/IFrameResource\"), \"iframeResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/StaticResource\", true), \"staticResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/StaticResource\"), \"creativeType\", \"type\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), cnm.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), \"addEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), new cnp(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), \"scalable\", \"scalable\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), \"maintainAspectRatio\", \"maintainAspectRatio\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), new cnq(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), cnn.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), \"addNonLinearEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear/AdParameters\"), new cnr(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear/NonLinearClickThrough\"), new cns(cnf));\n }", "public abstract int idiosyncraticEventIncidenceCount (\n\t\tfinal java.lang.String event);", "public static CurrencyEvent createCurrencyEvent() throws ParseException {\n \n JSONArray jSONArray = CurrencyRateParser.httpGetCall(API_URL, \"prices\");\n ArrayList arrayList = CurrencyRateParser.convertToArrayList(jSONArray);\n \n String INSTRUMENT = arrayList.get(0).toString();\n Date CURRENTTIME = parseRFC3339Date(arrayList.get(1).toString());\n double BID = Double.valueOf(arrayList.get(2).toString());\n double ASK = Double.valueOf(arrayList.get(3).toString());\n CurrencyEvent currencyEvent = new CurrencyEvent(INSTRUMENT, CURRENTTIME, BID, ASK);\n return currencyEvent;\n }", "public static void main(String[] args)\n throws IOException, ExecutionException, InterruptedException {\n String projectId = ServiceOptions.getDefaultProjectId();\n String defaultCatalog =\n String.format(\"projects/%s/locations/global/catalogs/default_catalog\", projectId);\n // visitorId is generated randomly\n String visitorId = UUID.randomUUID().toString();\n\n writeUserEvent(defaultCatalog, visitorId);\n }", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "@Test\n public void verifyPost2Corporate_EVENT_TYPE_RULE()\n {\n\n String clauseStatement =\"EVENT_TYPE = 'C2CORP'\";\n\n //The aim is to use a List for each Event Types. Each Event Type Data should have its onw list\n //And on each Test below we will use the Lists accordingly\n objSUB_EVN_LIST_DATA = new T_C3D_SUBSCR_SUB_EVN_LIST_DATA(clauseStatement);\n objtestSUB_EVN_LIST = objSUB_EVN_LIST_DATA.getData();\n\n objSUB_ATR_LIST_DATA = new T_C3D_SUBSCR_SUB_ATR_LIST_DATA();\n objSUB_ATR_LIST = objSUB_ATR_LIST_DATA.getData();\n\n // Log the Start of the Test\n logger = report.startTest(\"EVENT_TYPE = DEAL_SWAP \",\n \"TO VERIFY THAT EVENT_TYPE ACT MANDATORY FIELDS ARE POPULATED WITH CORRECT DATA\");\n\n int numberOfSubsWithCorrectValues = 0;\n int numberOfSubsWithIncorrectValues= 0;\n int totalNumberOfSubs = 0;\n int failedSubs = 0;\n int passedSubs = 0;\n\n try {\n\n String busEventTypeStr = null;\n String eventDateStr = null;\n String eventTypeStr = null;\n String eventSubsId = null;\n String strCUSTOMER_ID = null;\n String strMSIN = null;\n String strICC_ID = null;\n Object PROFILE_START_DATE_VALUE = null;\n Object strPROFILE_END_DATE;\n String strSUBSCRIBER_ID;\n String strT11_MSISDN;\n String strEXTERNAL_ID;\n String strACTIVATION_DATE;\n String strEVENT_SEQ;\n String strCONNECTION_DATE;\n Object strDISCONNECTION_DATE;\n Object strEvent_Date;\n\n\n TRANSLATION_LAYER_MANDATORY_FIELDS Function = new TRANSLATION_LAYER_MANDATORY_FIELDS();\n\n for(T_C3D_SUBSCR_SUB_EVN_LIST objSUB_EVN_LIST : objtestSUB_EVN_LIST){\n\n listOfNullValues.clear();\n listOfIncorrectValues.clear();\n listOfCorrectValues.clear();\n\n try {\n eventSubsId = objSUB_EVN_LIST.getSUBSCRIBER_ID().toString();\n\n } catch (Exception e) {\n\n isSubsIdNotNull = false;\n listOfNullValues.add(\" SUBS_ID '\"+objSUB_EVN_LIST.getSUBSCRIBER_ID()+\"'\");\n }\n\n try {\n strCUSTOMER_ID = objSUB_EVN_LIST.getCUSTOMER_ID().trim().toString();\n\n } catch (Exception e) {\n\n if(checkDuplication(listOfDuplicationRecord,eventSubsId) == false) {\n\n listOfNullValues.add(\" CUSTOMER_ID: '\"+objSUB_EVN_LIST.getCUSTOMER_ID()+\"'\");\n }\n else\n {\n listOfDuplicationRecord.add(eventSubsId);\n }\n }\n\n\n try {\n\n strEvent_Date = objSUB_EVN_LIST.getEVENT_DATE().toString();\n\n\n\n } catch (Exception e) {\n\n listOfNullValues.add(\" EVENT_DATE: '\"+objSUB_EVN_LIST.getEVENT_DATE()+\"'\");\n }\n\n try {\n if (objSUB_EVN_LIST.getBUS_EVENT_TYPE().equals(\"DI\")) {\n\n isSuspen_BusEventType_Null = true;\n listOfCorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n\n } else\n {\n isSuspen_BusEventType_Null = false;\n listOfIncorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n }\n } catch (Exception e) {\n isBusEventTypeNotNull = false;\n listOfNullValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"\");\n\n }\n\n Function.TRANSLATION_LAYER_MONDATORY_FIELDS();\n\n\n if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" + listOfNullValues+//errorMessageOfNull+\n \" FIELDS WITH INCORRECT VALUES : \" + listOfIncorrectValues);\n numberOfSubsWithNullValues++; numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n //isCheckAllAttr = false;\n }\n else if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() == 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" +listOfNullValues);//+ errorMessageOfNull);\n //isCheckAllAttr = false;\n numberOfSubsWithNullValues++; totalNumberOfSubs++; failedSubs++;\n }\n else if(listOfNullValues.size() == 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\" FIELDS WITH INCORRECT VALUES : \" +listOfIncorrectValues);//+ errorMessageOfIncorrect);\n numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n }else if(listOfCorrectValues.size()>0){\n\n logger.log(LogStatus.PASS, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\"EVENT_TYPE: '\" + objSUB_EVN_LIST.getEVENT_TYPE()+\"' \"+\"BUSINESS EVENT_TYPE: '\" + objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"' \"+\" EVENT_DATE: '\"+ objSUB_EVN_LIST.getEVENT_DATE()+\"'\");numberOfSubsWithCorrectValues++; totalNumberOfSubs++; passedSubs++;\n }\n\n }\n\n logger.log(LogStatus.INFO,\"STATISTICS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithNullValues,\" SUBSCRIBERS WITH NULLS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithCorrectValues,\" SUBSCRIBERS WITH CORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithIncorrectValues,\" SUBSCRIBERS WITH INCORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+failedSubs,\" FAILED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+passedSubs,\" PASSED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+totalNumberOfSubs,\" TOTAL NUMBER OF SUBSCRIBERS \");\n\n\n }catch (Exception e)\n {\n logger.log(LogStatus.FAIL,\"ALL SUBS HAVE NULL EVENT_TYPE\");\n // System.out.println(\"EVENT_TYPE have NULLS for ALL SUBS\");\n }\n\n }", "public void incomingTriggerResourceControlRequest(APDUEvent e)\n {\n LOGGER.finer(\"Incoming triggetResourceControlRequest\");\n }", "public List<Pair<Integer>> getCustomTrend(String collectionId, String analysisId, String fieldValue, String query,\r\n String beginDate, String endDate, String interval) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n // query can be length of 0 (in the case of \"DOCUMENT\" as Frequency Type), so it's not included in wrong argument condition\r\n if (null == collectionId || null == analysisId || null == fieldValue || null == query || null == beginDate\r\n || null == endDate || 0 == collectionId.length() || 0 == analysisId.length() || 0 == fieldValue.length()\r\n || 0 == beginDate.length() || 0 == endDate.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (!IntervalType.DAY.equals(interval) && !IntervalType.MONTH.equals(interval) && !IntervalType.YEAR.equals(interval)) {\r\n setError(\"APIL_0165\", \"interval type's not valid: \" + interval);\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"analysis_id\", \"field_value\", \"query\", \"date_begin\", \"date_end\", \"interval\",\r\n \"item_delimiter\", \"freq_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"custom_time_series\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"analysis_id\", analysisId);\r\n request.setValue(\"field_value\", fieldValue);\r\n request.setValue(\"query\", query);\r\n request.setValue(\"date_begin\", beginDate);\r\n request.setValue(\"date_end\", endDate);\r\n request.setValue(\"interval\", interval);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"freq_delimiter\", FREQ_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n } else {\r\n wrapError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n }\r\n } else {\r\n toReturn = Tools.getPairListInt(response.getValue(\"time_series\"), ITEM_DELIMITER, FREQ_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }", "public void incomingExtendedServicesRequest(APDUEvent e)\n {\n LOGGER.finer(\"Incoming extendedServicesRequest\");\n }", "int getEducationsCount();", "@Test\n public void test20() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }", "@Override\n public int getMetricsCategory() {\n return MetricsEvent.DEVICEINFO;\n }" ]
[ "0.5281836", "0.5066688", "0.4829885", "0.47749072", "0.47419512", "0.4677388", "0.4623161", "0.45877698", "0.4587255", "0.45800894", "0.45318472", "0.4516292", "0.45158187", "0.4514046", "0.4512834", "0.44929233", "0.44887874", "0.44851032", "0.44579053", "0.4456468", "0.44518188", "0.4446647", "0.44366696", "0.44166127", "0.43936154", "0.43893203", "0.43600956", "0.43600333", "0.43533313", "0.43291557", "0.432639", "0.4311572", "0.43110952", "0.43079782", "0.43039238", "0.43033376", "0.43007532", "0.42947456", "0.42871884", "0.4278241", "0.4275028", "0.42652217", "0.4252571", "0.42366382", "0.42212096", "0.422011", "0.42130825", "0.42086065", "0.4203108", "0.4196023", "0.41953424", "0.41892126", "0.41857216", "0.41852307", "0.41807917", "0.41793898", "0.41746172", "0.41614458", "0.41613808", "0.41471228", "0.41428807", "0.41387892", "0.41379207", "0.41365796", "0.41365296", "0.41293538", "0.41230428", "0.41226798", "0.41172", "0.4115992", "0.41112566", "0.4110933", "0.4110706", "0.41090518", "0.41085526", "0.41081095", "0.4100811", "0.40983585", "0.40968814", "0.40926352", "0.40885198", "0.40846404", "0.40837485", "0.4080988", "0.4072358", "0.4068719", "0.40654024", "0.40619954", "0.40607253", "0.40563467", "0.4054164", "0.40517834", "0.40496463", "0.40462437", "0.4042397", "0.40389672", "0.40322736", "0.40308115", "0.40283072", "0.4024929" ]
0.6126809
0
/ FIN des Fonctions d'aptitude du Guerrier donner le type du perso
String getType() { return "Athlete"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Guerrier(Joueur joueur){\n\t\tsuper(joueur);\n\t\tsetNom(\"Hans\");\n\t\tsetType(\"Guerrier\");\n\t\tsetObjetInventaire(\"Epee\");\n\t\tif(joueur.getEquipe())\n\t\t\tsetId(9);\n\t\telse\n\t\t\tsetId(14);\n\t}", "@Override\n\tpublic void readGerant(Gerant g) {\n\t\t\n\t}", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}", "@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}", "public abstract void receberCarro(Carro carro);", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}", "private static Bala tipoBala(int idPj, Vector2 posicionRelativaRecibido, int tamanoBala) {\n Bala bala;\n Array<TextureRegion> arrayTexturas = Util.ficherosEnDirectorio(Gdx.files.internal(\"Balas/\" + idPj));\n switch (idPj) {\n //Balas con forma rectangular\n case 1:\n case 4:\n case 7:\n bala = new BalaRect(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n //Balas con forma circular\n case 2:\n bala = new BalaCirc(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n //Balas con forma poligonal\n case 3:\n case 5:\n case 6:\n case 8:\n case 9:\n case 10:\n bala = new BalaPol(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n default:\n arrayTexturas = Util.ficherosEnDirectorio(Gdx.files.internal(\"Balas/1\"));\n bala = new BalaRect(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n }\n return bala;\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "@Override\n\tpublic void updateGerant(Gerant g) {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void creationGrille();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public interface Gun {\n\t\n\t/**\n\t * defines guns behavior when asked to shoot.\n\t */\n\tvoid shoot();\n\t\n\t/**\n\t * refills ammo, setting them back to the max capacity.\n\t */\n\tvoid reload();\n\t\n\t/**\n\t * @return shot damage value.\n\t */\n int getDamage();\n\n\t/**\n\t * \n\t * @return shot speed value.\n\t */\n\tdouble getShotspeed();\n\t\n\t/**\n\t * \n\t * @return current ammunition number\n\t */\n\tint getNAmmo();\n\t\n\t/**\n\t * \n\t * @param nAmmo sets current ammunition number\n\t */\n\tvoid setNAmmo(int nAmmo);\n\t\n\t/**\n\t * \n\t * @return max ammunition capacity\n\t */\n\tint getMaxAmmo();\n\t\n\t/**\n\t * \n\t * @param otherGun\n\t * @return whether this gun is of the same type as otherGun, comparing main fields\n\t */\n\tboolean isSameTypeAs(Gun otherGun);\n}", "@Override\n\tpublic Types getType() {\n\t\treturn GameObject.Types.PERSON;\n\t}", "protected GEDCOMType() {/* intentionally empty block */}", "public interface Treasure extends Parcelable {\n Coins getValue();\n String getName();\n Treasure reroll();\n}", "void entrerAuGarage();", "public void guarda(DTOAcreditacionGafetes acreGafete) throws Exception ;", "int getGunType();", "public interface GarisLurus {\r\n \r\n public int hitungGradien();\r\n \r\n}", "public interface SammelTransferBuchung extends Transfer, HibiscusDBObject\n{\n\t/**\n\t * Liefert den zugeordneten Sammel-Transfer.\n * @return Sammel-Transfer.\n * @throws RemoteException\n */\n public SammelTransfer getSammelTransfer() throws RemoteException;\n\n\t/**\n\t * Legt den zugehoerigen Sammel-Transfer fest.\n * @param s Sammel-Transfer.\n * @throws RemoteException\n */\n public void setSammelTransfer(SammelTransfer s) throws RemoteException;\n\n\t/**\n\t * Speichert die Kontonummer des Gegenkontos.\n * @param kontonummer\n * @throws RemoteException\n */\n public void setGegenkontoNummer(String kontonummer) throws RemoteException;\n\t\n\t/**\n\t * Speichert die BLZ des Gegenkontos.\n * @param blz\n * @throws RemoteException\n */\n public void setGegenkontoBLZ(String blz) throws RemoteException;\n\n\t/**\n\t * Speichert den Namen des Kontoinhabers des Gegenkontos.\n * @param name\n * @throws RemoteException\n */\n public void setGegenkontoName(String name) throws RemoteException;\n\n\t/**\n\t * Speichert den zu ueberweisenden Betrag.\n\t * @param betrag Betrag.\n\t * @throws RemoteException\n\t */\n\tpublic void setBetrag(double betrag) throws RemoteException;\n\t\n\t/**\n\t * Speichert den Zweck der Ueberweisung.\n\t * @param zweck Zweck der Ueberweisung.\n\t * @throws RemoteException\n\t */\n\tpublic void setZweck(String zweck) throws RemoteException;\n\t\n\t/**\n\t * Speichert Zeile 2 des Verwendungszwecks.\n\t * @param zweck2 Zeile 2 des Verwendungszwecks.\n\t * @throws RemoteException\n\t */\n\tpublic void setZweck2(String zweck2) throws RemoteException;\n \n /**\n * Liefert den Textschluessel der Buchung.\n * @return Textschluessel.\n * @throws RemoteException\n */\n public String getTextSchluessel() throws RemoteException;\n \n /**\n * Speichert den Textschluessel der Buchung.\n * @param schluessel Textschluessel.\n * @throws RemoteException\n */\n public void setTextSchluessel(String schluessel) throws RemoteException;\n\n /**\n * Speichert eine Liste erweiterter Verwendungszwecke.\n * @param list Liste erweiterter Verwendungszwecke.\n * @throws RemoteException\n */\n public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;\n}", "public interface ComportementAjout {\n\n\n void ajouterEtudiant(Etudiant e, Promotion p, List<Groupe> l);\n\n}", "@Override\r\n\tpublic String getType() {\n\t\treturn \"Pigiste\";\r\n\t}", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public void carregar(DadosGrafico dados){\r\n \r\n }", "Gruppo getGruppo();", "public Chargeur(int reference, String intitule, float prix, Set<String> marques, Types type) {\r\n\t\tsuper(reference, intitule, prix, marques);\r\n\t\tthis.type = type;\r\n\t}", "public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public void repartirGananciasDealer() {\n\t\t if(contieneJugador(ganador,\"dealer\")) {\n\t\t\t if(verificarJugadaBJ(manosJugadores.get(3))) {\n\t\t\t\t System.out.println(\"Pareja nombre agregado dealer\");\n\t\t\t\t int cantidadGanancia = verificarCantidadGanadores() + 15;\n\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\", cantidadGanancia));\n\t\t\t }else {\n\t\t\t\t System.out.println(\"Pareja nombre agregado --> dealer\");\n\t\t\t\t int cantidadGanancia = verificarCantidadGanadores()+10;\n\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\",cantidadGanancia));\n\t\t\t }\n\t\t }else {\n\t\t\t int cantidadGanancia = verificarCantidadGanadores();\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\",cantidadGanancia));\n\t\t }\n\t\t \n\t }", "@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}", "public void registrarCompraIngrediente(String nombre, int cantidad, int precioCompra, int tipo) {\n //Complete\n }", "public boolean borra(Libro libro);", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "public ReocType() \r\n {\r\n super();\r\n }", "@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}", "public long getPlateau()\n {\n return plateau;\n }", "public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }", "public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Étude des contacts avec les 8 points de la bille\n\t\t// Contact GaucheHaut de la bille\n\n\t\t// Contact haut de la bille\n\t\tint[] p = billeEnCours.MH();\n\t\tif (p[1] <= barreEnCours.bas() && p[1] >= barreEnCours.haut() && p[0] <= barreEnCours.droite() && p[0] >= barreEnCours.gauche()) {\n\t\t\tcontact = 3;\n\t\t}\n\n\t\t// Contact bas de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.MB();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 7;\n\t\t\t}\n\t\t}\n\n\t\t// Contact droite de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.DM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact gauche de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.GM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 1;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 4;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 8;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 6;\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse \n\n\t\t// Rencontre d'un coin\n\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\tbilleEnCours.demiTour();\n\t\t}\n\n\t\t// Contact Classique\n\t\t// Gauche - Droite\n\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\t// Haut - Bas : Déviation de la balle\n\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\tint[] nv = new int[] {1,1};\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4 && billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] - 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] + 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\t\t\t\n\n\n\t}", "ObligacionDeber createObligacionDeber();", "@Override\n public LargeFireballType getType() {\n return LargeFireballType.TYPE;\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private static void grabarYllerPaciente() {\r\n\t\tPaciente paciente = new Paciente(\"Juan\", \"Garcia\", \"65\", \"casa\", \"2\", \"1998\");\r\n\t\tPaciente pacienteDos = new Paciente(\"MArta\", \"Garcia\", \"65\", \"casa\", \"3\", \"1998\");\r\n\t\tPaciente pacienteTres = new Paciente(\"MAria\", \"Garcia\", \"65\", \"casa\", \"4\", \"1998\");\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tString rutaDos = pacienteDos.getIdUnico();\r\n\t\tString rutaTres = pacienteTres.getIdUnico();\r\n\t\tDTO<Paciente> dtoPacienteDos = new DTO<>(\"src/Almacen/\" + rutaDos + \".dat\");\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tDTO<Paciente> dtoPacienteTres = new DTO<>(\"src/Almacen/\" + rutaTres + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteDos.grabar(pacienteDos) == true) {\r\n\r\n\t\t\tSystem.out.println(pacienteDos.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteTres.grabar(pacienteTres) == true) {\r\n\t\t\tSystem.out.println(pacienteTres.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t}", "@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void ergebnis(TrefferTyp ergebnisTyp, Koordinate position) {}", "private void remplirFabricantData() {\n\t}", "@Override\n\tpublic void registrarLlegada() {\n\t}", "TypeAssociation getEstRapporteeParRapport();", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "public com.google.android.gms.dynamic.d g(com.google.android.gms.maps.model.internal.l param1) throws RemoteException {\n }", "public void setType(byte r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ec in method: android.location.GpsClock.setType(byte):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setType(byte):void\");\n }", "@Override\n public String getType(){\n return Type;\n }", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "private void deplacerBall() {\n\t\tassert(f.getLevel() != null);\n\t\t\n\t\tLevel l = f.getLevel();\n\t\t\n\t\tif(l.getBall() == null ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*1/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*4/5) {//defilement vers le bas\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()<f.getLargeurFenetre()*1/5) {//defilement vers la gauche\n\t\t\t\tf.defilerEcranX(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()>f.getLargeurFenetre()*4/5) {//defilement vers la droite\n\t\t\t\tf.defilerEcranX(false);\n\t\t\t}\n\t\t}else if(l.getType() == Type.INVERSE){\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*3/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t}else {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*2/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {//mode automatique -> deplacement automatique\n\t\t\tl.getBall().deplacer();\n\t\t}else {\n\t\t\tl.getBall().deplacer();\n\t\t\tl.getBall().gravityY(l.gravityY());//la balle tombe selon la gravite\n\t\t}\n\t}", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "protected int getVillagerType(int par1)\n {\n return FantasticIds.fishermanID;\n }", "public BundlesG() {\r\n // Put the default conversions\r\n addRangeIntegers();\r\n }", "public Room getLocalisation(){return this.aLocalisation;}", "public Reimbursement(){}", "public void setGiro(int giro2){\n\t\t//hacer lo esto con giro set y get\n\t\tthis.giro=giro2;\n\t}", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}", "public void setRaggio(double raggio){\n this.raggio = raggio;\n }", "protected void agregarUbicacion(){\n\n\n\n }", "void Planificar(Reserva unaReserva);", "Vaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();", "public void addOnVerificarRecomporValorGT(ACBrEventListener<AACVerificarRecomporValorGTEventObject> pListener) {\n\t\tif (!hasListeners(\"onVerificarRecomporValorGT\")) {\n\t\t\tACBrAACInterop.INSTANCE.AAC_SetVerificarRecomporValorGT(getHandle(), onVerificarRecomporValorGT);\n\t\t}\n\t\taddListener(\"onVerificarRecomporValorGT\", pListener);\n\t}", "public CarteGuerre(String nom, Ere ere) {\n\t\tsuper(nom, ere);\n\t\t// TODO Auto-generated constructor stub\n\t}", "public int getIdLibro()\n {\n return id;\n }", "public Rectangle getUbicacion(){\n return ubicacion;\n }", "public int getTipoAtaque(){return tipoAtaque;}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private String getType(){\r\n return type;\r\n }", "public abstract Barrier inverseKnockType();", "public PsicoderToGo() {\n translate_types.put(\"entero\", new ArrayList(Arrays.asList(\"int\", \"d\", \"0\")));\n translate_types.put(\"real\", new ArrayList(Arrays.asList(\"float64\", \"f\", \"0.0\")));\n translate_types.put(\"caracter\", new ArrayList(Arrays.asList(\"byte\", \"s\", \"\\\"\\\"\")));\n translate_types.put(\"booleano\", new ArrayList(Arrays.asList(\"bool\", \"b\", \"false\")));\n translate_types.put(\"cadena\", new ArrayList(Arrays.asList(\"string\", \"s\", \"\\\"\\\"\")));\n }", "public void setGiro( double gradosGiro ) {\n\t\t// De grados a radianes...\n\t\tmiGiro = gradosGiro/180*Math.PI;\n\t\t// El giro en la pantalla es en sentido horario (inverso):\n\t\tmiGiro = -miGiro; // Cambio el sentido del giro\n\t\t// Y el gr·fico del coche apunta hacia arriba (en lugar de derecha OX)\n\t\tmiGiro = miGiro + Math.PI/2; // Sumo 90∫ para que corresponda al origen OX\n\t}", "void setGruppo(Gruppo gruppo);", "public interface Barrier {\n\n /**\n * Obtains the barrier type.\n * \n * @return the barrier type\n */\n public abstract BarrierType getBarrierType();\n\n /**\n * Obtains the knock type.\n * \n * @return the knock type\n */\n public abstract KnockType getKnockType();\n\n /**\n * Obtains the barrier level for a given observation date.\n * \n * @param date the observation date\n * @return the barrier level\n */\n public abstract double getBarrierLevel(LocalDate date);\n\n /**\n * Obtains an instance with knock type inverted.\n * \n * @return the instance\n */\n public abstract Barrier inverseKnockType();\n\n}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "public interface RegPrester {\n public void success(RegBean zhuCeDataBean);\n}", "void onGroupeChange(Groupe groupe);", "public void guardarTransferenteAlcabala(RaTransferenteAlcabala raTransferenteAlcabala)throws Exception;", "@Override\n\tpublic boolean podeReceber(Fornecivel e) {\n\t\treturn (e instanceof Agua || e instanceof Cereal) ? true : false;\n\t}", "public abstract void setType();", "public interface RegiterFragmentModel extends BaseIModel {\n void loadSubmit(String phoneNumber,String code,onLoadSubmitListenter listenter);\n\n void loadSecurity(String phoneMunber,onLoadDateSingleListener listener);\n\n public interface onLoadSubmitListenter<T> {\n\n void onSubmitSuccess(T t);\n\n\n void onSubmitFailure(String msg, Exception e);\n }\n\n}", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "public boolean tieneRepresentacionGrafica();", "Type persistir(Type type);", "public void setLocalisation(final Room pLocalisation){this.aLocalisation = pLocalisation;}", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "private void toRent() {\n }", "TypeAssociationEXT getEstPourTypeMateriel();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected T getManusia(){\r\n return Manusia;\r\n }", "interface GAAllele {\r\n interface Type {\r\n int ENUMERATED = 1;\r\n int BOUNDED = 2;\r\n int DISCRETIZED = 3;\r\n }\r\n\r\n interface BoundType {\r\n int NONE = 0;\r\n int INCLUSIVE = 1;\r\n int EXCLUSIVE = 2;\r\n }\r\n}", "public interface Registro {\n\t\n\t/**\n\t * Este método convierte el objeto en una tira de bytes.\n\t * \n\t * @return la tira de bytes.\n\t */\n\tbyte[] getBytes();\n\n\t/**\n\t * Este método toma la tira de bytes y setea al registro.\n\t * \n\t * @param buffer\n\t * la tira de bytes.\n\t * @param offset\n\t * El offset en el que se encuentra el dato de audio asociado.\n\t */\n\tvoid setBytes(final byte[] buffer, final Long offset);\n\t\n\t/**\n\t * Si hay mas bytes.\n\t * \n\t * @return true si hay mas bytes para devolver con getBytes()\n\t */\n\tboolean hasMoreBytes();\n\n}", "@Override\r\n\tpublic void vehicleType() {\n\r\n\t}", "@Deprecated // use the generic form only\npublic interface BonaPortableConverter extends DataConverter<BonaPortable,ObjectReference> {\n}" ]
[ "0.5923196", "0.56835747", "0.5574162", "0.5540654", "0.5424192", "0.5351337", "0.53497195", "0.53484964", "0.5334418", "0.53269553", "0.5294592", "0.52930796", "0.5274038", "0.5265407", "0.5254943", "0.52545613", "0.52528614", "0.5228465", "0.5219623", "0.52114636", "0.52089113", "0.5195235", "0.5192302", "0.5158387", "0.5156117", "0.5150937", "0.5112015", "0.51072025", "0.50952166", "0.509085", "0.5082798", "0.5074505", "0.50729823", "0.5067315", "0.5032413", "0.5027818", "0.50181186", "0.5000315", "0.49914306", "0.49869472", "0.49839163", "0.49810612", "0.49791208", "0.49737728", "0.49729854", "0.4969571", "0.49662784", "0.4962857", "0.49563333", "0.49550232", "0.4954722", "0.49524668", "0.49476436", "0.49412987", "0.49403498", "0.49389508", "0.49271402", "0.49263084", "0.49216777", "0.49169558", "0.4913674", "0.4911228", "0.4908282", "0.49073973", "0.49037033", "0.4899981", "0.4897817", "0.48963153", "0.48961553", "0.4895996", "0.4895828", "0.48939255", "0.48911142", "0.48884663", "0.48879436", "0.48872593", "0.48834038", "0.48772547", "0.48771307", "0.4872721", "0.4872363", "0.48661086", "0.48657185", "0.4863003", "0.48617777", "0.48612976", "0.486097", "0.48608252", "0.48607567", "0.48591998", "0.4858009", "0.48562002", "0.48516774", "0.4848166", "0.48423272", "0.48421648", "0.48416704", "0.48416126", "0.48393044", "0.48391593", "0.4836607" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { textField.setColumns(10); frame = new JFrame(); frame.setBounds(200, 200, 500, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblNewLabel = new JLabel("Restraunt Name: Login Page"); lblNewLabel.setBounds(165, 16, 262, 16); frame.getContentPane().add(lblNewLabel); JLabel usernameTxt = new JLabel("Username:"); usernameTxt.setBounds(112, 91, 81, 16); frame.getContentPane().add(usernameTxt); JLabel passwordTxt = new JLabel("Password:"); passwordTxt.setBounds(112, 145, 81, 21); frame.getContentPane().add(passwordTxt); usernameEntry = new JTextField(); usernameEntry.setBounds(182, 83, 195, 32); frame.getContentPane().add(usernameEntry); usernameEntry.setColumns(10); JButton loginButton = new JButton("Login"); loginButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String username = usernameEntry.getText(); String password = passwordEntry.getText(); if(username.contains("mahmed76") && password.contains("chiefddot")) { usernameEntry.setText(null); passwordEntry.setText(null); } else { JOptionPane.showMessageDialog(null, "Invalid username or password", "Please retry", JOptionPane.ERROR_MESSAGE); usernameEntry.setText(null); passwordEntry.setText(null); } } }); loginButton.setBounds(6, 213, 117, 29); frame.getContentPane().add(loginButton); JButton clearButton = new JButton("Clear"); clearButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { usernameEntry.setText(null); passwordEntry.setText(null); } }); clearButton.setBounds(182, 213, 117, 29); frame.getContentPane().add(clearButton); JButton exitButton = new JButton("Exit"); exitButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frame = new JFrame("Exit"); if (JOptionPane.showConfirmDialog(frame, "Are you sure you want to exit?", "Login Page", JOptionPane.YES_NO_OPTION)== JOptionPane.YES_NO_OPTION) { System.exit(0); } } }); exitButton.setBounds(352, 213, 131, 32); frame.getContentPane().add(exitButton); passwordEntry = new JPasswordField(); passwordEntry.setBounds(182, 142, 213, 26); frame.getContentPane().add(passwordEntry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Creates new form AssignPatient
public AssignPatient() { initComponents(); this.getContentPane().setBackground(Color.WHITE); connex=connect.accessdb(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }", "private void onAddPatient() {\n\t\tGuiManager.openFrame(GuiManager.FRAME_ADD_PATIENT);\n\t}", "private void setThePatient() {\n String ppsn = mPPSN.getText().toString();\n thePatient.set_id(ppsn.substring(ppsn.indexOf(\":\")+1).trim());\n\n String name = mName.getText().toString();\n thePatient.setName(name.substring(name.indexOf(\":\")+1).trim());\n\n String illness = mCondition.getText().toString();\n thePatient.setIllness(illness.substring(illness.indexOf(\":\")+1).trim());\n\n Address a = new Address();\n String addressLine1 = mAddressLine1.getText().toString();\n a.setAddressLine1(addressLine1.substring(addressLine1.indexOf(\":\")+1).trim());\n\n String addressLine2 = mAddressLine2.getText().toString();\n a.setAddressLine2(addressLine2.substring(addressLine2.indexOf(\":\")+1).trim());\n\n String city = mCity.getText().toString();\n a.setCity(city.substring(city.indexOf(\":\")+1).trim());\n\n String county = mCounty.getText().toString();\n a.setCounty(county.substring(county.indexOf(\":\")+1).trim());\n\n String country = mCountry.getText().toString();\n a.setCountry(country.substring(country.indexOf(\":\")+1).trim());\n\n String postcode = mPostCode.getText().toString();\n a.setPostCode(postcode.substring(postcode.indexOf(\":\")+1).trim());\n\n thePatient.setAddress(a);\n }", "public void addNewPatient(View v) {\n\tDataHandler dh;\n\ttry {\n\t dh = new DataHandler(this.getApplicationContext().getFilesDir(),\n\t\t DataHandler.PATIENT_DATA);\n\t vitalSigns\n\t\t .put(new Date(),\n\t\t\t new VitalSigns(\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.temperature_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.heartRate_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t new BloodPressure(\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_systolic_field))\n\t\t\t\t\t\t .getText().toString()),\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_diastolic_field))\n\t\t\t\t\t\t .getText().toString()))));\n\t Patient pat = new Patient(personalData, vitalSigns, symptoms,\n\t\t new Date(), new Prescription());\n\n\t dh.appendNewPatient(pat);\n\t try {\n\t\tdh.savePatientsToFile(this\n\t\t\t.getApplicationContext()\n\t\t\t.openFileOutput(DataHandler.PATIENT_DATA, MODE_PRIVATE));\n\t } catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t }\n\t} catch (NumberFormatException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n\tIntent newIntent = new Intent(this, DisplayActivityNurse.class);\n\tstartActivity(newIntent);\n }", "public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }", "private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }", "private void patientSetBtnActionPerformed(java.awt.event.ActionEvent evt) {\n patientArr[patientI] = new patient(patientNameBox.getText(),\n Integer.parseInt(patientAgeBox.getText()),\n patientDiseaseBox.getText(),\n Integer.parseInt(patientIDBox.getText()));\n try {\n for (int i = 0; i < doc.length; i++) {\n if (patientDiseaseBox.getText().equalsIgnoreCase(doc[i].expertise)) {\n doc[i].newPatient(patientArr[patientI]);\n patientArr[patientI].docIndex = i;\n break;\n }\n }\n } catch (NullPointerException e) {\n for (int i = 0; i < doc.length; i++) {\n if (doc[i].expertise.equalsIgnoreCase(\"medicine\")) {\n doc[i].newPatient(patientArr[patientI]);\n\n }\n }\n }\n\n patientArr[patientI].due += 1000;\n\n patientI++;\n \n }", "public Patient() {\r\n\r\n\t}", "public Patient (){\r\n }", "public Patient() {\n }", "public Patient() {\n\t\t\n\t}", "private void saveNewPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Save new Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), \"Passwort\", \"[email protected]\", \"Vorname\",\r\n\t\t\t\t\t\"Nachname\", \"Organisation\", \"Abteilung\", \"Fachrichtung\",\r\n\t\t\t\t\t\"Strasse\", \"3e\", \"54321\", \"Ort\");\r\n\r\n\t\t\tp1.save();\r\n\t\t} catch (BusinesslogicException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"New Patient saved!!\");\r\n\t}", "public int createNewPatient(Patient p) {\n int id = 0;\n String query = \"INSERT INTO PATIENTS(name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS)) {\n pst.setString(1, p.getName());\n pst.setBoolean(2, p.isGender());\n pst.setDate(3, p.getBirth());\n pst.setString(4, p.getDpi());\n pst.setString(5, p.getPhone());\n pst.setDouble(6, p.getWeight());\n pst.setString(7, p.getBlood());\n pst.setString(8, p.getEmail());\n pst.setString(9, p.getPass());\n pst.executeUpdate();\n \n ResultSet rs = pst.getGeneratedKeys();\n if(rs.next()) {\n id = rs.getInt(1);\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n return id;\n }", "public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }", "public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }", "void AddPatiant(Patient p) throws Exception;", "public void insertPatient(Patient p) {\n String query = \"INSERT INTO PATIENTS(patient_id, name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setInt(1, p.getPatientId());\n pst.setString(2, p.getName());\n pst.setBoolean(3, p.isGender());\n pst.setDate(4, p.getBirth());\n pst.setString(5, p.getDpi());\n pst.setString(6, p.getPhone());\n pst.setDouble(7, p.getWeight());\n pst.setString(8, p.getBlood());\n pst.setString(9, p.getEmail());\n pst.setString(10, p.getPass());\n pst.executeUpdate();\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n }", "public PatientModelSetForm() {\n\n\t}", "public PatientRegForm() {\n initComponents();\n }", "public PatientFrame(Patient pa) {\n patient = pa;\n initComponents();\n updateTable();\n }", "public SinglePatientPN() {\n initComponents();\n }", "public void addPatient()\n {\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Enter name of patient\");\n String name=sc.nextLine();\n int pos,id;\n\n do\n {\n System.out.println(\"Enter doctor id to assign to\");\n id=sc.nextInt();\n pos=checkDoctor(id);\n if(pos==-1)\n System.out.println(\"Invalid doctor id\");\n }\n while(pos==-1);\n String docname=doc.get(pos).getName();\n Patient p=new Patient(name,id,docname);\n pt.add(p);\n\n }", "protected void contructPatientInstance() {\r\n\t\tResources resources = getApplicationContext().getResources();\r\n\t\r\n \t// constuct the patient instance\r\n try {\r\n \tsetPatientAssessment((new PatientHandlerUtils()).populateCcmPatientDetails(resources, getReviewItems()));\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\tLoggerUtils.i(LOG_TAG, \"Parse Exception thrown whilst constructing patient instance\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }", "Assign createAssign();", "@When ( \"I assign representee (.+) for the patient (.+)\" )\n public void hcpAssignTee ( final String tee, final String tive ) {\n wait.until( ExpectedConditions\n .visibilityOfElementLocated( By.cssSelector( \"input[type=radio][value=\" + tive + \"]\" ) ) );\n driver.findElement( By.cssSelector( \"input[type=radio][value=\" + tive + \"]\" ) ).click();\n setTextField( By.name( \"representee\" ), tee );\n driver.findElement( By.name( \"representeeSubmit\" ) ).click();\n Patient.getByName( tive ).save();\n Patient.getByName( tee ).save();\n }", "Patient save(Patient patient);", "public Patient_Info() {\n initComponents();\n }", "@Override\n public Patient editPatient(Patient patient) {\n return patientRepository.save(patient);\n }", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "private void savePatientToDatabase(Patient patient){\n DatabaseAdapter cateDB = new DatabaseAdapter(AddPatientActivity.this);\n try {\n cateDB.openDatabaseForRead();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n patient.printPatient();\n cateDB.insertPatient(patient);\n\n cateDB.closeDatabase();\n }", "public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }", "private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }", "@GetMapping(\"/patientRegister\")\n public String patientRegister(Model model){\n model.addAttribute(\"patient\", new User());\n model.addAttribute(\"info\", new PatientInfo());\n return \"views/patient/patientRegister\";\n }", "@PostMapping(value = \"/insert\", produces = \"application/json\")\n void insert(@RequestBody Patient patient);", "public void setPatientName(String patientName)\n {\n this.patientName = patientName;\n }", "@RequestMapping(\"/newRecipePatient\")\r\n\tpublic ModelAndView newRecipePatient(@RequestParam Integer recipe_idr) {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"recipe_idr\", recipe_idr);\r\n\t\tmav.addObject(\"patient\", new Patient());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setViewName(\"recipe/patient/editPatient.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}", "@When ( \"I assign representative (.+) for the patient (.+)\" )\n public void hcpAssignTive ( final String tive, final String tee ) {\n wait.until( ExpectedConditions\n .visibilityOfElementLocated( By.cssSelector( \"input[type=radio][value=\" + tee + \"]\" ) ) );\n driver.findElement( By.cssSelector( \"input[type=radio][value=\" + tee + \"]\" ) ).click();\n setTextField( By.name( \"representative\" ), tive );\n driver.findElement( By.name( \"representativeSubmit\" ) ).click();\n }", "public Patient() {\n this(DSL.name(\"patient\"), null);\n }", "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}", "public void setPatientName(String patientName){\n\t\tthis.patientName = patientName;\n\t}", "public Patient(Name alias) {\n this(alias, PATIENT);\n }", "public Patient(String firstName, String lastName, String birthdate, String gender,\n\t\t\tString address1, String address2, String city, String state, String zipcode, String country,\n\t\t\tString insuranceProvider, String insuranceNumber) {\n this.patientID = -1;\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthdate = birthdate;\n this.gender = gender;\n this.address1 = address1;\n this.address2 = address2;\n this.city = city;\n this.state = state;\n this.zipcode = zipcode;\n this.country = country;\n this.insuranceProvider = insuranceProvider;\n this.insuranceNumber = insuranceNumber;\n }", "public boolean createPatient(Patient patient,PatientRecord patientRecord) {\r\n\t\tboolean isCreated= false;\r\n\t\tString[] row= new String[9];\r\n\t\ttry {\r\n\t\t\tString query = \"INSERT INTO patients VALUES (?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, patient.getId());\r\n\t\t\tpStatement.setString(2, patient.getFirstName());\r\n\t\t\tpStatement.setString(3, patient.getLastName());\r\n\t\t\tpStatement.setString(4, patient.getGender());\r\n\t\t\tpStatement.setInt(5, patient.getAge());\r\n\t\t\tpStatement.setString(6, patient.getPhone());\r\n\t\t\tpStatement.setString(7, patient.getAddress().getVillege());\r\n\t\t\tpStatement.setString(8, patient.getAddress().getCommune());\r\n\t\t\tpStatement.setString(9, patient.getAddress().getCity());\r\n\t\t\tpStatement.setString(10, patient.getAddress().getProvince());\r\n\t\t\tpStatement.setString(11, patient.getAddress().getCountry());\r\n\t\t\tpStatement.setString(12, patient.getType());\r\n\t\t\t\r\n\t\t\tif(pStatement.executeUpdate() > 0) {\r\n\t\t\t\tpatientID.add(patient.getId());\r\n\t\t\t\trow[0]= patient.getId()+\"\";\r\n\t\t\t\trow[1]= patient.getFirstName();\r\n\t\t\t\trow[2]= patient.getLastName();\r\n\t\t\t\trow[3]= patient.getGender();\r\n\t\t\t\trow[4]= patient.getAge()+\"\";\r\n\t\t\t\trow[5]= patientRecord.getDate()+\"\";\r\n\t\t\t\trow[6]= patient.getPhone();\r\n\t\t\t\tmodelPatient.addRow(row);\r\n\t\t\t\tisCreated= true;\r\n\t\t\t\tSystem.out.println(\"You have insert a patient record\");\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn isCreated;\r\n\t}", "public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString date = AppDateField.getText();\n\t\tString Time = AppTimeField.getText();\t\n\t\tString Name = AppPatNameField.getText();\n\t\tString Surname = AppPatSurnameField.getText();\n\t\tint Id = Integer.parseInt(AppPatIdField.getText());\n\t\tString Doctor = AppDocNameField.getText();\n\t\tString Service = (String) SelectTask.getSelectedItem();\n\t\t\n\t\tDBH db = new DBH();\n\t\t\n\t\tString sql = \"INSERT INTO `Narnia_Hospital`.`Appointments` (`Appointment_Date`, `Appointment_Time`, `AppPat_Name`, `AppPat_Surname`, `AppPatId`, `AppDoctor`, `AppService`) VALUES ('\"+date+\"','\"+Time+\"','\"+Name+\"','\"+Surname+\"','\"+Id+\"','\"+Doctor+\"','\"+Service+\"')\"; \n\t\t\n\t\t\n\t\tResultSet rs = null;\n\t\t\n\t\ttry{\n\t\t rs = db.executeCall(sql);\n \t\t\n\t\t while(rs.next()){\n\t\t\t \n\t\t\t Appointment A1 = new Appointment();\n\t\t\t \n\t\t\t A1.setAppDate (date);\n\t\t\t A1.setAppTime(Time);\n\t\t\t A1.setPatientName(Name);\n\t\t\t A1.setPatientSurname(Surname);\n\t\t\t A1.setPatId(Id);\n\t\t\t A1.setDoctorName(Doctor);\n\t\t\t A1.setServiceRequired(Service);\n\t\t\t \n\t\t\t \n\t\t\t \t\n\t\t\t\t }\n\t\t\t \n\t\t \n\t\t \n\t\t \n\t\t}catch (Exception ex){}\n\t\t\n\t\t//Offers the option to create a new one or leave this screen.\n\t\t\n\t\tJOptionPane.showMessageDialog(this, \"Appointment Registered!\");\n\t\t\n\t\t int n = JOptionPane.showConfirmDialog(this,\"Do you want to add another appointment?\", \"Message Selected\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t if (n == 0){ \n\t\t\t this.setVisible(false);\n\t\t\t new NewAppointment();\n\t\t\t\n\t\t} else if (n == 1){\n\t\t\t this.setVisible(false);\n\t\t\t new SecretaryScreen();\n\t\t}\n\t\t\n\t}", "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "public Patient(String alias) {\n this(DSL.name(alias), PATIENT);\n }", "public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;", "public Patient(String myLast, String myFirst, int age) {\n this.lastname = myLast;\n this.firstname = myFirst;\n this.age = age;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public Patient newPatient(String name, int dob) {\n\n\t\tint thisYear = 2016;\n\t\tint ageLimit = 130;\n\n\t\tif (((thisYear - dob) > ageLimit) || (dob > thisYear)) {\n\t\t\tSystem.out.println(\"The age is not valid\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tage = thisYear - dob;\n\t\tid = size;\n\t\tsize++;\n\t\tPatient x = new Patient(size, name, age);\n\t\tSystem.out.println(\"The paitent is called \" + x.name + \" and ID is : \" + x.id + \" and age is: \" + x.age);\n\t\tpatients.add(x);\n\t\treturn x;\n\t}", "public String post(HttpServletRequest request,\n PageModel model,\n UiUtils ui,\n UiSessionContext session) throws IOException {\n Map<String, Object> params=new HashMap<String, Object>();\n\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date birthDate = df.parse(request.getParameter(\"patient.birthdate\"), new ParsePosition(0));\n Boolean estimated = Boolean.parseBoolean(request.getParameter(\"patient.birthdateEstimated\"));\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyMMddHHmmssS\");\n Calendar calendar = Calendar.getInstance();\n Random random = new Random();\n\n String identifier = sdf.format(calendar.getInstance().getTime()) + random.nextInt(9999);\n String givenName = \"\";\n String familyName = \"\";\n String otherNames = \"\";\n\n String[] nameList = request.getParameter(\"patient.name\").split(\"\\\\s+\");\n\n for (int i=0; i<nameList.length; i++){\n if (i ==0){\n givenName = nameList[i];\n }\n else if (i==1){\n familyName = nameList[i];\n }\n else{\n otherNames += nameList[i] + \" \";\n }\n }\n\n PersonName pn = new PersonName();\n pn.setGivenName(givenName);\n pn.setFamilyName(familyName);\n pn.setMiddleName(otherNames);\n\n PatientIdentifier pi = new PatientIdentifier();\n pi.setIdentifier(identifier);\n pi.setIdentifierType(new PatientIdentifierType(2));\n pi.setLocation(session.getSessionLocation());\n pi.setDateCreated(new Date());\n pi.setCreator(session.getCurrentUser());\n\n PersonAddress pa = new PersonAddress();\n pa.setAddress1(request.getParameter(\"address.address1\"));\n pa.setAddress2(request.getParameter(\"address.telephone\"));\n pa.setCountry(request.getParameter(\"address.country\"));\n pa.setCityVillage(request.getParameter(\"address.cityVillage\"));\n pa.setStateProvince(request.getParameter(\"address.stateProvince\"));\n pa.setPreferred(true);\n pa.setCreator(session.getCurrentUser());\n pa.setDateCreated(new Date());\n\n Patient patient = new Patient();\n patient.addName(pn);\n patient.addAddress(pa);\n patient.addIdentifier(pi);\n patient.setGender(request.getParameter(\"patient.gender\"));\n patient.setBirthdate(birthDate);\n patient.setBirthdateEstimated(estimated);\n patient.setCreator(session.getCurrentUser());\n patient.setDateCreated(new Date());\n\n patient = Context.getPatientService().savePatient(patient);\n\n PersonLocation pl = new PersonLocation();\n pl.setPerson(patient);\n pl.setLocation(session.getSessionLocation());\n pl.setDescription(\"Registration\");\n Context.getService(MdrtbService.class).savePersonLocation(pl);\n\n params.put(\"patient\", patient);\n\n return \"redirect:\" + ui.pageLink(\"mdrtbdashboard\", \"enroll\", params);\n }", "public Patient(String id, String givenName, String familyName, LocalDate birthDate, Gender gender, Address address)\n {\n this.id = id;\n this.givenName = givenName;\n this.familyName = familyName;\n this.birthDate = birthDate;\n this.gender = gender;\n this.address = address;\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Patient setPatientIdentifier(Patient patient){\n\t\tUUID u = new UUID(1,0);\n\t\ttry{\n\t\t\tUUID randomUUID = u.randomUUID();\n\t\t\tPatientIdentifier pi = new PatientIdentifier();\n\t\t\tpi.setIdentifier(randomUUID.toString());\n\t\t\tpatient.addIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}", "@POST(PRESCRIPTION_PATH)\n\tPrescription assignMedication(\n\t\t\t@Path(PATIENT_ID_PARAM) long patientId,\n\t\t\t@Query(MEDICATION_NAME_PARAM) String medication);", "public PatientPanelPrescription() {\n initComponents();\n set();\n }", "public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}", "public AttendanceForm() {\n super();\n initComponents();\n attendanceTableModel = new AttendanceTableModel();\n attendanceTable.setModel(attendanceTableModel);\n }", "public Patient() {\n\t\tsuper();\n\t\t/*\n\t\t * TODO initialize lists\n\t\t */\n\t\ttreatments = Collections.emptyList();\n\t}", "@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }", "public void newRecord() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tdateTxt.setText(dateFormat.format(new Date()));\n\t\t//mark all students enrolled as attendant\n\t\tif (courseTable.getSelectedRow() != -1) {\n\t\t\tsetWarningMsg(\"\");\n\t\t\tupdateStudent(currentCourse);\n\t\t\tfor (int i = 0; i < studentTable.getRowCount(); i++) {\n\t\t\t\tstudentTable.setValueAt(new Boolean(true), i, 0);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t//show message: choose course first\n\t\t\tsetWarningMsg(\"please select course first\");\n\t\t}\n\t}", "@Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);", "public void addPatient(Patient P)\r\n {\r\n\t int age =0;\r\n\t String secQ =\"What is your favorite food?\";\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION ) \"; //added notification\r\n\t newPat = newPat+\"VALUES ('\"+P.firstName+\"', '\"+P.lastName+\"', \"+age+\", '\"+P.userName+\"', '\"+P.password+\"', '\"+secQ+\"', '\"+P.securityQuestionAnswer+\"',\"\r\n\t\t\t \t\t +P.getEnterSymptomLevel()[0]+\",\"+P.getEnterSymptomLevel()[1]+\",\"+P.getEnterSymptomLevel()[2]+\",\"+P.getEnterSymptomLevel()[3]+\",\"+P.getEnterSymptomLevel()[4]+\",\"+P.getEnterSymptomLevel()[5]+\",\"+P.getEnterSymptomLevel()[6]+\r\n\t\t\t \t\t\t\",\" +P.getPreviousSymptomLevel1()[0]+\",\"+P.getPreviousSymptomLevel1()[1]+\",\"+P.getPreviousSymptomLevel1()[2]+\",\"+P.getPreviousSymptomLevel1()[3]+\",\"+P.getPreviousSymptomLevel1()[4]+\",\"+P.getPreviousSymptomLevel1()[5]+\",\"+P.getPreviousSymptomLevel1()[6]+\",\"\r\n\t\t\t \t\t\t+P.getPreviousSymptomLevel2()[0]+\",\"+P.getPreviousSymptomLevel2()[1]+\",\"+P.getPreviousSymptomLevel2()[2]+\",\"+P.getPreviousSymptomLevel2()[3]+\",\"+P.getPreviousSymptomLevel2()[4]+\",\"+P.getPreviousSymptomLevel2()[5]+\",\"+P.getPreviousSymptomLevel2()[6]+\",\"\r\n\t\t\t \t\t\t+P.getSymptomsThreshold()[0]+\",\"+P.getSymptomsThreshold()[1]+\",\"+P.getSymptomsThreshold()[2]+\",\"+P.getSymptomsThreshold()[3]+\",\"+P.getSymptomsThreshold()[4]+\",\"+P.getSymptomsThreshold()[5]+\",\"+P.getSymptomsThreshold()[6]+\",'\"+P.getPatientsDoctor()+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "public void careForPatient(Patient patient);", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "public New_appointment() {\n initComponents();\n }", "HospitalSystem(Patient patient, Action action){\r\n\t\tthis.patient=patient;\r\n\t\treferredTo=action;\r\n\t\t\r\n\t\t//call the selection action method which will process the patient\r\n\t\tselectAction();\r\n\t\t\r\n\t}", "public Patient(String userID, String fullName, String address, String telephone){\n super(userID, fullName, address, telephone);\n }", "@RequestMapping(\"/saveRecipePatient\")\r\n\tpublic ModelAndView saveRecipePatient(@RequestParam Integer recipe_idr, @ModelAttribute Patient patient) {\r\n\t\tRecipe parent_recipe = recipeService.saveRecipePatient(recipe_idr, patient);\r\n\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"recipe_idr\", recipe_idr);\r\n\t\tmav.addObject(\"recipe\", parent_recipe);\r\n\t\tmav.setViewName(\"recipe/viewRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "public void submit(ActionEvent actionEvent) {\n if(checkFields()) {\n try {\n newStudent = new Student(firstName.getText(), lastName.getText(),birthday.getValue(),selectImage.getImage());\n activities();\n System.out.println(\"new student: \" + newStudent);\n studentList.add(newStudent);\n viewStudent(actionEvent);\n } catch (IllegalArgumentException | IOException e){\n errorDisplay.setText(e.getMessage());\n }\n }\n }", "public Patient(nf.Patient p) {\n initComponents();\n this.pack();\n Patient.setDefaultLookAndFeelDecorated(true);\n this.setExtendedState(Patient.MAXIMIZED_BOTH);\n setDefaultCloseOperation(Patient.DO_NOTHING_ON_CLOSE);\n \n this.pat = p;\n initRenderer();\n buildTree();\n }", "public Form getAssignForm() throws ProcessManagerException {\r\n try {\r\n return new XmlForm(getAssignTemplate());\r\n } catch (FormException ex) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.ERR_GET_ASSIGN_FORM\", ex);\r\n }\r\n }", "public Patient(String id, String givenName, String familyName){\n this.id = id;\n this.givenName = givenName;\n this.familyName = familyName;\n }", "public void savePatientDetails(View view){\r\n\t\tsaveToSQLite();\r\n createCalendarEntry();\r\n\t\tToast.makeText(this, \"Saved. Reminder created.\", Toast.LENGTH_SHORT).show();\r\n\t}", "@Transactional\n\tpublic void addPatientByAdminOrEmployee(Patient patient) throws Exception {\n\t\tString password = passwordService.createPassword();\n\t\tString passwordEncode = passwordEncoder.encode(password);\n\t\tUser user = patient.getUser();\n\t\tuser.setEnabled(true);\n\t\tuser.setPassword(passwordEncode);\n\t\tOptional<Role> role = roleRepository.findById(2L);\n List<Role> roles = new ArrayList<>();\n roles.add(role.get());\n user.setRoles(roles);\n patient.setRegisterDateTime(LocalDateTime.now());\n final User userFromRequest = getUserFromRequest();\n patient.setUserRegister(userFromRequest);\n\t\tpatientRepository.save(patient);\n String emailSubject = messageSource.getMessage(\"patient.add.email.subject\", null, new Locale(patient.getUser().getLanguage()));\n String emailContent = messageSource.getMessage(\"patient.add.email.content.admin\",\n new String[]{patient.getUser().getFirstName(), patient.getUser().getLastName(), patient.getUser().getUsername(), \n \t\tpassword, emailService.getMailFrom()},\n new Locale(patient.getUser().getLanguage()));\n emailService.sendEmail(patient.getUser().getEmail(), emailSubject, emailContent);\n\t}", "public Patient(int patientID, String firstName, String lastName, String birthdate,\n\t\t\tString gender, String address1, String address2, String city, String state, String zipcode,\n\t\t\tString country, String insuranceProvider, String insuranceNumber) {\n\t\tthis.patientID = patientID;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.birthdate = birthdate;\n\t\tthis.gender = gender;\n\t\tthis.address1 = address1;\n\t\tthis.address2 = address2;\n\t\tthis.city = city;\n\t\tthis.state = state;\n\t\tthis.zipcode = zipcode;\n\t\tthis.country = country;\n\t\tthis.insuranceProvider = insuranceProvider;\n\t\tthis.insuranceNumber = insuranceNumber;\n\t}", "public Patient(int ID, String name, int age, \n\t\t\tString organ, BloodType bloodType, boolean isDonor) {\n\t\tthis.ID = ID;\n\t\tthis.name = name;\n\t\tthis.age = age;\n\t\tthis.organ = organ;\n\t\tthis.bloodType = bloodType;\n\t\tthis.isDonor = isDonor;\n\t}", "public void addPatientToTable(Patient patient, Hospital_Management_System hms) \n\t{\n\t\tmodel.addRow(new Object[]{patient.getID(), patient.getFirstName(), patient.getLastName(),\n\t\tpatient.getSex(), patient.getDOB(), patient.getPhoneNum(), patient.getEmail(), \"Edit\",\n\t\t\"Add\"});\n\t\t\n\t\ttable.addMouseListener(new MouseAdapter() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \n\t\t\t{\n\t\t\t\tid = (int)table.getValueAt(table.getSelectedRow(), 0);\n\t\t\t\ttable.getColumnModel().getColumn(7).setCellEditor(new BtnEditorAdminViewAppointment(new JTextField(), hms, id));\n\t\t\t\ttable.getColumnModel().getColumn(8).setCellEditor(new BtnEditorAddAppointment(new JTextField(), hms, id));\n\t\t\t}\n\t\t});\n\t\t//set custom renderer and editor to column\n\t\ttable.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n\t\ttable.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer());\n\t}", "public Patient(String name, Gender gender, Integer age, Integer priority) {\n\t\tsuper(name, gender, age);\n\t\tthis.priority = priority;\n\t}", "public CreatePatientFragment() {\n\n }", "public Campus create(long campusId);", "Assignment createAssignment();", "Assignment createAssignment();", "private void assignTests(Patient patient, String test) {\n patient.setTestToPass(test);\n }", "public void ajouterPatient() throws SQLException {\n //on récupère la date courante et les infos utilisateur\n Date dateActu = new Date(System.currentTimeMillis());\n int jourNaiss = Integer.parseInt(jTextFieldDateNaissJour.getText());\n int moisNaiss = Integer.parseInt(jTextFieldDateNaissMois.getText());\n int anneeNaiss = Integer.parseInt(jTextFieldDateNaissAnnee.getText());\n String medGen = \"Pas de médecin généraliste\";\n String adGen = \"\";\n //cas ou un des champs n'est pas rempli\n if ((jTextFieldNomNewPatient.getText().equals(\"\"))\n || (jTextFieldPrenomNewPatient.getText().equals(\"\"))\n || (jTextFieldAdresseNewPatient.getText().equals(\"\"))\n || (jTextFieldCodePostalNewPatient.getText().equals(\"\"))\n || (jTextFieldVilleNewPatient.getText().equals(\"\"))\n || (jTextFieldDateNaissJour.getText().equals(\"\"))\n || (jTextFieldDateNaissMois.getText().equals(\"\"))\n || (jTextFieldDateNaissAnnee.getText().equals(\"\"))) {\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Il manque des informations relatives au patient\", \"Attention\", JOptionPane.WARNING_MESSAGE);\n //on vérifie la forme du code postal si le pays est la france\n } else if ((pays == Pays.France)\n && ((jTextFieldCodePostalNewPatient.getText().length() != 5) || (jTextFieldCodePostalDr.getText().length() != 5))) {\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Mauvais code postal\", \"Attention\", JOptionPane.WARNING_MESSAGE);\n //on vérifie que la date de naissance rentrée est plausible\n } else if ((anneeNaiss > (dateActu.getYear() + 1900))\n || (anneeNaiss < 1875)\n || (moisNaiss > 12)\n || (jourNaiss > 31)\n || ((anneeNaiss == dateActu.getYear() + 1900) && (moisNaiss > (dateActu.getMonth() + 1)))\n || ((anneeNaiss == dateActu.getYear() + 1900) && (moisNaiss == dateActu.getMonth() + 1) && (jourNaiss > (dateActu.getDate())))) {\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Date de naissance : date incorrecte\", \"Attention\", JOptionPane.WARNING_MESSAGE);\n //on ajoute le patient\n } else {\n //récupération des informations normalisées et prévention de SQL Injection\n medGen = jTextFieldNomDr.getText().replaceAll(\"'\", \"''\");\n adGen = jTextFieldAdresseDr.getText().replaceAll(\"'\", \"''\") + \", \" + jTextFieldCodePostalDr.getText() + \" \" + jTextFieldVilleDr.getText().replaceAll(\"'\", \"''\");\n String nom = jTextFieldNomNewPatient.getText().substring(0, 1).toUpperCase().replaceAll(\"'\", \"''\");\n nom += jTextFieldNomNewPatient.getText().substring(1, jTextFieldNomNewPatient.getText().length()).toLowerCase().replaceAll(\"'\", \"''\");\n String prenom = jTextFieldPrenomNewPatient.getText().substring(0, 1).toUpperCase().replaceAll(\"'\", \"''\");\n prenom += jTextFieldPrenomNewPatient.getText().substring(1, jTextFieldPrenomNewPatient.getText().length()).toLowerCase().replaceAll(\"'\", \"''\");\n //on récupère la date sous plusieurs formats pour après\n String date = anneeNaiss + \"-\" + moisNaiss + \"-\" + jourNaiss;\n java.sql.Date d = new java.sql.Date(Integer.parseInt(jTextFieldDateNaissAnnee.getText()),\n Integer.parseInt(jTextFieldDateNaissMois.getText()), Integer.parseInt(jTextFieldDateNaissJour.getText())\n );\n java.sql.Date d2 = new java.sql.Date(Integer.parseInt(jTextFieldDateNaissAnnee.getText()) - 1900,\n Integer.parseInt(jTextFieldDateNaissMois.getText()) - 1, Integer.parseInt(jTextFieldDateNaissJour.getText())\n );\n Adresse adresse = new Adresse(jTextFieldAdresseNewPatient.getText().replaceAll(\"'\", \"''\"), jTextFieldCodePostalNewPatient.getText(), jTextFieldVilleNewPatient.getText().replaceAll(\"'\", \"''\"), pays);\n String adress = adresse.getAdresse();\n String sqldeces = \"select * from patient where etat = 2\";\n ResultSet resultdeces = CHUPP.getRequete(sqldeces);\n resultdeces.last();\n //on vérifie que le patient n'est pas décédé\n //on vérifie s'il y a des patients décédés \n if (resultdeces.getRow() == 0) {\n //pas de patients décédés ; on vérifie que le patient n'a pas déjà été admis\n String sqlPatient = \" select * from patient where etat = 1\";\n ResultSet result = CHUPP.getRequete(sqlPatient);\n result.last();\n //s'il n'y a aucun patient ayant déjà fait un séjour à l'hopital\n if (result.getRow() == 0) {\n //on ajoute le patient à la base de données et on le définit comme patientcourant\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, dateActu);\n //on vérifie que le patient n'est pas déjà admis\n if (!(serviceAdmission.getDlm().contains(nom + \" \" + prenom + \" / \" + date))) {\n try {\n sql = \"INSERT INTO Patient VALUES (\" + currentPatient.getIPP() + \", '\" + nom + \"','\" + prenom + \"','\" + date\n + \"','\" + sexe + \"','\" + adress + \"', '\" + medGen + \"', '\" + adGen + \"',0 )\";\n CHUPP.getInsert(sql);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Patient bien ajouté !\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n } catch (Exception e) {\n System.out.println(\"Failed to get Statement\");\n e.printStackTrace();\n }\n } else {\n JOptionPane j = new JOptionPane();\n j.showMessageDialog(null, \"Le patient est déjà admis en ce moment\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n }\n } else {\n //si des patients sont en statut \"DMA Fermés\" on vérifie que le nouveau patient n'en fait pas partie\n result.beforeFirst();\n while (result.next()) {\n //vérification qui se base sur meme nom, meme prenom et meme date de naissance\n if ((result.getString(\"nom\").equals(nom))\n && (result.getString(\"prenom\").equals(prenom))\n && (result.getDate(\"date_naissance\").equals(d2))) {\n //s'il a déjà été admis on met a jour ses données (nouvelle adresse ou nouveau médecin généraliste)\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, result.getInt(\"ipp\"));\n String update = \"update patient set adresse='\" + adress + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update2 = \"update patient set medecin_generaliste='\" + medGen + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update3 = \"update patient set adresse_med_gen='\" + adGen + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update4 = \"update patient set etat=0 where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n CHUPP.getInsert(update);\n CHUPP.getInsert(update2);\n CHUPP.getInsert(update3);\n CHUPP.getInsert(update4);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Le patient a déjà été admis auparavant : le DMA est rouvert et les modifications ont bien été prises en compte.\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n break;\n //si le patient n'a jamais été admis on l'ajoute normalement à la base de données\n } else {\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, dateActu);\n if (!(serviceAdmission.getDlm().contains(nom + \" \" + prenom + \" / \" + d2))) {\n try {\n sqlPatient = \"INSERT INTO Patient VALUES (\" + currentPatient.getIPP() + \", '\" + nom + \"','\" + prenom + \"','\" + date\n + \"','\" + sexe + \"','\" + adress + \"', '\" + medGen + \"', '\" + adGen + \"',0 )\";\n CHUPP.getInsert(sqlPatient);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Patient bien ajouté !\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n break;\n } catch (Exception e) {\n System.out.println(\"Failed to get Statement\");\n e.printStackTrace();\n }\n } else {\n JOptionPane j = new JOptionPane();\n j.showMessageDialog(null, \"Le patient est déjà admis en ce moment\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n }\n break;\n }\n }\n }\n //dans le cas ou il y des patients décédés on vérifie que le nouveau n'en fait pas partie, puis même traitement qu'au dessus\n } else {\n resultdeces.beforeFirst();\n while (resultdeces.next()) {\n if ((resultdeces.getString(\"nom\").equals(nom))\n && (resultdeces.getString(\"prenom\").equals(prenom))\n && (resultdeces.getDate(\"date_naissance\").equals(d2))) {\n JOptionPane j = new JOptionPane();\n j.showMessageDialog(null, \"Le patient que vous souhaitez ajouter est décédé.\", \"Attention\", JOptionPane.WARNING_MESSAGE);\n } else {\n String sqlPatient = \" select * from patient where etat = 1\";\n ResultSet result = CHUPP.getRequete(sqlPatient);\n result.last();\n if (result.getRow() == 0) {\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, dateActu);\n if (!(serviceAdmission.getDlm().contains(nom + \" \" + prenom + \" / \" + date))) {\n try {\n sql = \"INSERT INTO Patient VALUES (\" + currentPatient.getIPP() + \", '\" + nom + \"','\" + prenom + \"','\" + date\n + \"','\" + sexe + \"','\" + adress + \"', '\" + medGen + \"', '\" + adGen + \"',0 )\";\n CHUPP.getInsert(sql);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Patient bien ajouté !\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n break;\n } catch (Exception e) {\n System.out.println(\"Failed to get Statement\");\n e.printStackTrace();\n }\n } else {\n JOptionPane j = new JOptionPane();\n j.showMessageDialog(null, \"Le patient est déjà admis en ce moment\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n }\n } else {\n result.beforeFirst();\n while (result.next()) {\n if ((result.getString(\"nom\").equals(nom))\n && (result.getString(\"prenom\").equals(prenom))\n && (result.getDate(\"date_naissance\").equals(d2))) {\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, result.getInt(\"ipp\"));\n String update = \"update patient set adresse='\" + adress + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update2 = \"update patient set medecin_generaliste='\" + medGen + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update3 = \"update patient set adresse_med_gen='\" + adGen + \"' where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n String update4 = \"update patient set etat=0 where nom='\" + nom + \"' and prenom='\" + prenom + \"' and date_naissance='\" + d2 + \"'\";\n CHUPP.getInsert(update);\n CHUPP.getInsert(update2);\n CHUPP.getInsert(update3);\n CHUPP.getInsert(update4);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Le patient a déjà été admis auparavant : le DMA est rouvert et les modifications ont bien été prises en compte.\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n break;\n } else {\n currentPatient = new Patient(nom, prenom, d, sexe, adress, medGen, adGen, dateActu);\n if (!(serviceAdmission.getDlm().contains(nom + \" \" + prenom + \" / \" + d2))) {\n try {\n sqlPatient = \"INSERT INTO Patient VALUES (\" + currentPatient.getIPP() + \", '\" + nom + \"','\" + prenom + \"','\" + date\n + \"','\" + sexe + \"','\" + adress + \"', '\" + medGen + \"', '\" + adGen + \"',0 )\";\n CHUPP.getInsert(sqlPatient);\n JOptionPane jop1 = new JOptionPane();\n jop1.showMessageDialog(null, \"Patient bien ajouté !\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n afficherdchUI = true;\n break;\n } catch (Exception e) {\n System.out.println(\"Failed to get Statement\");\n e.printStackTrace();\n }\n } else {\n JOptionPane j = new JOptionPane();\n j.showMessageDialog(null, \"Le patient est déjà admis en ce moment\", \"Ajout Patient\", JOptionPane.INFORMATION_MESSAGE);\n }\n break;\n }\n }\n }\n }\n }\n }\n //on ajoute le patient à la liste des patients de l'interface d'admission\n if (!(serviceAdmission.getDlm().contains(currentPatient.getNom().replaceAll(\"''\", \"'\") + \" \" + currentPatient.getPrenom().replaceAll(\"''\", \"'\") + \" / \" + d2))) {\n serviceAdmission.getDlm().addElement(currentPatient.getNom().replaceAll(\"''\", \"'\") + \" \" + currentPatient.getPrenom().replaceAll(\"''\", \"'\") + \" / \" + d2);\n }\n serviceAdmission.getJList1().setModel(serviceAdmission.getDlm());\n serviceAdmission.getJList1().repaint();\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtPatientName = new javax.swing.JTextField();\n lblMaritalStatus = new javax.swing.JLabel();\n txtAge = new javax.swing.JTextField();\n lblPatientName = new javax.swing.JLabel();\n btnRegisterPatient = new javax.swing.JButton();\n lblAge = new javax.swing.JLabel();\n lblUserName = new javax.swing.JLabel();\n txtUserName = new javax.swing.JTextField();\n lblPassword = new javax.swing.JLabel();\n ddlGender = new javax.swing.JComboBox();\n txtContactNumber = new javax.swing.JTextField();\n lblTitle = new javax.swing.JLabel();\n ddlMaritalStatus = new javax.swing.JComboBox();\n lblGender = new javax.swing.JLabel();\n lblContactNumber = new javax.swing.JLabel();\n btnBack = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n lblMaritalStatus.setText(\"Marital Status:\");\n\n lblPatientName.setText(\"Patient name:\");\n\n btnRegisterPatient.setText(\"Register Patient\");\n btnRegisterPatient.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterPatientActionPerformed(evt);\n }\n });\n\n lblAge.setText(\"Age:\");\n\n lblUserName.setText(\"Username:\");\n\n lblPassword.setText(\"Password:\");\n\n lblTitle.setFont(new java.awt.Font(\"Lucida Grande\", 1, 14)); // NOI18N\n lblTitle.setForeground(new java.awt.Color(102, 102, 102));\n lblTitle.setText(\"Register Patient Panel\");\n\n lblGender.setText(\"Gender:\");\n\n lblContactNumber.setText(\"Contact Number:\");\n\n btnBack.setText(\"<<Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Email:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(394, 394, 394)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lblTitle)\n .addGap(353, 353, 353))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblGender, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblAge, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblPatientName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE))\n .addGap(135, 135, 135))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblUserName, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)\n .addComponent(lblPassword, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(122, 122, 122)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAge, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ddlGender, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPassword)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btnBack, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(160, 160, 160)\n .addComponent(btnRegisterPatient))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblContactNumber, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblMaritalStatus, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(122, 122, 122)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ddlMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(222, 222, 222))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(lblTitle)\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(lblPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtAge, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblAge, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblGender)\n .addComponent(ddlGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblUserName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPassword)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ddlMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegisterPatient)\n .addComponent(btnBack))\n .addGap(120, 120, 120))\n );\n }", "public boolean addPaient(Patient patient) throws TooManyExceptions;", "public abstract void createAssignment(int p);", "@Transactional\n\tpublic void saveNewPatient(FlowObjCreator foc){\n\t\tlog.debug(\"-----------\");\n\t\tlog.debug(\"-----------\"+foc.getIdf());\n\t\tlog.debug(\"-----------\"+foc.getBdate());\n\t\tTimestamp bd = new Timestamp(foc.getBdate().getTime());\n\t\tTree folderT = readDocT(foc.getIdf());\n\t\tPatient newPatientO = foc.getNewPatient();\n\t\tnewPatientO.setBirthdate(bd);\n\t\t\n\t\tsaveNewPatient(folderT, newPatientO);\n\t}", "public attendance() {\n initComponents();\n setDate();\n controller = new AttendanceController();\n getAllEmployees();\n generateAttendanceId();\n aIdtxt.setVisible(false);\n }", "public void addNewAssingment() throws IOException {\r\n\t\tconnectionmain.showTeacherGUIAssWindow();\r\n\t}", "@RequestMapping(\"Home1\")\r\n\tpublic String createUser1(Model m) \r\n\t{\n\t\tm.addAttribute(\"employee\",new Employee());\r\n\t\treturn \"register\";//register.jsp==form action=register\r\n\t}" ]
[ "0.60222995", "0.6006569", "0.5971706", "0.5967069", "0.59329826", "0.5857506", "0.5842039", "0.5822919", "0.5814141", "0.5803734", "0.5763332", "0.5751431", "0.5733738", "0.57237685", "0.5697751", "0.56947345", "0.5689059", "0.5676721", "0.5673428", "0.5666093", "0.564258", "0.5622822", "0.55583435", "0.5543706", "0.5509861", "0.55082095", "0.5505722", "0.54963523", "0.5495998", "0.5478477", "0.5472515", "0.5467859", "0.54560155", "0.54466754", "0.5429278", "0.54179215", "0.5409443", "0.53906846", "0.53906846", "0.5380986", "0.53785557", "0.536422", "0.5343121", "0.5318147", "0.5304066", "0.5301531", "0.529601", "0.52819264", "0.5280603", "0.5259874", "0.5258231", "0.52560824", "0.52310675", "0.5224739", "0.5224457", "0.522291", "0.52138865", "0.5212433", "0.5201698", "0.5200499", "0.519514", "0.5187962", "0.518492", "0.51753366", "0.51739407", "0.5158286", "0.51528245", "0.5146822", "0.51267487", "0.5118327", "0.5114782", "0.51075256", "0.5098801", "0.50928515", "0.50726074", "0.5070585", "0.50647205", "0.50599134", "0.50543636", "0.5054263", "0.50532544", "0.5052504", "0.5045406", "0.50447303", "0.5044565", "0.50405025", "0.50364226", "0.5034235", "0.50208664", "0.5020124", "0.5020124", "0.5013827", "0.50123477", "0.5012285", "0.498277", "0.49814764", "0.49814177", "0.49616683", "0.49579224", "0.49448934" ]
0.59289354
5
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); tPatient = new javax.swing.JTextField(); tRoom = new javax.swing.JTextField(); tNurse = new javax.swing.JTextField(); tDoctor = new javax.swing.JTextField(); bSubmit = new javax.swing.JButton(); bReset = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); tNotes = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jLabel1.setText("Patient"); jLabel2.setText("Room"); jLabel3.setText("Nurse"); jLabel4.setText("Doctor"); tNurse.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tNurseActionPerformed(evt); } }); bSubmit.setText("Submit"); bSubmit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bSubmitActionPerformed(evt); } }); bReset.setText("Reset"); bReset.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bResetActionPerformed(evt); } }); jLabel5.setText("Notes"); tNotes.setColumns(20); tNotes.setRows(5); jScrollPane1.setViewportView(tNotes); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(126, 126, 126) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(jLabel2) .addComponent(jLabel3)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(tPatient) .addComponent(tRoom) .addComponent(tNurse, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(jLabel5)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(tDoctor, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addComponent(bSubmit) .addGap(117, 117, 117) .addComponent(bReset))) .addContainerGap(145, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(53, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(tPatient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(tRoom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(tNurse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(tDoctor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(bSubmit) .addComponent(bReset)) .addGap(35, 35, 35)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.69450074", "0.6944328", "0.6937169", "0.6931577", "0.6927632", "0.692602", "0.6925518", "0.6911884", "0.69111824", "0.6894571", "0.68920577", "0.68919677", "0.6891793", "0.6889509", "0.6884149", "0.6883326", "0.68815684", "0.68778104", "0.6876167", "0.6873792", "0.687072", "0.6859156", "0.6856744", "0.6855844", "0.6854915", "0.68542576", "0.68534344", "0.6852383", "0.6852383", "0.6845196", "0.68370795", "0.6836554", "0.6830521", "0.68290323", "0.6827711", "0.68255705", "0.6822908", "0.68180746", "0.68179923", "0.6811043", "0.6809639", "0.68095654", "0.6808346", "0.68082345", "0.68017685", "0.67943394", "0.67933774", "0.6793048", "0.6791145", "0.67897683", "0.6788624", "0.6788244", "0.6781776", "0.67674303", "0.6767318", "0.6764773", "0.6758625", "0.6757251", "0.6753117", "0.6751926", "0.67432684", "0.6740031", "0.67374456", "0.6737373", "0.6734546", "0.6727067", "0.67267615", "0.67210555", "0.6716679", "0.6715794", "0.6715694", "0.6709429", "0.67086613", "0.67038596", "0.6702431", "0.67014176", "0.67002505", "0.66993576", "0.6694831", "0.66915953", "0.6690518" ]
0.0
-1
Defining default noargs constructor
Classroom() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "void DefaultConstructor(){}", "DefaultConstructor(int a){}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }", "private Default()\n {}", "Reproducible newInstance();", "T newInstance(Object... args);", "private static Constructor getZeroArgumentConstructor(Class cls) {\n \t\treturn ClassUtils.getConstructor(cls, new Class[] { }, zeroArgumentConstructors);\n \t}", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "private Instantiation(){}", "MyEncodeableWithoutPublicNoArgConstructor() {}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "private void __sep__Constructors__() {}", "Constructor<T> newConstructor();", "O() { super(null); }", "public no() {}", "public Constructor(){\n\t\t\n\t}", "public Identity()\n {\n super( Fields.ARGS );\n }", "public native void constructor();", "public Basic() {}", "private Constructor<DefaultSimpleInterface> getConstructor() {\n try {\n return DefaultSimpleInterface.class.getConstructor();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Test\n @Order(2)\n void testNoArgsClass() {\n final RuntimeConstructable r =\n noArgsRegistry.getConstructor(ConstructableExample.CLASS_ID).get();\n assertTrue(r instanceof ConstructableExample);\n\n // checks the objects class ID\n assertEquals(ConstructableExample.CLASS_ID, r.getClassId());\n }", "public Class<?> defineClassWithDefaultConstructor(String name) {\n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);\n cw.visit(Opcodes.V1_4, Opcodes.ACC_PUBLIC, name, null, \"java/lang/Object\", null);\n\n MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n mv.visitMaxs(0, 0);\n // Invoke super constructor.\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, \"java/lang/Object\", \"<init>\", \"()V\", false);\n mv.visitInsn(Opcodes.RETURN);\n mv.visitEnd();\n\n cw.visitEnd();\n byte[] bytes = cw.toByteArray();\n return defineClass(name.replace('/', '.'), bytes, 0, bytes.length);\n }", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "protected Constructor buildDefaultConstructor() throws DescriptorException {\n return this.buildDefaultConstructorFor(this.getDescriptor().getJavaClass());\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "protected abstract void construct();", "public Dog() {\n // Default constructor\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "DefaultAttribute()\n {\n }", "public AllDifferent()\n {\n this(0);\n }", "public static void copyConstructor(){\n\t}", "public Method() {\n }", "private Ognl() {\n }", "private SingleObject()\r\n {\r\n }", "public lo() {}", "public T newInstance();", "public ArgumentsParser() {\n this(new String[0]);\n }", "private Ognl(){\n }", "public StandardPipeline() {\n this(null);\n }", "private SingleObject(){}", "public ObjectFactory() {\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public FirstStepBuiltIn()\n {\n super(null);\n }", "private CommandLine() {\n\t}", "public Object[] getConstructorArgs ();", "public Nodo() {\n\t\tthis(null, null);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tdefaultconstructor d = new defaultconstructor();\r\n\tSystem.out.println(d.Age);\t\r\n\tSystem.out.println(d.Name);\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n My obj2=new My(9);//--->called overloaded Constructor\n }", "private Message(){\n // default constructor\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public ObjectFactory() {\r\n\t}", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "private Log()\n {\n //Hides implicit constructor.\n }", "protected abstract S createDefault();", "@Test\r\n\tpublic void test002_EmptyArgumentConstructor() {\r\n\t\tCustomer c = new Customer( \"\", \"\", \"\" );\r\n\t\tassertEquals( c.getId(), \"\" );\r\n\t\tassertEquals( c.getFirstName(), \"\" );\r\n\t\tassertEquals( c.getLastName(), \"\" );\r\n\t\tassertEquals( c.getContact(), \"\" );\r\n\t}", "default void init() {\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "HxMethod createConstructor(final String... parameterTypes);", "public Member() {}", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public Naive() {\n\n }", "public TestUser() {//NOPMD\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Demo3() {}", "public Person() {}", "public ParseException() {\n super();\n specialConstructor = false;\n }", "public JsonFactory() { this(null); }", "@NotNull\n protected Supplier<AbstractReadablePacket> createConstructor() {\n final Constructor<AbstractReadablePacket> constructor = requireNonNull(ClassUtils.getConstructor(getClass()));\n return () -> ClassUtils.newInstance(constructor);\n }", "public User(){\n this(null, null);\n }", "public NameParser()\n {\n this(null);\n }", "public Orbiter() {\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "protected Object buildNewInstanceUsingDefaultConstructor() throws DescriptorException {\n try {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedInvokeConstructor(this.getDefaultConstructor(), (Object[])null));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof InvocationTargetException){\n throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException);\n } else if (throwableException instanceof IllegalAccessException){\n throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n } else {\n throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n }\n }\n } else {\n return PrivilegedAccessHelper.invokeConstructor(this.getDefaultConstructor(), (Object[])null);\n }\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (InstantiationException exception) {\n throw DescriptorException.instantiationWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (NoSuchMethodError exception) {\n // This exception is not documented but gets thrown.\n throw DescriptorException.noSuchMethodWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileConstructorInstantiation(this.getDescriptor(), exception);\n }\n }", "public Ruby() {}", "private ObjectFactory() { }", "@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}", "public D() {}", "public Unary() {\n }", "public Clade() {}", "@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}", "private SingleObject(){\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public static void main(String[] args) {\n\r\n\t\tDefaultEx d = new DefaultEx();\r\n\t\tnew DefaultEx();\r\n\t\tSystem.out.println(\"Constructor Done\");\r\n\t}", "private Supervisor() {\r\n\t}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }" ]
[ "0.8328981", "0.8232856", "0.7375068", "0.73114306", "0.72781444", "0.6953542", "0.68505615", "0.68006253", "0.6787795", "0.67650276", "0.6748915", "0.6720822", "0.6611872", "0.6602239", "0.6601239", "0.6553197", "0.6357967", "0.6323432", "0.6320552", "0.6313202", "0.62995374", "0.62833065", "0.6255003", "0.61866957", "0.61794215", "0.61763763", "0.6164944", "0.6163726", "0.615398", "0.6152465", "0.6139775", "0.6138874", "0.61313957", "0.6115618", "0.6103555", "0.60877854", "0.6074943", "0.6070123", "0.60479516", "0.60427356", "0.6038753", "0.6036993", "0.60196453", "0.60136753", "0.60129774", "0.6010061", "0.60045516", "0.59968394", "0.5990878", "0.59882545", "0.5960114", "0.5958974", "0.5958664", "0.59546405", "0.595042", "0.5949771", "0.5949476", "0.59479225", "0.59416455", "0.59343666", "0.59309584", "0.592919", "0.59274065", "0.59106874", "0.5905292", "0.5905292", "0.5905292", "0.5897815", "0.58837706", "0.58793163", "0.5879125", "0.5874065", "0.58721656", "0.5870007", "0.5866059", "0.586561", "0.58568823", "0.58539647", "0.585336", "0.5851236", "0.58484846", "0.5848003", "0.58465374", "0.58416766", "0.5839945", "0.5837816", "0.58307606", "0.58296645", "0.582556", "0.58230895", "0.5820289", "0.58158123", "0.58010286", "0.5792837", "0.5787549", "0.57705915", "0.5766363", "0.57646453", "0.57646453", "0.57646453", "0.57646453" ]
0.0
-1
Variable to check for available space in students array
public boolean add(Student aStudent) { boolean check = false; // If array is full, stop inserting more Student objects in array if (pointer >= size) { System.out.println("\nSorry: classroom is full."); return check; } // If student's has gpa is not between 0 and 4, or name is not given, do not insert Student object in array else if (aStudent.getName().trim().isEmpty() || aStudent.getGPA() < 0 || aStudent.getGPA() > 4) { System.out.println("\nSorry: Name has no characters or gpa is not between 0 & 4."); pointer++; return check; } // If student gpa is between 0 and 4, and there is place in array, insert new Student object else { students[pointer] = aStudent; pointer++; check = true; return check; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasEnoughStudents() {\n if (this.students.size() >= minStudents) {\n return true;\n } else return false;\n }", "public static void accessingBeyondCapacity() {\n\t\tint[] studentAges = { 10, 12, 15 };\n\t\t\n\t\tSystem.out.println(\"element at index 3 : \" + studentAges[3]);\n\t}", "private static void checkFreeSpace()\n {\n boolean isSpaceAvailable = false;\n int numOfFreeSpaces = 0;\n for(int index=1;index<board.length;index++)\n {\n if((board[index] == ' '))\n {\n isSpaceAvailable = true;\n numOfFreeSpaces++;\n }\n }\n if(isSpaceAvailable == false)\n {\n System.err.println(\"Board is full! You can't make another move\");\n System.exit(0);\n }\n else\n {\n System.out.println(\"Free space is available! you have \"+numOfFreeSpaces+ \" moves left\");\n }\n }", "boolean hasCapacity();", "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }", "private boolean isSpaceOnBoardAvailable(Integer newPassengers){\n\t\t\n\t\treturn newPassengers + this.numberOnBoard <= this.numberOfSeats;\n\t}", "private String getSeatsAvailable(){\n int Available= CourseCapacity - RegisteredStudents.size();\n return Available+\"/\"+ CourseCapacity;\n }", "int sizeOfScansArray();", "public static void main(String[] args) {\n System.out.println(DiskSpace.isWritable(10, 2, new HashSet<>(Arrays.asList(2, 3, 5, 8, 9))));\n }", "public boolean availableSquare(Location location)\n {\n boolean available = false;\n if(countTrees() + countGrasses() <= 10) {\n available = true;\n }\n return available;\n }", "private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}", "@Override\n\tpublic int getSpaceAvaiable(String email) {\n\t\tint i = searchIndex(email);\n\t\tint space = 0;\n\t\tif (i >= 0)\n\t\t\tspace = users[i].getAvailableSpace();\n\t\treturn space;\n\t}", "public static void staticAllocation() {\n\t\tint[] studentAges = { 10, 12, 15 };\n\t\t\n\t\tshowArray(\"studentAges\", studentAges);\n\t}", "int calculateCapacity(int[] vesselArray);", "public boolean freeSpace(int neededSpace) {\n \t\treturn true;\n \t}", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public int sizeOfGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(GUARDIAN$22);\n }\n }", "private static boolean reserveSpace(AtomicInteger availableSharedCapacity, int space)\r\n/* 254: */ {\r\n/* 255:282 */ assert (space >= 0);\r\n/* 256: */ for (;;)\r\n/* 257: */ {\r\n/* 258:284 */ int available = availableSharedCapacity.get();\r\n/* 259:285 */ if (available < space) {\r\n/* 260:286 */ return false;\r\n/* 261: */ }\r\n/* 262:288 */ if (availableSharedCapacity.compareAndSet(available, available - space)) {\r\n/* 263:289 */ return true;\r\n/* 264: */ }\r\n/* 265: */ }\r\n/* 266: */ }", "private static boolean hasCapacityForMultiEvaluation() {\n // return true;\n int threshold = 3;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return available >= threshold;\n }", "public int getCapacity( )\n {\n // Implemented by student.\n }", "public static void dynamicAllocation() {\n\t\tint[] studentAges;\n\t\t\n\t\t// Allocate memory\n\t\tstudentAges = new int[5];\n\t\t\n\t\t// Initialize\n\t\tstudentAges[0] = 13;\n\t\tstudentAges[1] = 10;\n\t\tstudentAges[2] = 15;\n\t\tstudentAges[3] = 11;\n\t\t\n\t\t\n\t\tshowArray(\"studentAges\", studentAges);\n\t}", "public boolean isFull() {\n return size == k;\n}", "studentCounter( int numStudentAlreadyInTheRoom ){ \n\t\tnumStudentInRoom = numStudentAlreadyInTheRoom ;\n\t}", "int sizeOfDecisionSightDistanceArray();", "@Override\n\tpublic boolean hasSpace(String email, int size) {\n\t\tint i = searchIndex(email);\n\t\tif (i >= 0 && users[i].spaceAvailable(size) == true)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public boolean isFull() {\n\t\t\n\t\tif (currentOccup < maxOccup)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "int sizeOfGuideArray();", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "public boolean isFull(){\n \treturn count==capacity;\n }", "private boolean isOccupied(int col, int row) {\n if (_board[col][row] != EMP) {\n return true;\n }\n return false;\n }", "private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "protected boolean isOccupied(int row, int column){\n return (!ships[row][column].getShipType().equals(\"empty\"));\n }", "private boolean isFull(){\n return cellSize == Max;\n }", "default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "private int size(int rotation) {\n return students.get(rotation).size();\n }", "private void checkCapacity() {\n\t\tif (size.get() >= region.getCapacity()) {\n\t\t\tsynchronized (cleanUpThread) {\n\t\t\t\tcleanUpThread.notify();\n\t\t\t}\n\t\t}\n\t}", "protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }", "public void addStudent(Student student){\n if (students.size() >=0 && students.size() <=5)\n students.add(student);\n else throw new ArrayIndexOutOfBoundsException();\n }", "private boolean isChoseFine(){\n if(freeSpaces.size()!=2 & freeSpaces.size()!=3){ //if the number of chosen spaces is not 3 or 2, that means it can't be good.\n return false;\n }\n else if(freeSpaces.size()==2){ //if there are 2.\n if(freeSpaces.elementAt(0).place.distance(freeSpaces.elementAt(1).place)==1)\n return true;\n else //if the distance between the spaces isn't 1, that means it can't be two suite spaces.\n return false;\n }\n else{ //if there are 3.\n //get the all 3 elements.\n int aX = freeSpaces.elementAt(0).place.x;\n int aY = freeSpaces.elementAt(0).place.y;\n int bX = freeSpaces.elementAt(1).place.x;\n int bY = freeSpaces.elementAt(1).place.y;\n int cX = freeSpaces.elementAt(2).place.x;\n int cY = freeSpaces.elementAt(2).place.y;\n if(aX==bX && bX==cX){ //if they are in the same column.\n int min = Math.min(aY, Math.min(bY, cY));\n int max = Math.max(aY, Math.max(bY, cY));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else if(aY==bY && bY==cY){ //if they are in the same row.\n int min = Math.min(aX, Math.min(bX, cX));\n int max = Math.max(aX, Math.max(bX, cX));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else //if they are in different rows and columns, so it isn't good.\n return false;\n }\n }", "public boolean needsAllocArrays() {\n return this.table == null;\n }", "int checkState()\n\t{\n\t\tSystem.out.println(\"Student checkState: \");\n\t\tint[] groupsNum = new int[5];\n\t\tgroupsNum[0] = numGroupOneCourse;\n\t\tgroupsNum[1] = numGroupTwoCourse;\n\t\tgroupsNum[2] = numGroupThreeCourse;\n\t\tgroupsNum[3] = numGroupFourCourse;\n\t\tgroupsNum[4] = numGroupFiveCourse;\n\n\t\tfor(int i = 0; i <groupsNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(groupsNum[i]);\n\t\t}\n\n\n\t\tint maxAt = 0;\n\n\t\tfor (int i = 0; i < groupsNum.length; i++) \n\t\t{\n \t\tmaxAt = groupsNum[i] > groupsNum[maxAt] ? i : maxAt;\n\t\t}\n\n\t\tSystem.out.print(\" The state is \" + (maxAt+1));\n\n\t\treturn maxAt;\n\n\t}", "public boolean isValid(int[] grades) throws ArithmeticException {\n if ((grades == null) || (grades.length == 0)) {\n throw new ArithmeticException(\"There is no grade available.\");\n }\n \n final int NUMBER_OF_STUDENTS = grades.length;\n \n for (int studentId = 0; studentId < NUMBER_OF_STUDENTS; studentId++) {\n \n if ((grades[studentId] < 0) || (grades[studentId] > 100)) {\n return false;\n }\n }\n \n return true;\n }", "public boolean underfull() {\n\t\treturn lastindex < minkeys(); // ptrs number: Math.ceil(degree / 2.0) ~ n\n\t}", "long getOccupiedSize();", "@Override\r\n public boolean checkSpaces(ParkingSpace[] parkingSpaces, CarParkPanel panel)\r\n { \r\n \r\n //sets i = 10 to enable first set of bays to be searched\r\n int i = 10;\r\n boolean found = false;\r\n \r\n //try and find a free space from bays 11-15\r\n if(this.searchElevenToFifteen(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n\r\n \r\n //if not found then searches bays 1-5\r\n if(found ==false)\r\n {\r\n //sets i = 1 to enable the next set of bays to be searched\r\n i = 0;\r\n if(this.searchOneToFive(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n }\r\n \r\n //if still not found, then search bays 6-10\r\n if(found==false)\r\n { \r\n //sets i = 6 to enable next set of bays to be searched\r\n i=5;\r\n if(this.searchSixToTen(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n }\r\n \r\n if(found == false) //displays the result if the search failed.\r\n {\r\n this.displayResult(found, i , panel);\r\n }\r\n \r\n return found;\r\n \r\n }", "public int passengers(){\n return currentCapacity(); \n }", "public void setCurrentStudents(int currentStudents)\n throws ArrayIndexOutOfBoundsException\n {\n if (students.size() >=0)\n if (students.size() <=5)\n this.currentStudents = students.size();\n else throw new ArrayIndexOutOfBoundsException();\n }", "public void setOccupied(){\n this.isEmpty = false;\n }", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "private void checkFreeDiskSpace(List<File> inputFiles) {\n //Check for free space\n long usableSpace = 0;\n long totalSize = 0;\n for (File f : inputFiles) {\n if (f.exists()) {\n totalSize += f.length();\n usableSpace = f.getUsableSpace();\n }\n }\n log.info(\"Total expected store size is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(totalSize / (1024 * 1024)));\n log.info(\"Usable free space on the system is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(usableSpace / (1024 * 1024)));\n if (totalSize / (double) usableSpace >= 0.66) {\n throw new OutOfDiskSpace(\"Aborting because there isn't enough free disk space\");\n }\n }", "public boolean needUnits(){\n\t\tif(units.size() >= maxUnits){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasTotalSize();", "public boolean hasSpaces() {\n\t\treturn !divided && points.keySet().size() != QUADTREE_NODE_CAPACITY;\n\t}", "public boolean is_empilable()\n\t{\n\t\tif (this.nb_disk >= this.nb_disk_max)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public static int checkMis(int mis,long datasize,FileSystem fs) throws IOException\r\n\t{\r\n\t /*int checkmis = -1;\r\n\t long mb = 1024*1024;\r\n\t long lmis = mis*mb;\r\n\t OperatingSystemMXBean operatingSystemMXBean = ManagementFactory.getOperatingSystemMXBean();\r\n //free memory size\r\n long freememory= ((com.sun.management.OperatingSystemMXBean)operatingSystemMXBean).getFreePhysicalMemorySize();\r\n\t \r\n\t DistributedFileSystem dfs = (DistributedFileSystem) fs;\r\n\t DatanodeInfo[] live = dfs.getClient().datanodeReport(DatanodeReportType.LIVE);\r\n\t \r\n\t String mapredheap_str = fs.getConf().get(\"mapred.child.java.opts\");\r\n String lastchar = String.valueOf(mapredheap_str.charAt(mapredheap_str.length()-1));\r\n long mapredheap = Long.valueOf(mapredheap_str.replaceAll(\"[^0-9]*\",\"\"));\r\n if(lastchar.matches(\"[mM]+\"))\r\n mapredheap = mapredheap*1024*1024;\r\n else\r\n mapredheap = mapredheap*1024*1024*1024;\r\n\t \t \r\n\t //(physical machine free memory) > (mpared child heap size)*(datasize/mis+1)/(# of data nodes)\r\n\t // Free Memory > Required Memory for per node (Assume free memory of master node and slave node are equal, because it only detect memory usage of master node.)\r\n\t //System.out.println(\"FreeMemory: \"+freememory+\", RequiredMemory: \"+mapredheap*(datasize/lmis+1)/live.length+\" for per node of cluster\");\r\n\t if(freememory > mapredheap*(datasize/lmis+1)/live.length)\r\n\t checkmis = mis;\r\n\t else //mis is too small, enlarge and re-check\r\n\t checkmis = checkMis(mis*2,datasize,fs);\r\n\t if(checkmis!=mis)\r\n\t\tSystem.out.println(\"Argument \\\"mis\\\" is too small: \"+mis+\", automatically increace to: \"+checkmis);\r\n\t return checkmis;*/\r\n\t //recent day, in the SSBDS this part has some weird error...\r\n\t return mis;\r\n\t}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "static boolean Safe(int Processes, int Resourses, int Allocation[][], int Need[][], int Available[]) {\n\t\tint n = Processes;\n\t\tint m = Resourses;\n\t\tint cnt = 0 ; \n\t\tint cnt2 = 0 ; \n\t\tint[][] AllocationTemp = new int[n][m];\n\t\tint[][] NeedTemp = new int[n][m];\n\t\tboolean[] Finish ; \n\t\tint[] Work = new int [m]; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tAllocationTemp[i][j] = Allocation[i][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tNeedTemp[i][j] = Need[i][j];\n\t\t\t}\n\t\t}\n\t\t// Initialize Work .\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tWork[i] = Available[i];\n\t\t}\n\t\tSystem.out.println(\"Available: \") ;\n\t\tfor (int i =0 ; i < m; i++ )\n\t\t{\n\t\t\tSystem.out.print(Work[i]+\" \");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\tSystem.out.println(\"Allocation:\");\n\t\tfor (int i = 0 ; i < n ; i++ )\n\t\t{\n\t\t\tfor (int j = 0 ; j < m ; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(Allocation[i][j] + \" \") ; \n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\tSystem.out.println(\"Need :\");\n\t\tfor (int i = 0 ; i < n ; i++ )\n\t\t{\n\t\t\tfor (int j = 0 ; j < m ; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(Need[i][j] + \" \") ; \n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\t// Initialize Finish For the first Time == False\n\t\tFinish = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tFinish[i] = false;\n\t\t}\n\t\twhile(cnt<n&&cnt2<n) {\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tboolean Check = true; \n\t\t\t\t// Step Two .\n\t\t\t\tif (Finish[i] == false) // not allocated\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tif (NeedTemp[i][j] > Work[j]) {\n\t\t\t\t\t\t\tCheck = false; // must be wait .\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (NeedTemp[i][j] == Work[j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCheck = true ; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tif (Check) // if available resources are greater than el needed .\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\t\t// Step 3\n\t\t\t\t\t\t\tWork[j] = Work[j]+ AllocationTemp[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"P\" + i + \" this process must be in safe sequence in safe algorithm . \");\n\t\t\t\t\t\tS_Sequence[cnt++] = i;\n\t\t\t\t\t\tFinish[i] = true;\n\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t System.out.println(\"P\" + i + \" this process must be wait in safe algorithm . \");\n\t\t\t\t\t\tUn_Sequence[cnt] = i;\n\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcnt2++;\n\t\t\t}\n\n\t\tif (cnt > n) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public boolean minSize(){\n\t\tboolean result; \n\t\tif(keys.size() < (MAXKEYS/2) -1){\n\t\t\tresult = true;\n\t\t}\n\t\telse{ \n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "boolean isSafe(int grid[][], int row, int col, int num)\n{\n /* Check if 'num' is not already placed in current row,\n current column and current 3x3 box */\n return !UsedInRow(grid, row, num) &&\n !UsedInCol(grid, col, num) &&\n !UsedInBox(grid, row - row%3 , col - col%3, num);\n}", "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "boolean hasMaxSize();", "private static boolean FullRAM(String jobId){\n if(pcb.getProcessSize(jobId) <= RAMSpace()){\n return false;\n }\n else{\n return true;\n }\n }", "@Test\n public void validMountainArray() {\n ValidMountainArray_941 validMountainArray = new ValidMountainArray_941();\n boolean test1 = validMountainArray.validMountainArray(new int[] {2, 1});\n Assert.assertEquals(test1,false);\n\n boolean test2 = validMountainArray.validMountainArray(new int[] {3, 5, 5});\n Assert.assertEquals(test2,false);\n\n boolean test3 = validMountainArray.validMountainArray(new int[] {0, 3, 2, 1});\n Assert.assertEquals(test3,true);\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input\n System.out.println(\"Enter in 15 student grades.\");//prompt user to enter 15 grades\n int[] Grades = new int[15];//create single dimensional array\n int grade1 = 0;//start at zero\n int grade2 = 0;//start at zero\n for(int i = 0; i<15; i++){//begin outer for loop\n Boolean isGood = false;//declare boolean\n do{\n Grades[i] = input.nextInt();//the grade is equal to the integer entered by the user\n while(Grades[i]>100){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was over 100!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n while(Grades[i]<0){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was under 0!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }if(i != 0){\n while(Grades[i]<= Grades[i-1]){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was not greater than the last!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n }else{\n isGood = true;\n }\n \n }while(Grades[i]>100 || Grades[i]<0 && isGood);//begin while loop for set conditions\n }\n for(int x = 0; x<15; x++){\n System.out.print(Grades[x] + \" \");\n }\n System.out.println(\"Enter a grade to search for\");\n grade1 = input.nextInt();//Enter the grade you are searching for\n BinarySearch(Grades, grade1);\n \n System.out.println(\"Scrambled\");//notify when the array has been scrambled\n if(ScrambleArray(Grades)){\n System.out.println(\"Scrambled\");\n }\n System.out.println(\"Enter a grade to search for\");\n grade2 = input.nextInt();//Enter the grade you are searching for\n int indexForLinear = LinearSearch(Grades, grade2);\n if(indexForLinear == -1){\n System.out.println(grade2 + \" was not found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n if(indexForLinear != -1){\n System.out.println(grade2 + \" was found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n }", "@Test(timeout=1000)\n\tpublic void testAddUntilExactlyFull() {\n\t\thashmap.add(s1);\n\t\thashmap.add(s2);\n\t\thashmap.add(s3);\n\t\thashmap.add(s4);\n\t\thashmap.add(s5);\n\t\thashmap.add(s6);\n\t\thashmap.add(s7);\n\t\t\n\t\tfor(int i = 0; i < hashmap.getArray().length; i++){\n\t\t\tif(hashmap.getArray()[i] == null){\n\t\t\t\tfail(\"Es wurden nicht alle Studenten eingefügt\");\n\t\t\t}\n\t\t}\n\t\tassertEquals(\"Student 1 was not added correctly\", s1, hashmap.getArray()[3]);\n\t\tassertEquals(\"Student 2 was not added correctly\", s2, hashmap.getArray()[5]);\n\t\tassertEquals(\"Student 3 was not added correctly\", s3, hashmap.getArray()[4]);\n\t\tassertEquals(\"Student 4 was not added correctly\", s4, hashmap.getArray()[6]);\n\t\tassertEquals(\"Student 5 was not added correctly\", s5, hashmap.getArray()[0]);\n\t\tassertEquals(\"Student 6 was not added correctly\", s6, hashmap.getArray()[1]);\n\t\tassertEquals(\"Student 7 was not added correctly\", s7, hashmap.getArray()[2]);\n\t\t\n\t}", "static boolean checkAvailableSpace(File path, int requiredMb){\n long spaceInMb = path.getUsableSpace() / (1024 * 1024);\n return spaceInMb >= requiredMb;\n }", "public boolean isFull() {\n return numOfGoods == cargoSpace;\n }", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "public static void checkForPeopleInShelters() {\n\t\tfor(int i=0; i<vertexMatrix.length; i++){\n\t\t\tif (shelters[i])\n\t\t\t\tpeopleToSave[i]=0;\t\t\n\t\t}\n\t}", "int sizeOfControlPersonsArray();", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "public boolean getCapacity() {\n\t\treturn true;\n\t\t// get information about the room and determine if we are above capacity. \n\t}", "public void isSafe() {\n\t\tsafetyLog = new boolean[proc];\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tsafetyLog[i] = true;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tfor (int j = 0; j < res; j++) {\r\n\t\t\t\tif (need[i][j] > available[0][j]) {\r\n\t\t\t\t\tsafetyLog[i] = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*System.out\r\n\t\t\t\t.println(\"Following processes are safe and unsafe to start with\");\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tif (safetyLog[i]) {\r\n\t\t\t\tSystem.out.println(\"P\" + i + \": Safe\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"P\" + i + \": Un-Safe\");\r\n\t\t\t}\r\n\t\t}*/\r\n\r\n\t}", "private boolean isSlotsValid (int slots) {\n\t\treturn slots>=0 && slots<5;\n\t}", "public boolean is_full()\n\t {\n\t if (num_elements == capacity)\n\t return true;\n\t return false;\n\t }", "public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }", "private void NumberOfStudentsInCourse(int numberOfStudents) {\n if (numberOfStudents > 20) {\n throw new StudentNumberForOneCourseExceededException(\"This course is limited to 20 people!\");\n }\n }", "protected boolean checkLoad() {\n\t\treturn size <= maxThreshold;\n\t\t//return (size >= minThreshold || size <= minCapacity) && size <= maxThreshold;\n\t}", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "int sizeOfPerformerArray();", "int sizeOfRoadsideArray();", "public int findTotalStudents() {\n\t\treturn students.size();\r\n\t}", "private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }", "public boolean isAllocated()\n\t{\n\t\tif(getQtyAllocated().signum()!=0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public void ensureCapacity(int minCapacity);", "public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }", "void lowerNumberOfStonesLeftToPlace();", "private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }", "public int space(){\n return (tableSize - usedIndex);\n }" ]
[ "0.64731616", "0.62763387", "0.6028496", "0.5957891", "0.5814662", "0.58028877", "0.567263", "0.56482565", "0.5637047", "0.56191117", "0.5574924", "0.5516631", "0.55093104", "0.54821455", "0.54698294", "0.54637027", "0.543439", "0.543439", "0.543439", "0.543439", "0.543439", "0.5428155", "0.5400061", "0.53865886", "0.53859717", "0.5382977", "0.5381505", "0.5373224", "0.5367712", "0.53605705", "0.5358189", "0.53564113", "0.53560203", "0.53557795", "0.53095496", "0.5304662", "0.5292455", "0.52843285", "0.5282691", "0.5268746", "0.526107", "0.52546877", "0.52501047", "0.5245913", "0.52391595", "0.5233868", "0.5225218", "0.52215797", "0.5220393", "0.5209303", "0.51949346", "0.5193016", "0.51609313", "0.5158628", "0.5157179", "0.51565593", "0.5145768", "0.51398623", "0.51313275", "0.51302195", "0.51145244", "0.5114238", "0.51086676", "0.5100964", "0.5094308", "0.5088711", "0.5087059", "0.5083524", "0.5081756", "0.5079931", "0.50750846", "0.50699884", "0.506864", "0.50644815", "0.5062979", "0.50602275", "0.50601673", "0.50579685", "0.5056971", "0.50537795", "0.5051795", "0.5049087", "0.50447863", "0.5032462", "0.5029669", "0.50279164", "0.5026953", "0.502572", "0.5021472", "0.5020368", "0.5017073", "0.50156003", "0.50150627", "0.50134236", "0.50127137", "0.49917507", "0.49915177", "0.49873638", "0.49847668", "0.4983056" ]
0.55215985
11
Display details of student for Student object at position in Student array
public Student getStudent(int position) { // Throw exception if position points to cell outside array if (position < 0 || position >= size) { //throw new IndexOutOfBoundsException("null"); return null; } else { return students[position]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void show(Student[] student){\n for(int i=0;i<student.length;i++){\n System.out.printf(\"First Name: %s Last Name: %s Gender: %s Student ID: %d GPA: %,.2f Department: %s Midterm Grade: %d Final Grade: %d %n\",student[i].getFirstName(),student[i].getLastName(),student[i].getGender(),student[i].getStudentID(),student[i].getGPA(),student[i].getDepartment(),student[i].getExamGrade().getMidtermExamGrade(),student[i].getExamGrade().getFinalExamGrade());\n }\n }", "public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }", "com.demo.springprotobuff.Demoproto.Student getStudent(int index);", "public com.demo.springprotobuff.Demoproto.Student getStudent(int index) {\n\t\t\treturn student_.get(index);\n\t\t}", "@Override\r\n\tpublic Student getStudent(int index) {\n\t\treturn this.students[index];\r\n\t}", "public Student getStudent(int index)\n {\n return students.get(index);\n }", "public void printAllStudent(Student st[], int index) {\n\t\tSystem.out.println(\"\\n--- 전제 학생 정보 출력---\");\n\t\tSystem.out.println(\"이름\\t나이\\t주소\");\n\t\tfor(int i=0;i<index;i++) {\n\t\t\tSystem.out.println(st[i].getName()+\"\\t\"+st[i].getAge()+\"\\t\"+st[i].getAddr());\n\t\t}\n\t}", "private static void printList(Student[] students)\r\n {\r\n for(int index = 0; index < students.length; index++)\r\n {\r\n System.out.println(students[index].toString());\r\n }\r\n }", "public void printModuleStudentInfo() {\t\r\n\tfor(int i =0; i<(StudentList.size()); i++) {\r\n\t\tStudent temp =StudentList.get(i);\r\n\t\tSystem.out.println(temp.getUserName());\r\n\t}\t\r\n}", "private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }", "public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }", "public void viewStudents(List<Student> studentList) {\n\t\tfor (Student student : studentList) {\n\t\t\tSystem.out.format(\"%5d | \", student.getId());\n\t\t\tSystem.out.format(\"%20s | \", student.getName());\n\t\t\tSystem.out.format(\"%5d | \", student.getAge());\n\t\t\tSystem.out.format(\"%20s | \", student.getAddress());\n\t\t\tSystem.out.format(\"%10.1f%n\", student.getGpa());\n\t\t}\n\t}", "public com.demo.springprotobuff.Demoproto.Student getStudent(int index) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.get(index);\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getMessage(index);\n\t\t\t\t}\n\t\t\t}", "public static void printRecord(int i) {\r\n\t\ttry {\r\n\t\t\tStudent tempRecord = studRecs.get(i);\r\n\t\t\tSystem.out.println(\"Printing information for student \" + i);\r\n\t\t\tSystem.out.println(\"Student ID: \" + tempRecord.getStudentID());\r\n\t\t\tSystem.out.println(\"First Name: \" + tempRecord.getFirstName());\r\n\t\t\tSystem.out.println(\"Last Name: \" + tempRecord.getLastName());\r\n\t\t\tSystem.out.println(\"Street Address: \" + tempRecord.getStreetAddress());\r\n\t\t\tSystem.out.println(\"City: \" + tempRecord.getCity());\r\n\t\t\tSystem.out.println(\"Province: \" + tempRecord.getProvince());\r\n\t\t\tSystem.out.println(\"Postal Code: \" + tempRecord.getPostalCode());\r\n\t\t\tSystem.out.println(\"Phone Number: \" + tempRecord.getPhoneNumber());\r\n\t\t\tSystem.out.println(\"Birth Date: \" + tempRecord.getBirthDate());\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(\"Invalid student!\");\r\n\t\t}\r\n\t}", "private void viewStudent() {\n //Lesen wir die ID\n Scanner sc = new Scanner(System.in);\n System.out.print(\"ID of the student to be viewed: \");\n long ID = sc.nextLong();\n\n Student s = ctrl.getStudent(ID);\n if (s != null)\n System.out.println(s.toString()); //wir zeigen die Student\n else\n System.out.println(\"Student with this ID doesn't exist!\");\n }", "public static void printStudentInfo() {\n\t\tfor (Student student : StudentList)\n\t\t\tSystem.out.println(\"Name: \" + student.getName() + \" Matric Number: \" + student.getMatricNo() + \" Degree:\"\n\t\t\t\t\t+ student.getDegree());\n\t}", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public static void display_student() {\n\t\t\n\n \n\t\n\ttry {\n\t\t//jdbc code\n\t\tConnection connection=Connection_Provider.creatC();\t\t\n\n\t\tString q=\"select * from students\";\n\t\t// Create Statement\n\t\tStatement stmt=connection.createStatement();\n\t\tResultSet result=stmt.executeQuery(q);\n\t\twhile (result.next()) {\n\t\t\tSystem.out.println(\"Student id \"+result.getInt(1));\n\t\t\tSystem.out.println(\"Student Name \"+result.getString(2));\n\t\t\tSystem.out.println(\"Student Phone No \"+result.getInt(3));\n\t\t\tSystem.out.println(\"Student City \"+result.getString(4));\n\t\t\tSystem.out.println(\"=========================================\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\t\n\t}", "@Override\n public String getItem(int position) {\n\n return students[position];\n }", "private void displayStudentByName(String name) {\n\n int falg = 0;\n\n for (Student student : studentDatabase) {\n\n if (student.getName().equals(name)) {\n\n stdOut.println(student.toString());\n\n falg = 1;\n\n break;\n }\n }\n\n if (falg == 0) {\n\n stdOut.println(\"cannot find student\\n\");\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"student ID --> \"+this.studentID+\", Name --> \"+this.studentName;\n\t}", "public String toString()\n {\n return \"Student(\" + studentName + \", \" + currentPhone + \")\";\n }", "@Override\n\tpublic StudentDTO get(int index) {\n\t\treturn null;\n\t}", "private void displayStudentByGrade() {\n\n studentDatabase.sortArrayList();\n\n for (Student student : studentDatabase) {\n\n stdOut.println(student.toStringsort() + \"\\n\");\n }\n }", "public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \" \" + getStudentId() + \":\" + getStudentName();\n\t}", "public void printStudents()\n {\n for(Student s : students)\n System.out.println(s);\n }", "public String DisplayStudents()\n\t{\t\n\t\tString studentList= \"\";\n\t\tint i=1; //the leading number that is interated for each student\n\t\tfor(Student b : classRoll)\n\t\t{\n\t\t\tstudentList += i + \". \" + b.getStrNameFirst ( ) + \" \" + b.getStrNameLast () +\"\\n\";\n\t\t\ti++;\n\t\t}\n\t\treturn studentList= getCourseName() +\"\\n\" + getCourseNumber()+\"\\n\" + getInstructor()+ \"\\n\" + studentList;\n\t}", "void viewStudents(Professor professor);", "public String toString(Student s){\r\n\r\n\r\n\t\treturn \"******************************************************\\n*\"+ \r\n\r\n\t\t\t\t\t\" Name #\"+\" \"+s.getName()+\"\\n*\"+\r\n\t\t\t\t\t\" id number # \"+s.getId()+ \"\\n*\"+\r\n\t\t\t\t\t\" Grades # \"+s.getGrade(0)+\" |\"+ s.getGrade(1)+\" |\"+s.getGrade(2)+\"\\n*\"+\r\n\t\t\t\t\t\" Grade Average# \"+ s.getAverage()+\"\\n*\"+\r\n\t\t\t\t\t\" Letter Grade # \"+ s.getLetterGrade(s.getAverage())+\r\n\t\t\t\t\t\"\\n******************************************************\\n\";\r\n\r\n\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + studentID;\n\t}", "private void printStudListByCourse() throws Exception {\n String courseID = null;\n ArrayList<Student> studentList = new ArrayList<Student>();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"\\nPlease enter course ID\");\n courseID = sc.nextLine();\n while(!courseID.matches(\"^[a-zA-Z]{2}[0-9]{4}$\")){\n System.out.println(\"Invalid input! Please enter a valid index number!\");\n courseID = sc.nextLine();\n }\n\n studentList= this.adminManager.getStudentByCourse(courseID);\n if(studentList == null){\n System.out.println(\"\\nThere is no such a course index\\n\\n\");\n System.exit(1);\n }\n if (studentList.isEmpty()){\n System.out.println(\"\\nThere is no student registered for this course ID\\n\\n\");\n return;\n }\n else{\n System.out.println(\"Hang on a moment while we load database.\\n\\n\");\n System.out.println(\"------------------------------------------------------\");\n System.out.println(\" STUDENT NAME GENDER NATIONALITY\");\n System.out.println(\"------------------------------------------------------\");\n //\n for(Student student:studentList){\n System.out.println(String.format(\"%20s %6s %s\",student.getName(),student.getGender(),student.getNationality()));\n }\n\n System.out.println(\"------------------------------------------------------\\n\");\n }\n }", "public String toString() {\n\t\treturn \" Student: \" + getName() + \"\\t ID: \" + getIDnumber();\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"StudentForList [marks=\" + Arrays.toString(marks) + \", names=\" + names + \"]\";\n\t}", "public com.demo.springprotobuff.Demoproto.StudentOrBuilder getStudentOrBuilder(int index) {\n\t\t\treturn student_.get(index);\n\t\t}", "private static String searchStudent ( int studentId){\n for (Student s : studentDB) {\n if (s.getID() == studentId) {\n return s.getName();\n }\n }\n return \"\";\n }", "public static void display(Student[] students) {\n System.out.print(\"\\nPrint Graph:\\n |\");\n for (int i = 0; i < students.length; i++) {\n System.out.printf(\"#%-2d|\", students[i].id);//column label\n }\n for (int i = 0; i < students.length; i++) {\n //grid\n System.out.println();\n for (int j = 0; j < 10; j++) {\n System.out.print(\"---|\");\n }\n System.out.println();\n\n //row label\n System.out.printf(\"#%-2d|\", students[i].id);\n for (int j = 0; j < students.length; j++) {\n int r = students[i].getFriendRep(students[j]);\n String rep = (r == 0) ? \" \" : String.valueOf(r); \n System.out.printf(\"%-3s|\", rep);\n }\n }\n }", "@Override\r\n public String toString() {\r\n return \"Student: \" + super.toString();\r\n }", "void display()\n\t {\n\t\t System.out.println(\"Student ID: \"+id);\n\t\t System.out.println(\"Student Name: \"+name);\n\t\t System.out.println();\n\t }", "@Override\n public String toString() {\n return \"Student{\" + \"id=\" + id + \", name=\" + name + \", yob=\" + yob + \", gpa=\" + gpa + '}';\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Student(name:%s,score:%d)\", name,score);\n\t}", "public void printUserInfo(int index) {\n System.out.print(userInfo.get(index).getUserId() + \" -> \");\n System.out.print(userInfo.get(index).getUserRole() + \" \");\n System.out.print(userInfo.get(index).getFirstName() + \" \");\n System.out.print(userInfo.get(index).getLastName() + \" \");\n System.out.print(userInfo.get(index).getAddress() + \" \");\n System.out.print(userInfo.get(index).getCity() + \" \");\n System.out.print(userInfo.get(index).getBasicSalary() + \" \");\n System.out.println(userInfo.get(index).getMobileNumber() + \" \");\n\n }", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder stud = new StringBuilder();\n\t\tfor (Student s : students) {\n\t\t\tstud.append(\"; \" + s.getBrojIndeksa());\n\t\t}\n\t\t\n\t\tif (professor != null)\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t\t\t+ yearOfStuding + \"; \" + professor.getIdNumber() + stud;\n\t\telse\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t+ yearOfStuding + \"; \" + stud;\n\t}", "public void printFieldInformation() {\n \t\tint isnull = 0;\n \t\tint studentsA = 0;\n \t\tint empty = 0;\n \t\tfor (int a = 0; a < 5; a++) {\n \t\t\tfor (int b = 0; b < 7; b++) {\n \t\t\t\tif (students[a][b] == null) {\n \t\t\t\t\tisnull++;\n \t\t\t\t\tSystem.out.println(a + \" / \" + b);\n \t\t\t\t} else if (students[a][b] instanceof EmptyPlace)\n \t\t\t\t\tempty++;\n \t\t\t\telse if (students[a][b] instanceof Student)\n \t\t\t\t\tstudentsA++;\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"null: \" + isnull);\n \t\tSystem.out.println(\"empty: \" + empty);\n \t\tSystem.out.println(\"studentsA: \" + studentsA);\n \t}", "@Override\r\n\tpublic void setStudent(Student student, int index) {\n\t\tthis.students[index] = student;\r\n\t}", "public String displayStudent(String lastName, String firstName)\n\t{\n\t\tStudent foundStudent = findStudent(firstName, lastName); //finds the student\n\t\tString studentInfo;\n\t\tif(foundStudent != null)\n\t\t{\n\t\t\tstudentInfo = foundStudent.toString ( );\n\t\t}//if the student is found it is displayed\n\t\telse\n\t\t{\n\t\t\tstudentInfo = \"Invalid Student Name\";\n\t\t}//if the student is not found it displays invalid student name\n\t\treturn studentInfo;\n\t}", "@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}", "public static void printStudents(List<Student> students) {\n }", "public void display() {\n\tSystem.out.println(\"student id is \"+studentid+\"\\t\"+\"student name is \"+studentName+\"\\t\"+\"marks is \"+marks);\r\n}", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "public student getstudent(Integer id);", "public com.demo.springprotobuff.Demoproto.StudentOrBuilder getStudentOrBuilder(int index) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.get(index);\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getMessageOrBuilder(index);\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }", "public Student getStudent(final int matrnr) {\n return students.get(matrnr);\n }", "@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }", "private Student getStudentToEdit() throws CommandException {\n List<Student> lastShownList = model.getFilteredStudentList();\n\n if (index.getZeroBased() >= lastShownList.size()) {\n throw new CommandException(Messages.MESSAGE_INVALID_STUDENT_DISPLAYED_INDEX);\n }\n studentToEditPicture = lastShownList.get(index.getZeroBased());\n return studentToEditPicture;\n }", "public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}", "private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }", "public Student findStudent(int id);", "public void select() {\n db = helper.getReadableDatabase();\n Cursor c = db.query(\"student\", null, null, null, null, null, null);\n\n studentInfo = new String[c.getCount()];\n int count = 0;\n\n while(c.moveToNext()) {\n studentInfo[count] = c.getString(c.getColumnIndex(\"name\"))\n + \" \" + c.getString(c.getColumnIndex(\"number\"));\n count++;\n }\n c.close();\n }", "public void showPatientList()\r\n\t{\n\t\tfor(int i=0; i<nextPatientLocation; i++)\r\n\t\t{\r\n\t\t\tString currentPositionPatientData = arrayPatients[i].toString();\r\n\t\t\tSystem.out.println(\"Patient \" + i + \" is \" + currentPositionPatientData);\r\n\t\t}\r\n\t}", "public void testPrintStudentDetails() {\n\t System.out.println(\"printStudentDetails\");\n\t Student instance = student1;\n\t student1.addCourse(course1);\n\t student1.addModule(module1);\n\t instance.printStudentDetails();\n\t }", "public String toString() {\r\n String st = \"Student Name: \" + getStudentName() +\r\n \" ID: \" + getStudentId() + \"\\n\";\r\n return st;\r\n }", "private void viewGradeCard(int studentId)\n\t{\n\t\t\n\t\t\n\t\tList<StudentGrade> grade_card=null;\n\t\ttry \n\t\t{\n\t\t\tgrade_card = registrationInterface.viewGradeCard(studentId);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t\t\n\t\tlogger.info(String.format(\"%-20s %-20s %-20s\",\"COURSE CODE\", \"COURSE NAME\", \"GRADE\"));\n\t\t\n\t\tif(grade_card.isEmpty())\n\t\t{\n\t\t\tlogger.info(\"You haven't registered for any course\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(StudentGrade obj : grade_card)\n\t\t{\n\t\t\tlogger.info(String.format(\"%-20s %-20s %-20s\",obj.getCourseCode(), obj.getCourseName(),obj.getGrade()));\n\t\t}\n\t}", "@GetMapping(\"/students/{studentID}\")\n\t\tpublic Student getStudent(@PathVariable int studentID){\n\t\t\t\n\t\t\t\n\t\t\t//check to see the if the list size is available on the students list array\n\t\t\tif ((studentID >= theStudents.size()) || (studentID<0)) {\n\t\t\t\t\n\t\t\t\tthrow new StudentNotFoundException(\"Student not found :\" + studentID);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t * For this example we using the ID as array index reference \n\t\t\t */\n\t\t\treturn theStudents.get(studentID);\n\t\t}", "public ShowStudentInfo() throws SQLException {\n initComponents();\n ShowDetails();\n }", "@Override\n\tpublic Student selectStudentInfo(Student student) throws Exception {\n\t\treturn registerMapper.selectStudentInfo(student);\n\t}", "@Override\r\n\tpublic void add(Student student, int index) {\n\r\n\t\tif (student == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Null student object detected\");\r\n\r\n\t\tif (index > this.students.length - 1)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid array index\");\r\n\r\n\t\tthis.students[index] = student;\r\n\t}", "public void editStudentList(int stuNumber){\n for(int i = 0; i<studList.size();i++){\n if(stuNumber == studList.get(i).getStuNumber()){\n \n System.out.println(\"Student Name: \" + studList.get(i).getFullName() + \", Student Number: \" + \n studList.get(i).getStuNumber() + \", Student GPA: \" + studList.get(i).getGPA());\n\n Scanner input = new Scanner(System.in);\n String newName = \"\";\n double newGPA;\n\n System.out.print(\"Student name: \");\n newName = input.nextLine();\n\n System.out.print(\"Student GPA: \");\n newGPA = input.nextDouble();\n\n Student temp = new Student(newName, studList.get(i).getStuNumber(), newGPA);\n studList.set(i, temp);\n }\n }\n }", "public java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList() {\n\t\t\treturn student_;\n\t\t}", "public String getStudents(){\n\t\treturn this.students;\n\t}", "private static void editStudent () {\n System.out.println(\"Here is a list of Students..\");\n showStudentDB();\n System.out.println(\"Enter Id of student you want to edit: \");\n int studentId = input.nextInt();\n input.nextLine();\n Student student = null;\n\n for(Student s: studentDB) {\n if(s.getID() == studentId) {\n student = s;\n }\n }\n\n if(student != null) {\n System.out.println(\"Enter New Name\");\n String str = input.nextLine();\n student.setName(str);\n System.out.println(\"Name is changed!\");\n System.out.println(\"Id: \" + student.getID() + \"\\n\" + \"Name: \" + student.getName() );\n } else {\n System.out.println(\"Invalid Person!\");\n }\n }", "public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }", "public static void main(String[] args) {\n\n ArrayPractice[] ar= new ArrayPractice[1];\n ar[0]=new ArrayPractice(99,\"vivek\",\"prodct\");\n for (Object o:ar) {\n ar[0].employeeInfo();\n\n }\n\n\n\n// int[][] arr = {{2, 3}, {2, 5}, {2, 34}, {2, 5}};\n//\n//\n// for (int[] temp : arr) {\n// for (int n : temp) {\n// System.out.println(n);\n// }\n//\n// }\n// int[][] arrr = new int[4][4];\n// System.out.println(arrr[0].length);\n// String[] name = {\"Vivek\", \"Atin\"};\n//\n// greet(\"Vivek\", \"Atin\");\n// }\n// public static void greet(String... name) {\n// for(String n:name){\n// System.out.println(\"hello\"+n);\n// }\n\n\n\n\n// }\n// public class student{\n// String name;\n// Int id;\n// Int age;\n// String major;\n// float gpa;\n// public void studenDetails(){\n// studenDetails=new studentDetails();\n\n\n }", "private void displayContactDetails() {\n System.out.println(\"displaying contact details :\");\n for (int i = 0; i < contactList.size(); i++) {\n System.out.println(\"contact no\" + (i + 1));\n Contact con = contactList.get(i);\n System.out.println(\"first name is :\" + con.getFirstName());\n\n System.out.println(\" last name is :\" + con.getLastName());\n\n System.out.println(\" address is :\" + con.getAddress());\n\n System.out.println(\" city name is :\" + con.getCity());\n\n System.out.println(\" state name is :\" + con.getState());\n\n System.out.println(\" zip code is :\" + con.getZip());\n\n System.out.println(\" phone number is :\" + con.getPhone());\n\n System.out.println(\" email address is :\" + con.getEmail());\n }\n }", "public Student getStudent() {\r\n\t\treturn student;\r\n\t}", "public int getStudentNumber() { return studentNumber; }", "Student getStudentById(Long id);", "abstract public void showAllStudents();", "private Student getStudentByID(String sid) {\n\t\tfor(Student student: students) {\r\n\t\t\t//no need to check for null as Array list is dynamic and \r\n\t\t\tif(student.getStudentId().equals(sid)) {\r\n\t\t\t\treturn student;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return null if sid was not found\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"Enter number of new students to enroll: \");\n Scanner scan = new Scanner(System.in);\n int numOfStudents = scan.nextInt();\n Student[] students = new Student[numOfStudents];\n\n // create n number of new students\n for (int n = 0; n < numOfStudents; n++) {\n students[n] = new Student();\n students[n].enroll();\n students[n].payTuition();\n // System.out.println(students[n].showInfo());\n }\n for(int n = 0; n< numOfStudents; n++){\n System.out.println(students[n].showInfo());\n }\n\n scan.close();\n \n }", "public String toString(){\n\t\treturn \"The student \"+Student.getFirstName()+\" \"+Student.getFamilyName()+\" has average of \"+averageGrade();\r\n\t}", "public static void main(String[] args) {\n\t\tstudentList obj1 = new studentList(101, \"James Henry\", \"1042 Northcut Way\");\r\n\t\tstudentList obj2 = new studentList(102, \"Frank Peterson\", \"942 James Cv\");\r\n\t\tstudentList obj3 = new studentList(103, \"Kyle Smith\", \"1502 Diana Dr\");\r\n\t\tstudentList obj4 = new studentList(104, \"Paco Suarez\", \"221 Risinger Pl\");\r\n\t\tstudentList obj5 = new studentList(105, \"Hillary Butler\", \"712 Rainbow Rd\");\r\n\t\tstudentList obj6 = new studentList(106, \"Susan Sanchez\", \"1245 Killaminjaro\");\r\n\t\tstudentList obj7 = new studentList(107, \"Peter Griffin\", \"999 Chowder St\");\r\n\t\tstudentList obj8 = new studentList(108, \"Nancy Hourglass\", \"758 Clanky Ave\");\r\n\t\tstudentList obj9 = new studentList(109, \"Luis Gonzales\", \"1236 Burnet Rd\");\r\n\t\tstudentList obj10 = new studentList(110, \"Bob Jacket\", \"494 St. Peters Blvd\");\r\n\t\t\r\n\t\t// Creating the ArrayList\r\n\t\tArrayList<studentList> list = new ArrayList<studentList>();\r\n\t\t\r\n\t\t// Add the objects to the ArrayList\r\n\t\tlist.add(obj1);\r\n\t\tlist.add(obj2);\r\n\t\tlist.add(obj3);\r\n\t\tlist.add(obj4);\r\n\t\tlist.add(obj5);\r\n\t\tlist.add(obj6);\r\n\t\tlist.add(obj7);\r\n\t\tlist.add(obj8);\r\n\t\tlist.add(obj9);\r\n\t\tlist.add(obj10);\r\n\t\t\r\n\t\t// Creating an additional line for cohesion\r\n\t\tSystem.out.println(\"---------------------------------\");\r\n\t\t\r\n\t\t// Creating the for loop to display all the information\r\n\t\tfor (studentList ob : list) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Student Number: \" + ob.rollNo);\r\n\t\t\tSystem.out.println(\"Student Name: \" + ob.name);\r\n\t\t\tSystem.out.println(\"Student Address: \" + ob.address);\r\n\t\t\tSystem.out.println(\"---------------------------------\");\r\n\t\t}\r\n\t\t\r\n\t}", "public int getStudentId() {\n return studentId;\n }", "public String getStudentId() {\n\treturn this.studentId;\n }", "public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }", "public Student(String myname, int myid){ \r\n\t\tname = myname;\r\n\t\tid = myid;\r\n\t\tgrades[0]= -1;\r\n\t\tgrades[1]= -1;\r\n\t\tgrades[2]= -1;\r\n\r\n\t// use the static variable from StudentArray Class to keep count of the number of student object\r\n\t\tnumberOfStudents++; \r\n\t}", "public Student getStudents() {\n\t\treturn this.student;\n\t}", "@Override\n\tpublic void showPatientDetails() {\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"S.No Patient's name ID Mobile Age\");\n\t\tfor (int i = 1; i <= UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i - 1);\n\t\t\tSystem.out.print(\" \" + i + \" \" + jsnobj.get(\"Patient's name\") + \" \" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t+ \" \" + jsnobj.get(\"Mobile\") + \" \" + jsnobj.get(\"Age\") + \"\\n\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n Student[] students=new Student[1000];\n \n// System.out.println(students[0]);\n// \n// students[0]=new Student(\"A\",1);\n// System.out.println(students[0].getRollNo());\n \n \n \n for(int i=0;i<students.length;i++) {\n \tstudents[i]=new Student(i+\"th\",i);\n \t//System.out.println(students[i].getCurrentStudents());\n }\n \n // System.out.println(students[250].getRollNo());\n \n System.out.println(students[250].getUniformColor());\n students[250].setUniformColor(\"White\");\n \n System.out.println(students[300].getUniformColor());\n\n \n \n System.out.println(Student.UNIFORM_COLOR);\n \n \n Student.aStaticFunction();\n students[999].aStaticFunction();\n \n students[999].aNonStaticFunction();\n \n \n \n \n \n\t}", "@GetMapping(path = \"/student\")\n public Set<PlacementViewDto> getRecordsByStudentName(@RequestParam(value = \"studentName\") String studentName, @RequestParam(defaultValue = \"0\") String page) {\n return placementService.getDetailsByStudentName(studentName, page);\n }", "public int getStudentId() {\n\t\treturn studentId;\n\t}", "public String studentInfo()\n\t{\n\t\tString strStudentInfo;\n\t\tDecimalFormat percent = new DecimalFormat(\"0.0%\");\n\t\tdouble dRoundedCourseAverage;\n\t\tdouble dCourseAverage;\n\t\tdCourseAverage= courseAverage();\n\t\t\t\n\t\tdRoundedCourseAverage= Math.round(dCourseAverage);\n\t\tstrStudentInfo =\n\t\t(\"\\nName: \" + name +\n\t\t\"\\nCourse: \" + courseDesc +\n\t\t\"\\nNumber: \" + courseNum +\n\t\t\"\\nInstructor:\" + instructor +\n\t\t\"\\nGrades:\" +\n\t\t\"\\nTest: \\tAverage: \"+ average('t') +\"\\tPercent: \" + pctT +\n\t\t\"\\nQuizzes: \\tAverage: \"+ average('q') +\"\\tPercent: \" + pctQ +\n\t\t\"\\nProject: \\tAverage: \"+ average('p') +\"\\tPercent: \" + pctP +\n\t\t\"\\nCourse Average: \" + dCourseAverage + \"(or \"+\n\t\t\tpercent.format(dRoundedCourseAverage/100) + \")\");\n\t\treturn strStudentInfo;\n\t}", "private void printAllStudentInDB(){\n ArrayList studentInformation = AdminManager.loadDBStudentInformation();\n System.out.println(\"--------------------------------------------------------------------------------------\");\n System.out.println(\"USERNAME STUDENT NAME MATRIC NUMBER GENDER NATIONALITY\");\n System.out.println(\"--------------------------------------------------------------------------------------\");\n\n for(int i=0; i<studentInformation.size();i++){\n String st = (String)studentInformation.get(i);\n StringTokenizer star = new StringTokenizer(st, \",\");\n System.out.print(String.format(\"%7s \",star.nextToken().trim()));\n String printPassword = star.nextToken().trim();\n System.out.println(String.format(\"%20s %9s %6s %s\",star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim()));\n }\n System.out.println(\"--------------------------------------------------------------------------------------\\n\");\n }", "public static void main(String[] args) {\n Group aco21 = new Group();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n Scanner sc = new Scanner(System.in);\n int choice1 = sc.nextInt();\n if (choice1 == 1)\n {\n\n System.out.print(\"input name, phone and birthyear on different lines \\n\");\n String n = sc.nextLine();\n String p = sc.nextLine();\n int y = sc.nextInt();\n Student k = new Student();\n k.init(n,p, y, aco21.listStud.size()+1);\n aco21.listStud.add(k);\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n if (choice1 == 2)\n {\n for (int i = 0; i<aco21.listStud.size(); i++)\n {\n String l = String.format(\"Name %s Number %s birthyear %d\", aco21.listStud.get(i).name, aco21.listStud.get(i).phone, aco21.listStud.get(i).birthYear);\n System.out.print(l);\n }\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n }", "public Student getStudent() {\n\t\treturn student;\n\t}", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}" ]
[ "0.75907063", "0.7363643", "0.71930885", "0.70137084", "0.69431657", "0.6771435", "0.67707485", "0.67663944", "0.67036545", "0.66928726", "0.6692128", "0.6680101", "0.6672611", "0.6627054", "0.65865195", "0.65751815", "0.64998543", "0.63933665", "0.6389977", "0.63674533", "0.6299632", "0.62869203", "0.6286103", "0.6276952", "0.6267341", "0.6261835", "0.62544256", "0.6236876", "0.62006265", "0.6192516", "0.6179325", "0.6170683", "0.6166875", "0.6138228", "0.61197156", "0.61104953", "0.6073801", "0.60374516", "0.60056126", "0.5991795", "0.59893936", "0.59718156", "0.5971619", "0.5947727", "0.59468466", "0.5946798", "0.5935197", "0.5891476", "0.5891039", "0.58703214", "0.5867165", "0.58628005", "0.5843962", "0.58252126", "0.5812624", "0.5783615", "0.5780908", "0.5760797", "0.5749961", "0.57374686", "0.57268316", "0.57231516", "0.571824", "0.5716258", "0.5697605", "0.569576", "0.56949043", "0.56946313", "0.5692868", "0.56779116", "0.56577176", "0.56565446", "0.5649104", "0.5648493", "0.56471753", "0.5636235", "0.5636056", "0.5622729", "0.5621203", "0.5614517", "0.5612252", "0.5609653", "0.5609643", "0.56062317", "0.5600413", "0.5597931", "0.55920523", "0.55761397", "0.55695885", "0.55670047", "0.55622935", "0.55549395", "0.5553772", "0.55518496", "0.5546519", "0.5543279", "0.5538879", "0.5538246", "0.55295664", "0.55258954" ]
0.60277075
38
Created by PengWX on 2019/4/23.
public interface IRolePermissionService { List<RolePermission> selectRolePermissionByRoleIds(List<Long> roleIds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "private void poetries() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n void init() {\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "public Pitonyak_09_02() {\r\n }", "public void gored() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private TMCourse() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void strin() {\n\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void init() {\n\t}", "private UsineJoueur() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "public contrustor(){\r\n\t}" ]
[ "0.61221826", "0.5998977", "0.5762184", "0.57497853", "0.574242", "0.5733438", "0.5733438", "0.56654465", "0.5651557", "0.5601321", "0.5600702", "0.55896145", "0.5576369", "0.5569781", "0.5569279", "0.55614173", "0.5555792", "0.5555322", "0.5541166", "0.5519141", "0.5518082", "0.5514558", "0.5499581", "0.548809", "0.54806274", "0.54805166", "0.547546", "0.54675204", "0.5465728", "0.545771", "0.545771", "0.54376364", "0.5437228", "0.5435084", "0.5435084", "0.5435084", "0.5435084", "0.5435084", "0.5434168", "0.5434168", "0.5434168", "0.5434168", "0.5434168", "0.5434168", "0.54282606", "0.5426382", "0.5404498", "0.5402281", "0.53956556", "0.5388059", "0.53848624", "0.53837997", "0.53837997", "0.5382804", "0.5378308", "0.5378308", "0.5378308", "0.5378308", "0.5378308", "0.5378308", "0.5378308", "0.5363685", "0.5363685", "0.5363685", "0.5351507", "0.5340742", "0.53345484", "0.532756", "0.53224874", "0.53224874", "0.53224874", "0.5321529", "0.5321529", "0.53167623", "0.53167623", "0.53167623", "0.5310877", "0.5306365", "0.5305394", "0.5293185", "0.5289479", "0.528653", "0.5285708", "0.52854663", "0.52840143", "0.52623415", "0.5262203", "0.5260903", "0.5259675", "0.5258522", "0.5258133", "0.5252831", "0.524299", "0.52390337", "0.5238522", "0.5237929", "0.5234937", "0.5220042", "0.52194226", "0.5218848", "0.52169114" ]
0.0
-1
amount of times the exercise is performed EFFECTS: creates a exercise with name, sets and reps
public Exercise(String name, int sets, int reps) { this.name = name; this.sets = sets; this.reps = reps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exercise(String name,int sets,int reps){\n setName(name);\n setReps(reps);\n setSets(sets);\n }", "public Exercise(String name) {\n\t\tthis.name = name;\n\t\tsetList = new ArrayList<Set>();\n\t\trepsGoal = -1;\n\t\tweightGoal = -1;\n\t\trest = -1;\n\t\texerciseInstance = false;\n\t\tnotes = \"\";\n\t\toldId = -1;\n\t\tid = -1;\n\t}", "public dayExerciseAdd(String userEmail, String exercise, int sets, int reps) {\n\t\tsuper();\n\t\tthis.userEmail = userEmail;\n\t\tthis.exercise = exercise;\n\t\tthis.sets = sets;\n\t\tthis.reps = reps;\n\t}", "@Test\r\n public void getRandomExercise() {\n ArrayList<String> exerList = new ArrayList<>();\r\n exerList.add(\"Exer 1\");\r\n exerList.add(\"Exer 2\");\r\n exerList.add(\"Exer 3\");\r\n exerList.add(\"Exer 4\");\r\n exerList.add(\"Exer 5\");\r\n\r\n assertEquals(2, getRandomExer.getRandomExercise(exerList,2).size());\r\n }", "public void makeTea(){\n size();\n temp();\n type();\n additives();\n }", "public Integer excerciseStateCount(Activity activity, ExerciseState state);", "public void addExercise(Exercise p) {\n exercises.add(p);\n }", "protected void setupAdditions(int amount) {\n\n\n for (int i = 1; i != amount; i++) {\n int runTime = ((i * i) + 90);\n MovieList.addMovie(\"title \" + i, i + 1000, runTime, \"Plot \" + i, \"imgUrl \" + i);\n ActorList.addActor(\"name\" + i, i + 10, \"gender\" + i, \"nationality\" + i);\n\n\n }\n\n }", "void addRepeat(int beatNum, RepeatType repeatType);", "public void testAddTrials() {\n exp = new Experiment(\"10\");\n TrialCount trial1 = new TrialCount(\"109\", new GeoLocation(0.0, 0.0), new Profile());\n TrialCount trial2 = new TrialCount(\"110\", new GeoLocation(1.0, 1.0), new Profile());\n ArrayList<Trial> trials = new ArrayList<>();\n trials.add(trial1);\n trials.add(trial2);\n exp.addTrials(trials);\n\n assertEquals(\"addTrials does not work\", \"109\", exp.getTrial(\"109\").getId());\n assertEquals(\"AddTrials does not work\", \"110\", exp.getTrial(\"110\").getId());\n }", "private void startExer() {\n if (iter % 2 == 0) {\n mTimeLeftInMillis = 30000;\n updateCountDownText();\n } else {\n mTimeLeftInMillis = retTime(recRig.get(ref)) * Reps;\n updateCountDownText();\n }\n updateCountDownText();\n mCountDownTimer = new CountDownTimer(mTimeLeftInMillis, 1000) {\n\n\n @Override\n public void onTick(long millisUntilFinished) {\n //Toast.makeText(GenWorkoutActivity.this, mTimeLeftInMillis+\"\", Toast.LENGTH_SHORT).show();\n updateCountDownText();\n if (iter % 2 == 0) {\n\n Exercise.setText(\"REST\");\n SetsLeft.setText(\"\");\n rest = false;\n } else {\n\n Exercise.setText(recExer.get(ref));\n SetsLeft.setText((ref + 1) + \" out of \" + totalSet);\n }\n\n mTimeLeftInMillis = millisUntilFinished;\n updateCountDownText();\n }\n\n @Override\n public void onFinish() {\n updateCountDownText();\n iter++;\n if (iter % 2 == 0) {\n Exercise.setText(\"REST\");\n SetsLeft.setText(\"\");\n //rest = false;\n startExer();\n } else if (ref < totalSet - 1 && iter % 2 == 1) {\n ref++;\n mTimeLeftInMillis = retTime(recRig.get(ref)) * Reps;\n rest = true;\n startExer();\n }\n if (iter == (recExer.size() * Sets)) {\n //Toast.makeText(GenWorkoutActivity.this, workName.length + \" \"+ iter, Toast.LENGTH_SHORT).show();\n //Intent intent = new Intent(GenWorkoutActivity.this, ExportActivity.class);\n /*\n intent.putExtra(\"S\", Sets);\n intent.putExtra(\"R\", Reps);\n intent.putExtra(\"aW\", workName);\n intent.putExtra(\"aR\", workRig);\n */\n /*\n Toast.makeText(GenWorkoutActivity.this, \"\" + Sets, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + Reps, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + workName.length, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + workRig.length, Toast.LENGTH_SHORT).show();\n //finish();\n //startActivity(intent);\n */\n //export();\n }\n }\n }.start();\n\n\n\n //SetsLeft.setText(\"\");\n //Exercise.setText(\"REST\");\n /*\n getmCountDownTimerRest = new CountDownTimer(3000, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n mTimeLeftInMillis = millisUntilFinished;\n updateCountDownText();\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n */\n\n\n }", "int getQuestCount();", "public String getExerciseList() {\n int max = 5;\n int min = 1;\n\n int random = (int )(Math.random() * max + min);\n\n // DETERMINE WHICH EXERCISE TO ADD\n String exerciseList = \"\\n\";\n\n if (random == pushup) {\n exerciseList += \"Push Ups\";\n } else if (random == splitSquat) {\n exerciseList += \"Split Squats\";\n } else if (random == kbDeadLift) {\n exerciseList += \"Kettle Bell Dead Lifts\";\n } else if (random == armLift) {\n exerciseList += \"Arm Lifts\";\n } else {\n exerciseList += \"Sit Ups\";\n }\n\n return exerciseList;\n }", "public Examen generarExamenTest() {\r\n\r\n\t\tPregunta pregunta;\r\n Ejercicio ejercicio;\r\n\t\tMateria materia = new Materia(\"Disenio\");\r\n\t\tExamen ex;\r\n\r\n\t\t// Creo lotes de prueba de Unidades Tematicas\r\n\t\tSet<String> unidadesAbarcadas = new HashSet<String>();\r\n\t\r\n\t\tunidadesAbarcadas.add(\"Patrones\");\r\n\t\tunidadesAbarcadas.add(\"Ciclos de Vida\");\r\n\t\tunidadesAbarcadas.add(\"Estructurado\");\r\n\t\tunidadesAbarcadas.add(\"DFDTR\");\t\r\n\t\r\n\t\tpregunta = new ADesarrollar(\"Patrones\", 75, \"Por que necesitamos a los patrones en las estancias?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 40, \"Cuantos modos de Cohesion Existe?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tejercicio = new Ejercicio(\"Estructurado\", 75, \"Que es un trampolin de datos?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\t \r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 75, \"Indique los pasos que aplicaria con que ciclo de vida para implementar un Sistema Contable\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n \r\n \r\n\t\tPrototipoItem<Pregunta> protoPregunta = new PrototipoItem<Pregunta>(Pregunta.class);\r\n\t\tprotoPregunta.setTipo(TiposItem.TEORICO);\r\n\t\tPrototipoItem<Ejercicio> protoEjercicio = new PrototipoItem<Ejercicio>(Ejercicio.class);\r\n\t\tprotoEjercicio.setTipo(TiposItem.PRACTICO);\r\n\t\tExamenBuilder builder = new ExamenBuilder(materia,unidadesAbarcadas,Calendar.getInstance());\r\n\t\tbuilder.putPrototipo(protoPregunta, 3);\r\n\t\tbuilder.putPrototipo(protoEjercicio, 3);\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tex = builder.generarExamen();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// No se controlan errores de creacion ya que se genera el examen para el Test\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\treturn ex;\r\n\r\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "@Override\n\tpublic int countExam() {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testAddCorrectNumberOfRecipes() throws RecipeException {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tcoffeeMaker.addRecipe(recipe2);\n\t\tcoffeeMaker.addRecipe(recipe3);\n\t}", "@Test\n void doEffectelectroscythe() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"electroscythe\");\n Weapon w1 = new Weapon(\"electroscythe\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.getWeapons().add(w1);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w1.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n Terminator t = new Terminator('y', Board.getSquare(0));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && t.getPb().countDamages() == 2);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && t.getPb().countDamages() == 3);\n }", "@Test\n void doEffecthellion() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"hellion\");\n Weapon w5 = new Weapon(\"hellion\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w5);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w5);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w5.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n players.clear();\n players.add(victim);\n players.add(t);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 2);\n }", "public Exercise(int index) {\n this.index = index;\n }", "@Test\n void doEffectthor() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"t.h.o.r.\");\n Weapon w15 = new Weapon(\"t.h.o.r.\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w15);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w15.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 2);\n }", "@Test\n public void addExerciseTest() {\n\n actual.addExercise(\"new exercise\");\n\n Assert.assertEquals(Arrays.asList(EXPECTED_EXERCISES), actual.getExercises());\n }", "public Workout(String exercise, int minutes){\n this.exercise = exercise;0\n this.minutes = minutes;\n\n }", "int getRepeatCount();", "private static int calcGenerations(String filename, int reps) {\n List<String> fileContentsAsStrings = utilities.getFileContentsAsStrings(filename);\n\n // parse initial state\n String prefix = \"........................\";\n List<String> replay = new ArrayList<>();\n// replay.add(addCalibraton(prefix));\n\n String currentState = parseInitialState(fileContentsAsStrings.get(0), prefix);\n\n // parse rules\n HashMap<String, String> rules = parseRules(fileContentsAsStrings.subList(2, fileContentsAsStrings.size()));\n\n String previousLine = currentState;\n\n // do 20 times\n for (int i = 0; i < reps; i++) {\n replay.add(previousLine);\n if (previousLine.substring(previousLine.length() - RULE_LENGTH).contains(\"#\")) {\n previousLine += \".....\";\n }\n\n StringBuilder nextLine = new StringBuilder();\n nextLine.append(\"..\");\n\n // for each element in current line, apply rule and build next line\n for (int pot = 0; pot <= previousLine.length() - RULE_LENGTH; pot++) {\n nextLine.append(transformThisCell(previousLine.substring(pot, pot + RULE_LENGTH), rules));\n }\n nextLine.append(\"..\");\n previousLine = nextLine.toString();\n }\n\n// printResults(replay, prefix.length());\n\n // after 20 times, potSum of the entire string and the zero index (prefix length)\n return potSum(previousLine, prefix.length());\n }", "@Test\n void doEffectfurnace() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"furnace\");\n Weapon w3 = new Weapon(\"furnace\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w3);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w3.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n Terminator t = new Terminator('g', Board.getSquare(5));\n t.setOwnerColor(victim.getColor());\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(victim.getPlayerPosition());\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"base\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n t = new Terminator('g', Board.getSpawnpoint('r'));\n t.setOwnerColor(victim.getColor());\n s.clear();\n s.add(Board.getSpawnpoint('r'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b')==1 && t.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b')==1);\n\n }", "public String getExerciseName()\n\t{\n\t\treturn this.exerciseName;\n\t}", "public void testExercises() {\n\t\tSystem.out.println(\"Exercise 2:\");\n\t\tSATSolver solver = get2Solver();\n\t\tshowClauses(solver);\n\t\ttestLiterals(solver);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Exercise 5:\");\n\t\tsolver = get5Solver();\n\t\tshowClauses(solver);\n\t\ttestLiterals(solver);\n\t}", "public void PointCount(int timeremain)\n\t{\n\n\t\tLog.e(\"Time\",\"\"+timeremain);\n\n\t\tif(timeremain<29 && timeremain>=25)\n\t\t{\n\t\t\tpoints=5;\n\t\t\ttxtpoint.setText(\"\" + points);\n\t\t\tdb.AddtoFavorite(new Pojo(allArrayQid[currentPosition], String.valueOf(points),Constant.ADD_LEVEL_IDD));\n\t\t}\n\t\telse if(timeremain<25 && timeremain>=20)\n\t\t{\n\t\t\tpoints=3;\n\t\t\ttxtpoint.setText(\"\" + points);\n\t\t\tdb.AddtoFavorite(new Pojo(allArrayQid[currentPosition], String.valueOf(points),Constant.ADD_LEVEL_IDD));\n\t\t}\n\n\t\telse if(timeremain<20 && timeremain>=1)\n\t\t{\n\t\t\tpoints=1;\n\t\t\ttxtpoint.setText(\"\" + points);\n\t\t\tdb.AddtoFavorite(new Pojo(allArrayQid[currentPosition], String.valueOf(points),Constant.ADD_LEVEL_IDD));\n\t\t}\n\t}", "public void testStatistics(){\n Profile profile = new Profile(\"id1\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=1; i<101; i++){\n TrialIntCount trial = new TrialIntCount(\"\"+i, uni_loc, profile, 0);\n if (i<40 && i%2==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if (i>= 40 && i<80 && i%3==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if ( i >= 80 && i%5==0) {\n trial.setCount(i);\n TrialIntCount trial2 = new TrialIntCount(\"1\"+i, uni_loc, profile, 0);\n trial2.setCount(i);\n\n trials.add(trial);\n trials.add(trial2);\n }\n }\n\n this.exp = new Experiment(\"foo\");\n this.exp.addTrials(trials);\n\n assertEquals(\"removeDupes does not work\", 37, this.exp.removeDupes().length);\n assertEquals(\"frequencies does not work\", 15, exp.frequencies().length);\n assertEquals(\"median does not work\", \"46.5\", exp.getMedian());\n assertEquals(\"Q1 does not work\", \"23.00\", exp.getQ1());\n assertEquals(\"Q3 does not work\", \"76.50\", exp.getQ3());\n assertEquals(\"std does not work\", \"30.39\", exp.getStd());\n assertEquals(\"mean does not work\", \"49.05\", exp.getMean());\n\n }", "int getNewlyAvailableQuestsCount();", "@Test\n public void testElementsTrackedIndividuallyForAStep() throws IOException {\n NameContext stepA = createStep(\"A\");\n NameContext stepB = createStep(\"B\");\n\n tracker.enter(stepA);\n tracker.enter(stepB);\n tracker.exit();\n tracker.enter(stepB);\n tracker.exit();\n tracker.exit();\n // Expected journal: IDLE A1 B1 A1 B2 A1 IDLE\n\n tracker.takeSample(70);\n assertThat(getCounterValue(stepA), equalTo(distribution(30)));\n assertThat(getCounterValue(stepB), equalTo(distribution(10, 10)));\n }", "private static void createEnterTestSet() {\n\n\t\tmakeReadyEnters = new ArrayList<>();\n\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.NEW_LINE);\n\t\tmakeReadyEnters.add(GuessRevealerConstants.READY);\n\n\t\tenterCount = makeReadyEnters.size();\n\n\t}", "public static void main(String[] args) {\n\t\tList<String> femaleFirstNames = CSVReader.getFemaleFirstNames();\r\n\t\tList<String> maleFirstNames = CSVReader.getMaleFirstNames();\r\n\t\tList<String> lastNames = CSVReader.getLastNames();\r\n\r\n\t\t// Instantiating a NameService object\r\n\t\tNameService ns = new NameService(maleFirstNames, femaleFirstNames, lastNames);\r\n\r\n\t\tList<Person> persons = new ArrayList<>();\r\n\t\t// Creating 500 random persons and adding them to a list\r\n\t\tfor (int i = 0; i < 500; i++) {\r\n\t\t\tpersons.add(ns.getNewRandomPerson());\r\n\t\t}\r\n\r\n\t\tLab theLab = new Lab(persons);\r\n\r\n\t\t// Run your exercises here\r\n\t\tboolean running = true;\r\n\t\twhile (running) {\r\n\t\t\tSystem.out.println(\"\\nRun witch one?(1-11)(0-Quit)\");\r\n\t\t\tswitch (getIntFromLimit(11, 0)) {\r\n\t\t\tcase 1:\r\n\t\t\t\ttheLab.exercise1();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\ttheLab.exercise2();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\ttheLab.exercise3();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\ttheLab.exercise4();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\ttheLab.exercise5();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\ttheLab.exercise6();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\ttheLab.exercise7();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8:\r\n\t\t\t\ttheLab.exercise8();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9:\r\n\t\t\t\ttheLab.exercise9();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10:\r\n\t\t\t\ttheLab.exercise10();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 11:\r\n\t\t\t\ttheLab.exercise11();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 0:\r\n\t\t\tdefault:\r\n\t\t\t\trunning = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Goodbye!\");\r\n\t\t\r\n\t}", "@Test\n void doEffectflamethrower() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"flamethrower\");\n Weapon w7 = new Weapon(\"flamethrower\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w7);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w7.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.get(1).setPlayerPosition(Board.getSquare(5));\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.remove(1);\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer p2 = new RealPlayer('v', \"ciccia\");\n p2.setPlayerPosition(Board.getSquare(1));\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.clear();\n s.add(victim.getPlayerPosition());\n s.add(t.getPlayerPosition());\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p2.getPb().countDamages() == 2 && t.getPb().countDamages() == 1);\n }", "@Test\n void doEffectzx2() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"zx-2\");\n Weapon w8 = new Weapon(\"zx-2\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w8);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w8.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('r'));\n players.clear();\n players.add(victim);\n players.add(t);\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim2.getPb().getMarkedDamages('b') == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n players.remove(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim2.getPb().getMarkedDamages('b') == 2);\n }", "int getExperimentsCount();", "public static void main(String[] args) {\n\n Performer Joe = new Performer(\"Joseph Stalin\", \"The Hottest Band on Earth\");\n Joe.addHit(\"Gulag\");\n //System.out.println(Joe);\n\n Performer OR = new Performer(\"Olivia Rodrigo\", \"#1 debut artist\");\n OR.addHit(\"Drivers License\");\n OR.addHit(\"Jealously Jealousy\");\n OR.addHit(\"Deja Vu\");\n // System.out.println(OR);\n\n Performer TS = new Performer(\"Taylor Swift\", \"Top Female Artist\");\n TS.addHit(\"22\");\n TS.addHit(\"Red\");\n TS.addHit(\"Love Story\");\n // System.out.println(TS);\n\n Concert Coachella = new Concert(\"Coachella\", \"The Biggest Music Festival on Earth\", \"Indio, California\");\n Coachella.addPerformer(TS);\n Coachella.addPerformer(OR);\n System.out.println(Coachella);\n\n\n\n\n //System.out.println(OR);\n // System.out.println(TS);\n\n }", "@Test\n\tpublic void testCalculateCalories() \n\t{\n\t\tParticipant participant = new Participant(\"Daniel\", 155, Participant.GENDER.MALE, 1);\n\t\tparticipant.setCurrentBeers(2);\n\t\tparticipant.setCurrentWine(2);\n\t\tparticipant.setCurrentCocktails(2);\n\t\tparticipant.setCurrentShots(3);\n\t\t\n\t\tassertEquals(1228, HealthCalculator.caluclateCalories(participant));\n\t}", "@Test //covers loop test with one pass through the loop\n\tpublic void exampleTest() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"+5 Dexterity Vest\", 10, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by one\n\t\tassertEquals(\"Failed quality for Dexterity Vest\", 19, quality);\n\t}", "public void testGetTrial() {\n exp = new Experiment(\"10\");\n ArrayList<Trial> toSet = this.createTrials();\n exp.setTrials(toSet);\n assertEquals(\"getTrial incorrect\", \"id1\", exp.getTrial(\"1\").getProfile().getId());\n assertEquals(\"getTrial incorrect\", \"id2\", exp.getTrial(\"5\").getProfile().getId());\n assertEquals(\"getTrial incorrect\", \"id3\", exp.getTrial(\"11\").getProfile().getId());\n assertEquals(\"getTrial incorrect\", null, exp.getTrial(\"-1\"));\n }", "@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }", "@Test\n void doEffectmachinegun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w14 = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w14);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w14.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia1\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia2\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) {\n System.out.println(\"ERROR\");\n }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n players.clear();\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "@Test\r\n\tpublic void TestDeckSuitCount() {\n\t\ttry {\r\n\t\t\tDeck AKDeck = new Deck();\r\n\t\t\tfor (int i = 13; i >= 0; i--) {\r\n\t\t\t\tassertEquals(i, AKDeck.Count(eSuit.HEARTS));\r\n\t\t\t\tAKDeck.Draw(eSuit.HEARTS);\r\n\t\t\t}\r\n\t\t} catch (DeckException ex) {\r\n\t\t\tSystem.out.println(\"The deck is empty. No more cards can be drawn.\");\r\n\t\t}\r\n\t}", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public void addNumOfActionTaken() {\n this.numOfActionTaken++;\n }", "public static ActionListener clock() {\n\n\t\tActionListener action = new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\trepetitions++;\n\t\t\t\tif((repetitions%(new Integer(getConfiguration().getTiempo())/timerRepeater))==0){\n\t\t\t\t\tFileUtils.createDailyReport(getConfiguration());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t};\n\n\t\treturn action;\n\n\t}", "@Test\n public void testRunScoringScenario() throws Exception\n {\n YahtzeeModel y1 = new YahtzeeModel();\n\n //Turn 1\n y1.getDiceCollection().setValues(1, 1, 3, 3, 3);\n assertEquals(2, y1.scoreOnes());\n //Turn 2\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y1.scoreTwos());\n //Turn 3\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y1.scoreThrees());\n //Turn 4\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreFours());\n //Turn 5\n y1.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y1.scoreFives());\n //Turn 6\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y1.scoreSixes());\n //3 of a kind\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y1.scoreThreeOfAKind());\n //4 of a kind\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y1.scoreFourOfAKind());\n //full house\n y1.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y1.scoreFullHouse());\n //small straight\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y1.scoreSmallStraight());\n //large straight\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreLargeStraight());\n //yahtzee\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(50, y1.scoreYahtzee());\n //chance\n y1.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y1.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y1.scoreBonus());\n\n //verify that the available scoring types has one entry for YAHTZEE since it was scored\n assertEquals(1, y1.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y1.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(151, y1.getScoreCard().getScore());\n\n\n //*** Game 2: 0 Bonus, 2 Yahtzee ***\n YahtzeeModel y2 = new YahtzeeModel();\n\n //Turn 1\n y2.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(50, y2.scoreYahtzee());\n //Turn 2\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y2.scoreTwos());\n //Turn 3\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y2.scoreThrees());\n //Turn 4\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreFours());\n //Turn 5\n y2.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y2.scoreFives());\n //Turn 6\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y2.scoreSixes());\n //3 of a kind\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y2.scoreThreeOfAKind());\n //4 of a kind\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y2.scoreFourOfAKind());\n //full house\n y2.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y2.scoreFullHouse());\n //small straight\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y2.scoreSmallStraight());\n //large straight\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreLargeStraight());\n //yahtzee\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(100, y2.scoreYahtzee());\n //chance\n y2.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y2.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y2.scoreBonus());\n\n //verify that the available scoring types has two entres...\n // one for YAHTZEE and one for ONES\n assertEquals(2, y2.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.ONES));\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(249, y2.getScoreCard().getScore());\n\n //*** Game 3: 1 Bonus, 0 Yahtzee ***\n YahtzeeModel y3 = new YahtzeeModel();\n\n //Turn 1\n y3.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(5, y3.scoreOnes());\n //Turn 2\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y3.scoreTwos());\n //Turn 3\n y3.getDiceCollection().setValues(3, 3, 2, 2, 3);\n assertEquals(9, y3.scoreThrees());\n //Turn 4\n y3.getDiceCollection().setValues(2, 4, 4, 4, 3);\n assertEquals(12, y3.scoreFours());\n //Turn 5\n y3.getDiceCollection().setValues(2, 5, 2, 2, 5);\n assertEquals(10, y3.scoreFives());\n //Turn 6\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y3.scoreSixes());\n //3 of a kind\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y3.scoreThreeOfAKind());\n //4 of a kind\n y3.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y3.scoreFourOfAKind());\n //full house\n y3.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y3.scoreFullHouse());\n //small straight\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y3.scoreSmallStraight());\n //large straight\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y3.scoreLargeStraight());\n //yahtzee\n y3.getDiceCollection().setValues(2, 1, 2, 2, 2);\n assertEquals(0, y3.scoreYahtzee());\n //chance\n y3.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y3.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(35, y3.scoreBonus());\n\n //verify that no scoring types remain\n assertEquals(0, y3.getScoreCard().getAvailableScoreTypes().size());\n\n //verify final score\n assertEquals(162, y3.getScoreCard().getScore());\n }", "public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSystem.out.println(\"Gained 2 experience.\");\t\r\n\t}", "public void incEts() {\n ets++;\n }", "public void testGetAllTrials() {\n exp = new Experiment(\"10\");\n ArrayList<Trial> toSet = this.createTrials();\n exp.setTrials(toSet);\n assertEquals(\"getAllTrials returns wrong amount\", 15, exp.getAllTrials().size());\n assertEquals(\"getAllTrials returns wrong trial\", \"0\", exp.getAllTrials().get(0).getId());\n assertEquals(\"getAllTrials returns wrong trial\", \"14\", exp.getAllTrials().get(exp.getAllTrials().size()-1).getId());\n\n }", "public void repeatNotes()\n {\n int start, end;\n \n printScore(); //prints the current score that we have for the user to reference\n \n System.out.print(\"\\nEnter the note number that starts the repetition > \"); //prompts to enter the start of the repetition\n start = in.nextInt();\n \n System.out.print(\"Enter the note number that ends the repetition > \"); //prompts user to enter the end of the repetition\n end = in.nextInt();\n \n if (start <= score.size() && start > 0 && end <= score.size() && end >= start)\n {\n for (int i = 0; i <= ((end - 1) - (start - 1)); i++)\n {\n Note tempNote = new Note(score.get((start - 1) + i).getNote(), score.get((start - 1) + i).getBeat());\n score.add(tempNote);\n }\n }\n else\n {\n System.out.print(\"Error. \");\n if (end < 1 || end > score.size())\n System.out.println(\"The ending note number is not valid.\");\n else if (start < 1 || start > score.size())\n System.out.println(\"The starting note number is not valid.\");\n else if (start > end)\n System.out.println(\"The starting note number can not be bigger than the ending note number.\"); \n }\n }", "public static void main(String[] args) {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tint limit = sc.nextInt();\r\n\t\tint numEvents = sc.nextInt();\r\n\t\tsc.nextLine();\r\n\t\t\r\n\t\tint peeps = 0;\r\n\t\tint denied = 0;\r\n\t\tfor (int n = 0; n < numEvents; n++){\r\n\t\t\tString action = sc.next();\r\n\t\t\tint num = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\t\r\n\t\t\tif (action.equals(\"enter\"))\r\n\t\t\t\tif (peeps+num <=limit)\r\n\t\t\t\t\tpeeps+=num;\r\n\t\t\t\telse\r\n\t\t\t\t\tdenied++;\r\n\t\t\telse\r\n\t\t\t\tpeeps-=num;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(denied);\r\n\t}", "@Test\n public void testGetNumberDieMoreThanTwoTroops() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 3);\n ValidDieDefendAction action = new ValidDieDefendAction(player, board,\n TerritoryEnum.GREENLAND);\n assertTrue(action.getMaxNumberDie() == 2);\n }", "public void test(int studyReq, int points) {\r\n\t\tdouble score = 0;\r\n\t\ttotalPoints+=points;\r\n\t\tif(testReadiness >= studyReq) {\r\n\t\t\tscore = points;\r\n\t\t\tcurrentPoints+=points;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcurrentPoints+=points - (studyReq - testReadiness);\r\n\t\t\tscore = points - (studyReq - testReadiness);\r\n\t\t}\r\n\t\t\r\n\t\tgrade = currentPoints/totalPoints;\r\n\t\tif(grade < 0) {\r\n\t\t\tgrade = 0;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"You took the test today and got \" + ((score/points) * 100) + \"%\");\r\n\t\tSystem.out.println(\"hours needed: \" + studyReq + \"\\nhours Studied: \" + testReadiness);\r\n\t\ttestReadiness = 0;\r\n\t}", "public CWE insertAdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.insertRepetition(9, rep);\r\n }", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "private void courseEffects() {\n\t\t\n\t}", "public void createCharacters()\n {\n Item item_chambermaid = new Item(\"Broom\",\"The brush that she uses\");\n Item item_bob_taylor = new Item(\"Toys\",\"Bob Taylor toys\");\n Item item_mr_Cunningham = new Item(\"Black hat\",\"The nice hat of Mr Cunningham\");\n Item item_ms_Wellington = new Item(\"Ring\", \"This is the wedding ring\");\n \n // Neutral characters creation //\n mr_Taylor = new Neutral(\"Mr Taylor\",\" \", poolroom, \"..\\\\pictures\\\\Characters\\\\MrTaylor2.png\");\n ms_Taylor = new Neutral(\"Ms Taylor\",\"Oh no ! My poor husband is dead ! What am I going to do now ?!\", poolroom, \"..\\\\pictures\\\\Characters\\\\MsTaylor2.png\");\n ms_Cunningham = new Neutral(\"Ms Cunningham\",\"My husband was the best old friend of Mr Taylor\", poolroom, \"..\\\\pictures\\\\Characters\\\\MsCunningham2.png\");\n \n // Ally characters creation //\n chambermaid = new Ally(\"Chambermaid\",\"I was in the dancing room to serve the guests.I was not with the master\", poolroom, item_chambermaid, \"..\\\\pictures\\\\Characters\\\\Chambermaid.png\");\n bob_Taylor = new Ally(\"Bob Taylor\",\"What happened to my father ? \", poolroom, item_bob_taylor, \"..\\\\pictures\\\\Characters\\\\BobTaylor2.png\");\n mr_Cunningham = new Ally(\"Mr Cunningham\", \"I was in my bedroom when I heard someone screaming. So I went down stairs quickly\", poolroom, item_mr_Cunningham, \"..\\\\pictures\\\\Characters\\\\MrCunningham2.png\");\n ms_Wellington = new Ally(\"Ms Wellington\", \"I was in the dancing room with my husband. The chambermaid served us.\", poolroom, item_ms_Wellington, \"..\\\\pictures\\\\Characters\\\\MsWellington2.png\");\n \n // Enemy characters ceration //\n valet = new Enemy(\"Valet\",\"I was in the kitchen. I checked the wine delivery\", poolroom,4,80,12,\"..\\\\pictures\\\\Characters\\\\Valet2.png\"); // damage =4 accuraccy = 80, HP=12\n caretaker = new Enemy(\"Caretaker\",\"I was in my hut to repair the fork\",poolroom, 2,20,5, \"..\\\\pictures\\\\Characters\\\\Caretaker2.png\"); // damage =2 accuraccy = 20, HP=5\n mr_Wellington = new Enemy(\"Mr Wellington\",\"I was in the dancing room with my wife\", poolroom, 1,10,7, \"..\\\\pictures\\\\Characters\\\\MrWellington2.png\"); // damage =1 accuraccy = 10, HP=7\n nina_Taylor = new Enemy(\"Nina Taylor\", \"I was in the library and I read a good book\", poolroom, 2, 30, 8,\"..\\\\pictures\\\\Characters\\\\NinaTaylor2.png\"); // damage =2 accuraccy = 30, HP=8\n skeleton = new Enemy(\"Oscar the skeleton\",\"A human skeleton\", laboratory, 2, 80, 5,\"..\\\\pictures\\\\Characters\\\\skeleton.png\");\n ghost = new Enemy(\"Casper the Ghost\", \"A little green ghost\", livingroom, 1, 50, 4, \"..\\\\pictures\\\\Characters\\\\ghost.png\");\n \n listOfPNG = new ArrayList();\n listOfPNG.add(ms_Taylor);\n listOfPNG.add(ms_Cunningham);\n listOfPNG.add(chambermaid);\n listOfPNG.add(bob_Taylor);\n listOfPNG.add(mr_Cunningham);\n listOfPNG.add(ms_Wellington);\n //listOfPNG.add(valet);\n //listOfPNG.add(caretaker);\n listOfPNG.add(mr_Wellington);\n listOfPNG.add(nina_Taylor);\n \n \n }", "@Before\n public void setUp(){\n choose = new ChooseDieModifier(new DieReducer());\n }", "public void run(int numTrials) \n {\n\n cumulativeTrials += numTrials;\n\t\n // Creates Random generator object\n\t Random generator = new Random();\n\t\n \n for( int i = 0; i < numTrials ; i++)\n\t { \n\t\t int outcome = generator.nextInt(NUM_OUTCOMES); //generates random numbers [0,1,2,3]\n\t\t switch(outcome)\n\t\t {\n\t\t\t case TWO_TAILS:\tnumTwoTails += 1;\n\t\t\t \t\t break;\n\t\t\t\n\t\t\t case TAIL_HEAD: numHeadTails += 1;\n\t\t\t\t\t break;\n\t\t\t\n\t\t\t case HEAD_TAIL: numHeadTails += 1;\n\t\t\t\t\t break;\n\n\t\t\t case TWO_HEADS: numTwoHeads += 1;\n\t\t\t\t\t break;\n\n\t\t\t default: System.out.println(\"Invalid outcome of two flips!\");\n\t\t }\n\t } \n\t\t\t\t\n }", "@Test\n void doEffectwhisper() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"whisper\");\n Weapon w6 = new Weapon(\"whisper\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w6);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSpawnpoint(2));\n p.getPh().drawWeapon(wd, w6.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 3);\n\n players.get(0).setPlayerPosition(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "public void createRepeatingPayloads(){\n\t\tthis.sets = generateRepeatingPayload();\n\t}", "private void makeKillerEnemys(int n) {\n List<Enemy> enemies = getEnemies();\n\n for (int i = 0; i < n; i++) {\n Random r = new Random();\n //spawn enemies at random position on the map\n enemies.add(new KillerEnemy(getGameView(), r.nextInt((getMap().width - (-getMap().width)) + 1) + (-getMap().width),\n r.nextInt((getMap().height - (-getMap().height)) + 1) + (-getMap().height),\n 100));\n }\n\n setEnemies(enemies);\n }", "private static int experienceTally(int playerExperience, int monsterExperience){\r\n int totalExperience;\r\n totalExperience = playerExperience + monsterExperience;\r\n return totalExperience;\r\n }", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public Repeat(List<Measure> measues){\n\t\tList<Measure> list= new ArrayList<Measure>();\n\t\tlist.addAll(measues);\n\t\tlist.addAll(measues);\n\t\t\n\t\tthis.meas = list;\n\t}", "public Predator reproduce() {\n if(eaten < 2) return null;\n else {\n if ((int) (Math.random() * 100) >= 80) {\n predatorsSpawned++;\n return new Predator(((int) ((speed + Math.random()) * 5)), ((int) (maxEnergy + Math.random()\n * 50)), world, true);\n }\n predatorsSpawned++;\n return new Predator(speed, maxEnergy, world);\n }\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n void addResources() {\n Shelf shelf=new Shelf(3);\n\n shelf.addResources(Resource.SHIELD);\n shelf.addResources(Resource.SHIELD);\n\n assertEquals(2,shelf.getResources().size());\n\n }", "public static void main(String[] args) throws Exception\n {\n\t ContextFactory.createRootContext(new FileContextSource(new File(args[0])));\n Die d = new Die(new CoinjemaContext(args[3]));\n int hits = 0;\n int TO_HIT = Integer.parseInt(args[1]);\n int NUM_ROLLS = Integer.parseInt(args[2]);\n int[] distribution = new int[80];\n int trials = 100000;\n int numHits;\n int result = 0;\n long time = System.nanoTime();\n for (int x = 0; x < trials; x++)\n {\n result = d.roll(6, NUM_ROLLS);\n numHits = (result / TO_HIT);\n hits += numHits; \n distribution[numHits]++;\n }\n System.out.println(\"Took: \" + ((float)(System.nanoTime() - time)/1000000) + \" ms\");\n float average = ((float) ((float) hits / trials));\n System.out.println(\"1000 runs: \\n\\tTo Hit: \" + TO_HIT + \"\\n\\tTotal Hits: \" + hits + \"\\n\\tAverage: \"\n + average + \" hits\");\n System.out.println(\"\\n\\nDistribution\");\n for(int x = 0;x < 80;x++)\n {\n \t if(distribution[x] > 0)\n \t {\n \t\t System.out.print(x);\n \t\t System.out.print(\"\\t\");\n \t }\n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t System.out.print(distribution[x] + \"\\t\"); \t\t \n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t\t System.out.print((int) (.5 + (100 * ((float) distribution[x] / trials))) + \"%\\t\");\n }\n System.out.println(\"\\n\");\n float ratio = (float)NUM_ROLLS/TO_HIT;\n System.out.println(\"Ratio = \" + ratio);\n System.out.println(\"Average/ratio = \" + average/ratio);\n System.out.println(\"predicted average = \" + ((3*NUM_ROLLS)/TO_HIT));\n }", "public void addLife() {lives++;}", "private void makeMeal() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\t\t\n\t\tmeal = new Sprite(3, 3, 27, 24, new Image(\"file:./res/images/meal.png\"), 1, 2100);\n\t\tmeal.setLayoutX(150);\n\t\tmeal.setLayoutY(150);\n\t\tmeal.setScaleX(0.5);\n\t\tmeal.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(meal);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(2100));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(meal);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().eatMeal();\n//\t\t\tif(!model.isHealthy()){\n//\t\t\t\tsetSickImg();\n//\t\t\t}\n\t\t});\n\t\tpause.play();\n\t}", "public void makeFact(Rete rete, String prof, int count, boolean outer) {\n\t\ttry {\n\t\t\t\n\t\t\tFact f = new Fact(\"Loop\", rete);\n\t\t\tf.setSlotValue(\"ID\", new Value(this));\n\t\t\tf.setSlotValue(\"profileID\", new Value(prof, RU.STRING));\n\t\t\tf.setSlotValue(\"outer\", new Value(outer));\n\t\t\tValueVector vv = new ValueVector();\n\t\t\tfor(Iterator itr = getCurves().iterator(); itr.hasNext();)\n\t\t\t{ \n\t\t\t\t\n\t\t\t\t// DSormaz added fro debugging\n\t\t\t\tCurve2d c = (Curve2d)itr.next();\n\t\t\t\tif (c instanceof Line2d) {\n\t\t\t\t\tLine2d line = (Line2d) c;\n\t\t\t\tSystem.out.println (\"dns-> print line normal\" + \"\\n\\tLine \" + line + \"\\n\\tNormal \"+ getLineNormal(line));\n\t\t\t\t}\n\t\t\t\tvv.add(new Value(c));\n\t\t\t}\n\t\t\tf.setSlotValue(\"curves\", new Value(vv, RU.LIST));\n\t\t\trete.assertFact(f);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Test\n void Adventure_ShouldReuseOrderOfRemovedStoryPiecesAndIncrementTheOrderOnlyIfThereAreNoSpareOrdersLeft() {\n for (int i=0; i<5; i++) {\n StoryPiece sp = new StoryPiece();\n defaultAdventure.addStoryPiece(sp);\n }\n\n // Removing StoryPieces with orders 3 and 5\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(2));\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(3));\n\n // Adventure should reuse the unassigned orders before incrementing the order\n StoryPiece spWithOrder3 = new StoryPiece();\n StoryPiece spWithOrder5 = new StoryPiece();\n\n defaultAdventure.addStoryPiece(spWithOrder3);\n defaultAdventure.addStoryPiece(spWithOrder5);\n\n // At this point all orders 1-6 should be assigned, so we expect this to have order 7\n StoryPiece newSP = new StoryPiece();\n defaultAdventure.addStoryPiece(newSP);\n\n assertEquals(3, spWithOrder3.getOrder(),\n \"Order not reused - StoryPiece should have order 3\");\n assertEquals(5, spWithOrder5.getOrder(),\n \"Order not reused, StoryPiece should have order 5\");\n assertEquals(7, newSP.getOrder(),\n \"StoryPiece should have been assigned a new incremented order 7.\");\n\n }", "private String getTextCount(int conut, String name) {\n for (int i = 0; i < conut; i++) {\r\n name = name + \" \";\r\n }\r\n return name;\r\n }", "int getExamplesCount();", "int getExamplesCount();", "private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }", "static void generateQuestions(int numQuestions, int selection, String fileName, String points) {\n String finalAnswers = \"\";\n switch (selection) {\n case 1:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += one(points);\n }\n break;\n case 2:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += two(points);\n }\n break;\n case 3:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += three(points);\n }\n break;\n case 4:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += four(points);\n }\n break;\n default:\n System.out.println(\"Wrong selection. Please try again\");\n break;\n }\n writeAnswers(fileName, finalAnswers);\n }", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public void setRuns(int runs);", "protected void generateElites(int count)\n {\n ArrayList<MonsterInfo> monsters = new ArrayList<>();\n monsters.add(new MonsterInfo(JungleEncounterIDList.MAMA_SNECKO_ENCOUNTER_ID, 1.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.CASSACARA_ENCOUNTER_ID, 1.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.TWO_PHROGS_ENCOUNTER_ID, 1.0f));\n MonsterInfo.normalizeWeights(monsters);\n populateMonsterList(monsters, count, true);\n }", "@Test\n\tpublic void testWheatEatenByRats1() throws GameControlException {\n\t\tint result = GameControl.wheatEatenByRats(15, 25, 8, 5, 4, 2700);\n\t\tassertEquals(108, result);\n\t}", "@Test\n public void setterInvocationIncrementsCounter() {\n\n final Knife knife1 = new ButterKnife();\n final Knife knife2 = new ButterKnife();\n final Knife knife3 = new ButterKnife();\n final Knife knife4 = new ButterKnife();\n\n final HairSplitter hairSplitter = new HairSplitter();\n\n assertEquals(0, hairSplitter.getNumberOfTimesSetKnifeCalled());\n\n hairSplitter.setKnife(knife1);\n\n assertEquals(1, hairSplitter.getNumberOfTimesSetKnifeCalled());\n\n hairSplitter.setKnife(knife2);\n hairSplitter.setKnife(knife3);\n\n assertEquals(3, hairSplitter.getNumberOfTimesSetKnifeCalled());\n\n hairSplitter.setKnife(knife4);\n assertEquals(4, hairSplitter.getNumberOfTimesSetKnifeCalled());\n }", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "@Override\n\tpublic void setEnemyCount(int n) {\n\t\t\n\t}", "long countByExample(IymDefAssignmentExample example);", "public int eatSlice(int slices) {\n if (slices > this.slices) {\n System.out.println(\"Pizza's all gone\");\n return 0;\n }\n System.out.println(\"You have eaten\" + slices + \" of \" + Arrays.toString(this.toppings) + \" pizza\");\n this.slices -= slices;\n return this.slices;\n }", "public void testAddTrial() {\n exp = new Experiment(\"10\");\n TrialCount trial = new TrialCount(\"109\", new GeoLocation(0.0, 0.0), new Profile());\n exp.addTrial(trial);\n assertEquals(\"addTrial does not work\", \"109\", exp.getTrial(\"109\").getId());\n assertEquals(\"addTrial does not work\", null, exp.getTrial(\"109\").getProfile().getId());\n }", "public Jugador (String name, int trys) {\n this.name = name;\n this.trys = trys;\n }", "@Test\n public void advancedRepeatTest(){\n \n testMaterialConstructor();\n ArrayList<String> voiceNames = new ArrayList<String>();\n voiceNames.add(\"Aziz\");\n \n ArrayList<BarLineObject> objs = new ArrayList<BarLineObject>();\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(plainBar);\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(endBar);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(C);\n objs.add(r1Bar);\n objs.add(C);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(r2Bar);\n objs.add(C);\n objs.add(E);\n objs.add(E);\n objs.add(E);\n objs.add(repeatBar);\n \n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(repeatStart);\n objs.add(G);\n objs.add(C);\n objs.add(C);\n objs.add(G);\n objs.add(repeatBar);\n \n \n \n Parser2 myParser2 = new Parser2(voiceNames,1,1);\n myParser2.parse(objs);\n ArrayList<Voice> voices = myParser2.getVoices();\n\n Song lalala = new Song(voices);\n \n SequencePlayer sqPlayer;\n try {\n sqPlayer = new SequencePlayer(140, lalala.getMinTicksPerQuarter());\n myPlayer MrAhmed = new myPlayer(\"C\", sqPlayer);\n lalala.addToPlayer(MrAhmed);\n sqPlayer.play();\n \n } catch (MidiUnavailableException e) {\n e.printStackTrace();\n } catch (InvalidMidiDataException e) {\n e.printStackTrace();\n }\n \n }", "public static void main(String[] args) {\n\n PlantFactory pf = new PlantFactory();\n for(int number = 0; number < 5; number++) {\n Corn newCorn = pf.getCorn();\n if(newCorn == null) break;\n\n PlantField.cornList.add(newCorn);\n }\n for(int number = 0;number < 10; number++) {\n Rice newRice = pf.getRice();\n if(newRice == null) break;\n\n PlantField.riceList.add(newRice);\n }\n for(int number = 0;number < 2;number++) {\n Pasture newPasture = pf.getPasture();\n if(newPasture == null) break;\n\n PlantField.pastureList.add(newPasture);\n }\n\n // Now we got different plants!\n show();\n\n // Let's fertilize those plants!\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n\n // Let's try to fertilize them again.\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Rice item : PlantField.riceList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n System.out.println(\"\\nLet's harvest them!\");\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n for(Rice item : PlantField.riceList){\n item.harvested();\n }\n for(Pasture item : PlantField.pastureList){\n item.harvested();\n }\n\n show();\n\n // Maybe we need to buy some seeds.\n\n // Oops, those corns and rices need to be pollinated.\n for(Corn item : PlantField.cornList){ // corn and rise need to be poll\n PollinationStrategy ps = new SpontaneousPollination();\n ps.pollinate(item);\n }\n\n // We just pollinated those corns. Let's harvest them!\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n\n show();\n// ------\n // Take a look at those dead plant.\n for(Corn item : PlantField.cornList){\n item.harvested();\n item.fertilized();\n PollinationStrategy ps = new ArtificialPollination();\n ps.pollinate(item);\n }\n\n // plantTest completed successfully\n }", "public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public int getNumberOfSets();", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "int countByExample(CraftAdvReqExample example);" ]
[ "0.7105145", "0.6336987", "0.59226525", "0.55203366", "0.5364708", "0.53631777", "0.531812", "0.5292418", "0.5258188", "0.524501", "0.523536", "0.52194124", "0.5177578", "0.51775265", "0.5172122", "0.51629883", "0.51541466", "0.51535827", "0.5150157", "0.5109504", "0.50901324", "0.50744045", "0.5019622", "0.50056106", "0.4997557", "0.49920154", "0.4980412", "0.4969201", "0.49632984", "0.49596027", "0.4949366", "0.4939568", "0.4938067", "0.4912828", "0.48878497", "0.48874977", "0.48758355", "0.48746583", "0.48667672", "0.4858479", "0.4853467", "0.48448604", "0.48390445", "0.48373106", "0.48350212", "0.4828031", "0.4827741", "0.4811311", "0.4797073", "0.47920108", "0.4791395", "0.47908875", "0.47878045", "0.47866338", "0.4778202", "0.4773665", "0.47722685", "0.476532", "0.47650558", "0.47615653", "0.4759161", "0.4754019", "0.4746509", "0.47446257", "0.47387", "0.4736579", "0.4733212", "0.47322455", "0.4730475", "0.47290468", "0.47200245", "0.47146955", "0.46930027", "0.4691051", "0.46881473", "0.46844634", "0.46835315", "0.46829844", "0.46770775", "0.46770775", "0.46740848", "0.467102", "0.4659965", "0.46554992", "0.46547136", "0.46506026", "0.464807", "0.46454862", "0.46393126", "0.46384582", "0.46377108", "0.46375898", "0.46364012", "0.46359828", "0.46322015", "0.46257588", "0.46244985", "0.462147", "0.4616294", "0.4612895" ]
0.7362926
0
we can't be create abstract class's object abs_c_a o=new abs_c_a(); o.fun();
public static void main(String[] args) { abs_c_b obj=new abs_c_b(); obj.fun(); obj.fun1(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract C mo29734a();", "abc createabc();", "public abstract B zzjo();", "public abstract void mo102899a();", "public static void main(String[] args) {\n\n A obj = new A(){\n void fun1() {\n System.out.println(\"Anonumous Overidden method \");\n }\n // can't create \n // void fun2(){\n // System.out.println(\"fun2 method \");\n // }\n };\n obj.fun1(); // Anonymous Overidden method \n\n\n C obj2 = new C(){\n void funC1(){\n System.out.println(\"func1 \");\n }\n void funC2(){\n System.out.println(\"func2 \");\n }\n };\n obj2.funC1();//func1\n obj2.funC2(); //func2\n }", "public abstract Object mo1771a();", "public static void main(String[] args) {\nAbs a=new Abs();\r\na.k();\r\na.m();\r\na.n();\r\n\t}", "public abstract void mo1184a(Object obj);", "public static a c() {\n }", "public abstract boolean a(C c);", "public abstract Object mo26777y();", "A createA();", "public abstract T a();", "public abstract int a();", "public abstract void abstractone();", "public abstract void mo4359a();", "public static void main(String[] args) {\n\t\t\n\tbankAccount ba = new bankAccount();\n\t\n\tcheckingAccount ca = new checkingAccount();\n\t// after checkingAccount class when i extends with bankaccount class \n\t// now if i call ca. it will be connect with bankAccount class...which called inheritance..\n\t\n\tsavingAccount sa = new savingAccount();\n\t// sa. that means this savingAccount class have accesss savingAccount and bankAccount\n\t// caz i extends checkingAccount class with savingAccount......\n\t\n\tba.checkAccount();\n\tba.depositMoney();\n//.......this is abstruct idea..........................................//\n\t\n\t//Before absturct i can creat an object of the class...\n\t\n\tAbstract_class ac = new Abstract_class();\n\t\n\t\n\t// i cant not creat it caz the abastract......\n\t//Abstract1_class ac = new Abstract1_class();\n\t\n\t}", "abstract void sub();", "public abstract Object mo1185b();", "public abstract void mo30696a();", "public Fun_yet_extremely_useless()\n {\n\n }", "public abstract int c();", "public abstract int c();", "public static interface _cls1\n{\n\n public static final _cls1 a = new aky.f() {\n\n public alb a(alb alb)\n {\n return alb;\n }\n\n };\n\n public abstract alb a(alb alb);\n\n}", "public static aa a() {\n }", "public abstract Anuncio creaAnuncioGeneral();", "public abstract B zzt(Object obj);", "public abstract String a();", "public abstract T zzs(Object obj);", "public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public abstract void mo3994a();", "public abstract void mo27464a();", "public abstract void afvuren();", "public OOP_207(){\n\n }", "@Override\n\tpublic void absMethod() {\n\t\tSystem.out.println(\"This is extends from AbstactClass.\");\n\t\t\n\t}", "public abstract void t3();", "private abstract void privateabstract();", "public abstract void mo70713b();", "public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}", "public abstract boolean a();", "public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }", "public abstract void m15813a();", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public static void main(String[] args) {\n\t\tAbstractClassMain absMain = new AbstractClassMain();\n\t\t\n\t\t// Can't create objects to Abstract class\n\t\t// AbstractClass abs = new AbstractClass();\n\t\t\n\t\t// AbstractClassMain object is auto-upcasted to AbstractClass\n\t\tAbstractClass abs1 = absMain;\n\t\tabs1.abstractMethod();\n\t}", "public bcm a(World paramaqu, int paramInt)\r\n/* 41: */ {\r\n/* 42:56 */ return new bdj();\r\n/* 43: */ }", "public static void main(String[] args) {\nABC d= new ABC()\n{\n\tpublic void show() \n\t{\n\t\tSystem.out.println(\" i am in the B\"); \n\t}\n};\nd.show();\n\n\t}", "public boolean isAbstract()\n/* */ {\n/* 146 */ return false;\n/* */ }", "Oracion createOracion();", "public abstract void mo35054b();", "public abstract void mh();", "public T caseAbstractDefinition(AbstractDefinition object)\n {\n return null;\n }", "FunCall createFunCall();", "AbsDemo1()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"cons of AbsDemo1\");\r\n\t\t}", "public Shape(){\n\t\t//System.out.println(\"This is abstract class Shape\");\n\t}", "public abstract Anuncio creaAnuncioTematico();", "public abstract void t1();", "protected MyAbstractClass(){\n}", "private void load() {\n\t\ttry {\r\n\t\t\tA a = new A();\r\n\t\t\ta.action();\r\n\t\t\tSystem.out.println(\"********下面为静态*********\");\r\n\t\t\tString name = a.getClass().getName();\r\n//\t\t\tClass aClass = Class.forName(\"com.guonl.dynamic.A\");\r\n\t\t\tClass<?> aClass = Class.forName(name);\r\n\t\t\tIC ic = (IC)aClass.newInstance();\r\n\t\t\tic.action();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void mo27386d();", "public a mo8520o() {\n return new a();\n }", "protected abstract void construct();", "public AbstractT153()\n {\n }", "public abstract void mo27385c();", "abstract int pregnancy();", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public abstract void t2();", "public static void main(String[] args) {\n\t\tB obj=new B();\r\n\t\tobj.fun();\r\n\t\tobj.fun1();\r\n\t\tC obj1=new C();\r\n\t\tobj1.fun();\r\n\t\tobj1.fun1();\r\n\t\tobj1.fun2();\r\n\t\t\r\n\t\t}", "public static void main(String args[]) throws Exception{\n DifferentMethods_2 d2 = new DifferentMethods_2();\r\n d2.createObject();\r\n //Exception d = new Exception();\r\n //throw d;//throws exception as declared above\r\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public static void main(String[] args) \n {\n Bike2 b = new AbstracTest();\n b.run();\n new AbstracTest().run(); //objeto anonimo\n }", "public Object aj() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "int main() \n{\n clas s;\n s.cal();\n return 0;\n}", "public abstract C14408a mo11607a();", "public abstract C13619e mo34787a();", "public interface AbstractC0537ba {\n public static final AbstractC0537ba A00 = new C1195uw();\n\n List A3h(C0544bh bhVar);\n}", "public abstract void mo45765b();", "public void noabstractone() {\n\t\tSystem.out.println(\"No Abstract\");\n\t}", "public abstract void mo56925d();", "private zza.zza()\n\t\t{\n\t\t}", "O() { super(null); }", "public interface AbstractC0211Dj0 {\n void a(int i);\n}", "public abstract int zzbej();", "public abstract void mo4370a(zzud zzud);", "public abstract void mo2150a();", "public abstract View a(Object obj);", "public abstract void create();", "public FnNull(){\n\t}", "public abstract int b();", "public interface AbstractC2883ha {\n boolean a();\n}", "public interface AbstractC03680oI {\n}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public abstract void mo42329d();", "public static void main(String[] args) {\nA a=new A();\r\na.m();\r\n\t}", "public lo() {}", "abstract void m1();", "public interface AbstractC0273Ek {\n void e();\n}", "public abstract void mo42330e();", "public abstract void test();", "public abstract void test();" ]
[ "0.62672055", "0.61001235", "0.6099539", "0.59949243", "0.5983231", "0.5972743", "0.5953665", "0.5859444", "0.58337504", "0.5762877", "0.57422364", "0.57421404", "0.5702014", "0.5678995", "0.5619356", "0.55967855", "0.55952436", "0.55514926", "0.55503404", "0.55486995", "0.5541881", "0.5530864", "0.5530864", "0.5527901", "0.5507913", "0.55072623", "0.55016935", "0.5492919", "0.54896677", "0.5484104", "0.54667836", "0.5452414", "0.5444141", "0.54395247", "0.54218805", "0.54098827", "0.54058176", "0.5405428", "0.5404079", "0.540174", "0.53946", "0.53879905", "0.5383591", "0.53831583", "0.53787655", "0.537409", "0.53739196", "0.53704894", "0.53670686", "0.53556067", "0.535376", "0.53389144", "0.53358376", "0.53272074", "0.5323227", "0.53201663", "0.5291007", "0.52844", "0.527817", "0.52747285", "0.5270875", "0.5268608", "0.52661496", "0.5265776", "0.52560747", "0.52358603", "0.52337915", "0.523295", "0.5228431", "0.5225478", "0.5219762", "0.5217065", "0.52060664", "0.52027583", "0.52025664", "0.5196097", "0.5191871", "0.5189604", "0.5184905", "0.5180477", "0.51680934", "0.51623374", "0.5161333", "0.51532125", "0.51474893", "0.5147119", "0.5139378", "0.5139315", "0.5136268", "0.51351506", "0.5125576", "0.51241803", "0.51167566", "0.5110683", "0.5107284", "0.5103266", "0.5103243", "0.5099788", "0.5096397", "0.5096397" ]
0.63447857
0
Interface for class that provides name for method parameters.
public interface NameFactory { /** * Returns a unique (descriptive?) parameter name for the specified * type. * * @param sig - signature of the declaring method * @param n - the parameter number whose name we want. * @return a made up name for the n'th parameter */ public String getParameterName(Signature sig, int n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Named {\r\n public void setNameParameter(String o);\r\n public String getNameParameter();\r\n}", "public interface ParameterNameDiscoverer {\n\n\t/**\n\t * Return parameter names for a method, or {@code null} if they cannot be determined.\n\t * <p>Individual entries in the array may be {@code null} if parameter names are only\n\t * available for some parameters of the given method but not for others. However,\n\t * it is recommended to use stub parameter names instead wherever feasible.\n\t * @param method the method to find parameter names for\n\t * @return an array of parameter names if the names can be resolved,\n\t * or {@code null} if they cannot\n\t */\n\t@Nullable\n\tString[] getParameterNames(Method method);\n\n\t/**\n\t * Return parameter names for a constructor, or {@code null} if they cannot be determined.\n\t * <p>Individual entries in the array may be {@code null} if parameter names are only\n\t * available for some parameters of the given constructor but not for others. However,\n\t * it is recommended to use stub parameter names instead wherever feasible.\n\t * @param ctor the constructor to find parameter names for\n\t * @return an array of parameter names if the names can be resolved,\n\t * or {@code null} if they cannot\n\t */\n\t@Nullable\n\tString[] getParameterNames(Constructor<?> ctor);\n\n}", "@Override\n protected String getName() {return _parms.name;}", "java.lang.String getParameterName();", "public interface QueryParameter {\n\n String getName();\n}", "private String getName() {\n return method.getName();\n }", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\tString name();", "abstract public String named();", "protected abstract String name ();", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "abstract String name();", "public abstract String[] getMethodNames();", "public abstract String name();", "public abstract String name();", "public abstract String name();", "public abstract String name();", "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n String getName();", "HxParameter createParameter(final String className);", "@Override\n public String getName();", "@Override\n public abstract String getName();", "abstract String getName();", "@Override\r\n String getName();", "@Override\n public abstract String getName();", "public abstract String Name();", "public String getMethodName(Class<?> type, String methodName, Class<?>... params);", "abstract public String name();", "ClassType memberClassNamed(String name);", "SimpleName getName();", "public interface Params {\n }", "protected abstract String getName();", "public $type $name () {\n }", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public abstract String getName();", "public interface ParameterGenerator {\n\n String generateArgs(Parameter parameter);\n\n String generateFieldDeclaration(Parameter parameter);\n\n String generateConstructorParameter(Parameter parameter);\n\n// String generateFieldAssignment(Parameter parameter);\n\n String generateWidget(Parameter parameter);\n\n String generateDescriptorMethod(Parameter parameter);\n\n String generateFinallyBlock(Parameter parameter);\n\n}", "void getName(String name);", "public abstract String getSimpleName( );", "NamedParameter createNamedParameter();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();" ]
[ "0.69504136", "0.65725577", "0.6522553", "0.63537014", "0.6232523", "0.62293696", "0.62291837", "0.62134004", "0.6202442", "0.6192671", "0.6184329", "0.6167941", "0.61286485", "0.6066478", "0.6066478", "0.6066478", "0.6066478", "0.6065685", "0.6004743", "0.596639", "0.5959024", "0.5944584", "0.5941373", "0.59126467", "0.5907048", "0.5895314", "0.58881056", "0.58856183", "0.58726424", "0.58713573", "0.586625", "0.5847592", "0.5821162", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.5818804", "0.57707274", "0.5764036", "0.57616574", "0.57547164", "0.57543164", "0.57543164", "0.57543164", "0.57543164", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225", "0.57346225" ]
0.73034686
0
Returns a unique (descriptive?) parameter name for the specified type.
public String getParameterName(Signature sig, int n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public interface NameFactory\n{\n /**\n * Returns a unique (descriptive?) parameter name for the specified\n * type.\n *\n * @param sig - signature of the declaring method\n * @param n - the parameter number whose name we want.\n * @return a made up name for the n'th parameter\n */\n public String getParameterName(Signature sig, int n);\n}", "java.lang.String getParameterName();", "public String getParameterType() { return parameterType; }", "public java.lang.String getParameterName() {\n java.lang.Object ref = parameterName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n parameterName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getParameterName() {\n java.lang.Object ref = parameterName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n parameterName_ = s;\n }\n return s;\n }\n }", "public ParameterType getType();", "String typeName();", "public String getParameterName(int index) {\n List<? extends VariableElement> parameters = executable.getParameters();\n String name = parameters.get(index).getSimpleName().toString();\n return name;\n }", "int getParamType(String type);", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "com.google.protobuf.ByteString getParameterNameBytes();", "private String nameFor(Class<?> type) {\n String typeName = type.getName();\n if (typeName.startsWith(\"java.\") || (type.getPackage() != null && type.getPackage().isSealed())) {\n typeName = \"codegen.\" + typeName;\n }\n return String.format(\"%s$%s$%d\", typeName, \"MockitoMock\", Math.abs(random.nextInt()));\n }", "public String getName() {\n return type.toString();\n }", "public String getParameterName( )\n {\n return _strParameterName;\n }", "public String getParameterName()\n {\n checkPrecondition(hasParameterName(), \"no parameter name\");\n return this.paramName;\n }", "char[][] getTypeParameterNames();", "private static String getSqlParameter(String type) {\n switch (type) {\n case \"boolean\":\n case \"java.lang.Boolean\":\n return \"BOOLEAN\";\n case \"byte\":\n case \"java.lang.Byte\":\n return \"TINYINT\";\n case \"short\":\n case \"java.lang.Short\":\n return \"SMALLINT\";\n case \"int\":\n case \"java.lang.Integer\":\n return \"INTEGER\";\n case \"long\":\n case \"java.lang.Long\":\n return \"BIGINT\";\n case \"float\":\n case \"java.lang.Float\":\n return \"FLOAT\";\n case \"double\":\n case \"java.lang.Double\":\n return \"DOUBLE\";\n case \"byte[]\":\n case \"java.lang.Byte[]\":\n return \"BINARY\";\n case \"java.lang.String\":\n return \"VARCHAR\";\n case \"java.sql.Date\":\n return \"DATE\";\n case \"java.sql.Timestamp\":\n return \"TIMESTAMP\";\n case \"java.sql.Time\":\n return \"TIME\";\n case \"java.math.BigDecimal\":\n return \"DOUBLE\";\n default:\n if (type.contains(\"[]\")) {\n return \"ARRAY\";\n }\n\n throw new RuntimeException(\"Unknown SqlType: \" + type);\n }\n }", "public String getTypeName() {\n return type.name();\n }", "private String getTypeName(Type node) {\n\t\tif (node.isArrayType()) {\n\t\t\tArrayType type = (ArrayType) node;\n\t\t\treturn getTypeName(type.getComponentType());\n\t\t}\n\t\t//if it's parameterized, get the argument type and continue judgment\n\t\telse if (node.isParameterizedType()) {\n\t\t\tParameterizedType type = (ParameterizedType) node;\n\t\t\tfor (Object o: type.typeArguments()) {\n\t\t\t\tType t = (Type)o;\n\t\t\t\treturn getTypeName(t);\n\t\t\t}\n\t\t}\n\t\t//if it's a simple type\n\t\telse if (node.isSimpleType()) {\n\t\t\treturn node.toString();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "String getIdentifierName(String name, String type);", "protected static String getQuestionTypeName (SurveyQuestion.Type type)\n {\n switch (type) {\n case BOOLEAN:\n return _msgs.questionTypeBoolean();\n case EXCLUSIVE_CHOICE:\n return _msgs.questionTypeExclusiveChoice();\n case FREE_FORM:\n return _msgs.questionTypeFreeForm();\n case RATING:\n return _msgs.questionTypeRating();\n case SUBSET_CHOICE:\n return _msgs.questionTypeSubset();\n }\n return type.toString();\n }", "public ParameterId(String pName, String paramType) {\n\t\tthis.pName = pName;\n\t\tthis.paramType = paramType;\n\t}", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}", "@NotNull\n private static String maybeName(@NotNull String parameterName) {\n return compiler.parametersOptionSupported() ? String.format(\" '%s'\", parameterName) : \"\";\n }", "@Override\n public String getName() {\n return type.getName();\n }", "public PropertyName _findParamName(AnnotatedParameter param, AnnotationIntrospector intr) {\n if (!(param == null || intr == null)) {\n PropertyName name = intr.findNameForDeserialization(param);\n if (name != null) {\n return name;\n }\n String str = intr.findImplicitPropertyName(param);\n if (str != null && !str.isEmpty()) {\n return PropertyName.construct(str);\n }\n }\n return null;\n }", "public com.google.protobuf.ByteString getParameterNameBytes() {\n java.lang.Object ref = parameterName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n parameterName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PropertyName _findImplicitParamName(AnnotatedParameter param, AnnotationIntrospector intr) {\n String str = intr.findImplicitPropertyName(param);\n if (str == null || str.isEmpty()) {\n return null;\n }\n return PropertyName.construct(str);\n }", "public com.google.protobuf.ByteString getParameterNameBytes() {\n java.lang.Object ref = parameterName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n parameterName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getParameterName()\r\n\t{\r\n\t\treturn this.paramName;\r\n\t}", "public String getMethodName(Class<?> type, String methodName, Class<?>... params);", "@NonNull\n public static String createTypeParametersString(@NonNull TypeVariable<?>[] typeParameters, @NonNull Set<@NonNull Class<?>> declaredClasses) {\n StringBuilder builder = new StringBuilder();\n\n StringBuilderUtils.appendTypeParametersString(typeParameters, typeVariable -> {\n builder.append(typeVariable.getName());\n StringBuilderUtils.appendBoundsString(typeVariable.getBounds(), true, declaredClasses, builder);\n }, builder);\n\n return builder.toString();\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "public String getParameterName(int index) {\n\treturn (String) _parameters.get(index);\n }", "public String getTypeName();", "public String getTypeName();", "public String getFullSQLTypeName() {\r\n StringBuffer sbuf = new StringBuffer(typeId.getSQLTypeName());\r\n if (typeId.isDecimalTypeId() || typeId.isNumericTypeId()) {\r\n sbuf.append(\"(\");\r\n sbuf.append(getPrecision());\r\n sbuf.append(\", \");\r\n sbuf.append(getScale());\r\n sbuf.append(\")\");\r\n }\r\n else if (typeId.isIntervalTypeId()) {\r\n if (typeId == TypeId.INTERVAL_SECOND_ID) {\r\n if (getPrecision() > 0) {\r\n sbuf.append(\"(\");\r\n sbuf.append(getPrecision());\r\n if (getScale() > 0) {\r\n sbuf.append(\", \");\r\n sbuf.append(getScale());\r\n }\r\n sbuf.append(\")\");\r\n }\r\n }\r\n else {\r\n if (getPrecision() > 0) {\r\n int idx = sbuf.indexOf(\" \", 9);\r\n if (idx < 0) idx = sbuf.length();\r\n sbuf.insert(idx, \")\");\r\n sbuf.insert(idx, getPrecision());\r\n sbuf.insert(idx, \"(\");\r\n }\r\n if (getScale() > 0) {\r\n sbuf.append(\"(\");\r\n sbuf.append(getScale());\r\n sbuf.append(\")\");\r\n }\r\n }\r\n }\r\n else if (typeId.variableLength()) {\r\n sbuf.append(\"(\");\r\n sbuf.append(getMaximumWidth());\r\n sbuf.append(\")\");\r\n }\r\n\r\n return sbuf.toString();\r\n }", "String provideType();", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "public static synchronized String getG_SetterName(String p, String type) {\r\n\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(type);//'get' or 'set'\r\n sb.append(Character.toUpperCase(p.charAt(0)));\r\n sb.append(p.substring(1));\r\n\r\n return sb.toString();\r\n }", "public void addParam(Class type) {\n addParam(type.getName());\n }", "String getParam( String paraName );", "public String getTypeName(String type) {\n return m_importsTracker.getName(type);\n }", "public String getNameFromType(Type type) {\n\t\tif (type == Type.PURCHASE)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public String qname(Type type) {\n return type.kit().name() + \"_\" + type.name();\n }", "public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }", "public java.lang.String getParameterId() {\n java.lang.Object ref = parameterId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n parameterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFieldName(Class<?> type, String fieldName);", "private String defineName(final TypeMirror typeMirror, final TypeNodeKind typeNodeKind, final TypeScriptType typeScriptTypeAnnotation) {\n if (typeScriptTypeAnnotation != null) {\n final String typeFromAnnotation = defineTypeFromAnnotation(typeScriptTypeAnnotation);\n if (!UNDEFINED.equals(typeFromAnnotation)) {\n return typeFromAnnotation;\n }\n }\n\n final String name;\n switch (typeNodeKind) {\n case ARRAY:\n name = defineNameFromArrayType((ArrayType) typeMirror);\n break;\n case COLLECTION:\n name = defineNameFromCollectionType((DeclaredType) typeMirror);\n break;\n case MAP:\n name = defineNameFromMapType((DeclaredType) typeMirror);\n break;\n case SIMPLE:\n default:\n name = defineNameFromSimpleType(typeMirror);\n break;\n }\n return name;\n }", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getParamAsString(String paramName);", "@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }", "public String getParamName() {\n return paramName;\n }", "public String getParameterName() {\n return this.parameterName;\n }", "@java.lang.Override\n public java.lang.String getParameterId() {\n java.lang.Object ref = parameterId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n parameterId_ = s;\n return s;\n }\n }", "@NonNull\n public static String getTypeName(@NonNull Type type, @NonNull Set<@NonNull Class<?>> declaredClasses) {\n if (type instanceof WildcardType) {\n StringBuilder builder = new StringBuilder();\n\n WildcardType wildcardType = (WildcardType) type;\n builder.append(JavaGrammarTerminals.WILD_CARD);\n StringBuilderUtils.appendBoundsString(wildcardType.getUpperBounds(), true, declaredClasses, builder);\n StringBuilderUtils.appendBoundsString(wildcardType.getLowerBounds(), false, declaredClasses, builder);\n\n return builder.toString();\n }\n\n if (type instanceof ParameterizedType) {\n StringBuilder builder = new StringBuilder();\n\n ParameterizedType parameterizedType = (ParameterizedType) type;\n builder.append(getSimpleName(parameterizedType.getRawType(), declaredClasses));\n StringBuilderUtils.appendTypeParametersString(parameterizedType.getActualTypeArguments(),\n typeArgument -> builder.append(getTypeName(typeArgument, declaredClasses)),\n builder);\n\n return builder.toString();\n }\n\n return getSimpleName(type, declaredClasses);\n }", "public String getTypeName() {\n \treturn typeName;\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public abstract String getTypeName();", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\tpublic java.lang.String getTypeName() {\n\t\treturn _permissionType.getTypeName();\n\t}", "public static String getKeyTypeName(KeyType type)\n {\n // TODO: should be moved to DBProvider ...\n // MySQL : key identifier\n // SQLServer : key identifier\n // Derby : key identifier\n // PostgreSQL: key identifier\n switch (type) {\n // MySQL: key types ...\n case PRIMARY : return \"PRIMARY KEY\"; // table\n case UNIQUE : return \"UNIQUE\"; // table\n case INDEX : return \"INDEX\"; // table/index\n case UNIQUE_INDEX : return \"UNIQUE INDEX\"; // table/index\n default : return \"UNKNOWN\";\n }\n }", "public String getParameterName() {\n return parameterName;\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "String toParameter();", "public String getParameterName()\n {\n return parameterName;\n }", "java.lang.String getParameterId();", "@Override\n protected String getName() {return _parms.name;}", "@objid (\"c9430e32-5923-4873-9196-70620b195552\")\n public String getPatternParameterName() {\n return this.elt.getTagValue(PatternParameter.MdaTypes.PATTERNPARAMETER_NAME_TAGTYPE_ELT);\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "String getTypeAsString();", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }", "public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public String getParameterName() {\r\n return parameterName;\r\n }", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public static String getElementName(String type) {\n switch(type){\n case(\"1\"):\n return \"Kinetic\";\n case(\"2\"):\n return \"Arc\";\n case(\"3\"):\n return \"Solar\";\n case(\"4\"):\n return \"Void\";\n default:\n return \"Damage Type Not Found\";\n }\n }", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "@Override\n public String toParamName(String name) {\n name = name.replaceAll(\"-\", \"_\");\n\n // if it's all uppper case, do nothing\n if (name.matches(\"^[A-Z_]*$\")) {\n return name;\n }\n\n // camelize(lower) the variable name\n // pet_id => petId\n name = camelize(name, true);\n\n // for reserved word or word starting with number, append _\n if (reservedWords.contains(name) || name.matches(\"^\\\\d.*\")) {\n name = escapeReservedWord(name);\n }\n\n return name;\n }", "public void completeParameterType_PName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t\t// subclasses may override\n\t\t// subclasses may override\n\t\t// subclasses may override\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public String getpermitTypeName() {\n return (String) getAttributeInternal(PERMITTYPENAME);\n }", "public String getParameterName() {\n\t\treturn parameterName;\n\t}", "private String _getName(int classType, int index) {\n String name;\n\n switch (classType) {\n case CS_C_UNIV:\n name = _getRelativeName(classType, index);\n break;\n case CS_C_DEPT:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_UNIV].count - 1);\n break;\n //NOTE: Assume departments with the same index share the same pool of courses and researches\n case CS_C_COURSE:\n case CS_C_GRADCOURSE:\n case CS_C_RESEARCH:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_DEPT].count - 1);\n break;\n default:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_DEPT].count - 1) + INDEX_DELIMITER +\n (instances_[CS_C_UNIV].count - 1);\n break;\n }\n\n return name;\n }", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "String buildLabelFromType(String type);", "static final String typeToString(int type) {\n switch (type) {\n case (UNKNOWN): return \"UNKNOWN\";\n case (STRING_FIELD): return \"STRING_FIELD\";\n case (NUMERIC_FIELD): return \"NUMERIC_FIELD\";\n case (DATE_FIELD): return \"DATE_FIELD\";\n case (TIME_FIELD): return \"TIME_FIELD\";\n case (DATE_TIME_FIELD): return \"DATE_TIME_FIELD\";\n case (TIMESTAMP_FIELD): return \"TIMESTAMP_FIELD\";\n default: return \"NOT_DEFINED\";\n }\n }" ]
[ "0.6798415", "0.6736016", "0.65995026", "0.65375453", "0.6288065", "0.6283707", "0.6259065", "0.62327015", "0.62086964", "0.61534536", "0.6095905", "0.6095905", "0.6085492", "0.60844916", "0.60829777", "0.6078431", "0.60621667", "0.605868", "0.59516585", "0.59305835", "0.59272414", "0.59215146", "0.5902297", "0.58765894", "0.58720106", "0.5839869", "0.5810984", "0.58082515", "0.57951117", "0.57876134", "0.5762656", "0.57350314", "0.573189", "0.5723512", "0.5721981", "0.5703671", "0.5681468", "0.5681342", "0.56794244", "0.56794244", "0.5670775", "0.5654103", "0.56446743", "0.5640353", "0.56325585", "0.5621942", "0.5605831", "0.5598629", "0.559564", "0.5590611", "0.5587787", "0.5570315", "0.5538497", "0.55305666", "0.55290085", "0.5523903", "0.55205405", "0.55113417", "0.5503951", "0.5492648", "0.54915696", "0.54895574", "0.54880905", "0.5483526", "0.5483526", "0.5483526", "0.5483526", "0.5483083", "0.5477808", "0.54631865", "0.54618204", "0.5459552", "0.54589087", "0.5457176", "0.5454657", "0.5453932", "0.5453222", "0.5452491", "0.5445888", "0.5445509", "0.54449373", "0.5435233", "0.5430363", "0.54301834", "0.54293424", "0.5422694", "0.54189634", "0.54156625", "0.5414211", "0.5413471", "0.5405447", "0.5405078", "0.5400613", "0.53967303", "0.538804", "0.53879154", "0.53823644", "0.5380546", "0.538054", "0.5377366" ]
0.5767503
30
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void validaDatos() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1