content
stringlengths
40
137k
"private URL getResourceManager() throws IOException {\n if (conf.getBoolean(YarnConfiguration.RM_HA_ENABLED, YarnConfiguration.DEFAULT_RM_HA_ENABLED)) {\n return getHAWebURL();\n }\n return getNonHAWebURL();\n}\n"
"public void deleteQueues(HttpRequest request, HttpResponder responder) {\n programLifecycleHttpHandler.deleteQueues(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE);\n}\n"
"private static InjectorImpl copy(InjectorImpl old, Configuration... configurations) throws BindException {\n final InjectorImpl i;\n try {\n final ConfigurationBuilder cb = old.c.newBuilder();\n for (Configuration c : configurations) {\n cb.addConfiguration(c);\n }\n i = new InjectorImpl(cb.build());\n } catch (BindException e) {\n throw new IllegalStateException(\"String_Node_Str\", e);\n }\n for (ClassNode<?> cn : old.instances.keySet()) {\n if (cn.getFullName().equals(ReflectionUtilities.getFullName(Injector.class)) || cn.getFullName().equals(ReflectionUtilities.getFullName(InjectorImpl.class))) {\n throw new IllegalStateException();\n }\n try {\n ClassNode<?> new_cn = (ClassNode<?>) i.namespace.getNode(cn.getFullName());\n i.instances.put(new_cn, old.instances.get(cn));\n } catch (BindException e) {\n throw new IllegalStateException(\"String_Node_Str\" + cn.getFullName() + \"String_Node_Str\");\n }\n }\n for (NamedParameterNode<?> np : old.namedParameterInstances.keySet()) {\n Object o = old.namedParameterInstances.get(np);\n NamedParameterNode<?> new_np = (NamedParameterNode<?>) i.namespace.getNode(np.getFullName());\n i.namedParameterInstances.put(new_np, o);\n }\n if (old.aspect != null) {\n i.bindAspect(old.aspect.createChildAspect());\n }\n return i;\n}\n"
"private void updateNotificationTranslucency() {\n float alpha = (getNotificationsTopY() + mNotificationStackScroller.getItemHeight()) / (mQsMinExpansionHeight + mNotificationStackScroller.getItemHeight() / 2);\n alpha = Math.max(0, Math.min(alpha, 1));\n alpha = (float) Math.pow(alpha, 0.75);\n mNotificationStackScroller.setAlpha(alpha);\n}\n"
"private void advancedModuleFilter() {\n Iterator<ModuleSelectionInfo> iter = sortedModules.iterator();\n while (iter.hasNext()) {\n ModuleSelectionInfo m = iter.next();\n Module module;\n if (m.isPresent()) {\n module = moduleManager.getRegistry().getLatestModuleVersion(m.getMetadata().getId());\n } else {\n module = (m.getOnlineVersion() == null) ? m.getLatestVersion() : m.getOnlineVersion();\n }\n boolean matches = false;\n Collection<StandardModuleExtension> selectedStandardModuleExtensions = selectModulesConfig.getSelectedStandardModuleExtensions();\n for (StandardModuleExtension standardModuleExtension : selectedStandardModuleExtensions) {\n if (standardModuleExtension != null && standardModuleExtension.isProvidedBy(module)) {\n matches = true;\n break;\n }\n }\n if (!matches) {\n iter.remove();\n }\n }\n}\n"
"public void onImpact(RayTraceResult result) {\n super.onImpact(result);\n if (!this.getEntityWorld().isRemote) {\n if (result.entityHit != null && result.entityHit instanceof EntityPlayer && result.entityHit != player) {\n Stats statsCap = (Stats) result.entityHit.getCapability(CapabilityPlayerStats.STATS, null);\n if (statsCap != null) {\n statsCap.decreaseMana(amount);\n }\n }\n this.setDead();\n }\n}\n"
"protected BoundingBox computeBox(IDisplayServer xs, RunTimeContext rtc) throws ChartException {\n Label la = LabelImpl.copyInstance(getLabel());\n final String sPreviousValue = la.getCaption().getValue();\n la.getCaption().setValue(rtc.externalizedMessage(sPreviousValue));\n double dWrapping = 0;\n EObject container = eContainer();\n if (container instanceof Block) {\n dWrapping = ((Block) container).getBounds().getWidth() / 72 * xs.getDpiResolution();\n }\n try {\n return Methods.computeBox(xs, IConstants.TOP, getLabel(), 0, 0, dWrapping);\n } catch (IllegalArgumentException uiex) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, uiex);\n }\n}\n"
"public Insets getOpticalInsets() {\n return mInsets;\n}\n"
"public synchronized boolean add(WorkerResultWrapper e) {\n this.rawSize += 1;\n if (e.isWorkerCombinable()) {\n if (this.currIndex == this.threshold - 1) {\n while (this.currIndex > 1) {\n e.combine(this.removeLast());\n this.currIndex -= 1;\n }\n return super.add(e);\n } else {\n this.currIndex += 1;\n return super.add(e);\n }\n } else {\n return super.add(e);\n }\n}\n"
"public IArtifactType[] getArtifactTypeFilter() {\n IOptionConfigurationHandler<?> handler = getConfiguration(SearchOption.Artifact_Types);\n IArtifactType[] types = (IArtifactType[]) handler.getConfigData();\n return isArtifactTypeFilterEnabled() ? types : new IArtifactType[0];\n}\n"
"public boolean leave(UUID playerId) {\n MatchPlayer mPlayer = getPlayer(playerId);\n if (mPlayer != null) {\n if (startedGames == 0) {\n return players.remove(mPlayer);\n }\n mPlayer.setQuit(true);\n synchronized (this) {\n this.notifyAll();\n }\n return true;\n }\n return false;\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<String> 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(), getTrendlineText());\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 int lineStyles = LineAttributesComposite.ENABLE_STYLES | LineAttributesComposite.ENABLE_WIDTH | LineAttributesComposite.ENABLE_COLOR | LineAttributesComposite.ENABLE_AUTO_COLOR;\n trendLineText = new LineAttributesComposite(cmpRight, SWT.NONE, lineStyles, getContext(), getTrendline().getLineAttributes());\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 btnLabelVisible = new TristateCheckbox(cmpLabelInner, SWT.NONE);\n GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL);\n gdCBVisible.horizontalSpan = 2;\n btnLabelVisible.setLayoutData(gdCBVisible);\n btnLabelVisible.setText(Messages.getString(\"String_Node_Str\"));\n btnLabelVisible.setSelectionState(getTrendline().getLabel().isSetVisible() ? (getTrendline().getLabel().isVisible() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);\n btnLabelVisible.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 int fillStyles = FillChooserComposite.ENABLE_TRANSPARENT | FillChooserComposite.ENABLE_TRANSPARENT_SLIDER | FillChooserComposite.ENABLE_AUTO | FillChooserComposite.DISABLE_PATTERN_FILL;\n fccBackground = new FillChooserComposite(cmpLabelInner, SWT.NONE, fillStyles, getContext(), getTrendline().getLabel().getBackground());\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, fillStyles, getContext(), getTrendline().getLabel().getShadowColor());\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 lineStyles = LineAttributesComposite.ENABLE_VISIBILITY | LineAttributesComposite.ENABLE_STYLES | LineAttributesComposite.ENABLE_WIDTH | LineAttributesComposite.ENABLE_COLOR | LineAttributesComposite.ENABLE_AUTO_COLOR;\n outlineText = new LineAttributesComposite(grpOutline, SWT.NONE, lineStyles, getContext(), getTrendline().getLabel().getOutline());\n outlineText.addListener(this);\n icLabel = new InsetsComposite(cmpLabel, SWT.NONE, 1, getInsets(), getChart().getUnits(), getContext().getUIServiceProvider(), getContext());\n GridData gdICBlock = new GridData(GridData.FILL_HORIZONTAL);\n gdICBlock.horizontalSpan = 2;\n icLabel.setLayoutData(gdICBlock);\n icLabel.addListener(this);\n icLabel.setDefaultInsetsValue(DefaultValueProvider.defSeries().getLabel().getInsets());\n populateLists();\n setState(ChartUIExtensionUtil.canEnableUI(btnLabelVisible));\n return cmpContent;\n}\n"
"public void loadFromHDT(String hdtFileName, ProgressListener listener) throws IOException {\n InputStream in;\n if (hdtFileName.endsWith(\"String_Node_Str\")) {\n in = new BufferedInputStream(new GZIPInputStream(new FileInputStream(hdtFileName)));\n } else {\n in = new BufferedInputStream(new FileInputStream(hdtFileName));\n }\n loadFromHDT(in, listener);\n in.close();\n this.hdtFileName = hdtFileName;\n}\n"
"public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception {\n switch(connectStatus) {\n case outBoundChnnlReady:\n outboundChannel.writeAndFlush(msg);\n return;\n }\n if (outboundChannel.isActive()) {\n for (Object ojb : buffer) {\n outboundChannel.writeAndFlush(ojb);\n }\n buffer.clear();\n outboundChannel.writeAndFlush(msg);\n } else {\n buffer.add(msg);\n }\n }\n}\n"
"public Message execute() {\n log.info(\"String_Node_Str\" + getClass().getName() + \"String_Node_Str\");\n List componentIds = new ArrayList();\n AUTServerConfiguration.getInstance().setProfile(m_message.getProfile());\n for (Iterator it = m_message.getComponents().iterator(); it.hasNext(); ) {\n Component component = (Component) it.next();\n if (!component.isConcrete()) {\n continue;\n }\n ConcreteComponent concrete = (ConcreteComponent) component;\n try {\n String testerClass = concrete.getTesterClass();\n String componentClass = concrete.getComponentClass();\n if (!(StringUtils.isEmpty(testerClass) && StringUtils.isEmpty(componentClass))) {\n AUTServerConfiguration.getInstance().registerComponent(concrete);\n }\n if (concrete.hasDefaultMapping()) {\n componentIds = addComponentID(componentIds, concrete);\n }\n } catch (UnsupportedComponentException e) {\n log.error(\"String_Node_Str\", e);\n } catch (IllegalArgumentException e) {\n log.error(\"String_Node_Str\", e);\n }\n }\n log.info(\"String_Node_Str\" + getClass().getName() + \"String_Node_Str\");\n return new AUTStartStateMessage(componentIds);\n}\n"
"public EnqueueResult enqueue(byte[] data, long cleanWriteVersion) {\n log(\"String_Node_Str\" + data.length + \"String_Node_Str\" + cleanWriteVersion + \"String_Node_Str\");\n ImmutablePair<ReadPointer, Long> dirty = dirtyPointer();\n long entryId = this.table.increment(makeRow(GLOBAL_ENTRY_HEADER), GLOBAL_ENTRYID_COUNTER, 1, dirty.getFirst(), dirty.getSecond());\n log(\"String_Node_Str\" + entryId);\n byte[] entryWritePointerRow = makeRow(GLOBAL_ENTRY_WRITEPOINTER_HEADER);\n while (getCounter(entryWritePointerRow, GLOBAL_ENTRYID_WRITEPOINTER_COUNTER, dirty.getFirst()) != (entryId - 1)) {\n log(\"String_Node_Str\");\n quickWait();\n }\n log(\"String_Node_Str\" + entryId);\n ShardMeta shardMeta = null;\n boolean movedShards = false;\n byte[] shardMetaRow = makeRow(GLOBAL_SHARDS_HEADER);\n if (entryId == 1) {\n shardMeta = new ShardMeta(1, data.length, 1);\n log(\"String_Node_Str\");\n } else {\n shardMeta = ShardMeta.fromBytes(this.table.get(shardMetaRow, GLOBAL_SHARD_META, dirty.getFirst()));\n log(\"String_Node_Str\" + shardMeta.toString());\n if ((shardMeta.getShardBytes() + data.length > this.maxBytesPerShard && shardMeta.getShardEntries() > 1) || shardMeta.getShardEntries() == this.maxEntriesPerShard) {\n movedShards = true;\n shardMeta = new ShardMeta(shardMeta.getShardId() + 1, data.length, 1);\n log(\"String_Node_Str\");\n } else {\n shardMeta = new ShardMeta(shardMeta.getShardId(), shardMeta.getShardBytes() + data.length, shardMeta.getShardEntries() + 1);\n }\n }\n this.table.put(shardMetaRow, GLOBAL_SHARD_META, dirty.getSecond(), shardMeta.getBytes());\n long newWritePointer = this.table.increment(entryWritePointerRow, GLOBAL_ENTRYID_WRITEPOINTER_COUNTER, 1, dirty.getFirst(), dirty.getSecond());\n log(\"String_Node_Str\" + shardMeta + \"String_Node_Str\" + \"String_Node_Str\" + newWritePointer);\n if (movedShards) {\n this.table.put(makeRow(GLOBAL_DATA_HEADER, shardMeta.getShardId() - 1), makeColumn(entryId, ENTRY_META), cleanWriteVersion, new EntryMeta(EntryState.SHARD_END).getBytes());\n log(\"String_Node_Str\" + shardMeta);\n }\n this.table.put(makeRow(GLOBAL_DATA_HEADER, shardMeta.getShardId()), new byte[][] { makeColumn(entryId, ENTRY_DATA), makeColumn(entryId, ENTRY_META) }, cleanWriteVersion, new byte[][] { data, new EntryMeta(EntryState.VALID).getBytes() });\n return new EnqueueResult(EnqueueStatus.SUCCESS, new QueueEntryPointer(queueName, entryId, shardMeta.getShardId()));\n}\n"
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent convertTestScriptTeardownComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent();\n copyElement(src, tgt);\n for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t));\n return tgt;\n}\n"
"protected void paintComponent(Graphics g) {\n if (eval != null) {\n Graphics2D g2D;\n g2D = (Graphics2D) g;\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);\n g2D.setColor(Color.YELLOW);\n g2D.fill(oldConcept);\n g2D.drawString(model.getOldConceptOWLAPI().toString(), 310, 10);\n g2D.setColor(Color.ORANGE);\n int p = 30;\n for (int i = 0; i < conceptVector.size(); i++) {\n g2D.drawString(conceptVector.get(i), 310, p);\n p = p + 20;\n }\n g2D.setComposite(ac);\n g2D.fill(newConcept);\n g2D.setColor(Color.BLACK);\n if (coveredIndividualSize != model.getReasoner().getIndividuals(model.getCurrentConcept()).size() && coveredIndividualSize != 0) {\n g2D.drawLine(x1 - 1 - shiftOldConcept, y1 - 1, x2 + 1 - shiftOldConcept, y1 - 1);\n g2D.drawLine(x1 - shiftOldConcept, centerY - 1, x2 - shiftOldConcept, centerY - 1);\n g2D.drawLine(x1 - shiftOldConcept, centerY, x2 - shiftOldConcept, centerY);\n g2D.drawLine(x1 - shiftOldConcept, centerY + 1, x2 - shiftOldConcept, centerY + 1);\n g2D.drawLine(x1 - 1 - shiftOldConcept, y2 + 1, x2 + 1 - shiftOldConcept, y2 + 1);\n g2D.drawLine(x1 - 1 - shiftOldConcept, y1 - 1, x1 - 1 - shiftOldConcept, y2 + 1);\n g2D.drawLine(centerX - 1 - shiftOldConcept, y1, centerX - 1 - shiftOldConcept, y2);\n g2D.drawLine(centerX - shiftOldConcept, y1, centerX - shiftOldConcept, y2);\n g2D.drawLine(centerX + 1 - shiftOldConcept, y1, centerX + 1 - shiftOldConcept, y2);\n g2D.drawLine(x2 + 1 - shiftOldConcept, y1 - 1, x2 + 1 - shiftOldConcept, y2 + 1);\n }\n g2D.drawLine(x1 - 1 + shiftCovered, y1 - 1, x2 + 1 + shiftCovered, y1 - 1);\n g2D.drawLine(x1 + shiftCovered, centerY - 1, x2 + shiftCovered, centerY - 1);\n g2D.drawLine(x1 + shiftCovered, centerY, x2 + shiftCovered, centerY);\n g2D.drawLine(x1 + shiftCovered, centerY + 1, x2 + shiftCovered, centerY + 1);\n g2D.drawLine(x1 - 1 + shiftCovered, y2 + 1, x2 + 1 + shiftCovered, y2 + 1);\n g2D.drawLine(x1 - 1 + shiftCovered, y1 - 1, x1 - 1 + shiftCovered, y2 + 1);\n g2D.drawLine(centerX - 1 + shiftCovered, y1, centerX - 1 + shiftCovered, y2);\n g2D.drawLine(centerX + shiftCovered, y1, centerX + shiftCovered, y2);\n g2D.drawLine(centerX + 1 + shiftCovered, y1, centerX + 1 + shiftCovered, y2);\n g2D.drawLine(x2 + 1 + shiftCovered, y1 - 1, x2 + 1 + shiftCovered, y2 + 1);\n if (coveredIndividualSize != model.getReasoner().getIndividuals(model.getCurrentConcept()).size()) {\n g2D.drawLine(x1 - 1 + shiftNewConcept, y1 - 1, x2 + 1 + shiftNewConcept, y1 - 1);\n g2D.drawLine(x1 + shiftNewConcept, centerY - 1, x2 + shiftNewConcept, centerY - 1);\n g2D.drawLine(x1 + shiftNewConcept, centerY, x2 + shiftNewConcept, centerY);\n g2D.drawLine(x1 + shiftNewConcept, centerY + 1, x2 + shiftNewConcept, centerY + 1);\n g2D.drawLine(x1 - 1 + shiftNewConcept, y2 + 1, x2 + 1 + shiftNewConcept, y2 + 1);\n g2D.drawLine(x1 - 1 + shiftNewConcept, y1 - 1, x1 - 1 + shiftNewConcept, y2 + 1);\n g2D.drawLine(centerX - 1 + shiftNewConcept, y1, centerX - 1 + shiftNewConcept, y2);\n g2D.drawLine(centerX + shiftNewConcept, y1, centerX + shiftNewConcept, y2);\n g2D.drawLine(centerX + 1 + shiftNewConcept, y1, centerX + 1 + shiftNewConcept, y2);\n g2D.drawLine(x2 + 1 + shiftNewConcept, y1 - 1, x2 + 1 + shiftNewConcept, y2 + 1);\n }\n if (((EvaluatedDescriptionClass) eval).getAddition() != 1.0 && ((EvaluatedDescriptionClass) eval).getCoverage() == 1.0) {\n g2D.drawLine(x1 - 1 + shiftNewConceptX, y1 - 1 + shiftNewConcept, x2 + 1 + shiftNewConceptX, y1 - 1 + shiftNewConcept);\n g2D.drawLine(x1 + shiftNewConceptX, centerY - 1 + shiftNewConcept, x2 + shiftNewConceptX, centerY - 1 + shiftNewConcept);\n g2D.drawLine(x1 + shiftNewConceptX, centerY + shiftNewConcept, x2 + shiftNewConceptX, centerY + shiftNewConcept);\n g2D.drawLine(x1 + shiftNewConceptX, centerY + 1 + shiftNewConcept, x2 + shiftNewConceptX, centerY + 1 + shiftNewConcept);\n g2D.drawLine(x1 - 1 + shiftNewConceptX, y2 + 1 + shiftNewConcept, x2 + 1 + shiftNewConceptX, y2 + 1 + shiftNewConcept);\n g2D.drawLine(x1 - 1 + shiftNewConceptX, y1 - 1 + shiftNewConcept, x1 - 1 + shiftNewConceptX, y2 + 1 + shiftNewConcept);\n g2D.drawLine(centerX - 1 + shiftNewConceptX, y1 + shiftNewConcept, centerX - 1 + shiftNewConceptX, y2 + shiftNewConcept);\n g2D.drawLine(centerX + shiftNewConceptX, y1 + shiftNewConcept, centerX + shiftNewConceptX, y2 + shiftNewConcept);\n g2D.drawLine(centerX + 1 + shiftNewConceptX, y1 + shiftNewConcept, centerX + 1 + shiftNewConceptX, y2 + shiftNewConcept);\n g2D.drawLine(x2 + 1 + shiftNewConceptX, y1 - 1 + shiftNewConcept, x2 + 1 + shiftNewConceptX, y2 + 1 + shiftNewConcept);\n }\n for (int i = 0; i < posCovIndVector.size(); i++) {\n g2D.setColor(Color.GREEN);\n g2D.drawString(posCovIndVector.get(i).getPoint(), posCovIndVector.get(i).getXAxis(), posCovIndVector.get(i).getYAxis());\n }\n for (int i = 0; i < posNotCovIndVector.size(); i++) {\n g2D.setColor(Color.RED);\n g2D.drawString(posNotCovIndVector.get(i).getPoint(), posNotCovIndVector.get(i).getXAxis(), posNotCovIndVector.get(i).getYAxis());\n }\n for (int i = 0; i < additionalIndividuals.size(); i++) {\n g2D.setColor(Color.BLACK);\n g2D.drawString(additionalIndividuals.get(i).getPoint(), additionalIndividuals.get(i).getXAxis(), additionalIndividuals.get(i).getYAxis());\n }\n this.setVisible(true);\n panel.repaint();\n }\n}\n"
"public void addParameter(String name, String expression) throws PtalonRuntimeException {\n String uniqueName = _actor.uniqueName(name);\n try {\n PtalonExpressionParameter parameter = new PtalonExpressionParameter(_actor, uniqueName);\n parameter.setVisibility(Settable.NONE);\n _currentIfTree.setStatus(name, true);\n if (_inNewWhileIteration()) {\n if (_currentIfTree.isForStatement) {\n _currentIfTree.setEnteredIteration(name, _currentIfTree.entered);\n } else {\n IfTree tree = _currentIfTree;\n while (!tree.isForStatement) {\n tree = tree.getParent();\n if (tree == null) {\n throw new PtalonRuntimeException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n }\n _currentIfTree.setEnteredIteration(name, tree.entered);\n }\n } else {\n _currentIfTree.setEnteredIteration(name, _currentIfTree.entered);\n }\n _currentIfTree.mapName(name, uniqueName);\n _unassignedParameters.add(parameter);\n _unassignedParameterValues.add(expression);\n } catch (NameDuplicationException e) {\n throw new PtalonRuntimeException(\"String_Node_Str\", e);\n } catch (IllegalActionException e) {\n throw new PtalonRuntimeException(\"String_Node_Str\", e);\n }\n}\n"
"public static void main(String[] args) {\n String dbPropsFile = \"String_Node_Str\";\n List<String> sqlFiles = new ArrayList<String>();\n List<String> upgradeClasses = new ArrayList<String>();\n String[] databases = new String[] {};\n String rootPassword = \"String_Node_Str\";\n boolean verbosity = false;\n boolean dryRun = false;\n for (String arg : args) {\n if (arg.equals(\"String_Node_Str\") || arg.equals(\"String_Node_Str\")) {\n printHelp(\"String_Node_Str\");\n System.exit(0);\n } else if (arg.equals(\"String_Node_Str\") || arg.equals(\"String_Node_Str\")) {\n verbosity = true;\n } else if (arg.equals(\"String_Node_Str\") || arg.equals(\"String_Node_Str\")) {\n dryRun = true;\n } else if (arg.startsWith(\"String_Node_Str\")) {\n rootPassword = arg.substring(arg.lastIndexOf(\"String_Node_Str\") + 1, arg.length());\n } else if (arg.startsWith(\"String_Node_Str\")) {\n databases = arg.substring(arg.lastIndexOf(\"String_Node_Str\") + 1, arg.length()).split(\"String_Node_Str\");\n } else if (arg.endsWith(\"String_Node_Str\")) {\n sqlFiles.add(arg);\n } else if (arg.endsWith(\"String_Node_Str\")) {\n if (!dbPropsFile.endsWith(\"String_Node_Str\") && fileExists(arg))\n dbPropsFile = arg;\n } else if (arg.endsWith(\"String_Node_Str\")) {\n if (fileExists(arg))\n dbPropsFile = arg;\n } else {\n upgradeClasses.add(arg);\n }\n }\n if ((dbPropsFile.isEmpty()) || (sqlFiles.size() == 0) && upgradeClasses.size() == 0) {\n printHelp(\"String_Node_Str\");\n System.exit(1);\n }\n try {\n Transaction.initDataSource(dbPropsFile);\n } catch (NullPointerException e) {\n }\n initDB(dbPropsFile, rootPassword, databases, dryRun);\n for (String sqlFile : sqlFiles) {\n File sqlScript = PropertiesUtil.findConfigFile(sqlFile);\n if (sqlScript == null) {\n System.err.println(\"String_Node_Str\" + sqlFile);\n printHelp(\"String_Node_Str\");\n System.exit(1);\n }\n System.out.println(\"String_Node_Str\" + sqlScript.getAbsolutePath());\n Connection conn = Transaction.getStandaloneConnection();\n try {\n FileReader reader = null;\n try {\n reader = new FileReader(sqlScript);\n } catch (FileNotFoundException e) {\n System.err.println(\"String_Node_Str\" + sqlFile + \"String_Node_Str\" + e.getMessage());\n System.exit(1);\n }\n if (!dryRun)\n runScript(conn, reader, sqlFile, verbosity);\n } finally {\n try {\n conn.close();\n } catch (SQLException e) {\n System.err.println(\"String_Node_Str\" + e.getMessage());\n }\n }\n }\n for (String upgradeClass : upgradeClasses) {\n System.out.println(\"String_Node_Str\" + upgradeClass);\n Class<?> clazz = null;\n try {\n clazz = Class.forName(upgradeClass);\n if (!SystemIntegrityChecker.class.isAssignableFrom(clazz)) {\n System.err.println(\"String_Node_Str\" + clazz.getName());\n System.exit(1);\n }\n }\n } finally {\n txn.close();\n }\n}\n"
"public static void prettyPrintArgList(StringBuilder sb, Collection<Arg> args) {\n boolean first = true;\n for (Arg a : args) {\n if (first) {\n first = false;\n } else {\n sb.append(\"String_Node_Str\");\n }\n sb.append(a);\n }\n}\n"
"public void execute() throws IOException {\n if (destinationDirectory == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (configFile == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n SwingResourceLoader.setupSwingResourcesByConfigFile(configFile);\n String listOutputPackage = listOutputClass.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n File listOutputDir = new File(listOutputDirectory.getAbsolutePath() + \"String_Node_Str\" + listOutputPackage.replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n listOutputDir.mkdirs();\n PrintWriter listOutput = new PrintWriter(listOutputDirectory.getAbsolutePath() + \"String_Node_Str\" + listOutputClass.replaceAll(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\");\n listOutput.println(\"String_Node_Str\" + listOutputPackage + \"String_Node_Str\");\n listOutput.println(\"String_Node_Str\");\n listOutput.println(\"String_Node_Str\" + listOutputClass.replaceAll(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\");\n exportBuildingImages(listOutput);\n exportMaterialImages(listOutput);\n listOutput.println(\"String_Node_Str\");\n listOutput.close();\n}\n"
"protected void updateButtons() {\n int[] indices = getViewer().getTable().getSelectionIndices();\n getUpButton().setEnabled(getUpButton().isVisible() && viewer.getTable().getItemCount() > 1 && indices.length == 1 && indices[0] != 0);\n getDownButton().setEnabled(getDownButton().isVisible() && viewer.getTable().getItemCount() > 1 && indices.length == 1 && indices[0] != viewer.getTable().getItemCount() - 1);\n getEditButton().setEnabled(getEditButton().isVisible() && indices.length == 1);\n getRemoveButton().setEnabled(getRemoveButton().isVisible() && indices.length > 0);\n if (getRemoveMenuItem() != null) {\n getRemoveMenuItem().setEnabled(indices.length > 0);\n getRemoveAllMenuItem().setEnabled(viewer.getTable().getItemCount() > 0);\n }\n}\n"
"public void visitNode(AstNode astNode) {\n if (!\"String_Node_Str\".equals(astNode.getTokenOriginalValue().trim()) && !fileHasIssue) {\n getContext().createFileViolation(this, \"String_Node_Str\");\n }\n}\n"
"public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {\n unmarshalRecord.removeNullCapableValue(this);\n XMLField xmlField = (XMLField) xmlDirectMapping.getField();\n Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, (XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager(), unmarshalRecord);\n Object convertedValue = xmlDirectMapping.getAttributeValue(realValue, unmarshalRecord.getSession(), unmarshalRecord);\n xmlDirectMapping.setAttributeValueInObject(unmarshalRecord.getCurrentObject(), convertedValue);\n}\n"
"public void accept(int hash, int pos) {\n final long offset = offsetFromPos(pos);\n final NativeBytes entry = entry(offset);\n if (isNewer(entry, timeStamp))\n entryModifiableCallback.set(index, pos);\n}\n"
"public String toHBaseTableName() {\n return RepoUtil.getHBaseTableName(tenantId, tableName);\n}\n"
"public List<SPluginDescriptor> getAllServicePluginDescriptors() throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), ServicePlugin.class.getName()));\n } catch (Exception e) {\n return handleException(e);\n } finally {\n session.close();\n }\n}\n"
"private void writeBackGroudColor(StyleEntry style) {\n Color bgColor = (Color) style.getProperty(StyleConstant.BACKGROUND_COLOR_PROP);\n if (bgColor != null) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", toString(bgColor));\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n }\n}\n"
"public Map<Title, T> getByTitles(Language language, Collection<Title> titles, NameSpace ns) throws DaoException {\n Map<Title, T> pageMap = new HashMap<Title, T>();\n for (Title title : titles) {\n LiveAPIQuery.LiveAPIQueryBuilder builder = new LiveAPIQuery.LiveAPIQueryBuilder(\"String_Node_Str\", language).addTitle(title.getCanonicalTitle().replace(\"String_Node_Str\", \"String_Node_Str\")).setRedirects(followRedirects);\n QueryReply info = builder.build().getValuesFromQueryResult().get(0);\n pageMap.put(title, (T) info.getLocalPage(language));\n }\n return pageMap;\n}\n"
"public void run() {\n String header = null;\n HashMap<String, String> headers = new HashMap<String, String>();\n String url = null;\n String method = null;\n String[] requestLine = readLines(fromClient, 1)[0].split(\"String_Node_Str\");\n method = requestLine[0].trim().toUpperCase();\n url = requestLine[1].trim();\n System.out.println(\"String_Node_Str\" + method + \"String_Node_Str\" + url);\n try {\n do {\n header = this.fromClient.readLine().trim();\n int splitPoint = header.indexOf(\"String_Node_Str\");\n if (splitPoint != -1) {\n headers.put(header.substring(0, splitPoint).toLowerCase().trim(), header.substring(splitPoint + 1).trim());\n }\n } while (header.length() > 0);\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\");\n e.printStackTrace();\n return;\n }\n Matcher skinMatcher = MineProxy.SKIN_URL.matcher(url);\n Matcher cloakMatcher = MineProxy.CLOAK_URL.matcher(url);\n Matcher getversionMatcher = MineProxy.GETVERSION_URL.matcher(url);\n Matcher joinserverMatcher = MineProxy.JOINSERVER_URL.matcher(url);\n Matcher checkserverMatcher = MineProxy.CHECKSERVER_URL.matcher(url);\n byte[] data = null;\n String params;\n if (skinMatcher.matches()) {\n System.out.println(\"String_Node_Str\");\n String username = skinMatcher.group(1);\n if (this.proxy.skinCache.containsKey(username)) {\n System.out.println(\"String_Node_Str\");\n data = this.proxy.skinCache.get(username);\n } else {\n url = \"String_Node_Str\" + MineProxy.authServer + \"String_Node_Str\" + username + \"String_Node_Str\";\n System.out.println(\"String_Node_Str\" + url);\n data = getRequest(url);\n System.out.println(\"String_Node_Str\" + data.length);\n this.proxy.skinCache.put(username, data);\n }\n } else if (cloakMatcher.matches()) {\n System.out.println(\"String_Node_Str\");\n String username = cloakMatcher.group(1);\n if (this.proxy.cloakCache.containsKey(username)) {\n System.out.println(\"String_Node_Str\");\n data = this.proxy.cloakCache.get(username);\n } else {\n url = \"String_Node_Str\" + MineProxy.authServer + \"String_Node_Str\" + username;\n System.out.println(\"String_Node_Str\" + url);\n data = getRequest(url);\n System.out.println(\"String_Node_Str\" + data.length);\n this.proxy.cloakCache.put(username, data);\n }\n } else if (getversionMatcher.matches()) {\n System.out.println(\"String_Node_Str\");\n url = \"String_Node_Str\" + MineProxy.authServer + \"String_Node_Str\" + this.proxy.version;\n System.out.println(\"String_Node_Str\" + url);\n try {\n int postlen = Integer.parseInt(headers.get(\"String_Node_Str\"));\n char[] postdata = new char[postlen];\n this.fromClient.read(postdata);\n data = postRequest(url, new String(postdata), \"String_Node_Str\");\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\");\n e.printStackTrace();\n }\n } else if (joinserverMatcher.matches()) {\n System.out.println(\"String_Node_Str\");\n params = joinserverMatcher.group(1);\n url = \"String_Node_Str\" + MineProxy.authServer + \"String_Node_Str\" + params;\n System.out.println(\"String_Node_Str\" + url);\n data = getRequest(url);\n System.out.println(data);\n } else if (checkserverMatcher.matches()) {\n System.out.println(\"String_Node_Str\");\n params = checkserverMatcher.group(1);\n url = \"String_Node_Str\" + MineProxy.authServer + \"String_Node_Str\" + params;\n System.out.println(\"String_Node_Str\" + url);\n data = getRequest(url);\n System.out.println(data);\n } else {\n System.out.println(\"String_Node_Str\");\n try {\n if (!url.startsWith(\"String_Node_Str\") && !url.startsWith(\"String_Node_Str\")) {\n url = \"String_Node_Str\" + url;\n }\n URL u = new URL(url);\n if (method.equals(\"String_Node_Str\")) {\n int port = u.getPort();\n if (port == -1)\n port = 80;\n Socket sock = new Socket(u.getHost(), port);\n Streams.pipeStreamsActive(sock.getInputStream(), this.toClient);\n Streams.pipeStreamsActive(this.connection.getInputStream(), sock.getOutputStream());\n } else if (method.equals(\"String_Node_Str\")) {\n HttpURLConnection c = (HttpURLConnection) u.openConnection(Proxy.NO_PROXY);\n c.setRequestMethod(\"String_Node_Str\");\n for (String k : headers.keySet()) {\n c.setRequestProperty(k, headers.get(k));\n }\n String res = \"String_Node_Str\" + c.getResponseCode() + \"String_Node_Str\" + c.getResponseMessage() + \"String_Node_Str\";\n res += \"String_Node_Str\";\n java.util.Map<String, java.util.List<String>> h = c.getHeaderFields();\n headerloop: for (String k : h.keySet()) {\n if (k == null)\n continue;\n k = k.trim();\n for (String forbiddenHeader : BLACKLISTED_HEADERS) {\n if (k.equalsIgnoreCase(forbiddenHeader))\n continue headerloop;\n }\n java.util.List<String> vals = h.get(k);\n for (String v : vals) {\n res += k + \"String_Node_Str\" + v + \"String_Node_Str\";\n }\n }\n res += \"String_Node_Str\";\n this.toClient.writeBytes(res);\n int size = Streams.pipeStreams(c.getInputStream(), this.toClient);\n this.toClient.close();\n this.connection.close();\n System.out.println(\"String_Node_Str\" + size);\n } else if (method.equals(\"String_Node_Str\")) {\n HttpURLConnection c = (HttpURLConnection) u.openConnection(Proxy.NO_PROXY);\n c.setRequestMethod(\"String_Node_Str\");\n for (String k : headers.keySet()) {\n c.setRequestProperty(k, headers.get(k));\n }\n String res = \"String_Node_Str\" + c.getResponseCode() + \"String_Node_Str\" + c.getResponseMessage() + \"String_Node_Str\";\n res += \"String_Node_Str\";\n java.util.Map<String, java.util.List<String>> h = c.getHeaderFields();\n for (String k : h.keySet()) {\n if (k == null)\n continue;\n java.util.List<String> vals = h.get(k);\n for (String v : vals) {\n res += k + \"String_Node_Str\" + v + \"String_Node_Str\";\n }\n }\n res += \"String_Node_Str\";\n this.toClient.writeBytes(res);\n this.toClient.close();\n this.connection.close();\n } else {\n System.out.println(\"String_Node_Str\" + method);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }\n try {\n if (data != null) {\n this.toClient.writeBytes(\"String_Node_Str\" + data.length + \"String_Node_Str\");\n this.toClient.write(data);\n }\n this.toClient.close();\n this.connection.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
"public void terminateInstance(String instanceId) {\n try {\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\", instanceId));\n }\n URI uri = new URIBuilder(endpoint + INSTANCES_CONTEXT + instanceId).build();\n HttpResponse response = restClient.doDelete(uri);\n if (response != null) {\n if ((response.getStatusCode() >= 200) && (response.getStatusCode() < 300)) {\n return false;\n } else {\n GsonBuilder gsonBuilder = new GsonBuilder();\n Gson gson = gsonBuilder.create();\n ErrorResponse errorResponse = gson.fromJson(response.getContent(), ErrorResponse.class);\n if (errorResponse != null) {\n throw new RuntimeException(errorResponse.getErrorMessage());\n }\n }\n }\n throw new RuntimeException(\"String_Node_Str\");\n } catch (Exception e) {\n String message = \"String_Node_Str\";\n throw new RuntimeException(message, e);\n }\n}\n"
"public synchronized boolean isSnapshotIncompatible() {\n if (snapshot.isEmpty()) {\n return false;\n }\n if (snapshot.size() > steps.size()) {\n return true;\n }\n for (int i = 0; i < snapshot.size(); ++i) {\n if (!snapshot.elementAt(i).equals(steps.elementAt(i))) {\n return true;\n }\n }\n return false;\n}\n"
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n return getFile(refer);\n}\n"
"public void doDownload() {\n SettingsManager set = SettingsManager.instance();\n _downloadDir = set.getSaveDirectory();\n String fs = System.getProperty(\"String_Node_Str\");\n String pathname = _downloadDir + fs + _filename;\n System.out.println(pathname);\n try {\n _fos = new FileOutputStream(pathname);\n } catch (FileNotFoundException e) {\n System.out.println(\"String_Node_Str\");\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n e.printStackTrace();\n }\n readHeader();\n int c = -1;\n byte[] buf = new byte[1024];\n while (true) {\n try {\n c = _br.read(buf);\n } catch (Exception e) {\n System.out.print(\"String_Node_Str\");\n }\n if (c == -1)\n break;\n try {\n _fos.write(buf, 0, c);\n } catch (Exception e) {\n System.out.print(\"String_Node_Str\");\n }\n _amountRead += c;\n }\n try {\n _br.close();\n _fos.close();\n } catch (IOException e) {\n }\n}\n"
"private UnitValue[] getColWidths(WaitingColgroupsHelper colgroups) {\n UnitValue[] colWidths = new UnitValue[numberOfColumns];\n if (colgroups == null) {\n for (int i = 0; i < numberOfColumns; i++) {\n colWidths[i] = null;\n }\n } else {\n for (int i = 0; i < numberOfColumns; i++) {\n colWidths[i] = colgroups.getColWraper(i) != null ? colgroups.getColWraper(i).getWidth() : UnitValue.createPointValue(-1);\n }\n }\n return colWidths;\n}\n"
"protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String valueStr = value.toString();\n if (valueStr == null || valueStr.length() == 0 || valueStr.trim().length() == 0) {\n LOG.warn(\"String_Node_Str\");\n return;\n }\n double[] dValues = null;\n if (!this.dataPurifier.isFilter(valueStr)) {\n return;\n }\n context.getCounter(Constants.SHIFU_GROUP_COUNTER, \"String_Node_Str\").increment(1L);\n if (Math.random() >= this.modelConfig.getStats().getSampleRate()) {\n return;\n }\n context.getCounter(Constants.SHIFU_GROUP_COUNTER, \"String_Node_Str\").increment(1L);\n dValues = getDoubleArrayByRawArray(CommonUtils.split(valueStr, this.dataSetDelimiter));\n count += 1L;\n if (count % 2000L == 0) {\n LOG.info(\"String_Node_Str\", count, Thread.currentThread().getName());\n }\n long startO = System.currentTimeMillis();\n for (int i = 0; i < this.columnConfigList.size(); i++) {\n long start = System.currentTimeMillis();\n ColumnConfig columnConfig = this.columnConfigList.get(i);\n if (columnConfig.getColumnFlag() == ColumnFlag.Meta || (this.hasCandidates && !ColumnFlag.Candidate.equals(columnConfig.getColumnFlag()))) {\n continue;\n }\n CorrelationWritable cw = this.correlationMap.get(i);\n if (cw == null) {\n cw = new CorrelationWritable();\n this.correlationMap.put(i, cw);\n }\n cw.setColumnIndex(i);\n cw.setCount(cw.getCount() + 1d);\n cw.setSum(cw.getSum() + dValues[i]);\n double squaredSum = dValues[i] * dValues[i];\n cw.setSumSquare(cw.getSumSquare() + squaredSum);\n double[] xySum = cw.getXySum();\n if (xySum == null) {\n xySum = new double[this.columnConfigList.size()];\n cw.setXySum(xySum);\n }\n double[] xxSum = cw.getXxSum();\n if (xxSum == null) {\n xxSum = new double[this.columnConfigList.size()];\n cw.setXxSum(xxSum);\n }\n double[] yySum = cw.getYySum();\n if (yySum == null) {\n yySum = new double[this.columnConfigList.size()];\n cw.setYySum(yySum);\n }\n double[] adjustCount = cw.getAdjustCount();\n if (adjustCount == null) {\n adjustCount = new double[this.columnConfigList.size()];\n cw.setAdjustCount(adjustCount);\n }\n double[] adjustSumX = cw.getAdjustSumX();\n if (adjustSumX == null) {\n adjustSumX = new double[this.columnConfigList.size()];\n cw.setAdjustSumX(adjustSumX);\n }\n double[] adjustSumY = cw.getAdjustSumY();\n if (adjustSumY == null) {\n adjustSumY = new double[this.columnConfigList.size()];\n cw.setAdjustSumY(adjustSumY);\n }\n if (i % 1000 == 0) {\n LOG.debug(\"String_Node_Str\", (System.currentTimeMillis() - start), Thread.currentThread().getName());\n }\n start = System.currentTimeMillis();\n for (int j = 0; j < this.columnConfigList.size(); j++) {\n ColumnConfig otherColumnConfig = this.columnConfigList.get(j);\n if (otherColumnConfig.getColumnFlag() == ColumnFlag.Meta) {\n continue;\n }\n if (i > j && !this.isComputeAll) {\n continue;\n }\n if (dValues[i] != Double.MIN_VALUE && dValues[j] != Double.MIN_VALUE) {\n xySum[j] += dValues[i] * dValues[j];\n xxSum[j] += squaredSum;\n yySum[j] += dValues[j] * dValues[j];\n adjustCount[j] += 1d;\n adjustSumX[j] += dValues[i];\n adjustSumY[j] += dValues[j];\n }\n }\n if (i % 1000 == 0) {\n LOG.debug(\"String_Node_Str\", (System.currentTimeMillis() - start), Thread.currentThread().getName());\n }\n }\n LOG.debug(\"String_Node_Str\", (System.currentTimeMillis() - startO), Thread.currentThread().getName());\n}\n"
"public static void beforeClass() {\n predicate = new BlacklistStatementPredicate(GraphConfig.config());\n invalidSubject = fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n invalidObject = fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n validStatement = fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public ChannelID getChannelID() {\n return this.channelID;\n}\n"
"public static XLoc createReplica(StripingPolicy stripingPolicy, StorageManager sMan, OSDStatusManager osdMan, VolumeInfo volume, long parentDirId, String path, InetAddress clientAddress, VivaldiCoordinates clientCoordinates, XLocList currentXLoc, int replFlags) throws DatabaseException, UserException, MRCException {\n if (stripingPolicy == null)\n stripingPolicy = sMan.getDefaultStripingPolicy(parentDirId);\n if (stripingPolicy == null)\n stripingPolicy = sMan.getDefaultStripingPolicy(1);\n if (stripingPolicy == null)\n throw new UserException(POSIXErrno.POSIX_ERROR_EIO, \"String_Node_Str\" + path + \"String_Node_Str\");\n ServiceSet.Builder usableOSDs = osdMan.getUsableOSDs(volume.getId(), clientAddress, clientCoordinates, currentXLoc, stripingPolicy.getWidth());\n if (usableOSDs == null || usableOSDs.getServicesCount() == 0) {\n Logging.logMessage(Logging.LEVEL_WARN, Category.all, (Object) null, \"String_Node_Str\", path);\n throw new UserException(POSIXErrno.POSIX_ERROR_EIO, \"String_Node_Str\" + path + \"String_Node_Str\");\n }\n int width = Math.min(stripingPolicy.getWidth(), usableOSDs.getServicesCount());\n List<Service> osdServices = usableOSDs.getServicesList();\n String[] osds = new String[width];\n for (int i = 0; i < width; i++) osds[i] = osdServices.get(i).getUuid();\n if (width != stripingPolicy.getWidth())\n stripingPolicy = sMan.createStripingPolicy(stripingPolicy.getPattern(), stripingPolicy.getStripeSize(), width);\n return sMan.createXLoc(stripingPolicy, osds, replFlags);\n}\n"
"public Node call() throws Exception {\n long startTime = System.currentTimeMillis();\n while ((System.currentTimeMillis() - startTime) < config.getLaunchTimeoutMillis()) {\n try {\n c = node.toComputer();\n if (c != null) {\n c.connect(false).get();\n }\n } catch (Exception e) {\n }\n return node;\n }\n LOGGER.log(Level.WARNING, \"String_Node_Str\");\n return node;\n}\n"
"public ClientResponse handle(ClientRequest cr) {\n ClientResponse resp = getNext().handle(cr);\n String respContentType = resp.getHeaders().getFirst(\"String_Node_Str\");\n if (respContentType != null && respContentType.startsWith(\"String_Node_Str\")) {\n String newContentType = \"String_Node_Str\" + respContentType.substring(10);\n resp.getHeaders().putSingle(\"String_Node_Str\", newContentType);\n }\n return resp;\n}\n"
"public static final float[][] applyUnaryOperation(final FloatUnaryOperation op, final float[][] matrix) {\n int rows = _rows(matrix);\n int columns = _columns(matrix);\n float[][] returnValue = new float[rows][columns];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n returnValue[i][j] = op.operate(matrix[i][j]);\n }\n }\n return returnValue;\n}\n"
"private void GenNext() {\n Vector nextS = new Vector();\n StringBuffer sb = new StringBuffer();\n int max, col;\n max = wrapColumn - (\"String_Node_Str\".length());\n for (int i = 0; i < nextStep.size(); i++) {\n String a = (String) nextStep.elementAt(i);\n if (a.length() + \"String_Node_Str\".length() + sb.length() > max) {\n nextS.addElement(sb.toString());\n sb = new StringBuffer();\n }\n if (sb.length() > 0)\n sb.append(\"String_Node_Str\");\n sb.append(a);\n }\n if (sb.length() > 0)\n nextS.addElement(sb.toString());\n Vector nextSS = new Vector();\n String nextSSstart = \"String_Node_Str\";\n sb = new StringBuffer();\n max = wrapColumn - (\"String_Node_Str\".length());\n if (mp && st.procs.size() > 0) {\n for (int i = 0; i < st.procs.size(); i++) {\n PcalSymTab.ProcedureEntry p = (PcalSymTab.ProcedureEntry) st.procs.elementAt(i);\n if ((p.name.length() + \"String_Node_Str\".length() + sb.length()) > max) {\n nextSS.addElement(sb.toString());\n sb = new StringBuffer();\n }\n if (sb.length() > 0)\n sb.append(\"String_Node_Str\");\n sb.append(p.name);\n sb.append(\"String_Node_Str\");\n }\n if (sb.length() > 0)\n nextSS.addElement(sb.toString() + \"String_Node_Str\");\n }\n Vector nextSSP = new Vector();\n if (mp && st.processes.size() > 0)\n for (int i = 0; i < st.processes.size(); i++) {\n PcalSymTab.ProcessEntry p = (PcalSymTab.ProcessEntry) st.processes.elementAt(i);\n if (p.isEq)\n continue;\n Vector vec = new Vector();\n sb = new StringBuffer();\n sb.append(\"String_Node_Str\");\n Vector sv = p.id.toStringVector();\n col = sb.length();\n sb.append((String) sv.elementAt(0));\n for (int j = 1; j < sv.size(); j++) {\n vec.addElement(sb.toString());\n sb = new StringBuffer(NSpaces(col));\n sb.append((String) sv.elementAt(j));\n }\n sb.append(\"String_Node_Str\");\n sb.append(p.name);\n sb.append(\"String_Node_Str\");\n vec.addElement(sb.toString());\n nextSSP.addElement(vec);\n }\n sb = new StringBuffer(\"String_Node_Str\");\n col = sb.length() + 2;\n for (int i = 0; i < nextS.size(); i++) {\n sb.append((String) nextS.elementAt(i));\n tlacode.addElement(sb.toString());\n sb = new StringBuffer(NSpaces(col) + \"String_Node_Str\");\n }\n if (nextSS.size() > 0) {\n sb.append(nextSSstart);\n int col2 = sb.length();\n if (nextSS.size() > 1)\n sb.append(\"String_Node_Str\");\n for (int i = 0; i < nextSS.size(); i++) {\n sb.append((String) nextSS.elementAt(i));\n tlacode.addElement(sb.toString());\n sb = new StringBuffer(NSpaces(col2) + \"String_Node_Str\");\n }\n sb = new StringBuffer(NSpaces(col) + \"String_Node_Str\");\n }\n if (nextSSP.size() > 0)\n for (int i = 0; i < nextSSP.size(); i++) {\n Vector v = (Vector) nextSSP.elementAt(i);\n for (int j = 0; j < v.size(); j++) {\n String line = (String) v.elementAt(j);\n sb.append(line);\n tlacode.addElement(sb.toString());\n if ((nextSS.size() == 0) && (i == 0)) {\n sb = new StringBuffer(NSpaces(col - 2));\n } else {\n sb = new StringBuffer(NSpaces(col + 4));\n }\n }\n sb = new StringBuffer(NSpaces(col) + \"String_Node_Str\");\n }\n if (!PcalParams.NoDoneDisjunct) {\n sb.append(\"String_Node_Str\");\n tlacode.addElement(sb.toString());\n sb = new StringBuffer(NSpaces(col + 4));\n if (mp)\n sb.append(\"String_Node_Str\" + \"String_Node_Str\");\n else\n sb.append(\"String_Node_Str\");\n tlacode.addElement(sb.toString());\n }\n ;\n tlacode.addElement(\"String_Node_Str\");\n}\n"
"public String codeGenType(Type type) {\n String result = type == BaseType.INT ? \"String_Node_Str\" : type == BaseType.LONG ? \"String_Node_Str\" : type == BaseType.STRING ? \"String_Node_Str\" : type == BaseType.DOUBLE ? \"String_Node_Str\" : type == BaseType.BOOLEAN ? \"String_Node_Str\" : type == BaseType.UNSIGNED_BYTE ? \"String_Node_Str\" : type == PointerToken.POINTER ? \"String_Node_Str\" : type == BaseType.COMPLEX ? \"String_Node_Str\" : type.equals(BaseType.OBJECT) ? \"String_Node_Str\" : null;\n if (result == null) {\n if (type instanceof ArrayType) {\n result = \"String_Node_Str\";\n } else if (type instanceof MatrixType) {\n result = \"String_Node_Str\";\n }\n }\n if (result == null || result.length() == 0) {\n System.out.println(\"String_Node_Str\" + type + \"String_Node_Str\");\n }\n if (result == null) {\n return null;\n }\n return result.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public IContent execute() {\n TemplateDesign templateDesign = (TemplateDesign) design;\n IForeignContent textContent = report.createForeignContent();\n setContent(textContent);\n restoreResultSet();\n context.registerOnPageBreak(content);\n IStyle style = textContent.getStyle();\n style.setProperty(IStyle.STYLE_BORDER_TOP_COLOR, IStyle.GRAY_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_TOP_STYLE, IStyle.SOLID_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_TOP_WIDTH, IStyle.THIN_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_BOTTOM_COLOR, IStyle.GRAY_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_BOTTOM_STYLE, IStyle.SOLID_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_BOTTOM_WIDTH, IStyle.THIN_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_LEFT_COLOR, IStyle.GRAY_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_LEFT_STYLE, IStyle.SOLID_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_LEFT_WIDTH, IStyle.THIN_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_RIGHT_COLOR, IStyle.GRAY_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_RIGHT_STYLE, IStyle.SOLID_VALUE);\n style.setProperty(IStyle.STYLE_BORDER_RIGHT_WIDTH, IStyle.THIN_VALUE);\n style.setProperty(IStyle.STYLE_TEXT_ALIGN, IStyle.CENTER_VALUE);\n style.setProperty(IStyle.STYLE_VERTICAL_ALIGN, IStyle.MIDDLE_VALUE);\n initializeContent(templateDesign, textContent);\n textContent.setLabelText(templateDesign.getPromptText());\n textContent.setLabelKey(templateDesign.getPromptTextKey());\n processVisibility(templateDesign, textContent);\n if (emitter != null) {\n emitter.startLabel(textContent);\n }\n return textContent;\n}\n"
"protected void closeAllChats() {\n List<Long> chatKeys = new ArrayList<Long>(chats.keySet());\n for (Long chatKey : chatKeys) {\n closeChat(chatKey);\n }\n chats.clear();\n}\n"
"public void execute(Event event) throws EventException {\n try {\n if (!clazz.isAssignableFrom(event.getClass())) {\n throw new EventException(\"String_Node_Str\");\n }\n method.invoke(listener, event);\n } catch (InvocationTargetException e) {\n if (e.getCause() instanceof EventException) {\n throw (EventException) e.getCause();\n }\n throw new EventException(e.getCause());\n } catch (Throwable t) {\n throw new EventException(t);\n }\n}\n"
"public int insert(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n PelopsUser u = new PelopsUser(key, getString(key, \"String_Node_Str\"), getString(key, \"String_Node_Str\"), getString(key, \"String_Node_Str\"));\n em.persist(u);\n em.clear();\n return Ok;\n } catch (Exception e) {\n logger.error(e);\n return Error;\n }\n}\n"
"public Answer executeRequest(Command cmd) {\n Class<? extends Command> clazz = cmd.getClass();\n if (clazz == CreateCommand.class) {\n return execute((CreateCommand) cmd);\n } else if (cmd instanceof SetPortForwardingRulesCommand) {\n return execute((SetPortForwardingRulesCommand) cmd);\n } else if (cmd instanceof SetStaticNatRulesCommand) {\n return execute((SetStaticNatRulesCommand) cmd);\n } else if (cmd instanceof LoadBalancerConfigCommand) {\n return execute((LoadBalancerConfigCommand) cmd);\n } else if (cmd instanceof IPAssocCommand) {\n return execute((IPAssocCommand) cmd);\n } else if (cmd instanceof CheckConsoleProxyLoadCommand) {\n return execute((CheckConsoleProxyLoadCommand) cmd);\n } else if (cmd instanceof WatchConsoleProxyLoadCommand) {\n return execute((WatchConsoleProxyLoadCommand) cmd);\n } else if (cmd instanceof SavePasswordCommand) {\n return execute((SavePasswordCommand) cmd);\n } else if (cmd instanceof DhcpEntryCommand) {\n return execute((DhcpEntryCommand) cmd);\n } else if (cmd instanceof VmDataCommand) {\n return execute((VmDataCommand) cmd);\n } else if (cmd instanceof ReadyCommand) {\n return execute((ReadyCommand) cmd);\n } else if (cmd instanceof GetHostStatsCommand) {\n return execute((GetHostStatsCommand) cmd);\n } else if (cmd instanceof GetVmStatsCommand) {\n return execute((GetVmStatsCommand) cmd);\n } else if (cmd instanceof CheckHealthCommand) {\n return execute((CheckHealthCommand) cmd);\n } else if (cmd instanceof StopCommand) {\n return execute((StopCommand) cmd);\n } else if (cmd instanceof RebootRouterCommand) {\n return execute((RebootRouterCommand) cmd);\n } else if (cmd instanceof RebootCommand) {\n return execute((RebootCommand) cmd);\n } else if (cmd instanceof CheckVirtualMachineCommand) {\n return execute((CheckVirtualMachineCommand) cmd);\n } else if (cmd instanceof PrepareForMigrationCommand) {\n return execute((PrepareForMigrationCommand) cmd);\n } else if (cmd instanceof MigrateCommand) {\n return execute((MigrateCommand) cmd);\n } else if (cmd instanceof DestroyCommand) {\n return execute((DestroyCommand) cmd);\n } else if (cmd instanceof CreateStoragePoolCommand) {\n return execute((CreateStoragePoolCommand) cmd);\n } else if (cmd instanceof ModifyStoragePoolCommand) {\n return execute((ModifyStoragePoolCommand) cmd);\n } else if (cmd instanceof DeleteStoragePoolCommand) {\n return execute((DeleteStoragePoolCommand) cmd);\n } else if (cmd instanceof CopyVolumeCommand) {\n return execute((CopyVolumeCommand) cmd);\n } else if (cmd instanceof AttachVolumeCommand) {\n return execute((AttachVolumeCommand) cmd);\n } else if (cmd instanceof AttachIsoCommand) {\n return execute((AttachIsoCommand) cmd);\n } else if (cmd instanceof ManageSnapshotCommand) {\n return execute((ManageSnapshotCommand) cmd);\n } else if (cmd instanceof BackupSnapshotCommand) {\n return execute((BackupSnapshotCommand) cmd);\n } else if (cmd instanceof DeleteSnapshotBackupCommand) {\n return execute((DeleteSnapshotBackupCommand) cmd);\n } else if (cmd instanceof CreateVolumeFromSnapshotCommand) {\n return execute((CreateVolumeFromSnapshotCommand) cmd);\n } else if (cmd instanceof DeleteSnapshotsDirCommand) {\n return execute((DeleteSnapshotsDirCommand) cmd);\n } else if (cmd instanceof CreatePrivateTemplateFromVolumeCommand) {\n return execute((CreatePrivateTemplateFromVolumeCommand) cmd);\n } else if (cmd instanceof CreatePrivateTemplateFromSnapshotCommand) {\n return execute((CreatePrivateTemplateFromSnapshotCommand) cmd);\n } else if (cmd instanceof UpgradeSnapshotCommand) {\n return execute((UpgradeSnapshotCommand) cmd);\n } else if (cmd instanceof GetStorageStatsCommand) {\n return execute((GetStorageStatsCommand) cmd);\n } else if (cmd instanceof PrimaryStorageDownloadCommand) {\n return execute((PrimaryStorageDownloadCommand) cmd);\n } else if (cmd instanceof GetVncPortCommand) {\n return execute((GetVncPortCommand) cmd);\n } else if (cmd instanceof SetupCommand) {\n return execute((SetupCommand) cmd);\n } else if (cmd instanceof MaintainCommand) {\n return execute((MaintainCommand) cmd);\n } else if (cmd instanceof PingTestCommand) {\n return execute((PingTestCommand) cmd);\n } else if (cmd instanceof CheckOnHostCommand) {\n return execute((CheckOnHostCommand) cmd);\n } else if (cmd instanceof ModifySshKeysCommand) {\n return execute((ModifySshKeysCommand) cmd);\n } else if (cmd instanceof PoolEjectCommand) {\n return execute((PoolEjectCommand) cmd);\n } else if (cmd instanceof StartCommand) {\n return execute((StartCommand) cmd);\n } else if (cmd instanceof RemoteAccessVpnCfgCommand) {\n return execute((RemoteAccessVpnCfgCommand) cmd);\n } else if (cmd instanceof VpnUsersCfgCommand) {\n return execute((VpnUsersCfgCommand) cmd);\n } else if (cmd instanceof CheckSshCommand) {\n return execute((CheckSshCommand) cmd);\n } else if (cmd instanceof SecurityIngressRulesCmd) {\n return execute((SecurityIngressRulesCmd) cmd);\n } else if (cmd instanceof OvsCreateGreTunnelCommand) {\n return execute((OvsCreateGreTunnelCommand) cmd);\n } else if (cmd instanceof OvsSetTagAndFlowCommand) {\n return execute((OvsSetTagAndFlowCommand) cmd);\n } else if (cmd instanceof OvsDeleteFlowCommand) {\n return execute((OvsDeleteFlowCommand) cmd);\n } else if (cmd instanceof CleanupNetworkRulesCmd) {\n return execute((CleanupNetworkRulesCmd) cmd);\n } else if (cmd instanceof NetworkRulesSystemVmCommand) {\n return execute((NetworkRulesSystemVmCommand) cmd);\n } else if (cmd instanceof OvsCreateTunnelCommand) {\n return execute((OvsCreateTunnelCommand) cmd);\n } else if (cmd instanceof OvsDestroyTunnelCommand) {\n return execute((OvsDestroyTunnelCommand) cmd);\n } else if (cmd instanceof UpdateHostPasswordCommand) {\n return execute((UpdateHostPasswordCommand) cmd);\n } else {\n return Answer.createUnsupportedCommandAnswer(cmd);\n }\n}\n"
"public void shouldGetAllEveningTimeSlots() {\n when(allCallTimeSlots.getAllottedSlots()).thenReturn(new AllottedSlots());\n final List<String> eveningTimeSlots = callTimeSlotService.availableEveningSlots();\n assertEquals(48, eveningTimeSlots.size());\n}\n"
"public List<UUID> getMembers() {\n List<UUID> result = new ArrayList<UUID>();\n result.addAll(CoopPlay.getInstance().getCoopPlayers(center.toVector().toLocation(ASkyBlock.getIslandWorld())));\n result.addAll(CoopPlay.getInstance().getCoopPlayers(center.toVector().toLocation(ASkyBlock.getNetherWorld())));\n if (owner == null) {\n return result;\n }\n result.add(owner);\n result.addAll(plugin.getPlayers().getMembers(owner));\n return result;\n}\n"
"public TmfContext seekEvent(long rank) {\n int index = (int) rank / fIndexPageSize;\n ITmfLocation<?> location;\n synchronized (fCheckpoints) {\n if (fCheckpoints.isEmpty()) {\n location = null;\n } else {\n if (index >= fCheckpoints.size()) {\n index = fCheckpoints.size() - 1;\n }\n location = fCheckpoints.elementAt(index).getLocation();\n }\n }\n TmfContext context = seekLocation(location);\n long pos = index * fIndexPageSize;\n context.setRank(pos);\n if (pos < rank) {\n ITmfEvent event = getNextEvent(context);\n while (event != null && ++pos < rank) {\n event = getNextEvent(context);\n }\n }\n return context;\n}\n"
"public void applyInternal() {\n Set<NodeRef> filePlans = getFilePlans();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\" + filePlans.size() + \"String_Node_Str\");\n }\n for (NodeRef filePlan : filePlans) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + filePlan.toString());\n }\n applyCapabilityPatch(filePlan);\n }\n}\n"
"protected int evaluateOnRequest(final ServerContext context, final ScriptState state) throws ResourceException {\n if (onRequest != null) {\n ScriptEntry scriptEntry = onRequest.getRight();\n if (!scriptEntry.isActive()) {\n throw new ServiceUnavailableException(\"String_Node_Str\" + onRequest.getRight().getName());\n }\n Script script = scriptEntry.getScript(context);\n script.put(\"String_Node_Str\", getRequestMap(state.request, context));\n script.put(\"String_Node_Str\", context);\n script.put(\"String_Node_Str\", getLazyContext(context));\n try {\n state.state = script.eval();\n } catch (Throwable t) {\n logger.debug(\"String_Node_Str\", onRequest.getRight().getName(), onRequest.getLeft(), t);\n ResourceException re = Utils.adapt(t);\n logger.debug(\"String_Node_Str\" + re.getDetail());\n throw re;\n }\n }\n return CONTINUE;\n}\n"
"public Payment createPayment(final UUID accountId, final UUID paymentMethodId, final PaymentTransaction paymentTransaction, List<String> controlPluginNames, final Map<String, String> pluginProperties, final RequestOptions options) throws KillBillClientException {\n Preconditions.checkNotNull(accountId, \"String_Node_Str\");\n Preconditions.checkNotNull(paymentTransaction.getTransactionType(), \"String_Node_Str\");\n Preconditions.checkArgument(\"String_Node_Str\".equals(paymentTransaction.getTransactionType()) || \"String_Node_Str\".equals(paymentTransaction.getTransactionType()) || \"String_Node_Str\".equals(paymentTransaction.getTransactionType()), \"String_Node_Str\" + paymentTransaction.getTransactionType());\n Preconditions.checkNotNull(paymentTransaction.getAmount(), \"String_Node_Str\");\n Preconditions.checkNotNull(paymentTransaction.getCurrency(), \"String_Node_Str\");\n final String uri = JaxrsResource.ACCOUNTS_PATH + \"String_Node_Str\" + accountId + \"String_Node_Str\" + JaxrsResource.PAYMENTS;\n final Multimap<String, String> params = HashMultimap.create(inputOptions.getQueryParams());\n if (paymentMethodId != null) {\n params.put(\"String_Node_Str\", paymentMethodId.toString());\n }\n if (controlPluginNames != null) {\n params.putAll(KillBillHttpClient.CONTROL_PLUGIN_NAME, controlPluginNames);\n }\n storePluginPropertiesAsParams(pluginProperties, params);\n final RequestOptions requestOptions = options.extend().withQueryParams(params).withFollowLocation(true).build();\n return httpClient.doPost(uri, paymentTransaction, Payment.class, requestOptions);\n}\n"
"private void _initComponents() {\n _listItemTextField = new JTextField();\n _jScrollPane1 = new JScrollPane();\n _itemsJList = new JList();\n _addButton = new JButton();\n _deleteButton = new JButton();\n _editListItemsLabel = new JLabel();\n _saveButton = new JButton();\n addWindowListener(new WindowListener() {\n public void windowOpened(WindowEvent e) {\n }\n public void windowIconified(WindowEvent e) {\n }\n public void windowDeiconified(WindowEvent e) {\n }\n public void windowDeactivated(WindowEvent e) {\n }\n public void windowClosing(WindowEvent e) {\n _parentFrame.setEnabled(true);\n AttributeListEditFrame.this.dispose();\n }\n public void windowClosed(WindowEvent e) {\n _parentFrame.setEnabled(true);\n AttributeListEditFrame.this.dispose();\n }\n public void windowActivated(WindowEvent e) {\n }\n });\n _itemsJList.setModel(new ArrayModelList(_storedListItems));\n _itemsJList.addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n _deleteButton.setEnabled(true);\n }\n });\n _jScrollPane1.setViewportView(_itemsJList);\n _addButton.setText(\"String_Node_Str\");\n _addButton.setEnabled(false);\n _addButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (!_validate()) {\n JOptionPane.showMessageDialog(AttributeListEditFrame.this, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.ERROR_MESSAGE);\n } else {\n ((ArrayModelList) _itemsJList.getModel()).addItem(_listItemTextField.getText());\n _addButton.setEnabled(false);\n _listItemTextField.setText(\"String_Node_Str\");\n }\n }\n });\n _deleteButton.setText(\"String_Node_Str\");\n _deleteButton.setEnabled(false);\n _deleteButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n ((ArrayModelList) _itemsJList.getModel()).removeItem((String) _itemsJList.getSelectedValue());\n _deleteButton.setEnabled(false);\n }\n });\n _editListItemsLabel.setFont(new Font(\"String_Node_Str\", 1, 18));\n _editListItemsLabel.setText(\"String_Node_Str\");\n _saveButton.setText(\"String_Node_Str\");\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap(50, Short.MAX_VALUE).addComponent(_listItemTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(_deleteButton, 0, 0, Short.MAX_VALUE).addComponent(_addButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGap(18, 18, 18).addComponent(_jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(62, 62, 62)).addGroup(layout.createSequentialGroup().addGap(28, 28, 28).addComponent(_editListItemsLabel).addContainerGap(380, Short.MAX_VALUE)).addGroup(layout.createSequentialGroup().addGap(224, 224, 224).addComponent(_saveButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGap(241, 241, 241)));\n layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(38, 38, 38).addComponent(_editListItemsLabel).addGap(76, 76, 76).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(_listItemTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(_addButton)).addGap(30, 30, 30).addComponent(_deleteButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE).addComponent(_saveButton).addGap(48, 48, 48)).addGroup(layout.createSequentialGroup().addGap(74, 74, 74).addComponent(_jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(105, Short.MAX_VALUE)));\n _listItemTextField.addKeyListener(new KeyListener() {\n public void keyTyped(KeyEvent e) {\n }\n public void keyReleased(KeyEvent e) {\n if (_listItemTextField.getText().isEmpty()) {\n _addButton.setEnabled(false);\n } else {\n _addButton.setEnabled(true);\n }\n }\n public void keyPressed(KeyEvent e) {\n }\n });\n _saveButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n _parentFrame.setEnabled(true);\n AttributeListEditFrame.this.dispose();\n }\n });\n pack();\n}\n"
"protected Layout makeSingleLayout(int wantWidth, BoringLayout.Metrics boring, int ellipsisWidth, Layout.Alignment alignment, boolean shouldEllipsize, TextUtils.TruncateAt effectiveEllipsize, boolean useSaved) {\n CharSequence text = getText() == null ? \"String_Node_Str\" : getText();\n StaticLayout.Builder builder = StaticLayout.Builder.obtain(text, 0, text.length(), getPaint(), wantWidth).setAlignment(alignment).setTextDirection(getTextDirectionHeuristic()).setLineSpacing(getLineSpacingExtra(), getLineSpacingMultiplier()).setIncludePad(getIncludeFontPadding()).setEllipsize(shouldEllipsize ? effectiveEllipsize : null).setEllipsizedWidth(ellipsisWidth).setBreakStrategy(Layout.BREAK_STRATEGY_HIGH_QUALITY).setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL);\n int endMargin = getContext().getResources().getDimensionPixelSize(R.dimen.notification_content_picture_margin);\n int[] margins = null;\n if (mIndentLines > 0) {\n margins = new int[mIndentLines + 1];\n for (int i = 0; i < mIndentLines; i++) {\n margins[i] = endMargin;\n }\n }\n if (mResolvedDirection == LAYOUT_DIRECTION_RTL) {\n builder.setIndents(margins, null);\n } else {\n builder.setIndents(null, margins);\n }\n return builder.build();\n}\n"
"public static ExecutionResponse waitForStateToFinish(SopremoExecutionProtocol server, ExecutionResponse response, ExecutionState status) {\n for (int waits = 0; response.getState() == status && waits < 1000; waits++) {\n Thread.sleep(100);\n response = server.getState(response.getJobId());\n }\n return response;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_material_navigation_drawer);\n Window window = this.getWindow();\n window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n statusBar = (ImageView) findViewById(R.id.statusBar);\n toolbar = (Toolbar) findViewById(R.id.toolbar);\n drawer = (RelativeLayout) this.findViewById(R.id.drawer);\n username = (TextView) this.findViewById(R.id.user_nome);\n usermail = (TextView) this.findViewById(R.id.user_email);\n userphoto = (ImageView) this.findViewById(R.id.user_photo);\n userSecondPhoto = (ImageView) this.findViewById(R.id.user_photo_2);\n userThirdPhoto = (ImageView) this.findViewById(R.id.user_photo_3);\n usercover = (ImageView) this.findViewById(R.id.user_cover);\n userTransition = (ImageView) this.findViewById(R.id.user_transition);\n sections = (LinearLayout) this.findViewById(R.id.sections);\n bottomSections = (LinearLayout) this.findViewById(R.id.bottom_sections);\n sectionList = new LinkedList<>();\n bottomSectionList = new LinkedList<>();\n accountManager = new LinkedList<>();\n userphoto.setOnClickListener(currentAccountListener);\n usercover.setOnClickListener(currentAccountListener);\n userSecondPhoto.setOnClickListener(secondAccountListener);\n userThirdPhoto.setOnClickListener(thirdAccountListener);\n density = this.getResources().getDisplayMetrics().density;\n Resources.Theme theme = this.getTheme();\n TypedValue typedValue = new TypedValue();\n theme.resolveAttribute(R.attr.colorPrimary, typedValue, true);\n primaryColor = typedValue.data;\n if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT)\n this.statusBar.setImageDrawable(new ColorDrawable(darkenColor(primaryColor)));\n init(savedInstanceState);\n if (sectionList.size() == 0) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n this.setSupportActionBar(toolbar);\n actionBar = getSupportActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeButtonEnabled(true);\n title = sectionList.get(indexFragment).getTitle();\n layout = (DrawerLayout) this.findViewById(R.id.drawer_layout);\n pulsante = new ActionBarDrawerToggle(this, layout, toolbar, R.string.nothing, R.string.nothing) {\n public void onDrawerClosed(View view) {\n actionBar.setTitle(title);\n invalidateOptionsMenu();\n }\n public void onDrawerOpened(View drawerView) {\n invalidateOptionsMenu();\n }\n };\n layout.setDrawerListener(pulsante);\n if (accountManager.size() > 0) {\n currentAccount = accountManager.get(0);\n notifyAccountDataChanged();\n }\n MaterialSection section = sectionList.get(0);\n currentSection = section;\n section.select();\n setFragment((Fragment) section.getTargetFragment(), section.getTitle(), null);\n}\n"
"private void unschedule() {\n if (dirtyOutputBuffer() || currentPacket != null) {\n registerOp(SelectionKey.OP_WRITE);\n return;\n }\n unregisterOp(SelectionKey.OP_WRITE);\n scheduled.set(false);\n if (writeQueue.isEmpty() && urgentWriteQueue.isEmpty()) {\n return;\n }\n if (!scheduled.compareAndSet(false, true)) {\n return;\n }\n ioSelector.addTask(this);\n}\n"
"private boolean isRequestUrlExcluded(final HttpServletRequest request) {\n for (String exclusion : this.exclusions) {\n String pathInfo = request.getPathInfo();\n if (pathInfo != null && exclusion != null && pathInfo.matches(exclusion)) {\n return true;\n }\n }\n return false;\n}\n"
"private boolean parseIntent(Resources res, XmlPullParser parser, AttributeSet attrs, int flags, IntentInfo outInfo, String[] outError, boolean isActivity) throws XmlPullParserException, IOException {\n TypedArray sa = res.obtainAttributes(attrs, com.android.internal.R.styleable.AndroidManifestIntentFilter);\n int priority = sa.getInt(com.android.internal.R.styleable.AndroidManifestIntentFilter_priority, 0);\n if (priority > 0 && isActivity && (flags & PARSE_IS_SYSTEM) == 0) {\n Log.w(TAG, \"String_Node_Str\" + mArchiveSourcePath + \"String_Node_Str\" + parser.getPositionDescription());\n priority = 0;\n }\n outInfo.setPriority(priority);\n TypedValue v = sa.peekValue(com.android.internal.R.styleable.AndroidManifestIntentFilter_label);\n if (v != null && (outInfo.labelRes = v.resourceId) == 0) {\n outInfo.nonLocalizedLabel = v.coerceToString();\n }\n outInfo.icon = sa.getResourceId(com.android.internal.R.styleable.AndroidManifestIntentFilter_icon, 0);\n sa.recycle();\n int outerDepth = parser.getDepth();\n int type;\n while ((type = parser.next()) != parser.END_DOCUMENT && (type != parser.END_TAG || parser.getDepth() > outerDepth)) {\n if (type == parser.END_TAG || type == parser.TEXT) {\n continue;\n }\n String nodeName = parser.getName();\n if (nodeName.equals(\"String_Node_Str\")) {\n String value = attrs.getAttributeValue(ANDROID_RESOURCES, \"String_Node_Str\");\n if (value == null || value == \"String_Node_Str\") {\n outError[0] = \"String_Node_Str\";\n return false;\n }\n XmlUtils.skipCurrentTag(parser);\n outInfo.addAction(value);\n } else if (nodeName.equals(\"String_Node_Str\")) {\n String value = attrs.getAttributeValue(ANDROID_RESOURCES, \"String_Node_Str\");\n if (value == null || value == \"String_Node_Str\") {\n outError[0] = \"String_Node_Str\";\n return false;\n }\n XmlUtils.skipCurrentTag(parser);\n outInfo.addCategory(value);\n } else if (nodeName.equals(\"String_Node_Str\")) {\n sa = res.obtainAttributes(attrs, com.android.internal.R.styleable.AndroidManifestData);\n String str = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_mimeType);\n if (str != null) {\n try {\n outInfo.addDataType(str);\n } catch (IntentFilter.MalformedMimeTypeException e) {\n outError[0] = e.toString();\n sa.recycle();\n return false;\n }\n }\n str = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_scheme);\n if (str != null) {\n outInfo.addDataScheme(str);\n }\n String host = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_host);\n String port = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_port);\n if (host != null) {\n outInfo.addDataAuthority(host, port);\n }\n str = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_path);\n if (str != null) {\n outInfo.addDataPath(str, PatternMatcher.PATTERN_LITERAL);\n }\n str = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_pathPrefix);\n if (str != null) {\n outInfo.addDataPath(str, PatternMatcher.PATTERN_PREFIX);\n }\n str = sa.getNonResourceString(com.android.internal.R.styleable.AndroidManifestData_pathPattern);\n if (str != null) {\n outInfo.addDataPath(str, PatternMatcher.PATTERN_SIMPLE_GLOB);\n }\n sa.recycle();\n XmlUtils.skipCurrentTag(parser);\n } else if (!RIGID_PARSER) {\n Log.w(TAG, \"String_Node_Str\" + mArchiveSourcePath + \"String_Node_Str\");\n Log.w(TAG, \"String_Node_Str\" + parser.getName());\n XmlUtils.skipCurrentTag(parser);\n } else {\n outError[0] = \"String_Node_Str\" + parser.getName();\n return false;\n }\n }\n outInfo.hasDefault = outInfo.hasCategory(Intent.CATEGORY_DEFAULT);\n if (false) {\n String cats = \"String_Node_Str\";\n Iterator<String> it = outInfo.categoriesIterator();\n while (it != null && it.hasNext()) {\n cats += \"String_Node_Str\" + it.next();\n }\n System.out.println(\"String_Node_Str\" + outInfo.hasDefault + \"String_Node_Str\" + cats);\n }\n return true;\n}\n"
"void loadOntology() {\n Stopwatch timer = Stopwatch.createStarted();\n logger.info(\"String_Node_Str\");\n walker.walkStructure(visitor);\n logger.info(format(\"String_Node_Str\", timer.elapsed(TimeUnit.SECONDS)));\n timer.reset();\n timer.start();\n logger.info(\"String_Node_Str\");\n postprocessorProvider.get().postprocess();\n logger.info(format(\"String_Node_Str\", timer.elapsed(TimeUnit.SECONDS)));\n timer.reset();\n timer.start();\n logger.info(\"String_Node_Str\");\n logger.info(format(\"String_Node_Str\", timer.elapsed(TimeUnit.SECONDS)));\n postprocessor.processSomeValuesFrom();\n}\n"
"public Integer doWork() throws Exception {\n return Integer.valueOf(compareImpl(f1, f2));\n}\n"
"private List<IntMappingType> getAttributeTypes(final Entity entity) {\n final List<IntMappingType> res = new ArrayList<IntMappingType>();\n if (entity != null) {\n final EnumSet types = IntMappingType.getAttributeTypes(AttributableType.valueOf(entity.toString()));\n for (Object type : types) {\n res.add(IntMappingType.valueOf(type.toString()));\n }\n }\n return res;\n}\n"
"public byte[] getData(int version) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n OutputStream os = baos;\n SWFOutputStream sos = new SWFOutputStream(os, version);\n try {\n sos.writeUI16(fontID);\n sos.writeUI8(fontName.getBytes(\"String_Node_Str\").length);\n sos.write(fontName.getBytes(\"String_Node_Str\"));\n sos.writeUB(2, 0);\n sos.writeUB(1, fontFlagsSmallText ? 1 : 0);\n sos.writeUB(1, fontFlagsShiftJIS ? 1 : 0);\n sos.writeUB(1, fontFlagsANSI ? 1 : 0);\n sos.writeUB(1, fontFlagsItalic ? 1 : 0);\n sos.writeUB(1, fontFlagsBold ? 1 : 0);\n sos.writeUB(1, fontFlagsWideCodes ? 1 : 0);\n sos.writeLANGCODE(languageCode);\n for (int c : codeTable) {\n sos.writeUI16(c);\n }\n } catch (IOException e) {\n }\n return baos.toByteArray();\n}\n"
"private void waitForReportingTasks() {\n if (runInfo.getDuration().getPeriodType() == PeriodType.TIME) {\n long lastTasks = 0;\n long tasks = getTasksInQueue();\n reportingTasks.shutdown();\n while (tasks > 0 && tasks != lastTasks) {\n lastTasks = tasks;\n try {\n reportingTasks.awaitTermination(1, TimeUnit.SECONDS);\n } catch (InterruptedException ie) {\n }\n tasks = getTasksInQueue();\n }\n reportingTasks = null;\n } else {\n while (getTasksInQueue() > 0) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {\n }\n }\n reportingTasks.shutdown();\n reportingTasks = null;\n }\n}\n"
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n mVoicemailChangeResult = result;\n if (DBG)\n log(\"String_Node_Str\");\n break;\n case EVENT_TTY_MODE_SET:\n handleSetTTYModeResponse(msg);\n break;\n }\n}\n"
"public Action getAction(String actionType) {\n return actionsTable.get(actionType);\n}\n"
"public void generate() throws IOException, UnsupportedOperationException {\n String qualifiedGeneratedClassName = String.format(\"String_Node_Str\", realmPackageName, className);\n JavaFileObject sourceFile = processingEnvironment.getFiler().createSourceFile(qualifiedGeneratedClassName);\n JavaWriter writer = new JavaWriter(new BufferedWriter(sourceFile.openWriter()));\n Elements elementUtils = processingEnvironment.getElementUtils();\n Types typeUtils = processingEnvironment.getTypeUtils();\n TypeMirror realmObject = elementUtils.getTypeElement(\"String_Node_Str\").asType();\n DeclaredType realmList = typeUtils.getDeclaredType(elementUtils.getTypeElement(\"String_Node_Str\"), typeUtils.getWildcardType(null, null));\n writer.setIndent(\"String_Node_Str\");\n writer.emitPackage(realmPackageName).emitEmptyLine();\n writer.emitImports(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", packageName + \"String_Node_Str\").emitEmptyLine();\n writer.beginType(qualifiedGeneratedClassName, \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC), className).emitEmptyLine();\n ListIterator<VariableElement> iterator = fields.listIterator();\n while (iterator.hasNext()) {\n int columnNumber = iterator.nextIndex();\n VariableElement field = iterator.next();\n String fieldName = field.getSimpleName().toString();\n String fieldTypeCanonicalName = field.asType().toString();\n if (JAVA_TO_REALM_TYPES.containsKey(fieldTypeCanonicalName)) {\n String realmType = JAVA_TO_REALM_TYPES.get(fieldTypeCanonicalName);\n String castingType = CASTING_TYPES.get(fieldTypeCanonicalName);\n writer.emitAnnotation(\"String_Node_Str\");\n String getterPrefix = fieldTypeCanonicalName.equals(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\";\n writer.beginMethod(fieldTypeCanonicalName, getterPrefix + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC));\n writer.emitStatement(\"String_Node_Str\", fieldTypeCanonicalName, realmType, columnNumber);\n writer.endMethod();\n writer.emitEmptyLine();\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\" + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC), fieldTypeCanonicalName, \"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\", realmType, columnNumber, castingType);\n writer.endMethod();\n } else if (typeUtils.isAssignable(field.asType(), realmObject)) {\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(fieldTypeCanonicalName, \"String_Node_Str\" + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC));\n writer.beginControlFlow(\"String_Node_Str\", columnNumber);\n writer.emitStatement(\"String_Node_Str\");\n writer.endControlFlow();\n writer.emitStatement(\"String_Node_Str\", fieldTypeCanonicalName, columnNumber);\n writer.endMethod();\n writer.emitEmptyLine();\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\" + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC), fieldTypeCanonicalName, \"String_Node_Str\");\n writer.beginControlFlow(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\", columnNumber);\n writer.endControlFlow();\n writer.emitStatement(\"String_Node_Str\", columnNumber);\n writer.endMethod();\n } else if (typeUtils.isAssignable(field.asType(), realmList)) {\n String genericCanonicalType = ((DeclaredType) field.asType()).getTypeArguments().get(0).toString();\n String genericType;\n if (genericCanonicalType.contains(\"String_Node_Str\")) {\n genericType = genericCanonicalType.substring(genericCanonicalType.lastIndexOf('.') + 1);\n } else {\n genericType = genericCanonicalType;\n }\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(fieldTypeCanonicalName, \"String_Node_Str\" + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC));\n writer.emitStatement(\"String_Node_Str\", genericType, columnNumber);\n writer.endMethod();\n writer.emitEmptyLine();\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\" + capitaliseFirstChar(fieldName), EnumSet.of(Modifier.PUBLIC), fieldTypeCanonicalName, \"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\", columnNumber);\n writer.beginControlFlow(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\");\n writer.endControlFlow();\n writer.beginControlFlow(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\");\n writer.endControlFlow();\n writer.endMethod();\n } else {\n throw new UnsupportedOperationException(String.format(\"String_Node_Str\", fieldTypeCanonicalName, fieldName));\n }\n writer.emitEmptyLine();\n }\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC, Modifier.STATIC), \"String_Node_Str\", \"String_Node_Str\");\n writer.beginControlFlow(\"String_Node_Str\" + this.className + \"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\", this.className);\n for (VariableElement field : fields) {\n String fieldName = field.getSimpleName().toString();\n String fieldTypeCanonicalName = field.asType().toString();\n String fieldTypeName;\n if (fieldTypeCanonicalName.contains(\"String_Node_Str\")) {\n fieldTypeName = fieldTypeCanonicalName.substring(fieldTypeCanonicalName.lastIndexOf('.') + 1);\n } else {\n fieldTypeName = fieldTypeCanonicalName;\n }\n if (JAVA_TO_REALM_TYPES.containsKey(fieldTypeCanonicalName)) {\n writer.emitStatement(\"String_Node_Str\", JAVA_TO_COLUMN_TYPES.get(fieldTypeCanonicalName), fieldName.toLowerCase(Locale.getDefault()));\n } else if (typeUtils.isAssignable(field.asType(), realmObject)) {\n writer.beginControlFlow(\"String_Node_Str\", fieldTypeName);\n writer.emitStatement(\"String_Node_Str\", fieldTypeName);\n writer.endControlFlow();\n writer.emitStatement(\"String_Node_Str\", fieldName.toLowerCase(Locale.getDefault()), fieldTypeName);\n } else if (typeUtils.isAssignable(field.asType(), realmList)) {\n String genericCanonicalType = ((DeclaredType) field.asType()).getTypeArguments().get(0).toString();\n String genericType;\n if (genericCanonicalType.contains(\"String_Node_Str\")) {\n genericType = genericCanonicalType.substring(genericCanonicalType.lastIndexOf('.') + 1);\n } else {\n genericType = genericCanonicalType;\n }\n writer.beginControlFlow(\"String_Node_Str\", genericType);\n writer.emitStatement(\"String_Node_Str\", genericType);\n writer.endControlFlow();\n writer.emitStatement(\"String_Node_Str\", fieldName.toLowerCase(Locale.getDefault()), genericType);\n }\n }\n writer.emitStatement(\"String_Node_Str\");\n writer.endControlFlow();\n writer.emitStatement(\"String_Node_Str\", this.className);\n writer.endMethod();\n writer.emitEmptyLine();\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC));\n writer.emitStatement(\"String_Node_Str\", className);\n for (VariableElement field : fields) {\n String fieldName = field.getSimpleName().toString();\n String fieldTypeCanonicalName = field.asType().toString();\n String getterPrefix = fieldTypeCanonicalName.equals(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\";\n writer.emitStatement(\"String_Node_Str\", fieldName);\n writer.emitStatement(\"String_Node_Str\", getterPrefix, capitaliseFirstChar(fieldName));\n writer.emitStatement(\"String_Node_Str\", fieldName);\n }\n writer.emitStatement(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\");\n writer.endMethod();\n writer.emitEmptyLine();\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC));\n writer.emitStatement(\"String_Node_Str\");\n int counter = 0;\n for (VariableElement field : fields) {\n String fieldName = field.getSimpleName().toString();\n String fieldTypeCanonicalName = field.asType().toString();\n if (HASHCODE.containsKey(fieldTypeCanonicalName)) {\n for (String statement : HASHCODE.get(fieldTypeCanonicalName)) {\n if (statement.contains(\"String_Node_Str\") && statement.contains(\"String_Node_Str\")) {\n writer.emitStatement(statement, counter, capitaliseFirstChar(fieldName));\n } else if (statement.contains(\"String_Node_Str\")) {\n writer.emitStatement(statement, counter, counter);\n } else if (statement.contains(\"String_Node_Str\")) {\n writer.emitStatement(statement, capitaliseFirstChar(fieldName));\n } else {\n throw new AssertionError();\n }\n }\n } else {\n writer.emitStatement(\"String_Node_Str\", fieldTypeCanonicalName, counter, capitaliseFirstChar(fieldName));\n writer.emitStatement(\"String_Node_Str\", counter, counter);\n }\n counter++;\n }\n writer.emitStatement(\"String_Node_Str\");\n writer.endMethod();\n writer.emitEmptyLine();\n String proxyClassName = className + \"String_Node_Str\";\n writer.emitAnnotation(\"String_Node_Str\");\n writer.beginMethod(\"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC), \"String_Node_Str\", \"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\");\n writer.emitStatement(\"String_Node_Str\", proxyClassName, className, proxyClassName);\n for (VariableElement field : fields) {\n String fieldName = field.getSimpleName().toString();\n String capFieldName = capitaliseFirstChar(fieldName);\n String fieldTypeCanonicalName = field.asType().toString();\n if (HOW_TO_EQUAL.containsKey(fieldTypeCanonicalName)) {\n switch(HOW_TO_EQUAL.get(fieldTypeCanonicalName)) {\n case EQUALS_DIRECT:\n String getterPrefix = fieldTypeCanonicalName.equals(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\";\n writer.emitStatement(\"String_Node_Str\", getterPrefix, capFieldName, className, getterPrefix, capFieldName);\n break;\n case EQUALS_NULL:\n writer.emitStatement(\"String_Node_Str\", capFieldName, capFieldName, className, capFieldName, className, capFieldName);\n break;\n case EQUALS_ARRAY:\n writer.emitStatement(\"String_Node_Str\", capFieldName, className, capFieldName);\n break;\n case EQUALS_COMPARE:\n writer.emitStatement(\"String_Node_Str\", fieldTypeCanonicalName, capitaliseFirstChar(fieldName), className, capitaliseFirstChar(fieldName));\n break;\n }\n } else if (typeUtils.isAssignable(field.asType(), realmObject) || typeUtils.isAssignable(field.asType(), realmList)) {\n writer.emitStatement(\"String_Node_Str\", capFieldName, capFieldName, className, capFieldName, className, capFieldName);\n }\n }\n writer.emitStatement(\"String_Node_Str\");\n writer.endMethod();\n writer.emitEmptyLine();\n writer.endType();\n writer.close();\n}\n"
"public void killQueue() {\n synchronized (queueLock) {\n for (final QueuePriority prio : prios) {\n for (final QueueAction<?, ? extends Throwable> item : queue.get(prio)) {\n item.kill();\n synchronized (item) {\n item.notify();\n }\n }\n this.queue.get(prio).clear();\n }\n }\n}\n"
"protected <T> T readObject(AMapper<T> mapper) throws ParseException, IOException {\n if (c != '{')\n throw new RuntimeException(\"String_Node_Str\");\n Object current = mapper.createObject();\n boolean needData = false;\n boolean acceptData = true;\n for (; ; ) {\n read();\n switch(c) {\n case ' ':\n case '\\r':\n case '\\t':\n case '\\n':\n continue;\n case ':':\n case ']':\n case '[':\n case '{':\n throw new ParseException(pos, ERROR_UNEXPECTED_CHAR, c);\n case '}':\n if (needData && !acceptUselessComma)\n throw new ParseException(pos, ERROR_UNEXPECTED_CHAR, (char) c);\n read();\n return mapper.convert(current);\n case ',':\n if (needData && !acceptUselessComma)\n throw new ParseException(pos, ERROR_UNEXPECTED_CHAR, (char) c);\n acceptData = needData = true;\n continue;\n case '\"':\n case '\\'':\n default:\n if (c == '\\\"' || c == '\\'') {\n readString();\n } else {\n readNQString(stopKey);\n if (!acceptNonQuote)\n throw new ParseException(pos, ERROR_UNEXPECTED_TOKEN, xs);\n }\n String key = xs;\n if (!acceptData)\n throw new ParseException(pos, ERROR_UNEXPECTED_TOKEN, key);\n skipSpace();\n if (c != ':') {\n if (c == EOI)\n throw new ParseException(pos - 1, ERROR_UNEXPECTED_EOF, null);\n throw new ParseException(pos - 1, ERROR_UNEXPECTED_CHAR, c);\n }\n if (c == EOI)\n throw new ParseException(pos - 1, ERROR_UNEXPECTED_EOF, null);\n readNoEnd();\n lastKey = key;\n Object value = readMain(mapper, stopValue);\n mapper.setValue(current, key, value);\n lastKey = null;\n if (c == '}') {\n read();\n return mapper.convert(current);\n }\n if (c == EOI)\n throw new ParseException(pos - 1, ERROR_UNEXPECTED_EOF, null);\n if (c == ',')\n acceptData = needData = true;\n else\n acceptData = needData = false;\n continue;\n }\n }\n}\n"
"public static NetworkParameters prodNet() {\n NetworkParameters n = new NetworkParameters();\n n.proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL);\n n.port = 8333;\n n.packetMagic = 0xf9beb4d9L;\n n.addressHeader = 0;\n n.acceptableAddressCodes = new int[] { 0 };\n n.dumpedPrivateKeyHeader = 128;\n n.interval = INTERVAL;\n n.targetTimespan = TARGET_TIMESPAN;\n n.alertSigningKey = SATOSHI_KEY;\n n.genesisBlock = createGenesis(n);\n n.genesisBlock.setDifficultyTarget(0x1d00ffffL);\n n.genesisBlock.setTime(1231006505L);\n n.genesisBlock.setNonce(2083236893);\n n.id = ID_PRODNET;\n n.checkBlockDifficulty = true;\n String genesisHash = n.genesisBlock.getHashAsString();\n checkState(genesisHash.equals(\"String_Node_Str\"), genesisHash);\n return n;\n}\n"
"public int compareTo(Ownable other) {\n if (other instanceof PublicCertificate) {\n PublicCertificate otherCert = (PublicCertificate) other;\n return ComparisonChain.start().compare(this.getCompany(), otherCert.getCompany()).compare(this.getId(), otherCert.getId()).result();\n } else {\n return super.compareTo(other);\n }\n}\n"
"public Collection<ParameterEnum<?>> getParameters() {\n final Set<ParameterEnum<?>> params = new HashSet<ParameterEnum<?>>();\n params.addAll(Arrays.asList(new ParameterEnum<?>[] { SampleParameters.Sample.MAX_SAMPLE_SIZE, SampleParameters.Sample.SAMPLE_ITERATIONS, SampleParameters.Sample.MIN_SAMPLE_SIZE, CentroidParameters.Centroid.WRAPPER_FACTORY_CLASS, CentroidParameters.Centroid.INDEX_ID, CentroidParameters.Centroid.DATA_TYPE_ID, CentroidParameters.Centroid.DATA_NAMESPACE_URI, CentroidParameters.Centroid.EXTRACTOR_CLASS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS, CommonParameters.Common.DIMENSION_EXTRACT_CLASS, StoreParameters.StoreParam.INPUT_STORE, GlobalParameters.Global.BATCH_ID }));\n params.addAll(MapReduceParameters.getParameters());\n params.addAll(NestedGroupCentroidAssignment.getParameters());\n params.addAll(CentroidManagerGeoWave.getParameters());\n params.addAll(initialSampleRunner.getParameters());\n return params;\n}\n"
"protected ValidationResult validate(Artifact artToValidate, IProgressMonitor monitor) throws OseeCoreException {\n Collection<String> errorMessages = new ArrayList<>();\n boolean validationPassed = true;\n if (hasArtifactType(artToValidate.getArtifactType())) {\n List<Artifact> arts = ArtifactQuery.getArtifactListFromTypeWithInheritence(artifactType, artToValidate.getBranch(), DeletionFlag.EXCLUDE_DELETED);\n for (Artifact art : arts) {\n if (art.getName().equalsIgnoreCase(artToValidate.getName()) && !art.getUuid().equals(artToValidate.getUuid()) && !hasUuidPairAlreadyBeenEvaluated(art.getUuid(), artToValidate.getUuid())) {\n if (Strings.isNumeric(artToValidate.getName()) && !artToValidate.getArtifactType().equals(art.getArtifactType())) {\n continue;\n }\n if (isImplementationDetailsChild(artToValidate, art) || isImplementationDetailsChild(art, artToValidate)) {\n continue;\n }\n errorMessages.add(ValidationReportOperation.getRequirementHyperlink(artToValidate) + \"String_Node_Str\" + ValidationReportOperation.getRequirementHyperlink(art) + \"String_Node_Str\" + artToValidate.getName() + \"String_Node_Str\");\n validationPassed = false;\n addGuidPair(art.getGuid(), artToValidate.getGuid());\n }\n }\n }\n return new ValidationResult(errorMessages, validationPassed);\n}\n"
"public static void setConfigItem(Player player, String key, List<String> list) throws SMSException {\n if (!key.startsWith(\"String_Node_Str\")) {\n key = \"String_Node_Str\" + key;\n }\n if (getConfig().getDefaults().get(key) == null) {\n throw new SMSException(\"String_Node_Str\" + key + \"String_Node_Str\");\n }\n if (!(getConfig().getDefaults().get(key) instanceof List<?>))\n throw new SMSException(\"String_Node_Str\" + key + \"String_Node_Str\");\n handleListValue(key, list);\n ScrollingMenuSign.getInstance().saveConfig();\n}\n"
"public static LoadBalancer getLoadbalancer(UserFullName user, String lbName) {\n final EntityTransaction db = Entities.get(LoadBalancer.class);\n try {\n final LoadBalancer lb = Entities.uniqueResult(LoadBalancer.named(user.getAccountName(), lbName));\n db.commit();\n return lb;\n } catch (NoSuchElementException ex) {\n db.rollback();\n throw ex;\n } catch (Exception ex) {\n db.rollback();\n LOG.error(\"String_Node_Str\" + lbName, ex);\n throw Exceptions.toUndeclared(ex);\n }\n}\n"
"private void bindAgentInformation(String agentId, String applicationName) {\n bind(String.class).annotatedWith(AgentId.class).toInstance(agentId);\n bind(String.class).annotatedWith(ApplicationName.class).toInstance(applicationName);\n bind(Long.class).annotatedWith(AgentStartTime.class).toProvider(AgentStartTimeProvider.class);\n bind(ServiceType.class).annotatedWith(ApplicationServerType.class).toProvider(ApplicationServerTypeProvider.class);\n}\n"
"public void onGlobalLayout() {\n Utils.removeOnGlobalLayoutListenerCompat(parent, this);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_1).findViewById(R.id.photo), R.drawable.photo1);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_2).findViewById(R.id.photo), R.drawable.photo2);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_3).findViewById(R.id.photo), R.drawable.photo3);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_4).findViewById(R.id.photo), R.drawable.photo4);\n}\n"
"public void setPortalInventory(Player player, Region region) {\n PlayerInventory inv = player.getInventory();\n for (int i = 0; i < 40; i++) {\n ItemStack item = inv.getItem(i);\n if (item == null || item.getTypeId() == 0)\n continue;\n boolean keep = false;\n for (Object is : region.getList(RegionSetting.GRILL_INVENTORY_CLEAR_EXCEPTIONS)) {\n ItemStack itemcheck = plugin.util.getItemData((String) is);\n if (item.getTypeId() == itemcheck.getTypeId()) {\n keep = true;\n break;\n }\n }\n if (!keep)\n inv.clear(i);\n }\n for (Object is : region.getList(RegionSetting.UNIQUE_INVENTORY_ITEMS)) {\n ItemStack item = plugin.util.getItemData((String) is);\n if (item.getTypeId() == plugin.config.PortalTool && item.getDurability() == plugin.config.portalToolData)\n inv.setItemInHand(item);\n else\n inv.addItem(item);\n }\n}\n"
"protected boolean processOnMouseOver(ShapedAction sa, HTMLTag tag) {\n Action ac = sa.getActionForCondition(TriggerCondition.ONMOUSEOVER_LITERAL);\n if (checkSupportedAction(ac)) {\n switch(ac.getType().getValue()) {\n case ActionType.URL_REDIRECT:\n return false;\n case ActionType.SHOW_TOOLTIP:\n TooltipValue tv = (TooltipValue) ac.getValue();\n if (tv.getText() != null && tv.getText().length() > 0) {\n tag.addAttribute(HTMLAttribute.TITLE, eval2HTML(tv.getText()));\n return true;\n }\n return false;\n case ActionType.INVOKE_SCRIPT:\n final DataPointHints dph;\n if (StructureType.SERIES_DATA_POINT.equals(sa.getSource().getType())) {\n dph = (DataPointHints) sa.getSource().getSource();\n } else {\n dph = null;\n }\n StringBuffer callbackFunction = new StringBuffer(getJSMethodName(TriggerCondition.ONMOUSEOVER_LITERAL, sa));\n callbackFunction.append(\"String_Node_Str\");\n ScriptUtil.script(callbackFunction, dph);\n callbackFunction.append(\"String_Node_Str\");\n tag.addAttribute(HTMLAttribute.ONMOUSEOVER, eval2JS(callbackFunction.toString(), true));\n return true;\n }\n }\n return false;\n}\n"
"private int parseMethod(long lo, int len) throws HeadersTooLargeException {\n long p = lo;\n long hi = lo + len;\n while (p < hi) {\n if (_wptr == this.hi) {\n throw HeadersTooLargeException.INSTANCE;\n }\n char b = (char) Unsafe.getUnsafe().getByte(p++);\n if (b == '\\r') {\n continue;\n }\n Unsafe.getUnsafe().putByte(_wptr++, (byte) b);\n switch(b) {\n case ' ':\n if (m) {\n method = pool.next().of(_lo, _wptr);\n _lo = _wptr + 1;\n m = false;\n } else if (u) {\n url = pool.next().of(_lo, _wptr - 1);\n u = false;\n _lo = _wptr;\n } else if (q) {\n Misc.urlDecode(_lo, _wptr - 1, urlParams, pool);\n q = false;\n _lo = _wptr;\n }\n break;\n case '?':\n url = pool.next().of(_lo, _wptr - 1);\n u = false;\n q = true;\n _lo = _wptr;\n break;\n case '\\n':\n methodLine = pool.next().of(((DirectByteCharSequence) method).getLo(), _wptr - 1);\n needMethod = false;\n this._lo = _wptr;\n return (int) (p - lo);\n default:\n break;\n }\n }\n return (int) (p - lo);\n}\n"
"public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {\n if (!(isNullRepresentedByXsiNil() || marshalNullRepresentation.equals(XMLNullRepresentationType.XSI_NIL))) {\n if (xPathNode.getXPathFragment().isAttribute()) {\n return;\n }\n }\n XPathNode parentNode = xPathNode.getParent();\n if (isNullRepresentedByXsiNil() || getMarshalNullRepresentation().equals(XMLNullRepresentationType.XSI_NIL)) {\n XPathFragment xPathFragment = new XPathFragment();\n xPathFragment.setXPath('@' + XMLConstants.SCHEMA_NIL_ATTRIBUTE);\n xPathFragment.setNamespaceURI(XMLConstants.SCHEMA_INSTANCE_URL);\n NodeValue aNodeValue = new NillableNodeValue(nullCapableValue);\n parentNode.addChild(xPathFragment, aNodeValue, null);\n } else {\n NodeValue aNodeValue = new OptionalNodeValue(nullCapableValue);\n parentNode.setNodeValue(aNodeValue);\n }\n}\n"
"public void singleFileCollabSucceeds() {\n HashMap<String, BoxCollaboration.Info> collabsMap = new HashMap<String, BoxCollaboration.Info>();\n BoxAPIConnection api = new BoxAPIConnection(TestConfig.getAccessToken());\n BoxFolder rootFolder = BoxFolder.getRootFolder(api);\n String fileName = \"String_Node_Str\";\n String fileContent = \"String_Node_Str\";\n byte[] fileBytes = fileContent.getBytes(StandardCharsets.UTF_8);\n InputStream uploadStream = new ByteArrayInputStream(fileBytes);\n BoxFile uploadedFile = rootFolder.uploadFile(uploadStream, fileName).getResource();\n String collaboratorLogin = TestConfig.getCollaborator();\n BoxCollaboration.Role originalRole = BoxCollaboration.Role.VIEWER;\n BoxCollaboration.Role newRole = BoxCollaboration.Role.EDITOR;\n BoxCollaboration.Info collabInfo = uploadedFile.collaborate(collaboratorLogin, originalRole);\n collabsMap.put(collabInfo.getID(), collabInfo);\n assertThat(collabInfo.getRole(), is(equalTo(originalRole)));\n BoxCollaboration collab = collabInfo.getResource();\n collabInfo.setRole(newRole);\n collab.updateInfo(collabInfo);\n assertThat(collabInfo.getRole(), is(equalTo(newRole)));\n BoxCollaboration remoteCollab = new BoxCollaboration(api, collab.getID());\n BoxCollaboration.Info remoteInfo = remoteCollab.getInfo();\n assertThat(remoteInfo.getRole(), is(equalTo(newRole)));\n assertThat(remoteInfo.getCreatedBy().getID(), is(collabInfo.getCreatedBy().getID()));\n BoxCollaboration.Info collab2Info = uploadedFile.collaborate(\"String_Node_Str\", originalRole);\n collabsMap.put(collab2Info.getID(), collab2Info);\n BoxResourceIterable<BoxCollaboration.Info> collabs = uploadedFile.getAllFileCollaborations();\n Iterator<BoxCollaboration.Info> collabIterator = collabs.iterator();\n int numCollabs = 0;\n while (collabIterator.hasNext()) {\n numCollabs++;\n BoxCollaboration.Info fileCollabInfo = collabIterator.next();\n BoxCollaboration.Info localFileCollabInfor = collabsMap.get(fileCollabInfo.getID());\n assertEquals(fileCollabInfo.getID(), localFileCollabInfor.getID());\n assertEquals(fileCollabInfo.getCreatedBy().getID(), localFileCollabInfor.getCreatedBy().getID());\n assertEquals(fileCollabInfo.getCreatedBy().getName(), localFileCollabInfor.getCreatedBy().getName());\n assertEquals(fileCollabInfo.getAccessibleBy().getID(), localFileCollabInfor.getAccessibleBy().getID());\n assertEquals(fileCollabInfo.getAccessibleBy().getName(), localFileCollabInfor.getAccessibleBy().getName());\n assertEquals(fileCollabInfo.getRole(), localFileCollabInfor.getRole());\n assertEquals(fileCollabInfo.getStatus(), localFileCollabInfor.getStatus());\n }\n BoxCollaboration.Info colInfo = collabIterator.next();\n assertThat(colInfo.getID(), is(equalTo(collab2Info.getID())));\n assertEquals(colInfo.getID(), collab2Info.getID());\n assertEquals(colInfo.getID(), collabInfo.getID());\n assertEquals(collabs.iterator().hasNext(), true);\n colInfo = collabIterator.next();\n assertEquals(colInfo.getID(), collabInfo.getID());\n assertEquals(collabs.iterator().hasNext(), false);\n assertEquals(2, numCollabs);\n uploadedFile.delete();\n}\n"
"public <Q extends Quantity> Unit<Q> toContextualUnit(final Unit<Q> unit) {\n if (unit != null) {\n final Unit<Q> candidate = (Unit<Q>) units.get(unit.toSI());\n if (candidate != null) {\n return candidate;\n }\n }\n return unit;\n}\n"
"private void checkParameters() {\n boolean checkColumnExist = false;\n IMetadataTable metadataTable = null;\n List<IMetadataTable> tables = getMetadataList();\n if (tables != null && tables.size() == 1) {\n metadataTable = tables.get(0);\n checkColumnExist = true;\n }\n boolean checkPreColumnExist = false;\n IMetadataTable preMetadataTable = null;\n int preTableCount = 0;\n List<? extends IConnection> incomingConnections = getIncomingConnections();\n if (incomingConnections != null && incomingConnections.size() > 0) {\n for (IConnection incomingConnection : incomingConnections) {\n if (incomingConnection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {\n IMetadataTable schemaTable = incomingConnection.getMetadataTable();\n if (schemaTable != null) {\n ++preTableCount;\n if (preTableCount > 1) {\n break;\n }\n preMetadataTable = schemaTable;\n }\n }\n }\n }\n if (preTableCount == 1) {\n checkPreColumnExist = true;\n }\n List<String> currentColumns = new ArrayList<String>();\n if (checkColumnExist) {\n currentColumns = getColumnLabels(metadataTable);\n }\n List<String> preColumns = new ArrayList<String>();\n if (checkPreColumnExist) {\n preColumns = getColumnLabels(preMetadataTable);\n }\n for (IElementParameter param : this.getElementParametersWithChildrens()) {\n if (param.getMaxlength() > 0) {\n String paramValue = param.getValue().toString();\n paramValue.length();\n String tmpValue;\n if (paramValue.startsWith(\"String_Node_Str\") && paramValue.endsWith(\"String_Node_Str\")) {\n tmpValue = paramValue.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n continue;\n }\n String factor = \"String_Node_Str\";\n Pattern pattern = Pattern.compile(factor);\n Matcher matcher = pattern.matcher(tmpValue);\n int lenth = 0;\n matcher.groupCount();\n while (matcher.find()) {\n lenth++;\n }\n String last = tmpValue.replaceAll(factor, \"String_Node_Str\");\n last = last.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n int realLength = last.length() + lenth;\n if (realLength > param.getMaxlength()) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName(), param.getMaxlength());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n if (param.getFieldType() == EParameterFieldType.CLOSED_LIST) {\n String showIf = param.getShowIf();\n String notShowIf = param.getNotShowIf();\n IElementParameter dbTypeEle = this.getElementParameter(\"String_Node_Str\");\n if (dbTypeEle != null && showIf != null && notShowIf == null) {\n String dbType = (String) dbTypeEle.getValue();\n boolean show = false;\n if (showIf.contains(dbType)) {\n show = true;\n }\n if (show && !ArrayUtils.contains(param.getListItemsValue(), param.getValue())) {\n Problems.add(ProblemStatus.ERROR, this, \"String_Node_Str\");\n }\n } else if (\"String_Node_Str\".equals(param.getName()) || \"String_Node_Str\".equals(param.getName())) {\n } else {\n if (param.isShow(this.getElementParameters()) && !ArrayUtils.contains(param.getListItemsValue(), param.getValue()) && !param.isDynamicSettings()) {\n Problems.add(ProblemStatus.ERROR, this, \"String_Node_Str\" + param.getDisplayName() + \"String_Node_Str\");\n }\n }\n }\n if (param.getFieldType() == EParameterFieldType.TABLE) {\n Object[] tableItemsValue = param.getListItemsValue();\n List<Map<String, Object>> tableValues = (List<Map<String, Object>>) param.getValue();\n List<String> columnListParamNames = new ArrayList<String>();\n List<String> preColumnListParamNames = new ArrayList<String>();\n if (tableItemsValue != null && tableItemsValue.length > 0) {\n for (Object tabItemValue : tableItemsValue) {\n if (tabItemValue instanceof IElementParameter) {\n IElementParameter itemParameter = (IElementParameter) tabItemValue;\n if (itemParameter.getFieldType() == EParameterFieldType.COLUMN_LIST) {\n columnListParamNames.add(itemParameter.getName());\n }\n if (itemParameter.getFieldType() == EParameterFieldType.PREV_COLUMN_LIST) {\n preColumnListParamNames.add(itemParameter.getName());\n }\n if (itemParameter.getFieldType() == EParameterFieldType.CONTEXT_PARAM_NAME_LIST && tableValues.size() > 0) {\n Object[] itemsValue = itemParameter.getListItemsValue();\n if (itemParameter.getListItemsDisplayName() == null || itemParameter.getListItemsDisplayName().length == 0) {\n itemsValue = getContextParamsFromProcess();\n }\n for (int index = 0; index < tableValues.size(); index++) {\n Map<String, Object> tabMap = tableValues.get(index);\n Object value = tabMap.get(itemParameter.getName());\n if (itemParameter.getListItemsValue() != null && value != null) {\n boolean found = false;\n for (Object o : itemsValue) {\n if (o.equals(value)) {\n found = true;\n break;\n }\n }\n if (!found) {\n String warnMessage = Messages.getString(\"String_Node_Str\", value, index, itemParameter.getDisplayName());\n Problems.add(ProblemStatus.WARNING, this, warnMessage);\n }\n }\n }\n }\n }\n }\n }\n StringBuffer inexistentColumns = new StringBuffer();\n if (tableValues != null) {\n for (Map<String, Object> tabMap : tableValues) {\n int row = tableValues.indexOf(tabMap) + 1;\n if (checkColumnExist) {\n for (String paramName : columnListParamNames) {\n Object columnLineValue = tabMap.get(paramName);\n if (columnLineValue instanceof String && !currentColumns.contains(columnLineValue)) {\n inexistentColumns.append(columnLineValue).append(\"String_Node_Str\" + row + \"String_Node_Str\").append(\"String_Node_Str\");\n }\n }\n }\n if (checkPreColumnExist) {\n for (String paramName : preColumnListParamNames) {\n Object columnLineValue = tabMap.get(paramName);\n if (columnLineValue instanceof String && !preColumns.contains(columnLineValue)) {\n inexistentColumns.append(columnLineValue).append(\"String_Node_Str\" + row + \"String_Node_Str\").append(\"String_Node_Str\");\n }\n }\n }\n Object type = tabMap.get(\"String_Node_Str\");\n if (type != null && type.toString().equals(\"String_Node_Str\")) {\n Object code = tabMap.get(\"String_Node_Str\");\n IMetadataTable metaTable = this.getMetadataTable(code.toString());\n if (metaTable != null) {\n if (metaTable.getListColumns(true).size() > 1) {\n String warnMessage = Messages.getString(\"String_Node_Str\", metaTable.getLabel());\n Problems.add(ProblemStatus.WARNING, this, warnMessage);\n }\n }\n }\n }\n }\n if (inexistentColumns.length() > 0) {\n inexistentColumns.deleteCharAt(inexistentColumns.length() - 1);\n String warnMessage = Messages.getString(\"String_Node_Str\", inexistentColumns.toString(), param.getDisplayName());\n Problems.add(ProblemStatus.WARNING, this, warnMessage);\n }\n }\n if (param.getName().equals(EParameterName.COMMENT.getName())) {\n String infoValue = (String) param.getValue();\n if (infoValue != null && !infoValue.equals(\"String_Node_Str\")) {\n Problems.add(ProblemStatus.INFO, this, infoValue);\n }\n }\n List<IElementParameter> emptyParamList = Collections.emptyList();\n Boolean noConditionOnShow = StringUtils.isEmpty(param.getShowIf()) && StringUtils.isEmpty(param.getNotShowIf());\n if (param.isRequired(getElementParameters()) && !param.isShow(emptyParamList) && noConditionOnShow && this.externalNode != null) {\n if (param.getFieldType().equals(EParameterFieldType.TABLE)) {\n List<Map<String, String>> tableValues = (List<Map<String, String>>) param.getValue();\n if (tableValues != null && \"String_Node_Str\".equalsIgnoreCase(component.getName()) && param.getName().equals(\"String_Node_Str\")) {\n checkFileOutputMSXML(param, tableValues);\n } else if (tableValues != null && \"String_Node_Str\".equalsIgnoreCase(component.getName()) && param.getName().equals(\"String_Node_Str\") && tableValues.size() != 0) {\n if (((Boolean) this.getElementParameter(\"String_Node_Str\").getValue()) == true) {\n List<Map<String, String>> listGroup = (List<Map<String, String>>) externalNode.getElementParameter(\"String_Node_Str\").getValue();\n List<Map<String, String>> listLoop = (List<Map<String, String>>) externalNode.getElementParameter(\"String_Node_Str\").getValue();\n if (listGroup.size() == 0 || listLoop.size() == 0) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n } else {\n if (tableValues == null || tableValues.size() == 0) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n }\n }\n if (param.isRequired() && param.isShow(getElementParameters())) {\n EParameterFieldType fieldType = param.getFieldType();\n String value;\n List multiSchemaDelimetedSeparaor = new ArrayList();\n switch(fieldType) {\n case TABLE:\n List<Map<String, String>> tableValues = (List<Map<String, String>>) param.getValue();\n if (tableValues != null && \"String_Node_Str\".equalsIgnoreCase(component.getName()) && param.getName().equals(\"String_Node_Str\")) {\n checkFileOutputMSXML(param, tableValues);\n } else {\n if (tableValues == null || tableValues.size() == 0) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n } else if (this.getComponent().getName().equals(\"String_Node_Str\")) {\n for (Map<String, String> map : tableValues) {\n if (map != null) {\n if (\"String_Node_Str\".equals(map.get(\"String_Node_Str\")) || map.get(\"String_Node_Str\") == null) {\n Problems.add(ProblemStatus.ERROR, this, Messages.getString(\"String_Node_Str\"));\n }\n }\n }\n }\n }\n break;\n case CHECK:\n break;\n case RADIO:\n break;\n case SCHEMA_TYPE:\n break;\n case SCHEMA_REFERENCE:\n break;\n case DCSCHEMA:\n break;\n case MEMO_SQL:\n String errMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Object value2 = param.getValue();\n if (value2 == null) {\n break;\n }\n String currentQuery = value2.toString();\n if (CorePlugin.getDefault().getPreferenceStore().getBoolean(ITalendCorePrefConstants.SQL_ADD_WARNING)) {\n if (currentQuery.indexOf(COMPARE_STR1) != -1 || currentQuery.indexOf(COMPARE_STR2) != -1) {\n Problems.add(ProblemStatus.WARNING, this, errMessage);\n break;\n }\n if (!NodeQueryCheckUtil.checkQueryOK(this, currentQuery)) {\n Problems.add(ProblemStatus.WARNING, this, errMessage);\n break;\n }\n }\n break;\n case CLOSED_LIST:\n value = (String) param.getValue();\n if (value == null || value.equals(\"String_Node_Str\")) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n } else {\n if (param.getListItemsValue().length != 0) {\n boolean found = false;\n for (int i = 0; i < param.getListItemsValue().length && !found; i++) {\n if (param.getListItemsValue()[i].equals(value)) {\n found = true;\n }\n }\n if (!found) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName(), value);\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n }\n break;\n case COMPONENT_LIST:\n if (param != null) {\n String errorMessage;\n boolean isContextMode = false;\n if (param.getValue() == null || \"String_Node_Str\".equals(param.getValue())) {\n errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n } else {\n errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName(), param.getValue());\n isContextMode = param.isDynamicSettings();\n }\n if (!isContextMode && ((!hasUseExistingConnection(this)) || (isUseExistedConnetion(this)))) {\n List<INode> list = (List<INode>) this.getProcess().getNodesOfType(param.getFilter());\n if (list == null || list.size() == 0 || list.isEmpty()) {\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n } else {\n List<INode> nodeList = new ArrayList<INode>();\n for (INode datanode : list) {\n if (!datanode.isVirtualGenerateNode()) {\n nodeList.add(datanode);\n }\n }\n if (nodeList.size() == 0 || nodeList.isEmpty()) {\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n break;\n }\n boolean foundValue = false;\n for (INode datanode : nodeList) {\n if (datanode.getUniqueName().equals(param.getValue())) {\n foundValue = true;\n break;\n }\n }\n errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n if (!foundValue) {\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n }\n }\n break;\n default:\n if (param.getValue() != null && !(param.getValue() instanceof String)) {\n break;\n }\n value = (String) param.getValue();\n if (value == null || value.equals(\"String_Node_Str\")) {\n if (this.getComponent() != null && \"String_Node_Str\".equals(this.getComponent().getName())) {\n multiSchemaDelimetedSeparaor.add(param);\n if (multiSchemaDelimetedSeparaor.size() == 2) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n } else {\n if (getComponent() != null && \"String_Node_Str\".equals(getComponent().getName())) {\n IElementParameter fromRepository = getElementParameter(\"String_Node_Str\");\n Object isFromRepository = fromRepository.getValue();\n if (isFromRepository != null && \"String_Node_Str\".equals(isFromRepository.toString())) {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n } else {\n }\n } else {\n String errorMessage = Messages.getString(\"String_Node_Str\", param.getDisplayName());\n Problems.add(ProblemStatus.ERROR, this, errorMessage);\n }\n }\n }\n checkDataprepRun(param);\n }\n }\n checkValidationRule(param);\n checktAggregateRow(param);\n }\n checkJobletConnections();\n IElementParameter enableParallelizeParameter = getElementParameter(EParameterName.PARALLELIZE.getName());\n if (enableParallelizeParameter != null && enableParallelizeParameter.getValue() != null) {\n boolean x = (Boolean) enableParallelizeParameter.getValue();\n if (x) {\n addStatus(Process.PARALLEL_STATUS);\n }\n }\n}\n"
"public void findUnits(FileFinder fileFinder) {\n if (!this.includedFiles.isEmpty()) {\n for (String s : this.includedFiles) {\n File source = new File(sourceDir, s);\n File output = new File(outputDir, s);\n Package pack = packageFromFile(s, source.isDirectory());\n fileFinder.process(source, output, pack);\n }\n return;\n }\n fileFinder.findUnits(sourceDir, outputDir, Package.rootPackage);\n}\n"
"private HttpResponseEntity getCursor(String database, String query, Map<String, Object> bindVars, AqlQueryOptions aqlQueryOptions) throws ArangoException {\n Map<String, Object> map = aqlQueryOptions.toMap();\n map.put(\"String_Node_Str\", query);\n map.put(\"String_Node_Str\", bindVars == null ? Collections.emptyMap() : bindVars);\n return httpManager.doPost(createEndpointUrl(database, \"String_Node_Str\"), null, EntityFactory.toJsonString(map));\n}\n"
"void backupIfNextOrPreviousChanged(boolean add) {\n boolean shouldBackup = false;\n if (add) {\n shouldBackup = node.clusterManager.isNextChanged();\n } else {\n shouldBackup = node.clusterManager.isNextChanged() || node.clusterManager.isPreviousChanged();\n }\n if (shouldBackup) {\n List<Record> lsOwnedRecords = new ArrayList<Record>(1000);\n Collection<CMap> cmaps = concurrentMapManager.maps.values();\n for (final CMap cmap : cmaps) {\n for (Record rec : cmap.mapRecords.values()) {\n if (rec.isActive()) {\n if (rec.getKey() == null || rec.getKey().size() == 0) {\n throw new RuntimeException(\"String_Node_Str\" + rec.getKey());\n }\n lsOwnedRecords.add(rec);\n }\n }\n }\n }\n if (!add)\n logger.log(Level.FINEST, thisAddress + \"String_Node_Str\" + lsOwnedRecords.size());\n for (final Record rec : lsOwnedRecords) {\n parallelExecutorBackups.execute(new FallThroughRunnable() {\n\n public void doRun() {\n concurrentMapManager.backupRecord(rec);\n }\n });\n }\n }\n}\n"
"public static Map<String, Class> loadSiddhiExtensions() {\n String classPath = System.getProperty(CLASS_PATH);\n if (classPath == null) {\n classPath = \"String_Node_Str\";\n } else {\n classPath += \"String_Node_Str\";\n }\n String[] classPathElements = classPath.split(\"String_Node_Str\");\n Pattern pattern = Pattern.compile(SIDDHI_EXT);\n Collection<String> extensionsList = new ArrayList<String>();\n for (String element : classPathElements) {\n extensionsList.addAll(getResources(element, pattern));\n }\n Map<String, Class> classMap = new HashMap<String, Class>();\n for (String extension : extensionsList) {\n if (extension.matches(CLASS_EXT)) {\n String[] info = extension.split(\"String_Node_Str\");\n try {\n classMap.put(info[0].trim(), Class.forName(info[1].trim()));\n } catch (ClassNotFoundException e) {\n log.error(\"String_Node_Str\" + info[1].trim(), e);\n }\n }\n }\n return classMap;\n}\n"
"public Object[][] CRAMNoIndexTestData() {\n final Object[][] testFiles = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\" } };\n return testFiles;\n}\n"
"public IGuiItemObject getGuiObject(ItemStack is, World w, int x, int y, int z) {\n return new PortableCellViewer(is, x);\n}\n"
"public void replaceView(ProteusView view) {\n if (view instanceof DataProteusView) {\n DataProteusView dataProteusView = (DataProteusView) view;\n this.bindings = dataProteusView.getBindings();\n }\n super.replaceView(proteusView);\n}\n"
"public void selectionChanged(SelectionChangedEvent event) {\n TreeSelection selection = (TreeSelection) event.getSelection();\n if (selection.size() != 1) {\n return;\n }\n Object selectedElement = selection.getFirstElement();\n if (selectedElement instanceof TdTable || selectedElement instanceof TdView) {\n if (contentProvider == null) {\n contentProvider = (ITreeContentProvider) getCommonViewer().getContentProvider();\n }\n for (Object child : provider.getChildren(selectedElement)) {\n if (child instanceof IFolderNode && ((IFolderNode) child).getFolderNodeType() == ColumnFolderNode.COLUMNFOLDER_NODE_TYPE) {\n ((IFolderNode) child).loadChildren();\n break;\n }\n }\n }\n}\n"
"public void shouldValidateFalseWithoutExpid() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String metadata = \"String_Node_Str\";\n String genomeRelease = \"String_Node_Str\";\n String author = \"String_Node_Str\";\n CommandFactory cmdf = new CommandFactory();\n String json = \"String_Node_Str\" + \"String_Node_Str\" + processtype + \"String_Node_Str\" + \"String_Node_Str\" + parameters + \"String_Node_Str\" + \"String_Node_Str\" + metadata + \"String_Node_Str\" + \"String_Node_Str\" + genomeRelease + \"String_Node_Str\" + \"String_Node_Str\" + author + \"String_Node_Str\";\n ProcessCommand processCommand = (ProcessCommand) cmdf.createProcessCommand(json, username, \"String_Node_Str\");\n assertFalse(processCommand.validate());\n}\n"
"protected double p(String shortUri) {\n int shortUriCount = checkNotNull(occCounts.get(shortUri), \"String_Node_Str\", shortUri);\n double p = (double) shortUriCount / totalEdges;\n if (LOGGER.isTraceEnabled())\n LOGGER.trace(String.format(\"String_Node_Str\", shortUri, shortUriCount, totalEdges, p));\n return p;\n}\n"
"protected void drawHoveringText(List textLines, int screenX, int screenY, FontRenderer fontRenderer) {\n if (isHoveringToken)\n textLines.add(EnumChatFormatting.GREEN + \"String_Node_Str\");\n super.drawHoveringText(textLines, mouseX, mouseY, fontRenderer);\n}\n"
"public void before() {\n try {\n service = createService();\n server.startServer(service);\n } catch (final ODataException e) {\n throw new TestUtilRuntimeException(e);\n }\n}\n"