content
stringlengths
40
137k
"public Expression createJoinPathExpression(final String expression, final MacroConfiguration macroConfiguration, Set<String> usedMacros) {\n return getOrDefault(\"String_Node_Str\", delegate, expression, false, macroConfiguration, JOIN_PATH_EXPRESSION_SUPPLIER);\n}\n"
"protected void configure() {\n bind(MinStockRulesService.class).to(MinStockRulesServiceImpl.class);\n bind(MinStockRulesServiceImpl.class).to(MinStockRulesServiceSupplychainImpl.class);\n bind(StockMoveService.class).to(StockMoveServiceImpl.class);\n bind(PurchaseOrderServiceImpl.class).to(PurchaseOrderServiceSupplychainImpl.class);\n bind(PurchaseOrderLineService.class).to(PurchaseOrderLineServiceImpl.class);\n bind(LocationLineService.class).to(LocationLineServiceImpl.class);\n bind(SaleOrderServiceImpl.class).to(SaleOrderServiceSupplychainImpl.class);\n bind(PurchaseOrderInvoiceService.class).to(PurchaseOrderInvoiceServiceImpl.class);\n bind(SaleOrderInvoiceService.class).to(SaleOrderInvoiceServiceImpl.class);\n bind(SaleOrderPurchaseService.class).to(SaleOrderPurchaseServiceImpl.class);\n bind(StockMoveLineService.class).to(StockMoveLineServiceImpl.class);\n bind(StockMoveInvoiceService.class).to(StockMoveInvoiceServiceImpl.class);\n bind(SaleOrderManagementRepository.class).to(SaleOrderSupplychainRepository.class);\n bind(StockMoveServiceImpl.class).to(StockMoveServiceSupplychainImpl.class);\n bind(VentilateState.class).to(VentilateStateSupplyChain.class);\n bind(CancelState.class).to(CancelStateSupplyChain.class);\n bind(SubscriptionService.class).to(SubscriptionServiceImpl.class);\n bind(OpportunitySaleOrderServiceImpl.class).to(OpportunitySaleOrderServiceSupplychainImpl.class);\n bind(CustomerCreditLineService.class).to(CustomerCreditLineServiceImpl.class);\n bind(SaleOrderLineServiceImpl.class).to(SaleOrderLineServiceSupplyChainImpl.class);\n bind(AnalyticDistributionLineServiceImpl.class).to(AnalyticDistributionLineServiceSupplychainImpl.class);\n bind(AdvancePaymentRepository.class).to(AdvancePaymentSupplychainRepository.class);\n bind(AdvancePaymentServiceImpl.class).to(AdvancePaymentServiceSupplychainImpl.class);\n bind(MrpService.class).to(MrpServiceImpl.class);\n bind(MrpLineService.class).to(MrpLineServiceImpl.class);\n bind(AnalyticDistributionLineMngtRepository.class).to(AnalyticDistributionLineSupplychainRepository.class);\n bind(StockMoveLineServiceImpl.class).to(StockMoveLineSupplychainServiceImpl.class);\n bind(BudgetService.class).to(BudgetSupplychainService.class);\n bind(InvoiceLineService.class).to(InvoiceLineSupplychainService.class);\n bind(SaleOrderStockService.class).to(SaleOrderStockServiceImpl.class);\n bind(PurchaseOrderManagementRepository.class).to(PurchaseOrderSupplychainRepository.class);\n}\n"
"public Network doInTransaction(TransactionStatus status) throws ResourceAllocationException, InsufficientCapacityException {\n DataCenterVO dc = _dcDao.lockRow(pNtwk.getDataCenterId(), true);\n Network privateNetwork = _networksDao.getPrivateNetwork(uriString, cidr, networkOwnerId, pNtwk.getDataCenterId(), networkOfferingId);\n if (privateNetwork == null) {\n privateNetwork = _networkMgr.createGuestNetwork(ntwkOffFinal.getId(), networkName, displayText, gateway, cidr, uriString, null, owner, null, pNtwk, pNtwk.getDataCenterId(), ACLType.Account, null, vpcId, null, null, true, null);\n if (privateNetwork != null) {\n s_logger.debug(\"String_Node_Str\" + privateNetwork);\n } else {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n } else {\n s_logger.debug(\"String_Node_Str\" + privateNetwork);\n if (vpcId != null && vpcId.equals(privateNetwork.getVpcId())) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + uriString + \"String_Node_Str\" + cidr + \"String_Node_Str\" + \"String_Node_Str\" + vpcId + \"String_Node_Str\" + _entityMgr.findById(DataCenter.class, pNtwk.getDataCenterId()).getName());\n }\n }\n if (vpcId != null) {\n PrivateIpVO privateIp = _privateIpDao.findByIpAndSourceNetworkIdAndVpcId(privateNetwork.getId(), startIp, vpcId);\n if (privateIp != null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + startIp + \"String_Node_Str\" + \"String_Node_Str\" + _entityMgr.findById(DataCenter.class, pNtwk.getDataCenterId()).getName());\n }\n Long mac = dc.getMacAddress();\n Long nextMac = mac + 1;\n dc.setMacAddress(nextMac);\n privateIp = new PrivateIpVO(startIp, privateNetwork.getId(), nextMac, vpcId, sourceNat);\n _privateIpDao.persist(privateIp);\n _dcDao.update(dc.getId(), dc);\n }\n Long mac = dc.getMacAddress();\n Long nextMac = mac + 1;\n dc.setMacAddress(nextMac);\n privateIp = new PrivateIpVO(startIp, privateNetwork.getId(), nextMac, vpcId, sourceNat);\n _privateIpDao.persist(privateIp);\n _dcDao.update(dc.getId(), dc);\n s_logger.debug(\"String_Node_Str\" + privateNetwork + \"String_Node_Str\");\n return privateNetwork;\n}\n"
"public void testPathIsNotFile() throws ReportingException {\n final Properties destinationProperties = new Properties();\n destinationProperties.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n try {\n final CsvDestination destination = (CsvDestination) ObjectFactory.summonInstance(CsvDestination.class.getName(), destinationProperties);\n final Measurement measurement = new Measurement(42, 123456000, ITERATION - 1);\n measurement.set(new Quantity<>(1111.11, \"String_Node_Str\"));\n measurement.set(\"String_Node_Str\", new Quantity<>(222.22, \"String_Node_Str\"));\n destination.open();\n destination.report(measurement);\n destination.close();\n } catch (InstantiationException | IllegalAccessException | ClassNotFoundException | InvocationTargetException e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n}\n"
"protected List retrieveClassesForIngredients() {\n if (getFixSpace().strategy().equals(IngredientSpaceStrategy.LOCAL))\n return originalVariant.getAffectedClasses();\n if (getFixSpace().strategy().equals(IngredientSpaceStrategy.GLOBAL) || getFixSpace().strategy().equals(IngredientSpaceStrategy.PACKAGE))\n return this.mutatorSupporter.getFactory().Type().getAll();\n return null;\n}\n"
"private void create() throws IOException {\n if (isCreate) {\n return;\n }\n ICompressor compressor = FindCompressor.get(columnBinary.compressorClassName);\n byte[] binary = compressor.decompress(columnBinary.binary, binaryStart, binaryLength);\n column = new PrimitiveColumn(columnBinary.columnType, columnBinary.columnName);\n IDicManager dicManager = new RangeShortDicManager(primitiveObjectConnector, ByteBuffer.wrap(binary).asShortBuffer());\n column.setCellManager(new BufferDirectCellManager(ColumnType.SHORT, dicManager, columnBinary.rowCount));\n isCreate = true;\n}\n"
"private void strobe(int data) {\n if (DEBUG) {\n System.out.println(\"String_Node_Str\" + Utils.hex8(data));\n switch(data) {\n case REG_SRXON:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n setMode(MODE_RX_ON);\n break;\n case REG_SRFOFF:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n setMode(MODE_TXRX_OFF);\n break;\n case REG_STXON:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n setMode(MODE_TXRX_ON);\n transmitPacket();\n break;\n case REG_STXONCCA:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n setMode(MODE_TXRX_ON);\n transmitPacket();\n break;\n case REG_SFLUSHRX:\n flushRX();\n break;\n case REG_SFLUSHTX:\n flushTX();\n break;\n }\n}\n"
"public int hashCode() {\n if (hashCode != 0) {\n return hashCode;\n }\n if (bitLength < SMALL_VALUE_BITS) {\n long longValue = (long) smallValue;\n hashCode = (int) (longValue & 0xffffffff);\n hashCode = 33 * hashCode + (int) ((longValue >> 32) & 0xffffffff);\n hashCode = 17 * hashCode + (int) scale;\n return hashCode;\n }\n hashCode = 17 * intVal.hashCode() + (int) scale;\n return hashCode;\n}\n"
"protected int advanceUntil(short x, int pos) {\n int lower = pos + 1;\n if (lower >= size || Util.toIntUnsigned(array[lower].key) >= x) {\n return lower;\n }\n int spansize = 1;\n while (lower + spansize < size && Util.toIntUnsigned(array[lower + spansize].key) < Util.toIntUnsigned(x)) spansize *= 2;\n int upper = (lower + spansize < size) ? lower + spansize : size - 1;\n if (array[upper].key == x) {\n return upper;\n }\n if (Util.toIntUnsigned(array[upper].key) < Util.toIntUnsigned(x)) {\n return size;\n }\n lower += (spansize / 2);\n while (lower + 1 != upper) {\n int mid = (lower + upper) / 2;\n if (array[mid].key == x)\n return mid;\n else if (Util.toIntUnsigned(array[mid].key) < Util.toIntUnsigned(x))\n lower = mid;\n else\n upper = mid;\n }\n return upper;\n}\n"
"private boolean checkRange(String inString) {\n String[] definedRange = getDefinedRange(inString);\n if (definedRange != null && definedRange.length >= 2) {\n range = \"String_Node_Str\" + definedRange[0] + \"String_Node_Str\" + definedRange[1] + \"String_Node_Str\";\n int sqltype = ((TdColumn) indicator.getAnalyzedElement()).getJavaType();\n boolean isChildOfRange = IndicatorsPackage.eINSTANCE.getValueIndicator().isSuperTypeOf(indicator.eClass());\n if (Java2SqlType.isDateInSQL(sqltype) && isChildOfRange) {\n try {\n SimpleDateFormat format = new SimpleDateFormat(\"String_Node_Str\");\n Date dValue = format.parse(value);\n if (\"String_Node_Str\".equals(definedRange[0])) {\n Date max = format.parse(definedRange[1]);\n range = \"String_Node_Str\" + definedRange[1] + \"String_Node_Str\";\n return dValue.after(max);\n } else if (\"String_Node_Str\".equals(definedRange[1])) {\n Date min = format.parse(definedRange[0]);\n range = \"String_Node_Str\" + definedRange[0] + \"String_Node_Str\";\n return dValue.before(min);\n } else {\n Date min = format.parse(definedRange[0]);\n Date max = format.parse(definedRange[1]);\n return dValue.after(max) || dValue.before(min);\n }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n } else {\n Double min = StringFormatUtil.formatDouble(definedRange[0]);\n Double max = StringFormatUtil.formatDouble(definedRange[1]);\n Double dValue = inString != null ? StringFormatUtil.parseDouble(inString) : Double.NaN;\n if (min == null || Double.isNaN(min)) {\n min = Double.NEGATIVE_INFINITY;\n }\n if (max == null || Double.isNaN(max)) {\n max = Double.POSITIVE_INFINITY;\n }\n return dValue < min || dValue > max;\n }\n }\n return false;\n}\n"
"public static void displayParticleVector(Location loc, ParticleEffect type, float xTrans, float yTrans, float zTrans) {\n if (type == ParticleEffect.FIREWORKS_SPARK)\n ParticleEffect.FIREWORKS_SPARK.display(xTrans, yTrans, zTrans, 0.09F, 0, loc, 257D);\n else if (type == ParticleEffect.SMOKE || type == ParticleEffect.SMOKE_NORMAL)\n ParticleEffect.SMOKE.display((float) xTrans, (float) yTrans, (float) zTrans, 0.04F, 0, loc, 257D);\n else if (type == ParticleEffect.LARGE_SMOKE || type == ParticleEffect.SMOKE_LARGE)\n ParticleEffect.LARGE_SMOKE.display((float) xTrans, (float) yTrans, (float) zTrans, 0.04F, 0, loc, 257D);\n else if (type == ParticleEffect.ENCHANTMENT_TABLE)\n ParticleEffect.ENCHANTMENT_TABLE.display((float) xTrans, (float) yTrans, (float) zTrans, 0.5F, 0, loc, 257D);\n else if (type == ParticleEffect.PORTAL)\n ParticleEffect.PORTAL.display((float) xTrans, (float) yTrans, (float) zTrans, 0.5F, 0, loc, 257D);\n else if (type == ParticleEffect.FLAME)\n ParticleEffect.FLAME.display((float) xTrans, (float) yTrans, (float) zTrans, 0.04F, 0, loc, 257D);\n else if (type == ParticleEffect.CLOUD)\n ParticleEffect.CLOUD.display((float) xTrans, (float) yTrans, (float) zTrans, 0.04F, 0, loc, 257D);\n else if (type == ParticleEffect.SNOW_SHOVEL)\n ParticleEffect.SNOW_SHOVEL.display((float) xTrans, (float) yTrans, (float) zTrans, 0.2F, 0, loc, 257D);\n else\n ParticleEffect.RED_DUST.display((float) 0, (float) 0, (float) 0, 0.004F, 0, loc, 257D);\n}\n"
"protected IngestionResult addNewFileEntity(EntityType entityInfo, Connection connection) throws IngestException, SQLException {\n FileType file = entityInfo.getFile();\n IngestionResult ownerResult = null;\n if (file.getOwnerDN() != null) {\n AgentType ownerAgent = AgentType.Factory.newInstance();\n UserAgentType user = UserAgentType.Factory.newInstance();\n user.setAgentID(file.getOwnerDN());\n ownerAgent.setUserAgent(user);\n ownerAgent.setType(AgentEnumType.OTHER);\n ownerResult = addNewAgent(ownerAgent, connection);\n }\n IngestionResult ingestionResult = null;\n if (KomaduUtils.manageDBLock(DBLockConstants.LOCK_ACQUIRE, file.getFileURI(), connection)) {\n Long baseEntityId = addNewBaseEntity(EntityTypeEnum.FILE, entityInfo.getAttributes(), entityInfo.getRole(), entityInfo.getLocation(), connection);\n TupleData tuple = new TupleData();\n tuple.addAttribute(\"String_Node_Str\", baseEntityId, TableAttributeData.DataType.LONG);\n tuple.addAttribute(\"String_Node_Str\", file.getFileURI(), TableAttributeData.DataType.STRING);\n if (ownerResult != null)\n tuple.addAttribute(\"String_Node_Str\", ownerResult.getDbId(), TableAttributeData.DataType.LONG);\n if (file.isSetCreateDate())\n tuple.addAttribute(\"String_Node_Str\", KomaduUtils.getTimestamp(file.getCreateDate()), TableAttributeData.DataType.TIMESTAMP);\n tuple.addAttribute(\"String_Node_Str\", file.getSize(), TableAttributeData.DataType.LONG);\n tuple.addAttribute(\"String_Node_Str\", file.getMd5Sum(), TableAttributeData.DataType.STRING);\n tuple.addAttribute(\"String_Node_Str\", file.getFileName(), TableAttributeData.DataType.STRING);\n Long fileId = insertTuple(\"String_Node_Str\", tuple, \"String_Node_Str\", connection);\n ingestionResult = new IngestionResult(file.getFileURI(), fileId);\n KomaduUtils.manageDBLock(DBLockConstants.LOCK_RELEASE, file.getFileURI(), connection);\n }\n return ingestionResult;\n}\n"
"protected void removeMappingValueFromObject(Object object, Object attributeValue, DatabaseMapping mapping, DatabaseMapping partner) {\n if (mapping.isObjectReferenceMapping()) {\n Object currentValue = mapping.getRealAttributeValueFromObject(object, (AbstractSession) getJpaSession());\n if (currentValue.equals(attributeValue)) {\n ((ObjectReferenceMapping) mapping).getIndirectionPolicy().setRealAttributeValueInObject(object, null, true);\n if (partner != null) {\n removeMappingValueFromObject(attributeValue, object, partner, null);\n }\n }\n } else if (mapping.isCollectionMapping()) {\n boolean removed = ((Collection) mapping.getRealAttributeValueFromObject(object, getJpaSession())).remove(attributeValue);\n if (removed && partner != null) {\n removeMappingValueFromObject(attributeValue, object, partner, null);\n }\n }\n}\n"
"public void init() throws ComponentInitException {\n if (endpointURL == null) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n if (instances == null) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n if (recursionDepth == 0) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n if (ontologySchemaUrls == null) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n Monitor monComp = MonitorFactory.start(\"String_Node_Str\").start();\n Monitor monIndexer = MonitorFactory.start(\"String_Node_Str\").start();\n indexer = new SchemaIndexer();\n indexer.setOntologySchemaUrls(ontologySchemaUrls);\n indexer.init();\n monIndexer.stop();\n TypeOntology typeOntology = new TypeOntology();\n Monitor monQueryingABox;\n QueryExecutor executor = new QueryExecutor();\n String queryString;\n Set<String> instancesSet = new HashSet<String>(instances);\n Set<String> alreadyQueried = new HashSet<String>();\n Monitor typizeModel;\n if (sparqlQuery == null) {\n ABoxQueryGenerator aGenerator = new ABoxQueryGenerator();\n for (int i = 0; i < recursionDepth; i++) {\n if (instancesSet.isEmpty()) {\n log.warn(\"String_Node_Str\", i, instancesSet.size());\n }\n log.info(\"String_Node_Str\", i, instancesSet.size());\n queryString = aGenerator.createQuery(instancesSet, aboxfilter);\n log.debug(\"String_Node_Str\", queryString);\n monQueryingABox = MonitorFactory.start(\"String_Node_Str\");\n try {\n executor.executeQuery(queryString, endpointURL, model, defaultGraphURI);\n } catch (Exception e) {\n e.printStackTrace();\n }\n monQueryingABox.stop();\n typizeModel = MonitorFactory.start(\"String_Node_Str\");\n model = typeOntology.addTypetoJena(model, instances, null);\n typizeModel.stop();\n alreadyQueried.addAll(instancesSet);\n instancesSet = difference(alreadyQueried, model);\n }\n log.info(\"String_Node_Str\", recursionDepth, instancesSet.size());\n } else {\n monQueryingABox = MonitorFactory.getTimeMonitor(\"String_Node_Str\").start();\n executor.executeQuery(sparqlQuery, endpointURL, model, null);\n monQueryingABox.stop();\n }\n TBoxQueryGenerator tGenerator = new TBoxQueryGenerator();\n queryString = tGenerator.createQuery(alreadyQueried, tboxfilter);\n Monitor monQueryingTBox = MonitorFactory.start(\"String_Node_Str\");\n executor.executeQuery(queryString, endpointURL, model, defaultGraphURI);\n monQueryingTBox.stop();\n Monitor monIndexing = MonitorFactory.start(\"String_Node_Str\");\n Set<OntClass> classes = model.listClasses().toSet();\n for (OntClass ontClass : classes) {\n OntModel hierarchy = indexer.getHierarchyForURI(ontClass.getURI());\n if (hierarchy != null) {\n model.add(hierarchy);\n log.debug(\"String_Node_Str\", model);\n }\n }\n monIndexing.stop();\n monComp.stop();\n}\n"
"protected void doMatchAction() {\n try {\n String param = txt_match.getText();\n Search search = new Search(param, true);\n if (chk_mrestrict.isSelected()) {\n Passage restrict = PassageFactory.createPassage(txt_mrestrict.getText());\n search.setRestriction(restrict);\n }\n Bible version = (Bible) mdl_versn.getSelectedBookMetaData().getBook();\n Passage ref = version.findPassage(search);\n if (ref instanceof PassageTally) {\n PassageTally tally = (PassageTally) ref;\n tally.setOrdering(PassageTally.ORDER_TALLY);\n tally.trimRanges(20);\n }\n txt_passg.setText(ref.getName());\n updateDisplay();\n setDefaultName(param);\n } catch (Exception ex) {\n Reporter.informUser(this, ex);\n }\n}\n"
"public void onClick(View v) {\n Intent intent = new Intent(getActivity(), HelpActivity.class);\n intent.putExtra(ENTERED_URL_KEY, EditTextUtils.getText(mUrlEditText));\n intent.putExtra(ENTERED_USERNAME_KEY, EditTextUtils.getText(mUsernameEditText));\n intent.putExtra(HelpshiftHelper.ORIGIN_KEY, Tag.ORIGIN_LOGIN_SCREEN_HELP);\n startActivity(intent);\n}\n"
"public void rcDropRowByValue(String col, String colOperator, String value, String regexOp, String searchType, int delayBeforeDrop) {\n try {\n TableAdapter adapter = (TableAdapter) getComponent();\n int implCol = adapter.getColumnFromString(col, colOperator);\n int implRow = super.findRow(value, regexOp, searchType, adapter, implCol);\n TableCell targetCell = getCellAt(implRow + 1, implCol + 1);\n if (targetCell == null) {\n throw new StepExecutionException(\"String_Node_Str\", EventFactory.createActionError(TestErrorEvent.NOT_VISIBLE));\n }\n super.rcDropRowByValue(col, colOperator, value, regexOp, searchType, delayBeforeDrop);\n } finally {\n Node table = ((Node) getRealComponent());\n table.removeEventFilter(ScrollToEvent.ANY, m_scrollConsumer);\n DragAndDropHelper dndHelper = DragAndDropHelper.getInstance();\n getRobot().mouseRelease(null, null, dndHelper.getMouseButton());\n try {\n pressOrReleaseModifiers(dndHelper.getModifier(), false);\n } catch (RobotException e) {\n if (!EnvironmentUtils.isLinuxOS()) {\n throw e;\n }\n }\n dndHelper.setDragMode(false);\n }\n}\n"
"public boolean apply(Game game, Ability source, Ability abilityToModify) {\n Player controller = game.getPlayer(abilityToModify.getControllerId());\n if (controller != null) {\n Mana mana = abilityToModify.getManaCostsToPay().getMana();\n int reduceMax = mana.getGeneric();\n if (reduceMax > 0 && mana.count() == mana.getGeneric()) {\n reduceMax--;\n }\n if (reduceMax > 2) {\n reduceMax = 2;\n }\n if (reduceMax > 0) {\n ChoiceImpl choice = new ChoiceImpl(true);\n Set<String> set = new LinkedHashSet<>();\n for (int i = 0; i <= reduceMax; i++) {\n set.add(String.valueOf(i));\n }\n choice.setChoices(set);\n choice.setMessage(\"String_Node_Str\");\n while (!choice.isChosen()) {\n controller.choose(Outcome.Benefit, choice, game);\n if (!controller.isInGame()) {\n return false;\n }\n }\n }\n return true;\n }\n return false;\n}\n"
"private static List<Interval> generateIntervals(RegTreeConfig regTreeConfig, Vector featureValues, double[] probs, double[] labels) {\n int numDataPoints = featureValues.size();\n int numIntervals = regTreeConfig.getNumSplitIntervals();\n double maxFeature = Double.NEGATIVE_INFINITY;\n double minFeature = Double.POSITIVE_INFINITY;\n double existingProbCount = 0;\n int existingBinaryCount = 0;\n for (int i = 0; i < numDataPoints; i++) {\n double featureValue = featureValues.get(i);\n if (!Double.isNaN(featureValue) && probs[i] != 0) {\n numExisting += probs[i];\n if (featureValue > maxFeature) {\n maxFeature = featureValue;\n }\n if (featureValue < minFeature) {\n minFeature = featureValue;\n }\n }\n }\n List<Interval> intervals = new ArrayList<>(numIntervals);\n if (numExisting < 2) {\n return intervals;\n }\n double intervalLength = (maxFeature - minFeature) / numIntervals;\n for (int i = 0; i < numIntervals; i++) {\n Interval interval = new Interval();\n double lower = minFeature + i * intervalLength;\n double upper = lower + intervalLength;\n interval.setLower(lower);\n interval.setUpper(upper);\n intervals.add(interval);\n }\n for (int i = 0; i < numDataPoints; i++) {\n double featureValue = featureValues.get(i);\n double label = labels[i];\n if (!Double.isNaN(featureValue) && probs[i] != 0) {\n int ceil = (int) Math.ceil((featureValue - minFeature) / intervalLength);\n if (ceil > numIntervals) {\n ceil = numIntervals;\n }\n int intervalIndex;\n if (ceil == 0) {\n intervalIndex = 0;\n } else {\n intervalIndex = ceil - 1;\n }\n Interval interval = intervals.get(intervalIndex);\n double probability = probs[i];\n double oldCount = interval.getProbabilisticCount();\n interval.setProbabilisticCount(oldCount + probability);\n double oldSum = interval.getWeightedSum();\n interval.setWeightedSum(oldSum + label * probability);\n }\n }\n for (Interval interval : intervals) {\n interval.setPercentage(interval.getProbabilisticCount() / numExisting);\n }\n for (int i = 0; i < numDataPoints; i++) {\n double featureValue = featureValues.get(i);\n double label = labels[i];\n if (Double.isNaN(featureValue)) {\n for (Interval interval : intervals) {\n double probability = probs[i] * interval.getPercentage();\n double oldCount = interval.getProbabilisticCount();\n interval.setProbabilisticCount(oldCount + probability);\n double oldSum = interval.getWeightedSum();\n interval.setWeightedSum(oldSum + label * probability);\n }\n }\n }\n return intervals;\n}\n"
"protected void setup() {\n random = Config.getInstance().get(RANDOM_SEQUENCE);\n populationSize = Config.getInstance().get(SIZE);\n syntax = Config.getInstance().get(SYNTAX);\n returnType = Config.getInstance().get(RETURN_TYPE);\n allowDuplicates = Config.getInstance().get(ALLOW_DUPLICATES, true);\n Integer maxDepth = Config.getInstance().get(MAXIMUM_DEPTH);\n Integer maxInitialDepth = Config.getInstance().get(MAXIMUM_INITIAL_DEPTH);\n if (maxInitialDepth != null && (maxDepth == null || maxInitialDepth < maxDepth)) {\n depth = maxInitialDepth;\n } else {\n depth = maxDepth;\n }\n}\n"
"private void markForPropagation(ChunkImpl toChunk, int[] depth, int[] startingRegen, int[] adjDepths, int[] adjStartingRegen) {\n Vector3i pos = new Vector3i();\n for (int z = 0; z < ChunkConstants.SIZE_Z; ++z) {\n for (int x = 0; x < ChunkConstants.SIZE_X; ++x) {\n int depthIndex = x + ChunkConstants.SIZE_X * z;\n int start = startingRegen[depthIndex];\n int adjStart = adjStartingRegen[depthIndex];\n if (start - adjStart > 1) {\n int initialDepth = Math.max(ChunkConstants.SUNLIGHT_REGEN_THRESHOLD - start, 0);\n int finalDepth = depth[depthIndex];\n int strength = Math.min(start + initialDepth - ChunkConstants.SUNLIGHT_REGEN_THRESHOLD + 1, ChunkConstants.MAX_SUNLIGHT);\n for (int i = initialDepth; i < finalDepth; ++i) {\n sunlightPropagator.propagateFrom(toChunk.getBlockWorldPos(x, ChunkConstants.SIZE_Y - i - 1, z), (byte) (strength));\n if (strength < ChunkConstants.MAX_SUNLIGHT) {\n strength++;\n }\n }\n } else {\n int initialDepth = Math.max(adjDepths[depthIndex], ChunkConstants.SUNLIGHT_REGEN_THRESHOLD - start);\n byte strength = (byte) Math.min(ChunkConstants.MAX_SUNLIGHT, start + initialDepth - ChunkConstants.SUNLIGHT_REGEN_THRESHOLD + 1);\n for (int i = initialDepth; i < depth[depthIndex]; ++i) {\n sunlightPropagator.propagateFrom(toChunk.getBlockWorldPos(x, ChunkConstants.SIZE_Y - i - 1, z), strength);\n if (strength < ChunkConstants.MAX_SUNLIGHT) {\n strength++;\n }\n pos.y--;\n }\n }\n }\n }\n}\n"
"public SerializerResult complexCollection(final ServiceMetadata metadata, final EdmComplexType type, final Property property, final ComplexSerializerOptions options) throws SerializerException {\n OutputStream outputStream = null;\n SerializerException cachedException = null;\n try {\n final ContextURL contextURL = checkContextURL(options == null ? null : options.getContextURL());\n CircleStreamBuffer buffer = new CircleStreamBuffer();\n outputStream = buffer.getOutputStream();\n JsonGenerator json = new JsonFactory().createGenerator(outputStream);\n json.writeStartObject();\n writeContextURL(contextURL, json);\n writeMetadataETag(metadata, json);\n json.writeFieldName(Constants.VALUE);\n writeComplexCollection(metadata, type, property, null, json);\n json.writeEndObject();\n json.close();\n outputStream.close();\n return SerializerResultImpl.with().content(buffer.getInputStream()).build();\n } catch (final IOException e) {\n cachedException = new SerializerException(IO_EXCEPTION_TEXT, e, SerializerException.MessageKeys.IO_EXCEPTION);\n throw cachedException;\n } finally {\n closeCircleStreamBufferOutput(outputStream, cachedException);\n }\n}\n"
"String getCode(String file) throws JavaParserException {\n\tJavaParser parser = new JavaParser();\n\tNode node = new Node();\n\ttry{\n\t\tnode = parser.parse(file);\n\t} catch (JavaParserException e) {}\n\tString code = node.toString();\n\tcode = code.replaceAll(\"\\\\s+\", \"\");\n\treturn code;\n}\n"
"public int compare(String encoding0, String encoding1) {\n return encodingConfiguration.getPriority(encoding1) - encodingConfiguration.getPriority(encoding0);\n}\n"
"public boolean isNeedCreateStructure() {\n if (isSecludedVersion()) {\n return !ResourceService.checkSecludedResource();\n }\n return !ResourceManager.checkResource();\n}\n"
"private void pause() {\n if (resumed) {\n resumed = false;\n onPause();\n }\n}\n"
"public TmfTimestampLocation clone() {\n TmfTimestampLocation clone = null;\n clone = (TmfTimestampLocation) super.clone();\n return clone;\n}\n"
"public void handleDrop(GL2 gl, java.util.Set<IDraggable> draggables, float mouseCoordinateX, float mouseCoordinateY, DragAndDropController dragAndDropController) {\n glVisBricks.clearDimensionGroupSpacerHighlight();\n for (IDraggable draggable : draggables) {\n if (draggable == this)\n break;\n glVisBricks.moveDimensionGroup(this, (DimensionGroup) draggable, leftDimGroup);\n }\n draggables.clear();\n}\n"
"private void checkAugmentedReturn(MethodNode mn) {\n if (isUnannotated(mn))\n return;\n Type retType = Type.getReturnType(mn.desc);\n if (retType.getSort() != Type.VOID) {\n if (getReturnMethodParameter(mn) == Integer.MIN_VALUE) {\n String oldDesc = mn.desc;\n Type[] args = Type.getArgumentTypes(mn.desc);\n args = Arrays.copyOf(args, args.length + 1);\n args[args.length - 1] = retType;\n List<AnnotationNode> annots = new ArrayList<>();\n AnnotationNode an = new AnnotationNode(Type.getDescriptor(Return.class));\n annots.add(an);\n mn.visibleParameterAnnotations = mn.visibleParameterAnnotations != null ? Arrays.copyOf(mn.visibleParameterAnnotations, args.length) : new List[args.length];\n mn.visibleParameterAnnotations[args.length - 1] = annots;\n mn.desc = Type.getMethodDescriptor(retType, args);\n if (mn instanceof BTraceMethodNode) {\n BTraceMethodNode bmn = (BTraceMethodNode) mn;\n OnMethod om = bmn.getOnMethod();\n if (om != null && om.getTargetName().equals(mn.name) && om.getTargetDescriptor().equals(oldDesc)) {\n om.setReturnParameter(getReturnMethodParameter(mn));\n om.setTargetDescriptor(mn.desc);\n }\n }\n }\n }\n}\n"
"private Verse readPassageOsis(Key key, RawTextToXmlProcessor processor, final List<Content> content, T openFileState) throws BookException {\n Verse currentVerse = null;\n try {\n final Passage ref = KeyUtil.getPassage(key);\n final Iterator<Key> rit = ref.rangeIterator(RestrictionType.CHAPTER);\n while (rit.hasNext()) {\n VerseRange range = (VerseRange) rit.next();\n processor.preRange(range, content);\n for (Key verseInRange : range) {\n currentVerse = KeyUtil.getVerse(getVersification(), verseInRange);\n final String keyName = verseInRange.getName();\n String rawText = readRawContent(openFileState, currentVerse, keyName);\n processor.postVerse(verseInRange, content, rawText);\n }\n }\n } catch (IOException e) {\n throwFailedKeyException(key, currentVerse, e);\n }\n return currentVerse;\n}\n"
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n name = ExtUtil.readString(in);\n reference = (IDataReference) ExtUtil.read(in, new ExtWrapTagged(), pf);\n Vector attStrings = ExtUtil.nullIfEmpty((Vector) ExtUtil.read(in, new ExtWrapList(String.class), pf));\n setAttributesFromSingleStringVector(attStrings);\n value = (IAnswerData) ExtUtil.read(in, new ExtWrapNullable(new ExtWrapTagged()), pf);\n}\n"
"private void init() {\n this.getContentPane().setLayout(new BorderLayout());\n contentPane = new TransparentPanel(new BorderLayout(5, 5));\n TransparentPanel northPanel = new TransparentPanel(new BorderLayout(5, 5));\n northPanel.setBorder(BorderFactory.createEmptyBorder(10, 5, 5, 5));\n JLabel imgLabel = new JLabel(GuiActivator.getResources().getImage(\"String_Node_Str\"));\n imgLabel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n northPanel.add(imgLabel, BorderLayout.WEST);\n String descriptionTxt = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { GuiActivator.getResources().getSettingsString(\"String_Node_Str\"), host, String.valueOf(port) });\n StyledHTMLEditorPane descriptionPane = new StyledHTMLEditorPane();\n descriptionPane.setOpaque(false);\n descriptionPane.setEditable(false);\n descriptionPane.setContentType(\"String_Node_Str\");\n descriptionPane.setText(descriptionTxt);\n descriptionPane.setSize(new Dimension(MAX_MSG_PANE_WIDTH, MAX_MSG_PANE_HEIGHT));\n int height = descriptionPane.getPreferredSize().height;\n descriptionPane.setPreferredSize(new Dimension(MAX_MSG_PANE_WIDTH, height));\n northPanel.add(descriptionPane, BorderLayout.CENTER);\n contentPane.add(northPanel, BorderLayout.NORTH);\n certPanel = new TransparentPanel();\n contentPane.add(certPanel, BorderLayout.CENTER);\n TransparentPanel southPanel = new TransparentPanel(new BorderLayout());\n contentPane.add(southPanel, BorderLayout.SOUTH);\n certButton = new JButton();\n certButton.setText(GuiActivator.getResources().getI18NString(\"String_Node_Str\"));\n certButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n actionShowCertificate();\n }\n });\n TransparentPanel firstButonPanel = new TransparentPanel(new FlowLayout(FlowLayout.LEFT));\n firstButonPanel.add(certButton);\n southPanel.add(firstButonPanel, BorderLayout.WEST);\n TransparentPanel secondButonPanel = new TransparentPanel(new FlowLayout(FlowLayout.RIGHT));\n JButton cancelButton = new JButton(GuiActivator.getResources().getI18NString(\"String_Node_Str\"));\n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n actionCancel();\n }\n });\n JButton continueButton = new JButton(GuiActivator.getResources().getI18NString(\"String_Node_Str\"));\n continueButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n actionContinue();\n }\n });\n secondButonPanel.add(continueButton);\n secondButonPanel.add(cancelButton);\n southPanel.add(secondButonPanel, BorderLayout.EAST);\n this.getContentPane().add(contentPane, BorderLayout.CENTER);\n pack();\n}\n"
"protected void display() {\n try {\n Log.i(\"String_Node_Str\", getItem().toString());\n } catch (Exception e) {\n ACRA.getErrorReporter().handleException(e);\n }\n if (getItem().getCoverBitmap() != null) {\n ivCover.setVisibility(View.VISIBLE);\n ivCover.setImageBitmap(getItem().getCoverBitmap());\n if (!image_analyzed) {\n Palette.generateAsync(getItem().getCoverBitmap(), new Palette.PaletteAsyncListener() {\n public void onGenerated(Palette palette) {\n Palette.Swatch swatch = palette.getDarkVibrantSwatch();\n if (swatch != null) {\n ivCover.setBackgroundColor(swatch.getRgb());\n tint.setBackgroundColor(swatch.getRgb());\n }\n }\n });\n analyzeWhitenessOfCoverAsync(getItem().getCoverBitmap());\n }\n tvTitel.setText(getItem().getTitle());\n showCoverView(true);\n } else if (getArguments().containsKey(ARG_ITEM_COVER_BITMAP)) {\n tvTitel.setText(getItem().getTitle());\n showCoverView(true);\n } else {\n showCoverView(false);\n toolbar.setTitle(getItem().getTitle());\n }\n llDetails.removeAllViews();\n for (Detail detail : item.getDetails()) {\n View v = getLayoutInflater(null).inflate(R.layout.listitem_detail, null);\n ((TextView) v.findViewById(R.id.tvDesc)).setText(detail.getDesc());\n ((TextView) v.findViewById(R.id.tvContent)).setText(detail.getContent());\n Linkify.addLinks((TextView) v.findViewById(R.id.tvContent), Linkify.WEB_URLS);\n llDetails.addView(v);\n }\n llCopies.removeAllViews();\n if (item.getVolumesearch() != null) {\n tvCopies.setText(R.string.baende);\n Button btnVolume = new Button(getActivity());\n btnVolume.setText(R.string.baende_volumesearch);\n btnVolume.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n app.startVolumeSearch(getActivity(), getItem().getVolumesearch());\n }\n });\n llCopies.addView(btnVolume);\n } else if (item.getBaende().size() > 0) {\n tvCopies.setText(R.string.baende);\n for (final Map<String, String> band : item.getBaende()) {\n View v = getLayoutInflater(null).inflate(R.layout.listitem_volume, null);\n ((TextView) v.findViewById(R.id.tvTitel)).setText(band.get(DetailledItem.KEY_CHILD_TITLE));\n v.findViewById(R.id.llItem).setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), SearchResultDetailActivity.class);\n intent.putExtra(ARG_ITEM_ID, band.get(DetailledItem.KEY_CHILD_ID));\n intent.putExtra(\"String_Node_Str\", true);\n startActivity(intent);\n }\n });\n llCopies.addView(v);\n }\n } else {\n if (item.getCopies().size() == 0) {\n tvCopies.setVisibility(View.GONE);\n } else {\n for (Map<String, String> copy : item.getCopies()) {\n View v = getLayoutInflater(null).inflate(R.layout.listitem_copy, llCopies, false);\n if (v.findViewById(R.id.tvBranch) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_BRANCH)) {\n ((TextView) v.findViewById(R.id.tvBranch)).setText(copy.get(DetailledItem.KEY_COPY_BRANCH));\n v.findViewById(R.id.llBranch).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llBranch).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvDepartment) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_DEPARTMENT)) {\n ((TextView) v.findViewById(R.id.tvDepartment)).setText(copy.get(DetailledItem.KEY_COPY_DEPARTMENT));\n v.findViewById(R.id.llDepartment).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llDepartment).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvLocation) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_LOCATION)) {\n ((TextView) v.findViewById(R.id.tvLocation)).setText(copy.get(DetailledItem.KEY_COPY_LOCATION));\n v.findViewById(R.id.llLocation).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llLocation).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvShelfmark) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_SHELFMARK)) {\n ((TextView) v.findViewById(R.id.tvShelfmark)).setText(copy.get(DetailledItem.KEY_COPY_SHELFMARK));\n v.findViewById(R.id.llShelfmark).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llShelfmark).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvStatus) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_STATUS)) {\n ((TextView) v.findViewById(R.id.tvStatus)).setText(copy.get(DetailledItem.KEY_COPY_STATUS));\n v.findViewById(R.id.llStatus).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llStatus).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvReservations) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_RESERVATIONS)) {\n ((TextView) v.findViewById(R.id.tvReservations)).setText(copy.get(DetailledItem.KEY_COPY_RESERVATIONS));\n v.findViewById(R.id.llReservations).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llReservations).setVisibility(View.GONE);\n }\n }\n if (v.findViewById(R.id.tvReturndate) != null) {\n if (containsAndNotEmpty(copy, DetailledItem.KEY_COPY_RETURN)) {\n ((TextView) v.findViewById(R.id.tvReturndate)).setText(copy.get(DetailledItem.KEY_COPY_RETURN));\n v.findViewById(R.id.llReturndate).setVisibility(View.VISIBLE);\n } else {\n v.findViewById(R.id.llReturndate).setVisibility(View.GONE);\n }\n }\n llCopies.addView(v);\n }\n }\n }\n if (id == null || id.equals(\"String_Node_Str\")) {\n id = getItem().getId();\n }\n setProgress(false, true);\n refreshMenu(toolbar.getMenu());\n toolbar.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n public void onGlobalLayout() {\n toolbar.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n fixTitle();\n }\n });\n toolbar.requestLayout();\n}\n"
"public static Object convert(Object source, Class toTypeClass) throws BirtException {\n if (source != null && source.getClass() == toTypeClass) {\n return source;\n }\n if (toTypeClass == DataType.getClass(DataType.ANY_TYPE))\n return source;\n if (toTypeClass == Integer.class)\n return toInteger(source);\n if (toTypeClass == BigDecimal.class)\n return toBigDecimal(source);\n if (toTypeClass == Boolean.class)\n return toBoolean(source);\n if (toTypeClass == Time.class)\n return toSqlTime(source);\n if (toTypeClass == java.sql.Date.class)\n return toSqlDate(source);\n if (toTypeClass == java.sql.Timestamp.class)\n return toTimestamp(source);\n if (toTypeClass == Date.class)\n return toDate(source);\n if (toTypeClass == Double.class)\n return toDouble(source);\n if (toTypeClass == String.class)\n return toString(source);\n if (toTypeClass == Blob.class) {\n if (source instanceof byte[])\n return source;\n else\n return toBlob(source);\n }\n if (toTypeClass == byte[].class)\n return source;\n throw new CoreException(ResourceConstants.INVALID_TYPE, resourceBundle);\n}\n"
"public void details() {\n if (input.parameterNumber() == 0) {\n try {\n final Map<String, String> details = new LinkedMap<>();\n final int accountPolicySize = policySyncopeOperations.list(PolicyType.ACCOUNT.name()).size();\n final int passwordPolicySize = policySyncopeOperations.list(PolicyType.PASSWORD.name()).size();\n final int syncPolicySize = policySyncopeOperations.list(PolicyType.SYNC.name()).size();\n final int pushPolicySize = policySyncopeOperations.list(PolicyType.PUSH.name()).size();\n details.put(\"String_Node_Str\", String.valueOf(accountPolicySize + passwordPolicySize + syncPolicySize + pushPolicySize));\n details.put(\"String_Node_Str\", String.valueOf(accountPolicySize));\n details.put(\"String_Node_Str\", String.valueOf(passwordPolicySize));\n details.put(\"String_Node_Str\", String.valueOf(syncPolicySize));\n details.put(\"String_Node_Str\", String.valueOf(pushPolicySize));\n policyResultManager.printDetails(details);\n } catch (final Exception ex) {\n LOG.error(\"String_Node_Str\", ex);\n policyResultManager.genericError(ex.getMessage());\n }\n } else {\n policyResultManager.commandOptionError(DETAILS_HELP_MESSAGE);\n }\n}\n"
"public FootPrint getLastCameraFootPrint() throws RemoteException {\n Footprint lastFootprint = getDroneMgr().getDrone().getCamera().getLastFootprint();\n return getProxyCameraFootPrint(lastFootprint);\n}\n"
"private void handleForeignKey(MetadataRepository repository, ComplexTypeMetadata type, XmlSchemaAnnotationProcessorState state, Element appInfo) {\n state.markAsReference();\n String path = appInfo.getTextContent();\n FieldMetadata fieldMetadata = getFieldMetadata(repository, type, appInfo, path, false);\n state.setReferencedField(fieldMetadata);\n state.setReferencedType(new SoftTypeRef(repository, repository.getUserNamespace(), getTypeName(type, path), true));\n}\n"
"protected void registerForSync(Context context, final String action, final ArrayAdapter adapter) {\n BroadcastReceiver receiver = new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n if (action != null && action.equals(intent.getAction())) {\n String key = intent.getAction();\n String json = intent.getStringExtra(key);\n handleJSONUpdateInBackground(json);\n }\n };\n IntentFilter filter = new IntentFilter();\n filter.addAction(action);\n LocalBroadcastManager manager = LocalBroadcastManager.getInstance(mContext);\n manager.registerReceiver(mReceiver, filter);\n }\n}\n"
"public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (request.getHeader(\"String_Node_Str\") != null && (getBimServer().getServerInfo().getServerState() != ServerState.MIGRATION_REQUIRED && !getBimServer().getServerSettingsCache().isHostAllowed(request.getHeader(\"String_Node_Str\")))) {\n response.setStatus(403);\n return;\n }\n response.setHeader(\"String_Node_Str\", request.getHeader(\"String_Node_Str\"));\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n if (\"String_Node_Str\".equalsIgnoreCase(request.getMethod())) {\n return;\n }\n response.setCharacterEncoding(\"String_Node_Str\");\n try {\n ServletInputStream inputStream = request.getInputStream();\n byte[] bytes = IOUtils.toByteArray(inputStream);\n JsonReader jsonReader = new JsonReader(new InputStreamReader(new ByteArrayInputStream(bytes)));\n JsonParser parser = new JsonParser();\n JsonElement parse = parser.parse(jsonReader);\n if (parse instanceof JsonObject) {\n JsonObject jsonRequest = (JsonObject) parse;\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n getBimServer().getJsonHandler().execute(jsonRequest, request, response.getWriter());\n } else {\n LOGGER.error(\"String_Node_Str\" + new String(bytes, Charsets.UTF_8));\n response.setStatus(500);\n }\n } catch (IOException e) {\n LOGGER.error(\"String_Node_Str\", e);\n response.setStatus(500);\n }\n}\n"
"public ThesNode getRoot() {\n if (thesRoot == null) {\n thesRoot = new ThesNode(null, \"String_Node_Str\", this);\n }\n return thesRoot;\n}\n"
"protected IStatus run(final IProgressMonitor monitor) {\n final String id = wizard.getImageId();\n monitor.beginTask(DVMessages.getString(PULL_IMAGE_JOB_TASK), IProgressMonitor.UNKNOWN);\n try {\n ((DockerConnection) connection).pullImage(id, new ImagePullProgressHandler(connection, id));\n monitor.worked(1);\n } catch (final DockerException e) {\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n MessageDialog.openError(Display.getCurrent().getActiveShell(), DVMessages.getFormattedString(ERROR_PULLING_IMAGE, id), e.getMessage());\n }\n });\n } catch (InterruptedException e) {\n } finally {\n monitor.done();\n }\n return Status.OK_STATUS;\n}\n"
"protected Hashtable buildFieldTypes() {\n Hashtable fieldTypeMapping;\n fieldTypeMapping = new Hashtable();\n fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Integer.class, new FieldTypeDefinition(\"String_Node_Str\", 10));\n fieldTypeMapping.put(Long.class, new FieldTypeDefinition(\"String_Node_Str\", 19));\n fieldTypeMapping.put(Float.class, new FieldTypeDefinition(\"String_Node_Str\", 19, 4));\n fieldTypeMapping.put(Double.class, new FieldTypeDefinition(\"String_Node_Str\", 19, 4));\n fieldTypeMapping.put(Short.class, new FieldTypeDefinition(\"String_Node_Str\", 5));\n fieldTypeMapping.put(Byte.class, new FieldTypeDefinition(\"String_Node_Str\", 3));\n fieldTypeMapping.put(java.math.BigInteger.class, new FieldTypeDefinition(\"String_Node_Str\", 38));\n fieldTypeMapping.put(java.math.BigDecimal.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Number.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(String.class, new FieldTypeDefinition(\"String_Node_Str\", DEFAULT_VARCHAR_SIZE));\n fieldTypeMapping.put(Character.class, new FieldTypeDefinition(\"String_Node_Str\", 1));\n fieldTypeMapping.put(Byte[].class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Character[].class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(byte[].class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(char[].class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Blob.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Clob.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Date.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Time.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Timestamp.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n return fieldTypeMapping;\n}\n"
"public void safeUpdate() {\n superUpdate();\n EnumFacing dir = world.getBlockState(pos).getValue(BlockSteamHeater.FACING);\n ArrayList<TileEntitySteamHeater> secondaryHeaters = new ArrayList<>();\n BlockPos offsetPos = getOffsetPos(dir);\n TileEntity tile = world.getTileEntity(offsetPos);\n if (tile == null || !(tile instanceof TileEntityFurnace)) {\n return;\n }\n TileEntityFurnace furnace = (TileEntityFurnace) tile;\n int numHeaters = 0;\n isPrimaryHeater = false;\n for (EnumFacing dir2 : EnumFacing.VALUES) {\n int x = pos.getX() + dir.getFrontOffsetX() + dir2.getFrontOffsetX();\n int y = pos.getY() + dir.getFrontOffsetY() + dir2.getFrontOffsetY();\n int z = pos.getZ() + dir.getFrontOffsetZ() + dir2.getFrontOffsetZ();\n BlockPos pos2 = new BlockPos(x, y, z);\n TileEntity tile2 = world.getTileEntity(pos2);\n IBlockState state2 = world.getBlockState(pos2);\n if (tile2 != null) {\n if (tile2 instanceof TileEntitySteamHeater) {\n TileEntitySteamHeater heater2 = (TileEntitySteamHeater) tile2;\n if (heater2.getSteamShare() >= CONSUMPTION && state2.getValue(BlockSteamHeater.FACING).getOpposite() == dir2) {\n isPrimaryHeater = x == pos.getX() && y == pos.getY() && z == pos.getZ();\n secondaryHeaters.add(heater2);\n numHeaters++;\n if (secondaryHeaters.size() > 4) {\n secondaryHeaters.remove(0);\n }\n numHeaters = Math.min(4, numHeaters);\n }\n }\n }\n }\n if (isPrimaryHeater && numHeaters > 0) {\n if (!(furnace instanceof TileEntitySteamFurnace) && furnace.getClass() == TileEntityFurnace.class) {\n replace(furnace);\n }\n if (!(furnace instanceof TileEntitySteamFurnace)) {\n return;\n }\n int furnaceBurnTime = furnace.getField(FURNACE_BURN_TIME_ID);\n int furnaceCookTime = furnace.getField(COOK_TIME_ID);\n if ((furnaceBurnTime == 1 || furnaceBurnTime == 0) && getSteamShare() >= CONSUMPTION && ((TileEntitySteamFurnace) furnace).canSmelt()) {\n if (furnaceBurnTime == 0) {\n BlockFurnace.setState(true, world, offsetPos);\n }\n for (TileEntitySteamHeater heater : secondaryHeaters) {\n heater.decrSteam(CONSUMPTION);\n }\n furnace.setField(0, furnaceBurnTime + 3);\n if (numHeaters > 1 && furnaceCookTime > 0) {\n int newCookTime = Math.min(furnaceCookTime + 2 * numHeaters - 1, 199);\n furnace.setField(COOK_TIME_ID, newCookTime);\n }\n world.notifyBlockUpdate(offsetPos, world.getBlockState(offsetPos), world.getBlockState(offsetPos), 0);\n }\n }\n}\n"
"public ODataResponse readServiceDocument(GetServiceDocumentUriInfo uriInfo, String contentType) throws ODataException {\n final Edm entityDataModel = getContext().getService().getEntityDataModel();\n final String serviceRoot = getContext().getPathInfo().getServiceRoot().toASCIIString();\n final ODataResponse response = EntityProvider.writeServiceDocument(contentType, entityDataModel, serviceRoot);\n final ODataResponseBuilder odataResponseBuilder = ODataResponse.fromResponse(response).header(ODataHttpHeaders.DATASERVICEVERSION, ODataServiceVersion.V10);\n if (isContentTypeUpdateNecessary(contentType, response)) {\n odataResponseBuilder.contentHeader(contentType);\n }\n return odataResponseBuilder.build();\n}\n"
"private void postDeleteEvent(DatabaseWrapper db, String tableName, int rowsAffected) {\n Bus bus = getBus();\n if (bus != null) {\n if (!db.inTransaction()) {\n bus.post(new DatabaseDeleteEvent(tableName, rowsAffected));\n } else {\n addTransactionTableNameChange(tableName);\n }\n }\n}\n"
"public static VmInstance delete(final VmInstance vm) throws TransactionException {\n try {\n if (VmStateSet.DONE.apply(vm)) {\n cache(vm);\n return Transitions.DELETE.apply(vm);\n }\n } catch (final Exception ex) {\n LOG.error(ex, ex);\n }\n return vm;\n}\n"
"public static ContentPayload getMetadataPayload(TransferredResource transferredResource) {\n try {\n Element root = new Element(\"String_Node_Str\");\n org.jdom2.Document doc = new org.jdom2.Document();\n Element child = new Element(\"String_Node_Str\");\n child.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n child.addContent(transferredResource.getName());\n root.addContent(child);\n doc.setRootElement(root);\n XMLOutputter outter = new XMLOutputter();\n outter.setFormat(Format.getPrettyFormat());\n outter.outputString(doc);\n return new StringContentPayload(outter.outputString(doc));\n } catch (IllegalDataException e) {\n LOGGER.debug(\"String_Node_Str\", e.getMessage());\n return new StringContentPayload(\"String_Node_Str\");\n }\n}\n"
"public void getFilterType() {\n NotNullFilter target = new NotNullFilter(ColumnType.NULL);\n assertEquals(target.getFilterType(), FilterType.NOT_NULL);\n}\n"
"private Section createSimpleStatisticsPart(Composite parentComp, String title, SimpleStatIndicator simpleStatIndicator) {\n Section section = createSection(form, parentComp, title, null);\n section.setLayoutData(new GridData(GridData.FILL_BOTH));\n Composite sectionClient = toolkit.createComposite(section);\n sectionClient.setLayout(new GridLayout());\n sectionClient.setLayoutData(new GridData(GridData.FILL_BOTH));\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).applyTo(sectionClient);\n Composite simpleComposite = toolkit.createComposite(sectionClient);\n simpleComposite.setLayout(new GridLayout(2, true));\n simpleComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n createSimpleTable2(form, simpleComposite, simpleStatIndicator);\n section.setClient(sectionClient);\n return section;\n}\n"
"static void read(SBOLDocument doc, String stringBuffer, String URIPrefix) throws IOException, SBOLConversionException, SBOLValidationException {\n so = new SequenceOntology();\n doc.addNamespace(URI.create(GBNAMESPACE), GBPREFIX);\n BufferedReader br = new BufferedReader(new StringReader(stringBuffer));\n String strLine;\n int featureCnt = 0;\n int refCnt = 0;\n while (true) {\n boolean cont = false;\n String id = \"String_Node_Str\";\n String version = \"String_Node_Str\";\n nextLine = null;\n featureMode = false;\n originMode = false;\n StringBuilder sbSequence = new StringBuilder();\n String elements = null;\n String description = \"String_Node_Str\";\n URI type = ComponentDefinition.DNA;\n ComponentDefinition topCD = null;\n List<Annotation> annotations = new ArrayList<Annotation>();\n List<Annotation> nestedAnnotations = null;\n Annotation annotation = null;\n boolean circular = false;\n int baseCount = 0;\n while ((strLine = readGenBankLine(br)) != null) {\n strLine = strLine.trim();\n if (strLine.startsWith(\"String_Node_Str\")) {\n String[] strSplit = strLine.split(\"String_Node_Str\");\n id = strSplit[1];\n annotation = new Annotation(new QName(GBNAMESPACE, LOCUS, GBPREFIX), strSplit[1]);\n annotations.add(annotation);\n baseCount = Integer.parseInt(strSplit[2]);\n if (strSplit[4].toUpperCase().contains(\"String_Node_Str\")) {\n type = ComponentDefinition.RNA;\n }\n annotation = new Annotation(new QName(GBNAMESPACE, MOLECULE, GBPREFIX), strSplit[4]);\n annotations.add(annotation);\n for (int i = 5; i < strSplit.length; i++) {\n if (strSplit[i].startsWith(\"String_Node_Str\") || strSplit[i].startsWith(\"String_Node_Str\")) {\n if (strSplit[i].startsWith(\"String_Node_Str\"))\n circular = true;\n } else if (strSplit[i].length() == 3) {\n annotation = new Annotation(new QName(GBNAMESPACE, DIVISION, GBPREFIX), strSplit[i]);\n } else {\n annotation = new Annotation(new QName(GBNAMESPACE, DATE, GBPREFIX), strSplit[i]);\n }\n annotations.add(annotation);\n }\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n description = strLine.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String[] strSplit = strLine.split(\"String_Node_Str\");\n String accession = strSplit[1];\n id = accession;\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String[] strSplit = strLine.split(\"String_Node_Str\");\n if (strSplit[1].split(\"String_Node_Str\").length > 1) {\n version = strSplit[1].split(\"String_Node_Str\")[1];\n }\n if (!id.equals(strSplit[1]) && !id.equals(strSplit[1].split(\"String_Node_Str\")[0])) {\n throw new SBOLConversionException(\"String_Node_Str\");\n }\n id = id.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (strSplit.length > 2) {\n annotation = new Annotation(new QName(GBNAMESPACE, GINUMBER, GBPREFIX), strSplit[2]);\n annotations.add(annotation);\n }\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n annotation = new Annotation(new QName(GBNAMESPACE, KEYWORDS, GBPREFIX), annotationStr);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n annotation = new Annotation(new QName(GBNAMESPACE, SOURCE, GBPREFIX), annotationStr);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n annotation = new Annotation(new QName(GBNAMESPACE, ORGANISM, GBPREFIX), annotationStr);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n nestedAnnotations = new ArrayList<Annotation>();\n Annotation labelAnnotation = new Annotation(new QName(GBNAMESPACE, LABEL, GBPREFIX), annotationStr);\n nestedAnnotations.add(labelAnnotation);\n URI nestedURI = URI.create(URIPrefix + id + \"String_Node_Str\" + refCnt);\n refCnt++;\n annotation = new Annotation(new QName(GBNAMESPACE, REFERENCE, GBPREFIX), new QName(GBNAMESPACE, NESTEDREFERENCE, GBPREFIX), nestedURI, nestedAnnotations);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n Annotation nestedAnnotation = new Annotation(new QName(GBNAMESPACE, AUTHORS, GBPREFIX), annotationStr);\n nestedAnnotations.add(nestedAnnotation);\n annotation.setAnnotations(nestedAnnotations);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n Annotation nestedAnnotation = new Annotation(new QName(GBNAMESPACE, TITLE, GBPREFIX), annotationStr);\n nestedAnnotations.add(nestedAnnotation);\n annotation.setAnnotations(nestedAnnotations);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n Annotation nestedAnnotation = new Annotation(new QName(GBNAMESPACE, JOURNAL, GBPREFIX), annotationStr);\n nestedAnnotations.add(nestedAnnotation);\n annotation.setAnnotations(nestedAnnotations);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n Annotation nestedAnnotation = new Annotation(new QName(GBNAMESPACE, MEDLINE, GBPREFIX), annotationStr);\n nestedAnnotations.add(nestedAnnotation);\n annotation.setAnnotations(nestedAnnotations);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n Annotation nestedAnnotation = new Annotation(new QName(GBNAMESPACE, PUBMED, GBPREFIX), annotationStr);\n nestedAnnotations.add(nestedAnnotation);\n annotation.setAnnotations(nestedAnnotations);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n annotation = new Annotation(new QName(GBNAMESPACE, COMMENT, GBPREFIX), annotationStr);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n String annotationStr = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n annotation = new Annotation(new QName(GBNAMESPACE, BASECOUNT, GBPREFIX), annotationStr);\n annotations.add(annotation);\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n topCD = doc.createComponentDefinition(id, version, type);\n if (circular) {\n topCD.addType(SequenceOntology.CIRCULAR);\n } else {\n topCD.addType(SequenceOntology.LINEAR);\n }\n topCD.addRole(SequenceOntology.ENGINEERED_REGION);\n if (!\"String_Node_Str\".equals(description)) {\n topCD.setDescription(description);\n }\n topCD.setAnnotations(annotations);\n featureMode = true;\n } else if (strLine.startsWith(\"String_Node_Str\")) {\n originMode = true;\n featureMode = false;\n } else {\n if (featureMode) {\n if (strLine.startsWith(\"String_Node_Str\")) {\n String tag = strLine.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n String value = \"String_Node_Str\";\n if ((-1) != strLine.indexOf('=')) {\n String[] splitStr = strLine.split(\"String_Node_Str\");\n tag = splitStr[0].replace(\"String_Node_Str\", \"String_Node_Str\");\n value = splitStr[1];\n }\n StringBuilder sbValue = new StringBuilder();\n sbValue.append(value);\n if (value.startsWith(\"String_Node_Str\") && !value.endsWith(\"String_Node_Str\")) {\n while (true) {\n strLine = readGenBankLine(br).trim();\n sbValue.append(strLine);\n if (strLine.endsWith(\"String_Node_Str\")) {\n break;\n }\n }\n }\n SequenceAnnotation sa = topCD.getSequenceAnnotation(\"String_Node_Str\" + (featureCnt - 1));\n if (null != sa) {\n if (value.startsWith(\"String_Node_Str\")) {\n value = value.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n annotation = new Annotation(new QName(GBCONVNAMESPACE, tag, GBCONVPREFIX), value);\n } else {\n annotation = new Annotation(new QName(GBCONVNAMESPACE, tag, GBCONVPREFIX), value);\n }\n sa.addAnnotation(annotation);\n }\n } else {\n strLine = strLine.replace(\"String_Node_Str\", \"String_Node_Str\");\n String[] strSplit = strLine.split(\"String_Node_Str\");\n URI role = convertGenBanktoSO(strSplit[0]);\n String range = strSplit[1];\n boolean outerComplement = false;\n OrientationType orientation = OrientationType.INLINE;\n if (range.startsWith(\"String_Node_Str\")) {\n outerComplement = true;\n orientation = OrientationType.REVERSECOMPLEMENT;\n range = range.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (range.startsWith(\"String_Node_Str\") || range.startsWith(\"String_Node_Str\")) {\n String multiType = \"String_Node_Str\";\n if (range.startsWith(\"String_Node_Str\")) {\n multiType = \"String_Node_Str\";\n }\n range = range.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n range = range.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n String[] ranges = range.split(\"String_Node_Str\");\n int rangeCnt = 0;\n SequenceAnnotation sa = null;\n for (String r : ranges) {\n orientation = OrientationType.INLINE;\n if (r.startsWith(\"String_Node_Str\") || outerComplement) {\n orientation = OrientationType.REVERSECOMPLEMENT;\n r = r.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n boolean startLessThan = false;\n boolean endGreaterThan = false;\n if (r.contains(\"String_Node_Str\")) {\n startLessThan = true;\n r = r.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (r.contains(\"String_Node_Str\")) {\n endGreaterThan = true;\n r = r.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n boolean singleBaseRange = false;\n String[] rangeSplit = null;\n if (range.contains(\"String_Node_Str\") && !range.contains(\"String_Node_Str\")) {\n rangeSplit = r.split(\"String_Node_Str\");\n singleBaseRange = true;\n } else {\n rangeSplit = r.split(\"String_Node_Str\");\n }\n int start = Integer.parseInt(rangeSplit[0]);\n int end = Integer.parseInt(rangeSplit[1]);\n Range newRange = null;\n if (rangeCnt == 0) {\n sa = topCD.createSequenceAnnotation(\"String_Node_Str\" + featureCnt, \"String_Node_Str\" + rangeCnt, start, end, orientation);\n sa.addRole(role);\n annotation = new Annotation(new QName(GBNAMESPACE, MULTIRANGETYPE, GBPREFIX), multiType);\n sa.addAnnotation(annotation);\n newRange = (Range) sa.getLocation(\"String_Node_Str\" + rangeCnt);\n } else if (sa != null) {\n newRange = sa.addRange(\"String_Node_Str\" + rangeCnt, start, end, orientation);\n }\n if (outerComplement) {\n annotation = new Annotation(new QName(GBNAMESPACE, POSITION, GBPREFIX), \"String_Node_Str\" + ((ranges.length - 1) - rangeCnt));\n } else {\n annotation = new Annotation(new QName(GBNAMESPACE, POSITION, GBPREFIX), \"String_Node_Str\" + rangeCnt);\n }\n newRange.addAnnotation(annotation);\n if (startLessThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, STARTLESSTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (endGreaterThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, ENDGREATERTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (singleBaseRange) {\n annotation = new Annotation(new QName(GBNAMESPACE, SINGLEBASERANGE, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n rangeCnt++;\n }\n } else if (range.contains(\"String_Node_Str\")) {\n String[] rangeSplit = range.split(\"String_Node_Str\");\n int at = Integer.parseInt(rangeSplit[0]);\n SequenceAnnotation sa = topCD.createSequenceAnnotation(\"String_Node_Str\" + featureCnt, \"String_Node_Str\", at, orientation);\n sa.addRole(role);\n } else {\n boolean startLessThan = false;\n boolean endGreaterThan = false;\n if (range.contains(\"String_Node_Str\")) {\n startLessThan = true;\n range = range.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (range.contains(\"String_Node_Str\")) {\n endGreaterThan = true;\n range = range.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n boolean singleBaseRange = false;\n String[] rangeSplit = null;\n if (range.contains(\"String_Node_Str\") && !range.contains(\"String_Node_Str\")) {\n rangeSplit = range.split(\"String_Node_Str\");\n singleBaseRange = true;\n } else {\n rangeSplit = range.split(\"String_Node_Str\");\n }\n int start = Integer.parseInt(rangeSplit[0]);\n int end = Integer.parseInt(rangeSplit[0]);\n if (rangeSplit.length > 1) {\n end = Integer.parseInt(rangeSplit[1]);\n }\n if (start > end && circular) {\n SequenceAnnotation sa = topCD.createSequenceAnnotation(\"String_Node_Str\" + featureCnt, \"String_Node_Str\", start, baseCount, orientation);\n sa.addRole(role);\n annotation = new Annotation(new QName(GBNAMESPACE, STRADLESORIGIN, GBPREFIX), \"String_Node_Str\");\n sa.addAnnotation(annotation);\n Range newRange = (Range) sa.getLocation(\"String_Node_Str\");\n if (startLessThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, STARTLESSTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (singleBaseRange) {\n annotation = new Annotation(new QName(GBNAMESPACE, SINGLEBASERANGE, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n newRange = sa.addRange(\"String_Node_Str\", 1, end, orientation);\n if (singleBaseRange) {\n annotation = new Annotation(new QName(GBNAMESPACE, SINGLEBASERANGE, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (endGreaterThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, ENDGREATERTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n } else {\n SequenceAnnotation sa = topCD.createSequenceAnnotation(\"String_Node_Str\" + featureCnt, \"String_Node_Str\", start, end, orientation);\n sa.addRole(role);\n Range newRange = (Range) sa.getLocation(\"String_Node_Str\");\n if (startLessThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, STARTLESSTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (endGreaterThan) {\n annotation = new Annotation(new QName(GBNAMESPACE, ENDGREATERTHAN, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n if (singleBaseRange) {\n annotation = new Annotation(new QName(GBNAMESPACE, SINGLEBASERANGE, GBPREFIX), \"String_Node_Str\");\n newRange.addAnnotation(annotation);\n }\n }\n }\n featureCnt++;\n }\n } else if (originMode) {\n if (elements == null) {\n elements = new String(\"String_Node_Str\");\n }\n if (strLine.startsWith(\"String_Node_Str\")) {\n cont = true;\n break;\n }\n String[] strSplit = strLine.split(\"String_Node_Str\");\n for (int i = 1; i < strSplit.length; i++) {\n sbSequence.append(strSplit[i]);\n }\n }\n cont = false;\n }\n }\n if (topCD != null) {\n Sequence sequence = doc.createSequence(id + \"String_Node_Str\", version, sbSequence.toString(), Sequence.IUPAC_DNA);\n topCD.addSequence(sequence);\n createSubComponentDefinitions(doc, topCD, type, sbSequence.toString(), version);\n }\n if (!cont)\n break;\n }\n br.close();\n}\n"
"public void renderReportlet(OutputStream out, HttpServletRequest request, IReportDocument reportDocument, String reportletId, String format, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n AxisFault fault = new AxisFault(BirtResources.getMessage(ResourceConstants.ACTION_EXCEPTION_NO_REPORT_DOCUMENT));\n fault.setFaultCode(new QName(\"String_Node_Str\"));\n throw fault;\n }\n if (out == null)\n return;\n String servletPath = iServletPath;\n if (servletPath == null)\n servletPath = request.getServletPath();\n IRenderTask renderTask = engine.createRenderTask(reportDocument);\n BirtUtility.addTask(request, renderTask);\n HashMap context = new HashMap();\n context.put(EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST, request);\n context.put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, ReportEngineService.class.getClassLoader());\n context.put(EngineConstants.APPCONTEXT_CHART_RESOLUTION, ParameterAccessor.getDpi(request));\n ParameterAccessor.pushAppContext(context, request);\n renderTask.setAppContext(context);\n RenderOption renderOption = null;\n if (format == null)\n format = ParameterAccessor.getFormat(request);\n if (IBirtConstants.PDF_RENDER_FORMAT.equalsIgnoreCase(format) || IBirtConstants.POSTSCRIPT_RENDER_FORMAT.equalsIgnoreCase(format)) {\n renderOption = createPDFRenderOption(servletPath, request, ParameterAccessor.isDesigner(request));\n } else {\n if (!IBirtConstants.HTML_RENDER_FORMAT.equalsIgnoreCase(format))\n svgFlag = false;\n renderOption = createHTMLRenderOption(svgFlag, servletPath, request);\n }\n renderOption.setOutputFormat(format);\n renderOption.setOutputStream(out);\n ViewerHTMLActionHandler handler = null;\n if (IBirtConstants.PDF_RENDER_FORMAT.equalsIgnoreCase(format) || IBirtConstants.POSTSCRIPT_RENDER_FORMAT.equalsIgnoreCase(format)) {\n handler = new ViewerHTMLActionHandler(reportDocument, -1, locale, false, rtl, masterPage, format, new Boolean(svgFlag), ParameterAccessor.getParameter(request, ParameterAccessor.PARAM_DESIGNER));\n } else {\n boolean isEmbeddable = false;\n if (IBirtConstants.SERVLET_PATH_FRAMESET.equalsIgnoreCase(servletPath) || IBirtConstants.SERVLET_PATH_OUTPUT.equalsIgnoreCase(servletPath))\n isEmbeddable = true;\n if (renderOption instanceof IHTMLRenderOption)\n ((IHTMLRenderOption) renderOption).setEmbeddable(isEmbeddable);\n if (IBirtConstants.DOC_RENDER_FORMAT.equalsIgnoreCase(format)) {\n ((IHTMLRenderOption) renderOption).setOption(IHTMLRenderOption.HTML_PAGINATION, Boolean.TRUE);\n }\n renderOption.setOption(IHTMLRenderOption.HTML_RTL_FLAG, new Boolean(rtl));\n renderOption.setOption(IHTMLRenderOption.INSTANCE_ID_LIST, activeIds);\n renderOption.setOption(IHTMLRenderOption.MASTER_PAGE_CONTENT, new Boolean(masterPage));\n handler = new ViewerHTMLActionHandler(reportDocument, -1, locale, isEmbeddable, rtl, masterPage, format, new Boolean(svgFlag), ParameterAccessor.getParameter(request, ParameterAccessor.PARAM_DESIGNER));\n }\n String resourceFolder = ParameterAccessor.getParameter(request, ParameterAccessor.PARAM_RESOURCE_FOLDER);\n handler.setResourceFolder(resourceFolder);\n renderOption.setActionHandler(handler);\n String reportTitle = ParameterAccessor.htmlDecode(ParameterAccessor.getTitle(request));\n if (reportTitle != null)\n renderOption.setOption(IHTMLRenderOption.HTML_TITLE, reportTitle);\n renderTask.setRenderOption(renderOption);\n renderTask.setLocale(locale);\n try {\n if (ParameterAccessor.isIidReportlet(request)) {\n InstanceID instanceId = InstanceID.parse(reportletId);\n renderTask.setInstanceID(instanceId);\n } else {\n renderTask.setReportlet(reportletId);\n }\n renderTask.render();\n } catch (Exception e) {\n AxisFault fault = new AxisFault(e.getLocalizedMessage(), e.getCause());\n fault.setFaultCode(new QName(\"String_Node_Str\"));\n throw fault;\n } finally {\n BirtUtility.removeTask(request);\n if (ParameterAccessor.isDesigner(request))\n BirtUtility.error(request, renderTask.getErrors());\n renderTask.close();\n }\n}\n"
"public Collection<E> mergeAll(Collection<E> entries) {\n if (entries != null && !entries.isEmpty()) {\n try {\n Session session = currentSession();\n int i = 0;\n Iterator<E> iter = entries.iterator();\n while (iter.hasNext()) {\n session.merge(iter.next());\n if (i % batchSize == 0 && flush) {\n session.flush();\n session.clear();\n }\n i++;\n }\n session.flush();\n session.clear();\n } catch (OptimisticLockException e) {\n throw new ConcurrentModificationException(getConcurrentModificationMessage(), e);\n }\n }\n return entries;\n}\n"
"public Data getData() throws DataProcessingException {\n Data input = getPredecessor().getData();\n if (input instanceof DataStartSignal) {\n sum = null;\n getTimer().start();\n if (input != null) {\n if (input instanceof DoubleData) {\n DoubleData data = (DoubleData) input;\n if (sum == null) {\n initMeansSums(data.getValues().length);\n }\n normalize(data);\n } else if (input instanceof DataEndSignal) {\n updateMeanSumBuffers();\n }\n }\n getTimer().stop();\n return input;\n}\n"
"public static TimeItem fromString(String code) {\n String[] items = code.split(\"String_Node_Str\");\n if (items.length != 4)\n return null;\n int hour, minute;\n try {\n hour = Integer.parseInt(items[2]);\n minute = Integer.parseInt(items[3]);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return null;\n }\n return new TimeItem(emptyToNull(items[0]), emptyToNull(items[1]), hour, minute);\n}\n"
"public void testPolicy() throws Exception {\n final Configuration configuration = new DefaultConfiguration();\n final Path target = Paths.get(TARGET_FILE);\n final Path rolled = Paths.get(ROLLED_FILE);\n Files.deleteIfExists(target);\n Files.deleteIfExists(rolled);\n final InputStream is = new ByteArrayInputStream(TEST_DATA.getBytes(\"String_Node_Str\"));\n Files.copy(is, target);\n is.close();\n final long size = Files.size(target);\n assertTrue(size > 0);\n final PatternLayout layout = PatternLayout.newBuilder().withPattern(\"String_Node_Str\").withConfiguration(configuration).build();\n final RolloverStrategy strategy = DefaultRolloverStrategy.createStrategy(null, null, null, \"String_Node_Str\", null, true, configuration);\n final OnStartupTriggeringPolicy policy = OnStartupTriggeringPolicy.createPolicy(1);\n final RollingFileManager manager = RollingFileManager.getFileManager(TARGET_FILE, TARGET_PATTERN, true, false, policy, strategy, null, layout, 8192, true);\n manager.initialize();\n assertTrue(Files.exists(target));\n assertTrue(Files.size(target) == 0);\n assertTrue(Files.exists(rolled));\n assertTrue(Files.size(rolled) == size);\n}\n"
"private static final boolean invalidateReceiverLookupCaches(final ExecutionVertex failedVertex, final Set<ExecutionVertex> verticesToBeCanceled) {\n final Map<AbstractInstance, Set<ChannelID>> entriesToInvalidate = new HashMap<AbstractInstance, Set<ChannelID>>();\n final ExecutionGraph eg = failedVertex.getExecutionGraph();\n final Environment env = failedVertex.getEnvironment();\n for (int i = 0; i < env.getNumberOfOutputGates(); ++i) {\n final OutputGate<? extends Record> outputGate = env.getOutputGate(i);\n for (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n final AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n if (outputChannel.getType() == ChannelType.FILE) {\n continue;\n }\n final ChannelID connectedChannelID = outputChannel.getConnectedChannelID();\n final ExecutionVertex connectedVertex = eg.getVertexByChannelID(connectedChannelID);\n if (connectedVertex == null) {\n LOG.error(\"String_Node_Str\");\n continue;\n }\n if (verticesToBeCanceled.contains(connectedVertex)) {\n continue;\n }\n final AbstractInstance instance = connectedVertex.getAllocatedResource().getInstance();\n Set<ChannelID> channelIDs = entriesToInvalidate.get(instance);\n if (channelIDs == null) {\n channelIDs = new SerializableHashSet<ChannelID>();\n entriesToInvalidate.put(instance, channelIDs);\n }\n channelIDs.add(outputChannel.getID());\n }\n }\n for (int i = 0; i < env.getNumberOfInputGates(); ++i) {\n final InputGate<? extends Record> inputGate = env.getInputGate(i);\n for (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n final AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n if (inputChannel.getType() == ChannelType.FILE) {\n continue;\n }\n final ExecutionVertex connectedVertex = eg.getVertexByChannelID(inputChannel.getConnectedChannelID());\n if (connectedVertex == null) {\n LOG.error(\"String_Node_Str\");\n continue;\n }\n if (verticesToBeCanceled.contains(connectedVertex)) {\n continue;\n }\n final AbstractInstance instance = connectedVertex.getAllocatedResource().getInstance();\n Set<ChannelID> channelIDs = entriesToInvalidate.get(instance);\n if (channelIDs == null) {\n channelIDs = new SerializableHashSet<ChannelID>();\n entriesToInvalidate.put(instance, channelIDs);\n }\n channelIDs.add(inputChannel.getID());\n }\n }\n final Iterator<Map.Entry<AbstractInstance, Set<ChannelID>>> it = entriesToInvalidate.entrySet().iterator();\n while (it.hasNext()) {\n final Map.Entry<AbstractInstance, Set<ChannelID>> entry = it.next();\n final AbstractInstance instance = entry.getKey();\n try {\n instance.invalidateLookupCacheEntries(entry.getValue());\n } catch (IOException ioe) {\n LOG.error(StringUtils.stringifyException(ioe));\n return false;\n }\n }\n return true;\n}\n"
"public Permit createNew(String name) {\n SemaphoreConfig config = nodeEngine.getConfig().getSemaphoreConfig(name);\n int partitionId = nodeEngine.getPartitionService().getPartitionId(StringPartitioningStrategy.getPartitionKey(name));\n return new Permit(partitionId, new SemaphoreConfig(config));\n}\n"
"public void checkPrivileges(HiveOperationType hiveOpType, List<HivePrivilegeObject> inputHObjs, List<HivePrivilegeObject> outputHObjs, HiveAuthzContext context) throws HiveAuthzPluginException, HiveAccessControlException {\n UserGroupInformation ugi = getCurrentUserGroupInfo();\n if (ugi == null) {\n throw new HiveAccessControlException(\"String_Node_Str\");\n }\n RangerHiveAuditHandler auditHandler = new RangerHiveAuditHandler();\n try {\n HiveAuthzSessionContext sessionContext = getHiveAuthzSessionContext();\n String user = ugi.getShortUserName();\n Set<String> groups = Sets.newHashSet(ugi.getGroupNames());\n if (LOG.isDebugEnabled()) {\n LOG.debug(toString(hiveOpType, inputHObjs, outputHObjs, context, sessionContext));\n }\n if (hiveOpType == HiveOperationType.DFS) {\n handleDfsCommand(hiveOpType, inputHObjs, outputHObjs, context, sessionContext, user, groups, auditHandler);\n return;\n }\n List<RangerHiveAccessRequest> requests = new ArrayList<RangerHiveAccessRequest>();\n if (inputHObjs != null) {\n for (HivePrivilegeObject hiveObj : inputHObjs) {\n RangerHiveResource resource = getHiveResource(hiveOpType, hiveObj);\n if (resource.getObjectType() == HiveObjectType.URI) {\n String path = hiveObj.getObjectName();\n FsAction permission = FsAction.READ;\n if (!isURIAccessAllowed(user, groups, permission, path, getHiveConf())) {\n throw new HiveAccessControlException(String.format(\"String_Node_Str\", user, permission.name(), path));\n }\n continue;\n }\n HiveAccessType accessType = getAccessType(hiveObj, hiveOpType, true);\n if (accessType == HiveAccessType.NONE) {\n continue;\n }\n if (!existsByResourceAndAccessType(requests, resource, accessType)) {\n RangerHiveAccessRequest request = new RangerHiveAccessRequest(resource, user, groups, hiveOpType, accessType, context, sessionContext);\n requests.add(request);\n }\n }\n }\n if (outputHObjs != null) {\n for (HivePrivilegeObject hiveObj : outputHObjs) {\n RangerHiveResource resource = getHiveResource(hiveOpType, hiveObj);\n if (resource.getObjectType() == HiveObjectType.URI) {\n String path = hiveObj.getObjectName();\n FsAction permission = FsAction.WRITE;\n if (!isURIAccessAllowed(user, groups, permission, path, getHiveConf())) {\n throw new HiveAccessControlException(String.format(\"String_Node_Str\", user, permission.name(), path));\n }\n continue;\n }\n HiveAccessType accessType = getAccessType(hiveObj, hiveOpType, false);\n if (accessType == HiveAccessType.NONE) {\n continue;\n }\n if (!existsByResourceAndAccessType(requests, resource, accessType)) {\n RangerHiveAccessRequest request = new RangerHiveAccessRequest(resource, user, groups, hiveOpType, accessType, context, sessionContext);\n requests.add(request);\n }\n }\n }\n for (RangerHiveAccessRequest request : requests) {\n RangerHiveResource resource = (RangerHiveResource) request.getResource();\n RangerAccessResult result = null;\n if (resource.getObjectType() == HiveObjectType.COLUMN && StringUtils.contains(resource.getColumn(), COLUMN_SEP)) {\n List<RangerAccessRequest> colRequests = new ArrayList<RangerAccessRequest>();\n String[] columns = StringUtils.split(resource.getColumn(), COLUMN_SEP);\n for (String column : columns) {\n if (column != null) {\n column = column.trim();\n }\n if (StringUtils.isEmpty(column)) {\n continue;\n }\n RangerHiveResource colResource = new RangerHiveResource(HiveObjectType.COLUMN, resource.getDatabase(), resource.getTable(), column);\n RangerHiveAccessRequest colRequest = request.copy();\n colRequest.setResource(colResource);\n colRequests.add(colRequest);\n }\n Collection<RangerAccessResult> colResults = hivePlugin.isAccessAllowed(colRequests, auditHandler);\n if (colResults != null) {\n for (RangerAccessResult colResult : colResults) {\n result = colResult;\n if (!result.getIsAllowed()) {\n break;\n }\n }\n }\n } else {\n result = hivePlugin.isAccessAllowed(request, auditHandler);\n }\n if (result != null && !result.getIsAllowed()) {\n String path = resource != null ? resource.getAsString(result.getServiceDef()) : null;\n throw new HiveAccessControlException(String.format(\"String_Node_Str\", user, request.getHiveAccessType().name(), path));\n }\n }\n } finally {\n auditHandler.flushAudit();\n }\n}\n"
"private void player(Player player, String[] args) {\n World dim = player.getWorld();\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n if (!player.hasPermission(\"String_Node_Str\")) {\n return;\n }\n String weather = dim.isRaining() ? dim.isThundering() ? \"String_Node_Str\" : \"String_Node_Str\" : \"String_Node_Str\";\n player.message(Colors.YELLOW + Translator.translateAndFormat(\"String_Node_Str\", weather));\n return;\n }\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n if (!player.hasPermission(\"String_Node_Str\")) {\n return;\n }\n dim.setRaining(true);\n dim.setRainTime(new Random().nextInt(15000));\n player.message(Colors.YELLOW + Translator.translate(\"String_Node_Str\"));\n return;\n }\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n if (!player.hasPermission(\"String_Node_Str\")) {\n return;\n }\n dim.setThundering(true);\n dim.setThunderTime(new Random().nextInt(15000));\n player.message(Colors.YELLOW + Translator.translate(\"String_Node_Str\"));\n return;\n }\n if (args[1].matches(\"String_Node_Str\")) {\n if (!player.hasPermission(\"String_Node_Str\")) {\n return;\n }\n dim.setRaining(false);\n dim.setRainTime(0);\n dim.setThundering(false);\n dim.setThunderTime(0);\n player.message(Colors.YELLOW + Translator.translate(\"String_Node_Str\"));\n return;\n } else {\n Canary.help().getHelp(player, \"String_Node_Str\");\n }\n}\n"
"public static CharSequence escapteConditionValue(CharSequence s) {\n if (null == s)\n return null;\n return ES_CND_VAL.escape(s);\n}\n"
"private static void jj_la1_init_3() {\n jj_la1_3 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xc, 0x0, 0x0, 0xe, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe };\n}\n"
"public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX, float pTouchAreaLocalY) {\n if (currentScreen < screenCount - 1) {\n currentScreen++;\n entityToFollow.registerEntityModifier(new MoveXModifier(0.5f, entityToFollow.getX(), currentScreen * camera.getWidth() + camera.getWidth() / 2));\n if (currentScreen == screenCount - 1) {\n rightArrow.setVisible(false);\n }\n leftArrow.setVisible(true);\n }\n}\n"
"public void handleCreate(ServerContext context, CreateRequest request, ResultHandler<Resource> handler) {\n try {\n String objectClass = getObjectClass(context);\n RequestHandler delegate = objectClassHandlers.get(objectClass);\n if (null != delegate) {\n delegate.handleCreate(context, request, handler);\n } else {\n handler.handleError(new NotFoundException(\"String_Node_Str\" + objectClass));\n }\n } catch (ResourceException e) {\n handler.handleError(e);\n } catch (Exception e) {\n handler.handleError(new InternalServerErrorException(e.getMessage(), e));\n }\n}\n"
"public static void FixPlusCal(Token[][] spec, boolean isTeX) {\n if (!hasPcal) {\n return;\n }\n if (Parameters.CommentShading && Parameters.NoPlusCalShading && (pcalEnd.line < spec.length) && (pcalEnd.item < spec[pcalEnd.line].length)) {\n Token tok = pcalEnd.toToken(spec);\n if (tok.type == Token.COMMENT) {\n CommentToken ctok = (CommentToken) tok;\n if (ctok.string.trim().equals(\"String_Node_Str\")) {\n int rsubtype = ctok.rsubtype;\n Token[] newline = new Token[spec[pcalEnd.line].length - 1];\n int j = 0;\n for (int i = 0; i < spec[pcalEnd.line].length; i++) {\n if (i != pcalEnd.item) {\n newline[j] = spec[pcalEnd.line][i];\n j++;\n }\n }\n if (rsubtype == CommentToken.NORMAL) {\n spec[pcalEnd.line] = newline;\n } else {\n if (rsubtype == CommentToken.BEGIN_OVERRUN) {\n Token next = spec[pcalEnd.line + 1][0];\n int nextLine = pcalEnd.line + 1;\n while ((next != null) && (next.type == CommentToken.COMMENT) && (((CommentToken) next).rsubtype == CommentToken.OVERRUN) && (next.string.trim().equals(\"String_Node_Str\"))) {\n nextLine++;\n if (spec[nextLine + 1].length > 0) {\n next = spec[nextLine][0];\n } else {\n next = null;\n }\n }\n if ((next != null) && (next.type == CommentToken.COMMENT) && (next.string.trim().equals(\"String_Node_Str\")) && (((CommentToken) next).rsubtype == CommentToken.END_OVERRUN)) {\n spec[pcalEnd.line] = newline;\n for (int i = pcalEnd.line + 1; i < nextLine; i++) {\n spec[i] = new Token[0];\n }\n newline = new Token[spec[nextLine].length - 1];\n System.arraycopy(spec[nextLine], 1, newline, 0, spec[nextLine].length - 1);\n spec[nextLine] = newline;\n }\n }\n }\n }\n }\n }\n if (!isCSyntax) {\n return;\n }\n Position pos = pcalStart;\n boolean beginningOfAlgorithm = !isTeX;\n if (isTeX && pos != null) {\n String firstString = pos.toToken(spec).string;\n if (firstString.equals(\"String_Node_Str\") || firstString.equals(\"String_Node_Str\")) {\n beginningOfAlgorithm = true;\n }\n }\n if (beginningOfAlgorithm) {\n while ((pos != null) && ((pos.toToken(spec).type != Token.BUILTIN) || (!pos.toToken(spec).string.equals(\"String_Node_Str\")))) {\n pos = nextTokenPos(pos, spec);\n }\n }\n if (pos != null) {\n pos = ProcessPcalBrace(pos, spec, isTeX);\n }\n while (isTeX && (pos != null)) {\n pos = ProcessPcalBrace(pos, spec, isTeX);\n }\n}\n"
"protected void arcImpl(float x, float y, float w, float h, float start, float stop, int mode) {\n if (stop - start >= TWO_PI) {\n ellipseImpl(x, y, w, h);\n } else {\n start = start * RAD_TO_DEG;\n stop = stop * RAD_TO_DEG;\n while (start < 0) {\n start += 360;\n stop += 360;\n }\n if (start > stop) {\n float temp = start;\n start = stop;\n stop = temp;\n }\n float sweep = stop - start;\n rect.set(x, y, x + w, y + h);\n if (mode == 0) {\n if (fill) {\n canvas.drawArc(rect, start, sweep, true, fillPaint);\n }\n if (stroke) {\n canvas.drawArc(rect, start, sweep, false, strokePaint);\n }\n } else if (mode == OPEN) {\n if (fill) {\n canvas.drawArc(rect, start, sweep, false, fillPaint);\n canvas.drawArc(rect, start, sweep, false, strokePaint);\n }\n if (stroke) {\n canvas.drawArc(rect, start, sweep, false, strokePaint);\n }\n } else if (mode == CHORD) {\n showMissingWarning(\"String_Node_Str\");\n } else if (mode == PIE) {\n if (fill) {\n canvas.drawArc(rect, start, sweep, true, fillPaint);\n }\n if (stroke) {\n canvas.drawArc(rect, start, sweep, true, strokePaint);\n }\n }\n }\n}\n"
"public void onDifferent(Record record1, Record record2, MatchResult matchResult) {\n if (LOGGER.isInfoEnabled()) {\n LOGGER.info(\"String_Node_Str\" + record1.getId() + \"String_Node_Str\" + record2.getId());\n }\n if (LOGGER.isDebugEnabled()) {\n StringBuilder messagesBuilder = new StringBuilder();\n int i = 0;\n for (MatchResult.Score score : matchResult.getScores()) {\n Float threshold = matchResult.getThresholds().get(i);\n String compareSymbol;\n if (score.score < threshold) {\n compareSymbol = \"String_Node_Str\";\n } else {\n compareSymbol = \"String_Node_Str\";\n }\n messagesBuilder.append(\"String_Node_Str\").append(score.algorithm.getComponentValue()).append(\"String_Node_Str\").append(score.values[0]).append(\"String_Node_Str\").append(score.values[1]).append(\"String_Node_Str\").append(score.score).append(\"String_Node_Str\").append(compareSymbol).append(\"String_Node_Str\").append(threshold).append(\"String_Node_Str\");\n i++;\n }\n messagesBuilder.append('\\n');\n messagesBuilder.append(\"String_Node_Str\").append(matchResult.getNormalizedConfidence());\n messagesBuilder.append(\"String_Node_Str\").append(matchResult.getMinConfidenceValue()).append(\"String_Node_Str\");\n LOGGER.debug(messagesBuilder.toString());\n }\n}\n"
"private static int getMode(char c, String code, int i) {\n switch(c) {\n case '\"':\n return STRING;\n case '\\'':\n return CHAR;\n case '/':\n char n = code.charAt(i + 1);\n if (n == '*') {\n return BLOCK_COMMENT;\n } else if (n == '/') {\n return LINE_COMMENT;\n } else {\n return IDENTIFIER | MOD_SYMBOL;\n }\n case '@':\n n = code.charAt(i + 1);\n if (n == '\"') {\n return STRING_2;\n }\n return IDENTIFIER | MOD_SYMBOL;\n case '0':\n n = code.charAt(i + 1);\n if (n == 'b') {\n return INT | MOD_BIN;\n } else if (n == 'x') {\n return INT | MOD_HEX;\n } else if (isDigit(n)) {\n return INT | MOD_OCT;\n }\n return INT;\n case '(':\n return Symbols.OPEN_PARENTHESIS;\n case ')':\n return Symbols.CLOSE_PARENTHESIS;\n case '[':\n return Symbols.OPEN_SQUARE_BRACKET;\n case ']':\n return Symbols.CLOSE_SQUARE_BRACKET;\n case '{':\n return Symbols.OPEN_CURLY_BRACKET;\n case '}':\n return Symbols.CLOSE_CURLY_BRACKET;\n case '.':\n n = code.charAt(i + 1);\n if (n == '.') {\n return IDENTIFIER | MOD_DOTS;\n }\n return Symbols.DOT;\n case ';':\n return SEMICOLON;\n case ',':\n return COMMA;\n }\n if (isDigit(c)) {\n return INT;\n } else if (isIdentifierSymbol(c)) {\n return IDENTIFIER | MOD_SYMBOL;\n } else if (isIdentifierPart(c)) {\n return IDENTIFIER | MOD_LETTER;\n }\n return 0;\n}\n"
"private void save() {\n int selIdx = comboBox.getSelectedIndex();\n if (selIdx == -1) {\n return;\n }\n String language = null;\n if (selIdx >= 1) {\n language = languages[selIdx - 1];\n }\n String key = list.getSelectedValue().toString();\n String val = txtArea.getText();\n messageProps.setProperty(key, val);\n try {\n fconfig.getMessageResource().save(messageProps, language);\n } catch (FtpException ex) {\n GuiUtils.showErrorMessage(this, \"String_Node_Str\");\n }\n}\n"
"private void initialize() {\n this.classWriter = new JvmClassWriter(\"String_Node_Str\" + Weel.scriptCounter.getAndIncrement());\n this.weel.scriptClasses.add(this.classWriter.className);\n final Scope s = new Scope(this.weel, ScopeType.STATIC);\n s.block = new CodeBlock(this.classWriter.createMethod(\"String_Node_Str\", \"String_Node_Str\"));\n this.addScope(s);\n}\n"
"public boolean getFileInformation(DownloadLink downloadLink) throws IOException {\n if (downloadLink.getDownloadURL().matches(\"String_Node_Str\"))\n return true;\n downloadLink.setUrlDownload(downloadLink.getDownloadURL().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n downloadLink.setUrlDownload(downloadLink.getDownloadURL().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n br.setFollowRedirects(true);\n br.getPage(downloadLink.getDownloadURL());\n if (br.containsHTML(NOT_AVAILABLE) && !br.containsHTML(\"String_Node_Str\")) {\n br.setFollowRedirects(false);\n return false;\n } else if (br.containsHTML(SERVER_DOWN)) {\n br.setFollowRedirects(false);\n return false;\n } else {\n String fileName = Encoding.htmlDecode(new Regex(br.toString().replaceAll(\"String_Node_Str\", \"String_Node_Str\"), FILENAME).getMatch(0));\n String fileSize = new Regex(br.toString(), FILESIZE).getMatch(-1);\n downloadLink.setName(fileName);\n downloadLink.setDownloadSize(Regex.getSize(fileSize));\n }\n br.setFollowRedirects(false);\n return true;\n}\n"
"private void reset() {\n multiplicityFieldsAllMissing = true;\n previousPosition = -1;\n previousTargetIndex = -1;\n deltaPositions.clear();\n deltaTargetIndices.clear();\n queryLengths.clear();\n mappingQualities.clear();\n matchingReverseStrand.clear();\n multiplicity.clear();\n numberOfIndels.clear();\n queryAlignedLengths.clear();\n targetAlignedLengths.clear();\n numberOfMismatches.clear();\n queryIndices.clear();\n queryPositions.clear();\n fragmentIndices.clear();\n queryIndices.clear();\n variationCount.clear();\n varPositions.clear();\n fromLengths.clear();\n toLengths.clear();\n varReadIndex.clear();\n varFromTo.clear();\n varQuals.clear();\n varQualIndex = 0;\n varPositionIndex = 0;\n varFromToIndex = 0;\n varToQualLength.clear();\n varToQualsLength = 0;\n multiplicities.clear();\n countAggregatedWithMultiplicity = 0;\n previousPartial = null;\n deltaPosIndex = 0;\n pairLinks.reset();\n forwardSpliceLinks.reset();\n backwardSpliceLinks.reset();\n}\n"
"protected void handleServiceUnregistering(ServiceReference serviceReference) {\n RemoteServiceAdmin rsa = (RemoteServiceAdmin) getRemoteServiceAdmin();\n if (rsa != null) {\n List<RemoteServiceAdmin.ExportRegistration> exportedRegistrations = ((RemoteServiceAdmin) getRemoteServiceAdmin()).getExportedRegistrations();\n for (RemoteServiceAdmin.ExportRegistration exportedRegistration : exportedRegistrations) {\n if (exportedRegistration.match(serviceReference)) {\n trace(\"String_Node_Str\", \"String_Node_Str\" + serviceReference);\n exportedRegistration.close();\n }\n }\n }\n}\n"
"public void generateTraitsPhase3(int methodInitScope, boolean isInterface, String className, String superName, boolean generateStatic, SourceGeneratorLocalData localData, List<GraphTargetItem> items, Traits ts, Trait[] traits, Map<Trait, Integer> initScopes, Reference<Integer> class_index) throws AVM2ParseException, CompilationException {\n for (int k = 0; k < items.size(); k++) {\n GraphTargetItem item = items.get(k);\n if (traits[k] == null) {\n continue;\n }\n if (item instanceof InterfaceAVM2Item) {\n generateClass(((InterfaceAVM2Item) item).namespace, abc.class_info.get(((TraitClass) traits[k]).class_info), abc.instance_info.get(((TraitClass) traits[k]).class_info), initScopes.get(traits[k]), ((InterfaceAVM2Item) item).pkg, localData, (InterfaceAVM2Item) item, class_index);\n }\n if (item instanceof ClassAVM2Item) {\n generateClass(((ClassAVM2Item) item).namespace, abc.class_info.get(((TraitClass) traits[k]).class_info), abc.instance_info.get(((TraitClass) traits[k]).class_info), initScopes.get(traits[k]), ((ClassAVM2Item) item).pkg, localData, (ClassAVM2Item) item, class_index);\n }\n if ((item instanceof MethodAVM2Item) || (item instanceof GetterAVM2Item) || (item instanceof SetterAVM2Item)) {\n MethodAVM2Item mai = (MethodAVM2Item) item;\n if (mai.isStatic() != generateStatic) {\n continue;\n }\n ((TraitMethodGetterSetter) traits[k]).method_info = method(abc.constants.getStringId(mai.functionName, true), false, isInterface, new ArrayList<>(), mai.pkg, mai.needsActivation, mai.subvariables, methodInitScope + (mai.isStatic() ? 0 : 1), mai.hasRest, mai.line, className, superName, false, localData, mai.paramTypes, mai.paramNames, mai.paramValues, mai.body, mai.retType);\n } else if (item instanceof FunctionAVM2Item) {\n FunctionAVM2Item fai = (FunctionAVM2Item) item;\n ((TraitFunction) traits[k]).method_info = method(false, isInterface, new ArrayList<>(), fai.pkg, fai.needsActivation, fai.subvariables, methodInitScope, fai.hasRest, fai.line, className, superName, false, localData, fai.paramTypes, fai.paramNames, fai.paramValues, fai.body, fai.retType);\n }\n }\n}\n"
"public static void retrieve(Context context, Listener listener) {\n Application application = (Application) context.getApplicationContext();\n FrontCameraRetriever frontCameraRetriever = new FrontCameraRetriever(listener);\n UniqueActivityLifecycleCallbacks callbacks = UniqueActivityLifecycleCallbacks.newInstance(activity, frontCameraRetriever);\n application.registerActivityLifecycleCallbacks(callbacks);\n frontCameraRetriever.cameraStrategy = new ActuallyGetCameraStrategy();\n if (!RETRIEVERS.isEmpty()) {\n FrontCameraRetriever latestRetriever = RETRIEVERS.get(RETRIEVERS.size() - 1);\n if (latestRetriever != null) {\n latestRetriever.cameraStrategy = new DontGetCameraStrategy();\n }\n }\n RETRIEVERS.add(frontCameraRetriever);\n}\n"
"public List<Object[]> transform(List<Object[]> tuples) {\n FixedArrayList correlationParams = new FixedArrayList(batchSize);\n int tupleOffset = batchSize > 1 ? 1 : 0;\n Iterator<Object[]> tupleListIter = tuples.iterator();\n final String correlationRoot = applyAndGetCorrelationRoot(expectBatchCorrelationValues);\n if (viewRootJpqlMacro.usesViewRoot()) {\n int totalSize = tuples.size();\n Map<Object, Map<Object, TuplePromise>> viewRoots = new HashMap<Object, Map<Object, TuplePromise>>(totalSize);\n Map<Object, Map<Object, TuplePromise>> correlationValues = new HashMap<Object, Map<Object, TuplePromise>>(totalSize);\n while (tupleListIter.hasNext()) {\n Object[] tuple = tupleListIter.next();\n Object viewRootKey = tuple[0];\n Object correlationValueKey = tuple[startIndex];\n Map<Object, TuplePromise> viewRootCorrelationValues = viewRoots.get(viewRootKey);\n if (viewRootCorrelationValues == null) {\n viewRootCorrelationValues = new HashMap<Object, TuplePromise>();\n viewRoots.put(viewRootKey, viewRootCorrelationValues);\n }\n TuplePromise viewRootPromise = viewRootCorrelationValues.get(correlationValueKey);\n if (viewRootPromise == null) {\n viewRootPromise = new TuplePromise(startIndex);\n viewRootCorrelationValues.put(correlationValueKey, viewRootPromise);\n }\n viewRootPromise.add(tuple);\n Map<Object, TuplePromise> correlationValueViewRoots = correlationValues.get(correlationValueKey);\n if (correlationValueViewRoots == null) {\n correlationValueViewRoots = new HashMap<Object, TuplePromise>();\n correlationValues.put(correlationValueKey, correlationValueViewRoots);\n }\n TuplePromise correlationValuePromise = correlationValueViewRoots.get(viewRootKey);\n if (correlationValuePromise == null) {\n correlationValuePromise = new TuplePromise(startIndex);\n correlationValueViewRoots.put(viewRootKey, correlationValuePromise);\n }\n correlationValuePromise.add(tuple);\n }\n boolean batchCorrelationValues = viewRoots.size() <= correlationValues.size();\n FixedArrayList viewRootIds = new FixedArrayList(batchSize);\n if (batchCorrelationValues) {\n if (batchSize > 1) {\n if (!expectBatchCorrelationValues) {\n applyAndGetCorrelationRoot(true);\n }\n criteriaBuilder.select(correlationKeyExpression);\n }\n correlator.finish(criteriaBuilder, entityViewConfiguration, tupleOffset, correlationRoot);\n query = criteriaBuilder.getQuery();\n for (Map.Entry<Object, Map<Object, TuplePromise>> batchEntry : viewRoots.entrySet()) {\n Map<Object, TuplePromise> batchValues = batchEntry.getValue();\n for (Map.Entry<Object, TuplePromise> batchValueEntry : batchValues.entrySet()) {\n if (correlationBasisEntity != null) {\n correlationParams.add(em.getReference(correlationBasisEntity, batchValueEntry.getKey()));\n } else {\n correlationParams.add(batchValueEntry.getKey());\n }\n if (batchSize == correlationParams.realSize()) {\n viewRootIds.add(batchEntry.getKey());\n batchLoad(batchValues, correlationParams, viewRootIds, correlationParams.get(0), true);\n }\n }\n if (correlationParams.realSize() > 0) {\n viewRootIds.add(batchEntry.getKey());\n batchLoad(batchValues, correlationParams, viewRootIds, null, true);\n }\n }\n fillDefaultValues(viewRoots);\n } else {\n if (batchSize > 1) {\n if (expectBatchCorrelationValues) {\n applyAndGetCorrelationRoot(false);\n }\n criteriaBuilder.select(correlationKeyExpression);\n }\n correlator.finish(criteriaBuilder, entityViewConfiguration, tupleOffset, correlationRoot);\n query = criteriaBuilder.getQuery();\n for (Map.Entry<Object, Map<Object, TuplePromise>> batchEntry : correlationValues.entrySet()) {\n Map<Object, TuplePromise> batchValues = batchEntry.getValue();\n for (Map.Entry<Object, TuplePromise> batchValueEntry : batchValues.entrySet()) {\n viewRootIds.add(batchValueEntry.getKey());\n if (batchSize == viewRootIds.realSize()) {\n if (correlationBasisEntity != null) {\n correlationParams.add(criteriaBuilder.getEntityManager().getReference(correlationBasisEntity, batchEntry.getKey()));\n } else {\n correlationParams.add(batchEntry.getKey());\n }\n batchLoad(batchValues, correlationParams, viewRootIds, viewRootIds.get(0), false);\n }\n }\n if (viewRootIds.realSize() > 0) {\n if (correlationBasisEntity != null) {\n correlationParams.add(criteriaBuilder.getEntityManager().getReference(correlationBasisEntity, batchEntry.getKey()));\n } else {\n correlationParams.add(batchEntry.getKey());\n }\n batchLoad(batchValues, correlationParams, viewRootIds, null, false);\n }\n }\n fillDefaultValues(correlationValues);\n }\n } else {\n if (batchSize > 1) {\n if (!expectBatchCorrelationValues) {\n applyAndGetCorrelationRoot(true);\n }\n criteriaBuilder.select(correlationKeyExpression);\n }\n correlator.finish(criteriaBuilder, entityViewConfiguration, tupleOffset, correlationRoot);\n query = criteriaBuilder.getQuery();\n Map<Object, TuplePromise> correlationValues = new HashMap<Object, TuplePromise>(tuples.size());\n while (tupleListIter.hasNext()) {\n Object[] tuple = tupleListIter.next();\n Object correlationValue = tuple[startIndex];\n TuplePromise tupleIndexValue = correlationValues.get(correlationValue);\n if (tupleIndexValue == null) {\n tupleIndexValue = new TuplePromise(startIndex);\n tupleIndexValue.add(tuple);\n correlationValues.put(correlationValue, tupleIndexValue);\n if (correlationBasisEntity != null) {\n correlationParams.add(criteriaBuilder.getEntityManager().getReference(correlationBasisEntity, tuple[startIndex]));\n } else {\n correlationParams.add(tuple[startIndex]);\n }\n if (batchSize == correlationParams.realSize()) {\n batchLoad(correlationValues, correlationParams, null, correlationParams.get(0), batchSize > 1);\n }\n } else {\n tupleIndexValue.add(tuple);\n }\n }\n if (correlationParams.realSize() > 0) {\n batchLoad(correlationValues, correlationParams, null, null, correlationParams.realSize() > 1);\n }\n fillDefaultValues(Collections.singletonMap(null, correlationValues));\n }\n return tuples;\n}\n"
"public void clear() throws IOException {\n bufferPos = 0;\n Arrays.fill(buffer, null);\n if (diskList != null) {\n diskList.clear();\n}\n"
"private void emptyGroupIdQueue() {\n List<PwPair> pwPairs = new ArrayList<>();\n for (String groupId : mGroupIdQueue) {\n Log.d(TAG, \"String_Node_Str\" + groupId);\n pwPairs.add(Utils.getTopRankedPwPairByGroupId(mPwCollection, groupId));\n }\n Collections.sort(pwPairs, Collections.reverseOrder());\n for (PwPair pwPair : pwPairs) {\n mNearbyDeviceAdapter.addItem(pwPair);\n }\n mGroupIdQueue.clear();\n notifyChangeOnUiThread();\n}\n"
"protected IPropertySource<?> doCreatePropSource(XSDSimpleTypeDefinition simpleType, Composite cellEditorParent, Object sourceFacetValue) {\n if (Util.isDouble(simpleType) || Util.isDecimal(simpleType) || Util.isFloat(simpleType)) {\n return new SimpleTypeFacetDoublePropertySource(cellEditorParent, IConstants.SIMPLETYPE_FACETNAME_MAXEXCLUSIVE, toDoubleQuietly(sourceFacetValue));\n }\n return new SimpleTypeFacetIntegerPropertySource(cellEditorParent, IConstants.SIMPLETYPE_FACETNAME_MAXEXCLUSIVE, (Integer) sourceFacetValue);\n}\n"
"protected void onPostExecute(final Object[] result) {\n if (isCancelled())\n return;\n if (result != null) {\n if (result.length > 0) {\n HashMap<?, ?> contentHash = new HashMap<Object, Object>();\n Vector<HashMap<?, ?>> dbVector = new Vector<HashMap<?, ?>>();\n if (!loadMore) {\n WordPress.wpDB.deleteUploadedPosts(WordPress.currentBlog.getId(), isPage);\n }\n for (int ctr = 0; ctr < result.length; ctr++) {\n HashMap<String, Object> dbValues = new HashMap<String, Object>();\n contentHash = (HashMap<?, ?>) result[ctr];\n dbValues.put(\"String_Node_Str\", WordPress.currentBlog.getBlogId());\n dbVector.add(ctr, contentHash);\n }\n WordPress.wpDB.savePosts(dbVector, WordPress.currentBlog.getId(), isPage);\n numRecords += 20;\n if (loadMore)\n switcher.showPrevious();\n loadPosts(loadMore);\n } else {\n if (pla != null) {\n if (postIDs.length == 2) {\n try {\n WordPress.wpDB.deleteUploadedPosts(WordPress.currentBlog.getId(), WordPress.currentPost.isPage());\n onPostActionListener.onPostAction(Posts.POST_CLEAR, WordPress.currentPost);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n onRefreshListener.onRefresh(false);\n } else {\n onRefreshListener.onRefresh(false);\n if (errorMsg != \"String_Node_Str\") {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n WPAlertDialogFragment alert = WPAlertDialogFragment.newInstance(errorMsg);\n alert.show(ft, \"String_Node_Str\");\n errorMsg = \"String_Node_Str\";\n }\n }\n }\n };\n getActivity().runOnUiThread(action);\n}\n"
"public List<Map<K, Object>> findErrorValuesByFilter(long beginTime, long endTime, boolean serverSide, int aggregationPeriod, Long errorId, String filter, Map<String, List<String>> filters) {\n final List<String> errorKeys = KeyGeneratorUtil.generateErrorValuesKeys(serverSide, filters, filter);\n Map<K, Map<Long, String>> findItems = findItems((List<K>) errorKeys, beginTime, endTime);\n List<Map<K, Object>> result = new ArrayList<Map<K, Object>>();\n Set<Entry<K, Map<Long, String>>> entrySet = findItems.entrySet();\n for (Entry<K, Map<Long, String>> findItemSet : entrySet) {\n Map<Long, String> value = findItemSet.getValue();\n Set<Entry<Long, String>> entrySet2 = value.entrySet();\n for (Entry<Long, String> findItemSet2 : entrySet2) {\n Map<K, Object> row = new HashMap<K, Object>();\n row.put((K) \"String_Node_Str\", findItemSet2.getKey());\n result.add(row);\n }\n }\n return result;\n}\n"
"public void setMessage(String message) {\n if (_messageArea == null) {\n _messageArea = new JTextArea(message);\n _messageArea.setFont(new Font(\"String_Node_Str\", Font.PLAIN, 12));\n _messageArea.setEditable(false);\n _messageArea.setLineWrap(true);\n _messageArea.setWrapStyleWord(true);\n _messageArea.setBackground(getBackground());\n _messageArea.setAlignmentX(0.0f);\n _messagePanel.setLayout(new BoxLayout(_messagePanel, BoxLayout.Y_AXIS));\n _messagePanel.add(_messageArea);\n _messagePanel.add(Box.createRigidArea(new Dimension(0, 10)));\n } else {\n _messageArea.setText(message);\n }\n validate();\n}\n"
"public IdDt setValue(String theValue) throws DataFormatException {\n super.setValue(theValue);\n myHaveComponentParts = false;\n if (StringUtils.isBlank(theValue)) {\n myBaseUrl = null;\n super.setValue(null);\n myUnqualifiedId = null;\n myUnqualifiedVersionId = null;\n myResourceType = null;\n } else if (theValue.charAt(0) == '#' && theValue.length() > 1) {\n super.setValue(theValue);\n myBaseUrl = null;\n myUnqualifiedId = theValue;\n myUnqualifiedVersionId = null;\n myResourceType = null;\n myHaveComponentParts = true;\n } else if (theValue.startsWith(\"String_Node_Str\")) {\n myBaseUrl = null;\n myUnqualifiedId = theValue;\n myUnqualifiedVersionId = null;\n myResourceType = null;\n myHaveComponentParts = true;\n } else {\n int vidIndex = theValue.indexOf(\"String_Node_Str\");\n int idIndex;\n if (vidIndex != -1) {\n myUnqualifiedVersionId = theValue.substring(vidIndex + \"String_Node_Str\".length());\n idIndex = theValue.lastIndexOf('/', vidIndex - 1);\n myUnqualifiedId = theValue.substring(idIndex + 1, vidIndex);\n } else {\n idIndex = theValue.lastIndexOf('/');\n myUnqualifiedId = theValue.substring(idIndex + 1);\n myUnqualifiedVersionId = null;\n }\n myBaseUrl = null;\n if (idIndex <= 0) {\n myResourceType = null;\n } else {\n int typeIndex = theValue.lastIndexOf('/', idIndex - 1);\n if (typeIndex == -1) {\n myResourceType = theValue.substring(0, idIndex);\n } else {\n if (typeIndex > 0 && '/' == theValue.charAt(typeIndex - 1)) {\n typeIndex = theValue.indexOf('/', typeIndex + 1);\n }\n if (typeIndex >= idIndex) {\n myResourceType = myUnqualifiedId;\n myUnqualifiedId = null;\n super.setValue(null);\n myHaveComponentParts = true;\n } else {\n myResourceType = theValue.substring(typeIndex + 1, idIndex);\n }\n if (typeIndex > 4) {\n myBaseUrl = theValue.substring(0, typeIndex);\n }\n }\n }\n }\n return this;\n}\n"
"private void handleSwitchCase(final SwitchCase switchCase) {\n if (switchCase.getStatements() == null) {\n return;\n }\n final List<AstNode> newStatements = Lists.newArrayList();\n for (final AstNode statement : switchCase.getStatements()) {\n final int lineNr = getActualLineNumber(statement);\n data.addExecutableLine(lineNr, switchCase.getLength());\n newStatements.add(newInstrumentationNode(lineNr));\n newStatements.add(statement);\n }\n switchCase.setStatements(newStatements);\n}\n"
"private boolean generateInlineCode(VM_MethodReference methodToBeCalled) {\n VM_Atom methodName = methodToBeCalled.getName();\n if (methodToBeCalled.getType() == VM_TypeReference.SysCall) {\n VM_TypeReference[] args = methodToBeCalled.getParameterTypes();\n int paramWords = methodToBeCalled.getParameterWords();\n int gp = FIRST_OS_PARAMETER_GPR;\n int fp = FIRST_OS_PARAMETER_FPR;\n int stackIndex = paramWords;\n int paramBytes = (VM.BuildFor64Addr ? args.length : paramWords) * BYTES_IN_STACKSLOT;\n int callee_param_index = -BYTES_IN_STACKSLOT - paramBytes;\n for (int i = 0; i < args.length; i++) {\n VM_TypeReference t = args[i];\n if (t.isLongType()) {\n stackIndex -= 2;\n callee_param_index += BYTES_IN_LONG;\n if (VM.BuildFor64Addr) {\n if (gp <= LAST_OS_PARAMETER_GPR) {\n peekLong(gp, gp, stackIndex);\n gp++;\n } else {\n peekLong(S0, S0, stackIndex);\n asm.emitSTD(S0, callee_param_index - BYTES_IN_LONG, FP);\n }\n } else {\n gp += (gp + 1) & 0x01;\n if (gp <= LAST_OS_PARAMETER_GPR) {\n peekInt(gp++, stackIndex);\n }\n if (gp <= LAST_OS_PARAMETER_GPR) {\n peekInt(gp++, stackIndex + 1);\n } else {\n peekLong(S0, S1, stackIndex);\n asm.emitSTW(S0, callee_param_index - BYTES_IN_LONG, FP);\n asm.emitSTW(S1, callee_param_index - BYTES_IN_INT, FP);\n }\n }\n } else if (t.isFloatType()) {\n stackIndex -= 1;\n callee_param_index += BYTES_IN_STACKSLOT;\n if (fp <= LAST_OS_PARAMETER_FPR) {\n peekFloat(fp++, stackIndex);\n } else {\n peekFloat(FIRST_SCRATCH_FPR, stackIndex);\n asm.emitSTFS(FIRST_SCRATCH_FPR, callee_param_index - BYTES_IN_FLOAT, FP);\n }\n } else if (t.isDoubleType()) {\n stackIndex -= 2;\n callee_param_index += BYTES_IN_DOUBLE;\n if (fp <= LAST_OS_PARAMETER_FPR) {\n peekDouble(fp++, stackIndex);\n } else {\n peekDouble(FIRST_SCRATCH_FPR, stackIndex);\n asm.emitSTFD(FIRST_SCRATCH_FPR, callee_param_index - BYTES_IN_DOUBLE, FP);\n }\n } else if (t.isIntLikeType()) {\n stackIndex -= 1;\n callee_param_index += BYTES_IN_STACKSLOT;\n if (gp <= LAST_OS_PARAMETER_GPR) {\n peekInt(gp++, stackIndex);\n } else {\n peekInt(S0, stackIndex);\n asm.emitSTAddr(S0, callee_param_index - BYTES_IN_ADDRESS, FP);\n }\n } else {\n stackIndex -= 1;\n callee_param_index += BYTES_IN_STACKSLOT;\n if (gp <= LAST_OS_PARAMETER_GPR) {\n peekAddr(gp++, stackIndex);\n } else {\n peekAddr(S0, stackIndex);\n asm.emitSTAddr(S0, callee_param_index - BYTES_IN_ADDRESS, FP);\n }\n }\n }\n if (VM.VerifyAssertions) {\n VM._assert(stackIndex == 0);\n }\n VM_Field ip = VM_Entrypoints.getSysCallField(methodName.toString());\n generateSysCall(paramBytes, ip);\n discardSlots(paramWords);\n VM_TypeReference rtype = methodToBeCalled.getReturnType();\n if (rtype.isIntLikeType()) {\n pushInt(T0);\n } else if (rtype.isWordType() || rtype.isReferenceType()) {\n pushAddr(T0);\n } else if (rtype.isDoubleType()) {\n pushDouble(FIRST_OS_PARAMETER_FPR);\n } else if (rtype.isFloatType()) {\n pushFloat(FIRST_OS_PARAMETER_FPR);\n } else if (rtype.isLongType()) {\n pushLong(T0, VM.BuildFor64Addr ? T0 : T1);\n }\n } else if (methodName == VM_MagicNames.getFramePointer) {\n pushAddr(FP);\n } else if (methodName == VM_MagicNames.getCallerFramePointer) {\n popAddr(T0);\n asm.emitLAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0);\n pushAddr(T1);\n } else if (methodName == VM_MagicNames.setCallerFramePointer) {\n popAddr(T1);\n popAddr(T0);\n asm.emitSTAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0);\n } else if (methodName == VM_MagicNames.getCompiledMethodID) {\n popAddr(T0);\n asm.emitLInt(T1, STACKFRAME_METHOD_ID_OFFSET, T0);\n pushInt(T1);\n } else if (methodName == VM_MagicNames.setCompiledMethodID) {\n popInt(T1);\n popAddr(T0);\n asm.emitSTW(T1, STACKFRAME_METHOD_ID_OFFSET, T0);\n } else if (methodName == VM_MagicNames.getNextInstructionAddress) {\n popAddr(T0);\n asm.emitLAddr(T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0);\n pushAddr(T1);\n } else if (methodName == VM_MagicNames.setNextInstructionAddress) {\n popAddr(T1);\n popAddr(T0);\n asm.emitSTAddr(T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0);\n } else if (methodName == VM_MagicNames.getReturnAddressLocation) {\n popAddr(T0);\n asm.emitLAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0);\n asm.emitADDI(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T1);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC) {\n pushAddr(JTOC);\n } else if (methodName == VM_MagicNames.getProcessorRegister) {\n pushAddr(PROCESSOR_REGISTER);\n } else if (methodName == VM_MagicNames.setProcessorRegister) {\n popAddr(PROCESSOR_REGISTER);\n } else if (methodName == VM_MagicNames.getTimeBase) {\n if (VM.BuildFor64Addr) {\n asm.emitMFTB(T1);\n } else {\n int label = asm.getMachineCodeIndex();\n asm.emitMFTBU(T0);\n asm.emitMFTB(T1);\n asm.emitMFTBU(T2);\n asm.emitCMP(T0, T2);\n asm.emitBC(NE, label);\n }\n pushLong(T0, T1);\n } else if (methodName == VM_MagicNames.invokeMain) {\n popAddr(T0);\n asm.emitMTCTR(T0);\n peekAddr(T0, 0);\n asm.emitBCCTRL();\n discardSlot();\n } else if (methodName == VM_MagicNames.invokeClassInitializer) {\n popAddr(T0);\n asm.emitMTCTR(T0);\n asm.emitBCCTRL();\n } else if (methodName == VM_MagicNames.invokeMethodReturningVoid) {\n generateMethodInvocation();\n } else if (methodName == VM_MagicNames.invokeMethodReturningInt) {\n generateMethodInvocation();\n pushInt(T0);\n } else if (methodName == VM_MagicNames.invokeMethodReturningLong) {\n generateMethodInvocation();\n pushLong(T0, VM.BuildFor64Addr ? T0 : T1);\n } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) {\n generateMethodInvocation();\n pushFloat(F0);\n } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) {\n generateMethodInvocation();\n pushDouble(F0);\n } else if (methodName == VM_MagicNames.invokeMethodReturningObject) {\n generateMethodInvocation();\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.addressArrayCreate) {\n VM_Array type = methodToBeCalled.getType().resolve().asArray();\n emit_resolved_newarray(type);\n } else if (methodName == VM_MagicNames.addressArrayLength) {\n emit_arraylength();\n } else if (methodName == VM_MagicNames.addressArrayGet) {\n if (VM.BuildFor32Addr || methodToBeCalled.getType() == VM_TypeReference.CodeArray) {\n emit_iaload();\n } else {\n genBoundsCheck();\n asm.emitSLDI(T1, T1, LOG_BYTES_IN_ADDRESS);\n asm.emitLAddrX(T2, T0, T1);\n pushAddr(T2);\n }\n } else if (methodName == VM_MagicNames.addressArraySet) {\n if (VM.BuildFor32Addr || methodToBeCalled.getType() == VM_TypeReference.CodeArray) {\n emit_iastore();\n } else {\n popAddr(T2);\n genBoundsCheck();\n asm.emitSLDI(T1, T1, LOG_BYTES_IN_ADDRESS);\n asm.emitSTAddrX(T2, T0, T1);\n }\n } else if (methodName == VM_MagicNames.getIntAtOffset) {\n popInt(T1);\n popAddr(T0);\n asm.emitLIntX(T0, T1, T0);\n pushInt(T0);\n } else if (methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset) {\n popInt(T1);\n popAddr(T0);\n asm.emitLAddrX(T0, T1, T0);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.getByteAtOffset) {\n popInt(T1);\n popAddr(T0);\n asm.emitLBZX(T0, T1, T0);\n pushInt(T0);\n } else if (methodName == VM_MagicNames.getCharAtOffset) {\n popInt(T1);\n popAddr(T0);\n asm.emitLHZX(T0, T1, T0);\n pushInt(T0);\n } else if (methodName == VM_MagicNames.setIntAtOffset) {\n popInt(T2);\n popInt(T1);\n popAddr(T0);\n asm.emitSTWX(T2, T1, T0);\n } else if (methodName == VM_MagicNames.setObjectAtOffset || methodName == VM_MagicNames.setWordAtOffset) {\n popAddr(T2);\n popInt(T1);\n popAddr(T0);\n asm.emitSTAddrX(T2, T1, T0);\n } else if (methodName == VM_MagicNames.setByteAtOffset) {\n popInt(T2);\n popInt(T1);\n popAddr(T0);\n asm.emitSTBX(T2, T1, T0);\n } else if (methodName == VM_MagicNames.setCharAtOffset) {\n popInt(T2);\n popInt(T1);\n popAddr(T0);\n asm.emitSTHX(T2, T1, T0);\n } else if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) {\n popInt(T2);\n popAddr(T1);\n asm.emitLFDX(F0, T1, T2);\n pushDouble(F0);\n } else if ((methodName == VM_MagicNames.setLongAtOffset) || (methodName == VM_MagicNames.setDoubleAtOffset)) {\n popLong(T3, T2);\n popInt(T1);\n popAddr(T0);\n if (VM.BuildFor32Addr) {\n asm.emitSTWX(T3, T1, T0);\n asm.emitADDI(T1, BYTES_IN_INT, T1);\n asm.emitSTWX(T2, T1, T0);\n } else {\n asm.emitSTDX(T2, T1, T0);\n }\n } else if (methodName == VM_MagicNames.getMemoryInt) {\n popAddr(T0);\n asm.emitLInt(T0, 0, T0);\n pushInt(T0);\n } else if (methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) {\n popAddr(T0);\n asm.emitLAddr(T0, 0, T0);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.setMemoryInt) {\n popInt(T1);\n popAddr(T0);\n asm.emitSTW(T1, 0, T0);\n } else if (methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) {\n popAddr(T1);\n popAddr(T0);\n asm.emitSTAddr(T1, 0, T0);\n } else if (methodName == VM_MagicNames.prepareInt) {\n popInt(T1);\n popAddr(T0);\n if (VM.BuildForSingleVirtualProcessor) {\n asm.emitLWZX(T0, T1, T0);\n } else {\n asm.emitLWARX(T0, T1, T0);\n }\n pushInt(T0);\n } else if (methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) {\n popInt(T1);\n popAddr(T0);\n if (VM.BuildForSingleVirtualProcessor) {\n asm.emitLAddrX(T0, T1, T0);\n } else {\n if (VM.BuildFor32Addr) {\n asm.emitLWARX(T0, T1, T0);\n } else {\n asm.emitLDARX(T0, T1, T0);\n }\n }\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.attemptInt) {\n popInt(T2);\n discardSlot();\n popInt(T1);\n popAddr(T0);\n if (VM.BuildForSingleVirtualProcessor) {\n asm.emitSTWX(T2, T1, T0);\n asm.emitLVAL(T0, 1);\n pushInt(T0);\n } else {\n asm.emitSTWCXr(T2, T1, T0);\n asm.emitLVAL(T0, 0);\n VM_ForwardReference fr = asm.emitForwardBC(NE);\n asm.emitLVAL(T0, 1);\n fr.resolve(asm);\n pushAddr(T0);\n }\n } else if (methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) {\n popAddr(T2);\n discardSlot();\n popInt(T1);\n popAddr(T0);\n if (VM.BuildForSingleVirtualProcessor) {\n asm.emitSTAddrX(T2, T1, T0);\n asm.emitLVAL(T0, 1);\n pushAddr(T0);\n } else {\n if (VM.BuildFor32Addr) {\n asm.emitSTWCXr(T2, T1, T0);\n } else {\n asm.emitSTDCXr(T2, T1, T0);\n }\n asm.emitLVAL(T0, 0);\n VM_ForwardReference fr = asm.emitForwardBC(NE);\n asm.emitLVAL(T0, 1);\n fr.resolve(asm);\n pushInt(T0);\n }\n } else if (methodName == VM_MagicNames.saveThreadState) {\n peekAddr(T0, 0);\n asm.emitLAddrToc(S0, VM_Entrypoints.saveThreadStateInstructionsField.getOffset());\n asm.emitMTCTR(S0);\n asm.emitBCCTRL();\n discardSlot();\n } else if (methodName == VM_MagicNames.threadSwitch) {\n peekAddr(T1, 0);\n peekAddr(T0, 1);\n asm.emitLAddrToc(S0, VM_Entrypoints.threadSwitchInstructionsField.getOffset());\n asm.emitMTCTR(S0);\n asm.emitBCCTRL();\n discardSlots(2);\n } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) {\n peekAddr(T0, 0);\n asm.emitLAddrToc(S0, VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffset());\n asm.emitMTLR(S0);\n asm.emitBCLR();\n } else if (methodName == VM_MagicNames.returnToNewStack) {\n peekAddr(FP, 0);\n asm.emitLAddr(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP);\n asm.emitMTLR(S0);\n asm.emitBCLR();\n } else if (methodName == VM_MagicNames.dynamicBridgeTo) {\n if (VM.VerifyAssertions)\n VM._assert(klass.isDynamicBridge());\n peekAddr(T0, 0);\n asm.emitMTCTR(T0);\n int offset = frameSize;\n for (int i = LAST_NONVOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i) asm.emitLFD(i, offset -= BYTES_IN_DOUBLE, FP);\n for (int i = LAST_NONVOLATILE_GPR; i >= FIRST_NONVOLATILE_GPR; --i) asm.emitLAddr(i, offset -= BYTES_IN_ADDRESS, FP);\n offset -= (FIRST_NONVOLATILE_GPR - LAST_VOLATILE_GPR - 1) * BYTES_IN_ADDRESS;\n for (int i = LAST_VOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) asm.emitLAddr(i, offset -= BYTES_IN_ADDRESS, FP);\n asm.emitLAddr(FP, 0, FP);\n asm.emitLAddr(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP);\n asm.emitMTLR(S0);\n asm.emitBCCTR();\n } else if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) {\n } else if (methodName == VM_MagicNames.getObjectType) {\n popAddr(T0);\n VM_ObjectModel.baselineEmitLoadTIB(asm, T0, T0);\n asm.emitLAddr(T0, TIB_TYPE_INDEX << LOG_BYTES_IN_ADDRESS, T0);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.getArrayLength) {\n popAddr(T0);\n asm.emitLInt(T0, VM_ObjectModel.getArrayLengthOffset(), T0);\n pushInt(T0);\n } else if (methodName == VM_MagicNames.sync) {\n asm.emitSYNC();\n } else if (methodName == VM_MagicNames.isync) {\n asm.emitISYNC();\n } else if (methodName == VM_MagicNames.dcbst) {\n popAddr(T0);\n asm.emitDCBST(0, T0);\n } else if (methodName == VM_MagicNames.icbi) {\n popAddr(T0);\n asm.emitICBI(0, T0);\n } else if (methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) {\n } else if (methodName == VM_MagicNames.wordToLong) {\n asm.emitLVAL(T0, 0);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromIntSignExtend) {\n if (VM.BuildFor64Addr) {\n popInt(T0);\n pushAddr(T0);\n }\n } else if (methodName == VM_MagicNames.wordFromIntZeroExtend) {\n if (VM.BuildFor64Addr) {\n asm.emitLWZ(T0, spTopOffset + BYTES_IN_STACKSLOT - BYTES_IN_INT, FP);\n pokeAddr(T0, 0);\n }\n } else if (methodName == VM_MagicNames.wordFromLong) {\n discardSlot();\n } else if (methodName == VM_MagicNames.wordAdd) {\n if (VM.BuildFor64Addr && (methodToBeCalled.getParameterTypes()[0] == VM_TypeReference.Int)) {\n popInt(T0);\n } else {\n popAddr(T0);\n }\n popAddr(T1);\n asm.emitADD(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) {\n if (VM.BuildFor64Addr && (methodToBeCalled.getParameterTypes()[0] == VM_TypeReference.Int)) {\n popInt(T0);\n } else {\n popAddr(T0);\n }\n popAddr(T1);\n asm.emitSUBFC(T2, T0, T1);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordEQ) {\n generateAddrComparison(false, EQ);\n } else if (methodName == VM_MagicNames.wordNE) {\n generateAddrComparison(false, NE);\n } else if (methodName == VM_MagicNames.wordLT) {\n generateAddrComparison(false, LT);\n } else if (methodName == VM_MagicNames.wordLE) {\n generateAddrComparison(false, LE);\n } else if (methodName == VM_MagicNames.wordGT) {\n generateAddrComparison(false, GT);\n } else if (methodName == VM_MagicNames.wordGE) {\n generateAddrComparison(false, GE);\n } else if (methodName == VM_MagicNames.wordsLT) {\n generateAddrComparison(true, LT);\n } else if (methodName == VM_MagicNames.wordsLE) {\n generateAddrComparison(true, LE);\n } else if (methodName == VM_MagicNames.wordsGT) {\n generateAddrComparison(true, GT);\n } else if (methodName == VM_MagicNames.wordsGE) {\n generateAddrComparison(true, GE);\n } else if (methodName == VM_MagicNames.wordIsZero) {\n asm.emitLVAL(T0, 0);\n pushAddr(T0);\n generateAddrComparison(false, EQ);\n } else if (methodName == VM_MagicNames.wordIsMax) {\n asm.emitLVAL(T0, -1);\n pushAddr(T0);\n generateAddrComparison(false, EQ);\n } else if (methodName == VM_MagicNames.wordZero) {\n asm.emitLVAL(T0, 0);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.wordOne) {\n asm.emitLVAL(T0, 1);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.wordMax) {\n asm.emitLVAL(T0, -1);\n pushAddr(T0);\n } else if (methodName == VM_MagicNames.wordAnd) {\n popAddr(T0);\n popAddr(T1);\n asm.emitAND(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordOr) {\n popAddr(T0);\n popAddr(T1);\n asm.emitOR(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordNot) {\n popAddr(T0);\n asm.emitLVAL(T1, -1);\n asm.emitXOR(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordXor) {\n popAddr(T0);\n popAddr(T1);\n asm.emitXOR(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordLsh) {\n popInt(T0);\n popAddr(T1);\n asm.emitSLAddr(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordRshl) {\n popInt(T0);\n popAddr(T1);\n asm.emitSRAddr(T2, T1, T0);\n pushAddr(T2);\n } else if (methodName == VM_MagicNames.wordRsha) {\n popInt(T0);\n popAddr(T1);\n asm.emitSRA_Addr(T2, T1, T0);\n pushAddr(T2);\n } else {\n return false;\n }\n return true;\n}\n"
"private boolean isApacheWebServerNodeTypeCompatible(QName nodeTypeId) {\n if (nodeTypeId.equals(this.apacheNodeType)) {\n return true;\n }\n if (nodeTypeId.toString().equals(this.apacheNodeTypeTOSCASpecificType.toString())) {\n return true;\n }\n return false;\n}\n"
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n super.configure(name, params);\n _capacityPerSSVM = NumbersUtil.parseInt(_configDao.getValue(Config.SecStorageSessionMax.key()), DEFAULT_SS_VM_CAPACITY);\n _standbyCapacity = NumbersUtil.parseInt(_configDao.getValue(Config.SecStorageCapacityStandby.key()), DEFAULT_STANDBY_CAPACITY);\n int nMaxExecutionMinutes = NumbersUtil.parseInt(_configDao.getValue(Config.SecStorageCmdExecutionTimeMax.key()), 30);\n _maxExecutionTimeMs = nMaxExecutionMinutes * 60 * 1000;\n hostSearch = _hostDao.createSearchBuilder();\n hostSearch.and(\"String_Node_Str\", hostSearch.entity().getDataCenterId(), Op.EQ);\n hostSearch.and(\"String_Node_Str\", hostSearch.entity().getStatus(), Op.EQ);\n activeCommandSearch = _cmdExecLogDao.createSearchBuilder();\n activeCommandSearch.and(\"String_Node_Str\", activeCommandSearch.entity().getCreated(), Op.GTEQ);\n activeCommandSearch.join(\"String_Node_Str\", hostSearch, activeCommandSearch.entity().getInstanceId(), hostSearch.entity().getId(), JoinType.INNER);\n hostSearch.done();\n activeCommandSearch.done();\n return true;\n}\n"
"public void setSMSSending(SMS sms) {\n Validate.notNull(sms);\n logger.log(Level.FINE, \"String_Node_Str\", sms);\n sms.setStatus(SMS.Status.SENDING);\n valuedSupport.fireEventOccured(Events.SENDING_SMS, sms);\n}\n"
"public static String joinArguments(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n boolean firstTime = true;\n for (Object token : tokens) {\n if (firstTime) {\n firstTime = false;\n } else {\n sb.append(delimiter);\n }\n sb.append(convertValueToString(token, false));\n }\n return sb.toString();\n}\n"
"public static Set<Class<?>> scanModules(Class<?> mainModule) {\n Modules ann = mainModule.getAnnotation(Modules.class);\n boolean scan = null == ann ? false : ann.scanPackage();\n List<Class<?>> list = new LinkedList<Class<?>>();\n list.add(mainModule);\n if (null != ann) {\n for (Class<?> module : ann.value()) {\n list.add(module);\n }\n }\n Set<Class<?>> modules = new HashSet<Class<?>>();\n if (null != ann && ann.packages() != null && ann.packages().length > 0) {\n for (String packageName : ann.packages()) scanModuleInPackage(modules, packageName);\n }\n for (Class<?> type : list) {\n if (scan) {\n URL location = type.getProtectionDomain().getCodeSource().getLocation();\n if (log.isDebugEnabled())\n log.debugf(\"String_Node_Str\", location);\n Scans.me().registerLocation(location);\n scanModuleInPackage(modules, type.getPackage().getName());\n } else {\n if (isModule(type)) {\n if (log.isDebugEnabled())\n log.debugf(\"String_Node_Str\", type.getName());\n modules.add(type);\n } else if (log.isTraceEnabled()) {\n log.tracef(\"String_Node_Str\", type.getName());\n }\n }\n }\n return modules;\n}\n"
"protected void inflateView(Context context) {\n LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n myView = (LinearLayout) vi.inflate(R.layout.gregorian_date_widget, null);\n addView(myView);\n}\n"
"public synchronized void unloadFarChunks() {\n if (!(this.getSession().getPlayer() instanceof GlowPlayer)) {\n return;\n }\n ChunkLocation playerChunk = new ChunkLocation(this.getSession().getPlayer().getLocation().getBlockX() / 16, this.getSession().getPlayer().getLocation().getBlockZ() / 16);\n ArrayList<ChunkLocation> toUnload = new ArrayList<>();\n for (ChunkLocation loc : this.chunksLoaded) {\n if (loc.distanceTo(playerChunk) > 16) {\n toUnload.add(loc);\n System.out.println(\"String_Node_Str\" + playerChunk.toString() + \"String_Node_Str\" + loc.toString() + \"String_Node_Str\" + loc.distanceTo(playerChunk));\n }\n }\n UnloadChunkPacket pkUnloadChunk;\n for (ChunkLocation locUnload : toUnload) {\n this.unloadChunk(locUnload.getX(), locUnload.getZ());\n }\n this.chunksLoaded.removeAll(toUnload);\n}\n"
"public static Map<String, Object> sendAuthRequestToOrigServer(HttpServletRequest request, HttpServletResponse response, String cookieURL) {\n Map<String, Object> origRequestData = new HashMap<String, Object>();\n if (utilDebug.messageEnabled()) {\n StringBuilder message = new StringBuilder();\n Enumeration<String> requestHeaders = request.getHeaderNames();\n while (requestHeaders.hasMoreElements()) {\n String name = requestHeaders.nextElement();\n Enumeration value = (Enumeration) request.getHeaders(name);\n message.append(\"String_Node_Str\").append(name).append(\"String_Node_Str\").append(value).append(\"String_Node_Str\");\n }\n utilDebug.message(message.toString());\n }\n HttpURLConnection conn = null;\n OutputStream out = null;\n String strCookies = null;\n URL authURL = null;\n try {\n String queryString = request.getQueryString();\n if (queryString != null) {\n authURL = new URL(cookieURL + \"String_Node_Str\" + queryString);\n } else {\n authURL = new URL(cookieURL);\n }\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\" + authURL);\n }\n conn = HttpURLConnectionManager.getConnection(authURL);\n conn.setUseCaches(useCache);\n conn.setFollowRedirects(false);\n conn.setInstanceFollowRedirects(false);\n conn.setRequestProperty(ISAuthConstants.ACCEPT_LANG_HEADER, request.getHeader(ISAuthConstants.ACCEPT_LANG_HEADER));\n conn.setRequestProperty(\"String_Node_Str\", request.getHeader(\"String_Node_Str\"));\n List<Cookie> cookies = removeLocalLoadBalancingCookie(asList(request.getCookies()));\n strCookies = getCookiesString(cookies);\n if (strCookies != null) {\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\" + strCookies);\n }\n conn.setRequestProperty(\"String_Node_Str\", strCookies);\n }\n utilDebug.message(\"String_Node_Str\");\n copyRequestHeaders(request, conn);\n if (request.getMethod().equals(\"String_Node_Str\")) {\n conn.connect();\n } else {\n Map<String, Set<String>> queryParams = new HashMap<String, Set<String>>();\n if (queryString != null) {\n for (String param : queryString.split(\"String_Node_Str\")) {\n int idx = param.indexOf('=');\n if (idx != -1) {\n String paramName = param.substring(0, idx);\n String paramValue = param.substring(idx + 1);\n Set<String> values = queryParams.get(paramName);\n if (values == null) {\n values = new HashSet<String>();\n queryParams.put(paramName, values);\n }\n values.add(paramValue);\n }\n }\n }\n conn.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n Map<String, String[]> params = request.getParameterMap();\n Map<String, Set<String>> postParams = new HashMap<String, Set<String>>();\n for (Map.Entry<String, String[]> entry : params.entrySet()) {\n if (queryParams.containsKey(entry.getKey())) {\n } else {\n Set<String> values = new HashSet<String>();\n for (String value : entry.getValue()) {\n values.add(getCharDecodedField(value, \"String_Node_Str\"));\n }\n postParams.put(entry.getKey(), values);\n }\n }\n String postData = getFormData(postParams);\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\" + postData);\n }\n if (postData.trim().length() > 0) {\n conn.setDoOutput(true);\n conn.setRequestMethod(\"String_Node_Str\");\n out = conn.getOutputStream();\n PrintWriter pw = new PrintWriter(out);\n pw.print(postData);\n pw.flush();\n pw.close();\n }\n }\n utilDebug.message(\"String_Node_Str\");\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\", conn.getResponseCode(), conn.getResponseMessage());\n }\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n StringBuilder in_buf = new StringBuilder();\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"String_Node_Str\"));\n int len;\n char[] buf = new char[1024];\n while ((len = in.read(buf, 0, buf.length)) != -1) {\n in_buf.append(buf, 0, len);\n }\n String in_string = in_buf.toString();\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\" + in_string);\n }\n origRequestData.put(\"String_Node_Str\", in_string);\n } else {\n utilDebug.warning(\"String_Node_Str\");\n }\n String client_type = conn.getHeaderField(\"String_Node_Str\");\n if (client_type != null) {\n origRequestData.put(\"String_Node_Str\", client_type);\n }\n String redirect_url = conn.getHeaderField(\"String_Node_Str\");\n if (redirect_url != null) {\n try {\n URL gotoURL = new URL(redirect_url);\n if (isSameServer(authURL, gotoURL)) {\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\");\n }\n String path = gotoURL.getPath();\n String query = gotoURL.getQuery();\n redirect_url = (path != null ? path : \"String_Node_Str\") + (query != null ? \"String_Node_Str\" + gotoURL.getQuery() : \"String_Node_Str\");\n }\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\" + redirect_url);\n }\n origRequestData.put(\"String_Node_Str\", redirect_url);\n } catch (MalformedURLException murle) {\n origRequestData.put(\"String_Node_Str\", redirect_url);\n }\n }\n String content_type = conn.getHeaderField(\"String_Node_Str\");\n if (content_type != null) {\n origRequestData.put(\"String_Node_Str\", content_type);\n }\n origRequestData.put(\"String_Node_Str\", conn.getResponseCode());\n copyResponseHeaders(conn.getHeaderFields(), response);\n } catch (IOException ioe) {\n origRequestData.put(\"String_Node_Str\", ioe);\n } catch (Exception e) {\n if (utilDebug.warningEnabled()) {\n utilDebug.warning(\"String_Node_Str\", e);\n }\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ioe) {\n if (utilDebug.messageEnabled()) {\n utilDebug.message(\"String_Node_Str\", ioe);\n }\n }\n }\n }\n return origRequestData;\n}\n"
"public Driver getDriverInstance(Class driver) throws OdaException {\n String driverName = driver.getName();\n if (refreshDriver || !this.cachedJdbcDriver.containsKey(driverName)) {\n Driver instance = null;\n try {\n instance = (Driver) driver.newInstance();\n } catch (Exception e) {\n throw new OdaException(e);\n }\n this.cachedJdbcDriver.put(driverName, instance);\n return instance;\n }\n}\n"
"public void readData(ByteBuf data) {\n itemPos = new Vec3(data.readFloat(), data.readFloat(), data.readFloat());\n pos = Utils.convertFloor(itemPos);\n this.entityId = data.readShort();\n int flags = data.readUnsignedByte();\n int in = (flags >> 3) & 7;\n if (in == 6) {\n this.input = null;\n } else {\n this.input = EnumFacing.getFront(in);\n }\n int out = flags & 7;\n if (out == 6) {\n this.output = null;\n } else {\n this.output = EnumFacing.getFront(out);\n }\n byte c = data.readByte();\n if (c != -1) {\n this.color = EnumColor.fromId(c);\n }\n this.speed = data.readFloat();\n this.forceStackRefresh = (flags & 0x40) > 0;\n}\n"
"public static void main(String[] args) {\n BufferedImage buffered = UtilImageIO.loadImage(\"String_Node_Str\");\n MultiSpectral<ImageFloat32> input = ConvertBufferedImage.convertFromMulti(buffered, null, true, ImageFloat32.class);\n MultiSpectral<ImageFloat32> output = input._createNew(400, 500);\n Estimate1ofEpipolar computeHomography = FactoryMultiView.computeHomography(true);\n ArrayList<AssociatedPair> associatedPairs = new ArrayList<AssociatedPair>();\n associatedPairs.add(new AssociatedPair(new Point2D_F64(0, 0), new Point2D_F64(267, 182)));\n associatedPairs.add(new AssociatedPair(new Point2D_F64(output.width - 1, 0), new Point2D_F64(542, 68)));\n associatedPairs.add(new AssociatedPair(new Point2D_F64(output.width - 1, output.height - 1), new Point2D_F64(519, 736)));\n associatedPairs.add(new AssociatedPair(new Point2D_F64(0, output.height - 1), new Point2D_F64(276, 570)));\n DenseMatrix64F H = new DenseMatrix64F(3, 3);\n computeHomography.process(associatedPairs, H);\n PointTransformHomography_F32 homography = new PointTransformHomography_F32(H);\n PixelTransform_F32 pixelTransform = new PointToPixelTransform_F32(homography);\n DistortImageOps.distortMS(input, output, pixelTransform, null, TypeInterpolate.BILINEAR);\n BufferedImage flat = ConvertBufferedImage.convertTo_F32(output, null, true);\n ShowImages.showWindow(buffered, \"String_Node_Str\", true);\n ShowImages.showWindow(flat, \"String_Node_Str\", true);\n}\n"
"private Application buildCompositeAppStructure(ApplicationContext appCtxt, Map<String, GroupContext> definedGroupCtxts, Map<String, SubscribableInfoContext> subscribableInfoCtxts) throws ApplicationDefinitionException {\n Application application = new Application(appCtxt.getApplicationId());\n application.setTenantId(appCtxt.getTenantId());\n application.setTenantDomain(appCtxt.getTenantDomain());\n application.setTenantAdminUserName(appCtxt.getTeantAdminUsername());\n Map<String, ClusterDataHolder> clusterDataMap;\n if (appCtxt.getComponents() != null) {\n if (appCtxt.getComponents().getSubscribableContexts() != null) {\n clusterDataMap = parseLeafLevelSubscriptions(appCtxt.getApplicationId(), appCtxt.getTenantId(), application.getKey(), null, Arrays.asList(appCtxt.getComponents().getSubscribableContexts()), subscribableInfoCtxts);\n application.setClusterData(clusterDataMap);\n }\n if (appCtxt.getComponents().getGroupContexts() != null) {\n application.setGroups(parseGroups(appCtxt.getApplicationId(), appCtxt.getTenantId(), application.getKey(), Arrays.asList(appCtxt.getComponents().getGroupContexts()), subscribableInfoCtxts, definedGroupCtxts, appCtxt.getProperties()));\n }\n if (appCtxt.getComponents().getDependencyContext() != null) {\n DependencyOrder appDependencyOrder = new DependencyOrder();\n String[] startupOrders = appCtxt.getComponents().getDependencyContext().getStartupOrdersContexts();\n if (startupOrders != null) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appCtxt.getAlias() + \"String_Node_Str\" + startupOrders.length);\n }\n appDependencyOrder.setStartupOrders(ParserUtils.convert(startupOrders));\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appCtxt.getAlias());\n }\n }\n String terminationBehavior = appCtxt.getComponents().getDependencyContext().getTerminationBehaviour();\n validateTerminationBehavior(terminationBehavior);\n appDependencyOrder.setTerminationBehaviour(terminationBehavior);\n application.setDependencyOrder(appDependencyOrder);\n }\n }\n log.info(\"String_Node_Str\" + appCtxt.getApplicationId() + \"String_Node_Str\");\n return application;\n}\n"
"public void load(String fileName) throws ClassNotFoundException, IOException, InstantiationException, IllegalAccessException {\n try (FileInputStream inputStream = new FileInputStream(fileName)) {\n loadFromProto(parseProtoFromInputStream(inputStream));\n }\n}\n"
"public void saveToFile() {\n try {\n saveToFile(\"String_Node_Str\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n Logger.printStackTrace(e, \"String_Node_Str\");\n }\n}\n"
"public void onCameraInit() {\n if (cameraMode == CAMERA_MODE.VIDEO_MODE) {\n mOverlay.setMode(Mode.RECORDING);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n startVideoRecorder();\n mSoundEffects.camcorder();\n initVideoRecordingUI();\n }\n });\n }\n}\n"
"protected Highlight getHighlight(double xPosition, double yPosition) {\n int setCount = mData.getDataSetCount();\n int valCount = mData.getXValCount();\n if (!mData.isGrouped()) {\n int dataSetIndex = 0;\n int xIndex = (int) Math.round(xPosition);\n if (!mData.getDataSetByIndex(dataSet).isStacked())\n return new Highlight(xIndex, dataSet);\n else\n return getStackedHighlight(xIndex, dataSet, yPosition);\n } else {\n int steps = (int) ((float) xPosition / ((float) setCount + mData.getGroupSpace()));\n float groupSpaceSum = mData.getGroupSpace() * (float) steps;\n float baseNoSpace = (float) xPosition - groupSpaceSum;\n if (mLogEnabled)\n Log.i(LOG_TAG, \"String_Node_Str\" + xPosition + \"String_Node_Str\" + steps + \"String_Node_Str\" + groupSpaceSum + \"String_Node_Str\" + baseNoSpace);\n int dataSetIndex = (int) baseNoSpace % setCount;\n int xIndex = (int) baseNoSpace / setCount;\n if (mLogEnabled)\n Log.i(LOG_TAG, \"String_Node_Str\" + xIndex + \"String_Node_Str\" + dataSetIndex);\n if (xIndex < 0) {\n xIndex = 0;\n dataSetIndex = 0;\n } else if (xIndex >= valCount) {\n xIndex = valCount - 1;\n dataSetIndex = setCount - 1;\n }\n if (dataSetIndex < 0)\n dataSetIndex = 0;\n else if (dataSetIndex >= setCount)\n dataSetIndex = setCount - 1;\n if (!mData.getDataSetByIndex(dataSetIndex).isStacked())\n return new Highlight(xIndex, dataSetIndex);\n else\n return getStackedHighlight(xIndex, dataSetIndex, yPosition);\n }\n}\n"