content stringlengths 40 137k |
|---|
"public static String getMaterialName(Material material) {\n String ret = material.toString();\n ret = ret.replace('_', ' ');\n ret = ret.toLowerCase();\n return ret;\n}\n"
|
"public LayerDTO[] getLayersInProduct(String workspaceId, String ciId) {\n try {\n ConfigurationItemKey ciKey = new ConfigurationItemKey(workspaceId, ciId);\n List<Layer> layers = productService.getLayers(ciKey);\n LayerDTO[] layerDtos = new LayerDTO[layers.size()];\n for (int i = 0; i < layers.size(); i++) {\n layerDtos[i] = new LayerDTO(layers.get(i).getId(), layers.get(i).getName(), layers.get(i).getColor());\n }\n return layerDtos;\n } catch (ApplicationException ex) {\n throw new RestApiException(ex.toString(), ex.getMessage());\n }\n}\n"
|
"public Enum getAccess() {\n if (hasAccess()) {\n return super.getAccess();\n } else {\n return getDescriptor().getDefaultAccess();\n }\n}\n"
|
"public void clear() {\n cache.clear();\n}\n"
|
"protected void restoreWidgetValuesForWS() {\n IDialogSettings settings = getDialogSettings();\n if (settings != null) {\n String[] directoryNames = settings.getArray(STORE_DESTINATION_NAMES_ID);\n if (directoryNames != null && directoryNames.length > 0) {\n String fileName = getDefaultFileNameWithType();\n for (int i = 0; i < directoryNames.length; i++) {\n String destination = new Path(directoryNames[i]).append(fileName).toOSString();\n addDestinationItem(destination);\n setDestinationValue(destination);\n }\n } else {\n setDefaultDestination();\n }\n webXMLButton.setSelection(settings.getBoolean(STORE_WEBXML_ID));\n configFileButton.setSelection(settings.getBoolean(STORE_CONFIGFILE_ID));\n axisLibButton.setSelection(settings.getBoolean(STORE_AXISLIB_ID));\n wsddButton.setSelection(settings.getBoolean(STORE_WSDD_ID));\n wsdlButton.setSelection(settings.getBoolean(STORE_WSDL_ID));\n jobScriptButton.setSelection(settings.getBoolean(STORE_SOURCE_ID));\n contextButton.setSelection(settings.getBoolean(STORE_CONTEXT_ID));\n applyToChildrenButton.setSelection(settings.getBoolean(APPLY_TO_CHILDREN_ID));\n chkButton.setSelection(settings.getBoolean(EXTRACT_ZIP_FILE));\n if (chkButton.isVisible()) {\n zipOption = String.valueOf(chkButton.getSelection());\n } else {\n zipOption = \"String_Node_Str\";\n }\n }\n if (getProcessItem() != null && contextCombo != null) {\n try {\n setProcessItem((ProcessItem) ProxyRepositoryFactory.getInstance().getUptodateProperty(getProcessItem().getProperty()).getItem());\n } catch (PersistenceException e) {\n e.printStackTrace();\n }\n List<String> contextNames = getJobContexts(getProcessItem());\n contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));\n if (contextNames.size() > 0) {\n contextCombo.select(0);\n }\n }\n}\n"
|
"private String getLabel(Object element) {\n if (element instanceof IRepositoryViewObject) {\n Item item = ((IRepositoryViewObject) element).getProperty().getItem();\n IRepositoryNodeConfiguration conf = RepositoryNodeConfigurationManager.getConfiguration(item);\n if (conf != null) {\n return conf.getLabelProvider().getText(element);\n }\n }\n return \"String_Node_Str\";\n}\n"
|
"private void _applyLayout(KNode kgraph) throws IllegalActionException {\n GraphModel graph = this.getLayoutTarget().getGraphModel();\n if (graph instanceof ActorGraphModel) {\n Collection<KNode> kNodes = kgraph.getChildren();\n if (_doBoxLayout) {\n kNodes = _kieler2ptolemyEntityNodes.keySet();\n }\n for (KNode knode : kNodes) {\n KShapeLayout absoluteLayout = KielerGraphUtil._getAbsoluteLayout(knode);\n NamedObj namedObj = _kieler2ptolemyEntityNodes.get(knode);\n _kNode2Ptolemy(absoluteLayout, knode);\n if (namedObj instanceof Relation) {\n Vertex vertex = (Vertex) _kieler2ptolemyDivaNodes.get(knode);\n _ptolemyModelUtil._setLocation(vertex, (Relation) namedObj, absoluteLayout.getXpos(), absoluteLayout.getYpos());\n } else {\n _ptolemyModelUtil._setLocation(namedObj, absoluteLayout.getXpos(), absoluteLayout.getYpos());\n }\n }\n if (_doApplyEdgeLayout) {\n Set<Relation> relationsToDelete = new HashSet<Relation>();\n for (KEdge kedge : _kieler2PtolemyDivaEdges.keySet()) {\n Relation oldRelation = _applyEdgeLayout(kedge);\n if (oldRelation != null) {\n relationsToDelete.add(oldRelation);\n }\n }\n _ptolemyModelUtil._removeRelations(relationsToDelete);\n }\n if (_doApplyEdgeLayoutBendPointAnnotation) {\n for (KEdge kedge : _kieler2PtolemyDivaEdges.keySet()) {\n _applyEdgeLayoutBendPointAnnotation(kedge);\n }\n }\n }\n _ptolemyModelUtil._performChangeRequest(_compositeActor);\n}\n"
|
"private String getCrfVersionStatus(String seSubjectEventStatus, int cvStatusId, int ecStatusId, int validatorId) {\n DataEntryStage stage = DataEntryStage.INVALID;\n Status status = Status.get(ecStatusId);\n if (stage.equals(DataEntryStage.INVALID) || status.equals(Status.INVALID)) {\n stage = DataEntryStage.UNCOMPLETED;\n }\n if (status.equals(Status.AVAILABLE)) {\n stage = DataEntryStage.INITIAL_DATA_ENTRY;\n }\n if (status.equals(Status.PENDING)) {\n if (validatorId != 0) {\n stage = DataEntryStage.DOUBLE_DATA_ENTRY;\n } else {\n stage = DataEntryStage.INITIAL_DATA_ENTRY_COMPLETE;\n }\n }\n if (status.equals(Status.UNAVAILABLE)) {\n stage = DataEntryStage.DOUBLE_DATA_ENTRY_COMPLETE;\n }\n if (status.equals(Status.LOCKED)) {\n stage = DataEntryStage.LOCKED;\n }\n try {\n if (seSubjectEventStatus.equals(SubjectEventStatus.LOCKED.getName()) || seSubjectEventStatus.equals(SubjectEventStatus.SKIPPED.getName()) || seSubjectEventStatus.equals(SubjectEventStatus.STOPPED.getName())) {\n stage = DataEntryStage.LOCKED;\n } else if (seSubjectEventStatus.equals(SubjectEventStatus.INVALID.getName())) {\n stage = DataEntryStage.LOCKED;\n } else if (cvStatusId != 1) {\n stage = DataEntryStage.LOCKED;\n }\n } catch (NullPointerException e) {\n System.out.println(\"String_Node_Str\");\n }\n logger.debug(\"String_Node_Str\" + stage.getName());\n return stage.getName();\n}\n"
|
"public static Map<Class<? extends AbstractRule>, Rule> parseConfig(ConfigurationSection config) {\n Map<Class<? extends AbstractRule>, Rule> rules = Collections.emptyMap();\n if (system != null && system.getConfigurationSection(\"String_Node_Str\") != null) {\n UnderSeaLevelRule rule = new UnderSeaLevelRule();\n rule.setHuntUnderSeaLevel(config.getBoolean(\"String_Node_Str\", true));\n rule.setMessage(new DefaultMessage(config.getString(\"String_Node_Str\", NO_UNDER_SEA_LEVEL_MESSAGE)));\n rules = new HashMap<Class<? extends AbstractRule>, Rule>();\n rules.put(UnderSeaLevelRule.class, rule);\n }\n return rules;\n}\n"
|
"public void drawVertical(Canvas c, RecyclerView parent) {\n final int left = parent.getPaddingLeft();\n final int right = parent.getWidth() - parent.getPaddingRight();\n final int childCount = parent.getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = parent.getChildAt(i);\n final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child.getLayoutParams();\n final int top = Math.max(recyclerViewTop, child.getBottom() + params.bottomMargin);\n final int bottom = Math.min(recyclerViewBottom, top + mDivider.getIntrinsicHeight());\n mDivider.setBounds(left, top, right, bottom);\n mDivider.draw(c);\n }\n}\n"
|
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n unmarshalRecord.removeNullCapableValue(this);\n XMLField xmlField = (XMLField) xmlDirectMapping.getField();\n if (!xmlField.getLastXPathFragment().nameIsText) {\n return;\n }\n Object value;\n if (unmarshalRecord.getCharacters().length() == 0) {\n value = this.getMapping().getNullValue();\n } else {\n value = unmarshalRecord.getCharacters().toString();\n }\n unmarshalRecord.resetStringBuffer();\n XMLConversionManager xmlConversionManager = (XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager();\n if (unmarshalRecord.getTypeQName() != null) {\n Class typeClass = xmlField.getJavaClass(unmarshalRecord.getTypeQName());\n value = xmlConversionManager.convertObject(value, typeClass, unmarshalRecord.getTypeQName());\n } else {\n value = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, xmlConversionManager, unmarshalRecord);\n }\n Object convertedValue = xmlDirectMapping.getAttributeValue(value, unmarshalRecord.getSession(), unmarshalRecord);\n unmarshalRecord.setAttributeValue(convertedValue, xmlDirectMapping);\n}\n"
|
"private void process(double dval) {\n HistogramUnit hu = getHistogramUnitIndex(dval);\n if (hu != null) {\n hu.setHcnt(hu.getHcnt() + frequency);\n } else {\n hu = new HistogramUnit(dval, 1);\n histogram.add(hu);\n Collections.sort(histogram);\n if (histogram.size() > this.maxHistogramUnitCnt) {\n mergeHistogram();\n }\n }\n}\n"
|
"public boolean isActorReady() throws PtalonRuntimeException {\n if (_currentActorTree == null) {\n throw new PtalonRuntimeException(\"String_Node_Str\");\n }\n if ((_currentActorTree.created)) {\n if (_inNewWhileIteration()) {\n if (_currentIfTree.isForStatement) {\n int iteration = _currentActorTree.createdIteration;\n if ((iteration == 0) || (iteration == _currentIfTree.entered)) {\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n if (isReady()) {\n return _currentActorTree.isReady();\n }\n return false;\n}\n"
|
"public void suck() {\n HashSet<UUID> sucked = new HashSet<UUID>();\n for (SCLItem item : list.values()) {\n if (!item.isLocationDeferred()) {\n Block block = item.getLocation().getBlock();\n Chunk chunk = block.getChunk();\n if (chunk.isLoaded() && plugin.canSuck.contains(block.getType())) {\n if (block.getState() instanceof InventoryHolder) {\n InventoryHolder container = (InventoryHolder) block.getState();\n Inventory inventory = container.getInventory();\n if (inventory.firstEmpty() != -1) {\n ArrayList<Entity> entityList = new ArrayList<Entity>();\n for (Chunk inChunk : getNearbyChunks(block, plugin.cfg.suckRange())) {\n for (Entity entity : inChunk.getEntities()) {\n if (entity instanceof Item && entity.getLocation().distance(block.getLocation()) <= plugin.cfg.suckRange()) {\n entityList.add(entity);\n }\n }\n }\n for (Entity entity : entityList) {\n if (entity instanceof Item) {\n Item pickup = (Item) entity;\n pickup.setPickupDelay(plugin.cfg.suckInterval());\n ItemStack original = pickup.getItemStack();\n ItemStack itemFound = original.clone();\n if (inventory.firstEmpty() != -1 && !sucked.contains(entity.getUniqueId())) {\n if (entity.getTicksLived() >= plugin.cfg.suckInterval()) {\n inventory.addItem(itemFound);\n entity.remove();\n if (plugin.cfg.suckEffect()) {\n item.getLocation().getWorld().playEffect(item.getLocation(), Effect.CLICK2, 0);\n }\n }\n }\n sucked.add(entity.getUniqueId());\n } else {\n break;\n }\n }\n }\n }\n }\n }\n }\n}\n"
|
"public So2Pose mult(So2Pose postPose) {\n double[][] aM = { { Math.cos(orientation), -Math.sin(orientation), getX() }, { Math.sin(orientation), Math.cos(orientation), getY() }, { 0, 0, 1 } };\n double[][] bM = { { Math.cos(postPose.orientation), -Math.sin(postPose.orientation), postPose.getX() }, { Math.sin(postPose.orientation), Math.cos(postPose.orientation), postPose.getY() }, { 0, 0, 1 } };\n Matrix a = new Matrix(aM);\n Matrix b = new Matrix(bM);\n Matrix c = a.times(b);\n return new So2Pose(c.get(0, 2), c.get(1, 2), Math.atan2(c.get(1, 0), c.get(0, 0)));\n}\n"
|
"public void handleLayoutInflated(LayoutInflatedParam liparam) throws Throwable {\n final FrameLayout frameLayout = (FrameLayout) liparam.view.findViewById(liparam.res.getIdentifier(\"String_Node_Str\", \"String_Node_Str\", Common.PACKAGE_SNAP)).getParent();\n saveSnapButton = new ImageButton(localContext);\n saveSnapButton.setLayoutParams(layoutParams);\n saveSnapButton.setBackgroundColor(0);\n saveSnapButton.setAlpha(0.8f);\n saveSnapButton.setImageDrawable(saveImg);\n saveSnapButton.setVisibility(Preferences.mModeSave == Preferences.SAVE_BUTTON ? View.VISIBLE : View.INVISIBLE);\n frameLayout.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n if (Preferences.mModeSave != Preferences.SAVE_S2S)\n return false;\n return gestureEvent.onTouch(v, event);\n }\n });\n frameLayout.addView(saveSnapButton);\n saveSnapButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Logger.printTitle(\"String_Node_Str\");\n Saving.performButtonSave();\n }\n });\n}\n"
|
"protected void processWhenDispose() {\n if (threadExecutor != null) {\n threadExecutor.clearThreads();\n ExtractMetaDataUtils.getInstance().closeConnection();\n }\n}\n"
|
"protected ICompletableFuture<Boolean> putIfAbsentAsyncInternal(K key, V value, ExpiryPolicy expiryPolicy, boolean withCompletionEvent) {\n ensureOpen();\n validateNotNull(key, value);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, value);\n final Data keyData = toData(key);\n final Data valueData = toData(value);\n final Data expiryPolicyData = toData(expiryPolicy);\n ClientMessage request = CachePutIfAbsentCodec.encodeRequest(nameWithPrefix, keyData, valueData, expiryPolicyData);\n ICompletableFuture<Boolean> future;\n try {\n future = invoke(request, keyData, completionId);\n if (cacheOnUpdate) {\n storeInNearCache(keyData, valueData, value);\n } else {\n invalidateNearCache(keyData);\n }\n } catch (Exception e) {\n throw ExceptionUtil.rethrow(e);\n }\n return future;\n}\n"
|
"<T> void initializeBinding(BindingImpl<T> binding, Errors errors) throws ErrorsException {\n if (binding instanceof ConstructorBindingImpl<?>) {\n ((ConstructorBindingImpl) binding).initialize(this, errors);\n }\n}\n"
|
"public void setValueAt(Object value, int row, int col) {\n try {\n switch(col) {\n case 0:\n data.setHopName(row, value.toString());\n if (value instanceof Hop) {\n Hop h = (Hop) value;\n data.setHopAlpha(row, h.getAlpha());\n }\n break;\n case 1:\n data.setHopType(row, value.toString());\n break;\n case 2:\n try {\n NumberFormat format = NumberFormat.getInstance(Locale.getDefault());\n Number number = format.parse(value.toString().trim());\n data.setHopAlpha(row, number.doubleValue());\n } catch (NumberFormatException m) {\n Debug.print(\"String_Node_Str\" + value.toString() + \"String_Node_Str\");\n }\n break;\n case 3:\n try {\n data.setHopAmount(row, Double.parseDouble(value.toString()));\n } catch (NumberFormatException m) {\n Debug.print(\"String_Node_Str\" + value.toString() + \"String_Node_Str\");\n }\n break;\n case 4:\n break;\n case 5:\n data.setHopAdd(row, value.toString());\n break;\n case 6:\n try {\n data.setHopMinutes(row, (int) Double.parseDouble(value.toString()));\n } catch (NumberFormatException m) {\n Debug.print(\"String_Node_Str\" + value.toString() + \"String_Node_Str\");\n }\n break;\n case 7:\n break;\n case 8:\n data.setHopCost(row, value.toString());\n break;\n }\n } catch (Exception e) {\n }\n ;\n app.myRecipe.calcHopsTotals();\n fireTableCellUpdated(row, col);\n fireTableDataChanged();\n app.displayRecipe();\n}\n"
|
"public void testCoverage() {\n File file1 = new File(\"String_Node_Str\");\n File aspect1 = new File(\"String_Node_Str\");\n File file2 = new File(\"String_Node_Str\");\n File file3 = new File(\"String_Node_Str\");\n File file4 = new File(\"String_Node_Str\");\n File file5 = new File(\"String_Node_Str\");\n File file6 = new File(\"String_Node_Str\");\n File file7 = new File(\"String_Node_Str\");\n File file8 = new File(\"String_Node_Str\");\n File outdir = new File(\"String_Node_Str\");\n String[] args = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", outdir.getAbsolutePath(), aspect1.getAbsolutePath(), file0.getAbsolutePath(), file1.getAbsolutePath(), file2.getAbsolutePath(), file3.getAbsolutePath(), file4.getAbsolutePath(), file5.getAbsolutePath(), file6.getAbsolutePath(), file7.getAbsolutePath(), file8.getAbsolutePath() };\n org.aspectj.tools.ajdoc.Main.main(args);\n}\n"
|
"public Long getNetTotalInMegs() {\n return netTotalInMegs;\n}\n"
|
"public static int getStartingGroupLevel(EdgeCursor edgeCursor, List groupCursors) throws OLAPException {\n if (edgeCursor.isFirst()) {\n return 0;\n }\n for (int i = 0; i < groupCursors.size() - 1; i++) {\n DimensionCursor dc = groupCursors.get(i);\n if (GroupUtil.isDummyGroup(dc)) {\n return i == 0 ? 1 : i;\n }\n if (dc.getEdgeStart() == edgeCursor.getPosition()) {\n return i + 1;\n }\n }\n return groupCursors.size();\n}\n"
|
"public List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (!(item instanceof JSONFileConnectionItem)) {\n return neededComponents;\n }\n IComponentsService service = (IComponentsService) GlobalServiceRegister.getDefault().getService(IComponentsService.class);\n Collection<IComponent> components = service.getComponentsFactory().readComponents();\n JSONFileConnection connection = (JSONFileConnection) ((JSONFileConnectionItem) item).getConnection();\n for (IComponent component : components) {\n if (!connection.isInputModel()) {\n if (isValid(item, type, seletetedNode, component, \"String_Node_Str\") && !neededComponents.contains(component)) {\n neededComponents.add(component);\n }\n } else {\n if (isValid(item, type, seletetedNode, component, JSON) && !neededComponents.contains(component)) {\n neededComponents.add(component);\n }\n }\n }\n return neededComponents;\n}\n"
|
"private Class<?> injectToURLClassLoader(URLClassLoader classLoader, String className) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, ClassNotFoundException {\n final URL[] urls = classLoader.getURLs();\n if (urls != null) {\n boolean hasPluginJar = false;\n for (URL url : urls) {\n final String externalForm = url.toExternalForm();\n if (pluginConfig.getPluginJarURLExternalForm().equals(externalForm)) {\n hasPluginJar = true;\n break;\n }\n }\n if (!hasPluginJar) {\n ADD_URL.invoke(classLoader, pluginJarURL);\n }\n }\n return classLoader.loadClass(className);\n}\n"
|
"public void exportSound(OutputStream fos, SoundTag st, SoundExportMode mode) throws IOException {\n SoundFormat fmt = st.getSoundFormat();\n int nativeFormat = fmt.getNativeExportFormat();\n if (nativeFormat == SoundFormat.EXPORT_MP3 && mode.hasMP3()) {\n List<byte[]> datas = st.getRawSoundData();\n for (byte[] data : datas) {\n fos.write(data);\n }\n } else if ((nativeFormat == SoundFormat.EXPORT_FLV && mode.hasFlv()) || mode == SoundExportMode.FLV) {\n if (st instanceof DefineSoundTag) {\n FLVOutputStream flv = new FLVOutputStream(fos);\n flv.writeHeader(true, false);\n flv.writeTag(new FLVTAG(0, new AUDIODATA(st.getSoundFormatId(), st.getSoundRate(), st.getSoundSize(), st.getSoundType(), st.getRawSoundData())));\n } else if (st instanceof SoundStreamHeadTypeTag) {\n SoundStreamHeadTypeTag sh = (SoundStreamHeadTypeTag) st;\n FLVOutputStream flv = new FLVOutputStream(fos);\n flv.writeHeader(true, false);\n List<SoundStreamBlockTag> blocks = sh.getBlocks();\n int ms = (int) (1000.0f / ((float) ((Tag) st).getSwf().frameRate));\n for (int b = 0; b < blocks.size(); b++) {\n byte[] data = blocks.get(b).streamSoundData;\n if (st.getSoundFormatId() == 2) {\n data = Arrays.copyOfRange(data, 4, data.length);\n }\n flv.writeTag(new FLVTAG(ms * b, new AUDIODATA(st.getSoundFormatId(), st.getSoundRate(), st.getSoundSize(), st.getSoundType(), data)));\n }\n }\n } else {\n byte[] soundData = st.getRawSoundData();\n SWF swf = ((Tag) st).getSwf();\n fmt.createWav(new SWFInputStream(swf, soundData), fos);\n }\n}\n"
|
"private Map<P, Tuple<P, List<E>>> msmt(final Set<P> sources, final Set<P> targets, Cost<E> cost, Cost<E> bound, Double max) {\n class Mark extends Quadruple<E, E, Double, Double> implements Comparable<Mark> {\n private static final long serialVersionUID = 1L;\n public Mark(E one, E two, Double three, Double four) {\n super(one, two, three, four);\n }\n public int compareTo(Mark other) {\n return (this.three() < other.three()) ? -1 : (this.three() > other.three()) ? 1 : 0;\n }\n }\n Map<E, Set<P>> targetEdges = new HashMap<>();\n for (P target : targets) {\n logger.trace(\"String_Node_Str\", target, target.edge().id(), target.fraction());\n if (!targetEdges.containsKey(target.edge())) {\n targetEdges.put(target.edge(), new HashSet<>(Arrays.asList(target)));\n } else {\n targetEdges.get(target.edge()).add(target);\n }\n }\n PriorityQueue<Mark> priorities = new PriorityQueue<>();\n Map<E, Mark> entries = new HashMap<>();\n Map<P, Mark> finishs = new HashMap<>();\n Map<Mark, P> reaches = new HashMap<>();\n Map<Mark, P> starts = new HashMap<>();\n for (P source : sources) {\n double startcost = cost.cost(source.edge(), 1 - source.fraction());\n double startbound = bound != null ? bound.cost(source.edge(), 1 - source.fraction()) : 0.0;\n logger.trace(\"String_Node_Str\", source, source.edge().id(), source.fraction(), startcost);\n if (targetEdges.containsKey(source.edge())) {\n for (P target : targetEdges.get(source.edge())) {\n if (target.fraction() < source.fraction()) {\n continue;\n }\n double reachcost = startcost - cost.cost(source.edge(), 1 - target.fraction());\n double reachbound = bound != null ? startcost - bound.cost(source.edge(), 1 - target.fraction()) : 0.0;\n logger.trace(\"String_Node_Str\", target, source.edge().id(), source.fraction(), target.fraction(), reachcost);\n Mark reach = new Mark(source.edge(), null, reachcost, reachbound);\n reaches.put(reach, target);\n starts.put(reach, source);\n priorities.add(reach);\n }\n }\n Mark start = entries.get(source.edge());\n if (start == null) {\n logger.trace(\"String_Node_Str\", source, source.edge().id(), source.fraction(), startcost);\n start = new Mark(source.edge(), null, startcost, startbound);\n entries.put(source.edge(), start);\n starts.put(start, source);\n priorities.add(start);\n } else if (startcost < start.three()) {\n logger.trace(\"String_Node_Str\", source, source.edge().id(), source.fraction(), startcost);\n start = new Mark(source.edge(), null, startcost, startbound);\n entries.put(source.edge(), start);\n starts.put(start, source);\n priorities.remove(start);\n priorities.add(start);\n }\n }\n while (priorities.size() > 0) {\n Mark current = priorities.poll();\n if (targetEdges.isEmpty()) {\n logger.trace(\"String_Node_Str\");\n break;\n }\n if (max != null && current.four() > max) {\n logger.trace(\"String_Node_Str\");\n break;\n }\n if (reaches.containsKey(current)) {\n P target = reaches.get(current);\n if (finishs.containsKey(target)) {\n continue;\n } else {\n logger.trace(\"String_Node_Str\", target, current.one(), target.fraction(), current.three());\n finishs.put(target, current);\n Set<P> edges = targetEdges.get(current.one());\n edges.remove(target);\n if (edges.isEmpty()) {\n targetEdges.remove(current.one());\n }\n continue;\n }\n }\n logger.trace(\"String_Node_Str\", current.one().id(), current.three());\n Iterator<E> successors = current.one().successors();\n while (successors.hasNext()) {\n E successor = successors.next();\n double succcost = current.three() + cost.cost(successor);\n double succbound = bound != null ? current.four() + bound.cost(successor) : 0.0;\n if (targetEdges.containsKey(successor)) {\n for (P target : targetEdges.get(successor)) {\n double reachcost = succcost - cost.cost(successor, 1 - target.fraction());\n double reachbound = bound != null ? succbound - bound.cost(successor, 1 - target.fraction()) : 0.0;\n logger.trace(\"String_Node_Str\", target, successor.id(), target.fraction(), reachcost);\n Mark reach = new Mark(successor, current.one(), reachcost, reachbound);\n reaches.put(reach, target);\n priorities.add(reach);\n }\n }\n if (!entries.containsKey(successor)) {\n logger.trace(\"String_Node_Str\", successor.id(), succcost);\n Mark mark = new Mark(successor, current.one(), succcost, succbound);\n entries.put(successor, mark);\n priorities.add(mark);\n }\n }\n }\n Map<P, Tuple<P, List<E>>> paths = new HashMap<>();\n for (P target : targets) {\n if (!finishs.containsKey(target)) {\n paths.put(target, null);\n } else {\n LinkedList<E> path = new LinkedList<>();\n Mark iterator = finishs.get(target);\n Mark start = null;\n while (iterator != null) {\n path.addFirst(iterator.one());\n start = iterator;\n iterator = iterator.two() != null ? entries.get(iterator.two()) : null;\n }\n paths.put(target, new Tuple<P, List<E>>(starts.get(start), path));\n }\n }\n entries.clear();\n finishs.clear();\n reaches.clear();\n priorities.clear();\n return paths;\n}\n"
|
"private void setFileNamePrefix() {\n this.fileNamePrefix = \"String_Node_Str\" + new Long(System.nanoTime()).toString() + \"String_Node_Str\" + getID() + \"String_Node_Str\" + Integer.toHexString(hashCode());\n}\n"
|
"private void updateModelString() {\n StringBuilder builder = new StringBuilder();\n String oldModelString = getModelString();\n for (IParamValueToken token : getTokens()) {\n builder.append(token.getModelString());\n }\n setModelString(builder.toString());\n for (IDataSetPO dataSet : getCurrentNode().getDataManager().getDataSets()) {\n for (int i = 0; i < dataSet.getColumnCount(); i++) {\n String data = dataSet.getValueAt(i);\n if (data != null && data.equals(oldModelString)) {\n dataSet.setValueAt(i, getModelString());\n return;\n }\n }\n }\n}\n"
|
"public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest resourceRequest) {\n String currentUrl = resourceRequest.getUrl().toString();\n if (!mTrackingProtectionEnabled && !mAdblockEnabled && !mHttpsEverywhereEnabled || mUrl.toString().equals(currentUrl)) {\n return null;\n }\n String filterOption = \"String_Node_Str\";\n Map<String, String> requestHeaders = resourceRequest.getRequestHeaders();\n for (Map.Entry<String, String> entry : requestHeaders.entrySet()) {\n if (entry.getKey().equals(\"String_Node_Str\")) {\n if (entry.getValue().contains(\"String_Node_Str\")) {\n filterOption = \"String_Node_Str\";\n break;\n } else if (entry.getValue().contains(\"String_Node_Str\")) {\n filterOption = \"String_Node_Str\";\n break;\n } else if (entry.getValue().contains(\"String_Node_Str\")) {\n filterOption = \"String_Node_Str\";\n break;\n }\n }\n }\n return interceptTheCall(view, resourceRequest.getUrl().toString(), filterOption, true);\n}\n"
|
"protected boolean hasJdbcType() {\n return m_jdbcType != null && !m_jdbcType.equals(-1);\n}\n"
|
"public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm) throws OperatorException {\n try {\n int y0 = targetRectangle.y;\n int yN = y0 + targetRectangle.height - 1;\n int x0 = targetRectangle.x;\n int xN = targetRectangle.x + targetRectangle.width - 1;\n final Window tileWindow = new Window(y0, yN, x0, xN);\n Band topoPhaseBand;\n Band targetBand_I;\n Band targetBand_Q;\n for (String ifgKey : targetMap.keySet()) {\n ProductContainer product = targetMap.get(ifgKey);\n GeoPoint[] geoCorners = GeoUtils.computeCorners(product.sourceMaster.metaData, product.sourceMaster.orbit, tileWindow);\n PixelPos[] pixelCorners = new PixelPos[2];\n pixelCorners[0] = dem.getIndex(new GeoPos(geoCorners[0].lat, geoCorners[0].lon));\n pixelCorners[1] = dem.getIndex(new GeoPos(geoCorners[1].lat, geoCorners[1].lon));\n final int x0DEM = (int) Math.round(pixelCorners[0].x);\n final int y0DEM = (int) Math.round(pixelCorners[0].y);\n final int x1DEM = (int) Math.round(pixelCorners[1].x);\n final int y1DEM = (int) Math.round(pixelCorners[1].y);\n final Rectangle demTileRect = new Rectangle(x0DEM, y0DEM, x1DEM - x0DEM + 1, y1DEM - y0DEM + 1);\n double[] tileHeights = computeMaxHeight(pixelCorners, demTileRect);\n GeoPoint geoExtent = GeoUtils.defineExtraPhiLam(tileHeights[0], tileHeights[1], tileWindow, product.sourceMaster.metaData, product.sourceMaster.orbit);\n geoCorners = GeoUtils.extendCorners(geoExtent, geoCorners);\n pixelCorners[0] = dem.getIndex(new GeoPos(geoCorners[0].lat, geoCorners[0].lon));\n pixelCorners[1] = dem.getIndex(new GeoPos(geoCorners[1].lat, geoCorners[1].lon));\n pixelCorners[0] = new PixelPos(Math.ceil(pixelCorners[0].x), Math.floor(pixelCorners[0].y));\n pixelCorners[1] = new PixelPos(Math.floor(pixelCorners[1].x), Math.ceil(pixelCorners[1].y));\n GeoPos upperLeftGeo = dem.getGeoPos(pixelCorners[0]);\n int nLatPixels = (int) Math.abs(pixelCorners[1].y - pixelCorners[0].y);\n int nLonPixels = (int) Math.abs(pixelCorners[1].x - pixelCorners[0].x);\n int startX = (int) pixelCorners[0].x;\n int endX = startX + nLonPixels;\n int startY = (int) pixelCorners[0].y;\n int endY = startY + nLatPixels;\n double[][] elevation = new double[nLatPixels][nLonPixels];\n for (int y = startY, i = 0; y < endY; y++, i++) {\n for (int x = startX, j = 0; x < endX; x++, j++) {\n try {\n double elev = dem.getSample(x, y);\n if (Double.isNaN(elev))\n elev = demNoDataValue;\n elevation[i][j] = elev;\n } catch (Exception e) {\n elevation[i][j] = demNoDataValue;\n }\n }\n }\n DemTile demTile = new DemTile(upperLeftGeo.lat * Constants.DTOR, upperLeftGeo.lon * Constants.DTOR, nLatPixels, nLonPixels, Math.abs(demSamplingLat), Math.abs(demSamplingLon), (long) demNoDataValue);\n demTile.setData(elevation);\n final TopoPhase topoPhase = new TopoPhase(product.sourceMaster.metaData, product.sourceMaster.orbit, product.sourceSlave.metaData, product.sourceSlave.orbit, tileWindow, demTile);\n topoPhase.radarCode();\n topoPhase.gridData();\n Tile tileReal = getSourceTile(product.sourceMaster.realBand, targetRectangle);\n Tile tileImag = getSourceTile(product.sourceMaster.imagBand, targetRectangle);\n ComplexDoubleMatrix complexIfg = TileUtilsDoris.pullComplexDoubleMatrix(tileReal, tileImag);\n final ComplexDoubleMatrix cplxTopoPhase = new ComplexDoubleMatrix(MatrixFunctions.cos(new DoubleMatrix(topoPhase.demPhase)), MatrixFunctions.sin(new DoubleMatrix(topoPhase.demPhase)));\n complexIfg.muli(cplxTopoPhase.conji());\n targetBand_I = targetProduct.getBand(product.targetBandName_I);\n Tile tileOutReal = targetTileMap.get(targetBand_I);\n TileUtilsDoris.pushDoubleMatrix(complexIfg.real(), tileOutReal, targetRectangle);\n targetBand_Q = targetProduct.getBand(product.targetBandName_Q);\n Tile tileOutImag = targetTileMap.get(targetBand_Q);\n TileUtilsDoris.pushDoubleMatrix(complexIfg.imag(), tileOutImag, targetRectangle);\n topoPhaseBand = targetProduct.getBand(product.masterSubProduct.targetBandName_I);\n Tile tileOutTopoPhase = targetTileMap.get(topoPhaseBand);\n TileUtilsDoris.pushDoubleArray2D(topoPhase.demPhase, tileOutTopoPhase, targetRectangle);\n }\n } catch (Exception e) {\n throw new OperatorException(e);\n }\n}\n"
|
"protected void queueCommand(Command cmd) {\n commands.add(cmd);\n log(\"String_Node_Str\" + cmd.getClass().getSimpleName());\n latch.countDown();\n waitForCommandToComplete();\n threadState.set(WAITING);\n}\n"
|
"public void onResponse(Call<StackAnswer> call, Response<StackAnswer> response) {\n Log.e(\"String_Node_Str\", \"String_Node_Str\" + response.code());\n if (response.isSuccessful()) {\n StackAnswer stackAnswer = response.body();\n Log.e(\"String_Node_Str\", \"String_Node_Str\" + stackAnswer.getItems().get(0).getLink());\n } else\n Log.e(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"public void writeValueEdit(Object value) {\n reportlock = true;\n Object[] myprod = (Object[]) value;\n m_jTitle.setText(Formats.STRING.formatValue(myprod[1]) + \"String_Node_Str\" + Formats.STRING.formatValue(myprod[3]));\n m_id = myprod[0];\n m_jRef.setText(Formats.STRING.formatValue(myprod[1]));\n m_jCode.setText(Formats.STRING.formatValue(myprod[2]));\n m_jName.setText(Formats.STRING.formatValue(myprod[3]));\n m_jComment.setSelected(((Boolean) myprod[4]).booleanValue());\n m_jScale.setSelected(((Boolean) myprod[5]).booleanValue());\n m_jPriceBuy.setText(Formats.CURRENCY.formatValue(myprod[6]));\n setPriceSell(myprod[7]);\n m_CategoryModel.setSelectedKey(myprod[8]);\n taxcatmodel.setSelectedKey(myprod[9]);\n m_jImage.setImage((BufferedImage) myprod[10]);\n m_jstockcost.setText(Formats.CURRENCY.formatValue(myprod[11]));\n m_jstockvolume.setText(Formats.DOUBLE.formatValue(myprod[12]));\n m_jInCatalog.setSelected(((Boolean) myprod[13]).booleanValue());\n m_jCatalogOrder.setText(Formats.INT.formatValue(myprod[14]));\n txtAttributes.setText(Formats.BYTEA.formatValue(myprod[15]));\n txtAttributes.setCaretPosition(0);\n reportlock = false;\n m_jRef.setEnabled(true);\n m_jCode.setEnabled(true);\n m_jName.setEnabled(true);\n m_jComment.setEnabled(true);\n m_jScale.setEnabled(true);\n m_jCategory.setEnabled(true);\n m_jTax.setEnabled(true);\n m_jPriceBuy.setEnabled(true);\n m_jPriceSell.setEnabled(true);\n m_jPriceSellTax.setEnabled(true);\n m_jmargin.setEnabled(true);\n m_jImage.setEnabled(true);\n m_jstockcost.setEnabled(true);\n m_jstockvolume.setEnabled(true);\n m_jInCatalog.setEnabled(true);\n m_jCatalogOrder.setEnabled(m_jInCatalog.isSelected());\n txtAttributes.setEnabled(true);\n calculateMargin();\n calculatePriceSellTax();\n}\n"
|
"public String getResourceManager() {\n return getRealValue(this.resourceManager);\n}\n"
|
"public CollectionRegionAccessStrategy buildAccessStrategy(final AccessType accessType) throws CacheException {\n if (null == accessType) {\n throw new CacheException(\"String_Node_Str\");\n }\n if (AccessType.READ_ONLY.equals(accessType)) {\n return new ReadOnlyAccessStrategy(this, props);\n }\n if (AccessType.NONSTRICT_READ_WRITE.equals(accessType)) {\n return new NonStrictReadWriteAccessStrategy(this);\n }\n if (AccessType.READ_WRITE.equals(accessType)) {\n return new ReadWriteAccessStrategy(this);\n }\n if (AccessType.TRANSACTIONAL.equals(accessType)) {\n throw new CacheException(\"String_Node_Str\");\n }\n throw new CacheException(\"String_Node_Str\" + accessType + \"String_Node_Str\");\n}\n"
|
"public String changeRegimen(String existingTreatmentAdviceId, String discontinuationReason, TreatmentAdvice treatmentAdvice, String clinicVisitId, Model uiModel, HttpServletRequest httpServletRequest) {\n uiModel.asMap().clear();\n fixTimeString(treatmentAdvice);\n String treatmentAdviceId = existingTreatmentAdviceId;\n try {\n treatmentAdviceId = treatmentAdviceService.changeRegimen(existingTreatmentAdviceId, discontinuationReason, treatmentAdvice);\n allClinicVisits.changeRegimen(treatmentAdvice.getPatientId(), clinicVisitId, treatmentAdviceId);\n return ClinicVisitsController.redirectToCreateFormUrl(clinicVisitId, treatmentAdvice.getPatientId());\n } catch (RuntimeException e) {\n httpServletRequest.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n return \"String_Node_Str\" + treatmentAdviceId + \"String_Node_Str\" + clinicVisitId + \"String_Node_Str\" + treatmentAdvice.getPatientId();\n }\n}\n"
|
"public static void runCommand(String command) throws IOException {\n if (command == null) {\n return;\n }\n try {\n Runtime rt = Runtime.getRuntime();\n rt.exec(command, null, new File(command.split(\"String_Node_Str\")[0]).getParentFile());\n } catch (Exception e) {\n logger.severe(\"String_Node_Str\" + e.getMessage());\n }\n}\n"
|
"public void finish(int item) {\n boolean offer = progressItems.offer(item);\n if (!offer) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n}\n"
|
"public void addConsToMatrix(DmvTreeProgram pp, IloLPMatrix mat) throws IloException {\n CplexUtils.addRows(mat, pp.oneArcPerWall);\n CplexUtils.addRows(mat, pp.oneParent);\n CplexUtils.addRows(mat, pp.oneArcPerPair);\n mat.addRows(pp.rootFlowIsSentLength);\n CplexUtils.addRows(mat, pp.flowDiff);\n CplexUtils.addRows(mat, pp.flowBoundRoot);\n CplexUtils.addRows(mat, pp.flowBoundChild);\n CplexUtils.addRows(mat, pp.arcFlowBoundRoot);\n CplexUtils.addRows(mat, pp.arcFlowBoundChild);\n if (pp.projectiveRoot != null && pp.projectiveChild != null) {\n CplexUtils.addRows(mat, pp.projectiveRoot);\n CplexUtils.addRows(mat, pp.projectiveChild);\n }\n CplexUtils.addRows(mat, pp.numToSideCons);\n CplexUtils.addRows(mat, pp.genAdjCons);\n CplexUtils.addRows(mat, pp.numNonAdjCons);\n CplexUtils.addRows(mat, pp.stopAdjCons);\n if (pp.featCountCons != null) {\n CplexUtils.addRows(mat, pp.featCountCons);\n }\n if (pp.universalPostCons != null) {\n mat.addRow(pp.universalPostCons);\n }\n}\n"
|
"private void calculateNextEventTime(long cycles) {\n long time = nextTimerTrigger;\n int smallest = -1;\n for (int i = 0; i < noCompare; i++) {\n long ct = expCaptureTime[i];\n if (ct > 0 && ct < time) {\n time = ct;\n smallest = i;\n }\n }\n if (time == 0) {\n time = cycles + 1000;\n }\n if (timerTrigger.scheduledIn == null) {\n core.scheduleCycleEvent(timerTrigger, time);\n } else if (timerTrigger.time > time) {\n core.scheduleCycleEvent(timerTrigger, time);\n }\n}\n"
|
"public void run() {\n request.start();\n final Integer[] CHUNK_SIZE = new Integer[1];\n CHUNK_SIZE[0] = Math.min(request.getNbRequested(), blockSize + ((indexing) ? 1 : 0));\n final Integer[] nbRead = new Integer[1];\n nbRead[0] = 0;\n final Boolean[] isFinished = new Boolean[1];\n isFinished[0] = Boolean.FALSE;\n int startIndex = request.getIndex();\n while (!isFinished[0]) {\n TmfEventRequest<T> subRequest = new TmfEventRequest<T>(request.getDataType(), ((ITmfEventRequest<?>) request).getRange(), startIndex + nbRead[0], CHUNK_SIZE[0], blockSize, ExecutionType.BACKGROUND) {\n public void handleData(T data) {\n super.handleData(data);\n if (request.getDataType().isInstance(data)) {\n request.handleData(data);\n }\n if (this.getNbRead() > CHUNK_SIZE[0]) {\n System.out.println(\"String_Node_Str\");\n }\n }\n public void handleCompleted() {\n nbRead[0] += this.getNbRead();\n if (nbRead[0] >= request.getNbRequested() || (this.getNbRead() < CHUNK_SIZE[0])) {\n if (this.isCancelled()) {\n request.cancel();\n } else if (this.isFailed()) {\n request.fail();\n } else {\n request.done();\n }\n isFinished[0] = Boolean.TRUE;\n }\n super.handleCompleted();\n }\n };\n if (!isFinished[0]) {\n queueRequest(subRequest);\n try {\n subRequest.waitForCompletion();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (startIndex == 0 && nbRead[0].equals(CHUNK_SIZE[0])) {\n startIndex = subRequest.getIndex();\n }\n CHUNK_SIZE[0] = Math.min(request.getNbRequested() - nbRead[0], blockSize);\n }\n }\n}\n"
|
"public void testMiddleSource() throws Exception {\n JournalWriter<Quote> w = factory.writer(Quote.class);\n TestUtils.generateQuoteData(w, 100000);\n StringSink sink = new StringSink();\n RecordSourcePrinter p = new RecordSourcePrinter(sink);\n p.print(new TopRecordSource(compiler.compileSource(factory, \"String_Node_Str\"), new LongConstant(102), new LongConstant(112)), factory);\n final String expected = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n Assert.assertEquals(expected, sink.toString());\n}\n"
|
"private void sendDeathMessage(final EntityDeathEvent event) {\n if (event.getEntity() instanceof CraftMyPet) {\n MyPet myPet = ((CraftMyPet) event.getEntity()).getMyPet();\n String killer;\n if (event.getEntity().getLastDamageCause() instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event.getEntity().getLastDamageCause();\n if (e.getDamager().getType() == EntityType.PLAYER) {\n if (e.getDamager() == myPet.getOwner().getPlayer()) {\n killer = Locales.getString(\"String_Node_Str\", myPet.getOwner().getLanguage());\n } else {\n killer = ((Player) e.getDamager()).getName();\n }\n } else if (e.getDamager().getType() == EntityType.WOLF) {\n Wolf w = (Wolf) e.getDamager();\n killer = Locales.getString(\"String_Node_Str\", myPet.getOwner().getLanguage());\n if (w.isTamed()) {\n killer += \"String_Node_Str\" + w.getOwner().getName() + ')';\n }\n } else if (e.getDamager() instanceof CraftMyPet) {\n CraftMyPet craftMyPet = (CraftMyPet) e.getDamager();\n killer = craftMyPet.getMyPet().getPetName() + \"String_Node_Str\" + craftMyPet.getOwner().getName() + ')';\n } else if (e.getDamager() instanceof Projectile) {\n Projectile projectile = (Projectile) e.getDamager();\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(projectile.getType().name()), myPet.getOwner().getLanguage()) + \"String_Node_Str\";\n if (projectile.getShooter() instanceof Player) {\n if (projectile.getShooter() == myPet.getOwner().getPlayer()) {\n killer += Locales.getString(\"String_Node_Str\", myPet.getOwner().getLanguage());\n } else {\n killer += ((Player) projectile.getShooter()).getName();\n }\n } else {\n if (MyPetType.isLeashableEntityType(e.getDamager().getType())) {\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(MyPetType.getMyPetTypeByEntityType(e.getDamager().getType()).getTypeName()), myPet.getOwner().getLanguage());\n } else if (e.getDamager().getType().getName() != null) {\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(e.getDamager().getType().getName()), myPet.getOwner().getLanguage());\n }\n }\n killer += \"String_Node_Str\";\n } else {\n if (MyPetType.isLeashableEntityType(e.getDamager().getType())) {\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(MyPetType.getMyPetTypeByEntityType(e.getDamager().getType()).getTypeName()), myPet.getOwner().getLanguage());\n } else {\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(e.getDamager().getType().getName()), myPet.getOwner().getLanguage());\n }\n }\n } else {\n if (event.getEntity().getLastDamageCause() != null) {\n killer = Locales.getString(\"String_Node_Str\" + Util.capitalizeName(event.getEntity().getLastDamageCause().getCause().name()), myPet.getOwner().getLanguage());\n } else {\n killer = Locales.getString(\"String_Node_Str\", myPet.getOwner().getLanguage());\n }\n }\n myPet.sendMessageToOwner(Util.formatText(Locales.getString(\"String_Node_Str\", myPet.getOwner().getLanguage()), myPet.getPetName(), killer));\n }\n}\n"
|
"public final void kill() {\n if (state == EMovableState.DEAD) {\n return;\n }\n grid.leavePosition(this.position, this);\n this.health = -200;\n this.strategy.strategyKilledEvent(path != null ? path.getTargetPos() : null);\n movablesByID.remove(this.getID());\n allMovables.remove(this);\n grid.addSelfDeletingMapObject(position, EMapObjectType.GHOST, Constants.GHOST_PLAY_DURATION, player);\n}\n"
|
"public void element(XPathFragment frag) {\n try {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n String prefix = frag.getPrefix();\n if (null == prefix) {\n prefix = XMLConstants.EMPTY_STRING;\n }\n xmlEventWriter.add(xmlEventFactory.createStartElement(prefix, namespaceURI, localName));\n xmlEventWriter.add(xmlEventFactory.createEndElement(prefix, namespaceURI, localName));\n } catch (Exception e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
|
"void createShardsForReference(SAMSequenceRecord reference, Contig contig) {\n final BitSet overlappingBins = GenomicIndexUtil.regionToBins((int) contig.start, (int) contig.end);\n if (overlappingBins == null) {\n LOG.warning(\"String_Node_Str\" + contig.start + \"String_Node_Str\" + contig.end);\n return;\n }\n BAMShard currentShard = null;\n for (int binIndex = overlappingBins.nextSetBit(0); binIndex >= 0; binIndex = overlappingBins.nextSetBit(binIndex + 1)) {\n final Bin bin = index.getBinData(reference.getSequenceIndex(), binIndex);\n if (bin == null) {\n continue;\n }\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\"String_Node_Str\" + index.getFirstLocusInBin(bin) + \"String_Node_Str\" + index.getLastLocusInBin(bin));\n }\n if (index.getLevelForBin(bin) != (GenomicIndexUtil.LEVEL_STARTS.length - 1)) {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\"String_Node_Str\");\n }\n continue;\n }\n final List<Chunk> chunksInBin = bin.getChunkList();\n if (chunksInBin.isEmpty()) {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\"String_Node_Str\");\n }\n continue;\n }\n if (currentShard == null) {\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\"String_Node_Str\" + startLocus);\n }\n currentShard = new BAMShard(filePath, reference.getSequenceName(), index.getFirstLocusInBin(bin));\n }\n currentShard.addBin(chunksInBin, index.getLastLocusInBin(bin));\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\"String_Node_Str\" + index.getLastLocusInBin(bin));\n }\n if (shardingPolicy.shardBigEnough(currentShard)) {\n LOG.info(\"String_Node_Str\" + currentShard.sizeInLoci() + \"String_Node_Str\" + currentShard.approximateSizeInBytes() + \"String_Node_Str\");\n c.output(currentShard.finalize(index, -1));\n currentShard = null;\n }\n }\n if (currentShard != null) {\n LOG.info(\"String_Node_Str\" + currentShard.sizeInLoci() + \"String_Node_Str\" + currentShard.approximateSizeInBytes() + \"String_Node_Str\");\n c.output(currentShard.finalize(index, (int) contig.end));\n }\n}\n"
|
"private void step() {\n while (true) {\n encoderPub.publish(new EncoderMeasurement(10, 2));\n gpsPub.publish(new GpsMeasurement(null, null, 42.00f, false, -76.00f, false, 0, 0, brake_down, brake_down));\n imuPub.publish(new ImuMeasurement(0, 0, 1, 2, 3, 4, 5, 6, 7));\n reqAnglePub.publish(new RemoteWheelAngleRequest(0.5));\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n}\n"
|
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case View.AttachInfo.INVALIDATE_MSG:\n ((View) msg.obj).invalidate();\n break;\n case View.AttachInfo.INVALIDATE_RECT_MSG:\n final View.AttachInfo.InvalidateInfo info = (View.AttachInfo.InvalidateInfo) msg.obj;\n info.target.invalidate(info.left, info.top, info.right, info.bottom);\n info.release();\n break;\n case DO_TRAVERSAL:\n if (mProfile) {\n Debug.startMethodTracing(\"String_Node_Str\");\n }\n performTraversals();\n if (mProfile) {\n Debug.stopMethodTracing();\n mProfile = false;\n }\n break;\n case FINISHED_EVENT:\n handleFinishedEvent(msg.arg1, msg.arg2 != 0);\n break;\n case DISPATCH_KEY:\n if (LOCAL_LOGV)\n Log.v(TAG, \"String_Node_Str\" + msg.obj + \"String_Node_Str\" + mView);\n deliverKeyEvent((KeyEvent) msg.obj, msg.arg1 != 0);\n break;\n case DISPATCH_POINTER:\n {\n MotionEvent event = (MotionEvent) msg.obj;\n try {\n deliverPointerEvent(event);\n } finally {\n event.recycle();\n if (LOCAL_LOGV || WATCH_POINTER)\n Log.i(TAG, \"String_Node_Str\");\n }\n }\n break;\n case DISPATCH_TRACKBALL:\n {\n MotionEvent event = (MotionEvent) msg.obj;\n try {\n deliverTrackballEvent(event);\n } finally {\n event.recycle();\n }\n }\n break;\n case DISPATCH_APP_VISIBILITY:\n handleAppVisibility(msg.arg1 != 0);\n break;\n case DISPATCH_GET_NEW_SURFACE:\n handleGetNewSurface();\n break;\n case RESIZED:\n ResizedInfo ri = (ResizedInfo) msg.obj;\n if (mWinFrame.width() == msg.arg1 && mWinFrame.height() == msg.arg2 && mPendingContentInsets.equals(ri.coveredInsets) && mPendingVisibleInsets.equals(ri.visibleInsets) && ((ResizedInfo) msg.obj).newConfig == null) {\n break;\n }\n case RESIZED_REPORT:\n if (mAdded) {\n Configuration config = ((ResizedInfo) msg.obj).newConfig;\n if (config != null) {\n updateConfiguration(config, false);\n }\n mWinFrame.left = 0;\n mWinFrame.right = msg.arg1;\n mWinFrame.top = 0;\n mWinFrame.bottom = msg.arg2;\n mPendingContentInsets.set(((ResizedInfo) msg.obj).coveredInsets);\n mPendingVisibleInsets.set(((ResizedInfo) msg.obj).visibleInsets);\n if (msg.what == RESIZED_REPORT) {\n mReportNextDraw = true;\n }\n if (mView != null) {\n forceLayout(mView);\n }\n requestLayout();\n }\n break;\n case WINDOW_FOCUS_CHANGED:\n {\n if (mAdded) {\n boolean hasWindowFocus = msg.arg1 != 0;\n mAttachInfo.mHasWindowFocus = hasWindowFocus;\n if (hasWindowFocus) {\n boolean inTouchMode = msg.arg2 != 0;\n ensureTouchModeLocally(inTouchMode);\n if (mGlWanted) {\n checkEglErrors();\n if (mGlWanted && !mUseGL) {\n initializeGL();\n if (mGlCanvas != null) {\n float appScale = mAttachInfo.mApplicationScale;\n mGlCanvas.setViewport((int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f));\n }\n }\n }\n }\n mLastWasImTarget = WindowManager.LayoutParams.mayUseInputMethod(mWindowAttributes.flags);\n InputMethodManager imm = InputMethodManager.peekInstance();\n if (mView != null) {\n if (hasWindowFocus && imm != null && mLastWasImTarget) {\n imm.startGettingWindowFocus(mView);\n }\n mAttachInfo.mKeyDispatchState.reset();\n mView.dispatchWindowFocusChanged(hasWindowFocus);\n }\n if (hasWindowFocus) {\n if (imm != null && mLastWasImTarget) {\n imm.onWindowFocus(mView, mView.findFocus(), mWindowAttributes.softInputMode, !mHasHadWindowFocus, mWindowAttributes.flags);\n }\n mWindowAttributes.softInputMode &= ~WindowManager.LayoutParams.SOFT_INPUT_IS_FORWARD_NAVIGATION;\n ((WindowManager.LayoutParams) mView.getLayoutParams()).softInputMode &= ~WindowManager.LayoutParams.SOFT_INPUT_IS_FORWARD_NAVIGATION;\n mHasHadWindowFocus = true;\n }\n if (hasWindowFocus && mView != null) {\n sendAccessibilityEvents();\n }\n }\n }\n break;\n case DIE:\n doDie();\n break;\n case DISPATCH_KEY_FROM_IME:\n {\n if (LOCAL_LOGV)\n Log.v(TAG, \"String_Node_Str\" + msg.obj + \"String_Node_Str\" + mView);\n KeyEvent event = (KeyEvent) msg.obj;\n if ((event.getFlags() & KeyEvent.FLAG_FROM_SYSTEM) != 0) {\n event = KeyEvent.changeFlags(event, event.getFlags() & ~KeyEvent.FLAG_FROM_SYSTEM);\n }\n deliverKeyEventToViewHierarchy((KeyEvent) msg.obj, false);\n }\n break;\n case FINISH_INPUT_CONNECTION:\n {\n InputMethodManager imm = InputMethodManager.peekInstance();\n if (imm != null) {\n imm.reportFinishInputConnection((InputConnection) msg.obj);\n }\n }\n break;\n case CHECK_FOCUS:\n {\n InputMethodManager imm = InputMethodManager.peekInstance();\n if (imm != null) {\n imm.checkFocus();\n }\n }\n break;\n case CLOSE_SYSTEM_DIALOGS:\n {\n if (mView != null) {\n mView.onCloseSystemDialogs((String) msg.obj);\n }\n }\n break;\n }\n}\n"
|
"public void update(Target target) {\n User user = target.getUser();\n Team team = target.getTeam();\n LocalDate fromDate = target.getFromDate();\n LocalDate toDate = target.getToDate();\n LocalDateTime fromDateTime = new LocalDateTime(fromDate.getYear(), fromDate.getMonthOfYear(), fromDate.getDayOfMonth(), 0, 0);\n LocalDateTime toDateTime = new LocalDateTime(toDate.getYear(), toDate.getMonthOfYear(), toDate.getDayOfMonth(), 23, 59);\n if (user != null) {\n Query q = JPA.em().createQuery(\"String_Node_Str\");\n q.setParameter(1, user);\n q.setParameter(2, fromDateTime);\n q.setParameter(3, toDateTime);\n BigDecimal opportunityAmountWon = (BigDecimal) q.getSingleResult();\n Long callEmittedNumber = eventService.all().filter(\"String_Node_Str\", 1, user, fromDateTime, toDateTime).count();\n target.setCallEmittedNumber(callEmittedNumber.intValue());\n Long meetingNumber = eventService.all().filter(\"String_Node_Str\", 1, user, fromDateTime, toDateTime).count();\n target.setMeetingNumber(meetingNumber.intValue());\n target.setOpportunityAmountWon(opportunityAmountWon);\n Long opportunityCreatedNumber = opportunityService.all().filter(\"String_Node_Str\", user, fromDateTime, toDateTime).count();\n target.setOpportunityCreatedNumber(opportunityCreatedNumber.intValue());\n Long opportunityCreatedWon = opportunityService.all().filter(\"String_Node_Str\", user, fromDateTime, toDateTime).count();\n target.setOpportunityCreatedWon(opportunityCreatedWon.intValue());\n } else if (team != null) {\n Query q = JPA.em().createQuery(\"String_Node_Str\");\n q.setParameter(1, team);\n q.setParameter(2, fromDateTime);\n q.setParameter(3, toDateTime);\n BigDecimal opportunityAmountWon = (BigDecimal) q.getSingleResult();\n Long callEmittedNumber = eventService.all().filter(\"String_Node_Str\", 1, team, fromDateTime, toDateTime).count();\n target.setCallEmittedNumber(callEmittedNumber.intValue());\n Long meetingNumber = eventService.all().filter(\"String_Node_Str\", 1, user, fromDateTime, toDateTime).count();\n target.setMeetingNumber(meetingNumber.intValue());\n target.setOpportunityAmountWon(opportunityAmountWon);\n Long opportunityCreatedNumber = opportunityService.all().filter(\"String_Node_Str\", user, fromDateTime, toDateTime).count();\n target.setOpportunityCreatedNumber(opportunityCreatedNumber.intValue());\n Long opportunityCreatedWon = opportunityService.all().filter(\"String_Node_Str\", user, fromDateTime, toDateTime).count();\n target.setOpportunityCreatedWon(opportunityCreatedWon.intValue());\n }\n save(target);\n}\n"
|
"public void removeTask(int taskId, boolean isDocument) {\n if (mAm == null)\n return;\n if (Constants.DebugFlags.App.EnableSystemServicesProxy)\n return;\n mAm.removeTask(taskId);\n}\n"
|
"public String getName() {\n return astRoot.getIdentifier().getEscapedCodeStr();\n}\n"
|
"public String filter(String term) {\n dribble.nextToken = saveWildcards(term);\n try {\n Token mapped = filter.next();\n if (mapped.termText().equals(term))\n return term;\n return mapped.termText();\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_Str\" + e);\n }\n}\n"
|
"public MLDataPair toMLDataPair(List<Integer> dataColumnIdList, Set<Integer> workingColumnSet) {\n double[] params = new double[workingColumnSet.size()];\n int pos = 0;\n for (int i = 0; i < dataColumnIdList.size(); i++) {\n if (workingColumnSet.contains(dataColumnIdList.get(i))) {\n params[pos++] = inputs[i];\n }\n }\n return new BasicMLDataPair(new BasicMLData(params), new BasicMLData(this.ideal));\n}\n"
|
"public long hashChar(char input) {\n int unsignedInput = (int) input;\n int firstByte = (unsignedInput >> FIRST_SHORT_BYTE_SHIFT) & FIRST_SHORT_BYTE_MASK;\n int secondByte = (unsignedInput >> SECOND_SHORT_BYTE_SHIFT) & SECOND_SHORT_BYTE_MASK;\n long hash = hash1To3Bytes(2, firstByte, secondByte, secondByte);\n return finalize(hash);\n}\n"
|
"public boolean isExit(Statement n) {\n switch(n.getKind()) {\n case PARAM_CALLEE:\n case HEAP_PARAM_CALLEE:\n case PHI:\n case NORMAL_RET_CALLER:\n case PARAM_CALLER:\n case HEAP_RET_CALLER:\n case NORMAL:\n case EXC_RET_CALLER:\n return false;\n case HEAP_RET_CALLEE:\n case EXC_RET_CALLEE:\n case NORMAL_RET_CALLEE:\n return true;\n default:\n Assertions.UNREACHABLE(n.toString());\n return false;\n }\n}\n"
|
"public static Set<String> getMissingJars(HDFSConnectionBean connection) {\n Set<String> set = new HashSet<String>();\n Set<String> jars = new HashSet<String>();\n ClassLoader classLoader = HadoopClassLoaderFactory.getClassLoader(connection.getDistribution(), connection.getDfVersion(), false, false);\n if (classLoader instanceof DynamicClassLoader) {\n set.addAll(((DynamicClassLoader) classLoader).getLibraries());\n }\n List jarsNeed = ModulesNeededProvider.getModulesNeeded();\n for (Object jar : jarsNeed) {\n if (jar instanceof ModuleNeeded) {\n String jarName = ((ModuleNeeded) jar).getModuleName();\n if (set.contains(jarName) && ((ModuleNeeded) jar).getStatus().equals(ELibraryInstallStatus.NOT_INSTALLED)) {\n jars.add(jarName);\n }\n }\n }\n return jars;\n}\n"
|
"public boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction) {\n return isItemValidForSlot(index, itemStackIn);\n}\n"
|
"public Boolean get() {\n ModuleSelectionInfo info = moduleList.getSelection();\n return info != null && info.isPresent() && !isSelectedGameplayModule(info) && (info.isSelected() || info.isValidToSelect());\n}\n"
|
"public SqlDatabaseImpl withoutTag(String key) {\n if (this.inner().getTags() != null) {\n this.inner().getTags().remove(key);\n }\n return this;\n}\n"
|
"private String[] getNames(String vals) {\n List<String> nn = StrUtils.splitSmart(vals, charSeparator);\n String[] names = new String[nn.size()];\n int j = 0;\n for (String n : nn) {\n names[j] = unescape(n);\n j++;\n }\n return names;\n}\n"
|
"public static boolean exists(final Configuration conf, String input, final Properties providerProperties) throws IOException {\n return resolveNameToPath(conf, input, providerProperties, true, false) != null;\n}\n"
|
"public boolean onCommand(CommandSender sender, Command commandArg, String commandLabel, String[] arg) {\n try {\n Player player = (Player) sender;\n String command = commandArg.getName().toLowerCase();\n try {\n if (command.equalsIgnoreCase(\"String_Node_Str\")) {\n if (player.isOp() || gimme.Permissions.has(player, \"String_Node_Str\")) {\n if (arg.length >= 1 && arg.length <= 2) {\n Pattern p = Pattern.compile(\"String_Node_Str\");\n Matcher m = p.matcher(arg[0]);\n if (m.matches()) {\n if (!(itemDeny(Integer.valueOf(arg[0])))) {\n if (arg[1] != null) {\n giveItemId(arg[0], arg[1], player);\n } else {\n giveItemId(arg[0], \"String_Node_Str\", player);\n }\n } else {\n player.sendMessage(logPrefix + \"String_Node_Str\");\n log.info(logPrefix + player.getDisplayName() + \"String_Node_Str\" + arg[0].toString());\n }\n } else {\n if (!(itemDeny(items.get(arg[0])))) {\n if (arg[1] != null) {\n giveItemName(arg[0], arg[1], player);\n } else {\n giveItemName(arg[0], \"String_Node_Str\", player);\n }\n } else {\n player.sendMessage(logPrefix + \"String_Node_Str\");\n log.info(logPrefix + player.getDisplayName() + \"String_Node_Str\" + arg[0].toString());\n }\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n return false;\n }\n }\n }\n if (gimme.Permissions.has(player, \"String_Node_Str\")) {\n if (!gimme.Permissions.has(player, \"String_Node_Str\")) {\n if (arg.length >= 1 && arg.length <= 2) {\n Pattern p = Pattern.compile(\"String_Node_Str\");\n Matcher m = p.matcher(arg[0]);\n if (m.matches()) {\n if (!(itemAllow(Integer.valueOf(arg[0])))) {\n if (arg[1] != null) {\n giveItemId(arg[0], arg[1], player);\n } else {\n giveItemId(arg[0], \"String_Node_Str\", player);\n }\n } else {\n player.sendMessage(logPrefix + \"String_Node_Str\");\n log.info(logPrefix + player.getDisplayName() + \"String_Node_Str\" + arg[0].toString());\n }\n } else {\n if (!(itemAllow(items.get(arg[0])))) {\n if (arg[1] != null) {\n giveItemName(arg[0], arg[1], player);\n } else {\n giveItemName(arg[0], \"String_Node_Str\", player);\n }\n } else {\n player.sendMessage(logPrefix + \"String_Node_Str\");\n log.info(logPrefix + player.getDisplayName() + \"String_Node_Str\" + arg[0].toString());\n }\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n return false;\n }\n }\n }\n return true;\n }\n return true;\n } catch (CommandException e) {\n e.printStackTrace();\n }\n return true;\n}\n"
|
"public void onTextureAcceptable(int texture, GLRender source) {\n super.onTextureAcceptable(texture, source);\n try {\n if (mVideoEncoder != null) {\n int oldTexture = mVideoEncoder.getInputTextureId();\n if (texture != oldTexture) {\n mVideoEncoder.setInputTextureId(texture);\n }\n }\n }\n}\n"
|
"public void Status(String[] args, User user) {\n PermissionUser puser2 = null;\n User user2 = null;\n if (args.length == 1 && !user.hasPerm(\"String_Node_Str\")) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n } else if (args.length == 1) {\n if ((puser2 = PermissionUser.matchUserIgnoreCase(args[0], plugin)) == null) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n user2 = User.matchUser(args[0], plugin);\n } else if (args.length == 0) {\n puser2 = user;\n user2 = user;\n } else {\n user.sendMessage(ChatColor.YELLOW + \"String_Node_Str\");\n return;\n }\n boolean jailed = puser2.hasPerm(\"String_Node_Str\", false);\n boolean muted = puser2.hasPerm(\"String_Node_Str\", false);\n boolean reported = false;\n for (Report ticket : plugin.reports.getReports()) {\n if (ticket.getAccused().getName().equalsIgnoreCase(puser2.getName()) && ticket.getStatus() != ReportStatus.CLOSED && ticket.getStatus() != ReportStatus.LOCKED) {\n reported = true;\n break;\n }\n }\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\" + puser2.getName() + \"String_Node_Str\");\n if (jailed) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (muted) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (reported) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (user.hasPerm(\"String_Node_Str\") && user2 != null) {\n boolean godded = user2.isGod();\n boolean poofed = user2.isPoofed();\n boolean nopoofed = user2.isNoPoofed();\n int health = user2.getHandle().getHealth();\n if (godded) {\n user.sendMessage(ChatColor.GREEN + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (poofed) {\n user.sendMessage(ChatColor.GREEN + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (nopoofed) {\n user.sendMessage(ChatColor.GREEN + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n }\n if (health >= 15) {\n user.sendMessage(ChatColor.GREEN + \"String_Node_Str\" + (((double) health) / 2) + \"String_Node_Str\");\n } else if (health <= 5) {\n user.sendMessage(ChatColor.RED + \"String_Node_Str\" + (health / 2) + \"String_Node_Str\");\n } else {\n user.sendMessage(ChatColor.YELLOW + \"String_Node_Str\" + (health / 2) + \"String_Node_Str\");\n }\n }\n}\n"
|
"public void handleEvent(Event event) {\n if (chart != null) {\n IAxisSet axisSet = chart.getAxisSet();\n if (axisSet != null) {\n IAxis xAxis = axisSet.getXAxis(0);\n if (xAxis != null) {\n Point cursor = chart.getPlotArea().toControl(Display.getCurrent().getCursorLocation());\n if (cursor.x >= 0 && cursor.x < chart.getPlotArea().getSize().x && cursor.y >= 0 && cursor.y < chart.getPlotArea().getSize().y) {\n String[] series = xAxis.getCategorySeries();\n ISeries[] data = chart.getSeriesSet().getSeries();\n if (data != null && data.length == 3 && series != null) {\n int x = (int) Math.round(xAxis.getDataCoordinate(cursor.x));\n if (x >= 0 && x < series.length && !series[x].equals(\"String_Node_Str\")) {\n builder.setLength(0);\n builder.append(\"String_Node_Str\");\n builder.append(Resources.getMessage(\"String_Node_Str\")).append(\"String_Node_Str\");\n builder.append(series[x]);\n builder.append(\"String_Node_Str\").append(Resources.getMessage(\"String_Node_Str\")).append(\"String_Node_Str\");\n builder.append(SWTUtil.getPrettyString(data[0].getYSeries()[x]));\n builder.append(\"String_Node_Str\").append(Resources.getMessage(\"String_Node_Str\")).append(\"String_Node_Str\");\n builder.append(SWTUtil.getPrettyString(data[1].getYSeries()[x]));\n builder.append(\"String_Node_Str\");\n sash.setToolTipText(builder.toString());\n return;\n }\n }\n }\n }\n }\n sash.setToolTipText(null);\n }\n}\n"
|
"public void render(final Treeitem item, final Object data) throws Exception {\n final Tree tree = item.getTree();\n final Component parent = item.getParent();\n final int index = item.getIndex();\n final Template tm = resoloveTemplate(tree, parent, data, index, \"String_Node_Str\");\n if (tm == null) {\n Treecell tc = new Treecell(Objects.toString(data));\n Treerow tr = null;\n item.setValue(data);\n if (item.getTreerow() == null) {\n tr = new Treerow();\n tr.setParent(item);\n } else {\n tr = item.getTreerow();\n tr.getChildren().clear();\n }\n tc.setParent(tr);\n } else {\n final String var = (String) tm.getParameters().get(EACH_ATTR);\n final String varnm = var == null ? EACH_VAR : var;\n final String itervar = (String) tm.getParameters().get(STATUS_ATTR);\n final String itervarnm = itervar == null ? varnm + STATUS_POST_VAR : itervar;\n final Component[] items = tm.create(parent, item, new VariableResolverX() {\n public Object resolveVariable(String name) {\n return varnm.equals(name) ? data : null;\n }\n public Object resolveVariable(XelContext ctx, Object base, Object name) throws XelException {\n if (base == null) {\n if (varnm.equals(name)) {\n return data;\n } else if (itervarnm.equals(name)) {\n return new AbstractIterationStatus() {\n private static final long serialVersionUID = 1L;\n public int getIndex() {\n return Integer.valueOf(index);\n }\n };\n }\n }\n return null;\n }\n }, null);\n if (items.length != 1)\n throw new UiException(\"String_Node_Str\" + items.length);\n final Treeitem ti = (Treeitem) items[0];\n ti.setAttribute(BinderImpl.VAR, varnm);\n addItemReference(ti, toPath(ti), varnm);\n ti.setAttribute(itervarnm, new AbstractIterationStatus() {\n private static final long serialVersionUID = 1L;\n public int getIndex() {\n return Integer.valueOf(index);\n }\n });\n addTemplateTracking(tree, ti, data, index);\n if (ti.getValue() == null)\n ti.setValue(data);\n item.setAttribute(\"String_Node_Str\", ti);\n item.detach();\n }\n}\n"
|
"public SparseVector saxpy(double scalar, Vector vector) {\n checkVectorSize(vector);\n SparseVector resultVector = new SparseVector(size, hashMap);\n if (vector.type() != VectorType.SPARSE) {\n for (int i = 0; i < size; i++) {\n resultVector.set(i, this.get(i) + scalar * vector.get(i));\n }\n } else {\n List<Integer> keysUnion = new ArrayList<>(hashMap.keySet());\n keysUnion.addAll(((SparseVector) vector).hashMap.keySet());\n for (int key : keysUnion) {\n resultVector.set(key, this.get(key) + scalar * vector.get(key));\n }\n }\n return resultVector;\n}\n"
|
"public HashMap<String, HashMap<PlotId, Plot>> getPlotMePlots(Connection connection) throws SQLException {\n ResultSet r;\n PreparedStatement stmt;\n HashMap<String, Integer> plotWidth = new HashMap<>();\n HashMap<String, Integer> roadWidth = new HashMap<>();\n final HashMap<Integer, Plot> plots = new HashMap<>();\n HashMap<String, HashMap<PlotId, boolean[]>> merges = new HashMap<>();\n stmt = connection.prepareStatement(\"String_Node_Str\" + plugin + \"String_Node_Str\");\n r = stmt.executeQuery();\n boolean checkUUID = DBFunc.hasColumn(r, \"String_Node_Str\");\n boolean merge = !plugin.equals(\"String_Node_Str\") && Settings.CONVERT_PLOTME;\n while (r.next()) {\n int key = r.getInt(\"String_Node_Str\");\n PlotId id = new PlotId(r.getInt(\"String_Node_Str\"), r.getInt(\"String_Node_Str\"));\n String name = r.getString(\"String_Node_Str\");\n String world = LikePlotMeConverter.getWorld(r.getString(\"String_Node_Str\"));\n if (!plots.containsKey(world)) {\n if (merge) {\n int plot = PS.get().config.getInt(\"String_Node_Str\" + world + \"String_Node_Str\");\n int path = PS.get().config.getInt(\"String_Node_Str\" + world + \"String_Node_Str\");\n plotWidth.put(world, plot);\n roadWidth.put(world, path);\n merges.put(world, new HashMap<PlotId, boolean[]>());\n }\n }\n if (merge) {\n int tx = r.getInt(\"String_Node_Str\");\n int tz = r.getInt(\"String_Node_Str\");\n int bx = r.getInt(\"String_Node_Str\") - 1;\n int bz = r.getInt(\"String_Node_Str\") - 1;\n int path = roadWidth.get(world);\n int plot = plotWidth.get(world);\n Location top = getPlotTopLocAbs(path, plot, id);\n Location bot = getPlotBottomLocAbs(path, plot, id);\n if (tx > top.getX()) {\n setMerged(merges, world, id, 1);\n }\n if (tz > top.getZ()) {\n setMerged(merges, world, id, 2);\n }\n if (bx < bot.getX()) {\n setMerged(merges, world, id, 3);\n }\n if (bz > bot.getZ()) {\n setMerged(merges, world, id, 0);\n }\n }\n UUID owner = UUIDHandler.getUUID(name, null);\n if (owner == null) {\n if (name.equals(\"String_Node_Str\")) {\n owner = DBFunc.everyone;\n } else {\n if (checkUUID) {\n try {\n byte[] bytes = r.getBytes(\"String_Node_Str\");\n if (bytes != null) {\n owner = UUID.nameUUIDFromBytes(bytes);\n if (owner != null) {\n UUIDHandler.add(new StringWrapper(name), owner);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n if (owner == null) {\n MainUtil.sendConsoleMessage(\"String_Node_Str\" + id + \"String_Node_Str\" + name + \"String_Node_Str\");\n continue;\n }\n }\n } else {\n UUIDHandler.add(new StringWrapper(name), owner);\n }\n Plot plot = new Plot(world, id, owner);\n plots.put(key, plot);\n }\n for (Entry<Integer, Plot> entry : plots.entrySet()) {\n Plot plot = entry.getValue();\n HashMap<PlotId, boolean[]> mergeMap = merges.get(plot.world);\n if (mergeMap != null) {\n if (mergeMap.containsKey(plot.id)) {\n plot.getSettings().setMerged(mergeMap.get(plot.id));\n }\n }\n }\n r.close();\n stmt.close();\n try {\n MainUtil.sendConsoleMessage(\"String_Node_Str\" + plugin + \"String_Node_Str\");\n stmt = connection.prepareStatement(\"String_Node_Str\" + plugin + \"String_Node_Str\");\n r = stmt.executeQuery();\n while (r.next()) {\n int key = r.getInt(\"String_Node_Str\");\n Plot plot = plots.get(key);\n if (plot == null) {\n MainUtil.sendConsoleMessage(\"String_Node_Str\" + key + \"String_Node_Str\");\n continue;\n }\n UUID denied = UUID.fromString(r.getString(\"String_Node_Str\"));\n plot.getDenied().add(denied);\n }\n MainUtil.sendConsoleMessage(\"String_Node_Str\" + plugin + \"String_Node_Str\");\n stmt = connection.prepareStatement(\"String_Node_Str\" + plugin + \"String_Node_Str\");\n r = stmt.executeQuery();\n while (r.next()) {\n int key = r.getInt(\"String_Node_Str\");\n Plot plot = plots.get(key);\n if (plot == null) {\n MainUtil.sendConsoleMessage(\"String_Node_Str\" + key + \"String_Node_Str\");\n continue;\n }\n UUID allowed = UUID.fromString(r.getString(\"String_Node_Str\"));\n plot.getTrusted().add(allowed);\n }\n r.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n HashMap<String, HashMap<PlotId, Plot>> processed = new HashMap<>();\n for (Entry<Integer, Plot> entry : plots.entrySet()) {\n Plot plot = entry.getValue();\n HashMap<PlotId, Plot> map = processed.get(plot.world);\n if (map == null) {\n map = new HashMap<>();\n processed.put(plot.world, map);\n }\n map.put(plot.id, plot);\n }\n return processed;\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n if (!element.isEditable()) {\n Application.getInstance().getGUILog().log(\"String_Node_Str\");\n return;\n }\n SessionManager.getInstance().createSession(\"String_Node_Str\");\n try {\n element.setBody(Utils.addHtmlWrapper(doc));\n element.getAnnotatedElement().clear();\n JSONArray annotatedElements = (JSONArray) ((Map<String, JSONObject>) result.get(\"String_Node_Str\")).get(element.getID()).get(\"String_Node_Str\");\n if (annotatedElements != null) {\n for (String eid : (List<String>) annotatedElements) {\n Element aelement = (Element) Application.getInstance().getProject().getElementByID(eid);\n if (aelement != null)\n element.getAnnotatedElement().add(aelement);\n }\n }\n SessionManager.getInstance().closeSession();\n saySuccess();\n this.removeViolationAndUpdateWindow();\n } catch (Exception ex) {\n SessionManager.getInstance().cancelSession();\n Utils.printException(ex);\n }\n}\n"
|
"public void filterQueryFailed(FilterQuery query) {\n if (currentFilterQuery.equals(query))\n filterQueryFinished(query, false);\n}\n"
|
"public static ApplicationInfo generateApplicationInfo(Package p, int flags) {\n if (p == null)\n return null;\n if (!copyNeeded(flags, p, null)) {\n if (!sCompatibilityModeEnabled) {\n p.applicationInfo.disableCompatibilityMode();\n }\n return p.applicationInfo;\n }\n ApplicationInfo ai = new ApplicationInfo(p.applicationInfo);\n if ((flags & PackageManager.GET_META_DATA) != 0) {\n ai.metaData = p.mAppMetaData;\n }\n if ((flags & PackageManager.GET_SHARED_LIBRARY_FILES) != 0) {\n ai.sharedLibraryFiles = p.usesLibraryFiles;\n }\n if (!sCompatibilityModeEnabled) {\n ai.disableCompatibilityMode();\n }\n if (p.mSetEnabled == PackageManager.COMPONENT_ENABLED_STATE_ENABLED) {\n ai.enabled = true;\n } else if (p.mSetEnabled == PackageManager.COMPONENT_ENABLED_STATE_DISABLED) {\n ai.enabled = false;\n }\n return ai;\n}\n"
|
"public org.hl7.fhir.dstu2.model.QuestionnaireResponse convertQuestionnaireResponse(org.hl7.fhir.dstu3.model.QuestionnaireResponse src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.QuestionnaireResponse tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse();\n copyDomainResource(src, tgt);\n tgt.setIdentifier(convertIdentifier(src.getIdentifier()));\n tgt.setQuestionnaire(convertReference(src.getQuestionnaire()));\n tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));\n tgt.setSubject(convertReference(src.getSubject()));\n tgt.setAuthor(convertReference(src.getAuthor()));\n tgt.setAuthored(src.getAuthored());\n tgt.setSource(convertReference(src.getSource()));\n tgt.setEncounter(convertReference(src.getContext()));\n if (src.getItem().size() != 1)\n throw new FHIRException(\"String_Node_Str\");\n tgt.setGroup(convertQuestionnaireItemToGroup(src.getItem().get(0)));\n return tgt;\n}\n"
|
"private Set<MethodOutline> addTransition(StateClass state, BlockOutline block, Set<MethodOutline> combination, Set<MethodOutline> triggered, MethodOutline method) {\n final Set<MethodOutline> nextMethods = computeNextMethods(combination, triggered, method);\n final StateClass next = getStateFromBlockAndMethods(block, nextMethods);\n final Transition transition;\n if (method.isTerminal()) {\n if (method.getReturnType() != null) {\n TerminalTransition terminal = new TerminalTransition();\n terminal.setReturnType(method.getReturnType());\n transition = terminal;\n } else if (block.getReturnType() != null) {\n TerminalTransition terminal = new TerminalTransition();\n terminal.setReturnType(block.getReturnType());\n transition = terminal;\n } else {\n transition = new AscendingTransition(!method.isRequired());\n }\n } else if (state == next) {\n transition = new RecursiveTransition();\n } else {\n LateralTransition lateral = new LateralTransition();\n lateral.setSibling(next);\n transition = lateral;\n }\n transition.setMethodInfo(((MethodInfo) method).copy());\n state.addTransitions(transition);\n for (BlockOutline chain : method.getBlockChain()) {\n StateClass chainClass = convertBlock(chain);\n transition.getStateChain().add(chainClass);\n }\n return nextMethods;\n}\n"
|
"public void testEnum() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
|
"public static AnnotatorConfiguration getAnnotatorConfig(String name) {\n switch(name) {\n case BabelfyAnnotatorConfig.ANNOTATOR_NAME:\n return new BabelfyAnnotatorConfig();\n case NIFWebserviceAnnotatorConfiguration.ANNOTATOR_NAME:\n return new NIFWebserviceAnnotatorConfiguration(null, name, false, SingletonWikipediaApi.getInstance(), new DBPediaApi(), ExperimentType.Sa2W);\n case SpotlightAnnotatorConfig.ANNOTATOR_NAME:\n return new SpotlightAnnotatorConfig(SingletonWikipediaApi.getInstance(), new DBPediaApi());\n case TagMeAnnotatorConfig.ANNOTATOR_NAME:\n return new TagMeAnnotatorConfig();\n case WikipediaMinerAnnotatorConfig.ANNOTATOR_NAME:\n return new WikipediaMinerAnnotatorConfig();\n case AgdistisAnnotatorConfig.ANNOTATOR_NAME:\n return new AgdistisAnnotatorConfig(SingletonWikipediaApi.getInstance());\n default:\n return null;\n }\n}\n"
|
"public String getMode() {\n if (this.isEnabled()) {\n return DEFAULT_MODE;\n return DISABLED_MODE;\n}\n"
|
"public ValidateResult validate(AliasTransaction tx) {\n Alias alias = tx.getTxData();\n if (!Address.validAddress(alias.getAddress())) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ADDRESS_ERROR);\n }\n if (!StringUtils.validAlias(alias.getAlias())) {\n return ValidateResult.getFailedResult(alias.getClass().getName(), AccountErrorCode.ALIAS_ERROR);\n }\n AliasPo aliasPo = alisaStorageService.getAlias(alias.getAlias()).getData();\n if (aliasPo != null) {\n return ValidateResult.getFailedResult(AliasPo.class.getName(), AccountErrorCode.ALIAS_EXIST);\n }\n if (tx.isFreeOfFee()) {\n return ValidateResult.getFailedResult(alias.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n CoinData coinData = tx.getCoinData();\n if (null == coinData) {\n return ValidateResult.getFailedResult(this.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n Na realFee = tx.getFee();\n Na fee = TransactionFeeCalculator.getFee(tx.size());\n if (realFee.isLessThan(fee.add(AccountConstant.ALIAS_NA))) {\n return ValidateResult.getFailedResult(this.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n P2PKHScriptSig sig = new P2PKHScriptSig();\n try {\n sig.parse(tx.getScriptSig());\n } catch (NulsException e) {\n Log.error(e);\n return ValidateResult.getFailedResult(this.getClass().getName(), e.getMessage());\n }\n if (!Arrays.equals(tx.getTxData().getAddress(), AddressTool.getAddress(sig.getPublicKey()))) {\n ValidateResult result = ValidateResult.getFailedResult(this.getClass().getName(), \"String_Node_Str\");\n result.setLevel(SeverityLevelEnum.FLAGRANT_FOUL);\n return result;\n }\n return ValidateResult.getSuccessResult();\n}\n"
|
"private int getWeight(long id) {\n TLongBitArraySet m = nodeMrcaTipsAndInternal.get(id);\n if (m == null) {\n return 1;\n } else {\n return m.size();\n }\n}\n"
|
"public void onCompleted(JSONObject object, GraphResponse response) {\n try {\n SocialUser user = new SocialUser();\n user.userId = getValue(\"String_Node_Str\", object);\n user.accessToken = AccessToken.getCurrentAccessToken().getToken();\n user.profilePictureUrl = String.format(PROFILE_PIC_URL, user.userId);\n user.email = object.getString(\"String_Node_Str\");\n user.fullName = object.getString(\"String_Node_Str\");\n user.pageLink = object.getString(\"String_Node_Str\");\n loadingDialog.dismiss();\n handleSuccess(user);\n } catch (JSONException e) {\n loadingDialog.dismiss();\n handleError(e);\n }\n}\n"
|
"static final StackedSeriesLookup create(ChartWithAxes cwa, RunTimeContext rtc) throws ChartException, IllegalArgumentException {\n if (cwa == null) {\n return null;\n }\n final StackedSeriesLookup ssl = new StackedSeriesLookup(rtc);\n final Axis axBase = cwa.getBaseAxes()[0];\n final Axis[] axaOrthogonal = cwa.getOrthogonalAxes(axBase, true);\n EList<?> el;\n List<?> alSeries;\n int iSeriesCount;\n StackGroup sg, sgSingle;\n Series se;\n boolean bStackedSet;\n SeriesDefinition sd;\n int iSharedUnitIndex, iSharedUnitCount, iDataSetCount;\n ArrayList<StackGroup> alSGCopies;\n DataSetIterator dsi = null;\n for (int i = 0; i < axaOrthogonal.length; i++) {\n iSharedUnitIndex = 0;\n iSharedUnitCount = 0;\n sgSingle = null;\n EList<SeriesDefinition> sdList = axaOrthogonal[i].getSeriesDefinitions();\n List<StackGroup> alSGCopies = new ArrayList<StackGroup>(4);\n iSharedUnitCount = 0;\n for (int j = 0; j < el.size(); j++) {\n sd = (SeriesDefinition) el.get(j);\n alSeries = sd.getRunTimeSeries();\n iSeriesCount = alSeries.size();\n if (iSeriesCount > 1) {\n bStackedSet = false;\n sg = null;\n for (int k = 0; k < iSeriesCount; k++) {\n se = (Series) alSeries.get(k);\n dsi = new DataSetIterator(se.getDataSet());\n iDataSetCount = dsi.size();\n if (ssl.iCachedUnitCount == 0) {\n ssl.iCachedUnitCount = iDataSetCount;\n } else if (ssl.iCachedUnitCount != iDataSetCount) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { new Integer(ssl.iCachedUnitCount), new Integer(iDataSetCount) }));\n }\n if (se.canBeStacked()) {\n if (!se.isSetStacked()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.UNDEFINED_VALUE, \"String_Node_Str\", new Object[] { se }, Messages.getResourceBundle(rtc.getULocale()));\n }\n if (se.canShareAxisUnit()) {\n if (se.isStacked()) {\n if (k > 0 && !bStackedSet) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { sd }));\n }\n if (k == 0) {\n sg = new StackGroup(iSharedUnitIndex++);\n alSGCopies.add(sg);\n iSharedUnitCount++;\n }\n bStackedSet = true;\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n } else {\n if (k > 0 && bStackedSet) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { sd }));\n }\n sg = new StackGroup(iSharedUnitIndex++);\n alSGCopies.add(sg);\n iSharedUnitCount++;\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n } else {\n if (se.isStacked()) {\n if (k > 0 && !bStackedSet) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { sd }));\n }\n if (k == 0) {\n sg = new StackGroup(-1);\n alSGCopies.add(sg);\n }\n bStackedSet = true;\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n } else {\n if (k > 0 && bStackedSet) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { sd }));\n }\n sg = new StackGroup(-1);\n alSGCopies.add(sg);\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n }\n } else if (se.canShareAxisUnit()) {\n sg = new StackGroup(iSharedUnitIndex++);\n alSGCopies.add(sg);\n iSharedUnitCount++;\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n } else {\n sg = new StackGroup(-1);\n alSGCopies.add(sg);\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n }\n } else {\n for (int k = 0; k < iSeriesCount; k++) {\n se = (Series) alSeries.get(k);\n dsi = new DataSetIterator(se.getDataSet());\n iDataSetCount = dsi.size();\n if (ssl.iCachedUnitCount == 0) {\n ssl.iCachedUnitCount = iDataSetCount;\n } else if (ssl.iCachedUnitCount != iDataSetCount) {\n throw new IllegalArgumentException(MessageFormat.format(Messages.getResourceBundle(rtc.getULocale()).getString(\"String_Node_Str\"), new Object[] { new Integer(ssl.iCachedUnitCount), new Integer(iDataSetCount) }));\n }\n if (se.canBeStacked()) {\n if (se.canShareAxisUnit()) {\n if (se.isStacked()) {\n if (sgSingle == null) {\n sgSingle = new StackGroup(iSharedUnitIndex++);\n alSGCopies.add(sgSingle);\n iSharedUnitCount++;\n }\n ssl.htSeriesToStackGroup.put(se, sgSingle);\n sgSingle.addSeries(se);\n } else {\n sg = new StackGroup(iSharedUnitIndex++);\n iSharedUnitCount++;\n alSGCopies.add(sg);\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n } else {\n sg = new StackGroup(-1);\n alSGCopies.add(sg);\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n } else {\n sg = new StackGroup(-1);\n alSGCopies.add(sg);\n ssl.htSeriesToStackGroup.put(se, sg);\n sg.addSeries(se);\n }\n }\n }\n }\n if (iSharedUnitCount < 1)\n iSharedUnitCount = 1;\n for (int j = 0; j < alSGCopies.size(); j++) {\n sg = alSGCopies.get(j);\n {\n sg.updateCount(iSharedUnitCount);\n }\n }\n ssl.htAxisToStackGroups.put(axaOrthogonal[i], alSGCopies);\n }\n return ssl;\n}\n"
|
"protected void setEquations(final ExpandableStatefulODE equations) {\n this.expandable = equations;\n}\n"
|
"public ImportItem computeImportItem(IProgressMonitor monitor, ResourcesManager resManager, IPath resourcePath, boolean overwrite) throws Exception {\n if (resManager == null || resourcePath == null) {\n return null;\n }\n if (!validResourcePath(resourcePath)) {\n return null;\n }\n ImportItem importItem = new ImportItem(resourcePath);\n Resource resource = HandlerUtil.loadResource(resManager, importItem);\n if (resource != null) {\n importItem.setProperty((Property) EcoreUtil.getObjectByType(resource.getContents(), PropertiesPackage.eINSTANCE.getProperty()));\n } else {\n ResourceNotFoundException ex = new ResourceNotFoundException(Messages.getString(\"String_Node_Str\", importItem.getPath().lastSegment(), HandlerUtil.getValidItemRelativePath(resManager, importItem.getPath())));\n importItem.addError(ex.getMessage());\n }\n return importItem;\n}\n"
|
"private boolean trigger(IAssistTagAttributeState state) {\n Assert.isNotNull(state, \"String_Node_Str\");\n if (state.getTagName().compareToIgnoreCase(\"String_Node_Str\") != 0)\n return false;\n if (state.getAttribute().compareToIgnoreCase(\"String_Node_Str\") != 0)\n return false;\n return true;\n}\n"
|
"private void _init() throws IllegalActionException, NameDuplicationException {\n _state = new State(_controller, \"String_Node_Str\");\n _controller.initialStateName.setExpression(\"String_Node_Str\");\n directorClass.setVisibility(Settable.EXPERT);\n control = new PortParameter(this, \"String_Node_Str\");\n control.setExpression(\"String_Node_Str\");\n ParameterPort port = control.getPort();\n StringAttribute controlCardinal = new StringAttribute(port, \"String_Node_Str\");\n controlCardinal.setExpression(\"String_Node_Str\");\n _default = new Refinement(this, \"String_Node_Str\");\n}\n"
|
"public void init() throws XPathExpressionException, URISyntaxException, SAXException, XMLStreamException, LoginAuthenticationExceptionException, IOException, AutomationUtilException {\n super.initCluster(TestUserMode.SUPER_TENANT_ADMIN);\n automationContext = getAutomationContextWithKey(\"String_Node_Str\");\n topicAdminClient = new TopicAdminClient(automationContext.getContextUrls().getBackEndUrl(), super.login(automationContext));\n}\n"
|
"public void createCluster(final String name, final String type, final String distro, final String specFilePath, final String rpNames, final String dsNames, final String networkName, final String topology, final boolean resume, final boolean skipConfigValidation, final boolean alwaysAnswerYes) {\n this.alwaysAnswerYes = alwaysAnswerYes;\n if (name.indexOf(\"String_Node_Str\") != -1) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_CLUSTER + Constants.PARAM_NOT_CONTAIN_HORIZONTAL_LINE);\n return;\n }\n if (resume) {\n resumeCreateCluster(name);\n return;\n }\n ClusterCreate clusterCreate = new ClusterCreate();\n clusterCreate.setName(name);\n if (type != null) {\n ClusterType clusterType = ClusterType.getByDescription(type);\n if (clusterType == null) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INVALID_VALUE + \"String_Node_Str\" + \"String_Node_Str\" + type);\n return;\n }\n clusterCreate.setType(clusterType);\n }\n if (topology != null) {\n try {\n clusterCreate.setTopologyPolicy(TopologyType.valueOf(topology));\n } catch (IllegalArgumentException ex) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INVALID_VALUE + \"String_Node_Str\" + \"String_Node_Str\" + topology);\n return;\n }\n } else {\n clusterCreate.setTopologyPolicy(null);\n }\n if (distro != null) {\n List<String> distroNames = getDistroNames();\n if (validName(distro, distroNames)) {\n clusterCreate.setDistro(distro);\n } else {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_DISTRO + Constants.PARAM_NOT_SUPPORTED + distroNames);\n return;\n }\n }\n if (rpNames != null) {\n List<String> rpNamesList = CommandsUtils.inputsConvert(rpNames);\n if (rpNamesList.isEmpty()) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INPUT_RPNAMES_PARAM + Constants.MULTI_INPUTS_CHECK);\n return;\n } else {\n clusterCreate.setRpNames(rpNamesList);\n }\n }\n if (dsNames != null) {\n List<String> dsNamesList = CommandsUtils.inputsConvert(dsNames);\n if (dsNamesList.isEmpty()) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INPUT_DSNAMES_PARAM + Constants.MULTI_INPUTS_CHECK);\n return;\n } else {\n clusterCreate.setDsNames(dsNamesList);\n }\n }\n List<String> warningMsgList = new ArrayList<String>();\n List<String> networkNames = null;\n try {\n if (specFilePath != null) {\n ClusterCreate clusterSpec = CommandsUtils.getObjectByJsonString(ClusterCreate.class, CommandsUtils.dataFromFile(specFilePath));\n clusterCreate.setExternalHDFS(clusterSpec.getExternalHDFS());\n clusterCreate.setNodeGroups(clusterSpec.getNodeGroups());\n clusterCreate.setConfiguration(clusterSpec.getConfiguration());\n validateConfiguration(clusterCreate, skipConfigValidation, warningMsgList);\n if (!validateHAInfo(clusterCreate.getNodeGroups())) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_CLUSTER_SPEC_HA_ERROR + specFilePath);\n return;\n }\n }\n networkNames = getNetworkNames();\n } catch (Exception e) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, e.getMessage());\n return;\n }\n if (networkNames.isEmpty()) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_NETWORK_NAME + Constants.PARAM_NOT_EXISTED);\n return;\n } else {\n if (networkName != null) {\n if (validName(networkName, networkNames)) {\n clusterCreate.setNetworkName(networkName);\n } else {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_NETWORK_NAME + Constants.PARAM_NOT_SUPPORTED + networkNames);\n return;\n }\n } else {\n if (networkNames.size() == 1) {\n clusterCreate.setNetworkName(networkNames.get(0));\n } else {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAM_NETWORK_NAME + Constants.PARAM_NOT_SPECIFIED);\n return;\n }\n }\n }\n if (specFilePath != null) {\n if (!validateClusterCreate(clusterCreate)) {\n return;\n }\n }\n if (topology == null) {\n clusterCreate.setTopologyPolicy(TopologyType.NONE);\n } else {\n try {\n clusterCreate.setTopologyPolicy(TopologyType.valueOf(topology));\n } catch (IllegalArgumentException e) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INPUT_TOPOLOGY_INVALID_VALUE);\n System.out.println(\"String_Node_Str\");\n return;\n }\n }\n try {\n if (!showWarningMsg(clusterCreate.getName(), warningMsgList)) {\n return;\n }\n restClient.create(clusterCreate);\n CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_RESULT_CREAT);\n } catch (CliRestException e) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_CREATE, Constants.OUTPUT_OP_RESULT_FAIL, e.getMessage());\n }\n}\n"
|
"public void visitContainer(IContainerArea container) {\n if (container instanceof PageArea) {\n newPage(container);\n new SlideWriter(this).writeSlide((PageArea) container);\n this.pageGraphic.dispose();\n } else if (container instanceof TableArea) {\n outputTable((TableArea) container);\n } else if (TextWriter.isSingleTextControl(container)) {\n outputText((ContainerArea) container);\n } else {\n startContainer(container);\n visitChildren(container);\n endContainer(container);\n }\n}\n"
|
"private JComponent _getModeTransitionPanel() {\n JPanel modeTransitionTablePanel = new JPanel(new BorderLayout());\n final ModeTransitionTableModel tableModel = new ModeTransitionTableModel(_model);\n final JTable table = new JTable(tableModel);\n table.setGridColor(Color.black);\n JButton addRowButton = new JButton(\"String_Node_Str\");\n addRowButton.addActionListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent e) {\n Vector<String> vector = new Vector<String>();\n vector.add(\"String_Node_Str\");\n vector.add(\"String_Node_Str\");\n vector.add(\"String_Node_Str\");\n tableModel.addRow(vector);\n }\n });\n JButton saveButton = new JButton(\"String_Node_Str\");\n saveButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n tableModel.saveModel();\n } catch (IllegalActionException e1) {\n MessageHandler.error(e1.getMessage(), e1);\n } catch (NameDuplicationException e1) {\n MessageHandler.error(e1.getMessage(), e1);\n }\n }\n });\n modeTransitionTablePanel.add(table.getTableHeader(), BorderLayout.PAGE_START);\n modeTransitionTablePanel.add(table, BorderLayout.CENTER);\n JPanel buttons = new JPanel();\n buttons.add(addModeButton);\n buttons.add(saveButton);\n modeTransitionTablePanel.add(buttons, BorderLayout.SOUTH);\n return modeTransitionTablePanel;\n}\n"
|
"public void takeDamage(byte damage, int thisPlayerIndex, int thisMinionIndex, HearthTreeNode<BoardState> boardState, Deck deck) throws HSInvalidPlayerIndexException {\n byte damageRemaining = (byte) (damage - armor_);\n if (damageRemaining > 0) {\n armor_ = 0;\n super.takeDamage(damageRemaining, attackerPlayerIndex, thisPlayerIndex, thisMinionIndex, boardState, deck);\n } else {\n armor_ = (byte) (armor_ - damage);\n super.takeDamage((byte) 0, thisPlayerIndex, thisMinionIndex, boardState, deck);\n }\n}\n"
|
"private final void performLayoutLockedInner() {\n final int dw = mDisplay.getWidth();\n final int dh = mDisplay.getHeight();\n final int N = mWindows.size();\n int repeats = 0;\n int i;\n while (mLayoutNeeded) {\n mPolicy.beginLayoutLw(dw, dh);\n int topAttached = -1;\n for (i = N - 1; i >= 0; i--) {\n WindowState win = (WindowState) mWindows.get(i);\n final AppWindowToken atoken = win.mAppToken;\n final boolean gone = win.mViewVisibility == View.GONE || !win.mRelayoutCalled || win.mRootToken.hidden || (atoken != null && atoken.hiddenRequested) || win.mAttachedHidden || win.mExiting || win.mDestroying;\n if (!gone || !win.mHaveFrame) {\n if (!win.mLayoutAttached) {\n mPolicy.layoutWindowLw(win, win.mAttrs, null);\n } else {\n if (topAttached < 0)\n topAttached = i;\n }\n }\n }\n for (i = topAttached; i >= 0; i--) {\n WindowState win = (WindowState) mWindows.get(i);\n if (win.mLayoutAttached) {\n if ((win.mViewVisibility != View.GONE && win.mRelayoutCalled) || !win.mHaveFrame) {\n mPolicy.layoutWindowLw(win, win.mAttrs, win.mAttachedWindow);\n }\n }\n }\n int changes = mPolicy.finishLayoutLw();\n if ((changes & WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER) != 0) {\n if ((adjustWallpaperWindowsLocked() & ADJUST_WALLPAPER_LAYERS_CHANGED) != 0) {\n assignLayersLocked();\n }\n }\n if (changes == 0) {\n mLayoutNeeded = false;\n } else if (repeats > 2) {\n Log.w(TAG, \"String_Node_Str\");\n mLayoutNeeded = false;\n if ((changes & WindowManagerPolicy.FINISH_LAYOUT_REDO_CONFIG) != 0) {\n Configuration newConfig = updateOrientationFromAppTokensLocked(null, null);\n if (newConfig != null) {\n mLayoutNeeded = true;\n mH.sendEmptyMessage(H.COMPUTE_AND_SEND_NEW_CONFIGURATION);\n }\n }\n } else {\n repeats++;\n if ((changes & WindowManagerPolicy.FINISH_LAYOUT_REDO_CONFIG) != 0) {\n Configuration newConfig = updateOrientationFromAppTokensLocked(null, null);\n if (newConfig != null) {\n mH.sendEmptyMessage(H.COMPUTE_AND_SEND_NEW_CONFIGURATION);\n }\n }\n }\n }\n}\n"
|
"public static File getExternalProjectFolder(Project project, Context context) {\n initExternalStorage(context);\n String folderName = project.getId() + \"String_Node_Str\";\n File fileProject = new File(sFileExternDir, folderName);\n fileProject.mkdirs();\n return fileProject;\n}\n"
|
"public org.hl7.fhir.dstu2.model.CodeableConcept convertCodeableConcept(org.hl7.fhir.dstu3.model.CodeableConcept src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.CodeableConcept tgt = new org.hl7.fhir.dstu2.model.CodeableConcept();\n copyElement(src, tgt);\n for (org.hl7.fhir.dstu3.model.Coding t : src.getCoding()) tgt.addCoding(convertCoding(t));\n tgt.setText(src.getText());\n return tgt;\n}\n"
|
"private RPCResultPacket put(String filename, String contents, int id) {\n if (!Utility.fileExists(this, filename)) {\n logError(\"String_Node_Str\" + this.addr + \"String_Node_Str\" + filename + \"String_Node_Str\");\n return new RPCResultPacket(id, Status.NOT_EXIST, Utility.stringToByteArray(Status.NOT_EXIST.toString()));\n }\n try {\n PersistentStorageReader reader = getReader(filename);\n char[] buf = new char[MAX_FILE_SIZE];\n reader.read(buf);\n String oldFileData = new String(buf);\n PersistentStorageWriter writer = this.getWriter(TEMP_PUT_FILE, false);\n writer.write(filename + \"String_Node_Str\" + oldFileData);\n writer = this.getWriter(filename, false);\n writer.write(contents);\n writer = this.getWriter(TEMP_PUT_FILE, false);\n writer.delete();\n return new RPCResultPacket(id, Status.SUCCESS, Utility.stringToByteArray(\"String_Node_Str\" + filename));\n } catch (IOException e) {\n logError(\"String_Node_Str\" + this.addr + \"String_Node_Str\" + filename + \"String_Node_Str\");\n return new RPCResultPacket(id, Status.FAILURE, Utility.stringToByteArray(e.getMessage()));\n }\n}\n"
|
"public synchronized void run() {\n if (connectionNo > 0) {\n long time = System.currentTimeMillis();\n for (int i = 0; i < connectionNo; i++) {\n TCPConnection connection = activeConnections[i];\n switch(connection.state) {\n case TCPConnection.CLOSE_WAIT:\n if (connection.bufPos == connection.bufNextEmpty) {\n System.out.println(\"String_Node_Str\");\n TCPPacket packet = connection.createPacket();\n packet.flags |= TCPPacket.FIN;\n connection.state = TCPConnection.LAST_ACK;\n connection.send(packet);\n } else {\n }\n break;\n case TCPConnection.TIME_WAIT:\n if (connection.lastSendTime < time + TCPConnection.TIME_WAIT_MILLIS) {\n System.out.println(\"String_Node_Str\");\n connection.state = TCPConnection.CLOSED;\n connectionNo--;\n if (i > 0) {\n activeConnections[i] = activeConnections[connectionNo];\n i--;\n }\n }\n break;\n }\n }\n }\n}\n"
|
"public static Class<?> classForName(String name, ClassLoader... loaders) throws ClassNotFoundException {\n try {\n if (Thread.currentThread().getContextClassLoader() != null) {\n return Class.forName(name, true, Thread.currentThread().getContextClassLoader());\n } else {\n return Class.forName(name);\n }\n } catch (ClassNotFoundException e) {\n for (ClassLoader l : loaders) {\n try {\n return Class.forName(name, true, l);\n } catch (ClassNotFoundException ex) {\n }\n }\n }\n if (Thread.currentThread().getContextClassLoader() != null) {\n throw new ClassNotFoundException(\"String_Node_Str\" + name + \"String_Node_Str\" + Thread.currentThread().getContextClassLoader().toString() + \"String_Node_Str\" + Arrays.toString(loaders));\n } else {\n throw new ClassNotFoundException(\"String_Node_Str\" + name + \"String_Node_Str\" + Arrays.toString(loaders));\n }\n}\n"
|
"public void start() {\n final ClassPathResolver classPathResolver = new ClassPathResolver();\n boolean agentJarNotFound = classPathResolver.findAgentJar();\n if (!agentJarNotFound) {\n logger.severe(\"String_Node_Str\");\n logPinpointAgentLoadFail();\n return;\n }\n final String bootStrapCoreJar = classPathResolver.getBootStrapCoreJar();\n if (bootStrapCoreJar == null) {\n logger.severe(\"String_Node_Str\");\n logPinpointAgentLoadFail();\n return;\n }\n this.bootStrapCore = bootStrapCoreJar;\n if (!isValidId(\"String_Node_Str\", PinpointConstants.AGENT_NAME_MAX_LEN)) {\n logPinpointAgentLoadFail();\n return;\n }\n if (!isValidId(\"String_Node_Str\", PinpointConstants.APPLICATION_NAME_MAX_LEN)) {\n logPinpointAgentLoadFail();\n return;\n }\n URL[] pluginJars = classPathResolver.resolvePlugins();\n TraceMetadataLoaderService typeLoaderService = new DefaultTraceMetadataLoaderService(pluginJars);\n ServiceTypeRegistryService serviceTypeRegistryService = new DefaultServiceTypeRegistryService(typeLoaderService);\n AnnotationKeyRegistryService annotationKeyRegistryService = new DefaultAnnotationKeyRegistryService(typeLoaderService);\n String configPath = getConfigPath(classPathResolver);\n if (configPath == null) {\n logPinpointAgentLoadFail();\n return;\n }\n saveLogFilePath(classPathResolver);\n savePinpointVersion();\n try {\n ProfilerConfig profilerConfig = DefaultProfilerConfig.load(configPath);\n List<URL> libUrlList = resolveLib(classPathResolver);\n AgentClassLoader agentClassLoader = new AgentClassLoader(libUrlList.toArray(new URL[libUrlList.size()]));\n String bootClass = argMap.containsKey(\"String_Node_Str\") ? argMap.get(\"String_Node_Str\") : BOOT_CLASS;\n agentClassLoader.setBootClass(bootClass);\n logger.info(\"String_Node_Str\" + bootClass + \"String_Node_Str\");\n AgentOption option = createAgentOption(agentArgs, instrumentation, profilerConfig, pluginJars, bootStrapCore, serviceTypeRegistryService, annotationKeyRegistryService);\n Agent pinpointAgent = agentClassLoader.boot(option);\n pinpointAgent.start();\n registerShutdownHook(pinpointAgent);\n logger.info(\"String_Node_Str\");\n } catch (Exception e) {\n logger.log(Level.SEVERE, ProductInfo.NAME + \"String_Node_Str\" + e.getMessage(), e);\n logPinpointAgentLoadFail();\n }\n}\n"
|
"private void initServlet(Servlet servlet) throws ServletException {\n if (instanceInitialized && !singleThreadModel) {\n return;\n }\n try {\n instanceSupport.fireInstanceEvent(BEFORE_INIT_EVENT, servlet);\n if (SecurityUtil.executeUnderSubjectDoAs()) {\n Object[] initType = new Object[1];\n initType[0] = facade;\n SecurityUtil.doAsPrivilege(\"String_Node_Str\", servlet, classType, initType);\n initType = null;\n } else {\n servlet.init(facade);\n }\n instanceInitialized = true;\n if ((loadOnStartup >= 0) && (jspFile != null)) {\n DummyRequest req = new DummyRequest();\n req.setServletPath(jspFile);\n req.setQueryString(\"String_Node_Str\");\n String allowedMethods = (String) parameters.get(\"String_Node_Str\");\n if (allowedMethods != null && allowedMethods.length() > 0) {\n String[] s = allowedMethods.split(\"String_Node_Str\");\n if (s.length > 0) {\n req.setMethod(s[0].trim());\n }\n }\n DummyResponse res = new DummyResponse();\n if (SecurityUtil.executeUnderSubjectDoAs()) {\n Object[] serviceType = new Object[2];\n serviceType[0] = req;\n serviceType[1] = res;\n SecurityUtil.doAsPrivilege(\"String_Node_Str\", servlet, classTypeUsedInService, serviceType);\n } else {\n servlet.service(req, res);\n }\n }\n instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT, servlet);\n } catch (UnavailableException f) {\n instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT, servlet, f);\n unavailable(f);\n throw f;\n } catch (ServletException f) {\n instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT, servlet, f);\n throw f;\n } catch (Throwable f) {\n getServletContext().log(\"String_Node_Str\", f);\n instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT, servlet, f);\n String msg = MessageFormat.format(rb.getString(SERVLET_INIT_EXCEPTION), getName());\n throw new ServletException(msg, f);\n }\n}\n"
|
"protected void setUp() throws Exception {\n super.setUp();\n cells[0] = new CellArea(10, 10, 40, 40);\n cells[1] = new CellArea(50, 10, 40, 40);\n cells[2] = new CellArea(90, 10, 40, 40);\n cells[2].defineBorder(BorderInfo.RIGHT_BORDER, 6);\n cells[2].defineBorder(BorderInfo.RIGHT_BORDER, Color.orange);\n cells[3] = new CellArea(10, 50, 40, 80);\n cells[3].defineBorder(BorderInfo.BOTTOM_BORDER, 6);\n cells[3].defineBorder(BorderInfo.BOTTOM_BORDER, Color.blue);\n cells[4] = new CellArea(50, 50, 40, 40);\n cells[5] = new CellArea(90, 50, 40, 40);\n cells[5].defineBorder(BorderInfo.RIGHT_BORDER, 6);\n cells[5].defineBorder(BorderInfo.RIGHT_BORDER, Color.orange);\n cells[6] = null;\n cells[7] = new CellArea(50, 90, 40, 40);\n cells[7].defineBorder(BorderInfo.BOTTOM_BORDER, 4);\n cells[7].defineBorder(BorderInfo.BOTTOM_BORDER, Color.blue);\n cells[8] = new CellArea(90, 90, 40, 40);\n cells[8].defineBorder(BorderInfo.BOTTOM_BORDER, 2);\n cells[8].defineBorder(BorderInfo.BOTTOM_BORDER, Color.blue);\n cells[8].defineBorder(BorderInfo.RIGHT_BORDER, 6);\n cells[8].defineBorder(BorderInfo.RIGHT_BORDER, Color.orange);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(\"String_Node_Str\"));\n writer = new PostscriptWriter(bufferedOutputStream, \"String_Node_Str\");\n writer.startRenderer(null, null, null, 1, false, 600, false);\n writer.startPage(pageWidth, pageHeight);\n testBorderDraw();\n writer.endPage();\n writer.stopRenderer();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.