content
stringlengths
40
137k
"protected void downloadDesFile() throws IOException {\n String filename = getFilename(\"String_Node_Str\");\n URL url = new URL(scopDownloadURL + filename);\n downloadFileFromRemote(url, new File(getDesFilename()));\n}\n"
"public Animator createAnimator(ViewGroup sceneRoot, TransitionValues startValues, TransitionValues endValues) {\n if (startValues == null || endValues == null) {\n return null;\n }\n final View view = endValues.view;\n Drawable startBackground = (Drawable) startValues.values.get(PROPNAME_BACKGROUND);\n Drawable endBackground = (Drawable) endValues.values.get(PROPNAME_BACKGROUND);\n if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) {\n ColorDrawable startColor = (ColorDrawable) startBackground;\n ColorDrawable endColor = (ColorDrawable) endBackground;\n if (startColor.getColor() != endColor.getColor()) {\n endColor.setColor(startColor.getColor());\n return ObjectAnimator.ofObject(endColor, COLORDRAWABLE_COLOR, new ArgbEvaluator(), startColor.getColor(), finalColor);\n }\n }\n if (view instanceof TextView) {\n TextView textView = (TextView) view;\n int start = (Integer) startValues.values.get(PROPNAME_TEXT_COLOR);\n int end = (Integer) endValues.values.get(PROPNAME_TEXT_COLOR);\n if (start != end) {\n textView.setTextColor(end);\n return ObjectAnimator.ofObject(textView, TEXTVIEW_TEXT_COLOR, new ArgbEvaluator(), start, end);\n }\n }\n return null;\n}\n"
"public byte[] encodeBE() {\n if (isLessThanUnsigned(value, 253)) {\n return new byte[] { (byte) value };\n } else if (Utils.isLessThanUnsigned(value, 65536)) {\n return new byte[] { (byte) 253, (byte) (value), (byte) (value >> 8) };\n } else if (Utils.isLessThanUnsigned(value, 4294967295L)) {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) 254;\n Utils.uint32ToByteArrayLE(value, bytes, 1);\n return bytes;\n } else {\n byte[] bytes = new byte[9];\n bytes[0] = (byte) 255;\n Utils.uint32ToByteArrayLE(value & 0xFFFFFFFF, bytes, 1);\n Utils.uint32ToByteArrayLE(value >> 32, bytes, 5);\n return bytes;\n }\n}\n"
"public static Drawable getBorderDrawable(LayoutParser parser, Context context) {\n if (!parser.isObject() || parser.isNull()) {\n return null;\n }\n float cornerRadius = 0;\n int borderWidth = 0, borderColor = Color.TRANSPARENT, bgColor = Color.TRANSPARENT;\n parser = parser.peek();\n String value;\n if (parser.isString(ATTRIBUTE_BG_COLOR)) {\n value = parser.getString(ATTRIBUTE_BG_COLOR);\n if (value != null && !value.equals(\"String_Node_Str\")) {\n bgColor = ParseHelper.parseColor(value);\n }\n }\n value = parser.getString(ATTRIBUTE_BORDER_COLOR);\n if (value != null) {\n borderColor = ParseHelper.parseColor(value);\n }\n value = parser.getString(ATTRIBUTE_BORDER_RADIUS);\n if (value != null) {\n cornerRadius = ParseHelper.parseDimension(value, context);\n }\n value = parser.getString(ATTRIBUTE_BORDER_WIDTH);\n if (value != null) {\n borderWidth = (int) ParseHelper.parseDimension(value, context);\n }\n GradientDrawable border = new GradientDrawable();\n border.setCornerRadius(cornerRadius);\n border.setShape(GradientDrawable.RECTANGLE);\n border.setStroke(borderWidth, borderColor);\n border.setColor(bgColor);\n return border;\n}\n"
"public void visit(NodeTraversal t, Node n, Node parent) {\n switch(n.getType()) {\n case Token.LABEL:\n tryMinimizeExits(n.getLastChild(), Token.BREAK, n.getFirstChild().getString());\n break;\n case Token.FOR:\n case Token.WHILE:\n tryMinimizeExits(NodeUtil.getLoopCodeBlock(n), Token.CONTINUE, null);\n break;\n case Token.DO:\n tryMinimizeExits(NodeUtil.getLoopCodeBlock(n), Token.CONTINUE, null);\n Node cond = NodeUtil.getConditionExpression(n);\n if (NodeUtil.getPureBooleanValue(cond) == TernaryValue.FALSE) {\n tryMinimizeExits(n.getFirstChild(), Token.BREAK, null);\n }\n break;\n case Token.FUNCTION:\n tryMinimizeExits(n.getLastChild(), Token.RETURN, null);\n break;\n }\n}\n"
"public void start(CoprocessorEnvironment env) {\n if (env instanceof RegionCoprocessorEnvironment) {\n HTableDescriptor tableDesc = ((RegionCoprocessorEnvironment) env).getRegion().getTableDesc();\n String hTableName = tableDesc.getNameAsString();\n String prefixBytes = tableDesc.getValue(HBaseQueueAdmin.PROPERTY_PREFIX_BYTES);\n try {\n this.prefixBytes = prefixBytes == null ? SaltedHBaseQueueStrategy.SALT_BYTES : Integer.parseInt(prefixBytes);\n } catch (NumberFormatException e) {\n LOG.error(\"String_Node_Str\" + HBaseQueueAdmin.PROPERTY_PREFIX_BYTES + \"String_Node_Str\" + \"String_Node_Str\" + SaltedHBaseQueueStrategy.SALT_BYTES, e);\n this.prefixBytes = SaltedHBaseQueueStrategy.SALT_BYTES;\n }\n HTable10NameConverter nameConverter = new HTable10NameConverter();\n namespaceId = nameConverter.from(tableDesc).getNamespace().getId();\n appName = HBaseQueueAdmin.getApplicationName(hTableName);\n flowName = HBaseQueueAdmin.getFlowName(hTableName);\n Configuration conf = env.getConfiguration();\n String hbaseNamespacePrefix = nameConverter.getNamespacePrefix(tableDesc);\n TableId queueConfigTableId = HBaseQueueAdmin.getConfigTableId(namespaceId);\n final String sysConfigTablePrefix = nameConverter.getSysConfigTablePrefix(tableDesc);\n txStateCache = new DefaultTransactionStateCacheSupplier(sysConfigTablePrefix, conf).get();\n txSnapshotSupplier = new Supplier<TransactionVisibilityState>() {\n\n public TransactionSnapshot get() {\n return txStateCache.getLatestState();\n }\n };\n configTableName = nameConverter.toTableName(hbaseNamespacePrefix, queueConfigTableId);\n cConfReader = new CConfigurationReader(conf, sysConfigTablePrefix);\n configCache = createConfigCache(env);\n }\n}\n"
"public IStyle getComputedStyle() {\n if (computedStyle == null) {\n if (inlineStyle == null || inlineStyle.isEmpty()) {\n String cacheKey = styleClass;\n ITableContent table = ((IRowContent) parent).getTable();\n if (column >= 0 && column < table.getColumnCount()) {\n IColumn tblColumn = table.getColumn(column);\n if (tblColumn != null) {\n String columnStyleClass = tblColumn.getStyleClass();\n if (columnStyleClass != null) {\n cacheKey = cacheKey + columnStyleClass;\n }\n }\n }\n ComputedStyle pcs = (ComputedStyle) ((IContent) parent).getComputedStyle();\n ComputedStyle cs = pcs.getCachedStyle(cacheKey);\n if (cs == null) {\n cs = new CellComputedStyle(this);\n pcs.addCachedStyle(styleClass, cs);\n }\n computedStyle = cs;\n } else {\n computedStyle = new CellComputedStyle(this);\n }\n }\n return computedStyle;\n}\n"
"private void showIdeaDialog() {\n mDetailedIdeaDialog = new LovelyCustomDialog(context, mDarkTheme ? R.style.EditTextTintThemeDark : R.style.EditTextTintTheme).setView(R.layout.detailed_idea_form).setTopColor(mPrimaryColor).setIcon(R.drawable.ic_bulb).setListener(R.id.editButton, new View.OnClickListener() {\n\n public void onClick(View v) {\n editIdeaDialog();\n mDetailedIdeaDialog.dismiss();\n }\n }).setListener(R.id.deleteButton, new View.OnClickListener() {\n public void onClick(View v) {\n if (mTabNumber == 4) {\n mRecyclerView.muteCellToDelete();\n } else {\n mRecyclerView.sendCellToTab(-1);\n }\n mDetailedIdeaDialog.dismiss();\n }\n }).setListener(R.id.okButton, new View.OnClickListener() {\n public void onClick(View v) {\n mDetailedIdeaDialog.dismiss();\n }\n }).configureView(new LovelyCustomDialog.ViewConfigurator() {\n public void configureView(View v) {\n mIdeaField = (TextView) v.findViewById(R.id.editText);\n mNoteField = (TextView) v.findViewById(R.id.editNote);\n mIdeaField.append(mDbHelper.getTextById(mIdRecycler));\n mNoteField.setText(mDbHelper.getNoteById(mIdRecycler));\n AppCompatRadioButton radio = (AppCompatRadioButton) v.findViewById(R.id.priorityRadioButton);\n radio.setText(String.format(Locale.getDefault(), \"String_Node_Str\", mPriority));\n radio.setHighlightColor(getPriorityColor());\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n radio.setButtonTintList(ColorStateList.valueOf(getPriorityColor()));\n }\n }\n }).show();\n}\n"
"protected void finalize() throws Throwable {\n try {\n if (mCloseGuard != null) {\n mCloseGuard.warnIfOpen();\n }\n release();\n } finally {\n super.finalize();\n }\n}\n"
"void handleProviderAdded(ProtocolProviderService pps) {\n pps.addRegistrationStateChangeListener(this);\n if (pps.isRegistered()) {\n handleProviderRegistered(pps, false);\n }\n}\n"
"protected List<ICompletionProposal> sortProposals(List<ICompletionProposal> proposals, IProgressMonitor monitor, ContentAssistInvocationContext context) {\n proposals = super.sortProposals(proposals, monitor, context);\n Map<String, ICompletionProposal> completionProposalMap = new HashMap<String, ICompletionProposal>();\n boolean globalFieldsDone = false;\n for (Object o : newProposals) {\n ICompletionProposal proposal = (ICompletionProposal) o;\n String longna = proposal.getDisplayString();\n int indexna = longna.indexOf(\"String_Node_Str\");\n if (indexna > 0) {\n if (longna.substring(indexna + 2, longna.length()).equals(TalendJavaSourceViewer.getClassName())) {\n toRemove.add(proposal);\n }\n }\n if (proposal instanceof JavaCompletionProposal) {\n JavaCompletionProposal javaProposal = ((JavaCompletionProposal) proposal);\n if (javaProposal.getJavaElement() instanceof SourceField) {\n globalFieldsDone = true;\n }\n if (javaProposal.getJavaElement() == null && globalFieldsDone) {\n toRemove.add(proposal);\n }\n }\n if (proposal.getDisplayString().startsWith(TalendJavaSourceViewer.VIEWER_CLASS_NAME)) {\n toRemove.add(proposal);\n }\n }\n newProposals.removeAll(toRemove);\n Collections.sort(newProposals, new Comparator<ICompletionProposal>() {\n public int compare(ICompletionProposal arg0, ICompletionProposal arg1) {\n if (arg1 instanceof TalendCompletionProposal && (!(arg0 instanceof TalendCompletionProposal))) {\n return 1;\n } else if (arg1 instanceof TalendCompletionProposal && (arg0 instanceof TalendCompletionProposal)) {\n TalendCompletionProposal a = (TalendCompletionProposal) arg0;\n TalendCompletionProposal b = (TalendCompletionProposal) arg1;\n return a.getType().compareTo(b.getType());\n }\n return 0;\n }\n });\n return newProposals;\n}\n"
"private Text createHyperLink(Composite sectionClient, String lbl) {\n FormToolkit toolkit = new FormToolkit(sectionClient.getDisplay());\n Hyperlink link = toolkit.createHyperlink(sectionClient, \"String_Node_Str\", SWT.WRAP);\n link.setBackground(sectionClient.getBackground());\n link.addHyperlinkListener(new HyperlinkAdapter() {\n public void linkActivated(HyperlinkEvent e) {\n Program.launch(\"String_Node_Str\");\n }\n });\n link.setText(\"String_Node_Str\");\n GridDataFactory.fillDefaults().grab(false, false).span(1, 0).applyTo(link);\n final Label outputLocationTxt = new Label(sectionClient, SWT.NONE);\n GridDataFactory.fillDefaults().grab(true, false).span(2, 0).applyTo(outputLocationTxt);\n outputLocationTxt.setEditable(false);\n outputLocationTxt.setEnabled(false);\n outputLocationTxt.setMessage(\"String_Node_Str\");\n return outputLocationTxt;\n}\n"
"public boolean unifyWithSubtype(JSType other, List<String> typeParameters, Multimap<String, JSType> typeMultimap) {\n Preconditions.checkNotNull(other);\n if (this.isUnknown() || this.isTop()) {\n return true;\n } else if (getMask() == TYPEVAR_MASK && typeParameters.contains(getTypeVar())) {\n updateTypemap(typeMultimap, getTypeVar(), other);\n return true;\n } else if (other.isUnknown()) {\n return true;\n } else if (other.isTop()) {\n return false;\n }\n Set<EnumType> ununifiedEnums = ImmutableSet.of();\n if (!other.getEnums().isEmpty()) {\n ununifiedEnums = new LinkedHashSet<>();\n for (EnumType e : other.getEnums()) {\n if (!fromEnum(e).isSubtypeOf(this)) {\n ununifiedEnums.add(e);\n }\n }\n }\n Set<ObjectType> ununifiedObjs = new LinkedHashSet<>(other.getObjs());\n for (ObjectType targetObj : getObjs()) {\n for (ObjectType sourceObj : other.getObjs()) {\n if (targetObj.unifyWithSubtype(sourceObj, typeParameters, typeMultimap)) {\n ununifiedObjs.remove(sourceObj);\n }\n }\n }\n String thisTypevar = getTypeVar();\n String otherTypevar = other.getTypeVar();\n if (thisTypevar == null || !typeParameters.contains(thisTypevar)) {\n return ununifiedObjs.isEmpty() && ununifiedEnums.isEmpty() && (otherTypevar == null || otherTypevar.equals(thisTypevar)) && getMask() == (getMask() | (other.getMask() & ~ENUM_MASK));\n } else {\n int templateMask = BOTTOM_MASK;\n int thisScalarBits = getMask() & ~NON_SCALAR_MASK & ~TYPEVAR_MASK;\n int templateMask = other.getMask() & ~thisScalarBits;\n if (ununifiedObjs.isEmpty()) {\n templateMask &= ~NON_SCALAR_MASK;\n }\n if (templateMask == BOTTOM_MASK) {\n return ununifiedObjs.isEmpty() && ununifiedEnums.isEmpty();\n }\n JSType templateType = makeType(promoteBoolean(templateMask), ImmutableSet.copyOf(ununifiedObjs), otherTypevar, ImmutableSet.copyOf(ununifiedEnums));\n updateTypemap(typeMultimap, getTypeVar(), templateType);\n return true;\n }\n}\n"
"private static void setPGW(Epc epc, Resource pgw) {\n PDNGatewayContents pgwContents = new ObjectFactory().createPDNGatewayContents();\n if (pgw.hasProperty(info.openmultinet.ontology.vocabulary.Epc.rateCodeUp)) {\n int rate = pgw.getProperty(info.openmultinet.ontology.vocabulary.Epc.rateCodeUp).getObject().asLiteral().getInt();\n BigInteger bigRate = BigInteger.valueOf(rate);\n pgwContents.setRate(bigRate);\n }\n if (pgw.hasProperty(info.openmultinet.ontology.vocabulary.Epc.delayCode)) {\n int delay = pgw.getProperty(info.openmultinet.ontology.vocabulary.Epc.delayCode).getObject().asLiteral().getInt();\n BigInteger bigDelay = BigInteger.valueOf(delay);\n pgwContents.setDelay(bigDelay);\n }\n if (pgw.hasProperty(info.openmultinet.ontology.vocabulary.Epc.packetlossCode)) {\n int loss = pgw.getProperty(info.openmultinet.ontology.vocabulary.Epc.packetlossCode).getObject().asLiteral().getInt();\n BigInteger bigLoss = BigInteger.valueOf(loss);\n pgwContents.setLoss(bigLoss);\n }\n if (pgw.hasProperty(RDFS.label)) {\n String name = pgw.getProperty(RDFS.label).getObject().asLiteral().getString();\n pgwContents.setName(name);\n }\n epc.getApnOrEnodebOrPdnGateway().add(pgwContents);\n}\n"
"public double getLocationRatio(ITmfLocation location) {\n fLock.lock();\n try {\n if (fTrace != null) {\n if (location.getLocationInfo() instanceof Long) {\n return ((Long) location.getLocationInfo()).doubleValue() / fTrace.length();\n }\n }\n } catch (final IOException e) {\n e.printStackTrace();\n } finally {\n fLock.unlock();\n }\n return 0;\n}\n"
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n Config tmp = null;\n try {\n tmp = configs.getConfigByName(target);\n } catch (Exception ex) {\n }\n if (tmp != null) {\n config = tmp;\n }\n if (tmp == null) {\n Server targetServer = domain.getServerNamed(target);\n if (targetServer != null) {\n config = domain.getConfigNamed(targetServer.getConfigRef());\n }\n com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);\n if (cluster != null) {\n config = domain.getConfigNamed(cluster.getConfigRef());\n }\n }\n final SecurityService securityService = config.getSecurityService();\n AuthRealm fileAuthRealm = null;\n if (authRealmName == null)\n authRealmName = securityService.getDefaultRealm();\n for (AuthRealm authRealm : securityService.getAuthRealm()) {\n if (authRealm.getName().equals(authRealmName)) {\n fileAuthRealm = authRealm;\n break;\n }\n }\n if (fileAuthRealm == null) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", authRealmName));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n String fileRealmClassName = fileAuthRealm.getClassname();\n if (fileRealmClassName != null && !fileRealmClassName.equals(\"String_Node_Str\")) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", fileRealmClassName));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n String keyFile = null;\n for (Property fileProp : fileAuthRealm.getProperty()) {\n if (fileProp.getName().equals(\"String_Node_Str\"))\n keyFile = fileProp.getValue();\n }\n final String kf = keyFile;\n if (keyFile == null) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", authRealmName));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n boolean exists = (new File(kf)).exists();\n if (!exists) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", new Object[] { kf, authRealmName }));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n final String password = userpassword;\n if (password == null) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", userName));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n secureAdmin = domain.getSecureAdmin();\n if ((SecureAdmin.Util.isEnabled(secureAdmin)) && (authRealmName.equals(adminService.getAuthRealmName()))) {\n if (password.isEmpty()) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\n }\n }\n try {\n ConfigSupport.apply(new SingleConfigCode<SecurityService>() {\n public Object run(SecurityService param) throws PropertyVetoException, TransactionFailure {\n try {\n realmsManager.createRealms(config);\n refreshRealm(config.getName(), authRealmName);\n final FileRealm fr = (FileRealm) realmsManager.getFromLoadedRealms(config.getName(), authRealmName);\n CreateFileUser.handleAdminGroup(authRealmName, groups);\n String[] groups1 = groups.toArray(new String[groups.size()]);\n try {\n fr.addUser(userName, password.toCharArray(), groups1);\n } catch (BadRealmException br) {\n if (se != null && se.isDas()) {\n throw new BadRealmException(br);\n }\n }\n fr.persist();\n report.setActionExitCode(ActionReport.ExitCode.SUCCESS);\n } catch (Exception e) {\n String localalizedErrorMsg = (e.getLocalizedMessage() == null) ? \"String_Node_Str\" : e.getLocalizedMessage();\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", userName, authRealmName) + \"String_Node_Str\" + localalizedErrorMsg);\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n report.setFailureCause(e);\n }\n return null;\n }\n }, securityService);\n } catch (Exception e) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", userName, authRealmName) + \"String_Node_Str\" + e.getLocalizedMessage());\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n report.setFailureCause(e);\n }\n}\n"
"private void listWorkersMessageReceived(RequestID id, Network.ListWorkersRequest listMessage) {\n if (listMessage.getRequestType() == Network.ListWorkersRequest.RequestType.IMMEDIATE_RESPONSE) {\n sendListWorkersResponse(listMessage.getWorkerID(), id);\n LOG.log(Level.INFO, String.format(\"String_Node_Str\", numberOfWorkers, workers.size()));\n } else if (listMessage.getRequestType() == Network.ListWorkersRequest.RequestType.RESPONSE_AFTER_ALL_JOINED) {\n if (workers.size() == numberOfWorkers) {\n sendListWorkersResponseToWaitList();\n }\n LOG.log(Level.INFO, String.format(\"String_Node_Str\", numberOfWorkers, workers.size()));\n }\n LOG.log(Level.INFO, String.format(\"String_Node_Str\", numberOfWorkers, workers.size()));\n}\n"
"public void setManagedEmployees(Vector managedEmployees) {\n propertyChange(\"String_Node_Str\", this.managedEmployees.getValue(), managedEmployees);\n this.managedEmployees.setValue(managedEmployees);\n}\n"
"public DatabaseMetaData getMetaData() throws SQLException {\n return getDelegate().getMetaData();\n}\n"
"protected Bindings bindEntityData(ScriptEngine scriptEngine, EntityData entityData) {\n Bindings bindings = scriptEngine.createBindings();\n Model model = context.getFlowStep().getComponent().getInputModel();\n List<ModelEntity> entities = model.getModelEntities();\n for (ModelEntity modelEntity : entities) {\n HashMap<String, Object> boundEntity = new HashMap<String, Object>();\n bindings.put(modelEntity.getName(), boundEntity);\n }\n bindings.put(\"String_Node_Str\", entityData.getChangeType().name());\n bindings.put(\"String_Node_Str\", context.getFlowStep().getComponent().getEntityNames(entityData, true));\n Set<String> attributeIds = entityData.keySet();\n for (String attributeId : attributeIds) {\n ModelAttribute attribute = model.getAttributeById(attributeId);\n if (attribute != null) {\n ModelEntity entity = model.getEntityById(attribute.getEntityId());\n Object value = entityData.get(attributeId);\n Map<String, Object> boundEntity = (Map<String, Object>) bindings.get(entity.getName());\n boundEntity.put(attribute.getName(), value);\n } else {\n log(LogLevel.WARN, \"String_Node_Str\" + attributeId);\n }\n }\n scriptEngine.setBindings(bindings, ScriptContext.ENGINE_SCOPE);\n return bindings;\n}\n"
"public void run() {\n try {\n Thread.sleep(4000);\n } catch (final InterruptedException e) {\n throw new RuntimeException(e);\n }\n boolean notified = false;\n synchronized (stop) {\n while (!notified) {\n stop.notifyAll();\n notified = true;\n }\n }\n}\n"
"public org.springframework.web.servlet.View stormpathJsonView() {\n MappingJackson2JsonView jsonView = new MappingJackson2JsonView(objectMapper);\n jsonView.setDisableCaching(false);\n return jsonView;\n}\n"
"public void dumpIfNotEmpty() throws BimServerClientException {\n if (size() > 0) {\n for (Entry<T, List<WaitingObject>> entry : waitingObjects.entrySet()) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\" + entry.getKey() + \"String_Node_Str\");\n for (WaitingObject waitingObject : entry.getValue()) {\n sb.append(waitingObject.toString() + \"String_Node_Str\");\n }\n LOGGER.info(sb.toString());\n }\n throw new BimServerClientException(\"String_Node_Str\");\n }\n}\n"
"public TmfTimestampLocation clone() {\n return (TmfTimestampLocation) super.clone();\n}\n"
"public void stop(BundleContext context) throws Exception {\n super.stop(context);\n ignore.clear();\n if (cellLeftCursor != null) {\n cellLeftCursor.dispose();\n }\n if (cellRightCursor != null) {\n cellRightCursor.dispose();\n }\n Platform.getExtensionRegistry().removeRegistryChangeListener(DNDService.getInstance());\n}\n"
"public void release(Loader loader, Loader.LoaderListener listener) {\n if (!loaders.containsValue(loader)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (loader.removeListener(listener)) {\n loaders.remove(loader.getLoadable());\n }\n}\n"
"protected void doRun() {\n UIJob job = new UIJob(\"String_Node_Str\") {\n public IStatus runInUIThread(IProgressMonitor monitor) {\n monitor.beginTask(\"String_Node_Str\", 100);\n if (nodes == null) {\n nodes = (List<RepositoryNode>) selection.toList();\n }\n int step = 100;\n int size = nodes.size();\n if (size > 0) {\n step /= size;\n }\n for (RepositoryNode node : nodes) {\n monitor.worked(step);\n try {\n WSDLUtils.validateWsdl(node);\n Definition wsdlDefinition = WSDLUtils.getWsdlDefinition(node);\n process(wsdlDefinition);\n } catch (CoreException e) {\n e.printStackTrace();\n monitor.done();\n nodes = null;\n return new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);\n }\n }\n nodes = null;\n monitor.done();\n return Status.OK_STATUS;\n }\n };\n IRunnableWithProgress iRunnableWithProgress = new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n try {\n ISchedulingRule schedulingRule = workspace.getRoot();\n workspace.run(op, schedulingRule, IWorkspace.AVOID_UPDATE, monitor);\n } catch (CoreException e) {\n nodes = null;\n throw new InvocationTargetException(e);\n }\n }\n };\n try {\n new ProgressMonitorDialog(null).run(true, true, iRunnableWithProgress);\n } catch (InvocationTargetException e) {\n ExceptionHandler.process(e);\n nodes = null;\n } catch (InterruptedException e) {\n }\n}\n"
"public void addMap(Map map, Boolean base64_encoded, String type_encoded, String type_no_encoded) {\n if (map == null) {\n logger.debug(\"String_Node_Str\");\n return;\n }\n String mapString;\n try {\n mapString = objectMapper.writeValueAsString(map);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n return;\n }\n if (base64_encoded) {\n objectNode.put(type_encoded, Util.base64Encode(mapString));\n } else {\n add(type_no_encoded, mapString);\n }\n}\n"
"protected void configureHttpProtocol(final ServiceLocator habitat, final NetworkListener networkListener, final Http http, final FilterChainBuilder filterChainBuilder, boolean securityEnabled) {\n if (httpAdapter == null) {\n registerMonitoringStatsProviders();\n final V3Mapper mapper = new V3Mapper(logger);\n mapper.setPort(port);\n mapper.setId(name);\n final ContainerMapper containerMapper = new ContainerMapper(grizzlyService, this);\n containerMapper.setMapper(mapper);\n containerMapper.setDefaultHost(http.getDefaultVirtualServer());\n containerMapper.configureMapper();\n VirtualServer vs = null;\n String webAppRootPath = null;\n final Collection<VirtualServer> list = grizzlyService.getHabitat().getAllServices(VirtualServer.class);\n final String vsName = http.getDefaultVirtualServer();\n for (final VirtualServer virtualServer : list) {\n if (virtualServer.getId().equals(vsName)) {\n vs = virtualServer;\n webAppRootPath = vs.getDocroot();\n if (!grizzlyService.hasMapperUpdateListener() && vs.getProperty() != null && !vs.getProperty().isEmpty()) {\n for (final Property p : vs.getProperty()) {\n final String propertyName = p.getName();\n if (propertyName.startsWith(\"String_Node_Str\")) {\n String value = p.getValue();\n String[] mapping = value.split(\"String_Node_Str\");\n if (mapping.length != 2) {\n logger.log(Level.WARNING, \"String_Node_Str\", value);\n continue;\n }\n String docBase = mapping[1].substring(\"String_Node_Str\".length());\n String urlPattern = mapping[0].substring(\"String_Node_Str\".length());\n containerMapper.addAlternateDocBase(urlPattern, docBase);\n }\n }\n }\n break;\n }\n }\n httpAdapter = new HttpAdapterImpl(vs, containerMapper, webAppRootPath);\n containerMapper.addDocRoot(webAppRootPath);\n AbstractActiveDescriptor<V3Mapper> aad = BuilderHelper.createConstantDescriptor(mapper);\n aad.addContractType(Mapper.class);\n aad.setName(address.toString() + port);\n ServiceLocatorUtilities.addOneDescriptor(grizzlyService.getHabitat(), aad);\n super.configureHttpProtocol(habitat, networkListener, http, filterChainBuilder, securityEnabled);\n final Protocol protocol = http.getParent();\n for (NetworkListener listener : protocol.findNetworkListeners()) {\n grizzlyService.notifyMapperUpdateListeners(listener, mapper);\n }\n } else {\n super.configureHttpProtocol(habitat, networkListener, http, filterChainBuilder, securityEnabled);\n }\n}\n"
"public AssembleResult doDisassemble() {\n World world = ship.worldObj;\n MobileChunk chunk = ship.getShipChunk();\n AssembleResult result = new AssembleResult();\n result.xOffset = Integer.MAX_VALUE;\n result.yOffset = Integer.MAX_VALUE;\n result.zOffset = Integer.MAX_VALUE;\n int currentrot = Math.round(ship.rotationYaw / 90F) & 3;\n int deltarot = (-currentrot) & 3;\n ship.rotationYaw = currentrot * 90F;\n ship.rotationPitch = 0F;\n float yaw = currentrot * MathHelperMod.PI_HALF;\n boolean flag = world.getGameRules().getGameRuleBooleanValue(\"String_Node_Str\");\n world.getGameRules().setOrCreateGameRule(\"String_Node_Str\", \"String_Node_Str\");\n List<LocatedBlock> postlist = new ArrayList<LocatedBlock>(4);\n float ox = -chunk.getCenterX();\n float oy = -chunk.minY();\n float oz = -chunk.getCenterZ();\n Vec3 vec = Vec3.createVectorHelper(0D, 0D, 0D);\n TileEntity tileentity;\n Block block;\n int meta;\n int ix, iy, iz;\n for (int i = chunk.minX(); i < chunk.maxX(); i++) {\n for (int j = chunk.minY(); j < chunk.maxY(); j++) {\n for (int k = chunk.minZ(); k < chunk.maxZ(); k++) {\n block = chunk.getBlock(i, j, k);\n meta = chunk.getBlockMetadata(i, j, k);\n if (block == Blocks.air) {\n if (meta == 1)\n continue;\n } else if (block.isAir(world, i, j, k))\n continue;\n tileentity = chunk.getTileEntity(i, j, k);\n meta = ArchimedesShipMod.instance.metaRotations.getRotatedMeta(block, meta, deltarot);\n vec.xCoord = i + ox;\n vec.yCoord = j + oy;\n vec.zCoord = k + oz;\n vec.rotateAroundY(yaw);\n ix = MathHelperMod.round_double(vec.xCoord + ship.posX);\n iy = MathHelperMod.round_double(vec.yCoord + ship.posY);\n iz = MathHelperMod.round_double(vec.zCoord + ship.posZ);\n if (!world.setBlock(ix, iy, iz, block, meta, 2) || block != world.getBlock(ix, iy, iz)) {\n postlist.add(new LocatedBlock(block, meta, tileentity, new ChunkPosition(ix, iy, iz)));\n continue;\n }\n if (meta != world.getBlockMetadata(ix, iy, iz)) {\n world.setBlockMetadataWithNotify(ix, iy, iz, meta, 2);\n }\n if (tileentity != null) {\n if (tileentity instanceof IShipTileEntity) {\n ((IShipTileEntity) tileentity).setParentShip(null, i, j, k);\n }\n tileentity.validate();\n world.setTileEntity(ix, iy, iz, tileentity);\n }\n if (!ArchimedesShipMod.instance.metaRotations.hasBlock(block)) {\n rotateBlock(block, world, ix, iy, iz, currentrot);\n block = world.getBlock(ix, iy, iz);\n meta = world.getBlockMetadata(ix, iy, iz);\n tileentity = world.getTileEntity(ix, iy, iz);\n }\n LocatedBlock lb = new LocatedBlock(block, meta, tileentity, new ChunkPosition(ix, iy, iz));\n result.assembleBlock(lb);\n if (block == ArchimedesShipMod.blockMarkShip && i == ship.seatX && j == ship.seatY && k == ship.seatZ) {\n result.shipMarkingBlock = lb;\n }\n }\n }\n }\n world.getGameRules().setOrCreateGameRule(\"String_Node_Str\", String.valueOf(flag));\n for (LocatedBlock ilb : postlist) {\n ix = ilb.coords.chunkPosX;\n iy = ilb.coords.chunkPosY;\n iz = ilb.coords.chunkPosZ;\n ArchimedesShipMod.modLog.debug(\"String_Node_Str\" + ilb.toString());\n world.setBlock(ix, iy, iz, ilb.block, ilb.blockMeta, 0);\n result.assembleBlock(ilb);\n }\n ship.setDead();\n if (result.shipMarkingBlock == null || !(result.shipMarkingBlock.tileEntity instanceof TileEntityHelm)) {\n result.resultCode = AssembleResult.RESULT_MISSING_MARKER;\n } else {\n result.checkConsistent(world);\n }\n return result;\n}\n"
"public void hint(int which) {\n boolean oldValue = which > 0 ? hints[which] : hints[-which];\n super.hint(which);\n boolean newValue = hints[which];\n if (oldValue == newValue) {\n return;\n }\n if (which == DISABLE_DEPTH_TEST) {\n flush();\n pgl.disableDepthTest();\n pgl.setClearColor(0, 0, 0, 0);\n pgl.clearDepthBuffer();\n } else if (which == ENABLE_DEPTH_TEST) {\n flush();\n pgl.enableDepthTest();\n } else if (which == DISABLE_DEPTH_MASK) {\n flush();\n pgl.disableDepthMask();\n } else if (which == ENABLE_DEPTH_MASK) {\n flush();\n pgl.enableDepthMask();\n } else if (which == DISABLE_ACCURATE_2D) {\n flush();\n setFlushMode(FLUSH_WHEN_FULL);\n } else if (which == ENABLE_ACCURATE_2D) {\n flush();\n setFlushMode(FLUSH_CONTINUOUSLY);\n } else if (which == DISABLE_TEXTURE_CACHE) {\n flush();\n } else if (which == DISABLE_PERSPECTIVE_CORRECTED_LINES) {\n if (0 < tessGeo.lineVertexCount && 0 < tessGeo.lineIndexCount) {\n flush();\n }\n } else if (which == ENABLE_PERSPECTIVE_CORRECTED_LINES) {\n if (0 < tessGeo.lineVertexCount && 0 < tessGeo.lineIndexCount) {\n flush();\n }\n }\n}\n"
"public void toString(Collection<Object> ret, boolean direct) {\n boolean remote = (this.transform == Transform.RELATIVE) && !direct;\n if (mode == MultiMode.COMBINED) {\n ret.add(combine(map(), direct));\n } else {\n addAll(ret, map(), remote);\n }\n}\n"
"public BrokerMessage.SendMessageResponse sendMessage(BrokerMessage.SendMessageRequest request) {\n BrokerMessage.SendMessageResponse.Builder responseBuilder = BrokerMessage.SendMessageResponse.newBuilder();\n BrokerMessage.BaseResponse.Builder baseResBuilder = BrokerMessage.BaseResponse.newBuilder();\n baseResBuilder.setResCode(BrokerMessage.ResCode.RES_CODE_FAIL);\n ZKData zkData = ZKData.getInstance();\n GlobalConf conf = GlobalConf.getInstance();\n zkData.getTopicLock().lock();\n Map<String, Map<Integer, Integer>> topicMap = zkData.getTopicMap();\n Map<Integer, Integer> queueMap = topicMap.get(request.getTopic());\n if (queueMap == null || !queueMap.containsKey(request.getQueue()) || queueMap.get(request.getQueue()) != conf.getShardingId()) {\n queueMap = zkClient.readTopicInfo(request.getTopic());\n zkData.getTopicLock().lock();\n try {\n zkData.getTopicMap().put(request.getTopic(), queueMap);\n } finally {\n zkData.getTopicLock().unlock();\n }\n if (queueMap == null || !queueMap.containsKey(request.getQueue()) || queueMap.get(request.getQueue()) != conf.getShardingId()) {\n String message = \"String_Node_Str\";\n baseResBuilder.setResMsg(message);\n responseBuilder.setBaseRes(baseResBuilder.build());\n LOG.info(\"String_Node_Str\", request.getTopic(), request.getQueue(), responseBuilder.getBaseRes().getResCode(), responseBuilder.getBaseRes().getResMsg());\n return responseBuilder.build();\n }\n }\n if (raftNode.getLeaderId() <= 0) {\n baseResBuilder.setResMsg(\"String_Node_Str\");\n responseBuilder.setBaseRes(baseResBuilder);\n } else if (raftNode.getLeaderId() != raftNode.getLocalServer().getServerId()) {\n RPCClient rpcClient = raftNode.getPeerMap().get(raftNode.getLeaderId()).getRpcClient();\n BrokerAPI brokerAPI = RPCProxy.getProxy(rpcClient, BrokerAPI.class);\n BrokerMessage.SendMessageResponse responseFromLeader = brokerAPI.sendMessage(request);\n if (responseFromLeader == null) {\n baseResBuilder.setResMsg(\"String_Node_Str\");\n responseBuilder.setBaseRes(baseResBuilder);\n } else {\n responseBuilder.mergeFrom(responseFromLeader);\n }\n } else {\n byte[] data = request.toByteArray();\n boolean success = raftNode.replicate(data, RaftMessage.EntryType.ENTRY_TYPE_DATA);\n baseResBuilder.setResCode(success ? BrokerMessage.ResCode.RES_CODE_SUCCESS : BrokerMessage.ResCode.RES_CODE_FAIL);\n responseBuilder.setBaseRes(baseResBuilder);\n }\n BrokerMessage.SendMessageResponse response = responseBuilder.build();\n LOG.info(\"String_Node_Str\", request.getTopic(), request.getQueue(), responseBuilder.getBaseRes().getResCode(), responseBuilder.getBaseRes().getResMsg());\n return response;\n}\n"
"protected void createActions() {\n this.newConceptAction = new XSDNewConceptAction(this);\n this.deleteConceptAction = new XSDDeleteConceptAction(this);\n this.newBrowseItemAction = new XSDNewBrowseItemViewAction(this);\n this.deleteConceptWrapAction = new XSDDeleteConceptWrapAction(this);\n this.newElementAction = new XSDNewElementAction(this);\n this.deleteElementAction = new XSDDeleteElementAction(this);\n this.changeToComplexTypeAction = new XSDChangeToComplexTypeAction(this, false);\n this.changeSubElementGroupAction = new XSDChangeToComplexTypeAction(this, true);\n this.deleteParticleAction = new XSDDeleteParticleAction(this);\n this.newParticleFromTypeAction = new XSDNewParticleFromTypeAction(this);\n this.newParticleFromParticleAction = new XSDNewParticleFromParticleAction(this);\n this.newGroupFromTypeAction = new XSDNewGroupFromTypeAction(this);\n this.editParticleAction = new XSDEditParticleAction(this);\n this.editConceptAction = new XSDEditConceptAction(this);\n this.editElementAction = new XSDEditElementAction(this);\n this.deleteIdentityConstraintAction = new XSDDeleteIdentityConstraintAction(this);\n this.editIdentityConstraintAction = new XSDEditIdentityConstraintAction(this);\n this.newIdentityConstraintAction = new XSDNewIdentityConstraintAction(this);\n this.deleteXPathAction = new XSDDeleteXPathAction(this);\n this.newXPathAction = new XSDNewXPathAction(this);\n this.editXPathAction = new XSDEditXPathAction(this);\n this.changeToSimpleTypeAction = new XSDChangeToSimpleTypeAction(this);\n this.changeBaseTypeAction = new XSDChangeBaseTypeAction(this);\n this.getXPathAction = new XSDGetXPathAction(this);\n this.setAnnotationLabelAction = new XSDSetAnnotationLabelAction(this);\n this.setAnnotationDescriptionsAction = new XSDSetAnnotationDescriptionsAction(this);\n this.setAnnotationForeignKeyAction = new XSDSetAnnotationForeignKeyAction(this, dataModelName);\n visibleRuleAction = new XSDVisibleRuleAction(this, dataModelName);\n defaultValueRuleAction = new XSDDefaultValueRuleAction(this, dataModelName);\n this.setAnnotationFKFilterAction = new XSDSetAnnotationFKFilterAction(this, dataModelName);\n this.setAnnotationForeignKeyInfoAction = new XSDSetAnnotationForeignKeyInfoAction(this, dataModelName);\n this.setAnnotationWriteAction = (XSDSetAnnotationWriteAction) getAdapter(XSDSetAnnotationWriteAction.class);\n this.setAnnotationWrapWriteAction = (XSDSetAnnotationWrapWriteAction) getAdapter(XSDSetAnnotationWrapWriteAction.class);\n this.setAnnotationNoAction = (XSDSetAnnotationNoAction) getAdapter(XSDSetAnnotationNoAction.class);\n this.setAnnotationWrapNoAction = new XSDSetAnnotationWrapNoAction(this, dataModelName);\n this.setAnnotationDisplayFomatAction = new XSDSetAnnotaionDisplayFormatAction(this);\n this.setAnnotationLookupFieldsAction = new XSDAnnotationLookupFieldsAction(this);\n this.setAnnotationPrimaryKeyInfoAction = new XSDSetAnnotationPrimaryKeyInfoAction(this);\n this.deleteTypeDefinition = new XSDDeleteTypeDefinition(this);\n this.newComplexTypeAction = new XSDNewComplexTypeDefinition(this);\n this.newSimpleTypeAction = new XSDNewSimpleTypeDefinition(this);\n this.editComplexTypeAction = new XSDEditComplexTypeAction(this);\n this.setFacetMsgAction = new XSDSetFacetMessageAction(this);\n deleteConceptWrapAction.regisDelAction(XSDElementDeclarationImpl.class, deleteConceptAction);\n deleteConceptWrapAction.regisDelAction(XSDParticleImpl.class, deleteParticleAction);\n deleteConceptWrapAction.regisDelAction(XSDIdentityConstraintDefinitionImpl.class, deleteIdentityConstraintAction);\n deleteConceptWrapAction.regisDelAction(XSDXPathDefinitionImpl.class, deleteXPathAction);\n deleteConceptWrapAction.regisDelAction(null, deleteElementAction);\n deleteConceptWrapAction.regisDelAction(XSDComplexTypeDefinitionImpl.class, deleteTypeDefinition);\n deleteConceptWrapAction.regisDelAction(XSDSimpleTypeDefinitionImpl.class, deleteTypeDefinition);\n}\n"
"public void handshake(SocketChannel socket) throws WebSocketException {\n try {\n ByteBuffer request = createHandshakeRequest();\n socket.write(request);\n } catch (IOException ioe) {\n throw new WebSocketException(3100, ioe);\n }\n}\n"
"public Component createComponents() {\n initPlayers();\n JPanel panel = new JPanel();\n panel.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));\n panel.setLayout(new GridLayout(0, 1));\n defaultTableModel = buildTableModel();\n JTable jtable = buildJTable(defaultTableModel);\n panel.add(jtable);\n return panel;\n}\n"
"protected static void buildFormatters(XMLConversionManager xmlConversionManager) {\n xmlConversionManager.dateFormatter = new DateFormatThreadLocal(XSD_DATE_FORMAT_STR, xmlConversionManager);\n xmlConversionManager.timeFormatter = new DateFormatThreadLocal(XSD_TIME_FORMAT_STR, xmlConversionManager);\n xmlConversionManager.dateTimeFormatter = new DateFormatThreadLocal(XSD_DATE_TIME_FORMAT_STR, xmlConversionManager);\n xmlConversionManager.gDayFormatter = new DateFormatThreadLocal(XSD_GDAY_FORMAT_STR, null);\n xmlConversionManager.gMonthFormatter = new DateFormatThreadLocal(XSD_GMONTH_FORMAT_STR, null);\n xmlConversionManager.gMonthDayFormatter = new DateFormatThreadLocal(XSD_GMONTH_DAY_FORMAT_STR, null);\n xmlConversionManager.gYearFormatter = new DateFormatThreadLocal(XSD_GYEAR_FORMAT_STR, null);\n xmlConversionManager.gYearMonthFormatter = new DateFormatThreadLocal(XSD_GYEAR_MONTH_FORMAT_STR, null);\n}\n"
"public void installUI(JComponent c) {\n if (c == null)\n throw new NullPointerException(\"String_Node_Str\");\n tree = (JTree) c;\n tree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\n\n public void valueChanged(TreeSelectionEvent e) {\n layoutCache.invalidatePathBounds(e.getOldLeadSelectionPath());\n layoutCache.invalidatePathBounds(e.getNewLeadSelectionPath());\n updateSize();\n tree.repaint();\n }\n });\n tree.addHierarchyListener(new HierarchyListener() {\n public void hierarchyChanged(HierarchyEvent e) {\n if (e.getID() == HierarchyEvent.HIERARCHY_CHANGED && (e.getChangeFlags() & HierarchyEvent.PARENT_CHANGED) != 0 && e.getChangedParent() instanceof JViewport) {\n parentViewport = (JViewport) e.getChangedParent();\n }\n }\n });\n super.installUI(c);\n}\n"
"public Node[] sort(Graph g, Random rand) {\n Node[] sorted = this.clone(g.getNodes());\n this.roles = (RoleList) g.getProperty(\"String_Node_Str\" + this.key + \"String_Node_Str\");\n RolesAsc asc = new RolesAsc(this.order, this.roles);\n Arrays.sort(sorted, asc);\n this.randomize(sorted, rand);\n return sorted;\n}\n"
"public static List connect(String dbType, String url, String username, String pwd, final String driverClassNameArg, final String driverJarPathArg, String dbVersion, String additionalParams) throws Exception {\n Connection connection = null;\n DriverShim wapperDriver = null;\n List conList = new ArrayList();\n String driverClassName = driverClassNameArg;\n List<String> jarPathList = new ArrayList<String>();\n if (PluginChecker.isOnlyTopLoaded()) {\n if (StringUtils.isBlank(driverClassName)) {\n driverClassName = ExtractMetaDataUtils.getDriverClassByDbType(dbType);\n }\n IMetadataConnection mconn = new MetadataConnection();\n mconn.setUrl(url);\n mconn.setUsername(username);\n mconn.setPassword(pwd);\n mconn.setDbType(dbType);\n mconn.setDriverClass(driverClassName);\n mconn.setDriverJarPath(driverJarPathArg);\n mconn.setDbVersionString(dbVersion);\n mconn.setAdditionalParams(additionalParams);\n TypedReturnCode<Connection> checkConnection = MetadataConnectionUtils.checkConnection(mconn);\n if (checkConnection.isOk()) {\n conList.add(checkConnection.getObject());\n } else {\n throw new Exception(checkConnection.getMessage());\n }\n } else {\n ILibraryManagerService librairesManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);\n if ((driverJarPathArg == null || driverJarPathArg.equals(\"String_Node_Str\"))) {\n List<String> driverNames = EDatabaseVersion4Drivers.getDrivers(dbType, dbVersion);\n if (driverNames != null) {\n for (String jar : driverNames) {\n if (!new File(getJavaLibPath() + jar).exists()) {\n librairesManagerService.retrieve(jar, getJavaLibPath(), new NullProgressMonitor());\n }\n jarPathList.add(getJavaLibPath() + jar);\n }\n driverClassName = ExtractMetaDataUtils.getDriverClassByDbType(dbType);\n if (EDatabaseTypeName.VERTICA.getXmlName().equals(dbType) && EDatabaseVersion4Drivers.VERTICA_6.getVersionValue().equals(dbVersion)) {\n driverClassName = EDatabase4DriverClassName.VERTICA2.getDriverClass();\n }\n }\n } else {\n Set<String> jarsAvailable = librairesManagerService.list(new NullProgressMonitor());\n if (driverJarPathArg.contains(\"String_Node_Str\") || driverJarPathArg.startsWith(\"String_Node_Str\")) {\n if (driverJarPathArg.contains(\"String_Node_Str\")) {\n String[] jars = driverJarPathArg.split(\"String_Node_Str\");\n for (String jar : jars) {\n Path path = new Path(jar);\n if (jarsAvailable.contains(path.lastSegment())) {\n if (!new File(getJavaLibPath() + path.lastSegment()).exists()) {\n librairesManagerService.retrieve(path.lastSegment(), getJavaLibPath(), new NullProgressMonitor());\n }\n jarPathList.add(getJavaLibPath() + path.lastSegment());\n } else {\n jarPathList.add(jar);\n }\n }\n } else {\n Path path = new Path(driverJarPathArg);\n File driverFile = new File(driverJarPathArg);\n boolean isExist = driverFile.exists();\n if (!isExist || !driverJarPathArg.contains(\"String_Node_Str\")) {\n jarPathList.add(\"String_Node_Str\");\n } else if (jarsAvailable.contains(path.lastSegment())) {\n String jarUnderLib = getJavaLibPath() + path.lastSegment();\n File file = new File(jarUnderLib);\n if (!file.exists()) {\n librairesManagerService.retrieve(path.lastSegment(), getJavaLibPath(), new NullProgressMonitor());\n }\n jarPathList.add(jarUnderLib);\n } else {\n jarPathList.add(driverJarPathArg);\n }\n }\n } else {\n if (driverJarPathArg.contains(\"String_Node_Str\")) {\n String[] jars = driverJarPathArg.split(\"String_Node_Str\");\n for (int i = 0; i < jars.length; i++) {\n if (!new File(getJavaLibPath() + jars[i]).exists()) {\n librairesManagerService.retrieve(jars[i], getJavaLibPath(), new NullProgressMonitor());\n }\n jarPathList.add(getJavaLibPath() + jars[i]);\n }\n } else {\n if (!new File(getJavaLibPath() + driverJarPathArg).exists()) {\n librairesManagerService.retrieve(driverJarPathArg, getJavaLibPath(), new NullProgressMonitor());\n }\n jarPathList.add(getJavaLibPath() + driverJarPathArg);\n }\n }\n }\n final String[] driverJarPath = jarPathList.toArray(new String[0]);\n if (driverClassName == null || driverClassName.equals(\"String_Node_Str\")) {\n driverClassName = ExtractMetaDataUtils.getDriverClassByDbType(dbType);\n if (dbType.equals(EDatabaseTypeName.ACCESS.getXmlName())) {\n ExtractMetaDataUtils.checkAccessDbq(url);\n }\n }\n List list = new ArrayList();\n ExtractMetaDataUtils.checkDBConnectionTimeout();\n if (dbType != null && dbType.equalsIgnoreCase(EDatabaseTypeName.GENERAL_JDBC.getXmlName())) {\n JDBCDriverLoader loader = new JDBCDriverLoader();\n list = loader.getConnection(driverJarPath, driverClassName, url, username, pwd, dbType, dbVersion, additionalParams);\n if (list != null && list.size() > 0) {\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i) instanceof Connection) {\n connection = (Connection) list.get(i);\n }\n if (list.get(i) instanceof DriverShim) {\n wapperDriver = (DriverShim) list.get(i);\n }\n }\n }\n } else if (dbType != null && dbType.equalsIgnoreCase(EDatabaseTypeName.MSSQL.getDisplayName()) && \"String_Node_Str\".equals(username)) {\n if (DRIVER_CACHE.containsKey(EDatabase4DriverClassName.MSSQL.getDriverClass())) {\n wapperDriver = DRIVER_CACHE.get(EDatabase4DriverClassName.MSSQL.getDriverClass());\n Properties info = new Properties();\n username = username != null ? username : \"String_Node_Str\";\n pwd = pwd != null ? pwd : \"String_Node_Str\";\n info.put(\"String_Node_Str\", username);\n info.put(\"String_Node_Str\", pwd);\n connection = wapperDriver.connect(url, info);\n } else {\n JDBCDriverLoader loader = new JDBCDriverLoader();\n list = loader.getConnection(driverJarPath, driverClassName, url, username, pwd, dbType, dbVersion, additionalParams);\n if (list != null && list.size() > 0) {\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i) instanceof Connection) {\n connection = (Connection) list.get(i);\n }\n if (list.get(i) instanceof DriverShim) {\n wapperDriver = (DriverShim) list.get(i);\n }\n }\n DRIVER_CACHE.put(EDatabase4DriverClassName.MSSQL.getDriverClass(), wapperDriver);\n }\n }\n } else if (dbType != null && (isValidJarFile(driverJarPath) || dbType.equalsIgnoreCase(EDatabaseTypeName.GODBC.getXmlName()))) {\n JDBCDriverLoader loader = new JDBCDriverLoader();\n if (EDatabaseTypeName.HIVE.getDisplayName().equals(dbType) && \"String_Node_Str\".equalsIgnoreCase(dbVersion)) {\n loadJarRequiredByDriver(dbType, dbVersion);\n }\n list = loader.getConnection(driverJarPath, driverClassName, url, username, pwd, dbType, dbVersion, additionalParams);\n if (list != null && list.size() > 0) {\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i) instanceof Connection) {\n connection = (Connection) list.get(i);\n }\n if (list.get(i) instanceof DriverShim) {\n wapperDriver = (DriverShim) list.get(i);\n }\n }\n }\n } else {\n Class<?> klazz = Class.forName(driverClassName);\n Properties info = new Properties();\n info.put(\"String_Node_Str\", username);\n info.put(\"String_Node_Str\", pwd);\n if (dbType.equals(EDatabaseTypeName.ACCESS.getXmlName()) || dbType.equals(EDatabaseTypeName.GODBC.getXmlName())) {\n Charset systemCharset = CharsetToolkit.getInternalSystemCharset();\n if (systemCharset != null && systemCharset.displayName() != null) {\n info.put(\"String_Node_Str\", systemCharset.displayName());\n }\n }\n connection = ((Driver) klazz.newInstance()).connect(url, info);\n }\n if (connection == null) {\n throw new Exception(Messages.getString(\"String_Node_Str\"));\n }\n conList.add(connection);\n if (wapperDriver != null) {\n conList.add(wapperDriver);\n }\n }\n return conList;\n}\n"
"public void setSelectedPermissions() {\n Timer t = new Timer() {\n public void run() {\n int selectedIndex = rolesListBox.getSelectedIndex();\n if (selectedIndex >= 0) {\n String roleName = rolesListBox.getItemText(selectedIndex);\n List<String> logicalRoleAssignments = newRoleAssignments.get(roleName);\n if (logicalRoleAssignments == null) {\n logicalRoleAssignments = masterRoleMap.get(roleName);\n }\n for (LogicalRoleInfo logicalRoleInfo : logicalRoles.values()) {\n logicalRoleInfo.checkBox.setValue((logicalRoleAssignments != null) && logicalRoleAssignments.contains(logicalRoleInfo.roleName));\n }\n }\n }\n for (LogicalRoleInfo logicalRoleInfo : logicalRoles.values()) {\n logicalRoleInfo.checkBox.setValue((logicalRoleAssignments != null) && logicalRoleAssignments.contains(logicalRoleInfo.roleName));\n }\n }\n}\n"
"public void run(final IProgressMonitor monitor) throws InvocationTargetException {\n try {\n final JdbcSource src = getSource();\n final RelationalModelProcessor processor = JdbcModelProcessorManager.createRelationalModelProcessor(srcPg.getMetadataProcessor());\n processor.setMoveRatherThanCopyAdds(!isUpdatedModel());\n final boolean includeIncompleteFKs = getDatabase().getIncludes().includeIncompleteFKs();\n processor.setIncludeIncompleteFKs(includeIncompleteFKs);\n final IFile modelFile = getFolder().getFile(new Path(getModelName()));\n final ModelResource resrc = ModelerCore.create(modelFile);\n final ModelAnnotation modelAnnotation = resrc.getModelAnnotation();\n modelAnnotation.setPrimaryMetamodelUri(RelationalPackage.eNS_URI);\n modelAnnotation.setModelType(ModelType.PHYSICAL_LITERAL);\n if (resrc instanceof ModelResourceImpl) {\n ((ModelResourceImpl) resrc).setModelType(ModelType.PHYSICAL_LITERAL);\n }\n if (processor instanceof RelationalModelProcessorImpl) {\n JdbcImportWizard.this.drDifferenceReport = ((RelationalModelProcessorImpl) processor).generateDifferenceReport(resrc, getDatabase(), src.getImportSettings(), monitor);\n }\n ppProcessorPack = new ProcessorPack(processor, src, modelFile, resrc);\n } catch (final OperationCanceledException err) {\n } catch (final Exception err) {\n throw new InvocationTargetException(err);\n } finally {\n monitor.done();\n }\n}\n"
"public void gotoFirstPage() {\n int size = contextList.size();\n if (size == 1) {\n return;\n } else {\n int index = contextList.indexOf(currentContext);\n if (index > 0) {\n setCurrentContext(0);\n parent.step(0 - index);\n }\n }\n}\n"
"public void fire() throws IllegalActionException {\n TypedCompositeActor container = (TypedCompositeActor) getContainer();\n if (container == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n Schedule unitSchedule = (Schedule) _schedule.get(_unitIndex);\n Iterator scheduleIterator = unitSchedule.iterator();\n if (_iterationCount != 0 || _transferOutputsOnly) {\n while (scheduleIterator.hasNext()) {\n Actor actor = ((Firing) scheduleIterator.next()).getActor();\n if (_debugging) {\n _debug(\"String_Node_Str\" + ((NamedObj) actor).getFullName());\n }\n List outputPortList = actor.outputPortList();\n Iterator outputPorts = outputPortList.iterator();\n while (outputPorts.hasNext()) {\n IOPort port = (IOPort) outputPorts.next();\n Receiver[][] channelArray = port.getRemoteReceivers();\n for (int i = 0; i < channelArray.length; i++) {\n Receiver[] receiverArray = channelArray[i];\n for (int j = 0; j < receiverArray.length; j++) {\n GiottoReceiver receiver = (GiottoReceiver) receiverArray[j];\n receiver.update();\n }\n }\n }\n }\n }\n if (!_transferOutputsOnly) {\n scheduleIterator = unitSchedule.iterator();\n while (scheduleIterator.hasNext()) {\n Actor actor = ((Firing) scheduleIterator.next()).getActor();\n int actorFrequency = GiottoScheduler.getFrequency(actor);\n if (_debugging) {\n _debug(\"String_Node_Str\" + ((NamedObj) actor).getFullName());\n }\n if (actor.iterate(1) == STOP_ITERATING) {\n }\n }\n }\n if (_synchronizeToRealTime) {\n long elapsedTime = System.currentTimeMillis() - _realStartTime;\n double elapsedTimeInSeconds = ((double) elapsedTime) / 1000.0;\n if (_unitTimeIncrement > elapsedTimeInSeconds) {\n long timeToWait = (long) ((_unitTimeIncrement - elapsedTimeInSeconds) * 1000.0);\n if (timeToWait > 0) {\n if (_debugging) {\n _debug(\"String_Node_Str\" + timeToWait);\n }\n Scheduler scheduler = getScheduler();\n synchronized (scheduler) {\n try {\n scheduler.wait(timeToWait);\n } catch (InterruptedException ex) {\n }\n }\n }\n }\n }\n if (_unitIndex >= _schedule.size()) {\n _unitIndex = 0;\n _iterationCount++;\n }\n}\n"
"public void close() throws IOException {\n try {\n int responseCode = connection.getResponseCode();\n if (responseCode >= 300) {\n String responseBody;\n try {\n responseBody = readFully(getInputStream(connection));\n } catch (IOException e) {\n responseBody = \"String_Node_Str\" + e.toString();\n }\n throw new HTTPException(responseCode, connection.getResponseMessage(), responseBody);\n }\n } finally {\n super.close();\n os.close();\n }\n}\n"
"private void broadcastClaim(Set<LHProtos.Pledge> pledges, KeyParameter key) {\n try {\n Main.wallet.completeContractWithFee(projectToClaim, pledges, key, (val) -> {\n progressBar.setProgress(val);\n if (val >= 1.0)\n overlayUI.done();\n }, (ex) -> {\n overlayUI.done();\n return null;\n }, Platform::runLater);\n } catch (Ex.ValueMismatch e) {\n log.error(\"String_Node_Str\" + e);\n informationalAlert(\"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", Coin.valueOf(e.byAmount).toFriendlyString());\n overlayUI.done();\n } catch (InsufficientMoneyException e) {\n log.error(\"String_Node_Str\", e);\n informationalAlert(\"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\");\n overlayUI.done();\n }\n}\n"
"public void delete(Transaction tx, Iterable<Key> keyIterable) {\n boolean newTx = (tx == null);\n if (newTx)\n tx = beginTransaction();\n try {\n for (Key key : keyIterable) {\n EntityGroupTracker.trackKey(tx, key);\n store.remove(key);\n }\n if (newTx) {\n newTx = false;\n tx.commit();\n }\n } catch (Throwable t) {\n if (newTx)\n tx.rollback();\n throw new RuntimeException(t);\n }\n}\n"
"private void parseSystemClasspath() {\n clearClasspath();\n final ArrayList<ClassLoader> classLoaders = new ArrayList<>();\n final HashSet<ClassLoader> classLoadersSet = new HashSet<>();\n classLoadersSet.add(ClassLoader.getSystemClassLoader());\n classLoaders.add(ClassLoader.getSystemClassLoader());\n try {\n throw new Exception();\n } catch (final Exception e) {\n final StackTraceElement[] stacktrace = e.getStackTrace();\n if (stacktrace.length >= 3) {\n final ArrayList<ClassLoader> callerClassLoaders = new ArrayList<>();\n final StackTraceElement caller = stacktrace[2];\n for (ClassLoader cl = caller.getClass().getClassLoader(); cl != null; cl = cl.getParent()) {\n callerClassLoaders.add(cl);\n }\n for (int i = callerClassLoaders.size() - 1; i >= 0; --i) {\n final ClassLoader cl = callerClassLoaders.get(i);\n if (classLoadersSet.add(cl)) {\n classLoaders.add(cl);\n }\n }\n }\n }\n if (classLoadersSet.add(Thread.currentThread().getContextClassLoader())) {\n classLoaders.add(Thread.currentThread().getContextClassLoader());\n }\n for (final ClassLoader cl : classLoaders) {\n if (cl != null) {\n if (cl instanceof URLClassLoader) {\n for (final URL url : ((URLClassLoader) cl).getURLs()) {\n final String protocol = url.getProtocol();\n if (protocol == null || protocol.equalsIgnoreCase(\"String_Node_Str\")) {\n addClasspathElement(url.getFile());\n }\n }\n } else if (cl.getClass().getName().equals(\"String_Node_Str\")) {\n try {\n final Method getPaths = cl.getClass().getDeclaredMethod(\"String_Node_Str\");\n getPaths.setAccessible(true);\n final Set<String> paths = (Set<String>) getPaths.invoke(cl);\n for (final String path : paths) {\n addClasspathElement(path);\n }\n } catch (final Exception e) {\n Log.log(\"String_Node_Str\" + cl.getClass().getName() + \"String_Node_Str\" + e.getMessage());\n }\n } else {\n Log.log(\"String_Node_Str\" + cl.getClass().getName());\n }\n }\n }\n addClasspathElements(System.getProperty(\"String_Node_Str\"));\n initialized = true;\n}\n"
"private void cancelSchedule() {\n Intent i = new Intent(CV.SERVICE_INTENT_ACTION);\n i.putExtra(CV.SERVICEACTION, CV.SERVICEACTION_CANCEL_SCHEDULE);\n startService(i);\n}\n"
"public void init(IDynamicProperty dp) {\n super.init(dp);\n initHadoopVersionType();\n}\n"
"public List<Integer> getIdList() {\n synchronized (idList) {\n return Collections.unmodifiableList(idList);\n }\n}\n"
"public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object... arguments) {\n ensureOpen();\n if (key == null) {\n throw new NullPointerException();\n }\n if (entryProcessor == null) {\n throw new NullPointerException();\n }\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n T result = null;\n lockManager.lock(key);\n try {\n long now = System.currentTimeMillis();\n RICacheEventDispatcher<K, V> dispatcher = new RICacheEventDispatcher<K, V>();\n Object internalKey = keyConverter.toInternal(key);\n RICachedValue cachedValue = entries.get(internalKey);\n if (statisticsEnabled()) {\n if (cachedValue == null) {\n statistics.increaseCacheMisses(1);\n } else {\n statistics.increaseCacheHits(1);\n }\n }\n if (statisticsEnabled()) {\n statistics.addGetTimeNano(System.nanoTime() - start);\n }\n start = statisticsEnabled() ? System.nanoTime() : 0;\n EntryProcessorEntry<K, V> entry = new EntryProcessorEntry<>(valueConverter, key, cachedValue, now, dispatcher, configuration.isReadThrough() ? cacheLoader : null);\n try {\n result = entryProcessor.process(entry, arguments);\n } catch (Exception e) {\n if (!(e instanceof EntryProcessorException)) {\n throw new EntryProcessorException(e);\n } else {\n throw e;\n }\n }\n Duration duration;\n long expiryTime;\n switch(entry.getOperation()) {\n case NONE:\n break;\n case ACCESS:\n try {\n duration = expiryPolicy.getExpiryForAccess();\n if (duration != null) {\n long expiryTime1 = duration.getAdjustedTime(now);\n cachedValue.setExpiryTime(expiryTime1);\n }\n } catch (Throwable t) {\n }\n break;\n case CREATE:\n RIEntry<K, V> e = new RIEntry<K, V>(key, entry.getValue());\n if (entry.getOperation() == MutableEntryOperation.CREATE) {\n writeCacheEntry(e);\n }\n try {\n duration = expiryPolicy.getExpiryForCreation();\n } catch (Throwable t) {\n duration = getDefaultDuration();\n }\n expiryTime = duration.getAdjustedTime(now);\n cachedValue = new RICachedValue(valueConverter.toInternal(entry.getValue()), now, expiryTime);\n if (cachedValue.isExpiredAt(now)) {\n V previousValue = valueConverter.fromInternal(cachedValue.get());\n dispatcher.addEvent(CacheEntryExpiredListener.class, new RICacheEntryEvent<K, V>(this, key, previousValue, EXPIRED));\n }\n entries.put(internalKey, cachedValue);\n dispatcher.addEvent(CacheEntryCreatedListener.class, new RICacheEntryEvent<K, V>(this, key, entry.getValue(), CREATED));\n if (statisticsEnabled()) {\n statistics.increaseCachePuts(1);\n statistics.addPutTimeNano(System.nanoTime() - start);\n }\n break;\n case UPDATE:\n V oldValue = valueConverter.fromInternal(cachedValue.get());\n e = new RIEntry<K, V>(key, entry.getValue(), oldValue);\n writeCacheEntry(e);\n try {\n duration = expiryPolicy.getExpiryForUpdate();\n if (duration != null) {\n expiryTime = duration.getAdjustedTime(now);\n cachedValue.setExpiryTime(expiryTime);\n }\n } catch (Throwable t) {\n }\n cachedValue.setInternalValue(valueConverter.toInternal(entry.getValue()), now);\n dispatcher.addEvent(CacheEntryUpdatedListener.class, new RICacheEntryEvent<K, V>(this, key, entry.getValue(), oldValue, UPDATED));\n if (statisticsEnabled()) {\n statistics.increaseCachePuts(1);\n statistics.addPutTimeNano(System.nanoTime() - start);\n }\n break;\n case REMOVE:\n deleteCacheEntry(key);\n oldValue = cachedValue == null ? null : valueConverter.fromInternal(cachedValue.get());\n entries.remove(internalKey);\n dispatcher.addEvent(CacheEntryRemovedListener.class, new RICacheEntryEvent<K, V>(this, key, oldValue, REMOVED));\n if (statisticsEnabled()) {\n statistics.increaseCacheRemovals(1);\n statistics.addRemoveTimeNano(System.nanoTime() - start);\n }\n break;\n default:\n break;\n }\n dispatcher.dispatch(listenerRegistrations);\n } finally {\n lockManager.unLock(key);\n }\n return result;\n}\n"
"private IClass loadFromProjectOutputLocation(final SourceType type) throws JavaModelException {\n final IFile eclipseFile = createClassFileHandleForClassName(type);\n if (eclipseFile == null) {\n final String msg = format(\"String_Node_Str\", type.getFullyQualifiedName(), type.getJavaProject().getElementName());\n log.warn(msg);\n return null;\n }\n final File file = eclipseFile.getLocation().toFile();\n final ShrikeClassReaderHandle handle = new ShrikeClassReaderHandle(new ClassFileModule(file));\n ShrikeClass res;\n try {\n res = new ShrikeClass(handle, appLoader, this);\n } catch (final InvalidClassFileException e) {\n throw throwUnhandledException(e);\n }\n System.out.println(\"String_Node_Str\" + res.getName());\n clazzes.put(res.getName(), res);\n watchlist.put(eclipseFile, res.getName());\n res.getSuperclass();\n return res;\n}\n"
"public void logQueuedEnvelopes() {\n if (this.encapsulatedContext != null) {\n this.encapsulatedContext.logQueuedEnvelopes();\n }\n}\n"
"public WireParser<Void> getWireParser() {\n WireParser<Void> parser = new VanillaWireParser<>((s, in, out) -> {\n }, null);\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.text(this, (o, x) -> o.cluster = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.text(this, RequestContext::view));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.bootstrap = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.putReturnsNull = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.removeReturnsNull = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.nullOldValueOnUpdateEvent = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.viewType = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.type = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.type = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.type2 = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.type = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.typeLiteral(this, (o, x) -> o.type2 = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.endSubscriptionAfterBootstrap = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.int32(this, (o, x) -> o.throttlePeriodMs = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.int64(this, (o, x) -> o.entries = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.int64(this, (o, x) -> o.averageValueSize = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.bool(this, (o, x) -> o.dontPersist = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.int64(this, (o, x) -> o.token = x));\n return parser;\n}\n"
"public void shouldValidateFalseWithoutGenomeRelease() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String metadata = \"String_Node_Str\";\n String genomeRelease = \"String_Node_Str\";\n String author = \"String_Node_Str\";\n CommandFactory cmdf = new CommandFactory();\n String json = \"String_Node_Str\" + \"String_Node_Str\" + expid + \"String_Node_Str\" + \"String_Node_Str\" + processtype + \"String_Node_Str\" + \"String_Node_Str\" + parameters + \"String_Node_Str\" + \"String_Node_Str\" + metadata + \"String_Node_Str\" + \"String_Node_Str\" + author + \"String_Node_Str\";\n ProcessCommand processCommand = (ProcessCommand) cmdf.createProcessCommand(json, username, \"String_Node_Str\");\n assertFalse(processCommand.validate());\n}\n"
"static void getRBuildFilesParallel(SkyQueryEnvironment env, Collection<PathFragment> fileIdentifiers, Callback<Target> callback) throws QueryException, InterruptedException {\n Uniquifier<SkyKey> keyUniquifier = env.createSkyKeyUniquifier();\n RBuildFilesVisitor visitor = new RBuildFilesVisitor(env, keyUniquifier, callback);\n visitor.visitAndWaitForCompletion(env.getFileStateKeysForFileFragments(fileIdentifiers));\n}\n"
"public DependencyTree buildDependency(ParentComponent component) throws DependencyBuilderException {\n String identifier = component.getUniqueIdentifier();\n DependencyTree dependencyTree = new DependencyTree(identifier);\n DependencyOrder dependencyOrder = component.getDependencyOrder();\n if (dependencyOrder != null) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + identifier);\n }\n String killBehavior = dependencyOrder.getKillbehavior();\n if (Constants.KILL_NONE.equals(killBehavior)) {\n dependencyTree.setKillNone(true);\n } else if (Constants.KILL_ALL.equals(killBehavior)) {\n dependencyTree.setKillAll(true);\n } else if (Constants.KILL_DEPENDENTS.equals(killBehavior)) {\n dependencyTree.setKillDependent(true);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + killBehavior + \"String_Node_Str\" + \"String_Node_Str\" + dependencyTree.getId());\n }\n Set<StartupOrder> startupOrders = dependencyOrder.getStartupOrders();\n ApplicationContext foundContext;\n ApplicationContext parentContext;\n if (startupOrders != null) {\n for (StartupOrder startupOrder : startupOrders) {\n foundContext = null;\n parentContext = null;\n for (String start : startupOrder.getStartList()) {\n if (start != null) {\n ApplicationContext applicationContext = ApplicationContextFactory.getApplicationContext(start, component, dependencyTree.isKillDependent());\n String id = applicationContext.getId();\n ApplicationContext existingApplicationContext = dependencyTree.findApplicationContextWithId(id);\n if (existingApplicationContext == null) {\n if (parentContext != null) {\n parentContext.addApplicationContext(applicationContext);\n parentContext = applicationContext;\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + parentContext.getId() + \"String_Node_Str\" + id + \"String_Node_Str\");\n }\n } else {\n dependencyTree.addApplicationContext(applicationContext);\n parentContext = applicationContext;\n }\n } else {\n dependencyTree.addApplicationContext(applicationContext);\n }\n } else {\n if (foundContext == null) {\n foundContext = existingApplicationContext;\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + id + \"String_Node_Str\" + \"String_Node_Str\");\n }\n } else {\n String msg = \"String_Node_Str\" + \"String_Node_Str\";\n throw new DependencyBuilderException(msg);\n }\n }\n }\n }\n }\n }\n for (Group group1 : component.getAliasToGroupMap().values()) {\n if (dependencyTree.findApplicationContextWithId(group1.getAlias()) == null) {\n dependencyTree.addApplicationContext(new GroupContext(group1.getAlias(), dependencyTree.isKillDependent()));\n }\n }\n for (ClusterDataHolder dataHolder : component.getClusterDataMap().values()) {\n if (dependencyTree.findApplicationContextWithId(dataHolder.getClusterId()) == null) {\n dependencyTree.addApplicationContext(new ClusterContext(dataHolder.getClusterId(), dependencyTree.isKillDependent()));\n }\n }\n return dependencyTree;\n}\n"
"MotionEvent generateAbsMotion(InputDevice device, long curTime, long curTimeNano, Display display, int orientation, int metaState) {\n if (mNextNumPointers <= 0 && mLastNumPointers <= 0) {\n return null;\n }\n final int lastNumPointers = mLastNumPointers;\n final int nextNumPointers = mNextNumPointers;\n if (mNextNumPointers > MAX_POINTERS) {\n Log.w(\"String_Node_Str\", \"String_Node_Str\" + mNextNumPointers + \"String_Node_Str\" + MAX_POINTERS);\n mNextNumPointers = MAX_POINTERS;\n }\n int upOrDownPointer = updatePointerIdentifiers();\n final float[] reportData = mReportData;\n final int[] rawData = mLastData;\n final int numPointers = mLastNumPointers;\n if (DEBUG_POINTERS)\n Log.v(\"String_Node_Str\", \"String_Node_Str\" + numPointers + \"String_Node_Str\" + lastNumPointers + \"String_Node_Str\" + nextNumPointers + \"String_Node_Str\");\n for (int i = 0; i < numPointers; i++) {\n final int pos = i * MotionEvent.NUM_SAMPLE_DATA;\n reportData[pos + MotionEvent.SAMPLE_X] = rawData[pos + MotionEvent.SAMPLE_X];\n reportData[pos + MotionEvent.SAMPLE_Y] = rawData[pos + MotionEvent.SAMPLE_Y];\n reportData[pos + MotionEvent.SAMPLE_PRESSURE] = rawData[pos + MotionEvent.SAMPLE_PRESSURE];\n reportData[pos + MotionEvent.SAMPLE_SIZE] = rawData[pos + MotionEvent.SAMPLE_SIZE];\n }\n int action;\n int edgeFlags = 0;\n if (nextNumPointers != lastNumPointers) {\n if (nextNumPointers > lastNumPointers) {\n if (lastNumPointers == 0) {\n action = MotionEvent.ACTION_DOWN;\n mDownTime = curTime;\n } else {\n action = MotionEvent.ACTION_POINTER_DOWN | (upOrDownPointer << MotionEvent.ACTION_POINTER_ID_SHIFT);\n }\n } else {\n if (numPointers == 1) {\n action = MotionEvent.ACTION_UP;\n } else {\n action = MotionEvent.ACTION_POINTER_UP | (upOrDownPointer << MotionEvent.ACTION_POINTER_ID_SHIFT);\n }\n }\n currentMove = null;\n } else {\n action = MotionEvent.ACTION_MOVE;\n }\n final int dispW = display.getWidth() - 1;\n final int dispH = display.getHeight() - 1;\n int w = dispW;\n int h = dispH;\n if (orientation == Surface.ROTATION_90 || orientation == Surface.ROTATION_270) {\n int tmp = w;\n w = h;\n h = tmp;\n }\n final AbsoluteInfo absX = device.absX;\n final AbsoluteInfo absY = device.absY;\n final AbsoluteInfo absPressure = device.absPressure;\n final AbsoluteInfo absSize = device.absSize;\n for (int i = 0; i < numPointers; i++) {\n final int j = i * MotionEvent.NUM_SAMPLE_DATA;\n if (absX != null) {\n reportData[j + MotionEvent.SAMPLE_X] = ((reportData[j + MotionEvent.SAMPLE_X] - absX.minValue) / absX.range) * w;\n }\n if (absY != null) {\n reportData[j + MotionEvent.SAMPLE_Y] = ((reportData[j + MotionEvent.SAMPLE_Y] - absY.minValue) / absY.range) * h;\n }\n if (absPressure != null) {\n reportData[j + MotionEvent.SAMPLE_PRESSURE] = ((reportData[j + MotionEvent.SAMPLE_PRESSURE] - absPressure.minValue) / (float) absPressure.range);\n }\n if (absSize != null) {\n reportData[j + MotionEvent.SAMPLE_SIZE] = ((reportData[j + MotionEvent.SAMPLE_SIZE] - absSize.minValue) / (float) absSize.range);\n }\n switch(orientation) {\n case Surface.ROTATION_90:\n {\n final float temp = reportData[j + MotionEvent.SAMPLE_X];\n reportData[j + MotionEvent.SAMPLE_X] = reportData[j + MotionEvent.SAMPLE_Y];\n reportData[j + MotionEvent.SAMPLE_Y] = w - temp;\n break;\n }\n case Surface.ROTATION_180:\n {\n reportData[j + MotionEvent.SAMPLE_X] = w - reportData[j + MotionEvent.SAMPLE_X];\n reportData[j + MotionEvent.SAMPLE_Y] = h - reportData[j + MotionEvent.SAMPLE_Y];\n break;\n }\n case Surface.ROTATION_270:\n {\n final float temp = reportData[i + MotionEvent.SAMPLE_X];\n reportData[j + MotionEvent.SAMPLE_X] = h - reportData[j + MotionEvent.SAMPLE_Y];\n reportData[j + MotionEvent.SAMPLE_Y] = temp;\n break;\n }\n }\n }\n if (action == MotionEvent.ACTION_DOWN) {\n if (reportData[MotionEvent.SAMPLE_X] <= 0) {\n edgeFlags |= MotionEvent.EDGE_LEFT;\n } else if (reportData[MotionEvent.SAMPLE_X] >= dispW) {\n edgeFlags |= MotionEvent.EDGE_RIGHT;\n }\n if (reportData[MotionEvent.SAMPLE_Y] <= 0) {\n edgeFlags |= MotionEvent.EDGE_TOP;\n } else if (reportData[MotionEvent.SAMPLE_Y] >= dispH) {\n edgeFlags |= MotionEvent.EDGE_BOTTOM;\n }\n }\n if (currentMove != null) {\n if (false)\n Log.i(\"String_Node_Str\", \"String_Node_Str\" + reportData[MotionEvent.SAMPLE_X] + \"String_Node_Str\" + reportData[MotionEvent.SAMPLE_Y] + \"String_Node_Str\" + currentMove);\n currentMove.addBatch(curTime, reportData, metaState);\n if (WindowManagerPolicy.WATCH_POINTER) {\n Log.i(\"String_Node_Str\", \"String_Node_Str\" + currentMove);\n }\n return null;\n }\n MotionEvent me = MotionEvent.obtainNano(mDownTime, curTime, curTimeNano, action, numPointers, mPointerIds, reportData, metaState, xPrecision, yPrecision, device.id, edgeFlags);\n if (action == MotionEvent.ACTION_MOVE) {\n currentMove = me;\n }\n if (nextNumPointers < lastNumPointers) {\n removeOldPointer(upOrDownPointer);\n }\n return me;\n}\n"
"private void applyEnvironmentNameOnBaseFileDir(Element app) {\n ArgumentNotValid.checkNotNull(app, \"String_Node_Str\");\n List<Element> elems = XmlStructure.getAllChildrenAlongPath(app.element(Constants.COMPLETE_SETTINGS_BRANCH), Constants.SETTINGS_BITARCHIVE_BASEFILEDIR_LEAF);\n for (Element el : elems) {\n StringBuilder content = new StringBuilder(el.getText());\n if (content.indexOf(Constants.BACKSLASH) > -1) {\n content.append(Constants.BACKSLASH + environmentNameVal);\n } else {\n content += Constants.SLASH + environmentNameVal;\n }\n el.setText(content);\n }\n}\n"
"public void nativeMouseDragged(NativeMouseEvent e) {\n nativeMouseMoved(e);\n}\n"
"public void fire() throws IllegalActionException {\n super.fire();\n BigInteger intResult = null;\n int bitsInResult = 0;\n if (A.isKnown() && A.hasToken(0)) {\n FixPoint valueA = ((FixToken) A.get(0)).fixValue();\n bitsInResult = valueA.getPrecision().getNumberOfBits();\n BigInteger bigIntA = valueA.getUnscaledValue();\n intResult = bigIntA.not();\n Precision precision = new Precision(1, bitsInResult, 0);\n FixToken result = new FixToken(intResult.doubleValue(), precision);\n sendOutput(output, 0, result);\n } else {\n output.resend(0);\n }\n}\n"
"protected Collection<Throwable> call(final String inputName) throws Exception {\n if (this.XML == null) {\n return wrapException(\"String_Node_Str\" + OPTION_XML + \"String_Node_Str\");\n }\n final Map<String, Map<Integer, String>> flowcell2lane2id = new HashMap<String, Map<Integer, String>>();\n SamReader sfr = null;\n SAMFileWriter sfw = null;\n try {\n final Pattern readNameSignature = Pattern.compile(super.readNameSignatureStr);\n final JAXBContext context = JAXBContext.newInstance(ReadGroup.class, ReadGroupList.class);\n final Unmarshaller unmarshaller = context.createUnmarshaller();\n final ReadGroupList rgl = unmarshaller.unmarshal(new StreamSource(XML), ReadGroupList.class).getValue();\n if (rgl.flowcells.isEmpty()) {\n return wrapException(\"String_Node_Str\" + XML);\n }\n sfr = openSamReader(inputName);\n final SAMFileHeader header = sfr.getFileHeader().clone();\n header.addComment(\"String_Node_Str\" + getName());\n final Set<String> seenids = new HashSet<String>();\n final List<SAMReadGroupRecord> samReadGroupRecords = new ArrayList<SAMReadGroupRecord>();\n for (final FlowCell fc : rgl.flowcells) {\n final Map<Integer, String> lane2id = new HashMap<Integer, String>();\n for (final Lane lane : fc.lanes) {\n for (final ReadGroup rg : lane.readGroups) {\n if (seenids.contains(rg.id)) {\n return wrapException(\"String_Node_Str\" + rg.id + \"String_Node_Str\");\n }\n seenids.add(rg.id);\n final SAMReadGroupRecord rgrec = new SAMReadGroupRecord(rg.id);\n rgrec.setLibrary(rg.library);\n rgrec.setPlatform(rg.platform);\n rgrec.setSample(rg.sample);\n rgrec.setPlatformUnit(rg.platformunit);\n if (rg.center != null)\n rgrec.setSequencingCenter(rg.center);\n if (rg.description != null)\n rgrec.setDescription(rg.description);\n lane2id.put(lane.id, rg.id);\n samReadGroupRecords.add(rgrec);\n }\n }\n if (flowcell2lane2id.containsKey(fc.name)) {\n return wrapException(\"String_Node_Str\" + fc.name + \"String_Node_Str\");\n }\n flowcell2lane2id.put(fc.name, lane2id);\n }\n header.setReadGroups(samReadGroupRecords);\n sfw = openSAMFileWriter(header, true);\n final SAMSequenceDictionaryProgress progress = new SAMSequenceDictionaryProgress(header);\n final SAMRecordIterator iter = sfr.iterator();\n while (iter.hasNext()) {\n final SAMRecord rec = progress.watch(iter.next());\n final Matcher matcher = readNameSignature.matcher(rec.getReadName());\n final String flowcellStr;\n final String laneStr;\n if (matcher.matches()) {\n flowcellStr = matcher.group(1);\n laneStr = matcher.group(2);\n } else {\n return wrapException(\"String_Node_Str\" + rec.getReadName() + \"String_Node_Str\" + readNameSignature.pattern() + \"String_Node_Str\" + OPTION_READNAMESIGNATURESTR);\n }\n String RGID = null;\n final Map<Integer, String> lane2id = flowcell2lane2id.get(flowcellStr);\n if (lane2id == null)\n throw new RuntimeException(\"String_Node_Str\" + rec.getReadName());\n try {\n RGID = lane2id.get(Integer.parseInt(laneStr));\n } catch (final Exception e) {\n return wrapException(\"String_Node_Str\" + rec.getReadName());\n }\n if (RGID == null) {\n throw new RuntimeException(\"String_Node_Str\" + rec.getReadName() + \"String_Node_Str\" + flowcellStr + \"String_Node_Str\" + laneStr + \"String_Node_Str\" + lane2id);\n }\n rec.setAttribute(SAMTag.RG.name(), RGID);\n sfw.addAlignment(rec);\n }\n progress.finish();\n iter.close();\n LOG.info(\"String_Node_Str\");\n return RETURN_OK;\n } catch (Exception err) {\n return wrapException(err);\n } finally {\n CloserUtil.close(sfw);\n CloserUtil.close(sfr);\n }\n}\n"
"protected ItemStack findAmmo(EntityPlayer player, ItemStack bowStack) {\n if (this.isArrow(player.getHeldItem(EnumHand.OFF_HAND))) {\n return player.getHeldItem(EnumHand.OFF_HAND);\n } else if (this.isArrow(player.getHeldItem(EnumHand.MAIN_HAND))) {\n return player.getHeldItem(EnumHand.MAIN_HAND);\n } else {\n for (int i = 0; i < player.inventory.getSizeInventory(); ++i) {\n ItemStack itemstack = player.inventory.getStackInSlot(i);\n if (this.isArrow(itemstack)) {\n return itemstack;\n }\n }\n return ItemStack.EMPTY;\n }\n}\n"
"public void update() {\n if (visible)\n build();\n if (view != null)\n view.update();\n}\n"
"public org.hl7.fhir.dstu2.model.DeviceComponent convertDeviceComponent(org.hl7.fhir.dstu3.model.DeviceComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DeviceComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent();\n copyDomainResource(src, tgt);\n tgt.setType(convertCodeableConcept(src.getType()));\n tgt.setIdentifier(convertIdentifier(src.getIdentifier()));\n tgt.setLastSystemChange(src.getLastSystemChange());\n tgt.setSource(convertReference(src.getSource()));\n tgt.setParent(convertReference(src.getParent()));\n for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOperationalStatus()) tgt.addOperationalStatus(convertCodeableConcept(t));\n tgt.setParameterGroup(convertCodeableConcept(src.getParameterGroup()));\n tgt.setMeasurementPrinciple(convertMeasmntPrinciple(src.getMeasurementPrinciple()));\n for (org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent t : src.getProductionSpecification()) tgt.addProductionSpecification(convertDeviceComponentProductionSpecificationComponent(t));\n tgt.setLanguageCode(convertCodeableConcept(src.getLanguageCode()));\n return tgt;\n}\n"
"public void actionPerformed(ActionEvent actionEvent) {\n if (!getSyncStatusFrame().isVisible()) {\n getSyncStatusFrame().setVisible(true);\n } else {\n update();\n }\n}\n"
"private Alignments.AlignmentEntry transform(final int index, int indexInReducedCollection, final Alignments.AlignmentEntry source) {\n final Alignments.AlignmentEntry.Builder result = Alignments.AlignmentEntry.newBuilder(source);\n final int position = source.getPosition();\n final int targetIndex = source.getTargetIndex();\n if (index > 0 && targetIndex == previousTargetIndex) {\n result.clearPosition();\n result.clearTargetIndex();\n deltaPositions.add(position - previousPosition);\n deltaTargetIndices.add(targetIndex - previousTargetIndex);\n }\n final int queryIndex = source.getQueryIndex();\n queryIndices.add(queryIndex);\n previousPosition = position;\n previousTargetIndex = targetIndex;\n if (debug(1) && source.hasQueryLength()) {\n writtenBases += source.getQueryAlignedLength();\n }\n result.clearQueryIndex();\n recordVariationQualitiesAndClear(source, result, result.getSequenceVariationsList());\n final boolean entryMatchingReverseStrand = source.getMatchingReverseStrand();\n Alignments.RelatedAlignmentEntry link = pairLinks.code(source.hasPairAlignmentLink(), entryMatchingReverseStrand, source.getPairAlignmentLink());\n if (link == null) {\n result.clearPairAlignmentLink();\n } else {\n result.setPairAlignmentLink(link);\n }\n link = forwardSpliceLinks.code(source.hasSplicedForwardAlignmentLink(), entryMatchingReverseStrand, source.getSplicedForwardAlignmentLink());\n if (link == null) {\n result.clearSplicedForwardAlignmentLink();\n } else {\n result.setSplicedForwardAlignmentLink(link);\n }\n link = backwardSpliceLinks.code(source.hasSplicedBackwardAlignmentLink(), entryMatchingReverseStrand, source.getSplicedBackwardAlignmentLink());\n if (link == null) {\n result.clearSplicedBackwardAlignmentLink();\n } else {\n result.setSplicedBackwardAlignmentLink(link);\n }\n final Alignments.AlignmentEntry partial = result.clone().build();\n if (previousPartial != null && indexInReducedCollection >= 1 && fastEquals(previousPartial, partial)) {\n int m = multiplicities.get(indexInReducedCollection - 1);\n multiplicities.set(indexInReducedCollection - 1, m + 1);\n countAggregatedWithMultiplicity++;\n return null;\n } else {\n previousPartial = partial;\n multiplicityFieldsAllMissing &= !source.hasMultiplicity();\n multiplicities.add(Math.max(1, source.getMultiplicity()));\n }\n queryLengths.add(source.hasQueryLength() ? source.getQueryLength() : MISSING_VALUE);\n mappingQualities.add(source.hasMappingQuality() ? source.getMappingQuality() : MISSING_VALUE);\n matchingReverseStrand.add(source.hasMatchingReverseStrand() ? source.getMatchingReverseStrand() ? 1 : 0 : MISSING_VALUE);\n numberOfIndels.add(source.hasNumberOfIndels() ? source.getNumberOfIndels() : MISSING_VALUE);\n numberOfMismatches.add(source.hasNumberOfMismatches() ? source.getNumberOfMismatches() : MISSING_VALUE);\n if (source.hasInsertSize()) {\n final int readPos = source.getPosition();\n final int matePos = source.getPairAlignmentLink().getPosition();\n final int length = source.getTargetAlignedLength();\n final int pos1 = source.getMatchingReverseStrand() ? length + readPos : readPos + 1;\n final int pos2 = EntryFlagHelper.isMateReverseStrand(source) ? length + matePos : matePos + 1;\n final int insertSize = source.getInsertSize();\n int insertSizeDiff = pos2 - pos1 - insertSize;\n if (insertSize != 0) {\n }\n if (insertSize == 0) {\n insertSizeDiff = MISSING_VALUE;\n }\n insertSizes.add(source.hasInsertSize() ? insertSizeDiff : MISSING_VALUE);\n } else {\n insertSizes.add(MISSING_VALUE);\n }\n queryAlignedLengths.add(source.hasQueryAlignedLength() ? source.getQueryAlignedLength() : MISSING_VALUE);\n targetAlignedLengths.add(source.hasTargetAlignedLength() ? source.getTargetAlignedLength() : MISSING_VALUE);\n fragmentIndices.add(source.hasFragmentIndex() ? source.getFragmentIndex() : MISSING_VALUE);\n variationCount.add(source.getSequenceVariationsCount());\n queryPositions.add(source.hasQueryPosition() ? source.getQueryPosition() : MISSING_VALUE);\n sampleIndices.add(source.hasSampleIndex() ? source.getSampleIndex() : MISSING_VALUE);\n readOriginIndices.add(source.hasReadOriginIndex() && storeReadOrigins ? source.getReadOriginIndex() : MISSING_VALUE);\n pairFlags.add(source.hasPairFlags() ? source.getPairFlags() : MISSING_VALUE);\n scores.add(source.hasScore() ? Float.floatToIntBits(source.getScore()) : MISSING_VALUE);\n if (source.hasReadQualityScores()) {\n final ByteString quals = source.getReadQualityScores();\n final int size = quals.size();\n numReadQualityScores.add(size);\n for (int i = 0; i < size; i++) {\n allReadQualityScores.add(quals.byteAt(i));\n }\n } else {\n numReadQualityScores.add(0);\n }\n result.clearQueryLength();\n result.clearMappingQuality();\n result.clearMatchingReverseStrand();\n result.clearMultiplicity();\n result.clearNumberOfIndels();\n result.clearNumberOfMismatches();\n result.clearInsertSize();\n result.clearQueryAlignedLength();\n result.clearTargetAlignedLength();\n result.clearQueryPosition();\n result.clearFragmentIndex();\n result.clearReadQualityScores();\n result.clearSampleIndex();\n result.clearReadOriginIndex();\n result.clearPairFlags();\n result.clearScore();\n boolean canFullyRemoveThisOne = true;\n boolean canFullyRemoveCollection = true;\n int seqVarIndex = 0;\n for (final Alignments.SequenceVariation seqVar : result.getSequenceVariationsList()) {\n encodeVar(source.getMatchingReverseStrand(), source.getQueryLength(), seqVar);\n Alignments.SequenceVariation.Builder varBuilder = Alignments.SequenceVariation.newBuilder(seqVar);\n varBuilder.clearPosition();\n varBuilder.clearFrom();\n varBuilder.clearTo();\n varBuilder.clearToQuality();\n varBuilder.clearReadIndex();\n if (!fastEquals(EMPTY_SEQ_VAR, varBuilder.build())) {\n canFullyRemoveThisOne = false;\n canFullyRemoveCollection = false;\n }\n if (canFullyRemoveThisOne) {\n result.removeSequenceVariations(seqVarIndex);\n seqVarIndex--;\n }\n seqVarIndex++;\n }\n if (canFullyRemoveCollection) {\n result.clearSequenceVariations();\n }\n final Alignments.AlignmentEntry alignmentEntry = result.build();\n return alignmentEntry;\n}\n"
"private int getIndexForSelectedSegment(final int mouseX, final int mouseY, final Point2DArray oldPoints) {\n NFastStringMap<Integer> colorMap = new NFastStringMap<Integer>();\n AbstractDirectionalMultiPointShape<?> line = m_connector.getLine();\n ScratchPad scratch = line.getScratchPad();\n scratch.clear();\n PathPartList path = line.getPathPartList();\n int pointsIndex = 1;\n String color = MagnetManager.m_c_rotor.next();\n colorMap.put(color, pointsIndex);\n Context2D ctx = scratch.getContext();\n double strokeWidth = line.getStrokeWidth();\n ctx.setStrokeWidth(strokeWidth);\n Point2D absolutePos = WiresUtils.getLocation(m_connector.getLine());\n double offsetX = absolutePos.getX();\n double offsetY = absolutePos.getY();\n Point2D pathStart = new Point2D(offsetX, offsetY);\n Point2D segmentStart = pathStart;\n for (int i = 0; i < path.size(); i++) {\n PathPartEntryJSO entry = path.get(i);\n NFastDoubleArrayJSO points = entry.getPoints();\n switch(entry.getCommand()) {\n case PathPartEntryJSO.MOVETO_ABSOLUTE:\n {\n double x0 = points.get(0) + offsetX;\n double y0 = points.get(1) + offsetY;\n Point2D m = new Point2D(x0, y0);\n if (i == 0) {\n pathStart = m;\n }\n segmentStart = m;\n break;\n }\n case PathPartEntryJSO.LINETO_ABSOLUTE:\n {\n points = entry.getPoints();\n double x0 = points.get(0) + offsetX;\n double y0 = points.get(1) + offsetY;\n Point2D end = new Point2D(x0, y0);\n if (oldPoints.get(pointsIndex).equals(segmentStart)) {\n pointsIndex++;\n color = MagnetManager.m_c_rotor.next();\n colorMap.put(color, pointsIndex);\n }\n ctx.setStrokeColor(color);\n ctx.beginPath();\n ctx.moveTo(segmentStart.getX(), segmentStart.getY());\n ctx.lineTo(x0, y0);\n ctx.stroke();\n segmentStart = end;\n break;\n }\n case PathPartEntryJSO.CLOSE_PATH_PART:\n {\n double x0 = pathStart.getX() + offsetX;\n double y0 = pathStart.getY() + offsetY;\n Point2D end = new Point2D(x0, y0);\n if (oldPoints.get(pointsIndex).equals(segmentStart)) {\n pointsIndex++;\n color = MagnetManager.m_c_rotor.next();\n colorMap.put(color, pointsIndex);\n }\n ctx.setStrokeColor(color);\n ctx.beginPath();\n ctx.moveTo(segmentStart.getX(), segmentStart.getY());\n ctx.lineTo(x0, y0);\n ctx.stroke();\n segmentStart = end;\n break;\n }\n case PathPartEntryJSO.CANVAS_ARCTO_ABSOLUTE:\n {\n points = entry.getPoints();\n double x0 = points.get(0) + offsetX;\n double y0 = points.get(1) + offsetY;\n Point2D p0 = new Point2D(x0, y0);\n double x1 = points.get(2) + offsetX;\n double y1 = points.get(3) + offsetY;\n double r = points.get(4);\n Point2D p1 = new Point2D(x1, y1);\n Point2D end = p1;\n if (p0.equals(oldPoints.get(pointsIndex))) {\n pointsIndex++;\n color = MagnetManager.m_c_rotor.next();\n colorMap.put(color, pointsIndex);\n }\n ctx.setStrokeColor(color);\n ctx.beginPath();\n ctx.moveTo(segmentStart.getX(), segmentStart.getY());\n ctx.arcTo(x0, y0, x1, y1, r);\n ctx.stroke();\n segmentStart = end;\n break;\n }\n }\n }\n BoundingBox box = m_connector.getLine().getBoundingBox();\n int sx = (int) (box.getX() - strokeWidth - offsetX);\n int sy = (int) (box.getY() - strokeWidth - offsetY);\n ImageData backing = ctx.getImageData(sx, sy, (int) (box.getWidth() + strokeWidth + strokeWidth), (int) (box.getHeight() + strokeWidth + strokeWidth));\n color = BackingColorMapUtils.findColorAtPoint(backing, mouseX - sx, mouseY - sy);\n return null != color ? colorMap.get(color) : -1;\n}\n"
"public void copyJarToODADir() {\n File source = new File(filePath);\n File odaDir = getDriverLocation();\n File dest1 = null;\n if (odaDir != null) {\n dest1 = new File(odaDir.getAbsolutePath() + File.separator + source.getName());\n }\n if (viewDir != null) {\n dest2 = new File(viewDir.getAbsolutePath() + File.separator + source.getName());\n }\n if (source.exists()) {\n FileChannel in = null, out1 = null, out2 = null;\n try {\n if (dest1 != null) {\n try {\n out1 = new FileOutputStream(dest1).getChannel();\n } catch (FileNotFoundException e) {\n }\n }\n if (dest2 != null) {\n try {\n out2 = new FileOutputStream(dest2).getChannel();\n } catch (FileNotFoundException e) {\n }\n }\n if (out1 != null) {\n in = new FileInputStream(source).getChannel();\n long size = in.size();\n MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);\n out1.write(buf);\n }\n try {\n if (in != null) {\n in.close();\n }\n } catch (IOException e1) {\n }\n if (out2 != null) {\n in = new FileInputStream(source).getChannel();\n long size = in.size();\n MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);\n out2.write(buf);\n }\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (in != null) {\n in.close();\n }\n if (out1 != null) {\n out1.close();\n }\n if (out2 != null) {\n out2.close();\n }\n } catch (IOException e1) {\n }\n }\n }\n}\n"
"public void shouldReportErrorRow() throws Exception {\n try {\n createKS(keyspace);\n createTableAndIndexForRow();\n ResultSet rs = getResults(\"String_Node_Str\", \"String_Node_Str\", true);\n List<Row> rows = rs.all();\n Assert.assertEquals(true, rows.toString().contains(\"String_Node_Str\"));\n } finally {\n dropTable(keyspace, \"String_Node_Str\");\n dropKS(keyspace);\n }\n}\n"
"public void clearParameters() {\n List<Node> params = new ArrayList<>(getChildren());\n for (Node p : params) p.delete();\n}\n"
"private void load() {\n String line;\n BufferedReader in = null;\n File file = new File(fileFullPath);\n if (!file.exists()) {\n version = 1;\n created = Util.getTime();\n updated = Util.getTime();\n } else {\n try {\n in = new BufferedReader(new FileReader(file));\n StringBuilder sb = new StringBuilder();\n while ((line = in.readLine()) != null) {\n sb.append(line);\n }\n in.close();\n deviceStore = new JSONObject(sb.toString());\n JSONArray deviceList = deviceStore.getJSONArray(\"String_Node_Str\");\n for (int i = 0; i < deviceList.length(); i++) {\n JSONObject device = deviceList.getJSONObject(i);\n ConnectableDevice d = new ConnectableDevice();\n d.setIpAddress(device.optString(IP_ADDRESS));\n d.setFriendlyName(device.optString(FRIENDLY_NAME));\n d.setModelName(device.optString(MODEL_NAME));\n d.setModelNumber(device.optString(MODEL_NUMBER));\n JSONObject jsonServices = device.optJSONObject(SERVICES);\n if (jsonServices != null) {\n for (int j = 0; j < jsonServices.length(); j++) {\n JSONObject jsonService = (JSONObject) jsonServices.optJSONObject(j);\n ServiceDescription sd = createServiceDescription(jsonService.optJSONObject(DESCRIPTION));\n ServiceConfig sc = createServiceConfig(jsonService.optJSONObject(CONFIG));\n DeviceService myService = new DeviceService(sd, sc, this);\n d.addService(myService);\n }\n }\n storedDevices.add(d);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n}\n"
"public int hashCode() {\n if (hashCode == null) {\n int code = 0;\n for (int i = 0; i < StyleConstant.COUNT; i++) {\n int hashCode = props[i] == null ? 0 : props[i].hashCode();\n code += hashCode * 2 + 1;\n }\n }\n return code;\n}\n"
"public static boolean hasManager() {\n return getManager() != null;\n}\n"
"private NodeRef createOrResolveRecordFolder(Action action, NodeRef actionedUponNodeRef) {\n NodeRef context = filePlanService.getFilePlan(actionedUponNodeRef);\n if (context == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n } else if (!nodeService.exists(context)) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n String path = (String) action.getParameterValue(PARAM_PATH);\n String[] pathValues = ArrayUtils.EMPTY_STRING_ARRAY;\n if (path != null && path.isEmpty() == false) {\n pathValues = StringUtils.tokenizeToStringArray(path, \"String_Node_Str\", false, true);\n }\n boolean create = false;\n Boolean createValue = (Boolean) action.getParameterValue(PARAM_CREATE_RECORD_PATH);\n if (createValue != null) {\n create = createValue.booleanValue();\n }\n NodeRef recordFolder = resolvePath(context, pathValues);\n if (recordFolder == null) {\n if (create) {\n NodeRef parent = resolveParent(context, pathValues, create);\n if (parent == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n if (filePlanService.isRecordCategory(parent) == false) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n String recordFolderName = pathValues[pathValues.length - 1];\n recordFolder = recordFolderService.createRecordFolder(parent, recordFolderName);\n } else {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n }\n return recordFolder;\n}\n"
"protected Long doInBackground(Void... ton) {\n ((card_adapter) ((ArrayListFragment) getFragmentManager().findFragmentByTag(\"String_Node_Str\" + viewPager.getId() + \"String_Node_Str\")).getListAdapter()).clear_static_list();\n for (int i = 0; i < current_groups.length; i++) {\n String[] feeds_array = read_feeds_to_array(0, get_filepath(current_groups[i] + \"String_Node_Str\"));\n String[] url_array = read_feeds_to_array(1, get_filepath(current_groups[i] + \"String_Node_Str\"));\n File wait;\n String feed_path;\n List<String> titles = new ArrayList();\n List<String> descriptions = new ArrayList();\n List<String> links = new ArrayList();\n for (int k = 0; k < feeds_array.length; k++) {\n feed_path = get_filepath(feeds_array[k] + \"String_Node_Str\");\n wait = new File(feed_path);\n download_file(url_array[k], feeds_array[k] + \"String_Node_Str\");\n String[] len = read_file_to_array(feeds_array[k] + \"String_Node_Str\");\n new parsered(feed_path);\n wait.delete();\n remove_duplicates(feeds_array[k] + \"String_Node_Str\", len.length);\n titles.addAll(Arrays.asList(read_csv_to_array(\"String_Node_Str\", feed_path + \"String_Node_Str\")));\n descriptions.addAll(Arrays.asList(read_csv_to_array(\"String_Node_Str\", feed_path + \"String_Node_Str\")));\n String[] link = read_csv_to_array(\"String_Node_Str\", feed_path + \"String_Node_Str\");\n if (link[0].length() < 10)\n link = read_csv_to_array(\"String_Node_Str\", feed_path + \"String_Node_Str\");\n links.addAll(Arrays.asList(link));\n }\n }\n long lo = 1;\n return lo;\n}\n"
"public void doRun() throws Exception {\n if (debugLogging)\n log.debug(SEONConnection.this + \"String_Node_Str\");\n while (true) {\n PushDataReceiver dataRec = null;\n ByteBuffer buf = null;\n receiveLock.lock();\n try {\n dataRec = dataReceiver;\n if (dataRec == null || incomingDataBufs.size() == 0) {\n if (debugLogging)\n log.debug(SEONConnection.this + \"String_Node_Str\");\n dataReceiverRunning = false;\n if (closeAfterDataReceiver) {\n synchronized (SEONConnection.this) {\n closeConnection();\n }\n }\n return;\n }\n buf = incomingDataBufs.removeFirst();\n } finally {\n receiveLock.unlock();\n }\n log.warn(SEONConnection.this + \"String_Node_Str\");\n try {\n dataRec.receiveData(buf, null);\n } catch (Exception e) {\n log.error(SEONConnection.this + \"String_Node_Str\" + e.getClass().getSimpleName() + \"String_Node_Str\", e);\n close();\n }\n }\n}\n"
"public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n currentClass = name;\n isMessage = false;\n msgPackDefined = false;\n if (superName.equals(\"String_Node_Str\")) {\n if (!name.startsWith(\"String_Node_Str\") && !name.startsWith(\"String_Node_Str\") && !name.startsWith(\"String_Node_Str\") && !name.startsWith(\"String_Node_Str\") && !name.startsWith(\"String_Node_Str\")) {\n isEnum = true;\n }\n }\n cv.visit(version, access, name, signature, superName, interfaces);\n}\n"
"private List<String> compareConifg(String zkData, String dbData) {\n List<String> errorKeyList = new ArrayList<String>();\n Properties prop = new Properties();\n try {\n prop.load(IOUtils.toInputStream(dbData, \"String_Node_Str\"));\n } catch (IOException e) {\n LOG.error(e.toString());\n errorKeyList.add(zkData);\n return errorKeyList;\n }\n Map<String, String> zkMap = GsonUtils.parse2Map(zkData);\n for (String keyInZk : zkMap.keySet()) {\n Object valueInDb = prop.get(keyInZk);\n try {\n if (!zkMap.get(keyInZk).equals(valueInDb.toString().trim())) {\n errorKeyList.add(keyInZk);\n }\n } catch (Exception e) {\n LOG.warn(e.toString() + \"String_Node_Str\" + zkMap.get(keyInZk) + \"String_Node_Str\" + valueInDb);\n }\n }\n return errorKeyList;\n}\n"
"public void onWaypointsUpdate() {\n for (OnWaypointChangedListner listner : missionListner) {\n if (listner != null) {\n listner.onWaypointsUpdate();\n }\n }\n}\n"
"public int getCount() {\n return 5;\n}\n"
"public void test() throws Exception {\n FileUtils.deleteRecursive(getBaseDir(), true);\n FileUtils.createDirectories(getBaseDir());\n testIsEmpty();\n testOffHeapStorage();\n testNewerWriteVersion();\n testCompactFully();\n testBackgroundExceptionListener();\n testOldVersion();\n testAtomicOperations();\n testWriteBuffer();\n testWriteDelay();\n testEncryptedFile();\n testFileFormatChange();\n testRecreateMap();\n testRenameMapRollback();\n testCustomMapType();\n testCacheSize();\n testConcurrentOpen();\n testFileHeader();\n testFileHeaderCorruption();\n testIndexSkip();\n testMinMaxNextKey();\n testStoreVersion();\n testIterateOldVersion();\n testObjects();\n testExample();\n testExampleMvcc();\n testOpenStoreCloseLoop();\n testVersion();\n testTruncateFile();\n testFastDelete();\n testRollbackInMemory();\n testRollbackStored();\n testMeta();\n testInMemory();\n testLargeImport();\n testBtreeStore();\n testCompact();\n testCompactMapNotOpen();\n testReuseSpace();\n testRandom();\n testKeyValueClasses();\n testIterate();\n testCloseTwice();\n testSimple();\n testLargerThan2G();\n}\n"
"public String getAttribute(Attribute attribute) {\n if (attribute == null)\n return \"String_Node_Str\";\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getCitizen().hasTrait(NicknameTrait.class) ? getCitizen().getTrait(NicknameTrait.class).getNickname() : getName()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(ChatColor.stripColor(getName())).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n List<String> list = new ArrayList<String>();\n for (Trait trait : getCitizen().getTraits()) list.add(trait.getName());\n return new dList(list).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (attribute.hasContext(1)) {\n Class<? extends Trait> trait = CitizensAPI.getTraitFactory().getTraitClass(attribute.getContext(1));\n if (trait != null)\n return new Element(getCitizen().hasTrait(trait)).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\")) {\n List<String> list = new ArrayList<String>();\n for (Anchor anchor : getCitizen().getTrait(Anchors.class).getAnchors()) list.add(anchor.getName());\n return new dList(list).getAttribute(attribute.fulfill(2));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return (new Element(getCitizen().getTrait(Anchors.class).getAnchors().size() > 0)).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (attribute.hasContext(1) && getCitizen().getTrait(Anchors.class).getAnchor(attribute.getContext(1)) != null)\n return new dLocation(getCitizen().getTrait(Anchors.class).getAnchor(attribute.getContext(1)).getLocation()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n String flag_name;\n if (attribute.hasContext(1))\n flag_name = attribute.getContext(1);\n else\n return \"String_Node_Str\";\n attribute.fulfill(1);\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\"))\n return new Element(!FlagManager.npcHasFlag(this, flag_name)).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\") && !FlagManager.npcHasFlag(this, flag_name))\n return new Element(0).getAttribute(attribute.fulfill(1));\n if (FlagManager.npcHasFlag(this, flag_name))\n return new dList(DenizenAPI.getCurrentInstance().flagManager().getNPCFlag(getId(), flag_name)).getAttribute(attribute);\n else\n return \"String_Node_Str\";\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getId()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getOwner()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new dInventory(getEntity()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(isSpawned()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return (NPCTags.previousLocations.containsKey(getId()) ? NPCTags.previousLocations.get(getId()).getAttribute(attribute.fulfill(2)) : \"String_Node_Str\");\n if (attribute.startsWith(\"String_Node_Str\")) {\n NPC citizen = getCitizen();\n if (!citizen.hasTrait(AssignmentTrait.class) || !citizen.getTrait(AssignmentTrait.class).hasAssignment()) {\n return \"String_Node_Str\";\n } else {\n return new Element(citizen.getTrait(AssignmentTrait.class).getAssignment().getName()).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().isNavigating()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().speed()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().range()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().attackStrategy().toString()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().speedModifier()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().baseSpeed()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getLocalParameters().avoidWater()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return (getNavigator().getTargetAsLocation() != null ? new dLocation(getNavigator().getTargetAsLocation()).getAttribute(attribute.fulfill(2)) : \"String_Node_Str\");\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getEntityTarget().isAggressive()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getNavigator().getTargetType().toString()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return (getNavigator().getEntityTarget().getTarget() != null ? new dEntity(getNavigator().getEntityTarget().getTarget()).getAttribute(attribute.fulfill(2)) : \"String_Node_Str\");\n return (getEntity() != null ? new dEntity(getCitizen()).getAttribute(attribute) : new Element(identify()).getAttribute(attribute));\n}\n"
"protected Control createDialogArea(final Composite parent) {\n composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n if (message != null) {\n label = new Label(composite, SWT.NONE);\n label.setText(message);\n label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1));\n label.setFont(parent.getFont());\n }\n text = new Text(composite, getInputTextStyle());\n text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));\n text.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n validateInput();\n }\n });\n openDLG = new Button(composite, SWT.NONE);\n openDLG.setImage(ImageCache.getCreatedImage(EImage.DOTS_BUTTON.getPath()));\n openDLG.addSelectionListener(this);\n openDLG.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n openDLG.setVisible(isBtnShow);\n openDLG.setToolTipText(\"String_Node_Str\");\n errorMessageText = new Text(composite, SWT.READ_ONLY | SWT.WRAP);\n errorMessageText.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 2, 1));\n errorMessageText.setBackground(errorMessageText.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));\n setErrorMessage(errorMessage);\n if (isTransfor) {\n Group radioGroup = new Group(composite, SWT.SHADOW_NONE);\n radioGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 2, 1));\n radioGroup.setLayout(new GridLayout(1, false));\n radioGroup.setText(\"String_Node_Str\");\n transformeButton = new Button(radioGroup, SWT.RADIO);\n transformeButton.setText(\"String_Node_Str\");\n transformeButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n text.setText(\"String_Node_Str\");\n transformeButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(\"String_Node_Str\");\n label.setText(message);\n openDLG.setVisible(false);\n parent.layout(true);\n value = \"String_Node_Str\";\n }\n });\n transformeButton.setSelection(true);\n smartViewButton = new Button(radioGroup, SWT.RADIO);\n smartViewButton.setText(\"String_Node_Str\");\n smartViewButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n smartViewButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(Smart_view);\n label.setText(\"String_Node_Str\");\n openDLG.setVisible(true);\n value = Smart_view;\n }\n });\n beforeSavingButton = new Button(radioGroup, SWT.RADIO);\n beforeSavingButton.setText(\"String_Node_Str\");\n beforeSavingButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n beforeSavingButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(beforeSaving);\n label.setText(\"String_Node_Str\");\n openDLG.setVisible(true);\n value = beforeSaving;\n }\n });\n beforeDeletingButton = new Button(radioGroup, SWT.RADIO);\n beforeDeletingButton.setText(\"String_Node_Str\");\n beforeDeletingButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n beforeDeletingButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(beforeDeleting);\n label.setText(\"String_Node_Str\");\n openDLG.setVisible(true);\n value = beforeDeleting;\n }\n });\n runnableProcessButton = new Button(radioGroup, SWT.RADIO);\n runnableProcessButton.setText(\"String_Node_Str\");\n runnableProcessButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n runnableProcessButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(runnableProcess);\n label.setText(\"String_Node_Str\");\n openDLG.setVisible(true);\n value = runnableProcess;\n }\n });\n standaloneProcessButton = new Button(radioGroup, SWT.RADIO);\n standaloneProcessButton.setText(\"String_Node_Str\");\n standaloneProcessButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n standaloneProcessButton.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n text.setText(standaloneProcess);\n label.setText(\"String_Node_Str\");\n openDLG.setVisible(true);\n value = standaloneProcess;\n }\n });\n } else {\n if (value != null) {\n text.setText(value);\n }\n }\n applyDialogFont(composite);\n return composite;\n}\n"
"public void cascadeDiscoverAndPersistUnregisteredNewObjects(Object object, boolean cascade, Map newObjects, Map unregisteredExistingObjects, Map visitedObjects, UnitOfWorkImpl uow) {\n if (((DatabaseMapping) keyMapping).isOneToOneMapping()) {\n Object key = ((Map.Entry) object).getKey();\n if (uow.hasPrivateOwnedObjects()) {\n uow.removePrivateOwnedObject(((DatabaseMapping) keyMapping), key);\n }\n uow.discoverAndPersistUnregisteredNewObjects(key, cascade, newObjects, unregisteredExistingObjects, visitedObjects);\n }\n}\n"
"public void testSetCurrentUserWithRequest() throws AuthenticationException {\n System.out.println(\"String_Node_Str\");\n Authenticator instance = ESAPI.authenticator();\n instance.logout();\n String password = instance.generateStrongPassword();\n String accountName = ESAPI.randomizer().getRandomString(8, EncoderConstants.CHAR_ALPHANUMERICS);\n DefaultUser user = (DefaultUser) instance.createUser(accountName, password, password);\n user.enable();\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.addParameter(\"String_Node_Str\", accountName);\n request.addParameter(\"String_Node_Str\", password);\n MockHttpServletResponse response = new MockHttpServletResponse();\n instance.login(request, response);\n assertEquals(user, instance.getCurrentUser());\n try {\n user.disable();\n instance.login(request, response);\n } catch (Exception e) {\n }\n try {\n user.enable();\n user.lock();\n instance.login(request, response);\n } catch (Exception e) {\n }\n try {\n user.unlock();\n user.setExpirationTime(new Date());\n instance.login(request, response);\n } catch (Exception e) {\n }\n}\n"
"public static List<MetadataColumn> guessSchemaFromArray(final CsvArray csvArray, boolean isFirstLineCaption, MetadataEmfTableEditorView tableEditorView, int header) {\n List<MetadataColumn> columns = new ArrayList<MetadataColumn>();\n if (csvArray == null) {\n return columns;\n } else {\n List<String[]> csvRows = csvArray.getRows();\n if (csvRows.isEmpty()) {\n return columns;\n }\n String[] fields = csvRows.get(0);\n Integer numberOfCol = getRightFirstRow(csvRows);\n int firstRowToExtractMetadata = header;\n String[] label = new String[numberOfCol.intValue()];\n for (int i = 0; i < numberOfCol; i++) {\n label[i] = DEFAULT_LABEL + i;\n if (isFirstLineCaption) {\n if (numberOfCol <= fields.length) {\n if (fields[i] != null && !(\"String_Node_Str\").equals(fields[i])) {\n label[i] = fields[i].trim().replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n label[i] = MetadataToolHelper.validateColumnName(label[i], i);\n } else {\n label[i] = DEFAULT_LABEL + i;\n }\n } else {\n if (i < fields.length) {\n if (fields[i] != null && !(\"String_Node_Str\").equals(fields[i])) {\n label[i] = fields[i].trim().replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n label[i] = DEFAULT_LABEL + \"String_Node_Str\" + i;\n }\n } else {\n label[i] = DEFAULT_LABEL + \"String_Node_Str\" + i;\n }\n }\n }\n }\n ShadowProcessPreview.fixDuplicateNames(label);\n for (int i = 0; i < numberOfCol.intValue(); i++) {\n String globalType = null;\n int lengthValue = 0;\n int precisionValue = 0;\n int current = firstRowToExtractMetadata;\n while (globalType == null) {\n if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {\n if (current == csvRows.size()) {\n globalType = \"String_Node_Str\";\n continue;\n } else if (i >= csvRows.get(current).length) {\n globalType = \"String_Node_Str\";\n } else {\n globalType = JavaDataTypeHelper.getTalendTypeOfValue(csvRows.get(current)[i]);\n current++;\n }\n } else {\n if (current == csvRows.size()) {\n globalType = \"String_Node_Str\";\n continue;\n }\n if (i >= csvRows.get(current).length) {\n globalType = \"String_Node_Str\";\n } else {\n globalType = PerlDataTypeHelper.getTalendTypeOfValue(csvRows.get(current)[i]);\n current++;\n }\n }\n }\n for (int f = firstRowToExtractMetadata; f < csvRows.size(); f++) {\n fields = csvRows.get(f);\n if (fields.length > i) {\n String value = fields[i];\n if (!value.equals(\"String_Node_Str\")) {\n if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {\n if (!JavaDataTypeHelper.getTalendTypeOfValue(value).equals(globalType)) {\n globalType = JavaDataTypeHelper.getCommonType(globalType, JavaDataTypeHelper.getTalendTypeOfValue(value));\n }\n } else {\n if (!PerlDataTypeHelper.getTalendTypeOfValue(value).equals(globalType)) {\n globalType = PerlDataTypeHelper.getCommonType(globalType, PerlDataTypeHelper.getTalendTypeOfValue(value));\n }\n }\n if (lengthValue < value.length()) {\n lengthValue = value.length();\n }\n int positionDecimal = 0;\n if (value.indexOf(',') > -1) {\n positionDecimal = value.lastIndexOf(',');\n precisionValue = lengthValue - positionDecimal;\n } else if (value.indexOf('.') > -1) {\n positionDecimal = value.lastIndexOf('.');\n precisionValue = lengthValue - positionDecimal;\n }\n } else {\n ICoreService coreService = CoreRuntimePlugin.getInstance().getCoreService();\n IPreferenceStore preferenceStore = coreService.getPreferenceStore();\n if (preferenceStore != null) {\n if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {\n if (preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_TYPE) != null && !preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_TYPE).equals(\"String_Node_Str\")) {\n globalType = preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_TYPE);\n if (preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_LENGTH) != null && !preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_LENGTH).equals(\"String_Node_Str\")) {\n lengthValue = Integer.parseInt(preferenceStore.getString(MetadataTypeLengthConstants.VALUE_DEFAULT_LENGTH));\n }\n }\n } else {\n if (preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_TYPE) != null && !preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_TYPE).equals(\"String_Node_Str\")) {\n globalType = preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_TYPE);\n if (preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_LENGTH) != null && !preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_LENGTH).equals(\"String_Node_Str\")) {\n lengthValue = Integer.parseInt(preferenceStore.getString(MetadataTypeLengthConstants.PERL_VALUE_DEFAULT_LENGTH));\n }\n }\n }\n }\n }\n }\n }\n if (csvRows.size() <= 1 && firstRowToExtractMetadata == 1) {\n lengthValue = 255;\n }\n MetadataColumn metadataColumn = ColumnHelper.createTdColumn(tableEditorView.getMetadataEditor().getNextGeneratedColumnName(label[i]));\n metadataColumn.setPattern(\"String_Node_Str\");\n String talendType = null;\n if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {\n talendType = globalType;\n if (globalType.equals(JavaTypesManager.FLOAT.getId()) || globalType.equals(JavaTypesManager.DOUBLE.getId())) {\n metadataColumn.setPrecision(precisionValue);\n } else {\n metadataColumn.setPrecision(0);\n }\n } else {\n talendType = PerlTypesManager.getNewTypeName(MetadataTalendType.loadTalendType(globalType, \"String_Node_Str\", false));\n if (globalType.equals(\"String_Node_Str\") || globalType.equals(\"String_Node_Str\")) {\n metadataColumn.setPrecision(precisionValue);\n } else {\n metadataColumn.setPrecision(0);\n }\n }\n metadataColumn.setTalendType(talendType);\n metadataColumn.setLength(lengthValue);\n metadataColumn.setLabel(tableEditorView.getMetadataEditor().getNextGeneratedColumnName(label[i]));\n columns.add(i, metadataColumn);\n }\n }\n return columns;\n}\n"
"private boolean tryFileCache(GL gl, String file, int level, int i, int j, float xmin, float xmax, float ymin, float ymax) {\n String tileId = this.buildTileId(level, i, j);\n Cache cacheInstance = CacheManager.getCacheInstance(activeGir.getDisplayName(activeBand));\n boolean ok = true;\n if (file.exists() && !submitedTiles.contains(tileId)) {\n BufferedImage temp = null;\n try {\n try {\n temp = ImageIO.read(cacheInstance.newFile(file));\n } catch (Exception ex) {\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n temp = ImageIO.read(cacheInstance.newFile(file));\n }\n if (temp == null) {\n ok = false;\n }\n } catch (Exception ex) {\n ok = false;\n logger.warn(\"String_Node_Str\" + file + \"String_Node_Str\" + ex.getMessage());\n } finally {\n pngReader.dispose();\n }\n if (ok) {\n if (temp.getColorModel().getNumComponents() == 1) {\n temp = rescale.filter(temp, rescale.createCompatibleDestImage(temp, temp.getColorModel()));\n }\n Texture t = AWTTextureIO.newTexture(gl.getGLProfile(), temp, false);\n tcm.add(file, t);\n bindTexture(gl, t, xmin, xmax, ymin, ymax);\n }\n } else {\n ok = false;\n }\n return ok;\n}\n"
"public void beforeRun() throws Exception {\n if (operations != null && operations.length > 0) {\n final NodeEngine nodeEngine = getNodeEngine();\n final int len = operationData.length;\n operations = new Operation[len];\n for (int i = 0; i < len; i++) {\n final Operation op = (Operation) nodeEngine.toObject(operationData[i]);\n op.setNodeEngine(nodeEngine).setCaller(getCaller()).setConnection(getConnection()).setResponseHandler(ResponseHandlerFactory.createEmptyResponseHandler());\n OperationAccessor.setCallId(op, getCallId());\n operations[i] = op;\n }\n }\n}\n"
"public void baseTest() throws IOException {\n UncompressedStringArrayChunk chunk = new UncompressedStringArrayChunk(1, new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n assertEquals(1, chunk.getOffset());\n assertEquals(3, chunk.getLength());\n assertArrayEquals(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, chunk.getValues());\n assertEquals(6, chunk.getEstimatedSize());\n assertFalse(chunk.isCompressed());\n assertEquals(1d, chunk.getCompressionFactor(), 0d);\n CompactStringBuffer buffer = new CompactStringBuffer(4);\n chunk.fillBuffer(buffer, 0);\n assertArrayEquals(new String[] { null, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, buffer.toArray());\n String jsonRef = String.join(System.lineSeparator(), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n assertEquals(jsonRef, JsonUtil.toJson(chunk::writeJson));\n ObjectMapper objectMapper = JsonUtil.createObjectMapper().registerModule(new TimeSeriesJsonModule());\n List<StringArrayChunk> chunks = objectMapper.readValue(objectMapper.writeValueAsString(Arrays.asList(chunk)), TypeFactory.defaultInstance().constructCollectionType(List.class, StringArrayChunk.class));\n assertEquals(1, chunks.size());\n assertEquals(chunk, chunks.get(0));\n assertTrue(objectMapper.readValue(objectMapper.writeValueAsString(chunk), ArrayChunk.class) instanceof StringArrayChunk);\n RegularTimeSeriesIndex index = RegularTimeSeriesIndex.create(Interval.parse(\"String_Node_Str\"), Duration.ofMinutes(15));\n assertEquals(ImmutableList.of(new StringPoint(1, Instant.parse(\"String_Node_Str\").toEpochMilli(), \"String_Node_Str\"), new StringPoint(2, Instant.parse(\"String_Node_Str\").toEpochMilli(), \"String_Node_Str\"), new StringPoint(3, Instant.parse(\"String_Node_Str\").toEpochMilli(), \"String_Node_Str\")), chunk.stream(index).collect(Collectors.toList()));\n}\n"
"public void testExpression9() {\n String expression = oldExpressions[9];\n try {\n List list = extractColumnExpression(new ScriptExpression(expression));\n assertTrue(list.size() == 1);\n } catch (BirtException e) {\n fail(\"String_Node_Str\");\n }\n}\n"
"private void setWindowTitle() {\n setTitle(TITLE_NAME + \"String_Node_Str\" + (VERSION == null ? \"String_Node_Str\" : VERSION.toString()) + \"String_Node_Str\" + ((session != null && session.isConnected()) ? session.getVersionInfo() : \"String_Node_Str\"));\n}\n"
"public void build() throws ODataJPAModelException {\n JPAEdmBuilder keyViewBuilder = null;\n properties = new ArrayList<Property>();\n Set<?> jpaAttributes = null;\n if (isBuildModeComplexType) {\n jpaAttributes = complexTypeView.getJPAEmbeddableType().getAttributes();\n } else {\n jpaAttributes = entityTypeView.getJPAEntityType().getAttributes();\n }\n for (Object jpaAttribute : jpaAttributes) {\n currentAttribute = (Attribute<?, ?>) jpaAttribute;\n PersistentAttributeType attributeType = currentAttribute.getPersistentAttributeType();\n switch(attributeType) {\n case BASIC:\n currentSimpleProperty = new SimpleProperty();\n JPAEdmNameBuilder.build((JPAEdmPropertyView) JPAEdmProperty.this);\n EdmSimpleTypeKind simpleTypeKind = JPATypeConvertor.convertToEdmSimpleType(currentAttribute.getJavaType());\n currentSimpleProperty.setType(simpleTypeKind);\n currentSimpleProperty.setFacets(setFacets(currentAttribute));\n properties.add(currentSimpleProperty);\n if (((SingularAttribute<?, ?>) currentAttribute).isId()) {\n if (keyView == null) {\n keyView = new JPAEdmKey(JPAEdmProperty.this);\n keyViewBuilder = keyView.getBuilder();\n }\n keyViewBuilder.build();\n }\n break;\n case EMBEDDED:\n ComplexType complexType = complexTypeView.searchComplexType(currentAttribute.getJavaType().getName());\n if (complexType == null) {\n JPAEdmComplexTypeView complexTypeViewLocal = new JPAEdmComplexType(schemaView);\n complexTypeViewLocal.getBuilder().build();\n complexType = complexTypeViewLocal.getEdmComplexType();\n complexTypeView.addCompleTypeView(complexTypeViewLocal);\n }\n if (isBuildModeComplexType == false && entityTypeView.getJPAEntityType().getIdType().getJavaType().equals(currentAttribute.getJavaType())) {\n if (keyView == null)\n keyView = new JPAEdmKey(complexTypeView, JPAEdmProperty.this);\n keyView.getBuilder().build();\n } else {\n currentComplexProperty = new ComplexProperty();\n JPAEdmNameBuilder.build((JPAEdmComplexPropertyView) JPAEdmProperty.this, JPAEdmProperty.this);\n currentComplexProperty.setType(new FullQualifiedName(schemaView.getEdmSchema().getNamespace(), complexType.getName()));\n currentComplexProperty.setFacets(setFacets(currentAttribute));\n properties.add(currentComplexProperty);\n }\n break;\n case MANY_TO_MANY:\n case ONE_TO_MANY:\n case ONE_TO_ONE:\n case MANY_TO_ONE:\n JPAEdmAssociationEndView associationEndView = new JPAEdmAssociationEnd(entityTypeView, JPAEdmProperty.this);\n associationEndView.getBuilder().build();\n JPAEdmAssociationView associationView = schemaView.getJPAEdmAssociationView();\n if (associationView.searchAssociation(associationEndView) == null) {\n JPAEdmAssociationView associationViewLocal = new JPAEdmAssociation(associationEndView);\n associationViewLocal.getBuilder().build();\n associationView.addJPAEdmAssociationView(associationViewLocal);\n }\n JPAEdmReferentialContraintView refView = new JPAEdmReferentialConstraint(associationView, JPAEdmProperty.this);\n if (navigationPropertyView == null) {\n navigationPropertyView = new JPAEdmNavigationProperty(schemaView);\n }\n break;\n default:\n break;\n }\n }\n}\n"
"public void onCommand(CommandEvent event, EntityRef entity) {\n List<String> params = event.getParams();\n ICommand cmd = console.getCommand(event.getCommand());\n if (cmd.getRequiredParameterCount() == params.size() && cmd.isRunOnServer()) {\n console.execute(event.getCommand(), event.getParams(), entity);\n }\n}\n"
"public static Vector3 getAxisAngles(Quaternion a) {\n float yaw = (float) Math.toDegrees(Math.atan2(2 * (a.getX() * a.getY() + a.getZ() * a.getW()), 1 - 2 * (a.getY() * a.getY() + a.getZ() * a.getZ())));\n float pitch = -1 * (float) Math.toDegrees(Math.asin(2 * (a.getX() * a.getZ() - a.getW() * a.getY())));\n float roll = 180 - (float) Math.toDegrees(Math.atan2(2 * (a.getX() * a.getW() + a.getY() * a.getZ()), 1 - 2 * (a.getZ() * a.getZ() + a.getW() * a.getW())));\n return new Vector3(roll, pitch, yaw);\n}\n"
"public void addPages() {\n setWindowTitle(Messages.getString(\"String_Node_Str\"));\n setDefaultPageImageDescriptor(ImageProvider.getImageDesc(EHCatalogImage.HCATALOG_WIZ));\n if (isToolBar) {\n pathToSave = null;\n }\n propertiesPage = new HadoopPropertiesWizardPage(\"String_Node_Str\", connectionProperty, pathToSave, HCatalogRepositoryNodeType.HCATALOG, !isRepositoryObjectEditable());\n mainPage = new HCatalogWizardPage(connectionItem, isRepositoryObjectEditable(), existingNames);\n if (creation) {\n propertiesPage.setTitle(Messages.getString(\"String_Node_Str\"));\n propertiesPage.setDescription(Messages.getString(\"String_Node_Str\"));\n propertiesPage.setPageComplete(false);\n mainPage.setTitle(Messages.getString(\"String_Node_Str\"));\n mainPage.setDescription(Messages.getString(\"String_Node_Str\"));\n mainPage.setPageComplete(false);\n } else {\n propertiesPage.setTitle(Messages.getString(\"String_Node_Str\"));\n propertiesPage.setDescription(Messages.getString(\"String_Node_Str\"));\n propertiesPage.setPageComplete(isRepositoryObjectEditable());\n mainPage.setTitle(Messages.getString(\"String_Node_Str\"));\n mainPage.setDescription(Messages.getString(\"String_Node_Str\"));\n mainPage.setPageComplete(isRepositoryObjectEditable());\n }\n addPage(propertiesPage);\n addPage(mainPage);\n}\n"
"public static List<GraphTargetItem> checkClass(List<GraphTargetItem> output) {\n if (true) {\n }\n List<GraphTargetItem> ret = new ArrayList<>();\n List<GraphTargetItem> functions = new ArrayList<>();\n List<GraphTargetItem> staticFunctions = new ArrayList<>();\n List<KeyValue<GraphTargetItem, GraphTargetItem>> vars = new ArrayList<>();\n List<KeyValue<GraphTargetItem, GraphTargetItem>> staticVars = new ArrayList<>();\n GraphTargetItem className;\n GraphTargetItem extendsOp = null;\n List<GraphTargetItem> implementsOp = new ArrayList<>();\n boolean ok = true;\n int prevCount = 0;\n for (GraphTargetItem t : output) {\n if (t instanceof IfItem) {\n IfItem it = (IfItem) t;\n if (it.expression instanceof NotItem) {\n NotItem nti = (NotItem) it.expression;\n if ((nti.value instanceof GetMemberTreeItem) || (nti.value instanceof GetVariableTreeItem)) {\n if (true) {\n if ((it.onTrue.size() == 1) && (it.onTrue.get(0) instanceof SetMemberTreeItem) && (((SetMemberTreeItem) it.onTrue.get(0)).value instanceof NewObjectTreeItem)) {\n } else {\n List<GraphTargetItem> parts = it.onTrue;\n className = getWithoutGlobal(nti.value);\n if (parts.size() >= 1) {\n int ipos = 0;\n while ((parts.get(ipos) instanceof IfItem) && ((((IfItem) parts.get(ipos)).onTrue.size() == 1) && (((IfItem) parts.get(ipos)).onTrue.get(0) instanceof SetMemberTreeItem) && (((SetMemberTreeItem) ((IfItem) parts.get(ipos)).onTrue.get(0)).value instanceof NewObjectTreeItem))) {\n ipos++;\n }\n if (parts.get(ipos) instanceof SetMemberTreeItem) {\n SetMemberTreeItem smt = (SetMemberTreeItem) parts.get(ipos);\n if (smt.value instanceof StoreRegisterTreeItem) {\n parts.add(ipos, smt.value);\n smt.value = ((StoreRegisterTreeItem) smt.value).value;\n }\n }\n if (parts.get(ipos) instanceof StoreRegisterTreeItem) {\n StoreRegisterTreeItem str1 = (StoreRegisterTreeItem) parts.get(ipos);\n int classReg = str1.register.number;\n int instanceReg = -1;\n if ((parts.size() >= ipos + 2) && (parts.get(ipos + 1) instanceof SetMemberTreeItem)) {\n GraphTargetItem ti1 = ((SetMemberTreeItem) parts.get(ipos + 1)).value;\n GraphTargetItem ti2 = ((StoreRegisterTreeItem) parts.get(ipos + 0)).value;\n if (ti1 == ti2) {\n if (((SetMemberTreeItem) parts.get(ipos + 1)).value instanceof FunctionTreeItem) {\n ((FunctionTreeItem) ((SetMemberTreeItem) parts.get(ipos + 1)).value).calculatedFunctionName = (className instanceof GetMemberTreeItem) ? ((GetMemberTreeItem) className).memberName : className;\n functions.add((FunctionTreeItem) ((SetMemberTreeItem) parts.get(ipos + 1)).value);\n int pos = ipos + 2;\n if (parts.size() <= pos) {\n ok = false;\n break;\n }\n if (parts.get(pos) instanceof ExtendsTreeItem) {\n ExtendsTreeItem et = (ExtendsTreeItem) parts.get(pos);\n extendsOp = getWithoutGlobal(et.superclass);\n pos++;\n }\n if (parts.size() <= pos) {\n List<GraphTargetItem> output2 = new ArrayList<>();\n for (int i = 0; i < prevCount; i++) {\n output2.add(output.get(i));\n }\n output2.add(new ClassTreeItem(className, extendsOp, implementsOp, functions, vars, staticFunctions, staticVars));\n return output2;\n }\n if (parts.get(pos) instanceof SetMemberTreeItem) {\n SetMemberTreeItem smt = (SetMemberTreeItem) parts.get(pos);\n if (smt.value instanceof StoreRegisterTreeItem) {\n parts.add(pos, smt.value);\n smt.value = ((StoreRegisterTreeItem) smt.value).value;\n }\n }\n if (parts.get(pos) instanceof StoreRegisterTreeItem) {\n if (((StoreRegisterTreeItem) parts.get(pos)).value instanceof GetMemberTreeItem) {\n GraphTargetItem obj = ((GetMemberTreeItem) ((StoreRegisterTreeItem) parts.get(pos)).value).object;\n if (obj instanceof DirectValueTreeItem) {\n if (((DirectValueTreeItem) obj).value instanceof RegisterNumber) {\n if (((RegisterNumber) ((DirectValueTreeItem) obj).value).number == classReg) {\n instanceReg = ((StoreRegisterTreeItem) parts.get(pos)).register.number;\n }\n }\n }\n } else if (((StoreRegisterTreeItem) parts.get(pos)).value instanceof NewMethodTreeItem) {\n if (parts.get(pos + 1) instanceof SetMemberTreeItem) {\n if (((SetMemberTreeItem) parts.get(pos + 1)).value == ((StoreRegisterTreeItem) parts.get(pos)).value) {\n instanceReg = ((StoreRegisterTreeItem) parts.get(pos)).register.number;\n NewMethodTreeItem nm = (NewMethodTreeItem) ((StoreRegisterTreeItem) parts.get(pos)).value;\n GetMemberTreeItem gm = new GetMemberTreeItem(null, nm.scriptObject, nm.methodName);\n extendsOp = gm;\n } else {\n ok = false;\n break;\n }\n } else {\n ok = false;\n break;\n }\n pos++;\n } else if (((StoreRegisterTreeItem) parts.get(pos)).value instanceof NewObjectTreeItem) {\n if (parts.get(pos + 1) instanceof SetMemberTreeItem) {\n if (((SetMemberTreeItem) parts.get(pos + 1)).value == ((StoreRegisterTreeItem) parts.get(pos)).value) {\n instanceReg = ((StoreRegisterTreeItem) parts.get(pos)).register.number;\n NewObjectTreeItem nm = (NewObjectTreeItem) ((StoreRegisterTreeItem) parts.get(pos)).value;\n extendsOp = new GetVariableTreeItem(null, nm.objectName);\n } else {\n ok = false;\n break;\n }\n } else {\n ok = false;\n break;\n }\n pos++;\n } else {\n ok = false;\n break;\n }\n if (instanceReg == -1) {\n ok = false;\n break;\n }\n pos++;\n if (parts.size() <= pos) {\n List<GraphTargetItem> output2 = new ArrayList<>();\n for (int i = 0; i < prevCount; i++) {\n output2.add(output.get(i));\n }\n output2.add(new ClassTreeItem(className, extendsOp, implementsOp, functions, vars, staticFunctions, staticVars));\n return output2;\n }\n if (parts.size() <= pos) {\n ok = false;\n break;\n }\n if (parts.get(pos) instanceof ImplementsOpTreeItem) {\n ImplementsOpTreeItem io = (ImplementsOpTreeItem) parts.get(pos);\n implementsOp = io.superclasses;\n pos++;\n }\n while ((parts.size() > pos) && ok) {\n if (parts.get(pos) instanceof ScriptEndItem) {\n break;\n }\n if (parts.get(pos) instanceof SetMemberTreeItem) {\n SetMemberTreeItem smt = (SetMemberTreeItem) parts.get(pos);\n if (smt.object instanceof DirectValueTreeItem) {\n if (((DirectValueTreeItem) smt.object).value instanceof RegisterNumber) {\n if (((RegisterNumber) ((DirectValueTreeItem) smt.object).value).number == instanceReg) {\n if (smt.value instanceof FunctionTreeItem) {\n ((FunctionTreeItem) smt.value).calculatedFunctionName = smt.objectName;\n functions.add((FunctionTreeItem) smt.value);\n } else {\n vars.put(smt.objectName, smt.value);\n }\n } else if (((RegisterNumber) ((DirectValueTreeItem) smt.object).value).number == classReg) {\n if (smt.value instanceof FunctionTreeItem) {\n ((FunctionTreeItem) smt.value).calculatedFunctionName = smt.objectName;\n staticFunctions.add((FunctionTreeItem) smt.value);\n } else {\n staticVars.put(smt.objectName, smt.value);\n }\n } else {\n ok = false;\n }\n }\n } else {\n ok = false;\n }\n } else if (parts.get(pos) instanceof CallFunctionTreeItem) {\n if (((CallFunctionTreeItem) parts.get(pos)).functionName instanceof DirectValueTreeItem) {\n if (((DirectValueTreeItem) ((CallFunctionTreeItem) parts.get(pos)).functionName).value.equals(\"String_Node_Str\")) {\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n break;\n }\n pos++;\n }\n if (ok) {\n List<GraphTargetItem> output2 = new ArrayList<>();\n for (int i = 0; i < prevCount; i++) {\n output2.add(output.get(i));\n }\n output2.add(new ClassTreeItem(className, extendsOp, implementsOp, functions, vars, staticFunctions, staticVars));\n return output2;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else if (parts.get(0) instanceof SetMemberTreeItem) {\n SetMemberTreeItem sm = (SetMemberTreeItem) parts.get(0);\n if (sm.value instanceof FunctionTreeItem) {\n FunctionTreeItem f = (FunctionTreeItem) sm.value;\n if (f.actions.isEmpty()) {\n if (parts.size() == 2) {\n if (parts.get(1) instanceof ImplementsOpTreeItem) {\n ImplementsOpTreeItem iot = (ImplementsOpTreeItem) parts.get(1);\n implementsOp = iot.superclasses;\n } else {\n ok = false;\n break;\n }\n }\n List<GraphTargetItem> output2 = new ArrayList<>();\n for (int i = 0; i < prevCount; i++) {\n output2.add(output.get(i));\n }\n output2.add(new InterfaceTreeItem(sm.objectName, implementsOp));\n return output2;\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n ok = false;\n }\n } else {\n prevCount++;\n }\n if (!ok) {\n break;\n }\n }\n return output;\n}\n"
"public void topLevelAspectIsNotAnAspect() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n reporter.removeHandler(failFastHandler);\n try {\n AnalysisResult result = update(ImmutableList.of(\"String_Node_Str\"), \"String_Node_Str\");\n assertThat(keepGoing()).isTrue();\n assertThat(result.hasError()).isTrue();\n } catch (ViewCreationFailedException e) {\n }\n assertContainsEvent(\"String_Node_Str\");\n}\n"
"private void removeLocationUpdates() {\n if (mLocationRequestUpdatesEnabled) {\n mLocationManager.removeUpdates(mLocationListener);\n mLocationRequestUpdatesEnabled = false;\n }\n}\n"