query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Returns the characteristics that are handled specially and have their own fields in AbstractBioMaterial or one of its subclasses, rather than being placed in the general characteristics collection. These are returned as a map, with keys being category constants defining the category of the special characteristic, and the values being the Term values of the characteristic. For AbstractBioMaterial, this will return a map with four entries: ExperimentOntologyCategory.DISEASE_STATE > this.diseaseState ExperimentOntologyCategory.CELL_TYPE > this.cellType ExperimentOntologyCategory.MATERIAL_TYPE > this.materialType ExperimentOntologyCategory.ORGANISM_PART > this.tissueSite Subclasses can override this method to add additional entries if they have other characteristics that they store directly.
@Transient protected Map<ExperimentOntologyCategory, Term> getSpecialCharacteristics() { Map<ExperimentOntologyCategory, Term> builtins = new HashMap<ExperimentOntologyCategory, Term>(); builtins.put(ExperimentOntologyCategory.DISEASE_STATE, this.diseaseState); builtins.put(ExperimentOntologyCategory.CELL_TYPE, this.cellType); builtins.put(ExperimentOntologyCategory.MATERIAL_TYPE, this.materialType); builtins.put(ExperimentOntologyCategory.ORGANISM_PART, this.tissueSite); return builtins; }
[ "ProdCharacteristic getPhysicalCharacteristics();", "public Set<AbstractCharacteristic> getCharacteristics(final Category category) {\r\n Set<AbstractCharacteristic> chars = new HashSet<AbstractCharacteristic>();\r\n Iterators.addAll(chars, Iterators.filter(characteristics.iterator(), new Predicate<AbstractCharacteristic>() {\r\n public boolean apply(AbstractCharacteristic input) {\r\n return category.equals(input.getCategory());\r\n }\r\n }));\r\n\r\n chars.addAll(getBuiltInCharacteristics(category));\r\n addUserDefinedCharacteristic(chars, category);\r\n\r\n return chars;\r\n }", "public Characteristic characteristic() {\n return characteristic;\n }", "public static Map<Attribute, Number> getMinorAttributes() {\n\t\tMap<Attribute, Number> value = new LinkedHashMap<>();\n\t\tvalue.put(Attribute.CRITICALHITCHANCE, 6.0);\n\t\tvalue.put(Attribute.CRITICALHITDAMAGE, 12.0);\n\t\tvalue.put(Attribute.WEAPONHANDLING, 8.0);\n\t\tvalue.put(Attribute.HEADSHOTDAMAGE, 10.0);\n\t\tvalue.put(Attribute.ARMORREGEN, 4925);\n\t\tvalue.put(Attribute.HAZARDPROTECTION, 10.0);\n\t\tvalue.put(Attribute.HEALTH, 18935);\n\t\tvalue.put(Attribute.EXPLOSIVERESISTANCE, 10.0);\n\t\tvalue.put(Attribute.SKILLDAMAGE, 10.0);\n\t\tvalue.put(Attribute.REPAIRSKILLS, 20.0);\n\t\tvalue.put(Attribute.SKILLHASTE, 10.0);\n\t\tvalue.put(Attribute.STATUSEFFECTS, 10.0);\n\t\treturn value;\n\t}", "private ArrayList getSpecimenCharacteristicAttributes(EntityInterface entity)\r\n\t{\r\n\t\tArrayList<AttributeInterface> specimenCharacteristicAttributes = new ArrayList<AttributeInterface>();\r\n\t\t\r\n\t\tAttributeInterface att1= factory.createLongAttribute();\r\n\t\tatt1.setName(\"id\");\r\n\t\tColumnPropertiesInterface c1 = factory.createColumnProperties();\r\n\t\tc1.setName(\"IDENTIFIER\");\r\n\t\t((Attribute)att1).setColumnProperties(c1);\r\n\t\tatt1.setIsPrimaryKey(new Boolean(true));\r\n\t\t\r\n\t\tAttributeInterface att2 = factory.createStringAttribute();\r\n\t\tatt2.setName(\"tissueSite\");\r\n\t\tColumnPropertiesInterface c2 = factory.createColumnProperties();\r\n\t\tc2.setName(\"TISSUE_SITE\");\r\n\t\t((Attribute)att2).setColumnProperties(c2);\r\n\t\t\r\n\t\tAttributeInterface att3 = factory.createStringAttribute();\r\n\t\tatt3.setName(\"tissueSide\");\r\n\t\tColumnPropertiesInterface c3 = factory.createColumnProperties();\r\n\t\tc3.setName(\"TISSUE_SIDE\");\r\n\t\t((Attribute)att3).setColumnProperties(c3);\r\n\t\t\r\n\t\t\r\n\r\n\t\tspecimenCharacteristicAttributes.add(0, att1);\r\n\t\tspecimenCharacteristicAttributes.add(1, att2);\r\n\t\tspecimenCharacteristicAttributes.add(2, att3);\r\n\t\t\r\n\t\tsetAttributeEntityReference(entity,specimenCharacteristicAttributes);\r\n\t\t\r\n\t\treturn specimenCharacteristicAttributes;\r\n\t}", "public BigInteger characteristic() {\n return coFac.characteristic();\n }", "protected Map<Integer, DatacenterCharacteristics> getDatacenterCharacteristicsList() {\n\t\treturn datacenterCharacteristicsList;\n\t}", "public Map<String, Object> getMetricCategories() {\n return metricCategories;\n }", "Map<String, IAttribute> getConnectedAttributes();", "public String getCharacteristic() {\n return characteristic;\n }", "Map<String, Attribute> getAttributes();", "Map<String, Object> getCustomAttributes();", "public Map<String, String> getAttributes();", "public Map<String, Object> getAttributes();", "private Map<String, Object> attributes() {\r\n Map<String, Object> result = new LinkedHashMap<String, Object>();\r\n for (Class<?> c = getClass(); c != Entity.class; c = c.getSuperclass()) {\r\n for (Field field: c.getDeclaredFields()) {\r\n if ((field.getModifiers() & Modifier.STATIC) == 0) {\r\n try {\r\n field.setAccessible(true);\r\n result.put(field.getName(), field.get(this));\r\n } catch (IllegalAccessException cannotHappen) {\r\n }\r\n }\r\n }\r\n }\r\n return result;\r\n }", "public Map<Feature, Category> getFeatures() {\n\t\treturn features;\n\t}", "public Map<String, String> getMetatags() {\n Map<String, String> result = new HashMap<>();\n\n for (Map.Entry<String, String> entry : _metatags.entrySet()) {\n String key = entry.getKey();\n\n if (!ReservedField.isReservedField(key)) {\n result.put(key, entry.getValue());\n }\n }\n return Collections.unmodifiableMap(result);\n }", "public Map<String,Object> getCharacteristics(String[] names) throws DataExchangeException;", "protected Map<CategoryEnum, Set<String>> getCountingMap() {\r\n\t\t\r\n\t\treturn countingMap;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column change_operation.new_entity_content
public void setNewEntityContent(String newEntityContent) { this.newEntityContent = newEntityContent == null ? null : newEntityContent.trim(); }
[ "public void setChangedEntityContent(String changedEntityContent) {\r\n this.changedEntityContent = changedEntityContent == null ? null : changedEntityContent.trim();\r\n }", "public String getNewEntityContent() {\r\n return newEntityContent;\r\n }", "public void setNewEntity() {\r\n this.dataSet = true;\r\n this.dataSetSuccess = true;\r\n this.modified = true;\r\n }", "public String getChangedEntityContent() {\r\n return changedEntityContent;\r\n }", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "public void setChangeOperation(java.lang.String changeOperation) {\r\n this.changeOperation = changeOperation;\r\n }", "public void setOperationContent(String operationContent) {\n this.operationContent = operationContent;\n }", "void entityValueChange(String name, String value);", "public void saveBusinessObjectDefinitionColumnChangeEvents(BusinessObjectDefinitionColumnEntity businessObjectDefinitionColumnEntity)\n {\n // Set the change events and add an entry to the change event table\n List<BusinessObjectDefinitionColumnChangeEventEntity> businessObjectDefinitionColumnChangeEventEntities = new ArrayList<>();\n BusinessObjectDefinitionColumnChangeEventEntity businessObjectDefinitionColumnChangeEventEntity = new BusinessObjectDefinitionColumnChangeEventEntity();\n businessObjectDefinitionColumnChangeEventEntities.add(businessObjectDefinitionColumnChangeEventEntity);\n\n businessObjectDefinitionColumnChangeEventEntity.setBusinessObjectDefinitionColumnEntity(businessObjectDefinitionColumnEntity);\n businessObjectDefinitionColumnChangeEventEntity.setDescription(businessObjectDefinitionColumnEntity.getDescription());\n\n if (businessObjectDefinitionColumnEntity.getChangeEvents() != null)\n {\n businessObjectDefinitionColumnEntity.getChangeEvents().add(businessObjectDefinitionColumnChangeEventEntity);\n }\n else\n {\n businessObjectDefinitionColumnEntity.setChangeEvents(businessObjectDefinitionColumnChangeEventEntities);\n }\n }", "private void setContentFilter(FIGFileContentFilter newFilter) {\r\n contentFilter = newFilter;\r\n\r\n if (allowContentFilter) {\r\n filterTextField.setText(newFilter.toString());\r\n }\r\n }", "public void ySetContent(Node old_content, Node... new_content) {\r\n if(old_content != null)\r\n yRemoveContent(old_content);\r\n else\r\n yClear();\r\n \r\n yAddContent(new_content);\r\n }", "public void setEntityval(String entityval) {\r\n this.entityval = entityval;\r\n }", "void setNew_order_creation(java.lang.String newValue) throws java.rmi.RemoteException;", "public java.lang.String getChangeOperation() {\r\n return changeOperation;\r\n }", "public void setContentExpression(Expression content) {\r\n this.content = content;\r\n adoptChildExpression(content);\r\n }", "public void testSchemaChange(String entityId) throws Exception {\r\n\t\tColumnChange add = new ColumnChange();\r\n\t\tadd.setOldColumnId(null);\r\n\t\tadd.setNewColumnId(intColumn.getId());\r\n\t\tList<ColumnChange> changes = Lists.newArrayList(add);\r\n\t\tTableSchemaChangeRequest request = new TableSchemaChangeRequest();\r\n\t\trequest.setEntityId(entityId);\r\n\t\trequest.setChanges(changes);\r\n\t\tList<String> orderedColumnIds = Arrays.asList(intColumn.getId());\r\n\t\trequest.setOrderedColumnIds(orderedColumnIds);\r\n\t\t\r\n\t\tList<TableUpdateRequest> updates = new LinkedList<TableUpdateRequest>();\r\n\t\tupdates.add(request);\r\n\t\tTableUpdateTransactionRequest transaction = new TableUpdateTransactionRequest();\r\n\t\ttransaction.setEntityId(entityId);\r\n\t\ttransaction.setChanges(updates);\r\n\t\r\n\t\t// wait for the change to complete\r\n\t\tstartAndWaitForJob(adminUserInfo, transaction, (TableUpdateTransactionResponse response) -> {\t\t\t\r\n\t\t\tassertNotNull(response);\r\n\t\t\tassertNotNull(response.getResults());\r\n\t\t\tassertEquals(1, response.getResults().size());\r\n\t\t\tTableUpdateResponse updateResponse = response.getResults().get(0);\r\n\t\t\tassertTrue(updateResponse instanceof TableSchemaChangeResponse);\r\n\t\t\tTableSchemaChangeResponse changeResponse = (TableSchemaChangeResponse) updateResponse;\r\n\t\t\tassertNotNull(changeResponse.getSchema());\r\n\t\t\tassertEquals(1, changeResponse.getSchema().size());\r\n\t\t\tassertEquals(intColumn, changeResponse.getSchema().get(0));\r\n\t\t});\r\n\t\t\r\n\t\t// remove the columns (see PLFM-4188)\r\n\t\tColumnChange remove = new ColumnChange();\r\n\t\tremove.setOldColumnId(intColumn.getId());\r\n\t\tremove.setNewColumnId(null);\r\n\t\tchanges = Lists.newArrayList(remove);\r\n\t\trequest = new TableSchemaChangeRequest();\r\n\t\trequest.setEntityId(entityId);\r\n\t\trequest.setChanges(changes);\r\n\t\trequest.setOrderedColumnIds(new LinkedList<String>());\r\n\t\t\r\n\t\tupdates = new LinkedList<TableUpdateRequest>();\r\n\t\tupdates.add(request);\r\n\t\ttransaction = new TableUpdateTransactionRequest();\r\n\t\ttransaction.setEntityId(entityId);\r\n\t\ttransaction.setChanges(updates);\r\n\t\r\n\t\t// wait for the change to complete\r\n\t\tstartAndWaitForJob(adminUserInfo, transaction, (TableUpdateTransactionResponse response) -> {\r\n\t\t\tassertNotNull(response);\r\n\t\t\tassertNotNull(response.getResults());\r\n\t\t\tassertEquals(1, response.getResults().size());\r\n\t\t});\r\n\t}", "public abstract void setContentDescription(String description);", "@Override\n\tpublic void setContentOriginal(java.lang.String contentOriginal) {\n\t\t_scienceAppDescription.setContentOriginal(contentOriginal);\n\t}", "public void setNewPersistenceType(PersistenceType newPersistenceType){\n this.newPersistenceType = newPersistenceType;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "system" element
public org.hl7.fhir.ContactSystem addNewSystem() { synchronized (monitor()) { check_orphaned(); org.hl7.fhir.ContactSystem target = null; target = (org.hl7.fhir.ContactSystem)get_store().add_element_user(SYSTEM$0); return target; } }
[ "public void addSystem(ISystem system)\n {\n if (system.start(this))\n {\n systems.add(system);\n }\n }", "private SpaceSystemType addSpaceSystem(SpaceSystemType parentSystem,\n String systemName,\n String description,\n String fullPath,\n String classification,\n String validationStatus,\n String version) throws CCDDException\n {\n // Get the reference to the space system if it already exists\n SpaceSystemType childSystem = parentSystem == null ? null : getSpaceSystemByName(systemName, parentSystem);\n\n // Check if the space system doesn't already exist\n if (childSystem == null)\n {\n // Create the new space system, store its name, and set the flag to indicate a new\n // space system exists\n childSystem = factory.createSpaceSystemType();\n childSystem.setName(systemName);\n\n // Check if this is the root space system\n if (parentSystem == null)\n {\n // Set this space system as the root system\n project = factory.createSpaceSystem(childSystem);\n }\n // Not the root space system\n else\n {\n // Add the new space system as a child of the specified system\n parentSystem.getSpaceSystem().add(childSystem);\n }\n }\n\n // Check if a description is provided\n if (description != null && !description.isEmpty())\n {\n // Set the description attribute\n childSystem.setLongDescription(description);\n }\n\n // Check if the full table path is provided\n if (fullPath != null && !fullPath.isEmpty())\n {\n // Store the table name, with its full path, in the short description field. This is\n // used if the export file is used to import tables into a project\n childSystem.setShortDescription(fullPath);\n }\n\n // Set the new space system's header attributes\n addSpaceSystemHeader(childSystem,\n classification,\n validationStatus,\n version,\n (parentSystem == null ? new Date().toString() : null));\n\n return childSystem;\n }", "public void addSystem(SceneSystem system) {\n systems.addSystem(system); \n }", "public Systems add(System system) {\r\n\t\tif (system != null) {\r\n\t\t\tif (system instanceof InitializeSystem) {\r\n\t\t\t\t__initializeSystems.add((InitializeSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof ExecuteSystem) {\r\n\t\t\t\t__executeSystems.add((ExecuteSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof RenderSystem) {\r\n\t\t\t\t__renderSystems.add((RenderSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof TearDownSystem) {\r\n\t\t\t\t__tearDownSystems.add((TearDownSystem) system);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public final void entryRuleSystemElement() throws RecognitionException {\n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:537:1: ( ruleSystemElement EOF )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:538:1: ruleSystemElement EOF\n {\n before(grammarAccess.getSystemElementRule()); \n pushFollow(FOLLOW_ruleSystemElement_in_entryRuleSystemElement1081);\n ruleSystemElement();\n\n state._fsp--;\n\n after(grammarAccess.getSystemElementRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleSystemElement1088); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public static void addSystem(EntitySystem system) {\r\n \t\tif (systems.contains(system))\r\n \t\t\tthrow new RuntimeException(\"System already added\");\r\n \t\tif (entities.size != 0)\r\n \t\t\tthrow new RuntimeException(\"Systems must be added before entities\");\r\n \t\tsystems.add(system);\r\n \t}", "SystemT createSystemT();", "public SysSystem() {\n this(DSL.name(\"sys_system\"), null);\n }", "System createSystem();", "public void addSystemObject(SystemObject systemObject);", "void addTestManagementSystem (TestManagementSystem testManagementSystem);", "@FXML\n private void createSystemClicked() {\n final EcdarSystem newSystem = new EcdarSystem();\n\n UndoRedoStack.pushAndPerform(() -> { // Perform\n Ecdar.getProject().getSystemsProperty().add(newSystem);\n }, () -> { // Undo\n Ecdar.getProject().getSystemsProperty().remove(newSystem);\n }, \"Created new system: \" + newSystem.getName(), \"add-circle\");\n\n CanvasController.setActiveModel(newSystem);\n }", "public void setSystem(String value) {\r\n this.system = value;\r\n }", "DispatcherBuilder withSystem(ECSSystem system);", "public void addSystem(final BBoxDBInstance system) {\n\t\tsystems.add(system);\n\t}", "public void attach(SGSystem nSystem) {\r\n systems.add(nSystem);\r\n }", "@SuppressWarnings(\"unchecked\")\n \tvoid addSystem(EntitySystem system) {\n \t\tif (systems.contains(system))\n \t\t\tthrow new RuntimeException(\"System already added\");\n \t\tsystem.id = getNewSystemId();\n \t\tsystem.componentBits = world.getComponentBits(system.components);\n \n \t\tClass<? extends EntitySystem> class1 = system.getClass();\n \t\tdo {\n \t\t\tfor (Field field : class1.getDeclaredFields()) {\n \t\t\t\t// Check for ComponentManager declarations.\n \t\t\t\tif (field.getType() == ComponentMapper.class) {\n \t\t\t\t\tfield.setAccessible(true);\n \t\t\t\t\t// Read the type in the <> of componentmanager\n \t\t\t\t\tType type = ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Set the component manager declaration with the right\n \t\t\t\t\t\t// component manager.\n \t\t\t\t\t\tfield.set(system, world.getComponentMapper((Class<? extends Component>) type));\n \t\t\t\t\t} catch (IllegalArgumentException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t} catch (IllegalAccessException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t// check for EventListener declarations.\n \t\t\t\tif (field.getType() == EventListener.class) {\n \t\t\t\t\tfield.setAccessible(true);\n \t\t\t\t\t// Read the type in the <> of eventListener.\n \t\t\t\t\tType type = ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n \t\t\t\t\t@SuppressWarnings(\"rawtypes\")\n \t\t\t\t\tEventListener<? extends Event> eventListener = new EventListener();\n \t\t\t\t\tworld.registerEventListener(eventListener, (Class<? extends Event>) type);\n \n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Set the event listener declaration with the right\n \t\t\t\t\t\t// field listener.\n \t\t\t\t\t\tfield.set(system, eventListener);\n \t\t\t\t\t} catch (IllegalArgumentException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t} catch (IllegalAccessException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tclass1 = (Class<? extends EntitySystem>) class1.getSuperclass();\n \t\t} while (class1 != EntitySystem.class);\n \t\tsystems.add(system);\n \t\tsystemMap.put(system.id, system);\n\t\tsystem.world = world;\n \t}", "private void addDevice(DeviceDescription description) {\t\t\r\n\t\tif (description == null) return;\r\n\t\tSystemID systemID = description.getSystemID();\r\n\t\tDeviceFigure applicationDevice = (DeviceFigure)applicationElements.get(systemID);\r\n\t\tif (applicationDevice == null) {\r\n\t\t\tapplicationDevice = new DeviceFigure(description);\r\n\t\t\tapplicationElements.put(systemID, applicationDevice);\r\n\t\t\tapplicationGraph.addEntry(applicationDevice);\r\n\t\t} else {\r\n\t\t\tapplicationDevice.setAvailable(true);\r\n\t\t}\r\n\t\tDeviceFigure assemblerDevice = (DeviceFigure)assemblerElements.get(systemID);\r\n\t\tif (assemblerDevice == null) {\r\n\t\t\tassemblerDevice = new DeviceFigure(description);\r\n\t\t\tassemblerElements.put(systemID, assemblerDevice);\r\n\t\t\tassemblerGraph.addEntry(assemblerDevice);\r\n\t\t}\r\n\t\tzoom();\r\n\t}", "void visitElement_operating_systems(org.w3c.dom.Element element) { // <operating-systems>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"os\")) {\n visitElement_os(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the booking button.
public JButton getBookButton() { return this.bookButton; }
[ "public GameObject getButton() {\n\t\treturn button;\n\t}", "public JButton getButton() {\n\t\treturn pinButton;\n\t}", "public Button getBuyButton() {\n return buyButton;\n }", "public Button getButton(String key) {\n return buttons.get(key);\n }", "public WebElement getGetQuoteButton() {\n By criteria = By.id(\"getQuoteBtn\");\n List<WebElement> buttons = getWebDriver().findElements(criteria);\n assertTrue(\"No \\\"Get Quote\\\" is present on the page.\", buttons!=null && buttons.size()>0 && buttons.get(0)!=null);\n WebElement getQuoteBtn = buttons.get(0);\n return getQuoteBtn;\n }", "public Button getButton()\n {\n return checkButton;\n }", "public WebElement get123BankingCancelBtn() {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\treturn wait.until(ExpectedConditions.elementToBeClickable(findElement(\n\t\t\t\trepositoryParser, PAGE_NAME, \"123BankingCancelBtn\")));\n\t}", "public Button getSellButton() {\n return sellButton;\n }", "public boolean getBButton() {\n\t\treturn getRawButton(B_Button);\n\t}", "public JButton getDonateNowButton(){\n return this.donateNowButton;\n }", "public static int getButton() {\n\t\treturn mouseB;\n\t}", "public JoystickButton getButtonB() {\n\t\treturn button[1];\n\t}", "public Integer getdButton() {\n return dButton;\n }", "public JButton getPayButton() { return payButton; }", "private JButton get_btn_buscar() {\n\t\tif (_btn_buscar == null) {\n\t\t\t_btn_buscar = new JButton();\n\t\t\t_btn_buscar.setBounds(new Rectangle(265, 36, 23, 18));\n\t\t\t_btn_buscar.setIcon(new ImageIcon(getClass().getResource(\"/icons/gnome-searchtool.png\")));\n\t\t}\n\t\treturn _btn_buscar;\n\t}", "public boolean getBButton() {\n\t\treturn getRawButton(B_BUTTON);\n\t}", "public JButton get_btn_grabar() {\n\t\tif (_btn_grabar == null) {\n\t\t\t_btn_grabar = new JButton();\n\t\t\t_btn_grabar.setText(\"\");\n\t\t\t_btn_grabar.setToolTipText(\"Guardar\");\n\t\t\t_btn_grabar.setIcon(new ImageIcon(getClass().getResource(\"/icons/document-save.png\")));\n\t\t}\n\t\treturn _btn_grabar;\n\t}", "public Button getButton(String widgetName) {\r\n\t\treturn widgetFinder.getButton(widgetName);\r\n }", "private JButton getHistoricalDetailButton() {\n\t\tif (historicalDetailButton == null) {\n\t\t\thistoricalDetailButton = new JButton();\n\t\t\thistoricalDetailButton.setText(\"Historical Details\");\n\t\t\thistoricalDetailButton\n\t\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\t\t\tdoViewHistoricalDetails();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t}\n\t\treturn historicalDetailButton;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) array of all "ReverseGeocodePreference" element
void xsetReverseGeocodePreferenceArray(net.opengis.xls.ReverseGeocodePreferenceType[] reverseGeocodePreferenceArray);
[ "void xsetReverseGeocodePreferenceArray(int i, net.opengis.xls.ReverseGeocodePreferenceType reverseGeocodePreference);", "net.opengis.xls.ReverseGeocodePreferenceType[] xgetReverseGeocodePreferenceArray();", "net.opengis.xls.ReverseGeocodePreferenceType xgetReverseGeocodePreferenceArray(int i);", "void setReverseGeocodePreferenceArray(int i, net.opengis.xls.ReverseGeocodePreferenceType.Enum reverseGeocodePreference);", "net.opengis.xls.ReverseGeocodePreferenceType.Enum[] getReverseGeocodePreferenceArray();", "net.opengis.xls.ReverseGeocodePreferenceType addNewReverseGeocodePreference();", "net.opengis.xls.ReverseGeocodePreferenceType.Enum getReverseGeocodePreferenceArray(int i);", "void insertReverseGeocodePreference(int i, net.opengis.xls.ReverseGeocodePreferenceType.Enum reverseGeocodePreference);", "int sizeOfReverseGeocodePreferenceArray();", "net.opengis.xls.ReverseGeocodePreferenceType insertNewReverseGeocodePreference(int i);", "void removeReverseGeocodePreference(int i);", "public void set(GeoElementND geo);", "protected String getAddressReverseGeocodeURI()\n {\n return URL_ReverseGeocode_;\n }", "private void reverseGeocode(final LatLng latLng, final AsyncCallback callback) {\n GWT.log(\"reverseGeocode\");\n geocoder.getLocations(latLng, new LocationCallback() {\n public void onFailure(int statusCode) {\n getMessagePanel().displayError(\"Failed to geocode position \" + latLng.toString()\n + \". Status: \" + statusCode + \" \"\n + StatusCodes.getName(statusCode));\n if (callback != null) {\n callback.onFailure(null);\n }\n //but we can still set the location\n }\n\n public void onSuccess(JsArray<Placemark> locations) {\n GWT.log(\"reverseGeocode onSuccess \" + locations.length());\n // for (int i = 0; i < locations.length(); ++i) {\n //just need to get the very first location!\n Placemark placemark = locations.get(0);\n Location location = new Location();\n location.setLatitude(placemark.getPoint().getLatitude());\n location.setLongitude(placemark.getPoint().getLongitude());\n GWT.log(\"address is \" + placemark.getStreet());\n location.setAddress1(placemark.getStreet());\n location.setCity(placemark.getCity());\n location.setState(placemark.getState());\n location.setZipcode(placemark.getPostalCode());\n location.setCountryCode(placemark.getCountry());\n location.setGeocoded(true);\n //does not fetch data, but will update the top of the app\n mywebapp.setCurrentLocation(location);\n if (callback != null) {\n callback.onSuccess(null);\n }\n //we just reverse geocoded, not that we clicked on map\n // }\n }\n });\n }", "void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);", "void xsetOraArr(org.apache.xmlbeans.XmlString oraArr);", "private void initializeReverseGeoCode() {\n try {\n Log.i(\"ReverseGeocode\", \"ReverseGeocode: initialize Start\");\n objReverseGeocoder = new ReverseGeoCoder();\n\n InputStream indexStream = getAssets().open(\"Locations/index.txt\");\n objReverseGeocoder.initialize(indexStream);\n objReverseGeocoder.loadedFg = true;\n indexStream.close();\n\n // load address\n Utility.callGeocodeTask();\n\n Utility.showMsg(\"Nearest Distance Module is Initialized!!!\");\n Log.i(\"ReverseGeocode\", \"ReverseGeocode: initialize End\");\n } catch (Exception exe) {\n Log.e(TAG, \"initializeReverseGeoCode: \" + exe.getMessage());\n }\n }", "LocationPref getLocationPrefs();", "public String[] getGeoSystem();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule___ReflexKey__Alternatives" $ANTLR start "rule___AssignmentKey__Alternatives" InternalGaml.g:4014:1: rule___AssignmentKey__Alternatives : ( ( '' ) );
public final void rule___AssignmentKey__Alternatives() throws RecognitionException { int rule___AssignmentKey__Alternatives_StartIndex = input.index(); int stackSize = keepStackSize(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 234) ) { return ; } // InternalGaml.g:4018:1: ( ( '<-' ) | ( '<<' ) | ( ( rule___AssignmentKey__Group_2__0 ) ) | ( '<<+' ) | ( ( rule___AssignmentKey__Group_4__0 ) ) | ( '+<-' ) | ( '<+' ) | ( '>-' ) ) int alt32=8; alt32 = dfa32.predict(input); switch (alt32) { case 1 : // InternalGaml.g:4019:1: ( '<-' ) { // InternalGaml.g:4019:1: ( '<-' ) // InternalGaml.g:4020:1: '<-' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getLessThanSignHyphenMinusKeyword_0()); } match(input,22,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getLessThanSignHyphenMinusKeyword_0()); } } } break; case 2 : // InternalGaml.g:4027:6: ( '<<' ) { // InternalGaml.g:4027:6: ( '<<' ) // InternalGaml.g:4028:1: '<<' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getLessThanSignLessThanSignKeyword_1()); } match(input,71,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getLessThanSignLessThanSignKeyword_1()); } } } break; case 3 : // InternalGaml.g:4035:6: ( ( rule___AssignmentKey__Group_2__0 ) ) { // InternalGaml.g:4035:6: ( ( rule___AssignmentKey__Group_2__0 ) ) // InternalGaml.g:4036:1: ( rule___AssignmentKey__Group_2__0 ) { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getGroup_2()); } // InternalGaml.g:4037:1: ( rule___AssignmentKey__Group_2__0 ) // InternalGaml.g:4037:2: rule___AssignmentKey__Group_2__0 { pushFollow(FollowSets000.FOLLOW_2); rule___AssignmentKey__Group_2__0(); state._fsp--; if (state.failed) return ; } if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getGroup_2()); } } } break; case 4 : // InternalGaml.g:4041:6: ( '<<+' ) { // InternalGaml.g:4041:6: ( '<<+' ) // InternalGaml.g:4042:1: '<<+' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getLessThanSignLessThanSignPlusSignKeyword_3()); } match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getLessThanSignLessThanSignPlusSignKeyword_3()); } } } break; case 5 : // InternalGaml.g:4049:6: ( ( rule___AssignmentKey__Group_4__0 ) ) { // InternalGaml.g:4049:6: ( ( rule___AssignmentKey__Group_4__0 ) ) // InternalGaml.g:4050:1: ( rule___AssignmentKey__Group_4__0 ) { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getGroup_4()); } // InternalGaml.g:4051:1: ( rule___AssignmentKey__Group_4__0 ) // InternalGaml.g:4051:2: rule___AssignmentKey__Group_4__0 { pushFollow(FollowSets000.FOLLOW_2); rule___AssignmentKey__Group_4__0(); state._fsp--; if (state.failed) return ; } if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getGroup_4()); } } } break; case 6 : // InternalGaml.g:4055:6: ( '+<-' ) { // InternalGaml.g:4055:6: ( '+<-' ) // InternalGaml.g:4056:1: '+<-' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getPlusSignLessThanSignHyphenMinusKeyword_5()); } match(input,73,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getPlusSignLessThanSignHyphenMinusKeyword_5()); } } } break; case 7 : // InternalGaml.g:4063:6: ( '<+' ) { // InternalGaml.g:4063:6: ( '<+' ) // InternalGaml.g:4064:1: '<+' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getLessThanSignPlusSignKeyword_6()); } match(input,74,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getLessThanSignPlusSignKeyword_6()); } } } break; case 8 : // InternalGaml.g:4071:6: ( '>-' ) { // InternalGaml.g:4071:6: ( '>-' ) // InternalGaml.g:4072:1: '>-' { if ( state.backtracking==0 ) { before(grammarAccess.get_AssignmentKeyAccess().getGreaterThanSignHyphenMinusKeyword_7()); } match(input,75,FollowSets000.FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.get_AssignmentKeyAccess().getGreaterThanSignHyphenMinusKeyword_7()); } } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { if ( state.backtracking>0 ) { memoize(input, 234, rule___AssignmentKey__Alternatives_StartIndex); } restoreStackSize(stackSize); } return ; }
[ "public final void rule_AssignmentKey() throws RecognitionException {\n int rule_AssignmentKey_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 86) ) { return ; }\n // InternalGaml.g:1259:2: ( ( ( rule___AssignmentKey__Alternatives ) ) )\n // InternalGaml.g:1260:1: ( ( rule___AssignmentKey__Alternatives ) )\n {\n // InternalGaml.g:1260:1: ( ( rule___AssignmentKey__Alternatives ) )\n // InternalGaml.g:1261:1: ( rule___AssignmentKey__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.get_AssignmentKeyAccess().getAlternatives()); \n }\n // InternalGaml.g:1262:1: ( rule___AssignmentKey__Alternatives )\n // InternalGaml.g:1262:2: rule___AssignmentKey__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule___AssignmentKey__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.get_AssignmentKeyAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 86, rule_AssignmentKey_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleAnnotationKey() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:192:2: ( ( ( rule__AnnotationKey__Alternatives ) ) )\n // InternalReflex.g:193:2: ( ( rule__AnnotationKey__Alternatives ) )\n {\n // InternalReflex.g:193:2: ( ( rule__AnnotationKey__Alternatives ) )\n // InternalReflex.g:194:3: ( rule__AnnotationKey__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAnnotationKeyAccess().getAlternatives()); \n }\n // InternalReflex.g:195:3: ( rule__AnnotationKey__Alternatives )\n // InternalReflex.g:195:4: rule__AnnotationKey__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__AnnotationKey__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAnnotationKeyAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule_ReflexKey() throws RecognitionException {\n int rule_ReflexKey_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 84) ) { return ; }\n // InternalGaml.g:1231:2: ( ( ( rule___ReflexKey__Alternatives ) ) )\n // InternalGaml.g:1232:1: ( ( rule___ReflexKey__Alternatives ) )\n {\n // InternalGaml.g:1232:1: ( ( rule___ReflexKey__Alternatives ) )\n // InternalGaml.g:1233:1: ( rule___ReflexKey__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.get_ReflexKeyAccess().getAlternatives()); \n }\n // InternalGaml.g:1234:1: ( rule___ReflexKey__Alternatives )\n // InternalGaml.g:1234:2: rule___ReflexKey__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule___ReflexKey__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.get_ReflexKeyAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 84, rule_ReflexKey_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Key__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:4223:1: ( ( ( rule__Key__Group_0__0 ) ) | ( ruleExpression ) | ( ruleLiteralValue ) )\r\n int alt43=3;\r\n switch ( input.LA(1) ) {\r\n case RULE_ID:\r\n {\r\n int LA43_1 = input.LA(2);\r\n\r\n if ( (synpred82_InternalGo()) ) {\r\n alt43=1;\r\n }\r\n else if ( (synpred83_InternalGo()) ) {\r\n alt43=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 1, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n break;\r\n case 46:\r\n {\r\n int LA43_2 = input.LA(2);\r\n\r\n if ( (LA43_2==RULE_ID) ) {\r\n int LA43_6 = input.LA(3);\r\n\r\n if ( (synpred82_InternalGo()) ) {\r\n alt43=1;\r\n }\r\n else if ( (synpred83_InternalGo()) ) {\r\n alt43=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 6, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n else if ( (LA43_2==RULE_STRING||(LA43_2>=RULE_DECIMALS && LA43_2<=RULE_FLOAT_LIT)||(LA43_2>=RULE_UNARY_OP && LA43_2<=RULE_BOOLEAN_LIT)||(LA43_2>=45 && LA43_2<=46)||LA43_2==48||(LA43_2>=51 && LA43_2<=52)||LA43_2==54||LA43_2==56||(LA43_2>=60 && LA43_2<=63)) ) {\r\n alt43=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 2, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n break;\r\n case RULE_STRING:\r\n case RULE_DECIMALS:\r\n case RULE_FLOAT_LIT:\r\n case RULE_UNARY_OP:\r\n case RULE_LITERAL_TYPE:\r\n case RULE_INT_LIT:\r\n case RULE_BOOLEAN_LIT:\r\n case 45:\r\n case 48:\r\n case 51:\r\n case 52:\r\n case 54:\r\n case 56:\r\n case 60:\r\n case 61:\r\n case 62:\r\n case 63:\r\n {\r\n alt43=2;\r\n }\r\n break;\r\n case 57:\r\n {\r\n alt43=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt43) {\r\n case 1 :\r\n // InternalGo.g:4224:2: ( ( rule__Key__Group_0__0 ) )\r\n {\r\n // InternalGo.g:4224:2: ( ( rule__Key__Group_0__0 ) )\r\n // InternalGo.g:4225:3: ( rule__Key__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getKeyAccess().getGroup_0()); \r\n }\r\n // InternalGo.g:4226:3: ( rule__Key__Group_0__0 )\r\n // InternalGo.g:4226:4: rule__Key__Group_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Key__Group_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getKeyAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalGo.g:4230:2: ( ruleExpression )\r\n {\r\n // InternalGo.g:4230:2: ( ruleExpression )\r\n // InternalGo.g:4231:3: ruleExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getKeyAccess().getExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getKeyAccess().getExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalGo.g:4236:2: ( ruleLiteralValue )\r\n {\r\n // InternalGo.g:4236:2: ( ruleLiteralValue )\r\n // InternalGo.g:4237:3: ruleLiteralValue\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getKeyAccess().getLiteralValueParserRuleCall_2()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleLiteralValue();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getKeyAccess().getLiteralValueParserRuleCall_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void ruleKey() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2867:2: ( ( ( rule__Key__Alternatives ) ) )\r\n // InternalGo.g:2868:2: ( ( rule__Key__Alternatives ) )\r\n {\r\n // InternalGo.g:2868:2: ( ( rule__Key__Alternatives ) )\r\n // InternalGo.g:2869:3: ( rule__Key__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getKeyAccess().getAlternatives()); \r\n }\r\n // InternalGo.g:2870:3: ( rule__Key__Alternatives )\r\n // InternalGo.g:2870:4: rule__Key__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Key__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getKeyAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule___ReflexKey__Alternatives() throws RecognitionException {\n int rule___ReflexKey__Alternatives_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 233) ) { return ; }\n // InternalGaml.g:3984:1: ( ( 'init' ) | ( 'reflex' ) | ( 'aspect' ) )\n int alt31=3;\n switch ( input.LA(1) ) {\n case 68:\n {\n alt31=1;\n }\n break;\n case 69:\n {\n alt31=2;\n }\n break;\n case 70:\n {\n alt31=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 31, 0, input);\n\n throw nvae;\n }\n\n switch (alt31) {\n case 1 :\n // InternalGaml.g:3985:1: ( 'init' )\n {\n // InternalGaml.g:3985:1: ( 'init' )\n // InternalGaml.g:3986:1: 'init'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.get_ReflexKeyAccess().getInitKeyword_0()); \n }\n match(input,68,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.get_ReflexKeyAccess().getInitKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:3993:6: ( 'reflex' )\n {\n // InternalGaml.g:3993:6: ( 'reflex' )\n // InternalGaml.g:3994:1: 'reflex'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.get_ReflexKeyAccess().getReflexKeyword_1()); \n }\n match(input,69,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.get_ReflexKeyAccess().getReflexKeyword_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:4001:6: ( 'aspect' )\n {\n // InternalGaml.g:4001:6: ( 'aspect' )\n // InternalGaml.g:4002:1: 'aspect'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.get_ReflexKeyAccess().getAspectKeyword_2()); \n }\n match(input,70,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.get_ReflexKeyAccess().getAspectKeyword_2()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 233, rule___ReflexKey__Alternatives_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ClassicFacet__Alternatives_0() throws RecognitionException {\n int rule__ClassicFacet__Alternatives_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 241) ) { return ; }\n // InternalGaml.g:4418:1: ( ( ( rule__ClassicFacet__KeyAssignment_0_0 ) ) | ( ( rule__ClassicFacet__KeyAssignment_0_1 ) ) | ( ( rule__ClassicFacet__KeyAssignment_0_2 ) ) )\n int alt39=3;\n switch ( input.LA(1) ) {\n case RULE_ID:\n {\n alt39=1;\n }\n break;\n case 22:\n {\n alt39=2;\n }\n break;\n case 21:\n case 83:\n case 84:\n case 85:\n case 86:\n case 87:\n case 88:\n case 89:\n case 90:\n case 91:\n case 92:\n case 93:\n case 94:\n case 95:\n case 96:\n case 121:\n {\n alt39=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 39, 0, input);\n\n throw nvae;\n }\n\n switch (alt39) {\n case 1 :\n // InternalGaml.g:4419:1: ( ( rule__ClassicFacet__KeyAssignment_0_0 ) )\n {\n // InternalGaml.g:4419:1: ( ( rule__ClassicFacet__KeyAssignment_0_0 ) )\n // InternalGaml.g:4420:1: ( rule__ClassicFacet__KeyAssignment_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_0()); \n }\n // InternalGaml.g:4421:1: ( rule__ClassicFacet__KeyAssignment_0_0 )\n // InternalGaml.g:4421:2: rule__ClassicFacet__KeyAssignment_0_0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ClassicFacet__KeyAssignment_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4425:6: ( ( rule__ClassicFacet__KeyAssignment_0_1 ) )\n {\n // InternalGaml.g:4425:6: ( ( rule__ClassicFacet__KeyAssignment_0_1 ) )\n // InternalGaml.g:4426:1: ( rule__ClassicFacet__KeyAssignment_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_1()); \n }\n // InternalGaml.g:4427:1: ( rule__ClassicFacet__KeyAssignment_0_1 )\n // InternalGaml.g:4427:2: rule__ClassicFacet__KeyAssignment_0_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ClassicFacet__KeyAssignment_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:4431:6: ( ( rule__ClassicFacet__KeyAssignment_0_2 ) )\n {\n // InternalGaml.g:4431:6: ( ( rule__ClassicFacet__KeyAssignment_0_2 ) )\n // InternalGaml.g:4432:1: ( rule__ClassicFacet__KeyAssignment_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_2()); \n }\n // InternalGaml.g:4433:1: ( rule__ClassicFacet__KeyAssignment_0_2 )\n // InternalGaml.g:4433:2: rule__ClassicFacet__KeyAssignment_0_2\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ClassicFacet__KeyAssignment_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getClassicFacetAccess().getKeyAssignment_0_2()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 241, rule__ClassicFacet__Alternatives_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Annotation__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:1629:1: ( ( ( rule__Annotation__Group_0__0 ) ) | ( ( rule__Annotation__KeyAssignment_1 ) ) )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==RULE_ID) ) {\n switch ( input.LA(2) ) {\n case 95:\n {\n int LA4_2 = input.LA(3);\n\n if ( (LA4_2==RULE_ID) ) {\n int LA4_5 = input.LA(4);\n\n if ( (LA4_5==94) ) {\n alt4=1;\n }\n else if ( (LA4_5==EOF||LA4_5==89) ) {\n alt4=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 5, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 2, input);\n\n throw nvae;\n }\n }\n break;\n case 94:\n {\n alt4=1;\n }\n break;\n case EOF:\n case 89:\n {\n alt4=2;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 1, input);\n\n throw nvae;\n }\n\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n switch (alt4) {\n case 1 :\n // InternalReflex.g:1630:2: ( ( rule__Annotation__Group_0__0 ) )\n {\n // InternalReflex.g:1630:2: ( ( rule__Annotation__Group_0__0 ) )\n // InternalReflex.g:1631:3: ( rule__Annotation__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAnnotationAccess().getGroup_0()); \n }\n // InternalReflex.g:1632:3: ( rule__Annotation__Group_0__0 )\n // InternalReflex.g:1632:4: rule__Annotation__Group_0__0\n {\n pushFollow(FOLLOW_2);\n rule__Annotation__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAnnotationAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalReflex.g:1636:2: ( ( rule__Annotation__KeyAssignment_1 ) )\n {\n // InternalReflex.g:1636:2: ( ( rule__Annotation__KeyAssignment_1 ) )\n // InternalReflex.g:1637:3: ( rule__Annotation__KeyAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAnnotationAccess().getKeyAssignment_1()); \n }\n // InternalReflex.g:1638:3: ( rule__Annotation__KeyAssignment_1 )\n // InternalReflex.g:1638:4: rule__Annotation__KeyAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__Annotation__KeyAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAnnotationAccess().getKeyAssignment_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleKeyStroke() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:824:1: ( ( ( rule__KeyStroke__Alternatives ) ) )\n // InternalMGPL.g:825:2: ( ( rule__KeyStroke__Alternatives ) )\n {\n // InternalMGPL.g:825:2: ( ( rule__KeyStroke__Alternatives ) )\n // InternalMGPL.g:826:3: ( rule__KeyStroke__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getKeyStrokeAccess().getAlternatives()); \n }\n // InternalMGPL.g:827:3: ( rule__KeyStroke__Alternatives )\n // InternalMGPL.g:827:4: rule__KeyStroke__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__KeyStroke__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getKeyStrokeAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Valid_ID__Alternatives() throws RecognitionException {\n int rule__Valid_ID__Alternatives_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 272) ) { return ; }\n // InternalGaml.g:5289:1: ( ( rule_SpeciesKey ) | ( rule_DoKey ) | ( rule_ReflexKey ) | ( rule_VarOrConstKey ) | ( rule_1Expr_Facets_BlockOrEnd_Key ) | ( rule_EquationsKey ) | ( RULE_ID ) | ( rule_ExperimentKey ) )\n int alt70=8;\n switch ( input.LA(1) ) {\n case 23:\n case 24:\n {\n alt70=1;\n }\n break;\n case 18:\n {\n alt70=2;\n }\n break;\n case 68:\n case 69:\n case 70:\n {\n alt70=3;\n }\n break;\n case 64:\n case 65:\n case 66:\n case 67:\n {\n alt70=4;\n }\n break;\n case 25:\n case 26:\n case 27:\n case 28:\n case 29:\n case 30:\n case 31:\n case 32:\n case 33:\n case 34:\n case 35:\n case 36:\n case 37:\n case 38:\n case 39:\n case 40:\n case 41:\n case 42:\n case 43:\n case 44:\n case 45:\n case 46:\n case 47:\n case 48:\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n case 63:\n {\n alt70=5;\n }\n break;\n case 15:\n {\n alt70=6;\n }\n break;\n case RULE_ID:\n {\n alt70=7;\n }\n break;\n case 17:\n {\n alt70=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 70, 0, input);\n\n throw nvae;\n }\n\n switch (alt70) {\n case 1 :\n // InternalGaml.g:5290:1: ( rule_SpeciesKey )\n {\n // InternalGaml.g:5290:1: ( rule_SpeciesKey )\n // InternalGaml.g:5291:1: rule_SpeciesKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_SpeciesKeyParserRuleCall_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_SpeciesKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_SpeciesKeyParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:5296:6: ( rule_DoKey )\n {\n // InternalGaml.g:5296:6: ( rule_DoKey )\n // InternalGaml.g:5297:1: rule_DoKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_DoKeyParserRuleCall_1()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_DoKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_DoKeyParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:5302:6: ( rule_ReflexKey )\n {\n // InternalGaml.g:5302:6: ( rule_ReflexKey )\n // InternalGaml.g:5303:1: rule_ReflexKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_ReflexKeyParserRuleCall_2()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_ReflexKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_ReflexKeyParserRuleCall_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalGaml.g:5308:6: ( rule_VarOrConstKey )\n {\n // InternalGaml.g:5308:6: ( rule_VarOrConstKey )\n // InternalGaml.g:5309:1: rule_VarOrConstKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_VarOrConstKeyParserRuleCall_3()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_VarOrConstKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_VarOrConstKeyParserRuleCall_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalGaml.g:5314:6: ( rule_1Expr_Facets_BlockOrEnd_Key )\n {\n // InternalGaml.g:5314:6: ( rule_1Expr_Facets_BlockOrEnd_Key )\n // InternalGaml.g:5315:1: rule_1Expr_Facets_BlockOrEnd_Key\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_1Expr_Facets_BlockOrEnd_KeyParserRuleCall_4()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_1Expr_Facets_BlockOrEnd_Key();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_1Expr_Facets_BlockOrEnd_KeyParserRuleCall_4()); \n }\n\n }\n\n\n }\n break;\n case 6 :\n // InternalGaml.g:5320:6: ( rule_EquationsKey )\n {\n // InternalGaml.g:5320:6: ( rule_EquationsKey )\n // InternalGaml.g:5321:1: rule_EquationsKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_EquationsKeyParserRuleCall_5()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_EquationsKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_EquationsKeyParserRuleCall_5()); \n }\n\n }\n\n\n }\n break;\n case 7 :\n // InternalGaml.g:5326:6: ( RULE_ID )\n {\n // InternalGaml.g:5326:6: ( RULE_ID )\n // InternalGaml.g:5327:1: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().getIDTerminalRuleCall_6()); \n }\n match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().getIDTerminalRuleCall_6()); \n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalGaml.g:5332:6: ( rule_ExperimentKey )\n {\n // InternalGaml.g:5332:6: ( rule_ExperimentKey )\n // InternalGaml.g:5333:1: rule_ExperimentKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getValid_IDAccess().get_ExperimentKeyParserRuleCall_7()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n rule_ExperimentKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getValid_IDAccess().get_ExperimentKeyParserRuleCall_7()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 272, rule__Valid_ID__Alternatives_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AnnotationKey__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:1650:1: ( ( ( rule__AnnotationKey__Group_0__0 ) ) | ( RULE_ID ) )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==RULE_ID) ) {\n int LA5_1 = input.LA(2);\n\n if ( (LA5_1==95) ) {\n alt5=1;\n }\n else if ( (LA5_1==EOF||LA5_1==89||LA5_1==94) ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // InternalReflex.g:1651:2: ( ( rule__AnnotationKey__Group_0__0 ) )\n {\n // InternalReflex.g:1651:2: ( ( rule__AnnotationKey__Group_0__0 ) )\n // InternalReflex.g:1652:3: ( rule__AnnotationKey__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAnnotationKeyAccess().getGroup_0()); \n }\n // InternalReflex.g:1653:3: ( rule__AnnotationKey__Group_0__0 )\n // InternalReflex.g:1653:4: rule__AnnotationKey__Group_0__0\n {\n pushFollow(FOLLOW_2);\n rule__AnnotationKey__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAnnotationKeyAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalReflex.g:1657:2: ( RULE_ID )\n {\n // InternalReflex.g:1657:2: ( RULE_ID )\n // InternalReflex.g:1658:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAnnotationKeyAccess().getIDTerminalRuleCall_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAnnotationKeyAccess().getIDTerminalRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__FunctionFacet__Alternatives_0() throws RecognitionException {\n int rule__FunctionFacet__Alternatives_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 243) ) { return ; }\n // InternalGaml.g:4468:1: ( ( ( rule__FunctionFacet__KeyAssignment_0_0 ) ) | ( ( rule__FunctionFacet__KeyAssignment_0_1 ) ) )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==146) ) {\n alt41=1;\n }\n else if ( (LA41_0==147) ) {\n alt41=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n }\n switch (alt41) {\n case 1 :\n // InternalGaml.g:4469:1: ( ( rule__FunctionFacet__KeyAssignment_0_0 ) )\n {\n // InternalGaml.g:4469:1: ( ( rule__FunctionFacet__KeyAssignment_0_0 ) )\n // InternalGaml.g:4470:1: ( rule__FunctionFacet__KeyAssignment_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFunctionFacetAccess().getKeyAssignment_0_0()); \n }\n // InternalGaml.g:4471:1: ( rule__FunctionFacet__KeyAssignment_0_0 )\n // InternalGaml.g:4471:2: rule__FunctionFacet__KeyAssignment_0_0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__FunctionFacet__KeyAssignment_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFunctionFacetAccess().getKeyAssignment_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4475:6: ( ( rule__FunctionFacet__KeyAssignment_0_1 ) )\n {\n // InternalGaml.g:4475:6: ( ( rule__FunctionFacet__KeyAssignment_0_1 ) )\n // InternalGaml.g:4476:1: ( rule__FunctionFacet__KeyAssignment_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFunctionFacetAccess().getKeyAssignment_0_1()); \n }\n // InternalGaml.g:4477:1: ( rule__FunctionFacet__KeyAssignment_0_1 )\n // InternalGaml.g:4477:2: rule__FunctionFacet__KeyAssignment_0_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__FunctionFacet__KeyAssignment_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFunctionFacetAccess().getKeyAssignment_0_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 243, rule__FunctionFacet__Alternatives_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArgumentPair__OpAlternatives_0_0_1_0_0() throws RecognitionException {\n int rule__ArgumentPair__OpAlternatives_0_0_1_0_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 249) ) { return ; }\n // InternalGaml.g:4600:1: ( ( ruleDefinitionFacetKey ) | ( ruleTypeFacetKey ) | ( ruleSpecialFacetKey ) | ( ruleActionFacetKey ) | ( ruleVarFacetKey ) )\n int alt47=5;\n switch ( input.LA(1) ) {\n case 76:\n case 77:\n {\n alt47=1;\n }\n break;\n case 78:\n case 79:\n case 80:\n case 81:\n case 82:\n {\n alt47=2;\n }\n break;\n case 21:\n case 83:\n case 84:\n case 85:\n case 86:\n case 87:\n case 88:\n case 89:\n case 90:\n case 91:\n case 92:\n case 93:\n case 94:\n case 95:\n case 96:\n case 121:\n {\n alt47=3;\n }\n break;\n case 97:\n case 98:\n {\n alt47=4;\n }\n break;\n case 19:\n {\n alt47=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 47, 0, input);\n\n throw nvae;\n }\n\n switch (alt47) {\n case 1 :\n // InternalGaml.g:4601:1: ( ruleDefinitionFacetKey )\n {\n // InternalGaml.g:4601:1: ( ruleDefinitionFacetKey )\n // InternalGaml.g:4602:1: ruleDefinitionFacetKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpDefinitionFacetKeyParserRuleCall_0_0_1_0_0_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleDefinitionFacetKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpDefinitionFacetKeyParserRuleCall_0_0_1_0_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4607:6: ( ruleTypeFacetKey )\n {\n // InternalGaml.g:4607:6: ( ruleTypeFacetKey )\n // InternalGaml.g:4608:1: ruleTypeFacetKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpTypeFacetKeyParserRuleCall_0_0_1_0_0_1()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleTypeFacetKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpTypeFacetKeyParserRuleCall_0_0_1_0_0_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:4613:6: ( ruleSpecialFacetKey )\n {\n // InternalGaml.g:4613:6: ( ruleSpecialFacetKey )\n // InternalGaml.g:4614:1: ruleSpecialFacetKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpSpecialFacetKeyParserRuleCall_0_0_1_0_0_2()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleSpecialFacetKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpSpecialFacetKeyParserRuleCall_0_0_1_0_0_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalGaml.g:4619:6: ( ruleActionFacetKey )\n {\n // InternalGaml.g:4619:6: ( ruleActionFacetKey )\n // InternalGaml.g:4620:1: ruleActionFacetKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpActionFacetKeyParserRuleCall_0_0_1_0_0_3()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleActionFacetKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpActionFacetKeyParserRuleCall_0_0_1_0_0_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalGaml.g:4625:6: ( ruleVarFacetKey )\n {\n // InternalGaml.g:4625:6: ( ruleVarFacetKey )\n // InternalGaml.g:4626:1: ruleVarFacetKey\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpVarFacetKeyParserRuleCall_0_0_1_0_0_4()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleVarFacetKey();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpVarFacetKeyParserRuleCall_0_0_1_0_0_4()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 249, rule__ArgumentPair__OpAlternatives_0_0_1_0_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2454:1: ( ( ( rule__XAssignment__Group_0__0 ) ) | ( ( rule__XAssignment__Group_1__0 ) ) )\n int alt6=2;\n switch ( input.LA(1) ) {\n case RULE_ID:\n {\n int LA6_1 = input.LA(2);\n\n if ( (LA6_1==EOF||(LA6_1>=RULE_ID && LA6_1<=RULE_STRING)||(LA6_1>=14 && LA6_1<=49)||(LA6_1>=51 && LA6_1<=52)||(LA6_1>=56 && LA6_1<=80)||(LA6_1>=83 && LA6_1<=84)||(LA6_1>=86 && LA6_1<=87)) ) {\n alt6=2;\n }\n else if ( (LA6_1==13) ) {\n alt6=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 42:\n {\n int LA6_2 = input.LA(2);\n\n if ( (LA6_2==EOF||(LA6_2>=RULE_ID && LA6_2<=RULE_STRING)||(LA6_2>=14 && LA6_2<=49)||(LA6_2>=51 && LA6_2<=52)||(LA6_2>=56 && LA6_2<=80)||(LA6_2>=83 && LA6_2<=84)||(LA6_2>=86 && LA6_2<=87)) ) {\n alt6=2;\n }\n else if ( (LA6_2==13) ) {\n alt6=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 2, input);\n\n throw nvae;\n }\n }\n break;\n case 43:\n {\n int LA6_3 = input.LA(2);\n\n if ( (LA6_3==13) ) {\n alt6=1;\n }\n else if ( (LA6_3==EOF||(LA6_3>=RULE_ID && LA6_3<=RULE_STRING)||(LA6_3>=14 && LA6_3<=49)||(LA6_3>=51 && LA6_3<=52)||(LA6_3>=56 && LA6_3<=80)||(LA6_3>=83 && LA6_3<=84)||(LA6_3>=86 && LA6_3<=87)) ) {\n alt6=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 3, input);\n\n throw nvae;\n }\n }\n break;\n case 44:\n {\n int LA6_4 = input.LA(2);\n\n if ( (LA6_4==EOF||(LA6_4>=RULE_ID && LA6_4<=RULE_STRING)||(LA6_4>=14 && LA6_4<=49)||(LA6_4>=51 && LA6_4<=52)||(LA6_4>=56 && LA6_4<=80)||(LA6_4>=83 && LA6_4<=84)||(LA6_4>=86 && LA6_4<=87)) ) {\n alt6=2;\n }\n else if ( (LA6_4==13) ) {\n alt6=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 4, input);\n\n throw nvae;\n }\n }\n break;\n case 45:\n {\n int LA6_5 = input.LA(2);\n\n if ( (LA6_5==13) ) {\n alt6=1;\n }\n else if ( (LA6_5==EOF||(LA6_5>=RULE_ID && LA6_5<=RULE_STRING)||(LA6_5>=14 && LA6_5<=49)||(LA6_5>=51 && LA6_5<=52)||(LA6_5>=56 && LA6_5<=80)||(LA6_5>=83 && LA6_5<=84)||(LA6_5>=86 && LA6_5<=87)) ) {\n alt6=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 5, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_HEX:\n case RULE_INT:\n case RULE_DECIMAL:\n case RULE_STRING:\n case 26:\n case 34:\n case 35:\n case 40:\n case 46:\n case 47:\n case 48:\n case 56:\n case 60:\n case 61:\n case 64:\n case 66:\n case 70:\n case 71:\n case 72:\n case 73:\n case 74:\n case 75:\n case 76:\n case 77:\n case 78:\n case 87:\n {\n alt6=2;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n\n switch (alt6) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2455:1: ( ( rule__XAssignment__Group_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2455:1: ( ( rule__XAssignment__Group_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2456:1: ( rule__XAssignment__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2457:1: ( rule__XAssignment__Group_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2457:2: rule__XAssignment__Group_0__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_0__0_in_rule__XAssignment__Alternatives5215);\n rule__XAssignment__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2461:6: ( ( rule__XAssignment__Group_1__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2461:6: ( ( rule__XAssignment__Group_1__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2462:1: ( rule__XAssignment__Group_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2463:1: ( rule__XAssignment__Group_1__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2463:2: rule__XAssignment__Group_1__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1__0_in_rule__XAssignment__Alternatives5233);\n rule__XAssignment__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArgumentPair__OpAssignment_0_0_1_0() throws RecognitionException {\n int rule__ArgumentPair__OpAssignment_0_0_1_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1116) ) { return ; }\n // InternalGaml.g:18641:1: ( ( ( rule__ArgumentPair__OpAlternatives_0_0_1_0_0 ) ) )\n // InternalGaml.g:18642:1: ( ( rule__ArgumentPair__OpAlternatives_0_0_1_0_0 ) )\n {\n // InternalGaml.g:18642:1: ( ( rule__ArgumentPair__OpAlternatives_0_0_1_0_0 ) )\n // InternalGaml.g:18643:1: ( rule__ArgumentPair__OpAlternatives_0_0_1_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArgumentPairAccess().getOpAlternatives_0_0_1_0_0()); \n }\n // InternalGaml.g:18644:1: ( rule__ArgumentPair__OpAlternatives_0_0_1_0_0 )\n // InternalGaml.g:18644:2: rule__ArgumentPair__OpAlternatives_0_0_1_0_0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ArgumentPair__OpAlternatives_0_0_1_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArgumentPairAccess().getOpAlternatives_0_0_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 1116, rule__ArgumentPair__OpAssignment_0_0_1_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Relation__OpAssignment_1_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5672:1: ( ( ( rule__Relation__OpAlternatives_1_0_0 ) ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5673:1: ( ( rule__Relation__OpAlternatives_1_0_0 ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5673:1: ( ( rule__Relation__OpAlternatives_1_0_0 ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5674:1: ( rule__Relation__OpAlternatives_1_0_0 )\r\n {\r\n before(grammarAccess.getRelationAccess().getOpAlternatives_1_0_0()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5675:1: ( rule__Relation__OpAlternatives_1_0_0 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:5675:2: rule__Relation__OpAlternatives_1_0_0\r\n {\r\n pushFollow(FOLLOW_rule__Relation__OpAlternatives_1_0_0_in_rule__Relation__OpAssignment_1_011488);\r\n rule__Relation__OpAlternatives_1_0_0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getRelationAccess().getOpAlternatives_1_0_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1815:1: ( ( ( rule__XAssignment__Group_0__0 ) ) | ( ( rule__XAssignment__Group_1__0 ) ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==RULE_ID) ) {\n int LA3_1 = input.LA(2);\n\n if ( (LA3_1==EOF||(LA3_1>=RULE_ID && LA3_1<=RULE_STRING)||(LA3_1>=12 && LA3_1<=32)||(LA3_1>=35 && LA3_1<=41)||(LA3_1>=43 && LA3_1<=63)||(LA3_1>=67 && LA3_1<=69)) ) {\n alt3=2;\n }\n else if ( (LA3_1==11) ) {\n alt3=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 1, input);\n\n throw nvae;\n }\n }\n else if ( ((LA3_0>=RULE_INT && LA3_0<=RULE_STRING)||LA3_0==20||(LA3_0>=23 && LA3_0<=24)||LA3_0==29||(LA3_0>=31 && LA3_0<=32)||LA3_0==35||LA3_0==41||(LA3_0>=44 && LA3_0<=45)||LA3_0==47||(LA3_0>=51 && LA3_0<=53)||(LA3_0>=55 && LA3_0<=60)||LA3_0==69) ) {\n alt3=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1816:1: ( ( rule__XAssignment__Group_0__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1816:1: ( ( rule__XAssignment__Group_0__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1817:1: ( rule__XAssignment__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1818:1: ( rule__XAssignment__Group_0__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1818:2: rule__XAssignment__Group_0__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_0__0_in_rule__XAssignment__Alternatives3815);\n rule__XAssignment__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1822:6: ( ( rule__XAssignment__Group_1__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1822:6: ( ( rule__XAssignment__Group_1__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1823:1: ( rule__XAssignment__Group_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1824:1: ( rule__XAssignment__Group_1__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1824:2: rule__XAssignment__Group_1__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1__0_in_rule__XAssignment__Alternatives3833);\n rule__XAssignment__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleDefinitionFacetKey() throws RecognitionException {\n int ruleDefinitionFacetKey_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 100) ) { return ; }\n // InternalGaml.g:1455:2: ( ( ( rule__DefinitionFacetKey__Alternatives ) ) )\n // InternalGaml.g:1456:1: ( ( rule__DefinitionFacetKey__Alternatives ) )\n {\n // InternalGaml.g:1456:1: ( ( rule__DefinitionFacetKey__Alternatives ) )\n // InternalGaml.g:1457:1: ( rule__DefinitionFacetKey__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDefinitionFacetKeyAccess().getAlternatives()); \n }\n // InternalGaml.g:1458:1: ( rule__DefinitionFacetKey__Alternatives )\n // InternalGaml.g:1458:2: rule__DefinitionFacetKey__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__DefinitionFacetKey__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDefinitionFacetKeyAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 100, ruleDefinitionFacetKey_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2646:1: ( ( ( rule__XAssignment__Group_0__0 ) ) | ( ( rule__XAssignment__Group_1__0 ) ) )\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( (LA10_0==RULE_ID) ) {\r\n int LA10_1 = input.LA(2);\r\n\r\n if ( (LA10_1==EOF||(LA10_1>=RULE_ID && LA10_1<=RULE_INT)||(LA10_1>=12 && LA10_1<=33)||(LA10_1>=43 && LA10_1<=45)||(LA10_1>=50 && LA10_1<=53)||(LA10_1>=57 && LA10_1<=58)||(LA10_1>=60 && LA10_1<=85)||(LA10_1>=90 && LA10_1<=91)||(LA10_1>=93 && LA10_1<=94)) ) {\r\n alt10=2;\r\n }\r\n else if ( (LA10_1==11) ) {\r\n alt10=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 10, 1, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n else if ( ((LA10_0>=RULE_STRING && LA10_0<=RULE_INT)||LA10_0==20||(LA10_0>=23 && LA10_0<=24)||LA10_0==29||(LA10_0>=32 && LA10_0<=33)||LA10_0==43||LA10_0==45||LA10_0==50||(LA10_0>=57 && LA10_0<=58)||LA10_0==61||LA10_0==68||LA10_0==70||(LA10_0>=74 && LA10_0<=75)||(LA10_0>=77 && LA10_0<=82)||LA10_0==94) ) {\r\n alt10=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 10, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt10) {\r\n case 1 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2647:1: ( ( rule__XAssignment__Group_0__0 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2647:1: ( ( rule__XAssignment__Group_0__0 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2648:1: ( rule__XAssignment__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_0()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2649:1: ( rule__XAssignment__Group_0__0 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2649:2: rule__XAssignment__Group_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_0__0_in_rule__XAssignment__Alternatives5690);\r\n rule__XAssignment__Group_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2653:6: ( ( rule__XAssignment__Group_1__0 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2653:6: ( ( rule__XAssignment__Group_1__0 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2654:1: ( rule__XAssignment__Group_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2655:1: ( rule__XAssignment__Group_1__0 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2655:2: rule__XAssignment__Group_1__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1__0_in_rule__XAssignment__Alternatives5708);\r\n rule__XAssignment__Group_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
read the specified OperatorHub
@HTTP( method = "GET", path = "/apis/config.openshift.io/v1/operatorhubs/{name}" ) @Headers({ "Accept: */*" }) KubernetesCall<OperatorHub> readOperatorHub( @Path("name") String name);
[ "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> readOperatorHub(\n @Path(\"name\") String name, \n @QueryMap ReadOperatorHub queryParameters);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> readOperatorHubStatus(\n @Path(\"name\") String name);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> readOperatorHubStatus(\n @Path(\"name\") String name, \n @QueryMap ReadOperatorHubStatus queryParameters);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<OperatorHubList, OperatorHub> listOperatorHub();", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<OperatorHubList, OperatorHub> listOperatorHub(\n @QueryMap ListOperatorHub queryParameters);", "public interface HubOperations \n{\n void sensorAlert (String name, String room);\n void sensorOnOff (String name, String room, boolean onOff);\n void cameraAlert (String name, String room);\n void sensorReset (String name, String room);\n void logAlarm (String log);\n}", "public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetHubMethod(), getCallOptions(), request);\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> patchOperatorHub(\n @Path(\"name\") String name, \n @Body OperatorHub body);", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> patchOperatorHub(\n @Path(\"name\") String name, \n @Body OperatorHub body, \n @QueryMap PatchOperatorHub queryParameters);", "int getHubID();", "public String getHubName()\n {\n return this.hubName;\n }", "private int getPreferredHub(){\n SharedPreferences settings = getSharedPreferences(PREFS_NAME,\n Context.MODE_PRIVATE);\n return Integer.parseInt(settings.getString(PREF_HUB, DEFAULT_HUB));\n }", "interface HubProtocol {\n String getName();\n int getVersion();\n TransferFormat getTransferFormat();\n\n /**\n * Creates a new list of {@link HubMessage}s.\n * @param message A string representation of one or more {@link HubMessage}s.\n * @return A list of {@link HubMessage}s.\n */\n HubMessage[] parseMessages(String message, InvocationBinder binder);\n\n /**\n * Writes the specified {@link HubMessage} to a String.\n * @param message The message to write.\n * @return A string representation of the message.\n */\n String writeMessage(HubMessage message);\n}", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> patchOperatorHubStatus(\n @Path(\"name\") String name, \n @Body OperatorHub body);", "public Hub<QueryInfo> getHub() {\n if (hub == null) {\n hub = new Hub<QueryInfo>(QueryInfo.class);\n }\n return hub;\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> patchOperatorHubStatus(\n @Path(\"name\") String name, \n @Body OperatorHub body, \n @QueryMap PatchOperatorHubStatus queryParameters);", "public int getHubID() {\n return hubID_;\n }", "public int getHubID() {\n return hubID_;\n }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> replaceOperatorHub(\n @Path(\"name\") String name, \n @Body OperatorHub body);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a data transfer download failed event.
public void addDataTransferDownloadFailedEvent( String userId, String path, HpcDownloadTaskType downloadTaskType, String downloadTaskId, HpcFileLocation destinationLocation, Calendar dataTransferCompleted, String errorMessage) throws HpcException;
[ "public void downloadFailed(Throwable t);", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "public void addDataTransferUploadFailedEvent(\n String userId,\n String path,\n HpcFileLocation sourceLocation,\n Calendar dataTransferCompleted,\n String errorMessage)\n throws HpcException;", "@Override\n public void downloadFailed() {\n DebugLog.w(\"Download service failed.\");\n unbindSpecifiedService(download_service_connection);\n }", "public void onError(Download download);", "private void downloadFailed() {\r\n\t\tmakeToast(\"We encountered an error while trying to refresh.\", Toast.LENGTH_LONG);\r\n\t\t\r\n\t\trefreshing = false;\r\n\t\tif(list != null)\r\n\t\t\tlist.onRefreshComplete();\r\n\t\t\r\n\t\tif(askLoadCache())\r\n\t\t\tdlHandler.loadCache();\r\n\t\telse\r\n\t\t\tdisplayEmpty();\r\n\t}", "protected void fireFailedDownloadingBytes(long callbackId) {\n ServerMessageDownEvent smde = new ServerMessageDownEvent(IOUtil.createURL(this), callbackId, ServerMessageDownEvent.TYPE_FAILED);\n for (RemoteTrancheServerListener l : getListeners()) {\n try {\n l.downMessageFailed(smde);\n } catch (Exception e) {\n }\n }\n }", "public void requestFailed(RequestFailureEvent e);", "void uploadFailed(StreamingErrorEvent event);", "@Override\n public void onFailure(Call call, IOException e) {\n listener.onDownloadFailed(MyApplication.getContext().getString(R.string.failure_please_try_again));\n }", "public void addRestoreRequestFailedEvent(\n String userId, String restoreTaskId, String path, Calendar completed, String errorMessage)\n throws HpcException;", "private void fireOperationFailed(Exception ex) {\n for (ProgressChangeListener progressChangeListener : listeners) {\n progressChangeListener.operationFailed(ex);\n }\n }", "public void addBulkDataObjectRegistrationFailedEvent(\n String userId, String registrationTaskId, Calendar completed, String errorMessage)\n throws HpcException;", "void fileTransferFailed(IMSession session, String requestId, ReasonInfo reason);", "@Subscribe\n public void onCmdFailed(FailedCommandEvent event){\n AbsXMPPCommand cmd = event.mCommand;\n\n if ( cmd instanceof RetryCommand ) {\n RetryCommand retry = (RetryCommand)cmd;\n\n if ( retry.mTries != RetryManager.MAX_RETRIES ){\n return;\n }\n\n retry.getOriginalCommand();\n\n Toast.makeText(this,\n String.format(\"Cmd failed, type: %s id: %s\", cmd.getClass().getSimpleName(), cmd.getId()),\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onSavingFailed(@NonNull IOException e) {\n Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();\n notifyAfterDownloadingProgress();\n }", "@Override\n public void onDataListenerError(int arg0)\n {\n System.out.println(\"onDataListenerError called\");\n }", "public void onSendFailure( EndPoint dst, Message m ) ;", "public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column CTSCARDS_MGT_HST.DATE_HEATED
public Date getDATE_HEATED() { return DATE_HEATED; }
[ "public void setDATE_HEATED(Date DATE_HEATED) {\r\n this.DATE_HEATED = DATE_HEATED;\r\n }", "public Date getDATE_HEATED_INIT() {\r\n return DATE_HEATED_INIT;\r\n }", "public String getVALUE_DATE_HIJRI() {\r\n return VALUE_DATE_HIJRI;\r\n }", "public Date getDateHeure() {\n\t\treturn dateHeure;\n\t}", "public Date getHiredate() {\r\n return (Date) getAttributeInternal(HIREDATE);\r\n }", "public Timestamp getHC_WorkStartDate2();", "public String getMATURITY_DATE_HIJRI()\r\n {\r\n\treturn MATURITY_DATE_HIJRI;\r\n }", "public java.sql.Date getOriginal_hire_date() {\r\n return (java.sql.Date) get(\"original_hire_date\");\r\n }", "public String getStartDateHour() {\n return startDateHour;\n }", "public String getHEATED_BY() {\r\n return HEATED_BY;\r\n }", "public Date getFechaHoraRegistro() {\n return fechaHoraRegistro;\n }", "public String getHorzDatum() {\n\t\treturn horzDatum;\n\t}", "public Date getHuidigeDatumEnTijd() {\n return huidigeDatumEnTijd;\n }", "public Date getHiredate() {\r\n return hiredate;\r\n }", "public Date getHireDate() {\r\n return (Date)getAttributeInternal(HIREDATE);\r\n }", "public Date getFechaHoraValor() {\n return fechaHoraValor;\n }", "public Date gettCgthdate() {\n return tCgthdate;\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public String getBxhxdate() {\n return bxhxdate;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether this actor is in the middle of a cell in terms of ycoordinate
public boolean isVerticallyCentered() { return (getY() - CELL_SIZE / 2) % CELL_SIZE == 0; }
[ "boolean hasHasYCoordinate();", "public boolean isCenteringY() {\r\n return centeringY;\r\n }", "boolean hasWorldTileY();", "public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }", "public boolean isHorizontallyCentered() {\r\n return (getX() - CELL_SIZE / 2) % CELL_SIZE == 0;\r\n }", "boolean isCenter(int x, int y) {\n return isCenter(pl(x, y));\n }", "boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }", "public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}", "public static boolean isPlaceCellCenter() { return cachePlaceCellCenter.getBoolean(); }", "@Override\r\n\tpublic boolean isAtExit() {\r\n\t\tint x = this.position[0];\r\n\t\tint y = this.position[1];\r\n\t\t\r\n\t\tif(this.inMaze(x, y)) {\r\n\t\t\tif(controller.getMazeConfiguration().getMazecells().isExitPosition(x, y)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new RuntimeException(\"Not at a valid position\") ;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "boolean isUp(Cell other){ return x == other.x && y == other.y + 1; }", "public boolean atEastBoundary(){\n if(position.x > viewport.getWorldWidth() - PLAYER_WIDTH ){\n return true;\n }\n return false;\n }", "boolean inArea() {\n return (x-x_t)*(x-x_t) + (y-y_t)*(y-y_t) < (cell*r_rate)*(cell*r_rate);\n }", "public boolean atPosition(float x, float y) {\n return (Math.abs(y-this.y) <= 0.25 || Math.abs(x-this.x) <= 0.25);\n }", "public boolean closeToColCenter()\r\n\t{\r\n\t\treturn Math.abs(this.getWorldPosition().x - getColCenterX(this.getPlayerCol())) < 10;\r\n\t}", "public int getMiddleY() {\n return middleY;\n }", "private boolean isCellInMaze(Cell cell) {\n\n\t\tif (mMaze.type == HEX) {\n\t\t\treturn cell != null && \n\t\t\t\t\tcell.r >= 0 && \n\t\t\t\t\tcell.r < mMaze.sizeR && \n\t\t\t\t\tcell.c >= (cell.r + 1) / 2 && \n\t\t\t\t\tcell.c < mMaze.sizeC + (cell.r + 1) / 2;\n\t\t} else {\n\t\t\treturn cell != null && \n\t\t\t\t\tcell.r >= 0 && \n\t\t\t\t\tcell.r < mMaze.sizeR && \n\t\t\t\t\tcell.c >= 0 && \n\t\t\t\t\tcell.c < mMaze.sizeC;\n\t\t} \t\n\t}", "public boolean isTopAligned(double margin) {\n\t\tJGRectangle bbox = getTileBBox();\n\t\tif (bbox!=null) {\n\t\t\treturn eng.isYAligned(bbox.y,margin);\n\t\t} else {\n\t\t\treturn eng.isYAligned(y,margin);\n\t\t}\n\t}", "private boolean inBounds(int x, int y) {\n return x >= 0 && x < cellCount && y >= 0 && y < cellCount;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate and display the TVQ taxes
public void tvqTax() { TextView tvqView = findViewById(R.id.checkoutPage_TVQtaxValue); tvqTaxTotal = beforeTaxTotal * 0.09975; tvqView.setText(String.format("$%.2f", tvqTaxTotal)); }
[ "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }", "private double calcTax() {\r\n // tax = 15% of gross\r\n double taxrate = 0.15;\r\n return gross * taxrate;\r\n }", "double getTax_Amount();", "public double calcTax() {\n return 2.10 * (value / 1000);\n }", "double getTaxAmount();", "@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }", "private double calculateTax(){\n return ((double)runningTotal * (1+TAX_PERCENTAGE/100)); \n }", "public BigDecimal getPriceStdWTax();", "public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }", "BigDecimal getTax();", "public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }", "public double tax()\n {\n double tax = 0;\n tax = TAX_RATE * costOfMeal;\n return tax;\n \n }", "public void afterTax() {\n TextView afterView = findViewById(R.id.checkoutPage_afterTaxValue);\n afterTaxTotal = beforeTaxTotal + tpsTaxTotal + tvqTaxTotal;\n afterView.setText(String.format(\"$%.2f\", afterTaxTotal));\n }", "public BigDecimal getTaxAmtPriceStd();", "public BigDecimal getTAX() {\r\n return TAX;\r\n }", "public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }", "public double getTaxRate(){\n return ruler.getTax();\n }", "public double getTaxa();", "public BigDecimal getTax() {\n return tax;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
new activity created; force its orientation to portrait
@Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) { activity.setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }
[ "@Override\n public void onActivityCreated(Activity arg0, Bundle arg1) {\n arg0.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "private void lockScreenOrientation() {\n int currentOrientation = getResources().getConfiguration().orientation;\n if (currentOrientation == Configuration.ORIENTATION_PORTRAIT) {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n } else {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n }\n }", "private void unlockScreenOrientation() {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\n }", "@Test\n public void deviceInLandscape_ActivityLaunchesInPortrait() throws RemoteException {\n device.setOrientationLeft();\n\n loginActivityRule.launchActivity(null);\n\n assertEquals(Configuration.ORIENTATION_PORTRAIT, getActivityOrientation());\n }", "void portrait() ;", "private void oncreateLandscape(){\n //WE RECOVER VIEWS\n recoverViewsLandscape();\n\n //LOCK TOGGLEBUTTON\n OnOff.setEnabled(false);\n\n //ARRAY OF VIEWS IN PORTRAIT MODE\n views=new View[]{\n ivLogo\n };\n //LOCK ALL OF VIEWS\n ivLogo.setEnabled(false);\n\n //GET BLUETOOTH ADAPTER\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n\n //GET SENSOR MANAGER FOR ACCELEROMETER\n mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n\n //SETUP CLICK LISTENERS\n setupListenersLandscape();\n }", "public void setNewOrientation(int value) {\n this.newOrientation = value;\n }", "public void setOrientation(int ori);", "void setLandscapeMode(boolean portrait);", "@Test\n public void changeDeviceToLandscape_OrientationRemainsPortrait() throws RemoteException {\n loginActivityRule.launchActivity(null);\n\n device.setOrientationLeft();\n\n Assert.assertEquals(Configuration.ORIENTATION_PORTRAIT, getActivityOrientation());\n }", "public boolean usePortraitOrientation() {\n return false;\n }", "public void setOrientation(Direction orientation);", "public static void blockScreenOrientation(Activity activity) {\r\n activity.setRequestedOrientation(activity.getResources().getConfiguration().orientation);\r\n }", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "private Orientation() {\n }", "void unlockOrientation() {\n if (!mOrientationLocked) {\n return;\n }\n\n mOrientationLocked = false;\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n }", "public void doLock() {\r\n if (locked) {\r\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n }\r\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n }\r\n } else {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\r\n }\r\n }", "void landscape() ;", "@Override\npublic void onOrientationChanged(int orientation) {\n\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensures that metaData mutations are handled in the correct order
private PMetaData metaDataMutated(PName tenantId, String tableName, long tableSeqNum, Mutator mutator) throws SQLException { synchronized (latestMetaDataLock) { throwConnectionClosedIfNullMetaData(); PMetaData metaData = latestMetaData; PTable table; long endTime = EnvironmentEdgeManager.currentTimeMillis() + DEFAULT_OUT_OF_ORDER_MUTATIONS_WAIT_TIME_MS; while (true) { try { try { table = metaData.getTableRef(new PTableKey(tenantId, tableName)).getTable(); /* If the table is at the prior sequence number, then we're good to go. * We know if we've got this far, that the server validated the mutations, * so we'd just need to wait until the other connection that mutated the same * table is processed. */ if (table.getSequenceNumber() + 1 == tableSeqNum) { // TODO: assert that timeStamp is bigger that table timeStamp? mutator.mutate(metaData); break; } else if (table.getSequenceNumber() >= tableSeqNum) { LOGGER.warn("Attempt to cache older version of " + tableName + ": current= " + table.getSequenceNumber() + ", new=" + tableSeqNum); break; } } catch (TableNotFoundException e) { } long waitTime = endTime - EnvironmentEdgeManager.currentTimeMillis(); // We waited long enough - just remove the table from the cache // and the next time it's used it'll be pulled over from the server. if (waitTime <= 0) { LOGGER.warn("Unable to update meta data repo within " + (DEFAULT_OUT_OF_ORDER_MUTATIONS_WAIT_TIME_MS/1000) + " seconds for " + tableName); // There will never be a parentTableName here, as that would only // be non null for an index an we never add/remove columns from an index. metaData.removeTable(tenantId, tableName, null, HConstants.LATEST_TIMESTAMP); break; } latestMetaDataLock.wait(waitTime); } catch (InterruptedException e) { // restore the interrupt status Thread.currentThread().interrupt(); throw new SQLExceptionInfo.Builder(SQLExceptionCode.INTERRUPTED_EXCEPTION) .setRootCause(e).build().buildException(); // FIXME } } latestMetaData = metaData; latestMetaDataLock.notifyAll(); return metaData; } }
[ "@Test\n public void testSwap() throws OperationException {\n // add a meta data record\n MetaDataEntry meta = new MetaDataEntry(\"a\", \"b\", \"typ\", \"thisid\");\n meta.addField(\"a\", \"x\");\n mds.add(context, meta);\n\n // create another entry with the same key but different field value\n MetaDataEntry meta1 = new MetaDataEntry(\"a\", \"b\", \"typ\", \"thisid\");\n meta1.addField(\"a\", \"y\");\n\n // validate that swap succeeds\n mds.swap(context, meta, meta1);\n\n // create another entry with the same key but different field value\n MetaDataEntry meta2 = new MetaDataEntry(\"a\", \"b\", \"typ\", \"thisid\");\n meta2.addField(\"a\", \"z\");\n meta2.addField(\"b\", \"1\");\n\n // validate that swapping again fails with the old expected value\n try {\n mds.swap(context, meta, meta2);\n Assert.fail(\"Expected write conflict\");\n } catch (OperationException e) { // expected\n Assert.assertEquals(StatusCode.WRITE_CONFLICT, e.getStatus());\n }\n\n // update the entry to meta2, and try swapping again, should now succeed\n // although the expected value is not there, but the new value matches\n mds.update(context, meta2);\n mds.swap(context, meta, meta2);\n\n // create a new meta data entry and add fields in different order\n MetaDataEntry meta3 = new MetaDataEntry(\"a\", \"b\", \"typ\", \"thisid\");\n meta3.addField(\"b\", \"1\");\n meta3.addField(\"a\", \"z\");\n\n // verify that swap succeeds despite the different order of fields\n mds.swap(context, meta3, meta);\n }", "void verifyMetaRowsAreUpdated(HConnection hConnection)\n throws IOException {\n List<Result> results = MetaTableAccessor.fullScan(hConnection);\n assertTrue(results.size() >= REGION_COUNT);\n\n for (Result result : results) {\n byte[] hriBytes = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.REGIONINFO_QUALIFIER);\n assertTrue(hriBytes != null && hriBytes.length > 0);\n assertTrue(MetaMigrationConvertingToPB.isMigrated(hriBytes));\n\n byte[] splitA = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER);\n if (splitA != null && splitA.length > 0) {\n assertTrue(MetaMigrationConvertingToPB.isMigrated(splitA));\n }\n\n byte[] splitB = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER);\n if (splitB != null && splitB.length > 0) {\n assertTrue(MetaMigrationConvertingToPB.isMigrated(splitB));\n }\n }\n }", "@Test\n public void itemShouldBeReomovedWhenMetadatContainsIt() {\n Metadata meta = new Metadata();\n meta.add(\"name-one\", \"value-1.1\");\n meta.add(\"name-one\", \"value-1.2\");\n meta.add(\"name-two\", \"value-2.1\");\n assertEquals(2, meta.size());\n assertNotNull(meta.get(\"name-one\"));\n assertNotNull(meta.get(\"name-two\"));\n meta.remove(\"name-one\");\n assertEquals(1, meta.size());\n assertNull(meta.get(\"name-one\"));\n assertNotNull(meta.get(\"name-two\"));\n meta.remove(\"name-two\");\n assertEquals(0, meta.size());\n assertNull(meta.get(\"name-one\"));\n assertNull(meta.get(\"name-two\"));\n }", "@Test\n public void testSequenceFileMetadata() throws Exception {\n LOG.info(\"Testing SequenceFile with metadata\");\n int count = 1024 * 10;\n CompressionCodec codec = new DefaultCodec();\n Path file = new Path(GenericTestUtils.getTempPath(\"test.seq.metadata\"));\n Path sortedFile = new Path(GenericTestUtils.getTempPath(\n \"test.sorted.seq.metadata\"));\n Path recordCompressedFile = new Path(GenericTestUtils.getTempPath(\n \"test.rc.seq.metadata\"));\n Path blockCompressedFile = new Path(GenericTestUtils.getTempPath(\n \"test.bc.seq.metadata\"));\n \n FileSystem fs = FileSystem.getLocal(conf);\n SequenceFile.Metadata theMetadata = new SequenceFile.Metadata();\n theMetadata.set(new Text(\"name_1\"), new Text(\"value_1\"));\n theMetadata.set(new Text(\"name_2\"), new Text(\"value_2\"));\n theMetadata.set(new Text(\"name_3\"), new Text(\"value_3\"));\n theMetadata.set(new Text(\"name_4\"), new Text(\"value_4\"));\n \n int seed = new Random().nextInt();\n \n try {\n // SequenceFile.Writer\n writeMetadataTest(fs, count, seed, file, CompressionType.NONE, null, theMetadata);\n SequenceFile.Metadata aMetadata = readMetadata(fs, file);\n if (!theMetadata.equals(aMetadata)) {\n LOG.info(\"The original metadata:\\n\" + theMetadata.toString());\n LOG.info(\"The retrieved metadata:\\n\" + aMetadata.toString());\n throw new RuntimeException(\"metadata not match: \" + 1);\n }\n // SequenceFile.RecordCompressWriter\n writeMetadataTest(fs, count, seed, recordCompressedFile, CompressionType.RECORD, \n codec, theMetadata);\n aMetadata = readMetadata(fs, recordCompressedFile);\n if (!theMetadata.equals(aMetadata)) {\n LOG.info(\"The original metadata:\\n\" + theMetadata.toString());\n LOG.info(\"The retrieved metadata:\\n\" + aMetadata.toString());\n throw new RuntimeException(\"metadata not match: \" + 2);\n }\n // SequenceFile.BlockCompressWriter\n writeMetadataTest(fs, count, seed, blockCompressedFile, CompressionType.BLOCK,\n codec, theMetadata);\n aMetadata =readMetadata(fs, blockCompressedFile);\n if (!theMetadata.equals(aMetadata)) {\n LOG.info(\"The original metadata:\\n\" + theMetadata.toString());\n LOG.info(\"The retrieved metadata:\\n\" + aMetadata.toString());\n throw new RuntimeException(\"metadata not match: \" + 3);\n }\n // SequenceFile.Sorter\n sortMetadataTest(fs, file, sortedFile, theMetadata);\n aMetadata = readMetadata(fs, recordCompressedFile);\n if (!theMetadata.equals(aMetadata)) {\n LOG.info(\"The original metadata:\\n\" + theMetadata.toString());\n LOG.info(\"The retrieved metadata:\\n\" + aMetadata.toString());\n throw new RuntimeException(\"metadata not match: \" + 4);\n }\n } finally {\n fs.close();\n }\n LOG.info(\"Successfully tested SequenceFile with metadata\");\n }", "private void updateMeta(ByteString key, byte[] oldVal) {\n CodecDataOutput cdo = new CodecDataOutput();\n ByteString metaKey = encodeHashMetaKey(cdo, key.toByteArray());\n long fieldCount;\n ByteString metaVal = snapshot.get(metaKey);\n\n // decode long from bytes\n // big endian the 8 bytes\n fieldCount = new CodecDataInput(metaVal.toByteArray()).readLong();\n\n // update meta field count only oldVal is null\n if (oldVal == null || oldVal.length == 0) {\n fieldCount++;\n cdo.reset();\n cdo.writeLong(fieldCount);\n\n set(metaKey, cdo.toBytes());\n }\n }", "private void flushMetaData() {\n try {\n String metaFile = this.getMetadataFilePath();\n File mf = new File(metaFile);\n if (mf.exists()) {\n mf.delete();\n }\n mf.createNewFile();\n\n this.engineMeta.setDirToSave(metaFile);\n this.engineMeta.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testChangeMetadata() {\n metaDataProcessor.editMetaData(1, \"color\", \"red\");\n assertTrue(CommandController.getInstance().getCommandQ().poll() instanceof EditUserMetaCommand);\n }", "public void transformMetaData() {\n\t\tclear(Port.CLEAR_META_DATA_ERRORS);\n\t\tif (!isEnabled()) {\n\t\t\treturn;\n\t\t}\n\t\tgetInputPorts().checkPreconditions();\n\t\tgetTransformer().transformMetaData();\n\t}", "@Test\n public void testMetaBlocks() throws Exception {\n metablocks(\"none\");\n metablocks(\"gz\");\n }", "private static UoWFilesMetaInfo ensureUoWMeta( final UnitOfWork uow )\n {\n UoWFilesMetaInfo uowMeta = uow.metaInfo( UoWFilesMetaInfo.class );\n if( uowMeta != null )\n {\n return uowMeta;\n }\n\n uowMeta = new UoWFilesMetaInfo();\n uow.setMetaInfo( uowMeta );\n\n uow.addUnitOfWorkCallback( new UnitOfWorkCallback()\n {\n @Override\n public void beforeCompletion()\n throws UnitOfWorkCompletionException\n {\n UoWFilesMetaInfo uowMeta = uow.metaInfo( UoWFilesMetaInfo.class );\n if( uowMeta != null && !uowMeta.isEmpty() )\n {\n List<UoWFile> concurrentlyModified = new ArrayList<>();\n for( UoWFile eachUoWFile : uowMeta.values() )\n {\n try\n {\n eachUoWFile.apply();\n }\n catch( ConcurrentUoWFileStateModificationException ex )\n {\n concurrentlyModified.add( ex.getUoWFile() );\n }\n }\n if( !concurrentlyModified.isEmpty() )\n {\n throw new ConcurrentUoWFileModificationException( concurrentlyModified, uow.usecase() );\n }\n }\n }\n\n @Override\n public void afterCompletion( UnitOfWorkStatus status )\n {\n UoWFilesMetaInfo uowMeta = uow.metaInfo( UoWFilesMetaInfo.class );\n if( uowMeta != null && !uowMeta.isEmpty() )\n {\n for( UoWFile eachUoWFile : uowMeta.values() )\n {\n if( status == UnitOfWorkStatus.DISCARDED )\n {\n eachUoWFile.rollback();\n }\n eachUoWFile.cleanup();\n }\n uow.metaInfo( UoWFilesMetaInfo.class ).clear();\n }\n }\n } );\n return uowMeta;\n }", "private void checkMetadata() {\n if (!localMember.properties().equals(localProperties)) {\n localProperties = new Properties();\n localProperties.putAll(localMember.properties());\n LOGGER.debug(\"{} - Detected local properties change {}\", localMember.id(), localProperties);\n localMember.setIncarnationNumber(localMember.getIncarnationNumber() + 1);\n post(new GroupMembershipEvent(GroupMembershipEvent.Type.METADATA_CHANGED, localMember));\n recordUpdate(localMember.copy());\n }\n }", "@Override\n public boolean updatingMetadata(Metadata<?> metadata) {\n final MetadataType mdType = metadata.getType();\n if (!bases.keySet().contains(mdType)) {\n return false;\n }\n return updateBasis(mdType, metadata.getSequenceNumber());\n }", "@SuppressWarnings(\"rawtypes\")\r\n\tprotected void moveMeta() {\r\n\t\tif (isMap()) {\r\n\t\t\tmeta = ((Map) value).remove(Config.META);\r\n\t\t}\r\n\t}", "private void setBlockMeta() {\n\t\tint meta = getBlockMetadata();\n\t\tForgeDirection dir = ForgeDirection.getOrientation(meta);\n\t\tif(dir != direction) {\n\t\t\tworldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, direction.ordinal(), 3);\n\t\t\tmarkDirty();\n\t\t}\n\t}", "private void updateMeta( BaseStreamStepMeta streamMeta ) {\n streamMeta.setTransformationPath( wFileSection.wFileName.getText() );\n streamMeta.setBatchSize( wBatchSize.getText() );\n streamMeta.setBatchDuration( wBatchDuration.getText() );\n streamMeta.setParallelism( wParallelism.getText() );\n streamMeta.setPrefetchCount( wPrefetchCount.getText() );\n streamMeta.setSpecificationMethod( specificationMethod );\n streamMeta.setSubStep( wSubStep.getText() );\n switch ( specificationMethod ) {\n case FILENAME:\n streamMeta.setFileName( wFileSection.wFileName.getText() );\n streamMeta.setDirectoryPath( null );\n streamMeta.setTransName( null );\n streamMeta.setTransObjectId( null );\n break;\n case REPOSITORY_BY_NAME:\n String transPath = wFileSection.wFileName.getText();\n String transName = transPath;\n String directory = \"\";\n int index = transPath.lastIndexOf( '/' );\n if ( index != -1 ) {\n transName = transPath.substring( index + 1 );\n directory = transPath.substring( 0, index );\n }\n streamMeta.setDirectoryPath( directory );\n streamMeta.setTransName( transName );\n streamMeta.setFileName( null );\n streamMeta.setTransObjectId( null );\n break;\n default:\n break;\n }\n additionalOks( streamMeta );\n }", "@Test\n public void testChangeMetadataMap() {\n HashMap<String, String> map = new HashMap<>();\n map.put(\"color\", \"red\");\n map.put(\"r\", \"2\");\n metaDataProcessor.editMetaData(1, map);\n assertTrue(CommandController.getInstance().getCommandQ().poll() instanceof CommandComposite);\n }", "@Test\n public void testRemoveAllMetadata() {\n FullDescriptorImpl desc = new FullDescriptorImpl();\n testBasicFullDescriptor(desc);\n \n Assert.assertFalse(desc.removeAllMetadata(null));\n \n // Testing from 2 -> 0\n Assert.assertTrue(desc.removeAllMetadata(FullDescriptorImpl.FULL_KEY2));\n List<String> key2Values = desc.getMetadata().get(FullDescriptorImpl.FULL_KEY2);\n Assert.assertNull(key2Values);\n \n // Testing from 0 -> 0\n Assert.assertFalse(desc.removeAllMetadata(FullDescriptorImpl.FULL_KEY2));\n \n // Testing from 1 -> 0\n Assert.assertTrue(desc.removeAllMetadata(FullDescriptorImpl.FULL_KEY1));\n List<String> key1Values = desc.getMetadata().get(FullDescriptorImpl.FULL_KEY1);\n Assert.assertNull(key1Values);\n \n // Testing from 0 -> 0\n Assert.assertFalse(desc.removeAllMetadata(FullDescriptorImpl.FULL_KEY1));\n key1Values = desc.getMetadata().get(FullDescriptorImpl.FULL_KEY1);\n Assert.assertNull(key1Values);\n }", "@Test\n public void noChangeWhenRemoveItemFromMetadataWhichDoesNotContainIt() {\n Metadata meta = new Metadata();\n meta.add(\"name-one\", \"value-1.1\");\n meta.add(\"name-two\", \"value-2.1\");\n assertEquals(2, meta.size());\n assertNotNull(meta.get(\"name-one\"));\n assertNotNull(meta.get(\"name-two\"));\n meta.remove(\"name-three\");\n assertEquals(2, meta.size());\n }", "public void testUpdateSetMetadata() throws RecordStoreNotOpenException,\r\n\t\t\tInvalidRecordIDException, IOException, RecordStoreException {\r\n\t\tSetOfCardsDAO socdao = new SetOfCardsDAOV4Impl(RMSSETNAME);\r\n\t\tsocdao.resetSetState();\r\n\t\tsetOfCards = socdao.saveSetOfCards(setOfCards);\r\n\t\t// convention for the set meta data = 2nd record\r\n\t\tSetOfCards soc = socdao.loadSetMetadata(setOfCards.getSetId());\r\n\t\t// modify it\r\n\t\tsoc.setSetName(\"turbo set\");\r\n\t\tsoc.setDone(false);\r\n\t\tsoc.setTotalStudiedTimeInMiliseconds(9L);\r\n\t\tsoc.setTotalNumberOfDisplayedCards(983);\r\n\t\tsoc.setLastTimeViewed(444L);\r\n\t\tsoc.setLastTimeMarkedDone(867756L);\r\n\t\tsoc.setMarkedDoneCounter(328838);\r\n\t\tsoc.setTotalNumberOfCards(838);\r\n\t\tsoc.setTotalNumberOfCardsMarkedDone(38);\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\tsocdao.updateSetMetadata(soc);\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t\tlong loadingTime = endTime - startTime;\r\n\t\tSystem.out.println(\"RMS updateSetMetadata time: \"\r\n\t\t\t\t+ milisecondsToSeconds(loadingTime));\r\n\r\n\t\tassertTrue(\"RMS updateMeta:\" + milisecondsToSeconds(loadingTime),\r\n\t\t\t\tloadingTime < UPDATEMAXTIME);\r\n\r\n\t\t// recover it and verify\r\n\t\tSetOfCards socNew = socdao.loadSetMetadata(soc.getSetId());\r\n\t\tvalidateSetAgainstOldSet(soc, socNew);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to retrieve the basic information about a TV network. You can use this ID to search for TV shows with the discover method.
public Network getNetworkInfo(int networkId) throws MovieDbException { return tmdbNetworks.getNetworkInfo(networkId); }
[ "public static String getNetworkDetails() {\n\n WirelessAccessPoint tempWap = new WirelessAccessPoint(\"wap\");\n tempWap.getMACAddressAndDynamicIPAddressAndName(nodeTypeCounter(\"wap\"));\n\n String networkIPAddress = tempWap.getIPAddress().substring(0, 10) + \"0\";\n\n String firstOctet = networkIPAddress.substring(0, 3);\n\n String subnetMask = null;\n int numberOfMaskedBits = 0;\n\n if (Integer.parseInt(firstOctet) <= 127) {\n subnetMask = \"255.0.0.0\";\n numberOfMaskedBits = 8;\n }\n if (Integer.parseInt(firstOctet) > 127 && Integer.parseInt(firstOctet) <= 191) {\n subnetMask = \"255.255.0.0\";\n numberOfMaskedBits = 16;\n }\n if (Integer.parseInt(firstOctet) > 191 && Integer.parseInt(firstOctet) <= 223) {\n subnetMask = \"255.255.255.0\";\n numberOfMaskedBits = 24;\n }\n\n networkIPAddress += \"/\" + numberOfMaskedBits;\n\n String networkString = \"The network IP address is: \" + networkIPAddress + \" and the subnet mask is: \" + subnetMask;\n\n return networkString;\n }", "public void getTvShowDetail(int id, final OnDetailCallback callback) {\n tvService.getTvShow(id, Const.API_KEY)\n .enqueue(new Callback<DetailModel>() {\n @Override\n public void onResponse(Call<DetailModel> call, Response<DetailModel> response) {\n System.out.println(\"URL :: \"+ response.raw().request().url());\n if (response.isSuccessful()) {\n if (response.body() != null) {\n callback.onSuccess(response.body(), response.message());\n } else {\n callback.onFailure(\"response.body() is null\");\n }\n } else {\n callback.onFailure(response.message() + \", Error Code : \" + response.code());\n }\n }\n\n @Override\n public void onFailure(Call<DetailModel> call, Throwable t) {\n\n }\n });\n }", "@Test\n\tpublic void test_getNetwork() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"BBC\",t1.getNetwork());\n }", "@GET\n @Path(\"/networks\")\n public String getNetwork(HttpContext context,\n @QueryParam(\"vim\") String vim, @QueryParam(\"network\") String id)\n throws ServiceException {\n JSONObject paramJson = new JSONObject();\n paramJson.put(\"id\", id);\n paramJson.put(\"vim\", vim);\n\n return getRoaProxyResults(\"getNetworks\", paramJson);\n }", "String getKtvNetCode();", "Network getNetwork();", "public void getTvShowCast(int id, final OnCastCallback callback){\n tvService.getTvCast(id, Const.API_KEY).enqueue(new Callback<CreditModel>() {\n @Override\n public void onResponse(Call<CreditModel> call, Response<CreditModel> response) {\n System.out.println(\"URL :: \"+ response.raw().request().url());\n if (response.isSuccessful()) {\n if (response.body() != null) {\n callback.onSuccess(response.body(), response.message());\n } else {\n callback.onFailure(\"response.body() is null\");\n }\n } else {\n callback.onFailure(response.message() + \", Error Code : \" + response.code());\n }\n }\n\n @Override\n public void onFailure(Call<CreditModel> call, Throwable t) {\n\n }\n });\n }", "java.lang.String getNetwork();", "public NetworkInfo getNetworkInfo() {\n return new NetworkInfo(mNetworkInfo);\n }", "@Service NetworkService network(String id);", "public java.lang.String getNetworkId() {\r\n return networkId;\r\n }", "public java.lang.String getNetworkId() {\n return networkId;\n }", "public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInternetRadioStationName_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, INTERNETRADIOSTATIONNAME, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "@GET\n @Path(\"{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response getServiceNetwork(@PathParam(\"id\") String id) {\n log.trace(MESSAGE + \"GET \" + id);\n\n ServiceNetwork snet = adminService.serviceNetwork(NetworkId.of(id));\n if (snet == null) {\n log.trace(\"Returned NOT_FOUND\");\n return status(NOT_FOUND).build();\n }\n\n ObjectNode result = this.mapper().createObjectNode();\n result.set(SERVICE_NETWORK, codec(ServiceNetwork.class).encode(snet, this));\n log.trace(\"Returned OK {}\", result);\n return ok(result).build();\n }", "@GET(\"/show/summary.json/{apikey}/{title}/{extended}\")\n TvShow summary(\n @Path(\"title\") int tvdbId,\n @Path(\"extended\") Extended extended\n );", "public TVShow(){\n\t\tsuper();\n//\t\tname = \"unknown\";\n//\t\tviewers = 0;\n\t}", "public static String getConnectedWirelessNetwork() throws Exception {\r\n\t\tStringBuilder results = new StringBuilder();\r\n\t\tProcessUtils.execute(null, results, ProcessUtils.DEFAULT_ENCODING, \r\n\t\t\t\"iwgetid\",\r\n\t\t\t\"-r\");\r\n\t\treturn results.toString();\r\n\t}", "com.techxmind.el.Message.EventLog.Network getNetwork();", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInternetRadioStationName_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Ceffective__ProveedorNubeAssignment_3_1" $ANTLR start "rule__ProveedorNube__NombreAssignment_2_1" InternalCeffective.g:8235:1: rule__ProveedorNube__NombreAssignment_2_1 : ( ruleEString ) ;
public final void rule__ProveedorNube__NombreAssignment_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCeffective.g:8239:1: ( ( ruleEString ) ) // InternalCeffective.g:8240:2: ( ruleEString ) { // InternalCeffective.g:8240:2: ( ruleEString ) // InternalCeffective.g:8241:3: ruleEString { before(grammarAccess.getProveedorNubeAccess().getNombreEStringParserRuleCall_2_1_0()); pushFollow(FOLLOW_2); ruleEString(); state._fsp--; after(grammarAccess.getProveedorNubeAccess().getNombreEStringParserRuleCall_2_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__Empresa__NombreAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3316:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3317:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3317:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3318:1: ruleEString\n {\n before(grammarAccess.getEmpresaAccess().getNombreEStringParserRuleCall_2_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Empresa__NombreAssignment_2_16503);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEmpresaAccess().getNombreEStringParserRuleCall_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Producto__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3556:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3557:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3557:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3558:1: ruleEString\n {\n before(grammarAccess.getProductoAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Producto__NombreAssignment_3_16999);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getProductoAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Subred__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9064:1: ( ( ruleEString ) )\n // InternalCeffective.g:9065:2: ( ruleEString )\n {\n // InternalCeffective.g:9065:2: ( ruleEString )\n // InternalCeffective.g:9066:3: ruleEString\n {\n before(grammarAccess.getSubredAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getSubredAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Servidor_Impl__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8947:1: ( ( ruleEString ) )\n // InternalCeffective.g:8948:2: ( ruleEString )\n {\n // InternalCeffective.g:8948:2: ( ruleEString )\n // InternalCeffective.g:8949:3: ruleEString\n {\n before(grammarAccess.getServidor_ImplAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidor_ImplAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Categoria__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3496:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3497:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3497:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3498:1: ruleEString\n {\n before(grammarAccess.getCategoriaAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Categoria__NombreAssignment_3_16875);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getCategoriaAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Almacenamiento__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8683:1: ( ( ruleEString ) )\n // InternalCeffective.g:8684:2: ( ruleEString )\n {\n // InternalCeffective.g:8684:2: ( ruleEString )\n // InternalCeffective.g:8685:3: ruleEString\n {\n before(grammarAccess.getAlmacenamientoAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAlmacenamientoAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__GrupoSeguridad__NombreAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9207:1: ( ( ruleEString ) )\n // InternalCeffective.g:9208:2: ( ruleEString )\n {\n // InternalCeffective.g:9208:2: ( ruleEString )\n // InternalCeffective.g:9209:3: ruleEString\n {\n before(grammarAccess.getGrupoSeguridadAccess().getNombreEStringParserRuleCall_2_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getGrupoSeguridadAccess().getNombreEStringParserRuleCall_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Catalogo__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3436:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3437:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3437:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3438:1: ruleEString\n {\n before(grammarAccess.getCatalogoAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Catalogo__NombreAssignment_3_16751);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getCatalogoAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ServidorAplicaciones__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8551:1: ( ( ruleEString ) )\n // InternalCeffective.g:8552:2: ( ruleEString )\n {\n // InternalCeffective.g:8552:2: ( ruleEString )\n // InternalCeffective.g:8553:3: ruleEString\n {\n before(grammarAccess.getServidorAplicacionesAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidorAplicacionesAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__InternetGateway__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9143:1: ( ( ruleEString ) )\n // InternalCeffective.g:9144:2: ( ruleEString )\n {\n // InternalCeffective.g:9144:2: ( ruleEString )\n // InternalCeffective.g:9145:3: ruleEString\n {\n before(grammarAccess.getInternetGatewayAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getInternetGatewayAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Empresa__DescripcionAssignment_6_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3376:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3377:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3377:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3378:1: ruleEString\n {\n before(grammarAccess.getEmpresaAccess().getDescripcionEStringParserRuleCall_6_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Empresa__DescripcionAssignment_6_16627);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEmpresaAccess().getDescripcionEStringParserRuleCall_6_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atributo__NombreAtributoAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3616:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3617:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3617:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3618:1: ruleEString\n {\n before(grammarAccess.getAtributoAccess().getNombreAtributoEStringParserRuleCall_4_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Atributo__NombreAtributoAssignment_4_17123);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAtributoAccess().getNombreAtributoEStringParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Objective__ObjectiveAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28310:1: ( ( RULE_STRING ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28311:1: ( RULE_STRING )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28311:1: ( RULE_STRING )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28312:1: RULE_STRING\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectiveAccess().getObjectiveSTRINGTerminalRuleCall_2_0()); \r\n }\r\n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__Objective__ObjectiveAssignment_256846); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectiveAccess().getObjectiveSTRINGTerminalRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__OpcUa_SeRoNet__DescriptionAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:8925:1: ( ( ruleEString ) )\n // InternalComponentDefinition.g:8926:2: ( ruleEString )\n {\n // InternalComponentDefinition.g:8926:2: ( ruleEString )\n // InternalComponentDefinition.g:8927:3: ruleEString\n {\n before(grammarAccess.getOpcUa_SeRoNetAccess().getDescriptionEStringParserRuleCall_2_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getOpcUa_SeRoNetAccess().getDescriptionEStringParserRuleCall_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Letra__FuenteAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1533:1: ( ( ruleEString ) )\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1534:1: ( ruleEString )\n {\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1534:1: ( ruleEString )\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1535:1: ruleEString\n {\n before(grammarAccess.getLetraAccess().getFuenteEStringParserRuleCall_4_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Letra__FuenteAssignment_4_13012);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getLetraAccess().getFuenteEStringParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ProveedorNube__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:1242:1: ( ( ( rule__ProveedorNube__NombreAssignment_2_1 ) ) )\n // InternalCeffective.g:1243:1: ( ( rule__ProveedorNube__NombreAssignment_2_1 ) )\n {\n // InternalCeffective.g:1243:1: ( ( rule__ProveedorNube__NombreAssignment_2_1 ) )\n // InternalCeffective.g:1244:2: ( rule__ProveedorNube__NombreAssignment_2_1 )\n {\n before(grammarAccess.getProveedorNubeAccess().getNombreAssignment_2_1()); \n // InternalCeffective.g:1245:2: ( rule__ProveedorNube__NombreAssignment_2_1 )\n // InternalCeffective.g:1245:3: rule__ProveedorNube__NombreAssignment_2_1\n {\n pushFollow(FOLLOW_2);\n rule__ProveedorNube__NombreAssignment_2_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getProveedorNubeAccess().getNombreAssignment_2_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AmbienteDespliegue__RecursosAssignment_4_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8408:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8409:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8409:2: ( ( ruleEString ) )\n // InternalCeffective.g:8410:3: ( ruleEString )\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_2_0()); \n // InternalCeffective.g:8411:3: ( ruleEString )\n // InternalCeffective.g:8412:4: ruleEString\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_2_0_1()); \n\n }\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AmbienteDespliegue__RecursosAssignment_4_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8427:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8428:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8428:2: ( ( ruleEString ) )\n // InternalCeffective.g:8429:3: ( ruleEString )\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_3_1_0()); \n // InternalCeffective.g:8430:3: ( ruleEString )\n // InternalCeffective.g:8431:4: ruleEString\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_3_1_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_3_1_0_1()); \n\n }\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AutenticacionFirma__NombreAssignment_5_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8521:1: ( ( ruleEString ) )\n // InternalCeffective.g:8522:2: ( ruleEString )\n {\n // InternalCeffective.g:8522:2: ( ruleEString )\n // InternalCeffective.g:8523:3: ruleEString\n {\n before(grammarAccess.getAutenticacionFirmaAccess().getNombreEStringParserRuleCall_5_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionFirmaAccess().getNombreEStringParserRuleCall_5_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks list of groups for consistency, i.e. no characteristic of each group is involved in a conflict.
boolean checkConsistencyForSubGroups(final List<UiGroupData> subGroups);
[ "public void confirmAllStonesInGroupsClaimed(GoGroupSet groups) {\n\n NeighborAnalyzer na = new NeighborAnalyzer(board_);\n\n for (IGoGroup parentGroup : groups) {\n GoBoardPositionSet parentGroupStones = parentGroup.getStones();\n for (GoBoardPosition stone : parentGroupStones) { // for each stone in that group\n // compute the group from this stone and confirm it matches the parent group\n GoBoardPositionList g = na.findGroupFromInitialPosition(stone);\n\n // perhaps we should do something more than check the size.\n if (g.size() != parentGroupStones.size()) {\n groups.debugPrint(0, \"Confirm stones in groups they Claim failed. \\nGroups are:\\n\", true, true);\n StringBuilder bldr = new StringBuilder();\n bldr.append(board_.toString());\n bldr.append(\"\\n\");\n bldr.append(\"\\n\\nIt seems that using different seeds yields different groups:\");\n for (GoBoardPosition stone1 : parentGroupStones) {\n GoBoardPositionList gg = na.findGroupFromInitialPosition(stone);\n String title = \"\\nSEED STONE = \"+ stone1 + \" found groups of size \" + gg.size();\n bldr.append(gg.toString(title));\n }\n GameContext.log(0, bldr.toString());\n GameContext.log(0,\n g.toString(\"Calculated Group (seeded by \") + stone + \"):\"\n + \"\\n is not equal to the expected parent group:\\n\" + parentGroup);\n }\n }\n }\n }", "public void confirmStonesInValidGroups() {\n\n GoGroupSet groups = board_.getGroups();\n for ( int i = 1; i <= board_.getNumRows(); i++ ) {\n for ( int j = 1; j <= board_.getNumCols(); j++ ) {\n GoBoardPosition space = (GoBoardPosition) board_.getPosition( i, j );\n if ( space.isOccupied() ) {\n groups.confirmStoneInValidGroup(space);\n }\n }\n }\n }", "public static void checkForAffinityGroupConflict(List<AffinityGroup> affinityGroups,\n List<AffinityGroupConflicts> conflicts) {\n\n Set<Set<Guid>> unifiedPositiveGroups = getUnifiedPositiveAffinityGroups(affinityGroups.stream()\n .filter(AffinityGroup::isVmAffinityEnabled)\n .collect(Collectors.toList()));\n affinityGroups.stream()\n .filter(AffinityGroup::isVmAffinityEnabled)\n .filter(AffinityGroup::isVmNegative)\n .forEach(ag -> {\n for (Set<Guid> positiveGroup : unifiedPositiveGroups) {\n Set<Guid> intersection = new HashSet<>(ag.getVmIds());\n intersection.retainAll(positiveGroup);\n if (intersection.size() > 1) {\n conflicts.add(new AffinityGroupConflicts(new HashSet<>(Arrays.asList(ag)),\n AffinityRulesConflicts.VM_TO_VM_AFFINITY_CONFLICTS,\n AuditLogType.VM_TO_VM_AFFINITY_CONFLICTS, positiveGroup, intersection)\n );\n }\n }\n });\n }", "boolean checkCompletenessForSubGroups(final List<UiGroupData> subGroups);", "public interface GroupStatusChecker\n{\n\n\t/**\n\t * Checks group for completeness.\n\t *\n\t * @param group\n\t * group to check\n\t * @return true if all required characteristics have a value assigned.\n\t */\n\tboolean checkCompleteness(final UiGroupData group);\n\n\t/**\n\t * Checks list of groups for completeness.\n\t *\n\t * @param subGroups\n\t * list of groups\n\t * @return true if all groups are marked as complete\n\t */\n\tboolean checkCompletenessForSubGroups(final List<UiGroupData> subGroups);\n\n\t/**\n\t * Checks group for consistency, i.e. no characteristic of group is involved in a conflict.\n\t *\n\t * @param group\n\t * group to check\n\t * @return true if no characteristic of group is involved in a conflict\n\t */\n\tboolean checkConsistency(final CsticGroup group);\n\n\t/**\n\t * Checks list of groups for consistency, i.e. no characteristic of each group is involved in a conflict.\n\t *\n\t * @param subGroups\n\t * list of groups\n\t * @return true if no characteristic of each group is involved in a conflict\n\t */\n\tboolean checkConsistencyForSubGroups(final List<UiGroupData> subGroups);\n\n}", "public void checkConsistency(List inconsistencies);", "public static List<AffinityGroupConflicts> checkForAffinityGroupHostsConflict(List<AffinityGroup>\n affinityGroups) {\n\n List<AffinityGroupConflicts> conflicts = new ArrayList<>();\n\n checkHostsInPositiveAndNegativeAffinity(affinityGroups.stream()\n .filter(AffinityGroup::isVdsEnforcing)\n .collect(Collectors.toList()),\n true,\n conflicts);\n\n checkHostsInPositiveAndNegativeAffinity(affinityGroups, false, conflicts);\n\n checkVmToHostWithPositiveVmToVmConflict(affinityGroups, conflicts);\n\n checkVmToHostWithNegativeVmToVmConflicts(affinityGroups, conflicts);\n\n checkNonIntersectingPositiveHosts(affinityGroups, conflicts);\n\n checkForAffinityGroupConflict(affinityGroups, conflicts);\n\n return conflicts;\n }", "private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles and constraints in this group\r\n\t\t\tca.checkCollisionsVsCollection(this);\r\n\t\t\t\r\n\t\t\t// ...vs every other composite in this Group\r\n\t\t\tfor (int i = j + 1; i < clen; i++) {\r\n\t\t\t\tComposite cb = _composites.get(i);\r\n\t\t\t\tca.checkCollisionsVsCollection(cb);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "boolean checkCompleteness(final UiGroupData group);", "private void checkCollisionVsGroup(Group g) {\n\t\tcheckCollisionsVsCollection(g);\r\n\t\t\r\n\t\tint clen = _composites.size();\r\n\t\tint gclen = g.getComposites().size();\r\n\t\t\r\n\t\t// for every composite in this group..\r\n\t\tfor (int i = 0; i < clen; i++) {\r\n\t\t\r\n\t\t\t// check vs the particles and constraints of g\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.checkCollisionsVsCollection(g);\r\n\t\t\t\r\n\t\t\t// check vs composites of g\r\n\t\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\t\tComposite gc = g.getComposites().get(j);\r\n\t\t\t\tc.checkCollisionsVsCollection(gc);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check particles and constraints of this group vs the composites of g\r\n\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\tComposite gc = g.getComposites().get(j);\t\r\n\t\t\tcheckCollisionsVsCollection(gc);\r\n\t\t}\r\n\t}", "public static void verifyGroupListEquals(ImList<GuideGroup> lst1, ImList<GuideGroup> lst2) {\n assertEquals(lst1.size(), lst2.size());\n for (int i=0; i<lst1.size(); ++i) verifyGroupEquals(lst1.get(i), lst2.get(i));\n }", "public boolean check(Group group){\n return false;\n }", "public Integer mergeGroups(List<Integer> groups) throws TreeCoreferenceInformationException\r\n\t{\r\n\t\tif (null==groups)\r\n\t\t\tthrow new TreeCoreferenceInformationException(\"null list\");\r\n\t\tif (groups.size()==0)\r\n\t\t\tthrow new TreeCoreferenceInformationException(\"empty list\");\r\n\t\tInteger ret = groups.get(0);\r\n\t\tif (groups.size()==1)\r\n\t\t\t; // do nothing\r\n\t\telse\r\n\t\t{\r\n\t\t\tSet<Integer> badGroups = null;\r\n\t\t\tfor (Integer id : groups)\r\n\t\t\t{\r\n\t\t\t\tif (id<ret)\r\n\t\t\t\t\tret = id;\r\n\t\t\t}\r\n\t\t\tif (!mapIdToCorefGroups.containsKey(ret))\r\n\t\t\t\tthrow new TreeCoreferenceInformationException(\"One of the given groups, \"+ret+\", does not exist.\");\r\n\t\t\tSet<T> retGroup = mapIdToCorefGroups.get(ret);\r\n\t\t\tif (null==retGroup)\r\n\t\t\t\tthrow new TreeCoreferenceInformationException(\"Internal bug. Seems that One of the given groups, \"+ret+\", does not exist.\");\r\n\t\t\t\r\n\t\t\tfor (Integer id : groups)\r\n\t\t\t{\r\n\t\t\t\tif (id.intValue()!=ret.intValue())\r\n\t\t\t\t{\r\n\t\t\t\t\tSet<T> currentGroup = mapIdToCorefGroups.get(id);\r\n\t\t\t\t\tif (null==currentGroup)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// I still want to keep the stability of this co reference information state.\r\n\t\t\t\t\t\tif (badGroups==null) badGroups = new HashSet<Integer>();\r\n\t\t\t\t\t\tbadGroups.add(id);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (T node : currentGroup)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tretGroup.add(node);\r\n\t\t\t\t\t\t\tmapNodeToId.put(node, ret);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmapIdToCorefGroups.remove(id);\r\n\t\t\t\t}\r\n\t\t\t} // end of for loop\r\n\t\t\tif (badGroups!=null)\r\n\t\t\t{\r\n\t\t\t\tStringBuffer sbBadGroups = new StringBuffer();\r\n\t\t\t\tboolean firstIteration = true;\r\n\t\t\t\tfor (Integer badId : badGroups)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (firstIteration)\r\n\t\t\t\t\t\tfirstIteration = false;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tsbBadGroups.append(\", \");\r\n\r\n\t\t\t\t\tsbBadGroups.append(badId.toString());\r\n\t\t\t\t}\r\n\t\t\t\tthrow new TreeCoreferenceInformationException(\"The following groups do not exist: \"+sbBadGroups);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }", "public void checkConsistency(List inconsistencies)\n {\n super.checkConsistency(inconsistencies);\n checkId(inconsistencies);\n\n // check for unique Id\n IData d = ((IModel) getModel()).findData(getId());\n if (d != null && d != this)\n {\n BpmValidationError error = BpmValidationError.DATA_DUPLICATE_ID_FOR_DATA.raise(getName());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n\n if (null != getId())\n {\n // check id to fit in maximum length\n if (getId().length() > AuditTrailDataBean.getMaxIdLength())\n {\n BpmValidationError error = BpmValidationError.DATA_ID_FOR_DATA_EXCEEDS_MAXIMUM_LENGTH_OF_CHARACTERS.raise(\n getName(), AuditTrailDataBean.getMaxIdLength());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n }\n\n // use the validator, if present, to check the attributes validity\n ExtendedDataValidator validator = (ExtendedDataValidator) ValidatorUtils.getValidator(getType(), this, inconsistencies);\n if (null != validator)\n {\n Collection problems = validator.validate(getAllAttributes());\n for (Iterator i = problems.iterator(); i.hasNext();)\n {\n Inconsistency inc = (Inconsistency) i.next();\n if (inc.getError() != null)\n {\n inconsistencies.add(new Inconsistency(inc.getError(), this,\n inc.getSeverity()));\n }\n inconsistencies.add(new Inconsistency(inc.getMessage(), this,\n inc.getSeverity()));\n }\n \n if(validator instanceof StructuredDataValidator)\n {\n problems = ((StructuredDataValidator) validator).validate(this);\n for (Iterator i = problems.iterator(); i.hasNext();)\n {\n Inconsistency inc = (Inconsistency) i.next();\n if (inc.getError() != null)\n {\n inconsistencies.add(new Inconsistency(inc.getError(), this,\n inc.getSeverity()));\n }\n inconsistencies.add(new Inconsistency(inc.getMessage(), this,\n inc.getSeverity()));\n }\n }\n }\n }", "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 }", "public void checkConsistency(List inconsistencies)\n {\n try\n {\n super.checkConsistency(inconsistencies);\n checkId(inconsistencies);\n\n IModel currentModel = (IModel) getModel();\n allCurrentRoles = new ArrayList();\n allCurrentOrganizations = new ArrayList();\n\n Iterator allRoles = currentModel.getAllRoles();\n while (allRoles.hasNext())\n {\n IRole role = (IRole) allRoles.next();\n allCurrentRoles.add(role);\n }\n Iterator allOrganizations = currentModel.getAllOrganizations();\n while (allOrganizations.hasNext())\n {\n IOrganization organization = (IOrganization) allOrganizations.next();\n allCurrentOrganizations.add(organization);\n }\n\n // check for unique Id\n IModelParticipant p = ((IModel) getModel()).findParticipant(getId());\n if (p != null && p != this)\n {\n BpmValidationError error = BpmValidationError.PART_DUPLICATE_ID.raise(getName());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n\n if (null != getId())\n {\n // check id to fit in maximum length\n if (getId().length() > AuditTrailParticipantBean.getMaxIdLength())\n {\n BpmValidationError error = BpmValidationError.PART_ID_EXCEEDS_MAXIMUM_LENGTH.raise(\n getName(), AuditTrailParticipantBean.getMaxIdLength());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n }\n\n // Rule: All associated Organizations must be part of the model\n for (Iterator i = ((IModel) getModel()).getAllOrganizations(); i.hasNext();)\n {\n IOrganization organization = (IOrganization) i.next();\n\n if (((IModel) getModel()).findParticipant(organization.getId()) == null)\n {\n BpmValidationError error = BpmValidationError.PART_ASSOCIATED_ORGANIZATION_SET_FOR_PARTICIPANT_DOES_NOT_EXIST.raise(\n organization.getId(), getId());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n\n boolean scopedOrg = organization\n .getBooleanAttribute(PredefinedConstants.BINDING_ATT);\n String dataIdOrg = organization\n .getStringAttribute(PredefinedConstants.BINDING_DATA_ID_ATT);\n String dataPathOrg = organization\n .getStringAttribute(PredefinedConstants.BINDING_DATA_PATH_ATT);\n if (scopedOrg)\n {\n IData data = ((IModel) getModel()).findData(dataIdOrg);\n if(data == null)\n {\n BpmValidationError error = BpmValidationError.PART_DATA_FOR_SCOPED_ORGANIZATION_MUST_EXIST.raise(organization.getId());\n inconsistencies.add(new Inconsistency(error, this, Inconsistency.ERROR));\n }\n else\n {\n IDataType dataType = (IDataType) data.getType();\n boolean isPrimitiveData = PredefinedConstants.PRIMITIVE_DATA.equals(dataType\n .getId());\n boolean isStructData = PredefinedConstants.STRUCTURED_DATA.equals(dataType\n .getId());\n if ((!isPrimitiveData) && (!isStructData))\n {\n BpmValidationError error = BpmValidationError.PART_DATA_OF_SCOPED_ORGANIZATION_CAN_ONLY_BE_PRIM_OR_STRUCT.raise(organization.getId());\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n if (dataIdOrg == null)\n {\n BpmValidationError error = BpmValidationError.PART_DATA_OF_SCOPED_ORGANIZATION_MUST_NOT_BE_NULL.raise(organization.getId());\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n\n BridgeObject bridgeData = BridgeObject.getBridge(data, dataPathOrg,\n Direction.OUT, null);\n final Class endClass = bridgeData.getEndClass();\n\n if (!String.class.equals(endClass) && !endClass.isEnum())\n {\n BpmValidationError error = BpmValidationError.PART_TYPE_OF_DATA_OF_SCOPED_ORGANIZATION_IS_NOT.raise(\n dataIdOrg, organization.getId(), String.class);\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n }\n }\n\n if (ModelManagerFactory.isAvailable())\n {\n ModelManager modelManager = ModelManagerFactory.getCurrent();\n // is the order the same order like history?\n for (IModel model : modelManager.getModelsForId(getModel().getId()))\n {\n allNewOrganizations = new ArrayList();\n allRemovedOrganizations = new ArrayList();\n allPreviousRoles = new ArrayList();\n allPreviousOrganizations = new ArrayList();\n\n for(IOrganization currentOrganization : allCurrentOrganizations)\n {\n allNewOrganizations.add(currentOrganization.getId());\n }\n\n allRoles = model.getAllRoles();\n while (allRoles.hasNext())\n {\n IRole deployedRole = (IRole) allRoles.next();\n allPreviousRoles.add(deployedRole);\n }\n allOrganizations = model.getAllOrganizations();\n while (allOrganizations.hasNext())\n {\n IOrganization deployedOrganization = (IOrganization) allOrganizations.next();\n allPreviousOrganizations.add(deployedOrganization);\n // if not below this ones, it is new, remains in list\n allNewOrganizations.remove(deployedOrganization.getId());\n allRemovedOrganizations.add(deployedOrganization.getId());\n }\n\n // if not in list, it is removed\n for(IOrganization currentOrganization : allCurrentOrganizations)\n {\n allRemovedOrganizations.remove(currentOrganization.getId());\n }\n\n allOrganizations = model.getAllOrganizations();\n while (allOrganizations.hasNext())\n {\n IOrganization deployedOrganization = (IOrganization) allOrganizations\n .next();\n\n if(allNewOrganizations.contains(organization.getId()))\n {\n // is new\n if (scopedOrg)\n {\n if (!compareParticipantTree(null,\n organization, inconsistencies))\n {\n break;\n }\n }\n }\n else if(allRemovedOrganizations.contains(deployedOrganization.getId()))\n {\n // is removed\n boolean scopedDeployedOrg = deployedOrganization\n .getBooleanAttribute(PredefinedConstants.BINDING_ATT);\n if (scopedDeployedOrg)\n {\n if (!compareParticipantTree(deployedOrganization,\n null, inconsistencies))\n {\n break;\n }\n }\n }\n else if (organization.getId().equals(deployedOrganization.getId()))\n {\n boolean scopedDeployedOrg = deployedOrganization\n .getBooleanAttribute(PredefinedConstants.BINDING_ATT);\n // Rule: It's not allowed to change from a scoped to an unscoped\n // organization in model version deployment\n if (scopedOrg && !scopedDeployedOrg)\n {\n BpmValidationError error = BpmValidationError.PART_ORGANIZATION_IS_SCOPED_BUT_IN_AUDITTRAIL_UNSCOPED.raise(organization.getId());\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n // Rule: It's not allowed to change from an unscoped to a scoped\n // organization in model version deployment\n else if (!scopedOrg && scopedDeployedOrg)\n {\n BpmValidationError error = BpmValidationError.PART_ORGANIZATION_IS_UNSCOPED_BUT_IN_AUDITTRAIL_SCOPED.raise(organization.getId());\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n else if (scopedOrg && scopedDeployedOrg)\n {\n String dataPathDeployedOrg = deployedOrganization\n .getStringAttribute(PredefinedConstants.BINDING_DATA_PATH_ATT);\n String dataIdDeployedOrg = deployedOrganization\n .getStringAttribute(PredefinedConstants.BINDING_DATA_ID_ATT);\n if (!dataIdOrg.equals(dataIdDeployedOrg))\n {\n BpmValidationError error = BpmValidationError.PART_TYPE_OF_DATA_ID_OF_SCOPED_ORGANIZATION_IS_DIFFERENT_FROM_DATA_ID_IN_AUDIT_TRAIL.raise(\n dataIdOrg, organization.getId(), dataIdDeployedOrg);\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n else if ((dataPathOrg != null && dataPathDeployedOrg == null)\n || (dataPathOrg == null && dataPathDeployedOrg != null)\n || ((dataPathOrg != null && dataPathDeployedOrg != null) && (!dataPathOrg\n .equals(dataPathDeployedOrg))))\n {\n BpmValidationError error = BpmValidationError.PART_TYPE_OF_DATA_ID_OF_SCOPED_ORGANIZATION_IS_DIFFERENT_FROM_DATA_PATH_IN_AUDIT_TRAIL.raise(\n dataPathOrg, organization.getId(),\n dataPathDeployedOrg);\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n }\n\n if (scopedOrg)\n {\n // Rule: The subtree of a scoped organization must not be\n // changed\n if (!compareParticipantTree(deployedOrganization,\n organization, inconsistencies))\n {\n break;\n }\n }\n }\n }\n }\n }\n allOrganizations = this.getAllOrganizations();\n if (allOrganizations.hasNext())\n {\n allOrganizations.next();\n if (allOrganizations.hasNext())\n {\n BpmValidationError error = BpmValidationError.PART_MULTIPLE_SOPER_ORGANIZATIONS_ARE_NOT_ALLOWED.raise();\n inconsistencies.add(new Inconsistency(error, this,\n Inconsistency.ERROR));\n break;\n }\n }\n }\n }\n }\n catch (Exception e)\n {\n LogUtils.traceException(e, true);\n }\n }", "public void checkThreeGroups( ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1 (a)\", \"group 1\", \"a\" );\n insertRadio( 20, 38, \"group 1 (b)\", \"group 1\", \"b\" );\n\n insertRadio( 20, 50, \"group 2 (a)\", \"group 2\", \"a\" );\n insertRadio( 20, 58, \"group 2 (b)\", \"group 2\", \"b\" );\n\n insertRadio( 20, 70, \"group 3 (a)\", \"group 3\", \"a\" );\n insertRadio( 20, 78, \"group 3 (b)\", \"group 3\", \"b\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n // initially, after switching to alive mode, all buttons should be unchecked\n verifySixPack( 0, 0, 0, 0, 0, 0 );\n\n // check one button in every group\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n // and verify that this worked\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n // check all buttons which are currently unchecked\n checkRadio( \"group 1\", \"b\" );\n checkRadio( \"group 2\", \"a\" );\n checkRadio( \"group 3\", \"b\" );\n // this should have reset the previous checks in the respective groups\n verifySixPack( 0, 1, 1, 0, 0, 1 );\n\n // and back to the previous check state\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n cleanupTestStep();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
allocateExpIdToNode selectExpId Select ExpId for pSubtree and assign it to pSubtree. 60 void
ExpId selectExpId(HIR pSubtree, ExpInf pExpInf) { ExpId lExpId; int lHashCode, lSymExpCount; String lExpIdName; if (pSubtree == null) return null; //##60 lExpId = pSubtree.getExpId(); lExpId = getExpId(pSubtree); //##60 if (lExpId != null) return lExpId; if (fDbgLevel > 3) ioRoot.dbgFlow.print(6, " selectExpId ", pSubtree.getIrName()); lHashCode = computeHashCodeOfNode(pSubtree); for (lExpId = fExpIdHashTable[lHashCode]; lExpId != null; lExpId = lExpId.getNextId()) { if (isSameTree(getLinkedSubtreeOfExpId(lExpId), pSubtree)) { //##60 if (fDbgLevel > 3) ioRoot.dbgFlow.print(7, " same to " + getLinkedSubtreeOfExpId(lExpId).toStringShort()); //##60 break; } } if (lExpId == null) { // Allocate new ExpId lExpIdName = generateExpIdName(); //##78 lExpId = (ExpId)((ExpIdImpl)(symRoot.symTableCurrent. lExpId = (ExpId)((ExpIdImpl)(symRoot.symTableFlow. //##78 searchOrAdd(lExpIdName, Sym.KIND_EXP_ID, symRoot.subpCurrent, true, true))); if (fFirstExpId == null) // Record the first ExpId. fFirstExpId = lExpId; lExpId.setExpInf(pExpInf); //##60 recordSym(lExpId); //##62 fExpIdList.add(lExpId); //##60 if (fExpIdHashTable[lHashCode] != null) lExpId.setNextId(fExpIdHashTable[lHashCode]); fExpIdHashTable[lHashCode] = lExpId; } else { } // pSubtree.setExpId(lExpId); setExpId(pSubtree, lExpId); //##60 //##65 BEGIN if (! fDefinedSyms.contains(lExpId)) { fDefinedSyms.add(lExpId); //##65 fFlowAnalSymTable[lExpId.getIndex()] = lExpId; } // If maximal compound variable, record it. switch (pSubtree.getOperator()) { case HIR.OP_QUAL: if ((pSubtree.getParent() == null)|| (pSubtree.getParent().getOperator() != HIR.OP_QUAL)) getMaximalCompoundVars().add(lExpId); break; case HIR.OP_ARROW: if ((pSubtree.getParent() == null)|| (pSubtree.getParent().getOperator() != HIR.OP_ARROW)) getMaximalCompoundVars().add(lExpId); break; case HIR.OP_SUBS: if ((pSubtree.getParent() == null)|| (pSubtree.getParent().getOperator() != HIR.OP_SUBS)|| (pSubtree.getChildNumber() != 1)) getMaximalCompoundVars().add(lExpId); break; default: break; } //##65 END if (fDbgLevel > 3) ioRoot.dbgFlow.print(6, lExpId.getName() + " " + lExpId.getIndex()); return lExpId; }
[ "public ExpInf //##60\n allocateExpIdToNode(HIR pSubtree)\n {\n int lChild, lChildCount, lIndex;\n Stmt lStmt;\n ExpId lExpId = null; //##60\n if (pSubtree == null)\n return null;\n int lOpCode = pSubtree.getOperator();\n\n // ioRoot.dbgFlow.print(7, \"allocateExpIdToNode\", pSubtree.toStringShort());\n ExpInf lExpInfOfThis = new ExpInf(pSubtree);\n // If pSubtree is a VarNode representing a temporal variable\n // then get the expression represented by the temporal variable\n // and set information of its ExpInf to lExpInfOfThis.\n if (lOpCode == HIR.OP_VAR) {\n Exp lExp = getExpOfTemp((Var)pSubtree.getSym());\n if (lExp != null) {\n ExpId lExpIdOfTemp = this.getExpId(lExp);\n if (lExpIdOfTemp != null) {\n ExpInf lExpInfTemp = lExpIdOfTemp.getExpInf();\n lExpInfTemp.combineTo(lExpInfOfThis);\n }\n }\n }\n ExpInf lExpInf = null;\n //-- Allocate ExpId to children.\n if (lOpCode == HIR.OP_BLOCK) {\n for (lStmt = ((BlockStmt)pSubtree).getFirstStmt(); lStmt != null;\n lStmt = lStmt.getNextStmt()) {\n lExpInf = allocateExpIdToNode(lStmt);\n if (lExpInf != null)\n lExpInf.combineTo(lExpInfOfThis);\n }\n }\n else {\n lChildCount = pSubtree.getChildCount();\n if (lChildCount == 0) {\n if (pSubtree instanceof HirList) {\n for (Iterator lIterator = ((HirList)pSubtree).iterator();\n lIterator.hasNext(); ) {\n HIR lListElem = (HIR)lIterator.next();\n lExpInf = allocateExpIdToNode(lListElem);\n if (lExpInf != null)\n lExpInf.combineTo(lExpInfOfThis);\n }\n }\n }\n else {\n for (lChild = 1; lChild <= lChildCount; lChild++) {\n HIR lChildNode = (HIR)pSubtree.getChild(lChild);\n lExpInf = allocateExpIdToNode(lChildNode);\n if (lExpInf != null)\n lExpInf.combineTo(lExpInfOfThis);\n // ExpId lChildExpId = this.getExpId(lChildNode);\n // if (lChildExpId != null) {\n // lExpInfOfThis.getOperandSet().add(lChildExpId);\n // }\n }\n }\n }\n //-- Allocate ExpId to pSubtree and set DerRefPosition number.\n switch (lOpCode) {\n //-- Nonterminals computing some value:\n case HIR.OP_CALL:\n lExpInfOfThis.setCallFlag(); //##60\n case HIR.OP_SUBS:\n case HIR.OP_INDEX:\n case HIR.OP_QUAL:\n case HIR.OP_ARROW:\n case HIR.OP_ADD:\n// case HIR.OP_ADD_A :\n case HIR.OP_SUB:\n// case HIR.OP_SUB_A :\n case HIR.OP_MULT:\n case HIR.OP_DIV:\n case HIR.OP_MOD:\n case HIR.OP_AND:\n case HIR.OP_OR:\n case HIR.OP_XOR:\n case HIR.OP_CMP_EQ:\n case HIR.OP_CMP_NE:\n case HIR.OP_CMP_GT:\n case HIR.OP_CMP_GE:\n case HIR.OP_CMP_LT:\n case HIR.OP_CMP_LE:\n case HIR.OP_SHIFT_LL:\n case HIR.OP_SHIFT_R:\n case HIR.OP_SHIFT_RL:\n// case HIR.OP_LG_NOT :\n case HIR.OP_NOT:\n case HIR.OP_NEG:\n case HIR.OP_ADDR:\n case HIR.OP_CONV:\n case HIR.OP_DECAY:\n case HIR.OP_UNDECAY:\n case HIR.OP_CONTENTS:\n// case HIR.OP_CAST :\n case HIR.OP_SIZEOF:\n case HIR.OP_PHI:\n case HIR.OP_OFFSET:\n case HIR.OP_LG_AND:\n case HIR.OP_LG_OR:\n //-- Terminals representing some value:\n case HIR.OP_SYM:\n case HIR.OP_SUBP:\n lExpId = selectExpId(pSubtree, lExpInfOfThis);\n lExpInfOfThis.setNumberOfOperations(\n lExpInfOfThis.getNumberOfOperations() + 1);\n recordDefRefPoint(pSubtree); //##62\n /* //##62\n lIndex = pSubtree.getIndex();\n fDefRefCount++;\n //##60 fFlowIrLink[lIndex - fIndexMin].setDefRefPosition(fDefRefCount); //##60\n //##62 fDefRefPosition[lIndex - fIrIndexMin] = fDefRefCount; //##60\n fDefRefIndex[lIndex - fIrIndexMin] = fDefRefCount; //##62\n fDefRefPoint[fDefRefCount] = pSubtree; //##60\n */ //##62\n break;\n //##70 BEGIN\n case HIR.OP_ASM:\n //##70 lExpId = selectExpId(pSubtree, lExpInfOfThis);\n lExpInfOfThis.setNumberOfOperations(\n lExpInfOfThis.getNumberOfOperations() + 1);\n recordDefRefPoint(pSubtree);\n recordDefPoint(pSubtree); // Not all AsmStmt defines a value but\n // record it as DefPoint.\n break;\n //##70 END\n case HIR.OP_VAR:\n case HIR.OP_PARAM:\n case HIR.OP_ELEM:\n lExpId = selectExpId(pSubtree, lExpInfOfThis);\n recordDefRefPoint(pSubtree); //##62\n Var lVar = (Var)((VarNode)pSubtree).getSymNodeSym();\n //##60 BEGIN\n lExpInfOfThis.getOperandSet().add(lVar);\n HIR lParent = (HIR)pSubtree.getParent();\n if ((lParent == null) ||\n (lParent.getOperator() != HIR.OP_ADDR) ||\n dereferenced(pSubtree)) {\n lExpInfOfThis.getOperandSet0().add(lVar);\n }\n //##60 END\n break;\n case HIR.OP_ASSIGN:\n //##60 BEGIN\n // AssignStmt does not require ExpId but DefRefPoint should be recorded.\n lIndex = pSubtree.getIndex();\n recordDefRefPoint(pSubtree); //##62\n recordDefPoint(pSubtree); //##62\n ExpId lExpId_LHS = getExpId(pSubtree.getChild1());\n if (lExpId_LHS != null) {\n lExpId_LHS.setFlag(FLAG_EXPID_LHS, true); // Set LHS flag.\n ExpInf lExpInfOfLHS = lExpId_LHS.getExpInf();\n if (lExpInfOfLHS.getRValueExpId() == null) {\n HIR lRValueExp = ((HIR)pSubtree.getChild1()).copyWithOperands();\n fMaxIndexOfCopiedNode =((HIR_Impl)lRValueExp)\n .setIndexNumberToAllNodes2(\n fMaxIndexOfCopiedNode + 1, false);\n ExpInf lRValueExpInf = allocateExpIdToNode(lRValueExp);\n ExpId lRValueExpId = getExpId(lRValueExp, lRValueExp.getIndex()); //##68\n lExpInfOfLHS.setRValueExpId(\n //##68 getExpId(lRValueExp, lRValueExp.getIndex())\n lRValueExpId);\n fSubtreesCopied.add(lRValueExp); //##68\n fExpIdTable[lRValueExp.getIndex() - fIrIndexMin] = lRValueExpId; //##68\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \" r-value ExpId=\"\n + lRValueExpId.getName());\n }\n }\n break;\n //##60 END\n case HIR.OP_CONST:\n default: // Other nodes do not require ExpId because\n break; // they do not directly do computation.\n }\n fExpIdTable[pSubtree.getIndex() - fIrIndexMin] = lExpId; //##62\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \"allocateExpIdToNode \",\n pSubtree.getIrName() + \" position \"\n + Integer.toString(fDefRefCount, 10));\n return lExpInfOfThis;\n }", "private Tree.Exp getIdTree(String id)\n {\n Frame.Access a = vars.get(id);\n if (a == null)\n {\n int offset = fieldVars.get(id).intValue();\n return new Tree.MEM(new Tree.BINOP(Tree.BINOP.PLUS, objPtr, new Tree.CONST(offset)));\n }\n\n return a.exp(new Tree.TEMP(currFrame.FP()));\n }", "public void allocateNode(int processId){\n this.processId = processId;\n this.full = true;\n }", "void nodeCreate( long id );", "public long allocateNewNode(long rowId)\n {\n long newHeapIndex;\n if (!emptySlots.isEmpty()) {\n newHeapIndex = emptySlots.dequeueLong();\n }\n else {\n newHeapIndex = capacity;\n capacity++;\n buffer.ensureCapacity(capacity * POSITIONS_PER_ENTRY);\n }\n\n setRowId(newHeapIndex, rowId);\n setLeftChildHeapIndex(newHeapIndex, UNKNOWN_INDEX);\n setRightChildHeapIndex(newHeapIndex, UNKNOWN_INDEX);\n\n return newHeapIndex;\n }", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "void setCrewItem(long crewId, TreeLeafBasic treeLeaf) {\n }", "private Node allocateNode() {\n\t\tNode newNode = new Node();\n\t\treturn newNode;\n\t}", "protected final void setTreeId(int id) {\n m_treeid = id;\n }", "public void markEnodebIdCreate() throws JNCException {\n markLeafCreate(\"enodebId\");\n }", "private void intervalsToPTreeCredalSet(PotentialInterval intervalSet,ProbabilityTree probTree,\n Configuration conf,int nvar){\n Vector vars=intervalSet.getVariables();\n \n if(nvar<vars.size()){ // make the top part of the tree with variables in X_I\n FiniteStates currentVar=(FiniteStates)vars.elementAt(nvar);\n int ncases=currentVar.getNumStates();\n probTree.assignVar(currentVar);\n conf.insert(currentVar, 0);\n for(int i=0;i<ncases;i++){\n conf.putValue(currentVar,i);\n intervalsToPTreeCredalSet(intervalSet,probTree.getChild(i),conf,nvar+1);\n }\n } // end if\n else{\n FiniteStates conditionalVar=(FiniteStates)(intervalSet.getVariables().elementAt(0));\n PotentialInterval intervalSetRestricted = (PotentialInterval)intervalSet.restrictVariable(conf);\n Vector extremePoints=intervalSetRestricted.getListExtrems();\n int nExtrems=extremePoints.size();\n FiniteStates transp=appendTransparentVariable(nExtrems);\n int ncases=conditionalVar.getNumStates();\n \n probTree.assignVar(transp);\n for(int i=0;i<nExtrems;i++){\n double array[]=(double [])(extremePoints.elementAt(i));\n probTree.getChild(i).assignVar(conditionalVar);\n for(int j=0;j<ncases;j++){\n probTree.getChild(i).getChild(j).assignProb(array[j]);\n }\n }\n } // end else\n }", "private Node createNode(int identifier){\r\n \treturn this.createNode(SPECIAL_ID_SUFFIX + String.valueOf(identifier), null);\r\n\t}", "public int allocate() {\n int freeBitIndex = nextAvailableBit();\n if (freeBitIndex == -1) {\n return -1; // All ids assigned\n }\n idPool.set(freeBitIndex); \n setBitsInTree(freeBitIndex);\n\n return freeBitIndex + 1 - maxId;\n }", "INode newObjectFromID(String objectId);", "public void setTreeId(final ObjectId id) {\n \t\tif (treeId==null || !treeId.equals(id)) {\n \t\t\ttreeObj = null;\n \t\t}\n \t\ttreeId = id;\n \t}", "private void mutateDOMTree(int stateID){\n\tString code = com.crawljax.plugins.testilizer.Testilizer.mutateDOMTreeCode(stateID);\n\t\tif (code!= null){\n\t\t\tlong RandomlySelectedDOMElementID = (long) ((JavascriptExecutor)driver).executeScript(code);\n\t\t\tint MutationOperatorCode = com.crawljax.plugins.testilizer.Testilizer.MutationOperatorCode;\n\t\t\tint StateToBeMutated = com.crawljax.plugins.testilizer.Testilizer.StateToBeMutated;\t\n\t\t\tcom.crawljax.plugins.testilizer.Testilizer.SelectedRandomElementInDOM[MutationOperatorCode][StateToBeMutated]\n\t\t\t\t\t= (int) RandomlySelectedDOMElementID;\n\t\t}\n\t}", "private void addNodeId(LiteralImpl newLiteral) {\n\n // find the string identifier for this node\n String strId = newLiteral.getEscapedForm();\n\n // check if the node already exists in the string pool\n Long tmpNodeId = (Long) stringPool.get(strId);\n\n if (null != tmpNodeId) {\n\n // return the existing node instead\n newLiteral.setId(tmpNodeId);\n return;\n }\n else {\n\n // create the node identifier\n Long nodeId = new Long(nextNode);\n newLiteral.setId(nodeId);\n\n // put the node in the pool\n nodePool.put(nodeId, newLiteral);\n\n // put the URI string into the pool\n stringPool.put(strId, nodeId);\n\n // increment the node, since we used it\n nextNode++;\n }\n }", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(ICarrierSet.ELEMENT_TYPE, null, null);\n\t}", "protected abstract BigDecimal allocateBigDecimalIdBlock( int blockSize )\n throws IdException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the abbreviated date string for the message delivery time.
String getDateString(Context context) { int flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_ABBREV_ALL | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_CAP_AMPM; return DateUtils.formatDateTime(context, mDeliveryTime, flags); }
[ "private String getDeliverDate() {\n\t\tCalendar deliverDate = oDate;\n\t\tint days = random.nextInt(7) + 3;\n\t\tdeliverDate.add(Calendar.DATE, days);\n\t\t\n\t\treturn (deliverDate.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.US) + \" \" + \n\t\t\t\tdeliverDate.get(Calendar.DAY_OF_MONTH) + \", \" + deliverDate.get(Calendar.YEAR));\n\t}", "String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }", "public java.lang.String getDeliveryDate(\r\n ) {\r\n return this._deliveryDate;\r\n }", "public String getDeliveryDate() {\r\n\t\treturn deliveryDate;\r\n\t}", "public String getDeliverydate() {\n return deliverydate;\n }", "public String getReplyDateTimeString() {\n String tmp = \"\";\n try {\n return DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.LONG).format(\n replyDate);\n } catch (NullPointerException e) {\n }\n return tmp;\n }", "java.lang.String getArrivedondate();", "public String dateAnnouncement() {\n return String.format(\"It is currently %s\", new Date());\n }", "java.lang.String getOrderDate();", "@java.lang.Override\n public long getDeliveryDate() {\n return deliveryDate_;\n }", "public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return format.format(mDate);\n }", "public Date getDELIVERY_DATE() {\r\n return DELIVERY_DATE;\r\n }", "public Date getDELIVERY_DATE()\r\n {\r\n\treturn DELIVERY_DATE;\r\n }", "private String getFormattedDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.ENGLISH);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n\t\t\r\n\t\treturn dateFormat.format(calendar.getTime());\r\n\t}", "public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "public String toString() {\n String formattedDate = deadlineDate.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + super.toString() + \" (by: \" + formattedDate + \")\";\n }", "java.lang.String getActingDate();", "public static String getStringDateShort() {\n Date currentTime = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateString = formatter.format(currentTime);\n return dateString;\n }", "public ZonedDateTime getDeliveryDate() {\n return _deliveryDate;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .LoadGridBIL2016U02Info invoice_detail = 2;
public nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02Info.Builder addInvoiceDetailBuilder() { return getInvoiceDetailFieldBuilder().addBuilder( nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02Info.getDefaultInstance()); }
[ "nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02Info getInvoiceDetail(int index);", "nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02InfoOrBuilder getInvoiceDetailOrBuilder(\n int index);", "public Builder addInvoiceDetail(nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02Info value) {\n if (invoiceDetailBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInvoiceDetailIsMutable();\n invoiceDetail_.add(value);\n onChanged();\n } else {\n invoiceDetailBuilder_.addMessage(value);\n }\n return this;\n }", "public nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02InfoOrBuilder getInvoiceDetailOrBuilder(\n int index) {\n return invoiceDetail_.get(index);\n }", "public nta.med.service.ihis.proto.BillModelProto.LoadGridBIL2016U02InfoOrBuilder getInvoiceDetailOrBuilder(\n int index) {\n if (invoiceDetailBuilder_ == null) {\n return invoiceDetail_.get(index); } else {\n return invoiceDetailBuilder_.getMessageOrBuilder(index);\n }\n }", "public void showInvoiceNo(){\n\t}", "public void populateCustomerCreditMemoDetailsAfterLoad() {\n\n KualiDecimal openInvoiceAmount, invItemTaxAmount, creditMemoItemAmount, creditMemoTaxAmount, taxRate;\n CustomerInvoiceDetailService customerInvoiceDetailService = SpringContext.getBean(CustomerInvoiceDetailService.class);\n\n List<CustomerInvoiceDetail> customerInvoiceDetails = getInvoice().getCustomerInvoiceDetailsWithoutDiscounts();\n for (CustomerCreditMemoDetail creditMemoDetail : creditMemoDetails) {\n\n creditMemoDetail.setFinancialDocumentReferenceInvoiceNumber(this.financialDocumentReferenceInvoiceNumber);\n CustomerInvoiceDetail customerInvoiceDetail = creditMemoDetail.getCustomerInvoiceDetail(); \n openInvoiceAmount = customerInvoiceDetail.getAmountOpen();\n creditMemoDetail.setInvoiceOpenItemAmount(openInvoiceAmount);\n\n creditMemoDetail.setInvoiceOpenItemQuantity(getInvoiceOpenItemQuantity(creditMemoDetail, customerInvoiceDetail));\n\n if(ObjectUtils.isNull(customerInvoiceDetail.getInvoiceItemTaxAmount())){\n customerInvoiceDetail.setInvoiceItemTaxAmount(KualiDecimal.ZERO);\n }\n creditMemoDetail.setInvoiceLineTotalAmount(customerInvoiceDetail.getInvoiceItemTaxAmount(), customerInvoiceDetail.getInvoiceItemPreTaxAmount());\n\n creditMemoItemAmount = creditMemoDetail.getCreditMemoItemTotalAmount();\n creditMemoDetail.setDuplicateCreditMemoItemTotalAmount(creditMemoItemAmount);\n if (ObjectUtils.isNotNull(creditMemoItemAmount)) {\n if( getArTaxService().isCustomerInvoiceDetailTaxable(invoice, customerInvoiceDetail) )\n creditMemoTaxAmount = getTaxService().getTotalSalesTaxAmount(invoice.getBillingDate(), getPostalCode(), creditMemoItemAmount);\n else\n creditMemoTaxAmount = KualiDecimal.ZERO;\n creditMemoDetail.setCreditMemoItemTaxAmount(creditMemoTaxAmount);\n creditMemoDetail.setCreditMemoLineTotalAmount(creditMemoItemAmount.add(creditMemoTaxAmount));\n\n crmTotalItemAmount = crmTotalItemAmount.add(creditMemoItemAmount);\n crmTotalTaxAmount = crmTotalTaxAmount.add(creditMemoTaxAmount);\n crmTotalAmount = crmTotalAmount.add(creditMemoItemAmount.add(creditMemoTaxAmount));\n }\n \n // this is a hookup for institution custom to update financial object code for prior year(s) invoice\n //customerInvoiceDetailService.updateFinancialObjectCode(creditMemoDetail);\n }\n }", "public static RemoteObject _process_globals() throws Exception{\npencarian_nama._inputnama1 = BA.ObjectToString(\"inputnama1\");\n //BA.debugLineNum = 10;BA.debugLine=\"Private paket_nama = \\\"paket_nama\\\" As String\";\npencarian_nama._paket_nama = BA.ObjectToString(\"paket_nama\");\n //BA.debugLineNum = 11;BA.debugLine=\"Dim id As String\";\npencarian_nama._id = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 12;BA.debugLine=\"Dim name As String\";\npencarian_nama._name = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 13;BA.debugLine=\"Dim price As Int\";\npencarian_nama._price = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 14;BA.debugLine=\"Type daftarpaket_lines (id As String, name As Str\";\n;\n //BA.debugLineNum = 15;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "void setInvoiceArray(int i, x0101.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.SalesInvoices.Invoice invoice);", "void xsetInvoiceNo(x0101.oecdStandardAuditFileTaxPT1.InvoiceNoDocument.InvoiceNo invoiceNo);", "x0101.oecdStandardAuditFileTaxPT1.InvoiceNoDocument.InvoiceNo xgetInvoiceNo();", "public void addInvoiceDetails(){\n \t\t\n \t\tcenter.add(label.getInvoiceNumber());\n \t\tnumber.setBounds(430, 25, 150, 20 );\n \t\tnumber.setSize(150,30);\t\n \t\t\n \t\tString text = con.getInvoiceNumber();\n \t\tnumber.setText(text);\n \t\tcenter.add(number);\t\n \t\t\n \t\t\n \t\tcenter.add(label.clerkName());\n \t\tcenter.add(textBox.getSalesRep());\n \t\t\n \t\t\n \t}", "private void initBPInvoiceDetails(int C_BPartner_ID)\n\t{\n\t\tif (log.isLoggable(Level.CONFIG)) log.config(\"C_BPartner_ID\" + C_BPartner_ID);\n\n\t\t// load Shipments (Receipts) - Completed, Closed\n\t\tinvoiceField.removeActionListener(this);\n\t\tinvoiceField.removeAllItems();\n\t\t//\tNone\n\t\tKeyNamePair pp = new KeyNamePair(0,\"\");\n\t\tinvoiceField.addItem(pp);\n\t\t\n\t\tArrayList<KeyNamePair> list = loadInvoiceData(C_BPartner_ID);\n\t\tfor(KeyNamePair knp : list)\n\t\t\tinvoiceField.addItem(knp);\n\t\t\n\t\tinvoiceField.setSelectedIndex(0);\n\t\tinvoiceField.addActionListener(this);\n\t\tupcField.addValueChangeListener(this);\n\t}", "private InvoiceDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getInvoice_no() {\n return invoice_no;\n }", "private LoadGridBIL2016U02Info(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Test(priority=8,groups={\"P1\",\"InvoiceNumbserSettingsTest\"},description=\"Verify message corresponding to 'Prefix' label on 'Edit Frontdesk Invoice Number' page\")\n\tpublic void HMS8916() throws Throwable\n\t{\n\t\ttry\n\t\t{\n AdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\t\t\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\t\tEditFDInvoiceNumber EIN=INS.fn_clkFDEditLnk();\n\t\tGenericClass.windowHandle(a);\n\t\tString str=EIN.fn_getPrefixTxt();\n\t\tAssert.assertEquals(str.equals(ExcelUtil.getCellData(iTestCaseRow, ExcelUtil.GetColumnIndex(Constant.Col_ExpectedResult1))), true);\n\t\t\n\t\tSystem.out.println(\"HMS-8916 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "private void addInvCreditOrUnitSplitDetails(String personId, String personName,boolean primaryInv, String unitNumber){\r\n try {\r\n String queryKey = getModuleNumber() + getSeqNo();\r\n QueryEngine queryEngine = QueryEngine.getInstance();\r\n CoeusVector cvInvCreditSplitType = queryEngine.getDetails(queryKey, CoeusConstants.INVESTIGATOR_CREDIT_TYPES_KEY);\r\n CoeusVector cvAwardCreditSplit = null;\r\n if(CoeusGuiConstants.EMPTY_STRING.equals(unitNumber)){\r\n cvAwardCreditSplit = queryEngine.getDetails(queryKey, CoeusConstants.INVESTIGATOR_CREDIT_SPLIT_KEY);\r\n }else{\r\n cvAwardCreditSplit = queryEngine.getDetails(queryKey, CoeusConstants.INVESTIGATOR_UNIT_CREDIT_SPLIT_KEY);\r\n }\r\n if(cvInvCreditSplitType != null && !cvInvCreditSplitType.isEmpty()){\r\n InvestigatorCreditSplitBean investigatorCreditSplitBean = null;\r\n for(Object invCreditSplitType : cvInvCreditSplitType){\r\n InvCreditTypeBean invCreditTypeBean = (InvCreditTypeBean)invCreditSplitType;\r\n investigatorCreditSplitBean = new InvestigatorCreditSplitBean();\r\n investigatorCreditSplitBean.setModuleNumber(getModuleNumber());\r\n investigatorCreditSplitBean.setSequenceNo(Integer.parseInt(getSeqNo()));\r\n investigatorCreditSplitBean.setCredit(0.0);\r\n investigatorCreditSplitBean.setInvCreditTypeCode(invCreditTypeBean.getInvCreditTypeCode());\r\n investigatorCreditSplitBean.setPersonId(personId);\r\n investigatorCreditSplitBean.setPersonName(personName);\r\n investigatorCreditSplitBean.setPiFlag(primaryInv);\r\n if(!CoeusGuiConstants.EMPTY_STRING.equals(unitNumber)){\r\n investigatorCreditSplitBean.setUnitNumber(unitNumber);\r\n }\r\n investigatorCreditSplitBean.setAcType(TypeConstants.INSERT_RECORD);\r\n cvAwardCreditSplit.add(investigatorCreditSplitBean);\r\n }\r\n }\r\n Hashtable htDataCollection = queryEngine.getDataCollection(queryKey);\r\n if(CoeusGuiConstants.EMPTY_STRING.equals(unitNumber)){\r\n htDataCollection.put(CoeusConstants.INVESTIGATOR_CREDIT_SPLIT_KEY, cvAwardCreditSplit == null ? new CoeusVector() : cvAwardCreditSplit);\r\n }else{\r\n htDataCollection.put(CoeusConstants.INVESTIGATOR_UNIT_CREDIT_SPLIT_KEY, cvAwardCreditSplit == null ? new CoeusVector() : cvAwardCreditSplit);\r\n }\r\n queryEngine.removeDataCollection(queryKey);\r\n queryEngine.addDataCollection(queryKey,htDataCollection);\r\n } catch (CoeusException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@Test(priority=44,groups={\"P0\",\"InvoiceNumbserSettingsTest\"},description=\"To verify Edit Pos Invoice Number page without Prefix\")\n\tpublic void HMS6368() throws Throwable\n\t{\n\t\ttry\n\t\t{\n\t\tAdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\n\t\tEditPOSInvoiceNumber EPOS=INS.fn_clkSampleRestEdit(iTestCaseRow);\n\t\tGenericClass.windowHandle(a);\n\t\tEPOS.fn_editPOSPrefix(iTestCaseRow);\n\t\tGenericClass.Switch_Parent_Window(a);\n\t\tINS.fn_verifyBlankSampleRestPrefix(iTestCaseRow);\n\t\t/*RoomsLandingPage RLP=AH.fn_NavigateRooms();\n\t\tAddRoomsPage ARP=RLP.ClickOnAddRoomLink();\n\t\tARP.AddUniqueRoom();\t\t*/\n\t\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\n \t\tGenericClass.fn_SwitchToWindow_Title(\"Frontdesk\");\n \t\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\n \t\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_ClickCancelButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_clickCurrentLnk();\n \t\tThread.sleep(4000);\n \t\t//String b=GenericClass.GetCurrentWindowID();\n\t\tSampleRestaurantLandingPage SRLP=FLP.ClickToSampleRestaurant();\n\t\tGenericClass.fn_SwitchToWindow_Title(\"Restaurant\");\n\t\t//GenericClass.windowHandle(b);\n\t\tConfirmOrderPage COP=SRLP.fn_GenerateOrder();\n\t\tConfirmOrderPage1 COP1=COP.ConfirmOrder();\n\t\tThread.sleep(4000);\n\t\tOrderFolioPage OFP=COP1.fn_VerifyPayNowButton(iTestCaseRow);\t\n\t\tOFP.verify_FolioNumber(iTestCaseRow);\n\t\t\n\t\tSystem.out.println(\"HMS-6368 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"Percorre" os campos da classe concatenando os seus valores espacadamente. Campos que tenham valores nulos nao sao considerados.
private String concatFields() { String concatedFields = ""; Integer intChecker; String strChecker; Double doubleChecker; concatedFields += ( (intChecker = getCodigo()) == null ? "" : intChecker ) + " "; concatedFields += ( (strChecker = getNome()) == null ? "" : strChecker ) + " "; concatedFields += ( (strChecker = getSigla()) == null ? "" : strChecker ) + " "; concatedFields += ( (intChecker = getCodigoMantenedora()) == null ? "" : intChecker ) + " "; concatedFields += ( (strChecker = getMantenedora()) == null ? "" : strChecker ) + " "; concatedFields += ( (intChecker = getCategoria()) == null ? "" : intChecker ) + " "; concatedFields += ( (intChecker = getOrganizacao()) == null ? "" : intChecker ) + " "; concatedFields += ( (intChecker = getCodigoMunicipio()) == null ? "" : intChecker ) + " "; concatedFields += ( (strChecker = getMunicipio()) == null ? "" : strChecker ) + " "; concatedFields += ( (strChecker = getUf()) == null ? "" : strChecker ) + " "; concatedFields += ( (strChecker = getRegiao()) == null ? "" : strChecker ) + " "; concatedFields += ( (intChecker = getTecnico()) == null ? "" : intChecker ) + " "; concatedFields += ( (intChecker = getPeriodico()) == null ? "" : intChecker ) + " "; concatedFields += ( (intChecker = getLivro()) == null ? "" : intChecker ) + " "; concatedFields += ( (doubleChecker = getReceita()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getTransferencia()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getOutraReceita()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaDocente()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaTecnico()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaEncargo()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaCusteio()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaInvestimento()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaPesquisa()) == null ? "" : doubleChecker ) + " "; concatedFields += ( (doubleChecker = getDespesaOutras()) == null ? "" : doubleChecker ) + " "; return new MyString(concatedFields).removeLastChar().toString(); }
[ "public String generateStringCamposFiltro() {\r\n\t\treturn inicializarCamposComunes();\r\n\t}", "private String sezioneCampi() {\n /* variabili e costanti locali di lavoro */\n String stringa = \"\";\n\n try { // prova ad eseguire il codice\n\n /* invoca il metodo delegato in funzione del tipo di query */\n switch (this.getQueryModifica().getTipoQuery()) {\n case Query.TIPO_DELETE:\n // la DELETE non usa la sezione campi\n break;\n case Query.TIPO_INSERT:\n stringa += stringaCampiInsert();\n break;\n case Query.TIPO_UPDATE:\n stringa += stringaCampiUpdate();\n break;\n default: // caso non definito\n break;\n } // fine del blocco switch\n\n /* aggiunge eventualmente un acapo di separazione */\n if (Lib.Testo.isValida(stringa)) {\n stringa = \"\\n\" + stringa;\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return stringa;\n }", "private String buildFields() {\n String result = \"\";\n\n Iterator<Map.Entry<String, String>> it = fields.entrySet().iterator();\n\n while (it.hasNext()) {\n Map.Entry<String, String> field = it.next();\n result += field.getKey() + \" \" + field.getValue() + (it.hasNext() ? \",\" : \"\");\n }\n\n return result;\n }", "private String getInputNameAndValueString(){ //also adds the ' and the ,; TODO: Better typecheck\n String result = \"\";\n \n for (int id: this.inputParamsValues.keySet()){\n if(this.currentAPI.getSingleInputPar(id).getType().contains(\"String\")){\n if(this.inputParamsValues.get(id).contains(\" \")){\n this.inputParamsValues.put(id, this.inputParamsValues.get(id).replace(\" \", \"%20\"));//because space is not recognized by ProteomicsDB\n }\n result = result + this.currentAPI.getSingleInputPar(id).getName() + \"='\" + this.inputParamsValues.get(id) + \"',\";\n }\n else{\n result = result + this.currentAPI.getSingleInputPar(id).getName() + \"=\" + this.inputParamsValues.get(id) + \",\";\n }\n }\n \n if(!result.equals(\"\")){\n result = result.substring(0,result.length()-1); //remove the last comma\n }\n return result;\n \n \n }", "private void limparCampos() {\n jTextFieldCodigoBarrasProduto.setText(\"\");\n jTextFieldNomeProduto.setText(\"\");\n jTextFieldValorProduto.setText(\"\");\n jTextFieldEstoqueProduto.setText(\"\");\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "private String crearStringRadicadoprincipal(Caso caso) {\n\t\tStringBuilder strBuilder = new StringBuilder();\n\t\tstrBuilder.append(\"\");\n\t\tString radicados = \"\";\n\t\tfor (Radicado radicado:caso.getRadicadoSet()) {\n\t\t\tif(!radicado.getActivo().equals(\"N\"))\n\t\t\t\tstrBuilder.append(radicado.getRadicadoPK().getCodigoRadicado() + \", \");\n\t\t}\n\t\tif (strBuilder.toString().length() > 0)\n\t\t\tradicados = strBuilder.toString().substring(0, strBuilder.toString().length() - 2);\n\t\treturn radicados;\t\n\t}", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "private void CamposSonVacios() throws ExcepcionCampos{\n if( this.campo_NoClientes.getText().trim().isEmpty() || this.campo_MediaClientes.getText().trim().isEmpty()){\n throw new ExcepcionCampos(\"Los campos no deben estar vacios.\");\n }\n \n }", "private StringBuilder revisarDatosMinimosRequeridosCargo(CargoTO cargo){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n if (!isValidString(cargo.getReferencia())) {\r\n sb.append(\"Se requiere el campo referencia - \");\r\n }\r\n \r\n if (!isValidString(cargo.getNombreCliente())) {\r\n sb.append(\"Se requiere el campo nombreCliente - \");\r\n }\r\n \r\n if (!isValidString(cargo.getNumeroTarjeta())) {\r\n sb.append(\"Se requiere el campo numeroTarjeta - \");\r\n }\r\n \r\n if (!isValidString(cargo.getTipoTarjeta())) {\r\n sb.append(\"Se requiere el campo tipoTarjeta - \");\r\n }\r\n \r\n if (!isValidString(cargo.getMesExpiracionTarjeta())) {\r\n sb.append(\"Se requiere el campo mesExpiracion - \");\r\n } \r\n \r\n if (!isValidString(cargo.getAnioExpiracionTarjeta())) {\r\n sb.append(\"Se requiere el campo anioExpiracion - \");\r\n }\r\n \r\n if (!isValidString(cargo.getCodigoSeguridadTarjeta())) {\r\n sb.append(\"Se requiere el campo codigoSeguridad - \");\r\n } \r\n \r\n if (cargo.getMonto()<= 0.0 ) {\r\n sb.append(\"Se requiere un monto mayor a 0.0 - \");\r\n }\r\n \r\n return sb;\r\n \r\n }", "public void limparCampos() {\r\n\r\n\t\tfor (JTextField jtf : getTextFields()) {\r\n\r\n\t\t\tjtf.setText(\"\");\r\n\t\t}\r\n\t}", "public static void limparCampos(JTextComponent... campos) {\n String vazio = \"\";\n for (JTextComponent c : campos) {\n c.setText(vazio);\n }\n }", "private void vaciarCamposValor() {\n txtNomVal.setText(\"\");\n txtX1.setText(\"\");\n txtX2.setText(\"\");\n txtX3.setText(\"\");\n txtX4.setText(\"\");\n txtY1.setText(\"\");\n txtY2.setText(\"\");\n txtY3.setText(\"\");\n txtY4.setText(\"\");\n }", "private void agregarFieldsValidaciones()\r\n\t{\r\n\t\t\r\n this.serieDocRef.addValidator(\r\n new StringLengthValidator(\r\n \" 4 caracteres máximo\", 0, 4, false));\r\n \r\n this.referencia.addValidator(\r\n new StringLengthValidator(\r\n \" 45 caracteres máximo\", 1, 255, false));\r\n \r\n\t}", "private String crearStringDemandadoPrincipal(Caso caso) {\n\t\tStringBuilder strBuilder = new StringBuilder();\n\t\tstrBuilder.append(\"\");\n\t\tString demandados = \"\";\n\t\tfor (CasoEquipoCaso casoEquipoCaso:caso.getCasoEquipoCasoSet()) {\n\t\t\tif (casoEquipoCaso.getTipoMiembro().getCodigo() == Integer.parseInt(Parametros.getDemandado())) {\n\t\t\t\tString nombreCompleto = casoEquipoCaso.getEquipoCaso().getNombre() + (casoEquipoCaso.getEquipoCaso().getApellido() != null ? casoEquipoCaso.getEquipoCaso().getApellido():\"\") + \", \";\n\t\t\t\tstrBuilder.append(nombreCompleto);\n\t\t\t}\n\t\t}\n\t\tif (strBuilder.toString().length() > 0)\n\t\t\tdemandados = strBuilder.toString().substring(0, strBuilder.toString().length() - 2);\n\t\treturn demandados;\n\t}", "public void verificarCamposObrigatorios(Usuario usuario) throws UsuarioExcessao{\r\n\t\tCollection<String> camposNaoInformados = new ArrayList<String>();\r\n\t\tif(usuario.getNome() == null || usuario.getNome().equals(\"\")){\r\n\t\t\tcamposNaoInformados.add(\"nome\");\r\n\t\t}\r\n\t\tif(usuario.getSenha() == null || usuario.getSenha().equals(\"\")){\r\n\t\t\tcamposNaoInformados.add(\"senha\");\r\n\t\t}\r\n\t\tif(usuario.getEmail() == null || usuario.getEmail().equals(\"\")){\r\n\t\t\tcamposNaoInformados.add(\"e-mail\");\r\n\t\t}\r\n\t\tif(usuario.getPerfilAcesso() == null){\r\n\t\t\tcamposNaoInformados.add(\"Nivel de Acesso\");\r\n\t\t}\r\n\t\tif(!camposNaoInformados.isEmpty()){\r\n\t\t\tthrow new UsuarioExcessao(propertiesMessagesUtil.getValor(\"erro_atributo_nao_informado\"), camposNaoInformados);\r\n\t\t}\r\n\t}", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public static void copiarCampos(Object obj, I_ValueObject vo,\n\t\t\tList<String> camposACopiar) {\n\t\t// Copio los parametros\n\t\tClass clase_obj, clase_vo;\n\t\ttry {\n\t\t\tclase_obj = Class.forName(obj.getClass().getName());\n\t\t\tclase_vo = Class.forName(vo.getClass().getName());\n\n\t\t\tField[] campos = clase_obj.getFields();\n\t\t\tMethod metodoGet, metodoSet;\n\n\t\t\tfor (int i_c = 0; i_c < campos.length; i_c++) {\n\n\t\t\t\tif (camposACopiar.contains(campos[i_c])) {\n\n\t\t\t\t\ttry {// Trato de setear el valor del campo\n\n\t\t\t\t\t\t// Obtengo el getter del campo del objeto\n\t\t\t\t\t\tmetodoGet = DAO_Utils.getMetodoDeConPrefijo(clase_obj,\n\t\t\t\t\t\t\t\tcampos[i_c], \"get\");\n\n\t\t\t\t\t\t// Obtengo el setter del campo del vo\n\t\t\t\t\t\tmetodoSet = DAO_Utils.getMetodoDeConPrefijo(clase_vo,\n\t\t\t\t\t\t\t\tcampos[i_c], \"set\");\n\n\t\t\t\t\t\t// Inovoco al metodo Set del VO, y le paso como\n\t\t\t\t\t\t// parametro el valor de haber invocado al get\n\t\t\t\t\t\tmetodoSet.invoke(vo, metodoGet.invoke(clase_obj));\n\n\t\t\t\t\t} catch (SecurityException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (NoSuchMethodException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public String toString(){\n return String.format(\"Tipo de Atleta: %s%nNome: %s || Numero de Identificacao Civil: %d || Idade: %d || Genero: %s\"\n + \"%nAtividade: %s || Objectivo de treino: %s || Frequencia Cardiaca de Treino: %s%n\"\n + \"Valor dos Premios Mensal: %.2f || \"\n + \"\", this.getClass().getSimpleName(), getNome(), getNumIdCivil(), getIdade(), getGenero(), getAtividade(), getObjectivoTreino(), getFreqCardRepouso(), getPremioAcumulado());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if a value has been set for currentPlayerNumber
public boolean hasCurrentPlayerNumber() { return currentPlayerNumber != null; }
[ "public boolean hasCurrentPlayerNumber() {\n return game.currentPlayerNumber != null;\n }", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public boolean controlSetNPlayer() {\n int nPlayers = gameModel.getNPlayers();\n return nPlayers != 0;\n }", "public boolean hasCurrentValue() {\n return fieldSetFlags()[9];\n }", "public boolean hasPlayerInfo()\n {\n return this.getPlayerInfo() != null;\n }", "public boolean checkPlayerHandValue(){\n if(playerHandValue() > 21){\n //player burst\n gameStatus=Status.Dealer_wins;\n return false;\n }\n return true;\n }", "public boolean isPlayer1() {\n\t\treturn currentPlayer.equals(player1);\n\t}", "public boolean checkDealerHandValue(){\n if(dealerHandValue() > 21){\n gameStatus=Status.Players_wins;\n return false;\n }\n return true;\n }", "public boolean isSetNum() {\n return this.Num != null;\n }", "public boolean isSetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNUMBER$2) != 0;\n }\n }", "boolean isSetFromNumber();", "private boolean isPlayerOneTurn()\n\t{\n\t\treturn appModel.getCurrentPlayer() == appModel.getPlayer1();\n\t}", "@Override\n public boolean isLocalPlayersTurn() {\n return getTeam().equals(currentBoard.turn());\n }", "public boolean isSetGameResult() {\n return this.gameResult != null;\n }", "public boolean checkBlackJack(){\n if(playerHandValue() == 21){\n gameStatus=Status.Players_wins;\n return true;\n }\n return false;\n }", "public Boolean isValidPlayer(int playerNo)\n\t{\n\t\treturn this.state.getPlayerValidity().get(playerNo);\n\t}", "public boolean isValid() {\n\t\tif (isPlayer1() && currentPit < 7 && currentPit != 6) {\n\t\t\tif (board[currentPit] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true; // check appropriate side of board, excluding scoring\n\t\t}\n\t\t// pit\n\t\telse if (!isPlayer1() && currentPit >= 7 && currentPit != 13) {\n\t\t\tif (board[currentPit] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private int currentPlayerNumber() {\n \tif (currentPlayer == playerOne) {\n \t\treturn 1;\n \t} else if (currentPlayer == playerTwo) {\n \t\treturn 2;\n \t} else {\n \t\treturn 3;\n \t}\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column account_user.user_idcard_num
public void setUserIdcardNum(String userIdcardNum) { this.userIdcardNum = userIdcardNum == null ? null : userIdcardNum.trim(); }
[ "public void setUserCardId(String userCardId) {\n this.userCardId = userCardId;\n }", "public String getUserIdcardNum() {\n return userIdcardNum;\n }", "public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }", "public void setUserIdcardType(Integer userIdcardType) {\n this.userIdcardType = userIdcardType;\n }", "public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}", "public void setCardId( Integer cardId ) {\n this.cardId = cardId;\n }", "public void setUserCard(String userCard) {\n this.userCard = userCard;\n }", "public void setCardNum(Integer cardNum) {\n\t\tthis.cardNum = cardNum;\n\t}", "public void setCardNumber(Integer cardNumber) {\n this.cardNumber = cardNumber;\n }", "public void setCardNumber(long cardNumber) {\n this.cardNumber = cardNumber;\n }", "public void setUserCardno(String userCardno) {\r\n this.userCardno = userCardno == null ? null : userCardno.trim();\r\n }", "public void setIdentityCardNum(String identityCardNum) {\n this.identityCardNum = identityCardNum;\n }", "public void setCardNumber(String number)\n {\n cardNumber = number;\n }", "public void setBasecardId(int value) {\n this.basecardId = value;\n }", "public String getUserCardId() {\n return userCardId;\n }", "public void setIdCard(String idCard) {\n this.idCard = idCard;\n }", "public void updateCardNo(String accountId, String password, String cardNo) {\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\",\"root\",\"admin\");\n Statement mystmt = con.createStatement();\n \n \n //SQL query to update credit card\n String query = \"UPDATE customer_account SET card_no = ? WHERE account_id ='\" + accountId +\"' AND password ='\"+password+\"'\";\n PreparedStatement ps=con.prepareStatement(query);\n ps.setInt(1, Integer.parseInt(cardNo));\n \n \n ps.executeUpdate();\n \n \n }\n \n catch(Exception e){\n e.printStackTrace();\n \n }\n return;\n }", "public void setCardNo(String cardNo) {\r\n this.cardNo = cardNo;\r\n }", "public String getUserCardno() {\r\n return userCardno;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for f_ToggleSwitch73 called 1 times. Type: DEFAULT. Build precedence: 5.
private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch73() { return build_f_ToggleSwitch73(); }
[ "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch87() {\n return build_f_ToggleSwitch87();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch94() {\n return build_f_ToggleSwitch94();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch38() {\n return build_f_ToggleSwitch38();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch105() {\n return build_f_ToggleSwitch105();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch66() {\n return build_f_ToggleSwitch66();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch114() {\n return build_f_ToggleSwitch114();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch45() {\n return build_f_ToggleSwitch45();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch59() {\n return build_f_ToggleSwitch59();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch141() {\n return build_f_ToggleSwitch141();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch116() {\n return build_f_ToggleSwitch116();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch21() {\n return build_f_ToggleSwitch21();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch80() {\n return build_f_ToggleSwitch80();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch31() {\n return build_f_ToggleSwitch31();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch28() {\n return build_f_ToggleSwitch28();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch103() {\n return build_f_ToggleSwitch103();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch29() {\n return build_f_ToggleSwitch29();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch30() {\n return build_f_ToggleSwitch30();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitch get_f_ToggleSwitch52() {\n return build_f_ToggleSwitch52();\n }", "private org.gwtbootstrap3.extras.toggleswitch.client.ui.ToggleSwitchRadio get_f_ToggleSwitchRadio133() {\n return build_f_ToggleSwitchRadio133();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tracks ID of next card created Constructors / REQUIRES: inputStartDate is current time because this constructor is used for creating a new card EFFECTS: constructs card object given inputFrontInfo (question) and inputBackInfo (answer) of the card. sets the card's startTime given inputStartDate Card ID is incremented for every new card First card ID is 0, second card is 1, third card is 2. cardID is unique identifier using 0 and positive integer
public Card(String inputFrontInfo, String inputBackInfo, Date inputStartDate) { frontInfo = inputFrontInfo; backInfo = inputBackInfo; startTime = inputStartDate; cardID = nextCardID; nextCardID++; }
[ "public Card(String inputFrontInfo, String inputBackInfo, Date inputStartTime, int inputID) {\n frontInfo = inputFrontInfo;\n backInfo = inputBackInfo;\n startTime = inputStartTime;\n cardID = inputID;\n\n }", "public void NewCard() {\n cardArray[cardCounter] = new Card(cardCounter);\r\n cardCounter++;\r\n }", "public void setCardTime(int cardTime) {this.cardTime = cardTime; }", "void createCard() {\n Card newCard = new Card();\n addCard(newCard);\n System.out.println(\"Card \" + newCard.getCardNumber() + \" created\");\n }", "public void createCard() {\n system.getCardManager().createCard();\n Card createdCard = system.getCardManager().getLastCard();\n CardHolder loggedInUser =(CardHolder)system.getAccountManager().getLoggedInUser();\n loggedInUser.linkCard(createdCard);\n cardNumber.setText(\"Card Number: \" + createdCard.getCardNumber());\n }", "public CreditCard(int pin, String number, String holder, Date expiryDate, int cvc){\r\n this.pin = pin;\r\n this.number = number;\r\n this.holder = holder;\r\n this.expiryDate = expiryDate;\r\n this.cvc = cvc;\r\n}", "public void createCard(String tempIssuerID) {\n /*IF the parameter isn't null AND it's 6 characters long AND each char is a digit,\n assign the parameter to the instance variable for issuerID (otherwise LEAVE THE\n issuerID AS IT WAS BEFORE)*/\n if (tempIssuerID != null && tempIssuerID.length() == 6 && checkDigits(tempIssuerID)) {\n issuerID = tempIssuerID;\n } else {\n issuerID = \"000000\";\n }\n /*Randomly assign 9 digits with '0' through '9' (1 char at a time) to a LOCAL\n StringBuilder object (in a loop, using Math.random similar to Prog. HW 2 and 3)\n */\n StringBuilder tempString = new StringBuilder();\n for (int i = 0; i < 9; i++) {\n tempString = tempString.append((Math.random() * 9));\n }\n /*Assign a String version the local StringBuilder to the accountNum instance\n variable*/\n accountNum = tempString.toString();\n //Call method A. to set the check digit\n checkDigit = calcCheckDigits();\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "private void initialPlayingCard() {\r\n int index = 0;\r\n for (int i = 1; i <= 15; i++) {\r\n if (i < 14) {\r\n StringBuilder nameSb = new StringBuilder();\r\n switch (i) {\r\n case 1:\r\n nameSb.append(\"A\");\r\n break;\r\n case 11:\r\n nameSb.append(\"J\");\r\n break;\r\n case 12:\r\n nameSb.append(\"Q\");\r\n break;\r\n case 13:\r\n nameSb.append(\"K\");\r\n break;\r\n default:\r\n nameSb.append(i);\r\n }\r\n\r\n for (int j = 1; j <= 4; j++) {\r\n Card card = new Card();\r\n card.setId(++index);\r\n card.setName(nameSb.toString());\r\n card.setPoint(i);\r\n\r\n switch (j) {\r\n case 1:\r\n card.setSuit(HEART);\r\n break;\r\n case 2:\r\n card.setSuit(SPADE);\r\n break;\r\n case 3:\r\n card.setSuit(DIAMOND);\r\n break;\r\n case 4:\r\n card.setSuit(CLUB);\r\n break;\r\n default:\r\n }\r\n cardMap.put(card.getId(), card);\r\n }\r\n } else {\r\n Card card = new Card();\r\n card.setId(++index);\r\n card.setName(JOKER);\r\n card.setPoint(20);\r\n\r\n switch (i) {\r\n case 14:\r\n card.setSuit(BLACK);\r\n break;\r\n case 15:\r\n card.setSuit(RED);\r\n break;\r\n default:\r\n }\r\n\r\n cardMap.put(card.getId(), card);\r\n }\r\n }\r\n }", "public void start2ndYear() {\n\t\tdeck.add(new Card2());\n//\t\tdeck.add(new Card3());\n//\t\tdeck.add(new Card4());\n\t\tdeck.add(new Card5());\n//\t\tdeck.add(new Card6());\n//\t\tdeck.add(new Card6());\n\t\tdeck.add(new Card7());\n\t\tdeck.add(new Card8());\n\t\tdeck.add(new Card9());\n\t\tdeck.add(new Card10());\n\t\tdeck.add(new Card11());\n\t\tdeck.add(new Card12());\n\t\tdeck.add(new Card13());\n//\t\tdeck.add(new Card14());\n\t\tdeck.add(new Card15());\n//\t\tdeck.add(new Card16());\n//\t\tdeck.add(new Card17());\n\t\tdeck.add(new Card18());\n\t\tdeck.add(new Card19());\n//\t\tdeck.add(new Card20());\n\t\tdeck.add(new Card21());\n\t\tdeck.add(new Card22());\n\t\tdeck.add(new Card23());\n\t\tdeck.add(new Card24());\n\t\tdeck.add(new Card25());\n\t\tdeck.add(new Card26());\n\t\tdeck.add(new Card27());\n\t\tdeck.add(new Card28());\n\t\tdeck.add(new Card29());\n\t\tdeck.add(new Card30());\n//\t\tdeck.add(new Card31());\n//\t\tdeck.add(new Card32());\n\t\tdeck.add(new Card33());\n//\t\tdeck.add(new Card34());\n\t\tdeck.add(new Card35());\n\t\tdeck.add(new Card36());\n\t\tdeck.add(new Card37());\n\t\tdeck.add(new Card38());\n\t\tdeck.add(new Card39());\n\t\t//adding year 2 cards\n\t\tdeck.add(new Card40());\n\t\tdeck.add(new Card41());\n\t\tdeck.add(new Card42());\n\t\tdeck.add(new Card43());\n\t\tdeck.add(new Card44());\n\t\tdeck.add(new Card45());\n\t\tdeck.add(new Card46());\n//\t\tdeck.add(new Card47());\n//\t\tdeck.add(new Card48());\n//\t\tdeck.add(new Card49());\n//\t\tdeck.add(new Card50());\n//\t\tdeck.add(new Card51());\n\t\t\n\t}", "public void createCards(){\n\n\t\t// create a non-sequence 28 cards\n\t\tRandom r = new Random();\n\n\t\tCardType[] ct = new CardType[]{CardType.SPADE, CardType.HEART, CardType.CLUB, CardType.DIAMOND};\n\t\tString[] ids = new String[]{\"8\", \"9\", \"10\", \"J\", \"Q\", \"K\", \"A\"};\n\n\t\tfor(int i = 0; i < ct.length; i++ ){\n\t\t\tfor(int j = 0; j < ids.length; j++){\n\n\t\t\t\tint index = 0;\n\t\t\t\twhile(1 < 2){\n\t\t\t\t\tindex = r.nextInt(28);\n\t\t\t\t\tif (cards[index] == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcards[index] = new Card(ct[i], ids[j]);\n\t\t\t}\n\t\t}\n\t}", "void setCardStartDate(final LocalDate cardStartDate);", "@Override\n public String toString() {\n return \"Card{\"\n + \"frontInfo='\" + frontInfo\n + '\\''\n + \", backInfo='\" + backInfo\n + '\\''\n + \", startTime=\" + startTime\n + \", ID=\" + cardID\n + '}';\n }", "Card(String question, String answer)\n {\n _question = question;\n _answer = answer;\n }", "private ScCard createEntryCard(ScCardFrame frame)\n {\n ScCard card;\n card = frame.addCard();\n\n initFields();\n installForm(card);\n\n return card;\n }", "private void createCardsData() {\r\n\t\tString [] armiesTypes = {\"Infantry\",\"Cavalry\",\"Artillery\"};\r\n\t\tAtomicInteger counter = new AtomicInteger(0);\r\n\t\tcardsList = new ArrayList<>();\r\n\t\tcountriesList.stream().forEach(country -> {\r\n\t\t\tcardsList.add(new Card(country.getCountryName(), armiesTypes[counter.get()% armiesTypes.length]));\r\n\t\t\tcounter.addAndGet(1);\r\n\t\t});\r\n\t}", "public CashCard( GregorianCalendar expiryDate ) \n {\n\n this(0.0, expiryDate);\n }", "public void createCard(Card card) {\n ContentValues values = new ContentValues();\n values.put(MySQLiteHelper.COLUMN_QUESTION_QUESTION, card.getQuestion());\n values.put(MySQLiteHelper.COLUMN_QUESTION_TYPE, card.getType() + \"\");\n values.put(MySQLiteHelper.COLUMN_QUESTION_KNOWN, card.isKnown());\n values.put(MySQLiteHelper.COLUMN_QUESTION_RATING, card.getRating());\n values.put(MySQLiteHelper.COLUMN_QUESTION_HINT, card.getHint());\n values.put(MySQLiteHelper.COLUMN_QUESTION_CATEGORY_ID, card.getCategoryId());\n AsyncDbManager asyncDbManager = new AsyncDbManager(database,values, card.getAnswers(), context);\n asyncDbManager.execute(MySQLiteHelper.TABLE_QUESTIONS);\n //createAnswer(insertId, card.getAnswers());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Create BinaryTree: 40 / \ 20 60 / \ / \ 10 30 50 70
private TreeNode createBinaryTree() { TreeNode node1 = new TreeNode(10); TreeNode node2 = new TreeNode(20); TreeNode node3 = new TreeNode(30); TreeNode node4 = new TreeNode(40); TreeNode node5 = new TreeNode(50); TreeNode node6 = new TreeNode(60); TreeNode node7 = new TreeNode(70); TreeNode root = node4; root.left = node2; root.left.left = node1; root.left.right = node3; root.right = node6; root.right.left = node5; root.right.right = node7; return root; }
[ "public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}", "private static Node constructBST() {\r\n Node root = new Node(30);\r\n root.left = new Node(8);\r\n root.right = new Node(52);\r\n root.left.left = new Node(3);\r\n root.left.right = new Node(20);\r\n root.left.right.left = new Node(10);\r\n root.left.right.right = new Node(29);\r\n return root;\r\n }", "static TreeNode levelOrderBuilder(int data[]) {\n int index = 0;\n TreeNode root = new TreeNode(data[index++]);\n Queue<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode front = queue.poll();\n if (index < data.length && front.left == null) {\n front.left = new TreeNode(data[index++]);\n queue.add(front.left);\n }\n if (index < data.length && front.right == null) {\n front.right = new TreeNode(data[index++]);\n queue.add(front.right);\n }\n }\n return root;\n }", "@Test\n public void loopBuildTree()\n {\n BinaryTree tree = new BinaryTree();\n tree.setRoot(tree.loopBuildTree(tree.getRoot(), arr));\n System.out.println(tree);\n\n }", "public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }", "public void createSampleTree() {\n root = new TreeNode(1, new TreeNode(2, new TreeNode(4), new TreeNode(5)), new TreeNode(3, new TreeNode(6), new TreeNode(7))); \n }", "public BinaryTree generateTree(int height) {\n\t\tList<Double> randomNums = new ArrayList<>();\n\t\tint numNodes = (int) (Math.pow(2, height)) - 1;\n\t\tfor (int i = 0; i < numNodes; i++) {\n\t\t\tdouble randomNum = Math.round(Math.random() * 100 * 100) / 100;\n\t\t\t// no duplicate numbers\n\t\t\twhile (randomNums.contains(randomNum)) {\n\t\t\t\trandomNum = Math.round(Math.random() * 100 * 100) / 100;\n\t\t\t}\n\t\t\trandomNums.add(randomNum);\n\t\t}\n\t\treturn new BinaryTree(randomNums);\n\t}", "public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }", "public BinaryTree()\r\n\t{\r\n\t\t// Initialize field values\r\n\t\tthis.counter = 0;\r\n\t\tthis.arrayCounter = 0;\r\n\t\tthis.root = null;\r\n\t}", "public static Nodos CrearArbolBinario() {\r\n\t\tNodos rootNode = new Nodos(40);\r\n\t\tNodos node20 = new Nodos(20);\r\n\t\tNodos node10 = new Nodos(10);\r\n\t\tNodos node30 = new Nodos(30);\r\n\t\t\r\n\t\tInsertar(null, rootNode);\r\n\t\tInsertar(rootNode, node20);\r\n\t\tInsertar(rootNode, node10);\r\n\t\tInsertar(rootNode, node30);\r\n\t\tInsertar(rootNode, node30);\r\n\r\n\t\treturn rootNode;\r\n\t}", "public Btree() \n {\n root = new Node(0);\n }", "public BinaryTree() {\n\t}", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "private void createChildrenIfNecessary() {\n \t\tif (!isLeaf && (left == null || right == null)) {\n \t\t\tleft = new TreeNode(new ByteRegion(unExactByteRegion.start, (long) unExactByteRegion.getMid() - 1, false), tree, this);\n \t\t\tright = new TreeNode(new ByteRegion((long) unExactByteRegion.getMid(), unExactByteRegion.end, false), tree, this);\n \t\t}\n \t}", "Tree createTree();", "public BinarySearchTree(int[] values) {\n\t\troot = nil;\n\t\tfor (int value : values) {\n\t\t\tinsert(new Node(value, nil, nil));\n\t\t}\n\t}", "private BinaryNode<E> buildTree(E[] a, int first, int last) {\n\t\tif(first == last){\n\t\t\treturn new BinaryNode<E> (a[last]);\n\t\t}\n\t\telse if(first <last){\n\t\t\tint middle = (last+first)/2;\n\t\t\tBinaryNode<E> node = new BinaryNode<E>(a[middle]);\n\t\t\tnode.left = buildTree(a,first, middle-1);\n\t\t\tnode.right = buildTree(a,middle+1, last);\n\t\t\treturn node;\n\t\t}\n\t\treturn null;\n\t}", "public BinaryTree() {\r\n\t\troot = null;\r\n\t\tcount = 0;\r\n\t}", "public static TreeNode generateBinaryTree3() {\n // Nodes\n TreeNode root = new TreeNode(1);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(4);\n TreeNode rootRight = new TreeNode(5);\n TreeNode rootRightRight = new TreeNode(6);\n TreeNode rootRightRightRight = new TreeNode(7);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n root.right = rootRight;\n rootRight.right = rootRightRight;\n rootRightRight.right = rootRightRightRight;\n\n // Return root\n return root;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for UIFormBuilder and UIMenuBuilder
public interface UIFormMenuBuilderInterface { /** * Return a new UIMenu object. * * @param heading String * @return UIMenu UIMenu */ //UIFormMenu toUIMenu(String heading); /** * Return a new UIForm object. * * @param heading String * @return UIForm UIForm */ UIFormMenu toUIFormMenu(String heading); /** * Add prompt to UIMenu * * @param prompt Prompt * @param action Action to be taken */ void add(String prompt, UIMenuAction action); /** * Add prompt to UIForm * * @param prompt Prompt * @param test Test for form */ void add(String prompt, UIFormTest test); }
[ "public interface ActionMenuWidget extends IsWidget {\r\n\r\n\tpublic void hideAllActions();\r\n\r\n\t/**\r\n\t * Reset this action menu. This will clear all listeners and hide all action.\r\n\t */\r\n\tpublic void reset();\r\n\r\n\t/**\r\n\t * Show or hide an action.\r\n\t * \r\n\t * @param action\r\n\t * @param visible\r\n\t */\r\n\tpublic void setActionVisible(Action action, boolean visible);\r\n\r\n\t/**\r\n\t * The text shown for this action.\r\n\t * \r\n\t * @param action\r\n\t * @param text\r\n\t */\r\n\tpublic void setActionText(Action action, String text);\r\n\r\n\t/**\r\n\t * Set the icon for this action.\r\n\t * \r\n\t * @param action\r\n\t * @param icon\r\n\t */\r\n\tpublic void setActionIcon(Action action, IconType icon);\r\n\r\n\tpublic void setToolsButtonIcon(String text, IconType icon);\r\n\r\n\t/**\r\n\t * Add a new listener to an action.\r\n\t * \r\n\t * All listeners are cleared each time the widget is configured.\r\n\t * \r\n\t * @param action\r\n\t * @param listner\r\n\t */\r\n\tpublic void addActionListener(Action action, ActionListener listner);\r\n\r\n\t/**\r\n\t * Set the listener for an action.\r\n\t * \r\n\t * All listeners are cleared each time the widget is configured.\r\n\t * \r\n\t * @param action\r\n\t * @param listner\r\n\t */\r\n\tpublic void setActionListener(Action action, ActionListener listner);\r\n\r\n\t/**\r\n\t * Listen to action events.\r\n\t */\r\n\tpublic interface ActionListener {\r\n\t\t/**\r\n\t\t * Called when the users selects an action.\r\n\t\t * \r\n\t\t * @param action The selected action.\r\n\t\t */\r\n\t\tvoid onAction(Action action);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Add a controller widget. These are often hidden modal widgets that need to be on the page.\r\n\t * \r\n\t * @param controllerWidget\r\n\t */\r\n\tpublic void addControllerWidget(IsWidget controllerWidget);\r\n\r\n\tvoid setACTDividerVisible(boolean visible);\r\n\r\n\tvoid setTableDownloadOptionsVisible(boolean visible);\r\n}", "public interface TSMenuBuilder {\n\tpublic JMenuItem createMenuItem(String itemText, String actionCmd, KeyStroke keyStroke);\n\n\tpublic MenuTemplate getMenuTemplate();\n}", "IMenuView getMenuView();", "public interface Menu {\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item (which will be interpreted as plain text and\n * HTML-escaped if necessary)\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(String title, Command callback);\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item, as a {@link SafeHtml}\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(SafeHtml title, Command callback);\n}", "IMenuFactory getMenuFactory();", "JZLemurMenu createJZLemurMenu();", "Menu getMenuEdit();", "public Menu createViewMenu();", "void add(String prompt, UIMenuAction action);", "BuiltInActionButton createBuiltInActionButton();", "private JMenu buildEditMenu() {\n JMenu menu = new JMenu(\"Edit\");\n JMenuItem menuItem = new JMenuItem();\n Action cutAction = new DefaultEditorKit.CutAction();\n cutAction.putValue(Action.NAME, \"Cut\");\n menuItem.setAccelerator(KeyStroke.getKeyStroke('X', Toolkit.getDefaultToolkit ().getMenuShortcutKeyMask()));\n menu.add(cutAction);\n\n Action copyAction = new DefaultEditorKit.CopyAction();\n copyAction.putValue(Action.NAME, \"Copy\");\n menuItem.setAccelerator(KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit ().getMenuShortcutKeyMask()));\n menu.add(copyAction);\n\n Action pasteAction = new DefaultEditorKit.PasteAction();\n pasteAction.putValue(Action.NAME, \"Paste\");\n menuItem.setAccelerator(KeyStroke.getKeyStroke('P', Toolkit.getDefaultToolkit ().getMenuShortcutKeyMask()));\n menu.add(pasteAction);\n\n menu.addSeparator();\n menuItem = new JMenuItem(\"Set Title\");\n menuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n updateTitle();\n }\n });\n menuItem.setAccelerator(KeyStroke.getKeyStroke('T', Toolkit.getDefaultToolkit ().getMenuShortcutKeyMask()));\n menu.add(menuItem);\n\n menuItem = new JMenuItem(\"Lock/Unlock note\");\n menuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n lockNote(TextNote.this);\n }\n });\n menuItem.setAccelerator(KeyStroke.getKeyStroke('L', Toolkit.getDefaultToolkit ().getMenuShortcutKeyMask()));\n menu.add(menuItem);\n\n return menu;\n }", "public interface PopupMenuResponder {\n public void onMenuSelection(String selection);\n}", "private void createEditMenu() {\n\t\tJMenu edit = new JMenu(MN_EDIT);\n\t\tedit.add( createMenuItem(MI_UNDO, \"undo the last action.\"));\n\t\tedit.add( createMenuItem(MI_REDO, \"redo the previous action.\"));\n\t\tedit.add( createMenuItem(MI_CUT, \"Cut the selected text.\"));\n\t\tedit.add( createMenuItem(MI_COPY, \"copy the selected text.\"));\n\t\tedit.add( createMenuItem(MI_PASTE, \"paste the copied text.\"));\n\t\tadd(edit);\n\t}", "protected CAbstractMenuBuilder getMenuBuilder() {\n return m_menuBuilder;\n }", "private CMenu createEditMenu() {\n CMenu menu = new CMenu (\"Edit\");\n menu.add(editHandler, menuConstraints);\n return menu;\n }", "public interface CommandToolbarView extends View<CommandToolbarView.ActionDelegate> {\n\n AcceptsOneWidget getCommandsPanelContainer();\n\n AcceptsOneWidget getProcessesListContainer();\n\n AcceptsOneWidget getPreviewUrlsListContainer();\n\n void addButton(MenuPopupButton button);\n\n interface ActionDelegate {\n }\n}", "public interface MenuLabel extends ModelElement, EventTarget, PaneTargeted, Titled {\n /**\n * A label may have an associated icon.\n * \n * @labelDirection forward\n * @directed\n * @supplierRole icon\n * @supplierCardinality 0..1 \n * @link aggregationByValue\n */\n /*# MenuIcon lnkMenuIcon; */\n\n /**\n * A label always has an associated text.\n * \n * @directed\n * @labelDirection forward\n * @supplierCardinality 1\n * @supplierRole text \n * @link aggregationByValue\n */\n /*# MenuText lnkMenuText; */\n\n /**\n * Returns the optionally defined icon associated with the label.\n *\n * @return the icon associated with the label. May be null\n */\n MenuIcon getIcon();\n\n /**\n * Returns the text for the label.\n *\n * @return the label's text. Will not be null\n */\n MenuText getText();\n\n // Other JavaDoc inherited\n /**\n * <strong>This is for internal menu model usage only.</strong>\n */\n ElementDetails getElementDetails();\n\n}", "public void goToUIMenu() {\n\t\tUIHomeSesion.uiHomeSesion.getUiMenuImpl();\n\t}", "public void createEditMenu()\n\t{\n\t\teditMenu.add(replace);\n\t\teditMenu.add(replaceAll);\n\t\teditMenu.add(find);\n\t\teditMenu.add(optionSubMenu);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
catFullPathToSbk assumes: lib is the path to the library sif backup file
static public String catFullPathToSbk(String lib, String mod, String version) { String tempStr =null; String templateWFullPath =null; tempStr=catFullPathToSrc(lib,mod,version); if (tempStr==null) { return(null); } templateWFullPath = tempStr+File.separator+mod+".sbk"; return(templateWFullPath); }
[ "static public String getSbkString(String fullPathToSif) {\n\n\tString tempStr =null;\n\n\tint lastDot=fullPathToSif.lastIndexOf('.');\n\tString base=fullPathToSif.substring(0,lastDot);\n\ttempStr=base+\".sbk\";\n\t//System.out.println(\"Debug:SCSUtility getSbkString \"+tempStr);\n\treturn(tempStr);\n }", "static public String catFullPathToSif(String lib, String mod, String version) {\n\tString tempStr =null;\n\tString templateWFullPath =null;\n\ttempStr=catFullPathToSrc(lib,mod,version);\n\tif (tempStr==null) {\n\t return(null);\n\t}\n\ttemplateWFullPath = tempStr+File.separator+mod+\".sif\";\n\treturn(templateWFullPath);\n\n }", "static public String catFullPathToSbk(String path, String moduleName) {\n\tString templateWFullPath =null;\n\tif ((path==null) || (moduleName==null)) {\n\t return (null);\n\t} else if ((path.equals(\"\")) || (moduleName.equals(\"\"))) { \n\t return(null);\n\t} else {\n\t templateWFullPath = path+File.separator+moduleName+\".sbk\";\n\t return(templateWFullPath);\n\t}\n }", "private void makeLibraryLocations(){\n File Root = this.rootLocation.toFile();\n File Thumbnails = this.cacheLocation.toFile();\n\n File HeadDirectory = new File(rootLocation.toString() + \"/HeadDirectory/\");\n if (!Root.exists()){\n Root.mkdirs();\n logger.log(Level.WARNING, \"Given library location doesn't exist, creating new library location\");\n }\n if (!HeadDirectory.exists()){\n HeadDirectory.mkdirs();\n logger.log(Level.INFO, \"New Library creating head directory\");\n }\n\n if (!Thumbnails.exists()){\n Thumbnails.mkdirs();\n logger.log(Level.WARNING, \"Given Thumbnail location doesn't exist, creating new thumbnail location\");\n }\n\n\n }", "public static File _getBookFile(Book book){\n \n String ff= BOOKS_DIR +\"/\"+ book.getUri() + \".html\";\n \n File ss = new File(backupDIR, ff);\n File pp = ss.getParentFile();\n pp.mkdirs();\n //Log.d(DEBUG_TAG, \"Path: \"+ss.getAbsolutePath());\n return ss;\n }", "public void saveCookbook() {\n Serializer serializer = new Persister();\n File output = new File(filePath);\n try {\n serializer.write(cookbook, output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private static void addDir(String s) throws IOException { This enables the java.library.path to be modified at runtime\n // From a Sun engineer at\n // http://forums.sun.com/thread.jspa?threadID=707176\n //\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path : paths) {\n if (s.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = s;\n field.set(null, tmp);\n System.setProperty(\"java.library.path\", System.getProperty(\"java.library.path\")\n + File.pathSeparator + s);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path\");\n }\n }", "public void saveLibrary(Library library, boolean over) throws AlreadyExistsException, IOException{\n\t\t\n\t\t \n\t\t\n\t\tif (new File(chemin+\"/savedLibraries/\"+library.getLibraryName()+\".ser\").exists() && !over){\n\t\t\tthrow new AlreadyExistsException();\n\t\t}\n\t\t\n\t\telse{\n\t\t\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\t// Creation of the directory if needed. However writing new FileOutputStream(\"tmp/library.ser\") is enough to create it.\n\t\t\t\t//on crée le dossier au cas où il n'y en aurait pas\n\t\t\t\tnew File(\"savedLibraries\").mkdir();\n\t\t\t\t/*File libraryFile = new File(\"savedLibraries/library.ser\");\n\t\t\t\t//Si le fichier n'existe pas, on le crée\n\t\t\t\tif (!libraryFile.exists()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tlibraryFile.createNewFile();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException i){\n\t\t\t\t\t\ti.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFileOutputStream fileOut = new FileOutputStream(chemin+\"/savedLibraries/\"+library.getLibraryName()+\".ser\");\n\t\t\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\t\t\tout.writeObject(library);\n\t\t\t\tout.close();\n\t\t\t\tfileOut.close();\n\t\n\t\t\t}\n\t\t\n\t\t\n\t\t\tcatch(IOException i){\n\t\t\t\tthrow new IOException();\n\t\t\t}\n\t\t}\n\t}", "String getLibraryLocation(String library);", "private String makeJarpath(String bundleLocation) {\n String[] parsedLocation = locationParser(bundleLocation);\n String jarPath = \"\";\n\n jarPath = jarPath + homePath + defaultRepoPath;\n for (String loc : parsedLocation) {\n jarPath = jarPath + loc + \"/\";\n }\n jarPath = jarPath + parsedLocation[parsedLocation.length - 2] + \"-\"\n + parsedLocation[parsedLocation.length - 1] + \".jar\";\n\n return jarPath;\n }", "public static String _fc_newstream(String _dir1,String _filename) throws Exception{\nanywheresoftware.b4a.keywords.Common.File.Copy(_dir1,_filename,_dir1,_filename+\".apk\");\n //BA.debugLineNum = 581;BA.debugLine=\"FileName=FileName&\\\".apk\\\"\";\n_filename = _filename+\".apk\";\n //BA.debugLineNum = 582;BA.debugLine=\"Log(FileName)\";\nanywheresoftware.b4a.keywords.Common.Log(_filename);\n //BA.debugLineNum = 583;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected void copyJsLibraryFile(String jsLib) throws MojoExecutionException {\n try {\n outputKotlinJSDir.mkdirs();\n final InputStream inputStream = MetaInfServices.loadClasspathResource(jsLib);\n if (inputStream == null) {\n System.out.println(\"WARNING: Could not find \" + jsLib + \" on the classpath!\");\n } else {\n InputSupplier<InputStream> inputSupplier = new InputSupplier<InputStream>() {\n @Override\n public InputStream getInput() throws IOException {\n return inputStream;\n }\n };\n Files.copy(inputSupplier, new File(outputKotlinJSDir, jsLib));\n }\n } catch (IOException e) {\n throw new MojoExecutionException(e.getMessage(), e);\n }\n }", "static public String catFullPathToSrc(String lib, String mod, String version) {\n\tString templateWFullPath =null;\n\tif ((lib==null) || (mod==null) || (version==null)) {\n\t return (null);\n\t} else if ((lib.equals(\"\")) || (mod.equals(\"\")) || (version.equals(\"\"))) { \n\t return(null);\n\t} else {\n\t templateWFullPath = lib+File.separator+mod+File.separator+version+File.separator+\"src\";\n\t return(templateWFullPath);\n\t}\n }", "private static URL addSwtToClasspath(String menthorVersion) \r\n\t{\r\n\t\tString swtFileName = \"<empty>\";\r\n\t try {\t \t\r\n\t swtFileName = Util.getSwtFileName();\t \t \t \r\n\t URLClassLoader classLoader = (URLClassLoader) SWTConfigurer.class.getClassLoader();\r\n\t Method addUrlMethod = URLClassLoader.class.getDeclaredMethod (\"addURL\", URL.class);\r\n\t addUrlMethod.setAccessible (true);\t \t \r\n\t URL swtFileUrl = null;\r\n\t try{\r\n\t \tswtFileUrl = new URL(\"rsrc:\"+swtFileName);\r\n\t }catch(MalformedURLException e){\r\n\t \tString workingDir = getSwtWorkingDir();\r\n\t \tif(workingDir.lastIndexOf(\"\\\\\") < workingDir.lastIndexOf(\".\")){\r\n \t\t\tint lastBar = workingDir.lastIndexOf(\"/\");\r\n \t\t\tworkingDir = workingDir.substring(0, lastBar+1);\r\n \t\t}\t \t\r\n\t \tFile file = new File(workingDir.concat(swtFileName));\r\n\t \tif(!file.exists()) { \r\n\t \t\t// check subfolder \"/menthor-x.x.x_lib\" first\t\r\n\t \t\tif(Util.onWindows()){\r\n\t \t\t\tworkingDir = workingDir.concat(File.separator+\"menthor-\"+menthorVersion+\"_lib\"+File.separator);\r\n\t \t\t}else{\r\n\t \t\t\tworkingDir = workingDir.concat(\"menthor-\"+menthorVersion+\"_lib\");\r\n\t \t\t}\r\n\t \t\tfile = new File(workingDir.concat(swtFileName));\r\n\t \t\tif(!file.exists()){\r\n\t\t \t\t//extract swtFile jar to \"/menthor-x.x.x_lib\"\t \t\t\r\n\t\t \t\tUtil.extract(swtFileName, new File(workingDir));\r\n\t\t \t\tfile = new File(workingDir.concat(swtFileName));\r\n\t\t \t}\r\n\t \t}\t \t\r\n\t \tswtFileUrl = file.toURI().toURL();\r\n\t \tif (!file.exists ()) System.err.println(\"Can't locate SWT Jar File\" + file.getAbsolutePath());\r\n\t \t}\t \t\r\n\t System.out.println(\"Adding to classpath: \" + swtFileUrl); \r\n addUrlMethod.invoke (classLoader, swtFileUrl); \r\n return swtFileUrl;\r\n\t }catch(Exception e) {\r\n\t System.err.println(\"Unable to add the swt jar to the class path: \"+swtFileName);\r\n\t e.printStackTrace();\r\n\t }\t \r\n\t return null;\r\n\t}", "Path getCardBookFilePath();", "@Override\n public String getLibraryDestination(String libraryName, LibraryScope scope) {\n return \"lib/\";\n }", "static String getSrcPathUsingNick ( String libNickName, String modulename , String version ) throws FileNotFoundException, IOException {\n\n\tboolean done = false ; \n\tString lib_path = null;\n\tString returnStr = null;\n \n\t//System.out.println(\"Debug:SCSUtility:getSrcPathUsingNick:Module name is : \" + modulename ); \n\ttry {\n\t lib_path = getLibPathName(libNickName);\n\t}\n\tcatch (FileNotFoundException e) { \n\t System.err.println(\"Error:SCSUtility:getSrcPathUsingNick: FileNotFoundException with \"+scs_library_paths_path);\n\t throw (new FileNotFoundException());\n\t} \n\tcatch (IOException e) { \n\t System.err.println(\"Error:SCSUtility:getSrcPathUsingNick: IOException with \"+scs_library_paths_path);\n\t throw (new IOException());\n\t} \n\tif (lib_path==null){\n\t System.err.println(\"Error:SCSUtility:getSrcPathUsingNick:something wrong with \"+scs_library_paths_file);\n\t return(null);\n\t}\n\tif (lib_path.equals(\"NOTFOUND\")) {\n\t System.err.println(\"ERROR:SCSUtility:getSrcPathUsingNick: no match for alias \"+libNickName);\n\t return(null);\n\t}\n\t// otherwise use lib_path \n\treturnStr=catFullPathToSrc(lib_path,modulename,version);\n\tif (returnStr==null) {\n\t System.err.println(\"ERROR:SCSUtility:getSrcPathUsingNick: either lib_path, modulename, or version is null\");\n\t return(null);\n\t}\n\n\treturn(returnStr);\n }", "private void copyLibsFromAssets() {\n try {\n for (String s : ASSET_LIBS) {\n File outputFile = new File(getApplicationContext().getFilesDir() + \"/\" + s);\n if (outputFile.exists()) {\n outputFile.delete();\n }\n copyAssetFile(s, outputFile.getAbsolutePath());\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "Path getVendorBookFilePath();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column SYS.DBA_USERS.DEFAULT_TABLESPACE
public void setDefaultTablespace(String defaultTablespace) { this.defaultTablespace = defaultTablespace == null ? null : defaultTablespace.trim(); }
[ "public String getDefaultTablespace() {\n\t\treturn defaultTablespace;\n\t}", "public PgTablespace() {\n this(DSL.name(\"pg_tablespace\"), null);\n }", "void setXMINamespace(String namespace);", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public void setDefaultNamespace(String defaultNamespace) {\n this.defaultNamespace = defaultNamespace;\n }", "public PgTablespace(Name alias) {\n this(alias, PG_TABLESPACE);\n }", "public PgTablespaceDatabases() {\n this(DSL.name(\"pg_tablespace_databases\"), null);\n }", "public void setNameSpace(String nameSpace) {\n this.nameSpace = nameSpace == null ? null : nameSpace.trim();\n }", "public void setNameSpace(String nameSpace) {\n\t\tthis.nameSpace = nameSpace;\n\t}", "public PgTablespace(String alias) {\n this(DSL.name(alias), PG_TABLESPACE);\n }", "protected abstract String getDefaultNamespace();", "final Table SYSTEM_SCHEMAS(Session session, PersistentStore store) {\n\n Table t = sysTables[SYSTEM_SCHEMAS];\n\n if (t == null) {\n t = createBlankTable(sysTableHsqlNames[SYSTEM_SCHEMAS]);\n\n addColumn(t, \"TABLE_SCHEM\", SQL_IDENTIFIER); // not null\n addColumn(t, \"TABLE_CATALOG\", SQL_IDENTIFIER);\n addColumn(t, \"IS_DEFAULT\", Type.SQL_BOOLEAN);\n\n // order: TABLE_SCHEM\n // true PK, as rows never have null TABLE_SCHEM\n HsqlName name = HsqlNameManager.newInfoSchemaObjectName(\n sysTableHsqlNames[SYSTEM_SCHEMAS].name, false,\n SchemaObject.INDEX);\n\n t.createPrimaryKeyConstraint(name, new int[]{ 0 }, true);\n\n return t;\n }\n\n Object[] row;\n\n // Initialization\n String[] schemas = database.schemaManager.getSchemaNamesArray();\n String defschema =\n database.schemaManager.getDefaultSchemaHsqlName().name;\n\n // Do it.\n for (int i = 0; i < schemas.length; i++) {\n row = t.getEmptyRowData();\n\n String schema = schemas[i];\n\n row[0] = schema;\n row[1] = database.getCatalogName().name;\n row[2] = schema.equals(defschema) ? Boolean.TRUE\n : Boolean.FALSE;\n\n t.insertSys(session, store, row);\n }\n\n return t;\n }", "public void setNameSpace( NameSpace globalNameSpace ) {\n this.globalNameSpace = globalNameSpace;\n if ( null != globalNameSpace ) try {\n if ( ! (globalNameSpace.getVariable(\"bsh\") instanceof This) ) {\n initRootSystemObject();\n }\n } catch (final UtilEvalError e) {\n throw new IllegalStateException(e);\n }\n }", "public void setNameSpace(String nameSpace) {\n this.nameSpace = nameSpace;\n }", "public void setTableName(String value) {\n setAttributeInternal(TABLENAME, value);\n }", "public void setDatabaseTable() {\n if (this.profile != null) {\n this.databaseLayout.getTableItems().clear();\n for (SingleEntry entry : this.profile.getDatabase().getEntries()) {\n this.databaseLayout.getTableItems().add(entry);\n }\n }\n }", "@Override\n public String getKeyspaceName() {\n return env.getProperty(\"cassandra.keyspace\");\n }", "DefaultNameSpace createDefaultNameSpace();", "@Override\n public String getDefaultSchemaName()\n { return null;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes a new line item array with order and line items.
protected AbstractTransactionLineItemIfc[] makeNewLineItemArray(AbstractTransactionLineItemIfc[] orderLineItems, AbstractTransactionLineItemIfc[] lineItems) { int newSize = orderLineItems.length + lineItems.length; AbstractTransactionLineItemIfc[] newLineItemArray = new AbstractTransactionLineItemIfc[newSize]; int count = 0; for(int i = 0;i < lineItems.length;i++) { newLineItemArray[count] = lineItems[i]; count++; } for(int i = 0;i < orderLineItems.length;i++) { newLineItemArray[count] = orderLineItems[i]; count++; } return(newLineItemArray); }
[ "private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }", "public Order(ArrayList<OrderLine> orderline) {\n\t\tthis.orderlines=orderline;\n\t}", "private OrderLine createOrder() {\n\t\tOrderLine myOrder = new OrderLine(this);\n\t\treturn myOrder;\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ArrayOfExternalOrderLine addNewOrderLineList();", "public void addItem(Product p, int qty){\n LineItem[] temp = new LineItem[item.length + 1];\n System.arraycopy(item, 0, temp, 0, item.length);\n temp[item.length] = new LineItem(p.getProductId(), p.getProductDescription(), p.getUnitPrice() * qty, qty, p.getDiscountAmount() * qty);\n item = temp;\n }", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine getExternalOrderLineArray(int i);", "private void createOrderLine(String name, int price){\n OrderLine orderLine = new OrderLine(name, price);\n orderLines.add(orderLine);\n }", "Line createLine();", "public ArrayNode getLineItemsForInvoice(Invoice invoice, ObjectNode node) {\n ArrayNode lineItemNodes = node.arrayNode();\n CustomerClientUtil ccu = new CustomerClientUtil();\n //loop through line items\n for (int i = 0; i < invoice.getLineItemList().size(); i++) {\n ObjectNode lineItem = lineItemNodes.objectNode();\n lineItem.put(\"name\", invoice.getLineItemList().get(i).getCurrentName());\n lineItem.put(\"price\", ccu.formatAmount(invoice.getLineItemList().get(i).getCurrentPrice()));\n lineItem.put(\"qty\", invoice.getLineItemList().get(i).getQuantity());\n //extended price\n long extendedPrice = invoice.getLineItemList().get(i).getQuantity() * invoice.getLineItemList().get(i).getCurrentPrice();\n lineItem.put(\"extendedPrice\", ccu.formatAmount(extendedPrice));\n lineItemNodes.add(lineItem);\n }\n\n return lineItemNodes;\n }", "public void addOrderLine(OrderLine line)\r\n {\r\n if(this.orderLines == null)\r\n {\r\n this.orderLines = new ArrayList<OrderLine>();\r\n }\r\n this.orderLines.add(line);\r\n }", "public bean.stateless.LineItem[] getLineItems() {\n return lineItems;\n }", "public void buildOrderLine() {\n\t\tthis.getIm().buildOrderLine();\n\t}", "@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }", "public static Product[] createOrder()\n {\n Order order = new Order();\n Random r = new Random();\n int x;\n order.orderNumber++;\n int itemCount = 1 + r.nextInt(50);\n order.orderContents = new Product[itemCount];\n for (x = 0 ; x < itemCount; x++){\n Product item = productMaker.generateProduct();\n order.orderContents[x] = item;\n }\n\n return order.orderContents;\n\n }", "public void setItemLine(ItemLine il);", "private void createLines() {\n\t\tlineCollection.clear();\n\n\t\taddSides(lineCollection);\n\t}", "private void processItemLine(OrderDTO order, OrderLineWS[] lines, Integer languageId, Integer entityId,\r\n Integer userId, Integer currencyId, String pricingFields)\r\n throws SessionInternalError {\r\n \r\n /*\r\n Exclude existing order lines from the usage count when updating an order. This prevents us\r\n from counting the existing line (read from the database) on top of the line that were editing.\r\n */\r\n if (order != null && order.getId() != null) {\r\n order = new OrderDTO(order);\r\n order.setLines(new ArrayList<OrderLineDTO>());\r\n }\r\n \r\n for (OrderLineWS line : lines) {\r\n // get pricing fields if they were set for the order\r\n List<PricingField> fields = null;\r\n if (pricingFields != null) {\r\n fields = Arrays.asList(PricingField.getPricingFieldsValue(pricingFields));\r\n }\r\n \r\n // get the item\r\n ItemBL itemBL = new ItemBL(line.getItemId());\r\n itemBL.setPricingFields(fields);\r\n ItemDTO item = itemBL.getDTO(languageId, userId, entityId, currencyId, line.getQuantityAsDecimal(), order);\r\n \r\n if (line.getUseItem()) {\r\n if (item.getPrice() == null) {\r\n line.setPrice(item.getPercentage());\r\n } else {\r\n line.setPrice(item.getPrice());\r\n }\r\n \r\n if (line.getDescription() == null || line.getDescription().length() == 0) {\r\n line.setDescription(item.getDescription());\r\n }\r\n }\r\n }\r\n }", "protected OlePurchaseOrderItem createPoItemFromPaymentLine(OlePaymentRequestItem rlItem) {\r\n LOG.debug(\"Inside createPoItemFromPaymentLine\");\r\n OlePurchaseOrderItem poi = new OlePurchaseOrderItem();\r\n poi.setItemActiveIndicator(true);\r\n poi.setItemTypeCode(rlItem.getItemTypeCode());\r\n poi.setItemLineNumber(rlItem.getItemLineNumber());\r\n poi.setItemCatalogNumber(rlItem.getItemCatalogNumber());\r\n poi.setItemDescription(rlItem.getItemDescription());\r\n poi.setItemQuantity(rlItem.getItemQuantity());\r\n poi.setItemUnitOfMeasureCode(rlItem.getItemUnitOfMeasureCode());\r\n poi.setItemUnitPrice(rlItem.getItemUnitPrice());\r\n// poi.setSourceAccountingLines(rlItem.getSourceAccountingLines());\r\n poi.setItemNoOfParts(rlItem.getItemNoOfParts());\r\n poi.setItemListPrice(rlItem.getItemListPrice());\r\n poi.setItemDiscount(rlItem.getItemDiscount());\r\n poi.setItemDiscountType(rlItem.getItemDiscountType());\r\n poi.setFormatTypeId(rlItem.getFormatTypeId());\r\n\r\n //Foreign Currency\r\n poi.setItemCurrencyType(rlItem.getItemCurrencyType());\r\n poi.setItemForeignListPrice((rlItem.getItemForeignListPrice()));\r\n poi.setItemForeignDiscount((rlItem.getItemForeignDiscount()));\r\n poi.setItemForeignDiscountAmt((rlItem.getItemForeignDiscountAmt()));\r\n poi.setItemForeignDiscountType(rlItem.getItemForeignDiscountType());\r\n poi.setItemForeignUnitCost((rlItem.getItemForeignUnitCost()));\r\n poi.setItemExchangeRate((rlItem.getItemExchangeRate()));\r\n poi.setItemUnitCostUSD((rlItem.getItemUnitCostUSD()));\r\n poi.setItemInvoicedTotalAmount(rlItem.getTotalAmount());\r\n poi.setBibInfoBean(rlItem.getBibInfoBean());\r\n poi.setItemTitleId(rlItem.getItemTitleId());\r\n setAccountingLinesFromPayment(rlItem, poi);\r\n\r\n LOG.debug(\"Leaving createPoItemFromPaymentLine\");\r\n return poi;\r\n }", "private void addToLineArray(BlankLine line, int index) {\r\n \r\n line.setStaffIdx(index);\r\n lines[index] = line;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Download an object When you download an object, you get all of the object's metadata and a stream from which to read the contents. It's important to read the contents of the stream as quickly as possibly since the data is streamed directly from Amazon S3 and your network connection will remain open until you read all the data or close the input stream. GetObjectRequest also supports several other options, including conditional downloading of objects based on modification times, ETags, and selectively downloading a range of an object.
public S3Object download(String bucketName, String key) throws AmazonServiceException { System.out.println("Downloading an object"); S3Object object = s3Client.getObject(new GetObjectRequest(bucketName, key)); System.out.println("Content-Type: " + object.getObjectMetadata().getContentType()); return object; }
[ "private SdkHttpRequest createGetObjectRequest(String objectKey) {\n return SdkHttpRequest.builder()\n .protocol(\"https\")\n .host(S3_HOST)\n .method(SdkHttpMethod.GET)\n .encodedPath(objectKey)\n .build();\n }", "@GetMapping(\"/public/download-file\")\n public ResponseEntity<InputStreamResource> downloadObject(@RequestParam String name) throws Exception {\n \tObjectStat objStat = minioClient.statObject(minioConfig.getBucketName(), name);\n \t\n \tlog.debug(\"REST request to download file: {} type {}\", name, objStat.contentType());\n \treturn ResponseEntity.ok()\n \t\t\t.header(HttpHeaders.CONTENT_TYPE, objStat.contentType())\n \t\t\t.header(\"Content-Disposition\", \"attachment; filename=\" + name)\n \t\t\t.header(HttpHeaders.ETAG, objStat.etag())\n \t\t\t.body(new InputStreamResource(minioClient.getObject(minioConfig.getBucketName(), name)));\n }", "@Override\n public S3Object getObjectSecurely(GetObjectRequest req) {\n return ae.getObjectSecurely(req);\n }", "void downloadLO(LearningObject lobject, String stagingID) throws Exception;", "static void downloadObject(String projectId, String bucketName, String objectName, String destFilePath) throws IOException {\n\t\t\n\t\t\n\t\tcredentials = GoogleCredentials.fromStream(new FileInputStream(jsonFilePath))\n\t\t\t\t.createScoped(Lists.newArrayList(\"https://www.googleapis.com/auth/cloud-platform\"));\n\t\tStorage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();\t\t\n\n\t\t\tFileWriter writer = new FileWriter(new File(destFilePath), true);\n\t\t\tBlob blob = storage.get(BlobId.of(bucketName, objectName));\n\t\t\t\n\t\t\tReadChannel readChannel = blob.reader();\n\t\t\t\n\t\t\tBufferedReader br = new BufferedReader(Channels.newReader(readChannel, \"UTF-8\"));\n\t\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\t\tString line; \n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\tbw.write(line);\n\t\t\t\tbw.newLine();\n\t\t\t\t\n\t\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\t\tString word = tokens[0];\n\t\t\t\tString details = tokens[1];\n\t\t\t\t\n\t\t\t\tString[] detailsToken = details.split(\":\");\n\t\t\t\tString folder = detailsToken[0];\n\t\t\t\tString docName = detailsToken[1];\n\t\t\t\tString count = detailsToken[2];\n\t\t\t\t\n\t\t\t\tmodel.addRow(new Object[] {word, folder, docName, count});\n\t\t\t\t\n//\t\t\t\tSystem.out.println(word + details);\n\t\t\t\t\n\t\t\t\tline = br.readLine();\n\t\t\t\t\n\t\t\t}\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Downloaded object \" + objectName + \" from bucket name \" + bucketName + \" to \" + destFilePath);\n\t\t\t}", "public void getObject(String url) throws UrlCacheException {\n\n\t\tHost host = new Host(url);\n\n\t\tboolean fileExists = checkCatalogForFile(url);\n\n\t\tbeginDownloadStream(host.getHostName(), host.getPort(), host.getConcatPath(), host.getFileName(), fileExists);\n\t}", "public ResponseEntity<byte[]> download(String key) throws IOException {\n GetObjectRequest getObjectRequest = new GetObjectRequest(bucketName, key);\n\n S3Object s3Object = s3Client.getObject(getObjectRequest);\n\n S3ObjectInputStream objectInputStream = s3Object.getObjectContent();\n\n byte[] bytes = IOUtils.toByteArray(objectInputStream);\n\n String fileName = URLEncoder.encode(key, \"UTF-8\").replaceAll(\"\\\\+\", \"%20\");\n\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.setContentType(MediaType.APPLICATION_OCTET_STREAM);\n httpHeaders.setContentLength(bytes.length);\n httpHeaders.setContentDispositionFormData(\"attachment\", fileName);\n\n return new ResponseEntity<>(bytes, httpHeaders, HttpStatus.OK);\n }", "public static void DownloadFile(String fileKey) throws IOException {\r\n String bucketName = \"fightforjava1\";\r\n AWSCredentials credentials = null;\r\n try {\r\n credentials = new ProfileCredentialsProvider(\"default\").getCredentials();\r\n } catch (Exception e) {\r\n throw new AmazonClientException(\r\n \"can not load credentials\", e);\r\n }\r\n AmazonS3 s3 = new AmazonS3Client(credentials);\r\n Region usWest2 = Region.getRegion(Regions.US_WEST_2);\r\n s3.setRegion(usWest2);\r\n try {\r\n\r\n S3Object object = s3.getObject(new GetObjectRequest(\"fightforjava1\", fileKey));\r\n \r\n importInputStream(object.getObjectContent());\r\n\r\n } catch (AmazonServiceException ase) {\r\n JOptionPane.showMessageDialog(null, \"The request to AWS was reject!!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\r\n } catch (AmazonClientException ace) {\r\n JOptionPane.showMessageDialog(null, \"The client encounered a serious internal problem while trying to communicate with AWS S3\", \"Alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n\r\n }", "public Object getObject() {\n try {\n InputStream is = new ByteArrayInputStream(m_Serialized);\n if (m_Compressed) {\n is = new GZIPInputStream(is);\n }\n is = new BufferedInputStream(is);\n ObjectInputStream oi = new ObjectInputStream(is);\n Object result = oi.readObject();\n oi.close();\n return result;\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public T caseDownload(Download object) {\n\t\treturn null;\n\t}", "Object getObject();", "public byte[] download(String path,String key) {\n try{\n S3Object object= s3.getObject(path,key);\n S3ObjectInputStream inputStream=object.getObjectContent();\n return IOUtils.toByteArray(inputStream);\n }catch(AmazonServiceException |IOException e){\n throw new IllegalStateException(\"Failed to download file from s3 \"+e);\n\n }\n\n\n }", "<T extends Serializable> T readObject(\n @Nonnull InputStream stream,\n @Nonnull Class<T> clazz\n ) throws IOException;", "public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}", "private byte[] getObjectBytes(Object object) throws IOException {\n\t\t// Data streams\n\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\tObjectOutputStream objectStream = new ObjectOutputStream(byteStream);\n\t\tbyte[] ret = null;\n\n\t\ttry {\n\t\t\t// Attempt to write to the data stream\n\t\t\tobjectStream.writeObject(object);\n\t\t\tret = byteStream.toByteArray();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\t// Close all used objects\n\t\t\tobjectStream.close();\n\t\t\tbyteStream.close();\n\t\t}\n\n\t\treturn ret;\n\t}", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public static <T> T fetch(T object) {\n\n\t\tif (isProxy(object)) {\n\t\t\t((OcmProxy) object).fetch();\n\t\t}\n\t\treturn object;\n\t}", "com.google.protobuf.ByteString getObject();", "private Object getObject(Object obj) {\r\n\t\tif (obj instanceof PDFIndirectReference) {\r\n\t\t\tPDFIndirectReference ref = (PDFIndirectReference)obj;\r\n\t\t\tif (objectCache.containsKey(ref)) {\r\n\t\t\t\treturn objectCache.get(ref);\r\n\t\t\t}\r\n\t\t\tpositionBuffer(ref);\r\n\t\t\tint originalPosition = fileBuffer.position();\r\n\t\t\t//if this is -1, after the while loop below, then a stream was found,\r\n\t\t\t//otherwise a normal object was found and this refers to the position\r\n\t\t\t//JUST BEFORE the endobj token\r\n\t\t\tint endobjPosition = -1;\r\n\t\t\t//represents the position JUST FOLLOWING the obj token\r\n\t\t\tint objPosition = -1;\r\n\t\t\tboolean found = false;\r\n\t\t\tint index = originalPosition;\r\n\t\t\twhile (!found && index <= fileBuffer.limit()) {\r\n\t\t\t\tif (fileBuffer.get(index) == 'o' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 1) == 'b' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 2) == 'j' &&\r\n\t\t\t\t\t\tobjPosition == -1) {\r\n\t\t\t\t\tobjPosition = index + 3;\r\n\t\t\t\t}\r\n\t\t\t\tif (fileBuffer.get(index) == 'e' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 1) == 'n' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 2) == 'd' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 3) == 'o' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 4) == 'b' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 5) == 'j') {\r\n\t\t\t\t\tendobjPosition = index - 1;\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t} else if (fileBuffer.get(index) == 's' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 1) == 't' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 2) == 'r' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 3) == 'e' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 4) == 'a' &&\r\n\t\t\t\t\t\tfileBuffer.get(index + 5) == 'm') {\r\n\t\t\t\t\tendobjPosition = -1;\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t}\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t\tif (endobjPosition == -1) {\r\n\t\t\t\t//its a stream\r\n\t\t\t\tfileBuffer.position(originalPosition);\r\n\t\t\t\tObject pdfStream = new PDFStream(fileBuffer);\r\n\t\t\t\tobjectCache.put(ref, pdfStream);\r\n\t\t\t\treturn pdfStream;\r\n\t\t\t} else {\r\n\t\t\t\tbyte[] data = new byte[endobjPosition - objPosition];\r\n\t\t\t\tfileBuffer.position(objPosition);\r\n\t\t\t\tfileBuffer.get(data);\r\n\t\t\t\tString encodedString = new String(data).trim();\r\n\t\t\t\tObject token = PDFParseUtils.parseToken(encodedString);\r\n\t\t\t\tobjectCache.put(ref, token);\r\n\t\t\t\treturn token;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn obj;\r\n\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the covariance between two arrays of doubles, which are supposed to have zero means; the arrays might contain missing values (Double.NaN); those values are omitted in the computation the covariance (and the number of observations are adjusted).
public static double cov(double[] x, double[] y, int t) { // x and y must have the same Length... if (t < 0) { return cov(y, x, -t); } double v = 0; int n = x.length - t; int nm = 0; for (int i = 0; i < n; ++i) { double xcur = x[i]; double ycur = y[i + t]; if (isFinite(xcur) && isFinite(ycur)) { v += xcur * ycur; } else { ++nm; } } int m=x.length-nm; if (m == 0) { return 0; } return v / m; //return v / x.length; }
[ "public static double covariance(double[] x, double[] y) {\n double xmean = mean(x);\n double ymean = mean(y);\n\n double result = 0;\n\n for (int i = 0; i < x.length; i++) {\n result += (x[i] - xmean) * (y[i] - ymean);\n }\n\n result /= x.length - 1;\n\n return result;\n }", "public abstract double covariance(double x1, double x2);", "public double covariance(double[] d1, double[] d2, int length)\n\t{\n\t\tdouble cov = 0.0;\n\t\tdouble m1 = mean(d1, length);\n\t\tdouble m2 = mean(d2, length);\n\t\tfor (int i = 0; i < length; ++i)\n\t\t\tcov += (d1[i] - m1) * (d2[i] - m2);\n\t\treturn cov /= (length - 1);\n\t}", "public static double populationCovariance(double[] x, double[] y) {\n double xmean = mean(x);\n double ymean = mean(y);\n\n double result = 0;\n\n for (int i = 0; i < x.length; i++) {\n result += (x[i] - xmean) * (y[i] - ymean);\n }\n\n result /= x.length;\n\n return result;\n }", "private Matrix computeCovariance(List<Pair<Joint, Joint>> matches, Pair<Joint, Joint> centroids) {\r\n \t\r\n double[][] cov = new double[3][3];\r\n\r\n for (int i = 0; i < 3; i++)\r\n for (int j = 0; j < 3; j++)\r\n cov[i][j] = 0;\r\n\r\n double[] cent_a = {\r\n centroids.first.x,\r\n centroids.first.y,\r\n centroids.first.z\r\n };\r\n\r\n double[] cent_b = {\r\n centroids.second.x,\r\n centroids.second.y,\r\n centroids.second.z\r\n };\r\n\r\n for (Pair<Joint, Joint> pair: matches) {\r\n double[] pa = {\r\n pair.first.x,\r\n pair.first.y,\r\n pair.first.z,\r\n };\r\n\r\n double[] pb = {\r\n pair.second.x,\r\n pair.second.y,\r\n pair.second.z,\r\n };\r\n\r\n for (int i = 0; i < 3; i++)\r\n for (int j = 0; j < 3; j++)\r\n cov[i][j] += (pa[i] - cent_a[i]) * (pb[j] - cent_b[j]);\r\n\r\n }\r\n\r\n return new Matrix(cov);\r\n }", "@Test\n public void testCovariance() {\n System.out.println(\"covariance\");\n\n // a test case with mean 0\n double[][] v = new double [][] {\n {0.69, 0.49},\n {-1.31, -1.21},\n {0.39, 0.99},\n {0.09, 0.29},\n {1.29, 1.09},\n {0.49, 0.79},\n {0.19, -0.31},\n {-0.81, -0.81},\n {-0.31, -0.31},\n {-0.71, -1.01}\n };\n\n\n double[][] expResult = new double [][] {\n {0.616555, 0.615444},\n {0.615444, 0.716555}\n };\n\n double[][] result = PCA.covariance(v);\n \n assertTrue( Math.abs(expResult[0][0]-result[0][0])<1e-5 );\n assertTrue( Math.abs(expResult[0][1]-result[0][1])<1e-5 );\n assertTrue( Math.abs(expResult[1][0]-result[1][0])<1e-5 );\n assertTrue( Math.abs(expResult[1][1]-result[1][1])<1e-5 );\n\n EigenvalueDecomposition e = LinearAlgebra.eigen(result);\n\t\tresult = e.getV().transpose().getArray();\n\n expResult = new double [][] {\n {-0.735178, 0.677873},\n {-0.677873, -0.735178}\n };\n\n assertTrue( Math.abs(expResult[0][0]-result[0][0])<1e-5 );\n assertTrue( Math.abs(expResult[0][1]-result[0][1])<1e-5 );\n\n }", "public static double cov(double[] x, int sx, double[] y, int sy, int n) {\r\n double v = 0;\r\n int nm = 0;\r\n for (int i = 0; i < n; ++i) {\r\n double xcur = x[i + sx];\r\n double ycur = y[i + sy];\r\n if (isFinite(xcur) && isFinite(ycur)) {\r\n v += xcur * ycur;\r\n }\r\n else {\r\n ++nm;\r\n }\r\n }\r\n n -= nm;\r\n if (n == 0) {\r\n return 0;\r\n }\r\n return v / n;\r\n }", "protected void covariancesAndCorrelationCoefficients(){\n // Covariances\n this.rawCovariances = new double[this.nItems+1][this.nItems+1];\n // raw data item-item covariance\n for(int i=0; i<this.nItems; i++){\n for(int j=i; j<this.nItems; j++){\n this.rawCovariances[i][j] = Stat.covariance(this.scores0[i], this.scores0[j]);\n if(i!=j)this.rawCovariances[j][i] = this.rawCovariances[i][j];\n }\n }\n\n // raw data item-(item total) covariances\n for(int i=0; i<this.nItems; i++){\n this.rawCovariances[i][this.nItems] = Stat.covariance(this.scores0[i], this.rawPersonTotals);\n this.rawCovariances[this.nItems][i] = this.rawCovariances[i][this.nItems];\n }\n this.rawCovariances[this.nItems][this.nItems] = Stat.covariance(this.rawPersonTotals, this.rawPersonTotals);\n\n // standardized data item-item covariances\n this.standardizedCovariances = new double[this.nItems+1][this.nItems+1];\n for(int i=0; i<this.nItems; i++){\n for(int j=i; j<this.nItems; j++){\n this.standardizedCovariances[i][j] = Stat.covariance(this.scores0[i], this.scores0[j]);\n if(i!=j)this.standardizedCovariances[j][i] = this.standardizedCovariances[i][j];\n }\n }\n\n // standardized data item-(item totals) covariances\n for(int i=0; i<this.nItems; i++){\n this.standardizedCovariances[i][this.nItems] = Stat.covariance(this.scores0[i], this.standardizedPersonTotals);\n this.standardizedCovariances[this.nItems][i] = this.standardizedCovariances[i][this.nItems];\n }\n this.standardizedCovariances[this.nItems][this.nItems] = Stat.covariance(this.standardizedPersonTotals, this.standardizedPersonTotals);\n\n\n // Correlation coefficients\n this.rawCorrelationCoefficients = new double[this.nItems+1][this.nItems+1];\n\n // Raw data inter-item correlation coefficients\n for(int i=0; i<this.nItems; i++){\n this.rawCorrelationCoefficients[i][i] = 1.0;\n for(int j=i+1; j<this.nItems; j++){\n this.rawCorrelationCoefficients[i][j] = this.rawCovariances[i][j]/Math.sqrt(this.rawCovariances[i][i]*this.rawCovariances[j][j]);\n if(Fmath.isNaN(this.rawCorrelationCoefficients[i][j]))this.rawCorrelationCoefficients[i][j] = 0.0;\n this.rawCorrelationCoefficients[j][i] = this.rawCorrelationCoefficients[i][j];\n }\n }\n\n // Raw data item-(item totals) correlation coefficients\n for(int i=0; i<this.nItems; i++){\n this.rawCorrelationCoefficients[i][this.nItems] = this.rawCovariances[i][this.nItems]/Math.sqrt(this.rawCovariances[i][i]*this.rawCovariances[this.nItems][this.nItems]);\n if(Fmath.isNaN(this.rawCorrelationCoefficients[i][this.nItems]))this.rawCorrelationCoefficients[i][this.nItems] = 0.0;\n this.rawCorrelationCoefficients[this.nItems][i] = this.rawCorrelationCoefficients[i][this.nItems];\n }\n this.rawCorrelationCoefficients[this.nItems][this.nItems] = 1.0;\n\n // Average of the raw data inter-item correlation coefficients\n double[] rhoArray = new double[this.nItems*(this.nItems-1)/2];\n int kk=0;\n for(int i=0; i<this.nItems; i++){\n for(int j=i+1; j<this.nItems; j++){\n rhoArray[kk] = this.rawCorrelationCoefficients[i][j];\n kk++;\n }\n }\n Stat st = new Stat(rhoArray);\n if(this.nFactorOption){\n st.setDenominatorToN();\n }\n else{\n st.setDenominatorToNminusOne();\n }\n this.rawMeanRhoWithoutTotals = st.mean_as_double();\n this.rawStandardDeviationRhoWithoutTotals = st.standardDeviation_as_double();\n\n rhoArray = new double[this.nItems*(this.nItems+1)/2];\n kk=0;\n for(int i=0; i<=this.nItems; i++){\n for(int j=i+1; j<=this.nItems; j++){\n rhoArray[kk] = this.rawCorrelationCoefficients[i][j];\n kk++;\n }\n }\n st = new Stat(rhoArray);\n if(this.nFactorOption){\n st.setDenominatorToN();\n }\n else{\n st.setDenominatorToNminusOne();\n }\n this.rawMeanRhoWithTotals = st.mean_as_double();\n this.rawStandardDeviationRhoWithTotals = st.standardDeviation_as_double();\n\n // Standardized data inter-item correlation coefficients\n this.standardizedCorrelationCoefficients = new double[this.nItems+1][this.nItems+1];\n\n for(int i=0; i<this.nItems; i++){\n this.standardizedCorrelationCoefficients[i][i] = 1.0;\n for(int j=i+1; j<this.nItems; j++){\n this.standardizedCorrelationCoefficients[i][j] = this.standardizedCovariances[i][j]/Math.sqrt(this.standardizedCovariances[i][i]*this.standardizedCovariances[j][j]);\n if(Fmath.isNaN(this.standardizedCorrelationCoefficients[i][j]))this.standardizedCorrelationCoefficients[i][j] = 0.0;\n this.standardizedCorrelationCoefficients[j][i] = this.standardizedCorrelationCoefficients[i][j];\n }\n }\n\n // Standardized data item-(item totals) correlation coefficients\n for(int i=0; i<this.nItems; i++){\n this.standardizedCorrelationCoefficients[i][this.nItems] = this.standardizedCovariances[i][this.nItems]/Math.sqrt(this.standardizedCovariances[i][i]*this.standardizedCovariances[this.nItems][this.nItems]);\n if(Fmath.isNaN(this.standardizedCorrelationCoefficients[i][this.nItems]))this.standardizedCorrelationCoefficients[i][this.nItems] = 0.0;\n this.standardizedCorrelationCoefficients[this.nItems][i] = this.standardizedCorrelationCoefficients[i][this.nItems];\n }\n this.standardizedCorrelationCoefficients[this.nItems][this.nItems] = 1.0;\n\n // Average of the standardized data inter-item correlation coefficients\n rhoArray = new double[this.nItems*(this.nItems-1)/2];\n kk=0;\n for(int i=0; i<this.nItems; i++){\n for(int j=i+1; j<this.nItems; j++){\n rhoArray[kk] = this.standardizedCorrelationCoefficients[i][j];\n kk++;\n }\n }\n st = new Stat(rhoArray);\n if(this.nFactorOption){\n st.setDenominatorToN();\n }\n else{\n st.setDenominatorToNminusOne();\n }\n this.standardizedMeanRhoWithoutTotals = st.mean_as_double();\n this.standardizedStandardDeviationRhoWithoutTotals = st.standardDeviation_as_double();\n\n rhoArray = new double[this.nItems*(this.nItems+1)/2];\n kk=0;\n for(int i=0; i<=this.nItems; i++){\n for(int j=i+1; j<=this.nItems; j++){\n rhoArray[kk] = this.standardizedCorrelationCoefficients[i][j];\n kk++;\n }\n }\n st = new Stat(rhoArray);\n if(this.nFactorOption){\n st.setDenominatorToN();\n }\n else{\n st.setDenominatorToNminusOne();\n }\n this.standardizedMeanRhoWithTotals = st.mean_as_double();\n this.standardizedStandardDeviationRhoWithTotals = st.standardDeviation_as_double();\n\n this.covariancesCalculated = true;\n }", "public Matrix getCovariance();", "private static native void covarianceEstimation_0(long src_nativeObj, long dst_nativeObj, int windowRows, int windowCols);", "public double standardizedCovariance(int index1, int index2){\n if(!this.dataPreprocessed)this.preprocessData();\n if(index1<1 || index1>this.nItems)throw new IllegalArgumentException(\"The first item index, \" + index1 + \", must lie between 1 and the number of items plus one (for totals),\" + (this.nItems+1) + \", inclusive\");\n if(index2<1 || index2>this.nItems)throw new IllegalArgumentException(\"The second item index, \" + index2 + \", must lie between 1 and the number of items plus one (for totals),\" + (this.nItems+1) + \", inclusive\");\n if(!this.covariancesCalculated)this.covariancesAndCorrelationCoefficients();\n return this.standardizedCovariances[index1+1][index2+1];\n }", "public double[][] getCovarianceMatrix()\r\n {\r\n double[][] covar = new double[dimensions][dimensions];\r\n double[] mean = getMean();\r\n double[] diffMean = new double[dimensions];\r\n // For all pixels on the image and polygon bounds\r\n for(int h=polygonBounds.y;h<polygonBounds.y+polygonBounds.height;h++)\r\n for(int w=polygonBounds.x;w<polygonBounds.x+polygonBounds.width;w++)\r\n {\r\n // Is this point inside the polygon ?\r\n if (roi.contains(w,h))\r\n {\r\n // Get the array of values for the pixel on the w,h coordinate.\r\n iterator.getPixel(w,h,aPixel);\r\n Arrays.fill(diffMean,0);\r\n for(int d=0;d<dimensions;d++) diffMean[d] = aPixel[d]-mean[d];\r\n for(int d1=0;d1<dimensions;d1++)\r\n for(int d2=0;d2<dimensions;d2++)\r\n covar[d1][d2] += diffMean[d1]*diffMean[d2];\r\n }\r\n }\r\n for(int d1=0;d1<dimensions;d1++)\r\n for(int d2=0;d2<dimensions;d2++)\r\n covar[d1][d2] /= (numberOfPixels-1);\r\n return covar;\r\n }", "public void covarianceMatrix()\n\t{\n\t\t\n\t}", "public Matrix covariance() {\n\n int n = getColDim();\n int m = getRowDim();\n Matrix X = new Matrix(n, n);\n int degrees = (m - 1);\n double c;\n double s1;\n double s2;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n c = 0;\n s1 = 0;\n s2 = 0;\n for (int k = 0; k < m; k++) {\n s1 += this.get(k, i);\n s2 += this.get(k, j);\n }\n s1 = s1 / m;\n s2 = s2 / m;\n for (int k = 0; k < m; k++) {\n c += (this.get(k, i) - s1) * (this.get(k, j) - s2);\n }\n X.set(i, j, c / degrees);\n }\n }\n return X;\n }", "public static strictfp double pearsonsCorrelation(double[] x, double[] y) {\n\n if (x.length != y.length) {\n throw new IllegalArgumentException(\"The double arrays must be the same length!!! \" + x.length + \" != \" +\n y.length);\n }\n\n double N = y.length;\n double sum_sq_x = 0;\n double sum_sq_y = 0;\n double sum_coproduct = 0;\n double mean_x = x[0];\n double mean_y = y[0];\n for (int i = 2; i <= N; i++) {\n\n // for i in 2 to N:\n double sweep = (i - 1.0) / i;\n double delta_x = x[i - 1] - mean_x;\n double delta_y = y[i - 1] - mean_y;\n sum_sq_x += delta_x * delta_x * sweep;\n sum_sq_y += delta_y * delta_y * sweep;\n sum_coproduct += delta_x * delta_y * sweep;\n mean_x += delta_x / i;\n mean_y += delta_y / i;\n }\n double pop_sd_x = Math.sqrt(sum_sq_x / N);\n double pop_sd_y = Math.sqrt(sum_sq_y / N);\n double cov_x_y = sum_coproduct / N;\n\n return cov_x_y / (pop_sd_x * pop_sd_y);\n\n }", "public double[][] getCovarianceMatrix() {\n\tif (covariance == null) {\n\t createCovariance();\n\t}\n\tdouble[][]result = new double[covariance.length][covariance.length];\n\tint n = covariance.length;\n\tfor (int i = 0; i < n; i++) {\n\t System.arraycopy(covariance[i],0, result[i],0, n);\n\t}\n\treturn result;\n }", "public static double correlationCoefficient(double[] x, double[] y) {\n double xStdDev = standardDeviation(x);\n double yStdDev = standardDeviation(y);\n double cov = covariance(x, y);\n\n return cov / (xStdDev * yStdDev);\n }", "public double rawCovariance(int index1, int index2){\n if(!this.dataPreprocessed)this.preprocessData();\n if(index1<1 || index1>this.nItems)throw new IllegalArgumentException(\"The first item index, \" + index1 + \", must lie between 1 and the number of items plus one (for totals),\" + (this.nItems+1) + \", inclusive\");\n if(index2<1 || index2>this.nItems)throw new IllegalArgumentException(\"The second item index, \" + index2 + \", must lie between 1 and the number of items plus one (for totals),\" + (this.nItems+1) + \", inclusive\");\n if(!this.covariancesCalculated)this.covariancesAndCorrelationCoefficients();\n return this.rawCovariances[index1-1][index2-1];\n }", "public void calc_mean_covariance (double[][] range, double[] mean, double[][] covariance) {\n\n\t\t// Calculate means and variances\n\n\t\tfor (int n = 0; n < n_vars; ++n) {\n\n\t\t\tdouble mean_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tmean_acc += (range[n][i] * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tmean_acc = mean_acc / total_probability;\n\t\t\tmean[n] = mean_acc;\n\n\t\t\tdouble var_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tdouble dev = range[n][i] - mean_acc;\n\t\t\t\tvar_acc += (dev * dev * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tcovariance[n][n] = var_acc / total_probability;\n\t\t}\n\n\t\t// Calculate covariances\n\n\t\tfor (int n1 = 0; n1 < n_vars; ++n1) {\n\t\t\tfor (int n2 = 0; n2 < n_vars; ++n2) {\n\t\t\t\tif (n1 < n2) {\n\t\t\t\t\tdouble cov_acc = 0.0;\n\t\t\t\t\tfor (int i1 = 0; i1 < n_values[n1]; ++i1) {\n\t\t\t\t\t\tdouble dev1 = range[n1][i1] - mean[n1];\n\t\t\t\t\t\tfor (int i2 = 0; i2 < n_values[n2]; ++i2) {\n\t\t\t\t\t\t\tdouble dev2 = range[n2][i2] - mean[n2];\n\t\t\t\t\t\t\tcov_acc += (dev1 * dev2 * marginal_2d_probability[n1][n2][i1][i2]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcov_acc = cov_acc / total_probability;\n\t\t\t\t\tcovariance[n1][n2] = cov_acc;\n\t\t\t\t\tcovariance[n2][n1] = cov_acc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Response Restriction'.
ResponseRestriction createResponseRestriction();
[ "RestrictionsType getRestrictions();", "private Restriction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "protected abstract TResponse createResponseInstance();", "RDFSNamedClass getOWLSomeValuesFromRestrictionClass();", "Response createResponse();", "Metadata.Restriction getRestriction(int index);", "private Response() {}", "public RelationsResponse() {\n // argument-less constructor needed\n }", "public interface CheckRestrictionsResult {\n /**\n * Gets the fieldRestrictions property: The restrictions that will be placed on various fields in the resource by\n * policy.\n *\n * @return the fieldRestrictions value.\n */\n List<FieldRestrictions> fieldRestrictions();\n\n /**\n * Gets the contentEvaluationResult property: Evaluation results for the provided partial resource content.\n *\n * @return the contentEvaluationResult value.\n */\n CheckRestrictionsResultContentEvaluationResult contentEvaluationResult();\n\n /**\n * Gets the inner com.azure.resourcemanager.policyinsights.fluent.models.CheckRestrictionsResultInner object.\n *\n * @return the inner object.\n */\n CheckRestrictionsResultInner innerModel();\n}", "ResponsesType createResponsesType();", "CheckRestrictionsResultInner innerModel();", "public abstract Restriction getConstraint(String operator) throws ThinklabException;", "private RedirectCondition createNewCondition() {\n RedirectCondition newRC = new RedirectCondition();\n newRC.setName(this.siteName + \"_\" + redirectName +\"_condition\" + (pr.getConditions().size()+1));\n newRC.setDeviceProperties(new ArrayList<DevicePropertyCondition>());\n UserAgentConditions newUAC = new UserAgentConditions();\n ArrayList<String> emptyContains = new ArrayList<String>();\n emptyContains.add(\"\");\n newUAC.setContains(emptyContains);\n ArrayList<String> emptyDoesNotContain = new ArrayList<String>();\n emptyDoesNotContain.add(\"\");\n newUAC.setDoesNotContain(emptyDoesNotContain);\n newRC.setUserAgentConditions(newUAC);\n \n return newRC;\n }", "public abstract String getReadableRestriction();", "CheckRestrictionsResultContentEvaluationResult contentEvaluationResult();", "ResponseParameter createResponseParameter();", "public String getRestrictionDescription() {\n return restrictionDescription;\n }", "protected ExpirePasswordResponseAccessor() {\n this(new ResponseType());\n }", "public ReservationResponse() {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An instance of this class provides access to all the operations defined in LivePipelineOperationStatusesClient.
public interface LivePipelineOperationStatusesClient { /** * Get the operation status of a live pipeline. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The Azure Video Analyzer account name. * @param livePipelineName Live pipeline unique identifier. * @param operationId The operation ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the operation status of a live pipeline. */ @ServiceMethod(returns = ReturnType.SINGLE) LivePipelineOperationStatusInner get( String resourceGroupName, String accountName, String livePipelineName, String operationId); /** * Get the operation status of a live pipeline. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The Azure Video Analyzer account name. * @param livePipelineName Live pipeline unique identifier. * @param operationId The operation ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the operation status of a live pipeline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response<LivePipelineOperationStatusInner> getWithResponse( String resourceGroupName, String accountName, String livePipelineName, String operationId, Context context); }
[ "@ApiModelProperty(required = true, value = \"Tracks the lifecycle status of the product in the internal state machine of the processing system\")\n @NotNull\n public StatusEnum getStatus() {\n return status;\n }", "public Integer getOperationStatus() {\n return operationStatus;\n }", "OperationsClient getOperations();", "com.google.container.v1beta1.Operation.Status getStatus();", "@ServiceMethod(returns = ReturnType.SINGLE)\n LivePipelineOperationStatusInner get(\n String resourceGroupName, String accountName, String livePipelineName, String operationId);", "public ServiceStatus getStatus();", "public interface ModelStatusConstants {\n \n /**\n * Status constant indicating a core exception occurred.\n * Use <code>getException</code> to retrieve a <code>CoreException</code>.\n */\n public static final int CORE_EXCEPTION = 966;\n \n /**\n * Status constant indicating one or more of the items\n * supplied are not of a valid type for the operation to\n * process. \n * The item(s) can be retrieved using <code>getElements</code> on the status object.\n */\n public static final int INVALID_ITEM_TYPES = 967;\n \n /**\n * Status constant indicating that no items were\n * provided to the operation for processing.\n */\n public static final int NO_ITEMS_TO_PROCESS = 968;\n \n /**\n * Status constant indicating that one or more items\n * supplied do not exist. \n * The item(s) can be retrieved using {@link ModelStatus#getModelWorkspaceItems()}\n * on the status object.\n *\n * @see ModelStatus#isDoesNotExist()\n */\n public static final int ITEM_DOES_NOT_EXIST = 969;\n \n /**\n * Status constant indicating that a <code>null</code> path was\n * supplied to the operation.\n */\n public static final int NULL_PATH = 970;\n \n /**\n * Status constant indicating that a path outside of the\n * project was supplied to the operation. The path can be retrieved using \n * <code>getPath</code> on the status object.\n */\n public static final int PATH_OUTSIDE_PROJECT = 971;\n \n /**\n * Status constant indicating that a relative path \n * was supplied to the operation when an absolute path is\n * required. The path can be retrieved using <code>getPath</code> on the\n * status object.\n */\n public static final int RELATIVE_PATH = 972;\n \n /**\n * Status constant indicating that a path specifying a device\n * was supplied to the operation when a path with no device is\n * required. The path can be retrieved using <code>getPath</code> on the\n * status object.\n */\n public static final int DEVICE_PATH = 973;\n \n /**\n * Status constant indicating that a string\n * was supplied to the operation that was <code>null</code>.\n */\n public static final int NULL_STRING = 974;\n \n /**\n * Status constant indicating that the operation encountered\n * a read-only item.\n * The item(s) can be retrieved using <code>getElements</code> on the status object.\n */\n public static final int READ_ONLY = 976;\n \n /**\n * Status constant indicating that a naming collision would occur\n * if the operation proceeded.\n */\n public static final int NAME_COLLISION = 977;\n \n /**\n * Status constant indicating that a destination provided for a copy/move/rename operation \n * is invalid. \n * The destination item can be retrieved using <code>getElements</code> on the status object.\n */\n public static final int INVALID_DESTINATION = 978;\n \n /**\n * Status constant indicating that a path provided to an operation \n * is invalid. The path can be retrieved using <code>getPath</code> on the\n * status object.\n */\n public static final int INVALID_PATH = 979;\n \n /**\n * Status constant indicating the given source position is out of bounds.\n */\n public static final int INDEX_OUT_OF_BOUNDS = 980;\n \n /**\n * Status constant indicating there is an update conflict\n * for a working copy. The compilation unit on which the\n * working copy is based has changed since the working copy\n * was created.\n */\n public static final int UPDATE_CONFLICT = 981;\n \n /**\n * Status constant indicating that <code>null</code> was specified\n * as a name argument.\n */\n public static final int NULL_NAME = 982;\n \n /**\n * Status constant indicating that a name provided is not syntactically correct.\n * The name can be retrieved from <code>getString</code>.\n */\n public static final int INVALID_NAME = 983;\n \n /**\n * Status constant indicating that the specified contents\n * are not valid.\n */\n public static final int INVALID_CONTENTS = 984;\n \n /**\n * Status constant indicating that an <code>java.io.IOException</code>\n * occurred. \n */\n public static final int IO_EXCEPTION = 985;\n \n /**\n * Status constant indicating that a <code>DOMException</code>\n * occurred. \n */\n public static final int DOM_EXCEPTION = 986;\n \n /**\n * Status constant indicating that a <code>TargetException</code>\n * occurred. \n */\n public static final int TARGET_EXCEPTION = 987;\n \n /**\n * Status constant indicating that the Java builder\n * could not be initialized.\n */\n public static final int BUILDER_INITIALIZATION_ERROR = 990;\n \n /**\n * Status constant indicating that the Java builder's last built state\n * could not be serialized or deserialized.\n */\n public static final int BUILDER_SERIALIZATION_ERROR = 991;\n \n /**\n * Status constant indicating that a sibling specified is not valid.\n */\n public static final int INVALID_SIBLING = 993;\n \n /**\n * Status indicating that a model workspace item could not be created because\n * the underlying resource is invalid.\n */\n public static final int INVALID_RESOURCE = 995;\n \n /**\n * Status indicating that a model workspace item could not be created because\n * the underlying resource is not of an appropriate type.\n */\n public static final int INVALID_RESOURCE_TYPE = 996;\n \n /**\n * Status indicating that a model workspace item could not be created because\n * the project owning underlying resource does not have the Model nature.\n * @see ModelerCore#NATURE_ID\n */\n public static final int INVALID_PROJECT = 997;\n \n /**\n * Status indicating that the corresponding resource has no local contents yet.\n * This might happen when attempting to use a resource before its contents\n * has been made locally available.\n */\n public static final int NO_LOCAL_CONTENTS = 999;\n \n /**\n * Status indicating that a .modelpath file is ill-formed, and thus cannot\n * be read/written successfully.\n * @since 2.1\n */\n public static final int INVALID_MODELPATH_FILE_FORMAT = 1000; \n }", "OperationStatusInner innerModel();", "com.google.rpc.StatusOrBuilder getStatusOrBuilder();", "public abstract OperationStatus getOperationStatus(String requestId);", "public interface OperationStatusFactory{\n\n /**\n * Return true if all is good, throw status specific exception if not.\n *\n * @return {@code true} if there is no error thrown\n * @throws IOException\n */\n boolean processPutStatus(MutationStatus operationStatus) throws IOException;\n\n MutationStatus getCorrectStatus(MutationStatus status,MutationStatus oldStatus);\n\n MutationStatus success();\n\n MutationStatus notRun();\n\n MutationStatus failure(String message);\n\n MutationStatus failure(Throwable t);\n\n ConstraintChecker getNoOpConstraintChecker();\n}", "@ApiModelProperty(value = \"The status of the container. For example, `\\\"running\\\"` or `\\\"exited\\\"`. \")\n public StatusEnum getStatus() {\n return status;\n }", "@ApiModelProperty(value = \"Possible values: 1: Pending 2: Failed 3: Scheduled 4: Pending_Rev 5: Failed_Rev 6: Scheduled_Rev \")\n public Integer getStatus() {\n return status;\n }", "public RequestLifecycleStatus getStatus() {\n return status;\n }", "sawtooth.sdk.protobuf.ClientBatchListResponse.Status getStatus();", "com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder();", "trinsic.services.CoreService.ResponseStatus getStatus();", "@GET\n @Path(\"/status\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getStatus() {\n String status = contextServiceClient.getStatus();\n return Response.ok().entity(status).build();\n }", "@BetaApi(\n \"The surface for long-running operations is not stable yet and may change in the future.\")\n public final OperationsClient getOperationsClient() {\n return operationsClient;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method Name : ClickQviewAddtoCartbutton Purpose : Qview AddtoCart should be clicked Parameter : None Date Created: Created By : Modified By : Modified Date:
public void ClickQviewAddtoCartbutton(){ class Local {}; Reporter.log("TestStepComponent"+Local.class.getEnclosingMethod().getName()); Reporter.log("TestStepInput:-"+"NA"); Reporter.log("TestStepOutput:-"+"NA"); Reporter.log("TestStepExpectedResult:- Qview Add to cart button should be clicked"); try{ click(locator_split("btnQviewAddtoCart")); Reporter.log("PASS_MESSAGE:- Qview Add to cart button is clicked"); System.out.println("Clicked the Add to Cart in QView"); } catch(Exception e){ Reporter.log("FAIL_MESSAGE:- Qview Add to cart button is not clicked or Not Available"); throw new NoSuchElementException("The element with" + elementProperties.getProperty("btnQviewAddtoCart") + " not found"); } }
[ "public void clickOnAddToCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickAddToCartButton.click();\n\n \t}", "public void clickProductDetailsAddToCartBtn(){\n clickElement(productDetailsAddToCart);\n }", "public void clickProductDetailsViewInCartBtn(){\n clickElement(productDetailsViewInCart);\n }", "public void clickAddToCartButton() {\n WebElementActions.clickElement(addToCartButton);\n }", "public void clickOnViewCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnViewCartButton.click();\n\n \t}", "public void clickViewCartButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Viewcart button should be clicked\");\r\n\t\ttry{\r\n\t\t\t//waitForElement(btnViewCart);\r\n\t\t\twaitForElement(locator_split(\"btnViewCartBtn\"));\r\n\t\t\t//click(btnViewCart);\r\n\t\t\tclick(locator_split(\"btnViewCartBtn\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Viewcart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View button is not clicked \"+elementProperties.getProperty(\"btnViewCartBtn\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnViewCartBtn\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickViewCart(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- ViewCart button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\twaitForElement(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\tclick(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ViewCart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- ViewCart button is not clicked \"+elementProperties.getProperty(\"BybtnSkuViewCart\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSkuViewCart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t} \r\n\t}", "public void ClickAddtoCartiteminCustomersalsoViewed(){\r\n\t\tString[] ExpText = getValue(\"CustomeralsoViewedtitle\").split(\",\", 2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Add to Cart button should be clicked in CustomeralsoViewed table\");\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"imgitemCustomeralsoOrderedViewed\"));\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].click();\", ele.get(Integer.valueOf(ExpText[0])-1));\r\n\t\t\tSystem.out.println(\"Add to Cart button is clicked in CustomeralsoOrdered table\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Add to Cart button is clicked in CustomeralsoOrdered table\");\r\n\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Add to Cart button is not clicked in CustomeralsoViewed table\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"imgitemCustomeralsoOrderedViewed\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "private void clickOnAddToCartButton(ProductContainer container) {\n container.getShoppingCartButton().click();\n }", "public ProceedToCheckoutPage addToCartBtnClick()\n\t\t\t{\n\t\t\t\taddToCartBtn.click();\n\t\t\t\treturn new ProceedToCheckoutPage();\n\t\t\t}", "public void ClickAddtoCartiteminCustomersalsoOrdered(){\r\n\t\tString[] ExpText = getValue(\"CustomeralsoOrderedtitle\").split(\",\", 2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Add to Cart button should be clicked in CustomeralsoOrdered table\");\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"imgitemCustomeralsoOrderedViewed\"));\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].click();\", ele.get(Integer.valueOf(ExpText[0])-1));\r\n\t\t\tSystem.out.println(\"Add to Cart button is clicked in CustomeralsoOrdered table\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Add to Cart button is clicked in CustomeralsoOrdered table\");\r\n\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Add to Cart button is not clicked in CustomeralsoOrdered table\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"imgitemCustomeralsoOrderedViewed\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "public void clickToViewCart(){\n clickElementByXpath(viewCartButtonLocator, productPageLogger, \"User clicks on view cart button\");\n isElementDisplayed(proceedToBuyButtonLocator);\n }", "public void clickOnBuyProductsButton() {\r\n\t\tbuyProductsButton.click();\r\n\t}", "public void clickAddToCart() {\n\t\taddToCart.click();\n\t\tlog.info(\"Se hace click en el botón Add to Cart\");\n\t\ttakeScreenshot(driver);\n\t}", "public void adding() {\n\t\t By cr=By.xpath(\"//a[@href=\\\"/cart?add&itemId=EST-2\\\"]\"); \r\n\t\tWebElement we_cr=wt.ElementToBeClickable(cr, 20);\r\n\t\twe_cr.click();\r\n\t}", "public void clickCartPopupViewCart(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- To Click the View cart button in the Shopping Cart popup \");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnCartViewCart\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Clicked on the View Cart Button in the shopping cart popup\");\r\n\t\t\tSystem.out.println(\"Clicked on the View Cart Button in the shopping cart popup\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View Cart Button is not clicked in the shopping cart popup\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnCartViewCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void clickAddButtonInStockTab(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-border-layout-ct') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Add..')]\").click();\r\n\t\t\r\n\t\t//McsElement.getElementByAttributeValueAndParentElement(driver, \"div\", \"@class\", \"x-panel-bbar\", \"button\", \"text()\", \"Add...\", true, true).click();\r\n\t\t\r\n\t\tReporter.log(\"Clicked on Add button in Stock Tab\", true);\r\n\t}", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "@And(\"^user click addtobasket_button$\")\n\tpublic void userclick_addtobasketbutton() throws Throwable {\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes iterator position to a record with a key lower than the given key. If the record is present and no errors occurred, returns true. If the record does not exist, false is returned and the iterator position is undefined. It internally aborts all uncommitted changes made to an element previously pointed by the iterator.
public boolean seekLower(K key) throws DatabaseException { ByteBuffer direct_key = getDirectKeyBuffer(keyConverter.toByteBuffer(key)); return iterator_seek_lower(it_ptr, direct_key); }
[ "public boolean seekLowerEq(K key) throws DatabaseException {\n\t\t\tByteBuffer direct_key = getDirectKeyBuffer(keyConverter.toByteBuffer(key));\n\t\t\treturn iterator_seek_lower_eq(it_ptr, direct_key);\n\t\t}", "public boolean seek(K key) throws DatabaseException {\n\t\t\tByteBuffer direct_key = getDirectKeyBuffer(keyConverter.toByteBuffer(key));\n\t\t\treturn iterator_seek(it_ptr, direct_key);\n\t\t}", "private synchronized int seekInternal(WritableComparable key,\n\t final boolean before, ImmutableState state)\n\t throws IOException {\n\t \n\t if (seekIndex != -1 // seeked before\n\t && seekIndex+1 < state.getCount() \n\t && comparator.compare(key, state.getKeys()[seekIndex+1])<0 // before next indexed\n\t && comparator.compare(key, nextKey)\n\t >= 0) { // but after last seeked\n\t // do nothing\n\t } else {\n\t seekIndex = binarySearch(key, state);\n\t if (seekIndex < 0) // decode insertion point\n\t seekIndex = -seekIndex-2;\n\t\n\t if (seekIndex == -1) // belongs before first entry\n\t seekPosition = firstPosition; // use beginning of file\n\t else\n\t seekPosition = state.getPositions()[seekIndex]; // else use index\n\t }\n\t data.seek(seekPosition);\n\t \n\t if (nextKey == null)\n\t nextKey = comparator.newKey();\n\t \n\t // If we're looking for the key before, we need to keep track\n\t // of the position we got the current key as well as the position\n\t // of the key before it.\n\t long prevPosition = -1;\n\t long curPosition = seekPosition;\n\t\n\t while (data.next(nextKey)) {\n\t int c = comparator.compare(key, nextKey);\n\t if (c <= 0) { // at or beyond desired\n\t if (before && c != 0) {\n\t if (prevPosition == -1) {\n\t // We're on the first record of this index block\n\t // and we've already passed the search key. Therefore\n\t // we must be at the beginning of the file, so seek\n\t // to the beginning of this block and return c\n\t data.seek(curPosition);\n\t } else {\n\t // We have a previous record to back up to\n\t data.seek(prevPosition);\n\t data.next(nextKey);\n\t // now that we've rewound, the search key must be greater than this key\n\t return 1;\n\t }\n\t }\n\t return c;\n\t }\n\t if (before) {\n\t prevPosition = curPosition;\n\t curPosition = data.getPosition();\n\t }\n\t }\n\t\n\t return 1;\n\t}", "static boolean skipUntil(SortedKeyValueIterator<Key, Value> skvi, Key keyToSkipTo, PartialKey pk,\n Range seekRange, Collection<ByteSequence> columnFamilies, boolean inclusive,\n Watch<Watch.PerfSpan> watch, Watch.PerfSpan watchtype) throws IOException {\n assert keyToSkipTo != null;\n /** Call seek() if using this many next() calls does not get us to rowToSkipTo */\n final int MAX_NEXT_ATTEMPT = 10;\n int cnt;\n for (cnt = 0;\n cnt < MAX_NEXT_ATTEMPT && skvi.hasTop() && keyToSkipTo.compareTo(skvi.getTopKey(), pk) > 0;\n cnt++) {\n// watch.start(watchtype);\n// try {\n skvi.next();\n// } finally {\n// watch.stop(watchtype);\n// }\n }\n if (skvi.hasTop() && keyToSkipTo.compareTo(skvi.getTopKey(), pk) > 0) {\n // set target range to beginning of pk\n Key seekKey = GraphuloUtil.keyCopy(keyToSkipTo, pk);\n Range skipToRange = new Range(seekKey, true, null, false)\n .clip(seekRange, true);\n if (skipToRange == null) // row we want to get to does not exist, and it is out of our range\n return false;\n skvi.seek(skipToRange, columnFamilies, inclusive);\n }\n\n// watch.increment(Watch.PerfSpan.RowSkipNum, cnt);\n return skvi.hasTop();\n }", "public boolean seekHigherEq(K key) throws DatabaseException {\n\t\t\tByteBuffer direct_key = getDirectKeyBuffer(keyConverter.toByteBuffer(key));\n\t\t\treturn iterator_seek_higher_eq(it_ptr, direct_key);\n\t\t}", "public void lockNextKeyForInsert(DatabaseEntry key)\n throws DatabaseException {\n\n DatabaseEntry tempKey = new DatabaseEntry\n (key.getData(), key.getOffset(), key.getSize());\n tempKey.setPartial(0, 0, true);\n boolean lockedNextKey = false;\n boolean latched = true;\n try {\n /* Search. */\n int searchResult = searchAndPosition\n (tempKey, SearchMode.SET_RANGE, LockType.RANGE_INSERT);\n if ((searchResult & FOUND) != 0 &&\n (searchResult & FOUND_LAST) == 0) {\n\n /*\n * If searchAndPosition found a record (other than the last\n * one), in all cases we should advance to the next record:\n *\n * 1- found a deleted record,\n * 2- found an exact match, or\n * 3- found the record prior to the given key/data.\n */\n DatabaseEntry tempData = new DatabaseEntry();\n tempData.setPartial(0, 0, true);\n OperationStatus status = getNext\n (tempKey, tempData, LockType.RANGE_INSERT, true, true,\n null /*rangeConstraint*/);\n if (status == OperationStatus.SUCCESS) {\n lockedNextKey = true;\n }\n latched = false;\n }\n } finally {\n if (latched) {\n releaseBIN();\n }\n }\n\n /* Lock the EOF node if no next key was found. */\n if (!lockedNextKey) {\n lockEof(LockType.RANGE_INSERT);\n }\n }", "public boolean seekHigher(K key) throws DatabaseException {\n\t\t\tByteBuffer direct_key = getDirectKeyBuffer(keyConverter.toByteBuffer(key));\n\t\t\treturn iterator_seek_higher(it_ptr, direct_key);\n\t\t}", "@Test\n void seek(){\n trieIt.open();\n trieIt.open();\n trieIt.next();\n trieIt.open();\n\n // seekKey is smaller than expected least key\n trieIt.seek(7);\n assertEquals(8, trieIt.key());\n\n trieIt.resetIterator();\n trieIt.open();\n trieIt.open();\n trieIt.next();\n trieIt.open();\n\n\n // seekKey equal to expected least key\n trieIt.seek(6);\n assertEquals(6, trieIt.key());\n\n trieIt.resetIterator();\n trieIt.open();\n trieIt.open();\n trieIt.next();\n trieIt.open();\n\n\n // seekKey smaller than currentKey --> Iterator should not have moved\n trieIt.next(); // now at 8\n trieIt.seek(6);\n assertEquals(8, trieIt.key());\n\n trieIt.resetIterator();\n trieIt.open();\n trieIt.open();\n trieIt.next();\n trieIt.open();\n\n // seekKey not found --> Iterator should be at End\n trieIt.seek(11);\n assertTrue(trieIt.atEnd());\n }", "public void setRowKey(Object key)\n {\n if (key == null)\n {\n setRowIndex(-1);\n return;\n }\n\n if (getRowKey() != null && getRowKey().equals(key))\n return;\n \n for (int i = 0; i < getRowCount(); i++)\n {\n setRowIndex(i);\n Object prop = getRowKey();\n if (key.equals(prop))\n {\n return;\n }\n }\n\n // if we didn't find an element with a matching key,\n // then don't make any rows current\n setRowIndex(-1);\n }", "@Override\n protected boolean internalSeek(K targetKey)\n {\n if (initDataBlock(indexIterator.seek(targetKey)) && current.seek(targetKey)) {\n return true;\n }\n return skipEmptyDataBlocksForward();\n }", "public boolean containsKey(K paKey) throws ETable;", "private boolean setNextObject() {\n while (iterator.hasNext()) {\n final int row = iterator.next();\n if (!rowIsDeleted(row)) {\n rowNumber = row;\n nextRowSet = true;\n return true;\n }\n }\n return false;\n }", "public boolean seekToFirst() throws DatabaseException {\n\t\t\treturn iterator_seek_to_first(it_ptr);\n\t\t}", "public LongKeyValuePair seek(long key);", "@Override\n public boolean nextKeyValue()\n throws IOException, InterruptedException {\n\n if (chunk == null) {\n if (LOG.isDebugEnabled())\n LOG.debug(taskId + \": RecordReader is null. No records to be read.\");\n return false;\n }\n\n if (chunk.getReader().nextKeyValue()) {\n ++numRecordsProcessedByThisMap;\n return true;\n }\n\n if (LOG.isDebugEnabled())\n LOG.debug(taskId + \": Current chunk exhausted. \" +\n \" Attempting to pick up new one.\");\n\n chunk.release();\n timeOfLastChunkDirScan = System.currentTimeMillis();\n isChunkDirAlreadyScanned = false;\n \n chunk = chunkContext.acquire(taskAttemptContext);\n\n if (chunk == null) return false;\n\n if (chunk.getReader().nextKeyValue()) {\n ++numRecordsProcessedByThisMap;\n return true;\n }\n else {\n return false;\n }\n }", "@Test\n public void testDeleteLastKeyBug() throws Exception {\n\n final Database db = openDb(\"foo\");\n\n final EntryBinding<Integer> binding = new IntegerBinding();\n\n final StoredSortedMap<Integer, Integer> map = new StoredSortedMap<>(\n db, binding, binding, true);\n\n final StoredValueSet<Integer> set =\n (StoredValueSet<Integer>) map.values();\n\n /*\n * Use a block size of 5 and fill one block.\n */\n set.setIteratorBlockSize(5);\n\n for (int i = 1; i <= 5; i += 1) {\n assertNull(map.put(0, i));\n }\n\n /*\n * Move iterator to last (5th) record.\n */\n final Iterator<Integer> iter = set.iterator();\n for (Integer i = 1; i <= 5; i += 1) {\n assertEquals(i, iter.next());\n }\n\n /*\n * Delete the last (5th) record using a different iterator.\n */\n final Iterator<Integer> deleteIter = set.iterator();\n for (Integer i = 1; i <= 5; i += 1) {\n assertEquals(i, deleteIter.next());\n }\n deleteIter.remove();\n\n /*\n * Prior to the bug fix, hasNext below returned true because the\n * DataCursor.repositionRange method positioned to an earlier record.\n */\n assertFalse(iter.hasNext());\n\n db.close();\n }", "boolean containsKey(int key) throws ContentStoreException;", "public boolean increment (String key, int value) {\n boolean result = false;\n for (int i = 0; i < value; i++)\n\t result = result || this.increment(key);\n return result;\n }", "private boolean deleteObsoletePrimaryKeysInternal(final Cursor cursor, final Locker locker, final DatabaseEntry key,\n final DatabaseEntry data, final int batchSize) {\n /* TODO: use dirty-read scan with mode to return deleted records. */\n final LockMode scanMode = LockMode.RMW;\n OperationResult searchResult;\n if (key.getData() == null) {\n /* Start at first key. */\n searchResult = cursor.position(key, data, scanMode, null, true);\n } else {\n /* Resume at key/data pair last processed. */\n searchResult = cursor.search(key, data, scanMode, null, SearchMode.BOTH_RANGE, false);\n if (searchResult == null) {\n searchResult = cursor.search(key, data, scanMode, null, SearchMode.SET_RANGE, false);\n }\n }\n int nProcessed = 0;\n while (searchResult != null) {\n if (nProcessed >= batchSize) {\n return true;\n }\n nProcessed += 1;\n if (secAssoc.getPrimary(data) == null) {\n cursor.deleteNoNotify(null, getDbImpl().getRepContext());\n }\n searchResult = cursor.retrieveNext(key, data, scanMode, null, GetMode.NEXT);\n }\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the value at the index of this planet's team array. Throws: ArrayOutOfBounds If the index of the array is out of bounds. It must be within [0, COMMUNICATION_ARRAY_LENGTH).
public void writeTeamArray(long index, int value) { bcJNI.GameController_writeTeamArray(swigCPtr, this, index, value); }
[ "public void sendTeam(Pokemon[] team)\t//TODO: make teams work\n {\n \tsendInt(team.length);\n \t\n \tfor(int i=0; i<team.length; i++)\n \t\tout.println(team[i].writeToString());\n }", "public Veci32 getTeamArray(Planet planet) {\n long cPtr = bcJNI.GameController_getTeamArray(swigCPtr, this, planet.swigValue());\n return (cPtr == 0) ? null : new Veci32(cPtr, true);\n }", "public void setTeam(Team team, int teamSlot){ //teamSlot is the position in the array -1\n this.teams[teamSlot-1]=team;\n }", "public void setTeam(int i){\n\t\tteam = i;\n\t}", "public void write(int outputport_index, Object o)\r\n\t{\r\n\t\tif(outputport_index >= 0 && outputport_index < outs.length) {\r\n\t\t\touts[outputport_index].write(o);\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tDataview.debugger.logFalseCondition(\"outputport_index must be greater than 0 and smaller than \"+outs.length+\", the number of output ports.\", outputport_index >= 0 && outputport_index < outs.length);\r\n\t\t\t\r\n\t\t}\t\t\t\t\t\r\n\t}", "public synchronized static void setTeam(JSONArray userTeam){\n team_instance.teamList = userTeam;\n }", "protocol.BoomGameData.BattleUserInfoDatOrBuilder getTeam2OrBuilder(\n int index);", "protocol.BoomGameData.BattleUserInfoDat getTeam1(int index);", "public static void writeSetToArray(PrintWriter writer, String sourceName, String arrayName, String index) {\n writer.format(\"replace %s, %s, %s, %s\", arrayName, arrayName, index, sourceName).println();\n }", "public void write(long offset, byte[] buf) throws CorfuException ;", "public int getTeam(){\n\t\treturn team;\n\t}", "void set (AT array, int index, T value);", "public void sendSetTeam(final String team);", "protocol.BoomGameData.BattleUserInfoDatOrBuilder getTeam1OrBuilder(\n int index);", "ValueWriteProto.ValueWrite getWrites(int index);", "public void writeArray(Object o) throws IOException;", "private void textPlanet(int planetX, int planetY, int index) {\n Planet planetObject = colonyCalculator.getPlanets()[index];\n\n String planetString = planetObject.getName() + \", \" + planetObject\n .getPopulationSize() + \"/\" + planetObject.getCapacity();\n addTextShape(planetString, planetX, planetY);\n\n int agri = planetObject.getSkills().getAgriculture();\n int medi = planetObject.getSkills().getMedicine();\n int tech = planetObject.getSkills().getTechnology();\n\n String reqString = \"A:\" + agri + \", M:\" + medi + \", T:\" + tech;\n addTextShape(reqString, planetX, planetY + 20);\n }", "public void set(int index, Object value) {\n\t\t// You fill in the implementation . . .\n\t\tif(index>=innerArray.length){\n\t\t\texpandArray(index);\n\t\t\tinnerArray[index] = value;\n\t\t}\n\t\telse{\n\t\t\tinnerArray[index] = value;\n\t\t}\n\t}", "public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of JDBCURL
public final void setJDBCURL(java.lang.String jdbcurl) { setJDBCURL(getContext(), jdbcurl); }
[ "public void setJdbcUrl(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_URL, val);\n }", "public void setJdbcUrl(String jdbcUrl)\r\n {\r\n this.jdbcUrl = jdbcUrl;\r\n }", "public void setJdbcURL(String jdbcURL) throws MBeanException;", "public String getJdbcURL();", "public void setURL(String dbms, String url) {\n properties.setProperty(\"url\" + dbms, url);\n }", "public String getJdbcUrl()\r\n {\r\n return jdbcUrl;\r\n }", "public String getJdbcUrl()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_URL);\n }", "void setURL(int parameterIndex, java.net.URL x) throws SQLException;", "public String getUrl() {\n return jdbcUrl;\n }", "public void setConnectionUrlString( String value )\n {\n connectionUrlString = value;\n }", "public void setJdbcConnectionString(String jdbcConnectionString)\r\n {\r\n this.jdbcConnectionString = jdbcConnectionString;\r\n }", "public static void setConnection(String url, String user, String password) {\n Database.url = url;\n Database.user = user;\n Database.password = password;\n }", "public AbstractSQLSyncTarget(String jdbcUrl) {\n\t\tm_jdbcUrl = jdbcUrl;\n\t}", "public void setDatabaseUrl(String databaseUrl) {\r\n this.databaseUrl = databaseUrl;\r\n }", "public void setConnectionURL(String connectionURL) {\n this.connectionURL = connectionURL;\n }", "public void setURL(int parameterIndex, URL x) throws SQLException {\n currentPreparedStatement.setURL(parameterIndex, x);\n\n }", "public void setJDBCXA(String value)\n {\n jdbcXA = value;\n }", "public void setUrl(String url)\n\t{\n\t\tif (null == url)\t\t\t\t\t\tthrow new IllegalArgumentException(\"url can't be null.\");\n\t\tif (0 == url.length())\t\t\t\t\tthrow new IllegalArgumentException(\"url can't be empty.\");\n\t\tif (mConnectionPool.isInitialized())\tthrow new IllegalArgumentException(\"url can't be changed after the connection pool has been set up.\");\n\n\t\tmUrl = url;\n\t}", "public void setDriver(String driver) throws BuildException {\n jdbcDriver = driver;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets weights to the vertices.
public void setWeights() { for (Square[] square : squares) { for (Square square1 : square) { try { int i = Integer.parseInt(square1.getText()); square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), i)); } catch (NumberFormatException e) { square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), 1)); } } } }
[ "public void setWeight(double weight)\n {\n for (int jointIdx = 0; jointIdx < joints.size(); jointIdx++)\n weights.set(jointIdx, weight);\n }", "public void setWeights(Weight[] weights) {\n this.weights = weights;\n }", "public void setEdgeWeight(Vertex Vtx1, Vertex Vtx2, double EdgeWeight);", "public void setWeightV(double[] w){\n\tfor(int k=0;k<weightV.length;k++){\n\t weightV[k] = w[k];\n\t}\n }", "void setVertices(int vertices);", "public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}", "public void setWeights(float[] w) {\n _w1D = w;\n _weights = true;\n }", "public void setWeights(double[] weights) {\r\n int i = 0;\r\n for (Layer layer : layers) {\r\n for (Neuron neuron : layer.getNeurons()) {\r\n for (Connection conn : neuron.getInputConnections()) {\r\n conn.getWeight().setValue(weights[i]);\r\n i++;\r\n }\r\n }\r\n }\r\n }", "public void setWeights(float[][] w) {\n _w2D = w;\n _weights = true;\n }", "public void setVertexCurrTotalWeight(int vertex, int weight){\r\n adjLists[vertex].setCurrTotalWeight(weight);\r\n }", "protected void updateWeights() {\n\t\tvisualization.updateWeights();\n\t}", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "protected abstract void setWeight(int v, double w);", "public void setVertices(ArrayList<Vertex<T>> vertices) {\n\t\tthis.vertices = vertices;\n\t}", "public void setWeight(float weight)\n {\n this.weight = weight;\n }", "private void setVertices(Vertex[] vs){\n\t\t\n\t\tvertices = new ArrayList<>();\n\t\toriginalVertices = new ArrayList<>();\n\t\tdouble scalar = ViewSettings.getScalar4();\n\n\t\tfor(Vertex v : vs){\n\t\t\tvertices.add(new Vertex(v.getX() * scalar, v.getY() * scalar, v.getZ() * scalar, v.getW() * scalar));\n\t\t\toriginalVertices.add(new Vertex(v.getX(), v.getY(), v.getZ(), v.getW()));\n\t\t}\n\t}", "public void setWeight(double weight);", "public void setWeights(double[] value){\n weights = value;\n }", "public void adjustWeights()\n {\n for(int i = 0; i < numberOfNodes; i++)\n {\n Nodes.get(i).adjustTheWeights();\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A one sentence description of this Vex. string short_description = 2;
java.lang.String getShortDescription();
[ "java.lang.String getShortDesc();", "final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }", "protected String getShort() {\n return shortDesc;\n }", "public String getShortExplanation()\r\n\t{\r\n\t\treturn this._shortExplanation;\r\n\t}", "public void setShortExplanation(String _shortExplantion)\r\n\t{\r\n\t\tthis._shortExplanation=_shortExplanation;\r\n\t}", "public GameBuilder shortDescription(String shortDescription) {\n\t\t\tthis.shortDescription = shortDescription;\n\t\t\treturn this;\n\t\t}", "public static String getRandomShortDescription() {\n int length = RandomNumberGenerator.getRandomInt(10, 30);\n return getRandomText(length, 1);\n }", "public String getShortContent();", "public String getLongDescription() {\n\n return (\"You are in the \"\n + description\n + \" , \"\n + \" you see: item 1: \"\n + item.getName()\n + \" , \"\n + \"item 2: \"\n + item2.getName()\n + \" , Enemy: \"\n + enemy.getName());\n }", "void showFullDesc(String desc, String title);", "final public void setShortDesc(String shortDesc)\n {\n setProperty(SHORT_DESC_KEY, (shortDesc));\n }", "public void setShortDes(String shortDes) {\n this.shortDes = shortDes;\n }", "java.lang.String getDescription();", "String getLongDescription();", "public String getShortDes() {\n return shortDes;\n }", "public String getDescription () {\n\t\treturn \" simple letter (\" + content.getValue() + \")\";\n\t}", "public void setShortContent(String shortContent) {\n this.shortContent = shortContent;\n }", "String getShortTextValue();", "public String getShortDescription() {\n StringBuilder s = new StringBuilder();\n s.append(ChatColor.WHITE).append(getChanceDescription());\n s.append(ChatColor.YELLOW).append(getCountDescription());\n s.append(ChatColor.GOLD).append(_dropType).append(' ');\n\n if (_dropType == DropType.ITEM) {\n Item item = BeastMaster.ITEMS.getItem(_id);\n s.append((item == null) ? ChatColor.RED : ChatColor.YELLOW);\n s.append(_id);\n } else if (_dropType == DropType.MOB) {\n MobType mobType = BeastMaster.MOBS.getMobType(_id);\n s.append((mobType == null) ? ChatColor.RED : ChatColor.YELLOW);\n s.append(_id);\n }\n\n if (_restricted) {\n s.append(ChatColor.LIGHT_PURPLE).append(\" restricted\");\n }\n\n if (_alwaysFits) {\n s.append(ChatColor.YELLOW).append(\" always-fits\");\n }\n\n if (_logged) {\n s.append(ChatColor.GOLD).append(\" logged\");\n }\n return s.toString();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Say whether this projectile is defunct (destroyed).
public boolean isDefunct() { return isDefunct; }
[ "public boolean isDestroyed(){\n return destroyed;\n }", "@Override\n public boolean destroyIgloo(){\n Game.log.format(\"! SnowyHole>destroyIgloo : SnowyHole (%d, %d) cannot have Igloo! Cannot destroy 'iglooOn=false'\\n\", x, y);\n return false;\n }", "public boolean isDestroyed(){\n \treturn wallDestroyed;\n }", "public boolean isUndead() {\n return false;\n }", "public abstract boolean isDestroyed();", "public boolean isDestroyed() {\n\t\treturn destroyed;\n\t}", "public boolean isDestroyed(){\n\t\treturn entState == EntState.Destroyed;\n\t}", "public boolean toDisappear() {\n\t\treturn (timer > TIME_LOOP);\n\t}", "public boolean shouldRemove(){\n\t\t//true when Fireball has either gone off the screen or collided with a \n\t\t// Water or Pant object, and false otherwise.\n\t\tif (isAlive == false){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isDestroyed() {\n\t\treturn isDestroyed;\n\t}", "@Override\n public boolean isDestroyed() {\n return destroyed;\n }", "boolean isUndone() throws Exception;", "boolean hasIsErasing();", "public final boolean isUntitled()\n\t{\n\t\treturn getFlag(UNTITLED);\n\t}", "public boolean isRemovedOnDeath() {\n return removeOnDeath;\n }", "public boolean isQuitting() {\n return false;\n }", "public boolean isUnnamed();", "public boolean isDead();", "boolean getIsErasing();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the user input to the id field
public String getIdInput() { return idInput.getText(); }
[ "public String searchId(String type) {\n System.out.println(\"Please enter \" + type + \" ID: \");\n String id = Validate.sc.nextLine();\n return id;\n }", "public void idInput()\n {\n idNumber = JOptionPane.showInputDialog(\"Your ID number must have 4 Integer Number.\\nEnter your ID number: \"); \n idNum = Integer.parseInt(idNumber); \n\n }", "public String getDeptId() {\n System.out.print(\"Please enter the department ID: \");\n\n //returns user input\n return in.nextLine();\n }", "public String getDeptId() {\n System.out.println(\"Please enter the department ID: \");\n String id = in.nextLine();\n return id;\n }", "java.lang.String getID();", "public static int getId ()\n {\n //Scanner input = new Scanner(System.in);\n System.out.print(\"Enter Empolyee's ID: \");\n int id = verifyInt();\n\n while (id < 0) {\n System.out.println(\"Enter a positive value\");\n id = verifyInt();\n\n }\n return id;\n }", "public Script.FieldID getFieldID_Input() {\n return createFieldID(1, null);\n }", "public static String showFolioID() {\n folioID = new TextInputDialog();\n folioID.setHeaderText(\"Enter the Folio ID:\");\n\n Optional<String> idFolio = folioID.showAndWait();\n\n if (idFolio.isPresent()) {\n return folioID.getEditor().getText();\n }\n return \"\";\n }", "public void findIt(){\n\t\tSystem.out.print(\"Please enter an id: \");\n\t\tint loc = id.findIt(keyboard.next());\n\t\t\n\t\tif(loc == -1)\n\t\t\tSystem.out.println(\"ID not Found\");\n\t\telse\n\t\t\tSystem.out.println(myDB.getByIndex(loc).toString());\n\t\tSystem.out.println(\"\");\n\t}", "public Integer getInputid() {\n return inputid;\n }", "String getIdString();", "public String getPlayerIdTextField() {\n\t\t return this.playerIdField.getText();\n\t }", "@Override\n public String getId() {\n if (hasAttributes() && getAttributes().containsKey(\"id\")) {\n return getAttribute(\"id\");\n\n } else {\n String fieldName = getName();\n\n if (fieldName == null) {\n // If fieldName is null, exit early\n return null;\n }\n\n Form parentForm = getForm();\n String formId = (parentForm != null) ? parentForm.getId() + \"_\" : \"\";\n String id = formId + fieldName;\n\n if (id.indexOf('/') != -1) {\n id = id.replace('/', '_');\n }\n if (id.indexOf(' ') != -1) {\n id = id.replace(' ', '_');\n }\n if (id.indexOf('<') != -1) {\n id = id.replace('<', '_');\n }\n if (id.indexOf('>') != -1) {\n id = id.replace('>', '_');\n }\n if (id.indexOf('.') != -1) {\n id = id.replace('.', '_');\n }\n\n return id;\n }\n }", "private static int readIdFromConsole() {\n\t\tboolean validInput = false; \n\t\tint id = -1; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t\tOut.print(\" Bitte Id eingeben: \");\n\t\t\t\tid = Integer.parseInt(In.readLine());\n\t\t\t\tif (id > 0) validInput = true; \n\t\t\t\telse Out.print(\" Falsche Eingabe!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tOut.print(\" Falsche Eingabe!\");\n\t\t\t}\n\t\t}\n\t\treturn id; \n\t}", "protected String getSequenceId() {\n if (isLocationQuery()) //type.equalsIgnoreCase(\"chromosome\"))\n return (String) chromosomeComboBox.getSelectedItem();\n else\n return this.seqIdTextField.getText(); \n }", "java.lang.String getFormId();", "java.lang.String getFromId();", "private void readitemId()\n {\n itemId = itemIdTxtField.getText();\n }", "String getValueId();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the metric execution by alignment
@Override public List<MetricExecutionTrigger> getMetricExecutionConfig( Alignment alignment, UserDetails userDetails) throws MetricServiceException { try{ if(null == alignment || alignment.getId() == null){ LOGGER.error("Missing Alignment Id"); throw new MetricServiceException(new Object[]{"Missing Alignment Id"}); } else{ return metricResultDAOService.getMetricExecutionConfig(alignment,userDetails); } } catch(OpservDataAccessException e){ LOGGER.error("In getMetricExecutionConfig - Error while fetching list of metric execution data for given alignment( Alignment: "+ alignment.getId() +")."); throw new MetricServiceException(MetricServiceExceptionCode.MTR_SER_EX_CD_0018, "exception fetching list of metric triggers for given alignment", null, e); } }
[ "QueryAlignment getAlignment();", "POGOProtos.Rpc.PokemonDisplayProto.Alignment getAlignment();", "int getMetric();", "public java.lang.Object getAlignment() {\n return alignment;\n }", "public Alignment getAlignment() {\n return alignment;\n }", "String getAlignment();", "public String getAlignment();", "MetricOuterClass.Metric getMetricTreatment();", "public interface Alignment {\n\n\t/** Returns the distance between the two sequences. */\n\tpublic long getDistance();\n}", "@Override\r\n void buildResultMetrics()\r\n {\r\n if(totalReads <= 0)\r\n {\r\n resultMetric = null;\r\n return;\r\n }\r\n resultMetric.setMetricName(\"AlignmentResults\");\r\n resultMetric.addKeyValue(\"ReadType\", readType.toString());\r\n \r\n ResultMetric readInfo = new ResultMetric();\r\n readInfo.setMetricName(\"ReadInfo\");\r\n readInfo.addKeyValue(\"TotalReads\", Long.toString(totalReads));\r\n readInfo.addKeyValue(\"MappedReads\", Long.toString(mappedReads));\r\n \r\n readInfo.addKeyValue(\"UnmappedReads\", Long.toString(unmappedReads));\r\n readInfo.addKeyValue(\"PercentMapped\", getFormattedNumber(percentMapped));\r\n readInfo.addKeyValue(\"PercentMismatch\", getFormattedNumber(percentMismatch));\r\n readInfo.addKeyValue(\"PercentExactMatch\", getFormattedNumber(percentExactMatch));\r\n readInfo.addKeyValue(\"PercentDuplicate\", getFormattedNumber(percentDup));\r\n \r\n ResultMetric yieldInfo = new ResultMetric();\r\n yieldInfo.setMetricName(\"TotalYield\");\r\n yieldInfo.addKeyValue(\"TotalBases\", Long.toString(totalBases));\r\n yieldInfo.addKeyValue(\"ValidBases\", Long.toString(totalValidBases));\r\n \r\n resultMetric.addResultMetric(readInfo);\r\n resultMetric.addResultMetric(yieldInfo);\r\n }", "public String getAlignment() {\n return alignment;\n }", "public String getAlignment() {\n return alignment;\n }", "Alignment getAlignment() {\n return alignment;\n }", "public String getAlign();", "public InvocationMetric getMetrics() {\n java.util.List<InvocationMetric> metrics=\n new java.util.ArrayList<InvocationMetric>();\n \n for (InterfaceDefinition id : getInterfaces()) {\n metrics.add(id.getMetrics());\n }\n \n return (new InvocationMetric(metrics));\n }", "public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }", "public abstract String getMetricName();", "abstract int getAlignmentValue(View view, int viewSize, int mode);", "double getTotalMetricValue();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column lb01_pt.lbt82_kinken_sum.unitnm
public String getUnitnm() { return unitnm; }
[ "@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}", "public String getUnit() {\r\n\r\n return data.getUnit();\r\n\r\n }", "public int getUnitNr() {\n return unitNr;\n }", "public void setUnitnm(String unitnm) {\r\n this.unitnm = unitnm;\r\n }", "public BigDecimal getUNIT_CODE()\r\n {\r\n\treturn UNIT_CODE;\r\n }", "private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }", "public String unit() {\n return this.unit;\n }", "public String getUnit() {\n\t\treturn unit;\n\t}", "public String getUnitName() {\n return unitName;\n }", "public String getUnitName() {\r\n return unitName;\r\n }", "public String getUnitName () {\n return unitName;\n }", "public int getOrg_unit_number() {\r\n return getAsNumber(\"org_unit_number\").intValue();\r\n }", "public String getUnit_code() {\n\t\treturn unit_code;\n\t}", "public String getQuantityUnit();", "public String getUnitName() {\r\n\t\treturn unitName;\r\n\t}", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "public int getUnit()\n {\n\treturn opfacData.getUnit();\n }", "public String getUnitName() {\n\t\treturn unitName;\n\t}", "public Integer getUnitid() {\n return unitid;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check that Network Location Provider reports enabled
public static boolean isNetLocEnabled(Context context) { LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); return lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER); }
[ "private void checkLocationEnabled () {\n LocationManager location_manager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE ) ;\n boolean gps_enabled = false;\n boolean network_enabled = false;\n try {\n gps_enabled = location_manager.isProviderEnabled(LocationManager. GPS_PROVIDER ) ;\n } catch (Exception e) {\n e.printStackTrace() ;\n }\n try {\n network_enabled = location_manager.isProviderEnabled(LocationManager. NETWORK_PROVIDER ) ;\n } catch (Exception e) {\n e.printStackTrace() ;\n }\n if (!gps_enabled && !network_enabled) {\n new AlertDialog.Builder(GameActivity. this )\n .setMessage( \"Please enable localization\" )\n .setPositiveButton( \"Settings\" , new\n DialogInterface.OnClickListener() {\n @Override\n public void onClick (DialogInterface paramDialogInterface , int paramInt) {\n startActivity( new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS )) ;\n }\n })\n .setNegativeButton( \"Cancel\" , null )\n .show() ;\n }\n }", "public static final boolean isNetworkEnabled() {\n loadLocationManager();\n try {\n return mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n } catch(Exception e) {\n // If exception occurs, then there is no network provider available.\n return false;\n }\n }", "private boolean checkIfLocationAvailable() {\n\t\tLocationManager lm = (LocationManager) mActivity.getSystemService(Context.LOCATION_SERVICE);\n\t\tboolean gpsEnabled = false;\n\t\tboolean networkEnabled = false;\n\n\t\ttry {\n\t\t\tgpsEnabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t\tnetworkEnabled = lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\t\t} catch (SecurityException ignored) {\n\t\t}\n\n\t\tif (!gpsEnabled && !networkEnabled) {\n\t\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(mActivity);\n\t\t\tdialog.setMessage(R.string.location_not_available);\n\t\t\tdialog.setPositiveButton(R.string.open_location_settings, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface paramDialogInterface, int paramInt) {\n\t\t\t\t\tIntent myIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n\t\t\t\t\tmActivity.startActivity(myIntent);\n\t\t\t\t}\n\t\t\t});\n\t\t\tdialog.setNegativeButton(R.string.activity_fragment_btn_cancel, null);\n\t\t\tdialog.show();\n\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isLocationServiceAvailable(){\n mLocationManager= (LocationManager) this.getSystemService(LOCATION_SERVICE);\n\n boolean checkGps = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n boolean checkNetwork = mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n return checkGps || checkNetwork;\n\n\n\n }", "private boolean isLocationProviderEnabledRequired() {\n if (isAndroidWear) {\n return false;\n }\n return !isNearbyPermissionNeverForLoc;\n }", "private boolean verifyLocationServices()\n {\n LocationManager locationManager = (LocationManager)activity.getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n\n return locationManager != null && (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER));\n }", "private void checkLocationServices(){\n LocationManager lm = (LocationManager)getSystemService(this.LOCATION_SERVICE);\n boolean gps_enabled = false;\n boolean network_enabled = false;\n\n try {\n gps_enabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\n } catch(Exception ex) {}\n\n try {\n network_enabled = lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n } catch(Exception ex) {}\n\n if(!gps_enabled && !network_enabled) {\n // notify user\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setMessage(getResources().getString(R.string.gps_network_not_enabled));\n dialog.setPositiveButton(getResources().getString(R.string.open_location_settings), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n // TODO Auto-generated method stub\n Intent myIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(myIntent);\n //get gps\n }\n });\n dialog.setNegativeButton(getString(R.string.Cancel), new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n // TODO Auto-generated method stub\n Toast.makeText(MapActivity.this, \"Your location is set to default \" +\n \"location (NZ), it will be used to calculate distance\", Toast.LENGTH_SHORT).show();\n }\n });\n dialog.show();\n }\n }", "private void checkGpsEnable() {\n boolean isGpsEnabled = MyLocation.defaultHandler().isLocationAvailable(this);\n if (!isGpsEnabled) {\n\n showEnablePermissionDailog(1, getString(R.string.please_enable_location));\n } else {\n MyLocation.defaultHandler().getLocation(this, locationResult);\n getCurrentLocation();\n }\n }", "private boolean GPSEnabled(){\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n return (locationManager != null && locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER));\n }", "public static boolean checkLocationService(Context context) {\n boolean result;\n LocationManager lm = null;\n boolean gps_enabled = false, network_enabled = false;\n if (lm == null)\n lm = (LocationManager) context\n .getSystemService(Context.LOCATION_SERVICE);\n try {\n gps_enabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\n } catch (Exception ex) {\n }\n try {\n network_enabled = lm\n .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n } catch (Exception ex) {\n }\n\n if (!gps_enabled && !network_enabled) {\n result = false;\n } else {\n result = true;\n }\n return result;\n }", "private void checkForGpsAndInternet(){\n\n //Get Location Enabled or not\n LocationManager mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n //Get Network is enabled or not\n ConnectivityManager mConnectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo mNetwork = mConnectivityManager.getActiveNetworkInfo();\n\n try{\n NETWORK_enable = (mNetwork != null) && (mNetwork.isConnectedOrConnecting());\n GPS_enabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n\n Log.i(TAG, \"checkForGpsAndInternet: GPS = \" + GPS_enabled);\n Log.i(TAG, \"checkForGpsAndInternet: Net = \" + NETWORK_enable);\n\n }catch (Exception ex){\n Log.i(TAG, \"checkForGpsAndInternet: \" + ex.getMessage());\n }\n\n //For network check\n if(!NETWORK_enable){\n\n //Notify user\n AlertDialog.Builder mDialog = new AlertDialog.Builder(this);\n mDialog.setMessage(\"Network not enabled\");\n mDialog.setPositiveButton(\"Open settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //to open the GPS settings\n Intent mIntent = new Intent(Settings.ACTION_NETWORK_OPERATOR_SETTINGS);\n startActivity(mIntent);\n }\n });\n mDialog.show();\n }\n\n //for GPS check\n if(!GPS_enabled){\n\n //Notify user\n AlertDialog.Builder mDialog = new AlertDialog.Builder(this);\n mDialog.setMessage(\"Gps not enabled\");\n mDialog.setPositiveButton(\"Open settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //to open the GPS settings\n Intent mIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(mIntent);\n }\n });\n mDialog.show();\n }\n }", "public boolean CheckGPS(){\n\n boolean status;\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n status = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n return status;\n }", "public boolean checkGPS(){\n LocationManager manager= (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }", "public boolean isLocationAvailable() {\n return locationStatus < 1000;\n }", "public boolean isProviderEnabled() {\n Criteria criteria = this.criteria == null ? getDefaultCriteria() : this.criteria;\n String provider = locationManager.getBestProvider(criteria, true);\n return provider != null;\n }", "public boolean checkIsGPSEnabled() {\n LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n return lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }", "private boolean isNetworkEnabled() {\n NetworkConnectionDetector networkConnectionDetector=new NetworkConnectionDetector(getApplicationContext());\n if (networkConnectionDetector != null) {\n return networkConnectionDetector.isConnectingToInternet();\n } else {\n return false;\n }\n }", "public boolean isProviderEnabled(String provider){\n\t\tif(provider.equals(GPS_PROVIDER))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public void onProviderEnabled()\n {\n if(isLocationEnabled(mapsActivity))\n {\n checkPermissionAndService();\n }\n else\n Toast.makeText(mapsActivity.getApplicationContext(),\n R.string.notify_location_service,\n Toast.LENGTH_LONG)\n .show();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assign negative index as unique document ID to all configured sample clinical documents
private int assignNegativeIndexAsDocumentId(TryPolicyProperties.SampleDocData sampleDocData) { int indexOfSampleDocuments = tryPolicyProperties.getSampleUploadedDocuments().indexOf(sampleDocData); return (indexOfSampleDocuments + 1) * -1; }
[ "@Override\n\tpublic void documentIndexed(IDocument document, long kimId) {\n\t\t// no action is required\n\t}", "public IndexableDocument() {\n\t\tthis.id=new ObjectId();\n\t}", "Long cleanIndex(Long index, List<Long> ids);", "void createInitialFulltextIndex();", "private void indexIDs() throws Exception {\n\t\tlogger.info(\" - indexing strain IDs\");\n\n\t\tString cmd = \"select distinct t.primary_id, i.logical_db, i.acc_id \"\n\t\t\t+ \"from strain t, strain_id i \"\n\t\t\t+ \"where t.strain_key = i.strain_key \"\n\t\t\t+ \"and i.private = 0 \"\n\t\t\t+ \"order by 1, 2\";\n\n\t\tResultSet rs = ex.executeProto(cmd, cursorLimit);\n\n\t\tint ct = 0;\t\t\t\t\t\t\t// count of IDs processed\n\t\twhile (rs.next()) {\n\t\t\tct++;\n\t\t\tString primaryID = rs.getString(\"primary_id\");\n\t\t\tString id = rs.getString(\"acc_id\");\n\t\t\tString logicalDB = rs.getString(\"logical_db\");\n\t\t\tQSAccIDFormatter idf = idFactory.getFormatter(\"Strain\", logicalDB, id);\n\t\t\t\n\t\t\tif (strains.containsKey(primaryID) && (id != null) && (logicalDB != null)) {\n\t\t\t\tQSStrain qst = strains.get(primaryID);\n\n\t\t\t\tif (!id.equals(primaryID)) {\n\t\t\t\t\taddDoc(buildDoc(qst, id, null, null, idf.getMatchDisplay(), idf.getMatchType(), SECONDARY_ID_WEIGHT));\n\t\t\t\t} else {\n\t\t\t\t\taddDoc(buildDoc(qst, id, null, null, idf.getMatchDisplay(), idf.getMatchType(), PRIMARY_ID_WEIGHT));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trs.close();\n\t\t\n\t\tlogger.info(\" - indexed \" + ct + \" IDs\");\n\t}", "private int generateDocID() {\n\t\treturn lastDocID++;\n\t}", "void indexDocument(String documentReference, boolean now);", "public void setDocumentNo (String DocumentNo);", "public void createUniqueIndex() {\n\n BasicDBObject obj = new BasicDBObject();\n\n //se cargan los campos sobre los cuales el index va a chequear\n obj.put(\"dni\", 1);\n\n employeeCollection.createIndex(obj, new IndexOptions().unique(true));\n }", "public static void indexCrawledISIAndScopus() throws IOException, SQLException {\r\n Client client = DataUtl.getESClient();\r\n BulkRequestBuilder bulkRequest = client.prepareBulk();\r\n\r\n // Index ISI\r\n // Shall never forget to escape MySQL keywords by backtick\r\n // Those fucker\r\n String query = \"SELECT id, affiliation, author, doi, funding_text, isbn, issn, \" +\r\n \"journal, journal_iso, `language`, pages, publisher, title, \" +\r\n \"type, volume, year, authors_json, unique_id, abstract, cited_references, number, keyword FROM isi_documents\";\r\n ResultSet articleSet = DataUtl.queryDB(Config.DB.INPUT, query);\r\n\r\n int counter = 0, prev = -1;\r\n while (articleSet.next()) {\r\n if (articleSet.getInt(1) != ++prev) {\r\n for (int i = articleSet.getInt(1) - 1; i >= prev; --i) {\r\n unavailableISI.add(i);\r\n }\r\n prev = articleSet.getInt(1);\r\n }\r\n\r\n bulkRequest.add(client.prepareIndex(Config.ES.INDEX, \"articles\", String.valueOf(counter++))\r\n .setSource(jsonBuilder()\r\n .startObject()\r\n .field(\"original_id\", articleSet.getInt(1))\r\n .field(\"affiliation\", StringUtl.correct(articleSet.getString(2)))\r\n .field(\"author\", articleSet.getString(3))\r\n .field(\"doi\", articleSet.getString(4))\r\n .field(\"issn\", StringUtl.normalizeISSN(articleSet.getString(7)))\r\n .field(\"journal\", articleSet.getString(8))\r\n .field(\"journal_iso\", articleSet.getString(9))\r\n .field(\"language\", articleSet.getString(10))\r\n .field(\"pages\", articleSet.getString(11))\r\n .field(\"publisher\", articleSet.getString(12))\r\n .field(\"title\", articleSet.getString(13).replace(\"\\n\", \" \"))\r\n .field(\"type\", articleSet.getString(14))\r\n .field(\"volume\", articleSet.getString(15))\r\n .field(\"year\", articleSet.getString(16))\r\n .field(\"authors_json\", StringUtl.correct(articleSet.getString(17)))\r\n .field(\"uri\", articleSet.getString(18))\r\n .field(\"abstract\", articleSet.getString(19))\r\n .field(\"reference\", articleSet.getString(20))\r\n .field(\"number\", articleSet.getString(21))\r\n .field(\"keyword\", articleSet.getString(22))\r\n .field(\"is_isi\", true)\r\n .field(\"is_scopus\", false)\r\n .endObject()\r\n )\r\n );\r\n }\r\n\r\n System.out.println(\"Imported \" + counter + \" ISI\\n\");\r\n\r\n // Why this much data is indexed? Future-proof =)))))\r\n\r\n // Index Scopus\r\n // The input source just has to store ISI. Why Scopus is also indexed?\r\n // Future-proof too (merging ISI into Scopus) =)))))\r\n query = \"SELECT id, `authors`, title, year, source_title, volume, page_start, \" +\r\n \"page_end, doi, affiliations, funding_text, \" +\r\n \"publisher, issn, isbn, language_of_original_document, \" +\r\n \"abbreviated_source_title, document_type, authors_json, abstract, `references`, index_keywords, link, issue FROM scopus_documents\";\r\n articleSet = DataUtl.queryDB(Config.DB.INPUT, query);\r\n\r\n prev = -1;\r\n while (articleSet.next()) {\r\n if (articleSet.getInt(1) != ++prev) {\r\n for (int i = articleSet.getInt(1) - 1; i >= prev; --i) {\r\n unavailableScopus.add(i);\r\n }\r\n prev = articleSet.getInt(1);\r\n }\r\n\r\n bulkRequest.add(client.prepareIndex(Config.ES.INDEX, \"articles\", String.valueOf(counter++))\r\n .setSource(jsonBuilder()\r\n .startObject()\r\n .field(\"original_id\", articleSet.getInt(1))\r\n .field(\"affiliation\", StringUtl.correct(articleSet.getString(10)))\r\n .field(\"author\", articleSet.getString(2))\r\n .field(\"doi\", articleSet.getString(9))\r\n .field(\"funding_text\", articleSet.getString(11))\r\n .field(\"isbn\", articleSet.getString(14))\r\n .field(\"issn\", StringUtl.normalizeISSN(articleSet.getString(13)))\r\n .field(\"journal\", articleSet.getString(5))\r\n .field(\"journal_iso\", articleSet.getString(16))\r\n .field(\"language\", articleSet.getString(15))\r\n .field(\"pages\", StringUtl.getPages(articleSet.getString(7), articleSet.getString(8)))\r\n .field(\"publisher\", articleSet.getString(12))\r\n .field(\"title\", articleSet.getString(3))\r\n .field(\"type\", articleSet.getString(17))\r\n .field(\"volume\", articleSet.getString(6))\r\n .field(\"year\", articleSet.getString(4))\r\n .field(\"authors_json\", StringUtl.correct(articleSet.getString(18)))\r\n .field(\"abstract\", articleSet.getString(19))\r\n .field(\"reference\", articleSet.getString(20))\r\n .field(\"keyword\", articleSet.getString(21))\r\n .field(\"uri\", articleSet.getString(22))\r\n .field(\"number\", articleSet.getString(23))\r\n .field(\"is_isi\", false)\r\n .field(\"is_scopus\", true)\r\n .endObject()\r\n )\r\n );\r\n }\r\n\r\n System.out.println(\"Imported \" + counter + \" ISI + Scopus\");\r\n\r\n bulkRequest.get();\r\n DataUtl.flushES(Config.ES.INDEX);\r\n }", "public void setNoIndex() {\n noIndex= true;\n }", "private void createListIdSample (){\n\t\tfor (SampleDetail detail :beanStudy.getSampleDetailCollection()){\n\t\t\tmapSampleDetail.put(detail.getStudysampleid(), detail);\n\t\t}\t\n\t}", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "void unindexDocument(String documentReference, boolean now);", "protected void ensureIndex() {\n getDb().createIndex( getCollectionName() , new MapBuilder().append( \"_qn\", 1 ) );\n // .append(\"_id\", -1) );\n }", "java.lang.String getDocumentId();", "private void createIndex(String[][] docs) {\n Collections.shuffle(Arrays.asList(docs), random());\n for (String[] doc : docs) {\n assertU(adoc(doc));\n if (random().nextBoolean()) {\n assertU(commit());\n }\n }\n assertU(commit());\n }", "public void setInitialClusterIndices()\n\t{\n\t\tint initialNumOfClusters = classNum;\n\t\t\n\t\tseedDocumentIndices = new int[initialNumOfClusters];\n\t\tint seedDocumentIndicesIndex = 0;\n\t\t\n\t\tfor(int k = 0; k < initialNumOfClusters; k++)\n\t\t{\n\t\t\tseedDocumentIndices[seedDocumentIndicesIndex++] = randInt(0, nDocuments-1);\n\t\t}\n\t\t//txtMessage.append(\"Initial Cluster Indices Done\");\n\t}", "private static void createTFIDFIndex() {\n\t\tSystem.out.println(\"Criando Indice... \");\n\n\t\tfor (int i = 1; i <= allDocuments.size(); i++) {\n\t\t\tString doc = allDocuments.get(i);\n\t\t\t//adiciona os termos ao indice, calculando seu tf;\n\t\t\taddToTable(doc.split(\" \"), String.valueOf(i));\t\t\t\t\n\t\t}\n\t\t//Criar indice com o idf de todos os termos\n\t\taddIdfToIndice();\n\t\t//escreve arquivo com o indice TFIDF\n//\t\twriteOutputFile();\n\t\tSystem.out.println(\"Indice criado com sucesso!\");\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for entidadesFromNombre method override this method for handling normal response from entidadesFromNombre operation
public void receiveResultentidadesFromNombre( es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.EntidadesFromNombreResponseE result ) { }
[ "VOServicio obtenerDatosServicio(String nombre);", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getServiciosDeAlojamiento() {\n\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\n\t\t\tList<ServicioDeAlojamiento> serviciosDeAlojamiento;\n\t\t\tserviciosDeAlojamiento = tm.getAllServiciosDeAlojamiento();\n\t\t\treturn Response.status(200).entity(serviciosDeAlojamiento).build();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t}", "VOCliente obtenerDatosCliente(String nombre);", "public ConsultaOpcionesServiciosClienteResponse() { }", "public void receiveResultmostrarIndice(\n wtp.ServiceStub.MostrarIndiceResponse result\n ) {\n }", "public void receiveResultextensionEntidad(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionEntidadResponseE result\r\n ) {\r\n }", "public CargaTrabajoRespuesta() {\n\t}", "public List<CustomDoctosExpPersonalDTO> getExpDoctoHistoricos(String rfcEmpleado, String idDocto) {\n List<CustomDoctosExpPersonal> customDoctosExpPersonal = new ArrayList<CustomDoctosExpPersonal>();\n\n List<String> DOC_OBLIGATORIOS = Arrays.asList(\"SOEMP\", \"CURRV\", \"CERME\", \"IDOFI\", \"MBPDV\", \"CNISF\", \"CILAB\", \"ABMIS\", \"CONNO\");\n\n if (DOC_OBLIGATORIOS.contains(idDocto)) {\n // DOCUMENTOS OBLIGATORIOS\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoObligatoriosPorTipo(idDocto, rfcEmpleado);\n \n } else if (idDocto.equals(\"ACNAC\")) {\n // ACTA DE NACIMIENTO\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoActaNacimiento(rfcEmpleado);\n\n } else if (idDocto.equals(\"CARMI\")) {\n // CARTILLA LIBERADA DEL SMN\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoCartilla(rfcEmpleado);\n \n } else if (idDocto.equals(\"CCURP\")) {\n // CURP\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoCurp(rfcEmpleado);\n \n } else if (idDocto.equals(\"CODOM\")) {\n // COMP DOMICILIO / FORMATO ACTUA\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoCompDomicilio(rfcEmpleado);\n\n } else if (idDocto.equals(\"COEST\")) {\n // COMPROBANTE DE ESTUDIOS \n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoComprobanteEstudios(rfcEmpleado);\n\n } else if (idDocto.equals(\"CRRFC\")) {\n // RFC EXPEDIDO POR EL SAT\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoRfc(rfcEmpleado); \n \n } else if (idDocto.equals(\"CTABA\")) {\n // DOCUMENTO BANCARIO PARA NOMINA\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoBancario(rfcEmpleado);\n\n } else if (idDocto.equals(\"FECLA\")) {\n // FECHAS LABORALES\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoHistoricoFechasLaborales(rfcEmpleado);\n \n } else {\n customDoctosExpPersonal = new ArrayList<CustomDoctosExpPersonal>();\n \n }\n logger.debug(\"getExpDoctoHistoricos -> customDoctosExpPersonal ------> \" + customDoctosExpPersonal.size());\n\n return super.transformation().map(customDoctosExpPersonal, CustomDoctosExpPersonalDTO.class);\n }", "public void receiveResultentidadesFromClave(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.EntidadesFromClaveResponseE result\r\n ) {\r\n }", "FiltrosConsultaRespuestaDTO obtenerFiltrosConsulta();", "public void receiveResultgetName(\n axis2.GetNameResponse result\n ) {\n }", "public void incluirDietaResposta(){\n\t\tdieta.setSolicitacao(entity);\n\t\tdieta.setData(Calendar.getInstance());\n\t\tcloseForms();\n\t\tatualizar();\n\t\tentity.setRespondido(true);\n\t\tincluirGeneric(entity.getId());\n\t}", "@WebService(targetNamespace = FIN2SvcDictionary.NAMESPACE, name = \"AllegatoAttoService\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)\npublic interface AllegatoAttoService {\n\n\t/**\n\t * Inserimento dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tInserisceAllegatoAttoResponse inserisceAllegatoAtto(@WebParam InserisceAllegatoAtto parameters);\n\n\t/**\n\t * Aggiornamento dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAggiornaAllegatoAttoResponse aggiornaAllegatoAtto(@WebParam AggiornaAllegatoAtto parameters);\n\t\n\t/**\n\t * Annullamento dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAnnullaAllegatoAttoResponse annullaAllegatoAtto(@WebParam AnnullaAllegatoAtto parameters);\n\t\n\t/**\n\t * Ricerca dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaAllegatoAttoResponse ricercaAllegatoAtto(@WebParam RicercaAllegatoAtto parameters);\n\t\n\t/**\n\t * Ricerca di dettaglio dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaDettaglioAllegatoAttoResponse ricercaDettaglioAllegatoAtto(@WebParam RicercaDettaglioAllegatoAtto parameters);\n\t\n\t/**\n\t * Inserimento dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tInserisceElencoResponse inserisceElenco(@WebParam InserisceElenco parameters);\n\t\n\t/**\n\t * Aggiornamento dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAggiornaElencoResponse aggiornaElenco(@WebParam AggiornaElenco parameters);\n\t\n\t/**\n\t * Ricerca dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaElencoResponse ricercaElenco(@WebParam RicercaElenco parameters);\n\t\n\t/**\n\t * Ricerca dell'elenco da emettere\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaElencoDaEmettereResponse ricercaElencoDaEmettere(@WebParam RicercaElencoDaEmettere parameters);\n\t\n\t\n\t//--- Aggiunti rispetto all'analisi\n\t\n\t/**\n\t * Associazione dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAssociaElencoResponse associaElenco(@WebParam AssociaElenco parameters);\n\t\n\t/**\n\t * Disassociazione dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tDisassociaElencoResponse disassociaElenco(@WebParam DisassociaElenco parameters);\n\t\n\t/**\n\t * Aggiornamento dei dati soggetto allegato\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAggiornaDatiSoggettoAllegatoAttoResponse aggiornaDatiSoggettoAllegatoAtto(@WebParam AggiornaDatiSoggettoAllegatoAtto parameters);\n\t\n\t/**\n\t * Ricerca di dettaglio dell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaDettaglioElencoResponse ricercaDettaglioElenco(@WebParam RicercaDettaglioElenco parameters);\n\t\n\t/**\n\t * Eliminazione della quota dall'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tEliminaQuotaDaElencoResponse eliminaQuotaDaElenco(@WebParam EliminaQuotaDaElenco parameters);\n\t\n\t/**\n\t * Inserimento dell'elenco con documenti e quote\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tInserisceElencoResponse inserisceElencoConDocumentiConQuote(@WebParam InserisceElenco parameters);\n\t\n\t/**\n\t * Ricerca dei dati soggetto allegato\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaDatiSoggettoAllegatoResponse ricercaDatiSoggettoAllegato(@WebParam RicercaDatiSoggettoAllegato parameters);\n\t\n\t\n\t// --- Asincroni\n\t\n\t/**\n\t * Completamento dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tCompletaAllegatoAttoResponse completaAllegatoAtto(@WebParam CompletaAllegatoAtto parameters);\n\t\n\t/**\n\t * Completamento dell'allegato atto asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #completaAllegatoAtto(CompletaAllegatoAtto)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse completaAllegatoAttoAsync(@WebParam AsyncServiceRequestWrapper<CompletaAllegatoAtto> parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per elenchi\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tConvalidaAllegatoAttoPerElenchiResponse convalidaAllegatoAttoPerElenchi(@WebParam ConvalidaAllegatoAttoPerElenchi parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per elenchi asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #convalidaAllegatoAttoPerElenchi(ConvalidaAllegatoAttoPerElenchi)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse convalidaAllegatoAttoPerElenchiAsync(@WebParam AsyncServiceRequestWrapper<ConvalidaAllegatoAttoPerElenchi> parameters);\n\t\n\t/**\n\t * Ricompletamento dell'allegato atto per elenchi\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRiCompletaAllegatoAttoPerElenchiResponse riCompletaAllegatoAttoPerElenchi(@WebParam RiCompletaAllegatoAttoPerElenchi parameters);\n\t\n\t/**\n\t * Ricompletamento dell'allegato atto per elenchi asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #riCompletaAllegatoAttoPerElenchi(RiCompletaAllegatoAttoPerElenchi)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse riCompletaAllegatoAttoPerElenchiAsync(@WebParam AsyncServiceRequestWrapper<RiCompletaAllegatoAttoPerElenchi> parameters);\n\t\n\t/**\n\t * Rifiuto degli elenchi\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRifiutaElenchiResponse rifiutaElenchi(@WebParam RifiutaElenchi parameters);\n\t\n\t/**\n\t * Rifiuto degli elenchi asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #rifiutaElenchi(RifiutaElenchi)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse rifiutaElenchiAsync(@WebParam AsyncServiceRequestWrapper<RifiutaElenchi> parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per provvisorio\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tConvalidaAllegatoAttoPerProvvisorioResponse convalidaAllegatoAttoPerProvvisorio(@WebParam ConvalidaAllegatoAttoPerProvvisorio parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per provvisorio asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #convalidaAllegatoAttoPerProvvisorio(ConvalidaAllegatoAttoPerProvvisorio)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse convalidaAllegatoAttoPerProvvisorioAsync(@WebParam AsyncServiceRequestWrapper<ConvalidaAllegatoAttoPerProvvisorio> parameters);\n\t\n\t// --- Lotto L\n\t\n\t/**\n\t * Stampa dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tStampaAllegatoAttoResponse stampaAllegatoAtto(@WebParam StampaAllegatoAtto parameters);\n\t\n\t/**\n\t * Stampa dell'allegato atto asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #stampaAllegatoAtto(StampaAllegatoAtto)\n\t */\n\t@WebMethod\n\t@WebResult\n\tStampaAllegatoAttoResponse stampaAllegatoAttoAsync(@WebParam StampaAllegatoAtto parameters);\n\t\n\t/**\n\t * Invio dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tInviaAllegatoAttoResponse inviaAllegatoAtto(@WebParam InviaAllegatoAtto parameters);\n\t\n\t/**\n\t * Invio dell'allegato atto asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #inviaAllegatoAtto(InviaAllegatoAtto)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse inviaAllegatoAttoAsync(@WebParam AsyncServiceRequestWrapper<InviaAllegatoAtto> parameters);\n\t\n\t@WebMethod\n\t@WebResult\n\tCompletaAllegatoAttoMultiploResponse completaAllegatoAttoMultiplo(@WebParam CompletaAllegatoAttoMultiplo parameters);\n\t\n\t/**\n\t * Completamento dell'allegato atto asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #completaAllegatoAtto(CompletaAllegatoAtto)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse completaAllegatoAttoMultiploAsync(@WebParam AsyncServiceRequestWrapper<CompletaAllegatoAttoMultiplo> parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per elenchi\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tConvalidaAllegatoAttoPerElenchiMultiploResponse convalidaAllegatoAttoPerElenchiMultiplo(@WebParam ConvalidaAllegatoAttoPerElenchiMultiplo parameters);\n\t\n\t/**\n\t * Convalida dell'allegato atto per elenchi asincrono\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t * @see #convalidaAllegatoAttoPerElenchi(ConvalidaAllegatoAttoPerElenchi)\n\t */\n\t@WebMethod\n\t@WebResult\n\tAsyncServiceResponse convalidaAllegatoAttoPerElenchiMultiploAsync(@WebParam AsyncServiceRequestWrapper<ConvalidaAllegatoAttoPerElenchiMultiplo> parameters);\n\t\n\t// --- Lotto O\n\t/**\n\t * Ricerca elenchi per allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaElenchiPerAllegatoAttoResponse ricercaElenchiPerAllegatoAtto(@WebParam RicercaElenchiPerAllegatoAtto parameters);\n\n\n\t// --- CR 2705\n\t/**\n\t * Ricerca sintetica paginata delle stampe dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaSinteticaStampaAllegatoAttoResponse ricercaSinteticaStampaAllegatoAtto(@WebParam RicercaSinteticaStampaAllegatoAtto parameters);\n\t\n\t/**\n\t * Ricerca di dettaglio delle quote nell'elenco\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaSinteticaQuoteElencoResponse ricercaSinteticaQuoteElenco(@WebParam RicercaSinteticaQuoteElenco parameters);\n\t\n\t// SIAC-5172\n\t/**\n\t * Aggiornamento massivo dei dati soggetto allegato\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tAggiornaMassivaDatiSoggettoAllegatoAttoResponse aggiornaMassivaDatiSoggettoAllegatoAtto(@WebParam AggiornaMassivaDatiSoggettoAllegatoAtto parameters);\n\t\n\t/**\n\t * Ricerca dei dati sospensione soggetto dell'allegato atto\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tRicercaDatiSospensioneAllegatoAttoResponse ricercaDatiSospensioneAllegatoAtto(@WebParam RicercaDatiSospensioneAllegatoAtto parameters);\n\t\n\t/**\n\t * Controllo che l'impegno vincolato sia finanziato\n\t * @param parameters la request del servizio\n\t * @return la response del servizio\n\t */\n\t@WebMethod\n\t@WebResult\n\tControlloImportiImpegniVincolatiResponse controlloImportiImpegniVincolati(@WebParam ControlloImportiImpegniVincolati parameters);\n\n\n\n\t\n\t\n}", "@Override\n\tpublic ResponseConsulta consultarVehiculos() {\n\t\tResponseConsulta respConsulta = new ResponseConsulta();\n\t\ttry {\n\t\t\tList<Vehiculo> listaVeiculos = vehiculoRepositorio.buscarTodasVehiculo();\n\t\t\trespConsulta.setListVehiculos(listaVeiculos);\n\t\t\trespConsulta.setMensaje(properties.msgExito);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(properties.errorGenerico + e);\n\t\t\trespConsulta.setMensaje(properties.errorGenerico);\n\t\t}\n\t\treturn respConsulta;\n\t}", "public List<CustomDoctosExpPersonalDTO> getExpDoctoSubgridActivosRegistrados(String rfcEmpleado, String idDocto) {\n List<CustomDoctosExpPersonal> customDoctosExpPersonal = new ArrayList<CustomDoctosExpPersonal>();\n List<String> DOC_SIN_DATOS = Arrays.asList(\"SOEMP\", \"CURRV\", \"CERME\", \"IDOFI\", \"DCLFD\", \"MBPDV\", \"CNISF\", \"CILAB\", \"SOCEM\", \"ABMIS\", \"CIFON\", \"INSAR\", \"AHOSO\", \n \"CSGMM\", \"SEGUR\", \"OFIDO\", \"CONNO\", \"ACSPF\",\"PSPAS\", \"DOSPF\", \"COSER\", \"HUSER\", \"CONES\", \"ACTAD\", \"RNOIC\", \"AEOIC\", \n \"ACTAT\", \"MEDDI\", \"CONHE\", \"CAISS\", \"DEMAN\", \"LAUEJ\", \"BECAS\", \"ACDEF\", \"OFIRE\", \"OFISU\", \"ACUBA\", \"DMINC\", \"DESBE\", \"LICIS\");\n\n if (DOC_SIN_DATOS.contains(idDocto)) {\n // DOCUMENTOS SIN DATOS\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosObligatoriosPorTipo(idDocto, rfcEmpleado);\n \n } else if (idDocto.equals(\"CCTDE\")) {\n // CAPACITACION\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosCapacitacion(rfcEmpleado);\n \n } else if (idDocto.equals(\"DFDBE\")) {\n // FAMILIARES, DEPENDIENTES, BENEFICIARIOS\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosFamiliares(rfcEmpleado);\n \n } else if (idDocto.equals(\"DESBE\")) {\n // DEPENDIENTES\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosDependientes(rfcEmpleado);\n\n } else if (idDocto.equals(\"COEST\")) {\n // COMPROBANTE DE ESTUDIOS \n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosComprobanteEstudios(rfcEmpleado);\n \n } else if (idDocto.equals(\"EXPLA\")) {\n // EXPERIENCIA LABORAL\n customDoctosExpPersonal = super.persistence().get(QueryExpedienteDAO.class).getExpDoctoSubgridActivosRegistradosExperienciaLaboral(rfcEmpleado); \n \n }\n logger.debug(\"getExpDoctoSubgridActivosRegistrados -> customDoctosExpPersonal ------> \" + customDoctosExpPersonal.size());\n\n return super.transformation().map(customDoctosExpPersonal, CustomDoctosExpPersonalDTO.class);\n }", "@CommandDescription(name=\"createBulkServicoResponse\", kind=CommandKind.ResponseCommand, requestPrimitive=\"createBulkServicoResponse\")\npublic interface CreateBulkServicoResponse extends MessageHandler {\n\n\tvoid createBulkServicoResponse(CreateBulkServicoOutput response);\n\t\n\tvoid createBulkServicoResponseError(ErrorPayload error);\n\n}", "@CommandDescription(name=\"createBulkPedidoResponse\", kind=CommandKind.ResponseCommand, requestPrimitive=\"createBulkPedidoResponse\")\npublic interface CreateBulkPedidoResponse extends MessageHandler {\n\n\tvoid createBulkPedidoResponse(CreateBulkPedidoOutput response);\n\t\n\tvoid createBulkPedidoResponseError(ErrorPayload error);\n\n}", "Entidad getEntidadPadreHerencia();", "public List<PedidoEntrega> listaPedidosEntrega();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Visit each files in directory and after that submit a job to worker to read the file.
@Override public FileVisitResult visitFile( Path aFile, BasicFileAttributes aAttrs) throws IOException { /** * skip .DS_Store file * Print every 1000 jobs send to worker */ if (!aFile.getFileName().toString().equalsIgnoreCase(".DS_Store")) { if (i % 1000 == 0) { System.out.println("job send " + i); } i++; /** * Instantiate the worker * send job to worker with parameter directory file and job counter */ FileReader task = new FileReader(aFile, i); task.setCaller(this); es.submit(task); } return FileVisitResult.CONTINUE; }
[ "public void run() {\n\n this.resultsQueue.registerProducer();\n\n for (;;) {\n\n File dir = directoryQueue.dequeue();\n if (dir == null) {\n resultsQueue.unregisterProducer();\n return;\n }\n\n File[] filesArr = dir.listFiles();\n\n if (filesArr != null) {\n for (File file : filesArr) {\n // https://stackoverflow.com/questions/35082838/\n // https://www.tutorialspoint.com/java/io/file_isfile.htm\n if (file.getName().endsWith(\".\" + extension) && file.isFile()) {\n resultsQueue.enqueue(file);\n }\n }\n }\n }\n\n }", "private void readFiles() throws IOException{\n\t\tprogress = new Progress();\n\t\tprogress.setMax(files.size()-1);\n\t\tfor(int i = 0; i < files.size(); i++) {\n\t\t\tupdateProgress(i, files.get(i).getFileName().toString());\n\t\t\ttry {\n\t\t\t\tparse(files.get(i).toFile());\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\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} catch (SAXException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (TikaException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void process() {\r\n for (File file : files) {\r\n FileProcessor fp = new FileProcessor(file, generateLog);\r\n fp.process();\r\n }\r\n }", "@Override\n public void readFromFiles() {\n FileReadHandlerThread myCsvReadHandlerThread = new FileReadHandlerThread(csvFileHandler, myCollection);\n FileReadHandlerThread myJsonReadHandlerThread = new FileReadHandlerThread(jsonFileHandler, myCollection);\n FileReadHandlerThread myXmlReadHandlerThread = new FileReadHandlerThread(xmlFileHandler, myCollection);\n\n /**\n * Start running three threads each for csv, json and xml file reading and writing\n * on to myCollection\n */\n myXmlReadHandlerThread.start();\n myCsvReadHandlerThread.start();\n myJsonReadHandlerThread.start();\n\n /**\n * waiting for threads to finish\n */\n\n try {\n //System.out.println(\"Waiting for threads to finish\");\n myCsvReadHandlerThread.join();\n myJsonReadHandlerThread.join();\n myXmlReadHandlerThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n System.out.println(\"Main Thread Interrupted\");\n }\n }", "public void run() {\n\t\t\t// get the fresh list of nested files\n\t\t\tFile[] files = dir.listFiles();\n\n\t\t\t// select list of new files and process this list\n\t\t\tCollection<File> list = getNew(files);\n\t\t\tif (!list.isEmpty()) {\n\t\t\t\tfor (File file : list) {\n\t\t\t\t\t// again, for directories we are creating nested scanners\n\t\t\t\t\t// and deploying desciptors\n\t\t\t\t\tif (file.isDirectory()) {\n\t\t\t\t\t\tHDScanner childScanner = new HDScanner(file);\n\t\t\t\t\t\tscanners.put(file, childScanner);\n\t\t\t\t\t\t// keep reference to nested directory because we need to track\n\t\t\t\t\t\t// the case when directory will be deleted\n\t\t\t\t\t} else if (file.isFile() && fileFilter.accept(file)) {\n\t\t\t\t\t\tdeploy(file);\n\t\t\t\t\t}\n\t\t\t\t\tdeployments.put(file, new Deployment(file));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// now same for removed.\n\t\t\t// determine list of removed files\n\t\t\tlist = getRemoved(files);\n\t\t\tfor (File file : list) {\n\t\t\t\tDeployment d = deployments.remove(file);\n\t\t\t\tif (d == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (d.isDirectory()) {\n\t\t\t\t\tHDScanner scanner = scanners.remove(file);\n\t\t\t\t\tif (scanner != null) {\n\t\t\t\t\t\tscanner.undeployAll();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tundeploy(file);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// redeploying\n\t\t\tlist = getUpdates(files);\n\t\t\tfor (File file : list) {\n\t\t\t\t// ignore directories\n\t\t\t\tif (file.isFile() && fileFilter.accept(file)) {\n\t\t\t\t\tredeploy(file);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Processing nested deployments\n\t\t\tCollection<HDScanner> nested = scanners.values();\n\t\t\tfor (HDScanner scanner : nested) {\n\t\t\t\tscanner.run();\n\t\t\t}\n\t\t}", "public void run() {\n //Delete old index data before re-index again.\n IndexManager indexManager = new IndexManager();\n indexManager.deleteIndex();\n\n int numOfFilesIndexed = 0;\n\n //This is the index directory object.\n File indexDir = getIndexDir();\n\n //Create IndexWriter.\n Directory directory;\n try {\n //Open index directory for assign with IndexWriter.\n directory = FSDirectory.open(indexDir.toPath());\n } catch (IOException e) {\n logger.warning(\"Index directory incorrect.\");\n return;\n } catch (NullPointerException e) {\n logger.severe(\"Cannot open index directory.\");\n return;\n }\n iwriter = getIndexWriter(directory);\n\n //Get all data directory.\n List<File> files = getDataDirs();\n /* Try to use multi-thread to index...\n int size = (int) Math.ceil(files.size()/2);\n List<List<File>> listlists = Lists.partition(files, size);*/\n\n //Get everything checked.\n if (files.size() == 0) {\n logger.severe(\"There's no data to be indexed.\");\n return;\n }\n\n //Index every files in directory and within subdirectory.\n for (File file : files) {\n numOfFilesIndexed += index(file, iwriter);\n }\n try {\n iwriter.close();\n directory.close();\n logger.info(\"Total files indexed: \" + numOfFilesIndexed);\n indexer.setNumOfFilesIndexed(numOfFilesIndexed);\n } catch (IOException e) {\n logger.severe(\"IndexWriter or Directory is null.\");\n }\n }", "public void parser(String dir, String ext, InvertedIndex index) {\n\t\tdirectoryTraverser(dir, ext);\n\n\t\tfor (Path file : getPaths()) {\n\t\t\tif (file != null) {\n\t\t\t\tworkers.execute(new FileWorker(file.toString(), index));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Canot read files.\");\n\t\t\t}\n\t\t}\n\t\tfinish();\n\t}", "private File[] traverseFileDirectory() {\n return new File(SearchDocumentConstants.FILE_PATH).listFiles();\n }", "private static void indexDirectory(File dir) {\n for (File file : dir.listFiles()) {\n \n // XXX: might follow circular symlink?\n if (file.isDirectory()) {\n indexDirectory(file);\n continue;\n }\n \n ChunkedFile cf;\n try {\n\t\t\t\tcf = new ChunkedFile(file);\n\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tcontinue;\n\t\t\t} catch (IOException e1) {\n\t\t\t\tSystem.err.println(\"Failed to chunk file \"+file.getPath());\n\t\t\t\tcontinue;\n\t\t\t}\n \n String hash;\n try { hash = Files.hash(file, Hashing.sha1()).toString(); }\n catch (IOException e) {\n e.printStackTrace();\n continue;\n }\n \n lookupIndex.put(hash, cf);\n System.out.println(\"Hash of '\"+file.getName()+\"' is \"+hash);\n \n // add file to file set for each key in file name\n for (String key : file.getName().split(delimiters)) {\n if (key.length() < MIN_KEY_LEN || ignoredKeys.contains(key))\n continue;\n \n Set<SearchResult> values = searchIndex.get(key);\n if (values == null) {\n values = new HashSet<SearchResult>();\n searchIndex.put(key, values);\n }\n System.out.println(\"Associating \"+file.getName()+\" with key \"+key);\n values.add(new SearchResult(file, hash));\n }\n }\n }", "protected void processFeedFiles() throws Exception {\n\t\tsortFilesByDate(mFeedFiles);\n\t\tfor (File file : mFeedFiles) {\n\t\t\tlogDebug(\"Loading file \" + file.getName());\n\t\t\tcurrentFilename = file.getName();\n\t\t\tprocessFeedFile(file);\n\t\t\tlogDebug(\"Completed loading file \" + file.getName());\n\t\t}\n\t}", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "private void processDir(final String filename) throws FileNotFoundException, IOException, RepositoryException,\n RDFHandlerException\n {\n final File dataDir = new File(filename);\n System.out.println(\"Using data directory: \" + dataDir);\n\n // get the data files\n final File[] dataFiles = dataDir.listFiles(new FilenameFilter()\n {\n @Override\n public boolean accept(final File dir, final String name)\n {\n return name.contains(\"heartrate\") && (name.endsWith(\"csv\") || name.endsWith(\"CSV\"));\n }\n });\n // want to make sure we only create each person and sensor once\n Arrays.sort(dataFiles);\n\n // FIXME testing with just 1 file to start\n final File[] testFiles = dataFiles;\n // testFiles[0] = dataFiles[0];\n\n int count = 0;\n\n for (final File file : testFiles)\n {\n final String oldPid = currentPid;\n\n System.out.println(\"processing \" + file);\n\n try\n {\n parseFilename(file);\n\n // did we change people?\n if (oldPid != currentPid)\n {\n createNewPersonHeartRate();\n }\n\n repoConn.begin();\n count += processFileHeartRate(file);\n repoConn.commit();\n\n System.out.println(String.format(\" %,d records\", Integer.valueOf(count)));\n }\n catch (final NumberFormatException e)\n {\n System.err.println(\"Cannot read the date from the file format\");\n }\n }\n }", "public void produceCharReaders() throws InterruptedException {\n\t\tlistFilesForFolder(folder);\n\t\tCacheCenter.setAllFilesCollected(true);\n\t}", "private void readFiles() {\n }", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "private static void getResults() {\n\t\t//Variables\n\t\tFile directoryOfChunks = new File(\"output\");\n\t\tFile[] files = directoryOfChunks.listFiles();\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tArrayList<String> chunkResults = new ArrayList<>();\n\t\tBufferedReader br = null;\n\t\tReadFromFile rf = new ReadFromFile();\n\n\t\t//Get files from output folder\n\t\tif(directoryOfChunks.exists() && directoryOfChunks.isDirectory()){\n\t\t\tdirectoryName = \"output\";\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + directoryOfChunks);\n\t\t}\n\n\t\t//for loop to open and read each individual file\n\t\tfor (String file : filesInFolder) {\n\t\t\ttry {\n\n\t\t\t\tFileReader reader = new FileReader(directoryName + \"\\\\\" + file);\n\t\t\t\tbr = new BufferedReader(reader);\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tchunkResults.addAll(rf.readFromChunk(br));\n\t\t}\n\n\t\t//Call sanitizeAndSplit\n\t\tsanitizeAndSplit(chunkResults);\n\t}", "private void processDirectory(File file) {\n if (file.isDirectory()) {\n File[] fs = file.listFiles();\n for (int i = 0; i < fs.length; i++) {\n log.info(\"Reading image for decoding : \" + fs[i].getAbsolutePath());\n decodeRLEFile(fs[i], fs[i]);\n processDirectory(fs[i]);\n }\n }\n }", "public void recursiveTravel(Consumer<IFile> function) { for(IFile i : dir) i.recursiveTravel(function); }", "@Override\n public void run() {\n\n\n try {\n WatchService watchService = FileSystems.getDefault().newWatchService();\n Path path = Paths.get(INPUT_FILES_DIRECTORY);\n\n path.register( watchService, StandardWatchEventKinds.ENTRY_CREATE); //just on create or add no modify?\n\n WatchKey key;\n while ((key = watchService.take()) != null) {\n for (WatchEvent<?> event : key.pollEvents()) {\n\n String fileName = event.context().toString();\n notifyController.processDetectedFile(fileName);\n\n }\n key.reset();\n }\n\n } catch (Exception e) {\n //Logger.getGlobal().setUseParentHandlers(false);\n //Logger.getGlobal().log(Level.SEVERE, e.toString(), e);\n\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Linear interpolation, aka lerp. Set "result" to the interpolation by "weight" from "v0" (when weight=0) to "v1" (when weight=1).
static public final void interpolate (float weight, MlVector3 v0, MlVector3 v1, MlVector3 result) { result.m_vector[0] = (v0.m_vector[0] * (MlScalar.ML_SCALAR_ONE - weight)) + (v1.m_vector[0] * weight) ; result.m_vector[1] = (v0.m_vector[1] * (MlScalar.ML_SCALAR_ONE - weight)) + (v1.m_vector[1] * weight) ; result.m_vector[2] = (v0.m_vector[2] * (MlScalar.ML_SCALAR_ONE - weight)) + (v1.m_vector[2] * weight) ; }
[ "static final void interpolate_lsp_ver2(final float interp[], final float prev[], final float next[], final float weight, final int order)\n\t{\n\t\tfinal float weight1 = 1.0f - weight;// java\n\t\tfor( int i = 0; i < order; i++ ) {\n\t\t\tinterp[i] = weight1 * prev[i] + weight * next[i];\n\t\t}\n\t}", "private float lerp(float t, float a, float b) {\n return a + t * (b - a);\n }", "private float lerp(float a, float b, float t) {\n return a + (b - a) * t;\n }", "public static final void vector_interpolationLinear(JGL_3DVector v1, JGL_3DVector v2, float p, JGL_3DVector result) {\r\n if (p < 0f || p > 1f) {\r\n return;\r\n }\r\n\r\n float z = 1 - p;\r\n result.x = (z * v1.x) + (p * v2.x);\r\n result.y = (z * v1.y) + (p * v2.y);\r\n result.z = (z * v1.z) + (p * v2.z);\r\n }", "private static float lerp(float a, float b, float t) {\n return a + (b - a) * t;\n }", "float interpolate(float initialValue, float currentValue, float alpha);", "public abstract AnimatableValue interpolate(AnimatableValue result,\n AnimatableValue to,\n float interpolation,\n AnimatableValue accumulation,\n int multiplier);", "static final void interp_Wo2( final JMODEL interp, final JMODEL prev, final JMODEL next, final float weight )\n\t{\n\t\t/* trap corner case where voicing est is probably wrong */\n\n\t\tif( interp.voiced && ! prev.voiced && ! next.voiced ) {\n\t\t\tinterp.voiced = false;\n\t\t}\n\n\t\t/* Wo depends on voicing of this and adjacent frames */\n\n\t\tif( interp.voiced ) {\n\t\t\tif( prev.voiced && next.voiced ) {\n\t\t\t\tinterp.Wo = (1.0f - weight) * prev.Wo + weight * next.Wo;\n\t\t\t}\n\t\t\tif( ! prev.voiced && next.voiced ) {\n\t\t\t\tinterp.Wo = next.Wo;\n\t\t\t}\n\t\t\tif( prev.voiced && ! next.voiced ) {\n\t\t\t\tinterp.Wo = prev.Wo;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tinterp.Wo = Jdefines.TWO_PI / Jdefines.P_MAX;\n\t\t}\n\t\tinterp.L = (int)(Jdefines.PI / interp.Wo);\n\t}", "private static final double interpolateLinear( final double fst, final double snd, final double f ) {\n return fst * ( 1 - f ) + snd * f;\n }", "public static int lerp( int a, int b, double t )\n {\n return a + (int) ((b - a) * t);\n }", "private static Vector3f blendTranslations(\n float weight2, Vector3f tra1, Vector3f tra2) {\n Vector3f result;\n if (tra1 == null) {\n if (tra2 == null) {\n result = new Vector3f();\n } else {\n result = tra2.clone();\n }\n } else if (tra2 == null) {\n result = tra1.clone();\n } else {\n result = MyVector3f.lerp(weight2, tra1, tra2, null);\n }\n\n return result;\n }", "public UV lerp(UV uv, double alpha)\n\t{\n\t\tthis.u += (uv.u - this.u) * alpha;\n\t\tthis.v += (uv.v - this.v) * alpha;\n\t\treturn this;\n\t}", "static final float interp_energy2(final float prev_e, final float next_e, final float weight)\n\t{\n\t\treturn (float)(Math.pow( 10.0, (1.0 - (double)weight) * Math.log10( (double)prev_e ) + (double)weight * Math.log10( (double)next_e ) ));\n\t}", "public Vector2f lerp (Vector2f other, float t)\n {\n return lerp(other, t, new Vector2f());\n }", "public double interpolate(double x1, double x2);", "private double interpolatedIndex(\n PriceIndexValues values,\n YearMonth month1,\n YearMonth month2,\n double weight1,\n double weight2) {\n\n double indexReferenceStart1 = values.value(month1);\n double indexReferenceStart2 = values.value(month2);\n return weight1 * indexReferenceStart1 + weight2 * indexReferenceStart2;\n }", "private float interpolate(float a, float b, float t) {\n return a + (b - a) * t;\n }", "public static int lerpI(int a, int b, int f) {\r\n return (a * (1 - f)) + (b * f);\r\n }", "public Color4f lerpLocal (Color4f other, float t)\n {\n return lerp(other, t, this);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
java.util.concurrent.Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest estimateTemplateCostRequest);
[ "public abstract double monthlyCost();", "java.util.concurrent.Future<EstimateTemplateCostResult> estimateTemplateCostAsync();", "double getCost();", "@Test public void estimatedMonthlyCostTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n \n Assert.assertEquals(6.475, pb1.estimatedMonthlyCost(), 0.00001);\n }", "ShipmentCostEstimate createShipmentCostEstimate();", "public double getCosts();", "public float averageMonthlyCost() {\n HashMap<String, ArrayList<Trip>> monthlyTrip = new HashMap<String, ArrayList<Trip>>();\n ArrayList<Float> prices = new ArrayList<>();\n float totalSum = 0F;\n\n for (Card card : this.cards) {\n for (Trip trip : card.getTrips()) {\n int month = trip.getStartTime().getMonth().getValue();\n int year = trip.getStartTime().getYear();\n\n String yearMonth = year + \"/\" + month;\n\n monthlyTrip.computeIfAbsent(yearMonth, k -> new ArrayList<Trip>()).add(trip);\n }\n }\n\n for (String key : monthlyTrip.keySet()) {\n float sum = 0F;\n for (Trip trip : monthlyTrip.get(key)) {\n sum += trip.getCurrentPrice();\n }\n prices.add(sum);\n }\n\n for (float price : prices) {\n totalSum += price;\n }\n\n return totalSum / prices.size();\n\n }", "@Test public void monthlyCostTest() throws NegativeValueException {\n \n PetBunny pb = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n \n Assert.assertEquals(\"cost test\", 6.48, pb.estimatedMonthlyCost(), 0.01);\n }", "float getCost();", "public int monthlyCostPerSquareFoot() {\n int mCostPerSquareFoot = 0; //initialize to zero to avoid divide by zero error\n if (footage > 0) {\n mCostPerSquareFoot = rent / footage;\n }\n return mCostPerSquareFoot;\n }", "public _179._6._235._119.cebwebservice.Bill billing_CalculateDetailMonthlyBill(java.lang.String accessToken, int tariff, int kwh) throws java.rmi.RemoteException;", "String getCostPrice();", "double getCostBasisForPortfolio(int portfolioNumber, int year, int month, int day);", "public abstract double getCost();", "public String calculateWorkflowCost(String ret) {\n\n\t\t\tif (this.totalCostEUR != 0 && this.totalCostUSD == 0 && this.totalCostGBP == 0) {\n\t\t\t\tthis.totalCost = this.totalCostEUR;\n\t\t\t\tthis.totalCurrency = \"EUR\";\n\t\t\t} else if (this.totalCostEUR == 0 && this.totalCostUSD != 0 && this.totalCostGBP == 0) {\n\t\t\t\tthis.totalCost = totalCostUSD;\n\t\t\t\tthis.totalCurrency = \"USD\";\n\t\t\t} else if (this.totalCostEUR == 0 && this.totalCostUSD == 0 && this.totalCostGBP != 0) {\n\t\t\t\tthis.totalCost = totalCostGBP;\n\t\t\t\tthis.totalCurrency = \"GBP\";\n\t\t\t} else {\n\t\t\t\tret = \" (\" + this.totalCostEUR + \" \" + \"EUR\" + \", \" + this.totalCostUSD + \" \" + \"USD\" + \", \"\n\t\t\t\t\t\t+ this.totalCostGBP + \" \" + \"GBP)\" + ret;\n\t\t\t\tdouble rateUSD = 0.89;\n\t\t\t\tdouble rateGBP = 1.41;\n\t\t\t\tthis.totalCost = this.totalCostEUR + this.totalCostUSD * rateUSD + this.totalCostGBP * rateGBP;\n\t\t\t\tthis.totalCost = round(this.totalCost, 2);\n\t\t\t\tthis.totalCurrency = \"EUR\";\n\t\t\t}\n\t\t\tif (this.totalCost != 0) {\n\t\t\t\tret = this.totalCost + \" \" + this.totalCurrency + ret;\n\t\t\t\treturn ret;\n\t\t\t\t// System.out.println(this.totalCost + \" \" +\n\t\t\t\t// this.totalCurrency+ret);\n\t\t\t}\n\t\t\treturn \"\";\n\t\t}", "public double getUnit_cost_material_cost();", "public abstract java.lang.String getCentr_cost_sap();", "double getStockCost(double commissionFee);", "public double getMonthlyInt(double anualInt)\r\n{\r\n\tmonthlyInt = (anualInt / 12) * .01;\r\n\tmonthlyInt = monthlyInt * balance;\r\n\t\r\n\treturn monthlyInt;\r\n\t\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The constructor for the Stats object. Contains a list of games.
public Stats() { games = new ArrayList(); }
[ "public GameManager() {\n this.games = new ArrayList<>();\n }", "ScoreboardServer(ArrayList<ChallengeResponseGame> games) {\n this.games = games;\n }", "public Game()\n {\n players = new ArrayList<>();\n diceNum = new Dice();\n }", "public Player(){\n jerseyNum = 0;\n name = \"\";\n inGame = false;\n stats = new ArrayList<PlayerStats>();\n\n }", "private Stats(){}", "public Game(String id){\n this.id = id;\n players = new ArrayList<>();\n }", "public StatsTracker() {\n\t\tthis.handStats = new ArrayList<HandStats>();\n\t}", "public Scores() {\n list = new int[50];\n }", "public League()\r\n {\r\n year = 2020;\r\n teams = new Team[30];\r\n\r\n //hawks\r\n\r\n Player traeYoung = new Player(\"Trae\", \"Young\", 92, 72, 96, 84, 8, 21);\r\n Player johnCollins = new Player(\"John\", \"Collins\", 85, 74, 91, 83, 4, 22);\r\n Player clintCapela = new Player(\"Clint\", \"Capela\", 83, 85, 86, 89, 3, 26);\r\n Player deHunter = new Player(\"DeAndre\", \"Hunter\", 78, 74, 83, 87, 6, 22);\r\n Player camReddish = new Player(\"Cam\", \"Reddish\", 75, 74, 94, 90, 8, 20);\r\n\r\n teams[0] = new Team(\"Atlana Hawks\", traeYoung, johnCollins, clintCapela, deHunter, \r\n camReddish, 0);\r\n\r\n //celtics \r\n\r\n Player kemba = new Player(\"Kemba\", \"Walker\",87, 82, 89, 83, 7, 30);\r\n Player jayTatum = new Player(\"Jayson\", \"Tatum\", 88, 87, 96, 93, 9, 22);\r\n Player jayBrown = new Player(\"Jaylen\", \"Brown\",86, 88, 88, 95, 5, 23);\r\n Player gorHayward = new Player(\"Gordon\", \"Hayward\", 79, 81, 85, 85, 6, 30);\r\n Player mSmart = new Player(\"Marcus\", \"Smart\", 77, 84, 81, 88, 3, 26);\r\n\r\n teams[1] = new Team(\"Boston Celtics\", kemba, jayTatum, jayBrown, gorHayward,\r\n mSmart, 1);\r\n\r\n //nets\r\n\r\n Player kD = new Player(\"Kevin\", \"Durant\", 97, 95, 98, 96, 10, 31);\r\n Player kyrie = new Player(\"Kyrie\", \"Irving\", 94, 87, 96, 90, 9, 28);\r\n Player levert = new Player(\"Caris\", \"Levert\", 79, 78, 87, 86, 6, 25);\r\n Player jAllen = new Player(\"Jaret\", \"Allen\", 79, 83, 88, 91, 2, 22);\r\n Player dJord = new Player(\"Deandre\", \"Jordan\", 77, 79, 83, 83, 1, 31);\r\n\r\n teams[2] = new Team(\"Brooklyn Nets\", kD, kyrie, levert, jAllen, dJord, 2);\r\n\r\n //hornets\r\n\r\n Player insect = new Player(\"Devonte\", \"Graham\", 79, 78, 84, 84, 7, 25);\r\n Player mBridge = new Player(\"Miles\", \"Bridges\", 77, 77, 89, 87, 6, 22);\r\n Player tRoz = new Player(\"Terry\", \"Rozier\", 79, 79, 81, 81, 3, 26);\r\n Player pjWash = new Player(\"PJ\", \"Washington\", 75, 77, 84, 83, 5, 21);\r\n Player cZeller = new Player(\"Cody\", \"Zeller\", 75, 75, 75, 75, 1, 27);\r\n\r\n teams[3] = new Team(\"Charlotte Hornets\", insect, mBridge, tRoz, pjWash, cZeller, 3);\r\n\r\n //bulls\r\n\r\n Player lavine = new Player(\"Zach\", \"Lavine\", 84, 78, 92, 84, 8, 25);\r\n Player wcjr = new Player(\"Wendell\", \"Carter Jr\", 79, 81, 85, 85, 2, 21);\r\n Player cobyWhite = new Player(\"Coby\", \"White\", 76, 75, 88, 85, 7, 20);\r\n Player marksman = new Player(\"Lauri\", \"Markkanen\", 83, 81, 87, 83, 6, 23);\r\n Player otto = new Player(\"Otto\", \"Porter Jr\", 82, 76, 83, 78, 5, 26);\r\n\r\n teams[4] = new Team(\"Chicago Bulls\", lavine, wcjr, cobyWhite, marksman, otto, 4);\r\n\r\n //cavs\r\n\r\n Player drum = new Player(\"Andre\", \"Drummond\", 82, 87, 88, 93, 2, 26);\r\n Player kLove = new Player(\"Kevin\", \"Love\", 83, 83, 87, 83, 5, 31);\r\n Player cSex = new Player(\"Colin\", \"Sexton\", 76, 75, 84, 87, 6, 21);\r\n Player trisTh = new Player(\"Tristan\", \"Thompson\", 77, 79, 79, 79, 1, 29);\r\n Player kPort = new Player(\"Kevin\", \"Porter Jr\",75, 74, 83, 84, 8, 20);\r\n\r\n teams[5] = new Team(\"Cleveland Caveliers\", drum, kLove, cSex, trisTh, kPort, 5);\r\n\r\n //mavs\r\n\r\n Player luka = new Player(\"Luka\", \"Doncic\", 93, 87, 98, 92, 10, 21);\r\n Player uniC = new Player(\"Kristaps\", \"Porzingis\", 89, 90, 93, 95, 8, 24);\r\n Player sethC = new Player(\"Seth\", \"Curry\", 81, 74, 85, 78, 7, 29);\r\n Player dPow = new Player(\"Dwight\", \"Powell\", 77, 75, 83, 83, 1, 28);\r\n Player hard = new Player(\"Tim\", \"Hardaway Jr\", 77, 79, 81, 81, 1, 28);\r\n\r\n teams[6] = new Team(\"Dallas Mavericks\", luka, uniC, sethC, dPow, hard, 6);\r\n\r\n //nuggets\r\n\r\n Player joker = new Player(\"Nikola\", \"Jokic\", 91, 91, 95, 95, 9, 25);\r\n Player jMurray = new Player(\"Jamal\", \"Murray\", 83, 85, 89, 89, 7, 23);\r\n Player millsap = new Player(\"Paul\", \"Millsap\", 80, 80, 80, 80, 6, 35);\r\n Player barton = new Player(\"Will\", \"Barton\", 80, 81, 81, 81, 5, 29);\r\n Player mpj = new Player(\"Michael\", \"Porter Jr\", 78, 78, 92, 92, 9, 21);\r\n\r\n teams[7] = new Team(\"Denver Nuggets\", joker, jMurray, millsap, barton, mpj, 7);\r\n\r\n //pistons\r\n\r\n Player dRose = new Player(\"Derrik\", \"Rose\", 82, 80, 84, 81, 10, 31);\r\n Player blakeG = new Player(\"Blake\", \"Griffin\", 83, 83, 85, 85, 6, 31);\r\n Player kennard = new Player(\"Luke\", \"Kennard\", 79, 85, 87, 81, 3, 23);\r\n Player coronaWd = new Player(\"Christian\", \"Wood\", 79, 81, 82, 86, 5, 24);\r\n Player jHen = new Player(\"John\", \"Henson\", 73, 72, 73, 73, 1, 29);\r\n\r\n teams[8] = new Team(\"Detriot Pistons\", dRose, blakeG, kennard, coronaWd, jHen, 8);\r\n\r\n //warriors\r\n\r\n Player steph = new Player(\"Stephen\", \"Curry\", 98, 90, 99, 90, 10, 32);\r\n Player klay = new Player(\"Klay\", \"Thompson\", 89, 91, 91, 94, 9, 30);\r\n Player donk = new Player(\"Draymond\", \"Green\", 75, 83, 80, 89, 2, 30);\r\n Player wiggs = new Player(\"Andrew\", \"Wiggins\", 80, 82, 91, 89, 7, 25);\r\n Player ePasch = new Player(\"Eric\", \"Paschall\", 76, 79, 84, 87, 6, 23);\r\n\r\n teams[9] = new Team(\"Golden State Warriors\", steph, klay, donk, wiggs, ePasch, 9);\r\n\r\n //rockets\r\n\r\n Player harden = new Player(\"James\", \"Harden\", 95, 78, 97, 85, 4, 30);\r\n Player brick = new Player(\"Russell\", \"Westbrook\", 92, 87, 92, 87, 8, 31);\r\n Player roco = new Player(\"Robert\", \"Covington\", 81, 83, 83, 83, 2, 29);\r\n Player pjT = new Player(\"PJ\", \"Tucker\", 72, 78, 72, 78, 1, 35);\r\n Player ericGord = new Player(\"Eric\", \"Gordon\", 84, 81, 88, 80, 7, 31);\r\n\r\n teams[10] = new Team(\"Houston Rockets\", harden, brick, roco, pjT, ericGord, 10);\r\n\r\n //pacers\r\n\r\n Player sabon = new Player(\"Domantas\", \"Sabonis\", 82, 74, 85, 80, 7, 24);\r\n Player brog = new Player(\"Malcom\", \"Brogdon\", 84, 82, 91, 91, 5, 27);\r\n Player olad = new Player(\"Victor\", \"Oladipo\", 87, 92, 91, 95, 9, 28);\r\n Player tjW = new Player(\"TJ\", \"Warren\", 80, 80, 80, 80, 5, 26);\r\n Player mTurn = new Player(\"Miles\", \"Turner\", 76, 85, 80, 90, 6, 24);\r\n\r\n teams[11] = new Team(\"Indiana Pacers\", sabon, brog, olad, tjW, mTurn, 11);\r\n\r\n //clippers\r\n\r\n Player kawhi = new Player(\"Kahwi\", \"Leonard\", 95, 98, 95, 99, 10, 28);\r\n Player PG = new Player(\"Paul\", \"George\", 92, 93, 94, 96, 3, 29);\r\n Player trez = new Player(\"Montrezl\", \"Harrel\", 84, 86, 86, 90, 7, 26);\r\n Player lou = new Player(\"Lou\", \"Williams\", 83, 79, 86, 78, 8, 33);\r\n Player patBev = new Player(\"Patrick\", \"Beverly\", 81, 86, 82, 92, 3, 29);\r\n\r\n teams[12] = new Team(\"Los Angeles Clippers\", kawhi, PG, trez, lou, patBev, 12);\r\n\r\n //lakers\r\n\r\n Player bron = new Player(\"Lebron\", \"James\", 97, 96, 99, 99, 7, 35);\r\n Player AD = new Player(\"Anthony\", \"Davis\", 95, 95, 99, 99, 8, 27);\r\n Player kuz = new Player(\"Kyle\", \"Kuzma\", 77, 76, 83, 78, 6, 24);\r\n Player mcG = new Player(\"Javale\", \"McGee\", 80, 82, 82, 82, 2, 32);\r\n Player rondo = new Player(\"Rajon\", \"Rondo\", 78, 76, 78, 76, 1, 34);\r\n\r\n teams[13] = new Team(\"Los Angeles Lakers\", bron, AD, kuz, mcG, rondo, 13);\r\n\r\n //grizzlies\r\n\r\n Player ja = new Player(\"Ja\", \"Morant\", 84, 82, 97, 95, 8, 20);\r\n Player jjj = new Player(\"Jaren\", \"Jackson Jr\", 82, 84, 87, 89, 8, 21);\r\n Player jonasV = new Player(\"Jonas\", \"Valanciunas\", 81, 81, 83 ,83, 3, 29);\r\n Player bClarke = new Player(\"Brandon\", \"Clarke\", 76, 78, 87, 85, 3, 23);\r\n Player jWins = new Player(\"Justice\", \"Winslow\", 81, 80, 89, 89, 3, 24);\r\n\r\n teams[14] = new Team(\"Memphis Grizzlies\", ja, jjj, jonasV, bClarke, jWins, 14);\r\n\r\n //miami heat\r\n\r\n Player bam = new Player(\"Bam\", \"Adebayo\", 86, 89, 89, 93, 8, 22);\r\n Player butler = new Player(\"Jimmy\", \"Butler\", 87, 91, 91, 94, 9, 30);\r\n Player goran = new Player(\"Goran\", \"Dragic\", 81, 81, 81, 81, 4, 34);\r\n Player herr = new Player(\"Tyler\", \"Herro\", 82, 79, 95, 92, 10, 20);\r\n Player nunn = new Player(\"Kendrick\", \"Nunn\", 77, 75, 81, 84, 4, 22);\r\n\r\n teams[15] = new Team(\"Miami Heat\", bam, butler, goran, herr, nunn, 15);\r\n\r\n //bucks\r\n\r\n Player giannis = new Player(\"Giannis\", \"Antetokounmpo\", 98, 97, 99, 99, 4, 25);\r\n Player kmill = new Player(\"Khris\", \"Middleton\", 88, 86, 89, 87, 6, 28);\r\n Player eBled = new Player(\"Eric\", \"Bledsoe\", 84, 86, 86, 86, 6, 30);\r\n Player bLop = new Player(\"Brook\", \"Lopez\", 84, 84, 87, 87, 7, 32);\r\n Player gHill = new Player(\"George\", \"Hill\", 78, 76, 80, 80, 1, 34);\r\n\r\n teams[16] = new Team(\"Milwaukee Bucks\", giannis, kmill, eBled, bLop, gHill, 16);\r\n\r\n //twolves\r\n\r\n Player dLo = new Player(\"DeAngelo\", \"Russell\", 89, 83, 91, 87, 9, 24);\r\n Player kat = new Player(\"Karl Anthony\", \"Towns\", 91, 91, 94, 94, 6, 24);\r\n Player cul = new Player(\"Jarrett\", \"Culver\", 75, 77, 84, 92, 7, 21);\r\n Player oko = new Player(\"Josh\", \"Okogie\", 79, 81, 85, 85, 4, 21);\r\n Player mb = new Player(\"Malik\", \"Beasley\", 76, 74, 80, 80, 5, 23);\r\n\r\n teams[17] = new Team(\"Minnesota Timberwolves\", dLo, kat, cul, oko, mb, 17);\r\n\r\n //pels\r\n\r\n Player zion = new Player(\"Zion\", \"Williamson\", 79, 82, 99, 99, 8, 20);\r\n Player lonzo = new Player(\"Lonzo\", \"Ball\", 82, 82, 91, 93, 2, 22);\r\n Player hayes = new Player(\"Jackson\", \"Hayes\", 78, 79, 85, 87, 5, 20);\r\n Player ingram = new Player(\"Brandon\", \"Ingram\", 87, 86, 96, 91, 10, 23);\r\n Player reddick = new Player(\"JJ\", \"Reddick\", 81, 76, 81, 76, 7, 33);\r\n\r\n teams[18] = new Team(\"New Orleans Pelicans\", zion, lonzo, hayes, ingram, reddick, 18);\r\n\r\n //knicks \r\n\r\n Player rj = new Player(\"RJ\", \"Barrett\", 79, 83, 95, 95, 7, 20);\r\n Player mRob = new Player(\"Mitchell\", \"Robinson\", 79, 86, 82, 94, 1, 22);\r\n Player jRand = new Player(\"Julius\", \"Randle\", 86, 81, 88, 84, 5, 25);\r\n Player knox = new Player(\"Kevin\", \"Knox\", 72, 71, 88, 89, 4, 22);\r\n Player dsj = new Player(\"Dennis\", \"Smith Jr\", 79, 75, 83, 85, 6, 23);\r\n\r\n teams[19] = new Team(\"New York Knicks\", rj, mRob, jRand, knox, dsj, 19);\r\n\r\n //thunder\r\n\r\n Player cp3 = new Player(\"Chris\", \"Paul\", 85, 85, 85, 85, 10, 35);\r\n Player sg1 = new Player(\"Shai\", \"Gilgeous-Alexander\", 84, 84, 92, 92, 7, 21);\r\n Player steveA = new Player(\"Steven\", \"Adams\", 81, 87, 85, 88, 2, 26);\r\n Player galo = new Player(\"Danilo\", \"Gallinari\", 87, 83, 87, 83, 7, 31);\r\n Player shroe = new Player(\"Dennis\", \"Schroder\", 84, 77, 86, 80, 4, 26);\r\n\r\n teams[20] = new Team(\"Oklahoma City Thunder\", cp3, sg1, steveA, galo, shroe, 20);\r\n\r\n //magic\r\n\r\n Player vuc = new Player(\"Nikola\", \"Vucevic\", 86, 84, 88, 86, 7, 29);\r\n Player aGord = new Player(\"Aaron\", \"Gordon\", 79, 77, 89, 85, 3, 24);\r\n Player moBamba = new Player(\"Mo\", \"Bamba\", 76, 79, 91, 99, 4, 22);\r\n Player jIsaac = new Player(\"Jonathan\", \"Isaac\", 82, 82, 91, 85, 7, 22);\r\n Player fultz = new Player(\"Markelle\", \"Fultz\", 79, 78, 96, 92, 9, 22);\r\n\r\n teams[21] = new Team(\"Orlando Magic\", vuc, aGord, moBamba, jIsaac, fultz, 21);\r\n\r\n //sixers\r\n\r\n Player embiid = new Player(\"Joel\", \"Embiid\", 92, 89, 96, 93, 8, 26);\r\n Player benS = new Player(\"Ben\", \"Simmons\", 93, 89, 98, 96, 9, 23);\r\n Player tobi = new Player(\"Tobias\", \"Harris\", 86, 84, 89, 87, 4, 27);\r\n Player horf = new Player(\"Al\", \"Horford\", 84, 86, 84, 90, 6, 42);\r\n Player jRich = new Player(\"Josh\", \"Richardson\", 83, 84, 87, 87, 7, 26);\r\n\r\n teams[22] = new Team(\"Philadelphia 76ers\", embiid, benS, tobi, horf, jRich, 22);\r\n\r\n //suns\r\n\r\n Player booker = new Player(\"Devin\", \"Booker\", 91, 84, 97, 90, 10, 23);\r\n Player ayton = new Player(\"Deandre\", \"Ayton\", 81, 83, 87, 90, 3, 21);\r\n Player oubre = new Player(\"Kelly\", \"Oubre\", 79, 75, 85, 80, 8, 24);\r\n Player rrubio = new Player(\"Ricky\", \"Rubio\", 76, 76, 80, 80, 4, 29);\r\n Player baynes = new Player(\"Aron\", \"Baynes\", 78, 75, 81, 81, 7, 33);\r\n\r\n teams[23] = new Team(\"Phoenix Suns\", booker, ayton, oubre, rrubio, baynes, 23);\r\n\r\n //blazers\r\n\r\n Player dame = new Player(\"Damian\", \"Lilliard\", 94, 91, 96, 96, 10, 29);\r\n Player hWhite = new Player(\"Hassan\", \"Whiteside\", 83, 84, 85, 90, 2, 30);\r\n Player cjM = new Player(\"CJ\", \"McCollum\", 84, 83, 89, 88, 6, 28);\r\n Player nurk = new Player(\"Jusuf\", \"Nurkic\", 78, 79, 84, 84, 4, 25);\r\n Player melo = new Player(\"Carmelo\", \"Anthony\", 78, 74, 78, 74, 9, 36);\r\n\r\n teams[24] = new Team(\"Portland Trail Blazers\", dame, hWhite, cjM, nurk, melo, 24);\r\n\r\n //kings\r\n\r\n Player dfox = new Player(\"Deaaron\", \"Fox\", 85, 85, 93, 93, 7, 22);\r\n Player bags = new Player(\"Marvin\", \"Bagley III\", 83, 81, 88, 88, 8, 21);\r\n Player buddy = new Player(\"Buddy\", \"Hield\", 84, 82, 86, 86, 9, 27);\r\n Player rHolm = new Player(\"Richaun\", \"Holmes\", 79, 81, 83, 83, 3, 26);\r\n Player barn = new Player(\"Harrison\", \"Barnes\", 77, 77, 79, 79, 6, 28);\r\n\r\n teams[25] = new Team(\"Sacramento Kings\", dfox, bags, buddy, rHolm, barn, 25);\r\n\r\n //spurs\r\n\r\n Player dRoz = new Player(\"Demar\", \"Derozan\", 84, 84, 84, 84, 7, 30);\r\n Player ald = new Player(\"LaMarcus\", \"Aldridge\", 82, 83, 87, 88, 5, 34);\r\n Player dMur = new Player(\"Dejonte\", \"Murray\", 83, 82, 89, 91, 7, 23);\r\n Player dwite = new Player(\"Derrik\", \"White\", 79, 81, 86, 89, 6, 25);\r\n Player gay = new Player(\"Rudy\", \"Gay\", 83, 83, 83, 83, 8, 33);\r\n\r\n teams[26] = new Team(\"San Antonio Spurs\", dRoz, ald, dMur, dwite, gay, 26);\r\n\r\n //raptors\r\n\r\n Player siak = new Player(\"Pascal\", \"Siakam\", 89, 89, 92, 93, 9, 26);\r\n Player lowry = new Player(\"Kyle\", \"Lowry\", 84, 86, 84, 86, 3, 34);\r\n Player fvv = new Player(\"Fred\", \"VanVleet\", 84, 81, 87, 80, 8, 26);\r\n Player serge = new Player(\"Serge\", \"Ibaka\", 80, 82, 80, 82, 6, 30);\r\n Player marc = new Player(\"Marc\", \"Gasol\", 79, 79, 79, 79, 6, 35);\r\n\r\n teams[27] = new Team(\"Toronto Raptors\", siak, lowry, fvv, serge, marc, 27);\r\n\r\n //jazz\r\n\r\n Player dmitch = new Player(\"Donovan\", \"Mitchell\", 89, 91, 94, 94, 9, 23);\r\n Player corona = new Player(\"Rudy\", \"Gobert\", 87, 93, 87, 97, 1, 27);\r\n Player bojan = new Player(\"Bojan\", \"Bogdanovic\", 83, 82, 85, 83, 9, 31);\r\n Player jClark = new Player(\"Jordan\", \"Clarkson\", 85, 83, 86, 80, 4, 27);\r\n Player mCon = new Player(\"Mike\", \"Conley\", 78, 79, 78, 79, 8, 32);\r\n\r\n teams[28] = new Team(\"Utah Jazz\", dmitch, corona, bojan, jClark, mCon, 28);\r\n\r\n //wizards\r\n\r\n Player beal = new Player(\"Bradley\", \"Beal\", 92, 87, 94, 90, 9, 26);\r\n Player jWall = new Player(\"John\", \"Wall\", 83, 85, 90, 91, 5, 29);\r\n Player bertans = new Player(\"Davis\", \"Bertans\", 85, 75, 88, 80, 2, 27);\r\n Player rui = new Player(\"Rui\", \"Hachimura\", 76, 75, 89, 85, 6, 22);\r\n Player bry = new Player(\"Thomas\", \"Bryant\", 75, 73, 79, 80, 4, 22);\r\n\r\n teams[29] = new Team(\"Washington Wizards\", beal, jWall, bertans, rui, bry, 29);\r\n\r\n //sorting\r\n\r\n for (int i = 0; i < 30; i++)\r\n {\r\n teams[i].sortByOvr();\r\n }\r\n }", "public PopularityContestGame(){}", "public ScoreList(){\r\n\t\tnumItems = 0;\r\n\t\tscoreList = new Score[100];\r\n\t}", "public Game() {\r\n this.title = \"Baldur's Gate\";\r\n this.price = 19.99;\r\n this.platform = \"PC\";\r\n this.genre = \"Role playing game\";\r\n this.quality = 4.5;\r\n this.gameImage = \"\";\r\n }", "public Genre(String name){\n this.name = name;\n games = new ArrayList<>();\n }", "public Player() {\n\t\tint[] start = { 2, 2, 2, 2, 2, 2, 2, 2, 2 };\n\t\tsetStats(start);\n\t}", "public List<Game> getGameList() {\n return this.games;\n }", "public BoardGame()\n\t{\n\t\tplayerPieces = new LinkedHashMap<String, GamePiece>();\n\t\tplayerLocations = new LinkedHashMap<String, Location>();\n\t\t\n\t}", "public Championship()\n {\n drivers = new ListOfDrivers();\n venues = new ListOfVenues();\n }", "public ArrayList<int[]> getGameStats()\r\n\t{\r\n\t\treturn stats;\r\n\t}", "public int getGames() {\n return games;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Start the RTCP receiver
public void startRtcpReceiver() { rtcpReceiver = new RtcpReceiver(rtcpDatagramSocket, true); }
[ "private void startChirp() {\n ChirpManager manager = ChirpManager.getInstance(getContext());\n mChirpStartMillis = System.currentTimeMillis();\n ChirpError error = manager.startReceiver();\n if (error.getCode() > 0) {\n Log.e(ChirpManager.TAG, \"ChirpError: \" + error.getMessage());\n }\n }", "public void start() {\r\n // Send the first RTCP packet\r\n long delay = (long) (Math.random() * SECS_TO_MS) + DELAY_CONSTANT;\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n globalReceptionStats.resetBytesRecd();\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n }", "@Override\n public void run()\n {\n try\n {\n if (_initOk)\n {\n if (_wait)\n Thread.sleep(150);\n\n try\n {\n Thread.sleep(100);\n Runtime rt = Runtime.getRuntime();\n if (!_rdpFile.exists())\n org.apache.log4j.Logger.getRootLogger().error(\"The file \" + _rdpFile + \" doesn't exist!!!\");\n else\n {\n Process pr = rt.exec(\"cmd /c mstsc \\\"\" + _rdpFile + \"\\\"\");\n pr.waitFor();\n }\n }\n catch (Exception e)\n {\n if (e.getMessage() != null)\n org.apache.log4j.Logger.getRootLogger().error(e.getMessage());\n e.printStackTrace();\n }\n\n org.apache.log4j.Logger.getRootLogger().debug(_server + \" - RDP Job finished\");\n if (_rdpFile.exists())\n _rdpFile.delete();\n if (RdpManager.toBeDeletedRdp(_server))\n RdpManager.removeFromToBeDeletedRdp(_server);\n else\n RdpManager.removeFinishedRdp(_server);\n }\n }\n catch (Exception e)\n {\n if (e.getMessage() != null)\n org.apache.log4j.Logger.getRootLogger().error(e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tZMQ.Socket frontEnd = context.socket(ZMQ.SUB);\n\t\t\t\t//frontEnd.connect(\"tcp://\" + FRONT_HOST + \":\" + FRONT_PORT);\n\t\t\t\tfrontEnd.connect(FRONT_URL);\n\t\t\t\tfrontEnd.subscribe(\"\".getBytes());\n\n\t\t\t\t//ZMQ.Socket backEnd = context.socket(ZMQ.XPUB);\n\t\t\t\tZMQ.Socket backEnd = context.socket(ZMQ.PUSH);\n\t\t\t\tbackEnd.bind(BACK_URL);\n\n\t\t\t\tLOGGER.info(\"Start streamer with \" + FRONT_URL + \" and \" + BACK_URL);\n\n\t\t\t\t\n\t\t\t\t// Working!\n\t\t\t\t//ZMQ.proxy(frontEnd, backEnd, null);\n\t\t\t\t\n\t\t\t\t// Working!\n\t\t\t\tZMQ.device(ZMQ.STREAMER, frontEnd, backEnd);\n\n\t\t\t\tfrontEnd.close();\n\t\t\t\tbackEnd.close();\n\t\t\t\tLOGGER.info(\"Goodbye.\");\n\t\t\t}", "public void start() {\n\t\tif(stateChecker == null)\n\t\t\ttry {\n\t\t\t\tselectWebcam();\n\t\t\t\tacceptNewSocket();\n\t\t\t\tacceptNewSocket();\t//android activity calls twice but idk;\n\t\t\t\tstateChecker = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\twhile(true) {\n\t\t\t\t\t\t\tif(androidSender.getState() == State.TERMINATED || reconnect == true) {\n\t\t\t\t\t\t\t\treconnect = false;\n\t\t\t\t\t\t\t\tandroidSender = null;\n\t\t\t\t\t\t\t\tsv.start();\n\t\t\t\t\t\t\t\tbreak;\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\tstateChecker.start();\n\t\t\t\t\n\t\t\t\trun();\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\telse {\n\t\t\tif(cinfo != null) { \n\t\t\t\tcinfo.dispose();\n\t\t\t\tcinfo = null;\n\t\t\t}\n\t\t\tif(stateChecker != null) stateChecker = null;\n\t\t\tif(androidSender != null) androidSender = null;\n\t\t\tstart();\n\t\t}\n\t}", "public void startReceiver(int port) {\r\n\t\tif(receiver == null) {\r\n\t\t\ttry {\r\n\t\t\t\treceiver = new Receiver(port);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// TODO what if thread still running?\r\n\t}", "public void Server(){\n \n Receiver Receptor = new Receiver();\n Receptor.StartServer(ConectionPort);\n \n \n }", "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "public void startInbound();", "public static void startUDP() {\n\n\t\t// UDP communication\n\t\tRunnable task = () -> {\n\t\t\treceive();\n\t\t};\n\n\t\tThread thread = new Thread(task);\n\t\tthread.start();\n\n\t}", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "private void startMessageReceiverThread() throws IOException {\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile (!willTerminate) {\n\t\t\t\t\t\treceive();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}, \"messageReceiver\").start();\n\t}", "public void connect() throws IOException {\n ReceiverService.start(port, context, serviceReceiver);\n }", "public static void start() {\n enableIncomingMessages(true);\n }", "private void runThread ()\n {\n cb_thread = new Thread (this, \"TcpConnection\");\n cb_thread.setDaemon (true);\n cb_thread.start();\n }", "public void run()\n {\n myLog.addMessage(4, \"PeerCore.run: Starting PeerCore run() thread...\");\n\n flushDiscovery();\n try\n {\n runDiscovery();\n }\n catch (InterruptedException ex1)\n {\n }\n\n/*\n // create a new BidirectionalPipeService\n bps = new BidirectionalPipeService(peerGroup);\n\n if(vars.JXTA_PEER_NAME.equals(\"GForce_PEER_A\"))\n runBidirectionalSubmitPipe(readBidirectionalPipeAdv());\n\n if(vars.JXTA_PEER_NAME.equals(\"GForce_PEER_B\"))\n //runBidirectionalAcceptPipe(initBidirectionalAcceptPipe(null));\n runBidirectionalAcceptPipe(initBidirectionalAcceptPipe(readBidirectionalPipeAdv()));\n*/\n\n createPipeAdv();\n\n/*\n //acts as SERVER\n if (vars.JXTA_PEER_NAME.equals(\"GForce_PEER_A\"))\n {\n if(peerService.startServer())\n peerService.receiveMessages();\n else\n myLog.addMessage(2, \"PeerCore.run: Failed to start Server\");\n }\n\n //acts as CLIENT\n if (vars.JXTA_PEER_NAME.equals(\"GForce_PEER_B\"))\n {\n peerService.startClient();\n }\n*/\n\n //acts as SERVER\n myLog.addMessage(4, \" Starting Peer Server...\");\n PeerServerSideThread psst = new PeerServerSideThread();\n PeerClientSideThread pcst = new PeerClientSideThread();\n\n if (!peerService.startServer())\n // psst.start();\n // else\n myLog.addMessage(2, \"PeerCore.run: Failed to start Server\");\n\n //acts as CLIENT\n myLog.addMessage(4, \" Starting Peer Client...\");\n //pcst.start();\n peerService.startClient();\n\n myLog.addMessage(4, \"Peer Server and Client successfully running.\");\n }", "public void start() {\n\n serverThread.start(); // Start tcp server\n }", "public synchronized void start()\n {\n Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {\n mConnectThread.cancel();\n mConnectThread = null;\n }\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {\n mConnectedThread.cancel();\n mConnectedThread = null;\n }\n // Cancel any thread listening for a connection\n // and starts a new session\n setState(STATE_LISTEN);\n if (mAcceptThread == null) {\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }\n\n }", "public void start() {\n _running =true;\n try {\n logger.debug(\"Started listening on port \"+ _cfg.getEndpointConfig().getListenerPort() + \" !!!!\");\n //Start listening\n initialize();\n snmpCore.addCommandResponder(this);\n }\n catch (Exception e){\n e.printStackTrace();\n _running =false;\n }\n\n\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last encountered comment that is not an ASCII art.
@Nullable public String getLastComment() { return myLastComment; }
[ "private static String unfinishedComment() {\r\n\t\treturn \"ERROR: File ended before closing comment.\";\r\n\t}", "public abstract char getCommentChar();", "public String getLastComment()\n \t{\n \t\treturn lastComment;\n \t}", "private String endOfCommentOperator() {\n if( sourceLine.charAt(sourcePos) == '{' )\n return \"}\";\n else if( sourceLine.charAt(sourcePos) == '/' && sourceLine.charAt(sourcePos+1) == '*' )\n return \"*/\";\n else\n return null;\n }", "int getCommentEndOffset(CharSequence commentText);", "private static int getCommentEndPos(char[] charArray, int start) {\n\t\tfor (int i = start; i < charArray.length; i++) {\n\t\t\tif (charArray[i] == '\\n' || i == charArray.length - 1) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public String getLastDocComment() {\r\n\t\treturn s.getLastDocComment();\r\n\t}", "@Test\n public void commentGetHtmlEnd() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"</i></font><br />\", comment.htmlEnd());\n assertNotNull(comment.htmlStart());\n }", "public String summarizeComment() {\n if (comment == null)\n return null;\n\n String[] lines = comment.split(\"\\\\r?\\\\n\");\n return lines[0];\n }", "private String nextNonCommentLine(BufferedReader reader) throws IOException {\n String line;\n do {\n line = reader.readLine();\n if (line != null)\n line = line.trim();\n } while (line != null && line.startsWith(\"#\"));\n\n return line;\n }", "String getCommentWithoutAnnotations();", "public synchronized boolean getLastOutputLineWasComment() {\r\n return _lastOutputLineWasComment;\r\n }", "public java.lang.CharSequence getCOMMENTTXT() {\n return COMMENT_TXT;\n }", "public java.lang.CharSequence getCOMMENTTXT() {\n return COMMENT_TXT;\n }", "private void readTrailingComments() throws CompilerException {\n startLine = line;\n startCol = col;\n lexeme = new ArrayList<>();\n if (eof || peek('\\n')) {\n return;\n }\n byte c = consume();\n switch (c) {\n case ' ':\n case '\\t':\n readTrailingComments();\n return;\n case '/':\n if (peek('/')) {\n while (!eof && !peek('\\n') && !peek('\\r')) {\n consume();\n }\n createComment(TokenType.SINGLECOMMENT);\n if (peek(\"\\r\\n\")) {\n consume(2);\n readTrailingComments();\n } else if (peek('\\n')) {\n consume();\n readTrailingComments();\n }\n return;\n } else if (peek('*')) {\n consume();\n while (!peek(\"*/\")) {\n if (eof) {\n throw exception(\n String.format(\n \"Unterminated comment starting at %s\",\n new Position(filename, startLine, startCol)));\n }\n consume();\n }\n consume(2);\n createComment(TokenType.MULTICOMMENT);\n readTrailingComments();\n return;\n }\n // Not a comment, we want to fall-through\n default:\n index--;\n col--;\n eof = false;\n return;\n }\n }", "private void readComment()\n {\n String rest = remainder();\n if (rest.startsWith(\">\"))\n {\n consume();\n return;\n }\n\n if (rest.startsWith(\"->\"))\n {\n consume(2);\n return;\n }\n\n int index;\n while ((index = input.indexOf(\"--\", pos)) >= 0)\n {\n // In case the comment doesn't end here, go back to second '-' of\n // the \"--\" that was found\n // (to handle the case of \"---\")\n int resumePos = index + 1;\n\n // Skip \"--\"\n pos = index + 2;\n\n if (current() == '!')\n {\n consume();\n }\n else\n {\n consumeWhitespace();\n }\n\n if (current() == '>')\n {\n // End of comment.\n consume();\n return;\n }\n else if (atEnd())\n {\n break;\n }\n else\n {\n pos = resumePos;\n }\n }\n\n // Unterminated comment.\n pos = length;\n }", "protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }", "public char getComment() {\n return comment;\n }", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if this feature is conjunctive.
public boolean isConjunctive() { return true; }
[ "public boolean isConjunction() {\r\n\t\treturn conjunction;\r\n\t}", "boolean hasIsConjured();", "public abstract boolean isCongruent(LambdaTerm P);", "public Boolean conjunction() {\n LOGGER.info(\"Started conjunction operation\");\n if (this.firstOne == null || this.secondOne == null) return null;\n return this.firstOne && this.secondOne;\n }", "public boolean isCompound() { return (asCompound() != null); }", "public boolean hasConvolution() {\n return fieldSetFlags()[2];\n }", "boolean getIsConjured();", "boolean isCondensing();", "public boolean hasConsonant() {\n return hasLetterTile && letterTile.isConsonant();\n }", "boolean hasEnhancedCpcOptInRecommendation();", "boolean isIsDisjoint();", "public boolean isOnConveyor() {\n\t\treturn onConveyor;\n\t}", "public final ManchesterOWLSyntaxAutoComplete.conjunction_return conjunction() {\n ManchesterOWLSyntaxAutoComplete.conjunction_return retval = new ManchesterOWLSyntaxAutoComplete.conjunction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.unary_return conjunct = null;\n ManchesterOWLSyntaxAutoComplete.unary_return u = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:130:2:\n // ( ^( CONJUNCTION (conjunct= unary )+ ) | u= unary )\n int alt6 = 2;\n int LA6_0 = input.LA(1);\n if (LA6_0 == CONJUNCTION) {\n alt6 = 1;\n } else if (LA6_0 >= IDENTIFIER && LA6_0 <= ENTITY_REFERENCE\n || LA6_0 == NEGATED_EXPRESSION || LA6_0 >= SOME_RESTRICTION\n && LA6_0 <= ONE_OF) {\n alt6 = 2;\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 6, 0, input);\n throw nvae;\n }\n switch (alt6) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:2:\n // ^( CONJUNCTION (conjunct= unary )+ )\n {\n match(input, CONJUNCTION, FOLLOW_CONJUNCTION_in_conjunction328);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:17:\n // (conjunct= unary )+\n int cnt5 = 0;\n loop5: do {\n int alt5 = 2;\n int LA5_0 = input.LA(1);\n if (LA5_0 >= IDENTIFIER && LA5_0 <= ENTITY_REFERENCE\n || LA5_0 == NEGATED_EXPRESSION\n || LA5_0 >= SOME_RESTRICTION && LA5_0 <= ONE_OF) {\n alt5 = 1;\n }\n switch (alt5) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:18:\n // conjunct= unary\n {\n pushFollow(FOLLOW_unary_in_conjunction334);\n conjunct = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(conjunct.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt5 >= 1) {\n break loop5;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(5, input);\n throw eee;\n }\n cnt5++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:134:4:\n // u= unary\n {\n pushFollow(FOLLOW_unary_in_conjunction349);\n u = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(u.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "boolean isConversational();", "boolean isTransitive();", "boolean isCompound() throws Exception;", "boolean isCommutative();", "public boolean isConjured() {\n return conjured;\n }", "protected boolean findConclusion() {\n for (NDWffTree ndWffTree : this.premisesList) {\n if (ndWffTree.getWffTree().stringEquals(this.conclusionWff.getWffTree())) {\n this.conclusionWff.setActive(true);\n this.conclusionWff.setDerivedParents(ndWffTree.getDerivedParents());\n this.conclusionWff.setDerivationStep(ndWffTree.getDerivationStep());\n return true;\n }\n }\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the fixture for this Unidades Organicas test case.
private UnidadesOrganicas getFixture() { return (UnidadesOrganicas)fixture; }
[ "private CUsosSubsistemas getFixture() {\r\n\t\treturn (CUsosSubsistemas)fixture;\r\n\t}", "protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}", "protected InformationCriteriaReferencesOrganizer getFixture() {\n\t\treturn fixture;\n\t}", "private ActividadAbstracta getFixture() {\r\n\t\treturn (ActividadAbstracta)fixture;\r\n\t}", "protected Proveedor getFixture() {\n\t\treturn fixture;\n\t}", "@Override\n\tprotected AsignacionCompleja getFixture() {\n\t\treturn (AsignacionCompleja)fixture;\n\t}", "protected Meta getFixture() {\r\n\t\treturn fixture;\r\n\t}", "protected Composite getFixture() {\n\t\treturn fixture;\n\t}", "protected Software getFixture() {\r\n\t\treturn fixture;\r\n\t}", "protected Arena getFixture() {\n\t\treturn fixture;\n\t}", "protected HyNamedElement getFixture() {\r\n\t\treturn fixture;\r\n\t}", "protected Diary getFixture() {\n\t\treturn fixture;\n\t}", "protected StageOneGroup getFixture() {\n\t\treturn fixture;\n\t}", "@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}", "protected Role getFixture() {\n\t\treturn fixture;\n\t}", "protected ResourceType getFixture() {\n\t\treturn fixture;\n\t}", "protected From getFixture() {\n\t\treturn fixture;\n\t}", "protected Axiom getFixture() {\n\t\treturn fixture;\n\t}", "protected ViewType getFixture() {\n\t\treturn fixture;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
counts common buddies in a list using an accumulator
int countCommonBuddies(ILoBuddy that, int acc);
[ "int countCommonBuddiesCons(ConsLoBuddy that, int acc);", "int countCommonBuddiesMT(MTLoBuddy that, int acc);", "private void countCooccurrences() {\n cooccurrences = new HashMap<String, Map<String, Integer>>();\n\n for (KeywordCandidate cand : keywordCandidates) {\n for (String word : cand.getWords()) {\n Map<String, Integer> submap;\n if (cooccurrences.containsKey(word)) {\n submap = cooccurrences.get(word);\n } else {\n submap = new HashMap<String, Integer>();\n cooccurrences.put(word, submap);\n }\n for (String coword : cand.getWords()) {\n int count = cand.getCounter();\n if (submap.containsKey(coword)) {\n count += submap.get(coword) * cand.getCounter();\n }\n submap.put(coword, count);\n }\n }\n }\n }", "public int countClumps(int[] nums) {\n int clumps=0;\n for(int i=0;i<nums.length-1;i++){\n if(nums[i]==nums[i+1])clumps++;\n for(;i<nums.length-1 && nums[i]==nums[i+1];i++);\n }\n return clumps;\n}", "public int getNumberOfCooccurences();", "public static long countPairs(List<Integer> arr) {\n int result = 0;\n for(int i = 0; i<arr.size(); i++){\n for(int j = i+1; j<arr.size(); j++){\n int bitwise = (arr.get(i).intValue() & arr.get(j).intValue());\n int temp = bitwise & (bitwise-1);\n if(temp == 0 && bitwise != 0)\n result++;\n }\n }\n\n return result;\n\n }", "static int countCommon(Node a, Node b) {\n\t\tint count = 0;\n\n\t\t// loop to count coomon in the list starting\n\t\t// from node a and b\n\t\tfor (; a != null && b != null; a = a.next, b = b.next)\n\n\t\t\t// increment the count for same values\n\t\t\tif (a.data == b.data)\n\t\t\t\t++count;\n\t\t\telse\n\t\t\t\tbreak;\n\n\t\treturn count;\n\t}", "private static int carCount(List<UsedCar> carList) {\n int i = 0;\n for (Car count : carList) {\n i++;\n }\n return i; // returns i+1 to accommodate for list starting at zero\n }", "private int countOccurrence(Integer valueToCount) {\n int count = 0;\n\n for(Integer currentValue : list) {\n if (currentValue == valueToCount) {\n count++;\n }\n }\n\n return count;\n }", "public void countOccurencesUsingCollections(List<Integer> integerList){\n\t\tMap<Integer, Integer> countOccurences = new HashMap<Integer, Integer>();\n\t\tfor (Integer integer : integerList) {\n\t\t\tInteger count=0;\n\t\t\tif(countOccurences.containsKey(integer)){\n\t\t\t\tcount = countOccurences.get(integer)+1;\n\t\t\t\tcountOccurences.put(integer, count);\n\t\t\t}else{\n\t\t\t\tcountOccurences.put(integer, count+1);\n\t\t\t}\n\t\t}\n\t\tIterator<Map.Entry<Integer,Integer>> itr = countOccurences.entrySet().iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tMap.Entry<Integer, Integer> pair = (Map.Entry<Integer, Integer>)itr.next();\n\t\t\tSystem.out.println(pair.getKey() + \" = \" + pair.getValue());\n\t\t}\n\t}", "public List<Integer> numDuplicatesList(List<TradeGood> uniqueGoods, TradeGood[] cargoArr) {\n List<Integer> countList = new ArrayList<>();\n for (int i = 0; i < uniqueGoods.size(); i++) {\n int counter = 0;\n for (int j = 0; j < cargoArr.length; j++) {\n if (uniqueGoods.get(i).equals(cargoArr[j])) {\n counter++;\n }\n }\n countList.add(counter);\n }\n return countList;\n }", "public int numComponents(ListNode head, int[] G) {\n HashSet<Integer> set = new HashSet<>();\n for(int num : G)\n set.add(num);\n \n int count = 0;\n ListNode prev = null;\n while(head != null) {\n // If prev is set, it means we are still continuing to search consecutively\n // connected components\n if(prev != null) {\n if(set.contains(head.val))\n // So if head.val is in the set, continue searching consecutive connected\n // components\n prev = head;\n else\n // If head.val is not in the set, set prev to null so the next head.val that is\n // in the set will increment the count of connected components\n prev = null;\n } else {\n // Only time we increment the count is when prev == null && head.val is in the\n // set\n if(set.contains(head.val)) {\n count++;\n prev = head;\n }\n }\n head = head.next;\n }\n return count; \n }", "public int countClumps (int[] inputArray)\n\t\t{\n\t\t\tisArrayEmpty(inputArray);\n\t\t\tthis.newArray = inputArray;\n\t\t\tboolean isAppearFirst = true;\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < newArray.length - 1; i++)\n\t\t\t{\n\t\t\t\tif (isAppearFirst && newArray[i] == newArray[i+1])\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tisAppearFirst = false;\n\t\t\t\t}\n\t\t\t\telse if (newArray[i] != newArray[i+1])\n\t\t\t\t{\n\t\t\t\t\tisAppearFirst = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t}", "private Map<Integer, Integer> countOccurrences() {\n\t\t// Make a map corresponding to each card\n\t\tMap<Integer, Integer> occurrenceMap = new HashMap<Integer, Integer>();\n\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\tString card = hand.get(i);\n\t\t\tint cardNum = new Integer(card.substring(1));\n\t\t\tint occurrences = 0;\n\t\t\tif (occurrenceMap.get(cardNum) != null) {\n\t\t\t\toccurrences = occurrenceMap.get(cardNum);\n\t\t\t}\n\t\t\t// Each time we encounter a card, \n\t\t\t// increment its occurrence count\n\t\t\toccurrenceMap.put(cardNum, occurrences + 1);\n\t\t}\n\t\treturn occurrenceMap;\n\t}", "private int intersectionSize(Set<String> c1, Set<String> c2) {\n int countIntersect = 0;\n \n\n for (String id : c2) {\n if (c1.contains(id)) {\n \n countIntersect++;\n }\n }\n \n \n return countIntersect;// \n \n }", "protected int countList(List input) {\n \n int count = 0;\n \n for (Iterator i = input.iterator();i.hasNext();) {\n \n if (i.next()!=null) count++;\n \n }\n \n return count;\n \n }", "public void counters() \n {\n Card[] hanRay= new Card[hand.size()];\n hanRay = hand.toArray(hanRay);\n\n for (int i=0; i<hanRay.length; i++)\n {\n for (int j=0; j<hanRay.length; j++)\n {\n if (j==i) continue;\n if (hanRay[i].num==hanRay[j].num)\n {\n likeNumb.add(hanRay[i]);\n likeNumb.add(hanRay[j]);\n }\n\n if (hanRay[i].suit==hanRay[j].suit)\n {\n likeSuit.add(hanRay[i]);\n likeSuit.add(hanRay[j]); \n }\n }\n }\n \n sameCard(likeNumb);\n flushes(likeSuit);\n }", "public int countCrossRefs() {\n \n return this.countList(this.crossrefs);\n \n }", "static int numberOfWays(int[] arr, int k) {\n\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n if (!map.containsKey(arr[i])) {\n map.put(arr[i], 1);\n } else {\n map.put(arr[i], map.get(arr[i]) + 1);\n }\n }\n int result = 0;\n Iterator<Map.Entry<Integer, Integer>> iter = map.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry<Integer, Integer> e = iter.next();\n int curNum = (int) e.getKey();\n int countOfOccurance = (int) e.getValue();\n int complement = k - curNum;\n\n if (map.containsKey(complement)) {\n // found target value\n if (curNum == complement) {\n // 3 + 3 = 6\n // add combination of them. count choose 2. For example [3, 3, 3, 3] = 4 choose 2\n result += getCombinationCount(countOfOccurance, 2);\n } else {\n // 1 + 5 = 6\n result += countOfOccurance;\n }\n }\n iter.remove();\n }\n\n return result;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new Merchant.
public Merchant() { super("<NoName>"); }
[ "public SiloCreateMerchantGenerator()\n {\n m_pciMerchant = new SiloConfigPCIMerchant();\n }", "@PostMapping(\"/merchants\")\n @Timed\n public ResponseEntity<Merchant> createMerchant(@Valid @RequestBody MerchantDTO merchantDTO) throws URISyntaxException {\n log.debug(\"REST request to save Merchant : {}\", merchantDTO);\n Merchant result = merchantRepository.save(merchantDTO.toMerchant());\n merchantSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/merchants/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"merchant\", result.getId().toString()))\n .body(result);\n }", "Billing createBilling();", "public void create(PaymentInstrument paymentInstrument);", "public MerchantType addMerchant(LscUserContext userContext, String merchantTypeId, String name, String platformId, String description , String [] tokensExpr) throws Exception;", "private void createPayment() {\n if (currentUser.getAccount_id()==null) {\n //no account, launch onboarding\n openStripeOnboarding();\n } else {\n //if account exists, launch create payment\n Intent intent = new Intent(this, CreatePaymentActivity.class);\n createPaymentResultLauncher.launch(intent);\n }\n }", "public com.gleo.plugins.hexiagon.model.Currency create(long currencyId);", "ShipmentItemBilling createShipmentItemBilling();", "@RequestMapping(value = \"/provideMerchants\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<ProvideMerchant> createProvideMerchant(@RequestBody ProvideMerchant provideMerchant) throws URISyntaxException {\n log.debug(\"REST request to save ProvideMerchant : {}\", provideMerchant);\n if (provideMerchant.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"provideMerchant\", \"idexists\", \"A new provideMerchant cannot already have an ID\")).body(null);\n }\n ProvideMerchant result = provideMerchantRepository.save(provideMerchant);\n return ResponseEntity.created(new URI(\"/api/provideMerchants/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"provideMerchant\", result.getId().toString()))\n .body(result);\n }", "Order create(Personality person, Basket basket, Address address, ShipmentType shipmentType);", "CreateBillingGroupResult createBillingGroup(CreateBillingGroupRequest createBillingGroupRequest);", "public ObjectNode addMerchantService(int uniqueID){\n OntClass merchant = ontReasoned.getOntClass(NS + \"Merchant\");\n Individual merchant1 = ontReasoned.createIndividual(NS + uniqueID, merchant);\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode objectNode1 = mapper.createObjectNode();\n objectNode1.put(\"status:\", \"success\");\n return objectNode1;\n }", "public void createAccount() {\n Account account = new Account();\n bankContext.setCardAlgorithm(new CardStrategy());\n String cardNumber = bankContext.generateValidCardNumber();\n String pin = bankContext.generatePin();\n account.setCardNumber(cardNumber);\n account.setPin(pin);\n //accounts.add(account);\n bankContext.addAccount(connection, account);\n System.out.println(\"\\nYour card has been created\\nYour card number:\\n\" + account.getCardNumber() + \"\\nYour card PIN:\\n\" + account.getPin() + \"\\n\");\n }", "private CreatePaymentLinkRequest createPaymentLinkRequest() {\n CreatePaymentLinkRequest createPaymentLinkRequest = new CreatePaymentLinkRequest();\n\n createPaymentLinkRequest.setReference(\"YOUR_ORDER_NUMBER\");\n createPaymentLinkRequest.setAmount(createAmountObject(\"BRL\", 1000L));\n createPaymentLinkRequest.setCountryCode(\"BR\");\n createPaymentLinkRequest.setMerchantAccount(\"MagentoMerchantTest\");\n createPaymentLinkRequest.setShopperReference(\"YOUR_UNIQUE_SHOPPER_ID\");\n createPaymentLinkRequest.setShopperEmail(\"test@email.com\");\n createPaymentLinkRequest.setShopperLocale(\"pt_BR\");\n createPaymentLinkRequest.setExpiresAt(\"2019-12-17T10:05:29Z\");\n createPaymentLinkRequest.setRequiredShopperFields(Collections.singletonList(CreatePaymentLinkRequest.RequiredShopperFieldsEnum.DELIVERYADDRESS));\n Address address = new Address();\n address.setStreet(\"Street\");\n address.setPostalCode(\"59000060\");\n address.setCity(\"City\");\n address.setHouseNumberOrName(\"999\");\n address.setCountry(\"BR\");\n address.setStateOrProvince(\"SP\");\n createPaymentLinkRequest.setBillingAddress(address);\n createPaymentLinkRequest.setDeliveryAddress(address);\n\n return createPaymentLinkRequest;\n }", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "public void create(Customer customer);", "public PayPal() {}", "CreditCard createCreditCard();", "@org.jetbrains.annotations.NotNull()\n @kotlin.jvm.JvmOverloads()\n @kotlin.jvm.JvmStatic()\n public final com.stripe.android.model.ConfirmSetupIntentParams create(@org.jetbrains.annotations.NotNull()\n com.stripe.android.model.PaymentMethodCreateParams paymentMethodCreateParams, @org.jetbrains.annotations.NotNull()\n java.lang.String clientSecret, @org.jetbrains.annotations.Nullable()\n com.stripe.android.model.MandateDataParams mandateData, @org.jetbrains.annotations.Nullable()\n java.lang.String mandateId) {\n return null;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MovieAdapter constructor that takes the movieList to display within context
public MovieAdapter(Context context, List<Movie> moviesList) { this.mContext = context; this.moviesList = moviesList; }
[ "public MovieAdapter(Context context, ArrayList<Movie> movie) {\n mContext = context;\n mMovie = movie;\n if (movie == null) {\n Log.v(LOG_TAG, \"null movie on MovieAdapter creation\");\n } else {\n Log.v(LOG_TAG, \"Created MovieAdapter (entry count = \" + mMovie.size() + \")\");\n }\n }", "public MoviesAdapter(Context appContext, Movie[] movieResults) {\n this.mInflator = LayoutInflater.from(appContext);\n this.mMovieResults = movieResults;\n mAppContext = appContext;\n\n }", "private void createAdapter() {\n mMovieAdapter = new MovieAdapter(this);\n }", "public void setAdapter(ArrayList<MovieModel> moviesList) {\n this.moviesList = moviesList;\n movieAdapter = new MovieAdapter(getActivity(), R.layout.castdetailscredits_row, this.moviesList);\n listView.setAdapter(movieAdapter);\n }", "public MoviesCursorAdapter(Context mContext) {\n this.mContext = mContext;\n }", "public MovieReviewsAdapter(Context context) {\n mContext = context;\n }", "public viewDetailMovie() {\r\n }", "public MoviesAdapter(@NonNull Activity activity) {\n this.items = new ArrayList<>();\n this.activity = activity;\n }", "public FilmList() {\r\n\r\n\t}", "public SearchMoviesAdapter(ArrayList<Movie> movies, Fragment fragment) {\r\n this._movies = movies;\r\n this._fragment = fragment;\r\n this._activity = fragment.getActivity();\r\n }", "private void setUpAdapter(){\n customMovieAdapter= new CustomMovieAdapter(getActivity(),R.layout.list_movie_forecast,movieRowItemsList);\n gridView.setAdapter(customMovieAdapter);\n }", "public MovieDetail() {\n }", "public void setMovie() {\n MovieLoader movieLoader = new MovieLoader(this);\n Cursor cursor = movieLoader.loadInBackground();\n\n List<MovieResult> movieResult = new ArrayList<>();\n while (cursor.moveToNext()) {\n MovieResult result = new MovieResult();\n result.setOriginalTitle(cursor.getString(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_TITLE)));\n result.setId(cursor.getInt(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_ID)));\n result.setPosterPath(cursor.getString(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_PICTURE)));\n result.setVoteAverage(cursor.getDouble(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_VOTE_AVERAGE)));\n result.setOverview(cursor.getString(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_OVERVIEW)));\n result.setReleaseDate(cursor.getString(cursor.getColumnIndex(MovieContract.MovieEntry.COLUMN_RELEASE_DATE)));\n movieResult.add(result);\n }\n mAdapter.clear();\n mAdapter.addMovieResult(movieResult);\n cursor.close();\n }", "public ContentMovieView(@NonNull Context context) {\n super(context);\n\n bindViews(context);\n }", "public MilesAdapter(Activity context, ArrayList<Album> miles) {\n super(context, 0, miles);\n }", "public PlayerAdapter(Context context, List<Player> playerList) {\n this.context = context;\n this.playerList = playerList;\n }", "public void setMovieList(List<MovieResult> mMovieList) {\n this.mMovieList = mMovieList;\n }", "public ContentMovieView(@NonNull Context context, @Nullable AttributeSet attrs) {\n super(context, attrs);\n\n bindViews(context);\n }", "public TweetAdapter(List<Tweet>tweets){\n this.mTweets = tweets;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves station constants and station indices from given stations constant specifying two stations. stations specifies the stations of interest. On return, station will be filled with the corresponding singestation constants and stationIndex with a unique index in range 0 2.
void checkTwoStations(int stations, int[] stationIndex, int[] station) throws JposException { switch (stations) { case POSPrinterConst.PTR_S_JOURNAL_RECEIPT: case POSPrinterConst.PTR_TWO_RECEIPT_JOURNAL: Device.check(!Data.CapConcurrentJrnRec, JposConst.JPOS_E_ILLEGAL, "No concurrent printing on journal and receipt"); stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_JOURNAL); stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_RECEIPT); break; case POSPrinterConst.PTR_S_JOURNAL_SLIP: case POSPrinterConst.PTR_TWO_SLIP_JOURNAL: Device.check(!Data.CapConcurrentJrnSlp, JposConst.JPOS_E_ILLEGAL, "No concurrent printing on journal and slip"); stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_JOURNAL); stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_SLIP); break; case POSPrinterConst.PTR_S_RECEIPT_SLIP: case POSPrinterConst.PTR_TWO_SLIP_RECEIPT: Device.check(!Data.CapConcurrentRecSlp, JposConst.JPOS_E_ILLEGAL, "No concurrent printing on receipt and slip"); stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_SLIP); stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_RECEIPT); break; default: throw new JposException(JposConst.JPOS_E_ILLEGAL, "Invalid print stations: " + stations); } Device.check(SidewaysCommand[station[0]] != null || SidewaysCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, "No support for printing to two stations when one station is in sideways print mode"); Device.check(PagemodeCommand[station[0]] != null || PagemodeCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, "No support for printing to two stations when one station is in page mode"); Device.check(TransactionCommand[station[0]] != null || TransactionCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, "No support for printing to two stations when one station is in transaction print mode"); }
[ "public List<Station> stations() {\n return List.of(station1, station2);\n }", "public VehicleTypeEnum getVehicleTypesViaStation(StationEntity station) {\n\n StringBuilder vehicleType = new StringBuilder();\n VehicleTypeEnum vehicleTypeEnum = VehicleTypeEnum.BUS;\n String stationNumber = Utils.removeLeadingZeroes(station.getNumber());\n\n StringBuilder query = new StringBuilder();\n query.append(\" SELECT DISTINCT VEHI_TYPE \t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" FROM SOF_VEHI\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" WHERE PK_VEHI_ID\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" IN (SELECT DISTINCT FK_VEST_VEHI_ID\t\t\t\t\t\t\t\\n\");\n query.append(\" \t\tFROM SOF_VEST\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" \t\tWHERE FK_VEST_STAT_ID =\t(SELECT PK_STAT_ID\t\t\t\t\\n\");\n query.append(\" \t\t\t\t\t\t\t\t FROM SOF_STAT\t\t\t\t\t\\n\");\n query.append(\" \t\t\t\t\t\t\t\t WHERE STAT_NUMBER = %s))\t\t\\n\");\n query.append(\" ORDER BY VEHI_TYPE\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\n // Selecting the row that contains the stations data\n Cursor cursor = database.rawQuery(\n String.format(query.toString(), stationNumber), null);\n\n // Iterating the cursor and fill the empty List<Station>\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n vehicleType.append(cursor.getString(0)).append(\"_\");\n cursor.moveToNext();\n }\n\n // Closing the cursor\n cursor.close();\n\n // Get the vehicles' type passing through the station\n if (vehicleType.length() > 0) {\n vehicleType.deleteCharAt(vehicleType.length() - 1);\n\n try {\n vehicleTypeEnum = VehicleTypeEnum.valueOf(vehicleType\n .toString());\n } catch (Exception e) {\n vehicleTypeEnum = VehicleTypeEnum.BUS;\n }\n }\n\n return vehicleTypeEnum;\n }", "public Station[] getAdjacentStations(Station station)\n {\n //Locate the station's index in the list of stations.\n int station_index = -1;\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n station_index = i;\n break;\n }\n }\n //If nothing found, return null. This station does not exist in the graph.\n if (station_index == -1)\n return null;\n\n //Iterate over the row in the matrix containing edges from this station.\n //Extract all stations to which edges extend.\n LinkedList<Station> adjacent_stations = new LinkedList<Station>();\n for (int i = 0; i < edges[station_index].length; ++i)\n {\n if (edges[station_index][i] && stations[i] != null)\n adjacent_stations.add(stations[i]);\n }\n\n return adjacent_stations.toArray(new Station[0]);\n }", "Map<UUID, List<SignalDetection>> findSignalDetectionsByStationIds(\n Collection<UUID> stationIds, Instant start, Instant end);", "public VehicleEntity getVehicleViaStation(StationEntity station) {\n\n VehicleEntity vehicle = null;\n String stationNumber = station.getNumber();\n\n StringBuilder query = new StringBuilder();\n query.append(\" SELECT SOF_VEHI.VEHI_NUMBER, SOF_VEHI.VEHI_TYPE, SOF_VEST.VEST_DIRECTION\t\t\\n\");\n query.append(\" FROM SOF_VEHI\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" \t\tJOIN SOF_VEST\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" \t\t\tON SOF_VEST.FK_VEST_VEHI_ID = SOF_VEHI.PK_VEHI_ID\t\t\t\t\t\\n\");\n query.append(\" \t\tJOIN SOF_STAT\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n query.append(\" \t\t\tON SOF_STAT.PK_STAT_ID = SOF_VEST.FK_VEST_STAT_ID\t\t\t\t\t\\n\");\n query.append(\" \t\t\tAND SOF_STAT.STAT_NUMBER = %s\t\t\t\t\t\t\t\t\t\t\\n\");\n\n // Selecting the row that contains the stations data\n Cursor cursor = database.rawQuery(\n String.format(query.toString(), stationNumber), null);\n\n // Iterating the cursor and fill the empty List<Station>\n if (cursor.getCount() > 0) {\n\n // Moving the cursor to the first column of the selected row\n cursor.moveToFirst();\n\n vehicle = cursorToVehicleStation(cursor);\n }\n\n // Closing the cursor\n cursor.close();\n\n return vehicle;\n }", "public Builder connect(Station station1, Station station2) {\n stationSet[representative(station1.id())] = stationSet[representative(station2.id())];\n return this;\n }", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public void createDebugMap(ArrayList<Station> stations) {\r\n\t\tStation stationValby = new Station(\"Valby\", 1);\r\n\t\tstations.add(stationValby);\r\n\r\n\t\tStation stationFrederiksund = new Station(\"Frederiksund\", 2);\r\n\t\tstations.add(stationFrederiksund);\r\n\r\n\t\tStation stationHerlev = new Station(\"Herlev\", 3);\r\n\t\tstations.add(stationHerlev);\r\n\r\n\t\tStation stationHvidovre = new Station(\"Hvidovre\", 4);\r\n\t\tstations.add(stationHvidovre);\r\n\r\n\t\tStation stationHumsum = new Station(\"Husum\", 5);\r\n\t\tstations.add(stationHumsum);\r\n\r\n\t\tStation stationIslev = new Station(\"Islev\", 6);\r\n\t\tstations.add(stationIslev);\r\n\r\n\t\tStation stationDanshoj = new Station(\"Danshoj\", 7);\r\n\t\tstations.add(stationDanshoj);\r\n\r\n\t\tStation stationSkovlunde = new Station(\"Skovlunde\", 8);\r\n\t\tstations.add(stationSkovlunde);\r\n\r\n\t\t// add neighbor connections\r\n\t\tstationValby.neighbors.add(new Neighbor(stationIslev, 4, 4));\r\n\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationValby, 4, 4));\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationHumsum, 8, 8));\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationSkovlunde, 3, 3));\r\n\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationHerlev, 3, 3));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationFrederiksund, 4, 4));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationHvidovre, 2, 2));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationDanshoj, 3, 3));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationIslev, 8, 8));\r\n\r\n\t\tstationHerlev.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationHerlev.neighbors.add(new Neighbor(stationFrederiksund, 2, 2));\r\n\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHumsum, 4, 4));\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHerlev, 2, 2));\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHvidovre, 5, 5));\r\n\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationHumsum, 2, 2));\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationFrederiksund, 5, 5));\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationDanshoj, 4, 4));\r\n\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationHvidovre, 5, 5));\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationSkovlunde, 10, 10));\r\n\r\n\t\tstationSkovlunde.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationSkovlunde.neighbors.add(new Neighbor(stationDanshoj, 10, 10));\r\n\t}", "Station getStation(long id) throws IOException;", "public int getStationIdx() {\n return stationIdx;\n }", "public abstract Map<Integer, Station> getStations(boolean includeSilent);", "private Station getStationFromList(ArrayList<Station> stations, int id) {\n for (Station station : stations) {\n if (station.getID() == id) {\n return station;\n }\n }\n return null;\n }", "private List<WeatherStation> getWeatherStations(){\n List<WeatherStation> weatherStations = new ArrayList<>();\n List<String> weatherStationList = new ArrayList<>();\n weatherStationList.add(Constants.STATION_CODE_ADELAIDE);\n weatherStationList.add(Constants.STATION_CODE_BRISBANE);\n weatherStationList.add(Constants.STATION_CODE_CAIRNS);\n weatherStationList.add(Constants.STATION_CODE_CANBERRA);\n weatherStationList.add(Constants.STATION_CODE_DARWIN);\n weatherStationList.add(Constants.STATION_CODE_GOLD_COAST);\n weatherStationList.add(Constants.STATION_CODE_HOBART);\n weatherStationList.add(Constants.STATION_CODE_MELBOURNE);\n weatherStationList.add(Constants.STATION_CODE_PERTH);\n weatherStationList.add(Constants.STATION_CODE_SYDNEY);\n\n for(String weatherStationCode : weatherStationList){\n weatherStations.add(WeatherStationFactory.getWeatherStation(weatherStationCode));\n }\n return weatherStations;\n }", "List<Station> getStations(String search,int limit,int offset) throws IOException;", "private void updateStationPositions() {\n //stations going east\n if(layout == Layout.square) {\n for (int i = 0; i < numStations; i++) {\n northbound.get(i).setPosition(i+1,2*numStations+1);\n eastbound.get(i).setPosition(0,numStations+(i+1));\n southbound.get(i).setPosition(numStations+1+i,0);\n westbound.get(i).setPosition(numStations*2+1,1+i);\n }\n }else{\n for (int i = 0; i < numStations; i++) {\n eastbound.get(i).setPosition(i,2*numStations+i);\n northbound.get(i).setPosition(numStations+i,3*numStations+i);\n southbound.get(i).setPosition(2*numStations+i,i);\n westbound.get(i).setPosition(3*numStations+i,numStations+i);\n }\n }\n\n }", "public List<Station> stations() {\n\n List<Station> stations = new ArrayList<>();\n stations.add(station1);\n stations.add(station2);\n\n return stations;\n }", "public Street(Station firstEnd, Station secondEnd, Station... stations) {\r\n if (firstEnd == null || secondEnd == null) {\r\n throw new IllegalArgumentException(\"Street has to contain at least 2 stations\");\r\n }\r\n Set<Station> newStations = new HashSet<>(Arrays.asList(stations));\r\n newStations.add(firstEnd);\r\n newStations.add(secondEnd);\r\n if (newStations.contains(null)) {\r\n throw new IllegalArgumentException(\"Stations cannot contain null\");\r\n }\r\n this.stations = newStations;\r\n this.firstEnd = firstEnd;\r\n this.secondEnd = secondEnd;\r\n }", "java.lang.String getFoundAtStation();", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches this type for the most derived method with a signature that matches the given parameters
public Method findMostDerivedMethod(final String methodName, final List<Type> parameterTypes) { Checker.notNull("parameter:methodName", methodName); Checker.notNull("parameter:parameterTypes", parameterTypes); final MostDerivedMethodFinder finder = new MostDerivedMethodFinder(); finder.setMethodName(methodName); finder.setParameterTypes(parameterTypes); finder.start(this); return finder.getFound(); }
[ "public static Method findMethod(Class<?> clazz, String name, Class<?>... paramTypes) {\n Class<?> searchType = clazz;\n while (searchType != null) {\n Method[] methods = (searchType.isInterface() ? searchType.getMethods() : searchType.getDeclaredMethods());\n for (Method method : methods) {\n if (name.equals(method.getName()) &&\n (paramTypes == null || Arrays.equals(paramTypes, method.getParameterTypes()))) {\n return method;\n }\n }\n searchType = searchType.getSuperclass();\n }\n return null;\n }", "public Method getMostDerivedMethod(final String methodName, final List<Type> parameterTypes) {\r\n\t\tfinal Method method = this.findMostDerivedMethod(methodName, parameterTypes);\r\n\t\tif (null == method) {\r\n\t\t\tthis.throwMethodNotFoundException(methodName, parameterTypes);\r\n\t\t}\r\n\t\treturn method;\r\n\t}", "public MethodInfo findMethodInfo( String name, Signature sig ) ;", "public Method findMethod(final String methodName, final List<Type> parameterTypes) {\r\n\t\tGeneratorHelper.checkJavaMethodName(\"parameter:methodName\", methodName);\r\n\t\tChecker.notNull(\"parameter:parameterTypes\", parameterTypes);\r\n\r\n\t\tMethod found = null;\r\n\r\n\t\tfinal Iterator<Method> methods = this.getMethods().iterator();\r\n\r\n\t\twhile (methods.hasNext()) {\r\n\t\t\tfinal Method method = methods.next();\r\n\t\t\tif (false == method.getName().equals(methodName)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tfinal List<MethodParameter> methodParameters = method.getParameters();\r\n\t\t\tif (methodParameters.size() != parameterTypes.size()) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tfound = method;\r\n\r\n\t\t\tfinal Iterator<MethodParameter> methodParametersIterator = methodParameters.iterator();\r\n\t\t\tfinal Iterator<Type> parameterTypesIterator = parameterTypes.iterator();\r\n\r\n\t\t\twhile (parameterTypesIterator.hasNext()) {\r\n\t\t\t\tfinal Type type = parameterTypesIterator.next();\r\n\t\t\t\tfinal MethodParameter parameter = methodParametersIterator.next();\r\n\t\t\t\tif (false == type.equals(parameter.getType())) {\r\n\t\t\t\t\tfound = null;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (null != found) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t}", "public SootMethod getMethod(String name, List parameterTypes) throws\n ca.mcgill.sable.soot.NoSuchMethodException, ca.mcgill.sable.soot.AmbiguousMethodException\n {\n boolean found = false;\n SootMethod foundMethod = null;\n \n resolveIfNecessary();\n // inefficient\n\n Iterator methodIt = getMethods().iterator();\n\n while(methodIt.hasNext())\n {\n SootMethod method = (SootMethod) methodIt.next();\n\n if(method.getName().equals(name) &&\n parameterTypes.equals(method.getParameterTypes()))\n {\n if(found)\n throw new ca.mcgill.sable.soot.AmbiguousMethodException();\n else { \n found = true;\n foundMethod = method;\n }\n }\n }\n\n if(found)\n return foundMethod;\n else\n throw new ca.mcgill.sable.soot.NoSuchMethodException();\n }", "private static Method getMethod(Class<?> clazz, String methodName, Class[] objects) throws NoSuchMethodException {\n\n List<Method> methods = Arrays.asList(clazz.getMethods());\n\n // filter to methods with the correct name and which accept the correct number of parameters\n methods = methods.stream()\n // filter to methods with the same name\n .filter(method -> method.getName().equals(methodName) && method.getParameters().length == objects.length)\n .collect(Collectors.toList());\n\n // no matches? throw an exception\n if(methods.size() == 0) throw new NoSuchMethodException(\"Could not find a method named '\" + methodName + \"' that accepts the specified arguments, \" + objects);\n\n Method matchingMethod = null;\n\n // find a method that accepts the specified arguments\n for(Method method : methods){\n // if we found a match then we're done!\n if(compareParameters(method.getParameters(), objects)){\n matchingMethod = method;\n break;\n }\n }\n\n if(matchingMethod == null) throw new NoSuchMethodException(\"Could not find a method named '\" + methodName + \"' that accepts the specified arguments, \" + objects);\n\n return matchingMethod;\n\n }", "private Method findMethod(Call call)\n {\n if (call.getScriptName() == null)\n {\n throw new IllegalArgumentException(Messages.getString(\"DefaultRemoter.MissingClassParam\")); //$NON-NLS-1$\n }\n \n if (call.getMethodName() == null)\n {\n throw new IllegalArgumentException(Messages.getString(\"DefaultRemoter.MissingMethodParam\")); //$NON-NLS-1$\n }\n \n Creator creator = creatorManager.getCreator(call.getScriptName());\n Method[] methods = creator.getType().getMethods();\n List available = new ArrayList();\n \n methods:\n for (int i = 0; i < methods.length; i++)\n {\n // Check method name and access\n if (methods[i].getName().equals(call.getMethodName()))\n {\n // Check number of parameters\n if (methods[i].getParameterTypes().length == call.getInboundContext().getParameterCount())\n {\n // Clear the previous conversion attempts (the param types\n // will probably be different)\n call.getInboundContext().clearConverted();\n \n // Check parameter types\n for (int j = 0; j < methods[i].getParameterTypes().length; j++)\n {\n Class paramType = methods[i].getParameterTypes()[j];\n if (!converterManager.isConvertable(paramType))\n {\n // Give up with this method and try the next\n break methods;\n }\n }\n \n available.add(methods[i]);\n }\n }\n }\n \n // Pick a method to call\n if (available.size() > 1)\n {\n log.warn(\"Warning multiple matching methods. Using first match.\"); //$NON-NLS-1$\n }\n \n // At the moment we are just going to take the first match, for a\n // later increment we might pack the best implementation\n if (available.isEmpty())\n {\n return null;\n }\n \n return (Method) available.get(0);\n }", "Block getFindMethod();", "PsiMethod @NotNull [] findMethodsBySignature(@NotNull PsiMethod patternMethod, boolean checkBases);", "private Method getBestMatchingMethod(Object o, String methodName, Class[] parameterClasses) throws NoSuchMethodException {\r\n Method method = null;\r\n boolean hasMatch;\r\n\r\n for (Class c : parameterClasses) {\r\n hasMatch = true;\r\n try {\r\n method = o.getClass().getMethod(methodName, c);\r\n } catch (NoSuchMethodException e) {\r\n hasMatch = false;\r\n }\r\n if (hasMatch)\r\n break;\r\n }\r\n if (method == null)\r\n throw new NoSuchMethodException(\"No Such Method: \" + methodName);\r\n return method;\r\n }", "public String resolveMethodAlias(java.lang.reflect.Method method) {\n if (Modifier.isPrivate(method.getModifiers())) {\n // Note: In practise this branch is never even used\n // The only caller of this method is ClassHook for resolving aliases\n // Only public/protected (overridable) methods are handled there\n\n // Private methods are only matchable when the Class is exactly the same\n if (!this.type.type.equals(method.getDeclaringClass())) {\n return null;\n }\n\n // Go by all the methods; only match with equals()\n for (MethodDeclaration mDec : this.methods) {\n if (mDec.method != null && mDec.method.equals(method)) {\n return mDec.name.real();\n }\n }\n\n return null; // not found\n } else {\n // First check if the methods declared in this Class Declaration even apply\n // Note: Removed, because we can declare methods in both directions\n // A method defined in Car can refer to one in superclass Vehicle\n // And a method defined in Vehicle can refer to one overrided in Car\n // As such, this check makes no sense really.\n //if (!method.getDeclaringClass().isAssignableFrom(this.type.type)) {\n // return null;\n //}\n\n // Check all non-private methods to see if they match\n Class<?>[] mParams = method.getParameterTypes();\n for (MethodDeclaration mDec : this.methods) {\n if (mDec.method == null || Modifier.isPrivate(mDec.method.getModifiers())) {\n continue;\n }\n if (!MPLType.getName(mDec.method).equals(MPLType.getName(method))) {\n continue;\n }\n\n boolean paramsMatch = true;\n Class<?>[] mDecParams = mDec.method.getParameterTypes();\n if (mDecParams.length != mParams.length) {\n continue;\n }\n for (int i = 0; i < mParams.length; i++) {\n if (!mParams[i].equals(mDecParams[i])) {\n paramsMatch = false;\n break;\n }\n }\n if (!paramsMatch) {\n continue;\n }\n\n return mDec.name.real();\n }\n return null; // not found\n }\n }", "private AMethod lookupMethodImplementedInterfaces(\n\t\tIJml2bConfiguration config,\n\t\tString mth_name,\n\t\tVector param_types,\n\t\tAMethod candidate)\n\t\tthrows Jml2bException {\n\t\tEnumeration e = getImplements();\n\t\twhile (e.hasMoreElements()) {\n\t\t\tType t = (Type) e.nextElement();\n\t\t\tAClass cl = t.getRefType();\n\t\t\tcandidate =\n\t\t\t\tcl.lookupMethodInterface(\n\t\t\t\t\tconfig,\n\t\t\t\t\tmth_name,\n\t\t\t\t\tparam_types,\n\t\t\t\t\tcandidate);\n\t\t\tif (candidate != null && candidate.exactMatch(config, param_types)) {\n\t\t\t\treturn candidate;\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "@Nullable\n\t@Override\n\tpublic Method findMethod(Object candidate) {\n\t\tAssert.notNull(candidate, \"candidate object must not be null\");\n\t\tClass<?> targetClass = AopUtils.getTargetClass(candidate);\n\t\tif (targetClass == null) {\n\t\t\ttargetClass = candidate.getClass();\n\t\t}\n\t\treturn this.findMethod(targetClass);\n\t}", "private Method getDeclaredMethodFor(Class<?> clazz, String name, Class<?>... parameterTypes) {\n try {\n return clazz.getDeclaredMethod(name, parameterTypes);\n } catch (NoSuchMethodException e) {\n Class<?> superClass = clazz.getSuperclass();\n if (superClass != null) {\n return getDeclaredMethodFor(superClass, name, parameterTypes);\n }\n }\n return null;\n }", "private static <T extends Method> T findMethodType(Class<T> c,\n \t\t\tIClassDefinition cdef) {\n \t\tfor (Method m : cdef.getMethods())\n \t\t\tif (c.isInstance(m))\n \t\t\t\treturn c.cast(m);\n \t\treturn null;\n \t}", "private FamixMethod findInvokedMethodOnName(String fromClass, String fromMethod, String invokedClassName, String invokedMethodName) {\n \tFamixMethod result = null;\n\t\t/* Test Helper\n\t\tif (fromClass.equals(\"domain.direct.violating.AccessLocalVariable_SetArgumentValue\")){\n\t\t\tboolean breakpoint = true;\n\t\t} */\n\n \t// 1) If methodNameAsInInvocation matches with a method unique name, return that method. \n \tString searchKey = invokedClassName + \".\" + invokedMethodName;\n \tif (theModel.behaviouralEntities.containsKey(searchKey)) {\n \t\treturn (FamixMethod) theModel.behaviouralEntities.get(searchKey);\n \t}\n \t// 2) Find out if there are more methods with the same name of the invoked class. If only one method is found, then return this method. \n \tString methodName = invokedMethodName.substring(0, invokedMethodName.indexOf(\"(\")); // Methodname without signature\n \t searchKey = invokedClassName + \".\" + methodName;\n \tif (sequencesPerMethod.containsKey(searchKey)){\n \t\tArrayList<FamixMethod> methodsList = sequencesPerMethod.get(searchKey);\n \t\tif (methodsList.size() == 0) {\n \t\t\treturn result;\n \t\t} else if (methodsList.size() == 1) {\n \t\t\t// FamixMethod result1 = methodsList.get(0);\n \t\t\treturn methodsList.get(0);\n \t\t} else { // 3) if there are more methods with the same name, then compare the invocation arguments with the method parameters.\n \t\t\tString invocationSignature = invokedMethodName.substring(invokedMethodName.indexOf(\"(\"));;\n \t\t\tString contentsInvocationSignature = invocationSignature.substring(invocationSignature.indexOf(\"(\") + 1, invocationSignature.indexOf(\")\")); \n \t\t\tString[] invocationArguments = contentsInvocationSignature.split(\",\");\n \t\t\tint numberOfArguments = invocationArguments.length;\n \t\t\t// 3a) If there is only one method with the same number of parameters as invocationArguments, then return this method\n \t\t\tList<FamixMethod> matchingMethods1 = new ArrayList<FamixMethod>();\n\t \t\tfor (FamixMethod method : methodsList){\n\t \t\t\tif ((method.signature != null) && (!method.signature.equals(\"\"))) {\n\t\t \t\t\tString contentsmethodParameter = method.signature.substring(method.signature.indexOf(\"(\") + 1, method.signature.indexOf(\")\")); \n\t\t \t\t\tString[] methodParameters = contentsmethodParameter.split(\",\");\n\t\t \t\t\tif (methodParameters.length == numberOfArguments) {\n\t\t \t\t\t\tmatchingMethods1.add(method);\n\t\t \t\t\t}\n\t \t\t\t}\n\t \t\t} \n\t \t\tif (matchingMethods1.size() == 0)\n\t \t\t\treturn result;\n\t \t\tif (matchingMethods1.size() == 1)\n\t \t\t\treturn matchingMethods1.get(0);\n \t\t\t\n \t\t\t// 3b) If there is only one method where the first parameter type == the first argument type, then return this method \n \t\t\tList<FamixMethod> matchingMethods2 = new ArrayList<FamixMethod>();\n \t\t\tif (numberOfArguments >= 1) {\n \t\t\t\t// Replace the argument string by a type, in case of an attribute\n \t\t\t\tinvocationArguments[0] = getTypeOfAttribute(fromClass, fromMethod, invocationArguments[0]);\n \t \t\tfor (FamixMethod matchingMethod1 : matchingMethods1){\n \t \t\t\tString contentsmethodParameter = matchingMethod1.signature.substring(matchingMethod1.signature.indexOf(\"(\") + 1, matchingMethod1.signature.indexOf(\")\")); \n \t \t\t\tString[] methodParameters = contentsmethodParameter.split(\",\");\n \t \t\t\tif (methodParameters.length >= 1) {\n \t \t\t\tmethodParameters[0] = getfullPathOfDeclaredType(fromClass, methodParameters[0]);\n \t \t\t\t\tif (methodParameters[0].equals(invocationArguments[0])) {\n \t \t\t\t\t\tmatchingMethods2.add(matchingMethod1);\n \t \t\t\t\t}\n \t \t\t\t}\n \t \t\t\t\n \t \t\t} \n \t \t\tif (matchingMethods2.size() == 0)\n \t \t\t\treturn result;\n \t \t\tif (matchingMethods2.size() == 1)\n \t \t\t\treturn matchingMethods2.get(0);\n \t\t\t}\n \t\t\t// If there is only one method where the second parameter type == the first argument type, then return this method \n \t\t\tif (numberOfArguments >= 2) {\n \t\t\t\tmatchingMethods1.clear();\n \t\t\t\t// Replace the argument string by a type, in case of an attribute\n \t\t\t\tinvocationArguments[1] = getTypeOfAttribute(fromClass, fromMethod, invocationArguments[1]);\n \t \t\tfor (FamixMethod matchingMethod2 : matchingMethods2){\n \t \t\t\tString contentsmethodParameter = matchingMethod2.signature.substring(matchingMethod2.signature.indexOf(\"(\") + 1, matchingMethod2.signature.indexOf(\")\")); \n \t \t\t\tString[] methodParameters = contentsmethodParameter.split(\",\");\n \t \t\t\tif (methodParameters.length >= 2) {\n \t \t\t\tmethodParameters[1] = getfullPathOfDeclaredType(fromClass, methodParameters[1]);\n \t \t\t\t\tif (methodParameters[1].equals(invocationArguments[1])) {\n \t \t\t\t\t\tmatchingMethods1.add(matchingMethod2);\n \t \t\t\t\t}\n \t \t\t\t}\n \t \t\t\t\n \t \t\t} \n \t \t\tif (matchingMethods1.size() == 0)\n \t \t\t\treturn result;\n \t \t\tif (matchingMethods1.size() == 1)\n \t \t\t\treturn matchingMethods1.get(0);\n \t\t\t}\n \t\t}\n\t\t}\n \treturn result; \n }", "public MethodDeclaration findMethod(MethodDeclaration declaration) {\n for (MethodDeclaration mDec : this.methods) {\n if (mDec.match(declaration)) {\n return mDec;\n }\n }\n return null;\n }", "public static void getCandidateSignatures(String baseClassName, String methodName) {\n\n if (overrideFactory == null) \n overrideFactory = new MethodOverrideFactory();\n else\n overrideFactory.flush();\n\n overrideFactory.baseClassName = baseClassName;\n overrideFactory.methodName = methodName;\n\n try {\n\n DynamicClassLoader dcl = new DynamicClassLoader();\n Vector methods = overrideFactory.getOverrideableMethods\n (dcl.loadClass(baseClassName), methodName);\n\n for (int i = 0; i < methods.size(); ++i) {\n Method m = (Method) methods.elementAt(i);\n Signature s = new Signature(m, overrideFactory);\n boolean containsSignature = false;\n for (int j = 0; j < overrideFactory.candidates.size(); ++j) \n if (s.equals(overrideFactory.candidates.elementAt(j))) {\n containsSignature = true;\n break;\n }\n if (! containsSignature) \n overrideFactory.candidates.addElement(s);\n }\n\n int n = overrideFactory.candidates.size();\n\n if (n > 0) {\n\tString res = \"(list \";\n\tfor (int i = 0; i < n; ++i) {\n\t Signature s = (Signature) overrideFactory.candidates.elementAt(i);\n s.setTruncating(false);\n\t String p = s.getParameters(s.getMethod().getParameterTypes(), false);\n s.setTruncating(true);\n\t res = res + \"\\\"\" + methodName + \"(\" + p + \")\\\" \";\n\t}\n\tres = res + \")\";\n\tprintln(res);\n }\n else\n\tprintln(\"(error \\\"Could not find any method named \" +\n\t\tmethodName + \" in \" + baseClassName + \n\t\t\" or any of its superclasses.\\\")\");\n\n }\n catch (ClassNotFoundException ee) {\n println(\"(error \\\"Could not find class \" + \n\t baseClassName + \"\\\")\");\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n static Method findMatchingMethod(Class<?> runtimeClass,\n JDiffClassDescription.JDiffMethod method) {\n Method[] methods = runtimeClass.getDeclaredMethods();\n\n for (Method m : methods) {\n if (matches(method, m)) {\n return m;\n }\n }\n\n return null;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getdisablePaymentModes returns a list of Payment modes which merchant wants to disable. Currently this returns null.
public static List<PaymentMode> getdisablePaymentModes() { List<PaymentMode> list = new ArrayList<PaymentMode>(); PaymentMode paymentMode1 = new PaymentMode("CC"); paymentMode1.setChannels(new ArrayList<String>()); paymentMode1.getChannels().add(EChannelId.WEB.getValue()); paymentMode1.getChannels().add(EChannelId.APP.getValue()); PaymentMode paymentMode2 = new PaymentMode("DC"); paymentMode2.setChannels(new ArrayList<String>()); paymentMode2.getChannels().add(EChannelId.WEB.getValue()); paymentMode2.getChannels().add(EChannelId.APP.getValue()); list.add(paymentMode1); list.add(paymentMode2); return list; }
[ "public static List<PaymentMode> getEnablePaymentModes() {\n\t\tList<PaymentMode> list = new ArrayList<PaymentMode>();\n\t\tPaymentMode paymentMode1 = new PaymentMode(\"CC\");\n\t\tpaymentMode1.setChannels(new ArrayList<String>());\n\t\tpaymentMode1.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode1.getChannels().add(EChannelId.APP.getValue());\n\n\t\tPaymentMode paymentMode2 = new PaymentMode(\"DC\");\n\t\tpaymentMode2.setChannels(new ArrayList<String>());\n\t\tpaymentMode2.getChannels().add(EChannelId.WEB.getValue());\n\t\tpaymentMode2.getChannels().add(EChannelId.APP.getValue());\n\n\t\tlist.add(paymentMode1);\n\t\tlist.add(paymentMode2);\n\n\t\treturn list;\n\t}", "public Enumeration getSupportedPortletModes() {\r\n return portletModes.elements();\r\n }", "public abstract List<MODE> getModes();", "public static List<ITargetMode> getTargetModes() {\n return modeList;\n }", "public java.lang.String[][] getPayModeList (java.lang.String cde) throws com.mcip.orb.CoException {\n return this._delegate.getPayModeList(cde);\n }", "public java.util.Enumeration getSupportedPortletModes() {\n return new Enumerator(portletModes);\n }", "public java.lang.String getPaymentMode() {\n return paymentMode;\n }", "public java.lang.String getPaymentMode() {\n return paymentMode;\n }", "String getModes();", "public String[] getModes() throws EV3LibraryException{\n\t\tString modesstr;\n\t\ttry {\n\t\t\tmodesstr = Sysfs.getAttribute(CLASS_NAME, \"port\" + port, \"modes\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new EV3LibraryException(\"Get modes attribute failed\", e);\n\t\t}\n\t\treturn Sysfs.separateSpace(modesstr);\n\t}", "public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}", "public Set<String> getDisabledFeatures() {\n return disabledFeatures;\n }", "@Nullable PortSecurityDisableStrategy getPortSecurityDisableStrategy();", "public Integer getDisable() {\r\n return disable;\r\n }", "public List getTeachModes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getTeachModes();\r\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "public final OverlayType[] getDrawingModes() {\n\t\tJsArrayString types = getDrawingModesImpl();\n\t\tif (types == null) {\n\t\t\treturn null;\n\t\t}\n\t\tOverlayType[] r = new OverlayType[types.length()];\n\t\tfor (int i = 0; i < types.length(); i++) {\n\t\t\tr[i] = OverlayType.fromValue(types.get(i));\n\t\t}\n\t\treturn r;\n\t}", "public Map<String, ArrayList<Integer>> modes() {\n return this.modes;\n }", "public java.lang.String[] getDisabledExpressionList() {\r\n return disabledExpressionList;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "virtualized" attribute
public void xsetVirtualized(org.apache.xmlbeans.XmlString virtualized) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VIRTUALIZED$22); if (target == null) { target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VIRTUALIZED$22); } target.set(virtualized); } }
[ "public void setVirtualized(java.lang.String virtualized)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VIRTUALIZED$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VIRTUALIZED$22);\r\n }\r\n target.setStringValue(virtualized);\r\n }\r\n }", "public void setVirtual(boolean virtual) {\n\t\tthis.virtual = virtual;\n\t}", "@ManagedAttribute\n public void setVirtualAgent(String virtualAgent){\n this.virtualAgent = virtualAgent;\n }", "private <T, V> RichAttribute<T, V> setUpVirtualRichAttribute(\n\t\tT holder1,\n\t\tV holder2,\n\t\tString name\n\t) throws Exception {\n\t\tAttributeDefinition attributeDefinition = new AttributeDefinition();\n\t\tattributeDefinition.setNamespace(\"urn:perun:user:attribute-def:virt\");\n\t\tattributeDefinition.setFriendlyName(name);\n\t\tAttribute attribute = new Attribute(attributeDefinition);\n\t\treturn new RichAttribute<>(holder1, holder2, attribute);\n\t}", "public void setVirtualCard(String value) {\n setAttributeInternal(VIRTUALCARD, value);\n }", "@ManagedAttribute\n public void setVirtualHost(String virtualHost){\n this.virtualHost = virtualHost;\n }", "public org.apache.xmlbeans.XmlString xgetVirtualized()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VIRTUALIZED$22);\r\n return target;\r\n }\r\n }", "public boolean isSetVirtualized()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(VIRTUALIZED$22) != null;\r\n }\r\n }", "public java.lang.String getVirtualized()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VIRTUALIZED$22);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public void unsetVirtualized()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(VIRTUALIZED$22);\r\n }\r\n }", "public final void setIsVirtual(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean isvirtual)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.IsVirtual.toString(), isvirtual);\n\t}", "public final void setIsVirtual(java.lang.Boolean isvirtual)\n\t{\n\t\tsetIsVirtual(getContext(), isvirtual);\n\t}", "VEXAttribute createVEXAttribute();", "public void setVirtualid(Integer virtualid) {\n this.virtualid = virtualid;\n }", "void setAttribute(PropertyNoun newattr);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setVirtualAgentLocator(String virtualAgentLocator) {\n this.virtualAgentLocator = virtualAgentLocator;\n }", "public void setAttr(String name, byte val)\n{\n\tsetAttr(name,new Byte(val));\n}", "public void setVirtualWiki(String virtualWiki) {\r\n \t\tthis.virtualWiki = virtualWiki;\r\n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accuracy test for public BillingCostAuditService getBillingCostAuditService().
public void testGetBillingCostAuditServiceAccuracy() throws Exception { this.billingCostAuditService = new BillingCostAuditServiceMockImpl(); this.instance.setBillingCostAuditService(billingCostAuditService); assertEquals("BillingCostAuditService should match.", billingCostAuditService, this.instance.getBillingCostAuditService()); }
[ "public void testSetBillingCostAuditServiceAccuracy() throws Exception {\r\n this.billingCostAuditService = new BillingCostAuditServiceMockImpl();\r\n this.instance.setBillingCostAuditService(billingCostAuditService);\r\n assertEquals(\"BillingCostAuditService should match.\", billingCostAuditService,\r\n this.instance.getBillingCostAuditService());\r\n }", "public interface BillingCostDataService {\r\n /**\r\n * This method gets the billing cost report by the search criteria. If none found, returns an empty list in the\r\n * PagedResult entity. <br>\r\n * The results will be pages as requested. pageNo is 1-based, and if it is -1 then all pages are returned. If\r\n * paging is requested, then pageSize is used to set the size of the page.\r\n *\r\n * @param criteria\r\n * the search criteria: If null/empty, there is no filtering.\r\n * @param pageNo\r\n * the 1-based number of the page to return (if -1, then all pages are returned)\r\n * @param pageSize\r\n * the size of the page to return (ignored if pageNo=-1)\r\n * @return the billing costs that meet the search criteria\r\n * @throws IllegalArgumentException\r\n * If pageNo = 0 or <-1 or pageSize < 1 unless pageNo = -1\r\n * @throws BillingCostServiceException\r\n * If there are any errors during the execution of this method\r\n */\r\n public PagedResult<BillingCostReportEntry> getBillingCostReport(BillingCostReportCriteria criteria,\r\n int pageNo, int pageSize) throws BillingCostServiceException;\r\n\r\n /**\r\n * This method exports the selected records from billing cost report, as identified by the list of payments\r\n * identifiers.\r\n *\r\n * @param paymentAreaId\r\n * the ID of the payment area\r\n * @param paymentIds\r\n * the billing entry identifiers\r\n * @param user\r\n * the TCSubject\r\n * @throws IllegalArgumentException\r\n * If paymentIds is null/empty or contains null entries, or user is null\r\n * @throws BillingCostServiceException\r\n * If there are any errors during the execution of this method\r\n */\r\n public void exportBillingCostData(List<PaymentIdentifier> paymentIds, long paymentAreaId, TCSubject user)\r\n throws BillingCostServiceException;\r\n}", "@Test\r\n\tpublic void defaultCreditServiceTest(){\r\n\t\tLoanApplication loanApplication = new LoanApplication();\r\n\t\tloanApplication.setAppliedAmount(100);\r\n\t\tApplicationDecision decision = loanDecisionEngine.processLoanApplication(loanApplication);\r\n\t\tassertNotNull(decision);\r\n\t\tassertTrue(decision.getApplicantCreditScore()==1);\r\n\t}", "@Test\r\n\tpublic void company1CreditServiceTest(){\r\n\t\tLoanApplication loanApplication = new LoanApplication();\r\n\t\tloanApplication.setAppliedAmount(600);\r\n\t\tApplicationDecision decision = loanDecisionEngine.processLoanApplication(loanApplication);\r\n\t\tassertNotNull(decision);\r\n\t\tassertNull(decision.getApplicantCreditScore());\r\n\t}", "@Test\n public void testAutoBidCostRequest() {\n // TODO: test AutoBidCostRequest\n }", "public CostInfo getCostInfo();", "public void testDetermineCost() {\n System.out.println(\"determineCost\");\n Event event = null;\n Costable instance = new CostableImpl();\n Cost expResult = null;\n Cost result = instance.determineCost(event);\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 }", "public interface BudgetRateAndBaseService {\n\n /**\n * Calculates the applicable F & A rate for the given award. This should be\n * the F&A rate based on the start date of the award's budget.\n *\n * @param award\n * the award to calculate the applicable rate for\n * @return a BudgetDecimal representing the rate, or null or no rate for the\n * given affective date could be found\n * @throws IllegalArgumentException\n * if the given award is null\n * @throws IllegalArgumentException\n * if the given award does not have a budget\n * @throws IllegalStateException\n * if the located budget does not have a start date\n */\n ScaleTwoDecimal calculateApplicableFandARate(Award award);\n\n}", "public interface CostItemService \r\n{\r\n\r\n /**\r\n * Add an CostItem record to db\r\n * @param CostItemModel \r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public void createCostItem(CostItemModel costItemModel) throws AAException, RemoteException;\r\n \r\n /**\r\n * Create cost item for asset.\r\n *\r\n * @param costResId costResId\r\n * @param assetModel AssetMasterModel\r\n * @throws AAException\r\n * @throws RemoteException \r\n */\r\n public void createCostItemForAsset(Long costResId, AssetMasterModel assetModel) throws AAException, RemoteException;\r\n\r\n /**\r\n * Update the CostItem data\r\n * @param CostItemModel\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public void editCostItem(CostItemModel CostItemModel) throws AAException, RemoteException;\r\n\r\n /**\r\n * Remove an CostItem record from db\r\n * @param CostItemPK\r\n * @param auditID\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public void removeCostItemByPK(CostItemPK costItemPK, String auditID) throws AAException, RemoteException;\r\n\r\n\r\n /**\r\n * Select Cost Item list by condition\r\n * method getCostItemListByPK\r\n * @param costItemPK\r\n * @return Collection\r\n */\r\n public Collection getCostItemListByPK(CostItemPK costItemPK) throws AAException, RemoteException;\r\n\r\n\r\n /**\r\n * Select Cost Item model by pk\r\n * method getCostItemListByPK\r\n * @param costItemPK\r\n * @return Collection\r\n */\r\n public CostItemModel getCostItemByPK(CostItemPK costItemPK) throws AAException, RemoteException;\r\n\r\n /**\r\n * Select Cost Item List\r\n * method getCostItemListByCostType\r\n * @param servProvCode\r\n * @param costType\r\n * @return Collection\r\n */\r\n public Collection getCostItemListByCostType(String servProvCode, String costType) throws AAException, RemoteException;\r\n /*\r\n * Select Cost Item list by condition\r\n * method getCostItemList\r\n * @param costItemPK\r\n * @return Collection\r\n */\r\n public Collection getCostItemList(CostItemModel costItem, QueryFormat queryFormat) throws AAException, RemoteException;\r\n /**\r\n * Select Cost Item model by pk and status\r\n * method getCostItemListByPK\r\n * @param costItemPK\r\n * @return Collection\r\n */\r\n public CostItemModel getCostItemByPKSatatus(CostItemModel costItemModel) throws AAException, RemoteException;\r\n \r\n /**\r\n * get recipients which were assigned to the agency,group,module,user.\r\n *\r\n * @param servProvCode servProvCode\r\n * @param levels levels\r\n * @return\r\n * @throws AAException \r\n */\r\n public List<XPolicyModel> getCostItemPolicyListByLevels(CostItemModel costItemModel, Map<String, String> levels)\r\n\t\t\tthrows AAException, RemoteException;\r\n \r\n /**\r\n * Gets the accessible cost item list.\r\n * \r\n * @param costItemList the cost item list\r\n * @param levels the levels\r\n * \r\n * @return the accessible cost item list\r\n * \r\n * @throws AAException the AA exception\r\n * @throws RemoteException the remote exception\r\n */\r\n public List<CostItemModel> getAccessibleCostItemList(List<CostItemModel> costItemList, Map<String, String> levels)\r\n\t\t\tthrows AAException, RemoteException;\r\n \r\n /**\r\n * get cost item model list from primary key list\r\n *\r\n * @param costItempkList List of cost item primary key\r\n * @return\r\n * @throws AAException \r\n */\r\n public List<CostItemModel> getCostItemModelListByPKList(List<CostItemPK> costItempkList) throws AAException;\r\n \r\n /**\r\n * Gets the cost type list by category.\r\n * \r\n * @param servProvCode the service provide code\r\n * @param category the category\r\n * \r\n * @return the cost type list by category\r\n * \r\n * @throws AAException the AA exception\r\n */\r\n public List<String> getCostTypeListByCategory(String servProvCode, String category) throws AAException;\r\n \r\n \r\n /**\r\n * Gets the cost item list by spc.\r\n * \r\n * @param serviceProviderCode the service provider code\r\n * @param queryModel the query model\r\n * \r\n * @return the cost item list by spc\r\n * \r\n * @throws AAException the AA exception\r\n */\r\n public List<com.accela.orm.model.workorder.CostItemModel> getCostItemListBySPC(String serviceProviderCode,\r\n\t\tQueryModel queryModel) throws AAException;\r\n \r\n \r\n /**\r\n * delete all recipients for the cost item in pk list\r\n *\r\n * @param costItemPKs cost item pk list\r\n * @return\r\n * @throws AAException \r\n */\r\n public int deleteRecipientsByCostItemPKList(List<CostItemPK> costItemPKs) throws AAException;\r\n \r\n /**\r\n * create cost item for WS user.\r\n *\r\n * @param costItemModel cost item model\r\n * @throws AAException\r\n * @throws RemoteException \r\n */\r\n public void createCostItem4WS(CostItemModel costItemModel) throws AAException, RemoteException;\r\n \r\n /**\r\n * edit cost item for WS\r\n *\r\n * @param CostItemModel cost item model\r\n * @throws AAException\r\n * @throws RemoteException \r\n */\r\n public void editCostItem4WS(CostItemModel costItemModel) throws AAException, RemoteException;\r\n \r\n /**\r\n * Edits the cost item rec status.\r\n * \r\n * @param servProvCode the serv prov code\r\n * @param r1CostType the r1 cost type\r\n * @param status the status\r\n * @param auditID the audit id\r\n * \r\n * @return the int\r\n * \r\n * @throws AAException the AA exception\r\n */\r\n public int editCostItemRecStatus(String servProvCode, String r1CostType, String status, String auditID) throws AAException;\r\n \r\n /**\r\n * Makeup cost item for assets.\r\n * \r\n * @param servProvCode the serv prov code\r\n * @param auditID the audit id\r\n * @param assetList the asset list\r\n * \r\n * @return the int\r\n * \r\n * @throws AAException the AA exception\r\n */\r\n public int makeupCostItemForAssets(String servProvCode, String auditID, List<AssetMasterModel> assetList) throws AAException;\r\n}", "@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }", "public interface B2BCommerceCostCenterService\n{\n\t/**\n\t * Gets {@link B2BCostCenterModel } for a given cost center code\n\t *\n\t * @param costCenterCode\n\t * A unique identifier for {@link B2BCostCenterModel}\n\t * @return {@link B2BCostCenterModel } object\n\t */\n\t<T extends B2BCostCenterModel> T getCostCenterForCode(String costCenterCode);\n\n\n\t/**\n\t * Gets list of {@link SearchPageData} B2BCostCenterModel for pagination given the required pagination parameters\n\t * with {@link PageableData}\n\t *\n\t * @param pageableData\n\t * Pagination information\n\t * @return Collection of paginated {@link B2BCostCenterModel} objects\n\t */\n\tSearchPageData<B2BCostCenterModel> getPagedCostCenters(PageableData pageableData);\n}", "private static BillingService getService() {\n\n\t\treturn Context.getService(BillingService.class);\n\t}", "@Test\n public void testGetTotalCost() {\n System.out.println(\"getTotalCost\");\n float expResult = createdModule.getTotalCost(createdModule.getPresentationOne());\n float result = importedModule.getTotalCost(importedModule.getPresentationOne());\n assertEquals(expResult, result, 0.0);\n }", "com.google.storage.v1.Bucket.Billing getBilling();", "@Test\n public void getContactTrackingBouncesTest() {\n String contactId = \"1\";\n\n try {\n\n ResultSet contactTrackingBounceResultSet = mock(ResultSet.class);\n\n contactTrackingBounceResultSet = contactTrackingService.getBounces(contactId, null);\n verify(contactTrackingService).getBounces(contactId, null);\n\n assertNotNull(contactTrackingBounceResultSet);\n\n } catch (ConstantContactServiceException e) {\n e.printStackTrace();\n }\n }", "Billing createBilling();", "public static BillingService runBillingService (Context context) { \n if (!DataManager.isFullVersion() && sBillingService == null) {\n sBillingService = new BillingService();\n sBillingService.setContext(context);\n\n // Check if billing is supported.\n if (!sBillingService.checkBillingSupported()) {\n if (BuildConfig.DEBUG) {\n Log.d(LOGTAG, \"Preferences: Billing not supported\");\n }\n sBillingService.unbind();\n sBillingService = null;\n }\n }\n \n return sBillingService;\n }", "hipstershop.Demo.Money getCost();", "public PagedResult<BillingCostReportEntry> getBillingCostReport(BillingCostReportCriteria criteria,\r\n int pageNo, int pageSize) throws BillingCostServiceException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / Change any adjacent triangle index that matches fromIndex, to toIndex /
public void ChangeAdjacentIndex(int fromIndex, int toIndex) { if (ab == fromIndex) ab = toIndex; else if (bc == fromIndex) bc = toIndex; else if (ac == fromIndex) ac = toIndex; else assert(false); }
[ "int toIndex(int x, int y);", "abstract public void goToIndex(int index);", "int toIndex(Position pos);", "public void moveTo(int toIndex)\n\t{\n\t\tthis.grid.moveTo(toIndex);\t\t\n\t}", "public IntIterator iterator(int fromIndex, int toIndex);", "private void processIndex() {\r\n\t\tIntBuffer indexBuffer = BufferUtils.createIntBuffer(this.triangles.length*3);\r\n\t\tindexBuffer.clear();\r\n\t\tfor(int i = 0; i < this.triangles.length; i++) {\r\n\t\t\tfor(int j = 0; j < 3; j++) {\r\n\t\t\t\tindexBuffer.put(this.triangles[i].getVertexIndex(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\tindexBuffer.flip();\r\n\t\tthis.triangleBatch.setIndexBuffer(indexBuffer);\r\n\t}", "private static void drawTriangle(boolean rightSideUp, int n, int start, int end) {\n\n if (rightSideUp) {\n for (int row = start; row < end; row++) {\n\n evaluateRow(row, n);\n\n System.out.print(\"\\n\");\n\n }\n }\n else {\n for (int row = end - 1; row >= start; row--) {\n\n evaluateRow(row, n);\n\n System.out.print(\"\\n\");\n\n }\n }\n }", "public void moveRow(int start, int end, int to) {\n int shift = to - start;\n int first, last;\n if (shift < 0) {\n first = to;\n last = end;\n }\n else {\n first = start;\n last = to + end - start;\n }\n// rotate(dataVector, first, last + 1, shift);\n\n fireTableRowsUpdated(first, last);\n }", "public abstract void reverseRange(int index, int count, int stride);", "private void morph_triangles(Triangle trSrc, Triangle trDst, \n\t\t\tTriangle trMid, int[] from, int[] to,\n\t\t\tint[] step, double ratio){\n\n\t\tint x, y;\n\t\tboolean flag=true;\n\t\tdouble srcP1x, srcP2x, srcP3y;\n\t\tdouble dstP1x, dstP2x, dstP3y;\n\t\tdouble midP1x, midP2x, midP3y;\n\t\tdouble slopeSrc1To3, slopeSrc2To3;\n\t\tdouble slopeDst1To3, slopeDst2To3;\n\t\tdouble slopeMid1To3, slopeMid2To3;\n\t\tdouble srcP1And2y,dstP1And2y,midP1And2y;\n\t\tdouble directionSrc2Mid,directionDst2Mid;\n\n\t\t// Points of triangle in source viseme\n\t\tsrcP1x = (double)(trSrc.getxOryOfPoint(1,'x'));\n\t\tsrcP2x = (double)(trSrc.getxOryOfPoint(2,'x'));\n\t\tsrcP3y = (double)(trSrc.getxOryOfPoint(3,'y'));\n\t\tsrcP1And2y = (double)(trSrc.getxOryOfPoint(1,'y'));\n\n\t\t// Points of triangle in destination viseme\n\t\tdstP1x = (double)(trDst.getxOryOfPoint(1,'x'));\n\t\tdstP2x = (double)(trDst.getxOryOfPoint(2,'x'));\n\t\tdstP3y = (double)(trDst.getxOryOfPoint(3,'y')); \n\t\tdstP1And2y = (double)(trDst.getxOryOfPoint(1,'y'));\n\n\t\t// Points of triangle in middle viseme\n\t\tmidP1x = (double)(trMid.getxOryOfPoint(1,'x'));\n\t\tmidP2x = (double)(trMid.getxOryOfPoint(2,'x'));\n\t\tmidP3y = (double)(trMid.getxOryOfPoint(3,'y'));\n\t\tmidP1And2y = (double)(trMid.getxOryOfPoint(1,'y'));\n\n\t\tdirectionSrc2Mid = calculateSlope(srcP1And2y, srcP3y ,midP1And2y, midP3y);\n\t\tdirectionDst2Mid = calculateSlope(dstP1And2y, dstP3y, midP1And2y, midP3y);\n\n\t\t// Slope line 1-3 source viseme \n\t\tslopeSrc1To3 =calculateSlope(trSrc.getP1(),trSrc.getP3());\n\t\t// Slope line 2-3 source viseme \n\t\tslopeSrc2To3 =calculateSlope(trSrc.getP2(),trSrc.getP3());\n\t\t// Slope line 1-3 destination viseme \n\t\tslopeDst1To3 =calculateSlope(trDst.getP1(),trDst.getP3());\n\t\t// Slope line 2-3 destination viseme \n\t\tslopeDst2To3 =calculateSlope(trDst.getP2(),trDst.getP3());\n\t\t// Slope line 1-3 destination viseme \t\t\t\n\t\tslopeMid1To3 =calculateSlope(trMid.getP1(),trMid.getP3());\n\t\t// Slope line 2-3 destination viseme \n\t\tslopeMid2To3 =calculateSlope(trMid.getP2(),trMid.getP3());\n\t\t\n\t\tif(trMid.getP3().getY()<trMid.getP1().getY()){\t\n\t\t\tslopeSrc1To3=-slopeSrc1To3;\n\t\t\tslopeSrc2To3=-slopeSrc2To3;\n\n\t\t\tslopeDst1To3=-slopeDst1To3;\n\t\t\tslopeDst2To3=-slopeDst2To3;\n\n\t\t\tslopeMid1To3=-slopeMid1To3;\n\t\t\tslopeMid2To3=-slopeMid2To3;\n\t\t}\n\n\t\ty = (int)midP1And2y;\n\n\t\twhile(flag){\n\n\t\t\tfor (x=(int)midP1x; x<=(int)midP2x; x++){\n\n\t\t\t\tdouble ratioOfX=((double)x-midP1x)/(midP2x-midP1x);\n\n\t\t\t\tint pixleSrc = from[((int)Math.round(srcP1And2y) * imageWidth) + \n\t\t\t\t (int)Math.round(srcP1x + (ratioOfX * (srcP2x - srcP1x)))];\n\t\t\t\tint pixleDst = to [((int)Math.round(dstP1And2y) * imageWidth) +\n\t\t\t\t (int)Math.round(dstP1x + (ratioOfX * (dstP2x - dstP1x)))];\n\n\t\t\t\tint[] pixelFromDataSeparated = getPixelData(pixleSrc);\n\t\t\t\tint[] pixelToDataSeparated = getPixelData(pixleDst);\n\t\t\t\tint alpha,red,green,blue;\n\t\t\t\t\n\t\t\t\t// Linear interpolation for color of the pixel\n\t\t\t\talpha = (int) (pixelFromDataSeparated[0] +\n\t\t\t\t\t\t((pixelToDataSeparated[0] - pixelFromDataSeparated[0]) * ratio));\n\t\t\t\tred = (int) (pixelFromDataSeparated[1] +\n\t\t\t\t\t\t((pixelToDataSeparated[1] - pixelFromDataSeparated[1]) * ratio));\n\t\t\t\tgreen= (int) (pixelFromDataSeparated[2] +\n\t\t\t\t\t\t((pixelToDataSeparated[2] - pixelFromDataSeparated[2]) * ratio));\n\t\t\t\tblue = (int) (pixelFromDataSeparated[3] + \n\t\t\t\t\t\t((pixelToDataSeparated[3] - pixelFromDataSeparated[3]) * ratio));\n\t\t\t\t\n\t\t\t\tstep[(y*imageWidth)+x]=setPixelData(alpha, red, green, blue);\n//\t\t\t\tstep[(y*imageWidth)+x]=(alpa<<24) | (red<<16) | (green<<8) | blue;\n\t\t\t}\n\n\t\t\tsrcP1x += slopeSrc1To3;\n\t\t\tsrcP2x += slopeSrc2To3;\n\t\t\tdstP1x += slopeDst1To3;\n\t\t\tdstP2x += slopeDst2To3;\n\t\t\tmidP1x += slopeMid1To3;\n\t\t\tmidP2x += slopeMid2To3;\n\n\t\t\tif(trMid.getP3().getY()>trMid.getP1().getY()){\n\t\t\t\tsrcP1And2y+= directionSrc2Mid;\n\t\t\t\tdstP1And2y+= directionDst2Mid;\n\t\t\t\ty++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsrcP1And2y-= directionSrc2Mid;\n\t\t\t\tdstP1And2y-= directionDst2Mid;\n\t\t\t\ty--;\n\t\t\t}\n\n\t\t\tif(trMid.getP3().getY()>trMid.getP1().getY() && y>=trMid.getP3().getY())\n\t\t\t\tflag=false;\n\t\t\telse if(trMid.getP3().getY()<=trMid.getP1().getY() && y<=trMid.getP3().getY())\n\t\t\t\tflag=false;\t\t\n\t\t}\n\t}", "private void moveMarble(int fromIndex, int toIndex) throws IllegalArgumentException\n {\n Spot fromSpot = allSpots[fromIndex];\n Spot toSpot = allSpots[toIndex];\n\n Marble marble = fromSpot.getMarble();\n \n fromSpot.setMarble(null);\n toSpot.setMarble(marble);\n \n // update the array we keep of marble positions.\n updateCurrentPosition(marble.getColor(), fromIndex, toIndex);\n\n // update the view\n alleysUI.moveMarble(fromIndex, toIndex);\n \n }", "private static void checkFromToIndex(int fromIndex, int toIndex, int length) {\n if (fromIndex > toIndex) {\n throw new IllegalArgumentException(\"fromIndex \" + fromIndex + \" > toIndex \" + toIndex);\n }\n if (fromIndex < 0 || toIndex > length) {\n throw new IndexOutOfBoundsException(\"Range [\" + fromIndex + \", \" + toIndex + \") out-of-bounds for length \" + length);\n }\n }", "private static void checkFromToIndex(int fromIndex, int toIndex, int length) {\n if (fromIndex > toIndex) {\n throw new IllegalArgumentException(\"fromIndex \" + fromIndex + \" > toIndex \" + toIndex);\n }\n if (fromIndex < 0 || toIndex > length) {\n throw new IndexOutOfBoundsException(\n \"Range [\" + fromIndex + \", \" + toIndex + \") out-of-bounds for length \" + length);\n }\n }", "public void flipPuzzleRows2(){\n for(int r = 0; r < 3; r++){ //iterates through 3 rows\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each row\n int start = puzzle[9*r+c]; //determines start value\n int x = (9*r+c)+ 27; //adds 27 to start position to get the end position\n int y = 9*r+c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "private void sort0(int currentIndex, int fromIndex, int toIndex, int[] ints) {\r\n\t\tint e = ints[currentIndex];\r\n\t\twhile (fromIndex < toIndex) {\r\n\t\t\tif (e < ints[fromIndex]) {\r\n\t\t\t\t//move the elements fromIndex to toIndex\r\n\t\t\t\twhile (fromIndex < toIndex) {\r\n\t\t\t\t\tints[toIndex] = ints[--toIndex];\r\n\t\t\t\t}\r\n\t\t\t\tints[fromIndex] = ints[currentIndex];\r\n\t\t\t\tbreak ;\r\n\t\t\t}\r\n\t\t\tfromIndex++;\r\n\t\t}\r\n\t}", "public void flipPuzzleRows4(){\n for(int r = 0; r < 3; r++){ //iterates through 3 rows\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each row\n int start = puzzle[9*r+c]; //determines start value\n int x = (9*r+c)+ 54; //adds 54 to start position to get the end position\n int y = 9*r+c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "public void flipPuzzleRows3(){\n for(int r = 3; r < 6; r++){ //iterates through middle 3 rows\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each row\n int start = puzzle[9*r+c]; //determines start value\n int x = (9*r+c)+ 27; //adds 27 to start position to get the end position\n int y = 9*r+c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "public void flipPuzzleHorizontalVertical(){\n for(int i = 0; i < 41; i++){\n int start = puzzle[i]; //determines start\n int end = puzzle[80 - i]; //determines end\n puzzle[i] = end; //switches start value to the end value\n puzzle[80 - i] = start; //switches end value with the start\n }\n printPuzzle();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show scheduled doctor appointments by doctor attribute. Makes a html table which contains, on each row, the details about the appointment that has been scheduled with a specified doctor.Each row is being followed by a "Cancel" button, to give patient the opportunity to cancel the appointment. Each row contains the following information: the date, the start time and the ending time of the appointment, the doctor's AMKA and the doctor's firstname, lastname and specialty. In any other case(ex. no results found) a corresponding message appears, with the help of Fail function.
public static void showScheduledAppointments(String showby, String value, HttpServletResponse response, HttpServletRequest request, DataSource datasource) throws IOException { HttpSession session = request.getSession(); //get session try { connection = datasource.getConnection(); //connection object for database connection rs = createResultSet(showby,value,"scheduled",session); //return on rs the patient's search results if (rs.next()) //in case there is at least one record, store on html variable the table result for scheduled appointments { StringBuilder html = createHtmlTable(1, rs); //a string builder object to store the html content we want to show on "ScheduledAppointments.jsp" setHTML(html); //Set HTML equal to html. HTML content is being shown at "ScheduledAppointments.jsp" response.sendRedirect("ScheduledAppointments.jsp"); //redirect back } else if (!rs.next() && showby.equals("Show all")) //if there is not any record on the results and the option { // is 'Show all', that means there is not any scheduled appointment Fail(response, "You have not any scheduled appointments yet", "patient_main_environment.jsp"); } else //In this case, there is not any record on the results but the option wasn't 'Show all'. { //That means there is not any results JUST for the restrictions we had set Fail(response, "No results found for " + showby + " " + value, "ScheduledAppointments.jsp"); } rs.close(); connection.close(); //close ResultSet and Connection } catch (ParseException e) //parse exception occurs if we try to search a date or an AMKA with invalid format typed { Fail(response, "Invalid " + showby + " format", "ScheduledAppointments.jsp"); } catch (Exception e) //Show message on page in any other case { PrintWriter showhtml = response.getWriter(); showhtml.println(e.toString()); } }
[ "public List<Appointment> viewMyScheduledAppointments(int doctorId){\n\t\treturn this.appointmentRepository.findAllByDoctorAndStatus(doctorId);\n\t}", "public static void showAppointmentHistory(String showby, String value, HttpServletResponse response, HttpServletRequest request, DataSource datasource) throws IOException\n {\n HttpSession session = request.getSession();\n\n PrintWriter showhtml = response.getWriter();\n\n //The user has the option(from an option box) to choose by which doctor attribute(doctor AMKA, appointment date or doctor specialty)\n //his appointments are going to be shown(there is also a 'Show All' option to show appointments without a restriction).\n //The desirable value of an attribute is being submitted in a textbox before the results are shown.\n\n try\n {\n connection = datasource.getConnection(); //connection object for database connection\n\n rs = createResultSet(showby,value,\"history\", session); //return on rs the patient's search results\n\n if (rs.next()) //in case there is at least one record, store on html variable the table result for history appointments\n {\n StringBuilder html = createHtmlTable(0, rs); //a string builder object to store the html content we want to show on \"appointmenthistory.jsp\"\n setHTML(html); //Set HTML content equal to html content. HTML content appears on \"appointmenthistory.jsp\"\n response.sendRedirect(\"appointmenthistory.jsp\"); //redirect patient back\n }\n else if (!rs.next() && showby.equals(\"Show all\")) //if there is not any record on the results and the option\n { // is 'Show all', that means history is empty\n Fail(response, \"Appointment history is empty\", \"appointmenthistory.jsp\");\n }\n else //In this case, there is not any record on the results but the option wasn't 'Show all'.\n { //That means there is not any results JUST for the restrictions we had set\n\n Fail(response, \"No results found for \" + showby + \" \" + value, \"appointmenthistory.jsp\");\n }\n\n rs.close();\n connection.close(); //close ResultSet and Connection\n\n }\n catch (ParseException e) //parse exception occurs if we try to search a date or an AMKA with invalid format typed\n {\n Fail(response, \"Invalid \" + showby + \" format\", \"appointmenthistory.jsp\");\n }\n catch (Exception e) //In any other exception case, print message to page\n {\n showhtml.println(e.toString());\n }\n\n }", "public static void searchAvailableAppointments(String start_date, String end_date, String searchby, String value, HttpServletResponse response, DataSource datasource) throws IOException\n {\n\n StringBuilder html = new StringBuilder(\"\"); //a string builder object to store the html content we want to show on \"AvailableDoctorAppointments.jsp\"\n\n try\n {\n connection = datasource.getConnection(); //connection object for database connection\n\n //This is our default query, in case we want to search all the available appointments\n //Query selects all the required data from appointment and doctor tables, from records that\n //have patientAMKA = 0(available) and date between the date interval the patient gave.\n //Note that dates are being passed in yyyy-MM-dd format so we dont have to change their format\n //in order to search them in database\n String query = \"SELECT date,startSlotTime,endSlotTime,DOCTOR_doctorAMKA,specialty,name,surname \" +\n \"FROM appointment JOIN doctor ON DOCTOR_doctorAMKA = doctorAMKA \" +\n \"WHERE PATIENT_patientAMKA = 0 AND date BETWEEN ? AND ?\";\n\n switch (searchby) //depending on the searchby value we add the corresponding constraint to our query\n {\n case \"Doctor AMKA\": //in case we want to search by Doctor AMKA\n\n //if AMKA has invalid format, set the corresponding message on HTML object, close connection and return\n if (!value.matches(\"[0-9]{11}\"))\n {\n html.append(\"Invalid AMKA format\");\n setHTML(html);\n connection.close();\n return;\n }\n\n //add to query the corresponding doctorAMKA constraint\n query += \" AND DOCTOR_doctorAMKA = ?\";\n statement = connection.prepareStatement(query);\n statement.setString(1, start_date);\n statement.setString(2, end_date);\n statement.setString(3, value);\n break;\n\n case \"Full name\": //in case we want to search by Full name\n\n //in this case, value contains the first name and the last name splitted by space\n //we store the firstname and the last name seperately on names array\n String[] names = value.split(\" \");\n\n //add to query the corresponding name and surname constraint\n query += \" AND (name = ? OR surname=?)\";\n statement = connection.prepareStatement(query);\n statement.setString(1, start_date);\n statement.setString(2, end_date);\n statement.setString(3, names[0]);\n statement.setString(4, names[1]);\n break;\n\n case \"Specialty\": //in case we want to search by Specialty\n\n //add to query the corresponding specialty constraint\n query += \" AND specialty = ?\";\n statement = connection.prepareStatement(query);\n statement.setString(1, start_date);\n statement.setString(2, end_date);\n statement.setString(3, value);\n break;\n\n default: //default case is when we want to search all the available appointments, so we dont change the query\n statement = connection.prepareStatement(query);\n statement.setString(1, start_date);\n statement.setString(2, end_date);\n }\n\n rs = statement.executeQuery(); //execute query\n\n if (rs.next()) //in case there is at least one record, store on html variable the table result for available appointments\n html = createHtmlTable(2, rs);\n else if (!rs.next() && searchby.equals(\"Show all\")) //if there is not any results on \"Show all category\"\n {\n //change from database date format to dd-MM-yyyy format in order to show the fail message to user\n start_date = changeDateFormat(\"yyyy-MM-dd\", \"dd-MM-yyyy\", start_date);\n end_date = changeDateFormat(\"yyyy-MM-dd\", \"dd-MM-yyyy\", end_date);\n\n //append the message on html variable\n html.append(\"There is not any appointment available on interval \" + start_date + \" through \" + end_date);\n }\n else //In this case, there is not any record on the results but the option wasn't 'Show all'.\n { //That means there is not any results JUST for the restrictions we had set\n\n //change from database date format to dd-MM-yyyy format in order to show the fail message to user\n start_date = changeDateFormat(\"yyyy-MM-dd\", \"dd-MM-yyyy\", start_date);\n end_date = changeDateFormat(\"yyyy-MM-dd\", \"dd-MM-yyyy\", end_date);\n\n //append the message on html variable\n html.append(\"No results found for interval \" + start_date + \" through \" + end_date + \" and \" + searchby + \" \" + value);\n }\n\n rs.close();\n connection.close(); //close ResultSet and Connection\n\n }\n catch (ArrayIndexOutOfBoundsException e) //In this Exception case, user didnt enter the doctor's first name and last name correct\n {\n html.append(\"Invalid firstname/lastname format\");\n }\n catch (Exception e) //in other Exception cases, print message on console\n {\n System.out.println(e.toString());\n }\n finally //in any case, set the HTML value equal to html value. HTML is being shown in \"AvailableDoctorAppointments.jsp\"\n {\n setHTML(html); //Set HTML equal to html. HTML content is being shown at \"AvailableDoctorAppointments.jsp\"\n response.sendRedirect(\"AvailableDoctorAppointments.jsp\"); //redirect the user back\n }\n }", "public void activatePatientListView(String patientID) {\n\t\tString query = \"SELECT `a`.`id`, `a`.`patientID`, CONCAT(`p`.`first_name`,' ',`p`.`last_name`) as `patient_name`, \"+\n\t\t\"`a`.`date` as `appointment_date`, `d`.`name` as `doctor_name` \"+\n\t\t\"FROM `appointment` `a`, `doctor` `d`, `person` `p` WHERE `a`.`patientID`='\"+patientID+\"' AND\"+ \n\t\t\"`a`.`patientID`=`p`.`id` AND `a`.`doctorID`=`d`.`id`\"+ \n\t\t\"ORDER BY `a`.`date` DESC\";\n\t\t\n\t\tResultSet rs = conn.executeStatementReturnResult(query);\n\t\n\t\ttry {\n\t\t\t\n\t\t\t//get the size of the row \n\t\t\trs.last();\n\t\t int size = rs.getRow();\n\t\t rs.beforeFirst();\n\t\t AppointmentItem[] aItems = new AppointmentItem[size];\n\t\t\tint counter = 0;\n\t\t\t\n\t\t\tthis.pl_sidebar.remove(2);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tString name = rs.getString(\"patient_name\");\n\t\t\t\tString doctorName = rs.getString(\"doctor_name\");\n\t\t\t\taItems[counter] = new AppointmentItem(Helper.dateFormatter(\"MMM dd, yy\", rs.getTimestamp(\"appointment_date\")),\n\t\t\t\t\t\tHelper.dateFormatter(\"h:mm a\", rs.getTimestamp(\"appointment_date\")),\n\t\t\t\t\t\tname,doctorName,rs.getInt(\"id\"),rs.getInt(\"patientID\")); \n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tthis.lbl_sb_title.setText(\"Appointments\");\n\t\t\talist = new AppointmentList(aItems);\n\t\t\talist.setMainView(this);\n\t\t\talist.setBounds(0, 46, 271, 435);\n\t\t\t\n\t\t\tthis.pl_sidebar.add(alist);\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}", "public void customerAppointmentsReport() {\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getCustomerAppointments();\n\n reportLabel.setText(\"Customer Appointments By Type and Month Report: \\n\\n\");\n //Appends Month to the customer report\n sb1.append(\"Month:\\n\");\n for (Reports reports : reportsList) {\n sb1.append(reports.getMonthName()).append(\"\\n\");\n }\n reportLabel1.setText(sb1.toString());\n //Appends Type to the customer report\n sb2.append(\"Type:\\n\");\n for (Reports reports : reportsList) {\n sb2.append(reports.getType()).append(\"\\n\");\n }\n reportLabel2.setText(sb2.toString());\n //Appends total count to the customer report\n sb3.append(\"Count:\\n\");\n for (Reports reports : reportsList) {\n sb3.append(reports.getAppointmentCount()).append(\"\\n\");\n }\n reportLabel3.setText(sb3.toString());\n }", "public List<Appointment> viewAppointmentsByPatient(int patientId)throws PatientIdNotFoundException;", "public void listAppointmentInAWeek(ActionEvent actionEvent) {\n // Find the username of the current patient\n String username = SessionManager.getSessionUser().getUsername();\n Patient currentPatient = PatientDao.findAppointments(username);\n\n if (listAppointmentRadioButton.isSelected()) {\n table.getItems().clear();\n List<LocalDate> datesWithinAWeek = PatientDao.findDatesWithinAWeek(username, LocalDate.now());\n\n if (currentPatient != null) {\n for (int i = 0; i < currentPatient.getReason().size(); i++) {\n String reason = currentPatient.getReason().get(i);\n String confirmDate = currentPatient.getConfirmDate().get(i);\n String bookedTime = currentPatient.getBookedTime().get(i);\n String remark = currentPatient.getRemarks().get(i);\n\n for (LocalDate appointmentDate: datesWithinAWeek) {\n if (appointmentDate.toString().equals(confirmDate)) {\n Appointment appointment = new Appointment(username, reason, confirmDate, bookedTime, remark);\n\n obList.add(appointment);\n\n usernameCol.setCellValueFactory(new PropertyValueFactory<>(\"username\"));\n reasonCol.setCellValueFactory(new PropertyValueFactory<>(\"reason\"));\n confirmDateCol.setCellValueFactory(new PropertyValueFactory<>(\"confirmDate\"));\n bookedTimeCol.setCellValueFactory(new PropertyValueFactory<>(\"bookedTime\"));\n remarksCol.setCellValueFactory(new PropertyValueFactory<>(\"remarks\"));\n\n table.setItems(obList);\n }\n }\n }\n }\n\n } else {\n loadAppointments(currentPatient);\n }\n }", "public List<Appointment> getAppByDoctorId(Integer id);", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "public void appointmentList() throws Exception {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tlogger.debug(\"-------------Appointment-------------\");\n\t\t\tSystem.out.println(\"Press:- \" + \"\\n1.Create Appointment\" + \"\\n2.See Doctor list\" + \"\\n3.EXIT\");\n\t\t\tint input = sc.nextInt();\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcreate();\n\t\t\t\tlogger.debug(\"----------Appointment Created Successfully----------\");\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcrudDoctor.read();\n\t\t\t\tlogger.debug(\"----------This is a List of Doctors----------\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tclinicManagementSystem.show();\n\t\t\t}\n\t\t}\n\t}", "public static void getDoctorPatients() {\r\n\t\ttry {\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Enter doctor name: \");\r\n\t\t\tString doctorName = \"\";\r\n\t\t\tdoctorName = sc.nextLine();\r\n\t\t\tsc.close();\r\n\r\n\t\t\tConnection myConn = DriverManager.getConnection(\r\n\t\t\t\t\t\"jdbc:mysql://localhost:3306/ck?autoReconnect=true&useSSL=false\", \"root\", \"MyPass\");\r\n\t\t\tStatement myStmt = myConn.createStatement();\r\n\t\t\tResultSet myRs = myStmt\r\n\t\t\t\t\t.executeQuery(\"SELECT patient_name, queue_time FROM doctors, patients, queue_reserved\\r\\n\"\r\n\t\t\t\t\t\t\t+ \"WHERE doctor_name = \\\"\" + doctorName + \"\\\"\\r\\n\"\r\n\t\t\t\t\t\t\t+ \"AND doctors.doctor_id = queue_reserved.doctor_id \\r\\n\"\r\n\t\t\t\t\t\t\t+ \"AND patients.patient_id = queue_reserved.patient_id\\r\\n\" + \r\n\t\t\t\t\t\t\t\"ORDER BY queue_time; \");\r\n\r\n\t\t\twhile (myRs.next()) {\r\n\t\t\t\tSystem.out.println(myRs.getString(\"patient_name\") + \" \" + myRs.getString(\"queue_time\"));\r\n\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void viewPatientListOfDoctor(Scanner input) {\n System.out.println(\"Please enter the staff ID of responsible doctor, doctor must be in the database\");\n int pId = 0;\n try {\n pId = Integer.parseInt(input.nextLine());\n } catch (NumberFormatException e) {\n System.err.println(\"Doctor ID must be an integer\");\n return;\n }\n\n //Query database for given doctor, quit if doctor does not exist\n try {\n result = statement.executeQuery(\"SELECT * FROM Staff WHERE id = \" + pId);\n if (!result.next()) {\n System.err.println(\"That Doctor does not exist in the database\");\n return;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n return;\n }\n\n //Query database for given doctor, quit if staff is not a doctor\n try {\n result = statement.executeQuery(\"SELECT * FROM Staff WHERE id = \" + pId + \" AND jobTitle = 'Doctor'\");\n if (!result.next()) {\n System.err.println(\"That staff is not a doctor\");\n return;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n return;\n }\n\n //Query database in medical record for patient have the responsible doctor\n try {\n result = statement.executeQuery(\"SELECT * FROM Patient INNER JOIN MedicalRecord ON Patient.id = MedicalRecord.patientId AND MedicalRecord.responsibleDoctor = \" + pId );\n } catch (SQLException e) {\n e.printStackTrace();\n return;\n }\n\n System.out.println(\"Generating patient list for doctor Id \" + pId);\n try {\n while (result.next()) {\n int id = 0;\n String pSSN = null;\n String pName = null;\n Date pDOB = null;\n String pGender = null;\n int pAge = 0;\n String pPhone = null;\n String pAddr = null;\n int pPlan = 0;\n String pIsInWard = null;\n String pComp = null;\n id = result.getInt(\"id\");\n pSSN = result.getString(\"ssn\");\n pName = result.getString(\"name\");\n pDOB = result.getDate(\"dob\");\n pGender = result.getString(\"gender\");\n pAge = result.getInt(\"age\");\n pPhone = result.getString(\"phone\");\n pAddr = result.getString(\"address\");\n pPlan = result.getInt(\"treatment\");\n pIsInWard = result.getString(\"inWard\");\n pComp = result.getString(\"status\");\n System.out.println(\"Patient ID = \" + id + \", SSN = \" + pSSN + \", name = \" + pName + \", date of birth = \" + pDOB + \", gender = \" + pGender + \", age = \" + pAge + \", phone number = \" + pPhone\n + \", address = \" + pAddr + \", processing treatment plan = \" + pPlan + \", is in ward = \" + pIsInWard + \", completing treatment = \" + pComp);\n\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n System.out.println();\n\n }", "public List<Appointment> showAppointments(String netID, int termId) {\r\n\t\tlogger.info(\"Retrieving all appointments for student ID \" + netID);\r\n\t\t\r\n\t\tList<Appointment> appointments = new ArrayList<Appointment>();\r\n\t\tString queryString = String.format(\"SELECT * FROM appointment \"\r\n\t\t\t\t+ \"LEFT JOIN exam \"\r\n\t\t\t\t+ \"ON appointment.examIdA = exam.examId \"\r\n\t\t\t\t+ \"LEFT JOIN course \"\r\n\t\t\t\t+ \"ON exam.courseId = course.courseTerm \"\r\n\t\t\t\t+ \"WHERE appointment.studentIdA='%s' \"\r\n\t\t\t\t+ \"AND course.termId = %d;\",\r\n\t\t\t\tnetID,\r\n\t\t\t\ttermId\r\n\t\t\t\t);\r\n\t\tList<Map<String,Object>> appts = db.query(queryString);\r\n\t\tfor (Map<String,Object> appt : appts) {\r\n\t\t\tString examId = (String) appt.get(\"examIdA\");\r\n\t\t\tString netId = (String) appt.get(\"studentIdA\");\r\n\t\t\tDateTime start = new DateTime((long) (appt.get(\"startTime\"))*1000);\r\n\t\t\tDateTime end = new DateTime((long) (appt.get(\"endTime\"))*1000);\r\n\t\t\tint appointmentId = appt.get(\"appointmentId\") == null ? 0 : (int) appt.get(\"appointmentId\");\r\n\t\t\tint seatNumber = (int) appt.get(\"seatId\");\r\n\t\t\tboolean checkedIn = appt.get(\"checkedIn\") == null ? false : ((String) appt.get(\"checkedIn\")).equals(\"1\");\r\n\t\t\t\r\n\t\t\tAppointment newAppointment = new Appointment(examId, netId, start, end, appointmentId, seatNumber, checkedIn);\r\n\t\t\tappointments.add(newAppointment);\r\n\t\t\t\r\n\t\t\tSystem.out.println(newAppointment);\r\n\t\t}\r\n\t\t\r\n\t\treturn appointments;\r\n\t}", "private static ResultSet createResultSet(String showby, String value, String category, HttpSession session) throws SQLException, ParseException\n {\n //Query that selects all the required information of the appointments(using < operator for history appointments and > for scheduled).\n String query = \"SELECT date,startSlotTime,endSlotTime,DOCTOR_doctorAMKA,specialty,name,surname \" +\n \"FROM appointment JOIN doctor ON DOCTOR_doctorAMKA = doctorAMKA \" +\n \"WHERE PATIENT_patientAMKA = ? AND (date \"+(category.equals(\"history\") ? \"<\":\">\") +\" cast(now() as date) \" +\n \"OR date = cast(now() as date) AND \"+(category.equals(\"history\") ? \"endSlotTime <\":\"startSlotTime >\") +\" cast(now() as time))\";\n\n switch (showby) //depending on the showby value we add one more constraint on the query.\n {\n case \"Doctor AMKA\":\n\n if (!value.matches(\"[0-9]{11}\"))\n throw new ParseException(\"Invalid AMKA\", 0); //in case of invalid AMKA format, we throw a parse exception\n\n query += \" AND DOCTOR_doctorAMKA = ?\"; //Add doctor AMKA constraint\n break;\n\n case \"Date\":\n //in case we want to search by date, we have to change its format because the format is different in the database\n value = changeDateFormat(\"dd-MM-yyyy\", \"yyyy-MM-dd\", value);\n\n query += \" AND date = ?\"; //Add date constraint\n break;\n\n case \"Specialty\":\n\n query += \" AND specialty = ?\"; //Add doctor specialty constraint\n break;\n }\n\n //A prepared statement object, on which we are going to store our sql statement\n PreparedStatement statement = connection.prepareStatement(query);\n\n //set the first query parameter equal to the patient's AMKA\n statement.setString(1, session.getAttribute(\"patientAMKA\").toString());\n\n //if we dont want to show all the history appointments, we have to add the doctor attribute value parameter to query\n if (!showby.equals(\"Show all\"))\n statement.setString(2, value);\n\n //Returning the result set that contains the results.\n return statement.executeQuery();\n }", "private void populateAppointmentsTable(ObservableList<Appointment> apts) {\r\n appointmentTableView.setItems(apts);\r\n customerNameColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getCustomerName()));\r\n appointmentTitleColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getTitle()));\r\n appointmentDescriptionColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getDescription()));\r\n appointmentLocationColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getLocation()));\r\n customerContactColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getEmail()));\r\n appointmentTypeColumn.setCellValueFactory(apt -> new SimpleStringProperty(apt.getValue().getType()));\r\n appointmentStartColumn.setCellValueFactory(apt -> new SimpleStringProperty(DataRetriever.convertUTCTimeToLocal(apt.getValue().getStart()) + \":00\"));\r\n appointmentEndColumn.setCellValueFactory(apt -> new SimpleStringProperty(DataRetriever.convertUTCTimeToLocal(apt.getValue().getEnd()) + \":00\"));\r\n }", "public String outputAppointments() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Reminders:\\n\");\n if (reminders.size() < 1) {\n sb.append(\"No reminders found.\\n\");\n } else {\n Iterator it = reminders.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": for \" + pair.getValue() + \" days\\n\");\n }\n }\n sb.append(\"\\nFollow-ups:\\n\");\n if (followup.size() < 1) {\n sb.append(\"No follow-ups found.\\n\");\n } else {\n Iterator it = followup.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": in \" + pair.getValue() + \" days\\n\");\n }\n }\n return sb.toString();\n }", "private static AppointmentResult findAvailableTimeAndDoctor(LocalDate date, SpecializationType specialtyType, IPerson patient) throws Exception {\n // Assuming normal day is between 09:00 and 17:00\n LocalTime open = LocalTime.parse(\"09:00:00\");\n LocalTime closed = LocalTime.parse(\"17:00:00\");\n int appointmentMinutes = 15;\n LocalDate currentDate = LocalDate.now();\n\n // Check if date is before current time or patient already has appointment\n if (date.isBefore(currentDate)) {\n throw new Exception(\"The date you tried entering, is invalid.\");\n }\n if (getAllOpenAppointments(patient).stream().anyMatch(appointment -> appointment.getAppointmentDate().toLocalDate().equals(date))) {\n throw new Exception(\"You already have an appointment set for your specified date.\");\n }\n\n // Grab all doctors available at date with specified type\n ArrayList<Doctor> doctors = getDoctorsAvailableAtDateWithType(date, specialtyType);\n\n if (doctors.size() == 0)\n throw new Exception(\"There aren't any doctors with this specialization available for your specified date.\");\n\n // Grab all appointments on given date\n ArrayList<Appointment> appointments = getAllAppointmentsOnDate(date);\n\n // Check for each available doctor if they have time on day\n ArrayList<AppointmentResult> availableDoctors = new ArrayList<>();\n\n // Need to check if a doctor is available at time, check if there's another doctor available before that.\n // If there is, just assign that doctor to the appointment.\n for (Doctor doc : doctors) {\n ArrayList<Appointment> appointmentsDoc = getAppointmentsDoctorInAppointment(appointments, doc);\n\n // Doctor has no appointments on day\n if (appointmentsDoc.size() == 0) {\n availableDoctors.add(new AppointmentResult(doc, LocalDateTime.of(date, open)));\n break;\n }\n\n // Actually just need to check the last appointment\n LocalDateTime currentAppointmentTime = appointmentsDoc.get(appointmentsDoc.size() - 1).getAppointmentDate().plusMinutes(appointmentMinutes + 1);\n\n // Found a doctor available\n if (currentAppointmentTime.toLocalTime().isBefore(closed.minusMinutes(appointmentMinutes))) {\n availableDoctors.add(new AppointmentResult(doc, currentAppointmentTime));\n }\n }\n\n availableDoctors.sort(Comparator.comparing(AppointmentResult::getAppointmentTime));\n\n if (availableDoctors.isEmpty())\n throw new Exception(\"There aren't any doctors available on your specified date.\");\n\n // Return the first in the array since that doctor is available at the earliest time\n return availableDoctors.get(0);\n }", "private static ArrayList<Appointment> getAppointmentsDoctorInAppointment(ArrayList<Appointment> appointments, Doctor doc) {\n return appointments.stream()\n .filter(appointment -> appointment.getDoctor().equals(doc))\n .sorted(Comparator.comparing(Appointment::getAppointmentDate)).collect(Collectors.toCollection(ArrayList::new));\n }", "@FXML\n private void showDailySchedule() throws ParseException, SQLException\n {\n Connection manager = null;\n PreparedStatement pstmt = null;\n \n try\n {\n manager = DriverManager.getConnection(driverManagerString);\n String query = \"{CALL powellcontacts.daily_appointments(?)}\";\n \n pstmt = manager.prepareStatement(query);\n pstmt.setString(1, getDate());\n ResultSet result = pstmt.executeQuery();\n ObservableList<Appointment> row = FXCollections.observableArrayList();\n \n //adds data to observable list\n while (result.next())\n {\n Appointment appt = new Appointment();\n appt.setStartTime(result.getString(1));\n appt.setEndTime(result.getString(2));\n appt.setApptType(result.getString(3));\n appt.setCustomerName(result.getString(4));\n appt.setConsultant(result.getString(5));\n row.add(appt);\n }\n // column names\n TableColumn <Appointment, String> startTime = new TableColumn <> (\"Start Time\");\n startTime.setCellValueFactory(new PropertyValueFactory(\"startTime\"));\n\n TableColumn <Appointment, String> endTime = new TableColumn <> (\"End Time\");\n endTime.setCellValueFactory(new PropertyValueFactory(\"endTime\"));\n \n TableColumn <Appointment, String> apptType = new TableColumn <> (\"Appt. Type\");\n apptType.setCellValueFactory(new PropertyValueFactory(\"apptType\"));\n\n TableColumn <Appointment, String> customer = new TableColumn <> (\"Customer\");\n customer.setCellValueFactory(new PropertyValueFactory(\"customerName\"));\n\n TableColumn <Appointment, String> consultant = new TableColumn <> (\"Consultant\");\n consultant.setCellValueFactory(new PropertyValueFactory(\"consultant\"));\n \n dailyApptTV.getColumns().setAll(startTime, endTime, apptType, customer, consultant);\n dailyApptTV.setItems(row);\n pstmt.close();\n manager.close();\n }\n catch (Exception ex)\n {\n Logger.getLogger(DailyApptController.class.getName()).log(Level.WARNING, null, ex);\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optional argument that when supplied must be a valid environment name in the `migrationenv` directory
private void validateEnv(String env) { if (StringUtils.isNotBlank(env)) { Path migrationEnvPath = Paths.get(getProject().getRootProject().getProjectDir().getAbsolutePath(), "/src/main/resources/db/migration-env"); File[] envDirs = migrationEnvPath.toFile().listFiles(File::isDirectory); if (envDirs != null) { if (Arrays.stream(envDirs).noneMatch(file -> file.getName().equalsIgnoreCase(env))) { throw new GradleException(String.format("No environment directory for environment '%s' exists in the 'migration-env' directory.", env)); } } else { throw new GradleException("No environment directory exist in 'migration-env' directory."); } } }
[ "@Test\n\t@DisplayName(\"test_env\")\n\t@EnabledIfEnvironmentVariable(named = \"ENVIRONMENT\", matches=\"dev\")\n\tvoid testEnv() {\n\t\t\n\t}", "java.lang.String getEnvName();", "public void setEnvName(String envName) {\n this.envName = envName == null ? null : envName.trim();\n }", "private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }", "com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv();", "@Test\n void testEnvironmentDefaultValue() {\n Assertions.assertEquals(\n Environment.LOCAL_ENV,\n this.environment.name(),\n \"unexpected default value for the environment's name\"\n );\n }", "public void setSaltGeneratorClassNameEnvName(final String saltGeneratorClassNameEnvName) {\n this.saltGeneratorClassNameEnvName = saltGeneratorClassNameEnvName;\n if (saltGeneratorClassNameEnvName == null) {\n super.setSaltGenerator(null);\n } else {\n this.saltGeneratorClassNameSysPropertyName = null;\n final String saltGeneratorClassName = System.getenv(saltGeneratorClassNameEnvName);\n super.setSaltGeneratorClassName(saltGeneratorClassName);\n }\n }", "Environment createEnvironment();", "public IProjectEnvironmentVariableSupplier getEnvironmentVariableSupplier();", "public void setProviderNameEnvName(final String providerNameEnvName) {\n this.providerNameEnvName = providerNameEnvName;\n if (providerNameEnvName == null) {\n super.setProviderName(null);\n } else {\n this.providerNameSysPropertyName = null;\n super.setProviderName(System.getenv(providerNameEnvName));\n }\n }", "Environment getEnviroment();", "public void setEnv(java.lang.String value);", "AppServiceEnvironmentResource.DefinitionStages.Blank defineHostingEnvironment(String name);", "private void checkNoStageEnvironment()\n {\n Environment stageEnv = environmentTx.findNamedEnvAllowNull(stageEnvName);\n if (stageEnv != null)\n {\n throw new IllegalStateException(stageContext() + \"Stage env exists already, with \"\n + CollectionUtils.size(stageEnv.getLogicalDatabases()) + \" logical databases [\"\n + environmentHelper.listOfNames(stageEnv.getLogicalDatabases())\n + \"], you must manually destroy the stage env and run this job again\");\n }\n }", "String getEnvironment();", "void setMigrationPath(String migrationPath);", "public void setProviderClassNameEnvName(final String providerClassNameEnvName) {\n this.providerClassNameEnvName = providerClassNameEnvName;\n if (providerClassNameEnvName == null) {\n super.setProvider(null);\n } else {\n this.providerClassNameSysPropertyName = null;\n final String providerClassName = System.getenv(providerClassNameEnvName);\n super.setProviderClassName(providerClassName);\n }\n }", "public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }", "public void setEnvironment(String environment) {\n this.environment = environment;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds all messages of job by passed id
@Transactional public List<JobMessage> findAllMessagesByJobId(long jobId) { Job foundJob = findById(jobId); return foundJob.getMessages() .stream() .sorted(Comparator.comparing(JobMessage::getId)) .collect(Collectors.toList()); }
[ "List<Message> findChildMessages(Message msg);", "protected ActionMessage lookupJobInfo(String id, List<ActionMessage> messages){\n\t\tfor (ActionMessage message: messages){\n\t\t\tif (message.getMessageID().equals(id)){\n\t\t\t\treturn message;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "MJob findJob(long id);", "List<Message> searchMessages(final String text);", "List<Chat> findChatMessages(Long anomalyId);", "@Override\n public List<AMessage> getMessages(int roomId) {\n return chatroomService.getMessages(roomId);\n }", "List<MBQMessage> get(List<String> ids);", "List<Message> getMessages(String chatroomid, int messageIndex);", "List<String> getMessages(String room);", "protected List<Integer> getMessagesByStatus(int id, String status) {\n List<Integer> resultMessages = new ArrayList<>();\n for (Message m : allMessage) {\n if (m.getReceiverId() == id && m.getStatus().equals(status)) {\n resultMessages.add(m.getId());\n }\n }\n return resultMessages;\n }", "List<Message> findByWorker(String worker);", "public List<Message> getMessagesToReview(Long id){\n return messagesParser.getMessagesToReview(id);\n }", "List<MessageBean> searchEnableMessages(long seq, boolean sell, String cid, int size);", "List<MessageEvent> findMessagesEvent(long eventId) throws DaoException;", "public List <Message> searchMessage (String searchParam) {\r\n\t\treturn messageRepository.searchMessage(searchParam);\r\n\t}", "public BatchJob findById(Integer id) {\r\n\t\treturn dao.findById(id);\r\n\t}", "private ArrayList<Message> getMessagesByRequestId(String requestId){\n ArrayList<Message> myMessages = new ArrayList<Message>();\n for(Message msg : queue){\n if (msg.values.get(\"requestid\").equals(requestId)){\n myMessages.add(msg);\n }\n queue.removeAll(myMessages);\n }\n return myMessages;\n }", "List<Message> findChildMessagesForParent(Message parentMessage);", "List<MBQMessage> get(String queueName, List<String> ids);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates the JSON Object and throws an exception if issues found
public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { if (SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner.openapiRequiredFields.isEmpty()) { return; } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner is not found in the empty JSON string", SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner.openapiRequiredFields.toString())); } } Set<Entry<String, JsonElement>> entries = jsonObj.entrySet(); // check to see if the JSON string contains additional fields for (Entry<String, JsonElement> entry : entries) { if (!SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SearchRecipesByIngredients200ResponseInnerMissedIngredientsInner.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } if (jsonObj.get("aisle") != null && !jsonObj.get("aisle").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `aisle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aisle").toString())); } if (jsonObj.get("image") != null && !jsonObj.get("image").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); } // ensure the json data is an array if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `meta` to be an array in the JSON string but got `%s`", jsonObj.get("meta").toString())); } if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("original") != null && !jsonObj.get("original").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `original` to be a primitive type in the JSON string but got `%s`", jsonObj.get("original").toString())); } if (jsonObj.get("originalName") != null && !jsonObj.get("originalName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `originalName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("originalName").toString())); } if (jsonObj.get("unit") != null && !jsonObj.get("unit").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); } if (jsonObj.get("unitLong") != null && !jsonObj.get("unitLong").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `unitLong` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitLong").toString())); } if (jsonObj.get("unitShort") != null && !jsonObj.get("unitShort").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `unitShort` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitShort").toString())); } }
[ "public boolean JsonValidate(Json obj);", "@Test\r\n void jsonInvalidValidateTest() {\r\n JSON reader = new JSON();\r\n Card card = new Card(\"Maxine\",\"0\");\r\n Card validate = reader.validate(card.getName(),card.getNum());\r\n assertNull(validate);\r\n }", "public static void validateJsonObject(JsonObject jsonObj) throws IOException {\n if (jsonObj == null) {\n if (!UnknownMissedEmailProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null\n throw new IllegalArgumentException(String.format(\"The required field(s) %s in UnknownMissedEmailProjection is not found in the empty JSON string\", UnknownMissedEmailProjection.openapiRequiredFields.toString()));\n }\n }\n\n Set<Entry<String, JsonElement>> entries = jsonObj.entrySet();\n // check to see if the JSON string contains additional fields\n for (Entry<String, JsonElement> entry : entries) {\n if (!UnknownMissedEmailProjection.openapiFields.contains(entry.getKey())) {\n throw new IllegalArgumentException(String.format(\"The field `%s` in the JSON string is not defined in the `UnknownMissedEmailProjection` properties. JSON: %s\", entry.getKey(), jsonObj.toString()));\n }\n }\n\n // check to make sure all required properties/fields are present in the JSON string\n for (String requiredField : UnknownMissedEmailProjection.openapiRequiredFields) {\n if (jsonObj.get(requiredField) == null) {\n throw new IllegalArgumentException(String.format(\"The required field `%s` is not found in the JSON string: %s\", requiredField, jsonObj.toString()));\n }\n }\n if (!jsonObj.get(\"id\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `id` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"id\").toString()));\n }\n if ((jsonObj.get(\"from\") != null && !jsonObj.get(\"from\").isJsonNull()) && !jsonObj.get(\"from\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `from` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"from\").toString()));\n }\n if ((jsonObj.get(\"subject\") != null && !jsonObj.get(\"subject\").isJsonNull()) && !jsonObj.get(\"subject\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `subject` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"subject\").toString()));\n }\n // ensure the optional json data is an array if present\n if (jsonObj.get(\"to\") != null && !jsonObj.get(\"to\").isJsonArray()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `to` to be an array in the JSON string but got `%s`\", jsonObj.get(\"to\").toString()));\n }\n }", "private boolean validateJsonBody() {\n try {\n JSONObject json = new JSONObject(jsonBody);\n return true;\n } catch (JSONException e) {\n return false;\n }\n }", "public static void validateJsonObject(JsonObject jsonObj) throws IOException {\n if (jsonObj == null) {\n if (AlipayMarketingActivityOrdervoucherRefundModel.openapiRequiredFields.isEmpty()) {\n return;\n } else { // has required fields\n throw new IllegalArgumentException(String.format(\"The required field(s) %s in AlipayMarketingActivityOrdervoucherRefundModel is not found in the empty JSON string\", AlipayMarketingActivityOrdervoucherRefundModel.openapiRequiredFields.toString()));\n }\n }\n\n Set<Entry<String, JsonElement>> entries = jsonObj.entrySet();\n // check to see if the JSON string contains additional fields\n for (Entry<String, JsonElement> entry : entries) {\n if (!AlipayMarketingActivityOrdervoucherRefundModel.openapiFields.contains(entry.getKey())) {\n throw new IllegalArgumentException(String.format(\"The field `%s` in the JSON string is not defined in the `AlipayMarketingActivityOrdervoucherRefundModel` properties. JSON: %s\", entry.getKey(), jsonObj.toString()));\n }\n }\n if (jsonObj.get(\"biz_dt\") != null && !jsonObj.get(\"biz_dt\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `biz_dt` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"biz_dt\").toString()));\n }\n if (jsonObj.get(\"merchant_access_mode\") != null && !jsonObj.get(\"merchant_access_mode\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `merchant_access_mode` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"merchant_access_mode\").toString()));\n }\n if (jsonObj.get(\"out_biz_no\") != null && !jsonObj.get(\"out_biz_no\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `out_biz_no` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"out_biz_no\").toString()));\n }\n if (jsonObj.get(\"total_fee\") != null && !jsonObj.get(\"total_fee\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `total_fee` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"total_fee\").toString()));\n }\n // validate the optional field `voucher_refund_detail_info`\n if (jsonObj.getAsJsonObject(\"voucher_refund_detail_info\") != null) {\n VoucherRefundDetailInfo.validateJsonObject(jsonObj.getAsJsonObject(\"voucher_refund_detail_info\"));\n }\n }", "static void validateJsonFormat(String jsonString) {\n try {\n mapper.readTree(jsonString);\n } catch (IOException e) {\n throw new MsalClientException(e.getMessage(), AuthenticationErrorCode.INVALID_JSON);\n }\n }", "private static boolean checkJsonError(JsonObject jsonObject) {\n\n String codeValue = jsonObject.get(COD_JSON_KEY).getAsString();\n boolean isErrorOccurred = false;\n if (codeValue.equals(ERROR_404_JSON_VALUE) || codeValue.equals(ERROR_400_JSON_VALUE)) {\n isErrorOccurred = true;\n }\n return isErrorOccurred;\n }", "@Test\r\n void jsonValidValidateTest() {\r\n JSON reader = new JSON();\r\n Card card = new Card(\"Maxine\",\"34402\");\r\n Card validate = reader.validate(card.getName(),card.getNum());\r\n assertEquals(card.getName(), validate.getName());\r\n assertEquals(card.getNum(), validate.getNum());\r\n }", "private static boolean isJSONValid(String jsonInString){\n\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.readTree(jsonInString);\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"INVALID JSON-LD SYNTAX\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "static public void validate(JSONObject json, String param) throws Exception {\n\t\tvalidate(json, new String[] { param });\n\t}", "public static Spot validateJSONData(JSONObject json) {\r\n\t\tint id, lot_id;\r\n\t\tdouble lat, lng;\r\n\t\tString status;\r\n\t\t\r\n\t\tLog.i(\"Spot JSON\", json.toString());\r\n\t\t\r\n\t\t// Begin the disgusting wall of try-catches\r\n\t\ttry {\r\n\t\t\tid = json.getInt(RestContract.SPOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tid = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlot_id = json.getInt(RestContract.SPOT_LOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlot_id = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlat = json.getDouble(RestContract.SPOT_LATITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlat = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlng = json.getDouble(RestContract.SPOT_LONGITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlng = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstatus = json.getString(RestContract.SPOT_STATUS);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tstatus = \"\";\r\n\t\t}\r\n\t\t\r\n\t\treturn new Spot(id, lot_id, lat, lng, status);\r\n\t}", "public boolean validate(JSONObject jsonObject) {\n\t\ttry {\n\t\t\tschema.validate(jsonObject);\n\t\t}\n\t\tcatch (ValidationException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n\tpublic void testValidUnformattedJson() {\n\t\tString json = getStringFromFile(\"json/validUnformatted.json\");\n\t\tAssert.assertTrue(testee.isValid(json));\n\t}", "public void validateWithJsonSchema(JsonNode jsonNode) {\r\n var errors = new ValidationErrors();\r\n validate(jsonNode, errors);\r\n if (errors.isInError()) {\r\n Optional<String> message = errors.getMessages().stream().reduce((s, s2) -> s2);\r\n Optional<String> log = errors.getLogs().stream().reduce((s, s2) -> s + \", \" + s2);\r\n if (message.isPresent()&&log.isPresent()) {\r\n throw new MutantsException(errors.getErrorCode(), log.get(),message.get());\r\n }\r\n }\r\n\r\n }", "@Test(expected = JSONException.class)\n public void serializeToBookShouldThrowAnExceptionWhenJsonIsIncorrect(){\n // Arrange (we create an invalid JSON object)\n String jsonToSerialize = \"Incorrect JSON\";\n JSONObject jsonObject = new JSONObject(jsonToSerialize);\n // Act (we call the serialize method)\n crawlerSerializer.serializeToBook(jsonObject, 0);\n }", "private boolean checkJSONValidity(JSONObject savedSearchJSON) {\n if (savedSearchJSON.get(\"name\") != null && savedSearchJSON.get(\"search\") != null) {\n return true;\n }\n return false;\n }", "static public void validate(JSONObject json, String param1, String param2) throws Exception {\n\t\tvalidate(json, new String[] { param1, param2 });\n\t}", "static public void validate(JSONObject json, String param1, String param2, String param3) throws Exception {\n\t\tvalidate(json, new String[] { param1, param2, param3 });\n\t}", "@Then(\"^response body should be valid json$\")\n public void bodyIsValid() throws IOException {\n this.checkJsonBody();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the lunch start time of a specific shift
public void setLunchStart(LocalTime lunchStart) { this.lunchStart = lunchStart; }
[ "public void setLunchStop(LocalTime lunchStop) {\r\n this.lunchStop = lunchStop;\r\n }", "public void setItStartingTime(long value) {\n this.itStartingTime = value;\n }", "void setStartTime(java.util.Calendar startTime);", "public void setStartedAtTime(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), STARTEDATTIME, value);\r\n\t}", "@Private\n @Unstable\n public abstract void setStartTime(long startTime);", "public Shift(String description, int startHour, int startMin,int interval, int gracePeriod,\r\n int dock, int stopHour, int stopMin, int lunchStartHour, int lunchStartMin,\r\n int lunchStopHour, int lunchStopMin, int lunchDeduct) {\r\n \r\n this.description = description;\r\n this.startingTime = LocalTime.of(startHour, startMin);\r\n this.stoppingTime = LocalTime.of(stopHour, stopMin);\r\n this.lunchStart = LocalTime.of(lunchStartHour, lunchStartMin);\r\n this.lunchStop = LocalTime.of(lunchStopHour, lunchStopMin);\r\n this.lunchDeduct = lunchDeduct;\r\n this.interval = interval;\r\n this.gracePeriod = gracePeriod;\r\n this.dock = dock;\r\n \r\n }", "public LocalTime getLunchStart() {\r\n return lunchStart;\r\n }", "public void setStart( Calendar start );", "public void setStartTime (Timestamp StartTime);", "public void setStartWorkTime(Date startWorkTime) {\n this.startWorkTime = startWorkTime;\n }", "public com.xplordat.rtmonitoring.avro.Triangle.Builder setTimeStart(long value) {\n validate(fields()[0], value);\n this.timeStart = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setStartTime(final Integer startTime )\n {\n // Start of user code setterInit:startTime\n // End of user code\n this.startTime = startTime;\n \n // Start of user code setterFinalize:startTime\n // End of user code\n }", "public void setTimeStart(java.lang.Long value) {\n this.timeStart = value;\n }", "public void pickRecitationTime(int start){\n\t\tthis.recitationTime = start;\n\t}", "public void setStarttime(long starttime) {\n\t\tthis.starttime = starttime;\n\t\t//System.out.println(\"Starttime gesetzt:\"+this.starttime);\n\t}", "public DayPlanner setDayPlanner(Calendar starttime, Calendar stoptime){\n\t\tint lowofs, highofs;\n\t\tif (starttime == null)\n\t\t\tlowofs = DayPlanner.MIN;\n\t\telse\n\t\t\tlowofs = DayPlanner.time2offset(starttime.get(Calendar.HOUR_OF_DAY), starttime.get(Calendar.MINUTE));\n\t\tif (stoptime == null)\n\t\t\thighofs = DayPlanner.MAX;\n\t\telse\n\t\t\thighofs = DayPlanner.time2offset(stoptime.get(Calendar.HOUR_OF_DAY), stoptime.get(Calendar.MINUTE));\n\n\t\tsetRange(lowofs, highofs);\n\t\treturn this;\n\t}", "public void setWorkTimeStart(String workTimeStart) {\n this.workTimeStart = workTimeStart;\n }", "public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }", "public static void setStartedAtTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, STARTEDATTIME, value);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize this class with an instance of StatsWriteService to push stats to.
public AmbrosePigProgressNotificationListener(StatsWriteService statsWriteService) { this.statsWriteService = statsWriteService; }
[ "public void setupStatsEndpoint() {\n HttpHandler handler =\n (httpExchange) -> {\n this.increaseEndpointHitFrequency(this.getStatsApiEndpoint());\n StringBuilder response = new StringBuilder();\n Set<Map.Entry<String, Integer>> frequencySet = this.getEndpointFrequencyEntrySet();\n for (Map.Entry<String, Integer> entry : frequencySet) {\n response\n .append(entry.getKey())\n .append(\":\")\n .append(entry.getValue())\n .append(System.getProperty(\"line.separator\"));\n }\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, response.length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(response.toString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.statsApiEndpoint, this.server.createContext(this.statsApiEndpoint));\n this.setHandler(this.getStatsApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.statsApiEndpoint, 0);\n }", "private Stats(){}", "WorkerStats(int workerId, StatisticsFactory factory) {\r\n initializeStatsType(factory);\r\n\r\n this.stats = factory.createStatistics(type, \"Worker \" + workerId);\r\n }", "public void setStatisticService(StatisticService statisticService) \n\t{\n\t\tthis.statisticService = statisticService;\n\t}", "public AmazonPushListenerService() {\n super(AmazonPushListenerService.class.getName());\n // Measure singleton\n if(MEASURE_ACTIVE) {\n getMeasureProcessing();\n }\n }", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }", "public static StatisticsService getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new StatisticsService();\n\t\t}\n\t\treturn instance;\n\t}", "public void insertStatsServer(StatsServer statsServer);", "private void createStatisticsManager() {\n\n// EventStatisticsManager eventStatisticsManager;\n //Ignoring statistics report observers registration if {StatisticsReporterDisabled =true}\n ServerConfiguration config = ServerConfiguration.getInstance();\n String confStatisticsReporterDisabled = config.getFirstProperty(\"StatisticsReporterDisabled\");\n if (!\"\".equals(confStatisticsReporterDisabled)) {\n boolean disabled = Boolean.valueOf(confStatisticsReporterDisabled);\n if (disabled) {\n return;\n }\n\n }\n\n EventStatisticsServiceHolder.getInstance().setEventStatisticsManager(new EventStatisticsManager());\n\n// //JMX-based event-stat monitoring is supported only for super tenant because other tenants cannot use it to monitor event-stats.\n// reporterThread = new StatisticsReporterThread(MultitenantConstants.SUPER_TENANT_ID);\n//\n// // Set a custom interval value if required\n// ServerConfiguration serverConf = ServerConfiguration.getInstance();\n// String interval = serverConf.getFirstProperty(Constants.STAT_REPORTING_INTERVAL);\n// if (interval != null) {\n// reporterThread.setDelay(Long.parseLong(interval));\n// }\n//\n// // Engage custom observer implementations (user written extensions)\n// String observers = serverConf.getFirstProperty(Constants.STAT_OBSERVERS);\n// if (observers != null && !\"\".equals(observers)) {\n// String[] classNames = observers.split(\",\");\n// for (String className : classNames) {\n// try {\n// Class clazz = this.getClass().getClassLoader().loadClass(className.trim());\n// EventStatisticsObserver o = (EventStatisticsObserver)\n// clazz.newInstance();\n// EventStatisticsServiceHolder.getInstance().getEventStatisticsManager().registerObserver(o);\n// } catch (Exception e) {\n// log.error(\"Error while initializing the event statistics \" + \"observer : \" + className, e);\n// }\n// }\n// }\n//\n// reporterThread.start();\n//\n// if (log.isDebugEnabled()) {\n// log.debug(\"Registering the mediation statistics service\");\n// }\n\n }", "public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}", "public static ExampleStatsExporter createAndRegister() {\n return new ExampleStatsExporter();\n }", "HttpStats() {\n\n\t}", "public StatusResource() {\n this.statusService = DeathStar.getStatusService();\n logger.log(Level.FINE, \"Status resource instantiated: {0}\", this);\n }", "public ServerService(){\n\t\tlogger.info(\"Initilizing the ServerService\");\n\t\tservers.put(1001, new Server(1001, \"Test Server1\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1002, new Server(1002, \"Test Server2\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1003, new Server(1003, \"Test Server3\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1004, new Server(1004, \"Test Server4\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tlogger.info(\"Initilizing the ServerService Done\");\n\t}", "public StatsTracker() {\n\t\tthis.handStats = new ArrayList<HandStats>();\n\t}", "public void setStatisticsCollector(StatisticsCollector statisticsCollector);", "public Statistics()\n\t{\n\t}", "public Statistics() {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getSelectedBooks method, of class LibraryTable.
@Test public void testGetSelectedBooks() { System.out.println("getSelectedBooks"); List expResult = new ArrayList(); List result = testLibraryTable.getSelectedBooks(); assertEquals(expResult, result); }
[ "public void setBooksInLibrary() {\n booksThatAreCurrentlyAvailable[0].setNameOfTheBook(\"Head First Java\");\n booksThatAreCurrentlyAvailable[0].setNameOfTheAuthorOfTheBook(\"Kathy Sierra & Bert Bates\");\n booksThatAreCurrentlyAvailable[0].setThirteenDigitISBNNumberOfTheBook(\"55rtxz34519y0\");\n booksThatAreCurrentlyAvailable[1].setNameOfTheBook(\"Effective Java\");\n booksThatAreCurrentlyAvailable[1].setNameOfTheAuthorOfTheBook(\"Joshua Bloch\");\n booksThatAreCurrentlyAvailable[1].setThirteenDigitISBNNumberOfTheBook(\"54mbdf45101zx\");\n booksThatAreCurrentlyAvailable[2].setNameOfTheBook(\"Java\");\n booksThatAreCurrentlyAvailable[2].setNameOfTheAuthorOfTheBook(\"Herbert Schildt\");\n booksThatAreCurrentlyAvailable[2].setThirteenDigitISBNNumberOfTheBook(\"81rtnc58319Ao\");\n booksThatAreCurrentlyAvailable[3].setNameOfTheBook(\"Database Management System\");\n booksThatAreCurrentlyAvailable[3].setNameOfTheAuthorOfTheBook(\"Navathe\");\n booksThatAreCurrentlyAvailable[3].setThirteenDigitISBNNumberOfTheBook(\"259bvh10023ma\");\n booksThatAreCurrentlyAvailable[4].setNameOfTheBook(\"Engineering Mathematics 3\");\n booksThatAreCurrentlyAvailable[4].setNameOfTheAuthorOfTheBook(\"H.K.Das\");\n booksThatAreCurrentlyAvailable[4].setThirteenDigitISBNNumberOfTheBook(\"569jhy02351vq\");\n }", "private void selectBook() {\n\t\t// Get field borID selected\n\t\tString borID = view.getTblBoth()\n\t\t\t\t.getValueAt(view.getTblBoth().getSelectedRow(), 0).toString();\n\t\t// Get field bookID selected\n\t\tString bookID = view.getTblBoth()\n\t\t\t\t.getValueAt(view.getTblBoth().getSelectedRow(), 2).toString();\n\t\t// If this book is'n selected\n\t\tif (set.add(borID + Messages.getString(\"CheckInController.21\") + bookID)) { //$NON-NLS-1$\n\t\t\t// Set all check-in information\n\t\t\tcheckin = map.get(borID\n\t\t\t\t\t+ Messages.getString(\"CheckInController.22\") + bookID); //$NON-NLS-1$\n\t\t\t// Set issue date\n\t\t\tview.getTxtIssueDate().setDate(\n\t\t\t\t\tnew java.util.Date(checkin.getIssueDate()));\n\t\t\t// Create a new vector to add checkin info from checkin object\n\t\t\tvt = new Vector<Object>();\n\t\t\tvt.add(checkin.getBorID());\n\t\t\tvt.add(checkin.getBookID());\n\t\t\tvt.add(checkin.getCallNumber());\n\t\t\tvt.add(checkin.getTitle());\n\t\t\t// Calculate Borrow information\n\t\t\tint DueDay = (int) ((checkin.getDueDate() - checkin.getIssueDate()) / (24 * 60 * 60 * 1000));\n\t\t\tint DayBor = (int) (view.getTxtReturnDate().getDate().getTime() - checkin\n\t\t\t\t\t.getIssueDate()) / (24 * 60 * 60 * 1000);\n\t\t\t// If day borrow is great than due day, set it default due day\n\t\t\tif (DayBor > DueDay) {\n\t\t\t\tDayBor = DueDay;\n\t\t\t}\n\t\t\tint DayLate = (int) (view.getTxtReturnDate().getDate().getTime() - checkin\n\t\t\t\t\t.getDueDate()) / (24 * 60 * 60 * 1000);\n\t\t\tfloat BorrowFee = DayBor * borFee;\n\t\t\tfloat Fine = 0;\n\t\t\tvt.add(DayBor + Messages.getString(\"Slash\") + BorrowFee); //$NON-NLS-1$\n\t\t\tif (DayLate > 0) {\n\t\t\t\tFine = DayLate * lateFee;\n\t\t\t\tvt.add(DayLate + Messages.getString(\"Slash\") + Fine); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tvt.add(0 + Messages.getString(\"Slash\") + 0); //$NON-NLS-1$\n\t\t\t}\n\t\t\tvt.add(BorrowFee + Fine);\n\t\t\tinModel.addRow(vt);\n\t\t}\n\n\t}", "@Test\n\t\tpublic void testGetLibraryBooks() throws JSONException, InvalidRequestException, ConnectionException, InvalidLibraryException, InvalidBookException, ParseException{\n\t\t\t//mock\n\t\t\tString goodBooks = \"[{'title':'Book', 'id' : '123'},{'title':'Book2','id':'456'}]\";\n\t\t\tMockito.when(mockClient.query(\"http://www.fake.com/books/123\")).thenReturn(goodBooks);\n\t\t\t\n\t\t\t// test\n\t\t\tList<IBook> libraryBooks = sut.getLibraryBooks(\"123\");\n\t\t\tAssert.assertEquals(\"Book\", libraryBooks.get(0).getTitle());\n\t\t\tAssert.assertEquals(\"456\", libraryBooks.get(1).getId());\n\t\t\tAssert.assertEquals(2, libraryBooks.size());\n\t\t}", "public void selectNewBook(MouseEvent e)\n\t{\n\t\tBookApp.currentBook = otherAppearances.getSelectionModel().getSelectedItem();\n\t\tcurrentBookDisplay.getItems().clear();\n\t\tcurrentBookDisplay.getItems().add(BookApp.currentBook);\n\t\tcharactersNameList.getItems().clear();\n\t\tfor(Character character : (MyLinkedList<Character>) BookApp.currentBook.getCharacterList()){\n\t\t\tcharactersNameList.getItems().add(character);\n\t\t\tcharactersNameList.getSelectionModel().getSelectedIndex();\n\t\t}\n\t\totherAppearances.getItems().clear();\n\t\tfor(int i = 0; i< BookApp.unsortedBookTable.hashTable.length; i++) {\t\t\n\t\t\tfor(Book eachBook : (MyLinkedList<Book>) BookApp.unsortedBookTable.hashTable[i]) {\n\t\t\t\tfor(Character eachCharacterInTotalList : (MyLinkedList<Character>) eachBook.getCharacterList())\n\t\t\t\t{\n\t\t\t\t\tif(eachCharacterInTotalList.equals(BookApp.currentCharacter) && eachBook.equals(BookApp.currentBook))\n\t\t\t\t\t{\n\t\t\t\t\t\totherAppearances.getItems().add(eachBook);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void selectBook (String selection){\n Select bookList = new Select(selectBookMain);\n bookList.selectByVisibleText(selection);\n }", "@org.junit.Test\n public void testListAllBooks() throws Exception {\n System.out.println(\"listAllBooks\");\n repositoryCore instance = null;\n String expResult = \"\";\n String result = instance.listAllBooks();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testGetAllBookCopies() throws SQLException {\n\t\tfinal List<BranchCopies> allBookCopies = copiesDaoImpl.getAllBookCopies(testBook);\n\t\tassertTrue(\n\t\t\t\tallBookCopies.contains(\n\t\t\t\t\t\tnew BranchCopies(testBook, testBranch, NUM_COPIES)),\n\t\t\t\t\"branch's records includes correct copy count for test book at test branch\");\n\t}", "public void clickBooks()\n {\n clickOnElement(_bookLink);\n }", "@Test\n\tpublic void checkIsBookAvailableWhenBooksIsAvailable() throws Exception {\n\t\tmvc.perform(get(\"/library/isAvailable\").param(\"book\", \"Microservices\"))\n\t\t.andExpect(status().isOk())\n\t\t.andExpect(jsonPath(\"$.isAvailable\", is(true)));\n\t}", "@Test\n\t\tpublic void testGetLibraryBook() throws JSONException, InvalidRequestException, ConnectionException, InvalidLibraryException, InvalidBookException, ParseException{\n\t\t\t//mock\n\t\t\tString goodBook = \"{'id':'123','title':'Test Book'}\";\n\t\t\tMockito.when(mockClient.query(\"http://www.fake.com/book/123\")).thenReturn(goodBook);\n\t\t\t\n\t\t\t// test\n\t\t\tIBook book = sut.getLibraryBook(\"123\");\n\t\t\tAssert.assertEquals(\"123\", book.getId());\n\t\t\tAssert.assertEquals(\"Test Book\", book.getTitle());\n\t\t}", "private void browseBooks() {\n System.out.println(\"Title: Genre||\\n\");\n for (Book b: library.getBooks()) {\n System.out.println(b.getTitle() + \": \" + b.getCategory());\n }\n printInstructions();\n }", "@Test\n public void testAvailableBookNotBought() {\n Library library = makeLibrary();\n Book book = new Book(\"A New World Power\", Arrays.asList(\"Steve Hawks\", \"Thomas King\"), 2000);\n\n assertTrue(\"book should not be found in library\", !library.isAvailable(new BookCopy(book)));\n }", "@Test\r\n public void testGetRecentBooks() throws SQLException {\r\n \r\n BookinventoryJpaController instance = new BookinventoryJpaController();\r\n List<Bookinventory> expResult = null;\r\n List<Bookinventory> result = instance.getRecentBooks();\r\n assertThat(result).doesNotContainNull();\r\n }", "private static void testBook() {\n\t\tArrayList<String> dickensPages = new ArrayList<String>(\n\t\t\tArrays.asList(\n\t\t\t\t\"A Tale of Two Cities, by Charles Dickens\",\n\t\t\t\t\"It was the best of times, it was the worst of times.\"\n\t\t\t)\n\t\t);\n\t\tBook twoCities = new Book(\n\t\t\t\"A Tale of Two Cities\",\n\t\t\t\"Charles Dickens\",\n\t\t\t\"9781534968998\",\n\t\t\tdickensPages,\n\t\t\t\"Fiction\"\n\t\t);\n\n\t\t// toString\n\t\tSystem.out.println(\"Book#toString()\");\n\t\tSystem.out.println(twoCities);\n\t\t// printPages\n\t\tSystem.out.println(\"\\nBook#printPages()\");\n\t\ttwoCities.printPages();\t\n\t\t// getTitle\n\t\tSystem.out.println(\"\\nBook#getTitle()\");\n\t\tSystem.out.println(twoCities.getTitle());\n\t\t// setTitle\n\t\tSystem.out.println(\"\\nBook#setTitle()\");\n\t\tSystem.out.println(twoCities.setTitle(\"Le Petit Prince\"));\n\t\t// getAuthor\n\t\tSystem.out.println(\"\\nBook#getAuthor()\");\n\t\tSystem.out.println(twoCities.getAuthor());\n\t\t// setAuthor\n\t\tSystem.out.println(\"\\nBook#setAuthor()\");\n\t\tSystem.out.println(twoCities.setAuthor(\"Antoine de Saint-Exupery\"));\n\t\t// getISBN\n\t\tSystem.out.println(\"\\nBook#getISBN()\");\n\t\tSystem.out.println(twoCities.getISBN());\n\t\t// setISBN\n\t\tSystem.out.println(\"\\nBook#setISBN()\");\n\t\tSystem.out.println(twoCities.setISBN(\"9788998469863\"));\n\t\t// getPages\n\t\tSystem.out.println(\"\\nBook#getPages()\");\n\t\tSystem.out.println(twoCities.getPages());\n\t\t// getPage\n\t\tSystem.out.println(\"\\nBook#getPage()\");\n\t\tSystem.out.println(twoCities.getPage(0));\n\t\t// setPage\n\t\tSystem.out.println(\"\\nBook#setPage(0)\");\n\t\tSystem.out.println(twoCities.setPage(0, \"Le Petit Prince, par Antoine de Saint-Exupery\"));\n\t\t// addPage 1\n\t\tSystem.out.println(\"\\nBook#addPage() (1 arg)\");\n\t\tSystem.out.println(twoCities.addPage(\"Bienvenue.\"));\n\t\t// addPage 2\n\t\tSystem.out.println(\"\\nBook#addPage(1) (2 args)\");\n\t\tSystem.out.println(twoCities.addPage(1, \"Cover Page.\"));\n\t\t// deletePage\n\t\tSystem.out.println(\"\\nBook#deletePage(2)\");\n\t\tSystem.out.println(twoCities.deletePage(2));\t\n\t\t// getSubject\n\t\tSystem.out.println(\"\\nBook#getSubject()\");\n\t\tSystem.out.println(twoCities.getSubject());\n\t\t// setSubject\n\t\tSystem.out.println(\"\\nBook#setSubject()\");\n\t\tSystem.out.println(twoCities.setSubject(\"Children's Literature\"));\n\t\t// toString\n\t\tSystem.out.println(\"\\nBook#toString()\");\n\t\tSystem.out.println(twoCities);\n\t\t// printPages\n\t\tSystem.out.println(\"\\nBook#printPages()\");\n\t\ttwoCities.printPages();\t\n\t}", "@Test\r\n public void testGetBookByIsbn() {\r\n \r\n String isbn = \"9781598290394\";\r\n BookinventoryJpaController instance = new BookinventoryJpaController();\r\n List<Bookinventory> expResult = bjpa.getBookBytitle(\"Signal Processing of Random Physiological Signals\");\r\n List<Bookinventory> result = instance.getBookByIsbn(isbn);\r\n assertThat(expResult).isEqualTo(result);\r\n \r\n \r\n }", "private void deselectBook() {\n\t\tString bookID = view.getTblCheckIn()\n\t\t\t\t.getValueAt(view.getTblCheckIn().getSelectedRow(), 1)\n\t\t\t\t.toString();\n\t\tString borId = view.getTblCheckIn()\n\t\t\t\t.getValueAt(view.getTblCheckIn().getSelectedRow(), 0)\n\t\t\t\t.toString();\n\t\tinModel.removeRow(view.getTblCheckIn().getSelectedRow());\n\t\tset.remove(borId + Messages.getString(\"CheckInController.0\") + bookID); //$NON-NLS-1$\n\t}", "@Test\n public void testFindBookByExactAuthor() {\n Library library = makeLibrary();\n \n Book book1 = new Book(\"Don Quixote\", Arrays.asList(\"Miguel de Cervantes\"), 1612);\n Book book2 = new Book(\"Harry Potter and the Philosopher's Stone\", Arrays.asList(\"J.K. Rowling\"), 1997);\n\n library.buy(book2);\n library.buy(book1);\n\n List<Book> books = library.find(book2.getAuthors().get(0));\n \n assertTrue(\"Should find 1 books\", books.size() == 1);\n }", "static void viewAllBooks() {\n List<Book> viewAll = Library.viewBookList();\n System.out.println(viewAll);\n }", "public static boolean testSaveBookList() {\n // Creates a new instance of library\n ExceptionalLibrary madisonLibrary = new ExceptionalLibrary(\"Madison, WI\", \"april\", \"abc\");\n\n String[] commands = {\"1\", \"books1.data\"};\n\n try {\n madisonLibrary.parseRunLibrarianLoadBooksCommand(commands);\n } catch (ParseException e1) {\n return false;\n }\n\n commands[1] = \"jacob.txt\";\n\n try {\n madisonLibrary.parseRunLibrarianSaveBooksCommand(commands);\n } catch (ParseException e) {\n return false;\n }\n\n return true;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pushes the ActionEventDispatcher onto the top of this stack.
private ActionEventDispatcher push(ActionEventDispatcher actionEventDispatcher) { add(actionEventDispatcher); return actionEventDispatcher; }
[ "static void pushThreadLocalDispatcher(ActionEventDispatcher actionEventDispatcher) {\r\n getDispatcherStack().push(actionEventDispatcher);\r\n }", "private void push(GameAction action) {\n this.queue.add(action);\n }", "private ActionEventDispatcher peek() {\r\n int length = size();\r\n\r\n if (length == 0) {\r\n String msg = \"No ActionEventDispatcher available on ThreadLocal Dispatcher Stack\";\r\n throw new RuntimeException(msg);\r\n }\r\n\r\n return get(length - 1);\r\n }", "public void push(E object) {stackList.insertAtFront(object);}", "private ActionEventDispatcher pop() {\r\n ActionEventDispatcher actionEventDispatcher = peek();\r\n\r\n remove(size() - 1);\r\n\r\n return actionEventDispatcher;\r\n }", "static ActionEventDispatcher popThreadLocalDispatcher() {\r\n DispatcherStack dispatcherStack = getDispatcherStack();\r\n ActionEventDispatcher actionEventDispatcher = dispatcherStack.pop();\r\n\r\n if (dispatcherStack.isEmpty()) {\r\n THREAD_LOCAL_DISPATCHER_STACK.set(null);\r\n }\r\n\r\n return actionEventDispatcher;\r\n }", "public synchronized void push()\n {\n if( null == m_target )\n {\n getErrorHandler().error( \"Can not push events to a null target\", null, null );\n return;\n }\n\n try\n {\n final int size = m_used;\n int base = m_index - m_used + 1;\n if( base < 0 )\n {\n base += m_buffer.length;\n }\n\n for( int i = 0; i < size; i++ )\n {\n final int index = ( base + i ) % m_buffer.length;\n\n //process event in buffer\n m_target.processEvent( m_buffer[ index ] );\n\n //help GC\n m_buffer[ index ] = null;\n m_used--;\n }\n }\n catch( final Throwable throwable )\n {\n getErrorHandler().error( \"Unknown error pushing events.\", throwable, null );\n }\n }", "private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}", "@Override\n public void pushAction(ActionPacket actionPacket) {\n GameApplicationIOHandler.getInstance().pushAction(actionPacket);\n }", "void push(RtfCompoundObject state) {\r\n _top = new RtfCompoundObjectStackCell(_top, state);\r\n }", "public final void pushCutPoint ()\n {\n _ctptStack.push(getTypingState());\n }", "private void topOfStackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_topOfStackActionPerformed\n if (newStack.isEmpty()) {\n jTextArea1.append(\"Stack is empty, nothing is at the top.\\n\");\n } else {\n Object obj = (newStack.top());\n jTextArea1.append(obj.toString());\n }\n }", "public StrategoStackFrame pushFrame(StrategoStackFrame frame)\n\t{\n\t\treturn stack.push(frame);\n\t}", "public void enqueue(Action action) {\n\t\tsynchronized (lock) {\n\t\t\tif (exit) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tactions.add(action);\n\t\t\tlock.notify();\n\t\t}\n\t}", "public EventStack() {\n\t\tevents = new ArrayList<Event>();\n\t}", "public static Action push(final LanguageDefinition.State stateName) {\n return new Action() {\n public void apply(LexerState state) {\n state.push(stateName);\n }\n };\n }", "public static ActionEventDispatcher getThreadLocalDispatcher() {\r\n return getDispatcherStack().peek();\r\n }", "private void pushOperator(Operator operator)\n {\n LOGGER.debug(\"pushing operator '{}' onto operator stack\", operator);\n\n while (!operators_.isEmpty() && operators_.peek().precedes(operator))\n {\n LOGGER.debug(\"removing higher precedence operator from stack\");\n processOperator(operators_.pop());\n }\n\n operators_.push(operator);\n }", "public void push(T value) {\n \tstack.add(value);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the type of cargo of this temp no tice ship message.
public void setTypeOfCargo(java.lang.String typeOfCargo) { _tempNoTiceShipMessage.setTypeOfCargo(typeOfCargo); }
[ "@Override\n\tpublic void setTypeOfCargo(java.lang.String typeOfCargo) {\n\t\t_tempNoTiceShipMessage.setTypeOfCargo(typeOfCargo);\n\t}", "public void setType(ShipType type) {\n\t\tthis.type = type; }", "public void setType(ShipType type) {\r\n this.type = type;\r\n }", "@Override\n\tpublic void setNoticeShipType(java.lang.String noticeShipType) {\n\t\t_tempNoTiceShipMessage.setNoticeShipType(noticeShipType);\n\t}", "public void setShipType(String shipType) {\n this.shipType = shipType;\n }", "@Override\n\tpublic java.lang.String getTypeOfCargo() {\n\t\treturn _tempNoTiceShipMessage.getTypeOfCargo();\n\t}", "public void setType(String type) {\n if (this.type == null)\n this.type = type;\n else throw new IllegalStateException(\"Chip already has a type.\");\n }", "public Ships(ShipTypes type) {\n this.type = type;\n }", "public void setType(Type t){\n\t\tpieceID=t;\n\t}", "public void setType( String pType )\r\n {\r\n mType = pType;\r\n }", "public Ship(ShipType type) {\r\n this(type, type.getFuel());\r\n }", "public void setType(Object type) {\n this.type = type;\n }", "@Override\n\tpublic void setShipTypeCode(java.lang.String shipTypeCode) {\n\t\t_tempNoTiceShipMessage.setShipTypeCode(shipTypeCode);\n\t}", "public void xsetType(org.apache.xmlbeans.XmlString type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$0);\n }\n target.set(type);\n }\n }", "public Ship(Type type, CrewMember owner) {\n this.type = type;\n this.fuelAmount = type.fuelCapacity;\n this.hullStrength = type.hullStrength;\n this.cargoHold = new CargoHold(type.cargoCapacity);\n this.crew = new ArrayList<>();\n\n this.weapons = new ArrayList<>();\n this.equippedWeapons = new ArrayList<>();\n this.shields = new ArrayList<>();\n this.equippedShields = new ArrayList<>();\n this.gadgets = new ArrayList<>();\n this.equippedGadgets = new ArrayList<>();\n\n this.numWeapons = 0;\n this.numShields = 0;\n this.numGadgets = 0;\n\n this.maxShields = calculateMaxShields();\n this.currentShields = maxShields;\n\n this.owner = owner;\n }", "public void setNoticeShipType(java.lang.String noticeShipType) {\n\t\t_tempNoTiceShipMessage.setNoticeShipType(noticeShipType);\n\t}", "public final void setShip(final ShipTypes aShipType) {\n if (aShipType == ShipTypes.SERENITY) {\n //set new attributes based on type\n SpaceTrader.ship.setMaxCargo(10);\n SpaceTrader.ship.setMaxFuel(20);\n SpaceTrader.ship.setGadgetslots(\n SpaceTrader.ship.getGadgetslots() + 1);\n SpaceTrader.ship.setTechLevel(4);\n SpaceTrader.ship.setFuelCost(1);\n SpaceTrader.ship.setBounty(5);\n SpaceTrader.ship.setSize(0);\n SpaceTrader.ship.setHull(25);\n SpaceTrader.ship.setWeaponLevel(0);\n SpaceTrader.ship.setShieldLevel(0);\n }\n if (aShipType == ShipTypes.FALCON) {\n SpaceTrader.ship.setMaxCargo(15);\n SpaceTrader.ship.setMaxFuel(25);\n SpaceTrader.ship.setGadgetslots(\n SpaceTrader.ship.getGadgetslots() + 1);\n SpaceTrader.ship.setTechLevel(5);\n SpaceTrader.ship.setFuelCost(2);\n SpaceTrader.ship.setBounty(50);\n SpaceTrader.ship.setSize(1);\n SpaceTrader.ship.setHull(100);\n SpaceTrader.ship.setWeaponLevel(1);\n SpaceTrader.ship.setShieldLevel(1);\n }\n if (aShipType == ShipTypes.ENTERPRISE) {\n SpaceTrader.ship.setMaxCargo(20);\n SpaceTrader.ship.setMaxFuel(30);\n SpaceTrader.ship.setGadgetslots(\n SpaceTrader.ship.getGadgetslots() + 1);\n SpaceTrader.ship.setTechLevel(5);\n SpaceTrader.ship.setFuelCost(3);\n SpaceTrader.ship.setBounty(75);\n SpaceTrader.ship.setSize(1);\n SpaceTrader.ship.setHull(100);\n SpaceTrader.ship.setWeaponLevel(3);\n SpaceTrader.ship.setShieldLevel(3);\n }\n if (aShipType == ShipTypes.GALACTICA) {\n SpaceTrader.ship.setMaxCargo(25);\n SpaceTrader.ship.setMaxFuel(35);\n SpaceTrader.ship.setGadgetslots(\n SpaceTrader.ship.getGadgetslots() + 1);\n SpaceTrader.ship.setTechLevel(5);\n SpaceTrader.ship.setFuelCost(5);\n SpaceTrader.ship.setBounty(100);\n SpaceTrader.ship.setSize(1);\n SpaceTrader.ship.setHull(100);\n SpaceTrader.ship.setWeaponLevel(5);\n SpaceTrader.ship.setShieldLevel(5);\n }\n if (aShipType == ShipTypes.DAEDALUS) {\n SpaceTrader.ship.setMaxCargo(30);\n SpaceTrader.ship.setMaxFuel(40);\n SpaceTrader.ship.setGadgetslots(\n SpaceTrader.ship.getGadgetslots() + 1);\n SpaceTrader.ship.setTechLevel(5);\n SpaceTrader.ship.setFuelCost(7);\n SpaceTrader.ship.setBounty(125);\n SpaceTrader.ship.setSize(2);\n SpaceTrader.ship.setHull(100);\n SpaceTrader.ship.setWeaponLevel(7);\n SpaceTrader.ship.setShieldLevel(7);\n }\n setShipType(aShipType);\n }", "public void setType(int type){\n unitType=type;\n }", "public ShipType getType() {\r\n return type;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Order subtotal. double subtotal = 11 [(.gen_bq_schema.description) = "Order subtotal."];
double getSubtotal();
[ "BigDecimal getSubtotal();", "void setSubtotal(BigDecimal subtotal);", "public BigDecimal getAmtSubtotalPO();", "public static float getSubtotalPrice(){\n return subtotal;\n }", "public Long getSubTotal() {\r\n return subTotal;\r\n }", "public Double getSUBTOTAL() {\n return SUBTOTAL;\n }", "public void setAmtSubtotalPO(BigDecimal AmtSubtotalPO);", "public BigDecimal getActualSubTotalPrice() {\n WebElement subTotal = driver.findElement(By.xpath(\"//div[@class = 'col-sm-4 col-sm-offset-8']//strong[contains (text(), 'Sub-Total')]/parent::td/following-sibling::td\"));\n return new RegularExpression().getBigDecimalFromPriceField(subTotal.getText());\n }", "public double getSubTotal()\n\t{\n\t\treturn subTotal;\n\t}", "public double getSubTotal() {\n\t\treturn subTotal;\n\t}", "com.yhglobal.gongxiao.payment.microservice.PaymentCommonGrpc.FrontPageFlowSubtotal getSubtotal();", "public void setSubTotal(Long subTotal) {\r\n this.subTotal = subTotal;\r\n }", "public Double getGoodsSubtotal() {\n return goodsSubtotal;\n }", "private void updateSubtotal() {\n subtotal = entreePrice + drinkPrice + dessertPrice;\n subtotalEdtTxt.setText(String.format(\"$%.2f\", subtotal));\n }", "public BigDecimal getOrder_Qty();", "public DisplayOrder setSubtotal(java.lang.String subtotal) {\n return genClient.setOther(subtotal, CacheKey.subtotal);\n }", "public void calcularSubtotal() {\n subTotal = 0.00;\n TableModel tableModel = tableDetalleFactura.getModel();\n int filas = tableModel.getRowCount();\n for (int i = 0; i < filas; i++) {\n subTotal += (double) tableModel.getValueAt(i, 5);\n }\n txtSubTotal.setText(formato1.format(subTotal));\n }", "BigDecimal calculateTotalPrice(Order order);", "public void setGrandTotal (BigDecimal GrandTotal);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log a delivered message.
public void logDeliverMessage(RoutingHeader header);
[ "public void notifyOfDelivery(Message message) {\n logger.debug(\"entering notifyOfDelivery\");\n\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(MESSAGE_DELIVERED);\n stringBuffer.append(\" \");\n stringBuffer.append(message.getMessageID());\n\n channel.writeAndFlush(stringBuffer.toString());\n\n logger.debug(\"wrote \" + stringBuffer);\n\n logger.debug(\"leaving notifyOfDelivery\");\n }", "public void delivered(){\n this.state=State.DELIVERED;\n }", "public void deliveredOrder(Order order){\n order.changeStatus(4);\n\n if (order.getWasReturned()){\n order.setWasReturned(false, \"Order Fixed.\");\n }\n\n orderTracker.setChanged();\n logger.log(Logger.Level.FINEST,\n \"Server: \" + name + \" delivered \" + order.getDetails() + \" to \" + order.getLocation() + \".\");\n }", "public LogDeliverMessageSignal(RoutingHeader messageID) {\n\t this.messageID = messageID;\n\t }", "void log(int agentId, String msg);", "@Override\n\tpublic void deliver(String uuid, Object message) {\n\t\tMailMessage mm = (MailMessage) message;\n\t\tsmtpClient\n\t\t\t\t.setFromEmail(mm.getFromUsername() + '@' + mm.getFromDomain());\n\t\ttry {\n\t\t\tsmtpClient.send(this.smtpRoutes, 25, mm.getToStr(), mm\n\t\t\t\t\t.getDataLineList());\n\t\t} catch (Exception e) {\n\t\t\tString returnCode = e.getMessage();\n\t\t\t// sent failed -need not retry\n\t\t\tif (!returnCode.startsWith(\"4\")) {\n\t\t\t\t// TODO : ANALYZED\n\t\t\t\tthis.logFail(uuid, mm, e);\n\t\t\t\tbounce(mm, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Delay To Next DelayQueue\n\t\t\ttry {\n\t\t\t\tboolean res = this.delay(mm, e);\n\t\t\t\tif (!res) {\n\t\t\t\t\tbounce(mm, e);\n\t\t\t\t\tthis.logFail(uuid, mm, e);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\tbounce(mm, e);\n\t\t\t\tthis.logFail(uuid, mm, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tStringBuffer resSb = new StringBuffer(this.name).append(\": Sent, to=<\")\n\t\t\t\t.append(mm.getToStr()).append(\">\");\n\t\tLogger.info(resSb);\n\n\t}", "public void report(long seqnum, DeliveryEvent event) {\n\t\t\t\tSystem.out.println(event.deliveryNotification);\n\t\t\t\t// Exit the program if the message has been delivered or has\n\t\t\t\t// been dropped.\n\t\t\t\tif (event.deliverySuccess == 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} else if (event.deliverySuccess == 2) {\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\n\t\t\t}", "public void log(Message aMessage);", "public void appendNotice(String destination, String message) {\n writerQueue.add(\"NOTICE \" + destination + \" :\" + message);\n }", "public void sendMessageToLog(String message) {\n LogMessage msg = new LogMessage();\n msg.setMessage(message);\n msg.setUser(loginBean.getLoggedInUser());\n msg.setDate(new Date());\n context.createProducer().send(myQueue, msg);\n }", "void deliverMessage(final String messageId);", "public void logPurchase(AdmitadOrder order) {\n logPurchase(order, ADMITAD_MOBILE_CHANNEL, null);\n }", "protected void incMsgDelivered() {\n\t\tengine.incMsgDelivered();\n\t}", "public void deliverMessage()\n {\n if(buffer.isEmpty())\n {\n return;\n }\n\n Message deliv = buffer.remove();\n acks.remove(deliv.getTimestamp());\n //System.out.println(\"Process \" + this.procID + \" Read message \" + deliv.getMessage() );\n time = Math.max(time, deliv.getTimestamp().getTime()) + 1;\n\n System.out.println(\"=======================================\");\n System.out.println(\"PROCESS \" + procID + \" DELIVERED MESSAGE: \" + deliv);\n System.out.println(\"=======================================\");\n\n // check if able to deliver a second message\n if(!buffer.isEmpty())\n {\n Timestamp temp = buffer.peek().getTimestamp();\n if((acks.containsKey(temp)) && (acks.get(temp) >= numProcesses))\n {\n deliverMessage();\n }\n }\n }", "protected void log(String message) {\n task.log(message);\n }", "@Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n //System.out.println(\"Pub complete\" + new String(token.getMessage().getPayload()));\n }", "public static void log(Sendable src, Object msg) {\n\t\tSystem.out.print(\"[\");\n\t\tSystem.out.print(Timer.getFPGATimestamp());\n\t\tSystem.out.println(\"] \" + src.getName() + \": \" + String.valueOf(msg));\n\t}", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "public static void log_ACK(int ACK_received) {\n\t\tTimestamp t = new Timestamp(System.currentTimeMillis());\n\n\t\tInetAddress local = ACK_SOCKET.getInetAddress();\n\t\tInetAddress dest = ACK_SOCKET.getLocalAddress();\n\n\t\tString log_entry = t.toString() + '\\n' + \"Type: ACK_RECEIVED\" + '\\n'\n\t\t\t\t+ \"DEST: \" + dest + '/' + ACK_SOCKET.getLocalPort() + '\\n'\n\t\t\t\t+ \"SOURCE: \" + local + '/' + ACK_SOCKET.getPort() + '\\n'\n\t\t\t\t+ \"SEQ. No.: Not Needed\" + '\\n' + \"ACK #: \" + ACK_received\n\t\t\t\t+ '\\n' + \"Flags: Not Needed (All 0's)\" + '\\n' + '\\n';\n\n\t\ttry {\n\t\t\tlog_file.writeChars(log_entry);\n\t\t\tif (Debug_Mode)\n\t\t\t\tSystem.err.print(\"LOG: \" + log_entry);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tif (Debug_Mode)\n\t\t\t\tSystem.err.println(\"ACK entry can't be written! Time: \"\n\t\t\t\t\t\t+ t.toString());\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string quxian_yun_id = 3;
java.lang.String getQuxianYunId();
[ "public java.lang.String getQuxianYunId() {\n java.lang.Object ref = quxianYunId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n quxianYunId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getQuxianYunId() {\n java.lang.Object ref = quxianYunId_;\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 quxianYunId_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString\n getQuxianYunIdBytes();", "public com.google.protobuf.ByteString\n getQuxianYunIdBytes() {\n java.lang.Object ref = quxianYunId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quxianYunId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getShiYunId();", "public java.lang.String getShiYunId() {\n java.lang.Object ref = shiYunId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n shiYunId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getMusicId();", "public java.lang.String getShiYunId() {\n java.lang.Object ref = shiYunId_;\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 shiYunId_ = s;\n return s;\n }\n }", "java.lang.String getQuxianYunName();", "private String getLuisSubscriptionID() {\n return this.getString(R.string.luisSubscriptionID);\n }", "int getWhid();", "String getIdString();", "String getPlayerId();", "public String getShijiangneirong() {\n return shijiangneirong;\n }", "public String getSQLibyID(int id){\n if(id>=0 && id<=33){\n return strings[id];\n } else return null;\n }", "private void createPlayerId() {\n playerId = \"Android\" + (new Random().nextInt(99999));\n Log.i(getClass().getName(), \"My playerId is: \" + playerId);\n }", "private String generateMessageId(){\n\n String messageId = \"msgId\";\n return messageId;\n }", "long getPlayerid();", "private String getLuisAppId() {\n return this.getString(R.string.luisAppID);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get reporting period by reporting period id.
ReportingPeriod getReportingPeriod(Long reportingPeriodId);
[ "public long getPeriodId() {\n return periodId;\n }", "public java.lang.String getPeriodId() {\n return periodId;\n }", "public Integer getPeriodId() {\n\t\treturn periodId;\n\t}", "public String getPeriodsId() {\n return periodsId;\n }", "@Transactional(readOnly = true) \n public PtoPeriodDTO findOne(Long id) {\n log.debug(\"Request to get PtoPeriod : {}\", id);\n PtoPeriod ptoPeriod = ptoPeriodRepository.findOne(id);\n PtoPeriodDTO ptoPeriodDTO = ptoPeriodMapper.ptoPeriodToPtoPeriodDTO(ptoPeriod);\n return ptoPeriodDTO;\n }", "public DepPerdiemReportHistory findByPrimaryKey(int id) throws DepPerdiemReportHistoryDaoException {\r\n\t\tDepPerdiemReportHistory ret[] = findByDynamicSelect(SQL_SELECT + \" WHERE ID = ?\", new Object[] { new Integer(id) });\r\n\t\treturn ret.length == 0 ? null : ret[0];\r\n\t}", "Optional<ReportingPeriod> getCurrentReportingPeriod();", "protected CaBillingPeriod getCaBillingPeriod(Integer periodId)\n {\n List<CaBillingPeriod> periodList=getCaBillingPeriodList(periodId);\n if(CommonUtil.isNotEmpty(periodList)){\n return periodList.get(0);\n }else{\n return null;\n }\n }", "org.hl7.fhir.Period getAppliesPeriod();", "@Override\r\n public Report getReportById(long id) throws ReportNotFoundException{\r\n if(!reportDAO.exists(id)){\r\n throw new ReportNotFoundException(id);\r\n }\r\n return reportDAO.findById(id);\r\n }", "public void setPeriodId(long periodId) {\n this.periodId = periodId;\n }", "TimePeriod getTimePeriodById(Integer timePeriodId) throws DataAccessException;", "public Report getReport(Long id) throws Exception {\n HttpGet get = createBasicGet(\"report/id/%s\", id);\n HttpResponse resp = httpClient.execute(get);\n if (resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n Report obj;\n try {\n obj = JAXB.unmarshal(resp.getEntity().getContent(), Report.class);\n } catch (DataBindingException ex) {\n log.warn(\"Error occurred while unmarshalling response, probably empty response.\");\n return null;\n }\n EntityUtils.consume(resp.getEntity());\n return obj;\n } else if (resp.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {\n EntityUtils.consume(resp.getEntity());\n return null;\n } else {\n logHttpError(\"Error while getting report.\", get, resp);\n EntityUtils.consume(resp.getEntity());\n return null;\n }\n }", "public DailyReport findDailyReportById(int id) throws Exception;", "public void setPeriodsId(String periodsId) {\n this.periodsId = periodsId;\n }", "public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }", "@Override\n public List<Payment> findByPeriodical(int idPeriodical) {\n PaymentMapper paymentMapper = new PaymentMapper();\n List<Payment> resultList = new ArrayList<>();\n try(PreparedStatement ps = connection.prepareStatement(Requests.SELECT_PERIODICAL_PAYMENT)){\n ps.setInt(1,idPeriodical);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n resultList.add(paymentMapper.getFromResultSet(rs));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return resultList;\n }", "au.gov.asic.types.fss.InvoiceType.InvoicePeriod getInvoicePeriod();", "public FranchisePayablePeriodVo getFranchisePayablePeriodByDateRange(FranchisePayableFilter filter) throws DaoException {\r\n return select(filter, \"FranchisePayablePeriod.selectByDateRange\");\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "incompleteCardinalityRestriction" /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:635:1: incompleteCardinalityRestriction returns [List completions] : ^( INCOMPLETE_CARDINALITY_RESTRICTION . INTEGER propertyExpression ) ;
public final ManchesterOWLSyntaxAutoComplete.incompleteCardinalityRestriction_return incompleteCardinalityRestriction() { ManchesterOWLSyntaxAutoComplete.incompleteCardinalityRestriction_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteCardinalityRestriction_return(); retval.start = input.LT(1); try { // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:642:1: // ( ^( INCOMPLETE_CARDINALITY_RESTRICTION . INTEGER // propertyExpression ) ) // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:643:9: // ^( INCOMPLETE_CARDINALITY_RESTRICTION . INTEGER // propertyExpression ) { match(input, INCOMPLETE_CARDINALITY_RESTRICTION, FOLLOW_INCOMPLETE_CARDINALITY_RESTRICTION_in_incompleteCardinalityRestriction2475); if (state.failed) { return retval; } match(input, Token.DOWN, null); if (state.failed) { return retval; } matchAny(input); if (state.failed) { return retval; } match(input, INTEGER, FOLLOW_INTEGER_in_incompleteCardinalityRestriction2480); if (state.failed) { return retval; } pushFollow(FOLLOW_propertyExpression_in_incompleteCardinalityRestriction2482); propertyExpression(); state._fsp--; if (state.failed) { return retval; } match(input, Token.UP, null); if (state.failed) { return retval; } if (state.backtracking == 1) { // class expression completions retval.completions = new ArrayList<>( symtab.getOWLClassCompletions()); } } if (state.backtracking == 1 && retval.completions != null) { ((ManchesterOWLSyntaxTree) retval.start) .setCompletions(retval.completions); } } catch (@SuppressWarnings("unused") RecognitionException | RewriteEmptyStreamException exception) {} return retval; }
[ "public final ManchesterOWLSyntaxAutoComplete.incompleteQualifiedRestriction_return incompleteQualifiedRestriction() {\n ManchesterOWLSyntaxAutoComplete.incompleteQualifiedRestriction_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteQualifiedRestriction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.incompleteCardinalityRestriction_return incompleteCardinalityRestriction16 = null;\n ManchesterOWLSyntaxAutoComplete.incompleteOneOf_return incompleteOneOf17 = null;\n ManchesterOWLSyntaxAutoComplete.incompleteValueRestriction_return incompleteValueRestriction18 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:609:1:\n // ( ^( INCOMPLETE_SOME_RESTRICTION propertyExpression ) | ^(\n // INCOMPLETE_ALL_RESTRICTION propertyExpression ) |\n // incompleteCardinalityRestriction | incompleteOneOf |\n // incompleteValueRestriction )\n int alt28 = 5;\n switch (input.LA(1)) {\n case INCOMPLETE_SOME_RESTRICTION: {\n alt28 = 1;\n }\n break;\n case INCOMPLETE_ALL_RESTRICTION: {\n alt28 = 2;\n }\n break;\n case INCOMPLETE_CARDINALITY_RESTRICTION: {\n alt28 = 3;\n }\n break;\n case INCOMPLETE_ONE_OF: {\n alt28 = 4;\n }\n break;\n case INCOMPLETE_VALUE_RESTRICTION: {\n alt28 = 5;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 28, 0, input);\n throw nvae;\n }\n switch (alt28) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:610:11:\n // ^( INCOMPLETE_SOME_RESTRICTION propertyExpression )\n {\n match(input, INCOMPLETE_SOME_RESTRICTION,\n FOLLOW_INCOMPLETE_SOME_RESTRICTION_in_incompleteQualifiedRestriction2300);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_incompleteQualifiedRestriction2302);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:615:11:\n // ^( INCOMPLETE_ALL_RESTRICTION propertyExpression )\n {\n match(input, INCOMPLETE_ALL_RESTRICTION,\n FOLLOW_INCOMPLETE_ALL_RESTRICTION_in_incompleteQualifiedRestriction2345);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_incompleteQualifiedRestriction2347);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:620:11:\n // incompleteCardinalityRestriction\n {\n pushFollow(FOLLOW_incompleteCardinalityRestriction_in_incompleteQualifiedRestriction2370);\n incompleteCardinalityRestriction16 = incompleteCardinalityRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = incompleteCardinalityRestriction16 != null\n ? incompleteCardinalityRestriction16.completions\n : null;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:624:11:\n // incompleteOneOf\n {\n pushFollow(FOLLOW_incompleteOneOf_in_incompleteQualifiedRestriction2392);\n incompleteOneOf17 = incompleteOneOf();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = incompleteOneOf17 != null ? incompleteOneOf17.completions\n : null;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:628:11:\n // incompleteValueRestriction\n {\n pushFollow(FOLLOW_incompleteValueRestriction_in_incompleteQualifiedRestriction2414);\n incompleteValueRestriction18 = incompleteValueRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = incompleteValueRestriction18 != null\n ? incompleteValueRestriction18.completions\n : null;\n }\n }\n break;\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.cardinalityRestriction_return cardinalityRestriction() {\n ManchesterOWLSyntaxAutoComplete.cardinalityRestriction_return retval = new ManchesterOWLSyntaxAutoComplete.cardinalityRestriction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.unary_return p = null;\n ManchesterOWLSyntaxAutoComplete.expression_return filler = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:238:1:\n // ( ^( CARDINALITY_RESTRICTION MIN i= INTEGER p= unary (filler=\n // expression )? ) | ^( CARDINALITY_RESTRICTION MAX i= INTEGER p=\n // unary (filler= expression )? ) | ^( CARDINALITY_RESTRICTION\n // EXACTLY i= INTEGER p= unary (filler= expression )? ) )\n int alt14 = 3;\n int LA14_0 = input.LA(1);\n if (LA14_0 == CARDINALITY_RESTRICTION) {\n int LA14_1 = input.LA(2);\n if (LA14_1 == DOWN) {\n switch (input.LA(3)) {\n case MIN: {\n alt14 = 1;\n }\n break;\n case MAX: {\n alt14 = 2;\n }\n break;\n case EXACTLY: {\n alt14 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 14,\n 2, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 14, 1, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 14, 0, input);\n throw nvae;\n }\n switch (alt14) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:239:5:\n // ^( CARDINALITY_RESTRICTION MIN i= INTEGER p= unary (filler=\n // expression )? )\n {\n match(input, CARDINALITY_RESTRICTION,\n FOLLOW_CARDINALITY_RESTRICTION_in_cardinalityRestriction719);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, MIN, FOLLOW_MIN_in_cardinalityRestriction722);\n if (state.failed) {\n return retval;\n }\n match(input, INTEGER, FOLLOW_INTEGER_in_cardinalityRestriction727);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_unary_in_cardinalityRestriction733);\n p = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:239:65:\n // (filler= expression )?\n int alt11 = 2;\n int LA11_0 = input.LA(1);\n if (LA11_0 >= IDENTIFIER && LA11_0 <= ENTITY_REFERENCE\n || LA11_0 >= DISJUNCTION && LA11_0 <= NEGATED_EXPRESSION\n || LA11_0 >= SOME_RESTRICTION && LA11_0 <= ONE_OF\n || LA11_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt11 = 1;\n }\n switch (alt11) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:239:65:\n // filler= expression\n {\n pushFollow(FOLLOW_expression_in_cardinalityRestriction740);\n filler = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(filler == null ? p.node.getCompletions()\n : filler.node.getCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:243:6:\n // ^( CARDINALITY_RESTRICTION MAX i= INTEGER p= unary (filler=\n // expression )? )\n {\n match(input, CARDINALITY_RESTRICTION,\n FOLLOW_CARDINALITY_RESTRICTION_in_cardinalityRestriction755);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, MAX, FOLLOW_MAX_in_cardinalityRestriction758);\n if (state.failed) {\n return retval;\n }\n match(input, INTEGER, FOLLOW_INTEGER_in_cardinalityRestriction762);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_unary_in_cardinalityRestriction768);\n p = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:243:65:\n // (filler= expression )?\n int alt12 = 2;\n int LA12_0 = input.LA(1);\n if (LA12_0 >= IDENTIFIER && LA12_0 <= ENTITY_REFERENCE\n || LA12_0 >= DISJUNCTION && LA12_0 <= NEGATED_EXPRESSION\n || LA12_0 >= SOME_RESTRICTION && LA12_0 <= ONE_OF\n || LA12_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt12 = 1;\n }\n switch (alt12) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:243:65:\n // filler= expression\n {\n pushFollow(FOLLOW_expression_in_cardinalityRestriction775);\n filler = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(filler == null ? p.node.getCompletions()\n : filler.node.getCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:247:6:\n // ^( CARDINALITY_RESTRICTION EXACTLY i= INTEGER p= unary\n // (filler= expression )? )\n {\n match(input, CARDINALITY_RESTRICTION,\n FOLLOW_CARDINALITY_RESTRICTION_in_cardinalityRestriction794);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXACTLY, FOLLOW_EXACTLY_in_cardinalityRestriction797);\n if (state.failed) {\n return retval;\n }\n match(input, INTEGER, FOLLOW_INTEGER_in_cardinalityRestriction802);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_unary_in_cardinalityRestriction809);\n p = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:247:71:\n // (filler= expression )?\n int alt13 = 2;\n int LA13_0 = input.LA(1);\n if (LA13_0 >= IDENTIFIER && LA13_0 <= ENTITY_REFERENCE\n || LA13_0 >= DISJUNCTION && LA13_0 <= NEGATED_EXPRESSION\n || LA13_0 >= SOME_RESTRICTION && LA13_0 <= ONE_OF\n || LA13_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt13 = 1;\n }\n switch (alt13) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:247:71:\n // filler= expression\n {\n pushFollow(FOLLOW_expression_in_cardinalityRestriction816);\n filler = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(filler == null ? p.node.getCompletions()\n : filler.node.getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteAxiom_return incompleteAxiom() {\n ManchesterOWLSyntaxAutoComplete.incompleteAxiom_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteAxiom_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return superClass = null;\n ManchesterOWLSyntaxAutoComplete.expression_return lhs = null;\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return rhs = null;\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return q = null;\n ManchesterOWLSyntaxAutoComplete.expression_return subProperty = null;\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return superProperty = null;\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return domain = null;\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return range = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:440:1:\n // ( ^( INCOMPLETE_SUB_CLASS_AXIOM ^( EXPRESSION subClass= . ) ( ^(\n // INCOMPLETE_EXPRESSION superClass= incompleteExpression ) )? ) |\n // ^( INCOMPLETE_EQUIVALENT_TO_AXIOM ^( EXPRESSION lhs= expression )\n // ( ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression ) )? ) | ^(\n // INCOMPLETE_INVERSE_OF ^( EXPRESSION p= IDENTIFIER ) ( ^(\n // INCOMPLETE_EXPRESSION q= incompleteExpression ) )? ) | ^(\n // INCOMPLETE_DISJOINT_WITH_AXIOM ^( EXPRESSION lhs= expression ) (\n // ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression ) )? ) | ^(\n // INCOMPLETE_SUB_PROPERTY_AXIOM ^( EXPRESSION subProperty=\n // expression ) ( ^( INCOMPLETE_EXPRESSION superProperty=\n // incompleteExpression ) )? ) | ^( INCOMPLETE_ROLE_ASSERTION ^(\n // EXPRESSION IDENTIFIER ) ^( EXPRESSION propertyExpression ) ) | ^(\n // INCOMPLETE_TYPE_ASSERTION ^( EXPRESSION IDENTIFIER ) ) | ^(\n // INCOMPLETE_DOMAIN ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // INCOMPLETE_DOMAIN ^( EXPRESSION p= IDENTIFIER ) ^(\n // INCOMPLETE_EXPRESSION domain= incompleteExpression ) ) | ^(\n // INCOMPLETE_RANGE ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // INCOMPLETE_RANGE ^( EXPRESSION p= IDENTIFIER ) ^(\n // INCOMPLETE_EXPRESSION range= incompleteExpression ) ) | ^(\n // INCOMPLETE_SAME_AS_AXIOM ^( EXPRESSION anIndividual= IDENTIFIER )\n // ) | ^( INCOMPLETE_DIFFERENT_FROM_AXIOM ^( EXPRESSION\n // anIndividual= IDENTIFIER ) ) | ^( INCOMPLETE_UNARY_AXIOM\n // FUNCTIONAL ) | ^( INCOMPLETE_UNARY_AXIOM INVERSE_FUNCTIONAL ) |\n // ^( INCOMPLETE_UNARY_AXIOM IRREFLEXIVE ) | ^(\n // INCOMPLETE_UNARY_AXIOM REFLEXIVE ) | ^( INCOMPLETE_UNARY_AXIOM\n // SYMMETRIC ) | ^( INCOMPLETE_UNARY_AXIOM TRANSITIVE ) )\n int alt22 = 19;\n alt22 = dfa22.predict(input);\n switch (alt22) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:442:5:\n // ^( INCOMPLETE_SUB_CLASS_AXIOM ^( EXPRESSION subClass= . ) (\n // ^( INCOMPLETE_EXPRESSION superClass= incompleteExpression )\n // )? )\n {\n match(input, INCOMPLETE_SUB_CLASS_AXIOM,\n FOLLOW_INCOMPLETE_SUB_CLASS_AXIOM_in_incompleteAxiom1521);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1525);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n input.LT(1);\n matchAny(input);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:442:63:\n // ( ^( INCOMPLETE_EXPRESSION superClass=\n // incompleteExpression ) )?\n int alt17 = 2;\n int LA17_0 = input.LA(1);\n if (LA17_0 == INCOMPLETE_EXPRESSION) {\n alt17 = 1;\n }\n switch (alt17) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:442:64:\n // ^( INCOMPLETE_EXPRESSION superClass=\n // incompleteExpression )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1537);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1543);\n superClass = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = superClass == null ? new ArrayList<>(\n symtab.getOWLClassCompletions()) : new ArrayList<>(\n superClass.completions);\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:447:6:\n // ^( INCOMPLETE_EQUIVALENT_TO_AXIOM ^( EXPRESSION lhs=\n // expression ) ( ^( INCOMPLETE_EXPRESSION rhs=\n // incompleteExpression ) )? )\n {\n match(input, INCOMPLETE_EQUIVALENT_TO_AXIOM,\n FOLLOW_INCOMPLETE_EQUIVALENT_TO_AXIOM_in_incompleteAxiom1563);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1566);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_incompleteAxiom1572);\n lhs = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:447:70:\n // ( ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression ) )?\n int alt18 = 2;\n int LA18_0 = input.LA(1);\n if (LA18_0 == INCOMPLETE_EXPRESSION) {\n alt18 = 1;\n }\n switch (alt18) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:447:71:\n // ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1577);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1584);\n rhs = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = rhs == null ? new ArrayList<>(\n symtab.getCompletions(lhs.node.getEvalType()))\n : new ArrayList<>(rhs.completions);\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:451:5:\n // ^( INCOMPLETE_INVERSE_OF ^( EXPRESSION p= IDENTIFIER ) ( ^(\n // INCOMPLETE_EXPRESSION q= incompleteExpression ) )? )\n {\n match(input, INCOMPLETE_INVERSE_OF,\n FOLLOW_INCOMPLETE_INVERSE_OF_in_incompleteAxiom1604);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1607);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1613);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:451:58:\n // ( ^( INCOMPLETE_EXPRESSION q= incompleteExpression ) )?\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if (LA19_0 == INCOMPLETE_EXPRESSION) {\n alt19 = 1;\n }\n switch (alt19) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:451:59:\n // ^( INCOMPLETE_EXPRESSION q= incompleteExpression )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1618);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1624);\n q = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = q == null ? new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions())\n : new ArrayList<>(q.completions);\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:456:5:\n // ^( INCOMPLETE_DISJOINT_WITH_AXIOM ^( EXPRESSION lhs=\n // expression ) ( ^( INCOMPLETE_EXPRESSION rhs=\n // incompleteExpression ) )? )\n {\n match(input, INCOMPLETE_DISJOINT_WITH_AXIOM,\n FOLLOW_INCOMPLETE_DISJOINT_WITH_AXIOM_in_incompleteAxiom1639);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1642);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_incompleteAxiom1649);\n lhs = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:456:70:\n // ( ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression ) )?\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if (LA20_0 == INCOMPLETE_EXPRESSION) {\n alt20 = 1;\n }\n switch (alt20) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:456:71:\n // ^( INCOMPLETE_EXPRESSION rhs= incompleteExpression )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1654);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1660);\n rhs = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = rhs == null ? new ArrayList<>(\n symtab.getCompletions(lhs.node.getEvalType()))\n : new ArrayList<>(rhs.completions);\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:459:5:\n // ^( INCOMPLETE_SUB_PROPERTY_AXIOM ^( EXPRESSION subProperty=\n // expression ) ( ^( INCOMPLETE_EXPRESSION superProperty=\n // incompleteExpression ) )? )\n {\n match(input, INCOMPLETE_SUB_PROPERTY_AXIOM,\n FOLLOW_INCOMPLETE_SUB_PROPERTY_AXIOM_in_incompleteAxiom1675);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1678);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_incompleteAxiom1685);\n subProperty = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:459:77:\n // ( ^( INCOMPLETE_EXPRESSION superProperty=\n // incompleteExpression ) )?\n int alt21 = 2;\n int LA21_0 = input.LA(1);\n if (LA21_0 == INCOMPLETE_EXPRESSION) {\n alt21 = 1;\n }\n switch (alt21) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:459:78:\n // ^( INCOMPLETE_EXPRESSION superProperty=\n // incompleteExpression )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1690);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1696);\n superProperty = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // property expression completions\n retval.completions = superProperty == null ? new ArrayList<>(\n symtab.getOWLPropertyCompletions(subProperty.node\n .getEvalType())) : new ArrayList<>(\n superProperty.completions);\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:464:5:\n // ^( INCOMPLETE_ROLE_ASSERTION ^( EXPRESSION IDENTIFIER ) ^(\n // EXPRESSION propertyExpression ) )\n {\n match(input, INCOMPLETE_ROLE_ASSERTION,\n FOLLOW_INCOMPLETE_ROLE_ASSERTION_in_incompleteAxiom1716);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1719);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1721);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1725);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_incompleteAxiom1727);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // individual expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLIndividualCompletions());\n }\n }\n break;\n case 7:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:468:6:\n // ^( INCOMPLETE_TYPE_ASSERTION ^( EXPRESSION IDENTIFIER ) )\n {\n match(input, INCOMPLETE_TYPE_ASSERTION,\n FOLLOW_INCOMPLETE_TYPE_ASSERTION_in_incompleteAxiom1738);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1742);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1744);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 8:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:473:5:\n // ^( INCOMPLETE_DOMAIN ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, INCOMPLETE_DOMAIN,\n FOLLOW_INCOMPLETE_DOMAIN_in_incompleteAxiom1757);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1760);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1766);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 9:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:478:5:\n // ^( INCOMPLETE_DOMAIN ^( EXPRESSION p= IDENTIFIER ) ^(\n // INCOMPLETE_EXPRESSION domain= incompleteExpression ) )\n {\n match(input, INCOMPLETE_DOMAIN,\n FOLLOW_INCOMPLETE_DOMAIN_in_incompleteAxiom1781);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1784);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1790);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1794);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1800);\n domain = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = domain.completions;\n }\n }\n break;\n case 10:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:482:6:\n // ^( INCOMPLETE_RANGE ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, INCOMPLETE_RANGE,\n FOLLOW_INCOMPLETE_RANGE_in_incompleteAxiom1815);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1818);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1824);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 11:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:486:6:\n // ^( INCOMPLETE_RANGE ^( EXPRESSION p= IDENTIFIER ) ^(\n // INCOMPLETE_EXPRESSION range= incompleteExpression ) )\n {\n match(input, INCOMPLETE_RANGE,\n FOLLOW_INCOMPLETE_RANGE_in_incompleteAxiom1835);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1838);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1844);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteAxiom1848);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteExpression_in_incompleteAxiom1854);\n range = incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = range.completions;\n }\n }\n break;\n case 12:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:490:6:\n // ^( INCOMPLETE_SAME_AS_AXIOM ^( EXPRESSION anIndividual=\n // IDENTIFIER ) )\n {\n match(input, INCOMPLETE_SAME_AS_AXIOM,\n FOLLOW_INCOMPLETE_SAME_AS_AXIOM_in_incompleteAxiom1869);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1872);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1877);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // individual expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLIndividualCompletions());\n }\n }\n break;\n case 13:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:495:7:\n // ^( INCOMPLETE_DIFFERENT_FROM_AXIOM ^( EXPRESSION\n // anIndividual= IDENTIFIER ) )\n {\n match(input, INCOMPLETE_DIFFERENT_FROM_AXIOM,\n FOLLOW_INCOMPLETE_DIFFERENT_FROM_AXIOM_in_incompleteAxiom1893);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_incompleteAxiom1896);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_incompleteAxiom1901);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // individual expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLIndividualCompletions());\n }\n }\n break;\n case 14:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:500:6:\n // ^( INCOMPLETE_UNARY_AXIOM FUNCTIONAL )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1916);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, FUNCTIONAL, FOLLOW_FUNCTIONAL_in_incompleteAxiom1918);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // property expression completions\n retval.completions = new ArrayList<>(\n symtab.getAllCompletions(OWLType.OWL_OBJECT_PROPERTY,\n OWLType.OWL_DATA_PROPERTY));\n }\n }\n break;\n case 15:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:505:6:\n // ^( INCOMPLETE_UNARY_AXIOM INVERSE_FUNCTIONAL )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1932);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, INVERSE_FUNCTIONAL,\n FOLLOW_INVERSE_FUNCTIONAL_in_incompleteAxiom1934);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n case 16:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:510:7:\n // ^( INCOMPLETE_UNARY_AXIOM IRREFLEXIVE )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1949);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IRREFLEXIVE, FOLLOW_IRREFLEXIVE_in_incompleteAxiom1951);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n case 17:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:515:6:\n // ^( INCOMPLETE_UNARY_AXIOM REFLEXIVE )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1965);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, REFLEXIVE, FOLLOW_REFLEXIVE_in_incompleteAxiom1967);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n case 18:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:520:6:\n // ^( INCOMPLETE_UNARY_AXIOM SYMMETRIC )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1981);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, SYMMETRIC, FOLLOW_SYMMETRIC_in_incompleteAxiom1983);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n case 19:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:525:7:\n // ^( INCOMPLETE_UNARY_AXIOM TRANSITIVE )\n {\n match(input, INCOMPLETE_UNARY_AXIOM,\n FOLLOW_INCOMPLETE_UNARY_AXIOM_in_incompleteAxiom1999);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, TRANSITIVE, FOLLOW_TRANSITIVE_in_incompleteAxiom2001);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteValueRestriction_return incompleteValueRestriction() {\n ManchesterOWLSyntaxAutoComplete.incompleteValueRestriction_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteValueRestriction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return p = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:673:1:\n // ( ^( INCOMPLETE_VALUE_RESTRICTION p= propertyExpression ) )\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:674:7:\n // ^( INCOMPLETE_VALUE_RESTRICTION p= propertyExpression )\n {\n match(input, INCOMPLETE_VALUE_RESTRICTION,\n FOLLOW_INCOMPLETE_VALUE_RESTRICTION_in_incompleteValueRestriction2578);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_incompleteValueRestriction2584);\n p = propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // individual expression completions\n Type type = p.type;\n if (OWLType.isObjectPropertyExpression(type)) {\n retval.completions = new ArrayList<>(\n symtab.getOWLIndividualCompletions());\n }\n }\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteExpression_return incompleteExpression() {\n ManchesterOWLSyntaxAutoComplete.incompleteExpression_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER14 = null;\n ManchesterOWLSyntaxAutoComplete.expression_return e = null;\n ManchesterOWLSyntaxAutoComplete.incompleteUnary_return iu = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:539:1:\n // ( ^( INCOMPLETE_PROPERTY_CHAIN ( . )+ ) | ^(\n // INCOMPLETE_DISJUNCTION ic= incompleteConjunction ) | ^(\n // INCOMPLETE_EXPRESSION ^( EXPRESSION e= expression ) IDENTIFIER )\n // | ^( INCOMPLETE_EXPRESSION iu= incompleteUnary ) )\n int alt24 = 4;\n switch (input.LA(1)) {\n case INCOMPLETE_PROPERTY_CHAIN: {\n alt24 = 1;\n }\n break;\n case INCOMPLETE_DISJUNCTION: {\n alt24 = 2;\n }\n break;\n case INCOMPLETE_EXPRESSION: {\n int LA24_3 = input.LA(2);\n if (LA24_3 == DOWN) {\n int LA24_4 = input.LA(3);\n if (LA24_4 == EXPRESSION) {\n alt24 = 3;\n } else if (LA24_4 >= INCOMPLETE_NEGATED_EXPRESSION\n && LA24_4 <= INCOMPLETE_VALUE_RESTRICTION) {\n alt24 = 4;\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 24,\n 4, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 24, 3,\n input);\n throw nvae;\n }\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 24, 0, input);\n throw nvae;\n }\n switch (alt24) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:540:3:\n // ^( INCOMPLETE_PROPERTY_CHAIN ( . )+ )\n {\n match(input, INCOMPLETE_PROPERTY_CHAIN,\n FOLLOW_INCOMPLETE_PROPERTY_CHAIN_in_incompleteExpression2043);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:540:32:\n // ( . )+\n int cnt23 = 0;\n loop23: do {\n int alt23 = 2;\n int LA23_0 = input.LA(1);\n if (LA23_0 >= COMPOSITION && LA23_0 <= INCOMPLETE_EXPRESSION) {\n alt23 = 1;\n } else if (LA23_0 == UP) {\n alt23 = 2;\n }\n switch (alt23) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:540:32:\n // .\n {\n matchAny(input);\n if (state.failed) {\n return retval;\n }\n }\n break;\n default:\n if (cnt23 >= 1) {\n break loop23;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(23, input);\n throw eee;\n }\n cnt23++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // object property expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLObjectPropertyCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:546:5:\n // ^( INCOMPLETE_DISJUNCTION ic= incompleteConjunction )\n {\n match(input, INCOMPLETE_DISJUNCTION,\n FOLLOW_INCOMPLETE_DISJUNCTION_in_incompleteExpression2062);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteConjunction_in_incompleteExpression2069);\n incompleteConjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:554:5:\n // ^( INCOMPLETE_EXPRESSION ^( EXPRESSION e= expression )\n // IDENTIFIER )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteExpression2083);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION,\n FOLLOW_EXPRESSION_in_incompleteExpression2086);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_incompleteExpression2093);\n e = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n IDENTIFIER14 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_incompleteExpression2096);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n Type type = e.node.getEvalType();\n retval.completions = type == null ? Collections\n .<String> emptyList() : AutoCompleteStrings\n .getIncompleteExpressionCompletions(\n IDENTIFIER14 != null ? IDENTIFIER14.getText()\n : null, type);\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:558:5:\n // ^( INCOMPLETE_EXPRESSION iu= incompleteUnary )\n {\n match(input, INCOMPLETE_EXPRESSION,\n FOLLOW_INCOMPLETE_EXPRESSION_in_incompleteExpression2105);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_incompleteUnary_in_incompleteExpression2112);\n iu = incompleteUnary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = new ArrayList<>(\n iu != null ? iu.completions : null);\n }\n }\n break;\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteUnary_return incompleteUnary() {\n ManchesterOWLSyntaxAutoComplete.incompleteUnary_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteUnary_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.incompleteQualifiedRestriction_return incompleteQualifiedRestriction15 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:591:1:\n // ( ^( INCOMPLETE_NEGATED_EXPRESSION ( . )? ) |\n // incompleteQualifiedRestriction )\n int alt27 = 2;\n int LA27_0 = input.LA(1);\n if (LA27_0 == INCOMPLETE_NEGATED_EXPRESSION) {\n alt27 = 1;\n } else if (LA27_0 >= INCOMPLETE_SOME_RESTRICTION\n && LA27_0 <= INCOMPLETE_VALUE_RESTRICTION) {\n alt27 = 2;\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 27, 0, input);\n throw nvae;\n }\n switch (alt27) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:592:5:\n // ^( INCOMPLETE_NEGATED_EXPRESSION ( . )? )\n {\n match(input, INCOMPLETE_NEGATED_EXPRESSION,\n FOLLOW_INCOMPLETE_NEGATED_EXPRESSION_in_incompleteUnary2211);\n if (state.failed) {\n return retval;\n }\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:592:37:\n // ( . )?\n int alt26 = 2;\n int LA26_0 = input.LA(1);\n if (LA26_0 >= COMPOSITION && LA26_0 <= INCOMPLETE_EXPRESSION) {\n alt26 = 1;\n }\n switch (alt26) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:592:37:\n // .\n {\n matchAny(input);\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n if (state.backtracking == 1) {\n // class expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:596:7:\n // incompleteQualifiedRestriction\n {\n pushFollow(FOLLOW_incompleteQualifiedRestriction_in_incompleteUnary2242);\n incompleteQualifiedRestriction15 = incompleteQualifiedRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n retval.completions = incompleteQualifiedRestriction15 != null\n ? incompleteQualifiedRestriction15.completions\n : null;\n }\n }\n break;\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.qualifiedRestriction_return qualifiedRestriction() {\n ManchesterOWLSyntaxAutoComplete.qualifiedRestriction_return retval = new ManchesterOWLSyntaxAutoComplete.qualifiedRestriction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.expression_return f = null;\n ManchesterOWLSyntaxAutoComplete.cardinalityRestriction_return cardinalityRestriction11 = null;\n ManchesterOWLSyntaxAutoComplete.oneOf_return oneOf12 = null;\n ManchesterOWLSyntaxAutoComplete.valueRestriction_return valueRestriction13 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:209:2:\n // ( ^( SOME_RESTRICTION p= propertyExpression f= expression ) | ^(\n // ALL_RESTRICTION p= propertyExpression f= expression ) |\n // cardinalityRestriction | oneOf | valueRestriction )\n int alt10 = 5;\n switch (input.LA(1)) {\n case SOME_RESTRICTION: {\n alt10 = 1;\n }\n break;\n case ALL_RESTRICTION: {\n alt10 = 2;\n }\n break;\n case CARDINALITY_RESTRICTION: {\n alt10 = 3;\n }\n break;\n case ONE_OF: {\n alt10 = 4;\n }\n break;\n case VALUE_RESTRICTION: {\n alt10 = 5;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 10, 0, input);\n throw nvae;\n }\n switch (alt10) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:210:6:\n // ^( SOME_RESTRICTION p= propertyExpression f= expression )\n {\n match(input, SOME_RESTRICTION,\n FOLLOW_SOME_RESTRICTION_in_qualifiedRestriction589);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_qualifiedRestriction594);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_qualifiedRestriction600);\n f = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(f.node\n .getCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:214:7:\n // ^( ALL_RESTRICTION p= propertyExpression f= expression )\n {\n match(input, ALL_RESTRICTION,\n FOLLOW_ALL_RESTRICTION_in_qualifiedRestriction622);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_qualifiedRestriction629);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_qualifiedRestriction634);\n f = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(f.node\n .getCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:218:7:\n // cardinalityRestriction\n {\n pushFollow(FOLLOW_cardinalityRestriction_in_qualifiedRestriction650);\n cardinalityRestriction11 = cardinalityRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(cardinalityRestriction11 != null ? cardinalityRestriction11.node\n .getCompletions() : null);\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:222:7:\n // oneOf\n {\n pushFollow(FOLLOW_oneOf_in_qualifiedRestriction666);\n oneOf12 = oneOf();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(oneOf12 != null ? oneOf12.node\n .getCompletions() : null);\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:226:7:\n // valueRestriction\n {\n pushFollow(FOLLOW_valueRestriction_in_qualifiedRestriction682);\n valueRestriction13 = valueRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(valueRestriction13 != null ? valueRestriction13.node\n .getCompletions() : null);\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteConjunction_return incompleteConjunction() {\n ManchesterOWLSyntaxAutoComplete.incompleteConjunction_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteConjunction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.incompleteUnary_return e = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:573:1:\n // ( ^( INCOMPLETE_CONJUNCTION (e= incompleteUnary )? ) )\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:574:5:\n // ^( INCOMPLETE_CONJUNCTION (e= incompleteUnary )? )\n {\n match(input, INCOMPLETE_CONJUNCTION,\n FOLLOW_INCOMPLETE_CONJUNCTION_in_incompleteConjunction2159);\n if (state.failed) {\n return retval;\n }\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:574:33:\n // (e= incompleteUnary )?\n int alt25 = 2;\n int LA25_0 = input.LA(1);\n if (LA25_0 >= INCOMPLETE_NEGATED_EXPRESSION\n && LA25_0 <= INCOMPLETE_VALUE_RESTRICTION) {\n alt25 = 1;\n }\n switch (alt25) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:574:33:\n // e= incompleteUnary\n {\n pushFollow(FOLLOW_incompleteUnary_in_incompleteConjunction2166);\n e = incompleteUnary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n }\n break;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n if (state.backtracking == 1) {\n if (e != null) {\n retval.completions = e.completions;\n } else {\n retval.completions = new ArrayList<>(\n symtab.getOWLClassCompletions());\n }\n }\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.unary_return unary() {\n ManchesterOWLSyntaxAutoComplete.unary_return retval = new ManchesterOWLSyntaxAutoComplete.unary_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER3 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE5 = null;\n ManchesterOWLSyntaxAutoComplete.expression_return e = null;\n ManchesterOWLSyntaxAutoComplete.qualifiedRestriction_return qualifiedRestriction4 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:144:1:\n // ( IDENTIFIER | ^( NEGATED_EXPRESSION e= expression ) |\n // qualifiedRestriction | ENTITY_REFERENCE )\n int alt7 = 4;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt7 = 1;\n }\n break;\n case NEGATED_EXPRESSION: {\n alt7 = 2;\n }\n break;\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt7 = 3;\n }\n break;\n case ENTITY_REFERENCE: {\n alt7 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 7, 0, input);\n throw nvae;\n }\n switch (alt7) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:145:3:\n // IDENTIFIER\n {\n IDENTIFIER3 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_unary376);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER3.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:150:5:\n // ^( NEGATED_EXPRESSION e= expression )\n {\n match(input, NEGATED_EXPRESSION,\n FOLLOW_NEGATED_EXPRESSION_in_unary389);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_unary395);\n e = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(e.node\n .getCompletions());\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:154:5:\n // qualifiedRestriction\n {\n pushFollow(FOLLOW_qualifiedRestriction_in_unary409);\n qualifiedRestriction4 = qualifiedRestriction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(qualifiedRestriction4.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:158:5:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE5 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE, FOLLOW_ENTITY_REFERENCE_in_unary423);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE5.getText()));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.incompleteOneOf_return incompleteOneOf() {\n ManchesterOWLSyntaxAutoComplete.incompleteOneOf_return retval = new ManchesterOWLSyntaxAutoComplete.incompleteOneOf_return();\n retval.start = input.LT(1);\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:658:1:\n // ( ^( INCOMPLETE_ONE_OF ( IDENTIFIER )+ ) )\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:659:5:\n // ^( INCOMPLETE_ONE_OF ( IDENTIFIER )+ )\n {\n match(input, INCOMPLETE_ONE_OF,\n FOLLOW_INCOMPLETE_ONE_OF_in_incompleteOneOf2528);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:659:25:\n // ( IDENTIFIER )+\n int cnt29 = 0;\n loop29: do {\n int alt29 = 2;\n int LA29_0 = input.LA(1);\n if (LA29_0 == IDENTIFIER) {\n alt29 = 1;\n }\n switch (alt29) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:659:25:\n // IDENTIFIER\n {\n match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_incompleteOneOf2530);\n if (state.failed) {\n return retval;\n }\n }\n break;\n default:\n if (cnt29 >= 1) {\n break loop29;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(29, input);\n throw eee;\n }\n cnt29++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n // individual expression completions\n retval.completions = new ArrayList<>(\n symtab.getOWLIndividualCompletions());\n }\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "@Override\n public final void bottomup() {\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:73:5:\n // ( | standaloneExpression | expressionRoot | incompleteAxiom |\n // incompleteExpression | axiom )\n int alt1 = 6;\n switch (input.LA(1)) {\n case EOF: {\n alt1 = 1;\n }\n break;\n case STANDALONE_EXPRESSION: {\n alt1 = 2;\n }\n break;\n case EXPRESSION: {\n alt1 = 3;\n }\n break;\n case INCOMPLETE_TYPE_ASSERTION:\n case INCOMPLETE_ROLE_ASSERTION:\n case INCOMPLETE_UNARY_AXIOM:\n case INCOMPLETE_SUB_CLASS_AXIOM:\n case INCOMPLETE_EQUIVALENT_TO_AXIOM:\n case INCOMPLETE_DISJOINT_WITH_AXIOM:\n case INCOMPLETE_SUB_PROPERTY_AXIOM:\n case INCOMPLETE_SAME_AS_AXIOM:\n case INCOMPLETE_DIFFERENT_FROM_AXIOM:\n case INCOMPLETE_DOMAIN:\n case INCOMPLETE_RANGE:\n case INCOMPLETE_INVERSE_OF: {\n alt1 = 4;\n }\n break;\n case INCOMPLETE_PROPERTY_CHAIN:\n case INCOMPLETE_DISJUNCTION:\n case INCOMPLETE_EXPRESSION: {\n alt1 = 5;\n }\n break;\n case INVERSE_OF:\n case DOMAIN:\n case RANGE:\n case SUB_CLASS_AXIOM:\n case EQUIVALENT_TO_AXIOM:\n case DISJOINT_WITH_AXIOM:\n case SUB_PROPERTY_AXIOM:\n case SAME_AS_AXIOM:\n case DIFFERENT_FROM_AXIOM:\n case UNARY_AXIOM:\n case NEGATED_ASSERTION:\n case TYPE_ASSERTION:\n case ROLE_ASSERTION: {\n alt1 = 6;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0, input);\n throw nvae;\n }\n switch (alt1) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:5:\n {}\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:7:\n // standaloneExpression\n {\n pushFollow(FOLLOW_standaloneExpression_in_bottomup87);\n standaloneExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:75:8:\n // expressionRoot\n {\n pushFollow(FOLLOW_expressionRoot_in_bottomup96);\n expressionRoot();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:76:9:\n // incompleteAxiom\n {\n pushFollow(FOLLOW_incompleteAxiom_in_bottomup107);\n incompleteAxiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:77:9:\n // incompleteExpression\n {\n pushFollow(FOLLOW_incompleteExpression_in_bottomup117);\n incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:78:8:\n // axiom\n {\n pushFollow(FOLLOW_axiom_in_bottomup126);\n axiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "public final ManchesterOWLSyntaxAutoComplete.axiom_return axiom() {\n ManchesterOWLSyntaxAutoComplete.axiom_return retval = new ManchesterOWLSyntaxAutoComplete.axiom_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree p = null;\n ManchesterOWLSyntaxTree anotherProperty = null;\n ManchesterOWLSyntaxTree subject = null;\n ManchesterOWLSyntaxTree anotherIndividual = null;\n ManchesterOWLSyntaxAutoComplete.expression_return superClass = null;\n ManchesterOWLSyntaxAutoComplete.expression_return rhs = null;\n ManchesterOWLSyntaxAutoComplete.unary_return superProperty = null;\n ManchesterOWLSyntaxAutoComplete.unary_return object = null;\n ManchesterOWLSyntaxAutoComplete.expression_return domain = null;\n ManchesterOWLSyntaxAutoComplete.expression_return range = null;\n ManchesterOWLSyntaxAutoComplete.axiom_return a = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:284:1:\n // ( ^( SUB_CLASS_AXIOM ^( EXPRESSION subClass= expression ) ^(\n // EXPRESSION superClass= expression ) ) | ^( EQUIVALENT_TO_AXIOM ^(\n // EXPRESSION lhs= expression ) ^( EXPRESSION rhs= expression ) ) |\n // ^( INVERSE_OF ^( EXPRESSION p= IDENTIFIER ) ^( EXPRESSION\n // anotherProperty= IDENTIFIER ) ) | ^( DISJOINT_WITH_AXIOM ^(\n // EXPRESSION lhs= expression ) ^( EXPRESSION rhs= expression ) ) |\n // ^( SUB_PROPERTY_AXIOM ^( EXPRESSION subProperty= expression ) ^(\n // EXPRESSION superProperty= unary ) ) | ^( ROLE_ASSERTION ^(\n // EXPRESSION subject= IDENTIFIER ) ^( EXPRESSION predicate=\n // propertyExpression ) ^( EXPRESSION object= unary ) ) | ^(\n // TYPE_ASSERTION ^( EXPRESSION description= expression ) ^(\n // EXPRESSION subject= IDENTIFIER ) ) | ^( DOMAIN ^( EXPRESSION p=\n // IDENTIFIER ) ^( EXPRESSION domain= expression ) ) | ^( RANGE ^(\n // EXPRESSION p= IDENTIFIER ) ^( EXPRESSION range= expression ) ) |\n // ^( SAME_AS_AXIOM ^( EXPRESSION anIndividual= IDENTIFIER ) ^(\n // EXPRESSION anotherIndividual= IDENTIFIER ) ) | ^(\n // DIFFERENT_FROM_AXIOM ^( EXPRESSION anIndividual= IDENTIFIER ) ^(\n // EXPRESSION anotherIndividual= IDENTIFIER ) ) | ^( UNARY_AXIOM\n // FUNCTIONAL ^( EXPRESSION p= IDENTIFIER ) ) | ^( UNARY_AXIOM\n // INVERSE_FUNCTIONAL ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // UNARY_AXIOM IRREFLEXIVE ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // UNARY_AXIOM REFLEXIVE ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // UNARY_AXIOM SYMMETRIC ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // UNARY_AXIOM TRANSITIVE ^( EXPRESSION p= IDENTIFIER ) ) | ^(\n // NEGATED_ASSERTION a= axiom ) )\n int alt16 = 18;\n alt16 = dfa16.predict(input);\n switch (alt16) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:285:3:\n // ^( SUB_CLASS_AXIOM ^( EXPRESSION subClass= expression ) ^(\n // EXPRESSION superClass= expression ) )\n {\n match(input, SUB_CLASS_AXIOM, FOLLOW_SUB_CLASS_AXIOM_in_axiom936);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom940);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom947);\n expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom952);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom959);\n superClass = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n superClass.node.getCompletions());\n } else {\n retval.completions = new ArrayList<>(\n AutoCompleteStrings\n .getStandaloneExpressionCompletions(superClass.node\n .getEvalType()));\n }\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:293:5:\n // ^( EQUIVALENT_TO_AXIOM ^( EXPRESSION lhs= expression ) ^(\n // EXPRESSION rhs= expression ) )\n {\n match(input, EQUIVALENT_TO_AXIOM,\n FOLLOW_EQUIVALENT_TO_AXIOM_in_axiom972);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom975);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom981);\n expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom985);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom992);\n rhs = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n rhs.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:301:4:\n // ^( INVERSE_OF ^( EXPRESSION p= IDENTIFIER ) ^( EXPRESSION\n // anotherProperty= IDENTIFIER ) )\n {\n match(input, INVERSE_OF, FOLLOW_INVERSE_OF_in_axiom1007);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1010);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1016);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1020);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n anotherProperty = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1026);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = anotherProperty.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:309:5:\n // ^( DISJOINT_WITH_AXIOM ^( EXPRESSION lhs= expression ) ^(\n // EXPRESSION rhs= expression ) )\n {\n match(input, DISJOINT_WITH_AXIOM,\n FOLLOW_DISJOINT_WITH_AXIOM_in_axiom1038);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1041);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1048);\n expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1052);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1058);\n rhs = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n rhs.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:316:4:\n // ^( SUB_PROPERTY_AXIOM ^( EXPRESSION subProperty= expression )\n // ^( EXPRESSION superProperty= unary ) )\n {\n match(input, SUB_PROPERTY_AXIOM,\n FOLLOW_SUB_PROPERTY_AXIOM_in_axiom1070);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1073);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1080);\n expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1084);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_unary_in_axiom1090);\n superProperty = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n superProperty.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:324:4:\n // ^( ROLE_ASSERTION ^( EXPRESSION subject= IDENTIFIER ) ^(\n // EXPRESSION predicate= propertyExpression ) ^( EXPRESSION\n // object= unary ) )\n {\n match(input, ROLE_ASSERTION, FOLLOW_ROLE_ASSERTION_in_axiom1104);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1107);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n subject = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1114);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1118);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_propertyExpression_in_axiom1125);\n propertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1129);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_unary_in_axiom1135);\n object = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n object.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 7:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:331:5:\n // ^( TYPE_ASSERTION ^( EXPRESSION description= expression ) ^(\n // EXPRESSION subject= IDENTIFIER ) )\n {\n match(input, TYPE_ASSERTION, FOLLOW_TYPE_ASSERTION_in_axiom1145);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1148);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1155);\n expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1159);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n subject = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1165);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = subject.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 8:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:339:4:\n // ^( DOMAIN ^( EXPRESSION p= IDENTIFIER ) ^( EXPRESSION domain=\n // expression ) )\n {\n match(input, DOMAIN, FOLLOW_DOMAIN_in_axiom1177);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1180);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1186);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1190);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1196);\n domain = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n domain.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 9:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:347:5:\n // ^( RANGE ^( EXPRESSION p= IDENTIFIER ) ^( EXPRESSION range=\n // expression ) )\n {\n match(input, RANGE, FOLLOW_RANGE_in_axiom1209);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1212);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1218);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1222);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_expression_in_axiom1228);\n range = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = new ArrayList<>(\n range.node.getCompletions());\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 10:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:355:6:\n // ^( SAME_AS_AXIOM ^( EXPRESSION anIndividual= IDENTIFIER ) ^(\n // EXPRESSION anotherIndividual= IDENTIFIER ) )\n {\n match(input, SAME_AS_AXIOM, FOLLOW_SAME_AS_AXIOM_in_axiom1243);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1246);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_axiom1251);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1255);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n anotherIndividual = (ManchesterOWLSyntaxTree) match(input,\n IDENTIFIER, FOLLOW_IDENTIFIER_in_axiom1261);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = anotherIndividual.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 11:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:363:7:\n // ^( DIFFERENT_FROM_AXIOM ^( EXPRESSION anIndividual=\n // IDENTIFIER ) ^( EXPRESSION anotherIndividual= IDENTIFIER ) )\n {\n match(input, DIFFERENT_FROM_AXIOM,\n FOLLOW_DIFFERENT_FROM_AXIOM_in_axiom1277);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1280);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_axiom1285);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1289);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n anotherIndividual = (ManchesterOWLSyntaxTree) match(input,\n IDENTIFIER, FOLLOW_IDENTIFIER_in_axiom1295);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = anotherIndividual.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 12:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:371:5:\n // ^( UNARY_AXIOM FUNCTIONAL ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1309);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, FUNCTIONAL, FOLLOW_FUNCTIONAL_in_axiom1311);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1314);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1320);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 13:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:379:5:\n // ^( UNARY_AXIOM INVERSE_FUNCTIONAL ^( EXPRESSION p= IDENTIFIER\n // ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1333);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, INVERSE_FUNCTIONAL,\n FOLLOW_INVERSE_FUNCTIONAL_in_axiom1335);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1338);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1344);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 14:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:387:7:\n // ^( UNARY_AXIOM IRREFLEXIVE ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1360);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, IRREFLEXIVE, FOLLOW_IRREFLEXIVE_in_axiom1362);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1365);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1371);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 15:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:395:6:\n // ^( UNARY_AXIOM REFLEXIVE ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1386);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, REFLEXIVE, FOLLOW_REFLEXIVE_in_axiom1388);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1391);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1397);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 16:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:403:6:\n // ^( UNARY_AXIOM SYMMETRIC ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1412);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, SYMMETRIC, FOLLOW_SYMMETRIC_in_axiom1414);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1417);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1423);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 17:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:411:7:\n // ^( UNARY_AXIOM TRANSITIVE ^( EXPRESSION p= IDENTIFIER ) )\n {\n match(input, UNARY_AXIOM, FOLLOW_UNARY_AXIOM_in_axiom1440);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n match(input, TRANSITIVE, FOLLOW_TRANSITIVE_in_axiom1442);\n if (state.failed) {\n return retval;\n }\n match(input, EXPRESSION, FOLLOW_EXPRESSION_in_axiom1445);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n p = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_axiom1451);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = p.getCompletions();\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n case 18:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:419:6:\n // ^( NEGATED_ASSERTION a= axiom )\n {\n match(input, NEGATED_ASSERTION, FOLLOW_NEGATED_ASSERTION_in_axiom1466);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_axiom_in_axiom1471);\n a = axiom();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n if (!isNewWord()) {\n retval.completions = a.completions;\n } else {\n retval.completions = Collections.<String> emptyList();\n }\n }\n }\n break;\n }\n if (state.backtracking == 1 && retval.completions != null) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(retval.completions);\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "String getCardinality();", "int getCardinality();", "Cardinality getCardinality();", "public int getCardinality();", "public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public final ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression() {\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER9 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE10 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return p = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:190:1:\n // ( ^( INVERSE_OBJECT_PROPERTY_EXPRESSION p=\n // complexPropertyExpression ) | ^(\n // INVERSE_OBJECT_PROPERTY_EXPRESSION IDENTIFIER ) | ^(\n // INVERSE_OBJECT_PROPERTY_EXPRESSION ENTITY_REFERENCE ) )\n int alt9 = 3;\n int LA9_0 = input.LA(1);\n if (LA9_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n int LA9_1 = input.LA(2);\n if (LA9_1 == DOWN) {\n switch (input.LA(3)) {\n case IDENTIFIER: {\n alt9 = 2;\n }\n break;\n case ENTITY_REFERENCE: {\n alt9 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt9 = 1;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9,\n 2, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9, 1, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9, 0, input);\n throw nvae;\n }\n switch (alt9) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:191:2:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION p=\n // complexPropertyExpression )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression528);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_complexPropertyExpression_in_complexPropertyExpression534);\n p = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(p.node\n .getCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:195:4:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION IDENTIFIER )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression544);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n IDENTIFIER9 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_complexPropertyExpression546);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER9.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:199:4:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION ENTITY_REFERENCE )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression556);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n ENTITY_REFERENCE10 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_complexPropertyExpression558);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE10.getText()));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Closes current client's socket and deletes static client Input: None Output: None
public static void deleteClient( ) { if (ClientHandler.client != null) { ClientHandler.client.closeSocket(); ClientHandler.client = null; } }
[ "void closeClient();", "public void closeClient(){\n\t\tnetworkmanager.sendData(STCTransferMode.Exit);\n\t\tnetworkmanager.close();\n\t\tmain.removeClient(this);\n\t}", "public void closeSocket() { \n try {\n this.os.close();\n this.is.close();\n this.clientSocket.close();\n } \n catch (Exception e) {\n System.out.println(\"XX. \" + e.getStackTrace());\n }\n }", "public void shutdownClient() {\n\t\ttry {\n\t\t\tthis.outputToServer.writeUTF(\"exit\" + name);\n\t\t\tthis.s.close();\n\t\t\t\n\t\t\tSystem.exit(0);\n\n\t\t} catch (IOException e) {\n\t\t\ttry {\n\t\t\t\tthis.s.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void closeConnection() {\n\t\ttry {\n\t\t\tclient.getConnection().close();\n\t\t\tmodel.removeClient(client);\n\t\t} catch (IOException e) {\n\t\t\t// This exception might actually be normal because we're closing the socket\n\t\t\t// when readLine() is blocking\n\t\t\tSystem.err.println(\"Could not close the socket. Runaway socket.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void closeSocket() { //gracefully close the socket connection\n try {\n this.os.close();\n this.is.close();\n this.clientSocket.close();\n } \n catch (Exception e) {\n System.out.println(\"XX. \" + e.getStackTrace());\n }\n }", "@PreDestroy\n private void destroy(){\n client.close();\n }", "public void closeSocket();", "void tcpclient_close(urg_tcpclient_t cli);", "private void stop() {\n if (client != null) {\n this.client.close();\n }\n }", "public void close() {\n try {\n for (Socket clientSocket: clientSocketList) {\n if (!clientSocket.isClosed())\n clientSocket.close();\n }\n serverSocket.close();\n } catch (IOException e) {\n System.out.println(\"Fail to close socket!!!\");\n }\n\n GlobalManager.getCatalog().persist();\n Database database = GlobalManager.getDatabase();\n if (database != null) {\n GlobalManager.getDatabase().persist();\n }\n try {\n GlobalManager.getBufferPool().flushAllPages();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void exitClient() {\n if (clientComm != null && clientComm.isRunning()) {\n clientComm.disconnectFromServer();\n }\n gui.disposeOfFrame();\n System.exit(1);\n }", "public void terminateConnection() {\n client.close();\n }", "public void desconectaCliente() throws IOException {\n //Desconecta o Cliente\n SOCKET.close();\n }", "private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void logout() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.logoutUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void close() {\r\n\t\tclient.close();\r\n\t\tthis.dispose();\r\n\t}", "public void shutdown() \n {\n /** Close the secure socket server */\n try\n {\n synchronized ( socket)\n { \n /** Shut down the Client Socket */\n socketReader.close();\n socketWriter.close();\n socket.close();\n \n isRunning = false;\n \n \n /** Print in the Event area of the Server Windows GUI the close operation of the Socket Server... */\n ClientSocketGUI.getInstance().append( \"[CCEngine]:: Shutting down the Client Engine....COMPLETE (\" + lotusStat.getCurrentDate() + \")\\n\" );\n }\n }\n catch ( Exception e )\n {\n /** Print to the logging stream that shutting down the Central System socket server failed */\n ClientSocketGUI.getInstance().append(\"[CCEngine]: Failed shutting down CS socket server -- \" + e.getMessage() + \" (\" + lotusStat.getCurrentDate() + \")\\n\");\n }\n \n /** Invoke our parent's method to stop the thread running the secure socket server... */\n super.shutdown();\n }", "public static void stopConnection() throws IOException {\n in.close();\n out.close();\n clientSocket.close();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the value of the database column st_door_real.notice
public String getNotice() { return notice; }
[ "public String getNotice() \n {\n return _notice;\n }", "java.lang.String getNotice();", "public String getNotice();", "public java.lang.String getNotice() {\n java.lang.Object ref = notice_;\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 notice_ = s;\n return s;\n }\n }", "public String getReceiveNotice() {\n return receiveNotice;\n }", "public StringWithCustomFacts getRestrictionNotice() {\n return restrictionNotice;\n }", "public com.google.protobuf.ByteString\n getNoticeBytes() {\n java.lang.Object ref = notice_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notice_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getNoticeDes() {\n return noticeDes;\n }", "public String getNoticeid() {\n return noticeid;\n }", "public Integer getRiskWarning() {\n return riskWarning;\n }", "public String getLBR_DirectDebitNotice();", "public Integer getNoticeId() {\n return noticeId;\n }", "public String getWarning () {\r\n \t\tif ( warning == null ) return \"\";\r\n \t\telse return warning;\r\n \t}", "public Long getShortCashNotice() {\r\n return shortCashNotice;\r\n }", "public Long getShortCash5Notice() {\r\n return shortCash5Notice;\r\n }", "public void setNotice(String notice) \n {\n _notice = notice;\n }", "public void setNotice(String notice) {\n this.notice = notice;\n }", "@Override\n\tpublic java.lang.String getNoticePeriod() {\n\t\treturn _candidate.getNoticePeriod();\n\t}", "public Long getNotices() {\n return notices;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of checkCard method, of class CreditCardAndCI.
@Test public void testCheckCard3() { System.out.println("checkCard"); String card = "4608003816501748"; boolean expResult = true; boolean result = CreditCardAndCI.checkCard(card); assertEquals(expResult, result); }
[ "@Test\n public void testCheckCard1() {\n System.out.println(\"checkCard\");\n String card = \"4048598412673666\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.checkCard(card);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testCheckCard2() {\n System.out.println(\"checkCard\");\n String card = \"4608003816501748\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.checkCard(card);\n assertEquals(expResult, result);\n }", "@Test\n public void testCheckCard4() {\n System.out.println(\"checkCard\");\n String card = \"4835774663674896\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.checkCard(card);\n assertEquals(expResult, result);\n }", "@Test\n public void testCheckCard5() {\n System.out.println(\"checkCard\");\n String card = \"4528804794441477\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.checkCard(card);\n assertEquals(expResult, result);\n }", "@Test\n public void testCardCheck() {\n System.out.println(\"CardCheck\");\n int c = 5;\n int r = 0;\n int expResult = 5;\n int result = instance.CardCheck(c, r);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testValidateCI4() {\n System.out.println(\"validateCI\");\n String CI = \"0952465334\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.validateCI(CI);\n assertEquals(expResult, result);\n }", "@Test\n public void testValidateCI1() {\n System.out.println(\"validateCI\");\n String CI = \"1727620054\";\n boolean expResult = true;\n boolean result = CreditCardAndCI.validateCI(CI);\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic final void testValidateCreditCard() {\r\n\t\tassertTrue (\"cc1 validates\", cc1.validate());\r\n\t}", "@Test\n void CreditCardContainsSecurityCode() {\n assertNotNull(this.testCard.getSecurityCode());\n }", "@Test\r\n\tpublic final void testEqualsCreditCard() {\r\n\t\tassertTrue (\"cc1 equals cc2\", cc1.equals(cc2));\r\n\t\t}", "@Test\n\tpublic void TestValidAccountNumber() {\n\t\tsetup();\n\t\tassertTrue(_bank.validate(card1));\n\t\tassertTrue(_bank.validate(card2));\n\t\n\t}", "void validCardDetails(Card card);", "@Test\r\n public void testCompareCard() {\r\n System.out.println(\"CompareCard\");\r\n Path_Card C = new Path_Card('1', '0', '0', '0', '1', 9);\r\n Path_Card instance = new Path_Card('1', '0', '0', '0', '1', 9);\r\n boolean expResult = true;\r\n boolean result = instance.CompareCard(C);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testCardSelectionIsValid_TRUE() throws Exception {\n System.out.println(\"cardSelectionIsValid not valid\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n utils.cardSelectionIsValid(cardSelection, drawCard, wildColour);\n }", "private boolean validateCard() {\n Card card = new Card(\n editTextCreditCardNumber.getText().toString(),\n selectedMonth,\n selectedYear,\n editTextCCV.getText().toString()\n );\n boolean validation = card.validateCard();\n if (validation) {\n return true;\n } else if (!card.validateNumber()) {\n Toast.makeText(getActivity(), getResources().getString(R.string.creditCardErrorNumber), Toast.LENGTH_SHORT).show();\n return false;\n } else if (!card.validateExpiryDate()) {\n Toast.makeText(getActivity(), getResources().getString(R.string.creditCardErrorExpiryDate), Toast.LENGTH_SHORT).show();\n return false;\n } else if (!card.validateCVC()) {\n Toast.makeText(getActivity(), getResources().getString(R.string.creditCardErrorCCV), Toast.LENGTH_SHORT).show();\n return false;\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.creditCardError), Toast.LENGTH_SHORT).show();\n return false;\n }\n }", "@Test\n public void testCheckPlayerCard() {\n System.out.println(\"checkPlayerCard\");\n int a = 0;\n Game instance = new Game(new euchreGUI(), new Deck());\n instance.startGame(1, 1, 1);\n String suit = instance.getPlayerCard(a).getSuitString();\n instance.getRound().setTrump(suit);\n boolean result = instance.checkPlayerCard(a);\n assertTrue(result);\n }", "@Test\n void CreditCardContainsSerialNr() {\n assertNotNull(this.testCard.getSerialNr());\n }", "private boolean creditCardInfoVerification(\n final PaymTestData testData) {\n final String expData = testData.getCCExpirationDateMonth() + \"/\" +\n testData.getCCExpirationDateYear();\n final String cardNumber = PaymTestData.getRetainFunding(\"CC_Empty\",\n testData.getCCNumber());\n return Log.altVerify(expData, lblCCExpirationData().getText(), true,\n \"Expiration Data\")\n && Log.altVerify(cardNumber, lblCCNumber().getText(), true,\n \"Credit Card Number\")\n && Log.altVerify(testData.getCCType(), lblCCType().getText(), true,\n \"Credit Card Type\")\n && (!lblCVVNumber().isElementPresent() || Log\n .altVerify(\"****\", lblCVVNumber().getText(), true,\n \"Card Verification Number\"));\n }", "@Test\n public void getCardNumber() {\n Assert.assertEquals(1, testToolCard.getCardNumber());\n Assert.assertFalse(testToolCard.getCardNumber() != 1);\n Assert.assertTrue(testToolCard.getCardNumber() <= 12);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Schema in Thrift format. .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2;
@java.lang.Override public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder getThriftOrBuilder() { if (schemaCase_ == 2) { return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_; } return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); }
[ "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift() {\n if (schemaCase_ == 2) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance();\n }", "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder\n getThriftOrBuilder() {\n if ((schemaCase_ == 2) && (thriftBuilder_ != null)) {\n return thriftBuilder_.getMessageOrBuilder();\n } else {\n if (schemaCase_ == 2) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance();\n }\n }", "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift() {\n if (thriftBuilder_ == null) {\n if (schemaCase_ == 2) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance();\n } else {\n if (schemaCase_ == 2) {\n return thriftBuilder_.getMessage();\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance();\n }\n }", "public Builder setThrift(com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema value) {\n if (thriftBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n schema_ = value;\n onChanged();\n } else {\n thriftBuilder_.setMessage(value);\n }\n schemaCase_ = 2;\n return this;\n }", "public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder getThriftBuilder() {\n return getThriftFieldBuilder().getBuilder();\n }", "Schema createSchema();", "StructType getSchema();", "com.vitessedata.llql.llql_proto.LLQLData.SchemaOrBuilder getSchemaOrBuilder();", "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema getProtobuf() {\n if (schemaCase_ == 3) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance();\n }", "SchemaDefinition createSchemaDefinition();", "private static TableSchema createSchema() {\n\n\t\tTableSchema schema = new TableSchema().setFields(Arrays.asList(\n\t\t\t\tnew TableFieldSchema().setName(ConfigConstans.TRANSACTION_TIME).setType(\"TIMESTAMP\"),\n\t\t\t\tnew TableFieldSchema().setName(ConfigConstans.OPERATION_TYPE).setType(\"STRING\").setMode(\"REQUIRED\"),\n\t\t\t\tnew TableFieldSchema().setName(ConfigConstans.ERROR_MESSAGE).setType(\"STRING\").setMode(\"NULLABLE\"),\n\t\t\t\tnew TableFieldSchema().setName(\"ID\").setType(\"INT64\").setMode(\"REQUIRED\"),\n\t\t\t\tnew TableFieldSchema().setName(\"First_name\").setType(\"STRING\").setMode(\"NULLABLE\"),\n\t\t\t\tnew TableFieldSchema().setName(\"Last_name\").setType(\"STRING\").setMode(\"NULLABLE\"),\n\t\t\t\tnew TableFieldSchema().setName(\"Email\").setType(\"STRING\").setMode(\"NULLABLE\")));\n\t\treturn schema;\n\t}", "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder\n getProtobufOrBuilder() {\n if (schemaCase_ == 3) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance();\n }", "SchemaType createSchemaType();", "public String getRemoteSchema();", "String getRemoteSchema();", "public static String generateHiveSpecificLogicalType(Schema schema)\n throws AvroSerdeException {\n // For bytes type, it can be mapped to decimal.\n Schema.Type type = schema.getType();\n\n if (type == Schema.Type.STRING && AvroSerDe.VARCHAR_TYPE_NAME\n .equalsIgnoreCase(schema.getProp(AvroSerDe.AVRO_PROP_LOGICAL_TYPE))) {\n int maxLength = 0;\n try {\n maxLength = Integer.parseInt(AvroCompatibilityHelper.getSchemaPropAsJsonString(schema, \n AvroSerDe.AVRO_PROP_MAX_LENGTH, false, false));\n } catch (Exception ex) {\n throw new AvroSerdeException(\"Failed to obtain maxLength value from file schema: \" + schema, ex);\n }\n return String.format(\"varchar(%s)\", maxLength);\n } else {\n return StringUtils.EMPTY;\n }\n }", "abstract Pipe.Schema<T> getPipeSchema();", "String getSchemaType();", "com.scalar.db.rpc.TableMetadata getTableMetadata();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pretty empty (but valid) RTCA file
public File rtcaTest() throws IOException { String config = "scan_plate_data.plt"; return new File(localPath + "/RTCA/" + config); }
[ "default boolean alwaysFormatEntireFile() {\n return false;\n }", "public BibFileFormatter() {\n this(\" \");\n }", "protected void buildNCFile() {\n ncFile.empty();\n fillNCFile();\n ncFile.finish();\n }", "public void createTestFileWithoutProperKeyFormat() {\n\t\tList<String> lines = Arrays.asList(\"INVALID_KEY_FORMAT=\" + TEST_PROP_VALUE);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static String displayFileAlloc() {\n List<AllocationRow> allocationRows = DiskHelper.readFileAllocationTable();\n StringBuilder out = new StringBuilder();\n\n for (AllocationRow row : allocationRows) {\n out.append(\"\\nFile Name: \").append(row.getFileName()).append(\", File Index: \").append(row.getFileIndex()).append(\", File Span: \").append(row.getFileSpan());\n }\n\n return out.toString();\n }", "public void printDestructiveChanges() {\n \t\tpackager.printFile();\n \t}", "public void printOnTSVFile();", "protected void WriteTrainFilePartial() {\r\n\t\t// TODO: what if we're midway through a unicode character?\r\n\r\n\t\tif (strTrainfileBuffer.length() > 100) {\r\n\t\t\t// LinkedList<Byte> surplus = new LinkedList<Byte>();\r\n\t\t\t// while(strTrainfileBuffer.length() > 100) {\r\n\t\t\t// surplus.addFirst(strTrainfileBuffer.getLast());\r\n\t\t\t// strTrainfileBuffer.removeLast();\r\n\t\t\t// }\r\n\t\t\tWriteTrainFile(strTrainfileBuffer.substring(0, 99));\r\n\t\t\tstrTrainfileBuffer.delete(0, 99);\r\n\t\t\t// strTrainfileBuffer.addAll(surplus);\r\n\r\n\t\t\t/* CSFS: Write the first 100 bytes to disk and keep the rest */\r\n\t\t} else {\r\n\t\t\tWriteTrainFile(strTrainfileBuffer.toString());\r\n\t\t\tstrTrainfileBuffer.setLength(0);\r\n\t\t}\r\n\r\n\t}", "private String fileEmpty() {\n return \" Task file is empty!\";\n }", "public void print()\n {\n try\n {\n int count = 0;\n for(long i=0; i*4<myFile.length() - 4095; i+=1024)\n {\n byte[] record = getRecord(i);\n count++;\n System.out.print(makeShort(record[0],record[1]) + \"\\t\" +\n makeShort(record[2], record[3]) + \"\\t\");\n if(count%8 == 0)\n System.out.print(\"\\n\");\n }\n }\n catch (IOException e)\n {\n System.out.println(\"File Read Error\");\n e.printStackTrace();\n }\n }", "protected String makeRTF_documentDefaults()\n throws AmbassadorDwUpException\n {\n // not used by binary writer\n return null;\n }", "private void saveUCSC() throws FileNotFoundException, IOException {\n\t\tString name = Misc.removeExtension(bedFile.getName());\n\t\tFile ucscFile = new File (bedFile.getParentFile(), name+\".ucsc.gz\");\n\t\tGzipper out = new Gzipper( ucscFile);\n\t\tfor (String chr: chromGenes.keySet()) {\n\t\t\tfor (UCSCGeneLine ugl: chromGenes.get(chr)) {\n\t\t\t\tout.println(ugl.toUCSC());\n\t\t\t}\n\t\t}\n\t\tout.close();\n\t\tIO.pl(\"\\nSaved \"+ucscFile);\n\t\t\n\t}", "public void blankremover(String args) {\r\n\r\n Scanner file;\r\n PrintWriter writer;\r\n\r\n try {\r\n\r\n file = new Scanner(new File(args));\r\n writer = new PrintWriter(\"gpstest100.txt\");\r\n\r\n while (file.hasNext()) {\r\n String line = file.nextLine();\r\n if (!line.isEmpty()) {\r\n writer.write(line);\r\n writer.write(\"\\n\");\r\n }\r\n }\r\n\r\n file.close();\r\n writer.close();\r\n\r\n } catch (FileNotFoundException ex) {\r\n //Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);\r\n \t \r\n } \r\n \r\n}", "public String toString() {\n\t\treturn \"AudioFile \" + getFile().getAbsolutePath() + \" --------\\n\" + audioHeader.toString() + \"\\n\"\n\t\t\t\t+ ((tag == null) ? \"\" : tag.toString()) + \"\\n-------------------\";\n\t}", "protected String makeRTF_documentVariables()\n throws AmbassadorDwUpException\n {\n // not used by binary writer\n return null;\n }", "public void createTestFileWithoutKey() {\n\t\tList<String> lines = new ArrayList<>(0);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void generateRCA() {\n\t\ttry {\n\t\t\t// Seconday Metric Readability of Classified Attributes (RCA)\n\t\t\tcsvWriter.append(\",,,Readability of Classified Attributes (RCA),,,\");\n\t\t\t// For each class in the project\n\t\t\tfor(String key: classNames) {\n\t\t\t\tcsvWriter.append(String.valueOf(calc.getSecondaryMetrics().getReadabilityOfClassifiedAttributes().get(key)) + \",\");\n\t\t\t}\n\t\t\tcsvWriter.append(\"\\n\");\n\n\t\t\t// Generate the associated Tertiary Metrics\n\t\t\tgenerateCIDA();\n\t\t\tgenerateCCDA();\n\t\t\tgenerateCAI();\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in format file \" + f.getPath();\n }\n return \" in format \" + StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "private void writeNullCommitMetaData() {\n writer.println(\"commit_NULL:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"author:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"modified:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"removed:\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Close the Help Tour overlay. 14Jul2017 MR47140 Help Tour overlay is removed from search results page.
public static WebElement btn_closeHelpTourOverlay11() throws Exception{ try{ WebDriverWait wait = new WebDriverWait(driver, 25); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[contains(@class, 'helpTourPopup none')]"))); wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[contains(@class, 'helpTourPopup none')]"))); element = driver.findElement(By.xpath("//*[contains(@class, 'helpTourPopup none')]")); Boolean isHelpTourOverlayExists = element.isDisplayed(); Add_Log.info("Is Help Tour overlay displayed ::" + isHelpTourOverlayExists); if(isHelpTourOverlayExists == true){ // Close the Help Tour overlay WebElement btnClose = driver.findElement(By.xpath("//*[contains(@class, 'helpTourClose none')]")); btnClose.click(); Add_Log.info("Help Tour overlay is closed."); }else{ // do nothing Add_Log.info("Help Tour overlay is not displayed."); } }catch(Exception e){ Add_Log.error("Unable to locate Help Tour overlay on the page."); throw(e); } return element; }
[ "public ImagePreviewDashlet closeHelpBallon()\n {\n try\n {\n findAndWait(DASHLET_HELP_BALLOON_CLOSE_BUTTON).click();\n waitUntilElementDisappears(DASHLET_HELP_BALLOON, TimeUnit.SECONDS.convert(getDefaultWaitTime(), TimeUnit.MILLISECONDS));\n return this;\n }\n catch (TimeoutException elementException)\n {\n throw new UnsupportedOperationException(\"Exceeded time to find the help ballon close button.\", elementException);\n }\n }", "private static void closeHelpWindow() {\n Window helpWindow = WindowOperator.findWindow(new ComponentChooser() {\n\n @Override\n public boolean checkComponent(Component comp) {\n WindowOperator winOper = new WindowOperator((Window) comp);\n winOper.setOutput(TestOut.getNullOutput());\n return null != winOper.findSubComponent(new ComponentChooser() {\n\n @Override\n public boolean checkComponent(Component comp) {\n return comp.getClass().getName().startsWith(\"javax.help.JHelp\"); //NOI18N\n }\n\n @Override\n public String getDescription() {\n return (\"any javax.help\"); //NOI18N\n }\n });\n }\n\n @Override\n public String getDescription() {\n return \"containing any javax.help.JHelp component\"; //NOI18N\n }\n });\n if (helpWindow != null) {\n new WindowOperator(helpWindow).close();\n }\n }", "String helpBubbleClose();", "private void close(){\n\t\tcloseProperSummary();\n\t\tif(wikipediaResultWidget!=null){\n\t\t\teventBus.fireEvent(new ResultWidgetRemoveEvent(wikipediaResultWidget));\n\t\t\twikipediaResultWidget=null;\n\t\t}\n\t\teventBus.fireEvent(new CloseMapMainPopupEvent());\n\t}", "public void close() {\r\n\t\tpages.Utill().click_element(\"//a[@class='rwCloseButton']\");\r\n\t}", "public void helpPaneClose(ActionEvent actionEvent) {\n darkPane.setDisable(true);\n darkPane.setVisible(false);\n helpPane.setDisable(true);\n helpPane.setVisible(false);\n }", "public void close() {\n RobotMap.hatchHolderPiston.set(true);\n }", "public void close() {\n getCloseButton().click();\n }", "@Override\n public void onHelpOverlayFragmentInteraction(View view)\n {\n ButtonFunction buttonFunction = ButtonFunction.getValue(view.getId());\n if(buttonFunction == ButtonFunction.CLOSE)\n {\n Log.i(String.format(\"[%s] selected\", buttonFunction));\n this.setHelpOverlayVisibility(false);\n }\n }", "@When(\"^the user closes infobox on the Home page$\")\n public void closeInfoBox() {\n homePage.closeInfoBox();\n }", "public void close() {\n closePopup();\n }", "public void clickClose()\n {\n click(CLOSE_BUTTON);\n }", "public void close()\r\n {\r\n gameInstance.setActiveGui(null);\r\n }", "public final void closeTipPanel() {\n try {\n closeFrame();\n } catch (PropertyVetoException ex) {\n }\n }", "public void closeView() {\n\t\tframeSystem.dispose();\n\t}", "public void clickOnCloseButton(){\n\t\tDynamicFramePage.dynamicFrameForPanchart();\n\t\tDynamicFramePage.switchtoFraFrame();\n\t\tSeleniumUtil.getElementWithFluentWait(panProfileCloseicon).click();\n\t}", "public void closeClick() {\n closeTitle.click();\n }", "public HomePage close() {\n\n\t\tclick(btn_close);\n\t\tdriver.switchTo().defaultContent();\n\t\tif (verifyElementPresent(yesBtn)) {\n\n\t\t\tclick(yesBtn);\n\t\t}\n\t\treturn new HomePage(driver, dataFileName);\n\t}", "public void exitOverlay() {\n\t\tdeRegister(); \n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
given a list of integers, return a list of the integers, omitting any that are less than 0
public List<Integer> noNeg(List<Integer> nums) { nums.removeIf(n -> n < 0); return nums; }
[ "public static ArrayList<Integer> removeZeros(ArrayList<Integer> p)\n\t{ The best way: Create a new empty integer array list and\n\t // only copy the non-zero numbers of parameter array list p into it. \n\t\t // Use a for loop\n\t\t //-----------Start below here. To do: approximate lines of code = 5\n\t\t //\n\t\t ArrayList<Integer> helo = new ArrayList<Integer>();\n\t\t for (Integer number:p){\n\t\t\t if (number!=0){\n\t\t\t helo.add(number);\n\t\t }\n\t\t}\n\t\t return helo;\n\t\t }", "public List<Integer> findDisappearedNumbers(int[] nums) {\n for (int i = 0; i < nums.length; i++) {\n int idx = Math.abs(nums[i]) - 1;\n if (nums[idx] > 0) {\n nums[idx] *= -1;\n }\n }\n List<Integer> result = new ArrayList<>();\n for (int i = 1; i <= nums.length; i++) {\n if (nums[i-1] > 0) {\n result.add(i);\n }\n }\n return result;\n }", "public ArrayList<T> getNonZeroOrderedElements() {\n\t\tArrayList<T> ordered = getOrderedElements();\n\t\tfor (Iterator<T> iter = ordered.iterator(); iter.hasNext();) {\n\t\t\tT element = iter.next();\n\t\t\tif (itemProbs_.get(element) == 0)\n\t\t\t\titer.remove();\n\t\t}\n\t\treturn ordered;\n\t}", "private static int[] stripLeadingZeroInts(int val[]) {\n int vlen = val.length;\n int keep;\n\n // Find first nonzero byte\n for (keep = 0; keep < vlen && val[keep] == 0; keep++)\n ;\n return java.util.Arrays.copyOfRange(val, keep, vlen);\n }", "@Override\n\tpublic int[] filter(int[] list) {\n\t\treturn Arrays.stream(list).filter(num -> !IntStream.rangeClosed(2, (int) Math.sqrt(num))\n\t\t\t\t.filter(i -> num % i == 0).findFirst().isPresent()).toArray();\n\t}", "public int[] noNegatives(int[] arr){\n for (int i =0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n return arr;\n }", "public static int[] removeZeros(int[] input)\n {\n int targetIndex = 0;\n for(int sourceIndex = 0; sourceIndex < input.length; sourceIndex++ )\n {\n if( input[sourceIndex] != 0 )\n input[targetIndex++] = input[sourceIndex];\n }\n\n int[] newArray = new int[targetIndex];\n System.arraycopy( input, 0, newArray, 0, targetIndex );\n\n return newArray;\n }", "private static int[] trustedStripLeadingZeroInts(int val[]) {\n int vlen = val.length;\n int keep;\n\n // Find first nonzero byte\n for (keep = 0; keep < vlen && val[keep] == 0; keep++)\n ;\n return keep == 0 ? val : java.util.Arrays.copyOfRange(val, keep, vlen);\n }", "@Test\n public void testTakeUnless() {\n Predicate<Integer> p = x -> (x & 1) == 0;\n ArrayList<Integer> l = new ArrayList<>();\n l.add(0, 0);\n l.add(1, 2);\n l.add(2, -2);\n l.add(3, 1);\n l.add(4, -4);\n l.add(5, 6);\n\n List<Integer> result = Collections.takeUnless(p.not(), l);\n assertEquals(3, result.size());\n assertEquals(new Integer(0), result.get(0));\n assertEquals(new Integer(2), result.get(1));\n assertEquals(new Integer(-2), result.get(2));\n }", "public void removeZeros(ArrayList<Integer> arr) {\n\t\tfor (int i = arr.size() -1; i > -1; i--) {\n\t\t\tif(arr.get(i) == 0){\n\t\t\t\tarr.remove(i);\n\t\t\t}\n\t\t}\n\t}", "public List<Integer> removeNumber(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 7) {\n result.add(number);\n }\n }\n return result;\n }", "private void removeLeadingZeroes() {\n // Iterate the number until that appears a number greater than 0\n while (number.size() > 0 && number.get(number.size() - 1) == 0) {\n number.remove(number.size() - 1);\n }\n\n // If the list is empty so the number is zero\n if (number.isEmpty()) {\n number.add(0);\n isPositive = true;\n }\n }", "public ArrayList<T> getNonZero() {\n\t\tArrayList<T> nonZeroes = new ArrayList<T>();\n\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\tif (itemProbs_.get(element) > 0) {\n\t\t\t\tnonZeroes.add(element);\n\t\t\t}\n\t\t}\n\t\treturn nonZeroes;\n\t}", "private static int[] makePositive(int a[]) {\n int keep, j;\n\n // Find first non-sign (0xffffffff) int of input\n for (keep=0; keep < a.length && a[keep] == -1; keep++)\n ;\n\n /* Allocate output array. If all non-sign ints are 0x00, we must\n * allocate space for one extra output int. */\n for (j=keep; j < a.length && a[j] == 0; j++)\n ;\n int extraInt = (j == a.length ? 1 : 0);\n int result[] = new int[a.length - keep + extraInt];\n\n /* Copy one's complement of input into output, leaving extra\n * int (if it exists) == 0x00 */\n for (int i = keep; i < a.length; i++)\n result[i - keep + extraInt] = ~a[i];\n\n // Add one to one's complement to generate two's complement\n for (int i=result.length-1; ++result[i] == 0; i--)\n ;\n\n return result;\n }", "public static ArrayList<Integer> sortAndConvertToArrayList(int[] array){\n int m = array.length;\n sort(array);\n ArrayList<Integer> array3 = new ArrayList<>();\n for(int i = 0; i<array.length-1; i++)\n if(array[i] >= 0)array3.add(array[i]);\n else array3.add(0);\n return array3;\n }", "public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}", "private void removeLeadingZeros()\n {\n //remove leading zeros\n for(int i = 40-numDigits; i < 40; i++)\n {\n if (intArray[i]==0)\n numDigits--;\n }\n }", "static void RemoveZero(ArrayList<Integer> people) {\n\t\tfor(int i = 0; i < people.size(); i++) {\n\t\t\tif(people.get(i) == 0){\n\t\t\t\tpeople.remove(i);\n\t\t\t}\n\t\t}\n\t\tif(people.isEmpty()) {\n\t\t\tSystem.out.println(\"true\");\n\t\t} else {\n\t\t\tSortPeople(people);\n\t\t}\n\t}", "public static double[] removeNegatives(double[] arr) {\n\t\tint length = arr.length;\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (arr[i] < 0)\n\t\t\t\tarr[i] = 0;\n\t\t}\n\t\treturn arr;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Paints boxes of random width and height in a random location. Narrow or short boxes are highlighted with a fill color.
public void paint(Graphics page) { final int NUM_BOXES = 50, THICKNESS = 5, MAX_SIDE = 50; final int MAX_X = 350, MAX_Y = 250; int x, y, width, height; setBackground (Color.black); Random generator = new Random(); for (int count = 0; count < NUM_BOXES; count++) { x = generator.nextInt (MAX_X) + 1; y = generator.nextInt (MAX_Y) + 1; width = generator.nextInt (MAX_SIDE) + 1; height = generator.nextInt (MAX_SIDE) + 1; if (width <= THICKNESS) // check for narrow box { page.setColor (Color.yellow); page.fillRect (x, y, width, height); } else if (height <= THICKNESS) // check for short box { page.setColor (Color.green); page.fillRect (x, y, width, height); } else { page.setColor (Color.white); page.drawRect (x, y, width, height); } } }
[ "public void createRect(){\r\n float determiner1 = this.rand.nextInt(500);\r\n float determiner2 = this.rand.nextInt(800);\r\n\r\n left = determiner1;\r\n top = determiner2;\r\n right = determiner1+100;\r\n bottom = determiner2+100;\r\n\r\n this.color = Color.RED;\r\n\r\n }", "public void newDrawing(){\n\t\tint n = 10 + generRandom.nextInt(20);\n\t\trectangle2ds.clear();\n\t\tcolors.clear();\n\t\tfor(int i = 1; i <= n; i ++){\n\t\t\tint x = generRandom.nextInt(getWidth());\n\t\t\tint y = generRandom.nextInt(getHeight());\n\t\t\tint width = generRandom.nextInt(getWidth() - x);\n\t\t\tint height = generRandom.nextInt(getHeight() - y);\n\t\t\trectangle2ds.add(new Rectangle(x, y, width, height));\n\t\t\tint r = generRandom.nextInt(256);\n\t\t\tint g = generRandom.nextInt(256);\n\t\t\tint b = generRandom.nextInt(256);\n\t\t\tcolors.add(new java.awt.Color(r, g, b));\n\t\t}\n\t\trepaint();\t\t\n\t}", "public DrawShapePanel() {\n \n setBackground(Color.WHITE);\n inputNumberOfShapeToGenerate(); \n \n // create random values for shapes\n for (int count = 0; count < shapes.length; ++count) {\n \n int value = 10 + random.nextInt( 600 ); // +10 to avoid div/0\n // generate random coordinates\n int x = random.nextInt(value) - value/2;\n int y = random.nextInt(value) - value/2;\n int w = random.nextInt(value) + value/2;\n int h = random.nextInt(value) + value/2; \n \n // generate a random color\n Color color = new Color( \n random.nextInt(256), // RGB values\n random.nextInt(256), \n random.nextInt(256)\n );\n \n generateRandomShapes(count, x, y, w, h, color);\n \n } // end for\n }", "@Override\n public void drawBox(int x, int y, int width, int height, Color color)\n {\n int col = color.getRGB();\n int maxx = x+width;\n int maxy = y+height;\n if (x < 0) x = 0;\n if (y < 0) y = 0;\n if (maxx > bounds.width) maxx = bounds.width;\n if (maxy > bounds.height) maxy = bounds.height;\n width = maxx-x;\n for (int i = y, index = y*bounds.width+x; i < maxy; i++, index += bounds.width)\n for (int j = 0; j < width; j++)\n pixel[index+j] = col;\n }", "private void awesomelyFill() throws InterruptedException {\n\n System.out.println(\"Awesomely fill.\");\n\n Random rand = new Random(Double.doubleToLongBits(Math.random()));\n for(int i = 0; i < iterCount; i++) {\n Rectangle box = new Rectangle();\n// box.x = i % container.width;\n// box.y = i / container.height;\n box.x = rand.nextInt(container.width - 1) + 1;\n box.y = rand.nextInt(container.height - 1) + 1;\n// box.width = 30;\n// box.height = 30;\n box.width = minRadius * 2;\n box.height = box.width;\n if(interrupted) {\n cleanup();\n return;\n }\n\n ExtendedPolygon polygon = null;\n boolean success;\n for(int j = 0; j < maxRadius * 2; j += expandStep) {\n if(interrupted) {\n cleanup();\n return;\n }\n box.width += expandStep;\n box.height += expandStep;\n\n\n ExtendedPolygon tmpPoly;\n// ExtendedPolygon tmpPoly = new ExtendedPolygon();\n// tmpPoly.addPoint(box.x, box.y);\n// tmpPoly.addPoint(box.x + box.width, box.y);\n// tmpPoly.addPoint(box.x + box.width, box.y + box.height);\n// tmpPoly.addPoint(box.x, box.y + box.height);\n tmpPoly = randPolygonWithinBox(box, 5,(double)minAngle,(double)maxAngle);\n success = container.safePut(tmpPoly);\n\n this.repaint();\n\n if(success) {\n polygon = tmpPoly;\n container.remove(tmpPoly);\n } else {\n break;\n }\n }\n\n if(polygon != null) {\n container.put(polygon);\n } else {\n }\n }\n }", "public void reset() {\n x = random(-2*width, 3*width); // set the x position\n y = random(-height, 2*height); // set the y position\n c[0] = color(random(150, 255), random(150, 255), random(150, 255)); // set the top color (a bit lighter)\n // randomly set the 4 colors in the base of the shape\n for (int i=1; i<5; i++) {\n c[i] = color(random(255), random(255), random(255)); // random RGB color\n }\n }", "@Override\n public void drawBoxes(java.util.List<Rectangle> box, Color color)\n {\n for (int i = 0; i < box.size(); i++)\n {\n Rectangle r = box.get(i);\n drawBox(r.x, r.y, r.width, r.height, color);\n }\n }", "public void run() {\n\n //10x5\n for (int i = 0; i < 10; i++) {\n print(\"*\");\n }\n println();\n\n for (int i = 0; i < 3; i++) {\n\n print(\"*\");\n for (int j = 0; j < 10 - 2; j++) {\n print(\" \");\n }\n print(\"*\");\n println();\n }\n\n for (int i = 0; i < 10; i++) {\n print(\"*\");\n }\n println();\n\n //7x7\n for (int i = 0; i < 7; i++) {\n print(\"*\");\n }\n println();\n\n for (int i = 0; i < 5; i++) {\n\n print(\"*\");\n for (int j = 0; j < 7 - 2; j++) {\n print(\" \");\n }\n print(\"*\");\n println();\n }\n\n for (int i = 0; i < 7; i++) {\n print(\"*\");\n }\n println();\n\n //15x16\n drawBox(15, 6);\n\n }", "private void generateNewRect() {\n\t\t\n\t\tif(rectengleList.size() < getLevel()){\n\t\tRandom mRandom = new Random();\n\t\tint height = getHeight();\n\t\tint width = getWidth();\n\n\t\tint cx = (int) ((mRandom.nextInt() % (width * 0.8)) + (width * 0.1));\n\t\tint cy = (int) ((mRandom.nextInt() % (height * 0.8)) + (height * 0.1));\n\t\tint hw = (int) (mRandom.nextInt() % (width * 0.4) + width * 0.2) / 2;\n\t\tint hh = (int) (mRandom.nextInt() % (height * 0.4) + height * 0.2) / 2;\n\n\t\tint color = (0x00252525 | mRandom.nextInt()) & 0x00FFFFFF | 0x77000000;\n\t\t\n\t\t\n\t\trectengleList.add(new ColoredRect(color, cx - hw, cy - hh, cx + hw, cy\n\t\t\t\t+ hh));\n\t\t}\n\t\telse{\n\t\t\trectengleList.clear();\t\t\t\n\t\t}\n\t}", "private void paintStars(int count)\n {\n int x;\n int y;\n int transparency;\n GreenfootImage background = getBackground();\n for(int i = 0; i < count; i++)\n {\n x = Greenfoot.getRandomNumber(getWidth());\n y = Greenfoot.getRandomNumber(getHeight());\n transparency = Greenfoot.getRandomNumber(237);\n background.setColor(new Color(255, 255, 255, transparency));\n background.fillOval(x, y, 3, 3);\n }\n }", "@Override\n public void relocatedWithinBounds() {\n x = random.nextInt(maxX - width);\n y = random.nextInt(maxY - height);\n }", "public static void randColor() {\n\t\tint x,y;\n\t\tx=y=10; // 10x10 squares\n\t\tif(model.getGameDetails().isHardLevel()) x=y=20; // 20x20 squares if it's hard level (3)\n\t\t\n\t\t// set mode game\n\t\tif(view.randomModeGame()) squareColor = new RandomColor();\n\t\telse squareColor = new OneColor();\n\t\t\n\t\tmodel.initSquareArray(x, y); // new array\n\t\t\n\t\tfor(int i = 0; i< x; i++) {\n\t\t\tfor(int j = 0; j < y; j++) {\n\t\t\t\tfinal int posX = i;\n\t\t\t\tfinal int posY = j;\n\t\t\t\t\n\t\t\t\t// add square to the array\n\t\t\t\tmodel.getSquareArray()[i][j] = model.updateGameToolsArray(squareColor.select(model.getGameDetails().getLevel()), // random color\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.getGameDetails().isHardLevel(),\t// true if it's hard level (3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teventListener.eToolGame(model.getSelectList(), posX, posY)); // click event\n\t\t\t}\n\t\t}\n\t}", "public static void drawthing(Graphics g, int t) {\r\n\t\t/*\r\n\t\t * these nested for loops are used to to create the location points\r\n\t\t * and size dimensions to draw shapes in a mosaic like order\r\n\t\t */\r\n\r\n\t\tfor (int i = 0; i < 400; i += 40) {\r\n\t\t\tfor (int j = 0; j < 400; j += 40) {\r\n\t\t\t\tfor (int q = 10; q < 25; q += 5) {\r\n\t\t\t\t\tfor (int p = 5; p < 50; p += 10) {\r\n\r\n\t\t\t\t\t\tColor c = new Color(0, 0, (int) (Math.random() * 255));\r\n\t\t\t\t\t\tif (t % 10 == 0 && t % 20 != 0) {\r\n\t\t\t\t\t\t\tc = new Color((int) (Math.random() * 255),\r\n\t\t\t\t\t\t\t\t\t(int) (Math.random() * 255),\r\n\t\t\t\t\t\t\t\t\t(int) (Math.random() * 255));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (t % 20 == 0) {\r\n\t\t\t\t\t\t\tc = new Color(t % 255, (int) (Math.random() * 255),\r\n\t\t\t\t\t\t\t\t\tt % 255);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint k = (int) (Math.random() * 20);\r\n\t\t\t\t\t\tint v = (int) (Math.random() * 20);\r\n\t\t\t\t\t\tg.setColor(c);\r\n\t\t\t\t\t\tg.drawRect(i + k, j + v, p, p);\r\n\r\n\t\t\t\t\t\tk = (int) (Math.random() * 20);\r\n\t\t\t\t\t\tv = (int) (Math.random() * 20);\r\n\t\t\t\t\t\tg.fillRect(i + k, j + v, q, q);\r\n\t\t\t\t\t\tc = new Color(255, (int) (Math.random() * 255), t % 255);\r\n\t\t\t\t\t\tg.setColor(c);\r\n\t\t\t\t\t\tg.fillOval(t % 400 + 80, t % 400 + 80, t % 200, t % 200);\r\n\t\t\t\t\t\tc = new Color(0, (int) (Math.random() * 255), t % 255);\r\n\t\t\t\t\t\tg.setColor(c);\r\n\t\t\t\t\t\tg.fillOval(t % 400 + 100, t % 400 + 100, t % 200 - 100,\r\n\t\t\t\t\t\t\t\tt % 200 - 100);\r\n\t\t\t\t\t\tc = new Color(255, (int) (Math.random() * 255), t % 255);\r\n\t\t\t\t\t\tg.setColor(c);\r\n\t\t\t\t\t\tg.drawArc(i, j, t % 255, j,\r\n\t\t\t\t\t\t\t\t(int) (Math.random() * 180),\r\n\t\t\t\t\t\t\t\t(int) (Math.random() * 180));\r\n\t\t\t\t\t\tc = new Color((int) (Math.random() * 255), 0, 180);\r\n\t\t\t\t\t\tg.setColor(c);\r\n\t\t\t\t\t\tg.drawArc(j, i, t % 255, j,\r\n\t\t\t\t\t\t\t\t(int) (Math.random() * 180), t % 180);\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}", "public void generateRandomShape()\n {\n Random r = new Random();\n int randInt = r.nextInt(7);\n\n setCurrentTetromino(AVAILABLE_SHAPES[randInt]);\n }", "private void random() {\n\t\tint randomRow = (int)(15 * Math.random()),\n\t\trandomColumn = (int)(15 * Math.random());\n\t\twhile ((randomRow > randomColumn) || (randomRow <= 1) || (randomColumn <= 1)) {\n\t\t\trandomRow = (int)(15 * Math.random());\n\t\t\trandomColumn = (int)(15 * Math.random());\n\t\t}\n\t\tmyBoard = new Chessboard(randomRow, randomColumn);\n\t\tframe.setSize(randomRow, randomColumn);\n\t}", "public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }", "public void boxBounce(){\n if(myCanvas==null)\n {\n System.out.println(\"yo dog initialize setCanvasBeforeBoxBounce(...)\");\n }\n else\n {\n /*\n * The code within the for loop does everything from randomly assigning color within a \n * range to initializing the balls adding them to the array and setting their location\n * within the rectangle.\n */\n \n int colorIndex = 1;\n for(int i= 1; i<16; i++)\n {\n //Randomly assigns red, green, blue colors in the range of 0 to 255. \n int r = randomColor.nextInt(255)+1;\n int g = randomColor.nextInt(255)+1;\n int b = randomColor.nextInt(255)+1;\n Random randomRgb = new Random();\n \n /*\n * This conditional statement checks to see if the combined color color values for red\n * green and blue exceeds 425 because as this value gets higher the balls become more \n * transparent.\n */\n \n if((r+g+b)>425)\n {\n /*\n * The random number generate chooses a random combination of two of the rgb colors\n * and divides their value by 7 so that the value is decreased distinguishing\n * a single colors and minmizing the transparency.\n */\n int n = randomRgb.nextInt(3);\n if(n==0)\n {\n r = r/7;\n g = g/7;\n }\n \n if(n==1)\n {\n g = g/7;\n b = b/7;\n }\n \n if(n==2)\n {\n b = b/7;\n r = r/7;\n \n }\n }\n \n Color colorSet = new Color(r,g,b);\n //Gets the size of the rectangle to draw the rectangle within.\n Dimension size = myCanvas.getSize();\n int width = size.width;\n int height = size.height; \n \n width -= 10;\n height -= 10;\n \n int locationX;\n int locationY;\n \n int randomXLocation = size.width;\n int randomYLocation = size.height;\n \n //creates balls with a random diameter from 12 to 35.\n int ballSize = randomSize.nextInt(24)+12;\n \n randomXLocation-=(10+ballSize);\n randomYLocation-=(10+ballSize);\n //The next line randomly assigns an x location to the ball starting at a minimum x\n //positin of 5 so the ball does not get trapped outside the leftwall of the rectangle.\n locationX = randomLocation.nextInt(randomXLocation)+5;\n //The next line randomly assigns a y location to the ball starting at a minimum y\n //position of 5 so the ball does not get trapped outside the topwall of the rectangle.\n locationY = randomLocation.nextInt(randomYLocation)+5;\n //Adds the balls to the balls array one at a time.\n balls.add(new BoxBall(locationX, locationY, ballSize, width, height, colorSet, myCanvas));\n }\n //Draws the balls initial placement.\n for(int indexx = 0; indexx<balls.size(); indexx++)\n {\n BoxBall ball=null;\n ball = balls.get(indexx);\n ball.draw();\n }\n /*\n * This whil loop controls the movement of the boxballs by redrawing them from the array\n * calling the move method from BoxBall and redrawing the rectangle. Creates the illusion of\n * movement.\n */\n while(true){\n myCanvas.wait(25);\n for(int index = 0; index<balls.size(); index++)\n {\n BoxBall ball;\n ball = balls.get(index);\n ball.move();\n }\n }\n }\n }", "public void randomRGB(int xJump, int yJump){\n Color colours[][] = new Color[this.WIDTH][this.HEIGHT];\n Random random = new Random();\n for(int x = 0; x < this.WIDTH; x+=xJump){\n for(int y = 0; y < this.HEIGHT; y+=yJump){\n int r = random.nextInt(256);\n int g = random.nextInt(256);\n int b = random.nextInt(256);\n graphics.setColor(new Color(r,g,b));\n graphics.drawRect(x, y, xJump, yJump);\n graphics.fillRect(x,y, xJump, yJump);\n }\n }\n }", "ILoColor randomColors(int width, Random rand);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove the markings from all nodes
@AbstractCustomGlobal.CustomButton(buttonText="unmark", toolTipText="unmarks all nodes") public void unMark() { for(Node n : Tools.getNodeList()) { n.setColor(Color.BLACK); } Tools.repaintGUI(); }
[ "public void removeMarks() {\r\n\t\tthis.marks.clear();\r\n\t}", "public void clearNodeVisitedMarking() {\n\tfor (Node n : nodes)\n\t n.clearVisitedMark();\n }", "public void clearMarks() {\r\n markedCoordinates.clear();\r\n }", "public void clearMarks( int numbNodes ){\r\n\t\t\r\n\t\tArrayList<Node> traversal = new ArrayList<Node>();\r\n\t\ttraversal.add( root );\r\n\t\tNode temp;\r\n\t\t\r\n\t\tfor (int i = 0; i < numbNodes; i++){\r\n\t\t\ttemp = traversal.get( i );\r\n\t\t\tint numbTempChildren = temp.getNumbChildren();\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < numbTempChildren; j++){\r\n\t\t\t\ttraversal.add( temp.getChild( j ));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(traversal.size() == numbNodes){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\twhile (!(traversal.isEmpty())){\r\n\t\t\t(traversal.remove(0)).clearMark();\t\t\t\r\n\t\t}\r\n\t}", "private void unmarkBucketEdges(){\n for (Edge e : this.edgeBucket){\n e.setProperty(\"mark\", \"unmarked\");\n }\n }", "public void eraseAll() {\n for (Line l : myLines) {\n root.getChildren().remove(l);\n }\n }", "public abstract void unselectAllNodes();", "final void setRemove(){\n getDocument().removeSpan(this);\n for (T child: this){\n if (child instanceof SpanBranch) ((SpanBranch)child).setRemove();\n }\n }", "public void clearMark()\n {\n mark = false;\n }", "public void unsetMark() {\n mark = -2;\n }", "protected void unmark() {\n unmark(0);\n }", "public void clearHitMarks()\r\n\t{\r\n\t\tfor (HitMark hitMark : hitMarks)\r\n\t\t{\r\n\t\t\tdeletionQueue.add(hitMark);\r\n\t\t}\r\n\t}", "private void cleanGraph() {\n\n for (Node[] row : mapper.graphPlane) {\n for (Node node : row) {\n node.setVisited(false);\n node.setPrevious(null);\n }\n }\n\n }", "void resetToMark();", "public void clearAllRemoved() {\r\n\t\t\r\n\t\troot=clearAllRemoved(root);\r\n\t\t\r\n\t}", "public void removeLeafFamsD(){\n //removes family's with no children\n for(int i = 0; i < fLevels.keySet().size(); i++){\n ArrayList<FamilyNode> toBeRemoved = new ArrayList<>();\n for(FamilyNode fam : fLevels.get(i)){\n if(fam.getOut().isEmpty()){\n toBeRemoved.add(fam);\n }\n }\n\n for(FamilyNode fam : toBeRemoved){\n fLevels.get(i).remove(fam);\n }\n }\n }", "public void removeAllEdges() {\n }", "public void clearMarker() {\n\t\tthis.marker.detachAllChildren();\n\t}", "void cleanTree();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Scaled Watts Generated:
public int getScaledWattsGenerated(int scale) { return (int)(wattsGenerated * scale / wattGeneration); }
[ "public int getConsuptiomKilowatts(){\n\treturn consuptiomKilowatts;\n}", "float getW();", "public int calStrikingPower() {\n // System.out.println(playerId+strike);\n return effectiveAbilities.getStrength() + randomGen.random1To10();\n }", "int getLaserSwordPower();", "public int getWounds(){\n\t\treturn wounds;\n\t}", "public int getCurrentBulbWatts() {\n\t\treturn myCurrentBulbWatts;\n\t}", "public double getW() {\n\t\treturn w;\n\t}", "public java.lang.Integer getW() {\n return w;\n }", "int getStrength();", "public int w()\r\n/* 189: */ {\r\n/* 190:219 */ return 160;\r\n/* 191: */ }", "public int getKiloWatts(){\n\t\treturn kiloWatts;\n\t}", "double getMolecularWeight();", "public java.lang.Integer getW() {\n return w;\n }", "float getHotwordPower();", "double getWeight();", "java.lang.String getTotalWeight();", "public static double wattsToKiloWatts(double num) { return (num/Math.pow(10,3)); }", "public float getW() {\n\t\treturn w;\n\t}", "int getStartWeight();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log event with provided eventName and parameters and indicator this is a timed event. Parameters are pairs of (String, String) value. This method uses tracker given in onCreate method. End this event with endTimedEvent method.
public static void logEvent(String eventName, Map<String, Object> parameters, boolean timed) { if (parameters == null) { parameters = new HashMap<String, Object>(); } ADIN.$().tracker.save(eventName, parameters, timed); }
[ "public static void logEvent(String eventName, Map<String, Object> parameters) {\n\t\tADIN.$().tracker.save(eventName, parameters, false);\n\t}", "public static void logEvent(String eventName) {\n\t\tADIN.$().tracker.save(eventName, new HashMap<String, Object>(), false);\n\t}", "public static void recordMetricEvent(String eventId, String arg1) {\n\n seTimeStamps();\n\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n metricsLogger.info(MessageCodes.RULE_AUDIT_END_INFO, serviceName, arg1);\n\n }", "public void time(String event){ }", "public void timEventReceived(TimEvent event);", "void logEvent(Event event);", "public static void recordMetricEvent(UUID eventId, String arg1) {\n\n if (eventId == null) {\n return;\n }\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n MDC.put(MDC_KEY_REQUEST_ID, eventId.toString());\n metricsLogger.info(MessageCodes.RULE_AUDIT_END_INFO, serviceName, arg1);\n }", "@Override\n public void onEvent(String eventName, HashMap dataFromHansel) {\n if (\"hansel_nudge_event\".equals(eventName)) {\n FirebaseAnalyticsHelper.logEvent(this, \"hansel_nudge_event\", dataFromHansel);\n }\n }", "public abstract void track(String event, Map<String, Object> properties);", "public static void recordMetricEvent(String eventId, String className, String arg1) {\n\n seTimeStamps();\n\n MDC.put(classNameProp, className);\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n metricsLogger.info(MessageCodes.RULE_AUDIT_END_INFO, serviceName, arg1);\n }", "@Override\n public void trackEvent(@NotNull String eventCategory,\n @NotNull String eventAction,\n @Nullable String eventLabel,\n @Nullable Integer eventValue) {\n\n // don't send if we're not android studio\n if (!AndroidStudioSpecificInitializer.isAndroidStudio()) {\n return;\n }\n\n if (!StatisticsUploadAssistant.isSendAllowed()) {\n return;\n }\n\n List<NameValuePair> postData = Lists.newArrayList(analyticsBaseData);\n\n postData.add(new BasicNameValuePair(\"ec\", eventCategory));\n postData.add(new BasicNameValuePair(\"ea\", eventAction));\n if(!StringUtil.isEmpty(eventLabel)) {\n postData.add(new BasicNameValuePair(\"el\", eventLabel));\n }\n if(eventValue != null) {\n if(eventValue < 0) {\n LOG.debug(\"Attempting to send negative event value to the analytics server\");\n }\n postData.add(new BasicNameValuePair(\"ev\", eventValue.toString()));\n }\n sendPing(postData);\n }", "public void onEvent(int eventType, Bundle params)\n {\n appendLog(\"onEvent \" + eventType);\n }", "public abstract void logTraceTime(File file, String description);", "@Override\n public void sendEvent(String action, String label) {\n Log.d(\"Analytics\", \"action: \" + action + \", label: \" + label);\n }", "private void logPlayback(@NonNls String eventName) {\n String message;\n switch (QLog.getLogLevel()) {\n case NONE:\n // We can go through to the next statement because the QLog will ignore the method call when the log\n // level is NONE.\n\n case PLAYER:\n // Don't log anything in the Q for PLAYER log level.\n break;\n\n case BASIC:\n message = eventName + \" :: Track: %s\";\n message = String.format(message, current.title);\n\n QLog.v(this.getClass().getSimpleName(), message);\n break;\n\n case Q:\n case FULL:\n // Don't print the whole image Data array\n String data = current.imageData != null ? \"Yes\" : \"No\";\n message = eventName + \" :: \" +\n \"Track: %s Artist: %s URI: %s Image: %s Image Data: %s State: %s Index: %d\";\n message = String.format(message, current.title, current.artist, current.uri, current.imagePath, data,\n state, index);\n\n QLog.v(this.getClass().getSimpleName(), message);\n break;\n }\n }", "void notifyTrace(RecorderTraceEvent event);", "protected abstract void onTimerEvent();", "public abstract void record(long elapsed);", "@Override\n public void logEvent(final String name) {\n if (name == null || !Utils.validateEventName(name))\n throw new IllegalArgumentException(\"name is null or invalid\");\n\n nativeLogEventName(m_nativePtr, name);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funkcja sprawdza czy zdobyto bonus
public void sprawdzBonusy() { if(aktualnyNumerSciezki != -1) { pojazd.sprawdzBonus(droga.get(aktualnyNumerSciezki)); wyswietleniePunktow.setText("" + pojazd.pobierzPunkty()); } }
[ "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "private void ustawienie_bonusu(String bonus)\n {\n switch (bonus)\n {\n case \"+10 naboi\":\n liczba_naboi+=10;\n break;\n case \"+zycie\":\n liczba_zyc+=1;\n break;\n case \"-zycie\":\n liczba_zyc-=1;\n break;\n case \"+wieksze pilki\":\n rozmiar_pilki+=1;\n break;\n case \"+5 naboi\":\n liczba_naboi+=5;\n case \"+40 punktow\":\n liczba_punktow+=40;\n break;\n case \"+duze pilki\":\n break;\n }\n }", "int getBonusMoney();", "public abstract double bonus();", "public double getBonus(){\r\n return bonus;\r\n }", "double getBonus() {\n\t\treturn super.getSalario()*0.05+ 5000;\n\t}", "int getBonusExp();", "public int getBonus() {\r\n return bonus;\r\n }", "float getBonusExp();", "public abstract int getBonus();", "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public int bonus() {\n\t\tint b = 0;\n\t\tif ((this.getLangage()).equals(\"Java\")) {\n\t\t\tb = 10;\n\t\t}\n\t\tb = b + (this.mentees.size()) * 5;\n\t\treturn b;\n\t}", "public double getBonus() {\n return bonus;\n }", "@Override\n protected int getBonusPoints() {\n return leadership + experience;\n }", "public long getBonusAmount() {\r\n return bonusAmount;\r\n }", "public void setBonus(Bonus bonus)\n {\n this.bonus = bonus;\n }", "int getSkillChangeBalloonVRate();", "public int getBonusPracLevel();", "public void setBonus(){\n\tif(this.SSNC == 0){\n\t\t\n\t\tthis.Bonus = 1;\n\t}\n\telse{\n\t\tthis.Bonus = 0;\n\t}\n\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the measure equivalent to this measure but stated in the specified unit.
public Measure<Number,Q> to(Unit<Q> unit) { if (unit == this.unit || unit.equals(this.unit)) { return this; } ELContext elctx = ELEngine.getCurrentELContext(); UnitConverter cvtr = this.unit.getConverterTo(unit); if (cvtr instanceof RationalConverter) { RationalConverter factor = (RationalConverter)cvtr; long dividend = factor.getDividend(); long divisor = factor.getDivisor(); Object result = __div__(elctx, __mul__(elctx, value, dividend), divisor); return new NumberMeasure<Q>((Number)result, unit); } else if (cvtr.isLinear()) { double factor = cvtr.convert(1.0); Object result = __mul__(elctx, value, factor); return new NumberMeasure<Q>((Number)result, unit); } else if (cvtr instanceof AddConverter) { double offset = ((AddConverter)cvtr).getOffset(); Object result = __add__(elctx, value, offset); return new NumberMeasure<Q>((Number)result, unit); } else { return new NumberMeasure<Q>(cvtr.convert(value.doubleValue()), unit); } }
[ "public String getMeasureUnit() {\n return measureUnit;\n }", "java.lang.String getUnitOfMeasure();", "public String unit() {\n return this.unit;\n }", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "public String getUnitOfMeasure() {\n return this.unitOfMeasure;\n }", "String getUnit();", "@Override\n public Measure<Rational,Q> to(Unit<Q> unit) {\n if (unit == this.unit || unit.equals(this.unit)) {\n return this;\n }\n\n UnitConverter cvtr = this.unit.getConverterTo(unit);\n if (cvtr instanceof RationalConverter) {\n RationalConverter factor = (RationalConverter)cvtr;\n long dividend = factor.getDividend();\n long divisor = factor.getDivisor();\n Rational result = value.multiply(Rational.make(dividend, divisor));\n return new RationalMeasure<Q>(result, unit);\n } else if (cvtr.isLinear()) {\n Rational factor = Rational.valueOf(cvtr.convert(1.0));\n Rational result = value.multiply(factor);\n return new RationalMeasure<Q>(result, unit);\n } else if (cvtr instanceof AddConverter) {\n Rational offset = Rational.valueOf(((AddConverter)cvtr).getOffset());\n Rational result = value.add(offset);\n return new RationalMeasure<Q>(result, unit);\n } else {\n Rational result = Rational.valueOf(cvtr.convert(value.doubleValue()));\n return new RationalMeasure<Q>(result, unit);\n }\n }", "public String getMeasuredUnitId() {\n return this.measuredUnitId;\n }", "public String getUnitOfMeasure() {\n\t\treturn this.unitOfMeasure;\n\t}", "public String getUnit() {\n\t\treturn unit;\n\t}", "public String getUnitOfMeasure() {\n return (String) getAttributeInternal(UNITOFMEASURE);\n }", "public String unitOfMeasure() {\n return this.innerProperties() == null ? null : this.innerProperties().unitOfMeasure();\n }", "DefinedUnitType getDefinedUnit();", "public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}", "public String getUnit() {\r\n\r\n return data.getUnit();\r\n\r\n }", "@Override\n public Measure<Decimal,Q> to(Unit<Q> unit) {\n if (unit == this.unit || unit.equals(this.unit)) {\n return this;\n }\n\n UnitConverter cvtr = this.unit.getConverterTo(unit);\n if (cvtr instanceof RationalConverter) {\n RationalConverter factor = (RationalConverter)cvtr;\n Decimal dividend = Decimal.valueOf(factor.getDividend());\n Decimal divisor = Decimal.valueOf(factor.getDivisor());\n Decimal result = value.multiply(dividend).divide(divisor);\n return new DecimalMeasure<Q>(result, unit);\n } else if (cvtr.isLinear()) {\n Decimal factor = Decimal.valueOf(cvtr.convert(1.0));\n Decimal result = value.multiply(factor);\n return new DecimalMeasure<Q>(result, unit);\n } else if (cvtr instanceof AddConverter) {\n Decimal offset = Decimal.valueOf(((AddConverter)cvtr).getOffset());\n Decimal result = value.add(offset);\n return new DecimalMeasure<Q>(result, unit);\n } else {\n Decimal result = Decimal.valueOf(cvtr.convert(value.doubleValue()));\n return new DecimalMeasure(result, unit);\n }\n }", "public java.lang.String getMeasure() {\n return measure;\n }", "public String getPhysicalUnit()\r\n {\r\n return pUnit;\r\n }", "Unit getUnit();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the specified service Endpoint Policies in a specified resource group.
ServiceEndpointPolicy getById(String id);
[ "ServiceEndpointPolicy getByResourceGroup(String resourceGroupName, String serviceEndpointPolicyName);", "PagedIterable<ServiceEndpointPolicy> listByResourceGroup(String resourceGroupName);", "PagedIterable<ServiceEndpointPolicy> listByResourceGroup(String resourceGroupName, Context context);", "SecurityPoliciesClient getSecurityPolicies();", "PoliciesClient getPolicies();", "PolicyFragmentContract get(String resourceGroupName, String serviceName, String id);", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<ServiceEndpointPolicyDefinitionInner> listByResourceGroup(String resourceGroupName, String serviceEndpointPolicyName) {\n return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, serviceEndpointPolicyName));\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<ServiceEndpointPolicyDefinitionInner> listByResourceGroupAsync(String resourceGroupName, String serviceEndpointPolicyName) {\n return new PagedFlux<>(\n () -> listByResourceGroupSinglePageAsync(resourceGroupName, serviceEndpointPolicyName),\n nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));\n }", "PagedIterable<ServiceEndpointPolicy> list(Context context);", "SignaturesOverrides get(String resourceGroupName, String firewallPolicyName);", "AccessPoliciesClient getAccessPolicies();", "public PoliciesClient getPolicies() {\n return this.policies;\n }", "public interface ServiceEndpointPolicies {\n /**\n * Deletes the specified service endpoint policy.\n *\n * @param resourceGroupName The name of the resource group.\n * @param serviceEndpointPolicyName The name of the service endpoint policy.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void deleteByResourceGroup(String resourceGroupName, String serviceEndpointPolicyName);\n\n /**\n * Deletes the specified service endpoint policy.\n *\n * @param resourceGroupName The name of the resource group.\n * @param serviceEndpointPolicyName The name of the service endpoint policy.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context);\n\n /**\n * Gets the specified service Endpoint Policies in a specified resource group.\n *\n * @param resourceGroupName The name of the resource group.\n * @param serviceEndpointPolicyName The name of the service endpoint policy.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the specified service Endpoint Policies in a specified resource group.\n */\n ServiceEndpointPolicy getByResourceGroup(String resourceGroupName, String serviceEndpointPolicyName);\n\n /**\n * Gets the specified service Endpoint Policies in a specified resource group.\n *\n * @param resourceGroupName The name of the resource group.\n * @param serviceEndpointPolicyName The name of the service endpoint policy.\n * @param expand Expands referenced resources.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the specified service Endpoint Policies in a specified resource group.\n */\n Response<ServiceEndpointPolicy> getByResourceGroupWithResponse(\n String resourceGroupName, String serviceEndpointPolicyName, String expand, Context context);\n\n /**\n * Gets all the service endpoint policies in a subscription.\n *\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return all the service endpoint policies in a subscription.\n */\n PagedIterable<ServiceEndpointPolicy> list();\n\n /**\n * Gets all the service endpoint policies in a subscription.\n *\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return all the service endpoint policies in a subscription.\n */\n PagedIterable<ServiceEndpointPolicy> list(Context context);\n\n /**\n * Gets all service endpoint Policies in a resource group.\n *\n * @param resourceGroupName The name of the resource group.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return all service endpoint Policies in a resource group.\n */\n PagedIterable<ServiceEndpointPolicy> listByResourceGroup(String resourceGroupName);\n\n /**\n * Gets all service endpoint Policies in a resource group.\n *\n * @param resourceGroupName The name of the resource group.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return all service endpoint Policies in a resource group.\n */\n PagedIterable<ServiceEndpointPolicy> listByResourceGroup(String resourceGroupName, Context context);\n\n /**\n * Gets the specified service Endpoint Policies in a specified resource group.\n *\n * @param id the resource ID.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the specified service Endpoint Policies in a specified resource group.\n */\n ServiceEndpointPolicy getById(String id);\n\n /**\n * Gets the specified service Endpoint Policies in a specified resource group.\n *\n * @param id the resource ID.\n * @param expand Expands referenced resources.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the specified service Endpoint Policies in a specified resource group.\n */\n Response<ServiceEndpointPolicy> getByIdWithResponse(String id, String expand, Context context);\n\n /**\n * Deletes the specified service endpoint policy.\n *\n * @param id the resource ID.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void deleteById(String id);\n\n /**\n * Deletes the specified service endpoint policy.\n *\n * @param id the resource ID.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void deleteByIdWithResponse(String id, Context context);\n\n /**\n * Begins definition for a new ServiceEndpointPolicy resource.\n *\n * @param name resource name.\n * @return the first stage of the new ServiceEndpointPolicy definition.\n */\n ServiceEndpointPolicy.DefinitionStages.Blank define(String name);\n}", "public SigningPolicy[] getSigningPolicies() {\n\n if (this.policyDNMap == null) {\n return null;\n }\n\n Collection values = this.policyDNMap.values();\n SigningPolicy[] policies = new SigningPolicy[values.size()];\n Iterator iterator = values.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n policies[i++] = (SigningPolicy)iterator.next();\n }\n return policies;\n }", "Collection<PolicyDefinitionDescription> getPolicyDefinitions(QName serviceProviderName);", "public SecurityPoliciesClient getSecurityPolicies() {\n return this.securityPolicies;\n }", "EndpointReferenceType[] getServices()\r\n throws ResourcePropertyRetrievalException, MalformedURIException;", "java.util.List<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> \n getAuthorizationPoliciesOrBuilderList();", "java.util.List<com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> \n getAuthorizationPoliciesList();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the list of publications in the conference corresponding to the filters
public List<PublicationMO> getPublicationsByFilters(List<PublicationMO> publicationList, Filters[] filters);
[ "public List<PublicationMO> getPublications(int conferenceId);", "List<Publisher> getAllPublishers();", "public ArrayList<Publication> getPublicationsVisibles(Utilisateur utilisateur) throws RemoteException;", "public List<PublicationNew> readAllPublications();", "public Collection findPublicPresentations(String siteId);", "@ApiModelProperty(example = \"null\", value = \"Publications supporting association, extracted from evidence graph\")\n public List<Publication> getPublications() {\n return publications;\n }", "public List<ConferenceMO> getAllConferences();", "public List<Conference> getConference() {\n\t\tCollection<Conference> result = conferences.values();\n\t\tArrayList<Conference> res = new ArrayList<Conference>();\n\t\tres.addAll(result);\n\t\treturn res;\n\t}", "public List<Publication> userPublications() throws UnauthorizedAccessException;", "public ArrayList<Publication> getPublications(Utilisateur utilisateur) throws RemoteException;", "public List<Conference> getConferences() {\r\n\t\treturn new ArrayList<Conference>(conferences);\r\n\t}", "@Internal\n public ListProperty<Publication> getPublications() {\n return publications;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.PublicationList getPublicationList();", "@Override\n @Transactional(readOnly = true)\n public List<ConferenceDTO> findAll() {\n log.debug(\"Request to get all Conferences\");\n return conferenceRepository.findAll().stream()\n .map(conferenceMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Conference> getAuthorConferenceServed(int authorId) throws SQLException;", "public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);", "public List<Publisher> getAllPubs() {\r\n\t\tList<Publisher> pubList = null;\r\n\t\t\r\n\t\tString sql = \"SELECT publisherId, publisherName, publisherAddress, publisherPhone \"\r\n\t\t\t\t+ \"FROM tbl_publisher\";\r\n\t\t\r\n\t\ttry (Connection con = getCon();\r\n\t\t\t\tPreparedStatement ps = con.prepareStatement(sql)){\r\n\t\t\t\r\n ResultSet rs = ps.executeQuery(); \r\n\r\n \tpubList = new ArrayList<Publisher>();\r\n \t\r\n while (rs.next()) {\r\n \tPublisher pub = new Publisher();\r\n \t\r\n \tpub.setPublisherId(rs.getInt(\"publisherId\"));\r\n \tpub.setPublisherName(rs.getString(\"publisherName\"));\r\n \tpub.setPublisherAddress(rs.getString(\"publisherAddress\"));\r\n \tpub.setPublisherPhone(rs.getString(\"publisherPhone\"));\r\n pubList.add(pub);\r\n }\r\n } catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }\r\n\t\t\r\n\t\treturn pubList;\r\n\t}", "List<Sample> retrieveAllPublicSamples();", "public Vector<String> getConferenceRooms() {\n return conferenceRooms;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new transmission
void create(Transmission transmission);
[ "public static TransactionID createNewRFC3489TransactionID() {\n TransactionID tid = new TransactionID(true);\n random.nextBytes(tid.transactionID);\n return tid;\n }", "RteSendImplementation createRteSendImplementation();", "public static TransactionID createNewTransactionID() {\n TransactionID tid = new TransactionID();\n random.nextBytes(tid.transactionID);\n return tid;\n }", "public TransactionRequest createTransaction() {\n\n switch (getVersion()) {\n case v202:\n return new Transaction202(serverURL.toString(),getClientSecurity());\n default:\n throw new IllegalArgumentException(\"Version was not defined\");\n }\n }", "SendInteraction createSendInteraction();", "Transaction newTransaction(String type, String name);", "@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 crearSentencia()\n\t{\n\t\ttry {\n\t\t\tstm = connect.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "Outgoing createOutgoing();", "public Packet createPacket(int recipientID);", "TransportStep createTransportStep();", "Communication createCommunication();", "@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 void startTransmission()\n\t\t\t{\n\t\t\t\tsend(\"<?xml version=\\\"1.0\\\" ?><transmission>\", false);\t \n\t\t\t}", "SendAction createSendAction();", "private PacketContainer newCreatePacket() {\n PacketContainer packet = newUpdatePacket();\n\n // set mode - byte\n packet.getIntegers().write(GTEQ_1_13 ? 0 : 1, UpdateType.CREATE.getCode());\n\n // add player info - array of String(40)\n List<String> players = new ArrayList<>(getPlayers());\n\n // set players - ProtocolLib handles setting 'Entity Count'\n packet.getSpecificModifier(Collection.class).write(0, players);\n \n return packet;\n }", "RequestType createRequestType();", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "public void createTransaction(Transaction trans);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructors Create a detached StructureForUserRecord
public StructureForUserRecord() { super(StructureForUser.STRUCTURE_FOR_USER); }
[ "public StructureForUserRecord(String id, String userId, Integer structId, Timestamp lastRetrieved, Integer xcoord, Integer ycoord, Timestamp purchaseTime, Byte isComplete, String orientation, Byte fbInviteStructLvl) {\n\t\tsuper(StructureForUser.STRUCTURE_FOR_USER);\n\n\t\tsetValue(0, id);\n\t\tsetValue(1, userId);\n\t\tsetValue(2, structId);\n\t\tsetValue(3, lastRetrieved);\n\t\tsetValue(4, xcoord);\n\t\tsetValue(5, ycoord);\n\t\tsetValue(6, purchaseTime);\n\t\tsetValue(7, isComplete);\n\t\tsetValue(8, orientation);\n\t\tsetValue(9, fbInviteStructLvl);\n\t}", "public UserRecord() {\n super(User.USER);\n }", "public StudentRecord() {}", "public ChatUserRecord() {\n super(ChatUser.CHAT_USER);\n }", "private UserRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private UserDetail(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private User buildNewUser() {\n return new User(\n binding.firstName,\n binding.lastName,\n binding.email,\n new Date().getTime()\n );\n }", "public User() {\n this.firstName = \"John\";\n this.lastName = \"Doe\";\n this.position = new Position();\n this.birthDay = DateFromString(\"01/01/2000\");\n }", "public UserPhotoRecord() {\n super(UserPhoto.USER_PHOTO);\n }", "public UserData() {\r\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "public EmployeeRecord(){}", "public UsertestRecord() {\n super(Usertest.USERTEST);\n }", "private User(Builder builder) {\n this.uid = builder.uid;\n this.name = builder.name;\n this.preGym = builder.preGym;\n this.preFacility = builder.preFacility;\n this.googleID = builder.googleID;\n }", "public UserGroupMemberRecord() {\n super(UserGroupMember.USER_GROUP_MEMBER);\n }", "public Record() {\n\t}", "public User() {\n this.inv = new Inventory();\n this.fl = new FriendList();\n this.tradesList = new TradesList();\n this.tradeCount = 0;\n this.downloadsEnabled = true;\n }", "private User createUserFromData( Map<String, Object> element ) {\r\n\t\tint user_id = ((BigDecimal) element.get(\"USER_ID\")).intValue();\r\n\t\tString username = (String) element.get(\"USERNAME\");\r\n\t\tString password = (String) element.get(\"PASSWORD\");\r\n\t\tString role = (String) element.get(\"ROLE\");\r\n\t\tUser u = new User(user_id,username, password, role);\r\n\t\treturn u;\r\n\t}", "@Override\n public SimpleExampleUserModel createInstance(){\n return new SimpleExampleUserModel();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a layer to display the tactical symbol. We add just one tactical symbol, but multiple tactical symbols and tactical graphics may be combined on the same RenderableLayer.
protected void addTacticalSymbols() { RenderableLayer layer = new RenderableLayer(); layer.setName("Tactical Symbols"); // Create a tactical symbol for the MIL-STD-2525 symbology set. The symbol identifier specifies a // MIL-STD-2525 friendly Special Operations Forces Drone Aircraft. The position places the tactical symbol // at 3km above mean sea level. TacticalSymbol symbol = new MilStd2525TacticalSymbol("SFAPMFQM------A", Position.fromDegrees(34.4934, -117.6003, 3000)); symbol.setValue(AVKey.DISPLAY_NAME, "MIL-STD-2525 Tactical Symbol"); // Tool tip text. layer.addRenderable(symbol); // Add the symbol layer to the World Wind model. this.getWwd().getModel().getLayers().add(layer); // Update the layer panel to display the symbol layer. this.getLayerPanel().update(this.getWwd()); }
[ "protected TacticalGraphicSymbol createSymbol(String sidc)\n {\n TacticalGraphicSymbol symbol = new TacticalGraphicSymbol(sidc);\n symbol.setAttributes(this.activeSymbolAttributes);\n symbol.setDelegateOwner(this);\n return symbol;\n }", "Layer createLayer();", "public Button.Layer addLayer(Symbol symbol, Transform matrix, AlphaTransform cxform, int depth, boolean usedForHitArea, boolean usedForUp, boolean usedForDown, boolean usedForOver) {\n Layer layer = new Layer(symbol, matrix, cxform, depth, usedForHitArea, usedForUp, usedForDown, usedForOver);\n\n layers.add(layer);\n return layer;\n }", "NamedLayer createNamedLayer();", "public void createTexture() {\r\n \tif (tempData == null) return;\r\n \ttf.clearMark();\r\n \t\r\n \t// The dimension of the texture is bigger than the element to\r\n \t// account for text labels\r\n \ttf.width = ((float)tempData.length) * (float)this.interval;\r\n \ttf.height = (float)this.height + 30;\r\n \t\r\n \t// Add the value labels (total amounts for each time period)\r\n \tfor (int i=0; i < tempData.length; i++) {\r\n \t\tfloat v = (float)(tempData[i].value*height/tempMaxValue);\r\n \t\tString s = DCUtil.abbreviation((int)tempData[i].value);\r\n \t //tf.addMark( (int)tempData[i].value+\"\", labelColour, labelFont, (float)(3+(i*interval)), v+13);\t\r\n \t tf.addMark( s, labelColour, labelFont, (float)(3+(i*interval)), v+15);\t\r\n \t}\r\n \t\r\n \t// Add the key labels (time period names)\r\n \tfor (int i=0; i < tempData.length; i++) {\r\n \t String s = tempData[i].key; \r\n \t if (keyTranslation != null && keyTranslation.get(tempData[i].key) != null) {\r\n s = keyTranslation.get( tempData[i].key );\r\n \t }\r\n \t tf.addMark( s, labelColour, labelFont, (float)(10+(i*interval)), 3); \r\n \t}\r\n }", "void addLayer(String layerName);", "abstract HardwareLayer createHardwareLayer(boolean isOpaque);", "public GraphicLayer() {\r\n super();\r\n }", "private void createGraphics() {\n\n Graphic graphic;\n // create spatial reference for the points\n SpatialReference spatialReference = SpatialReference.create(4326);\n\n // create points to place markers\n List<Point> points = new ArrayList<>();\n points.add(new Point(-2.641, 56.077, spatialReference));\n points.add(new Point(-2.669, 56.058, spatialReference));\n points.add(new Point(-2.718, 56.060, spatialReference));\n points.add(new Point(-2.720, 56.073, spatialReference));\n\n // create simple marker symbols for the points\n markers = new ArrayList<>();\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, RED, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.TRIANGLE, PURPLE, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CROSS, GREEN, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.DIAMOND, BLUE, 10));\n\n // create a list of names for graphics\n List<String> names = new ArrayList<>();\n names.add(\"LAMB\");\n names.add(\"CANTY BAY\");\n names.add(\"NORTH BERWICK\");\n names.add(\"FIDRA\");\n\n // create a list of descriptions for graphics\n List<String> descriptions = new ArrayList<>();\n descriptions.add(\"Just opposite of Bass Rock.\");\n descriptions.add(\"100m long and 50m wide.\");\n descriptions.add(\"Lighthouse in northern section.\");\n descriptions.add(\"Also known as Barley Farmstead.\");\n\n // create four graphics with attributes and add to graphics overlay\n for (int i = 0; i < 4; i++) {\n graphic = new Graphic(points.get(i), markers.get(i));\n graphic.getAttributes().put(\"NAME\", names.get(i));\n graphic.getAttributes().put(\"DESCRIPTION\", descriptions.get(i));\n graphicsOverlay.getGraphics().add(graphic);\n }\n }", "public SymbolLayer getSymbolLayer() {\n return _symbolLayer;\n }", "abstract HardwareLayer createHardwareLayer(int width, int height, boolean isOpaque);", "public static Layer newInstance(Technology tech, String name, EGraphics graphics)\n \t{\n if (tech == null) throw new NullPointerException();\n int transparent = graphics.getTransparentLayer();\n if (transparent != 0) {\n Color colorFromMap = tech.getColorMap()[1 << (transparent - 1)];\n if ((colorFromMap.getRGB() & 0xFFFFFF) != graphics.getRGB())\n throw new IllegalArgumentException();\n }\n \t\tLayer layer = new Layer(name, tech, graphics);\n \t\tgraphics.setLayer(layer);\n \t\ttech.addLayer(layer);\n \t\treturn layer;\n \t}", "private JComponent makeTurtleDisplay() {\n \n \t\tJPanel turtleInfoPanel = new JPanel();\n \t\tturtleInfoPanel.setLayout(new BorderLayout());\n \n \t\tJPanel canvasPanel = new JPanel();\n \t\tcanvasPanel.add(myCanvas);\n \t\tmyCanvas.setBorder(BorderFactory.createLineBorder(Color.black));\n \t\tturtleInfoPanel.add(canvasPanel, BorderLayout.CENTER);\n \n \t\tJPanel state = new JPanel();\n \n \t\tmyTurtlePositionLabel = new JLabel();\n \t\tmyTurtleHeadingLabel = new JLabel();\n \t\tstate.add(myTurtlePositionLabel);\n \t\tstate.add(myTurtleHeadingLabel);\n \t\tupdateHeadingLabel(myDataSource.getTurtleHeading());\n \t\tupdatePositionLabel(myDataSource.getTurtlePosition());\n \t\tstate.add(makeChangeBackgroundButton());\n \t\tstate.add(makeToggleHighlight());\n \t\tstate.add(makeToggleGridButton());\n \t\tturtleInfoPanel.add(state, BorderLayout.SOUTH);\n \n \t\treturn turtleInfoPanel;\n \n \t}", "public ImageLayer (Tile tile) {\n setTile(tile);\n }", "String layerGroupInsertLayer();", "public Canvas newLayer() {\n Canvas canvas = new Canvas( width, height );\n layers.add( canvas );\n activeLayer = canvas;\n return canvas;\n }", "public TransparentROILayer() {\r\n\t\tsuper();\r\n\t}", "public static native Layer createLayer() /*-{\n\t return new $wnd.Kinetic.Layer();\n\t}-*/;", "protected void applyAttributesToSymbol(TacticalGraphicAttributes graphicAttributes,\n TacticalSymbolAttributes symbolAttributes)\n {\n // Line and area graphics distinguish between interior and outline opacity. Tactical symbols only support one\n // opacity, so use the interior opacity.\n Double value = graphicAttributes.getInteriorOpacity();\n if (value != null)\n {\n symbolAttributes.setOpacity(value);\n }\n\n value = graphicAttributes.getScale();\n if (value != null)\n {\n symbolAttributes.setScale(value);\n }\n\n Material material = graphicAttributes.getInteriorMaterial();\n symbolAttributes.setInteriorMaterial(material);\n\n Font font = graphicAttributes.getTextModifierFont();\n if (font != null)\n {\n symbolAttributes.setTextModifierFont(font);\n }\n\n material = graphicAttributes.getTextModifierMaterial();\n if (material != null)\n {\n symbolAttributes.setTextModifierMaterial(material);\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calling this will make a new window for resetting the master password
private void resetMasterPassword() { new ResetMasterPassword(this); }
[ "private void changePasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_changePasswordActionPerformed\n new ResetPasswordFrame(db, agentID, loginEntityType).setVisible(true);\n }", "public void onForgotPassword(ActionEvent event) throws IOException {\r\n\t\tClientMain.changeScene(\"Scene_ResetPW.fxml\");\r\n\t}", "public LoginPage resetPasswordGmail(String email) {\r\n\t\tArrayList<String> tabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(tabs.get(1));\r\n\r\n\t\tresetRailwayAccount(email);\r\n\t\tArrayList<String> newtabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(newtabs.get(3));\r\n\t\treturn new LoginPage();\r\n\t\t/*\r\n\t\t * this.clickLinkEmail(_resetPWSubject, email); // Switch tab chrome ---------\r\n\t\t * ArrayList<String> arr = new\r\n\t\t * ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\t * Constant.WEBDRIVER.switchTo().window(arr.get(2)); // End Switch tab chrome\r\n\t\t * ---------\r\n\t\t * \r\n\t\t * \r\n\t\t * closeWindow(); switchWindow();\r\n\t\t */\r\n\r\n\t}", "private static void changePasswordPage() {\n System.out.println(\"\");\n System.out.println(\"===================\");\n System.out.println(\"* CHANGE PASSWORD *\");\n System.out.println(\"===================\");\n memUI.changePassword(sessionId, reader);\n memberPage();\n }", "public ResetPasswordWindow(DaoDelegatingContainer<User> userContainer, Object objectId) {\n super(\"Reset Password\");\n super.center();\n super.setModal(true);\n\n FormLayout mainLayout = new FormLayout();\n mainLayout.setSizeUndefined();\n mainLayout.setMargin(true);\n mainLayout.setSpacing(true);\n\n RandomString rs = new RandomString(10);\n\n TextField textField = new TextField(\"new Password\", rs.nextString());\n textField.setRequired(true);\n textField.addValidator(new StringLengthValidator(\"The Password is too short!\", 8, null, false));\n mainLayout.addComponent(textField);\n\n mainLayout.addComponent(new Button(\"Reset\", (event) -> {\n textField.validate();\n\n if (objectId instanceof User) {\n ((User) objectId).setPassword(PermissionService.hashPassword(textField.getValue()));\n userContainer.updateItem((User) objectId);\n\n EmailService.sendUserNewPasswordEmail(textField.getValue(), (User) objectId);\n super.close();\n }\n }));\n\n mainLayout.addComponent(new Button(\"Cancel\", (event) -> {\n\n super.close();\n }));\n super.setContent(mainLayout);\n }", "public ChangePwd() {\n initComponents();\n //to centralize the form on screen\n this.setLocationRelativeTo(null);\n }", "private void resetPassword()\n {\n password = null;\n currentPasswdField.setText(\"\");\n currentPasswdField.requestFocusInWindow();\n okButton.setEnabled(false);\n }", "private void goToInitialWindow() {\n new InitialWindow(controller, visible);\n frmRegisterYourself.dispose();\n }", "public void showPasswordPrompt();", "void switchToNewWindow();", "public void changePassword(ActionEvent actionEvent) {\n darkPane.setVisible(true);\n darkPane.setDisable(false);\n changePasswordPane.setVisible(true);\n changePasswordPane.setDisable(false);\n }", "public static void switchToAdminWindow()\r\n\t{\r\n\t\tGenericMethods.switchToNewWindow(HMSAdmin.parentWindowID);\r\n\t\tadminWindowID = GenericMethods.driver.getWindowHandle();\r\n\t}", "private void jForgottenPasswordMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jForgottenPasswordMouseClicked\n new ForgottenPassword().setVisible(true);\n dispose();\n }", "private static void loginWindow() {\r\n\t\tloginFrame = new JFrame(\"Please login\");\r\n\t\tloginFrame.setLayout(new GridLayout(5, 1));\r\n\t\tloginFrame.setSize(400, 200);\r\n\t\theaderLabel.setText(\"Please enter username and password or register\");\r\n\t\tusernameField = new JTextField();\r\n\t\tpasswordField = new JPasswordField();\r\n\t\tJButton submitButton = new JButton(\"Login\");\r\n\t\tJButton registerButton = new JButton(\"Register new account\");\r\n\r\n\t\tsubmitButton.setActionCommand(\"login\");\r\n\t\tregisterButton.setActionCommand(\"register\");\r\n\r\n\t\tsubmitButton.addActionListener(new LoginClass());\r\n\t\tregisterButton.addActionListener(new LoginClass());\r\n\t\t// registerButton.addActionListener(new RegisterClass());\r\n\r\n\t\tloginFrame.add(headerLabel);\r\n\t\tloginFrame.add(usernameField);\r\n\t\tloginFrame.add(passwordField);\r\n\t\tloginFrame.add(submitButton);\r\n\t\tloginFrame.add(registerButton);\r\n\t\tloginFrame.setVisible(true);\r\n\t}", "public ChangePass() {\n initComponents();\n this.setTitle(\"Change Password\");\n this.setLocation(400, 300);\n }", "public void onSetPasswordButtonClick(View view) {\r\n\t\tshowDialog(PASSWORD_DIALOG_ID);\r\n\t}", "public void resetAndgoToLoginPanel(){\n\n int confirm = JOptionPane.showConfirmDialog(this, \"Czy na pewno ?\", \"Potwierdź\", JOptionPane.YES_NO_OPTION);\n if(confirm == 0){\n // czyszczebue list\n planetyDoZamrozenia.clear();\n myGameScrollablePanel.getMainPanelGame().removeAll();\n zbiorWszysktichJPanel.removeAll();\n password.clear();\n plentyUsunietezZGlownego.clear();\n isSamples = false;\n proba = 0 ;\n probaLabel.setText(\"\");\n\n resetPlanets();\n setPanel(1);\n }\n\n\n // reload();\n\n\n }", "public void displayUpdatePasswordDialog() {\n displayAvatar(WindowId.POPUP, AvatarId.DIALOG_PROFILE_UPDATE_PASSWORD);\n }", "public void clickchangepassword() {\r\n\t\t\tthis.chgpwd.click();\r\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the standardFormattingIndicator value for this TCRMOrganizationNameBObjType.
public void setStandardFormattingIndicator(java.lang.String standardFormattingIndicator) { this.standardFormattingIndicator = standardFormattingIndicator; }
[ "public java.lang.String getStandardFormattingIndicator() {\n return standardFormattingIndicator;\n }", "public void setStandard(String standard) {\n this.standard = standard == null ? null : standard.trim();\n }", "public void setStandard(Boolean standard) {\n this.standard = standard;\n }", "public void setStandardNum(String standardNum) {\n this.standardNum = standardNum == null ? null : standardNum.trim();\n }", "public void setStandardValue(String standardValue) {\n this.standardValue = standardValue == null ? null : standardValue.trim();\n }", "public void setStandardAmount(Double standardAmount) {\n this.standardAmount = standardAmount;\n }", "public void setStandardId(String standardId) {\n this.standardId = standardId;\n }", "public void setToStandardGroup() {\n this.standardGroup = true;\n }", "public void setInternationalStandardRecordingCode(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNATIONALSTANDARDRECORDINGCODE, value);\r\n\t}", "public Builder setStdNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000800;\n stdNo_ = value;\n onChanged();\n return this;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setDocumentStandard(java.lang.String value) {\n validate(fields()[9], value);\n this.documentStandard = value;\n fieldSetFlags()[9] = true;\n return this;\n }", "public final static void setStandardConversion(AbstractConversion newStandardConversion) {\n\t\tstandardConversion = newStandardConversion;\n\t}", "public void changeToStandard(){\n drawAttributeManager.toggleStandardView();\n getContentPane().setBackground(DrawAttribute.whiteblue);\n canvas.repaint();\n }", "public void set_standard_format () {\n\t\tf_friendly_format = false;\n\n\t\tmainshock_time = 0L;\n\t\tmainshock_mag = 0.0;\n\t\tmainshock_lat = 0.0;\n\t\tmainshock_lon = 0.0;\n\t\tmainshock_depth = 0.0;\n\n\t\treturn;\n\t}", "public AppRepresentationBuilder _representationStandard_(URI _representationStandard_) {\n this.appRepresentationImpl.setRepresentationStandard(_representationStandard_);\n return this;\n }", "public void setInternationalStandardRecordingCode( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNATIONALSTANDARDRECORDINGCODE, value);\r\n\t}", "public String getStandard() {\n return standard;\n }", "public void setStd(String std);", "public void setItIsAllegroStandard(int value) {\n this.itIsAllegroStandard = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unregisters a property scribe.
public void unregister(VCardPropertyScribe<? extends VCardProperty> scribe) { extendedByName.remove(scribe.getPropertyName().toUpperCase()); extendedByClass.remove(scribe.getPropertyClass()); extendedByQName.remove(scribe.getQName()); }
[ "public UnRegisterPropertyEventCommand unRegisterPropertyEventCommand() {\n return dispatchCommand(new UnRegisterPropertyEventCommand(getCameraRefInternal()));\n }", "void removeProperty(String name);", "public void removeProperty(String propertyName);", "Object removeProperty(String name);", "Object removeProperty(ExchangePropertyKey key);", "public TransformedServiceReference<S> removeProperty(String name);", "void unregister(Object subscriber);", "public void RemoveProperty(String propName) {}", "void unregisterResource(Resource resource);", "public void remove(final Class<? extends SuiProperty> property) {\n\t\tValidations.INPUT.notNull(property).exception(\"The property type may not be null.\");\n\t\tproperties.remove(property);\n\t\tif (property == IdProperty.class) {\n\t\t\tidProperty = null;\n\t\t}\n\t}", "void removePropertyListener(PropertyListener listener);", "public void removeProperty(TLProperty element);", "public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl);", "void removeProperty(String id);", "void graphRemoveProperty( int propertyKey );", "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "void unsubscribe();", "public Object removeProperty( String key );", "private void unloadSkinProperties() {\r\n if (currentSkinIO != null) {\r\n try {\r\n Observable oldProps = (Observable) properties.get(currentSkinIO.getSkinProperties());\r\n oldProps.deleteObserver(this);\r\n this.colorSet = null;\r\n } catch (IllegalArgumentException | IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n colorShower.showAsDisabled();\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if lOp is equal to rOp
public ResultValue equals(ResultValue lOp, ResultValue rOp) throws Exception { // Do string comparisons with strings and booleans if (lOp.type == SubClassif.STRING || lOp.type == SubClassif.DATE || lOp.type == SubClassif.BOOLEAN) { if (lOp.value.equals(rOp.value)) return new ResultValue(SubClassif.BOOLEAN, "T"); else return new ResultValue(SubClassif.BOOLEAN, "F"); } // Numeric comparisons else if (lOp.type == SubClassif.INTEGER || lOp.type == SubClassif.FLOAT) { Numeric nRop = new Numeric(this, rOp, rOp.value, "right operand"); Numeric nLop = new Numeric(this, lOp, lOp.value, "left operand"); // Integer comparison if (lOp.type == SubClassif.INTEGER) { if (nLop.integervalue == nRop.integervalue) return new ResultValue(SubClassif.BOOLEAN, "T"); else return new ResultValue(SubClassif.BOOLEAN, "F"); } // Double comparison else { if (nLop.doubleValue == nRop.doubleValue) return new ResultValue(SubClassif.BOOLEAN, "T"); else return new ResultValue(SubClassif.BOOLEAN, "F"); } } return null; // placeholder }
[ "public boolean equals(IOperation op);", "public ResultValue notEquals(ResultValue lOp, ResultValue rOp) throws Exception\r\n {\r\n // Do string comparisons with strings and booleans\r\n if (lOp.type == SubClassif.STRING || lOp.type == SubClassif.DATE || lOp.type == SubClassif.BOOLEAN)\r\n {\r\n if (!lOp.value.equals(rOp.value))\r\n return new ResultValue(SubClassif.BOOLEAN, \"T\");\r\n else\r\n return new ResultValue(SubClassif.BOOLEAN, \"F\");\r\n } \r\n // Numeric comparisons\r\n else if (lOp.type == SubClassif.INTEGER || lOp.type == SubClassif.FLOAT)\r\n {\r\n Numeric nRop = new Numeric(this, rOp, rOp.value, \"right operand\");\r\n Numeric nLop = new Numeric(this, lOp, lOp.value, \"left operand\");\r\n // Integer comparison\r\n if (lOp.type == SubClassif.INTEGER)\r\n {\r\n if (nLop.integervalue != nRop.integervalue)\r\n return new ResultValue(SubClassif.BOOLEAN, \"T\");\r\n else\r\n return new ResultValue(SubClassif.BOOLEAN, \"F\"); \r\n }\r\n // Double comparison\r\n else\r\n {\r\n if (nLop.doubleValue != nRop.doubleValue)\r\n return new ResultValue(SubClassif.BOOLEAN, \"T\");\r\n else\r\n return new ResultValue(SubClassif.BOOLEAN, \"F\"); \r\n }\r\n }\r\n return null; // placeholder\r\n }", "@Override\n public boolean equals(IOperation op) {\n if (!(op instanceof ResourceOperation)) {\n return false;\n }\n \n ResourceOperation rop = (ResourceOperation)op;\n return super.equals(rop) &&\n actionType == rop.getActionType() && target == rop.getTarget() &&\n StringComparator.isSame(ipath, rop.getIdenticalPath());\n }", "private boolean relOp() {\n\t\tif (!skipErrors(NonTerminal.relOp)) return false;\n\t\tif (firstSetContains(TokenType.EQ)) {\n\t\t\twrite(\"relOp -> 'eq'\");\n\t\t\tif (match(TokenType.EQ)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (firstSetContains(TokenType.NEQ)) {\n\t\t\twrite(\"relOp -> 'neq'\");\n\t\t\tif (match(TokenType.NEQ)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (firstSetContains(TokenType.LT)) {\n\t\t\twrite(\"relOp -> 'lt'\");\n\t\t\tif (match(TokenType.LT)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (firstSetContains(TokenType.GT)) {\n\t\t\twrite(\"relOp -> 'gt'\");\n\t\t\tif (match(TokenType.GT)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (firstSetContains(TokenType.LEQ)) {\n\t\t\twrite(\"relOp -> 'leq'\");\n\t\t\tif (match(TokenType.LEQ)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (firstSetContains(TokenType.GEQ)) {\n\t\t\twrite(\"relOp -> 'geq'\");\n\t\t\tif (match(TokenType.GEQ)) {\n\t\t\t\tstack.push(AST.makeNode(\"relOp\"));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isRelationalOperator(SqlASTNode op) {\n int type = op.getType();\n return (type == PantheraParser_PLSQLParser.EQUALS_OP\n || type == PantheraParser_PLSQLParser.NOT_EQUAL_OP\n || type == PantheraParser_PLSQLParser.LESS_THAN_OR_EQUALS_OP\n || type == PantheraParser_PLSQLParser.LESS_THAN_OP\n || type == PantheraParser_PLSQLParser.GREATER_THAN_OR_EQUALS_OP || type == PantheraParser_PLSQLParser.GREATER_THAN_OP);\n }", "public ResultValue lessOrEqual(ResultValue lOp, ResultValue rOp) throws Exception\r\n {\r\n // Booleans can only be compared in == and != operations \r\n if (lOp.type == SubClassif.BOOLEAN || rOp.type == SubClassif.BOOLEAN)\r\n throw new Exception(\"Unable to do <= operation on a boolean value\"); \r\n // set the result to false by default\r\n ResultValue res = new ResultValue(SubClassif.BOOLEAN, \"F\");\r\n // Handling string comparisons\r\n if (lOp.type == SubClassif.STRING || lOp.type == SubClassif.DATE || lOp.type == SubClassif.BOOLEAN)\r\n {\r\n if (lOp.value.compareTo(rOp.value) <= 0)\r\n res.value = \"T\";\r\n }\r\n // Handling numeric comparisons\r\n else\r\n {\r\n Numeric nRop = new Numeric(this, rOp, rOp.value, \"right operand\");\r\n Numeric nLop = new Numeric(this, lOp, lOp.value, \"left operand\");\r\n if (lOp.type == SubClassif.INTEGER && nLop.integervalue <= nRop.integervalue)\r\n res.value = \"T\";\r\n else if (lOp.type == SubClassif.FLOAT && nLop.doubleValue <= nRop.doubleValue)\r\n res.value = \"T\";\r\n }\r\n return res;\r\n }", "private static int Condition() {\r\n Operand x = Expr();\r\n Code.load(x);\r\n int op = Relop();\r\n Operand y = Expr();\r\n Code.load(y);\r\n if (!x.type.compatibleWith(y.type))\r\n error(\"type mismatch\");\r\n if (x.type.isRefType() && op != Code.eq && op != Code.ne)\r\n error(\"invalid compare\");\r\n return op;\r\n }", "default boolean compare(Operator op, ISqlObject other) {\n if (this instanceof ConstantSqlObject\n && other instanceof ConstantSqlObject\n && (op == Operator.EQ || op == Operator.NE)) {\n ConstantSqlObject lhs = (ConstantSqlObject) this;\n ConstantSqlObject rhs = (ConstantSqlObject) other;\n return (op == Operator.NE) ^ (lhs.value.equals(rhs.value));\n }\n if ((this instanceof FreshSqlObject) ^ (other instanceof FreshSqlObject)) {\n // fresh values are not equal to any other value\n if (op == Operator.EQ || op == Operator.NE) {\n return op == Operator.NE;\n }\n // queries should not depend on the values of fresh values\n throw new UnsupportedOperationException(\"queries should not depend on the values of fresh values\");\n }\n long lhs = this.intValue();\n long rhs = other.intValue();\n switch (op) {\n case EQ:\n return lhs == rhs;\n case NE:\n return lhs != rhs;\n case LT:\n return lhs < rhs;\n case LE:\n return lhs <= rhs;\n case GT:\n return lhs > rhs;\n case GE:\n return lhs >= rhs;\n default:\n throw new IllegalArgumentException(\"unknown enum value \" + op);\n }\n }", "public static boolean match(\n String fixedOp, String varOp, Parameter.Operator op, Parameter.ParameterDataType type) {\n // If fixedOp == null, varOp can match only if null and operator is EQ, or the opposite.\n if (fixedOp == null) {\n return (Parameter.Operator.EQ.equals(op) && varOp == null)\n || ((!Parameter.Operator.EQ.equals(op) || varOp == null)\n && (!Parameter.Operator.NE.equals(op) || varOp != null)\n && Parameter.Operator.NE.equals(op)\n && varOp != null);\n }\n // If varOp == null, fixedOp can match only if operator is NE (since fixedOp cannot be null).\n if (varOp == null) {\n return Parameter.Operator.NE.equals(op);\n }\n switch (type) {\n case NUMBER:\n // Neither varOp nor fixedOp can be NULL here.\n try {\n Long operandL = Long.valueOf(varOp);\n Long ppL = Long.valueOf(fixedOp);\n return (Parameter.Operator.EQ.equals(op) && ppL.longValue() == operandL.longValue())\n || (Parameter.Operator.NE.equals(op) && ppL.longValue() != operandL.longValue())\n || (Parameter.Operator.LT.equals(op) && ppL < operandL)\n || (Parameter.Operator.LE.equals(op) && ppL <= operandL)\n || (Parameter.Operator.GE.equals(op) && ppL >= operandL)\n || (Parameter.Operator.GT.equals(op) && ppL > operandL);\n } catch (NumberFormatException ignored) {\n }\n return false;\n case TEXT:\n if (Parameter.Operator.EQ.equals(op)) {\n if (varOp.contains(\"_\") || varOp.contains(\"%\")) {\n return matchWildcardString(fixedOp, varOp);\n }\n return fixedOp.equals(varOp);\n }\n if (Parameter.Operator.NE.equals(op)) {\n if (varOp.contains(\"_\") || varOp.contains(\"%\")) {\n return !matchWildcardString(fixedOp, varOp);\n }\n return !fixedOp.equalsIgnoreCase(varOp);\n }\n int compareInt = fixedOp.compareToIgnoreCase(varOp);\n return (Parameter.Operator.LT.equals(op) && compareInt < 0)\n || (Parameter.Operator.LE.equals(op) && compareInt <= 0)\n || (Parameter.Operator.GE.equals(op) && compareInt >= 0)\n || (Parameter.Operator.GT.equals(op) && compareInt > 0);\n default:\n return false;\n }\n }", "ArithmeticExpType1(Exp l, String op, Exp r){\n\t\tleftexp = l;\n\t\trightexp = r;\n\t\ttry{\n\t\t\tif(contains(op))\n\t\t\t\toperator = op;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4164:1: ( ( '==' ) | ( '!=' ) )\r\n int alt15=2;\r\n int LA15_0 = input.LA(1);\r\n\r\n if ( (LA15_0==46) ) {\r\n alt15=1;\r\n }\r\n else if ( (LA15_0==47) ) {\r\n alt15=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 15, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt15) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4165:1: ( '==' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4165:1: ( '==' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4166:1: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,46,FOLLOW_46_in_rule__OpEquality__Alternatives8951); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4173:6: ( '!=' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4173:6: ( '!=' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4174:1: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,47,FOLLOW_47_in_rule__OpEquality__Alternatives8971); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void operatorCheck(String op){\n if(op.equalsIgnoreCase(\"+\")){\n if(subtraction){\n operatorReset();\n replaceOperator(\"-\",\"+\");\n }\n else if(multiplication){\n operatorReset();\n replaceOperator(\"*\", \"+\");\n }\n else if(division){\n operatorReset();\n replaceOperator(\"/\", \"+\");\n }\n addition = true;\n }\n else if(op.equals(\"-\")){\n if(addition){\n operatorReset();\n replaceOperator(\"+\",\"-\"); \n }\n else if(multiplication){\n operatorReset();\n replaceOperator(\"*\", \"-\");\n }\n else if(division){\n operatorReset();\n replaceOperator(\"/\", \"-\");\n }\n subtraction = true;\n }\n else if(op.equals(\"*\")){\n if(addition){\n operatorReset();\n replaceOperator(\"+\",\"*\"); \n }\n else if(subtraction){\n operatorReset();\n replaceOperator(\"-\", \"*\");\n }\n else if(division){\n operatorReset();\n replaceOperator(\"/\", \"*\");\n }\n multiplication = true; \n }\n else if(op.equals(\"/\")){\n if(addition){\n operatorReset();\n replaceOperator(\"+\",\"/\"); \n }\n else if(subtraction){\n operatorReset();\n replaceOperator(\"-\", \"/\");\n }\n else if(multiplication){\n operatorReset();\n replaceOperator(\"*\", \"/\");\n }\n division = true; \n }\n }", "private static int Relop() { //TODO: refactor\r\n if(sym == eql) {\r\n scan();\r\n return Code.eq;\r\n } else if(sym == neq) {\r\n scan();\r\n return Code.ne;\r\n } else if(sym == gtr) {\r\n scan();\r\n return Code.gt;\r\n } else if(sym == geq) {\r\n scan();\r\n return Code.ge;\r\n } else if(sym == lss) {\r\n scan();\r\n return Code.lt;\r\n } else if(sym == leq) {\r\n scan();\r\n return Code.le;\r\n } else {\r\n error(\"Relation operator expected\");\r\n return Code.eq; // avoid critic error\r\n }\r\n }", "public boolean isValidOperator(String op)\n {\n return (normalizeOperator(op) != null);\n }", "public final void entryRuleOpEquality() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2114:1: ( ruleOpEquality EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2115:1: ruleOpEquality EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpEquality_in_entryRuleOpEquality4455);\r\n ruleOpEquality();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpEquality4462); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public boolean checkOpInput(String op) {\n if (op.equals(\"*\") || op.equals(\"/\") || op.equals(\"-\") || op.equals(\"+\")){\n return true;\n }else{\n return false;\n }\n }", "boolean forLirNode() {\n return opCode >= 0;\n }", "boolean isOperator();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the text for the given chunk (derived classes may wish to override)
protected void loadText(int chunkNum, Chunk chunk) throws IOException { chunk.text = reader.document(chunkNum).get(field); }
[ "public String readText() throws IOException {\n if (maxReadSize == -1) {\n String txt = IOUtils.toString(reader);\n if (StringUtils.isEmpty(txt)) {\n return null;\n }\n return txt;\n }\n\n char[] text = new char[maxReadSize - buffer.length()];\n int num = reader.read(text);\n if (num == -1) {\n return null;\n }\n\n buffer.append(String.valueOf(text, 0, num));\n\n // Return all if we reached the end.\n reader.mark(1);\n if (reader.read() == -1) {\n String t = buffer.toString();\n buffer.setLength(0);\n reader.reset();\n return t;\n }\n reader.reset();\n\n Matcher m;\n\n // Try breaking at paragraph:\n m = PARAGRAPH_PATTERN.matcher(buffer);\n if(m.find()) {\n int mStart = m.start(1);\n int mEnd = m.end(1);\n int substringEnd = mEnd;\n if (removeTrailingDelimiter) {\n substringEnd = mStart;\n }\n String t = buffer.substring(0, substringEnd);\n buffer.delete(0, substringEnd);\n LOG.debug(\"Reader text split after paragraph.\");\n return t;\n }\n\n // Try breaking at sentence:\n m = SENTENCE_PATTERN.matcher(buffer);\n if(m.find()) {\n int mStart = m.start(1);\n int mEnd = m.end(1);\n int substringEnd = mEnd;\n if (removeTrailingDelimiter) {\n substringEnd = mStart;\n }\n String t = buffer.substring(0, substringEnd);\n buffer.delete(0, substringEnd);\n LOG.debug(\"Reader text split after sentence.\");\n return t;\n }\n\n // Try breaking at word:\n m = WORD_PATTERN.matcher(buffer);\n if(m.find()) {\n int mStart = m.start(1);\n int mEnd = m.end(1);\n int substringEnd = mEnd;\n if (removeTrailingDelimiter) {\n substringEnd = mStart;\n }\n String t = buffer.substring(0, substringEnd);\n buffer.delete(0, substringEnd);\n LOG.debug(\"Reader text split after word.\");\n return t;\n }\n\n\n String t = buffer.toString();\n buffer.setLength(0);\n LOG.debug(\"Reader text split after maxReadSize.\");\n return t;\n }", "public void readAndLoadChunk(Chunk chunk, NBTTagCompound nbt);", "private void readChunk(DataInputStream in) throws IOException {\n try {\n // 0xFF properly pads 0 to the higher bits when\n // converting to integers\n int firstByte = in.readByte() & 0xFF;\n int secondByte = in.readByte() & 0xFF;\n // extract codeword from the first chunk\n codewordReadBuffer.append((firstByte << 4) | (secondByte >>> 4));\n\n // then get the second one, if end-of-file isn't reached\n int thirdByte = in.readByte() & 0xFF;\n // the second codeword is comprised of the lower half of the second byte and thirdByte,\n // concatenated together\n codewordReadBuffer.append(((secondByte & 0x0F) << 8) | thirdByte);\n\n } catch (EOFException e) {\n // end of file\n in.close();\n } catch (IOException e) {\n // input stream is closed, most probably because end-of-file is already reached\n }\n }", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "private void readText()\n {\n while (!atEnd())\n {\n char c = current();\n if (c == '&')\n {\n readCharacterEntity(text);\n }\n else if (c == '<')\n {\n break;\n }\n else\n {\n if (isValidCharacter(c))\n {\n text.append(c);\n }\n consume();\n }\n }\n }", "private String parseTextFile() {\n try {\n Scanner s = new Scanner(loadFile);\n String data = \"\";\n long fileSize = loadFile.getTotalSpace();\n long loaded = (long) 0.0;\n while (s.hasNext()) {\n String line = s.next();\n loaded += line.length() * 2;\n data += line;\n this.updateProgress(loaded, fileSize*1.2); // attempt at some sort of progress update\n }\n s.close();\n this.updateProgress(80, 100); // leave room for desert.\n return data;\n } catch (FileNotFoundException e) {\n System.out.println(\"TEXT FILE READ ERROR\");\n }\n return null;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public synchronized void readRemainder() throws IOException {\r\n // We read the data as a char[] instead of using readline()\r\n // so that we can get strings that do not end in end of\r\n // line chars.\r\n char[] chars = new char[80];\r\n int length; // Number of characters read.\r\n\r\n // Oddly, InputStreamReader.read() will return -1\r\n // if there is no data present, but the string can still\r\n // read.\r\n while (((length = inputStreamReader.read(chars, 0, 80)) != -1)) {\r\n if (LOG.isDebugEnabled()) {\r\n // Note that ready might be false here since\r\n // we already read the data.\r\n LOG.debug(\"_read(): Gobbler '\" + getName() + \"' Ready: \"\r\n + inputStreamReader.ready() + \" Value: '\"\r\n + String.valueOf(chars, 0, length) + \"'\");\r\n }\r\n\r\n if (streamLogsToLogging) {\r\n \tlogger.debug(getName()+\"> \"+new String(chars));\r\n } else {\r\n\t streamDataAsStringBuilder.append(chars, 0, length);\r\n\t streamDataAsList.add(new String(chars));\r\n }\r\n }\r\n }", "String readString() throws IOException;", "protected String readToEnd() {\n String body = currentMessage.substring(bufferPointer);\n bufferPointer += body.length();\n return body;\n }", "public static OMText read(DataInputStream dis) throws IOException {\n return read(dis, null);\n }", "public String readContentUsingReader(String fileName) throws Exception;", "@Override\n public Text<String> process(Text<String> data) {\n String text = null;\n try {\n // logger.info(\"Processing file {}\", data.getTextData());\n /*Scanner scanner = new Scanner(textFile);\n scanner.useDelimiter(\"\\\\Z\");\n text = scanner.next();*/\n byte[] encoded = Files.readAllBytes(Paths.get(data.getTextData()));\n text = new String(encoded, StandardCharsets.UTF_8);\n } catch (FileNotFoundException e) {\n throw new RuntimeException(\"Error while loading \" + data.getTextId(), e);\n } catch (Exception e) {\n logger.error(\"Got exception on file {}\", data.getTextData(), e);\n }\n Text<String> textData = new Text<>(data.getTextId(), text);\n return textData;\n }", "public String readString() throws HttpClientException, IOException {\n\t\treturn FileUtils.readFileString(getReader());\n\t}", "@Test\n public void testNextLineText() {\n System.out.println(\"nextLineText\");\n System.out.println(\"nextLineText@no line terminators in the file.\");\n for(TypeOfStream stype: TypeOfStream.values()) {\n InputStream stream = getInputStream(stype, TypeOfContent.BYTE_10, cs_UTF_8);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs_UTF_8.newDecoder(), 10);\n assertEquals(0, instance.position());\n String expResult = TypeOfContent.BYTE_10.getContent();\n String result = instance.nextLineText();\n assertEquals(expResult, result);\n assertEquals(11, instance.position());\n }\n }", "public String readUTF() throws IOException;", "public String readContentUsingStream(String fileName) throws Exception;", "private String getTextLineFromStream( InputStream is ) throws IOException {\n StringBuffer buffer = new StringBuffer();\n int b;\n\n \twhile( (b = is.read()) != -1 && b != (int) '\\n' ) {\n \t\tbuffer.append( (char) b );\n \t}\n \treturn buffer.toString().trim();\n }", "private String readResult() throws IOException {\n return reader.readLine();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }