content
stringlengths
40
137k
"public String toSql() {\n return \"String_Node_Str\" + field.getName() + \"String_Node_Str\" + order.toSql() + \"String_Node_Str\";\n}\n"
"private OArtifact getOoArtifact(Element mainElement) {\n OArtifact module = new OArtifact();\n NodeList nodeList = mainElement.getElementsByTagName(\"String_Node_Str\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n MetadataTag tag = MetadataTag.getByName(element.getTagName());\n switch(tag) {\n case LOAD:\n module.setLoad(Boolean.valueOf(element.getTextContent()));\n break;\n case TRUSTED:\n module.setTrusted(Boolean.valueOf(element.getTextContent()));\n break;\n case DEPENDENCY:\n module.setArtifactReference(getMavenDependency(element));\n break;\n }\n }\n }\n return module;\n}\n"
"public ListIterator<E> listIterator(int index) {\n return Collections.unmodifiableList(getContentsUnsafe()).listIterator(index);\n}\n"
"public void processAccessType() {\n String explicitAccessType = getAccess();\n String defaultAccessType = null;\n if (getDescriptor().isInheritanceSubclass()) {\n MetadataDescriptor parent = getDescriptor().getInheritanceParentDescriptor();\n while (parent != null) {\n if (!parent.getClassAccessor().hasAccess()) {\n defaultAccessType = parent.getDefaultAccess();\n break;\n }\n parent = parent.getInheritanceParentDescriptor();\n }\n }\n if (defaultAccessType == null) {\n for (MappedSuperclassAccessor mappedSuperclass : getMappedSuperclasses()) {\n if (!mappedSuperclass.hasAccess()) {\n if (mappedSuperclass.hasObjectRelationalFieldMappingAnnotationsDefined()) {\n defaultAccessType = JPA_ACCESS_FIELD;\n } else if (mappedSuperclass.hasObjectRelationalMethodMappingAnnotationsDefined()) {\n defaultAccessType = JPA_ACCESS_PROPERTY;\n }\n break;\n }\n }\n if (defaultAccessType == null) {\n if (hasObjectRelationalFieldMappingAnnotationsDefined()) {\n defaultAccessType = JPA_ACCESS_FIELD;\n } else if (hasObjectRelationalMethodMappingAnnotationsDefined()) {\n defaultAccessType = JPA_ACCESS_PROPERTY;\n } else {\n if (getDescriptor().getDefaultAccess() != null) {\n defaultAccessType = getDescriptor().getDefaultAccess();\n } else {\n defaultAccessType = JPA_ACCESS_FIELD;\n }\n }\n }\n }\n getDescriptor().setDefaultAccess(defaultAccessType);\n if (explicitAccessType == null) {\n getLogger().logConfigMessage(MetadataLogger.ACCESS_TYPE, defaultAccessType, getJavaClass());\n }\n getDescriptor().setAccessTypeOnClassDescriptor(getAccessType());\n}\n"
"public void disable() throws EucalyptusCloudException {\n if (!this.shouldDisable())\n throw new EucalyptusCloudException(\"String_Node_Str\");\n this.lockLauncher(launcherId);\n try {\n final String emi = ImagingServiceProperties.IMAGING_WORKER_EMI;\n final String instanceType = ImagingServiceProperties.IMAGING_WORKER_INSTANCE_TYPE;\n final String keyName = ImagingServiceProperties.IMAGING_WORKER_KEYNAME;\n final String ntpServers = ImagingServiceProperties.IMAGING_WORKER_NTP_SERVER;\n ImagingServiceLauncher launcher = null;\n try {\n ImagingServiceLauncher.Builder builder = new ImagingServiceLauncher.Builder(launcherId);\n launcher = builder.withSecurityGroup().withRole().withInstanceProfile().withServerCertificate(SERVER_CERTIFICATE_NAME).withVolumeOperations().withS3Operations().withUserData().withLaunchConfiguration(emi, instanceType, keyName).withAutoScalingGroup().withTag(DEFAULT_LAUNCHER_TAG).build();\n } catch (final Exception ex) {\n throw new EucalyptusCloudException(\"String_Node_Str\", ex);\n }\n try {\n launcher.destroy();\n } catch (final Exception ex) {\n throw new EucalyptusCloudException(\"String_Node_Str\", ex);\n }\n } catch (final Exception ex) {\n this.releaseLauncher(launcherId);\n throw ex;\n }\n}\n"
"protected Composite getComponent(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.POPUP_SERIES_CURVE_FITTING);\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glMain = new GridLayout();\n glMain.numColumns = 2;\n cmpContent.setLayout(glMain);\n }\n Composite cmpLeft = new Composite(cmpContent, SWT.NONE);\n {\n GridLayout gl = new GridLayout();\n gl.numColumns = 2;\n cmpLeft.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_VERTICAL);\n cmpLeft.setLayoutData(gd);\n }\n lblValue = new Label(cmpLeft, SWT.NONE);\n {\n GridData gd = new GridData();\n lblValue.setLayoutData(gd);\n lblValue.setText(Messages.getString(\"String_Node_Str\"));\n }\n List keys = null;\n if (getContext().getUIServiceProvider() != null) {\n keys = getContext().getUIServiceProvider().getRegisteredKeys();\n }\n txtValue = new ExternalizedTextEditorComposite(cmpLeft, SWT.BORDER | SWT.SINGLE, -1, -1, keys, getContext().getUIServiceProvider(), getTrendline().getLabel().getCaption().getValue());\n {\n GridData gd = new GridData();\n gd.widthHint = 125;\n txtValue.setLayoutData(gd);\n txtValue.addListener(this);\n }\n lblAnchor = new Label(cmpLeft, SWT.NONE);\n GridData gdLBLAnchor = new GridData();\n lblAnchor.setLayoutData(gdLBLAnchor);\n lblAnchor.setText(Messages.getString(\"String_Node_Str\"));\n cmbAnchor = new Combo(cmpLeft, SWT.DROP_DOWN | SWT.READ_ONLY);\n GridData gdCBAnchor = new GridData(GridData.FILL_HORIZONTAL);\n cmbAnchor.setLayoutData(gdCBAnchor);\n cmbAnchor.addSelectionListener(this);\n cmbAnchor.setVisibleItemCount(30);\n Composite cmpRight = new Composite(cmpContent, SWT.NONE);\n {\n cmpRight.setLayout(new FillLayout());\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n cmpRight.setLayoutData(gd);\n }\n trendLineText = new LineAttributesComposite(cmpRight, SWT.NONE, getContext(), getTrendline().getLineAttributes(), true, true, false);\n trendLineText.addListener(this);\n Group cmpLabel = new Group(cmpContent, SWT.NONE);\n {\n GridLayout gl = new GridLayout(2, false);\n cmpLabel.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.horizontalSpan = 2;\n cmpLabel.setLayoutData(gd);\n cmpLabel.setText(Messages.getString(\"String_Node_Str\"));\n }\n Composite cmpLabelInner = new Composite(cmpLabel, SWT.NONE);\n {\n GridLayout gl = new GridLayout(2, false);\n cmpLabelInner.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_BOTH);\n gd.verticalAlignment = SWT.BEGINNING;\n cmpLabelInner.setLayoutData(gd);\n }\n btnVisible = new Button(cmpLabelInner, SWT.CHECK);\n GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL);\n gdCBVisible.horizontalSpan = 2;\n btnVisible.setLayoutData(gdCBVisible);\n btnVisible.setSelection(getTrendline().getLabel().isVisible());\n btnVisible.setText(Messages.getString(\"String_Node_Str\"));\n btnVisible.addSelectionListener(this);\n lblFont = new Label(cmpLabelInner, SWT.NONE);\n GridData gdLFont = new GridData();\n lblFont.setLayoutData(gdLFont);\n lblFont.setText(Messages.getString(\"String_Node_Str\"));\n fdcFont = new FontDefinitionComposite(cmpLabelInner, SWT.NONE, getContext(), getTrendline().getLabel().getCaption().getFont(), getTrendline().getLabel().getCaption().getColor(), false);\n GridData gdFDCFont = new GridData(GridData.FILL_BOTH);\n gdFDCFont.widthHint = fdcFont.getPreferredSize().x;\n gdFDCFont.grabExcessVerticalSpace = false;\n fdcFont.setLayoutData(gdFDCFont);\n fdcFont.addListener(this);\n lblFill = new Label(cmpLabelInner, SWT.NONE);\n GridData gdLFill = new GridData();\n lblFill.setLayoutData(gdLFill);\n lblFill.setText(Messages.getString(\"String_Node_Str\"));\n fccBackground = new FillChooserComposite(cmpLabelInner, SWT.NONE, getContext(), getTrendline().getLabel().getBackground(), false, false);\n GridData gdFCCBackground = new GridData(GridData.FILL_BOTH);\n fccBackground.setLayoutData(gdFCCBackground);\n fccBackground.addListener(this);\n lblShadow = new Label(cmpLabelInner, SWT.NONE);\n GridData gdLBLShadow = new GridData();\n lblShadow.setLayoutData(gdLBLShadow);\n lblShadow.setText(Messages.getString(\"String_Node_Str\"));\n fccShadow = new FillChooserComposite(cmpLabelInner, SWT.NONE, getContext(), getTrendline().getLabel().getShadowColor(), false, false, false);\n GridData gdFCCShadow = new GridData(GridData.FILL_BOTH);\n fccShadow.setLayoutData(gdFCCShadow);\n fccShadow.addListener(this);\n Group grpOutline = new Group(cmpLabel, SWT.NONE);\n grpOutline.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n grpOutline.setLayout(new FillLayout());\n grpOutline.setText(Messages.getString(\"String_Node_Str\"));\n outlineText = new LineAttributesComposite(grpOutline, SWT.NONE, getContext(), getTrendline().getLabel().getOutline(), true, true, true);\n outlineText.addListener(this);\n icLabel = new InsetsComposite(cmpLabel, SWT.NONE, 1, getTrendline().getLabel().getInsets(), getChart().getUnits(), getContext().getUIServiceProvider());\n GridData gdICBlock = new GridData(GridData.FILL_HORIZONTAL);\n gdICBlock.horizontalSpan = 2;\n icLabel.setLayoutData(gdICBlock);\n icLabel.addListener(this);\n populateLists();\n setState(btnVisible.getSelection());\n return cmpContent;\n}\n"
"public void dumpConfig() {\n super.dumpConfig();\n Message.debug(\"String_Node_Str\");\n for (ListIterator iter = getIvyPatterns().listIterator(); iter.hasNext(); ) {\n String p = (String) iter.next();\n Message.debug(\"String_Node_Str\" + p);\n }\n Message.debug(\"String_Node_Str\");\n for (ListIterator iter = _artifactPatterns.listIterator(); iter.hasNext(); ) {\n String p = (String) iter.next();\n Message.debug(\"String_Node_Str\" + p);\n }\n}\n"
"private void initToolBar(Composite parent) {\n Composite toolBarComp = new Composite(parent, SWT.BORDER);\n GridLayout layout = new GridLayout();\n layout.numColumns = 4;\n GridData data = new GridData(GridData.FILL_HORIZONTAL);\n toolBarComp.setLayout(layout);\n toolBarComp.setLayoutData(data);\n addTreeNodeBtn = new AddTreeNodeButton(toolBarComp, this);\n removeNodeBtn = new RemoveTreeNodeButton(toolBarComp, this);\n moveUpBtn = new MoveUpTreeNodeButton(toolBarComp, this);\n moveDown = new MoveDownTreeNodeButton(toolBarComp, this);\n}\n"
"public void addSession(String channelID, String sessionName) {\n sessionNames.add(new SessionInstance(channelID, sessionName, getPreferenceStore().getString(ClientPreferencePage.LOCAL_NAME), Calendar.getInstance().getTime()));\n if (presenceChannel != null) {\n try {\n presenceChannel.sendMessage((new SharedEditorSessionList(sessionNames)).toByteArray());\n } catch (ECFException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}\n"
"public void addTo(final DBObject obj) {\n if (joinMethod == CriteriaJoin.AND) {\n Map<String, Integer> fields = new HashMap<String, Integer>();\n for (final Criteria child : children) {\n if (null != child.getFieldName()) {\n fields.add(child.getFieldName());\n nonNullFieldNames++;\n }\n }\n if (fields.size() < nonNullFieldNames) {\n final BasicDBList and = new BasicDBList();\n for (final Criteria child : children) {\n final BasicDBObject container = new BasicDBObject();\n child.addTo(container);\n and.add(container);\n }\n obj.put(\"String_Node_Str\", and);\n } else {\n for (final Criteria child : children) {\n child.addTo(obj);\n }\n }\n } else if (joinMethod == CriteriaJoin.OR) {\n final BasicDBList or = new BasicDBList();\n for (final Criteria child : children) {\n final BasicDBObject container = new BasicDBObject();\n child.addTo(container);\n or.add(container);\n }\n obj.put(\"String_Node_Str\", or);\n }\n}\n"
"private void loadEdges(File dir, Map<String, String> eMap) throws IOException, SchemaViolationException {\n logger.info(\"String_Node_Str\");\n WorkLoadSchema s = this.workload.getSchema();\n for (Map.Entry<String, String> ent : eMap.entrySet()) {\n HashSet<String> fileSet = new HashSet<>();\n final String fNamePrefix = ent.getValue();\n fileSet.addAll(Arrays.asList(dir.list(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.matches(fNamePrefix + \"String_Node_Str\");\n }\n })));\n for (String fName : fileSet) {\n logger.info(\"String_Node_Str\", fName);\n BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(dir, fName)), \"String_Node_Str\"));\n String line = br.readLine();\n if (line == null)\n throw new IOException(\"String_Node_Str\" + fName);\n String[] header = line.split(CSVSPLIT);\n try {\n validateEHeader(s, ent.getKey(), header);\n } catch (SchemaViolationException e) {\n br.close();\n throw e;\n }\n int rowLength = header.length;\n String eLabel = ent.getKey().split(TUPLESPLIT)[1];\n JanusGraphTransaction transaction = graph.newTransaction();\n try {\n int counter = 0;\n while ((line = br.readLine()) != null) {\n if (counter % 100 == 0) {\n logger.info(\"String_Node_Str\" + counter);\n }\n String[] row = line.split(CSVSPLIT);\n if (row.length < 2 || row[0].equals(\"String_Node_Str\") || row[1].equals(\"String_Node_Str\")) {\n br.close();\n graph.close();\n throw new NumberFormatException(\"String_Node_Str\" + fName + \"String_Node_Str\" + Arrays.toString(row));\n }\n Long idTail = Long.parseLong(row[0]);\n Long idHead = Long.parseLong(row[1]);\n Vertex tail = graph.traversal().V().has(header[0], idTail).next();\n Vertex head = graph.traversal().V().has(header[1], idHead).next();\n Edge edge = tail.addEdge(eLabel, head);\n for (int i = 2; i < row.length; i++) {\n edge.property(eLabel + \"String_Node_Str\" + header[i], parseEntry(row[i], s.getEPropertyClass(eLabel, header[i]).getSimpleName()));\n }\n counter++;\n }\n } catch (Exception e) {\n logger.error(\"String_Node_Str\", ent.getKey(), line);\n br.close();\n graph.close();\n e.printStackTrace();\n } finally {\n br.close();\n }\n transaction.commit();\n }\n logger.info(\"String_Node_Str\", ent.getKey());\n }\n logger.info(\"String_Node_Str\");\n}\n"
"public void hide(PageView pageView) {\n if (pageView.getVisibility() == Visibility.focused) {\n showPreviousPage();\n }\n if (currentPageView == pageView) {\n currentPageView = null;\n }\n if (previouslyVisiblePageView == pageView) {\n previouslyVisiblePageView = null;\n }\n visiblePages.remove(pageView);\n hiddenPages.add(pageView);\n pageView.setVisibility(Visibility.closed);\n view.removePageView(pageView);\n hablarEventBus.fireEvent(new PageClosedEvent(pageView));\n}\n"
"public void listChanged(ListEvent<E> listChanges) {\n Assert.assertEquals(source, listChanges.getSource());\n assertEventsInIncreasingOrder(listChanges);\n if (verbose)\n System.out.println(name + \"String_Node_Str\" + listChanges + \"String_Node_Str\" + source.size() + \"String_Node_Str\" + source);\n List<Integer> changedIndices = new ArrayList<Integer>();\n int highestChangeIndex = 0;\n if (listChanges.isReordering()) {\n int[] reorderMap = listChanges.getReorderMap();\n Assert.assertEquals(expected.size(), reorderMap.length);\n List<E> newExpectedValues = new ArrayList<E>(expected.size());\n for (int i = 0; i < reorderMap.length; i++) {\n newExpectedValues.add(i, expected.get(reorderMap[i]));\n changedIndices.add(new Integer(i));\n }\n expected = newExpectedValues;\n changeCounts.add(new Integer(2 * reorderMap.length));\n reorderings.add(Boolean.TRUE);\n } else {\n int changesForEvent = 0;\n while (listChanges.next()) {\n changesForEvent++;\n int changeIndex = listChanges.getIndex();\n int changeType = listChanges.getType();\n changedIndices.add(new Integer(changeIndex));\n Assert.assertTrue(changeIndex >= 0);\n Assert.assertTrue(changeIndex >= highestChangeIndex);\n highestChangeIndex = changeIndex;\n if (changeType == ListEvent.INSERT) {\n expected.add(changeIndex, source.get(changeIndex));\n } else if (changeType == ListEvent.DELETE) {\n Object removed = expected.remove(changeIndex);\n if (previousElementTracked) {\n Object reportedRemoved = listChanges.getPreviousValue();\n Assert.assertSame(removed, reportedRemoved);\n }\n } else if (changeType == ListEvent.UPDATE) {\n Object replaced = expected.set(changeIndex, source.get(changeIndex));\n if (previousElementTracked) {\n Object reportedReplaced = listChanges.getPreviousValue();\n Assert.assertSame(replaced, reportedReplaced);\n }\n }\n }\n changeCounts.add(new Integer(changesForEvent));\n reorderings.add(Boolean.FALSE);\n }\n Assert.assertEquals(expected.size(), source.size());\n for (int i = 0; i < expected.size(); i++) {\n Assert.assertSame(\"String_Node_Str\" + i, expected.get(i), source.get(i));\n }\n}\n"
"public String addOrder() {\n Orders orderEntity = transformToOrderEntityBean(order);\n orderService.addOrder(orderEntity);\n orderIdPass = orderEntity.getOrderId();\n Map sessionAttributes = ActionContext.getContext().getSession();\n sessionAttributes.put(\"String_Node_Str\", orderIdPass);\n ctr = (Integer) sessionAttributes.get(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + ctr);\n return SUCCESS;\n}\n"
"public void run() {\n while (isStarted) revolve();\n}\n"
"public Call getCall() {\n return (callPanel != null) ? callPanel.getCall() : null;\n}\n"
"public void run(Connection con) {\n m_IO = con.getTerminalIO();\n PowerManager pm = (PowerManager) RemoteKeyboardService.self.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);\n wakeLock.acquire();\n Resources res = RemoteKeyboardService.self.getResources();\n RemoteKeyboardService.self.updateNotification(con.getConnectionData().getInetAddress());\n try {\n titleBar = new Titlebar(m_IO, \"String_Node_Str\");\n titleBar.setTitleText(res.getString(R.string.terminal_title));\n titleBar.setAlignment(Titlebar.ALIGN_LEFT);\n titleBar.setForegroundColor(ColorHelper.WHITE);\n titleBar.setBackgroundColor(ColorHelper.BLUE);\n content = new Label(m_IO, \"String_Node_Str\");\n content.setLocation(0, 2);\n statusBar = new Statusbar(m_IO, \"String_Node_Str\");\n statusBar.setStatusText(res.getString(R.string.terminal_statusbar));\n statusBar.setAlignment(Titlebar.ALIGN_LEFT);\n statusBar.setForegroundColor(ColorHelper.WHITE);\n statusBar.setBackgroundColor(ColorHelper.BLUE);\n showText(getWelcomeScreen());\n int in;\n int offset = 0;\n InputAction inputAction = new InputAction();\n ActionRunner actionRunner = new ActionRunner();\n while (true) {\n in = m_IO.read();\n if (in == TerminalIO.IOERROR || in == TerminalIO.HANDLED) {\n break;\n }\n if (offset == 0) {\n inputAction = getFreeInputAction();\n inputAction.inUse = true;\n inputAction.symbol = in;\n inputAction.sequence = inputAction.buffer[InputAction.getBuffer(in)];\n }\n inputAction.sequence[offset] = (byte) in;\n offset++;\n if (offset == inputAction.sequence.length) {\n offset = 0;\n inputAction.myService = RemoteKeyboardService.self;\n long now = SystemClock.uptimeMillis();\n ;\n if ((now - lastEvent) > 30) {\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n }\n }\n lastEvent = now;\n RemoteKeyboardService.self.handler.post(inputAction);\n }\n }\n m_IO.eraseScreen();\n m_IO.flush();\n } catch (EOFException e) {\n } catch (IOException e) {\n Log.w(TAG, e);\n } finally {\n RemoteKeyboardService.self.updateNotification(null);\n wakeLock.release();\n self = null;\n }\n}\n"
"public UserContext getUserContext(AuthenticatedUser authenticatedUser) throws GuacamoleException {\n logger.debug(\"String_Node_Str\", authenticatedUser.getCredentials().getUsername());\n return new QuickConnectUserContext(this, authenticatedUser.getIdentifier());\n}\n"
"public void init() {\n table.setFixedCellSize(GUI.font.getValue().getSize() + 5);\n table.getSelectionModel().setSelectionMode(MULTIPLE);\n table.setColumnStateFacory(f -> {\n double w = f == PATH || f == TITLE ? 150 : 50;\n return new ColumnInfo(f.toString(), f.ordinal(), f.isCommon(), w);\n });\n table.setColumnFactory(f -> {\n TableColumn<Metadata, ?> c = new TableColumn(f.toString());\n c.setCellValueFactory(f == RATING ? cf -> {\n if (cf.getValue() == null)\n return null;\n String s = cf.getValue().getRatingPercentAsString();\n if (s.length() > 4)\n s = s.substring(0, 4);\n return new ReadOnlyObjectWrapper(s);\n } : cf -> {\n if (cf.getValue() == null)\n return null;\n return new ReadOnlyObjectWrapper(cf.getValue().getField(f));\n });\n c.setCellValueFactory(cf -> {\n if (cf.getValue() == null)\n return null;\n return new ReadOnlyObjectWrapper(cf.getValue().getField(f));\n });\n c.setCellFactory(f == RATING ? (Callback) App.ratingCell.getValue() : DEFAULT_ALIGNED_CELL_FACTORY(f.getType(), \"String_Node_Str\"));\n c.setUserData(f);\n if (f == Metadata.Field.TRACK || f == Metadata.Field.DISC || f == Metadata.Field.TRACKS_TOTAL || f == Metadata.Field.DISCS_TOTAL) {\n c.setComparator((Comparator) new Comparator<Integer>() {\n public int compare(Integer o1, Integer o2) {\n return Integer.compare(o1, o2);\n }\n });\n }\n return c;\n });\n App.ratingCell.addListener((o, ov, nv) -> table.getColumn(RATING).ifPresent(c -> c.setCellFactory((Callback) nv)));\n columnInfo = table.getDefaultColumnInfo();\n table.addEventHandler(MOUSE_CLICKED, e -> {\n if (table.isTableHeaderVisible() && e.getY() < table.getTableHeaderHeight())\n return;\n if (e.getButton() == PRIMARY) {\n if (e.getClickCount() == 2) {\n Playlist p = new Playlist(listM(table.getItems(), Metadata::toPlaylistItem));\n PlaylistManager.playPlaylistFrom(p, table.getSelectionModel().getSelectedIndex());\n }\n } else if (e.getButton() == SECONDARY) {\n double h = table.isTableHeaderVisible() ? e.getY() - table.getTableHeaderHeight() : e.getY();\n int i = (int) floor(h / table.getFixedCellSize());\n if (!table.getSelectionModel().isSelected(i))\n table.getSelectionModel().clearAndSelect(i);\n contxt_menu.show(table, e);\n e.consume();\n }\n });\n table.setOnKeyReleased(e -> {\n if (e.getCode() == ENTER) {\n if (!table.getSelectionModel().isEmpty()) {\n Playlist p = new Playlist(listM(table.getItems(), Metadata::toPlaylistItem));\n PlaylistManager.playPlaylistFrom(p, table.getSelectionModel().getSelectedIndex());\n }\n } else if (e.getCode() == DELETE)\n DB.removeItems(table.getSelectedItems());\n else if (e.getCode() == ESCAPE)\n table.getSelectionModel().clearSelection();\n });\n table.setOnDragDetected(e -> {\n if (e.getButton() == PRIMARY && e.getY() > table.getFixedCellSize()) {\n Dragboard db = table.startDragAndDrop(TransferMode.COPY);\n DragUtil.setItemList(table.getSelectedItemsCopy(), db);\n e.consume();\n }\n });\n table.addEventFilter(MOUSE_PRESSED, consumeOnSecondaryButton);\n table.addEventFilter(MOUSE_RELEASED, consumeOnSecondaryButton);\n table.addEventFilter(ContextMenuEvent.ANY, Event::consume);\n table.setOnScroll(Event::consume);\n d2 = Player.librarySelectedItemES.feedFrom(nonNullValuesOf(table.getSelectionModel().selectedItemProperty()));\n d3 = Player.librarySelectedItemsES.feedFrom(changesOf(table.getSelectionModel().getSelectedItems()).map(i -> table.getSelectedItemsCopy()));\n taskInfo.setVisible(false);\n InfoTable<Metadata> infoL = new InfoTable(new Label(), table);\n infoL.textFactory = (all, list) -> {\n double d = list.stream().mapToDouble(Metadata::getLengthInMs).sum();\n return DEFAULT_TEXT_FACTORY.apply(all, list) + \"String_Node_Str\" + new FormattedDuration(d);\n };\n Region padding = new Region();\n HBox controls = new HBox(controlsBar, infoL.node, padding, taskInfo.message, taskInfo.progressIndicator);\n controls.setSpacing(7);\n controls.setAlignment(Pos.CENTER_LEFT);\n controls.setPadding(new Insets(0, 5, 0, 0));\n HBox.setHgrow(padding, ALWAYS);\n addMenu.setText(\"String_Node_Str\");\n remMenu.setText(\"String_Node_Str\");\n Icons.setIcon(addMenu, FontAwesomeIconName.PLUS, \"String_Node_Str\", \"String_Node_Str\");\n Icons.setIcon(remMenu, FontAwesomeIconName.MINUS, \"String_Node_Str\", \"String_Node_Str\");\n content.getChildren().addAll(table.getRoot(), controls);\n VBox.setVgrow(table.getRoot(), ALWAYS);\n}\n"
"public void broadcast(Token[] tokenArray, int vectorLength) throws NoRoomException, IllegalActionException {\n TypedIOPort executorPort = (TypedIOPort) ModelExecutor.this.getPort(getName());\n executorPort.broadcast(tokenArray, vectorLength);\n}\n"
"public String getRule() {\n return \"String_Node_Str\" + super.getRule();\n}\n"
"private void createBuildContextPathGroup(final Composite container) {\n final Group buildContextPathLocationGroup = new Group(container, SWT.BORDER);\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, false).applyTo(buildContextPathLocationGroup);\n GridLayoutFactory.fillDefaults().margins(6, 6).numColumns(3).applyTo(buildContextPathLocationGroup);\n buildContextPathLocationGroup.setText(LaunchMessages.getString(BUILD_CONTEXT_PATH_LABEL));\n this.buildContextPathText = new Text(buildContextPathLocationGroup, SWT.BORDER);\n this.buildContextPathText.addModifyListener(new LaunchConfigurationChangeListener());\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(3, 1).applyTo(this.buildContextPathText);\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(new Label(buildContextPathLocationGroup, SWT.NONE));\n final Button browseWorkspaceButton = new Button(buildContextPathLocationGroup, SWT.NONE);\n browseWorkspaceButton.setText(LaunchMessages.getString(BROWSE_WORKSPACE));\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(false, false).applyTo(browseWorkspaceButton);\n browseWorkspaceButton.addSelectionListener(onBrowseWorkspace(buildContextPathText, IContainer.class));\n final Button browseFileSystemButton = new Button(buildContextPathLocationGroup, SWT.NONE);\n browseFileSystemButton.setText(LaunchMessages.getString(BROWSE_FILESYSTEM));\n GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(false, false).applyTo(browseFileSystemButton);\n browseFileSystemButton.addSelectionListener(onBrowseFileSystemForDirectory(this.buildContextPathText, this.buildContextPathWorkspaceRelative));\n}\n"
"public final Status appendBatch(List<AvroFlumeEvent> events) {\n MetricsHelper helper = new MetricsHelper(this.getClass(), this.metrics, this.collector.getMetricsQualifier(), \"String_Node_Str\");\n LOG.trace(\"String_Node_Str\" + events);\n if (!collector.getAuthenticator().authenticateRequest(events.get(0))) {\n LOG.warn(\"String_Node_Str\");\n helper.finish(Error);\n return Status.FAILED;\n }\n try {\n List<Event> convertedEvents = convertFlume2Event(events, helper);\n if (!collector.getAuthenticator().authenticateRequest(convertedEvents.get(0))) {\n LOG.warn(\"String_Node_Str\");\n helper.finish(Error);\n return Status.FAILED;\n }\n this.collector.getConsumer().consumeEvents(convertedEvents);\n helper.finish(Success);\n return Status.OK;\n } catch (Exception e) {\n LOG.warn(\"String_Node_Str\" + e.getMessage());\n helper.finish(Error);\n return Status.FAILED;\n }\n}\n"
"private boolean addDefineRowToTable(XhtmlNode t, ConceptDefinitionComponent c, int i, boolean comment, boolean deprecated, Map<ConceptMap, String> maps) {\n boolean hasExtensions = false;\n XhtmlNode tr = t.addTag(\"String_Node_Str\");\n XhtmlNode td = tr.addTag(\"String_Node_Str\");\n String s = Utilities.padLeft(\"String_Node_Str\", '.', i * 2);\n td.addText(s);\n td.addText(c.getCode());\n if (c.getCode() != null) {\n XhtmlNode a = td.addTag(\"String_Node_Str\");\n a.setAttribute(\"String_Node_Str\", Utilities.nmtokenize(c.getCode()));\n a.addText(\"String_Node_Str\");\n }\n td = tr.addTag(\"String_Node_Str\");\n if (c.getDisplay() != null)\n td.addText(c.getDisplay());\n td = tr.addTag(\"String_Node_Str\");\n if (c.getDefinition() != null)\n smartAddText(td, c.getDefinition());\n if (deprecated) {\n td = tr.addTag(\"String_Node_Str\");\n s = ToolingExtensions.getDeprecated(c);\n if (s != null) {\n smartAddText(td, s);\n hasExtensions = true;\n }\n }\n if (comment) {\n td = tr.addTag(\"String_Node_Str\");\n s = ToolingExtensions.getComment(c);\n if (s != null) {\n smartAddText(td, s);\n hasExtensions = true;\n }\n }\n for (ConceptMap m : maps.keySet()) {\n td = tr.addTag(\"String_Node_Str\");\n List<ConceptMapElementMapComponent> mappings = findMappingsForCode(c.getCode(), m);\n boolean first = true;\n for (ConceptMapElementMapComponent mapping : mappings) {\n if (!first)\n td.addTag(\"String_Node_Str\");\n first = false;\n XhtmlNode span = td.addTag(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", mapping.getEquivalence() == null ? \"String_Node_Str\" : mapping.getEquivalence().toString());\n span.addText(getCharForEquivalence(mapping));\n a = td.addTag(\"String_Node_Str\");\n a.setAttribute(\"String_Node_Str\", prefix + maps.get(m) + \"String_Node_Str\" + mapping.getCode());\n a.addText(mapping.getCode());\n if (!Utilities.noString(mapping.getComments()))\n td.addTag(\"String_Node_Str\").addText(\"String_Node_Str\" + mapping.getComments() + \"String_Node_Str\");\n }\n }\n for (CodeType e : ToolingExtensions.getSubsumes(c)) {\n hasExtensions = true;\n tr = t.addTag(\"String_Node_Str\");\n td = tr.addTag(\"String_Node_Str\");\n s = Utilities.padLeft(\"String_Node_Str\", '.', i * 2);\n td.addText(s);\n a = td.addTag(\"String_Node_Str\");\n a.setAttribute(\"String_Node_Str\", \"String_Node_Str\" + Utilities.nmtokenize(e.getValue()));\n a.addText(c.getCode());\n }\n for (ConceptDefinitionComponent cc : c.getConcept()) {\n hasExtensions = addDefineRowToTable(t, cc, i + 1, comment, deprecated, maps) || hasExtensions;\n }\n return hasExtensions;\n}\n"
"public static String isPrepClause(Tree root, Tree tree) {\n if (tree != null) {\n Tree p = tree.parent(root).parent(root);\n String pos = p.label().value();\n if (!pos.equals(\"String_Node_Str\")) {\n while (p != null && p.label().toString().equals(pos)) p = p.parent(root);\n }\n if (p.label().value().equals(\"String_Node_Str\")) {\n p = p.parent(root);\n if (!p.label().value().equals(\"String_Node_Str\"))\n return null;\n }\n if (p.label().value().equals(\"String_Node_Str\")) {\n List<Tree> list = p.getChildrenAsList();\n for (Tree node : list) {\n if (node.label().value().equals(\"String_Node_Str\"))\n return node.firstChild().toString();\n }\n }\n }\n return null;\n}\n"
"public static Connection openConnection(String connString) throws SQLException {\n Connection conn = DriverManager.getConnection(connString);\n return conn;\n}\n"
"public static void main(String[] args) {\n String user_dir = System.getProperty(\"String_Node_Str\");\n Registration.register();\n try {\n aCfg = new AleaConfiguration();\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\" + e);\n return;\n }\n baudRate = aCfg.getDouble(\"String_Node_Str\");\n entities = aCfg.getInt(\"String_Node_Str\");\n maxPE = 1;\n visualize = aCfg.getBoolean(\"String_Node_Str\");\n data = aCfg.getBoolean(\"String_Node_Str\");\n use_heap = aCfg.getBoolean(\"String_Node_Str\");\n sld_tresh = aCfg.getDouble(\"String_Node_Str\");\n algID = 0;\n prevAlgID = -1;\n name = \"String_Node_Str\";\n use_tsafrir = aCfg.getBoolean(\"String_Node_Str\");\n use_speeds = aCfg.getBoolean(\"String_Node_Str\");\n arrival_rate_multiplier = aCfg.getDouble(\"String_Node_Str\");\n runtime_minimizer = aCfg.getDouble(\"String_Node_Str\");\n use_RAM = aCfg.getBoolean(\"String_Node_Str\");\n use_fairshare_WAIT = aCfg.getBoolean(\"String_Node_Str\");\n use_fairshare_RAM = aCfg.getBoolean(\"String_Node_Str\");\n use_fairshare = aCfg.getBoolean(\"String_Node_Str\");\n multiply_sums = aCfg.getBoolean(\"String_Node_Str\");\n use_MAX = aCfg.getBoolean(\"String_Node_Str\");\n use_SQRT = aCfg.getBoolean(\"String_Node_Str\");\n sum_multiplications = aCfg.getBoolean(\"String_Node_Str\");\n useEventOpt = aCfg.getBoolean(\"String_Node_Str\");\n avail_RAM = 0.0;\n avail_CPUs = 0.0;\n backfilled = 0;\n use_queues = aCfg.getBoolean(\"String_Node_Str\");\n by_queue = aCfg.getBoolean(\"String_Node_Str\");\n data_sets = aCfg.getString(\"String_Node_Str\");\n if (args.length > 0) {\n if (args[0].equals(\"String_Node_Str\")) {\n visualize = true;\n }\n }\n LinkedList results = new LinkedList();\n String[] data_sets = aCfg.getStringArray(\"String_Node_Str\");\n int[] total_gridlet = aCfg.getIntArray(\"String_Node_Str\");\n LinkedList<Visualizator> windows = new LinkedList();\n if (visualize) {\n Visualizator.createGUI(windows);\n }\n failures = aCfg.getBoolean(\"String_Node_Str\");\n reqs = aCfg.getBoolean(\"String_Node_Str\");\n estimates = aCfg.getBoolean(\"String_Node_Str\");\n use_AvgLength = aCfg.getBoolean(\"String_Node_Str\");\n use_LastLength = aCfg.getBoolean(\"String_Node_Str\");\n gap_length = aCfg.getInt(\"String_Node_Str\");\n int[] weight_of_fairness = aCfg.getIntArray(\"String_Node_Str\");\n String problem = \"String_Node_Str\";\n if (!failures && !reqs) {\n problem += \"String_Node_Str\";\n }\n if (reqs) {\n problem += \"String_Node_Str\";\n }\n if (failures) {\n problem += \"String_Node_Str\";\n }\n if (estimates) {\n problem += \"String_Node_Str\";\n } else {\n problem += \"String_Node_Str\";\n }\n if (use_AvgLength) {\n problem += \"String_Node_Str\";\n }\n if (use_LastLength) {\n problem += \"String_Node_Str\";\n }\n if (useEventOpt) {\n problem += \"String_Node_Str\";\n }\n multiplicator = aCfg.getInt(\"String_Node_Str\");\n on_demand_time_limit = aCfg.getInt(\"String_Node_Str\");\n time_limit = aCfg.getInt(\"String_Node_Str\");\n runtime_multiplicator = aCfg.getInt(\"String_Node_Str\");\n path = aCfg.getString(\"String_Node_Str\");\n meta = aCfg.getBoolean(\"String_Node_Str\");\n if (meta) {\n data = false;\n String date = \"String_Node_Str\" + new Date().toString();\n date = date.replace(\"String_Node_Str\", \"String_Node_Str\");\n date = date.replace(\"String_Node_Str\", \"String_Node_Str\");\n date = date.replace(\"String_Node_Str\", \"String_Node_Str\");\n System.out.println(date);\n problem += date;\n }\n ResultCollector result_collector = new ResultCollector(results, problem);\n System.out.println(\"String_Node_Str\" + System.getProperty(\"String_Node_Str\"));\n dir[0] = \"String_Node_Str\";\n File resultsFile = new File(ExperimentSetup.getDir(DirectoryLevel.RESULT_ROOT));\n if (!resultsFile.exists()) {\n resultsFile.mkdir();\n }\n dir[1] = getDate();\n File runDirF = new File(ExperimentSetup.getDir(DirectoryLevel.EXPERIMENT_ROOT));\n runDirF.mkdir();\n System.out.println(\"String_Node_Str\" + runDirF.getPath());\n File configurationF = aCfg.getFile();\n File destinationF = new File(ExperimentSetup.getDir(DirectoryLevel.EXPERIMENT_ROOT) + File.separator + aCfg.getFileName());\n try {\n FileUtil.copyFile(configurationF, destinationF);\n } catch (IOException ex) {\n Logger.getLogger(ExperimentSetup.class.getName()).log(Level.WARNING, null, ex);\n }\n if (visualize) {\n File graphs = new File(user_dir + File.separator + ExperimentSetup.getDir(DirectoryLevel.EXPERIMENT_ROOT) + File.separator + \"String_Node_Str\");\n graphs.mkdir();\n }\n String[] pluginsString = aCfg.getStringArray(\"String_Node_Str\");\n List<Map<String, String>> pluginConfigurations = new ArrayList<Map<String, String>>();\n String[] pluginHeaders = new String[pluginsString.length];\n for (int i = 0; i < pluginsString.length; i++) {\n Map<String, String> plugincfg = aCfg.getPluginConfiguration(i);\n String header = plugincfg.get(PluginConfiguration.RESULT_HEADER);\n pluginHeaders[i] = header;\n pluginConfigurations.add(plugincfg);\n }\n for (int set = 0; set < data_sets.length; set++) {\n String date = getDate();\n dir[2] = data_sets[set] + \"String_Node_Str\" + date;\n File dataSetDirF = new File(ExperimentSetup.getDir(DirectoryLevel.DATA_SET));\n dataSetDirF.mkdir();\n String prob = problem;\n fair_weight = weight_of_fairness[set];\n max_estim = 0;\n result_collector.generateHeader(data_sets[set] + \"String_Node_Str\" + prob, pluginHeaders);\n prevAlgID = -1;\n boolean[] use_anti_starvation = aCfg.getBooleanArray(\"String_Node_Str\");\n boolean[] use_resource_spec_packing = aCfg.getBooleanArray(\"String_Node_Str\");\n int[] skip = aCfg.getIntArray(\"String_Node_Str\");\n int[] timeskip = aCfg.getIntArray(\"String_Node_Str\");\n for (int i = 0; i < timeskip.length; i++) {\n Calendar myCal = Calendar.getInstance();\n myCal.setTimeInMillis(timeskip[i] * 1000L);\n if (!(myCal.get(Calendar.HOUR_OF_DAY) == 0 && myCal.get(Calendar.MINUTE) == 0 && myCal.get(Calendar.SECOND) == 0 && myCal.get(Calendar.MILLISECOND) == 0)) {\n throw new RuntimeException(\"String_Node_Str\" + Integer.toString(myCal.get(Calendar.HOUR_OF_DAY)) + \"String_Node_Str\" + Integer.toString(myCal.get(Calendar.MINUTE)) + \"String_Node_Str\" + Integer.toString(myCal.get(Calendar.SECOND)) + \"String_Node_Str\");\n }\n }\n int[] algorithms = aCfg.getIntArray(\"String_Node_Str\");\n for (int sel_alg = 0; sel_alg < algorithms.length; sel_alg++) {\n anti_starvation = use_anti_starvation[sel_alg];\n resource_spec_packing = use_resource_spec_packing[sel_alg];\n skipJob = skip[set];\n firstArrival = timeskip[set];\n use_compresion = false;\n opt_alg = null;\n fix_alg = null;\n int alg = algorithms[sel_alg];\n int experiment_count = 1;\n backfilled = 0;\n name = data_sets[set];\n algID = alg;\n if (sel_alg > 0) {\n prevAlgID = algorithms[sel_alg - 1];\n }\n String suff = \"String_Node_Str\";\n Scheduler scheduler = null;\n String scheduler_name = \"String_Node_Str\";\n try {\n Calendar calendar = Calendar.getInstance();\n boolean trace_flag = false;\n String[] exclude_from_file = { \"String_Node_Str\" };\n String[] exclude_from_processing = { \"String_Node_Str\" };\n String report_name = null;\n GridSim.init(entities, calendar, trace_flag, exclude_from_file, exclude_from_processing, report_name);\n int rnd = new Random().nextInt();\n scheduler = new Scheduler(scheduler_name, baudRate, entities, results, alg, data_sets[set], total_gridlet[set], suff, windows, result_collector, sel_alg);\n } catch (Exception ex) {\n Logger.getLogger(ExperimentSetup.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (alg == 0) {\n policy = new FCFS(scheduler);\n suff = \"String_Node_Str\";\n if (resource_spec_packing) {\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 1) {\n policy = new EDF(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 2) {\n policy = new EASY_Backfilling(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 3) {\n policy = new AggressiveBackfilling(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 4) {\n policy = new CONS(scheduler);\n use_compresion = true;\n suff = \"String_Node_Str\";\n }\n if (alg == 5) {\n policy = new PBS_PRO(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 6) {\n policy = new SJF(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 7) {\n policy = new FairshareFCFS(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 8) {\n policy = new FairshareMetaBackfilling(scheduler);\n suff = \"String_Node_Str\";\n if (anti_starvation) {\n suff += \"String_Node_Str\";\n }\n if (resource_spec_packing) {\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 12) {\n policy = new FairshareOptimizedMetaBackfilling(scheduler);\n suff = \"String_Node_Str\";\n if (anti_starvation) {\n suff += \"String_Node_Str\";\n }\n if (resource_spec_packing) {\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 9) {\n policy = new FairshareCONS(scheduler);\n use_compresion = true;\n suff = \"String_Node_Str\";\n }\n if (alg == 10) {\n policy = new BestGap(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 11) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n policy = new BestGap(scheduler);\n opt_alg = new RandomSearch();\n if (useEventOpt) {\n fix_alg = new GapSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 18) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n policy = new CONS(scheduler);\n opt_alg = new TabuSearch();\n if (useEventOpt) {\n fix_alg = new TabuSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 19) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n use_compresion = false;\n policy = new CONS(scheduler);\n opt_alg = new GapSearch();\n if (useEventOpt) {\n fix_alg = new GapSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 20) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n use_compresion = false;\n policy = new CONS(scheduler);\n opt_alg = new RandomSearch();\n if (useEventOpt) {\n fix_alg = new RandomSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 201 || alg == 202 || alg == 203) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n use_compresion = false;\n policy = new CONS(scheduler);\n opt_alg = new RandomSearch();\n if (useEventOpt) {\n fix_alg = new RandomSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 204 || alg == 205 || alg == 206) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n use_compresion = false;\n policy = new CONS(scheduler);\n opt_alg = new RandomSearch();\n if (useEventOpt) {\n fix_alg = new GapSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 207 || alg == 208 || alg == 209) {\n suff = \"String_Node_Str\" + multiplicator + \"String_Node_Str\";\n use_compresion = false;\n policy = new CONS(scheduler);\n opt_alg = new WeightedRandomSearch();\n if (useEventOpt) {\n fix_alg = new WeightedRandomSearch();\n suff += \"String_Node_Str\";\n }\n }\n if (alg == 21) {\n suff = \"String_Node_Str\";\n policy = new CONS(scheduler);\n }\n if (alg == 22) {\n policy = new Fairshare_EASY_Backfilling(scheduler);\n suff = \"String_Node_Str\";\n }\n if (alg == 23) {\n policy = new BF_CONS_Fair(scheduler);\n use_compresion = true;\n suff = \"String_Node_Str\";\n }\n dir[3] = (sel_alg + 1) + \"String_Node_Str\" + suff;\n File algDirF = new File(ExperimentSetup.getDir(DirectoryLevel.ALGORITHM));\n algDirF.mkdir();\n result_collector.deleteSchedResults(suff);\n System.out.println(\"String_Node_Str\" + total_gridlet[set] + \"String_Node_Str\" + suff + \"String_Node_Str\" + data_sets[set] + \"String_Node_Str\");\n suff += \"String_Node_Str\" + data_sets[set];\n for (int pass_count = 1; pass_count <= experiment_count; pass_count++) {\n List<Plugin> plugins = new ArrayList<Plugin>();\n for (int i = 0; i < pluginsString.length; i++) {\n String pluginString = pluginsString[i];\n if (!pluginString.contains(\"String_Node_Str\")) {\n pluginString = \"String_Node_Str\" + pluginString;\n }\n Plugin pl = PluginFactory.createPlugin(pluginString);\n pl.init(pluginConfigurations.get(i));\n plugins.add(pl);\n }\n result_collector.setPlugins(plugins);\n avail_RAM = 0;\n avail_CPUs = 0;\n try {\n String job_loader_name = data_sets[set] + \"String_Node_Str\";\n if (use_queues) {\n QueueLoader q_loader = new QueueLoader(data_sets[set]);\n } else {\n Scheduler.all_queues.addLast(new LinkedList<GridletInfo>());\n }\n MachineLoader m_loader = new MachineLoader(10000, 3.0, data_sets[set]);\n rnd_seed = sel_alg;\n System.out.println(avail_CPUs + \"String_Node_Str\" + avail_RAM);\n JobLoader job_loader = new JobLoader(job_loader_name, baudRate, total_gridlet[set], data_sets[set], maxPE, minPErating, maxPErating, arrival_rate_multiplier, pass_count, m_loader.total_CPUs, estimates);\n if (failures) {\n String failure_loader_name = data_sets[set] + \"String_Node_Str\";\n FailureLoaderNew failure = new FailureLoaderNew(failure_loader_name, baudRate, data_sets[set], clusterNames, machineNames, 0);\n }\n System.out.println(\"String_Node_Str\");\n GridSim.startGridSimulation();\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n System.out.println(\"String_Node_Str\" + pass_count + \"String_Node_Str\");\n Scheduler.load = 0.0;\n Scheduler.classic_load = 0.0;\n Scheduler.max_load = 0.0;\n Scheduler.classic_activePEs = 0.0;\n Scheduler.classic_availPEs = 0.0;\n Scheduler.activePEs = 0.0;\n Scheduler.availPEs = 0.0;\n Scheduler.requestedPEs = 0.0;\n Scheduler.last_event = 0.0;\n Scheduler.start_event = -10.0;\n Scheduler.runtime = 0.0;\n Sim_system.setInComplete(true);\n result_collector.generateResults(suff, experiment_count);\n result_collector.reset();\n results.clear();\n System.out.println(\"String_Node_Str\" + max_estim + \"String_Node_Str\" + backfilled);\n System.gc();\n }\n }\n }\n}\n"
"public static String getTextImpl(Object element) {\n if (element instanceof INodePO) {\n String prefix = StringConstants.EMPTY;\n String name = null;\n INodePO node = (INodePO) element;\n if (!checkActivation((INodePO) element)) {\n prefix = INACTIVE_PREFIX;\n }\n if (node instanceof IRefTestSuitePO) {\n name = NodeNameUtil.getText((IRefTestSuitePO) node);\n } else if (node.getName() == null) {\n name = UNNAMED_NODE;\n } else if (node instanceof ICapPO) {\n name = getText((ICapPO) node);\n } else if (node instanceof IExecTestCasePO) {\n name = NodeNameUtil.getText((IExecTestCasePO) node, true);\n } else if (node instanceof ISpecTestCasePO) {\n name = NodeNameUtil.getText((ISpecTestCasePO) node, true);\n } else {\n name = node.getName();\n }\n String postfix = StringConstants.EMPTY;\n if (node instanceof ICondStructPO && ((ICondStructPO) node).isNegate()) {\n postfix = NEGATED_POSTFIX;\n }\n return new StringBuilder(prefix).append(name).append(postfix).toString();\n }\n if (element instanceof IReusedProjectPO) {\n IReusedProjectPO reusedProject = (IReusedProjectPO) element;\n String projectName = reusedProject.getProjectName();\n if (projectName == null) {\n projectName = reusedProject.getProjectGuid();\n }\n return projectName + StringConstants.UNDERSCORE + StringConstants.LEFT_BRACKET + reusedProject.getVersionString() + StringConstants.RIGHT_BRACKET;\n }\n if (element instanceof ISpecObjContPO) {\n return Messages.TreeBuilderTestCases;\n } else if (element instanceof IExecObjContPO) {\n IProjectPO activeProject = GeneralStorage.getInstance().getProject();\n if (activeProject != null) {\n return activeProject.getName();\n }\n LOG.error(Messages.GeneralLabelProvier_NoActiveProject);\n }\n return element == null ? StringConstants.EMPTY : element.toString();\n}\n"
"public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n animation.removeAllListeners();\n if (mPreviousCommentPositionArray.size() <= 1) {\n mCommentList.removeHeaderView(mCommentListHeader);\n }\n mCommentAdapter.clear();\n mCommentAdapter.addItems(mCommentArray.get(comment.getParentId()));\n mCommentArray.remove(comment.getParentId());\n mCommentAdapter.notifyDataSetChanged();\n mCommentList.setSelection(previousSelection);\n mPreviousCommentPositionArray.remove(comment.getParentId());\n Animator anim = ObjectAnimator.ofFloat(mCommentList, \"String_Node_Str\", -mCommentList.getWidth(), 0);\n anim.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n animation.removeAllListeners();\n mIsCommentsAnimating = false;\n }\n });\n anim.setDuration(250).start();\n}\n"
"private String applyIntrinsicFont(String fontName, int fontStyle, float fontSize, String text) {\n setFont(fontName, fontSize);\n text = text.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n text = text.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n return (\"String_Node_Str\" + text + \"String_Node_Str\");\n}\n"
"public boolean equals(Object obj) {\n if (obj instanceof LicenseInfoData) {\n LicenseInfoData license = (LicenseInfoData) obj;\n return (repo != null && ((license.repo != null && repo.toLowerCase().equals(license.repo.toLowerCase())) || (license.title != null && repo.toLowerCase().equals(license.title.toLowerCase())))) || (title != null && ((license.repo != null && title.toLowerCase().equals(license.repo.toLowerCase())) || license.title != null && title.toLowerCase().equals(license.title.toLowerCase()))) || super.equals(obj);\n } else\n return super.equals(obj);\n}\n"
"public boolean is(TablePerspective tablePerspective) {\n return clinical.equals(tablePerspective);\n}\n"
"public void dye(PlayerInteractEvent e) {\n ItemStack i = null;\n if (e.entity instanceof EntityPlayer && e.entity.isSneaking() && e.action == Action.RIGHT_CLICK_BLOCK && (i = ((EntityPlayer) e.entity).inventory.getCurrentItem()) != null && i.getItem() instanceof ItemDye) {\n ((TileEntityCoffin) e.world.getTileEntity(e.x, e.y, e.z)).getPrimaryTileEntity().changeColor(i.getItemDamage());\n }\n}\n"
"private void advanceStop(VMInstanceVO vm, boolean cleanUpEvenIfUnableToStop) throws AgentUnavailableException, OperationTimedoutException, ConcurrentOperationException {\n State state = vm.getState();\n if (state == State.Stopped) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm);\n }\n return;\n }\n if (state == State.Destroyed || state == State.Expunging || state == State.Error) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm + \"String_Node_Str\" + state);\n }\n return;\n }\n ItWorkVO work = _workDao.findByOutstandingWork(vm.getId(), vm.getState());\n if (work != null) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState() + \"String_Node_Str\" + work.getId());\n }\n }\n Long hostId = vm.getHostId();\n if (hostId == null) {\n if (!cleanUpEvenIfUnableToStop) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState());\n }\n throw new CloudRuntimeException(\"String_Node_Str\" + vm);\n }\n try {\n stateTransitTo(vm, Event.AgentReportStopped, null, null);\n } catch (NoTransitionException e) {\n s_logger.warn(e.getMessage());\n }\n if (work != null) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + work.getId());\n }\n work.setStep(Step.Done);\n _workDao.update(work.getId(), work);\n }\n return;\n }\n VirtualMachineGuru vmGuru = getVmGuru(vm);\n VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);\n try {\n if (!stateTransitTo(vm, Event.StopRequested, vm.getHostId())) {\n throw new ConcurrentOperationException(\"String_Node_Str\");\n }\n } catch (NoTransitionException e1) {\n if (!cleanUpEvenIfUnableToStop) {\n throw new CloudRuntimeException(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState());\n }\n boolean doCleanup = false;\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n if (state == State.Starting || state == State.Migrating) {\n if (work != null) {\n doCleanup = true;\n } else {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm + \"String_Node_Str\");\n }\n throw new CloudRuntimeException(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState());\n }\n } else if (state == State.Stopping) {\n doCleanup = true;\n }\n if (doCleanup) {\n if (cleanup(vmGuru, new VirtualMachineProfileImpl(vm), work, Event.StopRequested, cleanUpEvenIfUnableToStop)) {\n try {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + work.getId());\n }\n if (!changeState(vm, Event.AgentReportStopped, null, work, Step.Done)) {\n throw new CloudRuntimeException(\"String_Node_Str\" + vm);\n }\n } catch (NoTransitionException e) {\n s_logger.warn(\"String_Node_Str\" + vm);\n throw new CloudRuntimeException(\"String_Node_Str\" + vm, e);\n }\n } else {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + vm);\n }\n throw new CloudRuntimeException(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState());\n }\n }\n }\n if (vm.getState() != State.Stopping) {\n throw new CloudRuntimeException(\"String_Node_Str\" + vm + \"String_Node_Str\" + vm.getState());\n }\n vmGuru.prepareStop(profile);\n StopCommand stop = new StopCommand(vm, ExecuteInSequence.value());\n boolean stopped = false;\n StopAnswer answer = null;\n try {\n answer = (StopAnswer) _agentMgr.send(vm.getHostId(), stop);\n if (answer != null) {\n String hypervisortoolsversion = answer.getHypervisorToolsVersion();\n if (hypervisortoolsversion != null) {\n if (vm.getType() == VirtualMachine.Type.User) {\n UserVmVO userVm = _userVmDao.findById(vm.getId());\n _userVmDao.loadDetails(userVm);\n userVm.setDetail(\"String_Node_Str\", hypervisortoolsversion);\n _userVmDao.saveDetails(userVm);\n }\n }\n }\n stopped = answer.getResult();\n if (!stopped) {\n throw new CloudRuntimeException(\"String_Node_Str\" + answer.getDetails());\n } else {\n Integer timeoffset = answer.getTimeOffset();\n if (timeoffset != null) {\n if (vm.getType() == VirtualMachine.Type.User) {\n UserVmVO userVm = _userVmDao.findById(vm.getId());\n _userVmDao.loadDetails(userVm);\n userVm.setDetail(\"String_Node_Str\", timeoffset.toString());\n _userVmDao.saveDetails(userVm);\n }\n }\n }\n vmGuru.finalizeStop(profile, answer);\n } catch (AgentUnavailableException e) {\n s_logger.warn(\"String_Node_Str\" + e.toString());\n } catch (OperationTimedoutException e) {\n s_logger.warn(\"String_Node_Str\" + e.toString());\n } finally {\n if (!stopped) {\n if (!cleanUpEvenIfUnableToStop) {\n s_logger.warn(\"String_Node_Str\" + vm);\n try {\n stateTransitTo(vm, Event.OperationFailed, vm.getHostId());\n } catch (NoTransitionException e) {\n s_logger.warn(\"String_Node_Str\" + vm);\n }\n throw new CloudRuntimeException(\"String_Node_Str\" + vm);\n } else {\n s_logger.warn(\"String_Node_Str\" + vm + \"String_Node_Str\");\n vmGuru.finalizeStop(profile, answer);\n }\n }\n }\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(vm + \"String_Node_Str\");\n }\n try {\n _networkMgr.release(profile, cleanUpEvenIfUnableToStop);\n s_logger.debug(\"String_Node_Str\" + vm);\n } catch (Exception e) {\n s_logger.warn(\"String_Node_Str\", e);\n }\n try {\n if (vm.getHypervisorType() != HypervisorType.BareMetal) {\n volumeMgr.release(profile);\n s_logger.debug(\"String_Node_Str\" + vm);\n }\n } catch (Exception e) {\n s_logger.warn(\"String_Node_Str\", e);\n }\n try {\n if (work != null) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + work.getId());\n }\n work.setStep(Step.Done);\n _workDao.update(work.getId(), work);\n }\n if (!stateTransitTo(vm, Event.OperationSucceeded, null)) {\n throw new CloudRuntimeException(\"String_Node_Str\" + vm);\n }\n } catch (NoTransitionException e) {\n s_logger.warn(e.getMessage());\n throw new CloudRuntimeException(\"String_Node_Str\" + vm);\n }\n}\n"
"public MediaResource export(RepositoryEntry courseEntry, String subIdent, RepositoryEntry testEntry) {\n FileResourceManager frm = FileResourceManager.getInstance();\n File unzippedDirRoot = frm.unzipFileResource(testEntry.getOlatResource());\n resolvedAssessmentTest = qtiService.loadAndResolveAssessmentTest(unzippedDirRoot, false, false);\n ICourse course = CourseFactory.loadCourse(courseEntry);\n CourseNode courseNode = course.getRunStructure().getNode(subIdent);\n String label = courseNode.getType() + \"String_Node_Str\" + StringHelper.transformDisplayNameToFileSystemName(courseNode.getShortName()) + \"String_Node_Str\" + Formatter.formatDatetimeFilesystemSave(new Date(System.currentTimeMillis())) + \"String_Node_Str\";\n if (\"String_Node_Str\".equals(courseNode.getType())) {\n anonymizerCallback = course.getCourseEnvironment().getCoursePropertyManager();\n }\n final List<AssessmentResponse> responses = responseDao.getResponse(courseEntry, subIdent, testEntry, participants, allUsers, anonymUsers);\n return new OpenXMLWorkbookResource(label) {\n protected void generate(OutputStream out) {\n try (OpenXMLWorkbook workbook = new OpenXMLWorkbook(out, 1)) {\n OpenXMLWorksheet exportSheet = workbook.nextWorksheet();\n exportSheet.setHeaderRows(2);\n writeHeaders_1(exportSheet, workbook);\n writeHeaders_2(exportSheet, workbook);\n writeData(responses, exportSheet, workbook);\n } catch (Exception e) {\n log.error(\"String_Node_Str\", e);\n }\n }\n };\n}\n"
"public String toString() {\n return wrapped.toString();\n}\n"
"public void doDelete(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n System.out.println(\"String_Node_Str\");\n String path = request.getRequestURI();\n String[] parts = path.split(\"String_Node_Str\");\n String key = parts[parts.length - 1];\n response.setContentType(\"String_Node_Str\");\n ScheduleResponse responseContent = unschedule(jobDataId);\n mapper.writeValue(response.getOutputStream(), responseContent);\n System.out.println(\"String_Node_Str\");\n}\n"
"public void testScriptStyle() throws ScriptException {\n IStyle style = reportContent.createStyle();\n IScriptStyle styleInstance = new StyleInstance(style, null);\n styleInstance.setBackgroundAttachment(DesignChoiceConstants.BACKGROUND_ATTACHMENT_SCROLL);\n assertEquals(DesignChoiceConstants.BACKGROUND_ATTACHMENT_SCROLL, styleInstance.getBackgroundAttachment());\n styleInstance.setBackgroundColor(RED);\n assertEquals(RED, styleInstance.getBackgroundColor());\n styleInstance.setBackgroundImage(URI);\n assertEquals(URI, styleInstance.getBackgroundImage());\n styleInstance.setBackgroundPositionX(BACKGROUND_POS_X);\n assertEquals(BACKGROUND_POS_X, styleInstance.getBackgroundPositionX());\n styleInstance.setBackgroundPositionY(BACKGROUND_POS_Y);\n assertEquals(BACKGROUND_POS_Y, styleInstance.getBackgroundPositionY());\n styleInstance.setBackgroundRepeat(DesignChoiceConstants.BACKGROUND_REPEAT_REPEAT_X);\n assertEquals(DesignChoiceConstants.BACKGROUND_REPEAT_REPEAT_X, styleInstance.getBackgroundRepeat());\n styleInstance.setBorderBottomColor(BLUE);\n assertEquals(BLUE, styleInstance.getBorderBottomColor());\n styleInstance.setBorderBottomStyle(DesignChoiceConstants.LINE_STYLE_SOLID);\n assertEquals(DesignChoiceConstants.LINE_STYLE_SOLID, styleInstance.getBorderBottomStyle());\n styleInstance.setBorderBottomWidth(BORDER_BOTTOM_WIDTH);\n assertEquals(BORDER_BOTTOM_WIDTH, styleInstance.getBorderBottomWidth());\n styleInstance.setBorderLeftColor(GREEN);\n assertEquals(GREEN, styleInstance.getBorderLeftColor());\n styleInstance.setBorderLeftStyle(DesignChoiceConstants.LINE_STYLE_DOTTED);\n assertEquals(DesignChoiceConstants.LINE_STYLE_DOTTED, styleInstance.getBorderLeftStyle());\n styleInstance.setBorderLeftWidth(BORDER_LEFT_WIDTH);\n assertEquals(BORDER_LEFT_WIDTH, styleInstance.getBorderLeftWidth());\n styleInstance.setBorderRightColor(YELLOW);\n assertEquals(YELLOW, styleInstance.getBorderRightColor());\n styleInstance.setBorderRightStyle(DesignChoiceConstants.LINE_STYLE_DASHED);\n assertEquals(DesignChoiceConstants.LINE_STYLE_DASHED, styleInstance.getBorderRightStyle());\n styleInstance.setBorderRightWidth(BORDER_RIGHT_WIDTH);\n assertEquals(BORDER_RIGHT_WIDTH, styleInstance.getBorderRightWidth());\n styleInstance.setBorderTopColor(GRAY);\n assertEquals(GRAY, styleInstance.getBorderTopColor());\n styleInstance.setBorderTopStyle(DesignChoiceConstants.LINE_STYLE_DOUBLE);\n assertEquals(DesignChoiceConstants.LINE_STYLE_DOUBLE, styleInstance.getBorderTopStyle());\n styleInstance.setBorderTopWidth(BORDER_TOP_WIDTH);\n assertEquals(BORDER_TOP_WIDTH, styleInstance.getBorderTopWidth());\n styleInstance.setCanShrink(CAN_SHRINK);\n assertEquals(CAN_SHRINK, styleInstance.getCanShrink());\n styleInstance.setColor(WHITE);\n assertEquals(WHITE, styleInstance.getColor());\n styleInstance.setDateFormat(YY_MM_DD);\n assertEquals(YY_MM_DD, styleInstance.getDateFormat());\n styleInstance.setDisplay(DesignChoiceConstants.DISPLAY_INLINE);\n assertEquals(DesignChoiceConstants.DISPLAY_INLINE, styleInstance.getDisplay());\n styleInstance.setFontFamily(DesignChoiceConstants.FONT_FAMILY_SANS_SERIF);\n assertEquals(DesignChoiceConstants.FONT_FAMILY_SANS_SERIF, styleInstance.getFontFamily());\n styleInstance.setFontSize(DesignChoiceConstants.FONT_SIZE_LARGE);\n assertEquals(DesignChoiceConstants.FONT_SIZE_LARGE, styleInstance.getFontSize());\n styleInstance.setFontStyle(DesignChoiceConstants.FONT_STYLE_ITALIC);\n assertEquals(DesignChoiceConstants.FONT_STYLE_ITALIC, styleInstance.getFontStyle());\n styleInstance.setFontVariant(DesignChoiceConstants.FONT_VARIANT_SMALL_CAPS);\n assertEquals(DesignChoiceConstants.FONT_VARIANT_SMALL_CAPS, styleInstance.getFontVariant());\n styleInstance.setFontWeight(DesignChoiceConstants.FONT_WEIGHT_BOLD);\n assertEquals(DesignChoiceConstants.FONT_WEIGHT_BOLD, styleInstance.getFontWeight());\n styleInstance.setLetterSpacing(LETTER_SPACING);\n assertEquals(LETTER_SPACING, styleInstance.getLetterSpacing());\n styleInstance.setLineHeight(HEIGHT);\n assertEquals(HEIGHT, styleInstance.getLineHeight());\n styleInstance.setMarginBottom(MARGIN_BOTTOM);\n assertEquals(MARGIN_BOTTOM, styleInstance.getMarginBottom());\n styleInstance.setMarginLeft(MARGIN_LEFT);\n assertEquals(MARGIN_LEFT, styleInstance.getMarginLeft());\n styleInstance.setMarginRight(MARGIN_RIGHT);\n assertEquals(MARGIN_RIGHT, styleInstance.getMarginRight());\n styleInstance.setMarginTop(MARGIN_TOP);\n assertEquals(MARGIN_TOP, styleInstance.getMarginTop());\n styleInstance.setMasterPage(MASTER_PAGE);\n assertEquals(MASTER_PAGE, styleInstance.getMasterPage());\n styleInstance.setNumberFormat(DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY);\n assertEquals(DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY, styleInstance.getNumberFormat());\n styleInstance.setPaddingBottom(PADDING_BOTTOM);\n assertEquals(PADDING_BOTTOM, styleInstance.getPaddingBottom());\n styleInstance.setPaddingLeft(PADDING_LEFT);\n assertEquals(PADDING_LEFT, styleInstance.getPaddingLeft());\n styleInstance.setPaddingRight(PADDING_RIGHT);\n assertEquals(PADDING_RIGHT, styleInstance.getPaddingRight());\n styleInstance.setPaddingTop(PADDING_TOP);\n assertEquals(PADDING_TOP, styleInstance.getPaddingTop());\n styleInstance.setPageBreakAfter(DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS);\n assertEquals(DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS, styleInstance.getPageBreakAfter());\n styleInstance.setPageBreakBefore(DesignChoiceConstants.PAGE_BREAK_BEFORE_AVOID);\n assertEquals(DesignChoiceConstants.PAGE_BREAK_BEFORE_AVOID, styleInstance.getPageBreakBefore());\n styleInstance.setShowIfBlank(SHOW_IF_BLANK);\n assertEquals(SHOW_IF_BLANK, styleInstance.getShowIfBlank());\n styleInstance.setStringFormat(DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE);\n assertEquals(DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE, styleInstance.getStringFormat());\n styleInstance.setTextAlign(DesignChoiceConstants.TEXT_ALIGN_RIGHT);\n assertEquals(DesignChoiceConstants.TEXT_ALIGN_RIGHT, styleInstance.getTextAlign());\n styleInstance.setTextIndent(TEXT_INDENT);\n assertEquals(TEXT_INDENT, styleInstance.getTextIndent());\n styleInstance.setTextLineThrough(DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH);\n assertEquals(DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH, styleInstance.getTextLineThrough());\n styleInstance.setTextOverline(DesignChoiceConstants.TEXT_OVERLINE_OVERLINE);\n assertEquals(DesignChoiceConstants.TEXT_OVERLINE_OVERLINE, styleInstance.getTextOverline());\n styleInstance.setTextTransform(DesignChoiceConstants.TRANSFORM_UPPERCASE);\n assertEquals(DesignChoiceConstants.TRANSFORM_UPPERCASE, styleInstance.getTextTransform());\n styleInstance.setTextUnderline(DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE);\n assertEquals(DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE, styleInstance.getTextUnderline());\n styleInstance.setVerticalAlign(DesignChoiceConstants.VERTICAL_ALIGN_TOP);\n assertEquals(DesignChoiceConstants.VERTICAL_ALIGN_TOP, styleInstance.getVerticalAlign());\n styleInstance.setVisibleFormat(DesignChoiceConstants.FORMAT_TYPE_ALL);\n assertEquals(DesignChoiceConstants.FORMAT_TYPE_ALL, styleInstance.getVisibleFormat());\n styleInstance.setWhiteSpace(DesignChoiceConstants.WHITE_SPACE_NOWRAP);\n assertEquals(DesignChoiceConstants.WHITE_SPACE_NOWRAP, styleInstance.getWhiteSpace());\n styleInstance.setWordSpacing(WORD_SPACING);\n assertEquals(WORD_SPACING, styleInstance.getWordSpacing());\n}\n"
"public Merger expand(Map<String, Object> pathParameters) {\n Matcher m = PATH_VARIABLE_PATTERN.matcher(template);\n StringBuffer sb = new StringBuffer();\n while (m.find()) {\n Object replacement = pathParameters.get(m.group(1));\n Preconditions.checkState(null != replacement, \"String_Node_Str\", m.group(1));\n m.appendReplacement(sb, Matcher.quoteReplacement(replacement.toString()));\n }\n m.appendTail(sb);\n this.template = new StringBuilder(sb);\n return this;\n}\n"
"private void addGroupRowsToSkip(final Composite mainComposite, final int width, final int height) {\n Group group = Form.createGroup(mainComposite, 1, Messages.getString(\"String_Node_Str\"), SWT.DEFAULT);\n group.setLayout(new FillLayout());\n GridData groupLayoutData = (GridData) group.getLayoutData();\n groupLayoutData.heightHint = -1;\n groupLayoutData.minimumHeight = -1;\n groupLayoutData.minimumWidth = -1;\n groupLayoutData.widthHint = -1;\n groupLayoutData.grabExcessVerticalSpace = false;\n Composite compositeRowsToSkip = Form.startNewDimensionnedGridLayout(group, 3, width - 100, height);\n compositeRowsToSkip.setLayoutData(null);\n Label info = new Label(compositeRowsToSkip, SWT.NONE);\n GridData gridData = new GridData();\n gridData.horizontalSpan = 3;\n info.setLayoutData(gridData);\n info.setText(Messages.getString(\"String_Node_Str\"));\n rowsToSkipHeaderCheckboxCombo = new LabelledCheckboxCombo(compositeRowsToSkip, Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"), STRING_NUMBERS_DATA, 1, true, SWT.NONE);\n rowsToSkipFooterCheckboxCombo = new LabelledCheckboxCombo(compositeRowsToSkip, Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"), STRING_NUMBERS_DATA, 1, true, SWT.NONE);\n emptyRowsToSkipCheckbox = new Button(compositeRowsToSkip, SWT.CHECK);\n emptyRowsToSkipCheckbox.setText(Messages.getString(\"String_Node_Str\"));\n emptyRowsToSkipCheckbox.setAlignment(SWT.LEFT);\n gridData = new GridData(SWT.FILL, SWT.BOTTOM, true, false);\n gridData.horizontalSpan = 3;\n emptyRowsToSkipCheckbox.setLayoutData(gridData);\n}\n"
"private String memberListToString() {\n Iterator fixArgMethodsIter = fixArgMethods.getMemberDescriptors();\n Iterator varargMethodsIter = varargMethods != null ? varargMethods.getMemberDescriptors() : null;\n boolean hasMethods = fixArgMethodsIter.hasNext() || (varargMethodsIter != null && varargMethodsIter.hasNext());\n if (hasMethods) {\n StringBuffer sb = new StringBuffer();\n HashSet fixArgMethods = new HashSet();\n if (fixArgMethodsIter != null) {\n while (fixArgMethodsIter.hasNext()) {\n if (sb.length() != 0)\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(((CallableMemberDescriptor) fixArgMethodsIter.next()).getDeclaration());\n }\n if (varargMethodsIter != null) {\n while (varargMethodsIter.hasNext()) {\n if (sb.length() != 0)\n sb.append(\"String_Node_Str\");\n sb.append(((CallableMemberDescriptor) varargMethodsIter.next()).getDeclaration());\n }\n }\n return sb.toString();\n } else {\n return \"String_Node_Str\";\n }\n}\n"
"private static String typeVariableToString(final TypeVariable<?> v) {\n final StringBuilder buf = new StringBuilder(v.getName());\n final Type[] bounds = v.getBounds();\n if (bounds.length > 0 && !(bounds.length == 1 && Object.class.equals(bounds[0]))) {\n buf.append(\"String_Node_Str\");\n appendAllTo(buf, \"String_Node_Str\", done, v.getBounds());\n }\n return buf.toString();\n}\n"
"public void testCRAMReader1_ReferenceRequired() {\n File file = new File(TEST_DATA_DIR, \"String_Node_Str\");\n InputStream bis = null;\n new CRAMFileReader(CRAM_WITH_CRAI, bis);\n}\n"
"public void onClosedToLeft() {\n pauseVideo();\n}\n"
"void setupSpectrogram(int sampleRate, int fftLen, double timeDurationE, int nAve) {\n timeWatch = timeDurationE;\n timeMultiplier = nAve;\n double timeInc = fftLen / 2.0 / sampleRate;\n synchronized (this) {\n boolean bNeedClean = nFreqPoints != fftLen / 2;\n nFreqPoints = fftLen / 2;\n nTimePoints = (int) Math.ceil(timeWatch / timeInc);\n if (spectrogramColors == null || spectrogramColors.length != nFreqPoints * nTimePoints) {\n spectrogramColors = new int[nFreqPoints * nTimePoints];\n spectrogramColorsShifting = new int[nFreqPoints * nTimePoints];\n bNeedClean = true;\n }\n if (!bNeedClean && spectrogramColorsPt >= nTimePoints) {\n Log.w(TAG, \"String_Node_Str\");\n bNeedClean = true;\n }\n if (bNeedClean) {\n spectrogramColorsPt = 0;\n Arrays.fill(spectrogramColors, 0);\n }\n }\n logBmp.init(nFreqPoints, nTimePoints, axisFreq);\n logSegBmp.init(nFreqPoints, nTimePoints, axisFreq);\n Log.i(TAG, \"String_Node_Str\" + \"String_Node_Str\" + sampleRate + \"String_Node_Str\" + fftLen + \"String_Node_Str\" + timeDurationE);\n}\n"
"public void run() {\n Realm instance = Realm.getInstance(configuration);\n instance.beginTransaction();\n Dog dog = instance.createObject(Dog.class);\n dog.setAge(10);\n dog.setName(\"String_Node_Str\");\n Owner kiba = instance.createObject(Owner.class);\n kiba.setName(\"String_Node_Str\");\n dog.setOwner(kiba);\n instance.commitTransaction();\n wait.countDown();\n}\n"
"public Processor cloneProcessor(String key) {\n JoinProcessor joinProcessor = new JoinProcessor(leftJoinProcessor, outerJoinProcessor, matchingStreamIndex);\n joinProcessor.setTrigger(trigger);\n if (trigger) {\n joinProcessor.setFinder(finder.cloneFinder(key));\n }\n return joinProcessor;\n}\n"
"public void testParseImageName() throws MojoExecutionException {\n final String[] result = Utils.parseImageName(IMAGE);\n assertThat(result).containsExactly(IMAGE, null);\n}\n"
"public boolean replace(K key, V value) {\n checkStatusStarted();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n long now = System.currentTimeMillis();\n boolean result;\n lockManager.lock(key);\n try {\n Object internalKey = keyConverter.toInternal(key);\n RICachedValue cachedValue = entries.get(internalKey);\n if (cachedValue == null || cachedValue.isExpiredAt(now)) {\n result = false;\n } else {\n RIEntry<K, V> entry = new RIEntry<K, V>(key, value);\n writeCacheEntry(entry);\n V previousValue = valueConverter.fromInternal(cachedValue.get());\n Duration duration;\n try {\n Duration duration = expiryPolicy.getTTLForModifiedEntry(entry, new Duration(now, cachedValue.getExpiryTime()));\n long expiryTime = duration.getAdjustedTime(now);\n cachedValue.setExpiryTime(expiryTime);\n } catch (Throwable t) {\n duration = getDefaultDuration();\n }\n long expiryTime = duration.getAdjustedTime(now);\n Object internalValue = valueConverter.toInternal(value);\n cachedValue.setInternalValue(internalValue, now);\n cachedValue.setExpiryTime(expiryTime);\n RICacheEventEventDispatcher<K, V> dispatcher = new RICacheEventEventDispatcher<K, V>();\n dispatcher.addEvent(CacheEntryUpdatedListener.class, new RICacheEntryEvent<K, V>(this, key, value, previousValue));\n dispatcher.dispatch(cacheEntryListenerRegistrations.values());\n result = true;\n }\n } finally {\n lockManager.unLock(key);\n }\n if (result && statisticsEnabled()) {\n statistics.increaseCachePuts(1);\n }\n return result;\n}\n"
"protected Iterator<Instance> getSameLevelIterator(Instance popped) {\n Collection<Instance> instances = new ArrayList<Instance>();\n for (Object fv : popped.getFieldValues()) {\n if (fv instanceof ObjectFieldValue) {\n if (excludes == null || !excludes.isExcluded(getFQFieldName(((FieldValue) fv).getField()))) {\n Instance i = ((ObjectFieldValue) fv).getInstance();\n if (i != null && !alreadyReached.contains(i)) {\n instances.add(i);\n }\n }\n }\n }\n if (popped instanceof ObjectArrayInstance) {\n instances.addAll(((ObjectArrayInstance) popped).getValues());\n }\n return instances.iterator();\n}\n"
"public V getAndReplace(K key, V value) {\n checkStatusStarted();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n long now = System.currentTimeMillis();\n V result;\n lockManager.lock(key);\n try {\n Object internalKey = keyConverter.toInternal(key);\n RICachedValue cachedValue = entries.get(internalKey);\n if (cachedValue == null || cachedValue.isExpiredAt(now)) {\n result = null;\n } else {\n RIEntry<K, V> entry = new RIEntry<K, V>(key, value);\n writeCacheEntry(entry);\n result = valueConverter.fromInternal(cachedValue.getInternalValue(now));\n Duration duration;\n try {\n duration = expiryPolicy.getTTLForModifiedEntry(entry, new Duration(now, cachedValue.getExpiryTime()));\n } catch (Throwable t) {\n duration = getDefaultDuration();\n }\n long expiryTime = duration.getAdjustedTime(now);\n Object internalValue = valueConverter.toInternal(value);\n cachedValue.setInternalValue(internalValue, now);\n cachedValue.setExpiryTime(expiryTime);\n RICacheEventEventDispatcher<K, V> dispatcher = new RICacheEventEventDispatcher<K, V>();\n dispatcher.addEvent(CacheEntryUpdatedListener.class, new RICacheEntryEvent<K, V>(this, key, value, result));\n dispatcher.dispatch(cacheEntryListenerRegistrations.values());\n }\n } finally {\n lockManager.unLock(key);\n }\n if (statisticsEnabled()) {\n if (result != null) {\n statistics.increaseCacheHits(1);\n statistics.increaseCachePuts(1);\n } else {\n statistics.increaseCacheMisses(1);\n }\n }\n return result;\n}\n"
"private void doUpdateWifiState() {\n boolean wifiEnabled = getPersistedWifiEnabled();\n boolean airplaneMode = isAirplaneModeOn() && !mAirplaneModeOverwridden;\n boolean lockHeld = mLocks.hasLocks();\n int strongestLockMode;\n boolean wifiShouldBeEnabled = wifiEnabled && !airplaneMode;\n boolean wifiShouldBeStarted = !mDeviceIdle || lockHeld;\n if (mDeviceIdle && lockHeld) {\n strongestLockMode = mLocks.getStrongestLockMode();\n } else {\n strongestLockMode = WifiManager.WIFI_MODE_FULL;\n }\n synchronized (mWifiHandler) {\n if ((mWifiStateTracker.getWifiState() == WIFI_STATE_ENABLING) && !airplaneMode) {\n return;\n }\n if (wifiShouldBeEnabled) {\n if (wifiShouldBeStarted) {\n sWakeLock.acquire();\n sendEnableMessage(true, false, mLastEnableUid);\n sWakeLock.acquire();\n sendStartMessage(strongestLockMode == WifiManager.WIFI_MODE_SCAN_ONLY);\n } else if (!mWifiStateTracker.isDriverStopped()) {\n int wakeLockTimeout = Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS, DEFAULT_WAKELOCK_TIMEOUT);\n sDriverStopWakeLock.acquire();\n mWifiHandler.sendEmptyMessage(MESSAGE_STOP_WIFI);\n mWifiHandler.sendEmptyMessageDelayed(MESSAGE_RELEASE_WAKELOCK, wakeLockTimeout);\n }\n } else {\n sWakeLock.acquire();\n sendEnableMessage(false, false, mLastEnableUid);\n }\n }\n}\n"
"private void dispatchEventToButtons(MouseEvent event) {\n TreePath mousePath = this.getPathForLocation(event.getX(), event.getY());\n if (mousePath == null || !mousePath.equals(this.getSelectionPath()))\n return;\n JPanel renderer = (JPanel) getCellRenderer().getTreeCellRendererComponent(this, mousePath.getLastPathComponent(), true, true, true, this.getRowForPath(mousePath), true);\n Rectangle r = this.getPathBounds(mousePath);\n int translatedX = event.getX() - r.x;\n int translatedY = event.getY() - r.y;\n Component mouseComponent = renderer.findComponentAt(translatedX, translatedY);\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\" + mouseComponent.getClass().getName() + \"String_Node_Str\" + mouseComponent.getBounds() + \"String_Node_Str\" + translatedX + \"String_Node_Str\" + translatedY);\n if (mouseComponent instanceof SIPCommButton) {\n MouseEvent evt = new MouseEvent(mouseComponent, event.getID(), event.getWhen(), event.getModifiers(), 5, 5, event.getClickCount(), event.isPopupTrigger());\n mouseComponent.dispatchEvent(evt);\n this.repaint();\n }\n}\n"
"boolean isMusicActive() {\n final AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n if (am == null) {\n Log.w(TAG, \"String_Node_Str\");\n return false;\n }\n try {\n return audio.isMusicActive();\n } catch (RemoteException e) {\n Log.w(TAG, \"String_Node_Str\" + e);\n return false;\n }\n}\n"
"int bdd_support(int r) {\n int n;\n int res = 1;\n CHECKa(r, bddfalse);\n if (r < 2)\n return bddtrue;\n if (supportSet == null || supportSize < bddvarnum) {\n supportSet = new int[bddvarnum];\n supportSize = bddvarnum;\n supportID = 0;\n }\n if (supportID == 0x0FFFFFFF) {\n for (int i = 0; i < bddvarnum; ++i) supportSet[i] = 0;\n supportID = 0;\n }\n ++supportID;\n supportMin = LEVEL(r);\n supportMax = supportMin;\n support_rec(r, supportSet);\n bdd_unmark(r);\n bdd_disable_reorder();\n for (n = supportMax; n >= supportMin; --n) if (supportSet[n] == supportID) {\n int tmp;\n bdd_addref(res);\n tmp = bdd_makenode(n, 0, res);\n bdd_delref(res);\n res = tmp;\n }\n bdd_enable_reorder();\n return res;\n}\n"
"public void run() {\n p.connection.sendPacket(new PacketPlayOutJoinGame().set(\"String_Node_Str\", p.entityId()).set(\"String_Node_Str\", GameMode.CREATIVE).set(\"String_Node_Str\", p.world().dimension()).set(\"String_Node_Str\", p.world().difficulty()).set(\"String_Node_Str\", (short) 10).set(\"String_Node_Str\", LevelType.DEFAULT));\n p.connection.sendPacket(PacketPlayOutPluginMessage.VANILLA_CHANNEL);\n p.connection.sendPacket(new PacketPlayOutServerDifficulty().set(\"String_Node_Str\", p.world().difficulty()));\n p.connection.sendPacket(new PacketPlayOutSpawnPosition().set(\"String_Node_Str\", p.spawnLocation()));\n p.connection.sendPacket(p.abilities.asPacket());\n p.connection.sendPacket(new PacketPlayOutPlayerCompleteMove().set(\"String_Node_Str\", p.spawnLocation()).set(\"String_Node_Str\", (byte) 1));\n}\n"
"private void showMessageViewIfNecessary() {\n final ViewGroup messageView = (ViewGroup) findViewById(R.id.message_container);\n if (mPost == null || mIsUpdatingPost || PostUploadService.isPostUploadingOrQueued(mPost) || (!mPost.isLocallyChanged() && !mPost.isLocalDraft()) && PostStatus.fromPost(mPost) != PostStatus.DRAFT) {\n messageView.setVisibility(View.GONE);\n return;\n }\n TextView messageText = (TextView) messageView.findViewById(R.id.message_text);\n if (mPost.isLocallyChanged()) {\n messageText.setText(R.string.local_changes_explainer);\n } else if (mPost.isLocalDraft()) {\n messageText.setText(R.string.local_draft_explainer);\n } else if (PostStatus.fromPost(mPost) == PostStatus.DRAFT) {\n messageText.setText(R.string.draft_explainer);\n }\n View btnPublish = messageView.findViewById(R.id.btn_publish);\n btnPublish.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n AniUtils.animateBottomBar(messageView, false);\n publishPost();\n }\n });\n View btnRevert = messageView.findViewById(R.id.btn_revert);\n btnRevert.setVisibility(mPost.isLocallyChanged() ? View.VISIBLE : View.GONE);\n if (mPost.isLocallyChanged()) {\n btnRevert.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n AniUtils.animateBottomBar(messageView, false);\n revertPost();\n AnalyticsTracker.track(Stat.EDITOR_DISCARDED_CHANGES);\n }\n });\n }\n if (mPost.isLocallyChanged()) {\n RelativeLayout.LayoutParams paramsMessage = (RelativeLayout.LayoutParams) messageText.getLayoutParams();\n paramsMessage.addRule(RelativeLayout.LEFT_OF, 0);\n paramsMessage.addRule(RelativeLayout.CENTER_VERTICAL, 0);\n ViewGroup.MarginLayoutParams marginsMessage = (ViewGroup.MarginLayoutParams) messageText.getLayoutParams();\n marginsMessage.bottomMargin = getResources().getDimensionPixelSize(R.dimen.margin_small);\n ViewGroup buttonsView = (ViewGroup) messageView.findViewById(R.id.layout_buttons);\n RelativeLayout.LayoutParams paramsButtons = (RelativeLayout.LayoutParams) buttonsView.getLayoutParams();\n paramsButtons.addRule(RelativeLayout.BELOW, R.id.message_text);\n ViewGroup.MarginLayoutParams marginsButtons = (ViewGroup.MarginLayoutParams) buttonsView.getLayoutParams();\n marginsButtons.bottomMargin = getResources().getDimensionPixelSize(R.dimen.margin_large);\n }\n messageView.setVisibility(View.INVISIBLE);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n if (!isFinishing() && messageView.getVisibility() != View.VISIBLE) {\n AniUtils.animateBottomBar(messageView, true);\n }\n }\n }, 1000);\n}\n"
"private List<AdminAccountDetailsInstructorCourseListTableRow> createInstructorCourseListTable(List<CourseDetailsBundle> instructorCourseList) {\n List<AdminAccountDetailsInstructorCourseListTableRow> courseListTable = new ArrayList<AdminAccountDetailsInstructorCourseListTableRow>();\n if (instructorCourseList != null) {\n for (CourseDetailsBundle courseDetails : instructorCourseList) {\n AdminAccountDetailsInstructorCourseListTableRow row = new AdminAccountDetailsInstructorCourseListTableRow(accountInformation.googleId, courseDetails);\n courseListTable.add(row);\n }\n }\n return courseListTable;\n}\n"
"public boolean isAuthorized() {\n return Utils.notAnyEmpty(accessToken, refreshToken) && expiresMillis > 0L;\n}\n"
"private String stringFromCalendar(Calendar sourceCalendar) {\n if (!(sourceCalendar.isSet(Calendar.HOUR) || sourceCalendar.isSet(Calendar.MINUTE) || sourceCalendar.isSet(Calendar.SECOND) || sourceCalendar.isSet(Calendar.MILLISECOND))) {\n return dateFormatter.get().format(sourceCalendar.getTime());\n } else if (!(sourceCalendar.isSet(Calendar.YEAR) || sourceCalendar.isSet(Calendar.MONTH) || sourceCalendar.isSet(Calendar.DATE))) {\n String string = timeFormatter.get().format(sourceCalendar.getTime());\n string = appendMillis(string, sourceCalendar.getTimeInMillis());\n return appendTimeZone(string);\n } else {\n return stringFromDate(sourceCalendar.getTime());\n }\n}\n"
"public static void deserialize(ServerSerializationStreamReader streamReader, LogRecord instance, Class<?> instanceClass, DequeMap<Type, Type> resolvedTypes) throws SerializationException {\n String loggerName = streamReader.readString();\n Long millis = streamReader.readLong();\n Object throwable = streamReader.readObject(SerializableThrowable.class, resolvedTypes);\n instance.setLoggerName(loggerName);\n instance.setMillis(millis);\n if (throwable != null && throwable instanceof SerializableThrowable) {\n instance.setThrown(((SerializableThrowable) throwable).getThrowable());\n }\n}\n"
"public static List<String> streamToStrings(InputStream is) throws IOException {\n if (is != null) {\n List<String> lines = new ArrayList<String>();\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"String_Node_Str\"));\n String line = \"String_Node_Str\";\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n } finally {\n is.close();\n }\n return lines;\n } else {\n return null;\n }\n}\n"
"public void bindView(View view, Context context, Cursor cursor) {\n final ViewHolder viewHolder = (ViewHolder) view.getTag();\n Friend friend = DatabaseManager.getFriendFromCursor(cursor);\n holder.nameTextView.setText(friend.getFullname());\n holder.statusMessageTextView.setText(friend.getStatus());\n holder.nameTextView.setText(friend.getFullname());\n holder.selectFriendCheckBox.setChecked(friend.isSelected());\n holder.selectFriendCheckBox.setTag(friend);\n if (friend.isOnline()) {\n holder.onlineImageView.setVisibility(View.VISIBLE);\n } else {\n holder.onlineImageView.setVisibility(View.INVISIBLE);\n }\n holder.selectFriendCheckBox.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n CheckBox cb = (CheckBox) v;\n Friend friend = (Friend) cb.getTag();\n friend.setSelected(cb.isChecked());\n notifyCounterChanged(cb.isChecked());\n if (cb.isChecked()) {\n selectedFriends.add(friend);\n } else if (selectedFriends.contains(friend)) {\n selectedFriends.remove(friend);\n }\n }\n });\n String avatarUrl = getAvatarUrlForFriend(friend);\n displayAvatarImage(avatarUrl, holder.avatarImageView);\n if (!TextUtils.isEmpty(searchCharacters)) {\n TextViewHelper.changeTextColorView(context, holder.nameTextView, searchCharacters);\n }\n}\n"
"public void loadAll_NullKeys() {\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>());\n try {\n cache.loadAll(null, true, null);\n fail(\"String_Node_Str\");\n } catch (NullPointerException e) {\n }\n}\n"
"public PathStateDistribution clone() {\n final PathStateDistribution clone = (PathStateDistribution) super.clone();\n clone.path = ObjectUtil.cloneSmart(this.path);\n clone.pathState = ObjectUtil.cloneSmart(this.pathState);\n clone.motionDistribution = this.motionDistribution.clone();\n clone.groundDistribution = ObjectUtil.cloneSmart(this.groundDistribution);\n clone.edgeDistribution = ObjectUtil.cloneSmart(this.edgeDistribution);\n return clone;\n}\n"
"private void setUpEditorViews(IModel canvas) {\n this.selectionRecord = new SelectionRecord(viewModel);\n this.feedbackModel = new FeedbackModel(selectionRecord);\n this.shapePane = new ShapePane();\n this.shapePane.addLayer(new DomainModelLayer(viewModel));\n this.shapePane.addLayer(new SelectionLayer(selectionRecord));\n this.shapePane.addLayer(new FeedbackLayer(feedbackModel));\n Envelope canvasBounds = this.viewModel.getCanvasBounds();\n this.shapePane.setPaneBounds(canvasBounds);\n scrollPane = new JScrollPane((ShapePane) this.shapePane, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n scrollPane.getVerticalScrollBar().setUnitIncrement(16);\n scrollPane.setFocusable(true);\n scrollPane.setWheelScrollingEnabled(true);\n this.editBehaviourController = new ViewBehaviourController(shapePane, new OperationFactory(this.shapePane, this.feedbackModel, this.selectionRecord, viewModel, this.commandStack));\n INotationSubsystem notationSubsystem = canvas.getNotationSubsystem();\n this.palettePane = new PalettePanel(notationSubsystem, editBehaviourController);\n this.add(palettePane, BorderLayout.LINE_START);\n this.add(scrollPane, BorderLayout.CENTER);\n this.selectionChangeListener = new ISelectionChangeListener() {\n public void selectionChanged(ISelectionChangeEvent event) {\n EnvelopeBuilder builder = null;\n Iterator<ISelection> oldIter = event.oldSelectionIter();\n while (oldIter.hasNext()) {\n ISelection seln = oldIter.next();\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + seln.getPrimitiveController().getDrawnBounds());\n }\n Envelope bounds = seln.getPrimitiveController().getDrawnBounds();\n if (builder == null) {\n builder = new EnvelopeBuilder(bounds);\n } else {\n builder.union(bounds);\n }\n }\n if (builder != null) {\n builder.expand(REFRESH_EXPANSION_X, REFRESH_EXPANSION_Y);\n Envelope refreshBounds = builder.getEnvelope();\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + refreshBounds);\n }\n shapePane.updateView(refreshBounds);\n } else {\n logger.debug(\"String_Node_Str\");\n }\n builder = null;\n Iterator<ISelection> newIter = event.newSelectionIter();\n while (newIter.hasNext()) {\n ISelection seln = newIter.next();\n Envelope bounds = seln.getPrimitiveController().getDrawnBounds();\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + seln.getPrimitiveController().getDrawnBounds());\n }\n if (builder == null) {\n builder = new EnvelopeBuilder(bounds);\n } else {\n builder.union(bounds);\n }\n }\n if (builder != null) {\n builder.expand(REFRESH_EXPANSION_X, REFRESH_EXPANSION_Y);\n Envelope refreshBounds = builder.getEnvelope();\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + refreshBounds);\n }\n shapePane.updateView(refreshBounds);\n } else {\n logger.debug(\"String_Node_Str\");\n }\n }\n };\n this.revalidate();\n this.initialise();\n}\n"
"public String getSqlUserAdmin() {\n return isAdminStmt;\n}\n"
"protected ScopeDescription unwrap(final Scope scope) {\n final Iterator<? extends ScopeDescription> it = scope.getLevelDescription().iterator();\n if (!it.hasNext()) {\n return null;\n }\n final ScopeDescription description = it.next();\n if (!warningOccurred && it.hasNext()) {\n warningOccurred = true;\n MetadataUtilities.warning(DefaultMaintenanceInformation.class, \"String_Node_Str\", Messages.Keys.IgnoredPropertiesAfterFirst_1, ScopeDescription.class);\n }\n return description;\n}\n"
"public static void saveLoggingAttributes(HandlerContext handlerCtx) {\n Map<String, Object> attrs = (Map<String, Object>) handlerCtx.getInputValue(\"String_Node_Str\");\n String config = (String) handlerCtx.getInputValue(\"String_Node_Str\");\n Map<String, Object> props = new HashMap();\n try {\n for (Map.Entry<String, Object> e : attrs.entrySet()) {\n String key = e.getKey();\n if ((key.equals(\"String_Node_Str\") || key.equals(\"String_Node_Str\") || key.equals(\"String_Node_Str\") || key.equals(\"String_Node_Str\")) && (e.getValue() == null)) {\n attrs.put(key, \"String_Node_Str\");\n }\n props.put(\"String_Node_Str\", key + \"String_Node_Str\" + attrs.get(key) + \"String_Node_Str\");\n props.put(\"String_Node_Str\", config);\n RestUtil.restRequest((String) GuiUtil.getSessionValue(\"String_Node_Str\") + \"String_Node_Str\", props, \"String_Node_Str\", null, false, true);\n }\n } catch (Exception ex) {\n GuiUtil.handleException(handlerCtx, ex);\n if (GuiUtil.getLogger().isLoggable(Level.FINE)) {\n ex.printStackTrace();\n }\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + outPoint.txid + ':' + outPoint.index + \"String_Node_Str\" + script.getScriptBytes().length;\n}\n"
"public NullnessHint onDataflowVisitMethodInvocation(MethodInvocationNode node, Types types, AccessPathNullnessPropagation.SubNodeValues inputs, AccessPathNullnessPropagation.Updates thenUpdates, AccessPathNullnessPropagation.Updates elseUpdates, AccessPathNullnessPropagation.Updates bothUpdates) {\n Symbol.MethodSymbol symbol = ASTHelpers.getSymbol(node.getTree());\n if (thriftIsSetCall(symbol, types)) {\n String methodName = symbol.getSimpleName().toString();\n String capPropName = methodName.substring(5);\n Pair<Element, Element> fieldAndGetter = getFieldAndSetterForProperty(symbol, capPropName);\n Node base = node.getTarget().getReceiver();\n if (fieldAndGetter.first != null) {\n thenUpdates.set(AccessPath.fromBaseAndElement(base, fieldAndGetter.first), Nullness.NONNULL);\n }\n thenUpdates.set(AccessPath.fromBaseAndElement(base, fieldAndGetter.second), Nullness.NONNULL);\n }\n return NullnessHint.UNKNOWN;\n}\n"
"private ComponentInfo internalNoSyncRequestComponent(int requestor, String name, String type, String code, String containerName, int keepAliveTime, StatusHolder status, boolean activate) throws AcsJCannotGetComponentEx, AcsJComponentSpecIncompatibleWithActiveComponentEx {\n AcsJCannotGetComponentEx bcex = null;\n if (name == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\", bcex);\n throw bcex;\n }\n if (status == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n throw bcex;\n }\n boolean isOtherDomainComponent = name.startsWith(CURL_URI_SCHEMA);\n boolean isDynamicComponent = isOtherDomainComponent ? false : (type != null || code != null || containerName != null);\n int h;\n boolean reactivate = false;\n ComponentInfo componentInfo = null;\n synchronized (components) {\n h = components.first();\n while (h != 0) {\n componentInfo = (ComponentInfo) components.get(h);\n if (componentInfo.getName().equals(name)) {\n synchronized (unavailableComponents) {\n if (unavailableComponents.containsKey(name)) {\n reactivate = true;\n }\n }\n ContainerInfo containerInfo = getContainerInfo(componentInfo.getContainer());\n if ((type != null && !componentInfo.getType().equals(type)) || (code != null && componentInfo.getCode() != null && !componentInfo.getCode().equals(code)) || (!reactivate && containerInfo != null && containerName != null && !containerInfo.getName().equals(containerName))) {\n AcsJComponentSpecIncompatibleWithActiveComponentEx ciwace = new AcsJComponentSpecIncompatibleWithActiveComponentEx();\n ciwace.setCURL(componentInfo.getName());\n ciwace.setComponentType(componentInfo.getType());\n ciwace.setComponentCode(componentInfo.getCode() != null ? componentInfo.getCode() : \"String_Node_Str\");\n ciwace.setContainerName(containerInfo != null ? containerInfo.getName() : \"String_Node_Str\");\n throw ciwace;\n }\n if (activate) {\n if (reactivate)\n break;\n if (requestor != 0) {\n if (!componentInfo.getClients().contains(requestor))\n executeCommand(new ComponentCommandClientAdd(componentInfo.getHandle() & HANDLE_MASK, requestor));\n }\n if (requestor != this.getHandle() && requestor != 0)\n addComponentOwner(componentInfo.getHandle(), requestor);\n notifyComponentRequested(new int[] { requestor }, new int[] { componentInfo.getHandle() }, System.currentTimeMillis());\n if ((requestor & TYPE_MASK) == COMPONENT_MASK) {\n ComponentInfo requestorComponentInfo = getComponentInfo(requestor);\n if (requestorComponentInfo != null && requestorComponentInfo.getContainerName() != null && requestorComponentInfo.getContainerName().equals(componentInfo.getContainerName()))\n topologySortManager.notifyTopologyChange(componentInfo.getContainer());\n }\n status.setStatus(ComponentStatus.COMPONENT_ACTIVATED);\n return componentInfo;\n } else {\n if (reactivate)\n status.setStatus(ComponentStatus.COMPONENT_NOT_ACTIVATED);\n else\n status.setStatus(ComponentStatus.COMPONENT_ACTIVATED);\n return componentInfo;\n }\n }\n h = components.next(h);\n }\n }\n if (reactivate && componentInfo.isDynamic()) {\n if (componentInfo.getType() == null || componentInfo.getCode() == null || componentInfo.getDynamicContainerName() == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + componentInfo + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_DOES_NO_EXIST);\n throw bcex;\n } else {\n type = componentInfo.getType();\n code = componentInfo.getCode();\n containerName = componentInfo.getDynamicContainerName();\n keepAliveTime = componentInfo.getKeepAliveTime();\n }\n } else if (!isOtherDomainComponent && (type == null || code == null || containerName == null)) {\n DAOProxy dao = getComponentsDAOProxy();\n if (dao == null || readStringCharacteristics(dao, name, true) == null) {\n Object ref = lookup(name, null);\n if (ref != null) {\n status.setStatus(ComponentStatus.COMPONENT_ACTIVATED);\n return new ComponentInfo(0, name, null, null, new ServiceComponent(ref));\n } else {\n bcex = new AcsJCannotGetComponentEx();\n status.setStatus(ComponentStatus.COMPONENT_DOES_NO_EXIST);\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n throw bcex;\n }\n }\n if (code == null) {\n code = readStringCharacteristics(dao, name + \"String_Node_Str\");\n if (code == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_DOES_NO_EXIST);\n throw bcex;\n }\n }\n if (type == null) {\n type = readStringCharacteristics(dao, name + \"String_Node_Str\");\n if (type == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_DOES_NO_EXIST);\n throw bcex;\n }\n }\n if (containerName == null) {\n containerName = readStringCharacteristics(dao, name + \"String_Node_Str\");\n if (containerName == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_DOES_NO_EXIST);\n throw bcex;\n }\n }\n if (keepAliveTime == RELEASE_TIME_UNDEFINED) {\n keepAliveTime = readLongCharacteristics(dao, name + \"String_Node_Str\", RELEASE_IMMEDIATELY, true);\n }\n }\n if (keepAliveTime == RELEASE_TIME_UNDEFINED) {\n DAOProxy dao = getComponentsDAOProxy();\n if (dao != null) {\n keepAliveTime = readLongCharacteristics(dao, name + \"String_Node_Str\", RELEASE_IMMEDIATELY, true);\n } else {\n keepAliveTime = RELEASE_IMMEDIATELY;\n }\n }\n DAOProxy dao = getComponentsDAOProxy();\n String componentImplLang = null;\n if (dao != null) {\n componentImplLang = readStringCharacteristics(dao, name + \"String_Node_Str\", true);\n }\n if (!activate) {\n status.setStatus(ComponentStatus.COMPONENT_NOT_ACTIVATED);\n return null;\n }\n Container container = null;\n ContainerInfo containerInfo = null;\n Manager remoteManager = null;\n if (isOtherDomainComponent) {\n try {\n String domainName = CURLHelper.createURI(name).getAuthority();\n remoteManager = getManagerForDomain(domainName);\n if (remoteManager == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.WARNING, \"String_Node_Str\" + domainName + \"String_Node_Str\", bcex);\n throw bcex;\n }\n } catch (Throwable th) {\n bcex = new AcsJCannotGetComponentEx(th);\n logger.log(Level.WARNING, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_NOT_ACTIVATED);\n throw bcex;\n }\n } else {\n containerInfo = getContainerInfo(containerName);\n if (containerInfo == null)\n containerInfo = startUpContainer(containerName);\n if (containerInfo != null) {\n checkContainerShutdownState(containerInfo);\n container = containerInfo.getContainer();\n }\n if (container == null) {\n bcex = new AcsJCannotGetComponentEx();\n logger.log(Level.SEVERE, \"String_Node_Str\" + containerName + \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n status.setStatus(ComponentStatus.COMPONENT_NOT_ACTIVATED);\n throw bcex;\n }\n }\n ImplLang containerImplLang = containerInfo.getImplLang();\n if (containerImplLang != null && containerImplLang != ImplLang.not_specified) {\n if (componentImplLang != null && ImplLang.fromString(componentImplLang) != containerImplLang) {\n AcsJCannotGetComponentEx af = new AcsJCannotGetComponentEx();\n logger.log(Level.WARNING, \"String_Node_Str\" + componentImplLang + \"String_Node_Str\" + containerImplLang.name() + \"String_Node_Str\", af);\n throw af;\n }\n }\n synchronized (components) {\n if (!reactivate) {\n Integer objHandle = (Integer) executeCommand(new ComponentCommandPreallocate());\n h = (objHandle == null) ? 0 : objHandle.intValue();\n }\n if (h == 0) {\n AcsJCannotGetComponentEx af = new AcsJCannotGetComponentEx();\n logger.log(Level.WARNING, \"String_Node_Str\", af);\n throw af;\n }\n if (!reactivate) {\n ComponentInfo data = new ComponentInfo(h | COMPONENT_MASK, name, type, code, null);\n data.setKeepAliveTime(keepAliveTime);\n executeCommand(new ComponentCommandSet(h, data));\n synchronized (pendingActivations) {\n pendingActivations.put(name, data);\n }\n if ((requestor & TYPE_MASK) == COMPONENT_MASK)\n addComponentOwner(data.getHandle(), requestor);\n }\n }\n componentInfo = null;\n long executionId = 0;\n long activationTime = 0;\n boolean timeoutError = false;\n if (isOtherDomainComponent) {\n try {\n URI curlName = CURLHelper.createURI(name);\n StatusHolder statusHolder = new StatusHolder();\n remoteManager.getComponent(INTERDOMAIN_MANAGER_HANDLE, curlName, true, statusHolder);\n activationTime = System.currentTimeMillis();\n if (statusHolder.getStatus() == ComponentStatus.COMPONENT_ACTIVATED) {\n String localName = curlName.getPath();\n if (localName.charAt(0) == '/')\n localName = localName.substring(1);\n ComponentInfo[] infos = remoteManager.getComponentInfo(INTERDOMAIN_MANAGER_HANDLE, new int[0], localName, \"String_Node_Str\", true);\n if (infos != null && infos.length == 1) {\n componentInfo = infos[0];\n componentInfo.setContainerName(CURL_URI_SCHEMA + curlName.getAuthority() + \"String_Node_Str\" + componentInfo.getContainerName());\n }\n }\n } catch (Throwable ex) {\n bcex = new AcsJCannotGetComponentEx(ex);\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\", bcex);\n timeoutError = (ex instanceof TimeoutRemoteException);\n }\n } else {\n logger.log(Level.INFO, \"String_Node_Str\" + name + \"String_Node_Str\" + HandleHelper.toString(h | COMPONENT_MASK) + \"String_Node_Str\" + containerInfo.getName() + \"String_Node_Str\");\n boolean callSyncActivate = System.getProperties().containsKey(NAME_SYNC_ACTIVATE);\n if (containerInfo.getImplLang() == ImplLang.py)\n callSyncActivate = true;\n if (callSyncActivate) {\n try {\n executionId = generateExecutionId();\n activationTime = System.currentTimeMillis();\n componentInfo = container.activate_component(h | COMPONENT_MASK, executionId, name, code, type);\n } catch (Throwable ex) {\n bcex = new AcsJCannotGetComponentEx(ex);\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\" + containerName + \"String_Node_Str\", bcex);\n timeoutError = (ex instanceof TimeoutRemoteException);\n }\n } else {\n try {\n executionId = generateExecutionId();\n activationTime = System.currentTimeMillis();\n ComponentInfoCompletionCallbackImpl callback = new ComponentInfoCompletionCallbackImpl(requestor, name, type, code, containerName, keepAliveTime, status, isOtherDomainComponent, isDynamicComponent, h, reactivate, container, containerInfo, executionId, activationTime);\n container.activate_component_async(h | COMPONENT_MASK, executionId, name, code, type, callback);\n return callback.waitUntilActivated(getLockTimeout());\n } catch (Throwable ex) {\n bcex = new AcsJCannotGetComponentEx(ex);\n logger.log(Level.SEVERE, \"String_Node_Str\" + name + \"String_Node_Str\" + containerName + \"String_Node_Str\", bcex);\n throw bcex;\n }\n }\n }\n return internalNoSyncRequestComponentPhase2(requestor, name, type, code, containerName, keepAliveTime, status, bcex, isOtherDomainComponent, isDynamicComponent, h, reactivate, componentInfo, container, containerInfo, executionId, activationTime, timeoutError);\n}\n"
"public static MediaDescription createMediaDescription(List<MediaFormat> formats, StreamConnector connector, MediaDirection direction, List<RTPExtension> supportedExtensions, DynamicPayloadTypeRegistry dynamicPayloadTypes, DynamicRTPExtensionsRegistry rtpExtensionsRegistry) throws OperationFailedException {\n int[] payloadTypesArray = new int[formats.size()];\n Vector<Attribute> mediaAttributes = new Vector<Attribute>(2 * payloadTypesArray.length + 1);\n MediaType mediaType = null;\n if (direction != MediaDirection.SENDRECV)\n mediaAttributes.add(createDirectionAttribute(direction));\n for (int i = 0; i < payloadTypesArray.length; i++) {\n MediaFormat format = formats.get(i);\n MediaType fmtMediaType = format.getMediaType();\n if (mediaType == null) {\n mediaType = fmtMediaType;\n }\n byte payloadType = format.getRTPPayloadType();\n if (payloadType == MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN) {\n try {\n payloadType = dynamicPayloadTypes.obtainPayloadTypeNumber(format);\n } catch (IllegalStateException exception) {\n throw new OperationFailedException(\"String_Node_Str\", OperationFailedException.INTERNAL_ERROR, exception);\n }\n }\n String numChannelsStr = \"String_Node_Str\";\n if (format instanceof AudioMediaFormat) {\n int channels = ((AudioMediaFormat) format).getChannels();\n if (channels > 1)\n numChannelsStr = \"String_Node_Str\" + channels;\n }\n Attribute rtpmap = sdpFactory.createAttribute(SdpConstants.RTPMAP, payloadType + \"String_Node_Str\" + format.getEncoding() + \"String_Node_Str\" + format.getClockRateString() + numChannelsStr);\n mediaAttributes.add(rtpmap);\n if (format.getFormatParameters().size() > 0) {\n Attribute fmtp = sdpFactory.createAttribute(\"String_Node_Str\", payloadType + \"String_Node_Str\" + encodeFmtp(format));\n mediaAttributes.add(fmtp);\n }\n payloadTypesArray[i] = payloadType;\n }\n int rtpPort = connector.getDataSocket().getLocalPort();\n int rtcpPort = connector.getControlSocket().getLocalPort();\n if ((rtpPort + 1) != rtcpPort) {\n Attribute rtcpAttr = sdpFactory.createAttribute(RTCP_ATTR, Integer.toString(rtcpPort));\n mediaAttributes.add(rtcpAttr);\n }\n if (rtpExtensions != null && rtpExtensions.size() > 0) {\n for (RTPExtension extension : rtpExtensions) {\n byte extID = rtpExtensionsRegistry.obtainExtensionMapping(extension);\n String uri = extension.getURI().toString();\n MediaDirection extDirection = extension.getDirection();\n String attributes = extension.getExtensionAttributes();\n String attrValue = Byte.toString(extID) + ((extDirection == MediaDirection.SENDRECV) ? \"String_Node_Str\" : (\"String_Node_Str\" + extDirection.toString())) + \"String_Node_Str\" + uri + (attributes == null ? \"String_Node_Str\" : (\"String_Node_Str\" + attributes));\n Attribute extMapAttr = sdpFactory.createAttribute(EXTMAP_ATTR, attrValue);\n mediaAttributes.add(extMapAttr);\n }\n }\n MediaDescription mediaDesc = null;\n try {\n mediaDesc = sdpFactory.createMediaDescription(mediaType.toString(), connector.getDataSocket().getLocalPort(), 1, SdpConstants.RTP_AVP, payloadTypesArray);\n mediaDesc.setAttributes(mediaAttributes);\n } catch (Exception cause) {\n ProtocolProviderServiceSipImpl.throwOperationFailedException(\"String_Node_Str\", OperationFailedException.INTERNAL_ERROR, cause, logger);\n }\n return mediaDesc;\n}\n"
"private boolean validateArtifactLocation(String filename) {\n return new File(filename).exists();\n}\n"
"public JsonElement serialize(WrappedStack wrappedStack, Type type, JsonSerializationContext context) {\n JsonObject jsonWrappedStack = new JsonObject();\n Gson gsonWrappedStack = new Gson();\n jsonWrappedStack.addProperty(\"String_Node_Str\", wrappedStack.className);\n jsonWrappedStack.addProperty(\"String_Node_Str\", wrappedStack.stackSize);\n jsonWrappedStack.add(\"String_Node_Str\", gsonWrappedStack.toJsonTree(wrappedStack.wrappedStack));\n return jsonWrappedStack;\n}\n"
"public void run() {\n try {\n presence.publishPresenceStatus(status, \"String_Node_Str\");\n } catch (IllegalArgumentException e1) {\n logger.error(\"String_Node_Str\", e1);\n } catch (IllegalStateException e1) {\n logger.error(\"String_Node_Str\", e1);\n } catch (OperationFailedException e1) {\n if (e1.getErrorCode() == OperationFailedException.GENERAL_ERROR) {\n String msgText = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { protocolProvider.getAccountID().getUserID(), protocolProvider.getAccountID().getService() });\n new ErrorDialog(null, GuiActivator.getResources().getI18NString(\"String_Node_Str\"), msgText, e1).showDialog();\n } else if (e1.getErrorCode() == OperationFailedException.NETWORK_FAILURE) {\n String msgText = GuiActivator.getResources().getI18NString(\"String_Node_Str\");\n new ErrorDialog(null, GuiActivator.getResources().getI18NString(\"String_Node_Str\"), msgText, e1).showDialog();\n } else if (e1.getErrorCode() == OperationFailedException.PROVIDER_NOT_REGISTERED) {\n String msgText = GuiActivator.getResources().getI18NString(\"String_Node_Str\");\n new ErrorDialog(null, GuiActivator.getResources().getI18NString(\"String_Node_Str\"), msgText, e1).showDialog();\n }\n logger.error(\"String_Node_Str\", e1);\n }\n}\n"
"private void updateReferences(HashMap<URI, URI> uriMap) throws SBOLValidationException {\n for (TopLevel topLevel : getTopLevels()) {\n for (URI wasDerivedFrom : topLevel.getWasDerivedFroms()) {\n if (uriMap.get(wasDerivedFrom) != null) {\n topLevel.removeWasDerivedFrom(wasDerivedFrom);\n topLevel.addWasDerivedFrom(uriMap.get(wasDerivedFrom));\n }\n }\n for (URI wasGeneratedBy : topLevel.getWasGeneratedBys()) {\n if (uriMap.get(wasGeneratedBy) != null) {\n topLevel.removeWasGeneratedBy(wasGeneratedBy);\n topLevel.addWasGeneratedBy(uriMap.get(wasGeneratedBy));\n }\n }\n }\n for (Collection collection : getCollections()) {\n for (URI memberURI : collection.getMemberURIs()) {\n if (uriMap.get(memberURI) != null) {\n collection.removeMember(memberURI);\n collection.addMember(uriMap.get(memberURI));\n }\n }\n updateReferences(collection, uriMap);\n }\n for (ComponentDefinition componentDefinition : getComponentDefinitions()) {\n updateReferences(componentDefinition, uriMap);\n for (Component component : componentDefinition.getComponents()) {\n if (uriMap.get(component.getDefinitionURI()) != null) {\n component.setDefinition(uriMap.get(component.getDefinitionURI()));\n for (MapsTo mapsTo : component.getMapsTos()) {\n ComponentDefinition cd = getComponentDefinition(component.getDefinitionURI());\n if (cd != null) {\n String displayId = URIcompliance.extractDisplayId(mapsTo.getRemoteURI());\n URI newURI = URIcompliance.createCompliantURI(cd.getPersistentIdentity().toString(), displayId, cd.getVersion());\n mapsTo.setRemote(newURI);\n }\n }\n }\n updateReferences(component, uriMap);\n for (MapsTo mapsTo : component.getMapsTos()) {\n updateReferences(mapsTo, uriMap);\n }\n }\n for (SequenceAnnotation sa : componentDefinition.getSequenceAnnotations()) {\n for (Location loc : sa.getLocations()) {\n updateReferences(loc, uriMap);\n }\n updateReferences(sa, uriMap);\n }\n for (SequenceConstraint sc : componentDefinition.getSequenceConstraints()) {\n updateReferences(sc, uriMap);\n }\n for (URI sequenceURI : componentDefinition.getSequenceURIs()) {\n if (uriMap.get(sequenceURI) != null) {\n componentDefinition.removeSequence(sequenceURI);\n componentDefinition.addSequence(uriMap.get(sequenceURI));\n }\n }\n }\n for (ModuleDefinition moduleDefinition : getModuleDefinitions()) {\n updateReferences(moduleDefinition, uriMap);\n for (FunctionalComponent functionalComponent : moduleDefinition.getFunctionalComponents()) {\n if (uriMap.get(functionalComponent.getDefinitionURI()) != null) {\n functionalComponent.setDefinition(uriMap.get(functionalComponent.getDefinitionURI()));\n for (MapsTo mapsTo : functionalComponent.getMapsTos()) {\n ComponentDefinition cd = getComponentDefinition(functionalComponent.getDefinitionURI());\n if (cd != null) {\n String displayId = URIcompliance.extractDisplayId(mapsTo.getRemoteURI());\n URI newURI = URIcompliance.createCompliantURI(cd.getPersistentIdentity().toString(), displayId, cd.getVersion());\n mapsTo.setRemote(newURI);\n }\n }\n }\n updateReferences(functionalComponent, uriMap);\n for (MapsTo mapsTo : functionalComponent.getMapsTos()) {\n updateReferences(mapsTo, uriMap);\n }\n }\n for (Module module : moduleDefinition.getModules()) {\n if (uriMap.get(module.getDefinitionURI()) != null) {\n module.setDefinition(uriMap.get(module.getDefinitionURI()));\n for (MapsTo mapsTo : module.getMapsTos()) {\n ModuleDefinition md = getModuleDefinition(module.getDefinitionURI());\n if (md != null) {\n String displayId = URIcompliance.extractDisplayId(mapsTo.getRemoteURI());\n URI newURI = URIcompliance.createCompliantURI(md.getPersistentIdentity().toString(), displayId, md.getVersion());\n mapsTo.setRemote(newURI);\n }\n }\n }\n updateReferences(module, uriMap);\n for (MapsTo mapsTo : module.getMapsTos()) {\n updateReferences(mapsTo, uriMap);\n }\n }\n for (Interaction interaction : moduleDefinition.getInteractions()) {\n updateReferences(interaction, uriMap);\n for (Participation participation : interaction.getParticipations()) {\n updateReferences(participation, uriMap);\n }\n }\n for (URI modelURI : moduleDefinition.getModelURIs()) {\n if (uriMap.get(modelURI) != null) {\n moduleDefinition.removeModel(modelURI);\n moduleDefinition.addModel(uriMap.get(modelURI));\n }\n }\n }\n for (Model model : getModels()) {\n updateReferences(model, uriMap);\n }\n for (Sequence sequence : getSequences()) {\n updateReferences(sequence, uriMap);\n }\n for (GenericTopLevel genericTopLevel : getGenericTopLevels()) {\n updateReferences(genericTopLevel, uriMap);\n }\n for (Activity activity : getActivities()) {\n updateReferences(activity, uriMap);\n for (Association association : activity.getAssociations()) {\n if (uriMap.get(association.getAgentURI()) != null) {\n association.setAgent(uriMap.get(association.getAgentURI()));\n }\n if (uriMap.get(association.getPlanURI()) != null) {\n association.setPlan(uriMap.get(association.getPlanURI()));\n }\n updateReferences(association, uriMap);\n }\n for (Usage usage : activity.getUsages()) {\n if (uriMap.get(usage.getEntityURI()) != null) {\n usage.setEntity(uriMap.get(usage.getEntityURI()));\n }\n updateReferences(usage, uriMap);\n }\n }\n for (Agent agent : getAgents()) {\n updateReferences(agent, uriMap);\n }\n for (Plan plan : getPlans()) {\n updateReferences(plan, uriMap);\n }\n}\n"
"public static boolean fixNamesFromTrees(List<JadeTree> trees, GraphDatabaseAgent graphDb, boolean prune, MessageLogger logger) throws IOException {\n String urlbasecontext = \"String_Node_Str\";\n String urlbasefetch = \"String_Node_Str\";\n logger.message(\"String_Node_Str\");\n for (int i = 0; i < trees.size(); i++) {\n JadeTree currTree = trees.get(i);\n logger.indentMessageStr(1, \"String_Node_Str\", \"String_Node_Str\", (String) currTree.getObject(\"String_Node_Str\"));\n ArrayList<JadeNode> searchnds = new ArrayList<JadeNode>();\n HashMap<String, JadeNode> namenodemap = new HashMap<String, JadeNode>();\n ArrayList<JadeNode> matchednodes = new ArrayList<JadeNode>();\n for (int j = 0; j < currTree.getExternalNodeCount(); j++) {\n JadeNode ndJ = currTree.getExternalNode(j);\n if (ndJ.getObject(\"String_Node_Str\") == null) {\n logger.indentMessageStrStr(2, \"String_Node_Str\", \"String_Node_Str\", ndJ.getName(), \"String_Node_Str\", (String) ndJ.getObject(\"String_Node_Str\"));\n searchnds.add(ndJ);\n namenodemap.put(ndJ.getName(), ndJ);\n }\n }\n if (searchnds.size() == 0) {\n logger.indentMessage(1, \"String_Node_Str\");\n } else {\n StringBuffer sb = new StringBuffer();\n ArrayList<String> namelist = new ArrayList<String>();\n for (int j = 0; j < currTree.getExternalNodeCount(); j++) {\n namelist.add(currTree.getExternalNode(j).getName());\n }\n HashMap<String, Object> namemap = new HashMap<String, Object>();\n namemap.put(\"String_Node_Str\", namelist);\n String contextQueryParameters = new JSONObject(namemap).toJSONString();\n System.out.println(contextQueryParameters);\n ClientConfig cc = new DefaultClientConfig();\n Client c = Client.create(cc);\n WebResource contextQuery = c.resource(urlbasecontext);\n String contextResponseJSONStr = null;\n try {\n contextQuery.accept(MediaType.APPLICATION_JSON_TYPE).type(MediaType.APPLICATION_JSON_TYPE).post(String.class, contextQueryParameters);\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n }\n if (contextResponseJSONStr != null) {\n JSONObject contextResponse = (JSONObject) JSONValue.parse(contextResponseJSONStr);\n String cn = (String) contextResponse.get(\"String_Node_Str\");\n ArrayList<String> namelist2 = new ArrayList<String>();\n for (int j = 0; j < searchnds.size(); j++) {\n if (searchnds.get(j).getObject(\"String_Node_Str\") == null) {\n namelist2.add(searchnds.get(j).getName());\n }\n }\n HashMap<String, Object> namemap2 = new HashMap<String, Object>();\n namemap2.put(\"String_Node_Str\", namelist2);\n namemap2.put(\"String_Node_Str\", cn);\n contextQueryParameters = new JSONObject(namemap2).toJSONString();\n cc = new DefaultClientConfig();\n c = Client.create(cc);\n contextQuery = c.resource(urlbasefetch);\n String tnrsResponseJSONStr = null;\n try {\n tnrsResponseJSONStr = contextQuery.accept(MediaType.APPLICATION_JSON_TYPE).type(MediaType.APPLICATION_JSON_TYPE).post(String.class, contextQueryParameters);\n } catch (Exception x) {\n logger.indentMessageStr(1, \"String_Node_Str\", \"String_Node_Str\", contextQueryParameters);\n }\n }\n HashMap<String, Object> namemap2 = new HashMap<String, Object>();\n namemap2.put(\"String_Node_Str\", namelist2);\n namemap2.put(\"String_Node_Str\", cn);\n contextQueryParameters = new JSONObject(namemap2).toJSONString();\n cc = new DefaultClientConfig();\n c = Client.create(cc);\n contextQuery = c.resource(urlbasefetch);\n String tnrsResponseJSONStr = null;\n try {\n tnrsResponseJSONStr = contextQuery.accept(MediaType.APPLICATION_JSON_TYPE).type(MediaType.APPLICATION_JSON_TYPE).post(String.class, contextQueryParameters);\n } catch (Exception x) {\n logger.indentMessageStr(1, \"String_Node_Str\", \"String_Node_Str\", contextQueryParameters);\n }\n if (tnrsResponseJSONStr != null) {\n contextResponse = (JSONObject) JSONValue.parse(tnrsResponseJSONStr);\n JSONArray unm = (JSONArray) contextResponse.get(\"String_Node_Str\");\n logger.indentMessageInt(1, \"String_Node_Str\", \"String_Node_Str\", unm.size());\n JSONArray res = (JSONArray) contextResponse.get(\"String_Node_Str\");\n for (Object id : res) {\n JSONArray tres = (JSONArray) ((JSONObject) id).get(\"String_Node_Str\");\n String origname = (String) ((JSONObject) id).get(\"String_Node_Str\");\n for (Object tid : tres) {\n Double score = (Double) ((JSONObject) tid).get(\"String_Node_Str\");\n boolean permat = (Boolean) ((JSONObject) tid).get(\"String_Node_Str\");\n String ottId = String.valueOf(((JSONObject) tid).get(\"String_Node_Str\"));\n String matchedName = (String) ((JSONObject) tid).get(\"String_Node_Str\");\n if (score >= 1) {\n Long tnrsottId = Long.valueOf(ottId);\n JadeNode fixedNode = namenodemap.get(origname);\n logger.indentMessageLongStrStrStr(2, \"String_Node_Str\", \"String_Node_Str\", tnrsottId, \"String_Node_Str\", matchedName, \"String_Node_Str\", origname, \"String_Node_Str\", (String) fixedNode.getObject(\"String_Node_Str\"));\n fixedNode.assocObject(\"String_Node_Str\", tnrsottId);\n matchednodes.add(namenodemap.get(origname));\n namenodemap.remove(origname);\n break;\n }\n }\n }\n }\n Index<Node> graphNodeIndex = graphDb.getNodeIndex(\"String_Node_Str\");\n ArrayList<String> removenames = new ArrayList<String>();\n for (String name : namenodemap.keySet()) {\n IndexHits<Node> hits = graphNodeIndex.get(\"String_Node_Str\", name);\n if (hits.size() == 0) {\n } else if (hits.size() == 1) {\n String uidString = (String) hits.getSingle().getProperty(\"String_Node_Str\");\n Long lid = Long.valueOf(uidString);\n logger.indentMessageLong(2, \"String_Node_Str\", name, lid);\n namenodemap.get(name).assocObject(\"String_Node_Str\", Long.valueOf(lid));\n removenames.add(name);\n } else if (hits.size() > 1) {\n logger.indentMessageInt(2, \"String_Node_Str\", name, hits.size());\n }\n hits.close();\n }\n for (String name : removenames) {\n namenodemap.remove(name);\n }\n if (namenodemap.size() > 0) {\n if (prune) {\n for (String name : namenodemap.keySet()) {\n JadeNode jnode = namenodemap.get(name);\n logger.indentMessageStrStr(2, \"String_Node_Str\", \"String_Node_Str\", name, \"String_Node_Str\", (String) jnode.getObject(\"String_Node_Str\"));\n try {\n currTree.pruneExternalNode(jnode);\n } catch (Exception x) {\n logger.indentMessageStr(3, \"String_Node_Str\", \"String_Node_Str\", name);\n return false;\n }\n }\n } else {\n return false;\n }\n }\n }\n if (prune) {\n TLongHashSet tipottols = new TLongHashSet();\n HashSet<JadeNode> pru = new HashSet<JadeNode>();\n for (int j = 0; j < currTree.getExternalNodeCount(); j++) {\n JadeNode currNd = currTree.getExternalNode(j);\n Long tid = (Long) currNd.getObject(\"String_Node_Str\");\n if (tid == null) {\n logger.indentMessage(2, \"String_Node_Str\");\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNd.getName(), \"String_Node_Str\", (String) currNd.getObject(\"String_Node_Str\"));\n pru.add(currNd);\n } else if (tipottols.contains(tid)) {\n logger.indentMessage(2, \"String_Node_Str\");\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNd.getName(), \"String_Node_Str\", (String) currNd.getObject(\"String_Node_Str\"));\n logger.indentMessageLong(3, \"String_Node_Str\", \"String_Node_Str\", tid);\n pru.add(currNd);\n } else {\n IndexHits<Node> hits = graphDb.getNodeIndex(\"String_Node_Str\").get(\"String_Node_Str\", String.valueOf(tid));\n if (hits.size() == 0) {\n logger.indentMessage(2, \"String_Node_Str\");\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNd.getName(), \"String_Node_Str\", (String) currNd.getObject(\"String_Node_Str\"));\n logger.indentMessageLong(3, \"String_Node_Str\", \"String_Node_Str\", tid);\n pru.add(currNd);\n } else {\n tipottols.add(tid);\n }\n hits.close();\n }\n }\n for (int j = 0; j < currTree.getExternalNodeCount(); j++) {\n JadeNode currNdJ = currTree.getExternalNode(j);\n if (pru.contains(currNdJ)) {\n continue;\n }\n Long tid = (Long) currNdJ.getObject(\"String_Node_Str\");\n IndexHits<Node> hits = graphDb.getNodeIndex(\"String_Node_Str\").get(\"String_Node_Str\", String.valueOf(tid));\n Node firstNode = hits.getSingle();\n hits.close();\n TLongArrayList t1 = new TLongArrayList((long[]) firstNode.getProperty(\"String_Node_Str\"));\n for (int k = 0; k < currTree.getExternalNodeCount(); k++) {\n JadeNode currNdK = currTree.getExternalNode(k);\n if (pru.contains(currNdK) || k == j) {\n continue;\n }\n Long tid2 = (Long) currNdK.getObject(\"String_Node_Str\");\n IndexHits<Node> hits2 = graphDb.getNodeIndex(\"String_Node_Str\").get(\"String_Node_Str\", String.valueOf(tid2));\n Node secondNode = hits2.getSingle();\n hits2.close();\n if (secondNode == null) {\n logger.indentMessageStr(2, \"String_Node_Str\", \"String_Node_Str\", String.valueOf(tid2));\n pru.add(currNdK);\n } else {\n TLongArrayList t2 = new TLongArrayList((long[]) secondNode.getProperty(\"String_Node_Str\"));\n if (LicaUtil.containsAnyt4jUnsorted(t1, t2)) {\n logger.indentMessage(2, \"String_Node_Str\");\n if (t2.size() < t1.size()) {\n pru.add(currNdJ);\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNdK.getName(), \"String_Node_Str\", (String) currNdK.getObject(\"String_Node_Str\"));\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNdJ.getName(), \"String_Node_Str\", (String) currNdJ.getObject(\"String_Node_Str\"));\n break;\n } else {\n pru.add(currNdK);\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNdJ.getName(), \"String_Node_Str\", (String) currNdJ.getObject(\"String_Node_Str\"));\n logger.indentMessageStrStr(3, \"String_Node_Str\", \"String_Node_Str\", currNdK.getName(), \"String_Node_Str\", (String) currNdK.getObject(\"String_Node_Str\"));\n }\n }\n }\n }\n }\n for (JadeNode tn : pru) {\n logger.indentMessageStrStr(2, \"String_Node_Str\", \"String_Node_Str\", tn.getName(), \"String_Node_Str\", (String) tn.getObject(\"String_Node_Str\"));\n try {\n currTree.pruneExternalNode(tn);\n } catch (Exception x) {\n logger.indentMessageStr(3, \"String_Node_Str\", \"String_Node_Str\", tn.getName());\n return false;\n }\n }\n currTree.processRoot();\n if (prune == true) {\n logger.indentMessageStr(1, \"String_Node_Str\", \"String_Node_Str\", currTree.getRoot().getNewick(false));\n }\n }\n logger.indentMessage(1, \"String_Node_Str\");\n for (int k = 0; k < currTree.getExternalNodeCount(); k++) {\n JadeNode ndK = currTree.getExternalNode(k);\n Long tid = (Long) ndK.getObject(\"String_Node_Str\");\n IndexHits<Node> hits = graphDb.getNodeIndex(\"String_Node_Str\").get(\"String_Node_Str\", String.valueOf(tid));\n Node firstNode = hits.getSingle();\n hits.close();\n Node cnode = firstNode;\n if (cnode == null) {\n logger.indentMessageLongStrStr(2, \"String_Node_Str\", \"String_Node_Str\", tid, \"String_Node_Str\", ndK.getName(), \"String_Node_Str\", (String) ndK.getObject(\"String_Node_Str\"));\n } else {\n String cnodeName = (String) cnode.getProperty(\"String_Node_Str\");\n StringBuffer sb = new StringBuffer();\n sb.append(cnodeName == null ? \"String_Node_Str\" : cnodeName);\n while (cnode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n cnode = cnode.getSingleRelationship(RelType.TAXCHILDOF, Direction.OUTGOING).getEndNode();\n cnodeName = (String) cnode.getProperty(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(cnodeName == null ? \"String_Node_Str\" : cnodeName);\n }\n logger.indentMessageLongStrStr(2, \"String_Node_Str\", \"String_Node_Str\", tid, \"String_Node_Str\", sb.toString(), \"String_Node_Str\", (String) ndK.getObject(\"String_Node_Str\"));\n }\n }\n }\n return true;\n}\n"
"void doManualPortSwitching(int portId, IHdmiControlCallback callback) {\n assertRunOnServiceThread();\n if (!mService.isValidPortId(portId)) {\n invokeCallback(callback, HdmiControlManager.RESULT_INCORRECT_MODE);\n return;\n }\n if (portId == getActivePortId()) {\n invokeCallback(callback, HdmiControlManager.RESULT_SUCCESS);\n return;\n }\n mActiveSource.invalidate();\n if (!mService.isControlEnabled()) {\n setActivePortId(portId);\n invokeCallback(callback, HdmiControlManager.RESULT_INCORRECT_MODE);\n return;\n }\n int oldPath = getActivePortId() != Constants.INVALID_PORT_ID ? mService.portIdToPath(getActivePortId()) : getDeviceInfo().getPhysicalAddress();\n int newPath = mService.portIdToPath(portId);\n HdmiCecMessage routingChange = HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath);\n mService.sendCecCommand(routingChange);\n removeAction(RoutingControlAction.class);\n addAndStartAction(new RoutingControlAction(this, newPath, false, callback));\n}\n"
"public List<InvoiceLine> populate(Invoice invoice, InvoicingFolder folder) throws AxelorException {\n List<SaleOrderLine> saleOrderLineList = new ArrayList<SaleOrderLine>(folder.getSaleOrderLineSet());\n List<PurchaseOrderLine> purchaseOrderLineList = new ArrayList<PurchaseOrderLine>(folder.getPurchaseOrderLineSet());\n List<TimesheetLine> timesheetLineList = new ArrayList<TimesheetLine>(folder.getLogTimesSet());\n List<ExpenseLine> expenseLineList = new ArrayList<ExpenseLine>(folder.getExpenseLineSet());\n List<ElementsToInvoice> elementsToInvoiceList = new ArrayList<ElementsToInvoice>(folder.getElementsToInvoiceSet());\n List<ProjectTask> projectTaskList = new ArrayList<ProjectTask>(folder.getProjectTaskSet());\n List<InvoiceLine> invoiceLineList = new ArrayList<InvoiceLine>();\n invoiceLineList.addAll(saleOrderInvoiceServiceImpl.createInvoiceLines(invoice, saleOrderLineList));\n invoiceLineList.addAll(this.customerChargeBackPurchases(purchaseOrderInvoiceServiceImpl.createInvoiceLines(invoice, purchaseOrderLineList), folder));\n invoiceLineList.addAll(timesheetServiceImp.createInvoiceLines(invoice, timesheetLineList));\n invoiceLineList.addAll(expenseService.createInvoiceLines(invoice, expenseLineList));\n invoiceLineList.addAll(elementsToInvoiceService.createInvoiceLines(invoice, elementsToInvoiceList));\n invoiceLineList.addAll(this.createInvoiceLines(invoice, projectTaskList));\n for (InvoiceLine invoiceLine : invoiceLineList) {\n sequence += 10;\n invoiceLine.setSequence(sequence);\n invoiceLine.setSaleOrder(invoiceLine.getInvoice().getSaleOrder());\n }\n return invoiceLineList;\n}\n"
"public int hashCode() {\n return method.hashCode();\n}\n"
"public SchemaPayload setData(Object data) {\n try {\n objectNode.putPOJO(Parameter.DATA, objectMapper.writeValueAsString(data));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return this;\n}\n"
"protected Query makeQuery(Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps) {\n setFormulas(formulae);\n setAxes(axes);\n setCube(cube);\n setSlicer(slicer);\n setCellProps(cellProps);\n return null;\n}\n"
"public Insets getMargin(Insets retValue) {\n if (retValue == null) {\n retValue = new Insets();\n } else {\n retValue = new Insets(retValue);\n }\n int fontSize = DEUtil.getFontSizeIntValue(getHandle());\n double px = 0;\n Object prop = getHandle().getProperty(StyleHandle.MARGIN_TOP_PROP);\n if (!DesignChoiceConstants.MARGIN_AUTO.equals(prop)) {\n px = DEUtil.convertToPixel(prop, fontSize);\n }\n double py = 0;\n prop = getHandle().getProperty(StyleHandle.MARGIN_BOTTOM_PROP);\n if (!DesignChoiceConstants.MARGIN_AUTO.equals(prop)) {\n py = DEUtil.convertToPixel(prop, fontSize);\n }\n retValue.top = (int) px;\n retValue.bottom = (int) py;\n px = py = 0;\n prop = getHandle().getProperty(StyleHandle.MARGIN_LEFT_PROP);\n if (!DesignChoiceConstants.MARGIN_AUTO.equals(prop)) {\n if (isPercentageValue(prop) && size.width > 0) {\n px = getMeasure(prop) * size.width / 100;\n } else {\n px = DEUtil.convertToPixel(prop, fontSize);\n }\n }\n prop = getHandle().getProperty(StyleHandle.MARGIN_RIGHT_PROP);\n if (!DesignChoiceConstants.MARGIN_AUTO.equals(prop)) {\n py = DEUtil.convertToPixel(prop, fontSize);\n }\n retValue.left = (int) px;\n retValue.right = (int) py;\n return retValue;\n}\n"
"private void handleMethodConsumer(MethodSpec.Builder methodSpec, Multimap<String, String> ramlTypeToMediaType, GType typeDeclaration) {\n Collection<String> mediaTypes = ramlTypeToMediaType.get(typeDeclaration.name());\n AnnotationSpec.Builder ann = buildAnnotation(mediaTypes, Consumes.class);\n methodSpec.addAnnotation(ann.build());\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n if (sPendingEncryptActivities > 0) {\n sPendingEncryptActivities--;\n }\n if (debug)\n Log.d(TAG, \"String_Node_Str\" + sPendingEncryptActivities);\n if (sCancelEncrypt) {\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n sCancelEncrypt = false;\n setResult(RESULT_CANCELED);\n finish();\n return;\n }\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n NoteEditor.deleteStaticDecryptedText();\n Intent i = getIntent();\n i.setComponent(null);\n String action = i.getStringExtra(PrivateNotePadIntents.EXTRA_ACTION);\n setResult(RESULT_CANCELED);\n boolean contentUnchanged = i.getBooleanExtra(PrivateNotePadIntents.EXTRA_CONTENT_UNCHANGED, false);\n if (contentUnchanged) {\n finish();\n return;\n }\n if (!action.equals(CryptoIntents.ACTION_ENCRYPT) && !action.equals(CryptoIntents.ACTION_DECRYPT)) {\n Log.e(TAG, \"String_Node_Str\" + action);\n finish();\n return;\n }\n i.setAction(action);\n if (IntentUtils.isIntentAvailable(this, i)) {\n try {\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n startActivityForResult(i, REQUEST_CODE_ENCRYPT_OR_UNENCRYPT);\n } catch (ActivityNotFoundException e) {\n Toast.makeText(this, R.string.encryption_failed, Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"String_Node_Str\");\n }\n } else {\n showDialog(DIALOG_ID_GET_FROM_MARKET);\n }\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n}\n"
"protected IFigure createFigure() {\n OPMStructuralLink model = (OPMStructuralLink) getModel();\n linkKind = OPMStructuralLinkToStructuralLinkKindConverter.INSTANCE.Convert(model);\n figure = new OPMStructuralLinkAggregatorFigure(linkKind);\n return figure;\n}\n"
"public synchronized RuntimeInfo lookup(final RunId runId) {\n RuntimeInfo runtimeInfo = super.lookup(runId);\n if (runtimeInfo != null) {\n return runtimeInfo;\n }\n Optional<WeaveRunner.LiveInfo> result = Iterables.tryFind(weaveRunner.lookupLive(), new Predicate<WeaveRunner.LiveInfo>() {\n public boolean apply(WeaveRunner.LiveInfo input) {\n return Iterables.indexOf(input.getRunIds(), Predicates.equalTo(runId)) != -1;\n }\n });\n if (!result.isPresent()) {\n LOG.info(\"String_Node_Str\", runId);\n return null;\n }\n WeaveRunner.LiveInfo liveInfo = result.get();\n String appName = liveInfo.getApplicationName();\n Matcher matcher = APP_NAME_PATTERN.matcher(appName);\n if (!matcher.matches()) {\n LOG.warn(\"String_Node_Str\", appName);\n return null;\n }\n Type type = getType(matcher.group(1));\n if (type == null) {\n LOG.warn(\"String_Node_Str\", appName);\n return null;\n }\n Id.Program programId = Id.Program.from(matcher.group(2), matcher.group(3), matcher.group(4));\n WeaveController weaveController = weaveRunner.lookup(appName, runId);\n if (weaveController == null) {\n LOG.info(\"String_Node_Str\", runId);\n return null;\n }\n runtimeInfo = createRuntimeInfo(type, programId, weaveController);\n updateRuntimeInfo(type, runId, runtimeInfo);\n return runtimeInfo;\n}\n"
"public void readProfileWithValidArgumentThatDoesNotExistInPersistenceStore() throws ServiceException {\n Profile profile = new Profile(100, \"String_Node_Str\", null, null, false, false, false, false, \"String_Node_Str\", false);\n profileService.add(profile);\n profile = profileService.get(101);\n assertTrue(profile == null);\n}\n"
"protected OQueryContextNative query(OQueryContextNative record, QLogChat e) {\n return null;\n}\n"
"public void buildMenu(IMenuManager menu, List selectedList) {\n if (selectedList != null && selectedList.size() == 1 && ChartReportItemUtil.isChartHandle(selectedList.get(0))) {\n ExtendedItemHandle handle = (ExtendedItemHandle) selectedList.get(0);\n if (handle.getExtensionName().equals(\"String_Node_Str\")) {\n Separator separator = new Separator(\"String_Node_Str\");\n if (menu.getItems().length > 0) {\n menu.insertBefore(menu.getItems()[0].getId(), separator);\n } else {\n menu.add(separator);\n }\n menu.appendToGroup(separator.getId(), new OpenTaskSelectTypeAction(handle));\n menu.appendToGroup(separator.getId(), new OpenTaskSelectDataAction(handle));\n menu.appendToGroup(separator.getId(), new OpenTaskFormatChartAction(handle));\n }\n }\n}\n"
"public boolean luaStackCall(LuaState vm) {\n switch(id) {\n case INSTALL:\n install(vm._G);\n break;\n case ABS:\n setResult(vm, abs(vm.topointer(2)));\n break;\n case COS:\n setResult(vm, new LDouble(Math.cos(vm.tonumber(2))));\n break;\n case MAX:\n setResult(vm, max(vm.topointer(2), vm.topointer(3)));\n break;\n case MIN:\n setResult(vm, min(vm.topointer(2), vm.topointer(3)));\n break;\n case MODF:\n modf(vm);\n break;\n case SIN:\n setResult(vm, new LDouble(Math.sin(vm.tonumber(2))));\n break;\n case SQRT:\n setResult(vm, new LDouble(Math.sqrt(vm.tonumber(2))));\n break;\n case CEIL:\n setResult(vm, LInteger.valueOf((int) Math.ceil(vm.tonumber(2))));\n break;\n case FLOOR:\n setResult(vm, LInteger.valueOf((int) Math.floor(vm.tonumber(2))));\n break;\n default:\n LuaState.vmerror(\"String_Node_Str\");\n }\n return false;\n}\n"
"boolean isPropDefinedOnSubtype(QualifiedName pname) {\n Preconditions.checkArgument(pname.isIdentifier());\n NominalType nt = getNominalType();\n return nt.isBuiltinObject() ? false : nt.isPropDefinedOnSubtype(pname);\n}\n"
"void addFiles(File dir, FileFilter filter) {\n if (dir == null)\n dir = new File(System.getProperty(\"String_Node_Str\"));\n if (!dir.isDirectory()) {\n showError(\"String_Node_Str\" + dir.getPath());\n } else {\n File[] files = dir.listFiles(filter);\n if (files.length == 0) {\n showWarning(\"String_Node_Str\" + dir);\n }\n for (int i = 0; i < files.length; i++) {\n addFile(files[i]);\n }\n }\n}\n"
"public String toString() {\n if (end < start) {\n return \"String_Node_Str\" + (start + 1) + \"String_Node_Str\" + (end + 1);\n }\n return \"String_Node_Str\" + (start + 1) + \"String_Node_Str\" + (end + 1) + (instanceCount > 1 ? \"String_Node_Str\" + instanceCount + \"String_Node_Str\" : \"String_Node_Str\");\n}\n"
"public void setDepth(int depth) {\n if (dataTypesTable != null && depth > dataTypesTable.length) {\n dataTypesTable = null;\n }\n this.depth = depth;\n}\n"
"public synchronized void reregister(Role peer, BinaryChannelWrapper w) throws IOException, GeneralSecurityException {\n this.sel.pause();\n w.wrapChannel(c);\n w.clientHandshake();\n this.chans.put(peer, w);\n this.sel.unpause();\n}\n"
"protected List<String> getExpectedLikes() throws IOException {\n List<String> music = getExpectedMusic();\n List<String> television = getExpectedTelevision();\n List<String> books = getExpectedBooks();\n List<String> movies = getExpectedMovies();\n List<String> finalList = new ArrayList<String>();\n finalList.addAll(music);\n finalList.addAll(television);\n finalList.addAll(books);\n finalList.addAll(movies);\n return finalList;\n}\n"
"public void execute(int pid, int rid, BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {\n IdEObject idEObject = bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className), oid, false, null);\n if (idEObject == null) {\n idEObject = created.get(oid);\n }\n if (idEObject == null) {\n throw new UserException(\"String_Node_Str\" + className + \"String_Node_Str\" + oid + \"String_Node_Str\" + pid);\n }\n EAttribute eAttribute = bimDatabaseSession.getMetaDataManager().getEAttribute(className, attributeName);\n if (eAttribute == null) {\n throw new UserException(\"String_Node_Str\" + attributeName + \"String_Node_Str\" + className);\n }\n if (!eAttribute.isMany()) {\n throw new UserException(\"String_Node_Str\");\n }\n List list = (List) idEObject.eGet(eAttribute);\n list.remove(index);\n bimDatabaseSession.store(idEObject);\n}\n"
"int size() {\n int size = VM_TypeReference.VM_ReferenceMaps.peekResolvedType().asClass().getInstanceSize();\n if (MCSites != null)\n size += VM_Array.IntArray.getInstanceSize(MCSites.length);\n if (referenceMaps != null)\n size += VM_Array.ByteArray.getInstanceSize(referenceMaps.length);\n if (jsrInfo != null && jsrInfo.unusualReferenceMaps != null)\n size += VM_Array.JavaLangObjectArray.getInstanceSize(jsrInfo.unusualReferenceMaps.length);\n return size;\n}\n"