content
stringlengths
40
137k
"private static ResponseObject getActualResponseObject(ClientletContext context, Class<? extends Object> clazz, Object tentative) throws ClientletException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {\n ClientletStageDelegate csd = new ClientletStageDelegate(context);\n synchronized (STAGE_DELEGATE_MONITOR) {\n Stage.$appletDelegate.set(csd);\n Stage.$stages.setDefault();\n try {\n for (int level = 0; level < 3; level++) {\n if (logger.isLoggable(Level.INFO)) {\n logger.info(\"String_Node_Str\" + level + \"String_Node_Str\" + clazz);\n }\n if (tentative instanceof Stage) {\n Stage stage = (Stage) tentative;\n csd.get$stage().setFromLiteral(csd.$stage.get());\n csd.initialize$();\n return new ResponseObject(csd.createComponent(), stage.get$title().get(), stage);\n } else if ((tentative instanceof Scene) || (tentative instanceof Node)) {\n break;\n } else if (tentative instanceof FXObject) {\n Method runMethod = clazz.getMethod(Entry.entryMethodName(), new Class[] { Sequence.class });\n if (runMethod == null) {\n throw new ClientletException(\"String_Node_Str\");\n }\n Sequence<String> sequence = Sequences.emptySequence(String.class);\n tentative = runMethod.invoke(tentative, new Object[] { sequence });\n if (tentative == null) {\n tentative = new javax.swing.JPanel();\n break;\n }\n clazz = tentative.getClass();\n } else {\n break;\n }\n }\n } finally {\n Stage.$appletDelegate.set(null);\n }\n }\n return new ResponseObject(tentative, null, null);\n}\n"
"public Collection<String> get() {\n try {\n List<ProgramRecord> programs = appClient.listAllPrograms(cliConfig.getCurrentNamespace(), programType);\n List<String> programIds = new ArrayList<>();\n for (ProgramRecord programRecord : programs) {\n programIds.add(programRecord.getApp() + \"String_Node_Str\" + programRecord.getName());\n }\n return programIds;\n } catch (IOException e) {\n return Lists.newArrayList();\n } catch (UnauthenticatedException e) {\n return Lists.newArrayList();\n }\n}\n"
"public List<ItemStack> getSeedEntries() {\n ArrayList<ItemStack> list = this.te.getInventory();\n return list;\n}\n"
"protected void executeAction() {\n for (ITimerable s : timerables) {\n try {\n s.timerEvent();\n } catch (Throwable t) {\n System.out.println(\"String_Node_Str\");\n t.printStackTrace();\n s.kill();\n }\n }\n}\n"
"void backupIfNextOrPreviousChanged(boolean add) {\n List<Record> lsOwnedRecords = new ArrayList<Record>(1000);\n Collection<CMap> cmaps = concurrentMapManager.maps.values();\n for (final CMap cmap : cmaps) {\n boolean shouldBackup = false;\n if (cmap.backupCount > 0) {\n if (add) {\n shouldBackup = node.clusterManager.isNextChanged(cmap.backupCount);\n } else {\n shouldBackup = node.clusterManager.isNextChanged(cmap.backupCount) || node.clusterManager.isPreviousChanged(cmap.backupCount);\n }\n }\n if (shouldBackup) {\n for (Record rec : cmap.mapRecords.values()) {\n if (rec.isActive()) {\n if (rec.getKey() == null || rec.getKey().size() == 0) {\n throw new RuntimeException(\"String_Node_Str\" + rec.getKey());\n }\n lsOwnedRecords.add(rec);\n }\n }\n }\n if (!add)\n logger.log(Level.FINEST, thisAddress + \"String_Node_Str\" + lsOwnedRecords.size());\n for (final Record rec : lsOwnedRecords) {\n parallelExecutorBackups.execute(new FallThroughRunnable() {\n public void doRun() {\n concurrentMapManager.backupRecord(rec);\n }\n });\n }\n }\n}\n"
"public void testSort2() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier1 = dim1.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level11 = hier1.createLevel(\"String_Node_Str\");\n ILevelDefinition level12 = hier1.createLevel(\"String_Node_Str\");\n IDimensionDefinition dim2 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier2 = dim2.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level21 = hier2.createLevel(\"String_Node_Str\");\n cqd.createMeasure(\"String_Node_Str\");\n IBinding binding1 = new Binding(\"String_Node_Str\");\n binding1.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding1);\n IBinding binding2 = new Binding(\"String_Node_Str\");\n binding2.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding2);\n IBinding binding4 = new Binding(\"String_Node_Str\");\n binding4.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding4);\n IBinding binding5 = new Binding(\"String_Node_Str\");\n binding5.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding5);\n CubeSortDefinition sorter1 = new CubeSortDefinition();\n sorter1.setExpression(\"String_Node_Str\");\n sorter1.setSortDirection(ISortDefinition.SORT_DESC);\n sorter1.setTargetLevel(level21);\n CubeSortDefinition sorter2 = new CubeSortDefinition();\n sorter2.setExpression(\"String_Node_Str\");\n sorter2.setSortDirection(ISortDefinition.SORT_DESC);\n sorter2.setTargetLevel(level11);\n CubeSortDefinition sorter3 = new CubeSortDefinition();\n sorter3.setExpression(\"String_Node_Str\");\n sorter3.setSortDirection(ISortDefinition.SORT_DESC);\n sorter3.setTargetLevel(level12);\n cqd.addSort(sorter1);\n cqd.addSort(sorter2);\n cqd.addSort(sorter3);\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n IPreparedCubeQuery pcq = engine.prepare(cqd, null);\n ICubeQueryResults queryResults = pcq.execute(null);\n CubeCursor cursor = queryResults.getCubeCursor();\n List columnEdgeBindingNames = new ArrayList();\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n List rowEdgeBindingNames = new ArrayList();\n rowEdgeBindingNames.add(\"String_Node_Str\");\n this.printCube(cursor, columnEdgeBindingNames, rowEdgeBindingNames, \"String_Node_Str\");\n}\n"
"public void setAll(double value) {\n if (Math.abs(value) >= epsilon) {\n for (int i = 0; i < size; i++) {\n hashMap.put(i, value);\n }\n } else {\n hashMap = new HashMap<>(128);\n }\n}\n"
"private boolean processConditionalBranch(OPT_IR ir, OPT_Instruction cb, OPT_BasicBlock bb) {\n OPT_BasicBlock targetBlock = cb.getBranchTarget();\n if (targetBlock.getLandingPad())\n return false;\n OPT_Instruction targetLabel = targetBlock.firstInstruction();\n OPT_Instruction targetInst = firstRealInstructionFollowing(targetLabel);\n if (targetInst == null || targetInst == cb) {\n return false;\n }\n boolean endsBlock = cb.nextInstructionInCodeOrder().operator() == BBEND;\n if (endsBlock) {\n OPT_Instruction nextLabel = firstLabelFollowing(cb);\n if (targetLabel == nextLabel) {\n cb.remove();\n return true;\n }\n OPT_Instruction nextI = firstRealInstructionFollowing(nextLabel);\n if (nextI != null && Goto.conforms(nextI)) {\n OPT_BasicBlock gotoTarget = nextI.getBranchTarget();\n OPT_Instruction gotoLabel = gotoTarget.firstInstruction();\n OPT_Instruction gotoInst = firstRealInstructionFollowing(gotoLabel);\n if (gotoInst != nextI) {\n cb.insertAfter(nextI.copyWithoutLinks());\n bb.recomputeNormalOut(ir);\n return true;\n }\n }\n }\n if (generateBooleanCompare(ir, bb, cb, targetBlock)) {\n return true;\n }\n if (generateCondMove(ir, bb, cb)) {\n return true;\n }\n OPT_BasicBlock fallThrough = bb.getFallThroughBlock();\n if (fallThrough != null) {\n OPT_Instruction fallThroughInstruction = fallThrough.firstRealInstruction();\n if ((fallThroughInstruction != null) && Goto.conforms(fallThroughInstruction)) {\n bb.appendInstruction(fallThroughInstruction.copyWithoutLinks());\n bb.recomputeNormalOut(ir);\n }\n }\n if (Goto.conforms(targetInst)) {\n OPT_Instruction target2 = firstRealInstructionFollowing(targetInst.getBranchTarget().firstInstruction());\n if (target2 == targetInst) {\n return false;\n }\n IfCmp.setTarget(cb, (OPT_BranchOperand) Goto.getTarget(targetInst).copy());\n bb.recomputeNormalOut(ir);\n return true;\n }\n if (targetBlock.isEmpty()) {\n OPT_BasicBlock nextBlock = targetBlock.getFallThroughBlock();\n IfCmp.setTarget(cb, nextBlock.makeJumpTarget());\n bb.recomputeNormalOut(ir);\n return true;\n }\n if (isFlipCandidate(cb, targetInst)) {\n flipConditionalBranch(cb);\n bb.recomputeNormalOut(ir);\n return true;\n }\n return false;\n}\n"
"public List<IUS> getIUSFrom(int laneOrSampleAccession) {\n StringBuilder sb = new StringBuilder();\n if (ll.existsLane(\"String_Node_Str\" + laneOrSampleAccession) != null) {\n sb.append(\"String_Node_Str\");\n } else if (ll.existsSample(\"String_Node_Str\" + laneOrSampleAccession) != null) {\n sb.append(\"String_Node_Str\");\n } else {\n Log.error(\"String_Node_Str\" + laneOrSampleAccession);\n return null;\n }\n try {\n sb.append(laneOrSampleAccession).append(\"String_Node_Str\");\n JaxbObject<IUSList> jaxb = new JaxbObject<IUSList>();\n IUSList list = (IUSList) ll.existsObject(sb.toString(), \"String_Node_Str\", jaxb, new IUSList());\n if (list != null)\n return list.getList();\n } catch (JAXBException ex) {\n Log.error(\"String_Node_Str\", ex);\n }\n return null;\n}\n"
"public void testNamespaceIsolation() throws Exception {\n Id.Artifact systemAppArtifactId = Id.Artifact.from(Id.Namespace.SYSTEM, \"String_Node_Str\", \"String_Node_Str\");\n File jar = createAppJar(PluginTestApp.class, new File(systemArtifactsDir1, \"String_Node_Str\"), createManifest(ManifestFields.EXPORT_PACKAGE, PluginTestRunnable.class.getPackage().getName()));\n artifactRepository.addSystemArtifacts();\n Assert.assertTrue(jar.delete());\n Set<ArtifactRange> parents = ImmutableSet.of(new ArtifactRange(systemAppArtifactId.getNamespace().toEntityId(), systemAppArtifactId.getName(), new ArtifactVersion(\"String_Node_Str\"), new ArtifactVersion(\"String_Node_Str\")));\n NamespaceId namespace1 = Ids.namespace(\"String_Node_Str\");\n NamespaceId namespace2 = Ids.namespace(\"String_Node_Str\");\n Id.Artifact pluginArtifactId1 = Id.Artifact.from(namespace1.toId(), \"String_Node_Str\", \"String_Node_Str\");\n Id.Artifact pluginArtifactId2 = Id.Artifact.from(namespace2.toId(), \"String_Node_Str\", \"String_Node_Str\");\n try {\n Manifest manifest = createManifest(ManifestFields.EXPORT_PACKAGE, TestPlugin.class.getPackage().getName());\n File jarFile = createPluginJar(TestPlugin.class, new File(tmpDir, \"String_Node_Str\"), manifest);\n artifactRepository.addArtifact(pluginArtifactId1, jarFile, parents);\n artifactRepository.addArtifact(pluginArtifactId2, jarFile, parents);\n SortedMap<ArtifactDescriptor, Set<PluginClass>> extensions = artifactRepository.getPlugins(namespace1, systemAppArtifactId);\n Assert.assertEquals(1, extensions.keySet().size());\n Assert.assertEquals(2, extensions.values().iterator().next().size());\n extensions = artifactRepository.getPlugins(namespace2, systemAppArtifactId);\n Assert.assertEquals(1, extensions.keySet().size());\n Assert.assertEquals(2, extensions.values().iterator().next().size());\n } finally {\n artifactRepository.clear(NamespaceId.SYSTEM);\n artifactRepository.clear(namespace1);\n artifactRepository.clear(namespace2);\n }\n}\n"
"public void onQuery() {\n EntityManager em = emf.createEntityManager();\n UUID timeLineId = UUID.randomUUID();\n Date currentDate = new Date();\n CassandraCompoundKey key = new CassandraCompoundKey(\"String_Node_Str\", 1, timeLineId);\n Map<String, Client> clients = (Map<String, Client>) em.getDelegate();\n Client client = clients.get(PERSISTENCE_UNIT);\n ((CassandraClientBase) client).setCqlVersion(\"String_Node_Str\");\n CassandraPrimeUser user = new CassandraPrimeUser(key);\n user.setTweetBody(\"String_Node_Str\");\n user.setTweetDate(currentDate);\n em.persist(user);\n em.clear();\n final String noClause = \"String_Node_Str\";\n final String withFirstCompositeColClause = \"String_Node_Str\";\n final String withSecondCompositeColClause = \"String_Node_Str\";\n final String withBothCompositeColClause = \"String_Node_Str\";\n final String withAllCompositeColClause = \"String_Node_Str\";\n final String withLastCompositeColGTClause = \"String_Node_Str\";\n final String withSelectiveCompositeColClause = \"String_Node_Str\";\n Query q = em.createQuery(noClause);\n List<CassandraPrimeUser> results = q.getResultList();\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withFirstCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withSecondCompositeColClause);\n q.setParameter(\"String_Node_Str\", 1);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withBothCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withAllCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n q.setParameter(\"String_Node_Str\", timeLineId);\n results = q.getResultList();\n Assert.assertNotNull(results);\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withLastCompositeColGTClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n q.setParameter(\"String_Node_Str\", timeLineId);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n q = em.createQuery(withSelectiveCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n q.setParameter(\"String_Node_Str\", timeLineId);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n Assert.assertNull(results.get(0).getTweetBody());\n final String selectiveColumnTweetBodyWithAllCompositeColClause = \"String_Node_Str\";\n q = em.createQuery(selectiveColumnTweetBodyWithAllCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n q.setParameter(\"String_Node_Str\", timeLineId);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n Assert.assertEquals(\"String_Node_Str\", results.get(0).getTweetBody());\n Assert.assertNull(results.get(0).getTweetDate());\n final String selectiveColumnTweetDateWithAllCompositeColClause = \"String_Node_Str\";\n q = em.createQuery(selectiveColumnTweetDateWithAllCompositeColClause);\n q.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n q.setParameter(\"String_Node_Str\", 1);\n q.setParameter(\"String_Node_Str\", timeLineId);\n results = q.getResultList();\n Assert.assertEquals(1, results.size());\n Assert.assertEquals(currentDate.getTime(), results.get(0).getTweetDate().getTime());\n Assert.assertNull(results.get(0).getTweetBody());\n final String withCompositeKeyClause = \"String_Node_Str\";\n q = em.createQuery(withCompositeKeyClause);\n q.setParameter(\"String_Node_Str\", key);\n results = q.getResultList();\n Assert.assertNotNull(results);\n Assert.assertEquals(1, results.size());\n em.remove(user);\n em.clear();\n}\n"
"default String sqlgSqlgSchemaCreationScript() {\n return \"String_Node_Str\" + this.maybeWrapInQoutes(\"String_Node_Str\");\n}\n"
"public void burn() {\n if (type == Type.MIMIC) {\n Mimic m = Mimic.spawnAt(pos, items);\n if (m != null) {\n Buff.affect(m, Burning.class).reignite(m);\n m.sprite.emitter().burst(FlameParticle.FACTORY, 5);\n destroy();\n }\n }\n if (type != Type.HEAP) {\n return;\n }\n boolean burnt = false;\n boolean evaporated = false;\n for (Item item : items.toArray(new Item[0])) {\n if (item instanceof Scroll) {\n items.remove(item);\n burnt = true;\n } else if (item instanceof Dewdrop) {\n items.remove(item);\n evaporated = true;\n } else if (item instanceof MysteryMeat) {\n replace(item, ChargrilledMeat.cook((MysteryMeat) item));\n burnt = true;\n } else if (item instanceof Bomb) {\n items.remove(item);\n ((Bomb) item).explode(pos);\n return;\n }\n }\n if (burnt || evaporated) {\n if (Dungeon.visible[pos]) {\n if (burnt) {\n burnFX(pos);\n } else {\n evaporateFX(pos);\n }\n }\n if (isEmpty()) {\n destroy();\n } else if (sprite != null) {\n sprite.view(items.peek());\n }\n }\n}\n"
"private T readRow(Row row) {\n try {\n if (row.isEmpty()) {\n return null;\n }\n return getReflectionRowReader().read(row, objectSchema);\n } catch (Exception e) {\n throw new DataSetException(\"String_Node_Str\" + e.getMessage(), e);\n }\n}\n"
"public void chatClickListener(View view) {\n if (checkFriendStatus(user.getUserId())) {\n try {\n QBDialog existingPrivateDialog = privateChatHelper.createPrivateDialogIfNotExist(friend.getUserId());\n PrivateDialogActivity.start(FriendDetailsActivity.this, friend, existingPrivateDialog);\n } catch (QBResponseException e) {\n ErrorUtils.showError(this, e);\n }\n }\n}\n"
"private void process(final ReplicatedSharedHashMap map, final int serializedEntrySize, final EntryExternalizable externalizable, final TcpReplicatorBuilder tcpReplicatorBuilder) throws IOException {\n final byte identifier = map.identifier();\n final short packetSize = tcpReplicatorBuilder.packetSize();\n try {\n connector.asyncConnect(identifier, tcpReplicatorBuilder.endpoints(), tcpReplicatorBuilder.serverInetSocketAddress());\n for (; ; ) {\n register(pendingRegistrations);\n if (!selector.isOpen())\n return;\n final int nSelectedKeys = selector.select(100);\n if (nSelectedKeys == 0) {\n continue;\n }\n final long approxTime = System.currentTimeMillis();\n final long heartBeatInterval = tcpReplicatorBuilder.heartBeatInterval();\n final long approxTimeOutTime = approxTime + (long) (heartBeatInterval * 1.10);\n final Set<SelectionKey> selectedKeys = selector.selectedKeys();\n for (final SelectionKey key : selectedKeys) {\n try {\n if (!key.isValid())\n continue;\n if (key.isAcceptable())\n onAccept(key, serializedEntrySize, externalizable, packetSize, map.identifier(), heartBeatInterval);\n if (key.isConnectable())\n onConnect(packetSize, serializedEntrySize, externalizable, key, map.identifier(), heartBeatInterval);\n if (key.isReadable())\n onRead(map, key, approxTime);\n if (key.isWritable())\n onWrite(key, approxTime);\n checkHeartbeat(key, approxTime, identifier, (long) (heartBeatInterval * 1.10));\n } catch (CancelledKeyException e) {\n quietClose(key, e);\n } catch (ClosedSelectorException e) {\n quietClose(key, e);\n } catch (IOException e) {\n quietClose(key, e);\n } catch (Exception e) {\n LOG.info(\"String_Node_Str\", e);\n close(key);\n }\n }\n selectedKeys.clear();\n }\n } catch (ClosedSelectorException e) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\", e);\n } catch (ClosedChannelException e) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\", e);\n } catch (ConnectException e) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\", e);\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", e);\n } finally {\n if (selector != null)\n try {\n selector.close();\n } catch (IOException e) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\", e);\n }\n close();\n }\n}\n"
"void prepareMigrationTasks() {\n PartitionStateGenerator psg = getPartitionStateGenerator();\n psg.reArrange(partitions, members, PARTITION_COUNT, lostQ, immediateQ, scheduledQ);\n}\n"
"private void triggerToolTipHide() {\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n hideToolTip();\n }\n });\n}\n"
"private ITypeName getTypeNameFromFilename(final String filename) {\n return VmTypeName.get(filename.substring(0, filename.length() - MODEL_POSTFIX.length()).replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n}\n"
"public Object evaluate(Property property, Object storedValue) {\n if (storedValue == null) {\n return storedValue;\n }\n List<?> possibleValues = property.getPossibleValues();\n if (possibleValues != null) {\n if (storedValue instanceof String && !ContextParameterUtils.isContainContextParam((String) storedValue)) {\n for (Object possibleValue : possibleValues) {\n if (possibleValue.toString().equals(storedValue)) {\n return possibleValue;\n }\n }\n }\n }\n if (storedValue instanceof Schema || storedValue instanceof List || storedValue instanceof Enum || storedValue instanceof Boolean) {\n return storedValue;\n }\n IContext context = null;\n if (node != null) {\n IProcess process = node.getProcess();\n if (process != null) {\n IContextManager cm = process.getContextManager();\n if (cm != null) {\n context = cm.getDefaultContext();\n }\n }\n }\n String stringStoredValue = String.valueOf(storedValue);\n if (context != null && ContextParameterUtils.isContainContextParam(stringStoredValue)) {\n String valueFromContext = ContextParameterUtils.parseScriptContextCode(stringStoredValue, context);\n if (GenericTypeUtils.isBooleanType(property)) {\n return new Boolean(valueFromContext);\n }\n if (GenericTypeUtils.isIntegerType(property) && !valueFromContext.isEmpty()) {\n try {\n return Integer.valueOf(valueFromContext);\n } catch (Exception e) {\n return 0;\n }\n }\n if (GenericTypeUtils.isEnumType(property)) {\n List<?> propertyPossibleValues = ((Property<?>) property).getPossibleValues();\n if (propertyPossibleValues != null) {\n for (Object possibleValue : propertyPossibleValues) {\n if (possibleValue.toString().equals(valueFromContext)) {\n return possibleValue;\n }\n }\n }\n }\n if (valueFromContext != null) {\n return valueFromContext;\n }\n }\n if (GenericTypeUtils.isStringType(property)) {\n return TalendQuoteUtils.removeQuotes(String.valueOf(storedValue));\n }\n return storedValue;\n}\n"
"public static void initDimension(int dim) {\n if (WorldManager.getWorldByDimensionId(dim).isPresent()) {\n return;\n }\n if (dim == 0) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n WorldManager.getWorldByDimensionId(0).orElseThrow(() -> new RuntimeException(\"String_Node_Str\" + \"String_Node_Str\"));\n DimensionType dimensionType = WorldManager.getDimensionType(dim).orElse(null);\n if (dimensionType == null) {\n SpongeImpl.getLogger().warn(\"String_Node_Str\" + \"String_Node_Str\", dim);\n return;\n }\n final WorldProvider provider = dimensionType.createDimension();\n provider.setDimension(dim);\n String worldFolder = WorldManager.getWorldFolderByDimensionId(dim).orElse(provider.getSaveFolder());\n WorldProperties properties = WorldManager.getWorldProperties(worldFolder).orElse(null);\n if (properties == null) {\n final WorldArchetype.Builder builder = WorldArchetype.builder().dimension((org.spongepowered.api.world.DimensionType) (Object) dimensionType).keepsSpawnLoaded(dimensionType.shouldLoadSpawn());\n String modId = StaticMixinForgeHelper.getModIdFromClass(provider.getClass());\n WorldArchetype archetype = Sponge.getRegistry().getType(WorldArchetype.class, modId + \"String_Node_Str\" + dimensionType.getName().toLowerCase()).orElse(null);\n if (archetype == null) {\n final WorldArchetype.Builder builder = WorldArchetype.builder().dimension((org.spongepowered.api.world.DimensionType) (Object) dimensionType).keepsSpawnLoaded(dimensionType.shouldLoadSpawn());\n archetype = builder.build(modId + \"String_Node_Str\" + dimensionType.getName().toLowerCase(), dimensionType.getName());\n }\n IMixinWorldSettings worldSettings = (IMixinWorldSettings) archetype;\n worldSettings.setDimensionType((org.spongepowered.api.world.DimensionType) (Object) dimensionType);\n worldSettings.setLoadOnStartup(false);\n properties = WorldManager.createWorldProperties(worldFolder, archetype, dim);\n ((IMixinWorldInfo) properties).setDimensionId(dim);\n }\n if (!properties.isEnabled()) {\n SpongeImpl.getLogger().warn(\"String_Node_Str\", worldFolder, dim);\n return;\n }\n Optional<WorldServer> optWorld = WorldManager.loadWorld(properties);\n if (!optWorld.isPresent()) {\n SpongeImpl.getLogger().error(\"String_Node_Str\", properties.getWorldName());\n }\n}\n"
"public static AbstractDatacenter getAbstractDatacenter(String fileName) throws Exception {\n String json = TestPlacementUtil.readJson(fileName);\n logger.info(json);\n ObjectMapper mapper = new ObjectMapper();\n try {\n AbstractDatacenter dc = gson.fromJson(json, AbstractDatacenter.class);\n for (AbstractCluster cluster : dc.getClusters()) {\n List<AbstractDatastore> dsList = new ArrayList<AbstractDatastore>();\n for (AbstractDatastore datastore : cluster.getDatastores()) {\n AbstractDatastore ds = dc.findAbstractDatastore(datastore.getName());\n AuAssert.check(ds != null);\n dsList.add(ds);\n }\n cluster.setDatastores(dsList);\n for (AbstractHost host : cluster.getHosts()) {\n List<AbstractDatastore> datastores = new ArrayList<AbstractDatastore>();\n for (AbstractDatastore datastore : host.getDatastores()) {\n AbstractDatastore ds = dc.findAbstractDatastore(datastore.getName());\n AuAssert.check(ds != null);\n datastores.add(ds);\n }\n host.setDatastores(datastores);\n host.setParent(cluster);\n }\n }\n Assert.assertTrue(dc.findAbstractCluster(\"String_Node_Str\") != null, \"String_Node_Str\");\n return dc;\n } catch (Exception e) {\n logger.error(e.getMessage());\n throw e;\n }\n}\n"
"public void write(ClassWriter writer) {\n if ((this.modifiers & Modifiers.LAZY) == Modifiers.LAZY) {\n String desc = \"String_Node_Str\" + this.getDescription();\n String signature = this.type.getSignature();\n if (signature != null) {\n signature = \"String_Node_Str\" + signature;\n }\n MethodWriter mw = new MethodWriter(writer, writer.visitMethod(this.modifiers & Modifiers.METHOD_MODIFIERS, this.name, desc, signature, null));\n for (Annotation a : this.annotations) {\n a.write(mw);\n }\n mw.visitAnnotation(\"String_Node_Str\", false);\n mw.visitCode();\n this.value.writeExpression(mw);\n mw.visitEnd(this.type);\n return;\n }\n FieldVisitor fv = writer.visitField(this.modifiers & 0xFFFF, this.name, this.getDescription(), this.type.getSignature(), null);\n if ((this.modifiers & Modifiers.SEALED) != 0) {\n fv.visitAnnotation(\"String_Node_Str\", false);\n }\n if ((this.modifiers & Modifiers.DEPRECATED) != 0) {\n fv.visitAnnotation(\"String_Node_Str\", true);\n }\n if (this.annotations != null) {\n for (Annotation a : this.annotations) {\n a.write(fv);\n }\n }\n}\n"
"public void init() {\n out_sel = outputs.create(widget.id, \"String_Node_Str\", MetadataGroup.class, null);\n out_sel_met = outputs.create(widget.id, \"String_Node_Str\", List.class, EMPTY_LIST);\n in_items = inputs.create(\"String_Node_Str\", List.class, EMPTY_LIST, this::setItems);\n root.getChildren().add(table.getRoot());\n setAnchors(table.getRoot(), 0d);\n table.setFixedCellSize(GUI.font.getValue().getSize() + 5);\n table.getSelectionModel().setSelectionMode(MULTIPLE);\n table.searchSetColumn(VALUE);\n d(maintain(orient, table.nodeOrientationProperty()));\n d(maintain(zeropad, table.zeropadIndex));\n d(maintain(orig_index, table.showOriginalIndex));\n d(maintain(show_header, table.headerVisible));\n d(maintain(show_footer, table.footerVisible));\n table.setkeyNameColMapper(name -> \"String_Node_Str\".equals(name) ? name : MetadataGroup.Field.valueOfEnumString(name).toString());\n table.setColumnStateFacory(f -> {\n double w = f == VALUE ? 250 : 70;\n return new ColumnInfo(f.toString(), f.ordinal(), f.isCommon(), w);\n });\n table.setColumnFactory(f -> {\n Metadata.Field mf = fieldFilter.getValue();\n TableColumn<MetadataGroup, ?> c = new TableColumn(f.toString(mf));\n c.setCellValueFactory(cf -> cf.getValue() == null ? null : new PojoV(cf.getValue().getField(f)));\n Pos a = f.getType(mf).equals(String.class) ? CENTER_LEFT : CENTER_RIGHT;\n c.setCellFactory(f == AVG_RATING ? (Callback) App.ratingCell.getValue() : f == W_RATING ? (Callback) new NumberRatingCellFactory() : (Callback) col);\n return c;\n });\n App.ratingCell.addListener((o, ov, nv) -> table.getColumn(AVG_RATING).ifPresent(c -> c.setCellFactory((Callback) nv)));\n table.getDefaultColumnInfo();\n table.setRowFactory(tbl -> new ImprovedTableRow<MetadataGroup>().styleRuleAdd(\"String_Node_Str\", mg -> Player.playingtem.get().getField(fieldFilter.getValue()).equals(mg.getValue())).onLeftDoubleClick((row, e) -> playSelected()).onRightSingleClick((row, e) -> {\n if (!row.isSelected())\n tbl.getSelectionModel().clearAndSelect(row.getIndex());\n contxt_menu.show(this, (TableView) table, e);\n }));\n d(Player.playingtem.onUpdate(m -> table.updateStyleRules()));\n Menu m = (Menu) table.columnVisibleMenu.getItems().stream().filter(i -> i.getText().equals(\"String_Node_Str\")).findFirst().get();\n Stream.of(Field.values()).sorted(by(f -> f.name())).map(f -> new SelectionMenuItem(f.toStringEnum(), false) {\n {\n this.setOnMouseClicked(() -> {\n if (!selected.get()) {\n m.getItems().forEach(mi -> ((SelectionMenuItem) mi).selected.set(false));\n selected.set(true);\n fieldFilter.setNapplyValue(f);\n }\n });\n }\n }).forEach(m.getItems()::add);\n table.columnVisibleMenu.addEventHandler(WINDOW_SHOWN, e -> m.getItems().forEach(mi -> ((SelectionMenuItem) mi).selected.set(fieldFilter.getValue().toStringEnum().equals(mi.getText()))));\n table.setOnKeyPressed(e -> {\n if (e.getCode() == ENTER)\n playSelected();\n else if (e.getCode() == ESCAPE)\n table.getSelectionModel().clearSelection();\n });\n table.setOnDragDetected(e -> {\n if (e.getButton() == PRIMARY && !table.getSelectedItems().isEmpty() && table.isRowFull(table.getRowS(e.getSceneX(), e.getSceneY()))) {\n Dragboard db = table.startDragAndDrop(COPY);\n DragUtil.setItemList(filerListToSelectedNsort(), db, true);\n }\n e.consume();\n });\n table.setColumnResizePolicy(resize -> {\n FilteredTable<MetadataGroup, MetadataGroup.Field> t = (FilteredTable) resize.getTable();\n boolean b = UNCONSTRAINED_RESIZE_POLICY.call(resize);\n t.getColumn(ColumnField.INDEX).ifPresent(i -> i.setPrefWidth(t.calculateIndexColumnWidth()));\n t.getColumn(VALUE).ifPresent(c -> {\n double Σw = t.getColumns().stream().filter(TableColumn::isVisible).mapToDouble(TableColumn::getWidth).sum();\n double itemsHeight = (t.getItems().size() + 1) * t.getFixedCellSize();\n double scrollbar = itemsHeight < t.getHeight() ? 0 : 15;\n c.setPrefWidth(t.getWidth() - (scrollbar + Σw - c.getWidth()));\n });\n return b;\n });\n table.getSelectionModel().selectedItemProperty().addListener((o, ov, nv) -> out_sel.setValue(nv));\n EventStreams.changesOf(table.getSelectedItems()).reduceSuccessions((a, b) -> b, ofMillis(60)).subscribe(c -> {\n if (!sel_lock)\n out_sel_met.setValue(filerList(in_items.getValue(), true, false));\n });\n table.getSelectionModel().selectedItemProperty().addListener((o, ov, nv) -> {\n if (!sel_lock)\n sel_last = nv == null ? \"String_Node_Str\" : nv.getField().toS(nv.getValue(), \"String_Node_Str\");\n });\n table.setOnScroll(Event::consume);\n}\n"
"public void rejectCallClick() {\n Log.d(CALL_INTEGRATION, \"String_Node_Str\");\n cancelPlayer();\n Runnable rejectTask = callTasksMap.get(REJECT_CALL_TASK);\n executeCallTask(rejectTask);\n}\n"
"protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n if (w > 0) {\n Bundle args = new Bundle();\n args.putLong(SYNC_LOG_LOADER_FIRST_POLL, System.currentTimeMillis() - w * STEP_TIME / syncLogView.step);\n getLoaderManager().restartLoader(SYNC_LOG_LOADER, args, SyncLogFragment.this);\n }\n}\n"
"public List<TypedNamedEntity> performTask1(Document document) throws GerbilException {\n return getDocumentMarkings(document.getDocumentURI(), document.getText().length(), TypedNamedEntity.class);\n}\n"
"public O refTo(final O obj) {\n updateAccess(((PoolObject<?, T>) obj).memPool, ((PoolObject<?, T>) obj).index);\n return (O) this;\n}\n"
"public MibValue initialize(MibLoaderLog log) throws MibException {\n MibSymbol ref;\n MibValue value;\n String message;\n ref = context.findSymbol(name, false);\n if (ref == null) {\n ref = context.findSymbol(name, true);\n if (ref != null) {\n message = \"String_Node_Str\" + name + \"String_Node_Str\" + \"String_Node_Str\" + ref.getMib().getName();\n log.addWarning(location, message);\n }\n }\n if (ref instanceof MibValueSymbol) {\n value = ((MibValueSymbol) ref).getValue();\n if (value != null) {\n value = value.initialize(log);\n }\n if (value == null) {\n return null;\n }\n try {\n value = value.createReference();\n } catch (UnsupportedOperationException e) {\n throw new MibException(location, e.getMessage());\n }\n if (!(value instanceof ObjectIdentifierValue)) {\n value.setReferenceSymbol((MibValueSymbol) ref);\n }\n return value;\n } else if (ref == null) {\n message = \"String_Node_Str\" + name + \"String_Node_Str\";\n throw new MibException(location, message);\n } else {\n message = \"String_Node_Str\" + name + \"String_Node_Str\";\n throw new MibException(location, message);\n }\n}\n"
"private static Object execute(MumblerList<MumblerNode> nodes) {\n MumblerFunction function = MumblerFunction.create(new FrameSlot[] {}, StreamSupport.stream(nodes.spliterator(), false).toArray(size -> new MumblerNode[size]));\n DirectCallNode directCallNode = Truffle.getRuntime().createDirectCallNode(function.callTarget);\n return directCallNode.call(topFrame, new Object[] { topFrame.materialize() });\n}\n"
"public void onNext(BaseResponse<FeedArticleListData> feedArticleListResponse) {\n if (feedArticleListResponse.getErrorCode() == BaseResponse.SUCCESS) {\n mView.showArticleList(feedArticleListResponse, false);\n } else {\n mView.showArticleListFail();\n }\n}\n"
"public void storeImage(final byte[] data, android.hardware.Camera camera, Location loc) {\n boolean captureOnly = mIsImageCaptureIntent;\n Message msg = mHandler.obtainMessage(STORE_IMAGE_DONE);\n if (!mIsImageCaptureIntent) {\n storeImage(data, loc);\n sendBroadcast(new Intent(\"String_Node_Str\", mLastContentUri));\n msg.obj = data;\n } else {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 4;\n mCaptureOnlyBitmap = BitmapFactory.decodeByteArray(data, 0, data.length, options);\n cancelAutomaticPreviewRestart();\n }\n mHandler.sendMessage(msg);\n}\n"
"public ARPanel withDataset(Glyphset<?> data) {\n return new ARPanel(aggregator, display.transfer(), data, renderer);\n}\n"
"public static IPath getItemWorkspaceBasePath(Property property) {\n IPath itemBasePath = getItemTypedPath(property);\n return itemBasePath != null ? ResourceManager.getRootProject().getFolder(itemBasePath).getFullPath() : null;\n}\n"
"public List getGlobal(String whereSql, String clusterName, String tableName) {\n if (StringUtil.isBlank(whereSql)) {\n return null;\n }\n ShardedJedis redisClient = null;\n try {\n redisClient = jedisPool.getResource();\n String cacheKey = _buildGlobalCacheKey(whereKey, clusterName, tableName);\n List data = IOUtil.getObject(redisClient.get(cacheKey.getBytes()), List.class);\n if (LOG.isDebugEnabled() && data != null) {\n LOG.debug(\"String_Node_Str\" + cacheKey + \"String_Node_Str\");\n }\n return data;\n } catch (Exception e) {\n e.printStackTrace();\n LOG.warn(\"String_Node_Str\");\n } finally {\n if (redisClient != null)\n redisClient.close();\n }\n return null;\n}\n"
"public void mouseMoved(MouseEvent e) {\n int x = e.getX(), y = e.getY();\n int bodyPart = getEquipPlace(x, y);\n if (bodyPart != -1) {\n setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n selectedItem = player.getEquip(bodyPart);\n runOnUIThread(new Runnable() {\n public void run() {\n if (selectedItem != null)\n itemInfoLabel.setText(infoButton.getText().equals(INFO_ON) ? selectedItem.toPseudoHTML() : selectedItem.toPseudoHTMLShort());\n }\n });\n return;\n }\n if (x < 440 || x > 630 || y < 30 || y > 260) {\n setCursor(Cursor.getDefaultCursor());\n return;\n }\n x -= 440;\n y -= 30;\n x /= 40;\n y /= 40;\n setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n int itemIndex = x + 5 * y;\n if (itemIndex < player.getInventory().getSize()) {\n GameItem item = player.getInventory().getItem(itemIndex);\n if (item != null && item != selectedItem) {\n selectedItem = item;\n runOnUIThread(new Runnable() {\n public void run() {\n if (selectedItem != null)\n itemInfoLabel.setText(infoButton.getText().equals(INFO_ON) ? selectedItem.toPseudoHTML() : selectedItem.toPseudoHTMLShort());\n }\n });\n }\n }\n}\n"
"public void test() throws Exception {\n deleteDb(\"String_Node_Str\");\n testExplainRoundTrip();\n testOrderByExpression();\n testGroupSubquery();\n testAnalyzeLob();\n testLike();\n testExistsSubquery();\n testQueryCacheConcurrentUse();\n testQueryCacheResetParams();\n testRowId();\n testSortIndex();\n testAutoAnalyze();\n testInAndBetween();\n testNestedIn();\n testConstantIn1();\n testConstantIn2();\n testNestedInSelectAndLike();\n testNestedInSelect();\n testInSelectJoin();\n testMinMaxNullOptimization();\n if (config.networked) {\n return;\n }\n testOptimizeInJoinSelect();\n testOptimizeInJoin();\n testMultiColumnRangeQuery();\n testDistinctOptimization();\n testQueryCacheTimestamp();\n testQueryCacheSpeed();\n testQueryCache(true);\n testQueryCache(false);\n testIn();\n testMinMaxCountOptimization(true);\n testMinMaxCountOptimization(false);\n testOrderedIndexes();\n testConvertOrToIn();\n deleteDb(\"String_Node_Str\");\n}\n"
"protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n if (!lpparam.packageName.equals(Constants.PACKAGE_NAME)) {\n List<Sensor> fullSensorList = new ArrayList<>((Collection<? extends Sensor>) param.getResult());\n Iterator<Sensor> iterator = fullSensorList.iterator();\n while (iterator.hasNext()) {\n Sensor sensor = iterator.next();\n if (!shouldAppHalt(lpparam.processName, sensor) && getSensorStatus(sensor) == Constants.SENSOR_STATUS_REMOVE_SENSOR) {\n iterator.remove();\n }\n }\n param.setResult(fullSensorList);\n }\n}\n"
"public boolean handleValidate(Object obj) {\n CrosstabReportItemHandle crosstab = getCrosstabCellHandle().getCrosstab();\n if (obj instanceof Object[]) {\n Object[] objects = (Object[]) obj;\n int len = objects.length;\n if (len == 0) {\n return false;\n }\n if (len == 1) {\n return handleValidate(objects[0]);\n } else {\n for (int i = 0; i < len; i++) {\n Object temp = objects[i];\n if (temp instanceof MeasureHandle || temp instanceof MeasureGroupHandle) {\n if (getPositionType().equals(ICrosstabCellAdapterFactory.CELL_MEASURE) && crosstab.getCube() == CrosstabAdaptUtil.getCubeHandle((DesignElementHandle) temp)) {\n continue;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n return true;\n }\n }\n if (obj instanceof DimensionHandle) {\n if ((getPositionType().equals(ICrosstabCellAdapterFactory.CELL_LEVEL_HANDLE) || getPositionType().equals(ICrosstabCellAdapterFactory.CELL_FIRST_LEVEL_HANDLE)) && CrosstabUtil.canContain(crosstab, (DimensionHandle) obj)) {\n return true;\n }\n }\n if (obj instanceof LevelHandle) {\n return handleValidate(CrosstabAdaptUtil.getDimensionHandle((LevelHandle) obj));\n }\n if (obj instanceof MeasureHandle) {\n if (getPositionType().equals(ICrosstabCellAdapterFactory.CELL_MEASURE) && CrosstabUtil.canContain(crosstab, (MeasureHandle) obj)) {\n return true;\n }\n }\n if (obj instanceof MeasureGroupHandle) {\n if (getPositionType().equals(ICrosstabCellAdapterFactory.CELL_MEASURE) && crosstab.getCube() == CrosstabAdaptUtil.getCubeHandle((DesignElementHandle) obj)) {\n return true;\n }\n }\n return false;\n}\n"
"public Logger getParentLogger() throws SQLException {\n if (_embedded != null) {\n return _embedded.getParentLogger();\n } else if (_netclient != null) {\n return _netclient.getParentLogger();\n } else {\n throw nothingWrapped(null);\n }\n}\n"
"protected void handlePageBreakInterval() {\n if (listExecutor.breakOnDetailBand) {\n BandDesign band = (BandDesign) design;\n if (band.getBandType() == BandDesign.BAND_DETAIL) {\n if (listExecutor.softBreakBefore) {\n IStyle style = content.getStyle();\n if (style != null) {\n CSSValue pageBreak = style.getProperty(IStyle.STYLE_PAGE_BREAK_BEFORE);\n if (pageBreak == null || IStyle.AUTO_VALUE.equals(pageBreak)) {\n style.setProperty(IStyle.STYLE_PAGE_BREAK_BEFORE, IStyle.SOFT_VALUE);\n }\n }\n listExecutor.softBreakBefore = false;\n listExecutor.previous();\n listExecutor.addAfterBreak = true;\n }\n }\n }\n}\n"
"public void testRecurrenceSet2() throws Exception {\n String recurrence = \"String_Node_Str\" + \"String_Node_Str\";\n verifyPopulateContentValues(recurrence, \"String_Node_Str\", null, null, null, 1250812800000L, \"String_Node_Str\", \"String_Node_Str\", 1);\n}\n"
"public void reset() {\n if (_state == State.FIRING) {\n _eventIterator.dispose();\n _actor.stop();\n }\n}\n"
"private Tag getTag(Map<String, Object> map) {\n Object rev = (map != null ? map.get(\"String_Node_Str\") : null);\n return (rev != null && rev instanceof String ? new Tag((String) rev, false) : null);\n}\n"
"public void turnRight() {\n if (direction != LEFT)\n direction = RIGHT;\n already_turned = true;\n}\n"
"protected void makeChanges() throws TransactionFailure {\n for (final String xmlName : mChanges.keySet()) {\n final Object value = mChanges.get(xmlName);\n final ConfigModel.Property prop = getConfigModel_Property(xmlName);\n if (prop.isCollection()) {\n handleCollection(mWriteable, prop, ListUtil.asStringList(value));\n } else if (value == null || (value instanceof String)) {\n mWriteable.setter(prop, value, String.class);\n } else {\n throw new TransactionFailure(\"String_Node_Str\" + xmlName + \"String_Node_Str\" + value.getClass().getName());\n }\n }\n}\n"
"static SkylarkList<Object> callGlob(PackageContext originalContext, Object include, Object exclude, boolean excludeDirs, FuncallExpression ast, Environment env) throws EvalException, ConversionException, InterruptedException {\n PackageContext context;\n if (originalContext == null) {\n context = getContext(env, ast);\n } else {\n context = originalContext;\n }\n List<String> includes = Type.STRING_LIST.convert(include, \"String_Node_Str\");\n List<String> excludes = Type.STRING_LIST.convert(exclude, \"String_Node_Str\");\n List<String> matches;\n try {\n Globber.Token globToken = context.globber.runAsync(includes, excludes, excludeDirs);\n matches = context.globber.fetch(globToken);\n } catch (IOException e) {\n String errorMessage = \"String_Node_Str\" + Joiner.on(\"String_Node_Str\").join(includes) + \"String_Node_Str\" + e.getMessage();\n context.eventHandler.handle(Event.error(ast.getLocation(), errorMessage));\n context.pkgBuilder.setIOExceptionAndMessage(e, errorMessage);\n matches = ImmutableList.of();\n } catch (BadGlobException e) {\n throw new EvalException(ast.getLocation(), e.getMessage());\n }\n GlobList<String> globList = GlobList.captureResults(includes, excludes, matches);\n return MutableList.copyOf(env, globList);\n}\n"
"public void onDestroy() {\n Log.d(TAG, \"String_Node_Str\");\n if (countEventCopiesFailed == 0) {\n notificationBuilder.setProgress(0, 0, false).setContentText(getString(R.string.notification_import_complete_copied) + \"String_Node_Str\" + countEventsCopied + \"String_Node_Str\" + getString(R.string.events) + getString(R.string.period));\n } else {\n notificationBuilder.setProgress(0, 0, false).setContentText(getString(R.string.notification_import_complete_copied) + \"String_Node_Str\" + countEventsCopied + \"String_Node_Str\" + getString(R.string.events) + \"String_Node_Str\" + countEventCopiesFailed + \"String_Node_Str\" + getString(R.string.failed) + getString(R.string.period));\n }\n notifyManager.notify(ID_CALENDAR_COPY_NOTIFICATION, notificationBuilder.build());\n}\n"
"protected CanonicalType parseCanonical(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {\n CanonicalType res = new CanonicalType(xpp.getAttributeValue(null, \"String_Node_Str\"));\n parseElementAttributes(xpp, res);\n next(xpp);\n int eventType = nextNoWhitespace(xpp);\n while (eventType != XmlPullParser.END_TAG) {\n if (!parseElementContent(eventType, xpp, res))\n unknownContent(xpp);\n eventType = nextNoWhitespace(xpp);\n }\n next(xpp);\n parseElementClose(res);\n return res;\n}\n"
"public static void setRoundingMode() {\n for (RoundingMode roundingMode : RoundingMode.values()) {\n if (roundingMode.id.equals(FOOD_HUNGER_ROUNDING_MODE_STRING.toLowerCase(Locale.ROOT))) {\n FOOD_HUNGER_ROUNDING_MODE = roundingMode;\n break;\n }\n }\n if (FOOD_HUNGER_ROUNDING_MODE == null) {\n ModSpiceOfLife.Log.warn(\"String_Node_Str\" + FOOD_HUNGER_ROUNDING_MODE_STRING + \"String_Node_Str\");\n FOOD_HUNGER_ROUNDING_MODE_STRING = \"String_Node_Str\";\n FOOD_HUNGER_ROUNDING_MODE = RoundingMode.ROUND;\n }\n}\n"
"public static Trainer getModel(CommandLine cmd) throws ParseException {\n final String algorithm = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final int iterations = cmd.hasOption(\"String_Node_Str\") ? Integer.parseInt(cmd.getOptionValue(\"String_Node_Str\")) : 10;\n final String modelName = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final IlpFormulation formulation = cmd.hasOption(\"String_Node_Str\") ? IlpFormulation.getById(cmd.getOptionValue(\"String_Node_Str\")) : IlpFormulation.DP_PROJ;\n Trainer trainer = null;\n if (algorithm.equals(\"String_Node_Str\")) {\n ViterbiParser parser;\n MStep<DepTreebank> mStep;\n ModelFactory modelFactory;\n if (modelName.equals(\"String_Node_Str\")) {\n parser = new IlpViterbiParser(formulation);\n mStep = new DmvMStep(lambda);\n modelFactory = new DmvModelFactory(new RandomWeightGenerator());\n } else {\n throw new ParseException(\"String_Node_Str\" + modelName);\n }\n trainer = new ViterbiTrainer(parser, mStep, modelFactory, iterations);\n } else {\n throw new ParseException(\"String_Node_Str\" + algorithm);\n }\n return trainer;\n}\n"
"public int indexOf(Object object) {\n if (mode != STRICT_SORT_ORDER || comparator == null)\n return super.indexOf(object);\n int index = ((SimpleTree) sorted).indexOfValue(object, true, false, ALL_COLORS);\n if (index == -1)\n return -1;\n for (; index < size(); index++) {\n E objectAtIndex = get(index);\n if (comparator.compare((E) object, objectAtIndex) != 0)\n return -1;\n if (GlazedListsImpl.equal(object, objectAtIndex))\n return index;\n }\n return -1;\n}\n"
"protected void sendChunkLoad(Player player, int x, int y) {\n World world = player.getEntity().getLocation().getPosition().getWorld();\n world.getChunkProvider().getChunk(x, y).addCallback(chunk -> {\n if (chunk == null) {\n logger.error(\"String_Node_Str\", x, y);\n return;\n }\n ChunkDataPacket chunkDataPacket = new ChunkDataPacket(x, y, true, chunk.getBlockDataStorage(), new NamedBinaryTag[] {});\n player.sendPacket(chunkDataPacket);\n }, throwable -> {\n logger.error(\"String_Node_Str\", throwable);\n });\n}\n"
"private VectorDataProviderFactory findFactory() throws IOException {\n boolean debugEnabled = log.isDebugEnabled();\n if (debugEnabled) {\n log.debug(\"String_Node_Str\" + ((prefix != null) ? prefix : \"String_Node_Str\") + \"String_Node_Str\" + name);\n log.debug(\"String_Node_Str\" + vectorProviderFactories.size());\n }\n if (prefix != null) {\n if (vectorProviderFactories.containsKey(prefix)) {\n if (debugEnabled) {\n log.debug(\"String_Node_Str\" + vectorProviderFactories.get(prefix).getClass().getName());\n }\n return vectorProviderFactories.get(prefix);\n }\n }\n for (final VectorDataProviderFactory factory : vectorProviderFactories.values()) {\n if (debugEnabled) {\n log.debug(\"String_Node_Str\" + factory.getClass().getName());\n }\n if (factory.exists(name, conf, props)) {\n if (debugEnabled) {\n log.debug(\"String_Node_Str\" + factory.getClass().getName());\n }\n return factory;\n }\n if (debugEnabled) {\n log.debug(\"String_Node_Str\" + name);\n }\n }\n if (debugEnabled) {\n log.debug(\"String_Node_Str\");\n }\n return null;\n}\n"
"protected void onPostExecute(APIResponse.CODE code) {\n super.onPostExecute(code);\n View view = mFragment.getView();\n if (view != null && activity != null) {\n ListViewAdapter adapter = new ListViewAdapter(activity, events);\n TextView noDataText = (TextView) view.findViewById(R.id.no_data);\n if ((code == APIResponse.CODE.NODATA && !ConnectionDetector.isConnectedToInternet(activity)) || (!forceFromCache && adapter.values.isEmpty())) {\n noDataText.setText(R.string.no_event_data);\n noDataText.setVisibility(View.VISIBLE);\n } else {\n ListView eventList = (ListView) view.findViewById(R.id.list);\n Parcelable state = eventList.onSaveInstanceState();\n eventList.setAdapter(adapter);\n noDataText.setVisibility(View.GONE);\n eventList.onRestoreInstanceState(state);\n }\n if (code == APIResponse.CODE.OFFLINECACHE) {\n activity.showWarningMessage(mFragment.getString(R.string.warning_using_cached_data));\n }\n if (!mHeader.equals(\"String_Node_Str\") || mTeamKey != null) {\n view.findViewById(R.id.progress).setVisibility(View.GONE);\n view.findViewById(R.id.list).setVisibility(View.VISIBLE);\n }\n if (code == APIResponse.CODE.LOCAL && !isCancelled()) {\n new PopulateEventList(mFragment, host, mYear, mHeader, mTeamKey, false).execute();\n } else {\n Log.i(Constants.REFRESH_LOG, \"String_Node_Str\");\n host.notifyRefreshComplete((RefreshListener) mFragment);\n }\n }\n}\n"
"public InputGateContext createInputGateContext(final GateID gateID) {\n if (gateID == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n InputGate<? extends Record> inputGate = null;\n final RuntimeEnvironment re = this.task.getRuntimeEnvironment();\n for (int i = 0; i < re.getNumberOfInputGates(); ++i) {\n final InputGate<? extends Record> candidateGate = re.getInputGate(i);\n if (candidateGate.getGateID().equals(gateID)) {\n inputGate = candidateGate;\n break;\n }\n }\n if (inputGate == null) {\n throw new IllegalStateException(\"String_Node_Str\" + gateID);\n }\n return new RuntimeInputGateContext(this.transferEnvelopeDispatcher, inputGate);\n}\n"
"public void init(Config cfg, int containerId, ResourcePlan plan) {\n this.config = cfg;\n this.resourcePlan = plan;\n this.id = containerId;\n this.noOfTasksPerExecutor = NO_OF_TASKS / plan.noOfContainers();\n setupTasks();\n setupNetwork();\n partition = new MPIDataFlowPartition(config, channel, taskPlan, sources, destinations, new PartitionBatchFinalReceiver(new RecordSave(), true, true, new IntegerComparator()), new PartitionPartialReceiver(), MPIDataFlowPartition.PartitionStratergy.DIRECT, MessageType.BYTE, MessageType.BYTE, MessageType.INTEGER, MessageType.INTEGER, OperationSemantics.STREAMING_BATCH, new EdgeGenerator(0));\n scheduleTasks();\n progress();\n}\n"
"protected void _calculateMinDelayOffsets() throws IllegalActionException {\n _clearMinDelayOffsets();\n Map inputModelTimeDelays = new HashMap<IOPort, Map<Integer, SuperdenseDependency>>();\n HashMap portDelays = new HashMap<IOPort, SuperdenseDependency>();\n for (Actor actor : (List<Actor>) (((TypedCompositeActor) getContainer()).deepEntityList())) {\n for (TypedIOPort inputPort : (List<TypedIOPort>) (actor.inputPortList())) {\n portDelays.put(inputPort, SuperdenseDependency.OPLUS_IDENTITY);\n }\n for (TypedIOPort outputPort : (List<TypedIOPort>) (actor.outputPortList())) {\n portDelays.put(outputPort, SuperdenseDependency.OPLUS_IDENTITY);\n }\n }\n for (TypedIOPort inputPort : (List<TypedIOPort>) (((Actor) getContainer()).inputPortList())) {\n SuperdenseDependency startDelay;\n if (_isNetworkPort(inputPort)) {\n startDelay = SuperdenseDependency.valueOf(_getNetworkDelay(inputPort), 0);\n } else {\n startDelay = SuperdenseDependency.valueOf(-_getRealTimeDelay(inputPort), 0);\n }\n portDelays.put(inputPort, startDelay);\n }\n for (TypedIOPort startPort : (List<TypedIOPort>) (((TypedCompositeActor) getContainer()).inputPortList())) {\n HashMap localPortDelays = new HashMap<IOPort, SuperdenseDependency>(portDelays);\n PriorityQueue distQueue = new PriorityQueue<PortDependency>();\n distQueue.add(new PortDependency(startPort, (SuperdenseDependency) localPortDelays.get(startPort)));\n while (!distQueue.isEmpty()) {\n PortDependency portDependency = (PortDependency) distQueue.remove();\n IOPort port = (IOPort) portDependency.port;\n SuperdenseDependency prevDependency = (SuperdenseDependency) portDependency.dependency;\n Actor actor = (Actor) port.getContainer();\n if (port.isInput() && port.isOutput()) {\n throw new IllegalActionException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n if (actor != getContainer()) {\n if (port.isInput()) {\n Collection<IOPort> outputs = _finiteDependentPorts(port);\n for (IOPort outputPort : outputs) {\n SuperdenseDependency minimumDelay = (SuperdenseDependency) _getDependency(port, outputPort);\n SuperdenseDependency modelTime = (SuperdenseDependency) prevDependency.oTimes(minimumDelay);\n if (((SuperdenseDependency) localPortDelays.get(outputPort)).compareTo(modelTime) > 0) {\n localPortDelays.put(outputPort, modelTime);\n distQueue.add(new PortDependency(outputPort, modelTime));\n }\n }\n } else {\n Receiver[][] remoteReceivers = port.getRemoteReceivers();\n if (remoteReceivers != null) {\n for (int i = 0; i < remoteReceivers.length; i++) {\n if (remoteReceivers[0] != null) {\n for (int j = 0; j < remoteReceivers[i].length; j++) {\n IOPort sinkPort = remoteReceivers[i][j].getContainer();\n int channel = sinkPort.getChannelForReceiver(remoteReceivers[i][j]);\n if (sinkPort.getContainer() != getContainer()) {\n Map<Integer, SuperdenseDependency> channelDependency = (Map<Integer, SuperdenseDependency>) inputModelTimeDelays.get(sinkPort);\n if (channelDependency == null) {\n channelDependency = new HashMap<Integer, SuperdenseDependency>();\n }\n channelDependency.put(Integer.valueOf(channel), prevDependency);\n inputModelTimeDelays.put(sinkPort, channelDependency);\n if (((SuperdenseDependency) localPortDelays.get(sinkPort)).compareTo(prevDependency) > 0) {\n localPortDelays.put(sinkPort, prevDependency);\n distQueue.add(new PortDependency(sinkPort, prevDependency));\n }\n }\n }\n }\n }\n }\n }\n } else if (port == startPort) {\n Receiver[][] deepReceivers = port.deepGetReceivers();\n for (int i = 0; i < deepReceivers.length; i++) {\n for (int j = 0; j < deepReceivers[i].length; j++) {\n IOPort sinkPort = deepReceivers[i][j].getContainer();\n int channel = sinkPort.getChannelForReceiver(deepReceivers[i][j]);\n if (sinkPort.getContainer() != getContainer()) {\n Map<Integer, SuperdenseDependency> channelDependency = (Map<Integer, SuperdenseDependency>) inputModelTimeDelays.get(sinkPort);\n if (channelDependency == null) {\n channelDependency = new HashMap<Integer, SuperdenseDependency>();\n }\n channelDependency.put(Integer.valueOf(channel), prevDependency);\n inputModelTimeDelays.put(sinkPort, channelDependency);\n if (((SuperdenseDependency) localPortDelays.get(sinkPort)).compareTo(prevDependency) > 0) {\n localPortDelays.put(sinkPort, prevDependency);\n distQueue.add(new PortDependency(sinkPort, prevDependency));\n }\n }\n }\n }\n }\n }\n portDelays = localPortDelays;\n }\n for (IOPort inputPort : (Set<IOPort>) inputModelTimeDelays.keySet()) {\n Map<Integer, SuperdenseDependency> channelDependency = (Map<Integer, SuperdenseDependency>) inputModelTimeDelays.get(inputPort);\n double[] minDelays = new double[channelDependency.size()];\n for (Integer portChannelMinDelay : channelDependency.keySet()) {\n minDelays[portChannelMinDelay.intValue()] = _calculateMinDelayForPortChannel(inputPort, portChannelMinDelay, inputModelTimeDelays);\n }\n _setMinDelay(inputPort, minDelays);\n }\n}\n"
"protected void parseArgs(Element beanElement, IocObject iocObject) throws Throwable {\n List<Element> list = getChildNodesByTagName(beanElement, TAG_ARGS);\n if (list.size() > 0) {\n Element argsElement = list.get(0);\n NodeList argNodeList = argsElement.getChildNodes();\n for (int i = 0; i < argNodeList.getLength(); i++) {\n if (argNodeList.item(i) instanceof Element)\n iocObject.addArg(parseX((Element) argNodeList.item(i)));\n }\n }\n}\n"
"public void shouldNotMatchSubStringUsingRegex() throws Exception {\n final Matcher<String, Boolean> matcher = Matcher.create();\n matcher.caseOf(Regex(\"String_Node_Str\")).then.value(true);\n matcher.caseOf(_).then.value(false);\n TestCase.assertFalse(matcher.match(\"String_Node_Str\"));\n}\n"
"public void close() {\n for (PersistenceManagerImpl pm : pms) {\n if (!pm.isClosed() && pm.currentTransaction().isActive()) {\n throw new JDOUserException(\"String_Node_Str\", new JDOUserException(), pm);\n }\n }\n JDOImplHelper.getInstance().removeStateInterrogation(SI);\n isClosed = true;\n}\n"
"public static PDPage getPDFPage(int number) {\n PDPage page = null;\n try {\n pdfFile = new File(PDF_PATH);\n if (pdfFile.exists()) {\n inputPDF = PDDocument.load(pdfFile);\n List<PDPage> allPages = inputPDF.getDocumentCatalog().getAllPages();\n if (allPages != null && !allPages.isEmpty() && allPages.size() >= number && number > 0) {\n page = allPages.get(number - 1);\n }\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n return page;\n}\n"
"public void testRemoveDependenciesBetweenModel() {\n ModelElement ana = AnalysisHelper.createAnalysis(\"String_Node_Str\");\n ModelElement conn = ConnectionHelper.createDatabaseConnection(\"String_Node_Str\");\n EList<Dependency> clientDependencyFirst = ana.getClientDependency();\n assertEquals(0, clientDependencyFirst.size());\n TypedReturnCode<Dependency> setUsageDependencyOn = DependenciesHandler.getInstance().setUsageDependencyOn(ana, conn);\n assertEquals(1, clientDependencyFirst.size());\n EList<ModelElement> supplier = clientDependencyFirst.get(0).getSupplier();\n assertEquals(1, supplier.size());\n assertEquals(conn, supplier.get(0));\n if (setUsageDependencyOn.isOk()) {\n DependenciesHandler.getInstance().removeDependenciesBetweenModel(ana, conn);\n }\n assertEquals(0, clientDependencyFirst.size());\n EList<Dependency> clientDependencyTwo = conn.getClientDependency();\n assertEquals(0, clientDependencyTwo.size());\n setUsageDependencyOn = DependenciesHandler.getInstance().setUsageDependencyOn(conn, ana);\n assertEquals(1, clientDependencyTwo.size());\n supplier = clientDependencyTwo.get(0).getSupplier();\n assertEquals(1, supplier.size());\n assertEquals(ana, supplier.get(0));\n if (setUsageDependencyOn.isOk()) {\n DependenciesHandler.getInstance().removeDependenciesBetweenModel(ana, conn);\n }\n assertEquals(0, clientDependencyTwo.size());\n}\n"
"public boolean isEmpty() {\n return set.isEmpty();\n}\n"
"private void changeBalance(Player player, HumanNPC npc, String[] args) throws NumberFormatException {\n int amount = Integer.valueOf(args[2]);\n if (args[1].equals(\"String_Node_Str\")) {\n if (EconomyHandler.canBuy(new Payment(amount, true), player)) {\n EconomyHandler.pay(new Payment(-amount, true), npc);\n EconomyHandler.pay(new Payment(amount, true), player);\n player.sendMessage(ChatColor.GREEN + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getCurrency(amount)) + \"String_Node_Str\" + StringUtils.yellowify(npc.getStrippedName()) + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getBalance(player.getName()), ChatColor.GREEN) + \"String_Node_Str\");\n } else {\n player.sendMessage(ChatColor.RED + \"String_Node_Str\" + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getCurrency(amount - IconomyInterface.getBalance(player.getName())), ChatColor.RED) + \"String_Node_Str\");\n }\n } else if (args[1].equals(\"String_Node_Str\")) {\n if (EconomyHandler.canBuy(new Payment(amount, true), npc)) {\n EconomyHandler.pay(new Payment(amount, true), npc);\n EconomyHandler.pay(new Payment(-amount, true), player);\n player.sendMessage(ChatColor.GREEN + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getCurrency(amount), ChatColor.GREEN) + \"String_Node_Str\" + StringUtils.yellowify(npc.getStrippedName(), ChatColor.GREEN) + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getBalance(player.getName()), ChatColor.GREEN) + \"String_Node_Str\");\n } else {\n player.sendMessage(ChatColor.RED + \"String_Node_Str\" + StringUtils.yellowify(IconomyInterface.getCurrency(amount - npc.getTraderNPC().getBalance()), ChatColor.RED) + \"String_Node_Str\");\n }\n } else\n player.sendMessage(ChatColor.RED + \"String_Node_Str\" + StringUtils.yellowify(args[1], ChatColor.RED) + \"String_Node_Str\");\n}\n"
"public IStatus doAction() {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n XSDSchema schema = ((ISchemaContentProvider) page.getTreeViewer().getContentProvider()).getXsdSchema();\n ArrayList<Object> objList = new ArrayList<Object>();\n Util.getAllObject(page.getSite(), objList, (IStructuredContentProvider) page.getSchemaContentProvider());\n Util.getAllObject(page.getSite(), objList, (IStructuredContentProvider) page.getTypeContentProvider());\n if (selection.getFirstElement() instanceof XSDSimpleTypeDefinition) {\n XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition) selection.getFirstElement();\n if (xsdSimpType != null)\n simpleType = xsdSimpType;\n boolean find = Util.findElementsUsingType(objList, simpleType);\n if (find) {\n MessageDialog.openWarning(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + simpleType.getName() + \"String_Node_Str\");\n xsdSimpType = null;\n return Status.CANCEL_STATUS;\n }\n schema.getContents().remove(simpleType);\n } else {\n XSDComplexTypeDefinition complxType = (XSDComplexTypeDefinition) selection.getFirstElement();\n if (xsdCmpexType != null) {\n complxType = xsdCmpexType;\n }\n boolean find = Util.findElementsUsingType(objList, null, complxType.getName());\n if (find) {\n MessageDialog.openWarning(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + complxType.getName() + \"String_Node_Str\");\n xsdCmpexType = null;\n return Status.CANCEL_STATUS;\n }\n schema.getContents().remove(complxType);\n }\n xsdCmpexType = null;\n page.refresh();\n page.markDirty();\n return Status.OK_STATUS;\n}\n"
"public List<String> getCategories() {\n return Arrays.asList(RodaConstants.PLUGIN_CATEGORY_NOT_LISTABLE);\n}\n"
"public int compare(int i, int j) {\n final int bufferNumI = i / this.indexEntriesPerSegment;\n final int segmentOffsetI = (i % this.indexEntriesPerSegment) * this.indexEntrySize;\n final int bufferNumJ = j / this.indexEntriesPerSegment;\n final int segmentOffsetJ = (j % this.indexEntriesPerSegment) * this.indexEntrySize;\n final MemorySegment segI = this.sortIndex.get(bufferNumI);\n final MemorySegment segJ = this.sortIndex.get(bufferNumJ);\n final byte[] bI = segI.getBackingArray();\n final byte[] bJ = segJ.getBackingArray();\n int val = 0;\n for (int pos = 0, posI = segI.translateOffset(segmentOffsetI + OFFSET_LEN), posJ = segJ.translateOffset(segmentOffsetJ + OFFSET_LEN); pos < this.numKeyBytes && (val = (bI[posI] & 0xff) - (bJ[posJ] & 0xff)) == 0; pos++, posI++, posJ++) ;\n if (val != 0 || this.normalizedKeyFullyDetermines) {\n return val;\n }\n final long pointerI = segI.getLong(segmentOffsetI);\n final long pointerJ = segJ.getLong(segmentOffsetJ);\n return compareRecords(pointerI, pointerJ);\n}\n"
"private ALayoutAnimation createMoveAnimation(RecordingLayoutElement elem) {\n if (!animateByDefault) {\n return new DummyAnimation(EAnimationType.MOVE, elem.wrappee);\n }\n final IDuration duration = elem.getLayoutDataAs(IDuration.class, defaultDuration);\n final IMoveTransition animation = elem.getLayoutDataAs(IMoveTransition.class, defaultMoveTransition);\n MoveAnimation anim = new MoveAnimation(0, duration, elem.wrappee, animation);\n return anim;\n}\n"
"public Object visitTypeExpression(cqlParser.TypeExpressionContext ctx) {\n if (ctx.getChild(1).getText().equals(\"String_Node_Str\")) {\n Is is = of.createIs().withOperand(parseExpression(ctx.expression())).withIsTypeSpecifier(parseTypeSpecifier(ctx.typeSpecifier()));\n is.setResultType(resolveTypeName(\"String_Node_Str\"));\n return is;\n }\n As as = of.createAs().withOperand(parseExpression(ctx.expression())).withAsTypeSpecifier(parseTypeSpecifier(ctx.typeSpecifier())).withStrict(false);\n DataType targetType = as.getAsTypeSpecifier().getResultType();\n DataTypes.verifyCast(targetType, as.getOperand().getResultType());\n as.setResultType(targetType);\n return as;\n}\n"
"public static void toStream(Project project, OutputStream stream, Gson gson) throws IOException {\n Writer writer = new OutputStreamWriter(stream, Charset.forName(\"String_Node_Str\"));\n ExportPackage p = new ExportPackage();\n p.project = project;\n p.version = Application.getVersion().toString();\n gson.toJson(p, writer);\n writer.close();\n}\n"
"public static void getUfidsAndImages(String xmlText) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new StringReader(xmlText));\n Document doc = db.parse(is);\n NodeList DateUpdated = doc.getElementsByTagName(\"String_Node_Str\");\n Element line1 = (Element) DateUpdated.item(0);\n String date = getCharacterDataFromElement(line1);\n NodeList Image = doc.getElementsByTagName(\"String_Node_Str\");\n Element line2 = (Element) Image.item(0);\n String Image_base_64 = getCharacterDataFromElement(line2);\n NodeList Ufid = doc.getElementsByTagName(\"String_Node_Str\");\n Element line3 = (Element) Ufid.item(0);\n String id = getCharacterDataFromElement(line3);\n log.info(\"String_Node_Str\" + id + \"String_Node_Str\" + imagedir);\n WriteImageFromBase64(Image_base_64, imagedir + id);\n log.info(\"String_Node_Str\" + id + \"String_Node_Str\" + date);\n } catch (Exception e) {\n log.info(e.toString());\n }\n}\n"
"protected StringBuffer getProfileArgs() {\n StringBuffer profileBuffer = new StringBuffer();\n profileBuffer.append(TalendMavenConstants.PREFIX_PROFILE);\n profileBuffer.append(SPACE);\n addArg(profileBuffer, true, true, TalendMavenConstants.PROFILE_DEFAULT_SETTING);\n addArg(profileBuffer, isOptionChoosed(ExportChoice.needSourceCode), TalendMavenConstants.PROFILE_INCLUDE_JAVA_SOURCES);\n boolean isBinaries = isOptionChoosed(ExportChoice.binaries);\n addArg(profileBuffer, !isBinaries, TalendMavenConstants.PROFILE_INCLUDE_MAVEN_RESOURCES);\n addArg(profileBuffer, isOptionChoosed(ExportChoice.needJobItem) || itemDependencies, TalendMavenConstants.PROFILE_INCLUDE_ITEMS);\n addArg(profileBuffer, isOptionChoosed(ExportChoice.includeLibs), TalendMavenConstants.PROFILE_INCLUDE_LIBS);\n addArg(profileBuffer, isBinaries, TalendMavenConstants.PROFILE_INCLUDE_BINARIES);\n addArg(profileBuffer, isLog4jEnable() && isBinaries, TalendMavenConstants.PROFILE_INCLUDE_RUNNING_LOG4J);\n addArg(profileBuffer, isLog4jEnable() && !isBinaries, TalendMavenConstants.PROFILE_INCLUDE_LOG4J);\n addArg(profileBuffer, isBinaries && isOptionChoosed(ExportChoice.needContext), TalendMavenConstants.PROFILE_INCLUDE_CONTEXTS, ProcessUtils.isHDInsight());\n addArg(profileBuffer, isOptionChoosed(ExportChoice.includeTestSource), TalendMavenConstants.PROFILE_INCLUDE_TEST_SOURCES);\n addArg(profileBuffer, isOptionChoosed(ExportChoice.executeTests), TalendMavenConstants.PROFILE_INCLUDE_TEST_REPORTS);\n addArg(profileBuffer, needXmlMappings(), TalendMavenConstants.PROFILE_INCLUDE_XMLMAPPINGS);\n addArg(profileBuffer, needXmlMappings() && isBinaries, TalendMavenConstants.PROFILE_INCLUDE_RUNNING_XMLMAPPINGS);\n if (needRules()) {\n addArg(profileBuffer, true, TalendMavenConstants.PROFILE_INCLUDE_RULES);\n }\n if (needPigUDFs()) {\n addArg(profileBuffer, isBinaries, TalendMavenConstants.PROFILE_INCLUDE_PIGUDFS_BINARIES);\n addArg(profileBuffer, !isBinaries, TalendMavenConstants.PROFILE_INCLUDE_PIGUDFS_JAVA_SOURCES);\n }\n return profileBuffer;\n}\n"
"public void onEvent(Event event) throws Exception {\n MDC.put(\"String_Node_Str\", \"String_Node_Str\" + lastSerial.incrementAndGet());\n em.setThreadLocalEntityManager(emf.createEntityManager());\n try {\n botInfo.setLastInteraction(System.currentTimeMillis());\n if (lastListTime < System.currentTimeMillis() - 60 * 60 * 1000) {\n lastListTime = System.currentTimeMillis();\n event.getBot().sendRaw().rawLine(\"String_Node_Str\");\n }\n if (event instanceof GenericUserEvent<?>) {\n User user = ((GenericUserEvent) event).getUser();\n if (user != null) {\n String nick = user.getNick();\n MDC.put(\"String_Node_Str\", nick);\n scheduleRegisterActivity(nick);\n }\n }\n super.onEvent(event);\n } finally {\n em.close();\n MDC.clear();\n }\n}\n"
"public Range findValueRange(Range xRange, TimePeriodAnchor xAnchor, TimeZone zone) {\n ParamChecks.nullNotPermitted(xRange, \"String_Node_Str\");\n ParamChecks.nullNotPermitted(xAnchor, \"String_Node_Str\");\n ParamChecks.nullNotPermitted(zone, \"String_Node_Str\");\n if (this.data.isEmpty()) {\n return null;\n }\n Calendar calendar = Calendar.getInstance(zone);\n double lowY = Double.POSITIVE_INFINITY;\n double highY = Double.NEGATIVE_INFINITY;\n for (TimeSeriesDataItem item : this.data) {\n long millis = item.getPeriod().getMillisecond(xAnchor, calendar);\n if (xRange.contains(millis)) {\n Number n = item.getValue();\n if (n != null) {\n double v = n.doubleValue();\n lowY = minIgnoreNaN(lowY, v);\n highY = maxIgnoreNaN(highY, v);\n }\n }\n }\n if (Double.isInfinite(lowY) && Double.isInfinite(highY)) {\n if (lowY < highY) {\n return new Range(lowY, highY);\n } else {\n return new Range(Double.NaN, Double.NaN);\n }\n }\n return new Range(lowY, highY);\n}\n"
"NominalType instantiateGenerics(Map<String, JSType> newTypeMap) {\n if (newTypeMap.isEmpty()) {\n return this;\n }\n if (!this.rawType.isGeneric()) {\n return this.rawType.wrappedAsNominal;\n }\n ImmutableMap.Builder<String, JSType> builder = ImmutableMap.builder();\n if (!typeMap.isEmpty()) {\n for (String oldKey : typeMap.keySet()) {\n builder.put(oldKey, typeMap.get(oldKey).substituteGenerics(newTypeMap));\n }\n } else {\n for (String newKey : rawType.typeParameters) {\n if (newTypeMap.containsKey(newKey)) {\n builder.put(newKey, newTypeMap.get(newKey));\n }\n }\n }\n return new NominalType(resultMap, this.rawType);\n}\n"
"protected void inputsToModel(boolean create) {\n String sourceStr = source.getText();\n if (create) {\n ActorRenderer renderer = parent.getRenderer();\n if (renderer instanceof SpineRenderer) {\n e = new SpineAnimationDesc();\n if (spineAtlasExists(sourceStr)) {\n ((SpineAnimationDesc) e).atlas = null;\n setVisible(atlas, false);\n } else {\n if (!atlas.isVisible()) {\n setVisible(atlas, true);\n }\n ((SpineAnimationDesc) e).atlas = atlas.getText();\n }\n } else if (renderer instanceof AtlasRenderer) {\n e = new AtlasAnimationDesc();\n } else {\n e = new AnimationDesc();\n }\n }\n e.id = id.getText();\n e.sound = sound.getText();\n e.source = sourceStr;\n e.count = Integer.parseInt(count.getText());\n e.preload = Boolean.parseBoolean(preload.getText());\n e.disposeWhenPlayed = Boolean.parseBoolean(dispose.getText());\n e.animationType = Type.valueOf(repeat.getText());\n e.inD = Param.parseVector2(in.getText());\n e.outD = Param.parseVector2(out.getText());\n e.duration = Float.parseFloat(speed.getText());\n if (delay.getText() == null || delay.getText().isEmpty())\n e.delay = Float.parseFloat(delay.getText());\n if (create) {\n parent.getRenderer().addAnimation(e);\n }\n Ctx.project.setModified();\n}\n"
"public void setLoader(SDOClassLoader loader) {\n getXMLHelperDelegate().setLoader(loader);\n}\n"
"private Context nextContext() {\n Context next = new Context(context);\n Options options = Options.instance(context);\n Assert.checkNonNull(options);\n next.put(Options.optionsKey, options);\n PrintWriter out = context.get(Log.outKey);\n Assert.checkNonNull(out);\n next.put(Log.outKey, out);\n final boolean shareNames = true;\n if (shareNames) {\n Names names = Names.instance(context);\n Assert.checkNonNull(names);\n next.put(Names.namesKey, names);\n }\n DiagnosticListener<?> dl = context.get(DiagnosticListener.class);\n if (dl != null)\n next.put(DiagnosticListener.class, dl);\n TaskListener tl = context.get(TaskListener.class);\n if (tl != null)\n next.put(TaskListener.class, tl);\n FSInfo fsInfo = context.get(FSInfo.class);\n if (fsInfo != null)\n next.put(FSInfo.class, fsInfo);\n JavaFileManager jfm = context.get(JavaFileManager.class);\n Assert.checkNonNull(jfm);\n next.put(JavaFileManager.class, jfm);\n if (jfm instanceof JavacFileManager) {\n ((JavacFileManager) jfm).setContext(next);\n }\n Names names = Names.instance(context);\n Assert.checkNonNull(names);\n next.put(Names.namesKey, names);\n Keywords keywords = Keywords.instance(context);\n Assert.checkNonNull(keywords);\n next.put(Keywords.keywordsKey, keywords);\n JavaCompiler oldCompiler = JavaCompiler.instance(context);\n JavaCompiler nextCompiler = JavaCompiler.instance(next);\n nextCompiler.initRound(oldCompiler);\n filer.newRound(next);\n messager.newRound(next);\n elementUtils.setContext(next);\n typeUtils.setContext(next);\n JavacTaskImpl task = context.get(JavacTaskImpl.class);\n if (task != null) {\n next.put(JavacTaskImpl.class, task);\n task.updateContext(next);\n }\n JavacTrees trees = context.get(JavacTrees.class);\n if (trees != null) {\n next.put(JavacTrees.class, trees);\n trees.updateContext(next);\n }\n context.clear();\n return next;\n}\n"
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n if (context.getDBName() != null && context.getCollectionName() != null) {\n DBObject collProps;\n if (!LocalCachesSingleton.isEnabled()) {\n final CollectionDAO collectionDAO = new CollectionDAO();\n collProps = collectionDAO.getCollectionProps(context.getDBName(), context.getCollectionName());\n if (collProps != null) {\n collProps.put(\"String_Node_Str\", false);\n } else if (!(context.getType() == RequestContext.TYPE.COLLECTION && context.getMethod() == RequestContext.METHOD.PUT) && context.getType() != RequestContext.TYPE.ROOT && context.getType() != RequestContext.TYPE.DB) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_FOUND, \"String_Node_Str\");\n return;\n }\n } else {\n collProps = LocalCachesSingleton.getInstance().getCollectionProps(context.getDBName(), context.getCollectionName());\n }\n if (collProps == null && !(context.getType() == RequestContext.TYPE.COLLECTION && context.getMethod() == RequestContext.METHOD.PUT) && context.getType() != RequestContext.TYPE.ROOT && context.getType() != RequestContext.TYPE.DB) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_FOUND, \"String_Node_Str\");\n return;\n }\n context.setCollectionProps(collProps);\n }\n next.handleRequest(exchange, context);\n}\n"
"private List<PathWithUnixSeparators> processDirectory(Path path, Queue<Path> remainingPaths) throws IOException {\n List<PathWithUnixSeparators> childrenRelativePaths = new ArrayList<>();\n for (Path relativeChildPath : projectFilesystem.getDirectoryContents(path)) {\n childrenRelativePaths.add(new PathWithUnixSeparators().setPath(MorePaths.pathWithUnixSeparators(relativeChildPath)));\n remainingPaths.add(relativeChildPath);\n }\n return childrenRelativePaths;\n}\n"
"protected boolean doExecute() throws Exception {\n boolean ok = true;\n DQStructureManager manager = DQStructureManager.getInstance();\n IFolder systemIndicatorFolder = ResourceManager.getSystemIndicatorFolder();\n if (!systemIndicatorFolder.exists()) {\n systemIndicatorFolder = manager.createNewFolder(ResourceManager.getIndicatorFolder(), EResourceConstant.SYSTEM_INDICATORS);\n }\n manager.copyFilesToFolder(CorePlugin.getDefault(), DQStructureManager.SYSTEM_INDICATOR_PATH, true, systemIndicatorFolder, null, true);\n DefinitionHandler.getInstance().reloadIndicatorsDefinitions();\n Collection<Analysis> analyses = (Collection<Analysis>) AnaResourceFileHelper.getInstance().getAllElement();\n AnalysisWriter analysisWriter = ElementWriterFactory.getInstance().createAnalysisWrite();\n for (Analysis ana : analyses) {\n try {\n for (Indicator ind : ana.getResults().getIndicators()) {\n updateIndDefinition(ind);\n if (ind instanceof CompositeIndicator) {\n for (Indicator indLeave : IndicatorHelper.getIndicatorLeaves(ind)) {\n updateIndDefinition(indLeave);\n }\n }\n }\n analysisWriter.save(ana);\n } catch (Exception e) {\n log.warn(e, e);\n ok = false;\n }\n }\n ResourceManager.getLibrariesFolder().getFile(DefinitionHandler.FILENAME).delete(true, new NullProgressMonitor());\n DefinitionHandler.getInstance().copyDefinitionsIntoFolder(ResourceManager.getLibrariesFolder());\n return ok;\n}\n"
"public Long stopCluster(String clusterName) throws Exception {\n logger.info(\"String_Node_Str\" + clusterName);\n ClusterEntity cluster = ClusterEntity.findClusterEntityByName(clusterName);\n if (cluster == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", clusterName);\n }\n if (ClusterStatus.STOPPED.equals(cluster.getStatus())) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw ClusterManagerException.ALREADY_STOPPED_ERROR(clusterName);\n }\n if (!ClusterStatus.RUNNING.equals(cluster.getStatus()) && !ClusterStatus.ERROR.equals(cluster.getStatus())) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\" + cluster.getStatus() + \"String_Node_Str\");\n throw ClusterManagerException.STOP_NOT_ALLOWED_ERROR(clusterName, \"String_Node_Str\");\n }\n StopClusterListener listener = new StopClusterListener(clusterName);\n return createClusterMgmtTaskWithErrorSetting(cluster, listener, ClusterStatus.STOPPING);\n}\n"
"public <T> JournalWriter<T> writer(JournalMetadata<T> metadata) throws JournalException {\n if (closed) {\n LOG.info().$(\"String_Node_Str\").$();\n return null;\n }\n final String path = metadata.getKey().getName();\n Entry e = entries.get(path);\n if (e == null) {\n e = new Entry();\n if (entries.putIfAbsent(path, e) == null) {\n try {\n e.writer = super.writer(metadata);\n if (!closed) {\n e.writer.setCloseInterceptor(this);\n }\n LOG.info().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$(e.owner).$();\n return e.writer;\n } catch (JournalException ex) {\n LOG.error().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$(e.owner).$(\"String_Node_Str\").$(ex).$();\n e.allocationFailure = true;\n return null;\n }\n } else {\n LOG.info().$(\"String_Node_Str\").$(e.owner).$(\"String_Node_Str\").$(path).$('\\'').$();\n e = entries.get(path);\n }\n }\n if (e == null) {\n e = entries.get(path);\n }\n long threadId = Thread.currentThread().getId();\n if (e != null && Unsafe.getUnsafe().compareAndSwapLong(e, ENTRY_OWNER, -1L, threadId)) {\n LOG.debug().$(\"String_Node_Str\").$(e.owner).$(\"String_Node_Str\").$(path).$();\n if (closed) {\n e.writer.setCloseInterceptor(null);\n }\n return e.writer;\n } else {\n if (e == null) {\n LOG.error().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$();\n } else {\n if (e.owner == threadId) {\n if (e.allocationFailure) {\n return null;\n }\n if (closed) {\n LOG.info().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$();\n e.writer.setCloseInterceptor(null);\n }\n return e.writer;\n }\n LOG.error().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$(e.owner).$();\n }\n }\n return null;\n}\n"
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent convertTestScriptVariableComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent();\n copyElement(src, tgt);\n tgt.setName(src.getName());\n tgt.setDefaultValue(src.getDefaultValue());\n tgt.setHeaderField(src.getHeaderField());\n tgt.setPath(src.getPath());\n tgt.setSourceId(src.getSourceId());\n return tgt;\n}\n"
"protected void parseConfigVars(HttpServletRequest request, Collection parameterList) {\n this.configMap = new HashMap();\n String reportConfigName = ParameterAccessor.getConfigFileName(this.reportDesignName);\n if (reportConfigName == null)\n return;\n SessionHandle sessionHandle = DesignEngine.newSession(ULocale.US);\n ReportDesignHandle handle = null;\n try {\n handle = sessionHandle.openDesign(reportConfigName);\n if (handle != null) {\n String displayTextParam = null;\n Iterator configVars = handle.configVariablesIterator();\n while (configVars != null && configVars.hasNext()) {\n ConfigVariableHandle configVar = (ConfigVariableHandle) configVars.next();\n if (configVar != null && configVar.getName() != null) {\n String paramName = configVar.getName();\n String paramValue = configVar.getValue();\n if (paramName.toLowerCase().startsWith(ParameterAccessor.PARAM_ISNULL) && paramValue != null) {\n String nullParamName = getParameterName(paramValue);\n if (nullParamName != null)\n this.configMap.put(nullParamName, null);\n continue;\n } else if ((displayTextParam = ParameterAccessor.isDisplayText(paramName)) != null) {\n paramName = getParameterName(displayTextParam);\n if (paramName != null) {\n if (this.displayTexts == null)\n this.displayTexts = new HashMap();\n this.displayTexts.put(paramName, paramValue);\n }\n continue;\n }\n paramName = getParameterName(paramName);\n ScalarParameterHandle parameter = (ScalarParameterHandle) findParameter(paramName);\n if (paramValue != null && parameter != null) {\n String typeVarName = configVar.getName() + \"String_Node_Str\" + IBirtConstants.PROP_TYPE;\n ConfigVariable typeVar = handle.findConfigVariable(typeVarName);\n String dataType = parameter.getDataType();\n String cachedDateType = null;\n if (typeVar != null)\n dataType = typeVar.getValue();\n if (dataType == null || !dataType.equalsIgnoreCase(parameter.getDataType())) {\n continue;\n }\n try {\n if (!DesignChoiceConstants.PARAM_TYPE_STRING.equalsIgnoreCase(parameter.getDataType())) {\n Object paramValueObj = ParameterValidationUtil.validate(parameter.getDataType(), parameter.getPattern(), paramValue, ULocale.US);\n paramValue = ParameterValidationUtil.getDisplayValue(parameter.getDataType(), parameter.getPattern(), paramValueObj, locale);\n }\n } catch (Exception err) {\n paramValue = configVar.getValue();\n }\n this.configMap.put(paramName, paramValue);\n }\n }\n }\n handle.close();\n }\n } catch (Exception e) {\n }\n}\n"
"public void serializeLogs(StreamLogSerializer serializer, int limit) throws IOException {\n if (storageBroken) {\n return;\n }\n ;\n Vector<Integer> logIds = new Vector<Integer>();\n Object lock = logStorage.getAccessLock();\n synchronized (lock) {\n int count = 0;\n IStorageIterator li = logStorage.iterate();\n while (li.hasMore() && count < limit) {\n int id = li.nextID();\n logIds.addElement(DataUtil.integer(id));\n count++;\n }\n }\n while (li.hasMore() && count < limit) {\n int id = li.peekID();\n LogEntry log = (LogEntry) li.nextRecord();\n serializer.serializeLog(id, log);\n count++;\n }\n serializer.setPurger(new StreamLogSerializer.Purger() {\n public void purge(SortedIntSet IDs) {\n clearLogs(IDs);\n }\n });\n}\n"
"public void appendIgnoringWhitespace(char ch) {\n try {\n if (ch == newLine && denormalizeLineEndings) {\n super.appendIgnoringWhitespace(lineSeparator1);\n if (lineSeparator2 != '\\0') {\n super.appendIgnoringWhitespace(lineSeparator2);\n }\n } else {\n super.appendIgnoringWhitespace(ch);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n expandAndRetry();\n appendIgnoringPadding(ch);\n }\n}\n"
"public long availableIndex(long lo) {\n Barrier[] barriers = this.barriers;\n for (int i = 0, n = barriers.length; i < n; i++) {\n long cursor = Unsafe.arrayGet(barriers, i).availableIndex(lo);\n lo = lo < cursor ? lo : cursor;\n }\n return lo;\n}\n"
"void refreshChildren() {\n Map<String, TmfAnalysisElement> childrenMap = new HashMap<>();\n for (TmfAnalysisElement analysis : getAvailableAnalysis()) {\n childrenMap.put(analysis.getAnalysisId(), analysis);\n }\n TraceTypeHelper helper = TmfTraceType.getInstance().getTraceType(getTraceType());\n Class<? extends ITmfTrace> traceClass = null;\n if (helper == null && fTraceTypeId != null) {\n if (fTraceTypeId.startsWith(CustomTxtTrace.class.getCanonicalName())) {\n for (CustomTxtTraceDefinition def : CustomTxtTraceDefinition.loadAll()) {\n if (fTraceTypeId.equals(CustomTxtTrace.class.getCanonicalName() + \"String_Node_Str\" + def.definitionName)) {\n traceClass = CustomTxtTrace.class;\n }\n }\n }\n if (fTraceTypeId.startsWith(CustomXmlTrace.class.getCanonicalName())) {\n for (CustomXmlTraceDefinition def : CustomXmlTraceDefinition.loadAll()) {\n if (fTraceTypeId.equals(CustomXmlTrace.class.getCanonicalName() + \"String_Node_Str\" + def.definitionName)) {\n traceClass = CustomTxtTrace.class;\n }\n }\n }\n } else if (helper != null) {\n traceClass = helper.getTraceClass();\n }\n if (traceClass == null) {\n for (TmfAnalysisElement analysis : childrenMap.values()) {\n removeChild(analysis);\n }\n return;\n }\n IPath path = fResource.getFullPath();\n for (IAnalysisModuleHelper module : TmfAnalysisManager.getAnalysisModules(traceClass).values()) {\n TmfAnalysisElement analysis = childrenMap.remove(module.getId());\n if (analysis == null) {\n IFolder newresource = ResourcesPlugin.getWorkspace().getRoot().getFolder(path.append(module.getId()));\n analysis = new TmfAnalysisElement(module.getName(), newresource, this, module.getId());\n }\n analysis.refreshChildren();\n }\n for (TmfAnalysisElement analysis : childrenMap.values()) {\n removeChild(analysis);\n }\n}\n"
"private void generateCallToCreateNewMockInvocation(Type[] argTypes, int initialParameterIndex) {\n generateCodeToPassThisOrNullIfStaticMethod();\n int argCount = argTypes.length;\n if (argCount == 0) {\n mw.visitInsn(ACONST_NULL);\n } else {\n generateCodeToCreateArrayOfObject(mw, argCount);\n generateCodeToFillArrayWithParameterValues(mw, argTypes, 0, initialParameterIndex);\n }\n mw.visitLdcInsn(mockMethods.getMockClassInternalName());\n mw.visitIntInsn(SIPUSH, mockMethod.getIndexForMockState());\n mw.visitLdcInsn(classDesc);\n mw.visitLdcInsn(methodName);\n mw.visitLdcInsn(methodDesc);\n mw.visitMethodInsn(INVOKESTATIC, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\", false);\n}\n"
"public void addArgument(String name, IBaseExpression expr) {\n if (\"String_Node_Str\".equals(name)) {\n this.argument.put(\"String_Node_Str\", expr);\n } else {\n this.argument.put(name, expr);\n }\n}\n"
"private void newMaster(Pair<Master, Machine> master, StoreId storeId, Exception e) {\n try {\n doNewMaster(master, storeId, e);\n } catch (BranchedDataException bde) {\n System.out.println(\"String_Node_Str\");\n getFreshDatabaseFromMaster(master);\n doNewMaster(master, storeId, bde);\n }\n}\n"
"private void testParents(Variable amidstVar, Node huginVar) throws ExceptionHugin {\n ParentSet parentsAmidstVar = amidstBN.getDAG().getParentSet(amidstVar);\n NodeList parentsHuginVar = huginVar.getParents();\n int numParentsAmidstVar = parentsAmidstVar.getNumberOfParents();\n int numParentsHuginVar = parentsHuginVar.size();\n assertEquals(numParentsAmidstVar, numParentsHuginVar);\n for (int j = 0; j < numParentsAmidstVar; j++) {\n Variable parentAmidstVar = parentsAmidstVar.getParents().get(j);\n String parentNameHuginVar = ((Node) parentsHuginVar.get(parentsIndexes.get(j))).getName();\n String parentNameAmidstVar = parentAmidstVar.getName();\n assertEquals(parentNameAmidstVar, parentNameHuginVar);\n }\n}\n"
"private void compileSimpleColumnRefExpr(Node refNode, ScriptOrFnNode tree, List columnExprList) throws BirtException {\n Node rowName = refNode.getFirstChild();\n String str = rowName.getString();\n assert (str != null);\n Node rowColumn = rowName.getNext();\n assert (rowColumn != null);\n if (!str.equals(ROW_INDICATOR)) {\n if (rowColumn != null && rowColumn.getNext() != null)\n processChild(rowColumn.getNext(), tree, columnExprList);\n return;\n }\n if ((refNode.getType() == Token.GETPROP || refNode.getType() == Token.SETPROP) && rowColumn.getType() == Token.STRING) {\n int outer_count = 0;\n if (\"String_Node_Str\".equals(rowColumn.getString()) || \"String_Node_Str\".equals(rowColumn.getString()))\n return;\n if (\"String_Node_Str\".equals(rowColumn.getString())) {\n outer_count++;\n Node outer_Node = refNode.getNext();\n Node before_Node = outer_Node;\n while (outer_Node != null && outer_Node.getString() != null && \"String_Node_Str\".equals(outer_Node.getString())) {\n outer_count++;\n before_Node = outer_Node;\n outer_Node = outer_Node.getNext();\n }\n ColumnBinding info = new ColumnBinding(before_Node.getString(), \"String_Node_Str\", outer_count);\n columnExprList.add(info);\n return;\n }\n ColumnBinding binding = new ColumnBinding(rowColumn.getString(), ExpressionUtil.createDataSetRowExpression(rowColumn.getString()));\n columnExprList.add(binding);\n }\n if (refNode.getType() == Token.GETELEM || refNode.getType() == Token.SETELEM) {\n if (rowColumn.getType() == Token.NUMBER) {\n if (0 == rowColumn.getDouble())\n return;\n } else if (rowColumn.getType() == Token.STRING) {\n if (\"String_Node_Str\".equals(rowColumn.getString()))\n return;\n ColumnBinding binding = new ColumnBinding(rowColumn.getString(), DATASETROW_INDICATOR + \"String_Node_Str\" + rowColumn.getString() + \"String_Node_Str\");\n columnExprList.add(binding);\n }\n }\n if (rowColumn != null && rowColumn.getNext() != null)\n processChild(rowColumn.getNext(), tree, columnExprList);\n}\n"
"private static boolean isRoot(URI base) {\n return base.getPath().equals(\"String_Node_Str\") || base.getPath().equals(\"String_Node_Str\");\n}\n"
"public void testUserLogger() throws Exception {\n FileHandler fileHandle = new FileHandler(\"String_Node_Str\");\n try {\n Logger logger = Logger.getAnonymousLogger();\n logger.addHandler(fileHandle);\n logger.setLevel(Level.ALL);\n logger.setUseParentHandlers(false);\n try {\n LoggerSetting setting = EngineLogger.createSetting(logger, null, null, Level.FINE, 0, 0);\n log();\n EngineLogger.setLogger(null);\n log();\n EngineLogger.stopEngineLogging();\n } finally {\n logger.removeHandler(fileHandle);\n }\n } finally {\n fileHandle.close();\n }\n checkLogging(\"String_Node_Str\", 0, 1, 1);\n}\n"
"private void loadKeys(MProxy mProxy, CMap cmap, Set keys) {\n if (keys.size() > 0) {\n Map map = cmap.loader.loadAll(keys);\n if (map != null && map.size() > 0) {\n Set<Map.Entry> entries = map.entrySet();\n for (Map.Entry entry : entries) {\n mProxy.putTransient(entry.getKey(), entry.getValue(), 0, null);\n }\n }\n }\n}\n"
"public void handleSubscribeRequest(ID fromID, IPresence presence) {\n System.out.println(\"String_Node_Str\" + fromID);\n if (presenceSender != null) {\n presenceSender.sendPresenceUpdate(localUser, fromID, new Presence(IPresence.Type.SUBSCRIBED));\n }\n}\n"
"public void actionGetInfo(List<Record<FSEntry>> recordList) {\n if (recordList.size() == 1) {\n FileSystemBrowserWindow.this.actionGetInfo(recordList.get(0).getUserObject());\n else if (recordList.size() > 1) {\n JOptionPane.showMessageDialog(FileSystemBrowserWindow.this, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.ERROR_MESSAGE);\n }\n}\n"