content stringlengths 40 137k |
|---|
"public boolean parse(ParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (ParserUtil.isCloseBracket(type)) {\n pm.popParser(true);\n return true;\n }\n if (this.mode == NAME) {\n if (token.next().type() == Tokens.EQUALS) {\n this.key = token.value();\n pm.skip();\n return true;\n }\n this.mode = VALUE;\n }\n if (this.mode == VALUE) {\n this.mode = SEPERATOR;\n pm.pushTryParser(new ExpressionParser(this), token, true);\n return true;\n }\n if (this.mode == SEPERATOR) {\n if (type == Tokens.COMMA) {\n this.mode = NAME | VALUE;\n return true;\n }\n }\n return false;\n}\n"
|
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n IMetadataConnection metaConnection = metadataConnection;\n if (metadataConnection == null) {\n metaConnection = ConvertionHelper.convert(dbConn);\n }\n dbConn = (DatabaseConnection) MetadataFillFactory.getDBInstance().fillUIConnParams(metaConnection, dbConn);\n sqlConn = MetadataConnectionUtils.checkConnection(metaConnection).getObject();\n DatabaseMetaData databaseMetaData = ExtractMetaDataUtils.getDatabaseMetaData(sqlConn, dbConn, false);\n if (sqlConn != null) {\n MetadataFillFactory.getDBInstance().fillCatalogs(dbConn, databaseMetaData, MetadataConnectionUtils.getPackageFilter(dbConn, databaseMetaData, true));\n MetadataFillFactory.getDBInstance().fillSchemas(dbConn, databaseMetaData, MetadataConnectionUtils.getPackageFilter(dbConn, databaseMetaData, false));\n }\n }\n } catch (Exception e) {\n log.error(e, e);\n } finally {\n if (derbyDriver != null) {\n try {\n derbyDriver.connect(\"String_Node_Str\", null);\n } catch (SQLException e) {\n }\n }\n }\n return dbConn;\n}\n"
|
"public void test_getQuote() throws ProviderException {\n Date start = DateUtils.fromCGL(\"String_Node_Str\");\n Date end = DateUtils.fromCGL(\"String_Node_Str\");\n FakeRealTimeProvider sp = new FakeRealTimeProvider(SYMBOL, start, end);\n for (int i = 0; !sp.isReached(); i++) {\n Quote q = sp.getQuote(SYMBOL);\n System.out.println(q);\n }\n}\n"
|
"public void reportAssistContextExtras(IBinder token, Bundle extras, AssistStructure structure, AssistContent content, Uri referrer) {\n PendingAssistExtras pae = (PendingAssistExtras) token;\n synchronized (pae) {\n pae.result = extras;\n pae.structure = structure;\n pae.content = content;\n if (referrer != null) {\n pae.extras.putParcelable(Intent.EXTRA_REFERRER, referrer);\n }\n pae.haveResult = true;\n pae.notifyAll();\n if (pae.intent == null && pae.receiver == null) {\n return;\n }\n }\n synchronized (this) {\n buildAssistBundleLocked(pae, extras);\n boolean exists = mPendingAssistExtras.remove(pae);\n mHandler.removeCallbacks(pae);\n if (!exists) {\n return;\n }\n if (pae.receiver != null) {\n Bundle topBundle = new Bundle();\n topBundle.putBundle(\"String_Node_Str\", pae.extras);\n topBundle.putParcelable(\"String_Node_Str\", pae.structure);\n topBundle.putParcelable(\"String_Node_Str\", pae.content);\n try {\n pae.receiver.send(0, topBundle);\n } catch (RemoteException e) {\n }\n return;\n }\n }\n long ident = Binder.clearCallingIdentity();\n try {\n mContext.startActivityAsUser(pae.intent, new UserHandle(pae.userHandle));\n } catch (ActivityNotFoundException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n}\n"
|
"public void run() {\n if (audioLine != null && audioLine.isOpen()) {\n Utterance currentUtterance = new Utterance(\"String_Node_Str\", getContext());\n utteranceList.add(currentUtterance);\n audioLine.start();\n printMessage(\"String_Node_Str\");\n while (getRecording() && !getClosed()) {\n byte[] data = new byte[frameSizeInBytes];\n int numBytesRead = audioLine.read(data, 0, data.length);\n if (numBytesRead == frameSizeInBytes) {\n currentUtterance.add(data);\n } else {\n numBytesRead = (numBytesRead % 2 == 0) ? numBytesRead + 2 : numBytesRead + 3;\n byte[] shrinked = new byte[numBytesRead];\n System.arraycopy(data, 0, shrinked, 0, numBytesRead);\n currentUtterance.add(shrinked);\n }\n printMessage(\"String_Node_Str\" + numBytesRead + \"String_Node_Str\");\n }\n }\n printMessage(\"String_Node_Str\");\n}\n"
|
"public String getLastname() {\n return lastName;\n}\n"
|
"private static void processPositionCommand(ICommandSender commandSender, String[] args) {\n String yPosition, xPosition;\n if (args.length >= 3) {\n xPosition = args[1];\n yPosition = args[2];\n if ((xPosition.toLowerCase().equals(\"String_Node_Str\")) && (yPosition.toLowerCase().equals(\"String_Node_Str\"))) {\n ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION = 0;\n ConfigurationHandler.set(ConfigurationHandler.CATEGORY_GRAPHICS, ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION_CONFIGNAME, \"String_Node_Str\");\n commandSender.sendChatToPlayer(\"String_Node_Str\");\n } else if ((xPosition.toLowerCase().equals(\"String_Node_Str\")) && (yPosition.toLowerCase().equals(\"String_Node_Str\"))) {\n ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION = 1;\n ConfigurationHandler.set(ConfigurationHandler.CATEGORY_GRAPHICS, ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION_CONFIGNAME, \"String_Node_Str\");\n commandSender.sendChatToPlayer(\"String_Node_Str\");\n } else if ((xPosition.toLowerCase().equals(\"String_Node_Str\")) && (yPosition.toLowerCase().equals(\"String_Node_Str\"))) {\n ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION = 2;\n ConfigurationHandler.set(ConfigurationHandler.CATEGORY_GRAPHICS, ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION_CONFIGNAME, \"String_Node_Str\");\n commandSender.sendChatToPlayer(\"String_Node_Str\");\n } else if ((xPosition.toLowerCase().equals(\"String_Node_Str\")) && (yPosition.toLowerCase().equals(\"String_Node_Str\"))) {\n ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION = 3;\n ConfigurationHandler.set(ConfigurationHandler.CATEGORY_GRAPHICS, ConfigurationSettings.TARGET_BLOCK_OVERLAY_POSITION_CONFIGNAME, \"String_Node_Str\");\n commandSender.sendChatToPlayer(\"String_Node_Str\");\n } else {\n throw new WrongUsageException(\"String_Node_Str\", new Object[0]);\n }\n } else {\n new WrongUsageException(\"String_Node_Str\", new Object[0]);\n }\n}\n"
|
"private void diskPledgesChanged(SetChangeListener.Change<? extends LHProtos.Pledge> change, Project project) {\n executor.checkOnThread();\n if (change.wasRemoved()) {\n LHProtos.Pledge walletPledge = wallet.getPledgeFor(project);\n LHProtos.Pledge removedPledge = change.getElementRemoved();\n if (walletPledge != null && walletPledge.equals(removedPledge)) {\n log.info(\"String_Node_Str\");\n } else {\n openPledges.get(project).remove(removedPledge);\n getClaimedPledgesFor(project).remove(removedPledge);\n }\n }\n if (change.wasAdded()) {\n final LHProtos.Pledge added = change.getElementAdded();\n if (isPledgeKnown(added)) {\n log.info(\"String_Node_Str\", LHUtils.hashFromPledge(added));\n } else {\n log.info(\"String_Node_Str\", project);\n jitteredExecute(() -> checkPledgeAgainstP2PNetwork(project, added), TX_PROPAGATION_TIME_SECS);\n }\n }\n}\n"
|
"public ResultSet getColumns(String c, String s, String tbl, String colPat) throws SQLException {\n Statement stat = conn.createStatement();\n ResultSet rs;\n String sql;\n checkOpen();\n if (getColumnsTblName == null)\n getColumnsTblName = conn.prepareStatement(\"String_Node_Str\");\n getColumnsTblName.setString(1, tbl);\n rs = getColumnsTblName.executeQuery();\n if (!rs.next())\n return rs;\n tbl = rs.getString(1);\n rs.close();\n sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + escape(tbl) + \"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\" + \"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 rs = stat.executeQuery(\"String_Node_Str\" + escape(tbl) + \"String_Node_Str\");\n boolean colFound = false;\n for (int i = 0; rs.next(); i++) {\n String colName = rs.getString(2);\n String colType = rs.getString(3);\n String colNotNull = rs.getString(4);\n int colNullable = 2;\n if (colNotNull != null)\n colNullable = colNotNull.equals(\"String_Node_Str\") ? 1 : 0;\n if (colFound)\n sql += \"String_Node_Str\";\n colFound = true;\n colType = colType == null ? \"String_Node_Str\" : colType.toUpperCase();\n int colJavaType = -1;\n if (colType.matches(\"String_Node_Str\"))\n colJavaType = Types.INTEGER;\n else if (colType.equals(\"String_Node_Str\"))\n colJavaType = Types.VARCHAR;\n else if (colType.equals(\"String_Node_Str\"))\n colJavaType = Types.FLOAT;\n else\n colJavaType = Types.VARCHAR;\n sql += \"String_Node_Str\" + i + \"String_Node_Str\" + colNullable + \"String_Node_Str\" + colJavaType + \"String_Node_Str\" + escape(colName) + \"String_Node_Str\" + escape(colType) + \"String_Node_Str\";\n if (colPat != null)\n sql += \"String_Node_Str\" + escape(colPat) + \"String_Node_Str\";\n }\n sql += colFound ? \"String_Node_Str\" : \"String_Node_Str\" + \"String_Node_Str\";\n rs.close();\n return stat.executeQuery(sql);\n}\n"
|
"public void testTcpSource1() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String inStreamDefinition = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = (\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n ExecutionPlanRuntime executionPlanRuntime = siddhiManager.createExecutionPlanRuntime(inStreamDefinition + query);\n executionPlanRuntime.addCallback(\"String_Node_Str\", new QueryCallback() {\n public void receive(long timeStamp, Event[] inEvents, Event[] removeEvents) {\n EventPrinter.print(timeStamp, inEvents, removeEvents);\n eventArrived = true;\n for (Event event : inEvents) {\n count++;\n switch(count) {\n case 1:\n Assert.assertEquals(\"String_Node_Str\", event.getData(0));\n break;\n case 2:\n Assert.assertEquals(\"String_Node_Str\", event.getData(0));\n break;\n case 3:\n Assert.assertEquals(\"String_Node_Str\", event.getData(0));\n break;\n default:\n org.junit.Assert.fail();\n }\n }\n }\n });\n executionPlanRuntime.start();\n TCPNettyClient TCPNettyClient = new TCPNettyClient();\n TCPNettyClient.connect(\"String_Node_Str\", 9892);\n ArrayList<Event> arrayList = new ArrayList<Event>(3);\n arrayList.add(new Event(System.currentTimeMillis(), new Object[] { \"String_Node_Str\", 36, 3.0f, 380l, 23.0, true }));\n arrayList.add(new Event(System.currentTimeMillis(), new Object[] { \"String_Node_Str\", 361, 31.0f, 3801l, 231.0, false }));\n arrayList.add(new Event(System.currentTimeMillis(), new Object[] { \"String_Node_Str\", 362, 32.0f, 3802l, 232.0, true }));\n TCPNettyClient.send(\"String_Node_Str\", arrayList.toArray(new Event[3]));\n TCPNettyClient.disconnect();\n TCPNettyClient.shutdown();\n Thread.sleep(300);\n Assert.assertEquals(3, count);\n Assert.assertTrue(eventArrived);\n executionPlanRuntime.shutdown();\n}\n"
|
"public boolean apply(Game game, Ability source) {\n UUID targetId = null;\n if (source != null && source.getTargets() != null) {\n for (Target target : source.getTargets()) {\n if (target.getFilter() != null && target.getFilter().getMessage().equals(filterMessage)) {\n targetId = target.getFirstTarget();\n }\n }\n if (targetId != null) {\n FixedTarget fixedTarget = new FixedTarget(targetId);\n ContinuousEffect continuousEffect = new BecomesCreatureTargetEffect(new AwakenElementalToken(), false, true, Duration.Custom);\n continuousEffect.setTargetPointer(fixedTarget);\n game.addEffect(continuousEffect, source);\n Effect effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance(awakenValue));\n effect.setTargetPointer(fixedTarget);\n return effect.apply(game, source);\n }\n } else if (source == null) {\n logger.fatal(\"String_Node_Str\");\n } else if (source.getTargets() == null) {\n MageObject sourceObj = source.getSourceObject(game);\n if (sourceObj != null) {\n Class<? extends MageObject> sourceClass = sourceObj.getClass();\n if (sourceClass != null) {\n logger.fatal(\"String_Node_Str\" + sourceClass.toString() + \"String_Node_Str\");\n }\n }\n }\n return true;\n}\n"
|
"public void configureClientSideLogging() {\n root = Logger.getLogger(\"String_Node_Str\");\n setLevels(root);\n setDefaultHandlers(root);\n}\n"
|
"public void onClick(View v) {\n mLoop = null;\n qa.dismiss();\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Card sourceCard = game.getCard(source.getSourceId());\n if (controller != null && sourceCard != null) {\n Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game, source));\n if (targetEnchantment != null) {\n controller.moveCardToExileWithInfo(targetEnchantment, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);\n if (targetEnchantment.hasSubtype(\"String_Node_Str\")) {\n Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());\n return super.applySearchAndExile(game, source, exiledCard.getName(), enchantmentController.getId());\n }\n }\n }\n return false;\n}\n"
|
"public boolean addClass(IClass klass) {\n if (klass == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (DEBUG) {\n Trace.println(\"String_Node_Str\" + klass);\n }\n Set<IClass> loadedSuperclasses;\n Collection loadedSuperInterfaces;\n try {\n loadedSuperclasses = computeSuperclasses(klass);\n loadedSuperInterfaces = klass.getAllImplementedInterfaces();\n } catch (ClassHierarchyException e) {\n if (klass instanceof ShrikeClass) {\n if (DEBUG) {\n Trace.println(\"String_Node_Str\" + klass);\n }\n }\n Warnings.add(ClassExclusion.create(klass.getReference(), e.getMessage()));\n return false;\n }\n Node node = findOrCreateNode(klass);\n if (klass.getReference().equals(language.getRootType())) {\n Assertions._assert(root == null);\n root = node;\n }\n Set workingSuperclasses = HashSetFactory.make(loadedSuperclasses);\n while (node != null) {\n IClass c = node.getJavaClass();\n IClass superclass = null;\n try {\n superclass = c.getSuperclass();\n } catch (ClassHierarchyException e1) {\n Assertions.UNREACHABLE();\n }\n if (superclass != null) {\n workingSuperclasses.remove(superclass);\n Node supernode = findOrCreateNode(superclass);\n if (DEBUG) {\n Trace.println(\"String_Node_Str\" + node.getJavaClass() + \"String_Node_Str\" + supernode.getJavaClass());\n }\n supernode.addChild(node);\n if (supernode.getJavaClass().getReference().equals(language.getRootType())) {\n node = null;\n } else {\n node = supernode;\n }\n } else {\n node = null;\n }\n }\n if (loadedSuperInterfaces != null) {\n for (Iterator it3 = loadedSuperInterfaces.iterator(); it3.hasNext(); ) {\n IClass iface = (IClass) it3.next();\n try {\n computeSuperclasses(iface);\n } catch (ClassHierarchyException e) {\n Warnings.add(ClassExclusion.create(iface.getReference(), e.getMessage()));\n continue;\n }\n if (DEBUG && Assertions.verifyAssertions) {\n if (!iface.isInterface()) {\n Assertions._assert(false, \"String_Node_Str\" + iface);\n }\n if (klass.isInterface()) {\n Assertions._assert(false, \"String_Node_Str\" + klass);\n }\n }\n recordImplements(klass, iface);\n }\n }\n return true;\n}\n"
|
"public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + tanks[0].getFluidAmount() + \"String_Node_Str\" + tanks[0].getCapacity() + \"String_Node_Str\");\n left.add(\"String_Node_Str\" + (tanks[0].getFluid() == null ? \"String_Node_Str\" : tanks[0].getFluidType().getLocalizedName(tanks[0].getFluid())));\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + tanks[1].getFluidAmount() + \"String_Node_Str\" + tanks[1].getCapacity() + \"String_Node_Str\");\n left.add(\"String_Node_Str\" + (tanks[1].getFluid() == null ? \"String_Node_Str\" : tanks[1].getFluidType().getLocalizedName(tanks[1].getFluid())));\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + result.getFluidAmount() + \"String_Node_Str\" + result.getCapacity() + \"String_Node_Str\");\n left.add(\"String_Node_Str\" + (result.getFluid() == null ? \"String_Node_Str\" : result.getFluidType().getLocalizedName(result.getFluid())));\n}\n"
|
"public void getSubRecords(MultiResultSet results, ComparisonType comparisonType, Comparable searchedValue) {\n takeReadLock();\n try {\n Set<Comparable> values;\n boolean notEqual = false;\n switch(comparisonType) {\n case LESSER:\n values = sortedSet.headSet(searchedValue, false);\n break;\n case LESSER_EQUAL:\n values = sortedSet.headSet(searchedValue, true);\n break;\n case GREATER:\n values = sortedSet.tailSet(searchedValue, false);\n break;\n case GREATER_EQUAL:\n values = sortedSet.tailSet(searchedValue, true);\n break;\n case NOT_EQUAL:\n values = sortedSet;\n notEqual = true;\n break;\n default:\n throw new IllegalArgumentException(\"String_Node_Str\" + comparisonType);\n }\n for (Comparable value : values) {\n if (notEqual && searchedValue.equals(value)) {\n continue;\n }\n ConcurrentMap<Data, QueryableEntry> records = mapRecords.get(value);\n if (records != null) {\n results.addResultSet(records);\n }\n }\n } finally {\n readerCount.decrementAndGet();\n }\n}\n"
|
"protected void doSkipToExecutor(InstanceID iid, long offset) throws Exception {\n IQueryResultSet rset = (IQueryResultSet) rsets[0];\n long uid = iid.getUniqueID();\n DataID dataId = iid.getDataID();\n long rowId = 0;\n if (dataId != null) {\n rowId = dataId.getRowID();\n }\n long rsetPosition = rset.getRowIndex();\n if (rsetPosition == rowId) {\n if (currentElement >= totalElements) {\n collectExecutables(uid == 0, true);\n }\n } else {\n rset.skipTo(rowId);\n collectExecutables(uid == 0, true);\n }\n for (int i = 0; i < totalElements; i++) {\n if (executableElements[i].getID() == iid.getComponentID()) {\n currentElement = i;\n return;\n }\n }\n currentElement = totalElements;\n}\n"
|
"protected void playALand(Set<Card> lands, Game game) {\n log.debug(\"String_Node_Str\");\n for (Mana mana : unplayable.keySet()) {\n for (Card card : lands) {\n for (ActivatedManaAbilityImpl ability : card.getAbilities().getActivatedManaAbilities(Zone.BATTLEFIELD)) {\n for (Mana netMana : ability.getNetMana(game)) {\n if (netMana.enough(mana)) {\n this.playLand(card, game, false);\n lands.remove(card);\n return;\n }\n }\n }\n }\n }\n for (Mana mana : unplayable.keySet()) {\n for (Card card : lands) {\n for (ManaAbility ability : card.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {\n for (Mana netMana : ability.getNetMana(game)) {\n if (mana.contains(netMana)) {\n this.playLand(card, game, false);\n lands.remove(card);\n return;\n }\n }\n }\n }\n }\n this.playLand(lands.iterator().next(), game, false);\n lands.remove(lands.iterator().next());\n}\n"
|
"public static Long getFileSize(IContext context, IMendixObject document) {\n final int BUFFER_SIZE = 4096;\n long size = 0;\n if (context != null) {\n InputStream inputStream = null;\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = 0;\n try {\n inputStream = Core.getFileDocumentContent(context, document);\n int i;\n while ((i = inputStream.read(buffer)) != -1) size += i;\n } catch (IOException e) {\n Core.getLogger(\"String_Node_Str\").error(\"String_Node_Str\" + document.getId());\n } finally {\n IOUtils.closeQuietly(inputStream);\n }\n }\n return size;\n}\n"
|
"private static String getHelper(final RemoteWebDriver driver, final Node urlNode, final String url, final boolean p_cached, final String runGuid, final HtmlNode[] clicks) {\n final String urlHash = CommonUtil.isEmpty(url) ? null : Crypto.fastHash(url);\n final long time = System.currentTimeMillis();\n if (urlHash != null) {\n synchronized (fetchLocalCacheLock) {\n if (fetchLocalCache.containsKey(urlHash)) {\n if (time - fetchLocalCache.get(urlHash) < FETCH_LOCAL_CACHE_EXPIRES) {\n try {\n return FileUtils.readFileToString(new File(\"String_Node_Str\" + urlHash), \"String_Node_Str\");\n } catch (Throwable t) {\n Log.exception(t);\n fetchLocalCache.remove(urlHash);\n }\n } else {\n fetchLocalCache.remove(urlHash);\n }\n }\n }\n }\n if (!CommonUtil.isEmpty(url)) {\n final Object resultLock = new Object();\n final String initVal;\n final String[] result;\n synchronized (resultLock) {\n initVal = Random.next();\n result = new String[] { initVal };\n }\n final AtomicBoolean started = new AtomicBoolean();\n Thread thread = new Thread(new Runnable() {\n public void run() {\n started.set(true);\n boolean cached = p_cached;\n String newHandle = null;\n String origHandle = null;\n try {\n origHandle = driver.getWindowHandle();\n String content = null;\n if (!cached) {\n try {\n Util.get(driver, url, urlNode, false);\n } catch (Throwable t) {\n if (urlNode != null) {\n Util.newWindow(driver);\n }\n Util.get(driver, url, false);\n }\n if (urlNode != null) {\n newHandle = driver.getWindowHandle();\n }\n Util.doClicks(driver, clicks, null);\n content = driver.getPageSource();\n if (CommonUtil.isEmpty(content)) {\n cached = true;\n }\n }\n if (cached) {\n if (ScreenSlicerBatch.isCancelled(runGuid)) {\n return;\n }\n Util.get(driver, toCacheUrl(url), false);\n content = driver.getPageSource();\n }\n content = Util.clean(content, driver.getCurrentUrl()).outerHtml();\n if (WebApp.DEBUG) {\n try {\n FileUtils.writeStringToFile(new File(\"String_Node_Str\" + System.currentTimeMillis()), content);\n } catch (IOException e) {\n }\n }\n synchronized (resultLock) {\n result[0] = content;\n }\n } catch (Throwable t) {\n Log.exception(t);\n } finally {\n synchronized (resultLock) {\n if (initVal.equals(result[0])) {\n result[0] = null;\n }\n }\n Util.driverSleepRandLong();\n if (newHandle != null && origHandle != null) {\n try {\n Util.cleanUpNewWindows(driver, origHandle);\n } catch (Throwable t) {\n Log.exception(t);\n }\n }\n }\n }\n });\n thread.start();\n try {\n while (!started.get()) {\n try {\n Thread.sleep(WAIT);\n } catch (Throwable t) {\n Log.exception(t);\n }\n }\n thread.join(HANG_TIME);\n synchronized (resultLock) {\n if (initVal.equals(result[0])) {\n try {\n Log.exception(new Exception(\"String_Node_Str\"));\n forceQuit();\n thread.interrupt();\n } catch (Throwable t) {\n Log.exception(t);\n }\n throw new ActionFailed();\n } else if (urlHash != null && !CommonUtil.isEmpty(result[0]) && result[0].length() > MIN_FETCH_CACHE_PAGE_LEN) {\n synchronized (fetchLocalCacheLock) {\n if (fetchLocalCache.size() > MAX_FETCH_LOCAL_CACHE) {\n try {\n FileUtils.deleteQuietly(new File(\"String_Node_Str\"));\n FileUtils.forceMkdir(new File(\"String_Node_Str\"));\n } catch (Throwable t) {\n Log.exception(t);\n }\n fetchLocalCache.clear();\n }\n FileUtils.writeStringToFile(new File(\"String_Node_Str\" + urlHash), result[0], \"String_Node_Str\", false);\n fetchLocalCache.put(urlHash, time);\n }\n }\n return result[0];\n }\n } catch (Throwable t) {\n Log.exception(t);\n }\n }\n return null;\n}\n"
|
"public static Parameters test(final List<String> input, final Expectation... expectations) {\n final List<Verification> verifications = newArrayList();\n for (final Expectation expectation : expectations) {\n verifications.add(verification(input, expectation));\n }\n return new Parameters(input, verifications);\n}\n"
|
"private void processVersionMessage(VersionMessage m) throws ProtocolException {\n if (vPeerVersionMessage != null)\n throw new ProtocolException(\"String_Node_Str\");\n vPeerVersionMessage = m;\n int peerVersion = vPeerVersionMessage.clientVersion;\n PeerAddress peerAddress = getAddress();\n long peerTime = vPeerVersionMessage.time * 1000;\n log.info(\"String_Node_Str\", peerAddress == null ? \"String_Node_Str\" : peerAddress.getAddr().getHostAddress(), peerVersion, vPeerVersionMessage.subVer, vPeerVersionMessage.localServices, String.format(\"String_Node_Str\", peerTime, peerTime), vPeerVersionMessage.bestHeight);\n sendMessage(new VersionAck());\n if (!vPeerVersionMessage.hasBlockChain() || (!params.allowEmptyPeerChain() && vPeerVersionMessage.bestHeight <= 0)) {\n throw new ProtocolException(\"String_Node_Str\");\n }\n}\n"
|
"private Map<File, IPath> exportItems2(Collection<Item> items, File destinationDirectory, boolean projectFolderStructure, IProgressMonitor progressMonitor) throws Exception {\n Map<File, IPath> toExport = new HashMap<File, IPath>();\n progressMonitor.beginTask(\"String_Node_Str\", items.size() + 1);\n TimeMeasure.display = CommonsPlugin.isDebugMode();\n TimeMeasure.displaySteps = CommonsPlugin.isDebugMode();\n TimeMeasure.measureActive = CommonsPlugin.isDebugMode();\n TimeMeasure.begin(\"String_Node_Str\");\n try {\n Map<Item, Project> itemProjectMap = new HashMap<Item, Project>();\n Collection<Item> allItems = new ArrayList<Item>(items);\n items.clear();\n if (allItems.isEmpty()) {\n IPath proRelativePath = getProjectPath().append(FileConstants.LOCAL_PROJECT_FILENAME);\n IPath proSourcePath = workspacePath.append(proRelativePath);\n IPath proTargetPath = new Path(destinationDirectory.getAbsolutePath()).append(proRelativePath);\n FilesUtils.copyFile(new File(proSourcePath.toPortableString()), new File(proTargetPath.toPortableString()));\n toExport.put(proTargetPath.toFile(), proRelativePath);\n return toExport;\n }\n allItems = sortItemsByProject(allItems, itemProjectMap);\n ITransformService tdmService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITransformService.class)) {\n tdmService = (ITransformService) GlobalServiceRegister.getDefault().getService(ITransformService.class);\n }\n itemProjectMap.clear();\n Set<String> jarNameList = new HashSet<String>();\n Iterator<Item> iterator = allItems.iterator();\n Set<String> projectHasTdm = new HashSet<String>();\n while (iterator.hasNext()) {\n Item item = iterator.next();\n project = pManager.getProject(item);\n String label = item.getProperty().getLabel();\n String technicalLabel = project.getTechnicalLabel();\n if (tdmService != null && !projectHasTdm.contains(technicalLabel) && tdmService.isTransformItem(item)) {\n projectHasTdm.add(technicalLabel);\n IPath tdmPropsPath = getProjectPath().append(FileConstants.TDM_PROPS_PATH);\n IPath propsSourcePath = workspacePath.append(tdmPropsPath);\n IPath propsTargetPath = new Path(destinationDirectory.getAbsolutePath()).append(tdmPropsPath);\n FilesUtils.copyFile(new File(propsSourcePath.toPortableString()), new File(propsTargetPath.toPortableString()));\n toExport.put(propsTargetPath.toFile(), tdmPropsPath);\n }\n if (item.getProperty() instanceof FakePropertyImpl) {\n FakePropertyImpl fakeProperty = (FakePropertyImpl) item.getProperty();\n IPath itemResPath = fakeProperty.getItemPath().makeRelative();\n IPath itemSourcePath = workspacePath.append(itemResPath);\n IPath itemTargetPath = new Path(destinationDirectory.getAbsolutePath()).append(itemResPath);\n FilesUtils.copyFile(new File(itemSourcePath.toPortableString()), new File(itemTargetPath.toPortableString()));\n toExport.put(itemTargetPath.toFile(), itemResPath);\n continue;\n }\n XmiResourceManager localRepositoryManager = ProxyRepositoryFactory.getInstance().getRepositoryFactoryFromProvider().getResourceManager();\n IPath propertyPath = null;\n for (Resource curResource : localRepositoryManager.getAffectedResources(item.getProperty())) {\n URI uri = curResource.getURI();\n IPath relativeItemPath = URIHelper.convert(uri).makeRelative();\n IPath sourcePath = workspacePath.append(relativeItemPath);\n IPath targetPath = new Path(destinationDirectory.getAbsolutePath()).append(relativeItemPath);\n FilesUtils.copyFile(new File(sourcePath.toPortableString()), new File(targetPath.toPortableString()));\n toExport.put(targetPath.toFile(), relativeItemPath);\n if (uri.lastSegment() != null && uri.lastSegment().endsWith(FileConstants.PROPERTIES_FILE_SUFFIX)) {\n propertyPath = targetPath;\n }\n }\n if (propertyPath == null) {\n return toExport;\n }\n if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.JAVA)) {\n if (item instanceof RoutineItem) {\n List list = ((RoutineItem) item).getImports();\n for (int i = 0; i < list.size(); i++) {\n String jarName = ((IMPORTTypeImpl) list.get(i)).getMODULE();\n jarNameList.add(jarName.toString());\n }\n }\n }\n boolean needChangeItem = false;\n needChangeItem = needChangeItem || item.getState().isLocked();\n needChangeItem = needChangeItem || !item.getProperty().getLabel().replace(' ', '_').equals(item.getProperty().getLabel());\n if (needChangeItem) {\n XmiResourceManager xmiMamanger = new XmiResourceManager();\n Resource loadProject = projectResourcMap.get(proTargetPath);\n if (loadProject == null) {\n URI projectUri = URI.createFileURI(proTargetPath.toPortableString());\n loadProject = xmiMamanger.resourceSet.getResource(projectUri, true);\n projectResourcMap.put(proTargetPath, loadProject);\n }\n URI propertyUri = URI.createFileURI(propertyPath.toPortableString());\n Resource propertyResource = xmiMamanger.resourceSet.getResource(propertyUri, true);\n Property loadProperty = (Property) EcoreUtil.getObjectByType(propertyResource.getContents(), PropertiesPackage.eINSTANCE.getProperty());\n Item newItem = loadProperty.getItem();\n fixItem(newItem);\n fixItemLockState(newItem);\n saveResources(xmiMamanger.resourceSet);\n }\n iterator.remove();\n TimeMeasure.step(\"String_Node_Str\", \"String_Node_Str\" + label);\n progressMonitor.worked(1);\n }\n ILibraryManagerService repositoryBundleService = CorePlugin.getDefault().getRepositoryBundleService();\n for (String jarName : jarNameList) {\n IPath jarPath = new Path(getNeedProjectPath()).append(\"String_Node_Str\");\n String filePath = new Path(destinationDirectory.toString()).append(jarPath.toString()).toPortableString();\n if (repositoryBundleService.contains(jarName)) {\n repositoryBundleService.retrieve(jarName, filePath, new NullProgressMonitor());\n toExport.put(new File(filePath, jarName), jarPath.append(jarName));\n }\n }\n } catch (Exception e) {\n ExceptionHandler.process(e);\n } finally {\n TimeMeasure.end(\"String_Node_Str\");\n TimeMeasure.display = false;\n TimeMeasure.displaySteps = false;\n TimeMeasure.measureActive = false;\n }\n return toExport;\n}\n"
|
"protected void initAlerts() {\n builderDialog = new AlertDialog.Builder(m_context);\n builderDialog.setCancelable(false);\n builderDialog.setMessage(R.string.alters_confirm_delete);\n builderDialog.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface arg0, int arg1) {\n ((Activity) m_context).finish();\n }\n });\n builderDialog.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n arg0.dismiss();\n }\n });\n break;\n case R.string.imagehelper_sdcard_unavailable:\n builderDialog.setMessage(R.string.imagehelper_sdcard_unavailable);\n builderDialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n arg0.dismiss();\n }\n });\n }\n}\n"
|
"public void setUp() throws Exception {\n databases = getDatabases(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n defaultDatabase = databases.getDefaultDatabase();\n dataSource = defaultDatabase.getDataSource();\n ConstraintsDisabler constraintsDisabler = new DefaultConstraintsDisabler(databases);\n defaultDBClearer = new DefaultDBClearer(databases, new HashSet<DbItemIdentifier>(), constraintsDisabler);\n dropTestDatabase();\n createTestDatabase();\n}\n"
|
"public void setFileLength(long newLength) throws IOException {\n checkFileSizeLimit(newLength);\n int oldPos = pos;\n unMap();\n for (int i = 0; ; i++) {\n try {\n IOUtils.setLength(file, newLength);\n break;\n } catch (IOException e) {\n if (i > 16 || e.toString().indexOf(\"String_Node_Str\") < 0) {\n throw e;\n }\n }\n System.gc();\n }\n reMap();\n pos = (int) Math.min(newLength, oldPos);\n}\n"
|
"protected Schedule _getSchedule() throws NotSchedulableException, IllegalActionException {\n CTSchedule ctSchedule = new CTSchedule();\n _signalTypeMap = new SignalTypeMap();\n LinkedList continuousActors = new LinkedList();\n LinkedList discreteActors = new LinkedList();\n LinkedList dynamicActors = new LinkedList();\n LinkedList stateTransitionActors = new LinkedList();\n LinkedList arithmeticActors = new LinkedList();\n LinkedList sinkActors = new LinkedList();\n LinkedList eventGenerators = new LinkedList();\n LinkedList waveformGenerators = new LinkedList();\n LinkedList ctSubsystems = new LinkedList();\n LinkedList nonCTSubsystems = new LinkedList();\n Schedule continuousActorSchedule = new Schedule();\n Schedule discreteActorSchedule = new Schedule();\n Schedule dynamicActorSchedule = new Schedule();\n Schedule eventGeneratorSchedule = new Schedule();\n Schedule outputSchedule = new Schedule();\n Schedule outputSSCActorSchedule = new Schedule();\n Schedule statefulActorSchedule = new Schedule();\n Schedule stateSSCActorSchedule = new Schedule();\n Schedule stateTransitionSchedule = new Schedule();\n Schedule waveformGeneratorSchedule = new Schedule();\n CompositeActor container = (CompositeActor) getContainer().getContainer();\n boolean isCTCompositeActor = container instanceof CTCompositeActor;\n Iterator containerInPorts = container.inputPortList().iterator();\n while (containerInPorts.hasNext()) {\n IOPort inPort = (IOPort) containerInPorts.next();\n if (!isCTCompositeActor) {\n Receiver[][] localReceivers = inPort.getReceivers();\n Receiver localReceiver = localReceivers[0][0];\n if (localReceiver instanceof StateReceiver) {\n _signalTypeMap.setType(inPort, CONTINUOUS);\n } else {\n _signalTypeMap.setType(inPort, DISCRETE);\n }\n } else {\n Parameter signalType = (Parameter) inPort.getAttribute(\"String_Node_Str\");\n if (signalType != null) {\n String type = ((StringToken) signalType.getToken()).stringValue();\n type = type.trim().toUpperCase();\n if (type.equals(\"String_Node_Str\")) {\n _signalTypeMap.setType(inPort, CONTINUOUS);\n } else if (type.equals(\"String_Node_Str\")) {\n _signalTypeMap.setType(inPort, DISCRETE);\n } else {\n throw new IllegalActionException(inPort, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n } else {\n _signalTypeMap.setType(inPort, CONTINUOUS);\n }\n }\n _signalTypeMap.propagateTypeInside(inPort);\n }\n Iterator allActors = container.deepEntityList().iterator();\n while (allActors.hasNext()) {\n Actor a = (Actor) allActors.next();\n if (_debugging & _verbose) {\n _debug(\"String_Node_Str\" + ((Nameable) a).getFullName() + \"String_Node_Str\");\n }\n if (a instanceof CompositeActor) {\n if (a instanceof CTCompositeActor) {\n dynamicActors.add(a);\n arithmeticActors.add(a);\n ctSubsystems.add(a);\n statefulActorSchedule.add(new Firing(a));\n waveformGenerators.add(a);\n eventGenerators.add(a);\n } else {\n nonCTSubsystems.add(a);\n }\n } else {\n if (a instanceof CTStatefulActor) {\n statefulActorSchedule.add(new Firing(a));\n }\n if (a instanceof CTWaveformGenerator) {\n waveformGenerators.add(a);\n } else if (a instanceof CTEventGenerator) {\n eventGenerators.add(a);\n } else if (a instanceof CTDynamicActor) {\n dynamicActors.add(a);\n } else {\n arithmeticActors.add(a);\n }\n }\n if (a instanceof SequenceActor) {\n if (predecessorList(a).isEmpty()) {\n throw new NotSchedulableException(((Nameable) a).getName() + \"String_Node_Str\" + \"String_Node_Str\");\n }\n Iterator ports = ((Entity) a).portList().iterator();\n while (ports.hasNext()) {\n IOPort port = (IOPort) ports.next();\n _signalTypeMap.setType(port, DISCRETE);\n if (port.isOutput()) {\n _signalTypeMap.propagateType(port);\n }\n }\n } else if ((a instanceof CompositeActor) && !(a instanceof CTCompositeActor)) {\n Iterator ports = ((Entity) a).portList().iterator();\n while (ports.hasNext()) {\n IOPort port = (IOPort) ports.next();\n if (port.isOutput()) {\n Receiver[][] insideReceivers = port.getInsideReceivers();\n if (insideReceivers.length > 0 && insideReceivers[0] != null && insideReceivers[0].length > 0) {\n Receiver insideReceiver = insideReceivers[0][0];\n if (insideReceiver instanceof StateReceiver) {\n _signalTypeMap.setType(port, CONTINUOUS);\n } else {\n _signalTypeMap.setType(port, DISCRETE);\n }\n } else {\n _signalTypeMap.setType(port, DISCRETE);\n }\n _signalTypeMap.propagateType(port);\n }\n }\n } else {\n Iterator ports = ((Entity) a).portList().iterator();\n while (ports.hasNext()) {\n IOPort port = (IOPort) ports.next();\n Parameter signalType = (Parameter) port.getAttribute(\"String_Node_Str\");\n if (signalType != null) {\n String type = ((StringToken) signalType.getToken()).stringValue();\n type = type.trim().toUpperCase();\n if (type.equals(\"String_Node_Str\")) {\n _signalTypeMap.setType(port, CONTINUOUS);\n if (port.isOutput()) {\n _signalTypeMap.propagateType(port);\n }\n } else if (type.equals(\"String_Node_Str\")) {\n _signalTypeMap.setType(port, DISCRETE);\n if (port.isOutput()) {\n _signalTypeMap.propagateType(port);\n }\n } else {\n throw new InvalidStateException(port, \"String_Node_Str\");\n }\n } else if (a instanceof CTCompositeActor) {\n if (_signalTypeMap.getType(port) == UNKNOWN) {\n _signalTypeMap.setType(port, CONTINUOUS);\n }\n if (port.isOutput()) {\n _signalTypeMap.propagateType(port);\n }\n }\n }\n if (predecessorList(a).isEmpty()) {\n ports = ((Entity) a).portList().iterator();\n while (ports.hasNext()) {\n IOPort port = (IOPort) ports.next();\n if (_signalTypeMap.getType(port) == UNKNOWN) {\n _signalTypeMap.setType(port, CONTINUOUS);\n if (port.isOutput()) {\n _signalTypeMap.propagateType(port);\n }\n }\n }\n }\n }\n }\n DirectedAcyclicGraph arithmeticGraph = _toGraph(arithmeticActors);\n if (!arithmeticGraph.isAcyclic()) {\n throw new NotSchedulableException(\"String_Node_Str\");\n }\n DirectedAcyclicGraph dynamicGraph = _toGraph(dynamicActors);\n if (!dynamicGraph.isAcyclic()) {\n throw new NotSchedulableException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n Object[] sortedArithmeticActors = arithmeticGraph.topologicalSort();\n for (int i = 0; i < sortedArithmeticActors.length; i++) {\n Actor actor = (Actor) sortedArithmeticActors[i];\n Iterator inputPorts = actor.inputPortList().iterator();\n CTReceiver.SignalType knownInputType = UNKNOWN;\n boolean needManuallySetType = true;\n while (inputPorts.hasNext()) {\n IOPort inputPort = (IOPort) inputPorts.next();\n if (inputPort.getWidth() != 0) {\n CTReceiver.SignalType inputType = _signalTypeMap.getType(inputPort);\n if (inputType == UNKNOWN) {\n throw new NotSchedulableException(\"String_Node_Str\" + \"String_Node_Str\" + inputPort.getFullName() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n } else if (knownInputType == UNKNOWN) {\n knownInputType = inputType;\n needManuallySetType = false;\n } else if (knownInputType != inputType) {\n needManuallySetType = true;\n break;\n }\n }\n }\n Iterator outputPorts = actor.outputPortList().iterator();\n while (outputPorts.hasNext()) {\n IOPort outputPort = (IOPort) outputPorts.next();\n if (outputPort.getWidth() != 0) {\n CTReceiver.SignalType outputType = _signalTypeMap.getType(outputPort);\n if (outputType == UNKNOWN) {\n if (needManuallySetType) {\n throw new NotSchedulableException(\"String_Node_Str\" + \"String_Node_Str\" + outputPort.getFullName() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n } else {\n _signalTypeMap.setType(outputPort, knownInputType);\n }\n }\n _signalTypeMap.propagateType(outputPort);\n }\n }\n }\n _setPortSignalTypes(_signalTypeMap);\n if (_debugging) {\n _debug(\"String_Node_Str\" + _signalTypeMap.toString() + \"String_Node_Str\");\n }\n discreteActors = _signalTypeMap.getDiscreteActors();\n continuousActors = _signalTypeMap.getContinuousActors();\n continuousActors.removeAll(ctSubsystems);\n continuousActors.addAll(ctSubsystems);\n discreteActors.removeAll(ctSubsystems);\n discreteActors.addAll(ctSubsystems);\n Iterator subsystems = nonCTSubsystems.iterator();\n while (subsystems.hasNext()) {\n CompositeActor subsystem = (CompositeActor) subsystems.next();\n if (discreteActors.contains(subsystem) && continuousActors.contains(subsystem)) {\n waveformGenerators.add(subsystem);\n discreteActors.remove(subsystem);\n continuousActors.remove(subsystem);\n }\n }\n DirectedAcyclicGraph discreteGraph = _toGraph(discreteActors);\n Object[] discreteSorted = discreteGraph.topologicalSort();\n for (int i = 0; i < discreteSorted.length; i++) {\n Actor actor = (Actor) discreteSorted[i];\n if (continuousActors.contains(actor)) {\n if (actor instanceof CTCompositeActor) {\n discreteActorSchedule.add(new Firing(actor));\n } else {\n if ((actor instanceof CTEventGenerator) || (actor instanceof CTWaveformGenerator)) {\n continuousActors.remove(actor);\n }\n }\n continue;\n }\n discreteActorSchedule.add(new Firing(actor));\n }\n Iterator generators = waveformGenerators.iterator();\n while (generators.hasNext()) {\n Actor generator = (Actor) generators.next();\n waveformGeneratorSchedule.add(new Firing(generator));\n }\n if (!eventGenerators.isEmpty()) {\n DirectedAcyclicGraph eventGraph = _toGraph(eventGenerators);\n Object[] eventSorted = eventGraph.topologicalSort();\n for (int i = 0; i < eventSorted.length; i++) {\n Actor actor = (Actor) eventSorted[i];\n eventGeneratorSchedule.add(new Firing(actor));\n if (actor instanceof CTStepSizeControlActor) {\n outputSSCActorSchedule.add(new Firing(actor));\n }\n }\n }\n Iterator continuousIterator = continuousActors.iterator();\n while (continuousIterator.hasNext()) {\n Actor actor = (Actor) continuousIterator.next();\n continuousActorSchedule.add(new Firing(actor));\n }\n LinkedList stateRelatedActors = new LinkedList();\n arithmeticGraph = _toArithmeticGraph(continuousActors);\n if (!dynamicActors.isEmpty()) {\n Object[] dynamicArray = dynamicActors.toArray();\n Object[] xSorted = dynamicGraph.topologicalSort(dynamicArray);\n for (int i = 0; i < xSorted.length; i++) {\n Actor dynamicActor = (Actor) xSorted[i];\n dynamicActorSchedule.add(0, new Firing(dynamicActor));\n stateRelatedActors.add(dynamicActor);\n if (dynamicActor instanceof CTStepSizeControlActor) {\n stateSSCActorSchedule.add(new Firing(dynamicActor));\n }\n Object[] fx;\n fx = arithmeticGraph.backwardReachableNodes(dynamicActor);\n Object[] fxSorted = arithmeticGraph.topologicalSort(fx);\n for (int fxi = 0; fxi < fxSorted.length; fxi++) {\n Actor actor = (Actor) fxSorted[fxi];\n if (stateTransitionActors.contains(actor)) {\n continue;\n }\n stateTransitionActors.add(actor);\n stateRelatedActors.add(actor);\n if (actor instanceof CTStepSizeControlActor) {\n stateSSCActorSchedule.add(new Firing(actor));\n }\n }\n if ((dynamicActor instanceof CTCompositeActor) && !stateTransitionActors.contains(dynamicActor)) {\n stateTransitionActors.add(dynamicActor);\n }\n }\n }\n Iterator stActors = stateTransitionActors.iterator();\n while (stActors.hasNext()) {\n Actor stActor = (Actor) stActors.next();\n stateTransitionSchedule.add(new Firing(stActor));\n }\n sinkActors = (LinkedList) continuousActors.clone();\n sinkActors.removeAll(stateRelatedActors);\n sinkActors.addAll(ctSubsystems);\n if (!sinkActors.isEmpty()) {\n arithmeticGraph = _toArithmeticGraph(sinkActors);\n Object[] sinkArray = sinkActors.toArray();\n Object[] gxSorted = arithmeticGraph.topologicalSort(sinkArray);\n for (int i = 0; i < gxSorted.length; i++) {\n Actor a = (Actor) gxSorted[i];\n outputSchedule.add(new Firing(a));\n if (!eventGenerators.contains(a) && a instanceof CTStepSizeControlActor) {\n outputSSCActorSchedule.add(new Firing(a));\n }\n }\n }\n ctSchedule.add(continuousActorSchedule);\n ctSchedule.add(discreteActorSchedule);\n ctSchedule.add(dynamicActorSchedule);\n ctSchedule.add(eventGeneratorSchedule);\n ctSchedule.add(outputSchedule);\n ctSchedule.add(outputSSCActorSchedule);\n ctSchedule.add(stateTransitionSchedule);\n ctSchedule.add(statefulActorSchedule);\n ctSchedule.add(stateSSCActorSchedule);\n ctSchedule.add(waveformGeneratorSchedule);\n setValid(true);\n return ctSchedule;\n}\n"
|
"public boolean apply(StoreFile storeFile) {\n if (storeFile == null) {\n return false;\n }\n return storeFile.getMaximumTimestamp() >= cutoff;\n}\n"
|
"public void onReleased(RCDevice device, int statusCode, String statusText) {\n if (statusCode != RCClient.ErrorCodes.SUCCESS.ordinal()) {\n Toast.makeText(getApplicationContext(), \"String_Node_Str\" + statusText, Toast.LENGTH_SHORT).show();\n } else {\n handleConnectivityUpdate(RCConnectivityStatus.RCConnectivityStatusNone, \"String_Node_Str\" + statusText);\n }\n}\n"
|
"public void createContent(String id, Element parent) {\n String dBranding = \"String_Node_Str\";\n String branding = System.getProperty(\"String_Node_Str\");\n if (branding == null || \"String_Node_Str\".equals(branding)) {\n branding = dBranding;\n }\n Document dom = parent.getOwnerDocument();\n String imgBrandingPath = \"String_Node_Str\";\n String imgCommonPath = \"String_Node_Str\";\n String content = dom.getDocumentURI();\n if (content != null && !\"String_Node_Str\".equals(content)) {\n File file = new File(content);\n int index = content.indexOf(file.getName());\n imgBrandingPath = content.substring(0, index) + \"String_Node_Str\" + branding;\n imgCommonPath = content.substring(0, index);\n }\n List<IRepositoryViewObject> latestItems = new ArrayList<IRepositoryViewObject>();\n String url = \"String_Node_Str\";\n if (\"String_Node_Str\".equals(id)) {\n Element img = dom.createElement(\"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", imgBrandingPath + \"String_Node_Str\");\n parent.appendChild(img);\n } else if (\"String_Node_Str\".equals(id)) {\n Element img = dom.createElement(\"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", imgBrandingPath + \"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n parent.appendChild(img);\n } else if (ERepositoryObjectType.PROCESS != null && ERepositoryObjectType.PROCESS.name().equals(id)) {\n Element span = dom.createElement(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n span.appendChild(dom.createTextNode(Messages.getString(\"String_Node_Str\")));\n parent.appendChild(span);\n span.appendChild(dom.createElement(\"String_Node_Str\"));\n String title = Messages.getString(\"String_Node_Str\");\n createLatestItemTitlePart(dom, parent, imgCommonPath + \"String_Node_Str\", title);\n latestItems = getLatestModifiedItems(ERepositoryObjectType.PROCESS, 8);\n url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (latestItems.size() == 0) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n } else if (ERepositoryObjectType.BUSINESS_PROCESS != null && ERepositoryObjectType.BUSINESS_PROCESS.name().equals(id)) {\n String title = Messages.getString(\"String_Node_Str\");\n createLatestItemTitlePart(dom, parent, imgCommonPath + \"String_Node_Str\", title);\n latestItems = getLatestModifiedItems(ERepositoryObjectType.BUSINESS_PROCESS, 8);\n url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (latestItems.size() == 0) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n } else if (\"String_Node_Str\".equals(id) && isItemShow(\"String_Node_Str\")) {\n String title = Messages.getString(\"String_Node_Str\");\n createLatestItemTitlePart(dom, parent, imgCommonPath + \"String_Node_Str\", title);\n latestItems = getLatestModifiedItems(ERepositoryObjectType.TDQ_ANALYSIS_ELEMENT, 8);\n url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (latestItems.size() == 0) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n } else if (\"String_Node_Str\".equals(id) && isItemShow(\"String_Node_Str\")) {\n String title = Messages.getString(\"String_Node_Str\");\n createLatestItemTitlePart(dom, parent, imgCommonPath + \"String_Node_Str\", title);\n ERepositoryObjectType repositoryServicesType = ERepositoryObjectType.valueOf(ERepositoryObjectType.class, \"String_Node_Str\");\n latestItems = getLatestModifiedItems(repositoryServicesType, 8);\n url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (latestItems.size() == 0) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n } else if (\"String_Node_Str\".equals(id) && isItemShow(\"String_Node_Str\")) {\n String title = Messages.getString(\"String_Node_Str\");\n createLatestItemTitlePart(dom, parent, imgCommonPath + \"String_Node_Str\", title);\n ERepositoryObjectType repositoryRoutesType = ERepositoryObjectType.valueOf(ERepositoryObjectType.class, \"String_Node_Str\");\n latestItems = getLatestModifiedItems(repositoryRoutesType, 8);\n url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (latestItems.size() == 0) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n } else if (\"String_Node_Str\".equals(id)) {\n IPreferenceStore store = CorePlugin.getDefault().getPreferenceStore();\n boolean showIntroConfig = store.getBoolean(ITalendCorePrefConstants.ALWAYS_WELCOME);\n url = \"String_Node_Str\" + \"String_Node_Str\";\n Element input = dom.createElement(\"String_Node_Str\");\n input.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n if (!showIntroConfig) {\n input.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n }\n input.setAttribute(\"String_Node_Str\", url);\n input.appendChild(dom.createTextNode(Messages.getString(\"String_Node_Str\")));\n parent.appendChild(input);\n } else if (\"String_Node_Str\".equals(id)) {\n createOnlinePage(dom, parent);\n } else if (\"String_Node_Str\".equals(id)) {\n Element td = dom.createElement(\"String_Node_Str\");\n setTDStyle(td);\n parent.appendChild(td);\n Element divRight = dom.createElement(\"String_Node_Str\");\n divRight.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n td.appendChild(divRight);\n parent = divRight;\n createTitlePart(dom, parent, Messages.getString(\"String_Node_Str\"));\n String text = Messages.getString(\"String_Node_Str\");\n url = \"String_Node_Str\";\n String title = \"String_Node_Str\";\n createANewItem(dom, parent, imgCommonPath + \"String_Node_Str\", text, title, url);\n text = Messages.getString(\"String_Node_Str\");\n url = \"String_Node_Str\";\n title = \"String_Node_Str\";\n createANewItem(dom, parent, imgCommonPath + \"String_Node_Str\", text, title, url);\n if (isItemShow(\"String_Node_Str\")) {\n text = Messages.getString(\"String_Node_Str\");\n url = \"String_Node_Str\";\n title = \"String_Node_Str\";\n createANewItem(dom, parent, imgCommonPath + \"String_Node_Str\", text, title, url);\n }\n if (isItemShow(\"String_Node_Str\")) {\n text = Messages.getString(\"String_Node_Str\");\n url = \"String_Node_Str\";\n title = \"String_Node_Str\";\n createANewItem(dom, parent, imgCommonPath + \"String_Node_Str\", text, title, url);\n }\n if (isItemShow(\"String_Node_Str\")) {\n text = Messages.getString(\"String_Node_Str\");\n url = \"String_Node_Str\";\n title = \"String_Node_Str\";\n createANewItem(dom, parent, imgCommonPath + \"String_Node_Str\", text, title, url);\n }\n title = Messages.getString(\"String_Node_Str\");\n String talendHelpCenter = Messages.getString(\"String_Node_Str\");\n String docForDownload = Messages.getString(\"String_Node_Str\");\n String[] hyperlinkText = new String[] { talendHelpCenter, docForDownload };\n String[] urls = new String[] { BROWSER_URL + \"String_Node_Str\", BROWSER_URL + \"String_Node_Str\" };\n String[] extTexts = new String[2];\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n createFixedPart(dom, parent, title, hyperlinkText, urls, extTexts);\n title = Messages.getString(\"String_Node_Str\");\n String hTutorial = Messages.getString(\"String_Node_Str\");\n String hforum = Messages.getString(\"String_Node_Str\");\n String hTrainning = Messages.getString(\"String_Node_Str\");\n hyperlinkText = new String[] { hTutorial, hforum, hTrainning };\n urls = new String[] { BROWSER_URL + \"String_Node_Str\", BROWSER_URL + \"String_Node_Str\", BROWSER_URL + \"String_Node_Str\" };\n String extTutorial = \"String_Node_Str\" + Messages.getString(\"String_Node_Str\");\n String extforum = \"String_Node_Str\" + Messages.getString(\"String_Node_Str\");\n String extTrainning = \"String_Node_Str\" + Messages.getString(\"String_Node_Str\");\n extTexts = new String[] { extTutorial, extforum, extTrainning };\n createFixedPart(dom, parent, title, hyperlinkText, urls, extTexts);\n Element imgP = dom.createElement(\"String_Node_Str\");\n imgP.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n parent.appendChild(imgP);\n Element imgLink = dom.createElement(\"String_Node_Str\");\n imgLink.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n imgP.appendChild(imgLink);\n Element img = dom.createElement(\"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", imgCommonPath + \"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n img.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n imgLink.appendChild(img);\n }\n for (int i = 0; i < latestItems.size(); i++) {\n IRepositoryViewObject object = latestItems.get(i);\n Element hyperlink = dom.createElement(\"String_Node_Str\");\n hyperlink.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n hyperlink.setAttribute(\"String_Node_Str\", url + object.getId());\n hyperlink.setAttribute(\"String_Node_Str\", \"String_Node_Str\" + object.getModificationDate() + \"String_Node_Str\" + object.getAuthor() + \"String_Node_Str\" + \"String_Node_Str\" + object.getCreationDate() + \"String_Node_Str\" + object.getAuthor());\n hyperlink.appendChild(dom.createTextNode(object.getLabel() + \"String_Node_Str\" + object.getVersion()));\n parent.appendChild(hyperlink);\n if (i != latestItems.size() - 1) {\n parent.appendChild(dom.createElement(\"String_Node_Str\"));\n }\n }\n}\n"
|
"public void testInputDateObjectTW(Book book) {\n Sheet sheet = book.getSheetAt(0);\n Range r;\n Date today = new Date();\n String todayStr;\n String todayStrLong;\n Setup.setZssLocale(Locale.TAIWAN);\n r = Ranges.range(sheet, \"String_Node_Str\");\n Assert.assertEquals(\"String_Node_Str\", r.getCellDataFormat());\n CellOperationUtil.applyDataFormat(r, \"String_Node_Str\");\n todayStr = new SimpleDateFormat(\"String_Node_Str\", Setup.getZssLocale()).format(today);\n todayStrLong = new SimpleDateFormat(\"String_Node_Str\", Setup.getZssLocale()).format(today);\n r.setCellEditText(todayStr);\n Assert.assertEquals(\"String_Node_Str\", r.getCellStyle().getDataFormat());\n Assert.assertEquals(todayStr, r.getCellFormatText());\n Assert.assertEquals(CellType.NUMERIC, r.getCellData().getType());\n Assert.assertEquals(todayStr, r.getCellEditText());\n r.getCellData().setValue(today);\n Assert.assertEquals(\"String_Node_Str\", r.getCellStyle().getDataFormat());\n Assert.assertEquals(todayStr, r.getCellFormatText());\n Assert.assertEquals(CellType.NUMERIC, r.getCellData().getType());\n Assert.assertEquals(todayStrLong, r.getCellEditText());\n r.getCellData().setValue(Util.getDateOnly(today));\n Assert.assertEquals(\"String_Node_Str\", r.getCellStyle().getDataFormat());\n Assert.assertEquals(todayStr, r.getCellFormatText());\n Assert.assertEquals(CellType.NUMERIC, r.getCellData().getType());\n Assert.assertEquals(todayStr, r.getCellEditText());\n}\n"
|
"public void setLocallyOnHold(boolean locallyOnHold) {\n this.locallyOnHold = locallyOnHold;\n if (locallyOnHold) {\n if (audioStream != null) {\n audioStream.setDirection(audioStream.getDirection().and(MediaDirection.SENDONLY));\n audioStream.setMute(locallyOnHold);\n }\n if (videoStream != null) {\n videoStream.setDirection(videoStream.getDirection().and(MediaDirection.SENDONLY));\n videoStream.setMute(locallyOnHold);\n }\n } else {\n if (audioStream != null) {\n audioStream.setDirection(audioStream.getDirection().or(MediaDirection.SENDONLY));\n audioStream.setMute(locallyOnHold);\n }\n if (videoStream != null) {\n videoStream.setDirection(videoStream.getDirection().or(MediaDirection.SENDONLY));\n videoStream.setMute(locallyOnHold);\n }\n }\n}\n"
|
"public void run(String dbName, ResourceLoader resourceLoader) {\n HashMap fileList = new HashMap();\n CacheManager cacheManager = new CacheManager();\n try {\n if (resourceLoader != null && cacheManager != null)\n cacheManager = cacheManager.create(resourceLoader.getResource(\"String_Node_Str\").getInputStream());\n } catch (CacheException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n EhCacheWrapper ehCache = new EhCacheWrapper(\"String_Node_Str\", cacheManager);\n setEhCacheWrapper(ehCache);\n if (\"String_Node_Str\".equals(dbName)) {\n fileList.put(this.DAO_USERACCOUNT, \"String_Node_Str\");\n fileList.put(this.DAO_ARCHIVED_DATASET_FILE, \"String_Node_Str\");\n fileList.put(this.DAO_STUDY, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYEVENTDEFNITION, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYEVENT, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYGROUP, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYGROUPCLASS, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYSUBJECT, \"String_Node_Str\");\n fileList.put(this.DAO_SUBJECT, \"String_Node_Str\");\n fileList.put(this.DAO_SUBJECTGROUPMAP, \"String_Node_Str\");\n fileList.put(this.DAO_EVENTDEFINITIONCRF, \"String_Node_Str\");\n fileList.put(this.DAO_AUDITEVENT, \"String_Node_Str\");\n fileList.put(this.DAO_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM, \"String_Node_Str\");\n fileList.put(this.DAO_ITEMDATA, \"String_Node_Str\");\n fileList.put(this.DAO_CRF, \"String_Node_Str\");\n fileList.put(this.DAO_CRFVERSION, \"String_Node_Str\");\n fileList.put(this.DAO_DATASET, \"String_Node_Str\");\n fileList.put(this.DAO_SECTION, \"String_Node_Str\");\n fileList.put(this.DAO_FILTER, \"String_Node_Str\");\n fileList.put(this.DAO_MASKING, \"String_Node_Str\");\n fileList.put(this.DAO_EVENTCRF, \"String_Node_Str\");\n fileList.put(this.DAO_ITEMFORMMETADATA, \"String_Node_Str\");\n fileList.put(this.DAO_DISCREPANCY_NOTE, \"String_Node_Str\");\n fileList.put(this.DAO_STUDY_PARAMETER, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM_GROUP, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM_GROUP_METADATA, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET, \"String_Node_Str\");\n fileList.put(this.DAO_RULE, \"String_Node_Str\");\n fileList.put(this.DAO_RULE_ACTION, \"String_Node_Str\");\n fileList.put(this.DAO_EXPRESSION, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET_RULE, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_RULESETRULE_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_ODM_EXTRACT, \"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(dbName)) {\n fileList.put(this.DAO_USERACCOUNT, \"String_Node_Str\");\n fileList.put(this.DAO_ARCHIVED_DATASET_FILE, \"String_Node_Str\");\n fileList.put(this.DAO_STUDY, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYEVENTDEFNITION, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYEVENT, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYGROUP, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYGROUPCLASS, \"String_Node_Str\");\n fileList.put(this.DAO_STUDYSUBJECT, \"String_Node_Str\");\n fileList.put(this.DAO_SUBJECT, \"String_Node_Str\");\n fileList.put(this.DAO_SUBJECTGROUPMAP, \"String_Node_Str\");\n fileList.put(this.DAO_EVENTDEFINITIONCRF, \"String_Node_Str\");\n fileList.put(this.DAO_AUDITEVENT, \"String_Node_Str\");\n fileList.put(this.DAO_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM, \"String_Node_Str\");\n fileList.put(this.DAO_ITEMDATA, \"String_Node_Str\");\n fileList.put(this.DAO_CRF, \"String_Node_Str\");\n fileList.put(this.DAO_CRFVERSION, \"String_Node_Str\");\n fileList.put(this.DAO_DATASET, \"String_Node_Str\");\n fileList.put(this.DAO_SECTION, \"String_Node_Str\");\n fileList.put(this.DAO_FILTER, \"String_Node_Str\");\n fileList.put(this.DAO_MASKING, \"String_Node_Str\");\n fileList.put(this.DAO_EVENTCRF, \"String_Node_Str\");\n fileList.put(this.DAO_ITEMFORMMETADATA, \"String_Node_Str\");\n fileList.put(this.DAO_DISCREPANCY_NOTE, \"String_Node_Str\");\n fileList.put(this.DAO_STUDY_PARAMETER, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM_GROUP, \"String_Node_Str\");\n fileList.put(this.DAO_ITEM_GROUP_METADATA, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET, \"String_Node_Str\");\n fileList.put(this.DAO_RULE, \"String_Node_Str\");\n fileList.put(this.DAO_RULE_ACTION, \"String_Node_Str\");\n fileList.put(this.DAO_EXPRESSION, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET_RULE, \"String_Node_Str\");\n fileList.put(this.DAO_RULESET_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_RULESETRULE_AUDIT, \"String_Node_Str\");\n fileList.put(this.DAO_SUBJECTTRANSFER, \"String_Node_Str\");\n fileList.put(this.DAO_ODM_EXTRACT, \"String_Node_Str\");\n } else {\n }\n Set DAONames = fileList.keySet();\n Iterator DAONamesIt = DAONames.iterator();\n while (DAONamesIt.hasNext()) {\n String DAOName = (String) DAONamesIt.next();\n String DAOFileName = (String) fileList.get(DAOName);\n DAODigester newDaoDigester = new DAODigester();\n try {\n if (System.getProperty(\"String_Node_Str\") == null) {\n String path = getPropertiesDir();\n newDaoDigester.setInputStream(new FileInputStream(path + DAOFileName));\n } else {\n String path = CoreResources.PROPERTIES_DIR;\n newDaoDigester.setInputStream(resourceLoader.getResource(\"String_Node_Str\" + DAOFileName).getInputStream());\n }\n try {\n newDaoDigester.run();\n digesters.put(DAOName, newDaoDigester);\n } catch (SAXException saxe) {\n saxe.printStackTrace();\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n}\n"
|
"public void fire() throws IllegalActionException {\n if (input.hasToken(0)) {\n _currentInput = input.get(0);\n } else {\n _currentInput = null;\n }\n Time currentTime = getDirector().getModelTime();\n _currentOutput = null;\n if (_delayedOutputTokens.size() > 0) {\n TimedEvent earliestEvent = (TimedEvent) _delayedOutputTokens.get();\n Time eventTime = earliestEvent.timeStamp;\n if (eventTime.equals(currentTime)) {\n _currentOutput = (Token) earliestEvent.contents;\n output.send(0, _currentOutput);\n return;\n } else {\n }\n }\n if (_delay == 0 && _currentInput != null) {\n output.send(0, _currentInput);\n _currentInput = null;\n }\n}\n"
|
"private void printData(String latexFile, int indicatorIndex, double[][][] centralTendency, double[][][] dispersion, String caption) throws IOException {\n FileWriter os = new FileWriter(latexFile, true);\n os.write(\"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + configuration.getIndicatorList().get(indicatorIndex).getName() + \"String_Node_Str\" + caption + \"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + configuration.getIndicatorList().get(indicatorIndex).getName() + \"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\");\n for (TaggedAlgorithm algorithm : configuration.getAlgorithmList()) {\n os.write(\"String_Node_Str\");\n }\n os.write(\"String_Node_Str\");\n os.write(\"String_Node_Str\");\n for (int i = -1; i < configuration.getAlgorithmList().size(); i++) {\n if (i == -1) {\n os.write(\"String_Node_Str\");\n } else if (i == (configuration.getAlgorithmList().size() - 1)) {\n os.write(\"String_Node_Str\" + configuration.getAlgorithmList().get(i).getTag() + \"String_Node_Str\" + \"String_Node_Str\");\n } else {\n os.write(\"String_Node_Str\" + configuration.getAlgorithmList().get(i).getTag() + \"String_Node_Str\");\n }\n }\n os.write(\"String_Node_Str\");\n for (int i = 0; i < configuration.getProblemList().size(); i++) {\n double bestCentralTendencyValue;\n double bestDispersionValue;\n double secondBestCentralTendencyValue;\n double secondBestDispersionValue;\n int bestIndex = -1;\n int secondBestIndex = -1;\n if (configuration.getIndicatorList().get(indicatorIndex).isTheLowerTheIndicatorValueTheBetter()) {\n bestCentralTendencyValue = Double.MAX_VALUE;\n bestDispersionValue = Double.MAX_VALUE;\n secondBestCentralTendencyValue = Double.MAX_VALUE;\n secondBestDispersionValue = Double.MAX_VALUE;\n for (int j = 0; j < (configuration.getAlgorithmList().size()); j++) {\n if ((centralTendency[indicatorIndex][i][j] > bestCentralTendencyValue) || ((centralTendency[indicatorIndex][i][j] == bestCentralTendencyValue) && (dispersion[indicatorIndex][i][j] < bestDispersionValue))) {\n secondBestIndex = bestIndex;\n secondBestCentralTendencyValue = bestCentralTendencyValue;\n secondBestDispersionValue = bestDispersionValue;\n bestCentralTendencyValue = centralTendency[indicatorIndex][i][j];\n bestDispersionValue = dispersion[indicatorIndex][i][j];\n bestIndex = j;\n } else if ((centralTendency[indicatorIndex][i][j] > secondBestCentralTendencyValue) || ((centralTendency[indicatorIndex][i][j] == secondBestCentralTendencyValue) && (dispersion[indicatorIndex][i][j] < secondBestDispersionValue))) {\n secondBestIndex = j;\n secondBestCentralTendencyValue = centralTendency[indicatorIndex][i][j];\n secondBestDispersionValue = dispersion[indicatorIndex][i][j];\n }\n }\n } else {\n bestCentralTendencyValue = Double.MAX_VALUE;\n bestDispersionValue = Double.MAX_VALUE;\n secondBestCentralTendencyValue = Double.MAX_VALUE;\n secondBestDispersionValue = Double.MAX_VALUE;\n for (int j = 0; j < (configuration.getAlgorithmList().size()); j++) {\n if ((centralTendency[indicatorIndex][i][j] < bestCentralTendencyValue) || ((centralTendency[indicatorIndex][i][j] == bestCentralTendencyValue) && (dispersion[indicatorIndex][i][j] < bestDispersionValue))) {\n secondBestIndex = bestIndex;\n secondBestCentralTendencyValue = bestCentralTendencyValue;\n secondBestDispersionValue = bestDispersionValue;\n bestCentralTendencyValue = centralTendency[indicatorIndex][i][j];\n bestDispersionValue = dispersion[indicatorIndex][i][j];\n bestIndex = j;\n } else if ((centralTendency[indicatorIndex][i][j] < secondBestCentralTendencyValue) || ((centralTendency[indicatorIndex][i][j] == secondBestCentralTendencyValue) && (dispersion[indicatorIndex][i][j] < secondBestDispersionValue))) {\n secondBestIndex = j;\n secondBestCentralTendencyValue = centralTendency[indicatorIndex][i][j];\n secondBestDispersionValue = dispersion[indicatorIndex][i][j];\n }\n }\n }\n os.write(configuration.getProblemList().get(i).getName().replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\");\n for (int j = 0; j < (configuration.getAlgorithmList().size() - 1); j++) {\n if (j == bestIndex) {\n os.write(\"String_Node_Str\");\n }\n if (j == secondBestIndex) {\n os.write(\"String_Node_Str\");\n }\n String m = String.format(Locale.ENGLISH, \"String_Node_Str\", centralTendency[indicatorIndex][i][j]);\n String s = String.format(Locale.ENGLISH, \"String_Node_Str\", dispersion[indicatorIndex][i][j]);\n os.write(\"String_Node_Str\" + m + \"String_Node_Str\" + s + \"String_Node_Str\");\n }\n if (bestIndex == (configuration.getAlgorithmList().size() - 1)) {\n os.write(\"String_Node_Str\");\n }\n String m = String.format(Locale.ENGLISH, \"String_Node_Str\", centralTendency[indicatorIndex][i][configuration.getAlgorithmList().size() - 1]);\n String s = String.format(Locale.ENGLISH, \"String_Node_Str\", dispersion[indicatorIndex][i][configuration.getAlgorithmList().size() - 1]);\n os.write(\"String_Node_Str\" + m + \"String_Node_Str\" + s + \"String_Node_Str\" + \"String_Node_Str\");\n }\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.close();\n}\n"
|
"public void aggregate() {\n final String funder1UserId = \"String_Node_Str\";\n final String funder1Address = \"String_Node_Str\";\n final String funder2UserId = \"String_Node_Str\";\n final String funder2Address = \"String_Node_Str\";\n final String funder3UserId = \"String_Node_Str\";\n final String funder3Address = \"String_Node_Str\";\n final FundsByFunderDto fundsByFunderDto1 = buildFundsByFunderDto(funder1UserId, funder1Address, \"String_Node_Str\", \"String_Node_Str\");\n final FundsByFunderDto fundsByFunderDto2 = buildFundsByFunderDto(funder2UserId, funder2Address, null, \"String_Node_Str\");\n final FundsByFunderDto fundsByFunderDto3 = buildFundsByFunderDto(funder3UserId, funder3Address, \"String_Node_Str\", null);\n final FundsByFunderDto fundsByFunderDto4 = buildFundsByFunderDto(funder1UserId, funder1Address.toUpperCase(), \"String_Node_Str\", \"String_Node_Str\");\n final FundsByFunderDto fundsByFunderDto5 = buildFundsByFunderDto(funder2UserId, funder2Address, null, \"String_Node_Str\");\n final FundsByFunderDto fundsByFunderDto6 = buildFundsByFunderDto(funder3UserId, funder3Address, \"String_Node_Str\", null);\n final List<UserFundsDto> result = fundsAndRefundsAggregator.aggregate(Arrays.asList(fundsByFunderDto1, fundsByFunderDto2, fundsByFunderDto3, fundsByFunderDto4, fundsByFunderDto5, fundsByFunderDto6));\n assertThat(result).contains(buildUserFundsDtoFrom(fundsByFunderDto1, fundsByFunderDto4), buildUserFundsDtoFrom(fundsByFunderDto5, fundsByFunderDto2), buildUserFundsDtoFrom(fundsByFunderDto3, fundsByFunderDto6));\n}\n"
|
"private static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties rootProperty, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new ArrayList<>();\n List<String> parameterNames = new ArrayList<>();\n EComponentCategory compCategory = category;\n if (compCategory == null) {\n compCategory = EComponentCategory.BASIC;\n }\n AtomicInteger lastRN = lastRowNum;\n if (lastRN == null) {\n lastRN = new AtomicInteger();\n }\n if (form == null) {\n return elementParameters;\n }\n ComponentProperties componentProperties = compProperties;\n if (componentProperties == null) {\n componentProperties = (ComponentProperties) form.getProperties();\n }\n if (element instanceof INode) {\n INode node = (INode) element;\n if (node.getComponentProperties() == null) {\n node.setComponentProperties(componentProperties);\n }\n }\n Collection<Widget> formWidgets = form.getWidgets();\n for (Widget widget : formWidgets) {\n NamedThing widgetProperty = widget.getContent();\n String propertiesPath = getPropertiesPath(parentPropertiesPath, null);\n if (widgetProperty instanceof Form) {\n Form subForm = (Form) widgetProperty;\n ComponentProperties subProperties = (ComponentProperties) subForm.getProperties();\n if (!isSameComponentProperties(componentProperties, widgetProperty)) {\n propertiesPath = getPropertiesPath(parentPropertiesPath, subProperties.getName());\n }\n elementParameters.addAll(getParametersFromForm(element, compCategory, rootProperty, subProperties, propertiesPath, subForm, widget, lastRN));\n continue;\n }\n GenericElementParameter param = new GenericElementParameter(element, rootProperty, form, widget, getComponentService());\n String parameterName = propertiesPath.concat(param.getName());\n param.setName(parameterName);\n param.setCategory(compCategory);\n param.setShow(parentWidget == null ? !widget.isHidden() : !parentWidget.isHidden() && !widget.isHidden());\n int rowNum = 0;\n if (widget.getOrder() != 1) {\n rowNum = lastRN.get();\n } else {\n rowNum = widget.getRow();\n if (parentWidget != null) {\n rowNum += parentWidget.getRow();\n }\n rowNum = rowNum + lastRN.get();\n }\n param.setNumRow(rowNum);\n lastRN.set(rowNum);\n EParameterFieldType fieldType = getFieldType(widget, widgetProperty);\n param.setFieldType(fieldType != null ? fieldType : EParameterFieldType.TEXT);\n if (widgetProperty instanceof SchemaProperty) {\n boolean found = false;\n param.setContext(EConnectionType.FLOW_MAIN.getName());\n for (Connector connector : rootProperty.getAvailableConnectors(null, true)) {\n if (!(((SchemaProperty) widgetProperty).getValue() instanceof Schema)) {\n continue;\n }\n if (connector instanceof PropertyPathConnector) {\n String linkedSchema = ((PropertyPathConnector) connector).getPropertyPath() + \"String_Node_Str\";\n if (parameterName.equals(linkedSchema)) {\n found = true;\n param.setContext(connector.getName());\n IElementParameterDefaultValue defaultValue = new ElementParameterDefaultValue();\n Schema schema = ((SchemaProperty) widgetProperty).getValue();\n defaultValue.setDefaultValue(new Schema.Parser().parse(schema.toString()));\n param.getDefaultValues().add(defaultValue);\n }\n }\n }\n if (!found) {\n for (Connector connector : rootProperty.getAvailableConnectors(null, false)) {\n if (!(((SchemaProperty) widgetProperty).getValue() instanceof Schema)) {\n continue;\n }\n if (connector instanceof PropertyPathConnector) {\n String linkedSchema = ((PropertyPathConnector) connector).getPropertyPath() + \"String_Node_Str\";\n if (parameterName.equals(linkedSchema)) {\n if (GenericNodeConnector.INPUT_CONNECTOR.equals(connector.getName())) {\n param.setContext(EConnectionType.FLOW_MAIN.getName());\n } else {\n param.setContext(connector.getName());\n }\n IElementParameterDefaultValue defaultValue = new ElementParameterDefaultValue();\n Schema schema = (Schema) ((SchemaProperty) widgetProperty).getValue();\n defaultValue.setDefaultValue(new Schema.Parser().parse(schema.toString()));\n param.getDefaultValues().add(defaultValue);\n }\n }\n }\n }\n }\n if (widgetProperty instanceof PresentationItem) {\n param.setValue(widgetProperty.getDisplayName());\n } else if (widgetProperty instanceof Property) {\n Property property = (Property) widgetProperty;\n param.setRequired(property.isRequired());\n param.setValue(getParameterValue(element, property, fieldType));\n if (EParameterFieldType.NAME_SELECTION_AREA.equals(fieldType)) {\n param.setSupportContext(false);\n } else {\n param.setSupportContext(isSupportContext(property));\n }\n property.setTaggedValue(IComponentConstants.SUPPORT_CONTEXT, param.isSupportContext());\n Object cmTV = property.getTaggedValue(IGenericConstants.IS_CONTEXT_MODE);\n param.setReadOnly(Boolean.valueOf(String.valueOf(cmTV)));\n boolean isDynamic = Boolean.valueOf(String.valueOf(property.getTaggedValue(IGenericConstants.IS_DYNAMIC)));\n param.setContextMode(isDynamic);\n List<?> values = property.getPossibleValues();\n if (values != null || EParameterFieldType.CLOSED_LIST.equals(fieldType)) {\n if (values == null) {\n values = Collections.emptyList();\n }\n param.setPossibleValues(values);\n List<String> possVals = new ArrayList<>();\n List<String> possValsDisplay = new ArrayList<>();\n for (Object obj : values) {\n if (obj instanceof NamedThing) {\n NamedThing nal = (NamedThing) obj;\n possVals.add(nal.getName());\n possValsDisplay.add(nal.getDisplayName());\n } else {\n possVals.add(String.valueOf(obj));\n possValsDisplay.add(String.valueOf(obj));\n }\n }\n param.setListItemsDisplayName(possValsDisplay.toArray(new String[0]));\n param.setListItemsDisplayCodeName(possValsDisplay.toArray(new String[0]));\n param.setListItemsValue(possVals.toArray(new String[0]));\n }\n } else if (fieldType != null && fieldType.equals(EParameterFieldType.TABLE) && widgetProperty instanceof Properties) {\n Properties table = (Properties) widgetProperty;\n Form mainForm = table.getForm(Form.MAIN);\n param.setDisplayName(mainForm.getTitle());\n List<ElementParameter> parameters = getParametersFromForm(new FakeElement(\"String_Node_Str\"), mainForm);\n param.setSupportContext(false);\n List<String> codeNames = new ArrayList<>();\n List<String> possValsDisplay = new ArrayList<>();\n for (ElementParameter curParam : parameters) {\n curParam.setFilter(null);\n curParam.setContext(null);\n curParam.setShowIf(null);\n curParam.setNotShowIf(null);\n curParam.setReadOnlyIf(null);\n curParam.setNotReadOnlyIf(null);\n curParam.setNoContextAssist(false);\n curParam.setRaw(false);\n curParam.setReadOnly(false);\n codeNames.add(curParam.getName());\n possValsDisplay.add(curParam.getDisplayName());\n }\n param.setListItemsDisplayName(possValsDisplay.toArray(new String[0]));\n param.setListItemsDisplayCodeName(codeNames.toArray(new String[0]));\n param.setListItemsValue(parameters.toArray(new ElementParameter[0]));\n String[] listItemsShowIf = new String[parameters.size()];\n String[] listItemsNotShowIf = new String[parameters.size()];\n param.setListItemsShowIf(listItemsShowIf);\n param.setListItemsNotShowIf(listItemsNotShowIf);\n param.setValue(GenericTableUtils.getTableValues(table, param));\n }\n if (!param.isReadOnly()) {\n param.setReadOnly(element.isReadOnly());\n }\n param.setSerialized(true);\n param.setDynamicSettings(true);\n if (!parameterNames.contains(parameterName)) {\n elementParameters.add(param);\n parameterNames.add(parameterName);\n }\n }\n return elementParameters;\n}\n"
|
"public boolean onPreferenceChange(Preference preference, Object newValue) {\n float min = Float.parseFloat((String) newValue);\n float max = Float.parseFloat(difficultyMaxPreference.getValue());\n if (min > max) {\n difficultyMaxPreference.setValue(difficultyMinPreference.getValue());\n }\n return true;\n}\n"
|
"public void demoConcurrencyWithSchedulers() {\n getActivity().getSupportFragmentManager().beginTransaction().addToBackStack(ConcurrencyWithSchedulersDemoFragment.class.getName()).replace(android.R.id.content, new ConcurrencyWithSchedulersDemoFragment(), ConcurrencyWithSchedulersDemoFragment.class.getName()).commit();\n}\n"
|
"public PoolUpdate updatePoolFromStackedEntitlements(Pool pool, List<Entitlement> stackedEnts, Set<Product> changedProducts) {\n PoolUpdate update = new PoolUpdate(pool);\n if (stackedEnts == null || stackedEnts.isEmpty()) {\n return update;\n }\n pool.setSourceEntitlement(null);\n pool.setSourceSubscription(null);\n StackedSubPoolValueAccumulator acc = new StackedSubPoolValueAccumulator(pool, stackedEnts);\n Entitlement eldestWithVirtLimit = acc.getEldestWithVirtLimit();\n if (eldestWithVirtLimit != null) {\n String virtLimit = eldestWithVirtLimit.getPool().getProductAttributeValue(\"String_Node_Str\");\n Long quantity = virtLimit.equalsIgnoreCase(\"String_Node_Str\") ? -1L : Long.parseLong(virtLimit);\n if (!quantity.equals(pool.getQuantity())) {\n pool.setQuantity(quantity);\n update.setQuantityChanged(true);\n }\n }\n update.setDatesChanged(checkForDateChange(acc.getStartDate(), acc.getEndDate(), pool));\n Entitlement eldest = acc.getEldest();\n Pool eldestEntPool = eldest.getPool();\n boolean useDerived = eldestEntPool.getDerivedProduct() != null;\n Product product = useDerived ? eldestEntPool.getDerivedProduct() : eldestEntPool.getProduct();\n update.setProductAttributesChanged(!pool.getProductAttributes().equals(product.getAttributes()));\n update.setProductsChanged(checkForChangedProducts(product, acc.getExpectedProvidedProds(), pool, changedProducts));\n if (!StringUtils.equals(eldestEntPool.getContractNumber(), pool.getContractNumber()) || !StringUtils.equals(eldestEntPool.getOrderNumber(), pool.getOrderNumber()) || !StringUtils.equals(eldestEntPool.getAccountNumber(), pool.getAccountNumber())) {\n pool.setContractNumber(eldestEntPool.getContractNumber());\n pool.setAccountNumber(eldestEntPool.getAccountNumber());\n pool.setOrderNumber(eldestEntPool.getOrderNumber());\n update.setOrderChanged(true);\n }\n if (update.changed()) {\n for (Entitlement ent : pool.getEntitlements()) {\n ent.setDirty(true);\n }\n }\n return update;\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n String name = button.getName();\n if (name.equals(\"String_Node_Str\")) {\n if (metaContact != null) {\n new Thread() {\n public void run() {\n clist.renameMetaContact(metaContact, renameContactPanel.getNewName());\n }\n }.start();\n }\n } else if (name.equals(\"String_Node_Str\")) {\n clist.clearUserDefinedDisplayName(metaContact);\n }\n this.dispose();\n}\n"
|
"public String addWhereToStatement(String statement, String whereClause) {\n if (!isTooComplexForZql(statement)) {\n try {\n ZQuery query = this.parseQuery(statement);\n if (whereClause != null) {\n if (StringUtils.isNotBlank(whereClause)) {\n ZqlParser filterParser = getZqlParser();\n filterParser.initParser(new ByteArrayInputStream(safeWhereClause.getBytes()));\n ZExp currentWhere = query.getWhere();\n ZExp whereExpression = filterParser.readExpression();\n if (currentWhere != null && whereExpression != null) {\n ZExpression finalWhereExpression = new ZExpression(and(), currentWhere, whereExpression);\n query.addWhere(finalWhereExpression);\n } else {\n if (whereExpression != null) {\n query.addWhere(whereExpression);\n }\n }\n }\n }\n return query.toString();\n } catch (ParseException e) {\n log.warn(\"String_Node_Str\" + statement + \"String_Node_Str\" + e, e);\n }\n }\n if (statement.contains(\"String_Node_Str\") && statement.contains(\"String_Node_Str\")) {\n int insertIdx = statement.indexOf(\"String_Node_Str\");\n StringBuilder finalQuery = new StringBuilder().append(statement.substring(0, insertIdx)).append(where()).append(surroundWithSpaces(whereClause)).append(statement.substring(insertIdx));\n return finalQuery.toString();\n }\n String op = statement.toUpperCase().contains(where()) ? and() : where();\n String finalQuery = statement + op + whereClause;\n log.warn(\"String_Node_Str\" + finalQuery);\n return finalQuery;\n}\n"
|
"public <U> SparkCollection<U> compute(String stageName, SparkCompute<T, U> compute) throws Exception {\n SparkExecutionPluginContext sparkPluginContext = new BasicSparkExecutionPluginContext(sec, jsc, datasetContext, stageName);\n compute.initialize(sparkPluginContext);\n JavaRDD<T> countedInput = rdd.map(new CountingFunction<T>(stageName, sec.getMetrics(), \"String_Node_Str\")).cache();\n return wrap(compute.transform(sparkPluginContext, countedInput).map(new CountingFunction<U>(stageName, sec.getMetrics(), \"String_Node_Str\")));\n}\n"
|
"public void run() {\n if (Hijacker.this.isFinishing() == false) {\n new ErrorDialog(\"String_Node_Str\", error, Hijacker.this).show();\n setStoppedState();\n }\n}\n"
|
"public void run() {\n if (mode != Mode.INACTIVE)\n return;\n inputMap.clear();\n actionMap.clear();\n final KeyStroke abortKey = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);\n final Action abortAction = new AbstractAction(\"String_Node_Str\") {\n public void actionPerformed(final ActionEvent e) {\n abort();\n }\n private static final long serialVersionUID = 1L;\n };\n inputMap.put(abortKey, \"String_Node_Str\");\n actionMap.put(\"String_Node_Str\", abortAction);\n int i = 1;\n for (final TagSet tagSet : tagModel.getTagSetStructure().getTagSets()) {\n final String actionName = \"String_Node_Str\" + i;\n final KeyStroke tagKeyStroke = KeyStroke.getKeyStroke((char) ('0' + i));\n final AbstractAction action = new AbstractAction(actionName) {\n public void actionPerformed(final ActionEvent e) {\n selectTagSet(tagSet);\n }\n private static final long serialVersionUID = 1L;\n };\n inputMap.put(tagKeyStroke, actionName);\n actionMap.put(actionName, action);\n i++;\n }\n bindings.addInputMap(PICK_TAGS_MAP, inputMap);\n bindings.addActionMap(PICK_TAGS_MAP, actionMap);\n mode = Mode.PICK_TAGSET;\n renderer.addOverlayRenderer(overlay);\n panel.repaint();\n}\n"
|
"public void findTemplateFile_jasperFileName() {\n String prefixSource = \"String_Node_Str\";\n String[] pages = { \"String_Node_Str\", \"String_Node_Str\" };\n for (String jspPage : pages) {\n String name = \"String_Node_Str\" + JspUtils.makeJavaPackage(jspPage);\n System.out.println(\"String_Node_Str\" + name);\n ByteCodeResourceLocator locator = new ByteCodeResourceLocator();\n when(fs.inputFiles(Matchers.<FilePredicate>any())).thenReturn(new ArrayList<InputFile>());\n locator.findTemplateFile(name, fs);\n System.out.println(\"String_Node_Str\" + prefixSource + jspPage);\n verify(predicates, times(1)).hasRelativePath(prefixSource + jspPage);\n }\n}\n"
|
"public void onLoadCanceled(ParsingLoadable<SsManifest> loadable, long elapsedRealtimeMs, long loadDurationMs, boolean released) {\n eventDispatcher.loadCanceled(loadable.dataSpec, loadable.type, elapsedRealtimeMs, loadDurationMs, loadable.bytesLoaded());\n}\n"
|
"public void run() {\n Iterator<Contact> i = contactItem.getContacts();\n while (i.hasNext()) {\n Contact contact = (Contact) i.next();\n mainFrame.getContactList().moveContact(contact, metaContact);\n }\n}\n"
|
"private void renderEvent(StringBuilder sb, KalendarEventRenderWrapper eventWrapper, Date dayStart, Date dayEnd) {\n KalendarEvent event = eventWrapper.getEvent();\n if (event.getClassification() == KalendarEvent.CLASS_PRIVATE && !eventWrapper.getKalendarRenderWrapper().isPrivateEventsVisible()) {\n return;\n }\n String escapedSubject = Formatter.escWithBR(event.getSubject()).toString();\n escapedSubject = escapedSubject.replace('\\r', ' ');\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\" + eventWrapper.getCssClass() + \"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n if (event.isAllDayEvent()) {\n sb.append(translator.translate(\"String_Node_Str\"));\n } else {\n Date begin = event.getBegin();\n Date end = event.getEnd();\n if (begin.before(dayStart)) {\n begin = dayStart;\n }\n if (end == null || end.after(dayEnd)) {\n end = dayEnd;\n }\n sb.append(StringHelper.formatLocaleTime(begin, translator.getLocale()));\n sb.append(\"String_Node_Str\");\n sb.append(StringHelper.formatLocaleTime(end, translator.getLocale()));\n }\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n if (hidden) {\n sb.append(\"String_Node_Str\");\n } else {\n sb.append(escapedSubject.replace(\"String_Node_Str\", \"String_Node_Str\"));\n }\n sb.append(\"String_Node_Str\");\n if (StringHelper.containsNonWhitespace(event.getLocation())) {\n sb.append(\"String_Node_Str\");\n sb.append(translator.translate(\"String_Node_Str\") + \"String_Node_Str\");\n if (!hidden) {\n sb.append(StringHelper.escapeHtml(event.getLocation()));\n }\n sb.append(\"String_Node_Str\");\n }\n if (StringHelper.containsNonWhitespace(event.getDescription())) {\n sb.append(\"String_Node_Str\");\n sb.append(translator.translate(\"String_Node_Str\") + \"String_Node_Str\");\n if (!hidden) {\n sb.append(StringHelper.escapeHtml(event.getDescription()));\n }\n sb.append(\"String_Node_Str\");\n }\n sb.append(\"String_Node_Str\");\n}\n"
|
"public TmfLongLocation clone() {\n return (TmfLongLocation) super.clone();\n}\n"
|
"protected void formOK(UserRequest ureq) {\n CourseCatalog courseCatalog = new CourseCatalog();\n courseCatalog.setChoiceValue(catalogBox.getSelectedKey());\n boolean removeAll = \"String_Node_Str\".equals(catalogBox.getSelectedKey());\n for (FormLink deletedLink : deleteLinks) {\n CategoryLabel cat = (CategoryLabel) deletedLink.getUserObject();\n if (removeAll) {\n cat.setDeleted(true);\n }\n addToRunContext(\"String_Node_Str\", categories);\n }\n fireEvent(ureq, StepsEvent.ACTIVATE_NEXT);\n}\n"
|
"protected boolean restoreRequest(HttpRequest request, Session session) {\n SavedRequest saved = (SavedRequest) session.getNote(Constants.FORM_REQUEST_NOTE);\n session.removeNote(Constants.FORM_PRINCIPAL_NOTE);\n if (saved == null)\n return (false);\n request.clearCookies();\n Iterator<Cookie> cookies = saved.getCookies();\n while (cookies.hasNext()) {\n request.addCookie(cookies.next());\n }\n request.clearHeaders();\n Iterator<String> names = saved.getHeaderNames();\n while (names.hasNext()) {\n String name = names.next();\n if (!(\"String_Node_Str\".equalsIgnoreCase(name) || (cachable && \"String_Node_Str\".equalsIgnoreCase(name)))) {\n Iterator<String> values = saved.getHeaderValues(name);\n while (values.hasNext()) {\n request.addHeader(name, values.next());\n }\n }\n }\n request.clearLocales();\n Iterator<Locale> locales = saved.getLocales();\n while (locales.hasNext()) {\n request.addLocale(locales.next());\n }\n request.clearParameters();\n if (\"String_Node_Str\".equalsIgnoreCase(saved.getMethod())) {\n Iterator<String> paramNames = saved.getParameterNames();\n while (paramNames.hasNext()) {\n String paramName = paramNames.next();\n String[] paramValues = saved.getParameterValues(paramName);\n request.addParameter(paramName, paramValues);\n }\n }\n request.setMethod(saved.getMethod());\n request.setQueryString(saved.getQueryString());\n request.setRequestURI(saved.getRequestURI());\n return (true);\n}\n"
|
"public int read(final MessageHandler handler, final int messageCountLimit) {\n final AtomicBuffer buffer = this.buffer;\n final long tail = buffer.getLongVolatile(tailCounterIndex);\n final long head = buffer.getLongVolatile(headCounterIndex);\n final int available = (int) (tail - head);\n int messagesRead = 0;\n if (available > 0) {\n final int headIndex = (int) head & mask;\n final int contiguousBlockSize = Math.min(available, capacity - headIndex);\n int bytesRead = 0;\n try {\n while ((bytesRead < contiguousBlockSize) && (messagesRead < messageCountLimit)) {\n final int recordIndex = headIndex + bytesRead;\n final int msgLength = waitForMsgLengthVolatile(buffer, recordIndex);\n final int msgTypeId = msgType(buffer, recordIndex);\n bytesRead += align(msgLength + HEADER_LENGTH, ALIGNMENT);\n if (msgTypeId != PADDING_MSG_TYPE_ID) {\n ++messagesRead;\n handler.onMessage(msgTypeId, buffer, encodedMsgOffset(recordIndex), msgLength);\n }\n }\n } finally {\n zeroBuffer(buffer, headIndex, bytesRead);\n headOrdered(buffer, head + bytesRead);\n }\n }\n return messagesRead;\n}\n"
|
"private boolean canSpan(SheetData data, XlsContainer rowContainer, int currentColumn, int lastColumn) {\n SheetData realData = ExcelUtil.getRealData(data);\n if (realData == null)\n return false;\n if (!isInContainer(realData, rowContainer) && realData.getRowSpanInDesign() <= 0) {\n return false;\n }\n for (int i = currentColumn + 1; i < lastColumn; i++) {\n SheetData lastData = getColumnLastData(i);\n SheetData lastRealData = ExcelUtil.getRealData(lastData);\n if (lastRealData == null || lastRealData.getRowIndex() <= realData.getRowIndex()) {\n continue;\n }\n if (realData.getEndX() > lastRealData.getStartX()) {\n return false;\n }\n }\n return true;\n}\n"
|
"private void fireAccount() {\n if (accountNum == 0) {\n for (int i = 0; i < playerNum; i++) {\n if (allPlayers[i].stratDecision == GambleChecker.FIRE) {\n if (allPlayers[i].fireTarget == -1)\n break;\n PlayerChecker.fire(map, allPlayers[i], allPlayers[allPlayers[i].fireTarget]);\n }\n healthPointList[i] = allPlayers[i].healthPoint;\n }\n healthPointList[i] = allPlayers[i].healthPoint;\n }\n}\n"
|
"public final void addInto(ReadWritableInstant instant, int scalar) {\n if (instant == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n instant.setMillis(addTo(instant.getMillis(), scalar, instant.getChronology()));\n}\n"
|
"public static void adduser(int checkid, String player, String email, String password, String ipAddress) throws SQLException {\n if (checkid == 1) {\n String hash = phpbb_hash(password);\n long timestamp = System.currentTimeMillis() / 1000;\n int userid;\n PreparedStatement ps;\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\", 1);\n ps.setString(1, player);\n ps.setString(2, player.toLowerCase());\n ps.setString(3, hash);\n ps.setString(4, email);\n ps.setString(5, \"String_Node_Str\");\n ps.setString(6, \"String_Node_Str\");\n ps.setString(7, \"String_Node_Str\");\n ps.setString(8, \"String_Node_Str\");\n ps.setString(9, \"String_Node_Str\");\n ps.setLong(10, timestamp);\n ps.setString(11, \"String_Node_Str\");\n ps.setLong(12, timestamp);\n ps.setString(13, \"String_Node_Str\");\n ps.setString(14, \"String_Node_Str\");\n ps.setString(15, \"String_Node_Str\");\n ps.setString(16, \"String_Node_Str\");\n ps.setString(17, ipAddress);\n ps.executeUpdate();\n ps.close();\n userid = MySQL.countitall(Config.script_tableprefix + \"String_Node_Str\");\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\", 1);\n ps.setInt(1, 2);\n ps.setInt(2, userid);\n ps.setInt(3, 0);\n ps.setInt(4, 0);\n ps.executeUpdate();\n ps.close();\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\", 1);\n ps.setInt(1, 7);\n ps.setInt(2, userid);\n ps.setInt(3, 0);\n ps.setInt(4, 0);\n ps.executeUpdate();\n ps.close();\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\" + userid + \"String_Node_Str\");\n ps.executeUpdate();\n ps.close();\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\" + player + \"String_Node_Str\");\n ps.executeUpdate();\n ps.close();\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\");\n ps.executeUpdate();\n ps.close();\n } else if (checkid == 2) {\n String hash = Encryption.md5(password);\n long timestamp = System.currentTimeMillis() / 1000;\n PreparedStatement ps;\n int userid = 0;\n String query = \"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\";\n Statement stmt = MySQL.mysql.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n if (rs.next()) {\n userid = rs.getInt(1);\n } else {\n Util.logging.error(\"String_Node_Str\");\n }\n rs.close();\n stmt.close();\n userid += 1;\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\", 1);\n ps.setInt(1, 1);\n ps.setString(2, player.toLowerCase());\n ps.setString(3, hash);\n ps.setLong(4, timestamp);\n ps.setLong(5, timestamp);\n ps.setString(6, email);\n ps.setInt(7, userid);\n ps.executeUpdate();\n ps.close();\n userid = MySQL.countitall(Config.script_tableprefix + \"String_Node_Str\");\n ps = MySQL.mysql.prepareStatement(\"String_Node_Str\" + Config.script_tableprefix + \"String_Node_Str\" + \"String_Node_Str\", 1);\n ps.setInt(1, 3);\n ps.setInt(2, userid);\n ps.setInt(3, 0);\n ps.executeUpdate();\n ps.close();\n stmt.close();\n }\n}\n"
|
"public boolean handle(Object value) {\n Object indValue = value;\n if (value == null) {\n indValue = 0;\n }\n if (dataset != null) {\n settingDatasetValue(indValue);\n }\n if (tableViewer != null) {\n refreshTable(value == null ? NAN_STRING : String.valueOf(indValue));\n }\n EventManager.getInstance().publish(chartComposite, EventEnum.DQ_DYNAMIC_REFRESH_DYNAMIC_CHART, null);\n return true;\n}\n"
|
"public AbstractFile[] ls(FilenameFilter filenameFilter) throws IOException {\n String[] names = file.list();\n if (names == null)\n throw new IOException();\n if (filenameFilter != null)\n names = filenameFilter.filter(names);\n AbstractFile[] children = new AbstractFile[names.length];\n FileURL childURL;\n for (int i = 0; i < names.length; i++) {\n childURL = (FileURL) fileURL.clone();\n if (isUNC)\n childURL.setPath(addTrailingSeparator(fileURL.getPath()) + names[i]);\n else\n childURL.setPath(absPath + SEPARATOR + names[i]);\n children[i] = FileFactory.getFile(childURL, this);\n }\n return children;\n}\n"
|
"public void visitNewArray(JCNewArray tree) {\n tree.elemtype = translate(tree.elemtype, null);\n translate(tree.dims, syms.intType);\n if (tree.type != null) {\n tree.elems = translate(tree.elems, erasure(types.elemtype(tree.type)));\n tree.type = erasure(tree.type);\n } else {\n tree.elems = translate(tree.elems, null);\n }\n result = tree;\n}\n"
|
"public SpringVertx vertx(ObjectProvider<VertxOptions> optionsProvider, ObjectProvider<ClusterManager> clusterManagerProvider, ObjectProvider<List<VertxListener>> listenersProvider, ObjectProvider<List<VertxConfigurer>> configurersProvider) {\n SpringVertx.Builder builder = SpringVertx.builder();\n List<VertxConfigurer> configurers = new ArrayList<>();\n ClusterManager clusterManager = clusterManagerProvider.getIfAvailable();\n if (clusterManager != null) {\n builder.clusterManager(clusterManager);\n }\n List<VertxListener> listeners = listenersProvider.getIfAvailable();\n if (listeners != null) {\n for (VertxListener listener : listeners) {\n builder.listener(listener);\n }\n }\n List<VertxConfigurer> configurers = configurersProvider.getIfAvailable();\n if (configurers != null) {\n List<VertxConfigurer> sortedConfigurers = new ArrayList<>(configurers);\n AnnotationAwareOrderComparator.sort(sortedConfigurers);\n for (VertxConfigurer configurer : sortedConfigurers) {\n logger.debug(\"String_Node_Str\", configurer);\n configurer.configure(builder);\n }\n }\n return builder.build();\n}\n"
|
"private void firebaseAuthWithFacebook(final AccessToken accessToken) {\n Log.d(TAG, \"String_Node_Str\");\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Task<AuthResult> authResultTask;\n if (firebaseUser != null) {\n authResultTask = firebaseUser.linkWithCredential(credential);\n } else {\n authResultTask = mAuth.signInWithCredential(credential);\n }\n authResultTask.addOnCompleteListener(activity, new OnCompleteListener<AuthResult>() {\n public void onComplete(Task<AuthResult> task) {\n if (task.isSuccessful()) {\n if (updateConnectionStatus(GodotConnectStatus.CONNECTED)) {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Log.d(TAG, \"String_Node_Str\");\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] { firebaseUser.getDisplayName() });\n }\n } else {\n if (updateConnectionStatus(GodotConnectStatus.DISCONNECTED)) {\n Log.w(TAG, task.getException());\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] { task.getException().toString() });\n }\n }\n });\n } else {\n onConnected();\n }\n}\n"
|
"private void generateActionAndSuccessorInterfacesAndCollectPreActions(Set<EndpointState> visited, EndpointState s) {\n if (visited.contains(s) || s.isTerminal()) {\n return;\n }\n visited.add(s);\n Set<IOAction> as = s.getTakeable();\n for (IOAction a : as.stream().sorted(IOStateInterfaceGenerator.IOACTION_COMPARATOR).collect(Collectors.toList())) {\n if (!this.actions.containsKey(a)) {\n this.actions.put(a, new ActionInterfaceGenerator(this.apigen, s, a).generateType());\n this.succs.put(a, new SuccessorInterfaceGenerator(this.apigen, s, a).generateType());\n if (s.getStateKind() == Kind.POLY_INPUT) {\n InterfaceBuilder ib = new InterfaceBuilder();\n ib.setName(\"String_Node_Str\" + ActionInterfaceGenerator.getActionString(a));\n ib.setPackage(IOInterfacesGenerator.getIOInterfacePackageName(this.apigen.getGProtocolName(), this.apigen.getSelf()));\n ib.addImports(\"String_Node_Str\");\n ib.addImports(SessionApiGenerator.getEndpointApiRootPackageName(this.gpn) + \"String_Node_Str\");\n ib.addImports(SessionApiGenerator.getRolesPackageName(this.gpn) + \"String_Node_Str\");\n ib.addImports(SessionApiGenerator.getOpsPackageName(this.gpn) + \"String_Node_Str\");\n ib.addModifiers(JavaBuilder.PUBLIC);\n ib.addParameters(\"String_Node_Str\" + SuccessorInterfaceGenerator.getSuccessorInterfaceName(a));\n AbstractMethodBuilder mb = ib.newAbstractMethod();\n HandlerInterfaceGenerator.setHandleMethodHeaderWithoutParamTypes(this.apigen, mb);\n mb.addParameters(\"String_Node_Str\");\n HandlerInterfaceGenerator.addHandleMethodOpAndPayloadParams(this.apigen, a, mb);\n this.caseActions.put(a, ib);\n }\n }\n EndpointState succ = s.accept(a);\n putPreAction(succ, a);\n if (s.getStateKind() == Kind.POLY_INPUT) {\n putBranchPostAction(s, a);\n }\n generateActionAndSuccessorInterfacesAndCollectPreActions(visited, succ);\n }\n}\n"
|
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n repositoryNode = getRepositoryNode(selection);\n boolean enabled = false;\n if (repositoryNode != null) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) repositoryNode.getProperties(EProperties.CONTENT_TYPE);\n if (repositoryNode.getType() == RepositoryNode.ENodeType.SYSTEM_FOLDER || repositoryNode.getType() == RepositoryNode.ENodeType.SIMPLE_FOLDER) {\n if (nodeType == ERepositoryObjectType.BUSINESS_PROCESS) {\n enabled = true;\n }\n if (repositoryNode.getObject() != null && repositoryNode.getObject().isDeleted()) {\n enabled = false;\n }\n }\n }\n if (ProxyRepositoryFactory.getInstance().isUserReadOnlyOnCurrentProject()) {\n enabled = false;\n }\n if (enabled) {\n enabled = ProjectManager.getInstance().isInCurrentMainProject(repositoryNode);\n }\n setEnabled(enabled);\n}\n"
|
"public void handle(MouseEvent event) {\n Profile currentProfile = (Profile) ProfileCheckboxCell.this.getTableView().getItems().get(ProfileCheckboxCell.this.getIndex());\n if (checkboxTyp.equals(\"String_Node_Str\"))\n currentProfile.setMobilEnabled(cellCheckbox.isSelected());\n else if (checkboxTyp.equals(\"String_Node_Str\"))\n currentProfile.setMobilEnabled(cellCheckbox.isSelected());\n else if (checkboxTyp.equals(\"String_Node_Str\"))\n currentProfile.setMobilEnabled(cellCheckbox.isSelected());\n else if (checkboxTyp.equals(\"String_Node_Str\"))\n currentProfile.setMobilEnabled(cellCheckbox.isSelected());\n try {\n pservice.edit(currentProfile);\n } catch (ServiceException e) {\n LOGGER.debug(\"String_Node_Str\" + e.getMessage());\n }\n}\n"
|
"public PagedList<Album> getAlbums(String userId, PagingParameters pagedListParameters) {\n return graphApi.fetchConnections(userId, \"String_Node_Str\", Album.class, getPagingParameters(pagedListParameters), ALL_ALBUM_FIELDS);\n}\n"
|
"private void addDatas() {\n int j = i + 15;\n for (; i < j; ++i) {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n builder.append(i);\n builder.append(\"String_Node_Str\");\n char[] chars = new char[mRand.nextInt(500)];\n Arrays.fill(chars, '1');\n builder.append(chars);\n mAdapter.add(builder.toString());\n }\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Card card = game.getCard(((FixedTarget) getTargetPointer()).getTarget());\n Permanent permanent = game.getPermanent(source.getSourceId());\n if (permanent == null) {\n discard();\n return false;\n }\n if (IdOfCopiedCard == null || !IdOfCopiedCard.equals(card.getId())) {\n IdOfCopiedCard = card.getId();\n cardToCopy = card.copy();\n cardToCopy.assignNewId();\n }\n permanent.getPower().setValue(cardToCopy.getPower().getValue());\n permanent.getToughness().setValue(cardToCopy.getToughness().getValue());\n permanent.getColor(game).setColor(cardToCopy.getColor(game));\n permanent.getManaCost().clear();\n permanent.getManaCost().add(cardToCopy.getManaCost());\n permanent.getCardType().clear();\n for (CardType type : cardToCopy.getCardType()) {\n if (!permanent.getCardType().contains(type)) {\n permanent.getCardType().add(type);\n }\n }\n permanent.getSubtype(game).clear();\n for (String type : cardToCopy.getSubtype(game)) {\n if (!permanent.getSubtype(game).contains(type)) {\n permanent.getSubtype(game).add(type);\n }\n }\n permanent.getSupertype().clear();\n permanent.getSupertype().add(\"String_Node_Str\");\n for (String type : cardToCopy.getSupertype()) {\n if (!permanent.getSupertype().contains(type)) {\n permanent.getSupertype().add(type);\n }\n }\n permanent.removeAllAbilities(source.getSourceId(), game);\n permanent.addAbility(HexproofAbility.getInstance(), source.getSourceId(), game);\n permanent.addAbility(new PutCardIntoGraveFromAnywhereAllTriggeredAbility(new LazavDimirEffect(), true, new FilterCreatureCard(\"String_Node_Str\"), TargetController.OPPONENT, SetTargetPointer.CARD), source.getSourceId(), game);\n for (Ability ability : cardToCopy.getAbilities()) {\n if (!permanent.getAbilities().contains(ability)) {\n permanent.addAbility(ability, source.getSourceId(), game);\n }\n }\n return true;\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(layoutId, container, false);\n ListView listHistory = (ListView) view.findViewById(R.id.list_view_history);\n listHistory.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Intent intent = new Intent(getActivity(), AppDetail.class);\n NotificationAppView clickedApp = (NotificationAppView) adapterView.getAdapter().getItem(i);\n intent.putExtra(Intent.EXTRA_SUBJECT, clickedApp.AppName);\n startActivity(intent);\n }\n });\n View header = inflater.inflate(R.layout.list_header_barchart, listHistory, false);\n BarChart chart = (BarChart) header.findViewById(R.id.chart);\n chart.setDrawBarShadow(false);\n chart.setDrawLegend(false);\n chart.setDescription(\"String_Node_Str\");\n chart.setDrawGridBackground(false);\n chart.setDrawHorizontalGrid(false);\n chart.setDrawVerticalGrid(false);\n chart.setDrawXLabels(true);\n chart.setValueFormatter(new ValueFormatter() {\n public String getFormattedValue(float value) {\n return Integer.toString((int) value);\n }\n });\n chart.setValueTextColor(Color.WHITE);\n try {\n List<NotificationDayView> rawData = getDatabaseHelper().getNotificationDao().getSummaryLastDays(14);\n ArrayList<String> xVals = new ArrayList<String>(rawData.size());\n ArrayList<BarEntry> yVals = new ArrayList<BarEntry>(rawData.size());\n for (int i = 0; i < rawData.size(); i++) {\n xVals.add(i, dateFormat.format(rawData.get(i).Date));\n yVals.add(i, new BarEntry(rawData.get(i).Notifications.floatValue(), i));\n }\n BarDataSet dataSet = new BarDataSet(yVals, \"String_Node_Str\");\n BarData data = new BarData(xVals, dataSet);\n chart.setData(data);\n listHistory.addHeaderView(chart, null, false);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return view;\n}\n"
|
"private int addShapeRoiInstances(final Instances trainingData, int classIndex, int sliceNum, Roi r) {\n int numInstances = 0;\n final ShapeRoi shapeRoi = new ShapeRoi(r);\n final Rectangle rect = shapeRoi.getBounds();\n int lastX = rect.x + rect.width;\n if (lastX >= trainingImage.getWidth())\n lastX = trainingImage.getWidth() - 1;\n int lastY = rect.y + rect.height;\n if (lastY >= trainingImage.getHeight())\n lastY = trainingImage.getHeight() - 1;\n int firstX = Math.max(rect.x, 0);\n int firstY = Math.max(rect.y, 0);\n final FeatureStack fs = featureStackArray.get(sliceNum - 1);\n for (int x = rect.x; x < lastX; x++) for (int y = rect.y; y < lastY; y++) if (shapeRoi.contains(x, y)) {\n trainingData.add(fs.createInstance(x, y, classIndex));\n numInstances++;\n }\n return numInstances;\n}\n"
|
"public void openPolygonGenerateDialog() {\n double defaultHatchAngle = (planningMapFragment.getMapRotation() + 90) % 180;\n GridDialog polygonDialog = new GridDialog() {\n\n public void onPolygonGenerated(List<waypoint> list) {\n drone.mission.addWaypoints(list);\n update();\n }\n };\n polygonDialog.generatePolygon(defaultHatchAngle, 50.0, polygon, drone.mission.getLastWaypoint().getCoord(), drone.mission.getDefaultAlt(), this);\n}\n"
|
"protected ParamInjector evalInjector(Type type, Param param) {\n if (param == null || \"String_Node_Str\".equals(param.value())) {\n Class<?> clazz = Lang.getTypeClass(type);\n if (clazz != null && AdaptorErrorContext.class.isAssignableFrom(clazz))\n return new VoidInjector();\n return new JsonInjector(type, null);\n return super.evalInjector(type, param);\n}\n"
|
"public String getPrefix(String uri) {\n return getTypeHelperDelegate().getPrefix(uri);\n}\n"
|
"private Synchronization synchronizeEntry() throws Exception {\n final IFile workspaceFile = findFileInWorkspace();\n if (workspaceFile == null)\n return Synchronization.NotApplicable;\n long oldChecksum = 0L;\n checksumLock.writeLock().lock();\n try {\n oldChecksum = checksum;\n checksum = computeChecksum(workspaceFile);\n FileUtils.copy(workspaceFile.getLocation().toFile(), new File(getVdb().getStagingFolder(), getPath().toOSString()).getParentFile(), true);\n } finally {\n checksumLock.writeLock().unlock();\n }\n setModified(this, ENTRY_CHECKSUM, oldChecksum, checksum);\n return Synchronization.Synchronized;\n}\n"
|
"public static boolean isPowerpoint(String url) {\n if (url == null) {\n return false;\n }\n url = url.toLowerCase(Locale.ROOT);\n return url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\");\n}\n"
|
"public boolean handleRequest(ZWaveController zController, SerialMessage lastSentMessage, SerialMessage incomingMessage) throws ZWaveSerialMessageException {\n int nodeId;\n boolean result = true;\n UpdateState updateState = UpdateState.getUpdateState(incomingMessage.getMessagePayloadByte(0));\n switch(updateState) {\n case NODE_INFO_RECEIVED:\n nodeId = incomingMessage.getMessagePayloadByte(1);\n logger.debug(\"String_Node_Str\", nodeId);\n int length = incomingMessage.getMessagePayloadByte(2);\n ZWaveNode node = zController.getNode(nodeId);\n if (node == null) {\n logger.debug(\"String_Node_Str\", nodeId);\n if (nodeId > 0 && nodeId <= 232) {\n zController.notifyEventListeners(new ZWaveInclusionEvent(ZWaveInclusionEvent.Type.IncludeDone, nodeId));\n }\n break;\n }\n node.setNodeState(ZWaveNodeState.ALIVE);\n node.resetResendCount();\n node.setApplicationUpdateReceived(true);\n if (node.getNodeInitStage() == ZWaveNodeInitStage.DONE) {\n if (node.getCommandClass(CommandClass.ASSOCIATION) == null) {\n logger.debug(\"String_Node_Str\", nodeId);\n zController.notifyEventListeners(new ZWaveDelayedPollEvent(nodeId, 0, 75, TimeUnit.MILLISECONDS));\n }\n } else {\n List<CommandClass> nifClasses = new ArrayList<CommandClass>();\n for (int i = 6; i < length + 3; i++) {\n int data = incomingMessage.getMessagePayloadByte(i);\n CommandClass commandClass = CommandClass.getCommandClass(data);\n if (commandClass == null) {\n logger.trace(String.format(\"String_Node_Str\", nodeId, data));\n continue;\n }\n if (commandClass == CommandClass.MARK) {\n break;\n }\n if (node.getCommandClass(commandClass) == null) {\n ZWaveCommandClass zwaveCommandClass = ZWaveCommandClass.getInstance(data, node, zController);\n if (zwaveCommandClass != null) {\n logger.debug(\"String_Node_Str\", nodeId, commandClass);\n node.addCommandClass(zwaveCommandClass);\n }\n }\n nifClasses.add(commandClass);\n }\n node.updateNifClasses(nifClasses);\n }\n ZWaveWakeUpCommandClass wakeUp = (ZWaveWakeUpCommandClass) node.getCommandClass(ZWaveCommandClass.CommandClass.WAKE_UP);\n if (wakeUp != null) {\n wakeUp.setAwake(true);\n }\n break;\n case NODE_INFO_REQ_FAILED:\n if (lastSentMessage.getMessageClass() != SerialMessageClass.RequestNodeInfo) {\n logger.warn(\"String_Node_Str\", lastSentMessage.getMessageClass());\n return false;\n }\n nodeId = lastSentMessage.getMessageNode();\n logger.debug(\"String_Node_Str\", nodeId);\n if (--lastSentMessage.attempts >= 0) {\n logger.error(\"String_Node_Str\", nodeId);\n zController.enqueue(lastSentMessage);\n } else {\n logger.warn(\"String_Node_Str\", nodeId, lastSentMessage.toString());\n }\n incomingMessage.setTransactionCanceled();\n result = false;\n break;\n default:\n logger.warn(\"String_Node_Str\", updateState.getLabel(), updateState.getKey());\n }\n checkTransactionComplete(lastSentMessage, incomingMessage);\n return result;\n}\n"
|
"public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent();\n copyElement(src, tgt);\n tgt.setType(convertGuideDependencyType(src.getType()));\n tgt.setUri(src.getUri());\n return tgt;\n}\n"
|
"public File getFile(String arcFileID) throws ArgumentNotValid {\n log.info(\"String_Node_Str\" + arcFileID + \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(arcFileID, \"String_Node_Str\");\n BitarchiveARCFile barc = admin.lookup(arcFileID);\n if (barc == null) {\n return null;\n }\n return barc.getFilePath();\n}\n"
|
"private EngineeringCRS parseLocalCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.Local_CS);\n final String name = element.pullString(\"String_Node_Str\");\n final EngineeringDatum datum = parseLocalDatum(element);\n final Unit<Length> linearUnit = parseUnit(element, SI.METRE);\n CoordinateSystemAxis axis = parseAxis(element, false, linearUnit, true);\n final List<CoordinateSystemAxis> list = new ArrayList<>();\n do {\n list.add(axis);\n axis = parseAxis(element, linearUnit, false);\n } while (axis != null);\n final CoordinateSystem cs = referencing.createAbstractCS(list.toArray(new CoordinateSystemAxis[list.size()]));\n try {\n return crsFactory.createEngineeringCRS(parseAuthorityAndClose(element, name), datum, cs);\n } catch (FactoryException exception) {\n throw element.parseFailed(exception);\n }\n}\n"
|
"SequenceFile.Reader openExtentsFile(FileSystem hdpFs, Configuration conf) throws IOException {\n SequenceFile.Reader extents = null;\n final Path[] files = DistributedCache.getLocalCacheFiles(conf);\n if (files != null && files.length > 0) {\n final LocalFileSystem localfs = FileSystem.getLocal(conf);\n LOG.info(\"String_Node_Str\" + files[0]);\n extents = new SequenceFile.Reader(localfs, files[0], conf);\n } else if (files == null) {\n extents = new SequenceFile.Reader(hdpFs, new Path(\"String_Node_Str\"), conf);\n }\n if (extents == null) {\n throw new RuntimeException(\"String_Node_Str\" + files.length);\n }\n return extents;\n}\n"
|
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n pw.println(\"String_Node_Str\");\n pw.print(\"String_Node_Str\");\n pw.println(mTouchAcceptanceDelay);\n pw.print(\"String_Node_Str\");\n pw.println(mSnoozeLengthMs);\n pw.print(\"String_Node_Str\");\n pw.println(SystemClock.elapsedRealtime());\n pw.print(\"String_Node_Str\");\n pw.println(mUser);\n for (HeadsUpEntry entry : mHeadsUpEntries.values()) {\n pw.print(\"String_Node_Str\");\n pw.println(entry.entry);\n }\n int N = mSnoozedPackages.size();\n pw.println(\"String_Node_Str\" + N);\n for (int i = 0; i < N; i++) {\n pw.print(\"String_Node_Str\");\n pw.print(mSnoozedPackages.valueAt(i));\n pw.print(\"String_Node_Str\");\n pw.println(mSnoozedPackages.keyAt(i));\n }\n}\n"
|
"private void handleAddedEvent(final ListenableListEvent event) {\n int indexStart = event.index;\n if (tableViewerCreator.getTable().isDisposed()) {\n return;\n }\n if (!(tableViewerCreator.getContentProvider() instanceof ILazyContentProvider)) {\n TableItem[] items = tableViewerCreator.getTable().getItems();\n List<TableEditor> addedTableEditor = new ArrayList<TableEditor>();\n for (TableItem item : items) {\n TableItem tableItem = item;\n if (previousItemsHash == null || !previousItemsHash.contains(tableItem)) {\n for (int iEditorCol = 0; iEditorCol < columnsWithEditorContent.size(); iEditorCol++) {\n TableViewerCreatorColumnNotModifiable column = columnsWithEditorContent.get(iEditorCol);\n TableEditorContentNotModifiable tableEditorContent = column.getTableEditorContent();\n String idProperty = column.getId();\n TableEditor tableEditor = addTableEditor(column, tableEditorContent, idProperty, tableItem);\n if (tableEditor != null) {\n addedTableEditor.add(tableEditor);\n }\n }\n }\n }\n }\n for (int i = indexStart; i < items.length; i++) {\n TableItem tableItem = items[i];\n Object data = tableItem.getData();\n Collection<TableEditor> tableEditorCollection = dataToMultipleDataEditor.getCollection(data);\n for (TableEditor tableEditor : tableEditorCollection) {\n tableEditor.setItem(tableItem);\n }\n }\n previousItemsHash = new HashSet<TableItem>(Arrays.asList(items));\n}\n"
|
"public ReportSettings addFormat(String format) {\n if (format != null) {\n this.format = format;\n }\n return this;\n}\n"
|
"private void calculateMaxMinTresh() {\n minThresh = Double.MAX_VALUE;\n maxThresh = Double.MIN_VALUE;\n for (Geometry geoms : glayer.getGeometries()) {\n AttributesGeometry att = (AttributesGeometry) geoms.getUserData();\n double temp = new Double(\"String_Node_Str\" + att.get(VDSSchema.SIGNIFICANCE));\n if (temp < minThresh) {\n minThresh = temp;\n }\n if (temp > maxThresh) {\n maxThresh = temp;\n }\n }\n currentThresh = minThresh - 0.01;\n}\n"
|
"private void doUpdateSettingsPanelInEventDispatchThread(boolean callConferenceIsEnded) {\n settingsPanel.setFullScreen(isFullScreen());\n boolean isConference = (callPanel instanceof BasicConferenceCallPanel);\n if (isConference) {\n settingsPanel.add(localLevel);\n settingsPanel.add(remoteLevel);\n } else {\n settingsPanel.remove(localLevel);\n settingsPanel.remove(remoteLevel);\n }\n chatButton.setVisible(!isConference && (getIMCapableCallPeers(1).size() == 1));\n updateHoldButtonState();\n updateMergeButtonState();\n List<Call> calls = callConference.getCalls();\n boolean advancedTelephony = !calls.isEmpty();\n boolean telephonyConferencing = false;\n boolean videoTelephony = false;\n boolean videoTelephonyIsLocalVideoAllowed = false;\n boolean videoTelephonyIsLocalVideoStreaming = false;\n boolean desktopSharing = false;\n boolean desktopSharingIsStreamed = false;\n for (Call call : calls) {\n ProtocolProviderService pps = call.getProtocolProvider();\n if (advancedTelephony) {\n OperationSetAdvancedTelephony<?> osat = pps.getOperationSet(OperationSetAdvancedTelephony.class);\n if (osat == null)\n advancedTelephony = false;\n }\n if (!telephonyConferencing) {\n OperationSetTelephonyConferencing ostc = pps.getOperationSet(OperationSetTelephonyConferencing.class);\n if (ostc != null)\n telephonyConferencing = true;\n }\n if (!videoTelephony || !videoTelephonyIsLocalVideoAllowed || !videoTelephonyIsLocalVideoStreaming) {\n OperationSetVideoTelephony osvt = pps.getOperationSet(OperationSetVideoTelephony.class);\n if (osvt != null) {\n if (!videoTelephony)\n videoTelephony = true;\n if (!videoTelephonyIsLocalVideoAllowed && osvt.isLocalVideoAllowed(call))\n videoTelephonyIsLocalVideoAllowed = true;\n if (!videoTelephonyIsLocalVideoStreaming && osvt.isLocalVideoStreaming(call))\n videoTelephonyIsLocalVideoStreaming = true;\n }\n }\n if (!desktopSharing) {\n OperationSetDesktopStreaming osds = pps.getOperationSet(OperationSetDesktopStreaming.class);\n if (osds != null) {\n desktopSharing = true;\n if (videoTelephonyIsLocalVideoStreaming && call instanceof MediaAwareCall && ((MediaAwareCall<?, ?, ?>) call).getMediaUseCase() == MediaUseCase.DESKTOP) {\n desktopSharingIsStreamed = true;\n }\n }\n }\n }\n conferenceButton.setEnabled(telephonyConferencing);\n transferCallButton.setEnabled(advancedTelephony);\n transferCallButton.setVisible(!callConference.isConferenceFocus());\n videoButton.setEnabled(allCallsConnected && videoTelephony);\n videoButton.setSelected(videoTelephonyIsLocalVideoAllowed);\n showHideVideoButton.setEnabled(videoButton.isEnabled() && videoTelephonyIsLocalVideoAllowed);\n showHideVideoButton.setSelected(showHideVideoButton.isEnabled() && uiVideoHandler.isLocalVideoVisible());\n showHideVideoButton.setVisible(showHideVideoButton.isEnabled());\n desktopSharingButton.setEnabled(desktopSharing);\n desktopSharingButton.setSelected(desktopSharingIsStreamed);\n if (callPanel instanceof OneToOneCallPanel) {\n OneToOneCallPanel oneToOneCallPanel = (OneToOneCallPanel) callPanel;\n if (desktopSharingIsStreamed)\n oneToOneCallPanel.addDesktopSharingComponents();\n else\n oneToOneCallPanel.removeDesktopSharingComponents();\n }\n}\n"
|
"private Object[] getKeys(DelayedCellSetter<?, ?>[] delayedCellSetters) {\n Object[] currentKeys = new Object[keys.length];\n for (int i = 0; i < keys.length; i++) {\n currentKeys[i] = delayedCellSetters[keys[i].getIndex()].peekValue();\n }\n return currentKeys;\n}\n"
|
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n JmsProducerInfo other = (JmsProducerInfo) obj;\n if (producerId != null) {\n return producerId.equals(other.producerId);\n }\n return true;\n}\n"
|
"public void createTableFromMatrix(List<List<String>> dataMatrix, int numColumns) {\n if (dataMatrix == null || dataMatrix.isEmpty())\n return;\n columnSelectionStatus = new ArrayList<>(numColumns);\n for (int i = 0; i < numColumns; i++) {\n columnSelectionStatus.add(true);\n }\n bodyDataProvider.setDataMatrix(dataMatrix);\n bodyDataProvider.setNumColumns(numColumns);\n columnHeaderDataProvider.setNumColumns(numColumns);\n rowHeaderDataProvider.setNumRows(dataMatrix.size());\n table.refresh();\n}\n"
|
"public void changeSelection(String serverId) {\n if (!selected.isEmpty()) {\n for (Control c : listBase.getChildren()) {\n if (c instanceof InstanceCell) {\n InstanceCell cell = (InstanceCell) c;\n if (cell.getServerId() == selected) {\n cell.setSelected(false);\n }\n }\n }\n }\n selected = serverId;\n for (Control c : listBase.getChildren()) {\n if (c instanceof InstanceCell) {\n InstanceCell cell = (InstanceCell) c;\n if (cell.getServerId().equals(selected)) {\n cell.setSelected(true);\n }\n }\n }\n for (ServerList entry : this.instances) {\n if (entry.getServerId().equals(selected)) {\n MainShell.getInstance().changeSelectedInstance(entry);\n }\n }\n}\n"
|
"public TileEntity createTileEntity(World world, IBlockState state) {\n int metadata = getMetaFromState(state);\n if (metadata < 0 || metadata > AlvearyType.VALUES.length) {\n return null;\n }\n Type type = Type.VALUES[metadata];\n switch(type) {\n case SWARMER:\n return new TileAlvearySwarmer();\n case FAN:\n return new TileAlvearyFan();\n case HEATER:\n return new TileAlvearyHeater();\n case HYGRO:\n return new TileAlvearyHygroregulator();\n case STABILISER:\n return new TileAlvearyStabiliser();\n case SIEVE:\n return new TileAlvearySieve();\n case PLAIN:\n default:\n return new TileAlvearyPlain();\n }\n}\n"
|
"public void createHistogram(final int iHistogramLevels) {\n if (targetSet == null) {\n refGeneralManager.getSingelton().getLoggerManager().logMsg(\"String_Node_Str\", LoggerType.STATUS);\n return;\n }\n IStorage refBufferStorage = targetSet.getStorageByDimAndIndex(0, 0);\n ISelection refBufferSelection = targetSet.getSelectionByDimAndIndex(0, 0);\n refGeneralManager.getSingelton().getLoggerManager().logMsg(\"String_Node_Str\" + refBufferSelection.getLabel() + \"String_Node_Str\", LoggerType.FULL);\n if (refBufferStorage == null) {\n return;\n }\n HistogramStatisticsSet histogramCreatorSet = new HistogramStatisticsSet();\n histogramCreatorSet.addData(targetSet);\n histogramCreatorSet.setIntervalEqualSpacedInt(iHistogramLevels, enumCurrentHistogramMode, true, 0, 0);\n HistogramData refResultBuffer = histogramCreatorSet.getUpdatedHistogramData();\n listHistogramData.clear();\n if (refResultBuffer != null) {\n listHistogramData.add(refResultBuffer);\n }\n}\n"
|
"protected void gainedVisibility() {\n updateScale();\n}\n"
|
"public void run() {\n if (options == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n boolean tmpResult = false;\n try {\n options.log(\"String_Node_Str\", options.getKsType());\n final KeyStore ks = KeyStore.getInstance(options.getKsType());\n InputStream ksInputStream = null;\n if (!StringUtils.isEmpty(options.getKsFile())) {\n options.log(\"String_Node_Str\", options.getKsFile());\n ksInputStream = new FileInputStream(options.getKsFile());\n }\n ks.load(ksInputStream, options.getKsPasswd());\n options.log(\"String_Node_Str\");\n String tmpAlias = options.getKeyAliasX();\n if (tmpAlias == null || tmpAlias.length() == 0) {\n final String[] tmpAliases = KeyStoreUtils.getKeyAliases(options);\n if (tmpAliases != null && tmpAliases.length > 0) {\n tmpAlias = tmpAliases[0];\n }\n }\n options.log(\"String_Node_Str\");\n final PrivateKey key = (PrivateKey) ks.getKey(tmpAlias, options.getKeyPasswdX());\n options.log(\"String_Node_Str\");\n final Certificate[] chain = ks.getCertificateChain(tmpAlias);\n options.log(\"String_Node_Str\", options.getInFile());\n PdfReader reader;\n try {\n reader = new PdfReader(options.getInFile());\n } catch (Exception e) {\n try {\n reader = new PdfReader(options.getInFile(), new byte[0]);\n } catch (Exception e2) {\n reader = new PdfReader(options.getInFile(), options.getPdfOwnerPwdStr().getBytes());\n }\n }\n options.log(\"String_Node_Str\", options.getOutFile());\n final FileOutputStream fout = new FileOutputStream(options.getOutFile());\n options.log(\"String_Node_Str\");\n final PdfStamper stp = PdfStamper.createSignature(reader, fout, '\\0', null, options.isAppendX());\n if (options.isEncryptedX()) {\n options.log(\"String_Node_Str\");\n final int tmpRight = options.getRightPrinting().getRight() | (options.isRightCopy() ? PdfWriter.ALLOW_COPY : 0) | (options.isRightAssembly() ? PdfWriter.ALLOW_ASSEMBLY : 0) | (options.isRightFillIn() ? PdfWriter.ALLOW_FILL_IN : 0) | (options.isRightScreanReaders() ? PdfWriter.ALLOW_SCREENREADERS : 0) | (options.isRightModifyAnnotations() ? PdfWriter.ALLOW_MODIFY_ANNOTATIONS : 0) | (options.isRightModifyContents() ? PdfWriter.ALLOW_MODIFY_CONTENTS : 0);\n stp.setEncryption(true, options.getPdfUserPwdStr(), options.getPdfOwnerPwdStr(), tmpRight);\n }\n final PdfSignatureAppearance sap = stp.getSignatureAppearance();\n sap.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);\n if (!StringUtils.isEmpty(options.getReason())) {\n options.log(\"String_Node_Str\", options.getReason());\n sap.setReason(options.getReason());\n }\n if (!StringUtils.isEmpty(options.getLocation())) {\n options.log(\"String_Node_Str\", options.getLocation());\n sap.setLocation(options.getLocation());\n }\n options.log(\"String_Node_Str\");\n sap.setCertificationLevel(options.getCertLevelX().getLevel());\n if (options.isVisible()) {\n options.log(\"String_Node_Str\");\n options.log(\"String_Node_Str\");\n sap.setAcro6Layers(true);\n final String tmpImgPath = options.getImgPath();\n if (tmpImgPath != null) {\n options.log(\"String_Node_Str\", tmpImgPath);\n final Image img = Image.getInstance(tmpImgPath);\n options.log(\"String_Node_Str\");\n sap.setSignatureGraphic(img);\n }\n final String tmpBgImgPath = options.getBgImgPath();\n if (tmpBgImgPath != null) {\n options.log(\"String_Node_Str\", tmpBgImgPath);\n final Image img = Image.getInstance(tmpBgImgPath);\n options.log(\"String_Node_Str\");\n sap.setImage(img);\n }\n options.log(\"String_Node_Str\");\n sap.setImageScale(options.getBgImgScale());\n options.log(\"String_Node_Str\");\n sap.setLayer2Text(options.getL2Text());\n options.log(\"String_Node_Str\");\n sap.setLayer4Text(options.getL4Text());\n options.log(\"String_Node_Str\");\n sap.setRender(options.getRenderMode().getRender());\n options.log(\"String_Node_Str\");\n sap.setVisibleSignature(new Rectangle(options.getPositionLLX(), options.getPositionLLY(), options.getPositionURX(), options.getPositionURY()), options.getPage(), null);\n }\n options.log(\"String_Node_Str\");\n stp.close();\n options.log(\"String_Node_Str\");\n fout.close();\n tmpResult = true;\n } catch (Exception e) {\n options.log(\"String_Node_Str\");\n e.printStackTrace(options.getPrintWriter());\n } catch (OutOfMemoryError e) {\n e.printStackTrace(options.getPrintWriter());\n options.log(\"String_Node_Str\");\n }\n options.log(\"String_Node_Str\" + (tmpResult ? \"String_Node_Str\" : \"String_Node_Str\"));\n options.fireSignerFinishedEvent(tmpResult);\n}\n"
|
"public static MyPet setMyPetActive(InactiveMyPet inactiveMyPet) {\n if (inactiveMyPet.getOwner().hasMyPet()) {\n setMyPetInactive(inactiveMyPet.getOwner());\n }\n boolean isCancelled = false;\n if (MyPetConfiguration.ENABLE_EVENTS) {\n MyPetSelectEvent event = new MyPetSelectEvent(inactiveMyPet, NewStatus.Active);\n getServer().getPluginManager().callEvent(event);\n isCancelled = event.isCancelled();\n }\n if (!isCancelled) {\n MyPet activeMyPet = getMyPetFromInactiveMyPet(inactiveMyPet);\n addMyPet(activeMyPet);\n removeInactiveMyPet(inactiveMyPet);\n inactiveMyPet.getOwner().setLastActiveMyPetUUID(activeMyPet.getUUID());\n DebugLogger.info(\"String_Node_Str\" + activeMyPet);\n DebugLogger.info(\"String_Node_Str\" + inactiveMyPet);\n return activeMyPet;\n }\n return null;\n}\n"
|
"public int getColumnSize(int column) {\n if (column < getColumnCount()) {\n return ((Integer) columnId2StartLine.get(new Integer(column))).intValue() + ((List) columns.get(column)).size();\n } else {\n return -1;\n }\n}\n"
|
"public boolean isUsableAsStatement() {\n for (int i = 0; i < this.caseCount; i++) {\n final IValue action = this.cases[i].action;\n if (action != null && !action.isUsableAsStatement()) {\n return false;\n }\n }\n return true;\n}\n"
|
"public void onSuccess(ResourceAssignment result) {\n LOG.info(\"String_Node_Str\", result.getName(), Bytes.toString(data));\n}\n"
|
"protected boolean checkFieldsValue() {\n if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.JAVA)) {\n return checkJavaFieldsValue();\n } else if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL)) {\n return checkPerlFieldsValue();\n } else {\n updateStatus(IStatus.ERROR, null);\n return false;\n }\n}\n"
|
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n String streamId = arguments.get(ArgumentName.NEW_STREAM.toString());\n StreamProperties streamProperties = null;\n if (arguments.hasArgument(ArgumentName.LOCAL_FILE_PATH.toString())) {\n File file = new File(arguments.get(ArgumentName.LOCAL_FILE_PATH.toString()));\n try (Reader reader = Files.newReader(file, Charsets.UTF_8)) {\n streamProperties = GSON.fromJson(reader, StreamProperties.class);\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + file);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"String_Node_Str\", e);\n }\n }\n streamClient.create(cliConfig.getCurrentNamespace().stream(streamId), streamProperties);\n output.printf(\"String_Node_Str\", streamId);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.