content
stringlengths
40
137k
"public static void unLoad() {\n PortalManager.deleteAll();\n GrillManager.deleteAll();\n for (Map.Entry<String, User> entry : UserManager.getUserList().entrySet()) {\n User user = entry.getValue();\n Player player = plugin.getServer().getPlayer(entry.getKey());\n if (player != null) {\n if (!RegionManager.getRegion(player.getLocation()).Name.equalsIgnoreCase(\"String_Node_Str\"))\n user.revertInventory(player);\n }\n UserManager.deleteUser(user);\n }\n}\n"
"public void customize() {\n newScript(CUSTOMIZING).failOnNonZeroResultCode().body.append(format(\"String_Node_Str\", getInstallDir(), getVersion()), \"String_Node_Str\").execute();\n SshMachineLocation machine = getMachine();\n BrooklynNode entity = getEntity();\n String brooklynPropertiesTempRemotePath = String.format(\"String_Node_Str\", getRunDir());\n String brooklynPropertiesRemotePath = entity.getConfig(BrooklynNode.BROOKLYN_PROPERTIES_REMOTE_PATH);\n String brooklynPropertiesContents = entity.getConfig(BrooklynNode.BROOKLYN_PROPERTIES_CONTENTS);\n String brooklynPropertiesUri = entity.getConfig(BrooklynNode.BROOKLYN_PROPERTIES_URI);\n if (brooklynPropertiesContents != null || brooklynPropertiesUri != null) {\n if (brooklynPropertiesContents != null) {\n machine.copyTo(new ByteArrayInputStream(brooklynPropertiesContents.getBytes()), brooklynPropertiesTempRemotePath);\n } else if (brooklynPropertiesUri != null) {\n InputStream propertiesStream = new ResourceUtils(entity).getResourceFromUrl(brooklynPropertiesUri);\n machine.copyTo(propertiesStream, brooklynPropertiesTempRemotePath);\n }\n newScript(CUSTOMIZING).failOnNonZeroResultCode().body.append(format(\"String_Node_Str\", brooklynPropertiesRemotePath.subSequence(0, brooklynPropertiesRemotePath.lastIndexOf(\"String_Node_Str\"))), format(\"String_Node_Str\", brooklynPropertiesTempRemotePath, brooklynPropertiesRemotePath)).execute();\n }\n String brooklynCatalogTempRemotePath = String.format(\"String_Node_Str\", getRunDir());\n String brooklynCatalogRemotePath = entity.getConfig(BrooklynNode.BROOKLYN_CATALOG_REMOTE_PATH);\n String brooklynCatalogContents = entity.getConfig(BrooklynNode.BROOKLYN_CATALOG_CONTENTS);\n String brooklynCatalogUri = entity.getConfig(BrooklynNode.BROOKLYN_CATALOG_URI);\n if (brooklynCatalogContents != null || brooklynCatalogUri != null) {\n if (brooklynCatalogContents != null) {\n machine.copyTo(new ByteArrayInputStream(brooklynCatalogContents.getBytes()), brooklynCatalogTempRemotePath);\n } else if (brooklynCatalogUri != null) {\n InputStream catalogStream = new ResourceUtils(entity).getResourceFromUrl(brooklynCatalogUri);\n machine.copyTo(catalogStream, brooklynCatalogTempRemotePath);\n }\n newScript(CUSTOMIZING).body.append(format(\"String_Node_Str\", brooklynCatalogTempRemotePath, brooklynCatalogRemotePath)).execute();\n }\n for (Map.Entry<String, String> entry : getEntity().getAttribute(BrooklynNode.COPY_TO_RUNDIR).entrySet()) {\n Map<String, String> substitutions = ImmutableMap.of(\"String_Node_Str\", getRunDir());\n String localResource = entry.getKey();\n String remotePath = entry.getValue();\n String resolvedRemotePath = remotePath;\n for (Map.Entry<String, String> substitution : substitutions.entrySet()) {\n String key = substitution.getKey();\n String val = substitution.getValue();\n resolvedRemotePath = resolvedRemotePath.replace(\"String_Node_Str\" + key + \"String_Node_Str\", val).replace(\"String_Node_Str\" + key, val);\n }\n machine.copyTo(MutableMap.of(\"String_Node_Str\", \"String_Node_Str\"), new ResourceUtils(entity).getResourceFromUrl(localResource), resolvedRemotePath);\n }\n for (String f : getEntity().getClasspath()) {\n String toinstall;\n if (new File(f).isDirectory()) {\n try {\n File jarFile = JarBuilder.buildJar(new File(f));\n toinstall = jarFile.getAbsolutePath();\n } catch (IOException e) {\n throw new IllegalStateException(\"String_Node_Str\" + f, e);\n }\n } else {\n toinstall = f;\n }\n int result = machine.installTo(new ResourceUtils(entity), toinstall, getRunDir() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n if (result != 0)\n throw new IllegalStateException(format(\"String_Node_Str\", f, entity, machine));\n String destName = f;\n destName = destName.contains(\"String_Node_Str\") ? destName.substring(0, destName.indexOf('?')) : destName;\n destName = destName.substring(destName.lastIndexOf('/') + 1);\n if (destName.toLowerCase().endsWith(\"String_Node_Str\")) {\n result = machine.run(format(\"String_Node_Str\", getRunDir(), destName));\n } else if (destName.toLowerCase().endsWith(\"String_Node_Str\") || destName.toLowerCase().endsWith(\"String_Node_Str\")) {\n result = machine.run(format(\"String_Node_Str\", getRunDir(), destName));\n } else if (destName.toLowerCase().endsWith(\"String_Node_Str\")) {\n result = machine.run(format(\"String_Node_Str\", getRunDir(), destName));\n }\n if (result != 0)\n throw new IllegalStateException(format(\"String_Node_Str\", f, entity, machine));\n }\n}\n"
"public String getSchema() throws SQLException {\n if (DataSourceObjectBuilder.isJDBC41()) {\n checkValidity();\n try {\n return (String) getMethodExecutor().invokeMethod(con, \"String_Node_Str\", null);\n } catch (ResourceException ex) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", ex);\n throw new SQLException(ex);\n }\n }\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"protected double getMaxY() {\n double maxY = super.getMaxY();\n final int divideBy;\n if (maxY < 100) {\n divideBy = 10;\n else if (maxY < 1000)\n divideBy = 100;\n else if (maxY < 10000)\n divideBy = 1000;\n else if (maxY < 100000)\n divideBy = 10000;\n else if (maxY < 1000000)\n divideBy = 100000;\n else\n divideBy = 1000000;\n maxY = Math.rint((maxY / divideBy) + 1) * divideBy;\n return maxY;\n}\n"
"private void init() {\n final Matcher matcher = PATTERN.matcher(format);\n int position = 0;\n int i = 0;\n while (i < format.length()) {\n if (matcher.find(i)) {\n if (matcher.start() != i) {\n formatParts.add(StringPart.of(position++, format.substring(i, matcher.start())));\n }\n final String[] formatGroup = new String[6];\n for (int groupIndex = 0; groupIndex < matcher.groupCount(); groupIndex++) {\n formatGroup[groupIndex] = matcher.group(groupIndex + 1);\n }\n final StringFormatPart stringFormatPart = StringFormatPart.of(position++, formatGroup);\n formatParts.add(stringFormatPart);\n formats.add(stringFormatPart);\n i = matcher.end();\n } else {\n checkText(format.substring(i));\n formatParts.add(StringPart.of(position, format.substring(i)));\n break;\n }\n }\n final Set<Integer> counted = new HashSet<Integer>();\n for (StringFormatPart stringFormatPart : formats) {\n if (stringFormatPart.conversion().isLineSeparator() || stringFormatPart.conversion().isPercent())\n continue;\n if (stringFormatPart.index() > 0) {\n if (counted.add(stringFormatPart.index())) {\n argumentCount++;\n } else if (stringFormatPart.index() == 0) {\n argumentCount++;\n }\n }\n}\n"
"public void testIsStable() throws Exception {\n Connection conn = new ManagedConnection(\"String_Node_Str\", Backend.BACKEND_PORT);\n conn.initialize();\n assertTrue(\"String_Node_Str\", !conn.isStable());\n Thread.sleep(6000);\n assertTrue(\"String_Node_Str\", conn.isStable());\n conn.close();\n}\n"
"private Map<String, String> sanitizePackageNameToCertificateMap(Map<String, String> packageNameToCertificateMap) {\n if (packageNameToCertificateMap == null || packageNameToCertificateMap.isEmpty())\n return null;\n Map<String, String> santiziedPackageNameToCertificateMap = packageNameToCertificateMap;\n Iterator<String> packageNamesIterator = santiziedPackageNameToCertificateMap.keySet().iterator();\n while (packageNamesIterator.hasNext()) {\n String currentPackageName = packageNamesIterator.next();\n String[] packStrings = currentPackageName.split(\"String_Node_Str\");\n boolean isValidPackageName = true;\n boolean removeThisPackageName = false;\n for (String packString : packStrings) {\n if (packString.isEmpty())\n isValidPackageName = false;\n }\n if (isValidPackageName) {\n URL certificateURL;\n try {\n String certificateURLString = santiziedPackageNameToCertificateMap.get(currentPackageName);\n certificateURL = new URL(certificateURLString);\n if (certificateURL.getProtocol().equals(\"String_Node_Str\")) {\n santiziedPackageNameToCertificateMap.put(currentPackageName, certificateURLString.replace(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n if (certificateURL.getProtocol() != \"String_Node_Str\") {\n removeThisPackageName = true;\n }\n }\n } catch (MalformedURLException e) {\n removeThisPackageName = true;\n }\n } else\n removeThisPackageName = true;\n if (removeThisPackageName) {\n packageNamesIterator.remove();\n }\n }\n return santiziedPackageNameToCertificateMap;\n}\n"
"public void testDAG() throws Exception {\n Schema schema = Schema.recordOf(\"String_Node_Str\", Schema.Field.of(\"String_Node_Str\", Schema.of(Schema.Type.INT)));\n StructuredRecord record1 = StructuredRecord.builder(schema).set(\"String_Node_Str\", 1).build();\n StructuredRecord record2 = StructuredRecord.builder(schema).set(\"String_Node_Str\", 2).build();\n StructuredRecord record3 = StructuredRecord.builder(schema).set(\"String_Node_Str\", 3).build();\n List<StructuredRecord> input = ImmutableList.of(record1, record2, record3);\n File sink1Out = TMP_FOLDER.newFolder();\n File sink2Out = TMP_FOLDER.newFolder();\n ETLRealtimeConfig etlConfig = ETLRealtimeConfig.builder().addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(input))).addStage(new ETLStage(\"String_Node_Str\", MockSink.getPlugin(sink1Out))).addStage(new ETLStage(\"String_Node_Str\", MockSink.getPlugin(sink2Out))).addStage(new ETLStage(\"String_Node_Str\", IntValueFilterTransform.getPlugin(\"String_Node_Str\", 2))).addStage(new ETLStage(\"String_Node_Str\", DoubleTransform.getPlugin())).addStage(new ETLStage(\"String_Node_Str\", IdentityTransform.getPlugin())).addConnection(\"String_Node_Str\", \"String_Node_Str\").addConnection(\"String_Node_Str\", \"String_Node_Str\").addConnection(\"String_Node_Str\", \"String_Node_Str\").addConnection(\"String_Node_Str\", \"String_Node_Str\").addConnection(\"String_Node_Str\", \"String_Node_Str\").addConnection(\"String_Node_Str\", \"String_Node_Str\").build();\n ApplicationId appId = NamespaceId.DEFAULT.app(\"String_Node_Str\");\n AppRequest<ETLRealtimeConfig> appRequest = new AppRequest<>(APP_ARTIFACT, etlConfig);\n ApplicationManager appManager = deployApplication(appId, appRequest);\n Assert.assertNotNull(appManager);\n WorkerManager workerManager = appManager.getWorkerManager(ETLWorker.NAME);\n workerManager.start();\n workerManager.waitForStatus(true, 10, 1);\n try {\n List<StructuredRecord> sink1output = MockSink.getRecords(sink1Out, 0, 10, TimeUnit.SECONDS);\n List<StructuredRecord> sink1expected = ImmutableList.of(record1, record3);\n Assert.assertEquals(sink1expected, sink1output);\n List<StructuredRecord> sink2output = MockSink.getRecords(sink2Out, 0, 10, TimeUnit.SECONDS);\n Assert.assertEquals(9, sink2output.size());\n } finally {\n stopWorker(workerManager);\n }\n validateMetric(3, appId, \"String_Node_Str\");\n validateMetric(3, appId, \"String_Node_Str\");\n validateMetric(2, appId, \"String_Node_Str\");\n validateMetric(3, appId, \"String_Node_Str\");\n validateMetric(6, appId, \"String_Node_Str\");\n validateMetric(3, appId, \"String_Node_Str\");\n validateMetric(3, appId, \"String_Node_Str\");\n validateMetric(2, appId, \"String_Node_Str\");\n validateMetric(9, appId, \"String_Node_Str\");\n}\n"
"private static Sound normalize(Sound sound) {\n double[] data = sound.getSamples();\n double[] newdata = new double[sound.getSamples().length];\n double max = 0;\n for (int i = 0; i < data.length; i++) {\n if (Math.abs(data[i]) > max)\n max = Math.abs(data[i]);\n }\n double maxValue = Math.pow(256, sound.getNbBytesPerFrame()) / 2;\n double ratio = maxValue / max;\n for (int i = 0; i < data.length; i++) {\n double rescaled = data[i] * ratio;\n newdata[i] = Math.floor(rescaled);\n }\n return new Sound(newdata, sound.getNbBytesPerFrame(), sound.getFreq());\n}\n"
"public void run() {\n CV.logi(\"String_Node_Str\");\n turnOn();\n resetHandler();\n}\n"
"public static SoftwareManagerCollectorException DUPLICATE_NAME(String name) {\n return new SoftwareManagerCollectorException(null, \"String_Node_Str\", name);\n}\n"
"public boolean setDisplayColorCalibration(int[] rgb) {\n try {\n if (checkService()) {\n return sService.setDisplayColorCalibration(rgb);\n }\n } catch (RemoteException e) {\n }\n return false;\n}\n"
"public void testCanInlineAcrossNoSideEffect() {\n noInline(\"String_Node_Str\");\n}\n"
"private void internalHandleRegister(SockJSSocket sock, String address, Map<String, MessageConsumer> registrations) {\n if (address.length() > maxAddressLength) {\n log.warn(\"String_Node_Str\");\n replyError(sock, \"String_Node_Str\");\n return;\n }\n final SockInfo info = sockInfos.get(sock);\n if (!checkMaxHandlers(sock, info)) {\n return;\n }\n if (handlePreRegister(sock, address)) {\n final boolean debug = log.isDebugEnabled();\n Match match = checkMatches(false, address, null);\n if (match.doesMatch) {\n Handler<Message<Object>> handler = msg -> {\n Match curMatch = checkMatches(false, address, msg.body());\n if (curMatch.doesMatch) {\n if (curMatch.requiredPermission != null || curMatch.requiredRole != null) {\n authorise(curMatch, sock.apexSession(), res -> {\n if (res.succeeded()) {\n if (res.result()) {\n checkAddAccceptedReplyAddress(msg);\n deliverMessage(sock, address, msg);\n } else {\n if (debug) {\n log.debug(\"String_Node_Str\" + address + \"String_Node_Str\");\n }\n }\n } else {\n log.error(res.cause());\n }\n });\n } else {\n checkAddAccceptedReplyAddress(msg.replyAddress());\n deliverMessage(sock, address, msg);\n }\n } else {\n if (debug) {\n log.debug(\"String_Node_Str\" + address + \"String_Node_Str\");\n }\n }\n };\n MessageConsumer reg = eb.consumer(address).handler(handler);\n registrations.put(address, reg);\n handlePostRegister(sock, address);\n info.handlerCount++;\n } else {\n if (debug) {\n log.debug(\"String_Node_Str\" + address + \"String_Node_Str\");\n }\n replyError(sock, \"String_Node_Str\");\n }\n }\n}\n"
"private String combineNotes(List<String> followUps, String notes) throws Exception {\n String s = \"String_Node_Str\";\n if (notes != null && !notes.equals(\"String_Node_Str\"))\n s = notes;\n if (followUps.size() > 0)\n if (!s.isEmpty())\n s = s + \"String_Node_Str\" + Utilities.asCSV(followUps);\n else\n s = \"String_Node_Str\" + Utilities.asCSV(followUps);\n return processMarkdown(s);\n}\n"
"public void start(CoprocessorEnvironment env) throws IOException {\n if (env instanceof RegionCoprocessorEnvironment) {\n HTableDescriptor tableDesc = ((RegionCoprocessorEnvironment) env).getRegion().getTableDesc();\n metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE);\n hbaseNamespacePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX);\n prefixLength = Integer.valueOf(tableDesc.getValue(Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES));\n String sysConfigTablePrefix = HTableNameConverter.getSysConfigTablePrefix(hbaseNamespacePrefix);\n CConfigurationReader cConfReader = new CConfigurationReader(env.getConfiguration(), sysConfigTablePrefix);\n topicMetadataCacheSupplier = new TopicMetadataCacheSupplier(env, cConfReader, hbaseNamespacePrefix, metadataTableNamespace, new DefaultScanBuilder());\n topicMetadataCache = topicMetadataCacheSupplier.get();\n }\n}\n"
"public static AdapterList<DatasetConfiguration> datasets(EntityCheckerManager entityCheckerManager, SameAsRetriever globalRetriever) {\n List<DatasetConfiguration> datasetConfigurations = new ArrayList<DatasetConfiguration>();\n Set<String> datasetKeys = getDatasetKeys();\n DatasetConfiguration configuration;\n for (String datasetKey : datasetKeys) {\n try {\n configuration = getConfiguration(datasetKey, entityCheckerManager, globalRetriever);\n if (configuration != null) {\n datasetConfigurations.add(configuration);\n LOGGER.info(\"String_Node_Str\" + configuration.toString());\n }\n } catch (Exception e) {\n LOGGER.error(\"String_Node_Str\" + datasetKey + \"String_Node_Str\" + e.toString());\n }\n }\n DatahubNIFLoader datahub = new DatahubNIFLoader();\n Map<String, String> datasets = datahub.getDataSets();\n for (String datasetName : datasets.keySet()) {\n datasetConfigurations.add(new DatahubNIFConfig(datasetName, datasets.get(datasetName), true, entityCheckerManager, globalRetriever));\n }\n LOGGER.info(\"String_Node_Str\", datasetConfigurations.size());\n return new AdapterList<DatasetConfiguration>(datasetConfigurations);\n}\n"
"public GremlinQuery translate() {\n QueryMetadata queryMetadata = new QueryMetadata(queryContext);\n GremlinQueryComposer gremlinQueryComposer = new GremlinQueryComposer(typeRegistry, queryMetadata, limit, offset);\n DSLVisitor dslVisitor = new DSLVisitor(gremlinQueryComposer);\n queryContext.accept(dslVisitor);\n return new GremlinQuery(gremlinQueryComposer.get(), gremlinQueryComposer.hasSelect());\n}\n"
"private void rotate(long ts) throws IOException {\n if ((currentTimeInterval != ts && ts % fileRotateIntervalMs == 0) || dataFileWriter == null) {\n close();\n create(timeInterval);\n currentTimeInterval = timeInterval;\n cleanUp();\n }\n}\n"
"private void resetCache(boolean fullReset) {\n if (host == null || host.getTile() == null || host.getTile().getWorldObj() == null || host.getTile().getWorldObj().isRemote)\n return;\n IMEInventory<IAEItemStack> in = getInternalHandler();\n IItemList<IAEItemStack> before = AEApi.instance().storage().createItemList();\n if (in != null)\n before = in.getAvailableItems(before);\n cached = false;\n if (fullReset)\n handlerHash = 0;\n IMEInventory<IAEItemStack> out = getInternalHandler();\n if (monitor != null)\n monitor.onTick();\n IItemList<IAEItemStack> after = AEApi.instance().storage().createItemList();\n if (out != null)\n after = out.getAvailableItems(after);\n Platform.postListChanges(before, after, this, mySrc);\n}\n"
"protected void drawCircles(Canvas c) {\n mRenderPaint.setStyle(Paint.Style.FILL);\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n ArrayList<LineDataSet> dataSets = mChart.getLineData().getDataSets();\n for (int i = 0; i < dataSets.size(); i++) {\n LineDataSet dataSet = dataSets.get(i);\n if (!dataSet.isVisible() || !dataSet.isDrawCirclesEnabled())\n continue;\n mCirclePaintInner.setColor(dataSet.getCircleHoleColor());\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n ArrayList<Entry> entries = dataSet.getYVals();\n CircleBuffer buffer = mCircleBuffers[i];\n buffer.setPhases(phaseX, phaseY);\n buffer.feed(entries);\n trans.pointValuesToPixel(buffer.buffer);\n float halfsize = dataSet.getCircleSize() / 2f;\n for (int j = 0; j < buffer.size(); j += 2) {\n float x = buffer.buffer[j];\n float y = buffer.buffer[j + 1];\n if (!mViewPortHandler.isInBoundsRight(x))\n break;\n if (!mViewPortHandler.isInBoundsLeft(x) || !mViewPortHandler.isInBoundsY(y))\n continue;\n int circleColor = dataSet.getCircleColor(j / 2);\n mRenderPaint.setColor(circleColor);\n c.drawCircle(x, y, dataSet.getCircleSize(), mRenderPaint);\n if (dataSet.isDrawCircleHoleEnabled())\n c.drawCircle(x, y, halfsize, mCirclePaintInner);\n }\n }\n}\n"
"public void testComplexJoinDefaultRecognizer() throws Exception {\n if (!isApplicable()) {\n return;\n }\n final TestContext context = getTestContext();\n final String mdx = \"String_Node_Str\";\n context.assertQueryReturns(mdx, \"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 final String mdx2 = \"String_Node_Str\";\n context.assertQueryReturns(mdx2, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public void testWriter() throws Exception {\n openDesign(fileName);\n TableHandle tableHandle = (TableHandle) designHandle.findElement(\"String_Node_Str\");\n assertNotNull(tableHandle);\n tableHandle.setEventHandlerClass(\"String_Node_Str\");\n tableHandle.setOnCreate(\"String_Node_Str\");\n tableHandle.setOnPrepare(\"String_Node_Str\");\n tableHandle.setOnRender(\"String_Node_Str\");\n tableHandle.setRepeatHeader(false);\n tableHandle.setCaption(\"String_Node_Str\");\n tableHandle.setCaptionKey(\"String_Node_Str\");\n tableHandle.setSummary(\"String_Node_Str\");\n tableHandle.setSortByGroups(true);\n tableHandle.setNewHandlerOnEachEvent(false);\n tableHandle.setTagType(\"String_Node_Str\");\n tableHandle.setLanguage(\"String_Node_Str\");\n tableHandle.setOrder(1);\n ColumnHandle column = (ColumnHandle) tableHandle.getColumns().get(2);\n PropertyHandle propHandle = column.getPropertyHandle(TableColumn.VISIBILITY_PROP);\n propHandle.setValue(null);\n HideRule hideRule = StructureFactory.createHideRule();\n propHandle.addItem(hideRule);\n hideRule.setFormat(DesignChoiceConstants.FORMAT_TYPE_REPORTLET);\n hideRule.setExpression(\"String_Node_Str\" + DesignChoiceConstants.FORMAT_TYPE_REPORTLET);\n SlotHandle groupSlot = tableHandle.getGroups();\n assertNotNull(groupSlot);\n assertEquals(1, groupSlot.getCount());\n RowHandle rowHandle = (RowHandle) tableHandle.getHeader().get(0);\n testWriteVisibilityRules(rowHandle);\n rowHandle = (RowHandle) tableHandle.getFooter().get(0);\n rowHandle.setRepeatable(false);\n TableGroupHandle group = (TableGroupHandle) groupSlot.get(0);\n group.setName(\"String_Node_Str\");\n group.setInterval(DesignChoiceConstants.INTERVAL_DAY);\n group.setIntervalRange(99);\n group.setKeyExpr(\"String_Node_Str\");\n group.setBookmark(\"String_Node_Str\");\n group.setBookmarkDisplayName(\"String_Node_Str\");\n group.getTOC().setExpression(\"String_Node_Str\");\n group.setEventHandlerClass(\"String_Node_Str\");\n group.setOnPrepare(\"String_Node_Str\");\n group.setOnCreate(\"String_Node_Str\");\n group.setOnRender(\"String_Node_Str\");\n group.setACLExpression(\"String_Node_Str\");\n group.setCascadeACL(true);\n SlotHandle detailSlot = tableHandle.getDetail();\n assertNotNull(detailSlot);\n assertEquals(1, detailSlot.getCount());\n RowHandle row = (RowHandle) detailSlot.get(0);\n row.setSuppressDuplicates(false);\n row.setEventHandlerClass(\"String_Node_Str\");\n row.setOnCreate(\"String_Node_Str\");\n row.setOnPrepare(\"String_Node_Str\");\n row.setOnRender(null);\n row.setBookmark(\"String_Node_Str\");\n row.setBookmarkDisplayName(\"String_Node_Str\");\n row.setRole(\"String_Node_Str\");\n row.setLanguage(\"String_Node_Str\");\n SlotHandle cells = row.getCells();\n assertNotNull(cells);\n assertEquals(1, cells.getCount());\n CellHandle cell = (CellHandle) cells.get(0);\n cell.setEventHandlerClass(\"String_Node_Str\");\n cell.setOnCreate(null);\n cell.setOnPrepare(\"String_Node_Str\");\n cell.setOnRender(\"String_Node_Str\");\n cell.setBookmark(\"String_Node_Str\");\n cell.setBookmarkDisplayName(\"String_Node_Str\");\n UserPropertyDefn prop = new UserPropertyDefn();\n prop.setName(\"String_Node_Str\");\n PropertyType typeDefn = MetaDataDictionary.getInstance().getPropertyType(PropertyType.STRING_TYPE_NAME);\n prop.setType(typeDefn);\n cell.addUserPropertyDefn(prop);\n save();\n assertTrue(compareFile(goldenFileName));\n}\n"
"public Type getType(Class interfaceClass) {\n return getTypeHelperDelegate().getType(interfaceClass);\n}\n"
"public AFPChain invertAlignment(AFPChain a) {\n String name1 = a.getName1();\n String name2 = a.getName2();\n a.setName1(name2);\n a.setName2(name1);\n int len1 = a.getCa1Length();\n a.setCa1Length(a.getCa2Length());\n a.setCa2Length(len1);\n int beg1 = a.getAlnbeg1();\n a.setAlnbeg1(a.getAlnbeg2());\n a.setAlnbeg2(beg1);\n char[] alnseq1 = a.getAlnseq1();\n a.setAlnseq1(a.getAlnseq2());\n a.setAlnseq2(alnseq1);\n Matrix distab1 = a.getDisTable1();\n a.setDisTable1(a.getDisTable2());\n a.setDisTable2(distab1);\n int[] focusRes1 = a.getFocusRes1();\n a.setFocusRes1(a.getFocusRes2());\n a.setFocusRes2(focusRes1);\n String[][][] pdbAln = a.getPdbAln();\n if (pdbAln != null) {\n for (int block = 0; block < a.getBlockNum(); block++) {\n String[] paln1 = pdbAln[block][0];\n pdbAln[block][0] = pdbAln[block][1];\n pdbAln[block][1] = paln1;\n }\n }\n int[][][] optAln = a.getOptAln();\n int[] optLen = a.getOptLen();\n if (optAln != null) {\n for (int block = 0; block < a.getBlockNum(); block++) {\n int[] aln1 = optAln[block][0];\n optAln[block][0] = optAln[block][1];\n optAln[block][1] = aln1;\n }\n }\n a.setOptAln(optAln);\n Matrix distmat = a.getDistanceMatrix();\n if (distmat != null)\n a.setDistanceMatrix(distmat.transpose());\n Matrix[] blockRotMat = a.getBlockRotationMatrix();\n Atom[] shiftVec = a.getBlockShiftVector();\n if (blockRotMat != null) {\n for (int block = 0; block < a.getBlockNum(); block++) {\n if (blockRotMat[block] != null) {\n blockRotMat[block] = blockRotMat[block].inverse();\n try {\n shiftVec[block] = Calc.invert(shiftVec[block]);\n } catch (StructureException e) {\n }\n }\n }\n }\n return a;\n}\n"
"public String getDisplayExpression() {\n if (cmbDefinition != null && isTableSharedBinding()) {\n Object[] data = (Object[]) cmbDefinition.getData();\n for (int i = 0; data != null && i < data.length; i++) {\n ColumnBindingInfo chi = (ColumnBindingInfo) data[i];\n if (chi.getExpression().equals(query.getDefinition())) {\n if (queryType == ChartUIConstants.QUERY_CATEGORY || queryType == ChartUIConstants.QUERY_OPTIONAL) {\n boolean sdGrouped = seriesdefinition.getGrouping().isEnabled();\n boolean groupedBinding = (chi.getColumnType() == ColumnBindingInfo.GROUP_COLUMN);\n if (sdGrouped == groupedBinding) {\n String expr = cmbDefinition.getItem(i);\n return (expr == null) ? \"String_Node_Str\" : expr;\n }\n }\n }\n }\n return query.getDefinition();\n } else {\n return query.getDefinition();\n }\n}\n"
"public void setAllowFlight(boolean flight) {\n throw new NotImplementedException();\n}\n"
"public void hide() {\n richTextEditor.destroy();\n richTextEditor.asWidget().setVisible(false);\n if (amendableWidget != null)\n amendableWidget.asWidget().setVisible(true);\n}\n"
"private void onBufferDraw(Canvas canvas) {\n if (mKeyboardChanged) {\n invalidateAllKeys();\n mKeyboardChanged = false;\n }\n canvas.getClipBounds(mDirtyRect);\n if (mKeyboard == null)\n return;\n final boolean drawKeyboardNameText = (mKeyboardNameTextSize > 1f) && AnyApplication.getConfig().getShowKeyboardNameText();\n final boolean drawHintText = (mHintTextSize > 1) && AnyApplication.getConfig().getShowHintTextOnKeys();\n final boolean useCustomKeyTextColor = false;\n final ColorStateList keyTextColor = useCustomKeyTextColor ? new ColorStateList(new int[][] { { 0 } }, new int[] { 0xFF6666FF }) : mKeyTextColor;\n final boolean useCustomHintColor = drawHintText && false;\n final ColorStateList hintColor = useCustomHintColor ? new ColorStateList(new int[][] { { 0 } }, new int[] { 0xFFFF6666 }) : mHintTextColor;\n final boolean useCustomHintAlign = drawHintText && AnyApplication.getConfig().getUseCustomHintAlign();\n final int hintAlign = useCustomHintAlign ? AnyApplication.getConfig().getCustomHintAlign() : mHintLabelAlign;\n final int hintVAlign = useCustomHintAlign ? AnyApplication.getConfig().getCustomHintVAlign() : mHintLabelVAlign;\n final Paint paint = mPaint;\n final Drawable keyBackground = mKeyBackground;\n final Rect clipRegion = mClipRegion;\n final int kbdPaddingLeft = getPaddingLeft();\n final int kbdPaddingTop = getPaddingTop();\n final Key[] keys = mKeys;\n final Key invalidKey = mInvalidatedKey;\n boolean drawSingleKey = false;\n if (invalidKey != null && canvas.getClipBounds(clipRegion)) {\n if (invalidKey.x + kbdPaddingLeft - 1 <= clipRegion.left && invalidKey.y + kbdPaddingTop - 1 <= clipRegion.top && invalidKey.x + invalidKey.width + kbdPaddingLeft + 1 >= clipRegion.right && invalidKey.y + invalidKey.height + kbdPaddingTop + 1 >= clipRegion.bottom) {\n drawSingleKey = true;\n }\n }\n for (Key keyBase : keys) {\n final AnyKey key = (AnyKey) keyBase;\n final boolean keyIsSpace = isSpaceKey(key);\n if (drawSingleKey && (invalidKey != key)) {\n continue;\n }\n if (!mDirtyRect.intersects(key.x + kbdPaddingLeft, key.y + kbdPaddingTop, key.x + key.width + kbdPaddingLeft, key.y + key.height + kbdPaddingTop)) {\n continue;\n }\n int[] drawableState = key.getCurrentDrawableState(mDrawableStatesProvider);\n if (keyIsSpace)\n paint.setColor(mKeyboardNameTextColor.getColorForState(drawableState, 0xFF000000));\n else\n paint.setColor(keyTextColor.getColorForState(drawableState, 0xFF000000));\n keyBackground.setState(drawableState);\n CharSequence label = key.label == null ? null : adjustCase(key).toString();\n final Rect bounds = keyBackground.getBounds();\n if ((key.width != bounds.right) || (key.height != bounds.bottom)) {\n keyBackground.setBounds(0, 0, key.width, key.height);\n }\n canvas.translate(key.x + kbdPaddingLeft, key.y + kbdPaddingTop);\n keyBackground.draw(canvas);\n if (TextUtils.isEmpty(label)) {\n Drawable iconToDraw = getIconToDrawForKey(key, false);\n if (iconToDraw != null) {\n final boolean is9Patch = iconToDraw.getCurrent() instanceof NinePatchDrawable;\n final int drawableWidth;\n final int drawableHeight;\n final int drawableX;\n final int drawableY;\n drawableWidth = is9Patch ? key.width : iconToDraw.getIntrinsicWidth();\n drawableHeight = is9Patch ? key.height : iconToDraw.getIntrinsicHeight();\n drawableX = (key.width + mKeyBackgroundPadding.left - mKeyBackgroundPadding.right - drawableWidth) / 2;\n drawableY = (key.height + mKeyBackgroundPadding.top - mKeyBackgroundPadding.bottom - drawableHeight) / 2;\n canvas.translate(drawableX, drawableY);\n iconToDraw.setBounds(0, 0, drawableWidth, drawableHeight);\n iconToDraw.draw(canvas);\n canvas.translate(-drawableX, -drawableY);\n if (keyIsSpace && drawKeyboardNameText) {\n label = mKeyboardName;\n }\n } else {\n label = guessLabelForKey(key.codes[0]);\n if (TextUtils.isEmpty(label)) {\n Log.w(TAG, \"String_Node_Str\" + key.codes[0] + \"String_Node_Str\" + key.x + \"String_Node_Str\" + key.y + \"String_Node_Str\" + mKeyboardActionType);\n }\n }\n }\n if (label != null) {\n final FontMetrics fm;\n if (keyIsSpace) {\n paint.setTextSize(mKeyboardNameTextSize);\n paint.setTypeface(Typeface.DEFAULT_BOLD);\n if (mKeyboardNameFM == null)\n mKeyboardNameFM = paint.getFontMetrics();\n fm = mKeyboardNameFM;\n } else if (label.length() > 1 && key.codes.length < 2) {\n setPaintForLabelText(paint);\n if (mLabelFM == null)\n mLabelFM = paint.getFontMetrics();\n fm = mLabelFM;\n } else {\n setPaintToKeyText(paint);\n if (mTextFM == null)\n mTextFM = paint.getFontMetrics();\n fm = mTextFM;\n }\n final float labelHeight = -fm.top;\n paint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mShadowColor);\n float textWidth = paint.measureText(label, 0, label.length());\n if (textWidth > key.width) {\n Log.d(TAG, \"String_Node_Str\" + label + \"String_Node_Str\");\n paint.setTextSize(mKeyTextSize / 1.5f);\n textWidth = paint.measureText(label, 0, label.length());\n if (textWidth > key.width) {\n Log.d(TAG, \"String_Node_Str\" + label + \"String_Node_Str\");\n paint.setTextSize(mKeyTextSize / 2.5f);\n textWidth = paint.measureText(label, 0, label.length());\n if (textWidth > key.width) {\n Log.d(TAG, \"String_Node_Str\" + label + \"String_Node_Str\");\n paint.setTextSize(0f);\n textWidth = paint.measureText(label, 0, label.length());\n }\n }\n }\n final float centerY = mKeyBackgroundPadding.top + ((key.height - mKeyBackgroundPadding.top - mKeyBackgroundPadding.bottom) / (keyIsSpace ? 3 : 2));\n final float textX = mKeyBackgroundPadding.left + (key.width - mKeyBackgroundPadding.left - mKeyBackgroundPadding.right) / 2;\n final float textY;\n if (label.length() > 1 && !AnyApplication.getConfig().workaround_alwaysUseDrawText()) {\n textY = centerY - ((labelHeight - paint.descent()) / 2);\n canvas.translate(textX, textY);\n Log.d(TAG, \"String_Node_Str\" + label + \"String_Node_Str\");\n StaticLayout labelText = new StaticLayout(label, new TextPaint(paint), (int) textWidth, Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);\n labelText.draw(canvas);\n } else {\n textY = centerY + ((labelHeight - paint.descent()) / 2);\n canvas.translate(textX, textY);\n canvas.drawText(label, 0, label.length(), 0, 0, paint);\n }\n canvas.translate(-textX, -textY);\n paint.setShadowLayer(0, 0, 0, 0);\n }\n if (drawHintText) {\n if ((key.popupCharacters != null && key.popupCharacters.length() > 0) || (key.popupResId != 0) || (key.longPressCode != 0)) {\n Align oldAlign = paint.getTextAlign();\n String hintText = null;\n if (key.hintLabel != null && key.hintLabel.length() > 0) {\n hintText = key.hintLabel.toString();\n } else if (key.longPressCode != 0) {\n if (Character.isLetterOrDigit(key.longPressCode))\n hintText = Character.toString((char) key.longPressCode);\n } else if (key.popupCharacters != null) {\n final String hintString = key.popupCharacters.toString();\n final int hintLength = hintString.length();\n if (hintLength <= 3)\n hintText = hintString;\n }\n if (hintText == null) {\n if (mHintOverflowLabel != null)\n hintText = mHintOverflowLabel;\n else {\n if (hintVAlign == Gravity.TOP)\n hintText = \"String_Node_Str\";\n else\n hintText = \"String_Node_Str\";\n }\n }\n if (mKeyboard.isShifted())\n hintText = hintText.toUpperCase(getKeyboard().getLocale());\n paint.setTypeface(Typeface.DEFAULT);\n paint.setColor(hintColor.getColorForState(drawableState, 0xFF000000));\n paint.setTextSize(mHintTextSize);\n if (mHintTextFM == null) {\n mHintTextFM = paint.getFontMetrics();\n }\n final float hintX;\n final float hintY;\n if (hintAlign == Gravity.START) {\n paint.setTextAlign(Align.LEFT);\n hintX = mKeyBackgroundPadding.left + (float) 0.5;\n } else if (hintAlign == Gravity.CENTER) {\n paint.setTextAlign(Align.CENTER);\n hintX = mKeyBackgroundPadding.left + (key.width - mKeyBackgroundPadding.left - mKeyBackgroundPadding.right) / 2;\n } else {\n paint.setTextAlign(Align.RIGHT);\n hintX = key.width - mKeyBackgroundPadding.right - (float) 0.5;\n }\n if (hintVAlign == Gravity.TOP) {\n hintY = mKeyBackgroundPadding.top - mHintTextFM.top + (float) 0.5;\n } else {\n hintY = key.height - mKeyBackgroundPadding.bottom - mHintTextFM.bottom - (float) 0.5;\n }\n canvas.drawText(hintText, hintX, hintY, paint);\n paint.setTextAlign(oldAlign);\n }\n }\n canvas.translate(-key.x - kbdPaddingLeft, -key.y - kbdPaddingTop);\n }\n mInvalidatedKey = null;\n if (mMiniKeyboardPopup.isShowing()) {\n paint.setColor((int) (mBackgroundDimAmount * 0xFF) << 24);\n canvas.drawRect(0, 0, getWidth(), getHeight(), paint);\n }\n mDrawPending = false;\n mDirtyRect.setEmpty();\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_analytics_terms, container, false);\n myWebView = (WebView) rootView.findViewById(R.id.webview);\n myWebView.setWebViewClient(new MyWebViewClient(getActivity()));\n myWebView.getSettings().setJavaScriptEnabled(true);\n myWebView.loadUrl(\"String_Node_Str\");\n return rootView;\n}\n"
"public void init(Ability source, Game game) {\n super.init(source, game);\n Permanent permanent = game.getPermanent(this.targetPointer.getFirst(game, source));\n if (permanent != null) {\n FilterCreaturePermanent filter = new FilterCreaturePermanent();\n filter.add(Predicates.not(new PermanentIdPredicate(this.targetPointer.getFirst(game, source))));\n filter.add(new AttackingPredicate());\n boolean isChangeling = false;\n for (Ability ability : permanent.getAbilities()) {\n if (ability instanceof ChangelingAbility) {\n isChangeling = true;\n }\n }\n if (!isChangeling) {\n ArrayList<Predicate<MageObject>> predicateList = new ArrayList<>();\n for (String subtype : permanent.getSubtype()) {\n predicateList.add(new SubtypePredicate(subtype));\n }\n filter.add(Predicates.or(predicateList));\n }\n power = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getId(), game).size();\n }\n targetPointer.init(game, source);\n}\n"
"public Iterator<ResultRowImpl> getRows() {\n prepare();\n if (explain) {\n String plan = getPlan();\n columns = new ColumnImpl[] { new ColumnImpl(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\") };\n ResultRowImpl r = new ResultRowImpl(this, Tree.EMPTY_ARRAY, new PropertyValue[] { PropertyValues.newString(plan) }, null);\n return Arrays.asList(r).iterator();\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\", statement);\n LOG.debug(\"String_Node_Str\", getPlan());\n }\n RowIterator rowIt = new RowIterator(context.getBaseState());\n Comparator<ResultRowImpl> orderBy;\n boolean sortUsingIndex = false;\n if (orderings != null && selectors.size() == 1) {\n IndexPlan plan = selectors.get(0).getExecutionPlan().getIndexPlan();\n if (plan != null) {\n List<OrderEntry> list = plan.getSortOrder();\n if (list != null && list.size() == orderings.length) {\n sortUsingIndex = true;\n for (int i = 0; i < list.size(); i++) {\n OrderEntry e = list.get(i);\n OrderingImpl o = orderings[i];\n DynamicOperandImpl op = o.getOperand();\n if (!(op instanceof PropertyValueImpl)) {\n sortUsingIndex = false;\n break;\n }\n String pn = ((PropertyValueImpl) op).getPropertyName();\n if (!pn.equals(e.getPropertyName())) {\n sortUsingIndex = false;\n break;\n }\n if (o.isDescending() != (e.getOrder() == Order.DESCENDING)) {\n sortUsingIndex = false;\n break;\n }\n }\n }\n }\n }\n if (sortUsingIndex) {\n orderBy = null;\n } else {\n orderBy = ResultRowImpl.getComparator(orderings);\n }\n Iterator<ResultRowImpl> it = FilterIterators.newCombinedFilter(rowIt, distinct, limit, offset, orderBy);\n if (measure) {\n while (it.hasNext()) {\n it.next();\n }\n columns = new ColumnImpl[] { new ColumnImpl(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), new ColumnImpl(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\") };\n ArrayList<ResultRowImpl> list = new ArrayList<ResultRowImpl>();\n ResultRowImpl r = new ResultRowImpl(this, Tree.EMPTY_ARRAY, new PropertyValue[] { PropertyValues.newString(\"String_Node_Str\"), PropertyValues.newLong(rowIt.getReadCount()) }, null);\n list.add(r);\n for (SelectorImpl selector : selectors) {\n r = new ResultRowImpl(this, Tree.EMPTY_ARRAY, new PropertyValue[] { PropertyValues.newString(selector.getSelectorName()), PropertyValues.newLong(selector.getScanCount()) }, null);\n list.add(r);\n }\n it = list.iterator();\n }\n return it;\n}\n"
"public Object getControl(String controlType) {\n try {\n Class<?> cls = Class.forName(controlType);\n Object[] cs = getControls();\n for (int i = 0; i < cs.length; i++) {\n if (cls.isInstance(cs[i]))\n return cs[i];\n }\n return null;\n } catch (Exception e) {\n return null;\n }\n}\n"
"public <T> Entity<T> reloadEntity(Dao dao, Class<T> classOfT) {\n final Entity<T> re = maker.make(classOfT);\n synchronized (map) {\n map.put(classOfT, re);\n }\n support.expert.createEntity(dao, re);\n support.run(new ConnCallback() {\n public void invoke(Connection conn) throws Exception {\n support.expert.setupEntityField(conn, re);\n }\n });\n return re;\n}\n"
"public char[] getCompletionProposalAutoActivationCharacters() {\n return new char[] { '.' };\n}\n"
"private void processHighEnergyCepstrum(Cepstrum cepstrum) {\n if (location == BELOW_START_LOW) {\n if (outputQueue.size() > 0) {\n setLastStartLowFrame((Cepstrum) outputQueue.getFirst());\n }\n }\n if (startHighFrames > startWindow) {\n if (!inSpeech) {\n speechStart();\n } else {\n endLowFrames = 0;\n endOffsetFrame = null;\n }\n } else {\n startHighFrames++;\n }\n location = ABOVE_START_HIGH;\n}\n"
"public boolean execute(Player plr, String... args) {\n if (args.length < 1) {\n PlayerFunctions.sendMessage(plr, C.NEED_USER);\n return true;\n }\n String username = args[0];\n UUID uuid = UUIDHandler.getUUID(username);\n List<Plot> plots = null;\n if (uuid != null) {\n plots = getPlots(uuid);\n }\n if (uuid == null || plots.isEmpty()) {\n PlayerFunctions.sendMessage(plr, C.FOUND_NO_PLOTS);\n return true;\n }\n if (args.length < 2) {\n Plot plot = plots.get(0);\n PlotMain.teleportPlayer(plr, plr.getLocation(), plot);\n return true;\n }\n int i;\n try {\n i = Integer.parseInt(args[1]);\n } catch (Exception e) {\n PlayerFunctions.sendMessage(plr, C.NOT_VALID_NUMBER);\n return true;\n }\n if ((i < 0) || (i > plots.size())) {\n PlayerFunctions.sendMessage(plr, C.NOT_VALID_NUMBER);\n return true;\n }\n Plot plot = plots.get(i);\n PlotMain.teleportPlayer(plr, plr.getLocation(), plot);\n return true;\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (savedInstanceState == null)\n savedInstanceState = lastInstanceState;\n getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);\n View view = inflater.inflate(R.layout.dialog_login, container);\n progressHolder = view.findViewById(R.id.progressHolder);\n progressHolder.setVisibility(View.VISIBLE);\n if (savedInstanceState != null) {\n progressHolder.setVisibility(savedInstanceState.getInt(STATE_PROGRESS_VISIBLE, View.VISIBLE));\n }\n webView = createWebView(savedInstanceState);\n FrameLayout webViewHolder = (FrameLayout) view.findViewById(R.id.webViewPlaceholder);\n webViewHolder.addView(webView, new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n return view;\n}\n"
"protected void generateComponentSchemaInfo(INode node, Element componentElement) {\n List metaDataList = node.getMetadataList();\n Element schemasElement = null;\n if (metaDataList != null && metaDataList.size() != 0) {\n schemasElement = componentElement.addElement(\"String_Node_Str\");\n boolean isBuiltIn = node.getConnectorFromName(EConnectionType.FLOW_MAIN.getName()).isMultiSchema() || node.getConnectorFromName(EConnectionType.TABLE.getName()).isMultiSchema();\n for (int j = 0; j < metaDataList.size(); j++) {\n if ((!isBuiltIn) && (j > 0)) {\n break;\n }\n IMetadataTable table = (IMetadataTable) metaDataList.get(j);\n List columnTypeList = table.getListColumns();\n Element schemaElement = schemasElement.addElement(\"String_Node_Str\");\n String metaName = table.getLabel();\n if (metaName == null) {\n metaName = table.getTableName();\n }\n schemaElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(metaName));\n boolean dbComponent = false;\n if (node.getComponent().getOriginalFamilyName().startsWith(\"String_Node_Str\") || node.getComponent().getOriginalFamilyName().startsWith(\"String_Node_Str\")) {\n dbComponent = true;\n }\n for (int k = 0; k < columnTypeList.size(); k++) {\n IMetadataColumn columnType = (IMetadataColumn) columnTypeList.get(k);\n Element columnElement = schemaElement.addElement(\"String_Node_Str\");\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(columnType.getLabel()));\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(columnType.isKey() + \"String_Node_Str\"));\n String type = HTMLDocUtils.checkString(columnType.getTalendType());\n if (node.getComponent().getOriginalFamilyName().startsWith(\"String_Node_Str\")) {\n type = HTMLDocUtils.checkString(columnType.getType());\n } else if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.JAVA)) {\n type = JavaTypesManager.getTypeToGenerate(columnType.getTalendType(), columnType.isNullable());\n }\n columnElement.addAttribute(\"String_Node_Str\", type);\n String length;\n if ((columnType.getLength() == null) || (columnType.getLength() == 0)) {\n length = \"String_Node_Str\";\n } else {\n length = String.valueOf(columnType.getLength());\n }\n columnElement.addAttribute(\"String_Node_Str\", length);\n String precision;\n if ((columnType.getPrecision() == null) || (columnType.getPrecision() == 0)) {\n precision = \"String_Node_Str\";\n } else {\n precision = String.valueOf(columnType.getPrecision());\n }\n columnElement.addAttribute(\"String_Node_Str\", precision);\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(columnType.isNullable() + \"String_Node_Str\"));\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(ElementParameterParser.parse(node, columnType.getComment())));\n if (PluginChecker.isDatacertPluginLoaded()) {\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(ElementParameterParser.parse(node, columnType.getRelatedEntity())));\n columnElement.addAttribute(\"String_Node_Str\", HTMLDocUtils.checkString(ElementParameterParser.parse(node, columnType.getRelationshipType())));\n }\n }\n }\n }\n}\n"
"void createInformationSection(final ScrolledForm form, Composite topComp) {\n infomatioinSection = createSection(form, topComp, DefaultMessagesImpl.getString(\"String_Node_Str\"), false, DefaultMessagesImpl.getString(\"String_Node_Str\"));\n Composite sectionClient = toolkit.createComposite(infomatioinSection);\n sectionClient.setLayout(new GridLayout(2, false));\n Label loginLabel = new Label(sectionClient, SWT.NONE);\n loginLabel.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n loginText = new Text(sectionClient, SWT.BORDER);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(loginText);\n Label passwordLabel = new Label(sectionClient, SWT.NONE);\n passwordLabel.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n passwordText = new Text(sectionClient, SWT.BORDER | SWT.PASSWORD);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(passwordText);\n TdProviderConnection connection = DataProviderHelper.getTdProviderConnection(tdDataProvider).getObject();\n String loginValue = DataProviderHelper.getClearTextUser(connection);\n loginText.setText(loginValue == null ? PluginConstant.EMPTY_STRING : loginValue);\n String passwordValue = DataProviderHelper.getClearTextPassword(connection);\n passwordText.setText(passwordValue == null ? PluginConstant.EMPTY_STRING : passwordValue);\n Label urlLabel = new Label(sectionClient, SWT.NONE);\n urlLabel.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n urlText = new Text(sectionClient, SWT.BORDER);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(urlText);\n TypedReturnCode<TdProviderConnection> trc = DataProviderHelper.getTdProviderConnection(tdDataProvider);\n String urlValue = (trc.isOk()) ? trc.getObject().getConnectionString() : PluginConstant.EMPTY_STRING;\n urlText.setText(urlValue == null ? PluginConstant.EMPTY_STRING : urlValue);\n urlText.setEnabled(false);\n if (trc.getObject().getDriverClassName().startsWith(\"String_Node_Str\")) {\n loginText.setEnabled(false);\n passwordText.setEnabled(false);\n }\n ModifyListener listener = new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n };\n loginText.addModifyListener(listener);\n passwordText.addModifyListener(listener);\n infomatioinSection.setClient(sectionClient);\n}\n"
"public String getPageTitle(int position) {\n if (position == 0)\n return activity_context.getString(R.string.groups_manage_sub);\n else\n return getString(R.string.feeds_manage_sub);\n}\n"
"private void prepareWorkingDirectory() throws IOException {\n FileUtils.forceMkdir(workingDirectory);\n FileUtils.cleanDirectory(workingDirectory);\n webappDirectory.mkdirs();\n libDirectory.mkdirs();\n configurationDirectory.mkdirs();\n binDirectory.mkdirs();\n}\n"
"public HashMap<String, String> readFrom(Class<HashMap<String, String>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> headers, InputStream in) throws IOException {\n HashMap map = new HashMap();\n try {\n obj = new JSONObject(inputStreamAsString(in));\n Iterator iter = obj.keys();\n HashMap map = new HashMap();\n while (iter.hasNext()) {\n String k = (String) iter.next();\n map.put(k, \"String_Node_Str\" + obj.get(k));\n }\n return map;\n } catch (Exception ex) {\n HashMap map = new HashMap();\n map.put(\"String_Node_Str\", \"String_Node_Str\" + ex.getMessage());\n return map;\n }\n}\n"
"private void updateSources(float deltaTime) {\n Iterator<PlayingSource> iterator = playingSources.keySet().iterator();\n while (iterator.hasNext()) {\n PlayingSource playingSource = iterator.next();\n ALSource source = playingSource.alSource;\n AudioSource audioSource = playingSources.get(playingSource);\n if (audioSource.updated) {\n source.setParameter(AL_POSITION, audioSource.position);\n source.setParameter(AL_VELOCITY, audioSource.velocity);\n source.setParameter(AL_DIRECTION, audioSource.direction);\n audioSource.updated = false;\n }\n if (source.getState() != ALSource.State.PLAYING) {\n playingSources.remove(playingSource);\n sourcesPool.push(source);\n playingSourcesPool.push(playingSource);\n }\n }\n}\n"
"protected static String getJsonResponse(String url) {\n String response = \"String_Node_Str\";\n Log.v(\"String_Node_Str\", url);\n DefaultHttpClient client = new DefaultHttpClient();\n HttpGet httpGet = new HttpGet(url);\n try {\n HttpResponse execute = client.execute(httpGet);\n int statusCode = execute.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n Log.e(\"String_Node_Str\", \"String_Node_Str\");\n throw new Exception();\n } else {\n InputStream content = execute.getEntity().getContent();\n BufferedReader buffer = new BufferedReader(new InputStreamReader(content));\n String s = \"String_Node_Str\";\n while ((s = buffer.readLine()) != null) {\n response += s;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (response == \"String_Node_Str\") {\n throw new Exception();\n } else {\n return response;\n }\n}\n"
"public TableDefinition buildBRANCHB_LEAFBTable() {\n TableDefinition table = new TableDefinition();\n table.setName(\"String_Node_Str\");\n FieldDefinition fieldLEAFB_ID = new FieldDefinition();\n fieldLEAFB_ID.setName(\"String_Node_Str\");\n fieldLEAFB_ID.setTypeName(\"String_Node_Str\");\n fieldLEAFB_ID.setSize(0);\n fieldLEAFB_ID.setSubSize(0);\n fieldLEAFB_ID.setIsPrimaryKey(true);\n fieldLEAFB_ID.setIsIdentity(false);\n fieldLEAFB_ID.setUnique(false);\n fieldLEAFB_ID.setShouldAllowNull(false);\n table.addField(fieldLEAFB_ID);\n FieldDefinition fieldBRANCHB_ID = new FieldDefinition();\n fieldBRANCHB_ID.setName(\"String_Node_Str\");\n fieldBRANCHB_ID.setTypeName(\"String_Node_Str\");\n fieldBRANCHB_ID.setSize(0);\n fieldBRANCHB_ID.setSubSize(0);\n fieldBRANCHB_ID.setIsPrimaryKey(true);\n fieldBRANCHB_ID.setIsIdentity(false);\n fieldBRANCHB_ID.setUnique(false);\n fieldBRANCHB_ID.setShouldAllowNull(true);\n table.addField(fieldBRANCHB_ID);\n ForeignKeyConstraint foreignKeyBRANCHB_LEAFB_LEAFB = new ForeignKeyConstraint();\n foreignKeyBRANCHB_LEAFB_LEAFB.setName(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_LEAFB.setTargetTable(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_LEAFB.addSourceField(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_LEAFB.addTargetField(\"String_Node_Str\");\n table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_LEAFB);\n ForeignKeyConstraint foreignKeyBRANCHB_LEAFB_BRANCHB2 = new ForeignKeyConstraint();\n foreignKeyBRANCHB_LEAFB_BRANCHB2.setName(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_BRANCHB2.setTargetTable(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_BRANCHB2.addSourceField(\"String_Node_Str\");\n foreignKeyBRANCHB_LEAFB_BRANCHB2.addTargetField(\"String_Node_Str\");\n table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_BRANCHB2);\n return table;\n}\n"
"public List<GroupDistanceWarning> getGroupWarnings(List<String> agentIDs, List<String> sharedThingIDs) throws NotFoundException, InfosphereException, RepositoryException, ClassCastException {\n List<GroupDistanceWarning> warnings = new ArrayList<GroupDistanceWarning>();\n List<String> sharedSingleElements = new ArrayList<String>();\n for (String res : sharedThingIDs) {\n URI resUri = new URIImpl(res);\n if (getResourceStore().isTypedAs(resUri, PPO.PrivacyPreference)) {\n sharedSingleElements.addAll(getAllItemsInDataboxAsString(resUri));\n } else {\n sharedSingleElements.add(res);\n }\n }\n for (String res_uri : sharedSingleElements) {\n RDFReactorThing thing = getResource(new URIImpl(res_uri));\n List<Resource> related_groups = thing.getAllIsRelated_as().asList();\n if ((related_groups == null) || (related_groups.isEmpty())) {\n continue;\n }\n HashedMap targetGroups = getGroupList(agentIDs);\n MapIterator it = targetGroups.mapIterator();\n while (it.hasNext()) {\n String element_key = (String) it.next();\n PersonGroup groupA = (PersonGroup) getResourceStore().get(new URIImpl(element_key), PersonGroup.class);\n List<Resource> a = groupA.getAllIsRelated_as().asList();\n if (a.contains(thing)) {\n targetGroups.remove(element_key);\n }\n }\n MapIterator it2 = targetGroups.mapIterator();\n while (it2.hasNext()) {\n String target_element_key = (String) it2.next();\n URI targetURI = new URIImpl(target_element_key);\n if (getResourceStore().isTypedAs(targetURI, PIMO.PersonGroup)) {\n for (Resource groupRes : related_groups) {\n if (getResourceStore().isTypedAs(groupRes, PIMO.PersonGroup)) {\n PersonGroup groupA = (PersonGroup) getResourceStore().get(groupRes.asURI(), PersonGroup.class);\n PersonGroup groupB = (PersonGroup) getResourceStore().get(targetURI.asURI(), PersonGroup.class);\n double distance = GroupDistanceProcessor.getGroupDistance(groupA, groupB);\n if (distance > AdvisoryConstants.MIN_GROUP_DISTANCE) {\n GroupDistanceWarning warning = new GroupDistanceWarning();\n warning.addGroup(groupRes.toString());\n warning.addResource(res_uri);\n warning.setWarningLevel(distance);\n warnings.add(warning);\n }\n }\n }\n }\n }\n }\n return warnings;\n}\n"
"public boolean match(IMethodName rMethod) {\n String rName = rMethod.getName();\n ITypeName[] rParams = rMethod.getParameterTypes();\n if (!rName.equals(proposedMethod.getName())) {\n return false;\n }\n if (rParams.length != jParams.length) {\n return false;\n }\n for (int i = rParams.length; i-- > 0; ) {\n if (!rParams[i].equals(jParams[i])) {\n return false;\n }\n }\n return true;\n}\n"
"public String updateComment() {\n try {\n String frontEndCaseDataIn = extractWidgetConfig(\"String_Node_Str\");\n this.setFrontEndCaseData(frontEndCaseDataIn);\n String channelIn = extractWidgetConfig(\"String_Node_Str\");\n this.setChannel(channelIn);\n if (this.getChannelPath().equalsIgnoreCase(this.getChannel())) {\n this.getCaseManager().setKieServerConfiguration(this.getKnowledgeSourceId());\n this.getCaseManager().updateCaseComments(this.getContainerid(), this.getCasePath(), this.getCaseCommentId(), this.getCommentInput());\n this.setComments(this.getCaseManager().getCaseComments(this.getContainerid(), this.getCasePath()).toString());\n }\n } catch (ApsSystemException t) {\n logger.error(\"String_Node_Str\", t);\n return FAILURE;\n }\n return SUCCESS;\n}\n"
"public void startRequest(MRCRequest rq) {\n try {\n final listxattrRequest rqArgs = (listxattrRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n final Path p = new Path(rqArgs.getPath());\n final VolumeInfo volume = vMan.getVolumeByName(p.getComp(0));\n final StorageManager sMan = vMan.getStorageManager(volume.getId());\n final PathResolver res = new PathResolver(sMan, p);\n faMan.checkSearchPermission(sMan, res, rq.getDetails().userId, rq.getDetails().superUser, rq.getDetails().groupIds);\n res.checkIfFileDoesNotExist();\n FileMetadata file = res.getFile();\n HashSet<String> attrNames = new HashSet<String>();\n Iterator<XAttr> myAttrs = sMan.getXAttrs(file.getId(), rq.getDetails().userId);\n Iterator<XAttr> globalAttrs = sMan.getXAttrs(file.getId(), StorageManager.GLOBAL_ID);\n while (globalAttrs.hasNext()) attrNames.add(globalAttrs.next().getKey());\n while (myAttrs.hasNext()) attrNames.add(myAttrs.next().getKey());\n for (SysAttrs attr : SysAttrs.values()) {\n String key = \"String_Node_Str\" + attr.toString();\n Object value = MRCHelper.getSysAttrValue(master.getConfig(), sMan, master.getOSDStatusManager(), volume, res.toString(), file, attr.toString());\n if (!value.equals(\"String_Node_Str\"))\n attrNames.add(key);\n }\n StringSet names = new StringSet();\n Iterator<String> it = attrNames.iterator();\n while (it.hasNext()) names.add(it.next());\n rq.setResponse(new listxattrResponse(names));\n finishRequest(rq);\n } catch (UserException exc) {\n Logging.logMessage(Logging.LEVEL_TRACE, this, exc);\n finishRequest(rq, new ErrorRecord(ErrorClass.USER_EXCEPTION, exc.getErrno(), exc.getMessage(), exc));\n } catch (Throwable exc) {\n finishRequest(rq, new ErrorRecord(ErrorClass.INTERNAL_SERVER_ERROR, \"String_Node_Str\", exc));\n }\n}\n"
"private void startRecordingVideo(int cameraId) {\n if (null == mCameraDevice[cameraId]) {\n return;\n }\n Log.d(TAG, \"String_Node_Str\" + cameraId);\n mIsRecordingVideo = true;\n mMediaRecorderPausing = false;\n mUI.hideUIwhileRecording();\n mUI.clearFocus();\n mCameraHandler.removeMessages(CANCEL_TOUCH_FOCUS, cameraId);\n mState[cameraId] = STATE_PREVIEW;\n mControlAFMode = CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE;\n closePreviewSession();\n mFrameProcessor.onClose();\n boolean changed = mUI.setPreviewSize(mVideoPreviewSize.getWidth(), mVideoPreviewSize.getHeight());\n if (changed) {\n mUI.hideSurfaceView();\n mUI.showSurfaceView();\n }\n try {\n setUpMediaRecorder(cameraId);\n createVideoSnapshotImageReader();\n final CaptureRequest.Builder mPreviewBuilder = mCameraDevice[cameraId].createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n List<Surface> surfaces = new ArrayList<>();\n Surface surface = getPreviewSurfaceForSession(cameraId);\n mFrameProcessor.init(mVideoSize);\n if (mFrameProcessor.isFrameFilterEnabled()) {\n mActivity.runOnUiThread(new Runnable() {\n public void run() {\n mUI.getSurfaceHolder().setFixedSize(mVideoSize.getHeight(), mVideoSize.getWidth());\n }\n });\n }\n mFrameProcessor.setOutputSurface(surface);\n mFrameProcessor.setVideoOutputSurface(mMediaRecorder.getSurface());\n addPreviewSurface(mPreviewBuilder, surfaces, cameraId);\n if (!mHighSpeedCapture)\n surfaces.add(mVideoSnapshotImageReader.getSurface());\n else\n mPreviewBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, mHighSpeedFPSRange);\n if (!mHighSpeedCapture) {\n mCameraDevice[cameraId].createCaptureSession(surfaces, new CameraCaptureSession.StateCallback() {\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n Log.d(TAG, \"String_Node_Str\");\n mCurrentSession = cameraCaptureSession;\n try {\n setUpVideoCaptureRequestBuilder(mPreviewBuilder);\n mCurrentSession.setRepeatingRequest(mPreviewBuilder.build(), null, mCameraHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n mMediaRecorder.start();\n mUI.clearFocus();\n mUI.resetPauseButton();\n mRecordingTotalTime = 0L;\n mRecordingStartTime = SystemClock.uptimeMillis();\n mUI.showRecordingUI(true);\n updateRecordingTime();\n }\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n Toast.makeText(mActivity, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n }\n }, null);\n } else {\n mCameraDevice[cameraId].createConstrainedHighSpeedCaptureSession(surfaces, new CameraConstrainedHighSpeedCaptureSession.StateCallback() {\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n mCurrentSession = cameraCaptureSession;\n CameraConstrainedHighSpeedCaptureSession session = (CameraConstrainedHighSpeedCaptureSession) mCurrentSession;\n try {\n List list = session.createHighSpeedRequestList(mPreviewBuilder.build());\n session.setRepeatingBurst(list, null, mCameraHandler);\n } catch (CameraAccessException e) {\n Log.e(TAG, \"String_Node_Str\" + e.getMessage());\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n Log.e(TAG, \"String_Node_Str\" + e.getMessage());\n e.printStackTrace();\n } catch (IllegalStateException e) {\n Log.e(TAG, \"String_Node_Str\" + e.getMessage());\n e.printStackTrace();\n }\n mMediaRecorder.start();\n mUI.clearFocus();\n mUI.resetPauseButton();\n mRecordingTotalTime = 0L;\n mRecordingStartTime = SystemClock.uptimeMillis();\n mUI.showRecordingUI(true);\n updateRecordingTime();\n }\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n Toast.makeText(mActivity, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n }\n }, null);\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
"public Data addDateTime(Object txt, IStyle style, HyperlinkDef link, BookmarkDef bookmark, String dateTimeLocale, float height) {\n XlsContainer currentContainer = getCurrentContainer();\n ContainerSizeInfo containerSize = currentContainer.getSizeInfo();\n StyleEntry entry = engine.getStyle(style, containerSize, getParentStyle(currentContainer));\n setlinkStyle(entry, link);\n Data data = null;\n IDataContent dataContent = (IDataContent) txt;\n Object value = dataContent.getValue();\n Date date = ExcelUtil.getDate(value);\n if (date != null && ((date instanceof Time) || date.getYear() >= 0)) {\n data = createDateData(value, entry, style.getDateTimeFormat(), dateTimeLocale);\n data.setHeight(height);\n data.setBookmark(bookmark);\n data.setHyperlinkDef(link);\n data.setStartX(containerSize.getStartCoordinate());\n data.setEndX(containerSize.getEndCoordinate());\n addData(data);\n return data;\n } else {\n entry.setProperty(StyleConstant.DATA_TYPE_PROP, SheetData.STRING);\n return addData(dataContent.getText(), style, link, bookmark, dateTimeLocale, height);\n }\n}\n"
"public void testWordCount() {\n WordCount wc = new WordCount();\n Plan p = wc.getPlan(String.valueOf(DEFAULT_PARALLELISM), IN_FILE_1, OUT_FILE_1);\n OptimizedPlan plan = compile(p);\n SinkPlanNode sink = plan.getDataSinks().iterator().next();\n SingleInputPlanNode reducer = (SingleInputPlanNode) sink.getPredecessor();\n SingleInputPlanNode mapper = (SingleInputPlanNode) reducer.getPredecessor();\n Assert.assertEquals(ShipStrategyType.FORWARD, mapper.getInput().getShipStrategy());\n Assert.assertEquals(ShipStrategyType.PARTITION_HASH, reducer.getInput().getShipStrategy());\n Assert.assertEquals(ShipStrategyType.FORWARD, sink.getInput().getShipStrategy());\n Channel c = reducer.getInput();\n Assert.assertEquals(LocalStrategy.COMBININGSORT, c.getLocalStrategy());\n FieldList l = new FieldList(0);\n Assert.assertEquals(l, c.getShipStrategyKeys());\n Assert.assertEquals(l, c.getLocalStrategyKeys());\n Assert.assertTrue(Arrays.equals(c.getLocalStrategySortOrder(), reducer.getSortOrders()));\n}\n"
"public NCLMediaType getMediaType() {\n if (getType() != null) {\n try {\n return NCLMediaType.getEnumType(getType());\n } catch (NCLParsingException e) {\n }\n }\n if (getSrc() != null) {\n boolean status = false;\n String ext = getSrc().getExtension();\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n if (status)\n return NCLMediaType.TEXT;\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n if (status)\n return NCLMediaType.IMAGE;\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n if (status)\n return NCLMediaType.AUDIO;\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n if (status)\n return NCLMediaType.VIDEO;\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n status |= ext.contentEquals(\"String_Node_Str\");\n if (status)\n return NCLMediaType.PROCEDURAL;\n }\n return NCLMediaType.OTHER;\n}\n"
"private List<UtilizationValue> getEndingBalance(Commodity commodity, Date startDate, Date endDate) throws Exception {\n List<StockItemSnapshot> stockItemSnapshots = stockItemSnapshotService.get(commodity, DateUtil.addDayOfMonth(startDate, -1), endDate);\n List<UtilizationValue> utilizationValues = new ArrayList<>();\n int previousDaysClosingStock = stockItemSnapshotService.getLatestStock(commodity, startDate, false);\n Calendar calendar = DateUtil.calendarDate(startDate);\n Date upperLimitDate = DateUtil.addDayOfMonth(endDate, 1);\n while (calendar.getTime().before(upperLimitDate)) {\n StockItemSnapshot closingStockSnapshot = stockItemSnapshotService.getSnapshot(calendar.getTime(), stockItemSnapshots);\n int closingBalance = closingStockSnapshot == null ? previousDaysClosingStock : closingStockSnapshot.getQuantity();\n UtilizationValue utilizationValue = new UtilizationValue(DateUtil.dayNumber(calendar.getTime()), closingBalance);\n utilizationValues.add(utilizationValue);\n calendar.add(Calendar.DAY_OF_MONTH, 1);\n previousDaysClosingStock = closingBalance;\n }\n return utilizationValues;\n}\n"
"public void testEchoInactiveTimeoutShouldNotPingOldClient() throws Exception {\n k3po.finish();\n}\n"
"protected void columnClicked(int column, int clicks) {\n ColumnClickTracker currentTracker = columnClickTrackers[column];\n if (clicks == 2) {\n for (Iterator i = recentlyClickedColumns.iterator(); i.hasNext(); ) {\n ColumnClickTracker columnClickTracker = (ColumnClickTracker) i.next();\n columnClickTracker.resetClickCount();\n }\n primaryColumn = -1;\n recentlyClickedColumns.clear();\n } else if (!multipleColumnSort) {\n for (Iterator i = recentlyClickedColumns.iterator(); i.hasNext(); ) {\n ColumnClickTracker columnClickTracker = (ColumnClickTracker) i.next();\n if (columnClickTracker != currentTracker) {\n columnClickTracker.resetClickCount();\n }\n }\n primaryColumn = -1;\n recentlyClickedColumns.clear();\n }\n currentTracker.addClick();\n if (recentlyClickedColumns.isEmpty()) {\n recentlyClickedColumns.add(currentTracker);\n primaryColumn = column;\n } else if (!recentlyClickedColumns.contains(currentTracker)) {\n recentlyClickedColumns.add(currentTracker);\n }\n rebuildComparator();\n}\n"
"public void run() {\n model.setSuggestList(result);\n Iterator<EvaluatedDescription> it = result.iterator();\n while (it.hasNext()) {\n Iterator<OWLOntology> ont = model.getOWLEditorKit().getModelManager().getActiveOntologies().iterator();\n EvaluatedDescription eval = it.next();\n while (ont.hasNext()) {\n String onto = ont.next().getURI().toString();\n if (eval.getDescription().toString().contains(onto)) {\n if (model.isConsistent(eval)) {\n dm.add(i, new SuggestListItem(Color.GREEN, eval.getDescription().toManchesterSyntaxString(onto, null)));\n i++;\n break;\n } else {\n dm.add(0, new SuggestListItem(Color.RED, eval.getDescription().toManchesterSyntaxString(onto, null)));\n break;\n }\n }\n }\n }\n view.getSuggestClassPanel().getSuggestList().setModel(dm);\n}\n"
"public void widgetSelected(SelectionEvent e) {\n initHadoopVersionType();\n boolean readonly = false;\n IElementParameter propertyParameter = elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());\n if (propertyParameter != null) {\n if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {\n readonly = true;\n }\n }\n HadoopCustomVersionDefineDialog customVersionDialog = new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), getCustomVersionMap()) {\n protected ECustomVersionType[] getDisplayTypes() {\n return new ECustomVersionType[] { versionType };\n }\n };\n customVersionDialog.setReadonly(readonly);\n if (customVersionDialog.open() == Window.OK) {\n Set<String> newLibList = customVersionDialog.getLibList(versionType.getGroup());\n if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {\n } else {\n String customJars = customVersionDialog.getLibListStr(versionType.getGroup());\n executeCommand(new PropertyChangeCommand(elem, EParameterName.HADOOP_CUSTOM_JARS.getName(), StringUtils.trimToEmpty(customJars)));\n }\n }\n}\n"
"public boolean onPreferenceClick(final Preference preference) {\n switch(preference.getKey()) {\n case KEY_COLOREDNAV:\n activity.invalidateNavBar();\n break;\n case PreferencesConstants.PREFERENCE_SKIN:\n case PreferencesConstants.PREFERENCE_SKIN_TWO:\n case PreferencesConstants.PREFERENCE_ACCENT:\n case PreferencesConstants.PREFERENCE_ICON_SKIN:\n final ColorUsage usage = ColorUsage.fromString(preference.getKey());\n if (usage != null) {\n ColorAdapter adapter = new ColorAdapter(getActivity(), ColorPreference.getUniqueAvailableColors(getActivity()), usage);\n GridView v = (GridView) getActivity().getLayoutInflater().inflate(R.layout.dialog_grid, null);\n v.setAdapter(adapter);\n v.setOnItemClickListener(adapter);\n int fab_skin = activity.getColorPreference().getColor(ColorUsage.ACCENT);\n dialog = new MaterialDialog.Builder(getActivity()).positiveText(R.string.cancel).title(R.string.choose_color).theme(activity.getAppTheme().getMaterialDialogTheme()).autoDismiss(true).positiveColor(fab_skin).neutralColor(fab_skin).neutralText(R.string.defualt).callback(new MaterialDialog.ButtonCallback() {\n public void onNeutral(MaterialDialog dialog) {\n super.onNeutral(dialog);\n if (activity != null)\n activity.setRestartActivity();\n activity.getColorPreference().setRes(usage, usage.getDefaultColor()).saveToPreferences(sharedPref);\n invalidateEverything();\n }\n }).customView(v, false).build();\n adapter.setDialog(dialog);\n dialog.show();\n }\n return false;\n case \"String_Node_Str\":\n switchSections();\n return true;\n }\n return false;\n}\n"
"public static void putHeaders(MimeHeaders headers, HttpServletResponse res) {\n if (debug.messageEnabled()) {\n debug.message(\"String_Node_Str\" + headers.toString());\n }\n Iterator it = headers.getAllHeaders();\n while (it.hasNext()) {\n MimeHeader header = (MimeHeader) it.next();\n String[] values = headers.getHeader(header.getName());\n if (debug.messageEnabled()) {\n debug.message(\"String_Node_Str\" + header.getName() + \"String_Node_Str\" + Arrays.toString(values));\n }\n if (values.length == 1) {\n res.setHeader(header.getName(), header.getValue());\n } else {\n StringBuffer concat = new StringBuffer();\n int i = 0;\n while (i < values.length) {\n if (i != 0) {\n concat.append(',');\n }\n concat.append(values[i++]);\n }\n res.setHeader(header.getName(), concat.toString());\n }\n }\n}\n"
"public void testCursorModel1() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptExpression(\"String_Node_Str\"));\n rowGrandTotal.addAggregateOn(\"String_Node_Str\");\n rowGrandTotal.addAggregateOn(\"String_Node_Str\");\n IBinding columnGrandTotal = new Binding(\"String_Node_Str\");\n columnGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_AVE_FUNC);\n columnGrandTotal.setExpression(new ScriptExpression(\"String_Node_Str\"));\n columnGrandTotal.addAggregateOn(\"String_Node_Str\");\n columnGrandTotal.addAggregateOn(\"String_Node_Str\");\n columnGrandTotal.addAggregateOn(\"String_Node_Str\");\n columnGrandTotal.addAggregateOn(\"String_Node_Str\");\n IBinding totalGrandTotal = new Binding(\"String_Node_Str\");\n totalGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n totalGrandTotal.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(rowGrandTotal);\n cqd.addBinding(columnGrandTotal);\n cqd.addBinding(totalGrandTotal);\n BirtCubeView cubeView = new BirtCubeView(new CubeQueryExecutor(cqd, de.getSession(), this.scope, de.getContext()));\n CubeCursor dataCursor = cubeView.getCubeCursor(new StopSign());\n List columnEdgeBindingNames = new ArrayList();\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n List rowEdgeBindingNames = new ArrayList();\n rowEdgeBindingNames.add(\"String_Node_Str\");\n rowEdgeBindingNames.add(\"String_Node_Str\");\n List measureBindingNames = new ArrayList();\n measureBindingNames.add(\"String_Node_Str\");\n List rowGrandTotalNames = new ArrayList();\n rowGrandTotalNames.add(\"String_Node_Str\");\n try {\n testOut.print(creator.printCubeAlongEdge(dataCursor, columnEdgeBindingNames, rowEdgeBindingNames, measureBindingNames, rowGrandTotalNames, \"String_Node_Str\", \"String_Node_Str\", null));\n this.checkOutputFile();\n } catch (Exception e) {\n fail(\"String_Node_Str\");\n }\n}\n"
"private boolean handleConsoleCommands(CommandSender sender, String[] args) {\n if (args.length == 0) {\n PlotCommand command = commandMap.get(\"String_Node_Str\");\n if (command != null) {\n return command.execute(new BukkitCommandSender(sender), args);\n }\n } else {\n if (\"String_Node_Str\".equalsIgnoreCase(args[0])) {\n PlotCommand command = commandMap.get(\"String_Node_Str\");\n if (command != null) {\n try {\n return command.execute(new BukkitCommandSender(sender), args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n return false;\n}\n"
"public void onClick(DialogInterface dialog, int which) {\n if (which == 0) {\n goToTrip(stop);\n } else if (which == 1) {\n goToRoute(stop);\n } else if (which == 2) {\n ArrayList<String> routes = new ArrayList<String>(1);\n routes.add(stop.getInfo().getRouteId());\n setRoutesFilter(routes);\n if (mHeader != null) {\n mHeader.refresh();\n }\n } else if (hasUrl && which == 3) {\n UIHelp.goToUrl(getActivity(), url);\n } else if ((!hasUrl && which == 3) || (hasUrl && which == 4)) {\n ReportTripProblemFragment.show(getSherlockActivity(), stop.getInfo());\n }\n}\n"
"public void growArray(int amountBits, boolean saveValue) {\n size = size + amountBits;\n int N = size / 8 + (size % 8 == 0 ? 0 : 1);\n if (N > data.length) {\n int extra = Math.min(1024, N + 10);\n byte[] tmp = new byte[N + extra];\n if (saveValue)\n System.arraycopy(data, 0, tmp, 0, data.length);\n this.data = tmp;\n }\n}\n"
"public void updateReservationResult(SessionDetailModel sessionDetailModel) {\n String reservationResult = sessionDetailModel.getReservationResult();\n if (reservationResult != null && isAdded()) {\n LOGD(TAG, \"String_Node_Str\" + reservationResult);\n switch(reservationResult) {\n case SessionDetailConstants.RESERVE_DENIED_CUTOFF:\n showReservationDeniedCutoff();\n break;\n case SessionDetailConstants.RESERVE_DENIED_CLASH:\n showReservationDeniedClash();\n break;\n case SessionDetailConstants.RESERVE_DENIED_FAILED:\n showRequestFailed();\n break;\n case SessionDetailConstants.RESERVE_DENIED_SPACE:\n showReservationDeniedSpace();\n break;\n case SessionDetailConstants.RESERVED:\n showReservationSuccessful();\n break;\n case SessionDetailConstants.RETURN_DENIED_CUTOFF:\n showReturnDeniedCutoff();\n break;\n case SessionDetailConstants.RETURN_DENIED_FAILED:\n showRequestFailed();\n break;\n case SessionDetailConstants.RETURNED:\n break;\n }\n updateReservationStatusAndSeatAvailability(sessionDetailModel);\n }\n}\n"
"private Response saveContentObjectByIdOrName(String contentObjectIdOrName, String requestContent, String httpMethod) {\n boolean entityIsNew = false;\n ContentObject contentObjectToBeSaved = astroboaClient.getImportService().importContentObject(requestContent, false, true, false);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", contentObjectToBeSaved.xml(true));\n }\n if (CmsConstants.UUIDPattern.matcher(contentObjectIdOrName).matches()) {\n if (contentObjectToBeSaved.getId() == null) {\n contentObjectToBeSaved.setId(contentObjectIdOrName);\n entityIsNew = true;\n } else {\n if (!StringUtils.equals(contentObjectIdOrName, contentObjectToBeSaved.getId())) {\n logger.warn(\"String_Node_Str\" + httpMethod + \"String_Node_Str\" + contentObjectIdOrName + \"String_Node_Str\" + contentObjectToBeSaved.getId());\n throw new WebApplicationException(HttpURLConnection.HTTP_BAD_REQUEST);\n }\n }\n } else {\n ContentObject existedContentObject = null;\n ContentObjectCriteria contentObjectCriteria = CmsCriteriaFactory.newContentObjectCriteria();\n contentObjectCriteria.addSystemNameEqualsCriterion(contentObjectIdOrName);\n contentObjectCriteria.setOffsetAndLimit(0, 1);\n CmsOutcome<ContentObject> cmsOutcome = astroboaClient.getContentService().searchContentObjects(contentObjectCriteria, ResourceRepresentationType.CONTENT_OBJECT_LIST);\n if (cmsOutcome.getCount() >= 1) {\n existedContentObject = (ContentObject) cmsOutcome.getResults().get(0);\n } else {\n entityIsNew = true;\n }\n if (contentObjectToBeSaved.getId() == null) {\n if (existingObject != null) {\n contentObjectToBeSaved.setId(existingObject.getId());\n }\n } else {\n if (existedContentObject != null) {\n if (!StringUtils.equals(existedContentObject.getId(), contentObjectToBeSaved.getId())) {\n logger.warn(\"String_Node_Str\" + httpMethod + \"String_Node_Str\" + contentObjectIdOrName + \"String_Node_Str\" + existedContentObject.getId() + \"String_Node_Str\" + contentObjectToBeSaved.getId());\n throw new WebApplicationException(HttpURLConnection.HTTP_BAD_REQUEST);\n }\n }\n }\n }\n return saveContentObject(contentObjectToBeSaved, httpMethod, requestContent, entityIsNew);\n}\n"
"private float getMinimalScale(Box b) {\n float wFactor = 1.0f;\n float hFactor = 1.0f;\n int viewW, viewH;\n if (!mFilmMode && mConstrained && !mConstrainedFrame.isEmpty() && b == mBoxes.get(0)) {\n viewW = mConstrainedFrame.width();\n viewH = mConstrainedFrame.height();\n } else {\n viewW = mViewW;\n viewH = mViewH;\n }\n if (mFilmMode) {\n if (mViewH > mViewW) {\n wFactor = FILM_MODE_PORTRAIT_WIDTH;\n hFactor = FILM_MODE_PORTRAIT_HEIGHT;\n } else {\n wFactor = FILM_MODE_LANDSCAPE_WIDTH;\n hFactor = FILM_MODE_LANDSCAPE_HEIGHT;\n }\n }\n float s = Math.min(wFactor * viewW / b.mImageW, hFactor * viewH / b.mImageH);\n return Math.min(SCALE_LIMIT, s);\n}\n"
"void setRefreshError() {\n final long now = System.currentTimeMillis();\n if ((now - mResponseTime) >= 2 * DateUtils.MINUTE_IN_MILLIS) {\n TextView errorText = (TextView) mResponseError.findViewById(R.id.response_error_text);\n CharSequence relativeTime = DateUtils.getRelativeTimeSpanString(mResponseTime, now, DateUtils.MINUTE_IN_MILLIS, 0);\n errorText.setText(getString(R.string.stop_info_old_data, relativeTime));\n mResponseError.setVisibility(View.VISIBLE);\n mEmptyText.setText(R.string.stop_info_nodata);\n } else {\n mResponseError.setVisibility(View.GONE);\n }\n StopInfoListAdapter adapter = (StopInfoListAdapter) getListView().getAdapter();\n adapter.setData(mResponse.getData().getArrivalsAndDepartures());\n mLoadingProgress.hideLoading();\n setProgressBarIndeterminateVisibility(false);\n}\n"
"private Statement convertToUnion(String query, Statement statement, int startParseIndex) throws ParseException {\n int start = query.indexOf(\"String_Node_Str\", startParseIndex);\n String begin = query.substring(0, start);\n XPathToSQL2Converter converter = new XPathToSQL2Converter();\n String partList = query.substring(start);\n converter.initialize(partList);\n converter.read();\n int lastParseIndex = converter.parseIndex;\n int lastOrIndex = lastParseIndex;\n converter.read(\"String_Node_Str\");\n int level = 0;\n ArrayList<String> parts = new ArrayList<String>();\n while (true) {\n parseIndex = converter.parseIndex;\n if (converter.readIf(\"String_Node_Str\")) {\n level++;\n } else if (converter.readIf(\"String_Node_Str\") && level-- <= 0) {\n break;\n } else if (converter.readIf(\"String_Node_Str\") && level == 0) {\n String or = partList.substring(lastOrIndex, lastParseIndex);\n parts.add(or);\n lastOrIndex = parseIndex;\n } else if (currentTokenType == END) {\n throw getSyntaxError(\"String_Node_Str\");\n } else {\n converter.read();\n }\n lastParseIndex = parseIndex;\n }\n String or = partList.substring(lastOrIndex, lastParseIndex);\n parts.add(or);\n String end = partList.substring(lastParseIndex + 1);\n Statement result = null;\n for (String p : parts) {\n String q = begin + p + end;\n converter = new XPathToSQL2Converter();\n Statement stat = converter.convertToStatement(q);\n if (result == null) {\n result = stat;\n } else {\n UnionStatement union = new UnionStatement(result, stat);\n union.orderList = stat.orderList;\n union.queryOptions = stat.queryOptions;\n result = union;\n }\n stat.orderList = new ArrayList<Order>();\n stat.queryOptions = new QueryOptions();\n }\n return result;\n}\n"
"public void drop(DNDNodeInfo positioner, DNDContext dndContext) {\n int idx = positioner.indexOf();\n Object key = dndContext.getKey();\n final DNDNodeInfo dndNodeInfo = cache.get(key.toString());\n String parentKey;\n if (!positionerOffset) {\n parentKey = positioner.getParentKey();\n } else {\n T parentItem = positioner.dataProvider.getList().get(idx - 1);\n parentKey = idMap.get(parentItem).toString();\n idx = 0;\n }\n DNDNodeInfo parentNodeInfo = cache.get(parentKey);\n moveNode(dndNodeInfo.item, parentNodeInfo == null ? rootValue : parentNodeInfo.item, idx);\n}\n"
"private static void cleanUpAttachedVolumes(final VmInstance vm) {\n try {\n final ServiceConfiguration sc = Topology.lookup(Storage.class, vm.lookupPartition());\n vm.eachVolumeAttachment(new Predicate<VmVolumeAttachment>() {\n public boolean apply(final VmVolumeAttachment arg0) {\n try {\n final ServiceConfiguration sc = Topology.lookup(Storage.class, vm.lookupPartition());\n if (VmStateSet.TERM.apply(vm) && !\"String_Node_Str\".equals(arg0.getDevice())) {\n try {\n vm.removeVolumeAttachment(arg0.getVolumeId());\n } catch (NoSuchElementException ex) {\n Logs.extreme().debug(ex);\n }\n }\n try {\n AsyncRequests.sendSync(sc, new DetachStorageVolumeType(cluster.getNode(vm.getServiceTag()).getIqn(), arg0.getVolumeId()));\n } catch (Exception ex) {\n LOG.debug(ex);\n Logs.extreme().debug(ex, ex);\n }\n if (VmStateSet.TERM.apply(vm) && arg0.getDeleteOnTerminate()) {\n AsyncRequests.sendSync(sc, new DeleteStorageVolumeType(arg0.getVolumeId()));\n }\n return true;\n } catch (final Throwable e) {\n LOG.error(\"String_Node_Str\" + arg0.getVolumeId() + \"String_Node_Str\" + vm.getInstanceId() + \"String_Node_Str\" + e.getMessage(), e);\n return true;\n }\n }\n });\n } catch (final Exception ex) {\n LOG.error(\"String_Node_Str\" + vm.getInstanceId() + \"String_Node_Str\" + vm.getPartition() + \"String_Node_Str\");\n }\n}\n"
"public Object getAdapter(Class targetedClass, Object objectToAdapt) {\n if (targetedClass.isAssignableFrom(IContainerAdapter.class)) {\n if (objectToAdapt instanceof ButtonBar) {\n return new ButtonBarContainerAdapter<ButtonBar>((ButtonBar) objectToAdapt);\n }\n }\n return null;\n}\n"
"public void createContextObjects(String methodName) {\n if (contextItem != null && !contextItem.isDisposed() && currentEditObject != null && methodName != null) {\n clearTreeItem(contextItem);\n DesignElementHandle handle = (DesignElementHandle) currentEditObject;\n Map argMap = DEUtil.getDesignElementMethodArguments(handle, methodName);\n for (Iterator iter = argMap.keySet().iterator(); iter.hasNext(); ) {\n String argName = (String) iter.next();\n createSubTreeItem(contextItem, argName, IMAGE_METHOD, argName, \"String_Node_Str\", true);\n }\n }\n}\n"
"public Geometry parse(String line) {\n if (_wktReader == null) {\n _wktReader = new WKTReader();\n }\n Geometry feature = null;\n Double x = null, y = null;\n String wktGeometry = null;\n Map<String, String> attrs = new HashMap<>();\n String[] values;\n if (attributeNames.size() == 1) {\n values = split(line, '\\n', encapsulator);\n } else {\n values = split(line, delimiter, encapsulator);\n }\n if (values.length == 0) {\n log.info(\"String_Node_Str\");\n }\n if (geometryCol < 0 && xCol < 0 && yCol < 0) {\n for (int i = 0; i < values.length; i++) {\n if (WktGeometryUtils.isValidWktGeometry(values[i])) {\n attributeNames = new ArrayList<>(values.length);\n for (int j = 0; j < values.length; j++) {\n if (j == i) {\n geometryCol = i;\n }\n attributeNames.add(Integer.toString(i));\n }\n break;\n }\n }\n }\n for (int i = 0; i < values.length; i++) {\n if (i == geometryCol) {\n wktGeometry = values[i];\n } else if (i == xCol) {\n try {\n if (values[i].trim().length() > 0) {\n x = Double.parseDouble(values[i]);\n } else {\n x = null;\n }\n } catch (NumberFormatException e) {\n log.error(\"String_Node_Str\" + values[i] + \"String_Node_Str\");\n x = null;\n }\n } else if (i == yCol) {\n try {\n if (values[i].trim().length() > 0) {\n y = Double.parseDouble(values[i]);\n } else {\n y = null;\n }\n } catch (NumberFormatException e) {\n log.error(\"String_Node_Str\" + values[i] + \"String_Node_Str\");\n y = null;\n }\n }\n if (i < attributeNames.size()) {\n attrs.put(attributeNames.get(i), values[i]);\n }\n }\n if (wktGeometry != null) {\n try {\n feature = GeometryFactory.fromJTS(_wktReader.read(wktGeometry), attrs);\n } catch (Exception e) {\n try {\n feature = GeometryFactory.fromJTS(_wktReader.read(WktGeometryUtils.wktGeometryFixer(wktGeometry)), attrs);\n } catch (Exception e2) {\n log.error(\"String_Node_Str\" + wktGeometry + \"String_Node_Str\");\n }\n }\n } else if (geometryCol == -1 && xCol >= 0 && yCol >= 0) {\n if (x != null && y != null) {\n feature = GeometryFactory.createPoint(x, y, attrs);\n }\n }\n if (feature == null) {\n feature = GeometryFactory.createEmptyGeometry(attrs);\n }\n return feature;\n}\n"
"public Set<Annotation> getQualifiers() {\n Set<Annotation> qualifiers = new HashSet<Annotation>();\n qualifiers.add(JMSCDIExtension.getDefaultAnnotationLiteral());\n qualifiers.add(JMSCDIExtension.getAnyAnnotationLiteral());\n return qualifiers;\n}\n"
"private void saveFrames(RenderedImage scanImage, String fnameTmpl) {\n RenderedOp frame = null;\n RenderedOp rotated = null;\n int frameNum = 1;\n for (int n = 0; n < perfY.size(); n++) {\n String fname = String.format(fnameTmpl, (Integer) frameNum);\n System.out.println(\"String_Node_Str\" + fname);\n int startY = (perfY.get(n - 1) + perfY.get(n)) >> 1;\n int startX = perfX.get(n - 1);\n System.out.println(\"String_Node_Str\" + startX + \"String_Node_Str\" + startY);\n int w = Math.min(frameWidth, scanImage.getWidth() - startX);\n AffineTransform xform = getFrameXform(n);\n if (frame == null) {\n rotated = AffineDescriptor.create(scanImage, xform, Interpolation.getInstance(Interpolation.INTERP_BICUBIC), null, null);\n frame = CropDescriptor.create(rotated, (float) 0, (float) 0, (float) w, (float) frameHeight, null);\n } else {\n rotated.setParameter(xform, 0);\n }\n ImageWriter writer = null;\n Iterator iter = ImageIO.getImageWritersByFormatName(\"String_Node_Str\");\n if (iter.hasNext()) {\n writer = (ImageWriter) iter.next();\n }\n if (writer != null) {\n ImageOutputStream ios = null;\n try {\n ios = ImageIO.createImageOutputStream(new File(fname));\n writer.setOutput(ios);\n ImageWriteParam param = writer.getDefaultWriteParam();\n PlanarImage rendering = frame.getNewRendering();\n writer.write(null, new IIOImage(rendering, null, null), param);\n ios.flush();\n rendering.dispose();\n } catch (IOException ex) {\n Logger.getLogger(SplitScan.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n if (ios != null) {\n try {\n ios.close();\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\");\n }\n }\n writer.dispose();\n }\n }\n if (debug) {\n String debugFname = String.format(\"String_Node_Str\", (Integer) n);\n BufferedImage debugLayer = new BufferedImage(frame.getWidth(), frame.getHeight(), BufferedImage.TYPE_INT_RGB);\n for (int row = 0; row < frame.getHeight(); row++) {\n debugLayer.getRaster().setPixel(perfBorderX[startY + row], row, new int[] { 255, 255, 255 });\n }\n try {\n ImageIO.write(debugLayer, \"String_Node_Str\", new File(debugFname));\n } catch (IOException ex) {\n Logger.getLogger(SplitScan.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n frame.dispose();\n rotated.dispose();\n System.gc();\n System.gc();\n }\n}\n"
"public boolean onTouchEvent(MotionEvent ev) {\n if (!isVisible()) {\n return true;\n }\n if (mLocks != 0) {\n return true;\n }\n super.onTouchEvent(ev);\n int x = (int) ev.getX();\n int deltaX;\n switch(ev.getAction()) {\n case MotionEvent.ACTION_DOWN:\n mMotionDownRawX = (int) ev.getRawX();\n mMotionDownRawY = (int) ev.getRawY();\n mLastMotionX = x;\n mRollo.mReadback.read();\n mRollo.mState.newPositionX = ev.getRawX() / Defines.SCREEN_WIDTH_PX;\n mRollo.mState.newTouchDown = 1;\n if (!mRollo.checkClickOK()) {\n mRollo.clearSelectedIcon();\n } else {\n mRollo.selectIcon(x, (int) ev.getY(), mRollo.mReadback.posX);\n }\n mRollo.mState.save();\n mRollo.mInvokeMove.execute();\n mVelocity = VelocityTracker.obtain();\n mVelocity.addMovement(ev);\n mStartedScrolling = false;\n break;\n case MotionEvent.ACTION_MOVE:\n case MotionEvent.ACTION_OUTSIDE:\n int slopX = Math.abs(x - mLastMotionX);\n if (!mStartedScrolling && slopX < mSlopX) {\n } else {\n mRollo.mState.newPositionX = ev.getRawX() / Defines.SCREEN_WIDTH_PX;\n mRollo.mState.newTouchDown = 1;\n mRollo.mInvokeMove.execute();\n mStartedScrolling = true;\n mRollo.clearSelectedIcon();\n deltaX = x - mLastMotionX;\n mVelocity.addMovement(ev);\n mRollo.mState.save();\n mLastMotionX = x;\n }\n break;\n case MotionEvent.ACTION_UP:\n case MotionEvent.ACTION_CANCEL:\n mRollo.mState.newTouchDown = 0;\n mRollo.mState.newPositionX = ev.getRawX() / Defines.SCREEN_WIDTH_PX;\n if (!mZoomSwipeInProgress) {\n mVelocity.computeCurrentVelocity(1000, mConfig.getScaledMaximumFlingVelocity());\n mRollo.mState.flingVelocityX = mVelocity.getXVelocity() / Defines.SCREEN_WIDTH_PX;\n mRollo.clearSelectedIcon();\n mRollo.mState.save();\n mRollo.mInvokeFling.execute();\n } else {\n mRollo.mState.save();\n mRollo.mInvokeMove.execute();\n }\n mLastMotionX = -10000;\n mVelocity.recycle();\n mVelocity = null;\n break;\n }\n return true;\n}\n"
"public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {\n super.render(entity, f, f1, f2, f3, f4, f5);\n setRotationAngles(f, f1, f2, f3, f4, f5, entity);\n hatTop.render(f5);\n hatRim.render(f5);\n if (renderWeapons) {\n axeShaft.render(f5);\n axeBlade1.render(f5);\n axeBlade2.render(f5);\n stake.render(f5);\n }\n}\n"
"public void handle(Message inputMessage, ISendMessageCallback callback, boolean unitOfWorkBoundaryReached) {\n Model inputModel = getComponent().getInputModel();\n List<EntityData> inDatas = inputMessage.getPayload();\n ArrayList<EntityData> outDatas = new ArrayList<EntityData>(inDatas.size());\n for (EntityData inData : inDatas) {\n EntityData outData = new EntityData();\n outDatas.add(outData);\n Set<String> attributeIds = new HashSet<String>();\n Set<ModelEntity> processedEntities = new HashSet<ModelEntity>();\n for (String attributeId : inData.keySet()) {\n ModelAttribute attribute = inputModel.getAttributeById(attributeId);\n if (attribute != null) {\n ModelEntity entity = inputModel.getEntityById(attribute.getEntityId());\n if (!processedEntities.contains(entity)) {\n List<ModelAttribute> attributes = entity.getModelAttributes();\n for (ModelAttribute modelAttribute : attributes) {\n attributeIds.add(modelAttribute.getId());\n }\n processedEntities.add(entity);\n }\n }\n }\n for (String attributeId : attributeIds) {\n String transform = transformsByAttributeId.get(attributeId);\n Object value = inData.get(attributeId);\n if (isNotBlank(transform)) {\n ModelAttribute attribute = inputModel.getAttributeById(attributeId);\n ModelEntity entity = inputModel.getEntityById(attribute.getEntityId());\n value = ModelAttributeScriptHelper.eval(attribute, value, entity, inData, transform);\n }\n if (value != ModelAttributeScriptHelper.REMOVE_ATTRIBUTE) {\n outData.put(attributeId, value);\n }\n }\n getComponentStatistics().incrementNumberEntitiesProcessed(threadNumber);\n }\n callback.sendMessage(null, outDatas, unitOfWorkBoundaryReached);\n}\n"
"public void play() {\n String[] commands = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n short[] tokens = { TOKEN_SAVE, TOKEN_UNDO, TOKEN_REDO, TOKEN_QUIT };\n short[] argCount = { 0, 0, 0, 0 };\n short invalid = -1;\n inputParser = new ParserImpl(commands, tokens, argCount, invalid);\n MoveParser parser = new MoveParserImpl();\n Scanner s = new Scanner(System.in);\n short token;\n GenericMove nextMove;\n printBoard();\n while (!isOver()) {\n if (current.equals(players._1())) {\n System.out.println(\"String_Node_Str\" + current.getName() + \"String_Node_Str\");\n } else {\n System.out.println(\"String_Node_Str\" + current.getName() + \"String_Node_Str\");\n }\n String command;\n if (current.isHuman()) {\n command = s.next();\n } else {\n State thinker = new StateImpl(gameBoard, current);\n command = thinker.nextBestMove().toString();\n System.out.println(command);\n }\n token = inputParser.ensureString(command);\n if (token == TOKEN_SAVE) {\n try {\n Manager.saveGame();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (token == TOKEN_UNDO) {\n if (undoMove() == true) {\n printBoard();\n current = current.getOpponent();\n }\n } else if (token == TOKEN_REDO) {\n redoMove();\n printBoard();\n current = current.getOpponent();\n } else {\n nextMove = parser.loadMove(current, gameBoard, command);\n if (nextMove == null) {\n System.out.println(\"String_Node_Str\");\n } else {\n if (nextMove.isValid()) {\n nextMove.makeMove();\n printBoard();\n undoMoves.add(nextMove);\n redoMoves = new LinkedList<GenericMove>();\n current = current.getOpponent();\n } else {\n System.out.println(\"String_Node_Str\");\n }\n }\n }\n }\n System.out.println(\"String_Node_Str\" + current.getOpponent().getName() + \"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n}\n"
"public void removeNotification(StatusBarNotification notification) {\n mNotifications.remove(notification.getPackageName());\n if (NotificationHelper.getContentDescription(notification).equals(NotificationHelper.getContentDescription(mCurrentNotification))) {\n if (mNotifications.size() > 0) {\n mCurrentNotification = getNextNotification();\n } else {\n mCurrentNotification = null;\n }\n }\n}\n"
"private static MatchType loadGameType(GamePlugin plugin) {\n try {\n classLoader.addURL(new File(pluginFolder, plugin.getJar()).toURI().toURL());\n logger.debug(\"String_Node_Str\" + plugin.getClassName());\n return (MatchType) Class.forName(plugin.getTypeName(), true, classLoader).getConstructor().newInstance();\n } catch (ClassNotFoundException ex) {\n logger.warn(\"String_Node_Str\" + plugin.getJar() + \"String_Node_Str\", ex);\n } catch (Exception ex) {\n logger.fatal(\"String_Node_Str\" + plugin.getJar(), ex);\n }\n return null;\n}\n"
"private static boolean checkDepends(Bootstrapper bootstrap) {\n String bc = bootstrap.getClass().getCanonicalName();\n if (bootstrap.checkLocal() && bootstrap.checkRemote()) {\n return true;\n } else if (!bootstrap.checkLocal()) {\n EventRecord.here(Bootstrap.class, EventType.BOOTSTRAPPER_SKIPPED, currentStage.name(), bc, \"String_Node_Str\", bootstrap.getDependsLocal().toString()).info();\n return false;\n } else if (!bootstrap.checkRemote()) {\n EventRecord.here(Bootstrap.class, EventType.BOOTSTRAPPER_SKIPPED, currentStage.name(), bc, \"String_Node_Str\", bootstrap.getDependsRemote().toString()).info();\n return false;\n } else {\n return true;\n }\n}\n"
"public InfoHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n return new InfoHolder(inflater.inflate(R.layout.item_drawer_favorites, parent, false));\n}\n"
"public List<SearchField> getSearchFields(MetaDataSource metadata, Library library) throws OpacErrorException {\n try {\n metadata.open();\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_BRANCH) || fieldsCompat.contains(KEY_SEARCH_QUERY_HOME_BRANCH) || fieldsCompat.contains(KEY_SEARCH_QUERY_CATEGORY)) {\n if (!metadata.hasMeta(library.getIdent())) {\n metadata.close();\n try {\n start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n metadata.open();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n if (!metadata.hasMeta(library.getIdent()))\n throw new OpacErrorException(\"String_Node_Str\");\n Map<String, String> all = new HashMap<String, String>();\n all.put(\"String_Node_Str\", \"String_Node_Str\");\n all.put(\"String_Node_Str\", \"String_Node_Str\");\n List<SearchField> searchFields = new ArrayList<SearchField>();\n Set<String> fieldsCompat = new HashSet<String>(Arrays.asList(getSearchFieldsCompat()));\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_FREE)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_FREE, \"String_Node_Str\", false, false, \"String_Node_Str\", true, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_TITLE)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_TITLE, \"String_Node_Str\", false, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_AUTHOR)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_AUTHOR, \"String_Node_Str\", false, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_DIGITAL)) {\n searchFields.add(new CheckboxSearchField(KEY_SEARCH_QUERY_DIGITAL, \"String_Node_Str\", false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_AVAILABLE)) {\n searchFields.add(new CheckboxSearchField(KEY_SEARCH_QUERY_AVAILABLE, \"String_Node_Str\", false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_ISBN)) {\n searchFields.add(new BarcodeSearchField(KEY_SEARCH_QUERY_ISBN, \"String_Node_Str\", false, false, \"String_Node_Str\"));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_BARCODE)) {\n searchFields.add(new BarcodeSearchField(KEY_SEARCH_QUERY_BARCODE, \"String_Node_Str\", false, true, \"String_Node_Str\"));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_YEAR)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_YEAR, \"String_Node_Str\", false, false, \"String_Node_Str\", false, true));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_YEAR_RANGE_START)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_YEAR_RANGE_START, \"String_Node_Str\", false, false, \"String_Node_Str\", false, true));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_YEAR_RANGE_END)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_YEAR_RANGE_END, \"String_Node_Str\", false, true, \"String_Node_Str\", false, true));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_BRANCH)) {\n List<Map<String, String>> data = metadata.getMeta(library.getIdent(), MetaDataSource.META_TYPE_BRANCH);\n data.add(0, all);\n searchFields.add(new DropdownSearchField(KEY_SEARCH_QUERY_BRANCH, \"String_Node_Str\", false, data));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_HOME_BRANCH)) {\n List<Map<String, String>> data = metadata.getMeta(library.getIdent(), MetaDataSource.META_TYPE_HOME_BRANCH);\n data.add(0, all);\n searchFields.add(new DropdownSearchField(KEY_SEARCH_QUERY_HOME_BRANCH, \"String_Node_Str\", false, data));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_CATEGORY)) {\n List<Map<String, String>> data = metadata.getMeta(library.getIdent(), MetaDataSource.META_TYPE_CATEGORY);\n data.add(0, all);\n searchFields.add(new DropdownSearchField(KEY_SEARCH_QUERY_CATEGORY, \"String_Node_Str\", false, data));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_PUBLISHER)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_PUBLISHER, \"String_Node_Str\", false, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_KEYWORDA)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_KEYWORDA, \"String_Node_Str\", true, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_KEYWORDB)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_KEYWORDB, \"String_Node_Str\", true, true, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_SYSTEM)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_SYSTEM, \"String_Node_Str\", true, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_AUDIENCE)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_AUDIENCE, \"String_Node_Str\", true, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_LOCATION)) {\n searchFields.add(new TextSearchField(KEY_SEARCH_QUERY_LOCATION, \"String_Node_Str\", false, false, \"String_Node_Str\", false, false));\n }\n if (fieldsCompat.contains(KEY_SEARCH_QUERY_ORDER)) {\n }\n return searchFields;\n}\n"
"private Section createTableSectionPartForMapDB(Composite parentComp, String title, SimpleStatIndicator ssIndicator) {\n Section columnSetElementSection = this.createSection(form, parentComp, title, null);\n Composite sectionTableComp = toolkit.createComposite(columnSetElementSection);\n if (ssIndicator.isStoreData()) {\n columnSetElementSection.setExpanded(true);\n columnSetElementSection.setEnabled(true);\n sectionTableComp.setLayoutData(new GridData(GridData.FILL_BOTH));\n sectionTableComp.setLayout(new GridLayout());\n AbstractDB<Object> mapDB = null;\n try {\n mapDB = MapDBUtils.getMapDB(StandardDBName.dataSection.name(), ssIndicator);\n } catch (IOError error) {\n log.warn(error.getMessage(), error);\n }\n Button filterDataBt = new Button(sectionTableComp, SWT.NONE);\n filterDataBt.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n filterDataBt.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));\n filterDataBt.setEnabled(containAllMatchIndicator() && mapDB != null);\n filterDataBt.addMouseListener(new MouseListener() {\n public void mouseDoubleClick(MouseEvent e) {\n }\n public void mouseDown(MouseEvent e) {\n List<Indicator> indicatorsList = masterPage.getCurrentModelElement().getResults().getIndicators();\n SelectPatternsWizard wizard = new SelectPatternsWizard(indicatorsList);\n wizard.setFilterType(filterType);\n wizard.setOldTableInputList(ColumnSetAnalysisResultPage.this.tableFilterResult);\n WizardDialog dialog = new WizardDialog(null, wizard);\n dialog.setPageSize(300, 400);\n wizard.setContainer(dialog);\n wizard.setWindowTitle(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n if (WizardDialog.OK == dialog.open()) {\n ColumnSetAnalysisResultPage.this.tableFilterResult = wizard.getPatternSelectPage().getTableInputList();\n filterType = wizard.getPatternSelectPage().getFilterType();\n columnsElementViewer.refresh();\n }\n }\n public void mouseUp(MouseEvent e) {\n }\n });\n columnsElementViewer = new TableViewer(sectionTableComp, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n Table table = columnsElementViewer.getTable();\n table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n table.setLinesVisible(true);\n table.setHeaderVisible(true);\n TableSectionViewerProvider provider = new TableSectionViewerProvider();\n columnsElementViewer.setContentProvider(provider);\n columnsElementViewer.addFilter(new PatternDataFilter());\n columnSetElementSection.setClient(sectionTableComp);\n columnSetElementSection.setExpanded(false);\n int pageSize = 100;\n setupTableGridDataLimitedSize(table, pageSize);\n controller = new PageableController(MapDBPageConstant.NUMBER_PER_PAGE);\n if (mapDB != null) {\n final IPageLoader<PageResult<Object[]>> pageLoader = new MapDBPageLoader<Object>(mapDB);\n controller.addPageChangedListener(PageLoaderStrategyHelper.createLoadPageAndReplaceItemsListener(controller, columnsElementViewer, pageLoader, PageResultContentProvider.getInstance(), null));\n ResultAndNavigationPageGraphicsRenderer resultAndPageButtonsDecorator = new ResultAndNavigationPageGraphicsRenderer(sectionTableComp, SWT.NONE, controller);\n resultAndPageButtonsDecorator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n }\n createColumns(controller, ssIndicator);\n controller.setCurrentPage(0);\n for (TableColumn column : table.getColumns()) {\n column.pack();\n }\n } else {\n columnSetElementSection.setExpanded(false);\n columnSetElementSection.setEnabled(false);\n }\n return columnSetElementSection;\n}\n"
"public void run() {\n while (!isDestroyed()) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + this.toString());\n }\n try {\n if (!ClusterStatus.In_Maintenance.equals(status)) {\n monitor();\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + ClusterStatus.In_Maintenance + \"String_Node_Str\");\n }\n }\n } catch (Exception e) {\n log.error(\"String_Node_Str\" + this.toString(), e);\n }\n try {\n Thread.sleep(monitorInterval);\n } catch (InterruptedException ignore) {\n }\n }\n}\n"
"public <E> List<E> doQuery(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws SQLException {\n Configuration configuration = ms.getConfiguration();\n StatementHandler handler = configuration.newStatementHandler(wrapper, ms, parameter, rowBounds, resultHandler, boundSql);\n Statement stmt = prepareStatement(handler, ms.getStatementLog());\n return handler.<E>query(stmt, resultHandler);\n}\n"
"public void setAdapter(ArrayList<Float> alPercentage) throws Exception {\n this.alPercentage = alPercentage;\n iDataSize = alPercentage.size();\n float fSum = 0;\n for (int i = 0; i < iDataSize; i++) {\n iSum += alPercentage.get(i);\n }\n if (iSum != 100) {\n Log.e(TAG, \"String_Node_Str\");\n iDataSize = 0;\n throw new Exception();\n }\n}\n"
"public double calculate(String expression) throws ParsingException {\n if (expression == null) {\n throw new ParsingException(\"String_Node_Str\");\n } else {\n Parser localParser = new Parser(expression);\n String rpnExpression = localParser.parseRPN();\n Evaluator evaluator = new Evaluator(rpnExpression);\n return evaluator.evaluateRPN();\n }\n}\n"
"public static <T> void injectExtras(T target, Intent intent) {\n IntentBinding<T> binding = (IntentBinding<T>) getIntentBinding(target.getClass().getClassLoader(), target.getClass());\n if (binding != null) {\n binding.injectExtras(target, intent);\n }\n}\n"
"public Response serve(String uri, String method, Properties header, Properties parms, Properties files) {\n if (uri.equalsIgnoreCase(\"String_Node_Str\")) {\n rsp = new NanoHTTPD.Response(HTTP_OK, MIME_JSON, serveJson(uri, header));\n return rsp;\n } else if (uri.equalsIgnoreCase(\"String_Node_Str\")) {\n return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, serveSelectPool(parms));\n } else if (uri.equalsIgnoreCase(\"String_Node_Str\")) {\n return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, serveSelectRefresh(parms));\n } else if (uri.equalsIgnoreCase(\"String_Node_Str\")) {\n return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, serveSelectRPC(parms));\n } else if (uri.equalsIgnoreCase(\"String_Node_Str\")) {\n return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, serveToggleHopping(parms));\n } else {\n return serveFile(uri, header, myRootDir, true);\n }\n}\n"
"public void refreshContextView() {\n IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n IViewPart view = page.findView(AbstractContextView.CTX_ID_DESIGNER);\n if (view instanceof AbstractContextView) {\n ((AbstractContextView) view).updateContextView(true);\n }\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITdqUiService.class)) {\n ITdqUiService tdqUiService = (ITdqUiService) GlobalServiceRegister.getDefault().getService(ITdqUiService.class);\n if (tdqUiService != null) {\n tdqUiService.updateContextView(true, false, false);\n }\n }\n}\n"
"private void emit(final HierarchicalCluster cluster, final JsonCollector out) {\n if (cluster.isFinal()) {\n this.pointsNode.clear();\n for (final Point point : cluster.getPoints()) this.pointsNode.add(point.write((IJsonNode) null));\n this.idNode.setValue(cluster.getId());\n cluster.getClustroid().write(this.clustroidNode);\n ClusterNodes.write(this.outputNode, this.idNode, this.clustroidNode, this.pointsNode);\n out.collect(this.outputNode);\n } else\n for (final HierarchicalCluster child : cluster.getChildren()) this.emit(child, out);\n}\n"
"private boolean shallPreserveIterationOrder() {\n boolean preserveIterationOrder = false;\n preserveIterationOrder |= limit != null || offset != null;\n return true;\n}\n"
"public List<PluginInfo> getPluginInfo(Id.Artifact artifactId, String pluginType, String pluginName, ArtifactScope scope) throws IOException, UnauthenticatedException, NotFoundException {\n String path = String.format(\"String_Node_Str\", artifactId.getName(), artifactId.getVersion().getVersion(), pluginType, pluginName, scope.name());\n URL url = config.resolveNamespacedURLV3(artifactId.getNamespace(), path);\n HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(), HttpURLConnection.HTTP_NOT_FOUND);\n if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {\n throw new NotFoundException(response.getResponseBodyAsString());\n }\n return ObjectResponse.<List<PluginInfo>>fromJsonBody(response, PLUGIN_INFOS_TYPE).getResponseObject();\n}\n"
"public void refresh() {\n if (isGenerating()) {\n return;\n }\n if (selectedNode != null) {\n generatedCode = \"String_Node_Str\";\n boolean isJoblet = AbstractProcessProvider.isExtensionProcessForJoblet(selectedNode.getProcess());\n if (!isJoblet && PluginChecker.isJobLetPluginLoaded()) {\n IJobletProviderService jobletSservice = (IJobletProviderService) GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);\n if (jobletSservice != null && jobletSservice.isJobletComponent(selectedNode)) {\n isJoblet = true;\n }\n }\n if (isJoblet) {\n document.set(generatedCode);\n return;\n }\n generatingNode = null;\n for (INode node : selectedNode.getProcess().getGeneratingNodes()) {\n if (node.getUniqueName().equals(selectedNode.getUniqueName())) {\n generatingNode = node;\n }\n }\n if (generatingNode == null) {\n document.set(Messages.getString(\"String_Node_Str\"));\n return;\n }\n if (codeGenerator == null) {\n codeGenerator = service.createCodeGenerator();\n }\n viewStartAction.setChecked(false);\n viewMainAction.setChecked(false);\n viewEndAction.setChecked(false);\n viewAllAction.setChecked(false);\n switch(codeView) {\n case CODE_START:\n viewStartAction.setChecked(true);\n break;\n case CODE_MAIN:\n viewMainAction.setChecked(true);\n break;\n case CODE_END:\n viewEndAction.setChecked(true);\n break;\n case CODE_ALL:\n viewAllAction.setChecked(true);\n break;\n default:\n }\n Job job = new Job(Messages.getString(\"String_Node_Str\")) {\n protected IStatus run(IProgressMonitor monitor) {\n switch(codeView) {\n case CODE_START:\n try {\n generatedCode = codeGenerator.generateComponentCode(generatingNode, ECodePart.BEGIN);\n } catch (SystemException e) {\n ExceptionHandler.process(e);\n }\n break;\n case CODE_MAIN:\n try {\n generatedCode = codeGenerator.generateComponentCode(generatingNode, ECodePart.MAIN);\n } catch (SystemException e) {\n ExceptionHandler.process(e);\n }\n break;\n case CODE_END:\n try {\n generatedCode = codeGenerator.generateComponentCode(generatingNode, ECodePart.END);\n } catch (SystemException e) {\n ExceptionHandler.process(e);\n }\n break;\n case CODE_ALL:\n try {\n generatedCode = codeGenerator.generateComponentCode(generatingNode, ECodePart.BEGIN);\n } catch (SystemException e) {\n ExceptionHandler.process(e);\n }\n try {\n generatedCode += codeGenerator.generateComponentCode(generatingNode, ECodePart.MAIN);\n } catch (SystemException e) {\n ExceptionHandler.process(e);\n }\n try {\n generatedCode += codeGenerator.generateComponentCode(generatingNode, ECodePart.END);\n } catch (SystemException e) {\n e.printStackTrace();\n }\n break;\n default:\n }\n return org.eclipse.core.runtime.Status.OK_STATUS;\n }\n };\n job.setPriority(Job.INTERACTIVE);\n job.schedule();\n job.addJobChangeListener(new JobChangeAdapter() {\n public void done(IJobChangeEvent event) {\n new UIJob(\"String_Node_Str\") {\n public IStatus runInUIThread(IProgressMonitor monitor) {\n document.set(generatedCode);\n return org.eclipse.core.runtime.Status.OK_STATUS;\n }\n }.schedule();\n }\n });\n }\n}\n"
"public void testGracefulShutdown() throws Exception {\n int size = 50000;\n TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(4);\n final Config config = new Config();\n HazelcastInstance h1 = nodeFactory.newHazelcastInstance(config);\n IMap<Integer, Integer> m1 = h1.getMap(MAP_NAME);\n for (int i = 0; i < size; i++) {\n m1.put(i, i);\n }\n HazelcastInstance h2 = nodeFactory.newHazelcastInstance(config);\n IMap m2 = h2.getMap(MAP_NAME);\n h1.shutdown();\n assertEquals(size, m2.size());\n HazelcastInstance h3 = nodeFactory.newHazelcastInstance(config);\n IMap m3 = h3.getMap(MAP_NAME);\n h2.shutdown();\n assertEquals(size, m3.size());\n HazelcastInstance h4 = nodeFactory.newHazelcastInstance(config);\n IMap m4 = h4.getMap(MAP_NAME);\n h3.shutdown();\n assertEquals(size, m4.size());\n}\n"
"public Spans getSpans(final IndexReader reader, final Searcher searcher) throws IOException {\n return new Spans() {\n private Spans includeSpans = include.getSpans(reader, searcher);\n private boolean moreInclude = true;\n private Spans excludeSpans = exclude.getSpans(reader, searcher);\n private boolean moreExclude = excludeSpans.next();\n\n public boolean next() throws IOException {\n if (moreInclude)\n moreInclude = includeSpans.next();\n return advance();\n }\n private boolean advance() throws IOException {\n while (moreInclude && moreExclude) {\n if (includeSpans.doc() > excludeSpans.doc())\n moreExclude = excludeSpans.skipTo(includeSpans.doc());\n while (moreExclude && includeSpans.doc() == excludeSpans.doc() && excludeSpans.end() <= (includeSpans.start() - slop)) {\n moreExclude = excludeSpans.next();\n }\n if (!moreExclude || includeSpans.doc() != excludeSpans.doc() || excludeSpans.start() >= (includeSpans.end() + slop))\n break;\n moreInclude = includeSpans.next();\n }\n return moreInclude;\n }\n public boolean skipTo(int target) throws IOException {\n if (moreInclude)\n moreInclude = includeSpans.skipTo(target);\n return advance();\n }\n public int doc() {\n return includeSpans.doc();\n }\n public int start() {\n return includeSpans.start();\n }\n public int end() {\n return includeSpans.end();\n }\n public float score() {\n return includeSpans.score() * getBoost();\n }\n public String toString() {\n return \"String_Node_Str\" + SpanNotNearQuery.this.toString() + \"String_Node_Str\";\n }\n public Explanation explain() throws IOException {\n if (getBoost() == 1.0f)\n return includeSpans.explain();\n Explanation result = new Explanation(0, \"String_Node_Str\" + toString() + \"String_Node_Str\");\n Explanation boostExpl = new Explanation(getBoost(), \"String_Node_Str\");\n result.addDetail(boostExpl);\n Explanation inclExpl = includeSpans.explain();\n result.addDetail(inclExpl);\n result.setValue(boostExpl.getValue() * inclExpl.getValue());\n return result;\n }\n };\n}\n"