content
stringlengths
40
137k
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (debug)\n Log.i(TAG, \"String_Node_Str\" + requestCode + \"String_Node_Str\" + resultCode);\n switch(requestCode) {\n case REQUEST_CODE_DECRYPT:\n if (resultCode == RESULT_OK && data != null) {\n String decryptedText = data.getStringExtra(CryptoIntents.EXTRA_TEXT);\n long id = data.getLongExtra(PrivateNotePadIntents.EXTRA_ID, -1);\n if (id == -1) {\n Log.i(TAG, \"String_Node_Str\");\n Toast.makeText(this, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n finish();\n return;\n }\n mDecryptedText = decryptedText;\n } else {\n Toast.makeText(this, R.string.decryption_failed, Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"String_Node_Str\");\n finish();\n }\n break;\n case REQUEST_CODE_TEXT_SELECTION_ALTERNATIVE:\n if (resultCode == RESULT_OK && data != null) {\n String text = data.getStringExtra(NotepadIntents.EXTRA_TEXT);\n String textBefore = data.getStringExtra(NotepadIntents.EXTRA_TEXT_BEFORE_SELECTION);\n String textAfter = data.getStringExtra(NotepadIntents.EXTRA_TEXT_AFTER_SELECTION);\n insertAtPoint(textBefore, text, textAfter);\n }\n break;\n case REQUEST_CODE_SAVE_AS:\n if (resultCode == RESULT_OK && data != null) {\n mUri = data.getData();\n mOriginalContent = mFileContent;\n updateTitleSdCard();\n }\n }\n}\n"
"public List<Artifact> quickSearch(String queryString) throws Exception {\n List<Artifact> artifacts = new ArrayList<Artifact>();\n List<String> observableRepos = xmlRpcUserRepositories.getObservableRepositories();\n SearchResultLimits limits = new SearchResultLimits(SearchResultLimits.ALL_PAGES);\n SearchResults results = null;\n if (SearchUtil.isBytecodeSearch(queryString)) {\n results = crossRepoSearch.searchForBytecode(\"String_Node_Str\", observableRepos, SearchUtil.removeBytecodeKeyword(queryString), limits);\n } else {\n results = crossRepoSearch.searchForTerm(\"String_Node_Str\", observableRepos, queryString, limits);\n }\n List<SearchResultHit> hits = results.getHits();\n for (SearchResultHit hit : hits) {\n ArtifactDAO artifactDAO = archivaDAO.getArtifactDAO();\n try {\n ArchivaArtifact pomArtifact = artifactDAO.getArtifact(hit.getGroupId(), hit.getArtifactId(), hit.getVersion(), \"String_Node_Str\", \"String_Node_Str\");\n if (pomArtifact != null) {\n Artifact artifact = new Artifact(pomArtifact.getModel().getRepositoryId(), pomArtifact.getGroupId(), pomArtifact.getArtifactId(), pomArtifact.getVersion(), pomArtifact.getType());\n artifacts.add(artifact);\n } else {\n continue;\n }\n } catch (ObjectNotFoundException e) {\n continue;\n } catch (ArchivaDatabaseException e) {\n continue;\n }\n }\n return artifacts;\n}\n"
"public static void getTargetListInfo(HandlerContext handlerCtx) {\n String applicationName = (String) handlerCtx.getInputValue(\"String_Node_Str\");\n String prefix = (String) GuiUtil.getSessionValue(REST_URL);\n List<String> clusters = TargetUtil.getClusters();\n List<String> standalone = TargetUtil.getStandaloneInstances();\n List<String> deploymentGroup = TargetUtil.getDeploymentGroups();\n standalone.add(\"String_Node_Str\");\n List<String> targetList = DeployUtil.getApplicationTarget(applicationName, \"String_Node_Str\");\n List<HashMap> result = new ArrayList<>();\n Map<String, Object> attributes = null;\n String endpoint = \"String_Node_Str\";\n List<String> instancesInDeploymentGroup = getInstancesInDeploymentGroup(targetList);\n for (String oneTarget : targetList) {\n Boolean addToResult = false;\n HashMap<String, Object> oneRow = new HashMap<>();\n if (clusters.contains(oneTarget)) {\n endpoint = prefix + CLUSTER + oneTarget + APPLICATION_REF + applicationName;\n attributes = RestUtil.getAttributesMap(endpoint);\n addToResult = true;\n } else if (standalone.contains(oneTarget) && !instancesInDeploymentGroup.contains(oneTarget)) {\n endpoint = prefix + SERVER + oneTarget + APPLICATION_REF + applicationName;\n attributes = RestUtil.getAttributesMap(endpoint);\n addToResult = true;\n } else if (deploymentGroup.contains(oneTarget)) {\n endpoint = prefix + DEPLOYMENT_GROUP + oneTarget + APPLICATION_REF + applicationName;\n attributes = RestUtil.getAttributesMap(endpoint);\n addToResult = true;\n }\n if (addToResult) {\n oneRow.put(\"String_Node_Str\", applicationName);\n oneRow.put(\"String_Node_Str\", false);\n oneRow.put(\"String_Node_Str\", endpoint.replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n oneRow.put(\"String_Node_Str\", oneTarget);\n oneRow.put(\"String_Node_Str\", attributes.get(\"String_Node_Str\"));\n oneRow.put(\"String_Node_Str\", attributes.get(\"String_Node_Str\"));\n result.add(oneRow);\n }\n }\n handlerCtx.setOutputValue(\"String_Node_Str\", result);\n}\n"
"private void outputSfnts(PrintStream out) {\n out.println(\"String_Node_Str\");\n String[] tablesDesired = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n List tablesToAdd = new ArrayList();\n addExistedTables(tablesToAdd, tablesDesired);\n addExistedTables(tablesToAdd, bigTablesDesired);\n Util.putInt16(directoryRawData, 4, tablesToAdd.size() + 1);\n out.print(\"String_Node_Str\");\n out.println(Util.toHexString(directoryRawData));\n int offset = 12 + (tablesToAdd.size() + 1) * 16;\n StringBuffer tableContent = new StringBuffer();\n for (int i = 0; i < tablesToAdd.size(); i++) {\n String name = (String) tablesToAdd.get(i);\n if (isBigTable(name, bigTablesDesired)) {\n offset = addBigTable(out, offset, name, tableContent);\n } else {\n offset = addTable(out, offset, name, tableContent);\n }\n }\n outputGdirTable(out);\n out.print(\"String_Node_Str\");\n out.println(tableContent.toString());\n out.println(\"String_Node_Str\");\n}\n"
"public boolean contains(Class<?> clazz) {\n final Shard shard = getShard(clazz);\n synchronized (shard) {\n return shard.containsKey(clazz);\n }\n}\n"
"public Object toObject(byte[] byteArray) {\n if (byteArray == null || byteArray.length == 0) {\n return null;\n }\n this.bbis.set(byteArray, byteArray.length);\n final Object obj = toObject(this.bbis);\n this.bbis.set(null, 0);\n return obj;\n}\n"
"public Iterator<DRow> getAllRowsAllColumns(Tenant tenant, String storeName) {\n checkState();\n String keyspace = storeToCQLName(tenant.getKeyspace());\n String tableName = storeToCQLName(storeName);\n return new CQLRowIterator(executeQuery(Query.SELECT_ALL_ROWS_ALL_COLUMNS, keyspace, tableName));\n}\n"
"protected void makeInactive() {\n this.context.makeInactive();\n this.context = null;\n isActive = false;\n}\n"
"public Long resizeCluster(final String clusterName, final String nodeGroupName, final int instanceNum) throws Exception {\n logger.info(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\" + clusterName + \"String_Node_Str\" + instanceNum);\n final ClusterEntity cluster = ClusterEntity.findClusterEntityByName(clusterName);\n if (cluster == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", clusterName);\n }\n final NodeGroupEntity group = DAL.inRoTransactionDo(new Saveable<NodeGroupEntity>() {\n public NodeGroupEntity body() throws Exception {\n NodeGroupEntity group = NodeGroupEntity.findNodeGroupEntityByName(cluster, nodeGroupName);\n if (group == null) {\n logger.error(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw ClusterManagerException.NOGEGROUP_NOT_FOUND_ERROR(nodeGroupName);\n }\n List<String> roles = group.getRoleNameList();\n List<String> unsupportedRoles = new ArrayList<String>();\n AuAssert.check(!roles.isEmpty(), \"String_Node_Str\");\n if (roles.contains(HadoopRole.HADOOP_NAMENODE_ROLE.toString())) {\n unsupportedRoles.add(HadoopRole.HADOOP_NAMENODE_ROLE.toString());\n }\n if (roles.contains(HadoopRole.HADOOP_JOBTRACKER_ROLE.toString())) {\n unsupportedRoles.add(HadoopRole.HADOOP_JOBTRACKER_ROLE.toString());\n }\n if (!unsupportedRoles.isEmpty()) {\n logger.info(\"String_Node_Str\" + unsupportedRoles);\n throw ClusterManagerException.ROLES_NOT_SUPPORTED(unsupportedRoles);\n }\n if (!ClusterStatus.RUNNING.equals(cluster.getStatus())) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\" + cluster.getStatus() + \"String_Node_Str\");\n throw ClusterManagerException.UPDATE_NOT_ALLOWED_ERROR(clusterName, \"String_Node_Str\");\n }\n if (instanceNum <= group.getDefineInstanceNum()) {\n logger.error(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\" + group.getDefineInstanceNum() + \"String_Node_Str\" + instanceNum + \"String_Node_Str\");\n throw ClusterManagerException.SHRINK_OP_NOT_SUPPORTED(nodeGroupName, instanceNum, group.getDefineInstanceNum());\n }\n Integer instancePerHost = group.getInstancePerHost();\n if (instancePerHost != null && instanceNum % instancePerHost != 0) {\n throw BddException.INVALID_PARAMETER(\"String_Node_Str\", new StringBuilder(100).append(instanceNum).append(\"String_Node_Str\").toString());\n }\n group.validateHostNumber(instanceNum);\n group.validateIfHostCanSatisfied(instanceNum);\n return group;\n }\n });\n final int oldInstanceNum = group.getDefineInstanceNum();\n group.setDefineInstanceNum(instanceNum);\n DAL.inTransactionUpdate(group);\n UpdateClusterListener listener = new UpdateClusterListener(clusterName);\n try {\n return createClusterMgmtTask(cluster, listener, ClusterStatus.UPDATING);\n } catch (Exception ex) {\n DAL.inTransactionDo(new Saveable<Void>() {\n public Void body() {\n DAL.refresh(group);\n group.setDefineInstanceNum(oldInstanceNum);\n Set<HadoopNodeEntity> toRemove = new HashSet<HadoopNodeEntity>();\n if (group.getHadoopNodes() != null) {\n for (HadoopNodeEntity node : group.getHadoopNodes()) {\n if (ClusterCmdUtil.getIndexFromNodeName(node.getVmName()) >= oldInstanceNum) {\n logger.info(\"String_Node_Str\" + node.getVmName());\n toRemove.add(node);\n DAL.delete(node);\n }\n }\n group.getHadoopNodes().removeAll(toRemove);\n }\n return null;\n }\n });\n throw ex;\n }\n}\n"
"public static File sendMMSRequest(Project project, HttpRequestBase request) throws IOException, ServerException, URISyntaxException {\n File targetFile = File.createTempFile(\"String_Node_Str\", null);\n targetFile.deleteOnExit();\n HttpEntityEnclosingRequest httpEntityEnclosingRequest = null;\n boolean logBody = MDKOptionsGroup.getMDKOptions().isLogJson();\n logBody = logBody && request instanceof HttpEntityEnclosingRequest;\n logBody = logBody && ((httpEntityEnclosingRequest = (HttpEntityEnclosingRequest) request).getEntity() != null);\n logBody = logBody && httpEntityEnclosingRequest.getEntity().isRepeatable();\n System.out.println(\"String_Node_Str\" + request.getMethod() + \"String_Node_Str\" + request.getURI().toString());\n boolean throwServerException = false;\n int responseCode;\n try (CloseableHttpClient httpclient = HttpClients.createDefault();\n CloseableHttpResponse response = httpclient.execute(request);\n InputStream inputStream = response.getEntity().getContent();\n OutputStream outputStream = new FileOutputStream(targetFile)) {\n responseCode = response.getStatusLine().getStatusCode();\n String responseType = ((response.getEntity().getContentType() != null) ? response.getEntity().getContentType().getValue() : \"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + request.getMethod() + \"String_Node_Str\" + request.getURI().toString() + \"String_Node_Str\" + responseCode);\n System.out.println(\"String_Node_Str\" + targetFile.getPath());\n if (inputStream != null) {\n byte[] buffer = new byte[8 * 1024];\n int bytesRead;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n }\n }\n JsonFactory jsonFactory = JacksonUtils.getJsonFactory();\n try (JsonParser jsonParser = jsonFactory.createParser(targetFile)) {\n while (jsonParser.nextFieldName() != null && !jsonParser.nextFieldName().equals(\"String_Node_Str\")) {\n }\n if (jsonParser.getCurrentToken() == JsonToken.FIELD_NAME) {\n jsonParser.nextToken();\n Application.getInstance().getGUILog().log(\"String_Node_Str\" + jsonParser.getText());\n }\n }\n if (throwServerException) {\n Utils.showPopupMessage(\"String_Node_Str\");\n throw new ServerException(targetFile.getAbsolutePath(), responseCode);\n }\n return targetFile;\n}\n"
"public int compare(MapUpgrade u1, MapUpgrade u2) {\n if (u1 instanceof TileHexUpgrade && u2 instanceof TileHexUpgrade) {\n TileHexUpgrade tu1 = (TileHexUpgrade) u1;\n TileHexUpgrade tu2 = (TileHexUpgrade) u2;\n return ComparisonChain.start().compare(tu1.getAction(), tu2.getAction()).compare(tu1.getUpgrade().getTargetTile(), tu2.getUpgrade().getTargetTile()).compare(tu1.getLocation().getId(), tu2.getLocation().getId()).result();\n }\n return 0;\n}\n"
"private File createFile(IncomingFileTransferRequest fileTransferRequest) {\n File downloadFile = null;\n File downloadDir = null;\n String incomingFileName = fileTransferRequest.getFileName();\n try {\n downloadDir = GuiActivator.getFileAccessService().getDefaultDownloadDirectory();\n if (!downloadDir.exists()) {\n if (!downloadDir.mkdirs()) {\n logger.error(\"String_Node_Str\" + downloadDir.getAbsolutePath());\n }\n logger.debug(\"String_Node_Str\" + downloadDir.getAbsolutePath());\n }\n } catch (IOException e) {\n logger.debug(\"String_Node_Str\", e);\n }\n downloadFile = new File(downloadDir, incomingFileName);\n int index = 0;\n while (downloadFile.exists()) {\n String newFileName = incomingFileName.substring(0, incomingFileName.lastIndexOf(\"String_Node_Str\")) + \"String_Node_Str\" + ++index + incomingFileName.substring(incomingFileName.lastIndexOf(\"String_Node_Str\"));\n downloadFile = new File(downloadDir, newFileName);\n }\n if (!downloadFile.getName().equals(fileTransferRequest.getFileName())) {\n String fileName = getFileLabel(downloadFile.getName(), fileTransferRequest.getFileSize());\n fileLabel.setText(fileName);\n }\n return downloadFile;\n}\n"
"private void startTestSuite(ITestSuitePO testSuite, Locale locale, IProgressMonitor monitor, String noRunOptMode) {\n Validate.notNull(testSuite, \"String_Node_Str\");\n ICapPO firstCap = null;\n m_expectedNumberOfSteps = 0;\n m_trav = new Traverser(testSuite, locale);\n try {\n monitor.subTask(Messages.StartingTestSuite_resolvingTestStepsToExecute);\n monitor.subTask(Messages.StartingTestSuite_buildingTestExecutionTree);\n Traverser copier = new Traverser(testSuite, locale);\n ResultTreeBuilder resultTreeBuilder = new ResultTreeBuilder(copier);\n copier.addExecStackModificationListener(resultTreeBuilder);\n ICapPO iterNode = copier.next();\n while (iterNode != null) {\n iterNode = copier.next();\n m_expectedNumberOfSteps++;\n }\n Map<String, String> autConfigMap = getConnectedAUTsConfigMap();\n resetMonitoringData(autConfigMap, monitor);\n if (noRunOptMode.equals(TestexecConstants.NoRunSteps.BT.getStepValue())) {\n return;\n }\n TestResultBP.getInstance().setResultTestModel(new TestResult(resultTreeBuilder.getRootNode(), autConfigMap));\n initTestExecutionMessage(autConfigMap, monitor);\n m_resultTreeTracker = new ResultTreeTracker(resultTreeBuilder.getRootNode(), m_externalTestDataBP);\n IProgressMonitor subMonitor = new SubProgressMonitor(monitor, ClientTestImpl.TEST_SUITE_EXECUTION_RELATIVE_WORK_AMOUNT);\n subMonitor.beginTask(NLS.bind(Messages.StartWorkingWithTestSuite, testSuite.getName()), m_expectedNumberOfSteps);\n m_stepCounter = new StepCounter(subMonitor);\n addTestExecutionListener();\n setStepSpeed(testSuite.getStepDelay());\n ClientTest.instance().fireTestExecutionChanged(new TestExecutionEvent(State.TEST_EXEC_RESULT_TREE_READY));\n monitor.subTask(NLS.bind(Messages.StartingTestSuite, testSuite.getName()));\n firstCap = m_trav.next();\n } catch (JBException e) {\n LOG.error(Messages.IncompleteTestdata, e);\n fireError(e);\n }\n if (firstCap != null) {\n ClientTest.instance().fireTestExecutionChanged(new TestExecutionEvent(State.TEST_EXEC_START));\n processCap(firstCap);\n } else {\n endTestExecution();\n }\n}\n"
"private void parseQueryIpV6Mask(String strQuery, BigDecimal[] ipV6) {\n final int lowLimitShift = 64;\n long maskRangeBytes = 0;\n if (numMask > 0) {\n maskRangeBytes = lowLimitShift * 2 - numMask;\n }\n int lowShift = (int) maskRangeBytes;\n BigDecimal powDecimalBase = BigDecimal.valueOf(2L);\n BigDecimal endSubDecimalBase = BigDecimal.valueOf(1L);\n ipQueryStartHigh = ipV6[0];\n ipQueryEndHigh = ipV6[0];\n if (numMask > lowLimitShift) {\n int highShift = (int) numMask - lowLimitShift;\n BigDecimal powDecimalhigh = powDecimalBase.pow(highShift);\n BigDecimal modDecimalHigh = ipV6[0].remainder(powDecimalhigh);\n ipQueryStartHigh = ipV6[0].subtract(modDecimalHigh);\n lowShift = lowLimitShift;\n BigDecimal highEndPlusDecimal = powDecimalhigh.subtract(endSubDecimalBase);\n ipQueryEndHigh = ipQueryStartHigh.add(highEndPlusDecimal);\n }\n BigDecimal powDecimalLow = powDecimalBase.pow(lowShift);\n BigDecimal modDecimalLow = ipV6[1].remainder(powDecimalLow);\n ipQueryStartLow = ipV6[1].subtract(modDecimalLow);\n BigDecimal lowEndPlusDecimal = powDecimalLow.subtract(endSubDecimalBase);\n ipQueryEndLow = ipQueryStartLow.add(lowEndPlusDecimal);\n}\n"
"private void loadImages() {\n mBufferIDs = new int[13];\n mImages = new Allocation[13];\n mAllocIDs = Allocation.createSized(mRS, Element.USER_F32(mRS), mBufferIDs.length);\n Element ie = Element.RGB_565(mRS);\n mImages[0] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p01, ie, true);\n mImages[1] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p02, ie, true);\n mImages[2] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p03, ie, true);\n mImages[3] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p04, ie, true);\n mImages[4] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p05, ie, true);\n mImages[5] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p06, ie, true);\n mImages[6] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p07, ie, true);\n mImages[7] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p08, ie, true);\n mImages[8] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p09, ie, true);\n mImages[9] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p10, ie, true);\n mImages[10] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p11, ie, true);\n mImages[11] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p12, ie, true);\n mImages[12] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p13, ie, true);\n int[] black = new int[1024];\n for (int ct = 0; ct < mImages.length; ct++) {\n Allocation.Adapter2D a = mImages[ct].createAdapter2D();\n int size = 512;\n int mip = 0;\n while (size >= 2) {\n a.subData(0, 0, 2, size, black);\n a.subData(size - 2, 0, 2, size, black);\n a.subData(0, 0, size, 2, black);\n a.subData(0, size - 2, size, 2, black);\n size >>= 1;\n mip++;\n a.setConstraint(Dimension.LOD, mip);\n }\n mImages[ct].uploadToTexture(1);\n mBufferIDs[ct] = mImages[ct].getID();\n }\n mAllocIDs.data(mBufferIDs);\n}\n"
"private void initConfig() {\n ConfigEntry ce, conditionEntry;\n final SubConfiguration subConfig = getPluginConfig();\n config.setGroup(new ConfigGroup(getHost(), getIconKey()));\n config.addEntry(conditionEntry = new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_USE_EXTRACT_PATH, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n config.addEntry(ce = new ConfigEntry(ConfigContainer.TYPE_BROWSEFOLDER, subConfig, ExtractionConstants.CONFIG_KEY_UNPACKPATH, JDL.L(\"String_Node_Str\", \"String_Node_Str\")));\n ce.setDefaultValue(JDUtilities.getDefaultDownloadDirectory());\n ce.setEnabledCondidtion(conditionEntry, true);\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_REMVE_AFTER_EXTRACT, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_OVERWRITE, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n config.setGroup(new ConfigGroup(JDL.L(\"String_Node_Str\", \"String_Node_Str\"), getIconKey()));\n config.addEntry(conditionEntry = new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_USE_SUBPATH, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n config.addEntry(ce = new ConfigEntry(ConfigContainer.TYPE_TEXTFIELD, subConfig, ExtractionConstants.CONFIG_KEY_SUBPATH, JDL.L(\"String_Node_Str\", \"String_Node_Str\")));\n ce.setDefaultValue(\"String_Node_Str\");\n ce.setEnabledCondidtion(conditionEntry, true);\n config.addEntry(ce = new ConfigEntry(ConfigContainer.TYPE_SPINNER, subConfig, ExtractionConstants.CONFIG_KEY_SUBPATH_MINNUM, JDL.L(\"String_Node_Str\", \"String_Node_Str\"), 0, 1000, 1).setDefaultValue(0));\n ce.setEnabledCondidtion(conditionEntry, true);\n config.addEntry(ce = new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_SUBPATH_NO_FOLDER, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n ce.setEnabledCondidtion(conditionEntry, true);\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_ASK_UNKNOWN_PASS, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(true));\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_DEEP_EXTRACT, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(true));\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_REMOVE_INFO_FILE, JDL.L(\"String_Node_Str\", \"String_Node_Str\")).setDefaultValue(false));\n config.addEntry(new ConfigEntry(ConfigContainer.TYPE_SPINNER, subConfig, ExtractionConstants.CONFIG_KEY_ADDITIONAL_SPACE, JDL.L(\"String_Node_Str\", \"String_Node_Str\"), 1, 2048, 1).setDefaultValue(512));\n for (IExtraction extractor : extractors) {\n extractor.initConfig(config, subConfig);\n }\n}\n"
"public void testGetRepositoryResolveByRepositoryApiClassConstantCompatibility() {\n String result = \"String_Node_Str\" + '\\u0151' + \"String_Node_Str\" + '\\u0185' + \"String_Node_Str\";\n if (Integer.parseInt(PluginManager.getPlugin(PluginId.getId(\"String_Node_Str\")).getVersion().replace(\"String_Node_Str\", \"String_Node_Str\")) <= 1411534) {\n result = \"String_Node_Str\" + '\\u0151' + \"String_Node_Str\" + '\\u0180' + \"String_Node_Str\";\n }\n assertPhpReferenceSignatureEquals(PhpFileType.INSTANCE, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", result);\n}\n"
"public View getView(int index, View convertView, ViewGroup parent) {\n ImageView imageView = null;\n View view = null;\n try {\n if (convertView == null) {\n LayoutInflater inflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View rowView = inflater.inflate(R.layout.gobo_cell, parent, false);\n view = rowView;\n imageView = (ImageView) view.findViewById(R.id.goboicon);\n imageView.setPadding(2, 2, 2, 2);\n } else {\n view = (View) convertView;\n imageView = (ImageView) view.findViewById(R.id.goboicon);\n }\n if (this.items == null) {\n imageView.setVisibility(View.INVISIBLE);\n return view;\n }\n imageView.setVisibility(View.VISIBLE);\n if (!images.contains(this.items[index].getValue())) {\n images.add(new ImageWithKey(this.items[index].getImage(ctx), this.items[index].getValue()));\n }\n imageView.setImageBitmap(images.get(this.items[index].getValue()).getBitmap());\n if (DeviceGroupWrapper.get().getLastWrappedDeviceFromSelection().getSelectedValueIndices().contains(items[index].getIndex())) {\n } else {\n imageView.setBackgroundColor(Color.TRANSPARENT);\n }\n } catch (Exception e) {\n Log.d(\"String_Node_Str\", DMXControlApplication.stackTraceToString(e));\n }\n return view;\n}\n"
"public void closeRequested(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {\n childChannels.close().addListener(new ChannelGroupFutureListener() {\n public void operationComplete(ChannelGroupFuture future) throws Exception {\n ctx.sendDownstream(e);\n }\n }\n}\n"
"public synchronized void stop() {\n if (env.getStatus() != ServerEnvironment.Status.started) {\n logger.fine(\"String_Node_Str\");\n return;\n }\n env.setStatus(ServerEnvironment.Status.stopping);\n try {\n events.send(new Event(EventTypes.PREPARE_SHUTDOWN), false);\n } catch (Exception e) {\n logger.log(Level.SEVERE, KernelLoggerInfo.exceptionDuringShutdown, e);\n }\n try {\n proceedTo(InitRunLevel.VAL, new AppServerActivator(null));\n } catch (Exception e) {\n logger.log(Level.SEVERE, KernelLoggerInfo.exceptionDuringShutdown, e);\n }\n env.setStatus(ServerEnvironment.Status.stopped);\n try {\n events.send(new Event(EventTypes.SERVER_SHUTDOWN), false);\n } catch (Exception e) {\n logger.log(Level.SEVERE, KernelLoggerInfo.exceptionDuringShutdown, e);\n }\n try {\n runLevelController.proceedTo(0);\n } catch (Exception e) {\n logger.log(Level.SEVERE, KernelLoggerInfo.exceptionDuringShutdown, e);\n }\n logger.info(KernelLoggerInfo.shutdownFinished);\n if (serverThread != null) {\n synchronized (serverThread) {\n shutdownSignal = true;\n serverThread.notify();\n }\n try {\n serverThread.join(0);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n}\n"
"private TxnPacket receiveTxnProposal(TxnPacket pkt) {\n String request = pkt.getRequest();\n try {\n UUID txnID = pkt.getID();\n if (participantTxns.containsKey(txnID)) {\n writeError(\"String_Node_Str\");\n fail();\n }\n writeOutput(\"String_Node_Str\" + txnID + \"String_Node_Str\");\n TxnState txnState = new TxnState(txnID, pkt.getParticipants(), pkt.getRequest(), pkt.getPayload());\n participantTxns.put(txnID, txnState);\n Class<? extends TransactionNode> me = this.getClass();\n Method handler = me.getDeclaredMethod(PROPOSAL_PREFIX + request, java.lang.String.class, java.util.UUID.class);\n Boolean accept = (Boolean) handler.invoke(me, pkt.getPayload(), txnState.txnID);\n if (accept) {\n txnLogger.logAccept(txnState);\n txnState.status = TxnState.TxnStatus.WAITING;\n Callback decisionTimeout = createCallback(\"String_Node_Str\", new String[] { UUID.class.getName() }, new Object[] { pkt.getID() });\n addTimeout(decisionTimeout, DECISION_TIMEOUT);\n return TxnPacket.getAcceptPacket(this, pkt.getID());\n } else {\n txnLogger.logReject(txnState);\n txnState.status = TxnState.TxnStatus.ABORTED;\n recieveTxnAbort(pkt);\n return TxnPacket.getRejectPacket(this, pkt.getID(), \"String_Node_Str\");\n }\n } catch (NoSuchMethodException e) {\n writeError(\"String_Node_Str\" + request);\n return TxnPacket.getRejectPacket(this, pkt.getID(), \"String_Node_Str\");\n } catch (IllegalArgumentException e) {\n writeError(\"String_Node_Str\" + request + \"String_Node_Str\");\n return TxnPacket.getRejectPacket(this, pkt.getID(), \"String_Node_Str\");\n } catch (Exception e) {\n writeError(\"String_Node_Str\" + request + \"String_Node_Str\" + e.getMessage());\n this.fail();\n return null;\n }\n}\n"
"public void init() {\n fakeRoot = makeFakeRootNode();\n Key k = new Key(fakeRoot.getMethod(), fakeRoot.getContext());\n registerNode(k, fakeRoot);\n fakeWorldClinit = makeFakeWorldClinitNode();\n k = new Key(fakeWorldClinit.getMethod(), fakeWorldClinit.getContext());\n registerNode(k, fakeWorldClinit);\n CallSiteReference site = CallSiteReference.make(1, fakeWorldClinit.getMethod().getReference(), IInvokeInstruction.Dispatch.STATIC);\n site = ((FakeRootMethod) fakeRoot.getMethod()).addInvocation(null, site).getCallSite();\n fakeRoot.addTarget(site, fakeWorldClinit);\n}\n"
"public boolean getAsBoolean() {\n Boolean result = entireInputMatched;\n return result != null ? result.booleanValue() : isEntrieInputMatchesAndStoreResults();\n}\n"
"public ArrayList<String> hitInputs() {\n ArrayList<String> inputs = new ArrayList<String>();\n if (profile != null) {\n for (String s : profile.btnToCode.keySet()) {\n if (btnHit(s))\n inputs.add(s);\n }\n }\n return inputs;\n}\n"
"public void shouldLogMessageIncludingNullSession() throws Exception {\n new TransportExceptionMonitor().exceptionCaught(new NullPointerException(EXCEPTION_MESSAGE), null);\n checkLogMessageRule.setExpectedPatterns(Arrays.asList(\"String_Node_Str\"));\n}\n"
"public void optimize(Logger logger, Program program) throws UserException {\n boolean changed;\n do {\n FuncCallFinder finder = new FuncCallFinder();\n TreeWalk.walk(logger, program, finder);\n pruneBuiltins(logger, program, finder);\n Pair<MultiMap<String, String>, Set<String>> actions = selectInlineFunctions(program, finder);\n MultiMap<String, String> inlineLocations = actions.val1;\n Set<String> toRemove = actions.val2;\n logger.debug(\"String_Node_Str\" + inlineLocations.toString());\n logger.debug(\"String_Node_Str\" + toRemove.toString());\n changed = doInlining(logger, program, inlineLocations, toRemove);\n logger.debug(\"String_Node_Str\" + changed);\n i++;\n } while (changed && i < MAX_ITERS_PER_PASS);\n}\n"
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n IMetadataConnection metaConnection = ConvertionHelper.convert(dbConn);\n dbConn = (DatabaseConnection) MetadataFillFactory.getDBInstance().fillUIConnParams(metaConnection, dbConn);\n sqlConn = MetadataConnectionUtils.checkConnection(metaConnection).getObject();\n if (sqlConn != null) {\n DatabaseMetaData dm = ExtractMetaDataUtils.getInstance().getDatabaseMetaData(sqlConn, dbConn, false);\n MetadataFillFactory.getDBInstance().fillCatalogs(dbConn, dm, MetadataConnectionUtils.getPackageFilter(dbConn, dm, true));\n MetadataFillFactory.getDBInstance().fillSchemas(dbConn, dm, MetadataConnectionUtils.getPackageFilter(dbConn, dm, false));\n }\n }\n } finally {\n if (sqlConn != null) {\n ConnectionUtils.closeConnection(sqlConn);\n }\n }\n return dbConn;\n}\n"
"private static int extractNextIndex(String text, String[] args) {\n int start = text.indexOf(\"String_Node_Str\");\n int end = text.indexOf(\"String_Node_Str\", start);\n if (start != -1 && end != -1) {\n String val = text.substring(start + \"String_Node_Str\".length(), end);\n try {\n int index = Integer.parseInt(val);\n if (index >= 0 && index < args.length) {\n return index;\n }\n } catch (NumberFormatException nfe) {\n return -1;\n }\n }\n return -1;\n}\n"
"public List<CurrencyConversionLine> getCurrencyConfigurationLineList() {\n AppBase appBase = getAppBase();\n if (appBase != null) {\n return appBase.getCurrencyConversionLineList();\n } else {\n return null;\n }\n}\n"
"private void createDataArea() {\n fDataArea = new ScrolledComposite(foSashForm, SWT.VERTICAL);\n {\n GridLayout gl = new GridLayout();\n fDataArea.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_VERTICAL);\n fDataArea.setLayoutData(gd);\n fDataArea.setExpandHorizontal(true);\n fDataArea.setExpandVertical(true);\n }\n Composite dataComposite = new Composite(fDataArea, SWT.NONE);\n {\n GridLayout gl = new GridLayout(2, false);\n gl.marginLeft = fLeftSize.x;\n dataComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_BOTH);\n dataComposite.setLayoutData(gd);\n }\n fDataArea.setContent(dataComposite);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.widthHint = fLeftSize.x;\n new Label(dataComposite, SWT.NONE).setLayoutData(gd);\n getDataSheet().createDataSelector(dataComposite);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.widthHint = fRightSize.x;\n new Label(dataComposite, SWT.NONE).setLayoutData(gd);\n new Label(dataComposite, SWT.NONE);\n getDataSheet().createDataDragSource(dataComposite);\n getDataSheet().createActionButtons(dataComposite);\n new Label(dataComposite, SWT.NONE);\n Point size = dataComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT);\n fDataArea.setMinSize(size);\n}\n"
"protected void doSave(OutputStream outputStream, Map options) throws IOException {\n if (getContents().size() > 0) {\n ByteArray byteArray = (ByteArray) getContents().get(0);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);\n bufferedOutputStream.write(byteArray.getInnerContent());\n bufferedOutputStream.flush();\n }\n}\n"
"private String computeQuestionBetterPerformance(QueryTree<N> lgg, List<QueryTree<N>> negTrees, List<String> knownResources) throws TimeOutException {\n startTime = System.currentTimeMillis();\n this.lgg = lgg;\n this.negTrees = negTrees;\n if (userAnsweredWithNo()) {\n noSequences.add(lastSequence);\n }\n negExamplesCount = negTrees.size();\n determiningNodeIds = getDeterminingNodeIds(lgg, negTrees);\n logger.info(\"String_Node_Str\");\n postLGG = getFilteredTree(lgg);\n PostLGG<N> postGen = new PostLGG<N>((SPARQLEndpointEx) endpoint);\n postGen.simplifyTree(postLGG, negTrees);\n logger.info(\"String_Node_Str\" + TreeHelper.getAbbreviatedTreeRepresentation(postLGG, endpoint.getBaseURI(), endpoint.getPrefixes()));\n logger.info(\"String_Node_Str\" + postLGG.toSPARQLQueryString());\n logger.info(\"String_Node_Str\" + getAllResources(postLGG.toSPARQLQueryString()).size());\n limit = knownResources.size();\n List<GeneralisedQueryTree<N>> queue = null;\n if (generalizeSortedByNegatives) {\n queue = getAllowedGeneralisationsSortedByMatrix(new GeneralisedQueryTree<N>(postLGG), negTrees);\n } else {\n queue = getAllowedGeneralisationsSorted(new GeneralisedQueryTree<N>(postLGG));\n }\n logger.debug(getQueueLogInfo(queue));\n GeneralisedQueryTree<N> tree1;\n GeneralisedQueryTree<N> tree2;\n GeneralisedQueryTree<N> tmp;\n List<GeneralisedQueryTree<N>> gens;\n List<GeneralisedQueryTree<N>> neededGeneralisations;\n while (!queue.isEmpty()) {\n neededGeneralisations = new ArrayList<GeneralisedQueryTree<N>>();\n logger.debug(\"String_Node_Str\");\n tree1 = getGeneralisedQueryTreeNotContainingNoSequence(queue);\n tmp = tree1;\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + tmp.getChanges());\n }\n boolean coversNegTree = coversNegativeTree(tmp.getQueryTree(), negTrees);\n neededGeneralisations.add(tmp);\n logger.debug(\"String_Node_Str\" + coversNegTree);\n while (!coversNegTree) {\n if (generalizeSortedByNegatives) {\n gens = getAllowedGeneralisationsSortedByMatrix(tmp, negTrees);\n } else {\n gens = getAllowedGeneralisationsSorted(tmp);\n }\n if (gens.isEmpty()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n break;\n }\n tmp = getGeneralisedQueryTreeNotContainingNoSequence(gens);\n neededGeneralisations.add(tmp);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + tmp.getChanges());\n }\n queue.addAll(0, gens);\n logger.debug(getQueueLogInfo(queue));\n coversNegTree = coversNegativeTree(tmp.getQueryTree(), negTrees);\n if (coversNegTree) {\n logger.debug(\"String_Node_Str\" + tmp.getChanges());\n } else {\n neededGeneralisations.add(tmp);\n }\n }\n int index = neededGeneralisations.size() - 1;\n if (coversNegTree) {\n if (index == -1) {\n tree2 = tmp;\n }\n tree2 = neededGeneralisations.get(index--);\n } else {\n tree2 = tmp;\n }\n String newResource = getNewResource2(fSparql(lgg, tree2.getChanges()), knownResources);\n if (isTerminationCriteriaReached()) {\n throw new TimeOutException(maxExecutionTimeInSeconds);\n }\n fSparql(postLGG, tmp.getChanges());\n logger.debug(\"String_Node_Str\" + newResource);\n if (!(newResource == null)) {\n logger.debug(\"String_Node_Str\");\n newResource = findMostSpecificResourceTree2(neededGeneralisations, knownResources, 0, neededGeneralisations.size() - 1);\n logger.debug(\"String_Node_Str\");\n return newResource;\n } else {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n }\n }\n return null;\n}\n"
"public ObjectBuilder<T> createObjectBuilder(FullQueryBuilder<?, ?> queryBuilder, Map<String, Object> optionalParameters, EntityViewConfiguration entityViewConfiguration, boolean isSubview) {\n boolean hasOffset = tupleOffset != 0;\n ObjectBuilder<T> result;\n result = new ViewTypeObjectBuilder<T>(this, queryBuilder, optionalParameters);\n if (hasOffset || isSubview || hasIndexedCollections || hasSubviews) {\n result = new ReducerViewTypeObjectBuilder<T>(result, tupleOffset, mappers.length, !isSubview && tupleOffset > 0);\n }\n if (hasParameters) {\n result = new ParameterViewTypeObjectBuilder<T>(result, this, queryBuilder, optionalParameters, tupleOffset);\n }\n if (tupleTransformatorFactory.hasTransformers() && !isSubview) {\n result = new ChainingObjectBuilder<T>(tupleTransformatorFactory, result, queryBuilder, optionalParameters, entityViewConfiguration, tupleOffset);\n }\n return result;\n}\n"
"public void getOptions() {\n autoSelect = options.autoSelect.isSelected();\n if (fullColour != options.fullColour.isSelected()) {\n formatChange = true;\n forceNonincremental = true;\n }\n fullColour = options.fullColour.isSelected();\n if (!fullColour) {\n int newLowColourLevel = (options.veryLowColour.isSelected() ? 0 : options.lowColour.isSelected() ? 1 : 2);\n if (newLowColourLevel != lowColourLevel) {\n lowColourLevel = newLowColourLevel;\n formatChange = true;\n forceNonincremental = true;\n }\n }\n int newEncoding = (options.zrle.isSelected() ? Encodings.encodingZRLE : options.hextile.isSelected() ? Encodings.encodingHextile : options.tight.isSelected() ? Encodings.encodingTight : Encodings.encodingRaw);\n if (newEncoding != currentEncoding) {\n currentEncoding = newEncoding;\n encodingChange = true;\n }\n viewer.customCompressLevel.setParam(options.customCompressLevel.isSelected());\n if (cp.customCompressLevel != viewer.customCompressLevel.getValue()) {\n cp.customCompressLevel = viewer.customCompressLevel.getValue();\n encodingChange = true;\n }\n if (Integer.parseInt(options.compressLevel.getSelectedItem().toString()) >= 0 && Integer.parseInt(options.compressLevel.getSelectedItem().toString()) <= 9) {\n viewer.compressLevel.setParam(options.compressLevel.getSelectedItem().toString());\n } else {\n viewer.compressLevel.setParam(viewer.compressLevel.getDefaultStr());\n }\n if (cp.compressLevel != viewer.compressLevel.getValue()) {\n cp.compressLevel = viewer.compressLevel.getValue();\n encodingChange = true;\n }\n viewer.noJpeg.setParam(!options.noJpeg.isSelected());\n if (cp.noJpeg != viewer.noJpeg.getValue()) {\n cp.noJpeg = viewer.noJpeg.getValue();\n encodingChange = true;\n }\n viewer.qualityLevel.setParam(options.qualityLevel.getSelectedItem().toString());\n if (cp.qualityLevel != viewer.qualityLevel.getValue()) {\n cp.qualityLevel = viewer.qualityLevel.getValue();\n encodingChange = true;\n }\n viewer.sendLocalUsername.setParam(options.sendLocalUsername.isSelected());\n viewer.viewOnly.setParam(options.viewOnly.isSelected());\n viewer.acceptClipboard.setParam(options.acceptClipboard.isSelected());\n viewer.sendClipboard.setParam(options.sendClipboard.isSelected());\n viewer.acceptBell.setParam(options.acceptBell.isSelected());\n String scaleString = options.scalingFactor.getSelectedItem().toString();\n String oldScaleFactor = viewer.scalingFactor.getValue();\n if (scaleString.equalsIgnoreCase(\"String_Node_Str\")) {\n scaleString = new String(\"String_Node_Str\");\n } else if (scaleString.equalsIgnoreCase(\"String_Node_Str\")) {\n scaleString = new String(\"String_Node_Str\");\n } else {\n scaleString = scaleString.substring(0, scaleString.length() - 1);\n }\n if (!oldScaleFactor.equals(scaleString)) {\n viewer.scalingFactor.setParam(scaleString);\n if ((options.fullScreen.isSelected() == fullScreen) && (desktop != null))\n recreateViewport();\n }\n clipboardDialog.setSendingEnabled(viewer.sendClipboard.getValue());\n viewer.menuKey.setParam(MenuKey.getMenuKeySymbols()[options.menuKey.getSelectedIndex()].name);\n F8Menu.f8.setText(\"String_Node_Str\" + KeyEvent.getKeyText(MenuKey.getMenuKeyCode()));\n setShared(options.shared.isSelected());\n viewer.useLocalCursor.setParam(options.useLocalCursor.isSelected());\n if (cp.supportsLocalCursor != viewer.useLocalCursor.getValue()) {\n cp.supportsLocalCursor = viewer.useLocalCursor.getValue();\n encodingChange = true;\n if (desktop != null)\n desktop.resetLocalCursor();\n }\n checkEncodings();\n if (state() != RFBSTATE_NORMAL) {\n if (options.encNone.isSelected()) {\n if (options.secNone.isSelected())\n Security.EnableSecType(Security.secTypeNone);\n if (options.secVnc.isSelected())\n Security.EnableSecType(Security.secTypeVncAuth);\n if (options.secPlain.isSelected())\n Security.EnableSecType(Security.secTypePlain);\n if (options.secIdent.isSelected())\n Security.EnableSecType(Security.secTypeIdent);\n } else {\n Security.DisableSecType(Security.secTypeNone);\n Security.DisableSecType(Security.secTypeVncAuth);\n Security.DisableSecType(Security.secTypePlain);\n Security.DisableSecType(Security.secTypeIdent);\n }\n if (options.encTLS.isSelected()) {\n if (options.secNone.isSelected())\n Security.EnableSecType(Security.secTypeTLSNone);\n if (options.secVnc.isSelected())\n Security.EnableSecType(Security.secTypeTLSVnc);\n if (options.secPlain.isSelected())\n Security.EnableSecType(Security.secTypeTLSPlain);\n if (options.secIdent.isSelected())\n Security.EnableSecType(Security.secTypeTLSIdent);\n } else {\n Security.DisableSecType(Security.secTypeTLSNone);\n Security.DisableSecType(Security.secTypeTLSVnc);\n Security.DisableSecType(Security.secTypeTLSPlain);\n Security.DisableSecType(Security.secTypeTLSIdent);\n }\n if (options.encX509.isSelected()) {\n if (options.secNone.isSelected())\n Security.EnableSecType(Security.secTypeX509None);\n if (options.secVnc.isSelected())\n Security.EnableSecType(Security.secTypeX509Vnc);\n if (options.secPlain.isSelected())\n Security.EnableSecType(Security.secTypeX509Plain);\n if (options.secIdent.isSelected())\n Security.EnableSecType(Security.secTypeX509Ident);\n } else {\n Security.DisableSecType(Security.secTypeX509None);\n Security.DisableSecType(Security.secTypeX509Vnc);\n Security.DisableSecType(Security.secTypeX509Plain);\n Security.DisableSecType(Security.secTypeX509Ident);\n }\n if (options.secNone.isSelected()) {\n if (options.encNone.isSelected())\n Security.EnableSecType(Security.secTypeNone);\n if (options.encTLS.isSelected())\n Security.EnableSecType(Security.secTypeTLSNone);\n if (options.encX509.isSelected())\n Security.EnableSecType(Security.secTypeX509None);\n } else {\n Security.DisableSecType(Security.secTypeNone);\n Security.DisableSecType(Security.secTypeTLSNone);\n Security.DisableSecType(Security.secTypeX509None);\n }\n if (options.secVnc.isSelected()) {\n if (options.encNone.isSelected())\n Security.EnableSecType(Security.secTypeVncAuth);\n if (options.encTLS.isSelected())\n Security.EnableSecType(Security.secTypeTLSVnc);\n if (options.encX509.isSelected())\n Security.EnableSecType(Security.secTypeX509Vnc);\n } else {\n Security.DisableSecType(Security.secTypeVncAuth);\n Security.DisableSecType(Security.secTypeTLSVnc);\n Security.DisableSecType(Security.secTypeX509Vnc);\n }\n if (options.secPlain.isSelected()) {\n if (options.encNone.isSelected())\n Security.EnableSecType(Security.secTypePlain);\n if (options.encTLS.isSelected())\n Security.EnableSecType(Security.secTypeTLSPlain);\n if (options.encX509.isSelected())\n Security.EnableSecType(Security.secTypeX509Plain);\n } else {\n Security.DisableSecType(Security.secTypePlain);\n Security.DisableSecType(Security.secTypeTLSPlain);\n Security.DisableSecType(Security.secTypeX509Plain);\n }\n if (options.secIdent.isSelected()) {\n if (options.encNone.isSelected())\n Security.EnableSecType(Security.secTypeIdent);\n if (options.encTLS.isSelected())\n Security.EnableSecType(Security.secTypeTLSIdent);\n if (options.encX509.isSelected())\n Security.EnableSecType(Security.secTypeX509Ident);\n } else {\n Security.DisableSecType(Security.secTypeIdent);\n Security.DisableSecType(Security.secTypeTLSIdent);\n Security.DisableSecType(Security.secTypeX509Ident);\n }\n }\n String desktopSize = (options.desktopSize.isSelected()) ? options.desktopWidth.getText() + \"String_Node_Str\" + options.desktopHeight.getText() : \"String_Node_Str\";\n viewer.desktopSize.setParam(desktopSize);\n if (options.fullScreen.isSelected() ^ fullScreen)\n toggleFullScreen();\n}\n"
"public int hashCode() {\n if (systemId != null)\n return lineNum ^ systemId.hashCode();\n return lineNum;\n}\n"
"private void clearCachedValues() {\n cachedNumberFormats = null;\n cachedNumberFormat = null;\n cachedTemplateDateFormats = null;\n cachedXSTemplateDateFormatFactory = cachedXSTemplateDateFormatFactorySysDefTZ = null;\n cachedISOTemplateDateFormatFactory = cachedISOTemplateDateFormatFactorySysDefTZ = null;\n cachedJavaTemplateDateFormatFactory = cachedJavaTemplateDateFormatFactorySysDefTZ = null;\n cachedCollator = null;\n cachedURLEscapingCharset = null;\n cachedURLEscapingCharsetSet = false;\n}\n"
"public void setSchema(String schema) throws SQLException {\n if (DataSourceObjectBuilder.isJDBC41()) {\n checkValidity();\n Class<?>[] valueTypes = new Class<?>[] { String.class };\n try {\n getMethodExecutor().invokeMethod(con, \"String_Node_Str\", valueTypes, schema);\n } catch (ResourceException ex) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", ex);\n throw new SQLException(ex);\n }\n return;\n }\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"public void viewCellMoved(CellID viewCellID, CellTransform worldTransform) {\n Vector3f worldTranslation = worldTransform.getTranslation(null);\n synchronized (worldProxBounds) {\n BoundingVolume currentContainer = null;\n int currentContainerIndex = -1;\n int i = 0;\n while (i < worldProxBounds.length) {\n if (worldProxBounds[i].contains(worldTranslation)) {\n nowIn = worldProxBounds[i];\n nowInIndex = i;\n } else {\n i = worldProxBounds.length;\n }\n i++;\n }\n if (currentlyInIndex != nowInIndex) {\n if (nowInIndex < currentlyInIndex) {\n proximityListener.viewEnterExit(false, currentlyIn, currentlyInIndex, viewCellID);\n } else {\n proximityListener.viewEnterExit(true, nowIn, nowInIndex, viewCellID);\n }\n currentlyIn = nowIn;\n currentlyInIndex = nowInIndex;\n }\n }\n}\n"
"public static JSONArray createJsonArrayOfJsonNames(List<? extends Enum<?>> parameterList, int sdlVersion) throws JSONException {\n JSONArray result = new JSONArray();\n for (Enum<?> name : parameterList) {\n result.put(name);\n }\n return result;\n}\n"
"public void loadAll_NotStarted() {\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>());\n cache.stop();\n try {\n cache.loadAll(null, true, null);\n fail(\"String_Node_Str\");\n } catch (IllegalStateException e) {\n }\n}\n"
"private void refreshValues() {\n resultList.clear();\n if (columnChooser.isEnabled()) {\n String queryExpr = null;\n for (Iterator iter = columnList.iterator(); iter.hasNext(); ) {\n ResultSetColumnHandle column = (ResultSetColumnHandle) iter.next();\n if (column.getColumnName().equals(columnChooser.getText())) {\n queryExpr = DEUtil.getResultSetColumnExpression(column.getColumnName());\n break;\n }\n }\n if (queryExpr == null) {\n return;\n }\n try {\n java.util.List modelValueList = SelectValueFetcher.getSelectValueList(queryExpr, getDataSetHandle(), false);\n if (modelValueList != null) {\n Iterator iter = modelValueList.iterator();\n DateFormatter formatter = new DateFormatter(ULocale.US);\n while (iter.hasNext()) {\n Object candiateValue = iter.next();\n if (candiateValue != null) {\n if (expectedColumnDataType == DataType.SQL_DATE_TYPE && candiateValue instanceof Date) {\n formatter.applyPattern(\"String_Node_Str\");\n result = formatter.format((Date) candiateValue);\n } else if (candiateValue instanceof java.sql.Time) {\n formatter.applyPattern(\"String_Node_Str\");\n result = formatter.format((Date) candiateValue);\n } else if (candiateValue instanceof Date) {\n formatter.applyPattern(\"String_Node_Str\");\n result = formatter.format((Date) candiateValue);\n } else\n result = String.valueOf(candiateValue);\n } else {\n result = nullValue;\n hasNullValue = true;\n }\n if (!resultList.contains(result)) {\n resultList.add(result);\n }\n }\n }\n filteValues();\n } catch (BirtException e) {\n ExceptionHandler.handle(e);\n }\n } else {\n valueList.removeAll();\n valueList.deselectAll();\n updateButtons();\n }\n}\n"
"public List<RemoteAccessVpnVO> searchForRemoteAccessVpns(ListRemoteAccessVpnsCmd cmd) {\n Account caller = UserContext.current().getCaller();\n Long ipAddressId = cmd.getPublicIpId();\n List<Long> permittedAccounts = new ArrayList<Long>();\n if (ipAddressId != null) {\n PublicIpAddress publicIp = _networkMgr.getPublicIpAddress(ipAddressId);\n if (publicIp == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + ipAddressId + \"String_Node_Str\");\n } else {\n Long ipAddrAcctId = publicIp.getAccountId();\n if (ipAddrAcctId == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + ipAddressId + \"String_Node_Str\");\n }\n }\n _accountMgr.checkAccess(caller, null, true, publicIp);\n }\n Ternary<Long, Boolean, ListProjectResourcesCriteria> domainIdRecursiveListProject = new Ternary<Long, Boolean, ListProjectResourcesCriteria>(cmd.getDomainId(), cmd.isRecursive(), null);\n _accountMgr.buildACLSearchParameters(caller, null, cmd.getAccountName(), cmd.getProjectId(), permittedAccounts, domainIdRecursiveListProject, cmd.listAll(), false);\n Long domainId = domainIdRecursiveListProject.first();\n Boolean isRecursive = domainIdRecursiveListProject.second();\n ListProjectResourcesCriteria listProjectResourcesCriteria = domainIdRecursiveListProject.third();\n Filter filter = new Filter(RemoteAccessVpnVO.class, \"String_Node_Str\", false, cmd.getStartIndex(), cmd.getPageSizeVal());\n SearchBuilder<RemoteAccessVpnVO> sb = _remoteAccessVpnDao.createSearchBuilder();\n _accountMgr.buildACLSearchBuilder(sb, domainId, isRecursive, permittedAccounts, listProjectResourcesCriteria);\n sb.and(\"String_Node_Str\", sb.entity().getServerAddressId(), Op.EQ);\n sb.and(\"String_Node_Str\", sb.entity().getState(), Op.EQ);\n SearchCriteria<RemoteAccessVpnVO> sc = sb.create();\n _accountMgr.buildACLSearchCriteria(sc, domainId, isRecursive, permittedAccounts, listProjectResourcesCriteria);\n sc.setParameters(\"String_Node_Str\", RemoteAccessVpn.State.Running);\n if (ipAddressId != null) {\n sc.setParameters(\"String_Node_Str\", ipAddressId);\n }\n return _remoteAccessVpnDao.search(sc, filter);\n}\n"
"protected AGLEventListener createGLEventListener(ECommandType glViewType, int iParentCanvasID, boolean bRegisterToOverallMediator) {\n IGeneralManager generalManager = GeneralManager.get();\n ISet set = generalManager.getUseCase().getSet();\n CmdCreateGLEventListener cmdView = (CmdCreateGLEventListener) generalManager.getCommandManager().createCommandByType(glViewType);\n if (glViewType == ECommandType.CREATE_GL_BUCKET_3D) {\n cmdView.setAttributes(EProjectionMode.PERSPECTIVE, -0.5f, 0.5f, -0.5f, 0.5f, 0.95f, 100, set, iParentCanvasID, 0, 0, -8, 0, 0, 0, 0);\n } else if (glViewType == ECommandType.CREATE_GL_GLYPH) {\n cmdView.setAttributes(EProjectionMode.PERSPECTIVE, -1f, 1f, -1f, 1f, 2.9f, 100, set, iParentCanvasID, 0, 0, -8, 0, 0, 0, 0);\n } else {\n cmdView.setAttributes(EProjectionMode.ORTHOGRAPHIC, 0, 8, 0, 8, -20, 20, set, iParentCanvasID);\n }\n cmdView.doCommand();\n AGLEventListener glView = cmdView.getCreatedObject();\n if (iAlContainedViewIDs != null && glViewType == ECommandType.CREATE_GL_BUCKET_3D) {\n ((GLRemoteRendering) glView).setInitialContainedViews(iAlContainedViewIDs);\n }\n setGLData(glCanvas, glView);\n createPartControlGL();\n IUseCase useCase = GeneralManager.get().getUseCase();\n glView.setUseCase(useCase);\n useCase.addView(glView);\n return glView;\n}\n"
"public void topLevelAspectDoesNotExistNoBuildFile() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n reporter.removeHandler(failFastHandler);\n try {\n AnalysisResult result = update(ImmutableList.of(\"String_Node_Str\"), \"String_Node_Str\");\n assertThat(keepGoing()).isTrue();\n assertThat(result.hasError()).isTrue();\n } catch (ViewCreationFailedException e) {\n }\n assertContainsEvent(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public void delete() {\n LOGGER.info(\"String_Node_Str\" + getContext());\n if (ltExpiryFuture != null) {\n ltExpiryFuture.cancel(false);\n }\n super.delete();\n}\n"
"private void startTask() {\n Log.d(TAG, \"String_Node_Str\" + mCurrentRequest);\n if (mCurrentRequest != null) {\n mTask = new MyTask();\n mTask.execute(mCurrentRequest);\n }\n}\n"
"private void createIndicatorParameters(TreeItem indicatorItem, IndicatorUnit indicatorUnit) {\n TreeItem[] items = indicatorItem.getItems();\n if (indicatorItem != null && !indicatorItem.isDisposed()) {\n for (TreeItem treeItem : items) {\n if (DATA_PARAM.equals(treeItem.getData(DATA_PARAM))) {\n treeItem.dispose();\n }\n }\n }\n IndicatorParameters parameters = indicatorUnit.getIndicator().getParameters();\n if (parameters == null) {\n return;\n }\n TreeItem iParamItem;\n if (indicatorUnit.getType() == IndicatorEnum.FrequencyIndicatorEnum) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\" + parameters.getTopN());\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n TextParameters tParameter = parameters.getTextParameter();\n if (tParameter != null) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\");\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n TreeItem subParamItem = new TreeItem(iParamItem, SWT.NONE);\n subParamItem.setText(\"String_Node_Str\" + tParameter.isUseBlank());\n subParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n subParamItem = new TreeItem(iParamItem, SWT.NONE);\n subParamItem.setText(\"String_Node_Str\" + tParameter.isIgnoreCase());\n subParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n subParamItem = new TreeItem(iParamItem, SWT.NONE);\n subParamItem.setText(\"String_Node_Str\" + tParameter.isUseNulls());\n subParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n DateParameters dParameters = parameters.getDateParameters();\n if (dParameters != null) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\");\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n TreeItem subParamItem = new TreeItem(iParamItem, SWT.NONE);\n subParamItem.setText(\"String_Node_Str\" + dParameters.getDateAggregationType().getName() + \"String_Node_Str\");\n subParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n Domain dataValidDomain = parameters.getDataValidDomain();\n if (dataValidDomain != null) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\" + (dataValidDomain != null));\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n Domain indicatorValidDomain = parameters.getIndicatorValidDomain();\n if (indicatorValidDomain != null) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\" + (indicatorValidDomain != null));\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n Domain bins = parameters.getBins();\n if (bins != null) {\n iParamItem = new TreeItem(indicatorItem, SWT.NONE);\n iParamItem.setText(0, \"String_Node_Str\" + (bins != null));\n iParamItem.setData(DATA_PARAM, DATA_PARAM);\n iParamItem.setImage(0, ImageLib.getImage(ImageLib.OPTION));\n }\n}\n"
"public boolean pig$isSaddled() {\n return (this.dataWatcher.getWatchableObjectByte(16) & 1) != 0;\n}\n"
"public void onClick(ClickEvent event) {\n List<FilterParameter> filterList = new ArrayList<>();\n for (String field : values.keySet()) {\n for (String value : values.get(field)) {\n if (StringUtils.isNotBlank(value)) {\n tableFilter.add(new SimpleFilterParameter(field, value));\n }\n }\n }\n listPanel.clear();\n if (!tableFilter.getParameters().isEmpty()) {\n BasicAsyncTableCell<?> table = null;\n switch(dropDown.getSelectedValue()) {\n case RodaConstants.SEARCH_ITEMS:\n table = new AIPList(tableFilter, true, Facets.NONE, \"String_Node_Str\", false, 5, 5);\n break;\n case RodaConstants.SEARCH_REPRESENTATIONS:\n table = new RepresentationList(tableFilter, true, Facets.NONE, \"String_Node_Str\", false, 5, 5);\n break;\n case RodaConstants.SEARCH_FILES:\n table = new SimpleFileList(tableFilter, true, Facets.NONE, \"String_Node_Str\", false, 5, 5);\n break;\n default:\n break;\n }\n if (table != null) {\n table.addRedrawHandler(new AbstractHasData.RedrawEvent.Handler() {\n public void onRedraw() {\n dialogBox.center();\n }\n });\n listPanel.add(section);\n listPanel.add(table);\n }\n }\n}\n"
"private void doFinish(IPath containerName, String fileName, final String templateFileName, final InputStream templateStream, String cheatSheetId, boolean showCheatSheet, boolean isUseDefaultLibrary, LibraryHandle library, IProgressMonitor monitor) throws CoreException {\n monitor.beginTask(CREATING + fileName, 2);\n IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(containerName);\n IContainer container = null;\n if (resource == null || !resource.exists() || !(resource instanceof IContainer)) {\n IFolder folder = createFolderHandle(containerName);\n UIUtil.createFolder(folder, monitor);\n container = folder;\n } else {\n container = (IContainer) resource;\n }\n final IFile file = container.getFile(new Path(fileName));\n final String cheatId = cheatSheetId;\n final boolean showCheat = showCheatSheet;\n try {\n ReportDesignHandle handle;\n if (templateStream == null) {\n handle = SessionHandleAdapter.getInstance().getSessionHandle().createDesignFromTemplate(templateFileName);\n } else {\n handle = SessionHandleAdapter.getInstance().getSessionHandle().createDesignFromTemplate(templateFileName, templateStream);\n }\n if (ReportPlugin.getDefault().getEnableCommentPreference(file.getProject())) {\n handle.setStringProperty(ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault().getCommentPreference(file.getProject()));\n }\n if (ReportPlugin.getDefault().getDefaultUnitPreference(file.getProject()) != null) {\n handle.setStringProperty(ModuleHandle.UNITS_PROP, ReportPlugin.getDefault().getDefaultUnitPreference(file.getProject()));\n }\n if (isPredifinedTemplate(templateFileName)) {\n handle.setDisplayName(null);\n handle.setDescription(null);\n }\n String bidiOrientation;\n if (templateChoicePage.isLTRDirection())\n bidiOrientation = DesignChoiceConstants.BIDI_DIRECTION_LTR;\n else\n bidiOrientation = DesignChoiceConstants.BIDI_DIRECTION_RTL;\n handle.setBidiOrientation(bidiOrientation);\n UIUtil.addCreateBy(handle);\n if (handle.getProperty(ReportDesignHandle.IMAGE_DPI_PROP) == null) {\n UIUtil.setDPI(handle);\n }\n if (isUseDefaultLibrary) {\n UIUtil.includeLibrary(handle, DEUtil.DEFAULT_LIBRARY, true);\n }\n handle.saveAs(file.getLocation().toOSString());\n handle.close();\n } catch (Exception e) {\n ExceptionHandler.handle(e, true);\n }\n file.refreshLocal(IResource.DEPTH_INFINITE, monitor);\n monitor.worked(1);\n monitor.setTaskName(OPENING_FILE_FOR_EDITING);\n getShell().getDisplay().asyncExec(new Runnable() {\n public void run() {\n IWorkbench workbench = PlatformUI.getWorkbench();\n IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\n IWorkbenchPage page = window.getActivePage();\n try {\n IDE.openEditor(page, file, true);\n BasicNewProjectResourceWizard.updatePerspective(configElement);\n if (showCheat && !cheatId.equals(\"String_Node_Str\")) {\n Object oldData = Display.getCurrent().getActiveShell().getData();\n if (oldData instanceof TrayDialog) {\n Display.getCurrent().getActiveShell().setData(null);\n }\n new OpenCheatSheetAction(cheatId).run();\n }\n } catch (Exception e) {\n ExceptionUtil.handle(e);\n }\n }\n });\n monitor.worked(1);\n}\n"
"private File mediaCacheFile(String url, int width, int height, String mimeType) {\n if (null == url) {\n return null;\n }\n String filename;\n if (url.startsWith(\"String_Node_Str\")) {\n filename = url;\n } else {\n String downloadableUrl = downloadableUrl(url, width, height);\n if (null != downloadableUrl) {\n filename = MXMediaDownloadWorkerTask.buildFileName(downloadableUrl, mimeType);\n } else {\n return null;\n }\n }\n try {\n if (filename.startsWith(\"String_Node_Str\")) {\n Uri uri = Uri.parse(filename);\n filename = uri.getLastPathSegment();\n }\n File file = new File(getFolderFile(mimeType), filename);\n if (file.exists()) {\n return file;\n }\n } catch (Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n }\n return null;\n}\n"
"protected void accessQuery(ReportItemDesign design, IContentEmitter emitter) {\n ListingDesign listing = (ListingDesign) design;\n rsetCursor = -1;\n outputEmitter = emitter;\n int groupCount = listing.getGroupCount();\n int NONE_GROUP = groupCount + 1;\n int groupIndex;\n int pageBreakInterval = listing.getPageBreakInterval();\n if (rset == null || rsetEmpty == true) {\n startTOCEntry(null);\n accessHeader(listing, outputEmitter, null);\n finishTOCEntry();\n startTOCEntry(null);\n accessFooter(listing, outputEmitter, null);\n finishTOCEntry();\n return;\n }\n IResultIterator rsIterator = ((DteResultSet) rset).getResultIterator();\n IBaseQueryDefinition query = listing.getQuery();\n Collection rowExpressions = (query == null ? null : query.getRowExpressions());\n Collection beforeExpressions = (query == null ? null : query.getBeforeExpressions());\n Collection afterExpressions = (query == null ? null : query.getAfterExpressions());\n IRowData rowData = new RowData(rsIterator, rowExpressions);\n IRowData headerData = new RowData(rsIterator, beforeExpressions);\n IRowData footerData = new RowData(rsIterator, afterExpressions);\n startTOCEntry(null);\n accessHeader(listing, outputEmitter, rsIterator);\n finishTOCEntry();\n if (groupCount == 0) {\n do {\n rsetCursor++;\n startTOCEntry(null);\n accessDetail(listing, outputEmitter, rowData);\n finishTOCEntry();\n if (pageBreakInterval > 0) {\n if ((rsetCursor + 1) % pageBreakInterval == 0) {\n needPageBreak = true;\n }\n }\n if (rset.getEndingGroupLevel() == 0) {\n needPageBreak = false;\n startTOCEntry(null);\n accessFooter(listing, outputEmitter, footerData);\n finishTOCEntry();\n }\n } while (rset.next());\n return;\n }\n do {\n rsetCursor++;\n int startGroup = rset.getStartingGroupLevel();\n if (startGroup != NONE_GROUP) {\n groupIndex = startGroup - 1;\n if (groupIndex < 0) {\n groupIndex = 0;\n }\n while (groupIndex < groupCount) {\n startGroupTOCEntry();\n startTOCEntry(null);\n accessGroupHeader(listing, groupIndex, outputEmitter);\n finishTOCEntry();\n groupIndex++;\n }\n }\n startGroupTOCEntry();\n accessDetail(listing, outputEmitter, rowData);\n finishGroupTOCEntry();\n int endGroup = rset.getEndingGroupLevel();\n if (endGroup != NONE_GROUP) {\n endGroup = endGroup - 1;\n if (endGroup < 0) {\n endGroup = 0;\n }\n groupIndex = groupCount - 1;\n while (groupIndex >= endGroup) {\n startTOCEntry(null);\n accessGroupFooter(listing, groupIndex, outputEmitter);\n finishTOCEntry();\n finishGroupTOCEntry();\n groupIndex--;\n }\n }\n if (pageBreakInterval > 0) {\n if ((rsetCursor + 1) % pageBreakInterval == 0) {\n needPageBreak = true;\n }\n }\n if (rset.getEndingGroupLevel() == 0) {\n needPageBreak = false;\n startTOCEntry(null);\n accessFooter(listing, outputEmitter, footerData);\n finishTOCEntry();\n }\n } while (rset.next());\n}\n"
"public void execute() {\n propagateInput();\n if (!oldMetaDataList.isEmpty() && !newMetaDataList.isEmpty() && !oldMetaDataList.get(0).sameMetadataAs(newMetaDataList.get(0))) {\n node.setPropertyValue(EParameterName.SCHEMA_TYPE.getName(), EmfComponent.BUILTIN);\n }\n metadataOutputChanges.clear();\n List<IConnection> initTraceList = new ArrayList<IConnection>();\n for (IConnection connection : node.getOutgoingConnections()) {\n if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {\n IODataComponent dataComponent = inAndOut.getDataComponent(connection);\n boolean sameMetadataAs = connection.getMetadataTable().sameMetadataAs(dataComponent.getTable());\n IMetadataTable tempTable = null;\n boolean isSchemaAutoPropagated = true;\n if (connection.getTarget().getComponent() instanceof EmfComponent) {\n EmfComponent component = (EmfComponent) connection.getTarget().getComponent();\n isSchemaAutoPropagated = component.isSchemaAutoPropagated();\n }\n if (sameMetadataAs || !isSchemaAutoPropagated) {\n for (IMetadataTable itable : newMetaDataList) {\n if (connection.getMetadataTable().getTableName().equals(itable.getTableName())) {\n sameMetadataAs = connection.getMetadataTable().sameMetadataAs(itable);\n tempTable = itable;\n break;\n }\n }\n } else {\n IMetadataTable table = connection.getMetadataTable();\n if (table == null || table.getListColumns().isEmpty()) {\n initTraceList.add(connection);\n }\n INode connTar = connection.getTarget();\n boolean openDialog = false;\n Map<String, Boolean> jobletMap = new HashMap<String, Boolean>();\n if (isForTemlate()) {\n openDialog = true;\n } else {\n openDialog = getPropagate(connection, jobletMap);\n }\n if (openDialog) {\n IElementParameter schemaParam = null;\n if (connection != null) {\n IMetadataTable connTable = connection.getMetadataTable();\n IMetadataTable dataTable = dataComponent.getTable();\n if (tempTable != null) {\n dataTable = tempTable;\n }\n for (IElementParameter param : ((Node) connection.getTarget()).getElementParameters()) {\n if (param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE)) {\n INodeConnector connector = connection.getTarget().getConnectorFromName(connection.getConnectorName());\n if (connector != null && param.getContext().equals(connector.getBaseSchema())) {\n schemaParam = param;\n break;\n }\n }\n }\n if (schemaParam != null) {\n ChangeMetadataCommand cmd = new ChangeMetadataCommand(connection.getTarget(), schemaParam, connTable, dataTable);\n cmd.execute(true);\n metadataOutputChanges.add(cmd);\n }\n for (IElementParameter param : ((Node) connection.getSource()).getElementParameters()) {\n if (param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE) && param.getContext().equals(connection.getSource().getConnectorFromName(connection.getConnectorName()).getBaseSchema())) {\n schemaParam = param;\n break;\n }\n }\n if (schemaParam != null) {\n ChangeMetadataCommand cmd = new ChangeMetadataCommand(connection.getSource(), schemaParam, connTable, dataTable);\n cmd.execute(true);\n metadataOutputChanges.add(cmd);\n }\n if (((Node) connTar).isJoblet()) {\n IElementParameter param = connTar.getElementParameter(connection.getTarget().getUniqueName());\n if (param != null) {\n IMetadataTable originaleOutputTable = connTar.getMetadataFromConnector(param.getContext());\n if (originaleOutputTable != null) {\n MetadataToolHelper.copyTable(dataTable, originaleOutputTable);\n }\n }\n } else if (((Node) connTar).getJobletNode() != null) {\n IElementParameter param = ((Node) connTar).getJobletNode().getElementParameter(connection.getTarget().getUniqueName());\n if (param != null) {\n IMetadataTable originaleOutputTable = ((Node) connTar).getJobletNode().getMetadataFromConnector(param.getContext());\n if (originaleOutputTable != null) {\n MetadataToolHelper.copyTable(dataTable, originaleOutputTable);\n }\n }\n }\n }\n if (((Node) connTar).isJoblet()) {\n changeCollapsedState(true, jobletMap, connTar);\n }\n } else {\n final Node target = (Node) connection.getTarget();\n if (target != null && target.getExternalNode() != null) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IXmlMapService.class)) {\n final IXmlMapService service = (IXmlMapService) GlobalServiceRegister.getDefault().getService(IXmlMapService.class);\n if (service.isXmlMapComponent(target.getExternalNode())) {\n IODataComponent output = new IODataComponent(connection, dataComponent.getTable());\n target.metadataInputChanged(output, connection.getUniqueName());\n }\n }\n }\n }\n }\n if (connection instanceof Connection) {\n ((Connection) connection).updateName();\n }\n }\n }\n node.setExternalData(newExternalData);\n List<IMetadataTable> cloneNewMetadata = new ArrayList<IMetadataTable>();\n if (newMetaDataList != null) {\n for (IMetadataTable t : newMetaDataList) {\n cloneNewMetadata.add(t.clone(true));\n }\n if (connection instanceof Connection) {\n ((Connection) connection).updateName();\n }\n }\n for (Connection connection : connectionsToDelete.keySet()) {\n connection.disconnect();\n INode prevNode = connection.getSource();\n INodeConnector nodeConnectorSource, nodeConnectorTarget;\n nodeConnectorSource = prevNode.getConnectorFromType(connection.getLineStyle());\n nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);\n INode nextNode = connection.getTarget();\n nodeConnectorTarget = nextNode.getConnectorFromType(connection.getLineStyle());\n nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);\n inAndOut.getOuputs().remove(connectionsToDelete.get(connection));\n ((Process) node.getProcess()).checkStartNodes();\n }\n ((Process) node.getProcess()).checkProcess();\n if (!isMetaLanguage) {\n refreshCodeView();\n ComponentSettings.switchToCurComponentSettingsView();\n }\n}\n"
"private static void printUsageAndExit() {\n String printUsageFlags = Joiner.on(\"String_Node_Str\").join(PRINT_USAGE_FLAGS);\n List<String> opts = ImmutableList.of(printUsageFlags, USE_CURRENT_DIR_AS_HOME + \"String_Node_Str\" + USE_SPECIFIED_DIR_AS_HOME + \"String_Node_Str\", START_HEADLESS, LOAD_LAST_GAME, NO_CRASH_REPORT, NO_SAVE_GAMES, NO_SOUND, SERVER_PORT + \"String_Node_Str\");\n StringBuilder optText = new StringBuilder();\n for (String opt : opts) {\n optText.append(\"String_Node_Str\" + opt + \"String_Node_Str\");\n }\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\" + optText.toString());\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + NO_SAVE_GAMES + \"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\" + USE_CURRENT_DIR_AS_HOME + \"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + USE_SPECIFIED_DIR_AS_HOME + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + START_HEADLESS + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + LOAD_LAST_GAME + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + NO_CRASH_REPORT + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\" + NO_SOUND + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\" + SERVER_PORT + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + USE_CURRENT_DIR_AS_HOME);\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + USE_SPECIFIED_DIR_AS_HOME + \"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + START_HEADLESS + \"String_Node_Str\" + SERVER_PORT + TerasologyConstants.DEFAULT_PORT);\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + LOAD_LAST_GAME + \"String_Node_Str\" + NO_CRASH_REPORT);\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + PRINT_USAGE_FLAGS[1]);\n System.out.println();\n System.exit(0);\n}\n"
"public void testMultiSource() throws Exception {\n ETLBatchConfig etlConfig = ETLBatchConfig.builder(\"String_Node_Str\").addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(\"String_Node_Str\"))).addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(\"String_Node_Str\"))).addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(\"String_Node_Str\"))).addStage(new ETLStage(\"String_Node_Str\", IdentityTransform.getPlugin())).addStage(new ETLStage(\"String_Node_Str\", IdentityTransform.getPlugin())).addStage(new ETLStage(\"String_Node_Str\", MockSink.getPlugin(\"String_Node_Str\"))).addStage(new ETLStage(\"String_Node_Str\", MockSink.getPlugin(\"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\").addConnection(\"String_Node_Str\", \"String_Node_Str\").build();\n AppRequest<ETLBatchConfig> appRequest = new AppRequest<>(ARTIFACT, etlConfig);\n Id.Application appId = Id.Application.from(Id.Namespace.DEFAULT, \"String_Node_Str\");\n ApplicationManager appManager = deployApplication(appId, appRequest);\n Schema schema = Schema.recordOf(\"String_Node_Str\", Schema.Field.of(\"String_Node_Str\", Schema.of(Schema.Type.STRING)));\n StructuredRecord recordSamuel = StructuredRecord.builder(schema).set(\"String_Node_Str\", \"String_Node_Str\").build();\n StructuredRecord recordBob = StructuredRecord.builder(schema).set(\"String_Node_Str\", \"String_Node_Str\").build();\n StructuredRecord recordJane = StructuredRecord.builder(schema).set(\"String_Node_Str\", \"String_Node_Str\").build();\n DataSetManager<Table> inputManager = getDataset(Id.Namespace.DEFAULT, \"String_Node_Str\");\n MockSource.writeInput(inputManager, ImmutableList.of(recordSamuel));\n inputManager = getDataset(Id.Namespace.DEFAULT, \"String_Node_Str\");\n MockSource.writeInput(inputManager, ImmutableList.of(recordBob));\n inputManager = getDataset(Id.Namespace.DEFAULT, \"String_Node_Str\");\n MockSource.writeInput(inputManager, ImmutableList.of(recordJane));\n WorkflowManager workflowManager = appManager.getWorkflowManager(SmartWorkflow.NAME);\n workflowManager.start();\n workflowManager.waitForFinish(5, TimeUnit.MINUTES);\n DataSetManager<Table> sinkManager = getDataset(\"String_Node_Str\");\n Set<StructuredRecord> expected = ImmutableSet.of(recordSamuel, recordBob);\n Set<StructuredRecord> actual = Sets.newHashSet(MockSink.readOutput(sinkManager));\n Assert.assertEquals(expected, actual);\n sinkManager = getDataset(\"String_Node_Str\");\n expected = ImmutableSet.of(recordSamuel, recordBob, recordJane);\n actual = Sets.newHashSet(MockSink.readOutput(sinkManager));\n Assert.assertEquals(expected, actual);\n}\n"
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n unmarshalRecord.removeNullCapableValue(this);\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n xmlDescriptor = findReferenceDescriptor(xPathFragment, unmarshalRecord, atts, xmlCompositeObjectMapping, xmlCompositeObjectMapping.getKeepAsElementPolicy());\n if (xmlDescriptor == null) {\n if (xmlCompositeObjectMapping.getField() != null) {\n QName leafType = ((Field) xmlCompositeObjectMapping.getField()).getLastXPathFragment().getLeafElementType();\n if (leafType != null) {\n XPathFragment frag = new XPathFragment();\n frag.setNamespaceAware(unmarshalRecord.isNamespaceAware());\n String xpath = leafType.getLocalPart();\n String uri = leafType.getNamespaceURI();\n if (uri != null && uri.length() > 0) {\n frag.setNamespaceURI(uri);\n String prefix = ((Descriptor) xmlCompositeObjectMapping.getDescriptor()).getNonNullNamespaceResolver().resolveNamespaceURI(uri);\n if (prefix != null && prefix.length() > 0) {\n xpath = prefix + XMLConstants.COLON + xpath;\n }\n }\n frag.setXPath(xpath);\n XMLContext xmlContext = unmarshalRecord.getUnmarshaller().getXMLContext();\n xmlDescriptor = xmlContext.getDescriptorByGlobalType(frag);\n }\n }\n }\n UnmarshalKeepAsElementPolicy policy = xmlCompositeObjectMapping.getKeepAsElementPolicy();\n if (null != policy && ((xmlDescriptor == null && policy.isKeepUnknownAsElement()) || policy.isKeepAllAsElement())) {\n if (unmarshalRecord.getTypeQName() != null) {\n Class theClass = (Class) ((XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager()).getDefaultXMLTypes().get(unmarshalRecord.getTypeQName());\n if (theClass == null) {\n setupHandlerForKeepAsElementPolicy(unmarshalRecord, xPathFragment, atts);\n return true;\n }\n } else {\n setupHandlerForKeepAsElementPolicy(unmarshalRecord, xPathFragment, atts);\n return true;\n }\n }\n }\n AbstractNullPolicy nullPolicy = xmlCompositeObjectMapping.getNullPolicy();\n if (nullPolicy.isNullRepresentedByEmptyNode()) {\n String qnameString = xPathFragment.getLocalName();\n if (xPathFragment.getPrefix() != null) {\n qnameString = xPathFragment.getPrefix() + XMLConstants.COLON + qnameString;\n }\n if (null != xmlDescriptor) {\n CompositeObjectMappingContentHandler aHandler = new CompositeObjectMappingContentHandler(unmarshalRecord, this, xmlCompositeObjectMapping, atts, xPathFragment, xmlDescriptor);\n aHandler.startElement(xPathFragment.getNamespaceURI(), xPathFragment.getLocalName(), qnameString, atts);\n XMLReader xmlReader = unmarshalRecord.getXMLReader();\n xmlReader.setContentHandler(aHandler);\n xmlReader.setLexicalHandler(aHandler);\n }\n } else {\n if (nullPolicy.isNullRepresentedByXsiNil() && unmarshalRecord.isNil()) {\n xmlCompositeObjectMapping.setAttributeValueInObject(unmarshalRecord.getCurrentObject(), null);\n } else {\n Field xmlFld = (Field) this.xmlCompositeObjectMapping.getField();\n if (xmlFld.hasLastXPathFragment()) {\n unmarshalRecord.setLeafElementType(xmlFld.getLastXPathFragment().getLeafElementType());\n }\n processChild(xPathFragment, unmarshalRecord, atts, xmlDescriptor, xmlCompositeObjectMapping);\n }\n }\n } catch (SAXException e) {\n throw XMLMarshalException.unmarshalException(e);\n }\n return true;\n}\n"
"public void run() {\n while (true) {\n if (stopFlag) {\n return;\n }\n if (inputEndpoint == null) {\n continue;\n }\n int length = usbDeviceConnection.bulkTransfer(inputEndpoint, readBuffer, readBuffer.length, 0);\n if (length > 0) {\n byte[] read = new byte[length];\n System.arraycopy(readBuffer, 0, read, 0, length);\n Log.d(Constants.TAG, \"String_Node_Str\" + Arrays.toString(read));\n Message message = new Message();\n message.obj = read;\n if (!stopFlag) {\n receiveHandler.sendMessage(message);\n }\n }\n }\n}\n"
"protected void onEvent(Event event) {\n log.info(\"String_Node_Str\" + event.getClass());\n ClusterTerminatingEvent clusterTerminatingEvent = (ClusterTerminatingEvent) event;\n String appId = clusterTerminatingEvent.getAppId();\n String clusterId = clusterTerminatingEvent.getClusterId();\n AbstractClusterMonitor clusterMonitor = (AbstractClusterMonitor) AutoscalerContext.getInstance().getMonitor(clusterId);\n if (clusterMonitor != null) {\n clusterMonitor.setDestroyed(true);\n clusterMonitor.terminateAllMembers();\n clusterMonitor.setStatus(ClusterStatus.Terminating);\n } else {\n log.warn(\"String_Node_Str\" + clusterId);\n }\n}\n"
"private boolean changeSize() {\n int newWidth = this.mapView.getWidth();\n int newHeight = this.mapView.getHeight();\n if (newWidth > 0 && newHeight > 0) {\n if (this.width == newWidth && this.height == newHeight) {\n this.changeSizeNeeded = false;\n this.redrawNeeded = false;\n return false;\n }\n recycleBitmaps();\n this.width = newWidth;\n this.height = newHeight;\n this.bitmap1 = Bitmap.createBitmap(newWidth, newHeight, Bitmap.Config.ARGB_8888);\n this.bitmap2 = Bitmap.createBitmap(newWidth, newHeight, Bitmap.Config.ARGB_8888);\n this.changeSizeNeeded = false;\n this.redrawNeeded = true;\n return true;\n }\n return false;\n}\n"
"public void testLoopedRepeatIndexFetches() throws Exception {\n FormParseInit fpi = new FormParseInit(\"String_Node_Str\");\n FormEntryController fec = initFormEntry(fpi);\n fec.stepToNextEvent();\n fec.stepToNextEvent();\n fec.answerQuestion(new IntegerData(2));\n while (fec.stepToNextEvent() != FormEntryController.EVENT_QUESTION) ;\n fec.answerQuestion(new UncastData(\"String_Node_Str\"));\n while (fec.stepToNextEvent() != FormEntryController.EVENT_QUESTION) ;\n fec.getNextIndex(fec.getModel().getFormIndex(), true);\n fec.answerQuestion(new IntegerData(2));\n fec.getNextIndex(fec.getModel().getFormIndex(), true);\n}\n"
"public void receiveData(MAVLinkMessage msg) {\n if (drone.getParameters().processMessage(msg)) {\n return;\n }\n drone.getWaypointManager().processMessage(msg);\n drone.getCalibrationSetup().processMessage(msg);\n switch(msg.msgid) {\n case msg_attitude.MAVLINK_MSG_ID_ATTITUDE:\n msg_attitude m_att = (msg_attitude) msg;\n drone.getOrientation().setRollPitchYaw(m_att.roll * 180.0 / Math.PI, m_att.pitch * 180.0 / Math.PI, m_att.yaw * 180.0 / Math.PI);\n break;\n case msg_vfr_hud.MAVLINK_MSG_ID_VFR_HUD:\n msg_vfr_hud m_hud = (msg_vfr_hud) msg;\n drone.setAltitudeGroundAndAirSpeeds(m_hud.alt, m_hud.groundspeed, m_hud.airspeed, m_hud.climb);\n break;\n case msg_mission_current.MAVLINK_MSG_ID_MISSION_CURRENT:\n drone.getMissionStats().setWpno(((msg_mission_current) msg).seq);\n break;\n case msg_nav_controller_output.MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT:\n msg_nav_controller_output m_nav = (msg_nav_controller_output) msg;\n drone.setDisttowpAndSpeedAltErrors(m_nav.wp_dist, m_nav.alt_error, m_nav.aspd_error);\n drone.getNavigation().setNavPitchRollYaw(m_nav.nav_pitch, m_nav.nav_roll, m_nav.nav_bearing);\n break;\n case msg_raw_imu.MAVLINK_MSG_ID_RAW_IMU:\n msg_raw_imu msg_imu = (msg_raw_imu) msg;\n drone.getMagnetometer().newData(msg_imu);\n break;\n case msg_heartbeat.MAVLINK_MSG_ID_HEARTBEAT:\n msg_heartbeat msg_heart = (msg_heartbeat) msg;\n drone.setType(msg_heart.type);\n checkIfFlying(msg_heart);\n processState(msg_heart);\n ApmModes newMode = ApmModes.getMode(msg_heart.custom_mode, drone.getType());\n drone.getState().setMode(newMode);\n drone.onHeartbeat(msg_heart);\n break;\n case msg_global_position_int.MAVLINK_MSG_ID_GLOBAL_POSITION_INT:\n drone.getGps().setPosition(new Coord2D(((msg_global_position_int) msg).lat / 1E7, ((msg_global_position_int) msg).lon / 1E7));\n break;\n case msg_sys_status.MAVLINK_MSG_ID_SYS_STATUS:\n msg_sys_status m_sys = (msg_sys_status) msg;\n drone.getBattery().setBatteryState(m_sys.voltage_battery / 1000.0, m_sys.battery_remaining, m_sys.current_battery / 100.0);\n break;\n case msg_radio.MAVLINK_MSG_ID_RADIO:\n msg_radio m_radio = (msg_radio) msg;\n drone.getRadio().setRadioState(m_radio.rxerrors, m_radio.fixed, m_radio.rssi, m_radio.remrssi, m_radio.txbuf, m_radio.noise, m_radio.remnoise);\n break;\n case msg_gps_raw_int.MAVLINK_MSG_ID_GPS_RAW_INT:\n drone.getGps().setGpsState(((msg_gps_raw_int) msg).fix_type, ((msg_gps_raw_int) msg).satellites_visible, ((msg_gps_raw_int) msg).eph);\n break;\n case msg_rc_channels_raw.MAVLINK_MSG_ID_RC_CHANNELS_RAW:\n drone.getRC().setRcInputValues((msg_rc_channels_raw) msg);\n break;\n case msg_servo_output_raw.MAVLINK_MSG_ID_SERVO_OUTPUT_RAW:\n drone.getRC().setRcOutputValues((msg_servo_output_raw) msg);\n break;\n case msg_statustext.MAVLINK_MSG_ID_STATUSTEXT:\n msg_statustext msg_statustext = (msg_statustext) msg;\n String message = msg_statustext.getText();\n if (msg_statustext.severity == SEVERITY_HIGH || msg_statustext.severity == SEVERITY_CRITICAL) {\n drone.getState().setWarning(message);\n break;\n } else if (message.equals(\"String_Node_Str\")) {\n drone.getState().setWarning(message);\n break;\n } else if (message.contains(\"String_Node_Str\")) {\n drone.setFirmwareVersion(message);\n break;\n }\n break;\n case msg_camera_feedback.MAVLINK_MSG_ID_CAMERA_FEEDBACK:\n drone.getCamera().newImageLocation((msg_camera_feedback) msg);\n break;\n case msg_mount_status.MAVLINK_MSG_ID_MOUNT_STATUS:\n drone.getCamera().updateMountOrientation(((msg_mount_status) msg));\n break;\n default:\n break;\n }\n}\n"
"private IDiskArray getTopbottomFilterPositions(Dimension dimension, IDiskArray dimPosition, List filterList) throws IOException, DataException {\n IDiskArray result = null;\n ILevel[] levels = dimension.getHierarchy().getLevels();\n for (int i = 0; i < filterList.size(); i++) {\n IJSTopBottomFilterHelper filter = (IJSTopBottomFilterHelper) filterList.get(i);\n List dimValueArrayList = evaluateFilter(dimension, dimPosition, levels, filter);\n IDiskArray dimPositionArray = fetchDimPositions(dimValueArrayList, filter);\n result = getIntersection(result, dimPositionArray);\n }\n return result;\n}\n"
"private String getStringConnection() {\n String s = null;\n String versionStr = dbVersionCombo.getText();\n if (isContextMode()) {\n s = DBConnectionContextUtils.getUrlConnectionString(connectionItem, true);\n } else {\n if (EDatabaseTypeName.HIVE.getDisplayName().equals(dbTypeCombo.getText())) {\n String template = null;\n if (HiveServerVersionInfo.HIVE_SERVER_2.getDisplayName().equals(hiveServerVersionCombo.getText())) {\n template = DbConnStrForHive.URL_HIVE_2_TEMPLATE;\n } else {\n template = DbConnStrForHive.URL_HIVE_1_TEMPLATE;\n }\n s = DatabaseConnStrUtil.getHiveURLString(getConnection(), getConnection().getServerName(), getConnection().getPort(), getConnection().getSID(), template);\n } else {\n EDatabaseVersion4Drivers version = EDatabaseVersion4Drivers.indexOfByVersionDisplay(versionStr);\n if (version != null) {\n versionStr = version.getVersionValue();\n }\n s = DatabaseConnStrUtil.getURLString(dbTypeCombo.getText(), versionStr, serverText.getText(), usernameText.getText(), passwordText.getText(), portText.getText(), sidOrDatabaseText.getText(), fileField.getText(), datasourceText.getText(), directoryField.getText(), additionParamText.getText());\n }\n }\n return s;\n}\n"
"public void init(Bundle savedInstanceState) {\n allowArrowAnimation();\n final MaterialSection home = newSection(\"String_Node_Str\", new HomeFragment());\n MaterialSection addserver = newSection(\"String_Node_Str\", new Intent(this, AddServerActivity.class));\n MaterialSection settings = newSection(\"String_Node_Str\", R.drawable.ic_ic_settings_24px, new Intent(this, SettingsActivity.class));\n MaterialSection help = newSection(\"String_Node_Str\", R.drawable.ic_ic_help_24px, new Intent(this, SettingsActivity.class));\n MaterialSection about = newSection(\"String_Node_Str\", R.drawable.ic_ic_info_24px, new Intent(this, SettingsActivity.class));\n addSection(home);\n addSection(addserver);\n addBottomSection(settings);\n addBottomSection(help);\n addBottomSection(about);\n setDrawerHeaderImage(R.drawable.cover);\n this.addSection(newSection(\"String_Node_Str\", new MaterialSectionListener() {\n public void onClick(MaterialSection section) {\n FragmentManager fm = getSupportFragmentManager();\n HomeFragment fragment = (HomeFragment) fm.findFragmentByTag(\"String_Node_Str\");\n fragment.openServerPane();\n }\n }));\n if (instanceCount > 0) {\n finish();\n }\n instanceCount++;\n}\n"
"public static void makeIndex(final File genomeFile, final File outputDir) throws IOException {\n if (genomeFile == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (outputDir == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n LOGGER.info(\"String_Node_Str\" + genomeFile);\n final long startTime = System.currentTimeMillis();\n if (indexerPath == null) {\n synchronized (SYNC) {\n indexerPath = BinariesInstaller.install(\"String_Node_Str\");\n }\n }\n if (!outputDir.exists() && !outputDir.mkdir()) {\n throw new IOException(\"String_Node_Str\");\n }\n final File tmpGenomeFile = new File(outputDir, genomeFile.getName());\n FileUtils.createSymbolicLink(genomeFile, tmpGenomeFile);\n final String cmd = indexerPath + \"String_Node_Str\" + tmpGenomeFile.getAbsolutePath();\n ProcessUtils.exec(cmd, DEBUG);\n if (!tmpGenomeFile.delete()) {\n LOGGER.warning(\"String_Node_Str\");\n }\n final long endTime = System.currentTimeMillis();\n LOGGER.info(\"String_Node_Str\" + StringUtils.toTimeHumanReadable(endTime - startTime));\n}\n"
"public synchronized void setLastCommittedTx(long txId) {\n long current = getRecord(3);\n if ((current + 1) != txId && !isInRecoveryMode()) {\n throw new InvalidRecordException(\"String_Node_Str\" + txId + \"String_Node_Str\" + current + \"String_Node_Str\");\n }\n setRecord(3, txId);\n if (lastCommittedTxIdSetter != null && !isInRecoveryMode() && txId == getLastCommittedTx() + 1) {\n lastCommittedTxIdSetter.setLastCommittedTxId(txId);\n }\n}\n"
"public Inventory islandGuardPanel(Player player) {\n UUID uuid = player.getUniqueId();\n Island island = plugin.getGrid().getProtectedIslandAt(player.getLocation());\n List<IPItem> ip = new ArrayList<IPItem>();\n Inventory newPanel = null;\n if (island == null) {\n ip.add(new IPItem(Material.MAP, plugin.myLocale(uuid).igsSettingsGeneralTitle, plugin.myLocale(uuid).igsSettingsGeneralDesc));\n for (SettingsFlag flag : SettingsFlag.values()) {\n if (flag.equals(SettingsFlag.ACID_DAMAGE) && Settings.acidDamage == 0)\n continue;\n if (Settings.defaultWorldSettings.containsKey(flag) && lookup.inverse().containsKey(flag) && plugin.myLocale(uuid).igs.containsKey(flag)) {\n ip.add(new IPItem(Settings.defaultWorldSettings.get(flag), lookup.inverse().get(flag), plugin.myLocale(uuid).igs.get(flag), uuid));\n }\n }\n ip.add(new IPItem(Settings.allowChestDamage, Material.CHEST, plugin.myLocale(uuid).igsChestDamage));\n ip.add(new IPItem(Settings.allowCreeperDamage, Material.SKULL_ITEM, 4, plugin.myLocale(uuid).igsCreeperDamage));\n ip.add(new IPItem(Settings.allowCreeperGriefing, Material.SKULL_ITEM, 4, plugin.myLocale(uuid).igsCreeperGriefing));\n ip.add(new IPItem(!Settings.restrictWither, Material.SKULL_ITEM, 1, plugin.myLocale(uuid).igsWitherDamage));\n ip.add(new IPItem(Settings.allowTNTDamage, Material.TNT, plugin.myLocale(uuid).igsTNT));\n ip.add(new IPItem(Settings.allowVisitorKeepInvOnDeath, Material.IRON_CHESTPLATE, plugin.myLocale(uuid).igsVisitorKeep));\n } else if (island.isSpawn()) {\n ip.add(new IPItem(Material.MAP, plugin.myLocale(uuid).igsSettingsSpawnTitle, plugin.myLocale(uuid).igsSettingsSpawnDesc));\n for (SettingsFlag flag : Settings.defaultSpawnSettings.keySet()) {\n if (flag.equals(SettingsFlag.ACID_DAMAGE) && Settings.acidDamage == 0)\n continue;\n if (lookup.inverse().containsKey(flag) && plugin.myLocale(uuid).igs.containsKey(flag)) {\n ip.add(new IPItem(island.getIgsFlag(flag), lookup.inverse().get(flag), plugin.myLocale(uuid).igs.get(flag)));\n }\n }\n } else {\n ip.add(new IPItem(Material.MAP, plugin.myLocale(uuid).igsSettingsIslandTitle, plugin.myLocale(uuid).igsSettingsIslandDesc));\n for (SettingsFlag flag : Settings.visitorSettings.keySet()) {\n if (flag.equals(SettingsFlag.ACID_DAMAGE) && Settings.acidDamage == 0)\n continue;\n if (plugin.myLocale(uuid).igs.containsKey(flag)) {\n ip.add(new IPItem(island.getIgsFlag(flag), lookup.inverse().get(flag), plugin.myLocale(uuid).igs.get(flag)));\n }\n }\n }\n if (ip.size() > 0) {\n int size = ip.size() + 8;\n size -= (size % 9);\n String title = plugin.myLocale(uuid).igsTitle;\n if (title.length() > 32) {\n title = title.substring(0, 31);\n }\n newPanel = Bukkit.createInventory(null, size, title);\n int slot = 0;\n for (IPItem i : ip) {\n i.setSlot(slot);\n newPanel.addItem(i.getItem());\n }\n }\n return newPanel;\n}\n"
"void setEqualsSignLocation(SourceLocation.Point equalsSignPoint, SourceLocation.Point stateTransitionPoint) {\n checkNotNull(equalsSignPoint);\n if (attributeName == null) {\n errorReporter.report(stateTransitionPoint.asLocation(filePath), FOUND_EQ_WITH_ATTRIBUTE_IN_ANOTHER_BLOCK);\n throw new AbortParsingBlockError();\n }\n checkState(equalsSignLocation == null);\n equalsSignLocation = equalsSignPoint;\n setState(State.BEFORE_ATTRIBUTE_VALUE, stateTransitionPoint);\n}\n"
"public void replyToStatus(String content, String replyTo) throws ArchivedGroupException {\n Status originalStatus = statusRepository.findStatusById(replyTo);\n Group group = null;\n if (originalStatus.getGroupId() != null) {\n group = groupService.getGroupById(originalStatus.getDomain(), originalStatus.getGroupId());\n if (group.isArchivedGroup()) {\n throw new ArchivedGroupException();\n }\n }\n if (!originalStatus.getReplyTo().equals(\"String_Node_Str\")) {\n Status realOriginalStatus = statusRepository.findStatusById(originalStatus.getDiscussionId());\n Status replyStatus = createStatus(content, realOriginalStatus.getStatusPrivate(), group, realOriginalStatus.getStatusId(), originalStatus.getStatusId(), originalStatus.getUsername());\n discussionRepository.addReplyToDiscussion(realOriginalStatus.getStatusId(), replyStatus.getStatusId());\n } else {\n Status replyStatus = createStatus(content, originalStatus.getStatusPrivate(), group, replyTo, replyTo, originalStatus.getUsername());\n discussionRepository.addReplyToDiscussion(originalStatus.getStatusId(), replyStatus.getStatusId());\n }\n}\n"
"private void updateScrollStateForRemovedChild(View removedChild) {\n int startingPosition = getPositionInLinearLayout(removedChild);\n int childHeight = getIntrinsicHeight(removedChild) + mPaddingBetweenElements;\n int endPosition = startingPosition + childHeight;\n if (endPosition <= mOwnScrollY) {\n mOwnScrollY -= childHeight;\n } else if (startingPosition < mOwnScrollY) {\n mOwnScrollY = startingPosition;\n }\n}\n"
"public boolean prepareToSafeShutdown(long timeout, TimeUnit unit) {\n long timeoutInMillis = unit.toMillis(timeout);\n int sleep = 1000;\n while (timeoutInMillis > 0) {\n while (timeoutInMillis > 0 && shouldWaitMigrationOrBackups(Level.INFO)) {\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException ignored) {\n }\n timeoutInMillis -= sleep;\n }\n if (timeoutInMillis <= 0) {\n break;\n }\n if (node.isMaster()) {\n syncPartitionRuntimeState();\n } else {\n while (timeoutInMillis > 0 && hasOnGoingMigrationMaster(Level.WARNING)) {\n logger.info(\"String_Node_Str\");\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException ignored) {\n }\n timeoutInMillis -= sleep;\n }\n if (timeoutInMillis <= 0) {\n return false;\n }\n }\n long start = Clock.currentTimeMillis();\n boolean ok = checkReplicaSyncState();\n timeoutInMillis -= (Clock.currentTimeMillis() - start);\n if (ok) {\n logger.finest(\"String_Node_Str\");\n return true;\n } else {\n if (timeoutInMillis <= 0) {\n return false;\n }\n logger.info(\"String_Node_Str\" + \"String_Node_Str\" + timeoutInMillis + \"String_Node_Str\");\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException ignored) {\n }\n timeoutInMillis -= sleep;\n }\n }\n return false;\n}\n"
"public void setSite(ViewPart viewSite) {\n fSite = viewSite;\n fSite.getSite().setSelectionProvider(fSelProvider);\n Object serviceObject = fSite.getSite().getWorkbenchWindow().getService(IContextService.class);\n IContextService service = (IContextService) serviceObject;\n service.activateContext(\"String_Node_Str\");\n service.activateContext(IContextIds.CONTEXT_ID_WINDOW);\n}\n"
"public IModule[] createModules(IProject project) {\n if (canCreateModule(project)) {\n IModule module = createModule(project.getName(), project.getName(), CloudFoundryServer.ID_JAVA_STANDALONE_APP, CloudFoundryServer.ID_JAVA_STANDALONE_APP_VERSION, project);\n if (module != null) {\n return new IModule[] { module };\n }\n }\n return new IModule[0];\n}\n"
"public void onProgressChanged(WebView view, int progress) {\n if (progress == 100)\n progress = 0;\n progressBar.setProgress(progress);\n if (showSwipeRefreshLayout) {\n if (swipeRefreshLayout.isRefreshing() && progress == 100) {\n swipeRefreshLayout.post(new Runnable() {\n public void run() {\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }\n if (!swipeRefreshLayout.isRefreshing() && progress != 0) {\n swipeRefreshLayout.post(new Runnable() {\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n }\n });\n }\n }\n}\n"
"public static void clearPropertyBindingMap(DataSetHandle dsHandle, Map dataSetMap, Map dataSourceMap) throws SemanticException {\n if (dsHandle.getExtends() != null) {\n return;\n }\n if (dsHandle instanceof JointDataSetHandle) {\n Iterator iter = ((JointDataSetHandle) dsHandle).dataSetsIterator();\n while (iter.hasNext()) {\n DataSetHandle ds = (DataSetHandle) iter.next();\n if (dsHandle != null) {\n clearPropertyBindingMap(ds, dataSetMap, dataSourceMap);\n }\n }\n } else if (dsHandle instanceof OdaDataSetHandle) {\n List dataSetBindingList = dsHandle.getPropertyBindings();\n List dataSourceBindingList = dsHandle.getDataSource().getPropertyBindings();\n if (!dataSetBindingList.isEmpty())\n dataSetMap.put(dsHandle.getName(), dataSetBindingList);\n if (!dataSourceBindingList.isEmpty())\n dataSourceMap.put(dsHandle.getDataSource().getName(), dataSourceBindingList);\n for (int i = 0; i < dataSetBindingList.size(); i++) {\n PropertyBinding binding = (PropertyBinding) dataSetBindingList.get(i);\n dsHandle.setPropertyBinding(binding.getName(), (Expression) null);\n }\n for (int i = 0; i < dataSourceBindingList.size(); i++) {\n PropertyBinding binding = (PropertyBinding) dataSourceBindingList.get(i);\n dsHandle.getDataSource().clearProperty(binding.getName());\n }\n }\n}\n"
"public static void saveDataFile(File dataFeedFile, BackupTubeDataFile dataFile) {\n if (dataFeedFile.exists()) {\n dataFeedFile.delete();\n }\n try {\n String json = BackupTubeCommon.getPrettyGson().toJson(dataFile, BackupTubeDataFile.class);\n PrintWriter writer = new PrintWriter(dataFeedFile);\n writer.write(json);\n writer.close();\n } catch (IOException ex) {\n System.err.println(\"String_Node_Str\");\n System.exit(0);\n }\n}\n"
"protected void doRun() {\n ISelection selection = getSelection();\n Object obj = ((IStructuredSelection) selection).getFirstElement();\n final RepositoryNode node = (RepositoryNode) obj;\n final String title = DefaultMessagesImpl.getString(\"String_Node_Str\");\n String message = null;\n if (node.getChildren().size() == 0) {\n return;\n } else if (node.getChildren().size() >= 1) {\n message = DefaultMessagesImpl.getString(\"String_Node_Str\") + \"String_Node_Str\" + DefaultMessagesImpl.getString(\"String_Node_Str\");\n }\n final Shell shell = super.getShell();\n if (!(MessageDialog.openQuestion(shell, title, message))) {\n return;\n }\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n for (IRepositoryNode child : node.getChildren()) {\n try {\n if (child.getType() == ENodeType.REPOSITORY_ELEMENT) {\n ModelElement modelEle = RepositoryNodeHelper.getModelElementFromRepositoryNode(child);\n if (modelEle != null && modelEle instanceof TdReport) {\n IFile file = ResourceManager.getReportsFolder().getFile(WorkbenchUtils.getFilePath(node));\n if (file != null) {\n RepResourceFileHelper.getInstance().remove(file);\n }\n }\n EObjectHelper.removeDependencys(modelEle);\n }\n deleteElements(factory, (RepositoryNode) child);\n } catch (Exception e) {\n MessageBoxExceptionHandler.process(e);\n }\n }\n try {\n factory.saveProject(ProjectManager.getInstance().getCurrentProject());\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n }\n}\n"
"public Object getValueAt(int row, int col) {\n try {\n switch(col) {\n case 0:\n return data.getMaltName(row);\n case 1:\n return SBStringUtils.df1.format(data.getMaltAmountAs(row, data.getMaltUnits(row)));\n case 2:\n return data.getMaltUnits(row);\n case 3:\n return new Double(SBStringUtils.df3.format(data.getMaltPppg(row)));\n case 4:\n return new Double(SBStringUtils.df0.format(data.getMaltLov(row)));\n case 5:\n return new Double(data.getMaltCostPerU(row));\n case 6:\n return SBStringUtils.df1.format(new Double(data.getMaltPercent(row)));\n }\n } catch (Exception e) {\n }\n ;\n return \"String_Node_Str\";\n}\n"
"protected void writeObject(DataOutput out, Object obj) throws IOException {\n if (obj == null) {\n out.writeByte(0);\n }\n if (obj instanceof Long) {\n out.writeByte(1);\n out.writeLong((Long) obj);\n } else if (obj instanceof Integer) {\n out.writeByte(2);\n out.writeInt((Integer) obj);\n } else if (obj instanceof String) {\n out.writeByte(3);\n out.writeUTF((String) obj);\n } else if (obj instanceof Double) {\n out.writeByte(4);\n out.writeDouble((Double) obj);\n } else if (obj instanceof Float) {\n out.writeByte(5);\n out.writeDouble((Float) obj);\n } else if (obj instanceof Boolean) {\n out.writeByte(6);\n out.writeBoolean((Boolean) obj);\n } else if (obj instanceof DataSerializable) {\n out.writeByte(7);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(obj);\n oos.close();\n byte[] buf = bos.toByteArray();\n out.writeInt(buf.length);\n out.write(buf);\n }\n}\n"
"public final Size compute(IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc) throws ChartException {\n final Legend lg = cm.getLegend();\n if (!lg.isSetOrientation()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", Messages.getResourceBundle(xs.getULocale()));\n }\n if (!lg.isSetDirection()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", Messages.getResourceBundle(xs.getULocale()));\n }\n LegendData legendData = new LegendData(xs, cm, seda, rtc);\n initAvailableSize(legendData);\n boolean bMinSliceDefined = false;\n if (cm instanceof ChartWithoutAxes) {\n bMinSliceDefined = ((ChartWithoutAxes) cm).isSetMinSlice();\n legendData.sMinSliceLabel = ((ChartWithoutAxes) cm).getMinSliceLabel();\n if (legendData.sMinSliceLabel == null || legendData.sMinSliceLabel.length() == 0) {\n legendData.sMinSliceLabel = IConstants.UNDEFINED_STRING;\n } else {\n legendData.sMinSliceLabel = rtc.externalizedMessage(legendData.sMinSliceLabel);\n }\n }\n if (bMinSliceDefined && legendData.bPaletteByCategory && cm instanceof ChartWithoutAxes) {\n calculateExtraLegend(cm, rtc, legendData);\n }\n Label lgTitle = lg.getTitle();\n Size titleSize = null;\n BoundingBox titleBounding = null;\n int iTitlePos = -1;\n if (lgTitle != null && lgTitle.isSetVisible() && lgTitle.isVisible()) {\n lgTitle = LabelImpl.copyInstance(lgTitle);\n final String sPreviousValue = lgTitle.getCaption().getValue();\n lgTitle.getCaption().setValue(rtc.externalizedMessage(sPreviousValue));\n titleBounding = Methods.computeLabelSize(xs, lgTitle, 0, null);\n iTitlePos = lg.getTitlePosition().getValue();\n if (rtc.isRightToLeft()) {\n if (iTitlePos == Position.LEFT) {\n iTitlePos = Position.RIGHT;\n } else if (iTitlePos == Position.RIGHT) {\n iTitlePos = Position.LEFT;\n }\n }\n double shadowness = 3 * legendData.dScale;\n switch(iTitlePos) {\n case Position.ABOVE:\n case Position.BELOW:\n legendData.dAvailableHeight -= titleBounding.getHeight() + 2 * shadowness;\n break;\n case Position.LEFT:\n case Position.RIGHT:\n legendData.dAvailableWidth -= titleBounding.getWidth() + 2 * shadowness;\n break;\n }\n titleSize = SizeImpl.create(titleBounding.getWidth() + 2 * shadowness, titleBounding.getHeight() + 2 * shadowness);\n }\n double[] size = null;\n ContentProvider cProvider = ContentProvider.newInstance(legendData);\n ContentPlacer cPlacer = ContentPlacer.newInstance(legendData);\n LegendItemHints lih;\n while ((lih = cProvider.nextContent()) != null) {\n if (!cPlacer.placeContent(lih)) {\n break;\n }\n }\n cPlacer.finishPlacing();\n size = cPlacer.getSize();\n if (size == null) {\n return SizeImpl.create(0, 0);\n }\n double dWidth = size[0], dHeight = size[1];\n if (iTitlePos != -1) {\n double shadowness = 3 * legendData.dScale;\n switch(iTitlePos) {\n case Position.ABOVE:\n case Position.BELOW:\n dHeight += titleBounding.getHeight() + 2 * shadowness;\n dWidth = Math.max(dWidth, titleBounding.getWidth() + 2 * shadowness);\n break;\n case Position.LEFT:\n case Position.RIGHT:\n dWidth += titleBounding.getWidth() + 2 * shadowness;\n dHeight = Math.max(dHeight, titleBounding.getHeight() + 2 * shadowness);\n break;\n }\n }\n if (rtc != null) {\n List<LegendItemHints> legendItems = legendData.legendItems;\n LegendItemHints[] liha = legendItems.toArray(new LegendItemHints[legendItems.size()]);\n LegendLayoutHints lilh = new LegendLayoutHints(SizeImpl.create(dWidth, dHeight), titleSize, legendData.bMinSliceApplied, legendData.sMinSliceLabel, liha);\n rtc.setLegendLayoutHints(lilh);\n }\n sz = SizeImpl.create(dWidth, dHeight);\n return sz;\n}\n"
"public String getLibraryVersion(LibraryNode lib) {\n NamespaceHandler nsHandler = lib.getNsHandler();\n ProjectItem projectItem = lib.getProjectItem();\n String version = \"String_Node_Str\";\n NamespaceHandler nsHandler = null;\n if (lib != null) {\n nsHandler = lib.getNsHandler();\n ProjectItem projectItem = lib.getProjectItem();\n if (projectItem != null && nsHandler != null && !RepositoryItemState.UNMANAGED.equals(projectItem.getState())) {\n version = nsHandler.getNSVersion(lib.getNamespace());\n }\n }\n return version;\n}\n"
"public void vertexAdded(final Spot v) {\n writeLock.lock();\n try {\n final int t = v.getTimepoint();\n Stats stats = timepointToStats.get(t);\n if (stats == null) {\n stats = new Stats(graph.vertexRef());\n timepointToStats.put(t, stats);\n }\n stats.add(v);\n } finally {\n writeLock.unlock();\n }\n}\n"
"public boolean reset() {\n this.uniqueValueCount = UNIQUE_VALUE_COUNT_EDEFAULT;\n if (isUsedMapDBMode()) {\n distintObjects = initValueForDBSet(StandardDBName.computeProcessSet.name());\n if (distintObjects != null) {\n ((DBSet<Object>) distintObjects).clear();\n }\n duplicateObjects = initValueForDBSet(StandardDBName.temp.name());\n if (duplicateObjects != null) {\n ((DBSet<Object>) duplicateObjects).clear();\n }\n } else {\n this.uniqueObjects.clear();\n this.duplicateObjects.clear();\n }\n return super.reset();\n}\n"
"public void addTosystem(MRIDTransformationRule toSystem) {\n if (this.toSystem != null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.toSystem = toSystem;\n}\n"
"protected void renderStubLeftSide(GL2 gl, Rectangle2D loc, Rectangle2D locTarget, boolean isWindow, PathwayMultiFormInfo info, PathwayMultiFormInfo infoTarget, boolean start) {\n if (this.isAngleTooSmall) {\n renderLeftOffsetStub(gl, loc, locTarget, isWindow, info, infoTarget, start);\n return;\n }\n xS = (float) locTarget.getX() + (float) locTarget.getWidth();\n yS = (float) locTarget.getY() + (float) locTarget.getHeight() / 2.0f;\n yE = (float) loc.getY() + (float) loc.getHeight() / 2.0f;\n float red = bandColor[0];\n float green = bandColor[1];\n float blue = bandColor[2];\n boolean renderStub = true;\n if (isWindow && !this.drawLink) {\n Pair<PathwayMultiFormInfo, PathwayMultiFormInfo> windowPair = new Pair<PathwayMultiFormInfo, PathwayMultiFormInfo>(info, infoTarget);\n Pair<PathwayMultiFormInfo, PathwayMultiFormInfo> windowPairRev = new Pair<PathwayMultiFormInfo, PathwayMultiFormInfo>(infoTarget, info);\n if (this.view.containsWindowsStub(windowPair))\n renderStub = false;\n float windowCenterX = (infoTarget.window.getAbsoluteLocation().get(0) + (infoTarget.window.getSize().get(0) / 2.0f));\n float windowCenterY = (infoTarget.window.getAbsoluteLocation().get(1) + (infoTarget.window.getSize().get(1) / 2.0f));\n Vec2f dirToWindowCenter = null;\n dirToWindowCenter = new Vec2f(windowCenterX - xE, windowCenterY - yE);\n dirToWindowCenter.normalize();\n Vec2f normalVecCenterVec = rotateVec2(dirToWindowCenter, (float) Math.PI / 2f);\n float glBandWidthOffsetX_CenterVec = normalVecCenterVec.get(0) * bandWidth / 2.0f;\n float glBandWidthOffsetY_CenterVec = normalVecCenterVec.get(1) * bandWidth / 2.0f;\n stubConnectionPoint4_X = xE + (dirToWindowCenter.get(0) * (stubLength)) - glBandWidthOffsetX_CenterVec;\n stubConnectionPoint4_Y = yE + (dirToWindowCenter.get(1) * (stubLength)) - glBandWidthOffsetY_CenterVec;\n stubConnectionPoint3_X = xE + (dirToWindowCenter.get(0) * (stubLength)) + glBandWidthOffsetX_CenterVec;\n stubConnectionPoint3_Y = yE + (dirToWindowCenter.get(1) * (stubLength)) + glBandWidthOffsetY_CenterVec;\n } else {\n Vec2f dirNorm = new Vec2f(xE - xS, yE - yS);\n dirNorm.normalize();\n Vec2f normalVec = rotateVec2(dirNorm, (float) Math.PI / 2f);\n float glBandWidthOffsetX = normalVec.get(0) * bandWidth / 2.0f;\n float glBandWidthOffsetY = normalVec.get(1) * bandWidth / 2.0f;\n stubConnectionPoint3_X = xE - (dirNorm.get(0) * (stubLength)) - glBandWidthOffsetX;\n stubConnectionPoint3_Y = yE - (dirNorm.get(1) * (stubLength)) - glBandWidthOffsetY;\n stubConnectionPoint4_X = xE - (dirNorm.get(0) * (stubLength)) + glBandWidthOffsetX;\n stubConnectionPoint4_Y = yE - (dirNorm.get(1) * (stubLength)) + glBandWidthOffsetY;\n }\n float stubConnectorWidth = (float) loc.getHeight();\n float p10X = xE;\n float p10Y = yE - stubConnectorWidth / 2.0f;\n float p11X = xE;\n float p11Y = yE + stubConnectorWidth / 2.0f;\n if (fadeToOpacity < linkOpacity && !renderStub)\n return;\n gl.glBegin(GL2.GL_LINES);\n gl.glColor4f(red, green, blue, this.outlineOpacity);\n gl.glVertex3f(p10X, p10Y, z);\n gl.glColor4f(red, green, blue, fadeToOpacity);\n gl.glVertex3f(stubConnectionPoint3_X, stubConnectionPoint3_Y, z);\n gl.glColor4f(red, green, blue, this.outlineOpacity);\n gl.glVertex3f(p11X, p11Y, z);\n gl.glColor4f(red, green, blue, fadeToOpacity);\n gl.glVertex3f(stubConnectionPoint4_X, stubConnectionPoint4_Y, z);\n gl.glEnd();\n gl.glBegin(GL2.GL_QUADS);\n gl.glColor4f(red, green, blue, linkOpacity);\n gl.glVertex3f(p10X, p10Y, z);\n gl.glVertex3f(p11X, p11Y, z);\n gl.glColor4f(red, green, blue, fadeToOpacity);\n gl.glVertex3f(stubConnectionPoint4_X, stubConnectionPoint4_Y, z);\n gl.glVertex3f(stubConnectionPoint3_X, stubConnectionPoint3_Y, z);\n gl.glEnd();\n}\n"
"public void testCount() {\n Long count = blockDao.getCount();\n Log.info(\"String_Node_Str\" + count);\n}\n"
"private void validateAnswerCode(List<ValidationMessage> errors, WrapperElement answer, NodeStack stack, Questionnaire qSrc, QuestionnaireItemComponent qItem) {\n WrapperElement v = answer.getNamedChild(\"String_Node_Str\");\n NodeStack ns = stack.push(v, -1, null, null);\n if (qItem.getOption().size() > 0)\n checkCodingOption(errors, answer, stack, qSrc, qItem, theOpenChoice);\n else if (qItem.hasOptions())\n validateAnswerCode(errors, v, stack, qSrc, qItem.getOptions());\n else\n hint(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), false, \"String_Node_Str\");\n}\n"
"public String getValue(String str) {\n int iSeparator = str.indexOf(SEPARATOR) + SEPARATOR.length();\n if (iSeparator == (-1 + SEPARATOR.length())) {\n iSeparator = 0;\n }\n sTmp = serviceprovider.getValue(sTmp);\n if (sTmp == null || \"String_Node_Str\".equals(sTmp)) {\n sTmp = Messages.getString(\"String_Node_Str\");\n }\n return sTmp;\n}\n"
"private static List<StopTime> createStopTimes(List<ProtoRouteStop> prss, Map<ProtoRouteStop, Stop> prsStops, boolean reverse, double speed, Trip trip, int tripStart, int firstStopTimeSequence) {\n List<StopTime> newStopTimes = new ArrayList<StopTime>();\n double firstStopDist = 0;\n for (int i = 0; i < prss.size(); i++) {\n int ix = i;\n if (reverse) {\n ix = prss.size() - 1 - i;\n }\n ProtoRouteStop prs = prss.get(ix);\n if (i == 0) {\n firstStopDist = prs.dist;\n }\n Stop stop = prsStops.get(prs);\n StopTime stoptime = new StopTime();\n stoptime.setStop(stop);\n stoptime.setTrip(trip);\n stoptime.setStopSequence(i + firstStopTimeSequence);\n double dist;\n if (reverse) {\n dist = segLen - prs.dist;\n } else {\n dist = prs.dist;\n }\n int time = (int) (dist / speed) + tripStart;\n stoptime.setArrivalTime(time);\n stoptime.setDepartureTime(time);\n newStopTimes.add(stoptime);\n }\n return newStopTimes;\n}\n"
"private <T> void postSaveOperations(Object entity, DBObject dbObj, DBCollection dbColl, LinkedHashMap<Object, DBObject> involvedObjects) {\n Mapper mapr = morphia.getMapper();\n MappedClass mc = mapr.getMappedClass(entity);\n mapr.updateKeyInfo(entity, dbObj);\n firePostPersistForChildren(involvedObjects, mapr);\n mc.callLifecycleMethods(PostPersist.class, entity, dbObj, mapr);\n}\n"
"public void testDeleteRelations() {\n TDQReportItem item = mock(TDQReportItem.class);\n IFile file = mock(IFile.class);\n when(file.exists()).thenReturn(false);\n IFolder folder = mock(IFolder.class);\n when(folder.exists()).thenReturn(true);\n Property prop = mock(Property.class);\n when(item.getProperty()).thenReturn(prop);\n PowerMockito.mockStatic(PropertyHelper.class);\n when(PropertyHelper.getItemFile(prop)).thenReturn(file);\n PowerMockito.mockStatic(ReportHelper.class);\n when(ReportUtils.getOutputFolder(file)).thenReturn(folder);\n DQDeleteHelper.deleteRelations(item);\n}\n"
"public void close() throws Exception {\n pool.remove();\n}\n"
"public static void main(String[] args) throws IOException, Exception {\n checkUserHome();\n Set<String> tasks = new HashSet<>();\n parseArgs(args, tasks);\n if (url == null || url.isEmpty()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n SSLContext ctx = createSSLContext();\n AppCache appCache = ClientFactory.obtainTwoTierAppCache(url, new ServerTasksScanner(tasks));\n ScriptedDatabasesClient appDbClient = new ScriptedDatabasesClient(appCache, defDatasource, true);\n if (System.getProperty(ScriptRunner.DEBUG_PROPERTY) != null) {\n Debugger debugger = Debugger.initialize(false);\n registerMBean(DebuggerMBean.DEBUGGER_MBEAN_NAME, debugger);\n registerMBean(Breakpoints.BREAKPOINTS_MBEAN_NAME, Breakpoints.getInstance());\n }\n PlatypusServer server = new PlatypusServer(appDbClient, ctx, getListenAddresses(), getPortsProtocols(), getPortsSessionIdleTimeouts(), getPortsSessionIdleCheckIntervals(), getPortsNumWorkerThreads(), tasks, appElement);\n server.setAnonymousEnabled(anonymousEnabled);\n appDbClient.setContextHost(server);\n appDbClient.setPrincipalHost(server);\n PlatypusScriptedResource.init(appDbClient, server, server);\n ScriptUtils.getScope().defineProperty(ServerScriptRunner.MODULES_SCRIPT_NAME, server.getScriptsCache(), ScriptableObject.READONLY);\n server.start();\n}\n"
"void add(AvatarImiJME avatar) {\n if (!(avatar.getCell() instanceof ViewCell))\n return;\n }\n String username = ((ViewCell) avatar.getCell()).getIdentity().getUsername();\n avatarMap.put(username, avatar);\n if (frame != null) {\n frame.add(username);\n }\n}\n"
"public Element createElement() {\n final Element outerElem = DOM.createDiv();\n if (isMac) {\n DOM.setInnerHTML(outerElem, \"String_Node_Str\");\n DeferredCommand.addCommand(new Command() {\n public void execute() {\n DOM.setStyleAttribute(outerElem, \"String_Node_Str\", \"String_Node_Str\");\n }\n });\n containerElement = DOM.getFirstChild(outerElem);\n } else {\n containerElement = outerElem;\n }\n return outerElem;\n}\n"
"public void setHome(msg_mission_item msg) {\n this.coordinate = new LatLng(msg.x, msg.y);\n this.altitude = new Altitude(msg.z);\n myDrone.events.notifyDroneEvent(DroneEventsType.HOME);\n}\n"
"public void delete() throws VirtException {\n try {\n stop();\n } catch (VirtException e) {\n e.printStackTrace();\n }\n for (StorageVol volume : storageVols) {\n volume.delete();\n }\n domain.undefine();\n}\n"
"public void onCreate(Vector3 position) {\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(0, 1, 0), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(1, 1, 0), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(-1, 1, 0), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(0, 1, 1), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(0, 1, -1), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(1, 1, -1), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(-1, 1, 1), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(1, 1, 1), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(-1, 1, -1), position), new Vector3(this));\n}\n"
"public <T extends OpenmrsObject> T saveObject(T object, OpenmrsSerializer serializer) throws DAOException {\n Class<? extends OpenmrsObject> baseType = getRegisteredTypeForObject(object);\n if (baseType == null) {\n throw new DAOException(\"String_Node_Str\" + object.getClass() + \"String_Node_Str\");\n }\n SerializedObject serializedObject = getSerializedObject(object.getId());\n if (serializedObject == null) {\n serializedObject = new SerializedObject();\n }\n if (serializer == null) {\n serializer = getSerializer(serializedObject);\n }\n String data = null;\n try {\n data = serializer.serialize(object);\n } catch (SerializationException e) {\n throw new DAOException(\"String_Node_Str\" + object + \"String_Node_Str\", e);\n }\n serializedObject.setUuid(object.getUuid());\n serializedObject.setType(baseType);\n serializedObject.setSubtype(object.getClass());\n serializedObject.setSerializationClass(serializer.getClass());\n serializedObject.setSerializedData(data);\n if (object instanceof Auditable) {\n Auditable auditableObj = (Auditable) object;\n serializedObject.setCreator(auditableObj.getCreator());\n serializedObject.setDateCreated(auditableObj.getDateCreated());\n if (serializedObject.getCreator() == null) {\n serializedObject.setCreator(Context.getAuthenticatedUser());\n }\n if (serializedObject.getDateCreated() == null) {\n serializedObject.setDateCreated(new Date());\n }\n serializedObject.setChangedBy(auditableObj.getChangedBy());\n serializedObject.setDateChanged(auditableObj.getDateChanged());\n }\n if (object instanceof OpenmrsMetadata) {\n OpenmrsMetadata metaObj = (OpenmrsMetadata) object;\n serializedObject.setName(metaObj.getName());\n serializedObject.setDescription(metaObj.getDescription());\n serializedObject.setRetired(metaObj.isRetired() == Boolean.TRUE);\n serializedObject.setRetiredBy(metaObj.getRetiredBy());\n serializedObject.setDateRetired(metaObj.getDateRetired());\n serializedObject.setRetireReason(metaObj.getRetireReason());\n }\n if (object instanceof OpenmrsData) {\n OpenmrsData dataObj = (OpenmrsData) object;\n serializedObject.setRetired(dataObj.isVoided() == Boolean.TRUE);\n serializedObject.setRetiredBy(dataObj.getVoidedBy());\n serializedObject.setDateRetired(dataObj.getDateVoided());\n serializedObject.setRetireReason(dataObj.getVoidReason());\n }\n sessionFactory.getCurrentSession().saveOrUpdate(serializedObject);\n object.setId(serializedObject.getId());\n return object;\n}\n"
"private void captureImage() {\n Image image;\n try {\n final CameraFile cf = cameraGphoto.captureImage();\n if (cf != null) {\n Shooting activeShooting = shootingService.searchIsActive();\n if (activeShooting != null) {\n int imageID = imageService.getNextImageID();\n String directoryPath = activeShooting.getStorageDir() + \"String_Node_Str\";\n DateFormat dateFormat = new SimpleDateFormat(\"String_Node_Str\");\n Date date = new Date();\n String imagePath = directoryPath + \"String_Node_Str\" + camera.getId() + \"String_Node_Str\" + dateFormat.format(date) + \"String_Node_Str\";\n image = new Image(imageID, imagePath, activeShooting.getId(), new Date());\n image = imageService.create(image);\n cf.save(new File(imagePath).getAbsolutePath());\n imageProcessor.processShot(image);\n LOGGER.debug(imageService.getLastImgPath(activeShooting.getId()));\n } else {\n LOGGER.error(\"String_Node_Str\");\n }\n cf.close();\n }\n } catch (CameraException ex) {\n LOGGER.error(\"String_Node_Str\", ex);\n setStop(true);\n } catch (ServiceException ex) {\n LOGGER.debug(\"String_Node_Str\", ex);\n }\n}\n"