content
stringlengths
40
137k
"public int getBrightnessForRender(float par1) {\n return brightness > 0 ? brightness : super.getBrightnessForRender(par1);\n}\n"
"public static Index create(InputSplit genericSplit, TaskAttemptContext context) {\n Configuration conf = context.getConfiguration();\n Class<?> indexClass = conf.getClass(\"String_Node_Str\", null);\n try {\n LOG.debug(\"String_Node_Str\" + indexClass.toString() + \"String_Node_Str\" + guiceModule.toString());\n RunModule module = (RunModule) guiceModule.getConstructor().newInstance();\n module.setHdfsFile(hdfsFile);\n LOG.debug(\"String_Node_Str\" + module.getClass().getName().toString());\n Injector injector = Guice.createInjector(module);\n LOG.debug(\"String_Node_Str\");\n return (Index) injector.getInstance(indexClass);\n } catch (Exception e) {\n return null;\n }\n}\n"
"public void registerBlockRenderers() {\n super.registerBlockRenderers();\n ClientRegistry.bindTileEntitySpecialRenderer(TileArchitect.class, new RenderArchitect());\n ClientRegistry.bindTileEntitySpecialRenderer(TileFiller.class, new RenderFiller());\n ClientRegistry.bindTileEntitySpecialRenderer(TileBuilder.class, new RenderBuilderTile());\n ClientRegistry.bindTileEntitySpecialRenderer(TileConstructionMarker.class, new RenderConstructionMarker());\n ClientRegistry.bindTileEntitySpecialRenderer(TileQuarry.class, new RenderQuarry());\n RenderingRegistry.registerEntityRenderingHandler(EntityMechanicalArm.class, new RenderVoid<EntityMechanicalArm>());\n}\n"
"private String getXml(String filename) {\n try {\n String xmlFilePath = Script.findScript(scriptsDir, filename);\n if (xmlFilePath == null) {\n throw new Exception(\"String_Node_Str\" + filename);\n }\n try (FileReader fr = new FileReader(xmlFilePath);\n BufferedReader br = new BufferedReader(fr)) {\n String xml = \"String_Node_Str\";\n String line;\n while ((line = br.readLine()) != null) {\n xml += line.trim();\n }\n return xml;\n } catch (Exception e) {\n s_logger.debug(e);\n return null;\n }\n return xml;\n } catch (Exception e) {\n s_logger.debug(e);\n return null;\n }\n}\n"
"public static void importSaltAndEncryptedKeyMaterial(Context context, String[] saltAndEncryptedKeyMaterial) throws GeneralSecurityException, InvalidMacException, IOException {\n Log.d(TAG, \"String_Node_Str\");\n Optional<String> masterPassphrase = KeyStore.getMasterPassphrase(context);\n if (!masterPassphrase.isPresent())\n throw new InvalidMacException(\"String_Node_Str\");\n byte[] salt = Base64.decode(saltAndEncryptedKeyMaterial[0]);\n SecretKey[] masterKeys = KeyUtil.getCipherAndMacKeysForPassphrase(salt, masterPassphrase.get());\n SecretKey masterCipherKey = masterKeys[0];\n SecretKey masterMacKey = masterKeys[1];\n MasterCipher masterCipher = new MasterCipher(masterCipherKey, masterMacKey);\n byte[] plaintextKeyMaterial = masterCipher.decodeAndDecrypt(saltAndEncryptedKeyMaterial[1].getBytes());\n boolean saltLengthValid = salt.length == KeyUtil.SALT_LENGTH_BYTES;\n boolean keyMaterialLengthValid = plaintextKeyMaterial.length == (KeyUtil.CIPHER_KEY_LENGTH_BYTES + KeyUtil.MAC_KEY_LENGTH_BYTES);\n if (!saltLengthValid || !keyMaterialLengthValid)\n throw new GeneralSecurityException(\"String_Node_Str\" + saltLengthValid + \"String_Node_Str\" + keyMaterialLengthValid);\n byte[] plaintextCipherKey = Arrays.copyOfRange(plaintextKeyMaterial, 0, KeyUtil.CIPHER_KEY_LENGTH_BYTES);\n byte[] plaintextMacKey = Arrays.copyOfRange(plaintextKeyMaterial, KeyUtil.CIPHER_KEY_LENGTH_BYTES, KeyUtil.CIPHER_KEY_LENGTH_BYTES + KeyUtil.MAC_KEY_LENGTH_BYTES);\n KeyStore.saveEncryptedKeyMaterial(context, saltAndEncryptedKeyMaterial[1]);\n KeyStore.saveKeyMaterialSalt(context, salt);\n KeyStore.saveCipherKey(context, plaintextCipherKey);\n KeyStore.saveMacKey(context, plaintextMacKey);\n}\n"
"private double precision(String referenceSparqlQuery, String learnedSPARQLQuery) {\n List<String> referenceResources = getResult(referenceSparqlQuery);\n if (referenceResources.isEmpty()) {\n logger.error(\"String_Node_Str\" + referenceSparqlQuery);\n return 0;\n }\n if (learnedSPARQLQuery.equals(QueryTreeUtils.EMPTY_QUERY_TREE_QUERY)) {\n return referenceResources.size() / (double) kbSize;\n }\n List<String> learnedResources = splitComplexQueries ? getResultSplitted(learnedSPARQLQuery) : getResult(learnedSPARQLQuery);\n if (learnedResources.isEmpty()) {\n logger.error(\"String_Node_Str\" + learnedSPARQLQuery);\n System.err.println(learnedSPARQLQuery);\n return 0;\n }\n int overlap = Sets.intersection(Sets.newHashSet(referenceResources), Sets.newHashSet(learnedResources)).size();\n double precision = overlap / (double) learnedResources.size();\n return precision;\n}\n"
"private void addCallArgs(Expression[] args, JMethodCall call, MethodBinding binding) {\n if (args == null) {\n args = new Expression[0];\n }\n TypeBinding[] params = binding.parameters;\n int n = params.length;\n if (binding.isVarargs()) {\n --n;\n }\n if (args.length < n) {\n assert (call.getTarget().getName().equals(\"String_Node_Str\"));\n return;\n }\n ArrayList<JExpression> callArgs = call.getArgs();\n for (int i = 0; i < n; ++i) {\n callArgs.add(dispProcessExpression(args[i]));\n }\n if (binding.isVarargs()) {\n JArrayType type = (JArrayType) typeMap.get(params[n]);\n if (args.length == n + 1) {\n JType lastArgType = (JType) typeMap.get(args[n].resolvedType);\n if (lastArgType instanceof JArrayType) {\n JArrayType lastArgArrayType = (JArrayType) lastArgType;\n if (lastArgArrayType.getDims() == type.getDims()) {\n callArgs.add(dispProcessExpression(args[n]));\n return;\n }\n }\n SourceInfo info = makeSourceInfo(args[n]);\n JNewArray newArray = new JNewArray(program, info, type);\n newArray.initializers = new ArrayList<JExpression>();\n for (int i = n; i < args.length; ++i) {\n newArray.initializers.add(dispProcessExpression(args[i]));\n }\n call.getArgs().add(newArray);\n }\n }\n}\n"
"public void onIssueOpenRequest(Issue item) {\n if (item != null) {\n IssueInfo info = new IssueInfo();\n info.repoInfo = repoInfo;\n info.num = item.number;\n if (item.pullRequest == null) {\n Intent intent = IssueDetailActivity.createLauncherIntent(getActivity(), info);\n startActivity(intent);\n }\n }\n}\n"
"public MWAttributeDeclaration attribute(String namespaceUrl, String attributeName) {\n if (namespaceUrl == null || \"String_Node_Str\".equals(namespaceUrl)) {\n namespaceUrl = targetNamespaceUrl();\n }\n return this.namespaceForUrl(namespaceUrl).attribute(attributeName);\n}\n"
"public boolean isTilePainted(Tile tile) {\n return !(displayMapImage && tile.isPrepainted());\n}\n"
"public List<VcCluster> getVcResourcePoolByNameList(String[] names) {\n logger.debug(\"String_Node_Str\" + Arrays.toString(names));\n if (names == null || names.length == 0) {\n return null;\n }\n Map<String, VcCluster> clusterMap = new HashMap<String, VcCluster>();\n for (String name : names) {\n VcResourcePoolEntity rpForName = VcResourcePoolEntity.findByName(name);\n if (rpForName == null) {\n logger.warn(\"String_Node_Str\" + name + \"String_Node_Str\");\n continue;\n }\n combineCluster(clusterMap, rpForName);\n }\n if (clusterMap.values().isEmpty()) {\n throw VcProviderException.NO_RESOURCE_POOL_FOUND(names);\n }\n List<VcCluster> result = new ArrayList<VcCluster>();\n result.addAll(clusterMap.values());\n logger.debug(\"String_Node_Str\" + result);\n return result;\n}\n"
"public void correctDownloadLink(DownloadLink link) throws Exception {\n this.setBrowserExclusive();\n br.setCookie(link.getDownloadURL(), \"String_Node_Str\", \"String_Node_Str\");\n if (!Regex.matches(link.getDownloadURL(), \"String_Node_Str\")) {\n if (!Regex.matches(link.getDownloadURL(), \"String_Node_Str\")) {\n br.setFollowRedirects(true);\n br.getPage(link.getDownloadURL());\n String urlpart = \"String_Node_Str\";\n String correctUrl = urlpart + br.getRegex(\"String_Node_Str\").getMatch(0);\n link.setUrlDownload(correctUrl);\n }\n }\n}\n"
"public void createApplicationClusters(String appId, ApplicationClusterContextDTO[] appClustersContexts) throws ApplicationClusterRegistrationException {\n if (appClustersContexts == null || appClustersContexts.length == 0) {\n String errorMsg = \"String_Node_Str\";\n LOG.error(errorMsg);\n throw new ApplicationClusterRegistrationException(errorMsg);\n }\n List<Cluster> clusters = new ArrayList<Cluster>();\n for (ApplicationClusterContextDTO appClusterCtxt : appClustersContexts) {\n Cluster newCluster = new Cluster(appClusterCtxt.getCartridgeType(), appClusterCtxt.getClusterId(), appClusterCtxt.getDeploymentPolicyName(), appClusterCtxt.getAutoscalePolicyName(), appId);\n newCluster.setLbCluster(false);\n newCluster.setTenantRange(appClusterCtxt.getTenantRange());\n newCluster.setStatus(ClusterStatus.Created);\n newCluster.setHostNames(Arrays.asList(appClusterCtxt.getHostName()));\n clusters.add(newCluster);\n }\n TopologyBuilder.handleApplicationClustersCreated(appId, clusters);\n persist();\n}\n"
"private void writeTrampoline(String stubIntr) {\n for (String mangledName : toImplement(stubIntr)) {\n for (Method method : jsoData.getDeclarations(mangledName)) {\n Method toCall = new Method(method.getName(), method.getDescriptor());\n MethodVisitor mv = super.visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, mangledName, method.getDescriptor(), null, null);\n if (mv != null) {\n mv.visitCode();\n int var = 1;\n int size = 1;\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (Type t : toCall.getArgumentTypes()) {\n size += t.getSize();\n mv.visitVarInsn(t.getOpcode(Opcodes.ILOAD), var);\n var += t.getSize();\n }\n size = Math.max(size, toCall.getReturnType().getSize());\n mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, currentTypeName, toCall.getName(), toCall.getDescriptor());\n mv.visitInsn(toCall.getReturnType().getOpcode(Opcodes.IRETURN));\n mv.visitMaxs(size, var);\n mv.visitEnd();\n }\n }\n }\n}\n"
"public void dispose() {\n super.dispose();\n fLock.lock();\n try {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n if (window != null) {\n window.getSelectionService().removePostSelectionListener(this);\n }\n fView.setSDFindProvider(null);\n fView.setSDPagingProvider(null);\n fView.setSDFilterProvider(null);\n fView = null;\n } finally {\n fLock.unlock();\n }\n}\n"
"private CrateSQLStatement initSelectStatement(Class<?> entityClass, String tableName) {\n CratePersistentEntity<?> entity = getPersistentEntityFor(entityClass);\n boolean isVersioned = entity.hasVersionProperty();\n Set<String> columns = isVersioned ? entity.getPropertyNames(entity.getVersionProperty().getFieldName()) : entity.getPropertyNames();\n String idColumn = id != null ? entity.getIdProperty().getFieldName() : null;\n return new Select(idColumn, tableName, columns);\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_article);\n if (savedInstanceState == null) {\n HSKBItem kbItem = (HSKBItem) getIntent().getSerializableExtra(\"String_Node_Str\");\n ArticleFragment sectionFragment = HSFragmentManager.getArticleFragment(this, kbItem);\n HSFragmentManager.putFragmentInActivity(this, R.id.container, sectionFragment, \"String_Node_Str\");\n getHelpStackActionBar().setTitle(kbItem.getSubject());\n }\n}\n"
"public long fileModified(String name) throws IOException {\n if (shouldPerformOperationOnActualDirectory(name)) {\n return dir.fileModified(name);\n }\n fetchFileIfNotExists(name);\n return localCacheDir.fileModified(name);\n}\n"
"public boolean handle(TemplatePlanContext templateContext, AbstractOperation operation, AbstractImplementationArtifact ia, Map<AbstractParameter, Variable> param2propertyMapping) {\n AbstractNodeTemplate infrastructureNodeTemplate = this.findInfrastructureNode(templateContext.getInfrastructureNodes());\n if (infrastructureNodeTemplate == null) {\n return false;\n }\n Variable runShScriptStringVar = null;\n AbstractArtifactReference scriptRef = this.fetchScriptRefFromIA(ia);\n if (scriptRef == null) {\n return false;\n }\n runShScriptStringVar = this.appendBPELAssignOperationShScript(templateContext, operation, scriptRef, ia, param2propertyMapping);\n Variable ipStringVariable = null;\n for (String serverIp : org.opentosca.model.tosca.conventions.Utils.getSupportedVirtualMachineIPPropertyNames()) {\n ipStringVariable = templateContext.getPropertyVariable(infrastructureNodeTemplate, serverIp);\n if (ipStringVariable == null) {\n ipStringVariable = templateContext.getPropertyVariable(serverIp, true);\n if (ipStringVariable == null) {\n ipStringVariable = templateContext.getPropertyVariable(serverIp, false);\n } else {\n break;\n }\n } else {\n break;\n }\n }\n Variable userStringVariable = null;\n for (String vmUserName : org.opentosca.model.tosca.conventions.Utils.getSupportedVirtualMachineLoginUserNamePropertyNames()) {\n userStringVariable = templateContext.getPropertyVariable(infrastructureNodeTemplate, vmUserName);\n if (userStringVariable == null) {\n userStringVariable = templateContext.getPropertyVariable(vmUserName, true);\n if (userStringVariable == null) {\n userStringVariable = templateContext.getPropertyVariable(vmUserName, false);\n } else {\n break;\n }\n } else {\n break;\n }\n }\n Variable passwdStringVariable = null;\n for (String vmUserPassword : org.opentosca.model.tosca.conventions.Utils.getSupportedVirtualMachineLoginPasswordPropertyNames()) {\n passwdStringVariable = templateContext.getPropertyVariable(infrastructureNodeTemplate, vmUserPassword);\n if (passwdStringVariable == null) {\n passwdStringVariable = templateContext.getPropertyVariable(vmUserPassword, true);\n if (passwdStringVariable == null) {\n passwdStringVariable = templateContext.getPropertyVariable(vmUserPassword, false);\n } else {\n break;\n }\n } else {\n break;\n }\n }\n if (this.isNull(runShScriptStringVar, ipStringVariable, userStringVariable, passwdStringVariable)) {\n return false;\n }\n Map<String, Variable> payloadVariableMapping = new HashMap<String, Variable>();\n for (AbstractParameter param : param2propertyMapping.keySet()) {\n payloadVariableMapping.put(param.getName(), param2propertyMapping.get(param));\n }\n return this.appendExecuteScript(templateContext, infrastructureNodeTemplate.getId(), runShScriptStringVar, userStringVariable, passwdStringVariable, ipStringVariable, payloadVariableMapping);\n}\n"
"private void activateListing() {\n boolean listingactive = showListing.isSelected(0);\n bestOnlyEl.setVisible(listingactive);\n bestOnlyEl.select(yesOrNoKeys[1], true);\n numTableRows.setVisible(listingactive);\n}\n"
"private String createDisplayNameFromEmail() {\n String username = mEmailAddress.split(\"String_Node_Str\")[0].replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n String[] array = username.split(\"String_Node_Str\");\n StringBuilder builder = new StringBuilder();\n for (String s : array) {\n String capitalized = s.substring(0, 1).toUpperCase(Locale.getDefault()) + s.substring(1);\n builder.append(capitalized.concat(\"String_Node_Str\"));\n }\n return builder.toString().trim();\n}\n"
"public T get() {\n if (persistence == null) {\n synchronized (this) {\n if (persistence == null) {\n this.persistence = build(conn, databases);\n }\n }\n }\n if (disableCaching) {\n persistence.disableCaching();\n }\n return persistence;\n}\n"
"private boolean basicCache() {\n if (dataSetDesign == null)\n return false;\n if (this.cacheOption == DISABLE) {\n return false;\n } else if (this.cacheOption == ALWAYS) {\n if (this.alwaysCacheRowCount == 0)\n return false;\n } else if (dataSetDesign.getCacheRowCount() == 0) {\n return false;\n }\n return true;\n}\n"
"public void onStart() {\n super.onStart();\n if (mReloadPager) {\n refreshFragmentsUi();\n }\n scrollToPageRequiresSetup();\n mReloadPager = false;\n}\n"
"V remove(final DirectBytes keyBytes, final V expectedValue, int hash2) {\n lock();\n try {\n hash2 = hashLookup.startSearch(hash2);\n while (true) {\n final int pos = hashLookup.nextPos();\n if (pos < 0) {\n return null;\n } else {\n final long offset = entriesOffset + pos * entrySize;\n tmpBytes.storePositionAndSize(bytes, offset, entrySize);\n if (!keyEquals(keyBytes, tmpBytes))\n continue;\n final long keyLength = keyBytes.remaining() + tmpBytes.position();\n tmpBytes.position(keyLength);\n V valueRemoved = expectedValue == null && removeReturnsNull ? null : readObjectUsing(null, offset + keyLength);\n if (expectedValue != null && !expectedValue.equals(valueRemoved))\n return null;\n hashLookup.remove(hash2, pos);\n decrementSize();\n freeList.clear(pos);\n if (pos < nextSet)\n nextSet = pos;\n return valueRemoved;\n }\n }\n } finally {\n unlock();\n }\n}\n"
"public void testStartModuleInvalidToken() throws Exception {\n harness.createProjectAndAddModule(\"String_Node_Str\");\n IModule[] modules = server.getModules();\n assertEquals(\"String_Node_Str\" + Arrays.toString(modules), 1, modules.length);\n int moduleState = server.getModulePublishState(modules);\n assertEquals(IServer.PUBLISH_STATE_UNKNOWN, moduleState);\n CloudFoundryOperations client = getClient();\n Field field = CloudFoundryClient.class.getDeclaredField(\"String_Node_Str\");\n field.setAccessible(true);\n field.set(client, \"String_Node_Str\");\n serverBehavior.deployOrStartModule(modules, true, null);\n moduleState = server.getModuleState(modules);\n assertEquals(IServer.STATE_STARTED, moduleState);\n moduleState = server.getModulePublishState(modules);\n ApplicationModule appModule = cloudServer.getApplication(modules[0]);\n List<String> uris = appModule.getApplication().getUris();\n assertEquals(Collections.singletonList(harness.getUrl(\"String_Node_Str\")), uris);\n URI uri = new URI(\"String_Node_Str\" + harness.getUrl(\"String_Node_Str\") + \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", getContent(uri));\n}\n"
"public void widgetSelected(SelectionEvent e) {\n KeyWrapper[] selectedKeys = getSelectedKeys();\n if (selectedKeys.length == 0) {\n return;\n FieldWrapper[] selectedFields = getSelectedFields();\n if (selectedFields.length == 0)\n return;\n if (getAllFields().length == selectedFields.length) {\n MessageDialog.openWarning(getShell(), Messages.Warning, Messages.EntityKeyConfigComposite_WarningMsg);\n return;\n }\n for (FieldWrapper eachRemovedField : selectedFields) selectedKeys[0].removeField(eachRemovedField);\n tvFields.setInput(Arrays.asList(selectedKeys[0].getFields()));\n if (section != null)\n section.autoCommit();\n}\n"
"private void deserialize(String labelString) {\n labels = new HashMap();\n if (\"String_Node_Str\".equals(labelString)) {\n return;\n }\n StringTokenizer tokenizer = new StringTokenizer(labelString, \"String_Node_Str\");\n while (tokenizer.hasMoreTokens()) {\n String labelToken = tokenizer.nextToken();\n String[] data = StringUtil.split(labelToken, \"String_Node_Str\");\n if (data.length == 3) {\n Label label = createLabel(data[0], data[1], data[2]);\n labels.put(label.getName(), label);\n } else {\n System.err.println(\"String_Node_Str\" + labelToken + \"String_Node_Str\");\n }\n }\n return;\n}\n"
"public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {\n Set<UUID> possibleTargets = new HashSet<>();\n for (StackObject stackObject : game.getStack()) {\n Spell spell = game.getStack().getSpell(stackObject.getId());\n if (spell != null && filter.match(spell, null, sourceControllerId, game) && filter.match(spell, game)) {\n possibleTargets.add(spell.getId());\n }\n }\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filter.getPermanentFilter(), sourceControllerId, game)) {\n if (filter.match(permanent, null, sourceControllerId, game)) {\n possibleTargets.add(permanent.getId());\n }\n }\n return possibleTargets;\n}\n"
"public void testCacheFetch() throws InterruptedException, IOException {\n try (InMemoryArtifactCache inMemoryArtifactCache = new InMemoryArtifactCache();\n TwoLevelArtifactCacheDecorator twoLevelCache = new TwoLevelArtifactCacheDecorator(inMemoryArtifactCache, new ProjectFilesystem(tmp.getRoot()), BuckEventBusFactory.newInstance(), true, 0L, Optional.<Long>absent())) {\n LazyPath dummyFile = LazyPath.ofInstance(tmp.newFile());\n assertThat(twoLevelCache.fetch(dummyRuleKey, dummyFile).getType(), Matchers.equalTo(CacheResultType.MISS));\n twoLevelCache.store(ArtifactInfo.builder().addRuleKeys(dummyRuleKey).build(), BorrowablePath.notBorrowablePath(dummyFile.get()));\n assertThat(twoLevelCache.fetch(dummyRuleKey, dummyFile).getType(), Matchers.equalTo(CacheResultType.HIT));\n twoLevelCache.store(ArtifactInfo.builder().addRuleKeys(dummyRuleKey2).build(), BorrowablePath.notBorrowablePath(dummyFile.get()));\n assertThat(twoLevelCache.fetch(dummyRuleKey2, dummyFile).getType(), Matchers.equalTo(CacheResultType.HIT));\n assertThat(inMemoryArtifactCache.getArtifactCount(), Matchers.equalTo(3));\n }\n}\n"
"private void showDialog(IndicatorDTO indicator, FormDialogCallback callback) {\n final IndicatorForm form = new IndicatorForm(dispatcher);\n form.getBinding().bind(indicator);\n form.setIdVisible(false);\n form.setGroupVisible(false);\n dialog = new FormDialogImpl<IndicatorForm>(form);\n dialog.setHeading(indicator.getName() == null ? I18N.CONSTANTS.newIndicator() : indicator.getName());\n dialog.setWidth(form.getPreferredDialogWidth());\n dialog.setHeight(form.getPreferredDialogHeight());\n dialog.setScrollMode(Scroll.AUTOY);\n dialog.show(callback);\n}\n"
"public void execute(Player player, String message) {\n String name = extractArgument(message);\n if (name == null) {\n if (player.isAttemptLock()) {\n player.setAttemptedAction(null);\n player.addTMessage(Color.GRAY, \"String_Node_Str\");\n return;\n } else {\n name = \"String_Node_Str\";\n }\n }\n if (name != null && name.equals(\"String_Node_Str\")) {\n Map<String, Integer> list = player.getServer().data.chests.chestList(player);\n if (list.size() == 0) {\n player.addTMessage(Color.GRAY, \"String_Node_Str\");\n } else {\n player.addTMessage(Color.GRAY, \"String_Node_Str\");\n for (String current : list.keySet()) {\n player.addMessage(Color.GRAY, list.get(current) + \"String_Node_Str\" + current);\n }\n }\n } else {\n player.addTMessage(Color.GRAY, \"String_Node_Str\");\n player.setAttemptedAction(Action.Lock);\n player.setChestName(name);\n }\n}\n"
"public RelaxedDmvSolution solveRelaxation() {\n try {\n Status status = runDWAlgo(cplex, mp);\n if (tempDir != null) {\n cplex.exportModel(new File(tempDir, \"String_Node_Str\").getAbsolutePath());\n }\n log.info(\"String_Node_Str\" + status);\n if (status != Status.Optimal) {\n return new RelaxedDmvSolution(null, null, null, LazyBranchAndBoundSolver.WORST_SCORE, status);\n }\n if (tempDir != null) {\n cplex.writeSolution(new File(tempDir, \"String_Node_Str\").getAbsolutePath());\n }\n log.info(\"String_Node_Str\" + cplex.getObjValue());\n log.info(String.format(\"String_Node_Str\", mp.lambdaVars.size(), mp.numStoCons));\n double objective = -cplex.getObjValue();\n assert (!Double.isNaN(objective));\n assert (Utilities.lte(objective, 0.0, 1e-7));\n optimalLogProbs = new double[idm.getNumConds()][];\n for (int c = 0; c < idm.getNumConds(); c++) {\n logProbs[c] = cplex.getValues(mp.modelParamVars[c]);\n }\n double[][] fracRoots = new double[sentences.size()][];\n double[][][] fracParses = new double[sentences.size()][][];\n for (int s = 0; s < sentences.size(); s++) {\n Sentence sentence = sentences.get(s);\n fracRoots[s] = new double[sentence.size()];\n fracParses[s] = new double[sentence.size()][sentence.size()];\n }\n for (LambdaVar triple : mp.lambdaVars) {\n double frac = cplex.getValue(triple.lambdaVar);\n int s = triple.s;\n int[] parents = triple.parents;\n double[] fracRoot = fracRoots[s];\n double[][] fracParse = fracParses[s];\n for (int child = 0; child < parents.length; child++) {\n int parent = parents[child];\n if (parent == WallDepTreeNode.WALL_POSITION) {\n fracRoot[child] += frac;\n } else {\n fracParse[parent][child] += frac;\n }\n }\n }\n return new RelaxedDmvSolution(logProbs, fracRoots, fracParses, objective, status);\n } catch (IloException e) {\n if (e instanceof ilog.cplex.CpxException) {\n ilog.cplex.CpxException cpxe = (ilog.cplex.CpxException) e;\n System.err.println(\"String_Node_Str\" + cpxe.getStatus());\n System.err.println(\"String_Node_Str\" + cpxe.getMessage());\n }\n throw new RuntimeException(e);\n }\n}\n"
"public void testMultiInheritance() {\n final DefaultFeatureType metropolis = metropolis();\n final DefaultFeatureType capital = capital();\n final DefaultFeatureType metroCapital = new DefaultFeatureType(name(\"String_Node_Str\"), false, new DefaultFeatureType[] { metropolis, capital }, new DefaultAttributeType<>(name(\"String_Node_Str\"), String.class, 1, 1, null));\n assertUnmodifiable(metroCapital);\n assertEquals(\"String_Node_Str\", \"String_Node_Str\", metroCapital.getName().toString());\n assertArrayEquals(\"String_Node_Str\", new Object[] { metropolis, capital }, metroCapital.getSuperTypes().toArray());\n assertFalse(\"String_Node_Str\", metroCapital.isAbstract());\n assertFalse(\"String_Node_Str\", metroCapital.isSparse());\n assertTrue(\"String_Node_Str\", metroCapital.isSimple());\n assertEquals(\"String_Node_Str\", 6, metroCapital.indices().size());\n assertPropertiesEquals(metroCapital, false, \"String_Node_Str\");\n assertPropertiesEquals(metroCapital, true, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", CharSequence.class, ((AttributeType<?>) metroCapital.getProperty(\"String_Node_Str\")).getValueClass());\n assertTrue(\"String_Node_Str\", DefaultFeatureType.maybeAssignableFrom(capital, metroCapital));\n assertFalse(\"String_Node_Str\", DefaultFeatureType.maybeAssignableFrom(metroCapital, capital));\n assertTrue(\"String_Node_Str\", DefaultFeatureType.maybeAssignableFrom(metropolis, metroCapital));\n assertFalse(\"String_Node_Str\", DefaultFeatureType.maybeAssignableFrom(metroCapital, metropolis));\n assertTrue(\"String_Node_Str\", capital.isAssignableFrom(metroCapital));\n assertFalse(\"String_Node_Str\", metroCapital.isAssignableFrom(capital));\n assertTrue(\"String_Node_Str\", metropolis.isAssignableFrom(metroCapital));\n assertFalse(\"String_Node_Str\", metroCapital.isAssignableFrom(metropolis));\n}\n"
"public synchronized void init(JobEngineConfig jobEngineConfig) throws SchedulerException {\n if (!initialized) {\n initialized = true;\n } else {\n return;\n }\n this.jobEngineConfig = jobEngineConfig;\n RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);\n this.zkClient = CuratorFrameworkFactory.newClient(jobEngineConfig.getZookeeperString(), retryPolicy);\n this.zkClient.start();\n this.sharedLock = new InterProcessMutex(zkClient, schedulerId());\n boolean hasLock = false;\n try {\n hasLock = sharedLock.acquire(3, TimeUnit.SECONDS);\n } catch (Exception e) {\n logger.warn(\"String_Node_Str\", e);\n }\n if (!hasLock) {\n logger.warn(\"String_Node_Str\");\n zkClient.close();\n return;\n }\n executableManager = ExecutableManager.getInstance(jobEngineConfig.getConfig());\n fetcherPool = Executors.newScheduledThreadPool(1);\n int corePoolSize = jobEngineConfig.getMaxConcurrentJobLimit();\n jobPool = new ThreadPoolExecutor(corePoolSize, corePoolSize, Long.MAX_VALUE, TimeUnit.DAYS, new SynchronousQueue<Runnable>());\n context = new DefaultContext(Maps.<String, Executable>newConcurrentMap(), jobEngineConfig.getConfig());\n for (AbstractExecutable executable : executableManager.getAllExecutables()) {\n if (executable.getStatus() == ExecutableState.READY) {\n executableManager.updateJobOutput(executable.getId(), ExecutableState.ERROR, null, \"String_Node_Str\");\n }\n }\n executableManager.updateAllRunningJobsToError();\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public void run() {\n logger.debug(\"String_Node_Str\");\n try {\n shutdown();\n } catch (SchedulerException e) {\n logger.error(\"String_Node_Str\", e);\n }\n }\n });\n fetcherPool.scheduleAtFixedRate(new FetcherRunner(), 10, ExecutableConstants.DEFAULT_SCHEDULER_INTERVAL_SECONDS, TimeUnit.SECONDS);\n hasStarted = true;\n}\n"
"private void updateBackgroundBounds() {\n mBackgroundBounds.left = (int) getX();\n mBackgroundBounds.right = (int) (getX() + getWidth());\n if (!mIsExpanded) {\n mBackgroundBounds.top = 0;\n mBackgroundBounds.bottom = 0;\n }\n ActivatableNotificationView firstView = mFirstVisibleBackgroundChild;\n int top = 0;\n if (firstView != null) {\n int finalTranslationY = (int) StackStateAnimator.getFinalTranslationY(firstView);\n if (mAnimateNextBackgroundTop || mTopAnimator == null && mCurrentBounds.top == finalTranslationY || mTopAnimator != null && mEndAnimationRect.top == finalTranslationY) {\n top = finalTranslationY;\n } else {\n top = (int) firstView.getTranslationY();\n }\n }\n ActivatableNotificationView lastView = mLastVisibleBackgroundChild;\n int bottom = 0;\n if (lastView != null) {\n int finalTranslationY = (int) StackStateAnimator.getFinalTranslationY(lastView);\n int finalHeight = StackStateAnimator.getFinalActualHeight(lastView);\n int finalBottom = finalTranslationY + finalHeight;\n finalBottom = Math.min(finalBottom, getHeight());\n if (mAnimateNextBackgroundBottom || mBottomAnimator == null && mCurrentBounds.bottom == finalBottom || mBottomAnimator != null && mEndAnimationRect.bottom == finalBottom) {\n bottom = finalBottom;\n } else {\n bottom = (int) (lastView.getTranslationY() + lastView.getActualHeight());\n bottom = Math.min(bottom, getHeight());\n }\n } else {\n top = mTopPadding;\n bottom = top;\n }\n if (mPhoneStatusBar.getBarState() != StatusBarState.KEYGUARD) {\n top = (int) Math.max(mTopPadding + mStackTranslation, top);\n } else {\n mBackgroundBounds.top = Math.max(0, top);\n }\n mBackgroundBounds.bottom = Math.min(getHeight(), Math.max(bottom, top));\n}\n"
"protected void innerScale(float scale) {\n scale = PApplet.constrain(mapDisplay.innerScale * scale, minScale, maxScale);\n if (tweening) {\n scaleIntegrator.target(scale);\n } else {\n mapDisplay.innerScale = scale;\n mapDisplay.calculateInnerMatrix();\n }\n}\n"
"public Alarm patch(String tenantId, String alarmId, AlarmState state) {\n Alarm alarm = repo.findById(tenantId, alarmId);\n state = state == null ? alarm.getState() : state;\n updateInternal(tenantId, alarm, alarm.getState(), state);\n alarm.setState(state);\n return alarm;\n}\n"
"public GLElement create(GLElementFactoryContext context) {\n EDetailLevel detailLevel = context.get(EDetailLevel.class, EDetailLevel.LOW);\n boolean blurNotSelected = context.is(\"String_Node_Str\");\n IHeatMapDataProvider data;\n EDimension dim;\n Function<? super Integer, Double> id2double;\n Function<? super Double, Vec2f> value2bar;\n Function<? super Integer, Color> id2color;\n if (hasTablePerspective(context)) {\n final TablePerspectiveDataProvider d = new TablePerspectiveDataProvider(context.getData());\n data = d;\n dim = EDimension.get(context.getData().getNrRecords() == 1);\n final Integer id = d.getData(dim.opposite()).get(0);\n final Function2<Integer, Integer, Double> getter = dim.isDimension() ? d : Functions2.swap(d);\n id2double = new Function<Integer, Double>() {\n public Double apply(Integer input) {\n return getter.apply(input, id);\n }\n };\n } else {\n dim = context.get(EDimension.class, EDimension.RECORD);\n IDType idType = context.get(IDType.class, null);\n List<Integer> list = context.get(List.class, null);\n DimensionData d = new DimensionData(list, Functions.constant(\"String_Node_Str\"), Collections.<Group>emptyList(), idType);\n data = new ListDataProvider(dim.select(null, d), dim.select(d, null));\n id2double = context.get(\"String_Node_Str\", Function.class, null);\n }\n id2color = context.get(\"String_Node_Str\", Function.class, Functions.constant(context.get(\"String_Node_Str\", Color.class, Color.BLACK)));\n value2bar = extractValue2Bar(context);\n return new SingleBarPlotElement(data, detailLevel, dim, id2double, value2bar, id2color);\n}\n"
"MSimpleDecl eval1Decl(IASTDeclaration decla) throws DOMException {\n MyLogger.log(\"String_Node_Str\");\n IASTSimpleDeclaration simpleDeclaration = (IASTSimpleDeclaration) decla;\n assert (simpleDeclaration.getDeclarators().length == 1);\n List<MExpression> inits = evaluateDeclarationReturnInitializers(simpleDeclaration, initType);\n List<String> names = evaluateDeclarationReturnNames(simpleDeclaration);\n List<String> types = evaluateDeclarationReturnTypes(simpleDeclaration);\n MSimpleDecl dec = new MSimpleDecl();\n dec.name = names.get(0);\n dec.initExpr = inits.get(0);\n dec.type = types.get(0);\n return dec;\n}\n"
"private IWizardPage getNextPageODAV2() {\n DataSetTypeElement dataSetElement = (DataSetTypeElement) ((IStructuredSelection) dataSetTypeChooser.getSelection()).getFirstElement();\n if (m_designSession != null)\n m_designSession = null;\n if (dataSetElement instanceof OdaDataSetTypeElement) {\n OdaDataSetTypeElement dElement = (OdaDataSetTypeElement) dataSetElement;\n IConfigurationElement element = dElement.getIConfigurationElement();\n AbstractDataSetWizard newWizard = null;\n if (element != null) {\n newWizard = (AbstractDataSetWizard) htDataSetWizards.get(element.getAttribute(\"String_Node_Str\"));\n }\n if (newWizard == null && element != null) {\n IConfigurationElement[] elements = element.getChildren(\"String_Node_Str\");\n if (elements.length > 0) {\n try {\n Object wizard = elements[0].createExecutableExtension(\"String_Node_Str\");\n if (wizard instanceof AbstractDataSetWizard) {\n newWizard = (AbstractDataSetWizard) wizard;\n newWizard.setConfigurationElement(element);\n newWizard.addPages();\n newWizard.setUseTransaction(useTransaction);\n htDataSetWizards.put(element.getAttribute(\"String_Node_Str\"), newWizard);\n }\n } catch (CoreException e) {\n ExceptionHandler.handle(e);\n }\n }\n }\n if (newWizard != null) {\n newWizard.setDataSource(getSelectedDataSource());\n newWizard.setDataSetName(nameEditor.getText().trim());\n if (newWizard.getDataSet() != null) {\n try {\n newWizard.getDataSet().setDataSource(newWizard.getDataSource().getName());\n newWizard.getDataSet().setName(newWizard.getDataSetName());\n } catch (SemanticException e) {\n ExceptionHandler.handle(e);\n }\n }\n return newWizard.getStartingPage();\n }\n } else {\n IWizardPage page = helper.getNextPage(getSelectedDataSource(), dataSetElement);\n if (page == null)\n return super.getNextPage();\n else\n return page;\n }\n return super.getNextPage();\n}\n"
"private IRDSave getRdSave() throws DataException {\n if (this.rdSave == null)\n this.rdSave = RDUtil.newSave(this.context, this.queryDefn, isDummyQuery(this.queryDefn, this.odiResult) ? 1 : odiResult.getRowCount(), new QueryResultInfo(this.idInfo.getQueryResultID(), this.idInfo.getsubQueryName(), this.idInfo.getsubQueryIndex()));\n return this.rdSave;\n}\n"
"public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException {\n super.setup(resolver, objectModel, src, par);\n try {\n this.request = ObjectModelHelper.getRequest(objectModel);\n this.response = ObjectModelHelper.getResponse(objectModel);\n Context context = ContextUtil.obtainContext(objectModel);\n int itemID = par.getParameterAsInteger(\"String_Node_Str\", -1);\n int bitstreamID = par.getParameterAsInteger(\"String_Node_Str\", -1);\n String handle = par.getParameter(\"String_Node_Str\", null);\n int sequence = par.getParameterAsInteger(\"String_Node_Str\", -1);\n String name = par.getParameter(\"String_Node_Str\", null);\n Bitstream bitstream = null;\n Item item = null;\n DSpaceObject dso = null;\n if (bitstreamID > -1) {\n bitstream = Bitstream.find(context, bitstreamID);\n } else if (itemID > -1) {\n item = Item.find(context, itemID);\n if (sequence > -1) {\n bitstream = findBitstreamBySequence(item, sequence);\n } else if (name != null) {\n bitstream = findBitstreamByName(item, name);\n }\n } else if (handle != null) {\n dso = HandleManager.resolveToObject(context, handle);\n if (dso instanceof Item) {\n item = (Item) dso;\n if (sequence > -1) {\n bitstream = findBitstreamBySequence(item, sequence);\n } else if (name != null) {\n bitstream = findBitstreamByName(item, name);\n }\n }\n }\n if (bitstream == null) {\n throw new ResourceNotFoundException(\"String_Node_Str\");\n }\n boolean isAuthorized = AuthorizeManager.authorizeActionBoolean(context, bitstream, Constants.READ);\n if (item != null && item.isWithdrawn() && !AuthorizeManager.isAdmin(context)) {\n isAuthorized = false;\n log.info(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + item.getHandle() + \"String_Node_Str\"));\n }\n if (!isAuthorized) {\n if (this.request.getSession().getAttribute(\"String_Node_Str\") != null) {\n String redictURL = request.getContextPath() + \"String_Node_Str\";\n if (item != null) {\n redictURL += item.getHandle();\n } else if (dso != null) {\n redictURL += dso.getHandle();\n }\n redictURL += \"String_Node_Str\" + bitstream.getID();\n HttpServletResponse httpResponse = (HttpServletResponse) objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);\n httpResponse.sendRedirect(redictURL);\n return;\n } else {\n AuthenticationUtil.interruptRequest(objectModel, AUTH_REQUIRED_HEADER, AUTH_REQUIRED_MESSAGE, null);\n String redictURL = request.getContextPath() + \"String_Node_Str\";\n HttpServletResponse httpResponse = (HttpServletResponse) objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);\n httpResponse.sendRedirect(redictURL);\n return;\n }\n }\n this.bitstreamInputStream = bitstream.retrieve();\n this.bitstreamSize = bitstream.getSize();\n this.bitstreamMimeType = bitstream.getFormat().getMIMEType();\n this.bitstreamName = bitstream.getName();\n if (bitstreamName != null && bitstreamName.length() > 0) {\n int finalSlashIndex = bitstreamName.lastIndexOf(\"String_Node_Str\");\n if (finalSlashIndex > 0) {\n bitstreamName = bitstreamName.substring(finalSlashIndex + 1);\n }\n }\n log.info(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + bitstream.getID()));\n } catch (SQLException sqle) {\n throw new ProcessingException(\"String_Node_Str\", sqle);\n } catch (AuthorizeException ae) {\n throw new ProcessingException(\"String_Node_Str\", ae);\n }\n}\n"
"public final void renderer(Canvas canvas) {\n int width = mContentRect.width();\n int height = mContentRect.height();\n if (mDrawBitmap == null || (mDrawBitmap.get().getWidth() != width) || (mDrawBitmap.get().getHeight() != height)) {\n if (width > 0 && height > 0) {\n mDrawBitmap = new WeakReference<>(Bitmap.createBitmap(width, height, mBitmapConfig));\n mBitmapCanvas = new Canvas(mDrawBitmap.get());\n } else\n return;\n }\n mDrawBitmap.get().eraseColor(Color.TRANSPARENT);\n renderDataSet(mBitmapCanvas);\n canvas.drawBitmap(mDrawBitmap.get(), mContentRect.left, mContentRect.top, mRenderPaint);\n}\n"
"public static String buildSelectByPk(EntityPK pk, Class<?> clazz, int tableIndex) throws SQLException {\n Field[] fields = ReflectUtil.getFields(clazz);\n String tableName = ReflectUtil.getTableName(clazz, tableIndex);\n StringBuilder whereSql = new StringBuilder();\n for (int i = 0; i < pk.getPkNames().length; i++) {\n whereSql.append(pk.getPkNames()[i].getValue()).append(\"String_Node_Str\").append(formatValue(pk.getPkValues()[i].getValue()));\n whereSql.append(\"String_Node_Str\");\n }\n whereSql.delete(whereSql.length() - 5, whereSql.length());\n StringBuilder SQL = new StringBuilder(\"String_Node_Str\");\n for (Field field : fields) {\n SQL.append(ReflectUtil.getFieldName(field)).append(\"String_Node_Str\");\n }\n SQL.deleteCharAt(SQL.length() - 1);\n SQL.append(\"String_Node_Str\").append(tableName);\n SQL.append(\"String_Node_Str\").append(whereSql.toString());\n debugSQL(SQL.toString());\n return SQL.toString();\n}\n"
"private Cipher _getCipher(int operationMode, String cipherAlgorithm, byte[] cipherKey, byte[] cipherText) throws IllegalArgumentException {\n String[] tokens = cipherAlgorithm.split(\"String_Node_Str\");\n if (tokens.length < 1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n int keySize = 0;\n int blockSize = 0;\n int ivSize = 0;\n String cipherName = \"String_Node_Str\";\n String cipherMode = \"String_Node_Str\";\n if (tokens[0].equals(\"String_Node_Str\")) {\n cipherName = tokens[0];\n blockSize = 16;\n if (tokens.length != 3) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n if (tokens[1].equals(\"String_Node_Str\")) {\n keySize = 16;\n } else if (tokens[1].equals(\"String_Node_Str\")) {\n keySize = 24;\n } else if (tokens[1].equals(\"String_Node_Str\")) {\n keySize = 32;\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n if (tokens[2].equals(\"String_Node_Str\")) {\n cipherMode = tokens[2];\n } else if (tokens[2].equals(\"String_Node_Str\") || tokens[2].equals(\"String_Node_Str\")) {\n cipherMode = tokens[2];\n ivSize = blockSize;\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n } else if (tokens[0].equals(\"String_Node_Str\")) {\n cipherName = tokens[0];\n keySize = 8;\n blockSize = 8;\n if (tokens.length != 2) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n if (tokens[1].equals(\"String_Node_Str\")) {\n cipherMode = tokens[1];\n } else if (tokens[1].equals(\"String_Node_Str\")) {\n cipherMode = tokens[1];\n ivSize = blockSize;\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n Cipher cipher;\n try {\n cipher = Cipher.getInstance(cipherName + \"String_Node_Str\" + cipherMode + \"String_Node_Str\");\n } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm, e);\n }\n IvParameterSpec ivSpec = null;\n byte[] initVector = null;\n if (ivSize > 0) {\n if (cipherText == null) {\n initVector = _getRandomBytes(ivSize);\n } else {\n initVector = Arrays.copyOfRange(cipherText, 0, ivSize);\n }\n ivSpec = new IvParameterSpec(initVector);\n }\n if (cipherKey.length != keySize) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm);\n }\n SecretKeySpec secretKeySpec = new SecretKeySpec(cipherKey, cipherName);\n try {\n if (ivSpec != null) {\n cipher.init(operationMode, secretKeySpec, ivSpec);\n } else {\n cipher.init(operationMode, secretKeySpec);\n }\n } catch (InvalidKeyException | InvalidAlgorithmParameterException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm + \"String_Node_Str\" + e.getMessage());\n }\n return cipher;\n}\n"
"public void bundleLoaded(String bundleName) {\n if (fromSource) {\n if (loadingOverlay) {\n loadOverlay(xulSrc);\n } else if (removingOverlay) {\n removeOverlay(xulSrc);\n } else {\n generateXulContainer(xulSrc);\n }\n return;\n }\n try {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, xulSrc);\n try {\n Request response = builder.sendRequest(null, new RequestCallback() {\n public void onError(Request request, Throwable exception) {\n Window.alert(\"String_Node_Str\" + exception.getMessage());\n }\n public void onResponseReceived(Request request, Response response) {\n if (AsyncXulLoader.this.loadingOverlay) {\n loadOverlay(response.getText());\n } else if (AsyncXulLoader.this.removingOverlay) {\n removeOverlay(response.getText());\n } else {\n generateXulContainer(response.getText());\n }\n }\n });\n } catch (RequestException e) {\n Window.alert(\"String_Node_Str\" + e.getMessage());\n }\n } catch (Exception e) {\n Window.alert(\"String_Node_Str\" + e.getMessage());\n e.printStackTrace();\n }\n}\n"
"public void discover(Properties databaseProperties, Properties columnProperties, Collection<String> tables) throws DatabaseAnonymizerException {\n log.info(\"String_Node_Str\");\n IMetaData metaData = MetaDataFactory.fetchMetaData(databaseProperties);\n List<ColumnMetaData> map = metaData.getMetaData();\n List<String> suspList = new ArrayList(columnProperties.keySet());\n ArrayList<String> matches = new ArrayList<>();\n for (String s : suspList) {\n Pattern p = compile(s);\n for (ColumnMetaData pair : map) {\n String tableName = pair.getTableName();\n String columnName = pair.getColumnName();\n if (!tables.isEmpty() && !tables.contains(tableName.toLowerCase())) {\n continue;\n }\n if (p.matcher(columnName.toLowerCase()).matches()) {\n matches.add(tableName + \"String_Node_Str\" + columnName);\n }\n }\n }\n log.info(\"String_Node_Str\");\n log.info(\"String_Node_Str\");\n log.info(\"String_Node_Str\");\n Collections.sort(matches);\n for (String entry : matches) {\n log.info(entry);\n }\n}\n"
"public RPCResponse internal_cleanup_start(InetSocketAddress server, boolean removeZombies, boolean removeDeadVolumes, boolean lostAndFound, String password) {\n xtreemfs_cleanup_startRequest rq = new xtreemfs_cleanup_startRequest(removeZombies, removeDeadVolumes, lostAndFound);\n UserCredentials creds = new UserCredentials(\"String_Node_Str\", new StringSet(new String[] { \"String_Node_Str\" }), password);\n RPCResponse r = sendRequest(server, rq.getOperationNumber(), rq, new RPCResponseDecoder() {\n public Object getResult(ReusableBuffer data) {\n xtreemfs_cleanup_startResponse resp = new xtreemfs_cleanup_startResponse();\n resp.deserialize(data);\n return null;\n }\n }, creds);\n return r;\n}\n"
"public void mobPress(Mob mob) {\n int cell = mob.pos;\n if (pit[cell] && !mob.flying) {\n Chasm.mobFall(mob);\n return;\n }\n Trap trap = null;\n switch(map[cell]) {\n case Terrain.TRAP:\n trap = traps.get(cell);\n break;\n case Terrain.DOOR:\n Door.enter(cell);\n break;\n }\n if (trap != null) {\n trap.trigger();\n }\n Plant plant = plants.get(cell);\n if (plant != null) {\n plant.trigger();\n }\n}\n"
"public static void handleOnCreate(ContainerContent content, ExecutionContext context) {\n try {\n ReportItemDesign listDesign = (ReportItemDesign) content.getGenerateBy();\n IListInstance list = new ListInstance(content, context);\n if (handleJS(list, listDesign.getOnCreate(), context).didRun())\n return;\n IListEventHandler eh = (IListEventHandler) getInstance((ListHandle) listDesign.getHandle());\n if (eh != null)\n eh.onCreate(list, context.getReportContext());\n } catch (Exception e) {\n log.log(Level.WARNING, e.getMessage(), e);\n }\n}\n"
"public String toString() {\n return new String(buffer.array(), 0, buffer.position(), CHARSET_ISO_8859_1);\n}\n"
"public boolean isChoiceProperty(Object o) {\n boolean choice = false;\n if (isColorProperty(o)) {\n return false;\n }\n if (o instanceof GroupPropertyHandle) {\n if (((GroupPropertyHandle) o).getPropertyDefn().getAllowedChoices() != null) {\n IChoice[] choices = ((GroupPropertyHandle) o).getPropertyDefn().getAllowedChoices().getChoices();\n if (choices.length > 0) {\n choice = true;\n }\n }\n }\n return choice;\n}\n"
"public boolean startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, IUiAutomationConnection uiAutomationConnection, int userId) {\n enforceNotIsolatedCaller(\"String_Node_Str\");\n userId = handleIncomingUser(Binder.getCallingPid(), Binder.getCallingUid(), userId, false, true, \"String_Node_Str\", null);\n if (arguments != null && arguments.hasFileDescriptors()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n synchronized (this) {\n InstrumentationInfo ii = null;\n ApplicationInfo ai = null;\n try {\n ii = mContext.getPackageManager().getInstrumentationInfo(className, STOCK_PM_FLAGS);\n ai = AppGlobals.getPackageManager().getApplicationInfo(ii.targetPackage, STOCK_PM_FLAGS, userId);\n } catch (PackageManager.NameNotFoundException e) {\n } catch (RemoteException e) {\n }\n if (ii == null) {\n reportStartInstrumentationFailure(watcher, className, \"String_Node_Str\" + className);\n return false;\n }\n if (ai == null) {\n reportStartInstrumentationFailure(watcher, className, \"String_Node_Str\" + ii.targetPackage);\n return false;\n }\n int match = mContext.getPackageManager().checkSignatures(ii.targetPackage, ii.packageName);\n if (match < 0 && match != PackageManager.SIGNATURE_FIRST_NOT_SIGNED) {\n String msg = \"String_Node_Str\" + className + \"String_Node_Str\" + Binder.getCallingPid() + \"String_Node_Str\" + Binder.getCallingPid() + \"String_Node_Str\" + ii.packageName + \"String_Node_Str\" + ii.targetPackage;\n reportStartInstrumentationFailure(watcher, className, msg);\n throw new SecurityException(msg);\n }\n final long origId = Binder.clearCallingIdentity();\n forceStopPackageLocked(ii.targetPackage, -1, true, false, true, true, false, userId, \"String_Node_Str\");\n ProcessRecord app = addAppLocked(ai, false);\n app.instrumentationClass = className;\n app.instrumentationInfo = ai;\n app.instrumentationProfileFile = profileFile;\n app.instrumentationArguments = arguments;\n app.instrumentationWatcher = watcher;\n app.instrumentationUiAutomationConnection = uiAutomationConnection;\n app.instrumentationResultClass = className;\n Binder.restoreCallingIdentity(origId);\n }\n return true;\n}\n"
"private void processLineSelection(Editor editor, boolean update) {\n if (ExEntryPanel.getInstance().isActive()) {\n ExEntryPanel.getInstance().deactivate(false);\n }\n ExOutputModel.getInstance(editor).clear();\n if (update) {\n if (CommandState.getInstance(editor).getMode() == CommandState.Mode.VISUAL) {\n updateSelection(editor, editor.getCaretModel().getOffset());\n }\n } else {\n if (CommandState.getInstance(editor).getMode() == CommandState.Mode.VISUAL) {\n CommandState.getInstance(editor).popState();\n }\n int start = editor.getSelectionModel().getSelectionStart();\n int end = editor.getSelectionModel().getSelectionEnd();\n editor.getSelectionModel().setSelection(start, Math.max(start, end - 1));\n setVisualMode(editor, CommandState.SubMode.VISUAL_LINE);\n VisualChange range = getVisualOperatorRange(editor, Command.FLAG_MOT_LINEWISE);\n if (range.getLines() > 1) {\n MotionGroup.moveCaret(editor, moveCaretVertical(editor, -1));\n }\n }\n}\n"
"private void addSystemInfo(GatewayManagementBean gatewayBean) {\n final HostManagementBean systemManagementBean = new HostManagementBeanImpl(gatewayBean, InternalSystemProperty.MANAGEMENT_SUMMARY_DATA_LIMIT.getIntProperty(configuration));\n for (ManagementServiceHandler handler : managementServiceHandlers) {\n handler.addSystemManagementBean(systemManagementBean);\n }\n systemManagementBean.managementStrategyChanged();\n}\n"
"public static org.hl7.fhir.dstu2016may.model.VisionPrescription convertVisionPrescription(org.hl7.fhir.dstu3.model.VisionPrescription src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.VisionPrescription tgt = new org.hl7.fhir.dstu2016may.model.VisionPrescription();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));\n tgt.setDateWritten(src.getDateWritten());\n tgt.setPatient(convertReference(src.getPatient()));\n tgt.setPrescriber(convertReference(src.getPrescriber()));\n tgt.setEncounter(convertReference(src.getEncounter()));\n tgt.setReason(convertType(src.getReason()));\n for (org.hl7.fhir.dstu3.model.VisionPrescription.VisionPrescriptionDispenseComponent t : src.getDispense()) tgt.addDispense(convertVisionPrescriptionDispenseComponent(t));\n return tgt;\n}\n"
"public Control createContents(Composite parent) {\n initPropertyBinding();\n int size = propList.size();\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout(3, false));\n GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL);\n composite.setLayoutData(gridData);\n Label nameLabel;\n Text propertyText = null;\n for (int i = 0; i < size; i++) {\n nameLabel = new Label(composite, SWT.NONE);\n nameLabel.setText((String) displayName.get(i) + Messages.getString(\"String_Node_Str\"));\n nameLabelList.add(nameLabel);\n GridData data = new GridData(GridData.FILL_HORIZONTAL);\n if (((String) bindingName.get(i)).equals(QUERYTEXT)) {\n propertyText = new Text(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n data.heightHint = 100;\n } else if (ODAPASSWORD.equals((String) bindingName.get(i)) || PASSWORD.equals((String) bindingName.get(i))) {\n propertyText = new Text(composite, SWT.BORDER);\n if (ds instanceof DesignElementHandle) {\n Expression expr = ((DesignElementHandle) ds).getPropertyBindingExpression((String) bindingName.get(i));\n if (expr != null && ExpressionType.CONSTANT.equals(expr.getType())) {\n Text dummy = new Text(composite, SWT.BORDER | SWT.PASSWORD);\n propertyText.setEchoChar(dummy.getEchoChar());\n dummy.dispose();\n }\n }\n } else\n propertyText = new Text(composite, SWT.BORDER);\n propertyText.setLayoutData(data);\n propertyText.setText((String) bindingValue.get(i) == null ? \"String_Node_Str\" : (String) bindingValue.get(i));\n propertyTextList.add(propertyText);\n if (ds instanceof OdaDataSourceHandle) {\n handle = (OdaDataSourceHandle) ds;\n OdaDataSourceHandle odsh = (OdaDataSourceHandle) ds;\n Utility.setSystemHelp(composite, IHelpConstants.PREFIX + \"String_Node_Str\" + \"String_Node_Str\" + odsh.getExtensionID().replace('.', '_') + \"String_Node_Str\" + \"String_Node_Str\");\n } else if (ds instanceof OdaDataSetHandle) {\n handle = (OdaDataSetHandle) ds;\n OdaDataSourceHandle odsh = (OdaDataSourceHandle) (((OdaDataSetHandle) ds).getDataSource());\n Utility.setSystemHelp(composite, IHelpConstants.PREFIX + \"String_Node_Str\" + \"String_Node_Str\" + odsh.getExtensionID().replace('.', '_') + \"String_Node_Str\" + \"String_Node_Str\");\n }\n createExpressionButton(composite, propertyText, (String) bindingName.get(i));\n }\n if (size <= 0)\n setEmptyPropertyMessages(composite);\n return composite;\n}\n"
"public void startGame() {\n sendMessage(team.BOTH, plugin.d + \"String_Node_Str\");\n for (Player p : plugin.players.keySet()) {\n plugin.p(p).resetScore();\n spawnPlayer(p, true);\n }\n t1 = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new tick(), 40L, 40L);\n t2 = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new tickone(), 20L, 20L);\n t3 = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new tickfast(), 2L, 2L);\n}\n"
"public void leaveArcade(final String playername) {\n if (players.contains(playername)) {\n players.remove(playername);\n }\n if (arena.containsPlayer(playername)) {\n arena.removePlayer(playername);\n }\n if (minigames.get(currentindex).getArenas().size() > 0) {\n if (minigames.get(currentindex).getArenas().get(0).containsPlayer(playername)) {\n minigames.get(currentindex).getArenas().get(0).leavePlayer(playername, false, false);\n }\n }\n Bukkit.getScheduler().runTaskLater(MinigamesAPI.getAPI(), new Runnable() {\n public void run() {\n Player p = Bukkit.getPlayer(playername);\n if (p != null) {\n Util.teleportPlayerFixed(p, arena.getMainLobbyTemp());\n MinigamesAPI.getAPI().pinstances.get(plugin).getSpectatorManager().setSpectate(p, false);\n if (!p.isOp()) {\n p.setFlying(false);\n p.setAllowFlight(false);\n }\n }\n }\n }, 20L);\n clean();\n if (pli.global_players.containsKey(playername)) {\n pli.global_players.remove(playername);\n }\n if (pli.global_lost.containsKey(playername)) {\n pli.global_lost.remove(playername);\n }\n if (currentarena != null) {\n PluginInstance pli_ = MinigamesAPI.getAPI().pinstances.get(currentarena.getPlugin());\n if (pli_ != null) {\n if (pli_.global_players.containsKey(playername)) {\n pli_.global_players.remove(playername);\n }\n if (pli_.global_lost.containsKey(playername)) {\n pli_.global_lost.remove(playername);\n }\n }\n }\n if (endOfGame) {\n if (players.size() < 2) {\n stopArcade(false);\n }\n }\n}\n"
"private boolean insertChild(Object parent, Object child) {\n Set<Object> children = childrenMap.get(parent);\n if (children == null) {\n children = new HashSet<Object>();\n fChildrenMap.put(parent, children);\n }\n return children.add(child);\n}\n"
"void updatePermissionEntries() {\n for (Map.Entry<String, List<AcEntry>> entry : entries.entrySet()) {\n String principalName = entry.getKey();\n NodeBuilder principalRoot = permissionRoot.child(principalName);\n if (!principalRoot.hasProperty(JCR_PRIMARYTYPE)) {\n principalRoot.setProperty(JCR_PRIMARYTYPE, NT_REP_PERMISSION_STORE, Type.NAME);\n }\n NodeBuilder parent = principalRoot.child(nodeName);\n if (!parent.hasProperty(JCR_PRIMARYTYPE)) {\n parent.setProperty(JCR_PRIMARYTYPE, NT_REP_PERMISSION_STORE, Type.NAME);\n }\n if (parent.hasProperty(REP_ACCESS_CONTROLLED_PATH)) {\n if (!PermissionUtil.checkACLPath(parent, accessControlledPath)) {\n NodeBuilder child = null;\n int idx = 0;\n for (String childName : parent.getChildNodeNames()) {\n if (childName.charAt(0) != 'c') {\n continue;\n }\n child = parent.getChildNode(childName);\n if (PermissionUtil.checkACLPath(child, accessControlledPath)) {\n break;\n }\n child = null;\n idx++;\n }\n while (child == null) {\n String name = 'c' + String.valueOf(idx++);\n child = parent.getChildNode(name);\n if (child.exists()) {\n child = null;\n } else {\n child = parent.child(name);\n child.setProperty(JCR_PRIMARYTYPE, NT_REP_PERMISSION_STORE, Type.NAME);\n }\n }\n parent = child;\n parent.setProperty(REP_ACCESS_CONTROLLED_PATH, accessControlledPath);\n }\n } else {\n parent.setProperty(REP_ACCESS_CONTROLLED_PATH, accessControlledPath);\n }\n updateEntries(parent, entries.get(principalName));\n }\n}\n"
"private void populateConnectionProp() throws SQLException {\n if (jdbcConn != null) {\n if (this.autoCommit != null)\n jdbcConn.setAutoCommit(this.autoCommit);\n if (this.isolationMode != Constants.TRANSCATION_ISOLATION_DEFAULT)\n jdbcConn.setTransactionIsolation(this.isolationMode);\n }\n}\n"
"private void checkTableData(final String sourceConnectorId, final Connection sourceConnection, final SourceDatabaseConfiguration sourceConfiguration, final TableMetaData sourceTableMetaData, final String targetConnectorId, final Connection targetConnection, final SourceDatabaseConfiguration targetConfiguration, final TableMetaData targetTableMetaData, final int numberOfCheckData) throws SQLException {\n final String tableName1 = _connectorRepository.getConnectorHint(sourceConnectorId, TableNameMapper.class).getValue().mapTableName(sourceTableMetaData);\n final String tableName2 = _connectorRepository.getConnectorHint(targetConnectorId, TableNameMapper.class).getValue().mapTableName(targetTableMetaData);\n final CommonColumnTypeResolverTool commonColumnTypeResolver = new CommonColumnTypeResolverTool(_connectorRepository);\n final ColumnNameMapper sourceColumnNameMapper = _connectorRepository.getConnectorHint(sourceConnectorId, ColumnNameMapper.class).getValue();\n final ColumnNameMapper targetColumnNameMapper = _connectorRepository.getConnectorHint(targetConnectorId, ColumnNameMapper.class).getValue();\n if (sourceTableMetaData.getRowCount() != targetTableMetaData.getRowCount()) {\n throw new UnequalNumberOfRowsException(\"String_Node_Str\" + tableName1 + \"String_Node_Str\" + sourceTableMetaData.getRowCount() + \"String_Node_Str\" + tableName2 + \"String_Node_Str\" + targetTableMetaData.getRowCount());\n }\n LOG.info(\"String_Node_Str\" + tableName1 + \"String_Node_Str\" + tableName2 + \"String_Node_Str\");\n final PreparedStatement selectStatement1 = new SelectStatementCreator(_connectorRepository, sourceConnectorId).createSelectStatement(tableName1, sourceTableMetaData, sourceConnection);\n selectStatement1.setFetchSize(numberOfCheckData);\n sourceConfiguration.beforeSelect(sourceConnection, sourceConnectorId, sourceTableMetaData);\n final ResultSet resultSet1 = selectStatement1.executeQuery();\n sourceConfiguration.afterSelect(sourceConnection, sourceConnectorId, sourceTableMetaData);\n final PreparedStatement selectStatement2 = new SelectStatementCreator(_connectorRepository, targetConnectorId).createMappedSelectStatement(sourceTableMetaData, tableName2, targetTableMetaData, targetConnection, sourceConnectorId);\n selectStatement2.setFetchSize(numberOfCheckData);\n targetConfiguration.beforeSelect(targetConnection, targetConnectorId, targetTableMetaData);\n final ResultSet resultSet2 = selectStatement2.executeQuery();\n targetConfiguration.afterSelect(targetConnection, targetConnectorId, targetTableMetaData);\n final List<ColumnMetaData> orderedSourceColumns = ColumnOrderHint.getSortedColumns(_connectorRepository, sourceConnectorId, sourceTableMetaData);\n final ColumnMapper columnMapper = _connectorRepository.getConnectorHint(targetConnectorId, ColumnMapper.class).getValue();\n int rowIndex = 1;\n try {\n while (resultSet1.next() && resultSet2.next() && rowIndex <= numberOfCheckData) {\n int targetColumnIndex = 1;\n for (int sourceColumnIndex = 1; sourceColumnIndex <= orderedSourceColumns.size(); sourceColumnIndex++) {\n final ColumnMetaData sourceColumn = orderedSourceColumns.get(sourceColumnIndex - 1);\n final ColumnMapperResult mapping = columnMapper.map(sourceColumn, targetTableMetaData);\n for (final ColumnMetaData columnMetaData2 : mapping.getColumns()) {\n final ColumnTypeMapping columnTypeMapping = commonColumnTypeResolver.getCommonColumnTypeMapping(sourceConnectorId, sourceColumn, targetConnectorId, columnMetaData2);\n final String columnName1 = sourceColumnNameMapper.mapColumnName(sourceColumn);\n final String columnName2 = targetColumnNameMapper.mapColumnName(columnMetaData2);\n if (columnTypeMapping == null) {\n throw new IncompatibleColumnsException(tableName1 + \"String_Node_Str\" + columnName1 + \"String_Node_Str\" + sourceColumn.getColumnTypeName() + \"String_Node_Str\" + columnName2 + \"String_Node_Str\" + columnMetaData2.getColumnTypeName());\n }\n final ColumnType sourceColumnType = columnTypeMapping.getSourceColumnType();\n Object data1 = sourceColumnType.getValue(resultSet1, columnIndex);\n data1 = columnTypeMapping.getColumnDataMapper().map(sourceColumn, columnMetaData2, data1);\n Object data2 = columnTypeMapping.getTargetColumnType().getValue(resultSet2, columnIndex);\n switch(sourceColumnType) {\n case CLASS_STRING:\n final ConnectorInfo connectionInfo1 = _connectorRepository.getConnectionInfo(sourceConnectorId);\n final ConnectorInfo connectionInfo2 = _connectorRepository.getConnectionInfo(targetConnectorId);\n if (DatabaseType.POSTGRESQL.equals(connectionInfo1.getDatabaseType()) || DatabaseType.POSTGRESQL.equals(connectionInfo2.getDatabaseType())) {\n data1 = trim((String) data1);\n data2 = trim((String) data2);\n }\n break;\n case CLASS_BLOB:\n final Blob blob1 = (Blob) data1;\n final Blob blob2 = (Blob) data2;\n data1 = createStringFromBlob(blob1);\n data2 = createStringFromBlob(blob2);\n break;\n }\n if ((data1 == null && data2 != null) || (data1 != null && data2 == null)) {\n throw createIncompatibleDataException(tableName1, rowIndex, sourceColumnType, columnName1, data1, data2);\n } else if (data1 != null && data2 != null && !data1.equals(data2)) {\n throw createIncompatibleDataException(tableName1, rowIndex, sourceColumnType, columnName1, data1, data2);\n }\n }\n }\n rowIndex++;\n }\n } finally {\n try {\n resultSet1.close();\n selectStatement1.close();\n resultSet2.close();\n selectStatement2.close();\n } catch (final Exception e) {\n }\n }\n LOG.info(\"String_Node_Str\" + tableName1 + \"String_Node_Str\" + tableName2 + \"String_Node_Str\");\n}\n"
"public long getRemainingQueueTime() {\n System.out.println(\"String_Node_Str\" + remainingQueueTime);\n return remainingQueueTime;\n}\n"
"public void selectToKeep(VodAddress from, List<VodDescriptor> descriptors) {\n if (from.equals(self.getAddress())) {\n return;\n }\n LinkedList<ViewEntry> entriesSentToThisPeer = new LinkedList<ViewEntry>();\n ViewEntry fromEntry = d2e.get(from.getId());\n if (fromEntry != null) {\n entriesSentToThisPeer.add(fromEntry);\n }\n for (ViewEntry cacheEntry : entries) {\n if (cacheEntry.wasSentTo(from)) {\n entriesSentToThisPeer.add(cacheEntry);\n }\n }\n for (VodDescriptor descriptor : descriptors) {\n if (self.getDescriptor().equals(descriptor)) {\n continue;\n }\n if (d2e.containsKey(descriptor.getVodAddress())) {\n ViewEntry entry = d2e.get(descriptor.getVodAddress());\n if (entry.getDescriptor().getAge() > descriptor.getAge()) {\n removeEntry(entry);\n addEntry(new ViewEntry(descriptor));\n continue;\n } else {\n continue;\n }\n }\n if (entries.size() < size) {\n addEntry(new ViewEntry(descriptor));\n continue;\n }\n ViewEntry sentEntry = entriesSentToThisPeer.poll();\n if (sentEntry != null) {\n removeEntry(sentEntry);\n addEntry(new ViewEntry(descriptor));\n }\n }\n}\n"
"public static void main(String[] args) {\n Env.init(args);\n if (Env.getArgCount() != 6) {\n usage();\n }\n String stream_hash = Env.getArg(0);\n String start_date = Env.getArg(1);\n String end_date = Env.getArg(2);\n String sources = Env.getArg(3);\n double sample = Double.parseDouble(Env.getArg(4));\n String name = Env.getArg(5);\n DateFormat df = new SimpleDateFormat(\"String_Node_Str\");\n Date start = null;\n Date end = null;\n try {\n start = df.parse(start_date);\n } catch (ParseException e2) {\n System.err.println(\"String_Node_Str\" + Env.getArg(1));\n System.exit(1);\n }\n try {\n end = df.parse(end_date);\n } catch (ParseException e2) {\n System.err.println(\"String_Node_Str\" + Env.getArg(1));\n System.exit(1);\n }\n try {\n Historic historic = Env.getUser().createHistoric(stream_hash, start, end, sources, sample, name);\n Env.displayHistoricDetails(historic);\n } catch (EInvalidData e) {\n System.err.println(\"String_Node_Str\" + e.getMessage());\n } catch (EAccessDenied e) {\n System.err.println(\"String_Node_Str\" + e.getMessage());\n }\n System.out.println(\"String_Node_Str\" + Env.getUser().getRateLimitRemaining());\n}\n"
"public static DatabaseQuery buildEJBQLDatabaseQuery(String queryName, String jpql, Session session, Enum lockMode, Map<String, Object> hints, ClassLoader classLoader) {\n boolean isCacheable = (queryName == null) && (hints == null);\n DatabaseQuery databaseQuery = null;\n if (isCacheable) {\n databaseQuery = (DatabaseQuery) session.getProject().getJPQLParseCache().get(jpql);\n }\n if ((databaseQuery == null) || (!databaseQuery.isPrepared())) {\n JPQLParseTree parseTree = JPQLParser.buildParseTree(queryName, jpql);\n parseTree.setClassLoader(classLoader);\n databaseQuery = parseTree.createDatabaseQuery();\n databaseQuery.setJPQLString(jpql);\n parseTree.populateQuery(databaseQuery, (AbstractSession) session);\n if (databaseQuery.isReadAllQuery()) {\n ReadAllQuery readAllQuery = (ReadAllQuery) databaseQuery;\n if (readAllQuery.hasJoining() && (readAllQuery.getDistinctState() == ReadAllQuery.DONT_USE_DISTINCT)) {\n readAllQuery.setShouldFilterDuplicates(false);\n }\n }\n parseTree.addParametersToQuery(databaseQuery);\n ((JPQLCallQueryMechanism) databaseQuery.getQueryMechanism()).getJPQLCall().setIsParsed(true);\n if (databaseQuery.isReadQuery()) {\n databaseQuery.cascadeByMapping();\n }\n if (lockMode != null) {\n if (databaseQuery.isObjectLevelReadQuery()) {\n if (((ObjectLevelReadQuery) databaseQuery).setLockModeType((LockModeType) lockMode, (AbstractSession) session)) {\n throw new PersistenceException(ExceptionLocalization.buildMessage(\"String_Node_Str\", null));\n }\n } else {\n throw new IllegalArgumentException(ExceptionLocalization.buildMessage(\"String_Node_Str\", (Object[]) null));\n }\n }\n databaseQuery = applyHints(hints, databaseQuery, classLoader);\n if (isCacheable) {\n databaseQuery.prepareCall(session, new DatabaseRecord());\n session.getProject().getJPQLParseCache().put(jpql, databaseQuery);\n }\n }\n return databaseQuery;\n}\n"
"public boolean isCustomTranslationActive(final String key, final String locale) {\n if (getTenantCustomTranslationsCache().containsKey(key) && getTenantCustomTranslationsCache().get(key).containsKey(locale)) {\n return getTenantCustomTranslationsCache().get(key).get(locale) != null;\n }\n return false;\n}\n"
"protected void printRatioTable(Coverage ratio, StringBuilder buf) {\n String percent = percentFormat.format(ratio.getPercentageFloat());\n String numerator = intFormat.format(ratio.getMissed());\n String denominator = intFormat.format(ratio.getCovered());\n int maximumCovered = 1;\n if (ratio.getType().equals(CoverageElement.Type.INSTRUCTION)) {\n maximumCovered = maxInstruction;\n } else if (ratio.getType().equals(CoverageElement.Type.BRANCH)) {\n maximumCovered = maxBranch;\n } else if (ratio.getType().equals(CoverageElement.Type.COMPLEXITY)) {\n maximumCovered = maxComplexity;\n } else if (ratio.getType().equals(CoverageElement.Type.LINE)) {\n maximumCovered = maxLine;\n } else if (ratio.getType().equals(CoverageElement.Type.METHOD)) {\n maximumCovered = maxMethod;\n } else if (ratio.getType().equals(CoverageElement.Type.CLASS)) {\n maximumCovered = maxClazz;\n }\n buf.append(\"String_Node_Str\").append(\"String_Node_Str\").append(percent).append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\").append(((float) ratio.getCovered() / (float) maximumCovered) * 100).append(\"String_Node_Str\").append(\"String_Node_Str\").append(((float) ratio.getMissed() / (float) maximumCovered) * 100).append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\" + numerator).append(\"String_Node_Str\").append(\"String_Node_Str\" + denominator).append(\"String_Node_Str\");\n}\n"
"private void checkSmartLockPasswordAndStartLogin() {\n if (!mSmartLockCompleted && mSmartLockHelper == null) {\n mSmartLockHelper = new SmartLockHelper(this);\n smartLockStarted = mSmartLockHelper.initSmartLockForPasswords();\n }\n if (!smartLockStarted) {\n startLogin();\n }\n}\n"
"public boolean shouldBackup() {\n return response != null && backupRecord != null;\n}\n"
"private void updateView(Object arg) {\n if (arg == null || arg instanceof Contact || arg instanceof String || arg instanceof GroupCommand) {\n mTitleLabel.setText(Utils.chatTitle(mValue));\n }\n if (arg == null || arg instanceof Contact || arg instanceof String) {\n Utils.fixedSetWebImageImage(mAvatar, AvatarLoader.load(mValue));\n }\n if (arg == null || arg instanceof KonMessage) {\n this.updateBG();\n mStatusLabel.setText(lastActivity(mValue, true));\n ChatListView.this.updateSorting();\n } else if (arg instanceof Boolean) {\n this.updateBG();\n } else if (arg instanceof Timer) {\n mStatusLabel.setText(lastActivity(mValue, true));\n }\n String stateText = \"String_Node_Str\";\n if (arg instanceof Member) {\n Member member = (Member) arg;\n switch(member.getState()) {\n case composing:\n stateText = Tr.tr(\"String_Node_Str\");\n break;\n }\n if (!stateText.isEmpty() && mValue.isGroupChat())\n stateText = member.getContact().getName() + \"String_Node_Str\" + stateText;\n }\n if (stateText.isEmpty()) {\n mChatStateLabel.setText(\"String_Node_Str\");\n mStatusLabel.setVisible(true);\n } else {\n mChatStateLabel.setText(stateText);\n mStatusLabel.setVisible(false);\n }\n}\n"
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n buf.readUnsignedByte();\n buf.readUnsignedShort();\n int index = buf.readUnsignedByte() >> 3;\n if (channel != null) {\n ChannelBuffer response = ChannelBuffers.copiedBuffer(\"String_Node_Str\" + index, Charset.defaultCharset());\n channel.write(response, remoteAddress);\n }\n String id = String.valueOf(buf.readUnsignedInt());\n if (!identify(id, channel, remoteAddress)) {\n return null;\n }\n List<Position> positions = new LinkedList<>();\n while (buf.readableBytes() > 2) {\n Position position = new Position();\n position.setProtocol(getProtocolName());\n position.setDeviceId(getDeviceId());\n int end = buf.readerIndex() + buf.readUnsignedByte();\n position.setTime(new Date(buf.readUnsignedInt() * 1000));\n int flags = buf.readUnsignedByte();\n position.set(Event.KEY_SATELLITES, BitUtil.range(flags, 2));\n position.setValid(BitUtil.range(flags, 0, 2) > 0);\n double lat = buf.readUnsignedMedium();\n lat = lat * -180 / 16777216 + 90;\n position.setLatitude(lat);\n double lon = buf.readUnsignedMedium();\n lon = lon * 360 / 16777216 - 180;\n position.setLongitude(lon);\n flags = buf.readUnsignedByte();\n position.set(Event.KEY_IGNITION, BitUtil.check(flags, 0));\n position.set(Event.KEY_GSM, BitUtil.range(flags, 2, 3));\n position.setCourse((BitUtil.range(flags, 5) * 45 + 180) % 360);\n int speed = buf.readUnsignedByte();\n if (speed < 250) {\n position.setSpeed(UnitsConverter.knotsFromKph(speed));\n }\n while (buf.readerIndex() < end) {\n int type = buf.readUnsignedByte();\n int length = buf.readUnsignedByte();\n if (length == 255) {\n length += buf.readUnsignedByte();\n }\n int n = 0;\n switch(type) {\n case 2:\n position.set(Event.KEY_ODOMETER, buf.readUnsignedMedium());\n break;\n case 5:\n position.set(Event.KEY_INPUT, buf.readUnsignedByte());\n break;\n case 6:\n n = buf.readUnsignedByte() >> 4;\n if (n < 2) {\n position.set(Event.PREFIX_ADC + n, readSwappedFloat(buf));\n } else {\n position.set(\"String_Node_Str\" + (n - 2), readSwappedFloat(buf));\n }\n break;\n case 7:\n int alarm = buf.readUnsignedByte();\n buf.readUnsignedByte();\n if (BitUtil.check(alarm, 5)) {\n position.set(Event.KEY_ALARM, BitUtil.range(alarm, 0, 4));\n }\n break;\n case 8:\n position.set(\"String_Node_Str\", buf.readUnsignedByte());\n break;\n case 9:\n position.set(\"String_Node_Str\", ChannelBufferTools.readHexString(buf, 16));\n break;\n case 10:\n position.set(\"String_Node_Str\", ChannelBufferTools.readHexString(buf, 16));\n break;\n case 24:\n Set<Integer> temps = new LinkedHashSet<>();\n int temp = buf.readUnsignedByte();\n for (int i = 3; i >= 0; i--) {\n n = (temp >> (2 * i)) & 0x03;\n if (!temps.contains(n)) {\n temps.add(n);\n }\n }\n for (int i : temps) {\n position.set(Event.PREFIX_TEMP + i, buf.readUnsignedByte());\n }\n break;\n case 28:\n position.set(\"String_Node_Str\", buf.readUnsignedShort());\n buf.readUnsignedByte();\n break;\n case 90:\n position.set(Event.KEY_POWER, readSwappedFloat(buf));\n break;\n case 101:\n position.set(Event.KEY_OBD_SPEED, buf.readUnsignedByte());\n break;\n case 102:\n position.set(Event.KEY_RPM, buf.readUnsignedByte() * 50);\n break;\n case 107:\n int fuel = buf.readUnsignedShort();\n int fuelFormat = fuel >> 14;\n if (fuelFormat == 1) {\n position.set(Event.KEY_FUEL, (fuel & 0x3fff) * 0.4 + \"String_Node_Str\");\n } else if (fuelFormat == 2) {\n position.set(Event.KEY_FUEL, (fuel & 0x3fff) * 0.5 + \"String_Node_Str\");\n } else if (fuelFormat == 3) {\n position.set(Event.KEY_FUEL, (fuel & 0x3fff) * -0.5 + \"String_Node_Str\");\n }\n break;\n case 108:\n position.set(Event.KEY_OBD_ODOMETER, buf.readUnsignedInt() * 5);\n break;\n case 150:\n position.set(\"String_Node_Str\", buf.readUnsignedByte());\n break;\n default:\n buf.skipBytes(length);\n break;\n }\n }\n positions.add(position);\n }\n return positions;\n}\n"
"public Response removeNetworkPartition(String networkPartitionId) throws RestAPIException {\n try {\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n StratosApiV41Utils.removeNetworkPartition(networkPartitionId, carbonContext.getTenantId());\n } catch (CloudControllerServiceNetworkPartitionNotExistsExceptionException e) {\n return Response.status(Response.Status.NOT_FOUND).entity(new ResponseMessageBean(ResponseMessageBean.ERROR, \"String_Node_Str\")).build();\n }\n return Response.ok().entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS, String.format(\"String_Node_Str\" + \"String_Node_Str\", networkPartitionId, carbonContext.getTenantDomain()))).build();\n}\n"
"public void testLoadComponents() {\n ComponentService componentService = ComponentsUtils.getComponentService();\n Set<ComponentDefinition> componentDefinitions = componentService.getAllComponents();\n Set<IComponent> coms = ComponentsFactoryProvider.getInstance().getComponents();\n List<IComponent> comList = new ArrayList<IComponent>();\n for (ComponentDefinition componentDefinition : componentDefinitions) {\n for (IComponent com : coms) {\n if (com.getName().equals(componentDefinition.getName())) {\n comList.add(com);\n break;\n }\n }\n }\n coms.removeAll(comList);\n ComponentsUtils.loadComponents(componentService);\n coms = ComponentsFactoryProvider.getInstance().getComponents();\n for (ComponentDefinition componentDefinition : componentDefinitions) {\n if (!componentDefinition.getName().equals(\"String_Node_Str\")) {\n continue;\n }\n for (IComponent com : coms) {\n if (com.getName().equals(componentDefinition.getName())) {\n assertFalse(\"String_Node_Str\" + componentDefinition.getName(), true);\n }\n }\n }\n}\n"
"public boolean emulateOP(long maxCycles) {\n int pc = readRegister(PC);\n long startCycles = cycles;\n if (cycles >= nextEventCycles) {\n executeEvents();\n }\n if (interruptsEnabled && servicedInterrupt == -1 && interruptMax >= 0) {\n pc = serviceInterrupt(pc);\n }\n if (cpuOff) {\n if (maxCycles >= 0 && maxCycles < nextEventCycles) {\n cycles = cycles < maxCycles ? maxCycles : cycles;\n } else {\n cycles = nextEventCycles;\n }\n return false;\n }\n if (breakPoints[pc] != null) {\n if (breakpointActive) {\n breakPoints[pc].cpuAction(CPUMonitor.BREAK, pc, 0);\n breakpointActive = false;\n return false;\n } else {\n breakpointActive = true;\n }\n }\n instruction = memory[pc] + (memory[pc + 1] << 8);\n op = instruction >> 12;\n int sp = 0;\n int sr = 0;\n boolean word = (instruction & 0x40) == 0;\n int dstRegister = 0;\n int dstAddress = -1;\n boolean dstRegMode = false;\n int dst = 0;\n boolean write = false;\n boolean updateStatus = true;\n pc += 2;\n writeRegister(PC, pc);\n switch(op) {\n case 1:\n {\n dstRegister = instruction & 0xf;\n int ad = (instruction >> 4) & 3;\n int nxtCarry = 0;\n op = instruction & 0xff80;\n if (op == PUSH) {\n sp = readRegister(SP) - 2;\n writeRegister(SP, sp);\n }\n if ((dstRegister == CG1 && ad != AM_INDEX) || dstRegister == CG2) {\n dstRegMode = true;\n cycles++;\n } else {\n switch(ad) {\n case AM_REG:\n dstRegMode = true;\n cycles++;\n break;\n case AM_INDEX:\n dstAddress = readRegisterCG(dstRegister, ad) + memory[pc] + (memory[pc + 1] << 8);\n pc += 2;\n writeRegister(PC, pc);\n cycles += 4;\n break;\n case AM_IND_REG:\n dstAddress = readRegister(dstRegister);\n cycles += 3;\n break;\n case AM_IND_AUTOINC:\n if (dstRegister == PC) {\n dstAddress = readRegister(PC);\n pc += 2;\n writeRegister(PC, pc);\n cycles += 5;\n } else {\n dstAddress = readRegister(dstRegister);\n writeRegister(dstRegister, dstAddress + (word ? 2 : 1));\n cycles += 3;\n }\n break;\n }\n }\n if (dstRegMode) {\n dst = readRegisterCG(dstRegister, ad);\n if (!word) {\n dst &= 0xff;\n }\n } else {\n dst = read(dstAddress, word);\n }\n switch(op) {\n case RRC:\n nxtCarry = (dst & 1) > 0 ? CARRY : 0;\n dst = dst >> 1;\n if (word) {\n dst |= (readRegister(SR) & CARRY) > 0 ? 0x8000 : 0;\n } else {\n dst |= (readRegister(SR) & CARRY) > 0 ? 0x80 : 0;\n }\n write = true;\n writeRegister(SR, (readRegister(SR) & ~CARRY) | nxtCarry);\n break;\n case SWPB:\n int tmp = dst;\n dst = ((tmp >> 8) & 0xff) + ((tmp << 8) & 0xff00);\n write = true;\n break;\n case RRA:\n nxtCarry = (dst & 1) > 0 ? CARRY : 0;\n if (word) {\n dst = (dst & 0x8000) | (dst >> 1);\n } else {\n dst = (dst & 0x80) | (dst >> 1);\n }\n write = true;\n writeRegister(SR, (readRegister(SR) & ~CARRY) | nxtCarry);\n break;\n case SXT:\n dst = (dst & 0x80) > 0 ? dst | 0xff00 : dst & 0x7f;\n write = true;\n break;\n case PUSH:\n if (word) {\n memory[sp] = dst & 0xff;\n memory[sp + 1] = dst >> 8;\n } else {\n memory[sp] = dst & 0xff;\n memory[sp + 1] = 0;\n }\n write = false;\n updateStatus = false;\n break;\n case CALL:\n sp = readRegister(SP) - 2;\n writeRegister(SP, sp);\n pc = readRegister(PC);\n memory[sp] = pc & 0xff;\n memory[sp + 1] = pc >> 8;\n writeRegister(PC, dst);\n write = false;\n updateStatus = false;\n break;\n case RETI:\n sp = readRegister(SP);\n writeRegister(SR, memory[sp++] + (memory[sp++] << 8));\n writeRegister(PC, memory[sp++] + (memory[sp++] << 8));\n writeRegister(SP, sp);\n write = false;\n updateStatus = false;\n if (debugInterrupts) {\n System.out.println(\"String_Node_Str\" + pc + \"String_Node_Str\" + reg[PC] + \"String_Node_Str\" + reg[SP]);\n }\n handlePendingInterrupts();\n break;\n default:\n System.out.println(\"String_Node_Str\" + instruction);\n }\n }\n break;\n case 2:\n case 3:\n int jmpOffset = instruction & 0x3ff;\n jmpOffset = (jmpOffset & 0x200) == 0 ? 2 * jmpOffset : -(2 * (0x200 - (jmpOffset & 0x1ff)));\n boolean jump = false;\n cycles += 2;\n sr = readRegister(SR);\n switch(instruction & 0xfc00) {\n case JNE:\n jump = (sr & ZERO) == 0;\n break;\n case JEQ:\n jump = (sr & ZERO) > 0;\n break;\n case JNC:\n jump = (sr & CARRY) == 0;\n break;\n case JC:\n jump = (sr & CARRY) > 0;\n break;\n case JN:\n jump = (sr & NEGATIVE) > 0;\n break;\n case JGE:\n jump = (sr & NEGATIVE) > 0 == (sr & OVERFLOW) > 0;\n break;\n case JL:\n jump = (sr & NEGATIVE) > 0 != (sr & OVERFLOW) > 0;\n break;\n case JMP:\n jump = true;\n break;\n default:\n System.out.println(\"String_Node_Str\" + Utils.binary16(instruction));\n }\n if (jump) {\n writeRegister(PC, pc + jmpOffset);\n }\n break;\n default:\n dstRegister = instruction & 0xf;\n int srcRegister = (instruction >> 8) & 0xf;\n int as = (instruction >> 4) & 3;\n dstRegMode = ((instruction >> 7) & 1) == 0;\n dstAddress = -1;\n int srcAddress = -1;\n int src = 0;\n if ((srcRegister == CG1 && as != AM_INDEX) || srcRegister == CG2) {\n src = CREG_VALUES[srcRegister - 2][as];\n if (!word) {\n src &= 0xff;\n }\n cycles += dstRegMode ? 1 : 4;\n } else {\n switch(as) {\n case AM_REG:\n src = readRegister(srcRegister);\n if (!word) {\n src &= 0xff;\n }\n cycles += dstRegMode ? 1 : 4;\n break;\n case AM_INDEX:\n srcAddress = readRegisterCG(srcRegister, as) + memory[pc] + (memory[pc + 1] << 8);\n incRegister(PC, 2);\n cycles += dstRegMode ? 3 : 6;\n break;\n case AM_IND_REG:\n srcAddress = readRegister(srcRegister);\n cycles += dstRegMode ? 2 : 5;\n break;\n case AM_IND_AUTOINC:\n if (srcRegister == PC) {\n srcAddress = readRegister(PC);\n pc += 2;\n incRegister(PC, 2);\n cycles += 3;\n } else {\n srcAddress = readRegister(srcRegister);\n incRegister(srcRegister, word ? 2 : 1);\n cycles += dstRegMode ? 2 : 5;\n }\n break;\n }\n }\n if (dstRegMode) {\n if (op != MOV) {\n dst = readRegister(dstRegister);\n if (!word) {\n dst &= 0xff;\n }\n }\n } else {\n pc = readRegister(PC);\n if (dstRegister == 2) {\n dstAddress = memory[pc] + (memory[pc + 1] << 8);\n } else {\n dstAddress = readRegister(dstRegister) + memory[pc] + (memory[pc + 1] << 8);\n }\n if (op != MOV)\n dst = read(dstAddress, word);\n pc += 2;\n incRegister(PC, 2);\n }\n if (srcAddress != -1) {\n srcAddress = srcAddress & 0xffff;\n src = read(srcAddress, word);\n }\n int tmp = 0;\n int tmpAdd = 0;\n switch(op) {\n case MOV:\n dst = src;\n write = true;\n updateStatus = false;\n break;\n case SUB:\n tmpAdd = 1;\n case SUBC:\n src = (src ^ 0xffff) & 0xffff;\n case ADDC:\n if (op == ADDC || op == SUBC)\n tmpAdd = ((readRegister(SR) & CARRY) > 0) ? 1 : 0;\n case ADD:\n sr = readRegister(SR);\n sr &= ~(OVERFLOW | CARRY);\n tmp = (src ^ dst) & (word ? 0x8000 : 0x80);\n dst = dst + src + tmpAdd;\n if (dst > (word ? 0xffff : 0xff)) {\n sr |= CARRY;\n }\n if (tmp == 0 && ((src ^ dst) & (word ? 0x8000 : 0x80)) != 0) {\n sr |= OVERFLOW;\n }\n writeRegister(SR, sr);\n write = true;\n break;\n case CMP:\n int b = word ? 0x8000 : 0x80;\n sr = readRegister(SR);\n sr = (sr & ~(CARRY | OVERFLOW)) | (dst >= src ? CARRY : 0);\n tmp = dst - src;\n if (((src ^ tmp) & b) == 0 && (((src ^ dst) & b) != 0)) {\n sr |= OVERFLOW;\n }\n writeRegister(SR, sr);\n dst = tmp;\n break;\n case DADD:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n dst = dst + src + ((readRegister(SR) & CARRY) > 0 ? 1 : 0);\n write = true;\n break;\n case BIT:\n dst = src & dst;\n sr = readRegister(SR);\n sr = sr & ~(CARRY | OVERFLOW);\n if (dst != 0) {\n sr |= CARRY;\n }\n writeRegister(SR, sr);\n break;\n case BIC:\n dst = (~src) & dst;\n write = true;\n updateStatus = false;\n break;\n case BIS:\n dst = src | dst;\n write = true;\n updateStatus = false;\n break;\n case XOR:\n dst = src ^ dst;\n write = true;\n break;\n case AND:\n dst = src & dst;\n write = true;\n break;\n default:\n System.out.println(\"String_Node_Str\" + op + \"String_Node_Str\" + pc);\n }\n }\n if (word) {\n dst &= 0xffff;\n } else {\n dst &= 0xff;\n }\n if (write) {\n if (dstRegMode) {\n if (!word)\n dst &= 0xff;\n writeRegister(dstRegister, dst);\n } else {\n dstAddress &= 0xffff;\n write(dstAddress, dst, word);\n }\n }\n if (updateStatus) {\n sr = readRegister(SR);\n sr = (sr & ~(ZERO | NEGATIVE)) | ((dst == 0) ? ZERO : 0) | (word ? ((dst & 0x8000) > 0 ? NEGATIVE : 0) : ((dst & 0x80) > 0 ? NEGATIVE : 0));\n writeRegister(SR, sr);\n }\n cpuCycles += cycles - startCycles;\n return true;\n}\n"
"public void testPreferences() throws Exception {\n Id.Namespace invalidNamespace = Id.Namespace.from(\"String_Node_Str\");\n namespaceClient.create(new NamespaceMeta.Builder().setId(invalidNamespace.getId()).build());\n Map<String, String> propMap = client.getInstancePreferences();\n Assert.assertEquals(ImmutableMap.<String, String>of(), propMap);\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setInstancePreferences(propMap);\n Assert.assertEquals(propMap, client.getInstancePreferences());\n File jarFile = createAppJarFile(FakeApp.class);\n appClient.deploy(jarFile);\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, propMap);\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, false));\n Assert.assertTrue(client.getNamespacePreferences(invalidNamespace, false).isEmpty());\n Assert.assertEquals(\"String_Node_Str\", client.getNamespacePreferences(invalidNamespace, true).get(\"String_Node_Str\"));\n client.deleteNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID);\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(ImmutableMap.<String, String>of(), client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, false));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, propMap);\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, false));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setApplicationPreferences(FakeApp.ID, propMap);\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, true));\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, false));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), propMap);\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), true));\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), false));\n client.deleteProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n Assert.assertTrue(client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), false).isEmpty());\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), true));\n client.deleteApplicationPreferences(FakeApp.ID);\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n Assert.assertTrue(client.getApplicationPreferences(FakeApp.ID, false).isEmpty());\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, true));\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), true));\n client.deleteNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID);\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n Assert.assertTrue(client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, false).isEmpty());\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, true));\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), true));\n client.deleteInstancePreferences();\n propMap.clear();\n Assert.assertEquals(propMap, client.getInstancePreferences());\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(propMap, client.getNamespacePreferences(Constants.DEFAULT_NAMESPACE_ID, true));\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, true));\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), true));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setApplicationPreferences(FakeApp.ID, propMap);\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, false));\n propMap.put(\"String_Node_Str\", \"String_Node_Str\");\n client.setProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), propMap);\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), false));\n appClient.delete(FakeApp.ID.getId());\n appClient.deploy(jarFile);\n propMap.clear();\n Assert.assertEquals(propMap, client.getApplicationPreferences(FakeApp.ID, false));\n Assert.assertEquals(propMap, client.getProgramPreferences(FakeApp.ID, \"String_Node_Str\", FakeApp.FLOWS.get(0), false));\n appClient.delete(FakeApp.ID.getId());\n namespaceClient.delete(invalidNamespace);\n}\n"
"public void invoke() throws Exception {\n while (!terminationRequested()) {\n notifyMonitor(IterationMonitoring.Event.SYNC_STARTING, currentIteration);\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + currentIteration + \"String_Node_Str\"));\n }\n readHeadEventChannel();\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + currentIteration + \"String_Node_Str\"));\n }\n if (checkForConvergence()) {\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + currentIteration + \"String_Node_Str\"));\n }\n requestTermination();\n sendToAllWorkers(new TerminationEvent());\n notifyMonitor(IterationMonitoring.Event.SYNC_FINISHED, currentIteration);\n } else {\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + currentIteration + \"String_Node_Str\"));\n }\n AllWorkersDoneEvent allWorkersDoneEvent = taskConfig.usesConvergenceCriterion() ? new AllWorkersDoneEvent(aggregator.getAggregate()) : new AllWorkersDoneEvent();\n if (taskConfig.usesConvergenceCriterion()) {\n aggregator.reset();\n }\n sendToAllWorkers(allWorkersDoneEvent);\n notifyMonitor(IterationMonitoring.Event.SYNC_FINISHED, currentIteration);\n currentIteration++;\n }\n }\n}\n"
"public void update() {\n if (requestedRestart) {\n for (GameObject g : objects) {\n g.endNoChildren();\n }\n dispose();\n init();\n }\n if (requestedEnd) {\n valid = false;\n dispose();\n if (Bdx.scenes.contains(this))\n Bdx.scenes.remove(this);\n } else if (!paused) {\n Bdx.profiler.start(\"String_Node_Str\");\n runObjectLogic();\n Bdx.profiler.stop(\"String_Node_Str\");\n updateVisuals();\n for (Camera cam : cameras) {\n if (cam == camera || cam.renderToTexture)\n cam.update();\n }\n Bdx.profiler.stop(\"String_Node_Str\");\n try {\n world.stepSimulation(Bdx.TICK_TIME * Bdx.physicsSpeed, 0);\n } catch (NullPointerException e) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n Bdx.profiler.stop(\"String_Node_Str\");\n updateChildBodies();\n Bdx.profiler.stop(\"String_Node_Str\");\n detectCollisions();\n Bdx.profiler.stop(\"String_Node_Str\");\n }\n}\n"
"public void run() {\n ColumnBindingInfo[] headers = null;\n List<?> dataList = null;\n try {\n headers = getDataServiceProvider().getPreviewHeadersInfo();\n if (dataProvider.isLivePreviewEnabled()) {\n dataList = getPreviewData();\n }\n final ColumnBindingInfo[] headerInfo = headers;\n final List<?> data = dataList;\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n updateColumnsTableViewer(headerInfo, data);\n }\n });\n } catch (Exception e) {\n final ColumnBindingInfo[] headerInfo = headers;\n final List<?> data = dataList;\n errorMsg = e.getMessage();\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n updateColumnsTableViewer(headerInfo, data);\n WizardBase.showException(msg);\n }\n });\n }\n}\n"
"public void testBoxedWorldGetSet() {\n facet.set(0, 1, 4, Integer.valueOf(8));\n Assert.assertEquals(Integer.valueOf(8), facet.get(0, 1, 4));\n}\n"
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n XSDIdentityConstraintDefinition icd = (XSDIdentityConstraintDefinition) iter.next();\n if (icd.getIdentityConstraintCategory().equals(XSDIdentityConstraintCategory.UNIQUE_LITERAL)) {\n isConcept = true;\n break;\n }\n }\n if (isConcept) {\n return ImageCache.getCreatedImage(EImage.CONCEPT.getPath());\n } else {\n return ImageCache.getCreatedImage(EImage.ELEMENT_ONLY.getPath());\n }\n }\n if (obj instanceof XSDParticle) {\n XSDParticle xsdParticle = (XSDParticle) obj;\n XSDTerm xsdTerm = xsdParticle.getTerm();\n if (xsdTerm instanceof XSDElementDeclaration) {\n if (Util.getKeyInfo(xsdTerm) != null && Util.getKeyInfo(xsdTerm).size() > 0)\n return ImageCache.getCreatedImage(EImage.PRIMARYKEY.getPath());\n XSDConcreteComponent xsdConcreteComponent = xsdParticle.getContainer();\n if (xsdConcreteComponent instanceof XSDModelGroup) {\n return ImageCache.getCreatedImage(EImage.SCHEMAELEMENT.getPath());\n }\n } else if (xsdTerm instanceof XSDModelGroup) {\n int type = ((XSDModelGroup) xsdTerm).getCompositor().getValue();\n switch(type) {\n case XSDCompositor.ALL:\n return ImageCache.getCreatedImage(EImage.COMPLEX_ALL.getPath());\n case XSDCompositor.CHOICE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_CHOICE.getPath());\n case XSDCompositor.SEQUENCE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_SEQUENCE.getPath());\n }\n } else if (xsdTerm instanceof XSDWildcard) {\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n } else {\n log.info(\"String_Node_Str\" + xsdTerm.getClass().getName());\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n }\n }\n if (obj instanceof XSDSimpleTypeDefinition) {\n return ImageCache.getCreatedImage(EImage.SIMPLETYPE.getPath());\n }\n if (obj instanceof XSDComplexTypeDefinition) {\n XSDComplexTypeDefinition ctd = (XSDComplexTypeDefinition) obj;\n XSDComplexTypeContent ctc = ctd.getContent();\n if (ctc instanceof XSDParticle) {\n if (((XSDParticle) ctc).getTerm() instanceof XSDModelGroup) {\n int type = ((XSDModelGroup) ((XSDParticle) ctc).getTerm()).getCompositor().getValue();\n switch(type) {\n case XSDCompositor.ALL:\n return ImageCache.getCreatedImage(EImage.COMPLEX_ALL.getPath());\n case XSDCompositor.CHOICE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_CHOICE.getPath());\n case XSDCompositor.SEQUENCE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_SEQUENCE.getPath());\n }\n }\n } else {\n System.out.println(\"String_Node_Str\" + ctc.getClass().getName());\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n }\n }\n if (obj instanceof XSDModelGroup) {\n int type = ((XSDModelGroup) obj).getCompositor().getValue();\n switch(type) {\n case XSDCompositor.ALL:\n return ImageCache.getCreatedImage(EImage.COMPLEX_ALL.getPath());\n case XSDCompositor.CHOICE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_CHOICE.getPath());\n case XSDCompositor.SEQUENCE:\n return ImageCache.getCreatedImage(EImage.COMPLEX_SEQUENCE.getPath());\n }\n }\n if (obj instanceof XSDFacet) {\n return ImageCache.getCreatedImage(EImage.FACET.getPath());\n }\n if (obj instanceof XSDIdentityConstraintDefinition) {\n XSDIdentityConstraintDefinition identity = (XSDIdentityConstraintDefinition) obj;\n if (identity.getIdentityConstraintCategory().equals(XSDIdentityConstraintCategory.UNIQUE_LITERAL))\n return ImageCache.getCreatedImage(EImage.KEYS.getPath());\n return ImageCache.getCreatedImage(EImage.PRIMARYKEY.getPath());\n }\n if (obj instanceof XSDXPathDefinition) {\n XSDXPathDefinition xpath = (XSDXPathDefinition) obj;\n if (xpath.getVariety().equals(XSDXPathVariety.FIELD_LITERAL))\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n }\n if (obj instanceof XSDAttributeGroupDefinition) {\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n }\n if (obj instanceof XSDAttributeUse) {\n XSDAttributeUse att = (XSDAttributeUse) obj;\n if (\"String_Node_Str\".equals(att.getAttributeDeclaration().getTargetNamespace())) {\n return ImageCache.getCreatedImage(EImage.ANNOTATION.getPath());\n }\n if (att.getUse().equals(XSDAttributeUseCategory.REQUIRED_LITERAL))\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n else\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n }\n if (obj instanceof XSDAnnotation) {\n return ImageCache.getCreatedImage(EImage.ANNOTATION.getPath());\n }\n if (obj instanceof Element) {\n try {\n Element e = (Element) obj;\n if (e.getLocalName().equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.DOCUMENTATION.getPath());\n } else if (e.getLocalName().equals(\"String_Node_Str\")) {\n String source = e.getAttribute(\"String_Node_Str\");\n if (source != null) {\n if (source.startsWith(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.LABEL.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.PRIMARYKEY.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.ROUTINE.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.ROUTINE.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.KEYINFO.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.KEYINFO.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SOURCESYSTEM.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.TARGETSYSTEM.getPath());\n } else if (source.startsWith(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.DOCUMENTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SECURITYANNOTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SECURITYANNOTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SECURITYANNOTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SECURITYANNOTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.BROWSE.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.SECURITYANNOTATION.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.ROUTINE.getPath());\n } else if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.WORKFLOW_PROCESS.getPath());\n }\n if (source.equals(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.FILTER_PS.getPath());\n } else if (source.startsWith(\"String_Node_Str\")) {\n return ImageCache.getCreatedImage(EImage.THIN_MIN_VIEW.getPath());\n } else {\n return ImageCache.getCreatedImage(EImage.DOCUMENTATION.getPath());\n }\n } else {\n return ImageCache.getCreatedImage(EImage.DOCUMENTATION.getPath());\n }\n } else {\n return ImageCache.getCreatedImage(EImage.DOCUMENTATION.getPath());\n }\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }\n return ImageCache.getCreatedImage(\"String_Node_Str\");\n}\n"
"protected int initColumns() {\n groupListCtr.addColumnDescriptor(new BusinessGroupNameColumnDescriptor(TABLE_ACTION_LAUNCH, getLocale()));\n groupListCtr.addColumnDescriptor(false, new DefaultColumnDescriptor(Cols.key.i18n(), Cols.key.ordinal(), null, getLocale()));\n if (groupModule.isManagedBusinessGroups()) {\n groupListCtr.addColumnDescriptor(false, new DefaultColumnDescriptor(Cols.externalId.i18n(), Cols.externalId.ordinal(), null, getLocale()));\n }\n groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor(Cols.description.i18n(), Cols.description.ordinal(), null, getLocale()));\n groupListCtr.addColumnDescriptor(new ResourcesColumnDescriptor(this, mainVC, getTranslator()));\n DefaultColumnDescriptor freePlacesCol = new DefaultColumnDescriptor(Cols.freePlaces.i18n(), Cols.freePlaces.ordinal(), TABLE_ACTION_LAUNCH, getLocale());\n freePlacesCol.setEscapeHtml(EscapeMode.none);\n groupListCtr.addColumnDescriptor(freePlacesCol);\n CustomCellRenderer acRenderer = new BGAccessControlledCellRenderer();\n groupListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor(Cols.accessTypes.i18n(), Cols.accessTypes.ordinal(), null, getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, acRenderer));\n groupListCtr.addColumnDescriptor(new RoleColumnDescriptor(getLocale()));\n groupListCtr.addColumnDescriptor(new AccessActionColumnDescriptor(Cols.accessControlLaunch.i18n(), Cols.accessControlLaunch.ordinal(), getTranslator()));\n return 8;\n}\n"
"public static List<Boolean> createBooleans(String response) {\n List<Boolean> returnedArray = new ArrayList<>();\n JSONArray tracksContainedArray = JSONArray.fromObject(response);\n for (Object tracksContainedString : tracksContainedArray) {\n if (String.valueOf(tracksContainedString).equals(\"String_Node_Str\")) {\n returnedArray.add(false);\n } else {\n returnedArray.add(true);\n }\n }\n return returnedArray;\n}\n"
"private static void setType(TRelationshipTemplate relationshipTemplate, Resource relationType) {\n String namespace = getXMLNamespace(relationType);\n QName type;\n try {\n type = new QName(namespace, relationType.getLocalName(), getNSPrefix(relationType));\n } catch (NoPrefixMappingFoundException e) {\n type = new QName(namespace, relationType.getLocalName());\n }\n relationshipTemplate.setType(type);\n}\n"
"public static boolean isMsfUpdateAvailable() {\n boolean exitForError = true;\n String branch = System.getSettings().getString(\"String_Node_Str\", \"String_Node_Str\");\n String localVersion = System.getLocalMsfVersion();\n try {\n String name = String.format(LOCAL_MSF_NAME, branch);\n String path = String.format(\"String_Node_Str\", System.getStoragePath(), name);\n File local = new File(path);\n synchronized (mMsfInfo) {\n if (local.exists() && local.isFile() && local.canRead()) {\n mMsfInfo.url = null;\n mMsfInfo.versionString = \"String_Node_Str\";\n } else if (mMsfInfo.url == null) {\n mMsfInfo.url = String.format(REMOTE_MSF_URL, branch);\n synchronized (mMsfRepoParser) {\n mMsfInfo.versionString = mMsfRepoParser.getLastCommitSha();\n }\n }\n mMsfInfo.name = name;\n mMsfInfo.path = path;\n mMsfInfo.outputDir = System.getMsfPath();\n mMsfInfo.executableOutputDir = ExecChecker.msf().getRoot();\n mMsfInfo.archiver = archiveAlgorithm.zip;\n mMsfInfo.dirToExtract = \"String_Node_Str\" + branch + \"String_Node_Str\";\n if (!mSettingReceiver.getFilter().contains(\"String_Node_Str\")) {\n mSettingReceiver.addFilter(\"String_Node_Str\");\n }\n if (!mSettingReceiver.getFilter().contains(\"String_Node_Str\")) {\n mSettingReceiver.addFilter(\"String_Node_Str\");\n }\n System.registerSettingListener(mSettingReceiver);\n exitForError = false;\n if (localVersion == null || !localVersion.equals(mMsfInfo.versionString))\n return true;\n }\n } catch (Exception e) {\n System.errorLogging(e);\n } finally {\n if (exitForError)\n mMsfInfo.reset();\n }\n return false;\n}\n"
"private void composeDoc(XhtmlDocument doc) throws IOException {\n for (XhtmlNode c : doc.getChildNodes()) writeNode(\"String_Node_Str\", c, null);\n}\n"
"protected void formatIntent(Intent intent) {\n mTempFile = getFileStreamPath(\"String_Node_Str\");\n mTempFile.getParentFile().mkdirs();\n int width = getWallpaperDesiredMinimumWidth();\n int height = getWallpaperDesiredMinimumHeight();\n intent.putExtra(\"String_Node_Str\", width);\n intent.putExtra(\"String_Node_Str\", height);\n intent.putExtra(\"String_Node_Str\", width);\n intent.putExtra(\"String_Node_Str\", height);\n intent.putExtra(\"String_Node_Str\", true);\n intent.putExtra(\"String_Node_Str\", true);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse(\"String_Node_Str\" + mTempFilePath));\n intent.putExtra(\"String_Node_Str\", Bitmap.CompressFormat.PNG.name());\n}\n"
"public void mouseClicked(MouseEvent e) {\n for (int i = 0; i < chart.getData().size(); i++) {\n int idx = chart.getIndexAt(i, e.getX(), e.getY());\n for (SelectionListener sl : selectionListeners) {\n sl.selected(i, idx);\n }\n }\n}\n"
"public void testDecompileWicketJarDirectory() throws DecompilationException, IOException {\n final Decompiler dec = this.getDecompiler();\n File archive = new File(\"String_Node_Str\");\n File outputFolder = new File(testTempDir, \"String_Node_Str\");\n File unzippedDir = new File(outputFolder, \"String_Node_Str\");\n ZipUtil.unzip(archive, unzippedDir);\n final DecompilationResult res = dec.decompileDirectory(unzippedDir, outputFolder);\n Assert.assertNotNull(\"String_Node_Str\", res);\n if (!res.getFailures().isEmpty()) {\n final StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\" + res.getFailures().size() + \"String_Node_Str\");\n for (final DecompilationFailure dex : res.getFailures()) {\n sb.append(\"String_Node_Str\").append(dex.getMessage());\n }\n if (!this.isResultValid(res))\n Assert.fail(sb.toString());\n else\n log.error(sb.toString());\n }\n log.info(\"String_Node_Str\", res.getDecompiledFiles().size(), res.getFailures().size());\n final File sampleFile = new File(outputFolder, \"String_Node_Str\");\n Assert.assertTrue(\"String_Node_Str\" + sampleFile.getAbsolutePath(), sampleFile.exists());\n}\n"
"static void refreshPreferences() {\n prefs = new XSharedPreferences(new File(Environment.getDataDirectory(), \"String_Node_Str\" + HookMethods.PACKAGE_NAME + \"String_Node_Str\" + HookMethods.PACKAGE_NAME + \"String_Node_Str\" + \"String_Node_Str\"));\n prefs.reload();\n prefs.makeWorldReadable();\n selectAll = prefs.getBoolean(\"String_Node_Str\", false);\n selectStory = prefs.getBoolean(\"String_Node_Str\", false);\n selectVenue = prefs.getBoolean(\"String_Node_Str\", false);\n hideBf = prefs.getBoolean(\"String_Node_Str\", false);\n hideRecent = prefs.getBoolean(\"String_Node_Str\", false);\n mTextTools = prefs.getBoolean(\"String_Node_Str\", false);\n mPaintTools = prefs.getBoolean(\"String_Node_Str\", mPaintTools);\n mTimerCounter = prefs.getBoolean(\"String_Node_Str\", true);\n mChatAutoSave = prefs.getBoolean(\"String_Node_Str\", true);\n mChatMediaSave = prefs.getBoolean(\"String_Node_Str\", true);\n mIntegration = prefs.getBoolean(\"String_Node_Str\", true);\n mCustomFilterBoolean = prefs.getBoolean(\"String_Node_Str\", mCustomFilterBoolean);\n mMultiFilterBoolean = prefs.getBoolean(\"String_Node_Str\", mMultiFilterBoolean);\n mCustomFilterLocation = getExternalPath() + \"String_Node_Str\";\n mCustomFilterType = prefs.getInt(\"String_Node_Str\", 0);\n mSpeed = prefs.getBoolean(\"String_Node_Str\", false);\n mWeather = prefs.getBoolean(\"String_Node_Str\", false);\n mLocation = prefs.getBoolean(\"String_Node_Str\", false);\n mStoryPreload = prefs.getBoolean(\"String_Node_Str\", false);\n mDiscoverSnap = prefs.getBoolean(\"String_Node_Str\", false);\n mDiscoverUI = prefs.getBoolean(\"String_Node_Str\", false);\n mCustomSticker = prefs.getBoolean(\"String_Node_Str\", false);\n mHideLive = prefs.getBoolean(\"String_Node_Str\", false);\n mHidePeople = prefs.getBoolean(\"String_Node_Str\", false);\n mReplay = prefs.getBoolean(\"String_Node_Str\", false);\n mStealth = prefs.getBoolean(\"String_Node_Str\", false);\n mTyping = prefs.getBoolean(\"String_Node_Str\", false);\n mUnlimGroups = prefs.getBoolean(\"String_Node_Str\", false);\n mForceNavbar = prefs.getInt(\"String_Node_Str\", 0);\n mConfirmationID = prefs.getString(\"String_Node_Str\", \"String_Node_Str\");\n debug = prefs.getBoolean(\"String_Node_Str\", false);\n mDeviceID = prefs.getString(\"String_Node_Str\", null);\n mLicense = prefs.getInt(mDeviceID, 0);\n mModeSave = prefs.getInt(\"String_Node_Str\", mModeSave);\n mModeStory = prefs.getInt(\"String_Node_Str\", mModeStory);\n mTimerMinimum = prefs.getInt(\"String_Node_Str\", mTimerMinimum);\n mToastEnabled = prefs.getBoolean(\"String_Node_Str\", mToastEnabled);\n mVibrationEnabled = prefs.getBoolean(\"String_Node_Str\", mVibrationEnabled);\n mToastLength = prefs.getInt(\"String_Node_Str\", mToastLength);\n mSavePath = prefs.getString(\"String_Node_Str\", mSavePath);\n mSaveSentSnaps = prefs.getBoolean(\"String_Node_Str\", mSaveSentSnaps);\n mSortByCategory = prefs.getBoolean(\"String_Node_Str\", mSortByCategory);\n mSortByUsername = prefs.getBoolean(\"String_Node_Str\", mSortByUsername);\n mDebugging = prefs.getBoolean(\"String_Node_Str\", mDebugging);\n mOverlays = prefs.getBoolean(\"String_Node_Str\", mOverlays);\n mTimerUnlimited = prefs.getBoolean(\"String_Node_Str\", mTimerUnlimited);\n mHideTimerStory = prefs.getBoolean(\"String_Node_Str\", mHideTimerStory);\n mLoopingVids = prefs.getBoolean(\"String_Node_Str\", mLoopingVids);\n mHideTimer = prefs.getBoolean(\"String_Node_Str\", mHideTimer);\n Common.ROTATION_MODE = Integer.parseInt(prefs.getString(\"String_Node_Str\", Integer.toString(Common.ROTATION_MODE)));\n Common.ADJUST_METHOD = Integer.parseInt(prefs.getString(\"String_Node_Str\", Integer.toString(Common.ADJUST_METHOD)));\n Common.CAPTION_UNLIMITED_VANILLA = prefs.getBoolean(\"String_Node_Str\", Common.CAPTION_UNLIMITED_VANILLA);\n Common.CAPTION_UNLIMITED_FAT = prefs.getBoolean(\"String_Node_Str\", Common.CAPTION_UNLIMITED_FAT);\n Common.DEBUGGING = prefs.getBoolean(\"String_Node_Str\", Common.DEBUGGING);\n Common.CHECK_SIZE = !prefs.getBoolean(\"String_Node_Str\", !Common.CHECK_SIZE);\n Common.TIMBER = prefs.getBoolean(\"String_Node_Str\", Common.TIMBER);\n shouldAddGhost = mSpeed || mTextTools || mLocation || mWeather;\n acceptedToU = prefs.getBoolean(\"String_Node_Str\", false);\n if (HookedLayouts.saveSnapButton != null)\n HookedLayouts.saveSnapButton.setVisibility(mModeSave == SAVE_BUTTON ? View.VISIBLE : View.INVISIBLE);\n if (HookedLayouts.saveStoryButton != null)\n HookedLayouts.saveStoryButton.setVisibility(mModeStory == SAVE_BUTTON ? View.VISIBLE : View.INVISIBLE);\n}\n"
"public void run() {\n try {\n queryLoop();\n } catch (Throwable t) {\n RouterService.error(t);\n }\n}\n"
"private static GenericTopLevel parseGenericTopLevel(SBOLDocument SBOLDoc, TopLevelDocument<QName> topLevel) {\n URI persistentIdentity = null;\n String version = null;\n String displayId = null;\n String name = null;\n String description = null;\n URI wasDerivedFrom = null;\n List<Annotation> annotations = new ArrayList<>();\n for (NamedProperty<QName> namedProperty : topLevel.getProperties()) {\n if (namedProperty.getName().equals(Sbol2Terms.Identified.persistentIdentity)) {\n persistentIdentity = URI.create(((Literal<QName>) namedProperty.getValue()).getValue().toString());\n } else if (namedProperty.getName().equals(Sbol2Terms.Identified.version)) {\n version = ((Literal<QName>) namedProperty.getValue()).getValue().toString();\n } else if (namedProperty.getName().equals(Sbol2Terms.Documented.displayId)) {\n displayId = ((Literal<QName>) namedProperty.getValue()).getValue().toString();\n } else if (namedProperty.getName().equals(Sbol2Terms.Documented.title)) {\n name = ((Literal<QName>) namedProperty.getValue()).getValue().toString();\n } else if (namedProperty.getName().equals(Sbol2Terms.Documented.description)) {\n description = ((Literal<QName>) namedProperty.getValue()).getValue().toString();\n } else if (namedProperty.getName().equals(Sbol2Terms.Identified.wasDerivedFrom)) {\n wasDerivedFrom = URI.create(((Literal<QName>) namedProperty.getValue()).getValue().toString());\n } else {\n annotations.add(new Annotation(namedProperty));\n }\n }\n GenericTopLevel t = SBOLDoc.createGenericTopLevel(topLevel.getIdentity(), topLevel.getType());\n if (persistentIdentity != null)\n t.setPersistentIdentity(persistentIdentity);\n if (version != null)\n t.setVersion(version);\n if (displayId != null)\n t.setDisplayId(displayId);\n if (name != null)\n t.setName(name);\n if (description != null)\n t.setDescription(description);\n if (wasDerivedFrom != null)\n t.setWasDerivedFrom(wasDerivedFrom);\n if (!annotations.isEmpty())\n t.setAnnotations(annotations);\n return t;\n}\n"
"private void prepareEmfTreeFromMdm(MDMConnection connection, String selectedConcept) {\n if (connection == null || selectedConcept == null) {\n return;\n }\n EList<Concept> schemas = connection.getSchemas();\n Concept selected = null;\n for (int i = 0; i < schemas.size(); i++) {\n Concept concept = schemas.get(i);\n if (selectedConcept.equals(concept.getLabel())) {\n selected = concept;\n break;\n }\n }\n if (selected != null) {\n if (!MdmConceptType.OUTPUT.equals(selected.getConceptType())) {\n IMDMProviderService service = (IMDMProviderService) GlobalServiceRegister.getDefault().getService(IMDMProviderService.class);\n if (service != null) {\n boolean initConcepts = service.initConcepts(connection);\n if (initConcepts) {\n String prefix = service.getXPathPrefixValue(selected);\n String loopExpression = selected.getLoopExpression();\n EList<ConceptTarget> conceptTargets = selected.getConceptTargets();\n if (conceptTargets == null || loopExpression == null) {\n return;\n }\n this.schemaTargets = conceptTargets;\n List<FOXTreeNode> list = TreeUtil.getFoxTreeNodesForXmlMap(getTempTemplateXSDFile().getAbsolutePath(), loopExpression);\n TreeNode pNode = parentNode;\n if (MdmConceptType.RECEIVE.equals(selected.getConceptType())) {\n if (prefix != null && !\"String_Node_Str\".equals(prefix)) {\n String[] preValues = prefix.split(XmlMapUtil.XPATH_SEPARATOR);\n for (String value : preValues) {\n if (!\"String_Node_Str\".equals(value)) {\n TreeNode createTreeNode = createModel();\n createTreeNode.setName(value);\n createTreeNode.setNodeType(NodeType.ELEMENT);\n createTreeNode.setType(XmlMapUtil.DEFAULT_DATA_TYPE);\n createTreeNode.setXpath(XmlMapUtil.getXPath(pNode.getXpath(), createTreeNode.getName(), createTreeNode.getNodeType()));\n pNode.getChildren().add(createTreeNode);\n pNode = createTreeNode;\n }\n }\n loopExpression = prefix + loopExpression;\n }\n }\n prepareEmfTree(list, pNode, prefix, loopExpression);\n }\n }\n } else {\n prepareModelFromOutput(selected.getRoot(), selected.getLoop(), selected.getGroup());\n }\n }\n}\n"
"protected HL7TreeNode addElement(HL7TreeNode current, String currentPath, String newPath, String defaultValue) {\n String name = newPath.substring(newPath.lastIndexOf(\"String_Node_Str\") + 1);\n String parentPath = \"String_Node_Str\";\n if (newPath.contains(\"String_Node_Str\")) {\n parentPath = newPath.substring(0, newPath.lastIndexOf(\"String_Node_Str\"));\n }\n HL7TreeNode temp = new Element(name, defaultValue);\n if (current == null) {\n return temp;\n }\n if (currentPath.equals(parentPath)) {\n current.addChild(temp);\n } else {\n String[] nods = currentPath.split(\"String_Node_Str\");\n String[] newNods = parentPath.split(\"String_Node_Str\");\n int parentLevel = 0;\n int checkLength = nods.length < newNods.length ? nods.length : newNods.length;\n for (int i = 1; i < checkLength; i++) {\n if (nods[i].equals(newNods[i])) {\n parentLevel = i;\n }\n }\n mapNodes.put(newPath, temp);\n String parentPath = newPath.substring(0, newPath.lastIndexOf(\"String_Node_Str\"));\n HL7TreeNode parentNode = mapNodes.get(parentPath);\n if (parentNode != null) {\n parentNode.addChild(temp);\n } else {\n ExceptionHandler.log(\"String_Node_Str\" + parentPath);\n }\n if (parent != null)\n parent.addChild(temp);\n }\n return temp;\n}\n"
"private int rotateMeta(Block block, int meta, SpaceProjectorSetup.BlockInformation information, int rotMode) {\n Item item = Item.getItemFromBlock(block);\n if (item != null && item.getHasSubtypes()) {\n return meta;\n }\n switch(information.getRotateInfo()) {\n case SpaceProjectorSetup.BlockInformation.ROTATE_mfff:\n switch(rotMode) {\n case 0:\n return meta;\n case 1:\n {\n ForgeDirection dir = ForgeDirection.values()[meta & 7];\n return (meta & 8) | dir.getRotation(ForgeDirection.UP).ordinal();\n }\n case 2:\n {\n ForgeDirection dir = ForgeDirection.values()[meta & 7];\n return (meta & 8) | dir.getOpposite().ordinal();\n }\n case 3:\n {\n ForgeDirection dir = ForgeDirection.values()[meta & 7];\n return (meta & 8) | dir.getOpposite().getRotation(ForgeDirection.UP).ordinal();\n }\n }\n break;\n case SpaceProjectorSetup.BlockInformation.ROTATE_mmmm:\n return meta;\n }\n return meta;\n}\n"
"void setupUI() {\n setupTermfilterSpinners();\n JPanel termfilterPanel = new JPanel();\n termfilterPanel.setLayout(new BoxLayout(termfilterPanel, BoxLayout.X_AXIS));\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tpSpinner);\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tcSpinner);\n termlistInfo = new JLabel();\n docdrivenTermTable = new TermTable(new TermTableModel());\n docdrivenTermTable.model.terms = () -> docdrivenTerms;\n docdrivenTermTable.model.comparison = () -> docvarCompare;\n docdrivenTermTable.setupTermTable();\n addTermdriverAction(docdrivenTermTable);\n docdrivenTermTable.doubleClickListener = this::pinTerm;\n termdrivenTermTable = new TermTable(new TermTableModel());\n termdrivenTermTable.model.terms = () -> termdrivenTerms;\n termdrivenTermTable.model.comparison = () -> termtermBoolqueryCompare;\n termdrivenTermTable.setupTermTable();\n termdrivenTermTable.doubleClickListener = this::pinTerm;\n pinnedTermTable = new TermTable(new TermTableModel());\n pinnedTermTable.model.terms = () -> pinnedTerms;\n pinnedTermTable.model.comparison = () -> docvarCompare;\n pinnedTermTable.setupTermTable();\n addTermdriverAction(pinnedTermTable);\n pinnedTermTable.doubleClickListener = this::unpinTerm;\n JPanel pinnedWrapper = new JPanel(new BorderLayout());\n pinnedWrapper.add(pinnedTermTable.top(), BorderLayout.CENTER);\n JPanel docdrivenWrapper = new JPanel(new BorderLayout());\n JPanel topstuff = new JPanel(new FlowLayout(FlowLayout.LEFT));\n topstuff.add(termlistInfo);\n docdrivenWrapper.add(topstuff, BorderLayout.NORTH);\n docdrivenWrapper.add(docdrivenTermTable.top(), BorderLayout.CENTER);\n JPanel termdrivenWrapper = new JPanel(new BorderLayout());\n termtermDescription = new JLabel(\"String_Node_Str\");\n termdrivenWrapper.add(termtermDescription, BorderLayout.NORTH);\n termdrivenWrapper.add(termdrivenTermTable.top(), BorderLayout.CENTER);\n mainqueryInfo = new JLabel();\n subqueryInfo = new JLabel();\n JPanel queryInfo = new JPanel() {\n {\n add(mainqueryInfo);\n add(subqueryInfo);\n }\n };\n brushPanel = new BrushPanel(this, corpus.allDocs());\n brushPanel.yLevels = corpus.yLevels;\n brushPanel.setOpaque(true);\n brushPanel.setBackground(Color.white);\n brushPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n brushPanel.setDefaultXYLim(corpus);\n textPanel = new TextPanel();\n DockController controller = new DockController();\n SplitDockStation station = new SplitDockStation();\n controller.add(station);\n SplitDockGrid grid = new SplitDockGrid();\n grid.addDockable(0, 0, 1, 10, new DefaultDockable(\"String_Node_Str\") {\n {\n add(pinnedWrapper);\n }\n });\n grid.addDockable(0, 10, 1, 5, new DefaultDockable(\"String_Node_Str\") {\n {\n add(termfilterPanel);\n }\n });\n grid.addDockable(0, 15, 1, 20, new DefaultDockable(\"String_Node_Str\") {\n {\n add(docdrivenWrapper);\n }\n });\n grid.addDockable(0, 35, 1, 20, new DefaultDockable(\"String_Node_Str\") {\n {\n add(termdrivenWrapper);\n }\n });\n grid.addDockable(1, 0, 1, 5, new DefaultDockable(\"String_Node_Str\") {\n {\n add(queryInfo);\n }\n });\n grid.addDockable(x, 10, rx, 15, new DefaultDockable(\"String_Node_Str\") {\n\n {\n add(brushPanel);\n }\n });\n grid.addDockable(1, 25, 1, 20, new DefaultDockable(\"String_Node_Str\") {\n {\n add(textPanel.top());\n }\n });\n station.dropTree(grid.toTree());\n mainFrame = new JFrame(\"String_Node_Str\");\n mainFrame.add(station.getComponent());\n mainFrame.setBounds(20, 20, 800, 600);\n mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n ToolTipManager.sharedInstance().setDismissDelay((int) 1e6);\n}\n"
"public MenuTester call() throws Exception {\n MenuTester menuTester = null;\n Iterator<Window> iter = WindowsUtil.getWindowIterator();\n long timeout = TimeoutConstants.SERVER_TIMEOUT_WAIT_FOR_POPUP;\n long done = System.currentTimeMillis() + timeout;\n long now;\n do {\n if (!iter.hasNext()) {\n iter = Window.impl_getWindows();\n }\n Window w = iter.next();\n if (w instanceof ContextMenu && ((ContextMenu) w).getOwnerNode().equals(getRealComponent())) {\n menuTester = new MenuTester();\n menuTester.setComponent(w);\n break;\n }\n now = System.currentTimeMillis();\n timeout = done - now;\n } while (timeout > 0);\n return menuTester;\n}\n"
"public void startDependencyOnTermination(String instanceId) throws TopologyInConsistentException, MonitorNotFoundException, PolicyValidationException, PartitionValidationException {\n List<ApplicationChildContext> applicationContexts = this.startupDependencyTree.getStarAbleDependenciesByTermination(this, instanceId);\n for (ApplicationChildContext context : applicationContexts) {\n if (context instanceof GroupChildContext) {\n GroupMonitor groupMonitor = (GroupMonitor) this.aliasToActiveMonitorsMap.get(context.getId());\n groupMonitor.createInstanceOnDemand(instanceId);\n } else if (context instanceof ClusterChildContext) {\n VMClusterMonitor clusterMonitor = (VMClusterMonitor) this.aliasToActiveMonitorsMap.get(context.getId());\n clusterMonitor.createClusterInstanceOnScaleUp(instanceId);\n }\n }\n}\n"