content
stringlengths
40
137k
"public void makeSitSpecificPlayer(dNPC npc, Player player) {\n try {\n PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(40);\n packet.getSpecificModifier(int.class).write(0, npc.getEntity().getEntityId());\n WrappedDataWatcher watcher = new WrappedDataWatcher();\n watcher.setObject(0, (byte) 4);\n packet.getWatchableCollectionModifier().write(0, watcher.getWatchableObjects());\n if (npc.getEntity().getWorld().equals(player.getWorld())) {\n try {\n ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n } catch (Exception e) {\n dB.echoError(\"String_Node_Str\" + player.getName());\n }\n }\n } catch (Error e) {\n dB.echoError(\"String_Node_Str\");\n }\n}\n"
"public Object getQ3() {\n return doubleToBytes(q3);\n}\n"
"private static List<Module> createPersistentModules(CConfiguration configuration, Configuration hConf, final String webAppPath) {\n configuration.setIfUnset(Constants.CFG_DATA_LEVELDB_DIR, Constants.DEFAULT_DATA_LEVELDB_DIR);\n String environment = configuration.get(Constants.CFG_APPFABRIC_ENVIRONMENT, Constants.DEFAULT_APPFABRIC_ENVIRONMENT);\n if (environment.equals(\"String_Node_Str\")) {\n System.err.println(\"String_Node_Str\" + environment);\n }\n configuration.set(Constants.CFG_DATA_INMEMORY_PERSISTENCE, Constants.InMemoryPersistenceType.LEVELDB.name());\n String passportUri = configuration.get(Constants.Gateway.CFG_PASSPORT_SERVER_URI);\n final PassportClient client = passportUri == null || passportUri.isEmpty() ? new PassportClient() : PassportClient.create(passportUri);\n return ImmutableList.of(new AbstractModule() {\n protected void configure() {\n bind(PassportClient.class).toProvider(new Provider<PassportClient>() {\n public PassportClient get() {\n return client;\n }\n });\n }\n }, new ConfigModule(configuration, hConf), new IOModule(), new MetricsHandlerModule(), new AuthModule(), new DiscoveryRuntimeModule().getStandaloneModules(), new LocationRuntimeModule().getStandaloneModules(), new AppFabricServiceRuntimeModule().getStandaloneModules(), new ProgramRunnerRuntimeModule().getStandaloneModules(), new GatewayModule().getStandaloneModules(), new DataFabricModules().getStandaloneModules(), new DataSetsModules().getLocalModule(), new DataSetServiceModules().getLocalModule(), new MetricsClientRuntimeModule().getStandaloneModules(), new LoggingModules().getStandaloneModules(), new RouterModules().getStandaloneModules(), new SecurityModules().getStandaloneModules(), new StreamServiceRuntimeModule().getStandaloneModules(), new ExploreRuntimeModule().getStandaloneModules(), new ServiceStoreModules().getStandaloneModule(), new ExploreClientModule());\n}\n"
"public void checkLevel(int level) {\n if (!Scene.v().doneResolving())\n return;\n if (resolvingLevel < level) {\n throw new RuntimeException(\"String_Node_Str\" + levelToString(level) + \"String_Node_Str\" + name + \"String_Node_Str\" + levelToString(resolvingLevel));\n }\n}\n"
"public void onMessageReceived(MessageInfo messageInfo) {\n Log.d(TAG, \"String_Node_Str\" + messageInfo.getId() + \"String_Node_Str\" + messageInfo + \"String_Node_Str\");\n if (MessageManager.getInstance().isNotificationType(messageInfo.type)) {\n invalidateOptionsMenu();\n }\n}\n"
"protected ActiveTransition request(T transitionName) throws ExistingTransitionException {\n TransitionHandler<P, S, T> transition = lookupTransition(transitionName);\n TransitionRule<S, T> rule = transition.getRule();\n if (!this.state.compareAndSet(rule.getFromState(), rule.getFromState(), rule.getFromStateMark(), true)) {\n throw new ExistingTransitionException(\"String_Node_Str\" + transitionName + \"String_Node_Str\" + this.toString());\n } else {\n this.currentTransition.set(this.create(rule, transition));\n return this.currentTransition.get();\n }\n}\n"
"protected final IRow getRow() {\n return row;\n}\n"
"private void reconnectModified(boolean pending) {\n if (readOnly || lock == null) {\n return;\n }\n try {\n if (pending == reconnectChangePending) {\n long now = System.currentTimeMillis();\n if (now > reconnectCheckNext) {\n if (pending) {\n String pos = log == null ? null : log.getWritePos();\n lock.setProperty(\"String_Node_Str\", pos);\n lock.save();\n }\n reconnectCheckNext = now + SysProperties.RECONNECT_CHECK_DELAY;\n }\n return;\n }\n if (pending) {\n getTrace().debug(\"String_Node_Str\");\n Thread.sleep((int) (SysProperties.RECONNECT_CHECK_DELAY * 1.1));\n }\n lock.setProperty(\"String_Node_Str\", Long.toString(modificationDataId));\n lock.setProperty(\"String_Node_Str\", Long.toString(modificationMetaId));\n lock.setProperty(\"String_Node_Str\", pending ? \"String_Node_Str\" : null);\n lock.save();\n reconnectLastLock = lock.load();\n reconnectChangePending = pending;\n reconnectCheckNext = System.currentTimeMillis() + SysProperties.RECONNECT_CHECK_DELAY;\n } catch (Exception e) {\n getTrace().error(\"String_Node_Str\" + pending, e);\n }\n}\n"
"public void begin() {\n if (!wal)\n OGlobalConfiguration.USE_WAL.setValue(wal);\n ODatabaseDocumentTx documentDatabase = init();\n if (documentDatabase == null) {\n switch(dbType) {\n case DOCUMENT:\n documentDatabase = new ODatabaseDocumentTx(dbURL);\n documentDatabase.open(dbUser, dbPassword);\n break;\n case GRAPH:\n final OrientGraphFactory factory = new OrientGraphFactory(dbURL, dbUser, dbPassword);\n final OrientBaseGraph graphDatabase = tx ? factory.getTx() : factory.getNoTx();\n graphDatabase.setUseLightweightEdges(useLightweightEdges);\n graphDatabase.setStandardElementConstraints(standardElementConstraints);\n documentDatabase = graphDatabase.getRawGraph();\n pipeline.setGraphDatabase(graphDatabase);\n break;\n }\n pipeline.setDocumentDatabase(documentDatabase);\n }\n documentDatabase.declareIntent(new OIntentMassiveInsert());\n}\n"
"public void setTotal(long total) {\n triggerTotal(total);\n firePropertyChange(Properties.convertedGrossValue.name(), this.convertedGrossValue, this.convertedGrossValue = calculateConvertedGrossValue());\n firePropertyChange(Properties.grossValue.name(), this.grossValue, this.grossValue = Math.round(convertedGrossValue / exchangeRate.doubleValue()));\n if (shares != 0)\n firePropertyChange(Properties.quote.name(), this.quote, this.quote = BigDecimal.valueOf(grossValue * Values.Share.factor() / (shares * Values.Amount.divider())));\n firePropertyChange(Properties.calculationStatus.name(), this.calculationStatus, this.calculationStatus = calculateStatus());\n}\n"
"private void resetAllDeployedStatuses() {\n try {\n this.statusLock.writeLock().lock();\n for (Map.Entry<IPath, Set<PreviewVdbStatus>> entry : this.deploymentStatusMap.entrySet()) {\n for (PreviewVdbStatus status : entry.getValue()) {\n status.setDeploy(true);\n }\n }\n } finally {\n this.statusLock.writeLock().unlock();\n }\n}\n"
"public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\").append(this.lookupComponentId().name()).append(\"String_Node_Str\");\n try {\n builder.append(this.getFullName().toString()).append(\"String_Node_Str\").append(this.hostName).append(\"String_Node_Str\").append(this.port).append(\"String_Node_Str\").append(this.servicePath).append(\"String_Node_Str\");\n } catch (Exception ex) {\n builder.append(this.partition).append(\"String_Node_Str\").append(this.name).append(\"String_Node_Str\").append(this.hostName).append(\"String_Node_Str\").append(this.port).append(\"String_Node_Str\").append(this.servicePath).append(\"String_Node_Str\");\n }\n if (this.isVmLocal()) {\n builder.append(\"String_Node_Str\");\n }\n if (this.isHostLocal()) {\n builder.append(\"String_Node_Str\");\n }\n builder.append(this.lookupState());\n return builder.toString();\n}\n"
"private String loadMessageId() {\n try {\n return Transactions.execute(transactional, new TxCallable<String>() {\n public String call(DatasetContext context) throws Exception {\n return jobQueue.retrieveSubscriberState(topic);\n }\n });\n}\n"
"public static String jmpWrapper(Statement stat, int indent, boolean semicolon, BytecodeMappingTracer tracer) {\n StringBuilder buf = new StringBuilder(stat.toJava(indent, tracer));\n String new_line_separator = DecompilerContext.getNewLineSeparator();\n List<StatEdge> lstSuccs = stat.getSuccessorEdges(Statement.STATEDGE_DIRECT_ALL);\n if (lstSuccs.size() == 1) {\n StatEdge edge = lstSuccs.get(0);\n if (edge.getType() != StatEdge.TYPE_REGULAR && edge.explicit && edge.getDestination().type != Statement.TYPE_DUMMYEXIT) {\n buf.append(InterpreterUtil.getIndentString(indent));\n switch(edge.getType()) {\n case StatEdge.TYPE_BREAK:\n buf.append(\"String_Node_Str\");\n break;\n case StatEdge.TYPE_CONTINUE:\n buf.append(\"String_Node_Str\");\n }\n if (edge.labeled) {\n buf.append(\"String_Node_Str\").append(edge.closure.id);\n }\n buf.append(\"String_Node_Str\").append(new_line_separator);\n tracer.incrementCurrentSourceLine();\n }\n }\n if (buf.length() == 0 && semicolon) {\n buf.append(InterpreterUtil.getIndentString(indent)).append(\"String_Node_Str\").append(new_line_separator);\n tracer.incrementSourceLine();\n }\n return buf.toString();\n}\n"
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n if (permanent != null) {\n Zone currentZone = game.getState().getZone(permanent.getId());\n if (!currentZone.equals(Zone.EXILED) && (onlyFromZone == null || onlyFromZone.equals(Zone.BATTLEFIELD))) {\n return controller.moveCardToExileWithInfo(permanent, exileId, exileZone, source.getSourceId(), game, onlyFromZone);\n }\n } else {\n Card card = game.getCard(targetPointer.getFirst(game, source));\n if (card != null) {\n Zone currentZone = game.getState().getZone(card.getId());\n if (!currentZone.equals(Zone.EXILED) && (onlyFromZone == null || onlyFromZone.equals(currentZone))) {\n return controller.moveCardToExileWithInfo(card, exileId, exileZone, source.getSourceId(), game, onlyFromZone);\n }\n }\n }\n }\n return false;\n}\n"
"public static CheckpointMode getCheckpointMode() {\n if (CHECKPOINT_MODE == null) {\n final String mode = GlobalConfiguration.getString(\"String_Node_Str\", \"String_Node_Str\").toLowerCase();\n if (\"String_Node_Str\".equals(mode)) {\n CHECKPOINT_MODE = CheckpointMode.ALWAYS;\n } else if (\"String_Node_Str\".equals(mode)) {\n CHECKPOINT_MODE = CheckpointMode.NETWORK;\n } else if (\"String_Node_Str\".equals(mode)) {\n CHECKPOINT_MODE = CheckpointMode.DYNAMIC;\n } else {\n CHECKPOINT_MODE = CheckpointMode.NEVER;\n }\n }\n return CHECKPOINT_MODE;\n}\n"
"protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {\n return Util.makeMainEntrypoints(JavaSourceAnalysisScope.SOURCE, cha, mainClassDescriptors);\n}\n"
"public void rcClickFigure(String textPath, String operator, int count, int button) {\n IFigure figure = FigureCanvasUtil.findFigure(findEditPart(textPath, operator));\n if (figure == null) {\n getRobot().click(getViewerControl(), getFigureBoundsChecked(textPath, operator), ClickOptions.create().setScrollToVisible(false).setClickCount(count).setMouseButton(button));\n return;\n }\n clickFigure(count, button, figure);\n}\n"
"private void importDatabases(boolean failOnError) throws Exception {\n List<String> databases = hiveClient.getAllDatabases();\n for (String databaseName : databases) {\n Referenceable dbReference = registerDatabase(databaseName);\n if (dbReference != null) {\n importTables(dbReference, databaseName, failOnError);\n }\n }\n}\n"
"public static void createJwtSSOToken(Subject subject) {\n if (jwtSSOTokenProxyRef.getService() != null) {\n try {\n jwtSSOTokenProxyRef.getService().createJwtSSOToken(subject);\n } catch (WSSecurityException e) {\n String msg = Tr.formatMessage(tc, \"String_Node_Str\");\n Tr.warning(tc, msg);\n }\n }\n}\n"
"protected void preRenderScale(EntityChocobo entitychocobo, float f) {\n float scaleFactor = 0.8F;\n GL11.glScalef(scaleFactor, scaleFactor, scaleFactor);\n if (entitychocobo.riddenByEntity != null) {\n GL11.glTranslated(0.5, 0.0, -0.5);\n }\n}\n"
"protected int getBucket(Object[] row) {\n if (row == null || row.length == 0) {\n return 0;\n } else {\n return Math.abs(row[0].hashCode()) % this.numBuckets;\n }\n}\n"
"public static void addPaintings() {\n PaintingIgnore.ignoreVanillaPaintings();\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 23; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 23)), 16, 16, 16 * (x - 1), 16 * y);\n i++;\n }\n }\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 3; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 23)), 32, 16, 384 + (32 * x), 16 * y);\n i++;\n }\n }\n for (int x = 1; x <= 16; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + 6), 32, 16, 32 * (x - 1), 32);\n i++;\n }\n for (int y = 0; y <= 3; y++) {\n for (int x = 1; x <= 16; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 16)), 32, 32, 32 * (x - 1), 48 + (32 * y));\n i++;\n }\n }\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 5; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 5)), 16, 32, 16 * (x - 1), 176 + (32 * y));\n i++;\n }\n }\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 9; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 9)), 48, 32, 32 + (48 * x), 176 + (32 * y));\n i++;\n }\n }\n for (int x = 1; x <= 16; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 32, 48, 32 * (x - 1), 240);\n i++;\n }\n for (int x = 1; x <= 6; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 32, 64, 32 * (x - 1), 288);\n i++;\n }\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 5; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 5)), 64, 32, 128 + (64 * x), 288 + (32 * y));\n i++;\n }\n }\n for (int x = 1; x <= 5; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 16, 48, 16 * (x - 1), 352);\n i++;\n }\n for (int x = 1; x <= 9; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 48, 48, 32 + (48 * x), 352);\n i++;\n }\n for (int x = 1; x <= 8; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 64, 48, 64 * (x - 1), 400);\n i++;\n }\n for (int x = 1; x <= 8; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x), 64, 64, 64 * (x - 1), 488);\n i++;\n }\n}\n"
"public synchronized boolean updateKubernetesHost(KubernetesHost kubernetesHost) throws InvalidKubernetesHostException, NonExistingKubernetesHostException {\n validateKubernetesHost(kubernetesHost);\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + kubernetesHost);\n }\n try {\n KubernetesGroup kubernetesGroupStored = getKubernetesGroupContainingHost(kubernetesHost.getHostId());\n for (int i = 0; i < kubernetesGroupStored.getKubernetesHosts().length; i++) {\n if (kubernetesGroupStored.getKubernetesHosts()[i].getHostId().equals(kubernetesHost.getHostId())) {\n KubernetesGroup clonedObj = SerializationUtils.clone(kubernetesGroupStored);\n clonedObj.getKubernetesHosts()[i] = kubernetesHost;\n RegistryManager.getInstance().persistKubernetesGroup(clonedObj);\n kubernetesGroupStored.getKubernetesHosts()[i] = kubernetesHost;\n if (log.isInfoEnabled()) {\n log.info(String.format(\"String_Node_Str\", kubernetesHost.getHostId()));\n }\n return true;\n }\n }\n } catch (Exception e) {\n throw new InvalidKubernetesHostException(e.getMessage(), e);\n }\n throw new NonExistingKubernetesHostException(\"String_Node_Str\" + kubernetesHost.getHostId());\n}\n"
"public void testWriteProperties() throws Exception {\n openDesign(\"String_Node_Str\");\n image = findImageItemByName(\"String_Node_Str\");\n handle = image.handle(design);\n handle.setProportionalScale(false);\n image = findImageItemByName(\"String_Node_Str\");\n handle = image.handle(design);\n handle.setName(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", handle.getName());\n handle.setSize(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE);\n assertTrue(handle.getSize().compareToIgnoreCase(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE) == 0);\n handle.setScale(4.0f);\n assertTrue(4.0 == handle.getScale());\n handle.setImageName(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", handle.getImageName());\n image = findImageItemByName(\"String_Node_Str\");\n handle.setTypeExpression(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", handle.getTypeExpression());\n handle.setValueExpression(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", handle.getValueExpression());\n image = findImageItemByName(\"String_Node_Str\");\n handle = image.handle(design);\n handle.setImageName(\"String_Node_Str\");\n handle.setBookmark(\"String_Node_Str\");\n ActionHandle actionHandle = handle.getActionHandle();\n actionHandle.setURI(\"String_Node_Str\");\n handle.setHelpText(\"String_Node_Str\");\n handle.setHelpTextKey(\"String_Node_Str\");\n handle.setFitToContainer(false);\n handle.setTagType(\"String_Node_Str\");\n handle.setLanguage(\"String_Node_Str\");\n handle.setOrder(1);\n save();\n assertTrue(compareFile(\"String_Node_Str\"));\n}\n"
"private void checkOverride(MarkerList markers, IContext context) {\n if (this.overrideMethods == null) {\n if ((this.modifiers & Modifiers.OVERRIDE) != 0) {\n markers.add(I18n.createMarker(this.position, \"String_Node_Str\", this.name));\n }\n return;\n }\n if ((this.modifiers & Modifiers.OVERRIDE) == 0) {\n markers.add(I18n.createMarker(this.position, \"String_Node_Str\", this.name));\n }\n for (IMethod m : this.overrideMethods) {\n if (m.hasModifier(Modifiers.FINAL)) {\n markers.add(I18n.createMarker(this.position, \"String_Node_Str\", this.name));\n }\n IType type = m.getType().getConcreteType(this.theClass.getType());\n if (type != this.type && !type.isSuperTypeOf(this.type)) {\n Marker marker = I18n.createMarker(this.position, \"String_Node_Str\", this.name);\n marker.addInfo(\"String_Node_Str\" + this.type);\n marker.addInfo(\"String_Node_Str\" + type);\n markers.add(marker);\n }\n }\n}\n"
"public void buildGraph(GProtocolName fullname, Role role) throws ScribbleException {\n debugPrintPass(\"String_Node_Str\" + EndpointGraphBuilder.class + \"String_Node_Str\" + fullname + \"String_Node_Str\" + role);\n Module proj = this.jcontext.getProjection(fullname, role);\n if (proj == null) {\n throw new ScribbleException(\"String_Node_Str\" + fullname);\n }\n proj.accept(new EndpointGraphBuilder(this));\n}\n"
"public Project getTopLinkProject() {\n return getXMLHelperDelegate().getTopLinkProject();\n}\n"
"public void configure() {\n SchemaConfiguration classDescriptor = entity.getSchemaClass().getDescriptor();\n XmlFieldAnnotation parentDescriptor = null;\n if (classDescriptor != null && classDescriptor.getType() != null && classDescriptor.getType().getFields() != null) {\n parentDescriptor = classDescriptor.getType().getField(name);\n }\n FeatureLoader.loadFieldFeatures(this, parentDescriptor);\n for (Aspect aspect : Roma.aspects()) {\n aspect.configField(this);\n }\n if (parentDescriptor != null && parentDescriptor.getEvents() != null) {\n Set<XmlEventAnnotation> events = parentDescriptor.getEvents();\n for (XmlEventAnnotation xmlConfigEventType : events) {\n SchemaEventReflection eventInfo = (SchemaEventReflection) getEvent(xmlConfigEventType.getName());\n if (eventInfo == null) {\n eventInfo = new SchemaEventReflection(this, xmlConfigEventType.getName(), new ArrayList<SchemaParameter>());\n setEvent(xmlConfigEventType.getName(), eventInfo);\n }\n eventInfo.configure();\n }\n }\n}\n"
"public boolean hasPrimaryClip() {\n try {\n return getService().hasPrimaryClip(mContext.getOpPackageName());\n } catch (RemoteException e) {\n return false;\n }\n}\n"
"private void createAnalyzedColumnSetsSection(String mainTitle, String description) {\n columnsComparisonSection = masterPage.createSection(form, parentComp, mainTitle, description);\n Composite sectionClient = toolkit.createComposite(columnsComparisonSection);\n sectionClient.setLayout(new GridLayout());\n if (showCheckButton) {\n checkComputeButton = new Button(sectionClient, SWT.CHECK);\n GridData layoutData = new GridData(GridData.FILL_BOTH);\n layoutData.horizontalAlignment = SWT.CENTER;\n checkComputeButton.setLayoutData(layoutData);\n checkComputeButton.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n checkComputeButton.setToolTipText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n checkComputeButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n masterPage.setDirty(true);\n }\n });\n checkComputeButton.setSelection(checkComputButton);\n }\n Composite columnComp = toolkit.createComposite(sectionClient);\n columnComp.setLayoutData(new GridData(GridData.FILL_BOTH));\n columnComp.setLayout(new GridLayout());\n Composite compareToplevelComp = toolkit.createComposite(columnComp);\n GridLayout compareToplevelLayout = new GridLayout();\n compareToplevelLayout.numColumns = 2;\n compareToplevelComp.setLayout(compareToplevelLayout);\n masterPage.createConnBindWidget(compareToplevelComp);\n columnReverseButtion = new Button(compareToplevelComp, SWT.NONE);\n columnReverseButtion.setText(\"String_Node_Str\");\n columnReverseButtion.addMouseListener(new MouseListener() {\n public void mouseDoubleClick(MouseEvent e) {\n }\n public void mouseDown(MouseEvent e) {\n handleColumnReverseAction();\n }\n public void mouseUp(MouseEvent e) {\n }\n });\n columnReverseButtion.addKeyListener(new KeyListener() {\n public void keyPressed(KeyEvent e) {\n if (e.keyCode == 13) {\n handleColumnReverseAction();\n }\n }\n public void keyReleased(KeyEvent e) {\n }\n });\n }\n SashForm sashForm = new SashForm(sectionClient, SWT.NULL);\n sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));\n String hyperlinkTextLeft = null;\n String hyperlinkTextRight = null;\n if (masterPage instanceof ColumnDependencyMasterDetailsPage) {\n hyperlinkTextLeft = DefaultMessagesImpl.getString(\"String_Node_Str\");\n hyperlinkTextRight = DefaultMessagesImpl.getString(\"String_Node_Str\");\n } else {\n hyperlinkTextLeft = DefaultMessagesImpl.getString(\"String_Node_Str\");\n hyperlinkTextRight = DefaultMessagesImpl.getString(\"String_Node_Str\");\n }\n Composite leftComp = toolkit.createComposite(sashForm);\n leftComp.setLayoutData(new GridData(GridData.FILL_BOTH));\n leftComp.setLayout(new GridLayout());\n leftTable = this.createSectionPart(leftComp, columnListA, DefaultMessagesImpl.getString(\"String_Node_Str\"), hyperlinkTextLeft);\n Composite rightComp = toolkit.createComposite(sashForm);\n rightComp.setLayoutData(new GridData(GridData.FILL_BOTH));\n rightComp.setLayout(new GridLayout());\n rightTable = this.createSectionPart(rightComp, columnListB, DefaultMessagesImpl.getString(\"String_Node_Str\"), hyperlinkTextRight);\n updateBindConnection(masterPage, tableViewerPosStack);\n columnsComparisonSection.setClient(sectionClient);\n}\n"
"public boolean isMetBy(GlobalProperties other) {\n if (this.partitioning != PartitionProperty.NONE) {\n if (this.partitioning == PartitionProperty.ANY) {\n if (other.partitioning == PartitionProperty.NONE) {\n return false;\n }\n } else if (other.partitioning != this.partitioning) {\n return false;\n }\n }\n FieldSet otherPartitionedFields = other.getPartitionedFiels();\n if (this.partitionedFields != null) {\n if (other.partitionedFields == null) {\n return false;\n }\n if (this.partitionedFields.size() > otherPartitionedFields.size()) {\n return false;\n }\n for (Integer fieldIndex : this.partitionedFields) {\n if (otherPartitionedFields.contains(fieldIndex) == false) {\n return false;\n }\n }\n }\n return (this.ordering == null || this.ordering.isMetBy(other.getOrdering()));\n}\n"
"public static void setup() throws Exception {\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.CFG_LOCAL_DATA_DIR, TMP_FOLDER.newFolder().getAbsolutePath());\n cConf.setBoolean(Constants.Security.ENABLED, true);\n cConf.setBoolean(Constants.Security.KERBEROS_ENABLED, false);\n cConf.setBoolean(Constants.Security.Authorization.ENABLED, true);\n cConf.setBoolean(Constants.Security.Authorization.CACHE_ENABLED, false);\n Location deploymentJar = AppJarHelper.createDeploymentJar(new LocalLocationFactory(TMP_FOLDER.newFolder()), InMemoryAuthorizer.class);\n cConf.set(Constants.Security.Authorization.EXTENSION_JAR_PATH, deploymentJar.toURI().getPath());\n cConf.set(Constants.Security.Authorization.ADMIN_USERS, ADMIN_USER.getName());\n instanceId = new InstanceId(cConf.get(Constants.INSTANCE_NAME));\n File systemArtifactsDir = TMP_FOLDER.newFolder();\n cConf.set(Constants.AppFabric.SYSTEM_ARTIFACTS_DIR, systemArtifactsDir.getAbsolutePath());\n createSystemArtifact(systemArtifactsDir);\n Injector injector = Guice.createInjector(new AppFabricTestModule(cConf));\n defaultNamespaceEnsurer = injector.getInstance(DefaultNamespaceEnsurer.class);\n discoveryServiceClient = injector.getInstance(DiscoveryServiceClient.class);\n txManager = injector.getInstance(TransactionManager.class);\n datasetService = injector.getInstance(DatasetService.class);\n authorizationEnforcementService = injector.getInstance(AuthorizationEnforcementService.class);\n authorizationEnforcementService.startAndWait();\n systemArtifactLoader = injector.getInstance(SystemArtifactLoader.class);\n authorizationBootstrapper = injector.getInstance(AuthorizationBootstrapper.class);\n namespaceQueryAdmin = injector.getInstance(NamespaceQueryAdmin.class);\n namespaceAdmin = injector.getInstance(NamespaceAdmin.class);\n artifactRepository = injector.getInstance(ArtifactRepository.class);\n dsFramework = injector.getInstance(DatasetFramework.class);\n}\n"
"protected boolean doValidateParameters() throws ParameterValidationException {\n usingParameterValues();\n if (log.isLoggable(Level.FINE)) {\n loggerParamters();\n }\n ParameterValidationVisitor pv = new ParameterValidationVisitor();\n boolean result = pv.visit(executionContext.getDesign(), null);\n if (pv.engineException != null) {\n throw pv.engineException;\n }\n return result;\n}\n"
"private JRadioButton getGroupRadioButton() {\n if (groupRadioButton == null) {\n groupRadioButton = new JRadioButton();\n groupRadioButton.addActionListener(this);\n groupRadioButton.setActionCommand(GROUP_ACTION);\n groupRadioButton.setText(ResourceUtil.getString(type + \"String_Node_Str\"));\n groupRadioButton.setFont(new Font(\"String_Node_Str\", Font.PLAIN, 12));\n if (accessRule != null) {\n if (accessRule.getGroup() != null) {\n groupRadioButton.setSelected(true);\n }\n } else {\n groupRadioButton.setSelected(true);\n }\n }\n return groupRadioButton;\n}\n"
"public void shouldParse_1() {\n String in = \"String_Node_Str\";\n List<AnalysisResult> results = getAnalyzer(\"String_Node_Str\").analyze(in);\n printAndSort(in, results);\n Assert.assertEquals(1, results.size());\n AnalysisResult first = results.get(0);\n Assert.assertEquals(\"String_Node_Str\", first.getDictionaryItem().id);\n Assert.assertEquals(\"String_Node_Str\", first.root);\n Assert.assertTrue(containsMorpheme(first, \"String_Node_Str\"));\n}\n"
"public void endList(IListContent list) {\n engine.endTable(list);\n}\n"
"public int available() {\n return count - pos + offsetStart;\n}\n"
"public EbicsCertificate updateCertificate(X509Certificate certificate, EbicsCertificate cert) throws CertificateEncodingException, IOException {\n String sha = DigestUtils.sha256Hex(certificate.getEncoded());\n log.debug(\"String_Node_Str\", sha);\n log.debug(\"String_Node_Str\", new String(certificate.getEncoded()));\n log.debug(\"String_Node_Str\", certificate.getEncoded().length);\n cert.setValidFrom(new LocalDate(certificate.getNotBefore()));\n cert.setValidTo(new LocalDate(certificate.getNotAfter()));\n cert.setIssuer(certificate.getIssuerDN().getName());\n cert.setSubject(certificate.getSubjectDN().getName());\n cert.setCertificate(certificate.getEncoded());\n RSAPublicKey publicKey = (RSAPublicKey) certificate.getPublicKey();\n cert.setPublicKeyExponent(publicKey.getPublicExponent().toString(16));\n cert.setPublicKeyModulus(publicKey.getModulus().toString(16));\n cert.setSerial(certificate.getSerialNumber().toString(16));\n cert.setPemString(convertToPEMString(certificate));\n if (cleanPrivateKey) {\n cert.setPrivateKey(null);\n }\n sha = sha.toUpperCase();\n cert.setSha2has(sha);\n computeFullName(cert);\n return cert;\n}\n"
"public void OnMotionEvent_Release(Bubble sender, Bubble.ReleaseEvent e) {\n sender.clearTargetPos();\n if (mDidMove) {\n Canvas.TargetInfo ti = mTouchBubble.getTargetInfo(mCanvas, sender.getXPos(), sender.getYPos());\n if (ti.mAction == Config.BubbleAction.None) {\n float v = (float) Math.sqrt(e.vx * e.vx + e.vy * e.vy);\n float threshold = Config.dpToPx(900.0f);\n if (v > threshold) {\n MainController.STATE_Flick.init(sender, e.vx, e.vy, true);\n MainController.switchState(MainController.STATE_Flick);\n } else {\n MainController.STATE_SnapToEdge.init(sender);\n MainController.switchState(MainController.STATE_SnapToEdge);\n }\n } else {\n if (MainController.destroyBubble(mTouchBubble, ti.mAction)) {\n MainController.STATE_AnimateToContentView.init(MainController.getBubble(MainController.getBubbleCount() - 1));\n MainController.switchState(MainController.STATE_AnimateToContentView);\n } else {\n MainController.switchState(MainController.STATE_BubbleView);\n }\n }\n } else if (mActiveBubble != sender) {\n mActiveBubble = sender;\n mCanvas.setContentView(mActiveBubble.getContentView());\n mCanvas.showContentView();\n mCanvas.setContentViewTranslation(0.0f);\n } else {\n MainController.switchState(MainController.STATE_AnimateToBubbleView);\n }\n mTouchBubble = null;\n}\n"
"private boolean skipLimit(Position position, Position last) {\n if (skipLimit != 0 && last != null) {\n return (position.getServerTime().getTime() - last.getServerTime().getTime()) > skipLimit;\n }\n return false;\n}\n"
"public void testSendMail() throws Exception {\n SimpleMailMessage simpleMailMessage = new SimpleMailMessage();\n simpleMailMessage.setFrom(this.senderAddress);\n simpleMailMessage.setTo(this.recipientAddress);\n simpleMailMessage.setSubject(\"String_Node_Str\");\n simpleMailMessage.setText(\"String_Node_Str\");\n this.mailSender.send(simpleMailMessage);\n}\n"
"public void accept(int hash, int pos) {\n final NativeBytes entry = entry(offsetFromPos(pos));\n long keyLen = entry.readStopBit();\n entry.skip(keyLen);\n final long entryTimestamp = entry.readLong();\n if (entryTimestamp >= timeStamp && entry.readByte() == VanillaSharedReplicatedHashMap.this.getIdentifier())\n entryModifiableCallback.set(index, pos);\n}\n"
"public boolean onTrackballEvent(MotionEvent ev) {\n L(\"String_Node_Str\", ev);\n switch(ev.getAction()) {\n case MotionEvent.ACTION_DOWN:\n poke();\n return true;\n case MotionEvent.ACTION_UP:\n unpoke();\n return true;\n }\n return false;\n}\n"
"protected void initializeScriptContext(Context cx, Scriptable scope) {\n WrapFactory factory = new WrapFactory() {\n\n protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper();\n public Object wrap(Context cx, Scriptable scope, Object obj, Class staticType) {\n Object object = coreWrapper.wrap(cx, scope, obj, staticType);\n if (object != obj) {\n return object;\n }\n return super.wrap(cx, scope, obj, staticType);\n }\n });\n new CoreJavaScriptInitializer().initialize(cx, scope);\n}\n"
"public RowKey readObject(ObjectInput input) throws IOException, ClassNotFoundException {\n input.readInt();\n String tableName = input.readUTF();\n String[] columnNames = (String[]) input.readObject();\n Object[] values = (Object[]) input.readObject();\n return new RowKey(tableName, columnNames, values, null);\n}\n"
"public void onClick(View button) {\n if (!button.isEnabled())\n return;\n switch(button.getId()) {\n case R.id.recordButton:\n mRemainingTimeCalculator.reset();\n if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n mSampleInterrupted = true;\n mErrorUiMessage = getResources().getString(R.string.insert_sd_card);\n updateUi();\n } else if (!mRemainingTimeCalculator.diskSpaceAvailable()) {\n mSampleInterrupted = true;\n mErrorUiMessage = getResources().getString(R.string.storage_is_full);\n updateUi();\n } else {\n stopAudioPlayback();\n if (AUDIO_AMR.equals(mRequestedType)) {\n mRemainingTimeCalculator.setBitRate(BITRATE_AMR);\n mRecorder.startRecording(MediaRecorder.OutputFormat.AMR_NB, \"String_Node_Str\", this);\n } else if (AUDIO_3GPP.equals(mRequestedType)) {\n mRemainingTimeCalculator.setBitRate(BITRATE_3GPP);\n mRecorder.startRecording(MediaRecorder.OutputFormat.THREE_GPP, \"String_Node_Str\");\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (mMaxFileSize != -1) {\n mRemainingTimeCalculator.setFileSizeLimit(mRecorder.sampleFile(), mMaxFileSize);\n }\n }\n break;\n case R.id.playButton:\n mRecorder.startPlayback();\n break;\n case R.id.stopButton:\n mRecorder.stop();\n break;\n case R.id.acceptButton:\n mRecorder.stop();\n saveSample();\n finish();\n break;\n case R.id.discardButton:\n mRecorder.delete();\n finish();\n break;\n }\n}\n"
"public synchronized void init() {\n connsMap = new HashMap<String, IConnection>();\n shadowConnsMap = new HashMap<String, IConnection[]>();\n jobletNonShadowConnsMap = new HashMap<String, IConnection[]>();\n if (process != null) {\n Set<IConnection> allShadowConnections = new HashSet<IConnection>();\n Iterator<? extends INode> nodeIterator = process.getGraphicalNodes().iterator();\n while (nodeIterator.hasNext()) {\n INode node = nodeIterator.next();\n if (node.isActivate()) {\n Iterator<? extends IConnection> connIterator = node.getOutgoingConnections().iterator();\n while (connIterator.hasNext()) {\n IConnection conn = connIterator.next();\n String connectionUnifiedName = ConnectionUtil.getConnectionUnifiedName(conn);\n if (isUniqueNameConnection(conn) && !connsMap.containsKey(connectionUnifiedName)) {\n connsMap.put(connectionUnifiedName, conn);\n IConnection[] shadowConnections = getShadowConnections(conn);\n if (shadowConnections != null) {\n shadowConnsMap.put(connectionUnifiedName, shadowConnections);\n allShadowConnections.addAll(Arrays.asList(shadowConnections));\n }\n }\n }\n if (jobletService != null && jobletService.isJobletComponent(node)) {\n IConnection[] jobletConnections = jobletService.getNonShadowDataConnections(node);\n if (jobletConnections != null) {\n jobletNonShadowConnsMap.put(node.getUniqueName(), jobletConnections);\n for (IConnection conn : jobletConnections) {\n if (!allShadowConnections.contains(conn)) {\n String jobletConnUnifiedName = ConnectionUtil.getConnectionUnifiedName(conn);\n connsMap.put(jobletConnUnifiedName, conn);\n IConnection[] shadowConnections = getShadowConnections(conn);\n if (shadowConnections != null) {\n shadowConnsMap.put(jobletConnUnifiedName, shadowConnections);\n allShadowConnections.addAll(Arrays.asList(shadowConnections));\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"
"public void saveAttributes(HashMap<String, String> attributes) {\n StringBuilder sb = new StringBuilder();\n int size = attributes.size();\n if (attributes.containsKey(\"String_Node_Str\")) {\n --size;\n }\n sb.append(size + \"String_Node_Str\");\n for (Map.Entry<String, String> iter : attributes.entrySet()) {\n String key = iter.getKey();\n if (key.equals(\"String_Node_Str\")) {\n continue;\n }\n String val = attributes.get(key);\n sb.append(key + \"String_Node_Str\");\n sb.append(val.length() + \"String_Node_Str\");\n sb.append(val);\n }\n String s = sb.toString();\n saveAttributesNative(mFilename, s);\n commitChangesNative(mFilename);\n mSavedAttributes = true;\n}\n"
"private void onNativeBondStateChanged_private(int previousState, int newState) {\n if (newState == BluetoothDevice.ERROR) {\n P_TaskQueue queue = m_device.getTaskQueue();\n queue.fail(P_Task_Bond.class, m_device);\n queue.fail(P_Task_Unbond.class, m_device);\n } else if (newState == BluetoothDevice.BOND_NONE) {\n m_queue.fail(P_Task_Bond.class, m_device);\n if (!m_queue.succeed(P_Task_Unbond.class, m_device)) {\n m_device.onNativeUnbond();\n }\n } else if (newState == BluetoothDevice.BOND_BONDING) {\n m_device.onNativeBonding();\n if (!m_queue.isCurrent(P_Task_Bond.class, m_device)) {\n m_queue.add(new P_Task_Bond(m_device, false, false, m_taskStateListener, PE_TaskPriority.FOR_IMPLICIT_BONDING_AND_CONNECTING));\n }\n m_queue.fail(P_Task_Unbond.class, m_device);\n } else if (newState == BluetoothDevice.BOND_BONDED) {\n m_queue.fail(P_Task_Unbond.class, m_device);\n if (!m_queue.succeed(P_Task_Bond.class, m_device)) {\n m_device.onNativeBond();\n }\n }\n}\n"
"public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {\n if (pendingCallToConstructorOfSameClass) {\n if (opcode == INVOKESPECIAL && \"String_Node_Str\".equals(name) && owner.equals(classDesc)) {\n mw.visitMethodInsn(opcode, owner, name, desc, itf);\n pendingCallToConstructorOfSameClass = false;\n }\n } else if (callToAnotherConstructorAlreadyDisregarded || opcode != INVOKESPECIAL || !\"String_Node_Str\".equals(name) || !owner.equals(superClassName) && !owner.equals(classDesc)) {\n mw.visitMethodInsn(opcode, owner, name, desc, itf);\n } else {\n mw.visitInsn(POP);\n callToAnotherConstructorAlreadyDisregarded = true;\n }\n}\n"
"public String toString() {\n if (null != getEscapedCodeStr() && null != getProperty(ASTNodeProperties.NODE_ID))\n return \"String_Node_Str\" + getNodeId() + \"String_Node_Str\" + getEscapedCodeStr() + \"String_Node_Str\";\n if (null != getEscapedCodeStr())\n return \"String_Node_Str\" + getEscapedCodeStr() + \"String_Node_Str\";\n if (null != getProperty(ASTNodeProperties.NODE_ID))\n return \"String_Node_Str\" + getProperty(ASTNodeProperties.NODE_ID) + \"String_Node_Str\" + getTypeAsString() + \"String_Node_Str\";\n return super.toString();\n}\n"
"public int compare(INode node1, INode node2) {\n Map<INode, Integer> mergeInfo1 = node1.getLinkedMergeInfo();\n Map<INode, Integer> mergeInfo2 = node2.getLinkedMergeInfo();\n for (INode mNode : mergeNodes) {\n if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) != null) {\n if (mergeInfo1.get(mNode) > mergeInfo2.get(mNode)) {\n return 1;\n } else {\n return -1;\n }\n }\n if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) == null) {\n return -1;\n }\n if (mergeInfo1.get(mNode) == null && mergeInfo2.get(mNode) != null) {\n return 1;\n }\n }\n}\n"
"public void keyPressed(Canvas canvas, KeyEvent event) {\n processKeyEvent(canvas, event, KeyConfigurationEvent.KEY_PRESSED);\n if (!event.isConsumed() && event.getModifiersEx() == 0) {\n int KeybEvent = event.getKeyCode();\n String Component = getFactory().getDisplayName();\n if (!GateKeyboardModifier.TookKeyboardStrokes(KeybEvent, null, attrs, canvas, null, false))\n if (AutoLabler.LabelKeyboardHandler(KeybEvent, getAttributeSet(), Component, null, canvas.getCircuit(), null, false)) {\n canvas.repaint();\n } else\n switch(KeybEvent) {\n case KeyEvent.VK_UP:\n setFacing(canvas, Direction.NORTH);\n break;\n case KeyEvent.VK_DOWN:\n setFacing(canvas, Direction.SOUTH);\n break;\n case KeyEvent.VK_LEFT:\n setFacing(canvas, Direction.WEST);\n break;\n case KeyEvent.VK_RIGHT:\n setFacing(canvas, Direction.EAST);\n break;\n case KeyEvent.VK_R:\n Direction current = getFacing();\n if (current == Direction.NORTH)\n setFacing(canvas, Direction.EAST);\n else if (current == Direction.EAST)\n setFacing(canvas, Direction.SOUTH);\n else if (current == Direction.SOUTH)\n setFacing(canvas, Direction.WEST);\n else\n setFacing(canvas, Direction.NORTH);\n break;\n case KeyEvent.VK_ESCAPE:\n Project proj = canvas.getProject();\n Library base = proj.getLogisimFile().getLibrary(\"String_Node_Str\");\n Tool next = (base == null) ? null : base.getTool(\"String_Node_Str\");\n if (next != null) {\n proj.setTool(next);\n Action act = SelectionActions.dropAll(canvas.getSelection());\n if (act != null) {\n proj.doAction(act);\n }\n }\n break;\n case KeyEvent.VK_BACK_SPACE:\n if (lastAddition != null && canvas.getProject().getLastAction() == lastAddition) {\n canvas.getProject().undoAction();\n lastAddition = null;\n }\n }\n }\n}\n"
"public static void ensureLists() {\n if (underlyingSetCodesPerFormat.isEmpty()) {\n buildLists();\n }\n}\n"
"public static void CreateSubTotalLabel(LevelViewHandle levelView, CrosstabCellHandle cellHandle) throws SemanticException {\n LabelHandle dataHandle = DesignElementFactory.getInstance().newLabel(null);\n dataHandle.setText(\"String_Node_Str\" + levelView.getCubeLevel().getName() + \"String_Node_Str\" + DISPALY_NAME);\n cellHandle.addContent(dataHandle);\n}\n"
"public Response updateSimplePushVariation(String id, String simplePushID, SimplePushVariant updatedSimplePushApplication) {\n SimplePushVariant spVariant = (SimplePushVariant) variantService.findByVariantID(simplePushID);\n if (spVariant != null) {\n try {\n validateModelClass(updatedSimplePushApplication);\n } catch (ConstraintViolationException cve) {\n ResponseBuilder builder = createBadRequestResponse(cve.getConstraintViolations());\n return builder.build();\n }\n spVariant.setName(updatedSimplePushApplication.getName());\n spVariant.setDescription(updatedSimplePushApplication.getDescription());\n variantService.updateVariant(spVariant);\n return Response.noContent().build();\n }\n return Response.status(Status.NOT_FOUND).entity(\"String_Node_Str\").build();\n}\n"
"private void visitClass(Node classNode, Node parent) {\n checkClassReassignment(classNode);\n ClassDeclarationMetadata metadata = ClassDeclarationMetadata.create(classNode, parent);\n if (metadata == null || metadata.fullClassName == null) {\n cannotConvert(parent, \"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n if (metadata.hasSuperClass() && !metadata.superClassNameNode.isQualifiedName()) {\n compiler.report(JSError.make(metadata.superClassNameNode, DYNAMIC_EXTENDS_TYPE));\n return;\n }\n boolean useUnique = NodeUtil.isStatement(classNode) && !NodeUtil.isInFunction(classNode);\n String uniqueFullClassName = useUnique ? getUniqueClassName(metadata.fullClassName) : metadata.fullClassName;\n Node classNameAccess = NodeUtil.newQName(compiler, uniqueFullClassName);\n Node prototypeAccess = NodeUtil.newPropertyAccess(compiler, classNameAccess, \"String_Node_Str\");\n Preconditions.checkState(NodeUtil.isStatement(metadata.insertionPoint), \"String_Node_Str\", metadata.insertionPoint);\n Node constructor = null;\n JSDocInfo ctorJSDocInfo = null;\n Node classMembers = classNode.getLastChild();\n Map<String, JSTypeExpression> membersToDeclare = new LinkedHashMap<>();\n for (Node member : classMembers.children()) {\n if (member.isEmpty()) {\n continue;\n }\n Preconditions.checkState(member.isMemberFunctionDef() || member.isGetterDef() || member.isSetterDef() || (member.isComputedProp() && !member.getBooleanProp(Node.COMPUTED_PROP_VARIABLE)), \"String_Node_Str\", member);\n if (member.isGetterDef() || member.isSetterDef()) {\n if (member.isStaticMember()) {\n compiler.report(JSError.make(member, CANNOT_CONVERT_YET, \"String_Node_Str\"));\n }\n JSTypeExpression typeExpr = getTypeFromGetterOrSetter(member).clone();\n addToDefinePropertiesObject(metadata, member);\n JSTypeExpression existingType = membersToDeclare.get(member.getString());\n if (existingType != null && !existingType.equals(typeExpr)) {\n compiler.report(JSError.make(member, CONFLICTING_GETTER_SETTER_TYPE, member.getString()));\n } else {\n membersToDeclare.put(member.getString(), typeExpr);\n }\n } else if (member.isMemberFunctionDef() && member.getString().equals(\"String_Node_Str\")) {\n ctorJSDocInfo = member.getJSDocInfo();\n constructor = member.getFirstChild().detachFromParent();\n if (!metadata.anonymous) {\n constructor.replaceChild(constructor.getFirstChild(), metadata.classNameNode.cloneNode());\n }\n } else {\n Node qualifiedMemberAccess = getQualifiedMemberAccess(compiler, member, classNameAccess, prototypeAccess);\n Node method = member.getLastChild().detachFromParent();\n Node assign = IR.assign(qualifiedMemberAccess, method);\n assign.useSourceInfoIfMissingFromForTree(member);\n JSDocInfo info = member.getJSDocInfo();\n if (member.isStaticMember() && NodeUtil.referencesThis(assign.getLastChild())) {\n JSDocInfoBuilder memberDoc = JSDocInfoBuilder.maybeCopyFrom(info);\n memberDoc.recordThisType(new JSTypeExpression(new Node(Token.BANG, new Node(Token.QMARK)), member.getSourceFileName()));\n info = memberDoc.build();\n }\n if (info != null) {\n assign.setJSDocInfo(info);\n }\n Node newNode = NodeUtil.newExpr(assign);\n metadata.insertStaticMember(newNode);\n }\n }\n for (Map.Entry<String, JSTypeExpression> entry : membersToDeclare.entrySet()) {\n String declaredMember = entry.getKey();\n Node declaration = IR.getprop(prototypeAccess.cloneTree(), IR.string(declaredMember));\n JSDocInfoBuilder declInfo = new JSDocInfoBuilder(true);\n declInfo.recordType(entry.getValue());\n declaration.setJSDocInfo(declInfo.build());\n metadata.insertStaticMember(IR.exprResult(declaration).useSourceInfoIfMissingFromForTree(classNode));\n }\n if (metadata.defineProperties.hasChildren()) {\n Node definePropsCall = IR.exprResult(IR.call(NodeUtil.newQName(compiler, \"String_Node_Str\"), prototypeAccess.cloneTree(), metadata.defineProperties));\n definePropsCall.useSourceInfoIfMissingFromForTree(classNode);\n metadata.insertStaticMember(definePropsCall);\n }\n Preconditions.checkNotNull(constructor);\n JSDocInfo classJSDoc = NodeUtil.getBestJSDocInfo(classNode);\n JSDocInfoBuilder newInfo = JSDocInfoBuilder.maybeCopyFrom(classJSDoc);\n newInfo.recordConstructor();\n if (metadata.hasSuperClass()) {\n String superClassString = metadata.superClassNameNode.getQualifiedName();\n if (newInfo.isInterfaceRecorded()) {\n newInfo.recordExtendedInterface(new JSTypeExpression(new Node(Token.BANG, IR.string(superClassString)), metadata.superClassNameNode.getSourceFileName()));\n } else {\n Node inherits = IR.call(NodeUtil.newQName(compiler, INHERITS), NodeUtil.newQName(compiler, metadata.fullClassName), NodeUtil.newQName(compiler, superClassString));\n Node inheritsCall = IR.exprResult(inherits);\n compiler.needsEs6Runtime = true;\n inheritsCall.useSourceInfoIfMissingFromForTree(classNode);\n Node enclosingStatement = NodeUtil.getEnclosingStatement(classNode);\n enclosingStatement.getParent().addChildAfter(inheritsCall, enclosingStatement);\n newInfo.recordBaseType(new JSTypeExpression(new Node(Token.BANG, IR.string(superClassString)), metadata.superClassNameNode.getSourceFileName()));\n Node copyProps = IR.call(NodeUtil.newQName(compiler, COPY_PROP), NodeUtil.newQName(compiler, metadata.fullClassName), NodeUtil.newQName(compiler, superClassString));\n compiler.needsEs6Runtime = true;\n copyProps.useSourceInfoIfMissingFromForTree(classNode);\n enclosingStatement.getParent().addChildAfter(IR.exprResult(copyProps).srcref(classNode), enclosingStatement);\n }\n }\n if (!newInfo.isUnrestrictedRecorded() && !newInfo.isDictRecorded() && !newInfo.isStructRecorded()) {\n newInfo.recordStruct();\n }\n if (ctorJSDocInfo != null) {\n newInfo.recordSuppressions(ctorJSDocInfo.getSuppressions());\n for (String param : ctorJSDocInfo.getParameterNames()) {\n newInfo.recordParameter(param, ctorJSDocInfo.getParameterType(param));\n }\n newInfo.mergePropertyBitfieldFrom(ctorJSDocInfo);\n }\n if (NodeUtil.isStatement(classNode)) {\n constructor.getFirstChild().setString(\"String_Node_Str\");\n Node ctorVar = IR.var(IR.name(metadata.fullClassName), constructor);\n ctorVar.useSourceInfoIfMissingFromForTree(classNode);\n parent.replaceChild(classNode, ctorVar);\n } else {\n parent.replaceChild(classNode, constructor);\n }\n if (NodeUtil.isStatement(constructor)) {\n constructor.setJSDocInfo(newInfo.build());\n } else if (parent.isName()) {\n Node var = parent.getParent();\n var.setJSDocInfo(newInfo.build());\n } else if (constructor.getParent().isName()) {\n Node var = constructor.getParent().getParent();\n var.setJSDocInfo(newInfo.build());\n } else if (parent.isAssign()) {\n parent.setJSDocInfo(newInfo.build());\n } else {\n throw new IllegalStateException(\"String_Node_Str\" + parent);\n }\n compiler.reportCodeChange();\n}\n"
"static void addEdgeColumn(SqlgGraph sqlgGraph, String schema, String prefixedTable, Map.Entry<String, PropertyType> column) {\n BatchManager.BatchModeType batchModeType = flushAndSetTxToNone(sqlgGraph);\n try {\n Preconditions.checkArgument(prefixedTable.startsWith(SchemaManager.EDGE_PREFIX), \"String_Node_Str\" + prefixedTable);\n GraphTraversalSource traversalSource = sqlgGraph.traversal().withStrategies(TopologyStrategy.build().selectFrom(SchemaManager.SQLG_SCHEMA_SCHEMA_TABLES).create());\n Set<Vertex> edges = traversalSource.V().hasLabel(SchemaManager.SQLG_SCHEMA + \"String_Node_Str\" + SchemaManager.SQLG_SCHEMA_EDGE_LABEL).has(\"String_Node_Str\", prefixedTable.substring(SchemaManager.EDGE_PREFIX.length())).as(\"String_Node_Str\").in(SchemaManager.SQLG_SCHEMA_OUT_EDGES_EDGE).in(SchemaManager.SQLG_SCHEMA_SCHEMA_VERTEX_EDGE).has(\"String_Node_Str\", schema).<Vertex>select(\"String_Node_Str\").toSet();\n if (edges.size() == 0) {\n throw new IllegalStateException(\"String_Node_Str\" + prefixedTable);\n }\n if (edges.size() > 1) {\n throw new IllegalStateException(\"String_Node_Str\" + prefixedTable);\n }\n Vertex edge = edges.get(0);\n Vertex property = sqlgGraph.addVertex(T.label, SchemaManager.SQLG_SCHEMA + \"String_Node_Str\" + SchemaManager.SQLG_SCHEMA_PROPERTY, \"String_Node_Str\", column.getKey(), \"String_Node_Str\", column.getValue().name(), \"String_Node_Str\", LocalDateTime.now());\n edge.addEdge(SchemaManager.SQLG_SCHEMA_EDGE_PROPERTIES_EDGE, property);\n } finally {\n sqlgGraph.tx().batchMode(batchModeType);\n }\n}\n"
"public void testOfferPoll() throws IOException, InterruptedException {\n for (int i = 0; i < 10; i++) {\n boolean result = q.offer(\"String_Node_Str\");\n if (i < 6) {\n assertTrue(result);\n } else {\n assertFalse(result);\n }\n }\n assertEquals(6, q.size());\n new Thread() {\n public void run() {\n try {\n Thread.sleep(2 * 1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n q.poll();\n }\n }.start();\n boolean result = q.offer(\"String_Node_Str\", 5, TimeUnit.SECONDS);\n assertTrue(result);\n for (int i = 0; i < 10; i++) {\n Object o = q.poll();\n if (i < 6) {\n assertNotNull(o);\n } else {\n assertNull(o);\n }\n }\n assertEquals(0, q.size());\n final Thread t2 = new Thread() {\n\n public void run() {\n try {\n Thread.sleep(2 * 1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n q.offer(\"String_Node_Str\");\n }\n }.start();\n Object o = q.poll(5, TimeUnit.SECONDS);\n assertEquals(\"String_Node_Str\", o);\n}\n"
"public View newView(Context context, Cursor cursor, ViewGroup parent) {\n ViewHolder viewHolder;\n View view = layoutInflater.inflate(R.layout.list_item_chat_friend_selectable, null);\n holder = new ViewHolder();\n holder.avatarImageView = (RoundedImageView) view.findViewById(R.id.avatar_imageview);\n holder.avatarImageView.setOval(true);\n holder.nameTextView = (TextView) view.findViewById(R.id.name_textview);\n holder.onlineImageView = (ImageView) view.findViewById(R.id.online_imageview);\n holder.statusMessageTextView = (TextView) view.findViewById(R.id.statusMessageTextView);\n holder.selectFriendCheckBox = (CheckBox) view.findViewById(R.id.time_textview);\n view.setTag(holder);\n return view;\n}\n"
"public void cleanup() {\n if (registration != null) {\n registration.unregister();\n }\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n boolean isDead = HyperSqlDbServer.stopServerWithWait(dbId);\n if (isDead) {\n if (tempFolder != null) {\n Lib.deleteDir(tempFolder);\n }\n } else {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public void run() {\n if (tempFolder != null) {\n Lib.deleteDir(tempFolder);\n }\n }\n });\n }\n}\n"
"private static void checkStandardColumns(Keyspace keyspace, String expectedColumnFamilyName, RowModel expectedRowModel) throws Error {\n checkNumberOfColumns(keyspace, expectedColumnFamilyName, expectedRowModel);\n List<ColumnModel> expectedColumns = expectedRowModel.getColumns();\n for (ColumnModel expectedColumnModel : expectedColumns) {\n if (expectedColumnFamilyModel.isCounter()) {\n checkCounterColumn(keyspace, expectedRowModel, expectedColumnFamilyName, expectedColumnModel);\n } else {\n checkColumn(keyspace, expectedRowModel, expectedColumnFamilyName, expectedColumnModel);\n }\n }\n}\n"
"protected final void fetchInfo() {\n try (SQLConnection conn = backend.getSQL()) {\n ResultSet result = conn.prepAndBind(\"String_Node_Str\", this.getIdentifier(), this.type.ordinal()).executeQuery();\n if (result.next()) {\n this.prefix = emptyToNull(result.getString(\"String_Node_Str\"));\n this.suffix = emptyToNull(result.getString(\"String_Node_Str\"));\n this.def = result.getBoolean(\"String_Node_Str\");\n this.identifier = result.getString(\"String_Node_Str\");\n this.virtual = false;\n } else {\n this.prefix = \"String_Node_Str\";\n this.suffix = \"String_Node_Str\";\n this.virtual = true;\n }\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n}\n"
"public void addDownload(final Download download) {\n Torrent torrent = download.getTorrent();\n boolean is_decentralised = false;\n if (torrent != null) {\n is_decentralised = TorrentUtils.isDecentralised(announce_url);\n }\n if (download.getFlag(Download.FLAG_LOW_NOISE) && !is_decentralised) {\n return;\n }\n if (track_only_decentralsed) {\n if (torrent != null) {\n if (!is_decentralised) {\n return;\n }\n }\n }\n if (is_running) {\n String[] networks = download.getListAttribute(ta_networks);\n if (torrent != null && networks != null) {\n boolean public_net = false;\n for (int i = 0; i < networks.length; i++) {\n if (networks[i].equalsIgnoreCase(\"String_Node_Str\")) {\n public_net = true;\n break;\n }\n }\n if (public_net && !torrent.isPrivate()) {\n boolean our_download = torrent.wasCreatedByUs();\n long delay;\n if (our_download) {\n if (download.getCreationTime() > start_time) {\n delay = 0;\n } else {\n delay = plugin_interface.getUtilities().getCurrentSystemTime() + INTERESTING_INIT_MIN_OURS + random.nextInt(INTERESTING_INIT_RAND_OURS);\n }\n } else {\n int min;\n int rand;\n if (TorrentUtils.isDecentralised(torrent.getAnnounceURL())) {\n min = INTERESTING_DHT_INIT_MIN;\n rand = INTERESTING_DHT_INIT_RAND;\n } else {\n min = INTERESTING_INIT_MIN_OTHERS;\n rand = INTERESTING_INIT_RAND_OTHERS;\n }\n delay = plugin_interface.getUtilities().getCurrentSystemTime() + min + random.nextInt(rand);\n }\n try {\n this_mon.enter();\n interesting_downloads.put(download, new Long(delay));\n } finally {\n this_mon.exit();\n }\n }\n }\n download.addAttributeListener(DHTTrackerPlugin.this, ta_networks, DownloadAttributeListener.WRITTEN);\n download.addAttributeListener(DHTTrackerPlugin.this, ta_peer_sources, DownloadAttributeListener.WRITTEN);\n download.addTrackerListener(DHTTrackerPlugin.this);\n download.addListener(DHTTrackerPlugin.this);\n checkDownloadForRegistration(download, true);\n } else {\n if (torrent != null && torrent.isDecentralised()) {\n download.addListener(new DownloadListener() {\n public void stateChanged(final Download download, int old_state, int new_state) {\n int state = download.getState();\n if (state == Download.ST_DOWNLOADING || state == Download.ST_SEEDING) {\n download.setAnnounceResult(new DownloadAnnounceResult() {\n public Download getDownload() {\n return (download);\n }\n public int getResponseType() {\n return (DownloadAnnounceResult.RT_ERROR);\n }\n public int getReportedPeerCount() {\n return (0);\n }\n public int getSeedCount() {\n return (0);\n }\n public int getNonSeedCount() {\n return (0);\n }\n public String getError() {\n return (\"String_Node_Str\");\n }\n public URL getURL() {\n return (download.getTorrent().getAnnounceURL());\n }\n public DownloadAnnounceResultPeer[] getPeers() {\n return (new DownloadAnnounceResultPeer[0]);\n }\n public long getTimeToWait() {\n return (0);\n }\n public Map getExtensions() {\n return (null);\n }\n });\n }\n }\n public void positionChanged(Download download, int oldPosition, int newPosition) {\n }\n });\n download.setScrapeResult(new DownloadScrapeResult() {\n public Download getDownload() {\n return (download);\n }\n public int getResponseType() {\n return (DownloadScrapeResult.RT_ERROR);\n }\n public int getSeedCount() {\n return (-1);\n }\n public int getNonSeedCount() {\n return (-1);\n }\n public long getScrapeStartTime() {\n return (SystemTime.getCurrentTime());\n }\n public void setNextScrapeStartTime(long nextScrapeStartTime) {\n }\n public long getNextScrapeStartTime() {\n return (-1);\n }\n public String getStatus() {\n return (\"String_Node_Str\");\n }\n public URL getURL() {\n return (download.getTorrent().getAnnounceURL());\n }\n });\n }\n }\n}\n"
"public boolean equals(Object obj) {\n if (obj instanceof SortedIntLongVector) {\n SortedIntLongVector other = (SortedIntLongVector) obj;\n SortedIntLongVector v1 = SortedIntLongVector.getWithNoZeroValues(this);\n SortedIntLongVector v2 = SortedIntLongVector.getWithNoZeroValues(other);\n if (v2.size() != v1.size()) {\n return false;\n }\n for (IntLongEntry ve : this) {\n if (ve.get() != other.get(ve.index())) {\n return false;\n }\n }\n for (IntLongEntry ve : other) {\n if (ve.get() != this.get(ve.index())) {\n return false;\n }\n }\n return true;\n }\n return false;\n}\n"
"public void onEnable() {\n super.onEnable();\n Config.reload();\n PluginManager pm = this.getServer().getPluginManager();\n pm.registerEvents(this.corelistener, this);\n FactionsPlusJail.server = getServer();\n Bridge.init();\n FactionsVersion = (pm.getPlugin(\"String_Node_Str\").getDescription().getVersion());\n if (FactionsVersion.startsWith(\"String_Node_Str\")) {\n isOnePointSix = true;\n } else {\n isOnePointSix = false;\n }\n FactionsPlusPlugin.info(\"String_Node_Str\" + FactionsVersion + \"String_Node_Str\" + isOnePointSix);\n FactionsPlusCommandManager.setup();\n TeleportsListener.init(this);\n RegisteredServiceProvider<Permission> permissionProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class);\n if (permissionProvider != null) {\n permission = permissionProvider.getProvider();\n }\n if (Config.config.getBoolean(Config.str_enableEconomy)) {\n RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);\n if (economyProvider != null) {\n economy = economyProvider.getProvider();\n }\n }\n if (Config.config.getBoolean(Config.str_enableAnnounce)) {\n pm.registerEvents(this.announcelistener, this);\n }\n if (Config.config.getBoolean(Config.str_enableBans)) {\n pm.registerEvents(this.banlistener, this);\n }\n if (Config.config.getBoolean(Config.str_enableJails)) {\n pm.registerEvents(this.jaillistener, this);\n }\n if (Config.config.getBoolean(Config.str_enableDisguiseIntegration) && (Config.config.getBoolean(Config.str_unDisguiseIfInOwnTerritory) || Config.config.getBoolean(Config.str_unDisguiseIfInEnemyTerritory))) {\n if (getServer().getPluginManager().isPluginEnabled(\"String_Node_Str\")) {\n pm.registerEvents(this.dclistener, this);\n FactionsPlusPlugin.info(\"String_Node_Str\");\n isDisguiseCraftEnabled = true;\n pm.registerEvents(this.disguiselistener, this);\n }\n if (getServer().getPluginManager().isPluginEnabled(\"String_Node_Str\")) {\n pm.registerEvents(this.mdlistener, this);\n FactionsPlusPlugin.info(\"String_Node_Str\");\n isMobDisguiseEnabled = true;\n pm.registerEvents(this.disguiselistener, this);\n } else {\n FactionsPlusPlugin.info(\"String_Node_Str\");\n }\n }\n if (1 < 2) {\n if (getServer().getPluginManager().isPluginEnabled(\"String_Node_Str\")) {\n worldEditPlugin = (WorldEditPlugin) getServer().getPluginManager().getPlugin(\"String_Node_Str\");\n FactionsPlusPlugin.info(\"String_Node_Str\");\n isWorldEditEnabled = true;\n }\n if (getServer().getPluginManager().isPluginEnabled(\"String_Node_Str\")) {\n worldGuardPlugin = (WorldGuardPlugin) getServer().getPluginManager().getPlugin(\"String_Node_Str\");\n FactionsPlusPlugin.info(\"String_Node_Str\");\n isWorldGuardEnabled = true;\n }\n }\n if (LWCBase.isLWC()) {\n LWCFunctions.hookLWC();\n } else {\n if (Config.config.getBoolean(Config.str_blockCPublicAccessOnNonOwnFactionTerritory) || Config.config.getBoolean(Config.str_removeLWCLocksOnClaim)) {\n FactionsPlusPlugin.warn(\"String_Node_Str\" + \"String_Node_Str\");\n }\n return;\n }\n if (LWCFunctions.isLWC()) {\n if ((com.massivecraft.factions.Conf.lwcIntegration) && (com.massivecraft.factions.Conf.onCaptureResetLwcLocks)) {\n if (!Config.config.getBoolean(Config.str_removeLWCLocksOnClaim)) {\n FactionsPlusPlugin.info(\"String_Node_Str\" + Config.str_removeLWCLocksOnClaim + \"String_Node_Str\");\n }\n }\n }\n if (Config.config.getBoolean(Config.str_enablePeacefulBoosts)) {\n pm.registerEvents(this.peacefullistener, this);\n }\n if (Config.config.getBoolean(Config.str_enablePowerBoosts)) {\n pm.registerEvents(this.powerboostlistener, this);\n }\n version = getDescription().getVersion();\n FactionsPlusUpdate.checkUpdates();\n FactionsPlusPlugin.info(\"String_Node_Str\");\n try {\n if (null == metrics) {\n metrics = new Metrics(this);\n metrics.start();\n } else {\n metrics.enable();\n }\n } catch (IOException e) {\n FactionsPlusPlugin.info(\"String_Node_Str\");\n }\n}\n"
"private static synchronized BlurConfiguration getBlurConfiguration() throws IOException {\n if (_defaultBlurConfiguration == null) {\n _defaultBlurConfiguration = new BlurConfiguration();\n }\n return _blurConfiguration;\n}\n"
"public void renderTab(Tab item, final Object data, final int index) throws Exception {\n final Tabbox tabbox = item.getTabbox();\n final Tabs tabs = tabbox.getTabs();\n final int size = tabbox.getModel().getSize();\n final String tmn = \"String_Node_Str\";\n final Template tm = resolveTemplate(tabbox, item, data, index, size, tmn, \"String_Node_Str\");\n if (tm == null) {\n item.setLabel(Objects.toString(data));\n item.setValue(data);\n } else {\n final ForEachStatus iterStatus = new AbstractForEachStatus() {\n private static final long serialVersionUID = 1L;\n public int getIndex() {\n return index;\n }\n public Object getCurrent() {\n return data;\n }\n public Integer getEnd() {\n return size;\n }\n };\n final String var = (String) tm.getParameters().get(EACH_ATTR);\n final String varnm = var == null ? EACH_VAR : var;\n final String itervar = (String) tm.getParameters().get(STATUS_ATTR);\n final String itervarnm = itervar == null ? (var == null ? EACH_STATUS_VAR : varnm + STATUS_POST_VAR) : itervar;\n Object oldVar = tabs.getAttribute(varnm);\n Object oldIter = tabs.getAttribute(itervarnm);\n tabs.setAttribute(varnm, data);\n tabs.setAttribute(itervarnm, iterStatus);\n final Component[] items = filterOutShadows(tabs, tm.create(tabs, item, null, null));\n if (oldVar == null) {\n tabs.removeAttribute(varnm);\n } else {\n tabs.setAttribute(varnm, oldVar);\n }\n if (oldIter == null) {\n tabs.removeAttribute(itervarnm);\n } else {\n tabs.setAttribute(itervarnm, oldIter);\n }\n if (items.length != 1)\n throw new UiException(\"String_Node_Str\" + items.length);\n final Tab ntab = (Tab) items[0];\n ntab.setAttribute(BinderCtrl.VAR, varnm);\n recordRenderedIndex(tabs, items.length);\n ntab.setAttribute(AbstractRenderer.IS_TEMPLATE_MODEL_ENABLED_ATTR, true);\n ntab.setAttribute(AbstractRenderer.CURRENT_INDEX_RESOLVER_ATTR, new IndirectBinding() {\n public Binder getBinder() {\n return BinderUtil.getBinder(ntab, true);\n }\n public void setValue(BindELContext ctx, Object value) {\n int idx = BindTabboxRenderer.this.getRenderedIndex(tabs, ntab.getIndex());\n ListModel<?> listmodel = tabbox.getModel();\n if (idx >= 0 && idx < listmodel.getSize()) {\n if (listmodel instanceof ListModelArray) {\n ((ListModelArray<Object>) listmodel).set(idx, value);\n } else if (listmodel instanceof ListModelList<?>) {\n ((ListModelList<Object>) listmodel).set(idx, value);\n }\n } else {\n }\n }\n public Component getComponent() {\n return ntab;\n }\n public Object getValue(BindELContext ctx) {\n return tabbox.getModel().getElementAt(BindTabboxRenderer.this.getRenderedIndex(tabs, ntab.getIndex()));\n }\n });\n addItemReference(tabbox, ntab, index, varnm);\n ntab.setAttribute(itervarnm, iterStatus);\n ntab.setAttribute(TemplateResolver.TEMPLATE_OBJECT, item.removeAttribute(TemplateResolver.TEMPLATE_OBJECT));\n addTemplateTracking(tabs, ntab, data, index, size);\n if (ntab.getValue() == null)\n ntab.setValue(data);\n item.setAttribute(Attributes.MODEL_RENDERAS, ntab);\n item.detach();\n }\n}\n"
"public static synchronized boolean hasOpenResourceManagers(Path file) {\n final Set<ResourceManager> resourceManagers = RESOURCE_MANAGERS.get(file);\n if (resourceManagers == null || resourceManagers.isEmpty()) {\n return false;\n }\n return false;\n}\n"
"public void init() {\n Validate.notNull(FunkyRegistry.INSTANCE).registerProxy(BlockMultipart.class, FunkyCapabilities.STICKY_BLOCK, (world, pos, side) -> {\n TileEntity tile = world.getTileEntity(pos);\n if (tile instanceof TileMultipart) {\n TileMultipart multipart = (TileMultipart) tile;\n TMultiPart sidePart = multipart.partMap(side.ordinal());\n if (sidePart != null) {\n if (sidePart instanceof Microblock) {\n Microblock sideMicro = (Microblock) sidePart;\n return sideMicro.getIMaterial().getMaterialID().startsWith(FLBlocks.FRAMES[0].getRegistryName().toString());\n }\n }\n }\n return false;\n });\n Validate.notNull(FunkyRegistry.INSTANCE).registerMoveFactoryBlockClass(BlockMultipart.class, new IMoveFactory() {\n private DefaultMoveFactory defaultFactory = new DefaultMoveFactory();\n public boolean recreateBlock(World world, BlockPos pos, NBTTagCompound tag) {\n Block block = ForgeRegistries.BLOCKS.getValue(new ResourceLocation(MultipartMod.modID(), \"String_Node_Str\"));\n Chunk chunk = world.getChunkFromBlockCoords(pos);\n BlockHelper.silentSetBlock(chunk, pos, block, 0);\n TileMultipart multipart = TileMultipart.createFromNBT(tag, world);\n for (TMultiPart p : multipart.jPartList()) TileMultipart.addPart(world, pos, p);\n return true;\n }\n public NBTTagCompound destroyBlock(World world, BlockPos pos) {\n NBTTagCompound tag = new NBTTagCompound();\n TileEntity te = world.getTileEntity(pos);\n if (te != null && te instanceof TileMultipart) {\n TileMultipart multipart = (TileMultipart) te;\n multipart.writeToNBT(tag);\n }\n tag.merge(defaultFactory.destroyBlock(world, pos));\n return tag;\n }\n });\n}\n"
"public static ISessionBean createSessionBean(ServletRequest req, String solutionname, String username, String password, Object[] solutionOpenMethodArgs) throws Exception {\n return HeadlessClientFactoryInternal.createSessionBean(req, solutionname, username, password, solutionOpenMethodArgs);\n}\n"
"public boolean canChoose(UUID sourceControllerId, Game game) {\n int remainingTargets = this.minNumberOfTargets - targets.size();\n if (remainingTargets == 0) {\n return true;\n }\n int count = 0;\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, sourceControllerId, game)) {\n if (!targets.containsKey(permanent.getId())) {\n count++;\n if (count >= remainingTargets) {\n return true;\n }\n }\n return false;\n}\n"
"public Expr tableSamplingRatio() {\n return new ConstantExpr(vc, 1.0);\n}\n"
"public PortletPreference[] getDefaultPreferences() {\n if (defaultPreferences == null) {\n PortletDD portletDD = getPortletDefinition();\n PortletPreferencesDD prefsDD = portletDD.getPortletPreferences();\n if (prefsDD != null) {\n List prefs = new ArrayList();\n for (Iterator it = prefsDD.getPortletPreferences().iterator(); it.hasNext(); ) {\n PortletPreferenceDD prefDD = (PortletPreferenceDD) it.next();\n String[] values = null;\n if (prefDD.getValues().size() > 0) {\n values = (String[]) prefDD.getValues().toArray(new String[prefDD.getValues().size()]);\n }\n PortletPreferenceImpl pref = new PortletPreferenceImpl(prefDD.getName(), values, prefDD.isReadOnly());\n prefs.add(pref);\n }\n defaultPreferences = (PortletPreference[]) prefs.toArray(new PortletPreference[prefs.size()]);\n }\n }\n return defaultPreferences;\n}\n"
"private void store() {\n try {\n ListenerRegistry.getInstance().fireEvent(new InstanceEvent(this.getInstanceUuid(), this.getDisplayName(), this.vmType.getName(), this.getOwner().getNamespace(), null, this.getOwner().getName(), null, this.clusterName, this.partitionName, this.networkBytes, this.blockBytes));\n } catch (EventFailedException ex) {\n LOG.error(ex, ex);\n }\n try {\n Transactions.one(VmInstance.named((UserFullName) this.getOwner(), this.getDisplayName()), new Callback<VmInstance>() {\n public void fire(VmInstance t) {\n t.setBlockBytes(VmInstance.this.getBlockBytes());\n t.setNetworkBytes(VmInstance.this.getNetworkBytes());\n }\n });\n } catch (Exception ex) {\n LOG.error(ex, ex);\n }\n}\n"
"public void doWiFiInit() {\n WifiManager wifiMan = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);\n if (wifi_included && !wifiMan.isWifiEnabled()) {\n wifiMan.setWifiEnabled(true);\n }\n WifiInfo wifiInf = wifiMan.getConnectionInfo();\n HostNetworkConfig.wifiMACaddr = wifiInf.getMacAddress();\n int wifiIP = wifiInf.getIpAddress();\n HostNetworkState.wifiIPaddr = IPv4.fromIPv4Address(wifiIP);\n}\n"
"private boolean savePost(boolean autoSave) {\n String title = mTitleEditText.getText().toString();\n String password = mPasswordEditText.getText().toString();\n String pubDate = mPubDateText.getText().toString();\n String content = \"String_Node_Str\";\n if (mLocalDraft || mIsNew && !autoSave) {\n Editable e = mContentEditText.getText();\n if (android.os.Build.VERSION.SDK_INT >= 14) {\n CharacterStyle[] style = e.getSpans(0, e.length(), CharacterStyle.class);\n for (int i = 0; i < style.length; i++) {\n if (style[i].getClass().getName().equals(\"String_Node_Str\"))\n e.removeSpan(style[i]);\n }\n }\n content = EscapeUtils.unescapeHtml(WPHtml.toHtml(e));\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n content = mContentEditText.getText().toString();\n }\n long pubDateTimestamp = 0;\n if (!pubDate.equals(getResources().getText(R.string.immediately))) {\n if (mIsCustomPubDate)\n pubDateTimestamp = mCustomPubDate;\n else if (!mIsNew)\n pubDateTimestamp = mPost.getDate_created_gmt();\n }\n String tags = \"String_Node_Str\", postFormat = \"String_Node_Str\";\n if (!mIsPage) {\n tags = mTagsEditText.getText().toString();\n Spinner postFormatSpinner = (Spinner) findViewById(R.id.postFormat);\n postFormat = mPostFormats[postFormatSpinner.getSelectedItemPosition()];\n }\n String images = \"String_Node_Str\";\n boolean success = false;\n if (content.equals(\"String_Node_Str\") && !autoSave) {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(EditPostActivity.this);\n dialogBuilder.setTitle(getResources().getText(R.string.empty_fields));\n dialogBuilder.setMessage(getResources().getText(R.string.title_post_required));\n dialogBuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }\n });\n dialogBuilder.setCancelable(true);\n dialogBuilder.create().show();\n } else {\n if (!mIsNew) {\n mPost.deleteMediaFiles();\n Editable s = mContentEditText.getText();\n WPImageSpan[] click_spans = s.getSpans(0, s.length(), WPImageSpan.class);\n if (click_spans.length != 0) {\n for (int i = 0; i < click_spans.length; i++) {\n WPImageSpan wpIS = click_spans[i];\n images += wpIS.getImageSource().toString() + \"String_Node_Str\";\n MediaFile mf = new MediaFile();\n mf.setPostID(mPost.getId());\n mf.setTitle(wpIS.getTitle());\n mf.setCaption(wpIS.getCaption());\n mf.setDescription(wpIS.getDescription());\n mf.setFeatured(wpIS.isFeatured());\n mf.setFeaturedInPost(wpIS.isFeaturedInPost());\n mf.setFileName(wpIS.getImageSource().toString());\n mf.setHorizontalAlignment(wpIS.getHorizontalAlignment());\n mf.setWidth(wpIS.getWidth());\n mf.save();\n int tagStart = s.getSpanStart(wpIS);\n if (!autoSave) {\n s.removeSpan(wpIS);\n s.insert(tagStart, \"String_Node_Str\" + wpIS.getImageSource().toString() + \"String_Node_Str\");\n if (mLocalDraft)\n content = EscapeUtils.unescapeHtml(WPHtml.toHtml(s));\n else\n content = s.toString();\n }\n }\n }\n }\n final String moreTag = \"String_Node_Str\";\n int selectedStatus = mStatusSpinner.getSelectedItemPosition();\n String status = \"String_Node_Str\";\n switch(selectedStatus) {\n case 0:\n status = \"String_Node_Str\";\n break;\n case 1:\n status = \"String_Node_Str\";\n break;\n case 2:\n status = \"String_Node_Str\";\n break;\n case 3:\n status = \"String_Node_Str\";\n break;\n case 4:\n status = \"String_Node_Str\";\n break;\n }\n Double latitude = 0.0;\n Double longitude = 0.0;\n if (mBlog.isLocation()) {\n try {\n latitude = mCurrentLocation.getLatitude();\n longitude = mCurrentLocation.getLongitude();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n if (mIsNew) {\n mPost = new Post(mBlogID, title, content, images, pubDateTimestamp, mCategories.toString(), tags, status, password, latitude, longitude, mIsPage, postFormat, true, false);\n mPost.setLocalDraft(true);\n if (content.indexOf(moreTag) >= 0) {\n mPost.setDescription(content.substring(0, content.indexOf(moreTag)));\n mPost.setMt_text_more(content.substring(content.indexOf(moreTag) + moreTag.length(), content.length()));\n }\n success = mPost.save();\n if (success) {\n mIsNew = false;\n mIsNewDraft = true;\n }\n mPost.deleteMediaFiles();\n Spannable s = mContentEditText.getText();\n WPImageSpan[] image_spans = s.getSpans(0, s.length(), WPImageSpan.class);\n if (image_spans.length != 0) {\n for (int i = 0; i < image_spans.length; i++) {\n WPImageSpan wpIS = image_spans[i];\n images += wpIS.getImageSource().toString() + \"String_Node_Str\";\n MediaFile mf = new MediaFile();\n mf.setPostID(mPost.getId());\n mf.setTitle(wpIS.getTitle());\n mf.setCaption(wpIS.getCaption());\n mf.setFeatured(wpIS.isFeatured());\n mf.setFeaturedInPost(wpIS.isFeaturedInPost());\n mf.setFileName(wpIS.getImageSource().toString());\n mf.setFilePath(wpIS.getImageSource().toString());\n mf.setHorizontalAlignment(wpIS.getHorizontalAlignment());\n mf.setWidth(wpIS.getWidth());\n mf.setVideo(wpIS.isVideo());\n mf.save();\n }\n }\n WordPress.currentPost = mPost;\n } else {\n if (mCurrentLocation == null) {\n latitude = mPost.getLatitude();\n longitude = mPost.getLongitude();\n }\n mPost.setTitle(title);\n if (mLocalDraft && content.indexOf(moreTag) >= 0) {\n mPost.setDescription(content.substring(0, content.indexOf(moreTag)));\n mPost.setMt_text_more(content.substring(content.indexOf(moreTag) + moreTag.length(), content.length()));\n } else {\n mPost.setDescription(content);\n mPost.setMt_text_more(\"String_Node_Str\");\n }\n mPost.setMediaPaths(images);\n mPost.setDate_created_gmt(pubDateTimestamp);\n mPost.setCategories(mCategories);\n mPost.setMt_keywords(tags);\n mPost.setPost_status(status);\n mPost.setWP_password(password);\n mPost.setLatitude(latitude);\n mPost.setLongitude(longitude);\n mPost.setWP_post_form(postFormat);\n if (!mPost.isLocalDraft())\n mPost.setLocalChange(true);\n success = mPost.update();\n }\n }\n return success;\n}\n"
"public void showStats() {\n Long algorithmRunTime = null;\n Long overallReasoningTime = null;\n Long instanceCheckReasoningTime = null;\n Long retrievalReasoningTime = null;\n Long subsumptionReasoningTime = null;\n infoArea.setText(\"String_Node_Str\");\n if (config.getLearningAlgorithm().getCurrentlyBestDescription() != null) {\n infoArea.append(\"String_Node_Str\" + getSolutionString(config.getLearningAlgorithm().getCurrentlyBestEvaluatedDescriptions(10)) + \"String_Node_Str\");\n }\n if (config.getAlgorithmRunTime() != null) {\n algorithmRunTime = config.getAlgorithmRunTime();\n bar[0].update(1.0);\n time[0].setText(makeTime(algorithmRunTime));\n percent[0].setText(\"String_Node_Str\");\n }\n if (config.getReasoningService() != null) {\n overallReasoningTime = config.getReasoningService().getOverallReasoningTimeNs();\n bar[1].update((double) overallReasoningTime / (double) algorithmRunTime);\n time[1].setText(makeTime(overallReasoningTime));\n percent[1].setText(Percent(overallReasoningTime, algorithmRunTime));\n }\n if (config.getReasoningService().getNrOfInstanceChecks() > 0) {\n instanceCheckReasoningTime = config.getReasoningService().getInstanceCheckReasoningTimeNs();\n name[2].setText(names[2] + \"String_Node_Str\" + config.getReasoningService().getNrOfInstanceChecks() + \"String_Node_Str\");\n bar[2].update((double) instanceCheckReasoningTime / (double) algorithmRunTime);\n time[2].setText(makeTime(instanceCheckReasoningTime));\n percent[2].setText(Percent(instanceCheckReasoningTime, algorithmRunTime));\n }\n if (config.getReasoningService().getNrOfRetrievals() > 0) {\n retrievalReasoningTime = config.getReasoningService().getRetrievalReasoningTimeNs();\n name[3].setText(names[3] + \"String_Node_Str\" + config.getReasoningService().getNrOfRetrievals() + \"String_Node_Str\");\n bar[3].update((double) retrievalReasoningTime / (double) algorithmRunTime);\n time[3].setText(makeTime(retrievalReasoningTime));\n percent[3].setText(Percent(retrievalReasoningTime, algorithmRunTime));\n }\n if (config.getReasoningService().getNrOfSubsumptionChecks() > 0) {\n subsumptionReasoningTime = config.getReasoningService().getSubsumptionReasoningTimeNs();\n name[4].setText(names[4] + \"String_Node_Str\" + config.getReasoningService().getNrOfSubsumptionChecks() + \"String_Node_Str\");\n bar[4].update((double) subsumptionReasoningTime / (double) algorithmRunTime);\n time[4].setText(makeTime(subsumptionReasoningTime));\n percent[4].setText(Percent(subsumptionReasoningTime, algorithmRunTime));\n }\n repaint();\n}\n"
"private void configureResponseRowForViewType(FeedbackQuestionAttributes question, ViewType statisticsViewType, String giver, String recipient, InstructorResultsResponseRow responseRow) {\n switch(statisticsViewType) {\n case QUESTION:\n responseRow.setGiverProfilePictureDisplayed(question.isGiverAStudent() && validator.getInvalidityInfo(FieldValidator.FieldType.EMAIL, giver).isEmpty());\n responseRow.setGiverProfilePictureLink(new Url(getProfilePictureLink(giver)));\n responseRow.setRecipientProfilePictureDisplayed(question.isRecipientAStudent());\n responseRow.setRecipientProfilePictureLink(new Url(getProfilePictureLink(recipient)));\n responseRow.setActionsDisplayed(true);\n break;\n case GIVER_QUESTION_RECIPIENT:\n responseRow.setGiverDisplayed(false);\n responseRow.setGiverProfilePictureDisplayed(false);\n responseRow.setRecipientProfilePictureAColumn(true);\n responseRow.setRecipientProfilePictureDisplayed(question.isRecipientAStudent());\n responseRow.setRecipientProfilePictureLink(new Url(getProfilePictureLink(recipient)));\n responseRow.setActionsDisplayed(false);\n break;\n case RECIPIENT_QUESTION_GIVER:\n responseRow.setRecipientDisplayed(false);\n responseRow.setRecipientProfilePictureDisplayed(false);\n responseRow.setGiverProfilePictureAColumn(true);\n responseRow.setGiverProfilePictureDisplayed(question.isGiverAStudent());\n responseRow.setGiverProfilePictureLink(new Url(getProfilePictureLink(giver)));\n responseRow.setActionsDisplayed(true);\n break;\n default:\n Assumption.fail();\n }\n}\n"
"public void testIsContainsViewConnectionSchemaString() {\n String schemaName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Schema schema = null;\n ResultSet tables = Mockito.mock(ResultSet.class);\n try {\n Mockito.when(tables.next()).thenReturn(true);\n metaData = Mockito.mock(DatabaseMetaData.class);\n Mockito.when(metaData.getTables(null, schemaName, tablePattern, DqRepositoryViewService.VIEW_TYPES)).thenReturn(tables);\n dataProvider = Mockito.mock(DatabaseConnection.class);\n TypedReturnCode<java.sql.Connection> reConn = new TypedReturnCode<java.sql.Connection>();\n sqlConn = Mockito.mock(java.sql.Connection.class);\n reConn.setOk(true);\n reConn.setObject(sqlConn);\n Mockito.when(sqlConn.getMetaData()).thenReturn(metaData);\n Mockito.when(sqlConn.isClosed()).thenReturn(true);\n schema = Mockito.mock(Schema.class);\n Mockito.when(schema.getName()).thenReturn(schemaName);\n PowerMockito.mockStatic(MetadataConnectionUtils.class);\n Mockito.when(MetadataConnectionUtils.createConnection((DatabaseConnection) dataProvider)).thenReturn(reConn);\n PowerMockito.mockStatic(ExtractMetaDataUtils.class);\n ExtractMetaDataUtils extract = Mockito.mock(ExtractMetaDataUtils.class);\n Mockito.when(ExtractMetaDataUtils.getInstance()).thenReturn(extract);\n Mockito.when(extract.getDatabaseMetaData(sqlConn, (DatabaseConnection) dataProvider, false)).thenReturn(metaData);\n PowerMockito.mockStatic(PackageHelper.class);\n Mockito.when(PackageHelper.getCatalogOrSchema(schema)).thenReturn(schema);\n Mockito.when(PackageHelper.getParentPackage(schema)).thenReturn(null);\n containsTable = DqRepositoryViewService.isContainsView(dataProvider, schema, tablePattern);\n Mockito.verify(metaData).getTables(null, schemaName, tablePattern, DqRepositoryViewService.VIEW_TYPES);\n Mockito.verify(tables).next();\n Mockito.verify(sqlConn).isClosed();\n Mockito.verify(schema).getName();\n } catch (Exception e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n Mockito.verifyZeroInteractions(metaData, tables, dataProvider, sqlConn, schema);\n assertTrue(containsTable);\n}\n"
"public static BooleanGrid difference(BooleanGrid d, BooleanGrid e) {\n BooleanGrid result = difference(d, e, d.att);\n if (result != nothingThere && d.att != e.att)\n Debug.e(\"String_Node_Str\" + d.attribute().getMaterial() + \"String_Node_Str\" + e.attribute().getMaterial());\n return difference(d, e, d.att);\n}\n"
"public void onChildItemClicked(String idSubscription, String optional_folder_id) {\n if (!shouldDrawerStayOpen())\n mSlidingLayout.closePane();\n startDetailFHolder = new StartDetailFragmentHolder(idSubscription, false, optional_folder_id);\n}\n"
"public boolean a() {\n if (controlPathfinderGoal.moveTo != null && petEntity.canMove()) {\n if (myPet.getSkillSystem().hasSkill(\"String_Node_Str\")) {\n Behavior behaviorSkill = (Behavior) myPet.getSkillSystem().getSkill(\"String_Node_Str\");\n if (behaviorSkill.getLevel() > 0) {\n if (behaviorSkill.getBehavior() == Behavior.BehaviorState.Friendly) {\n return false;\n }\n }\n }\n for (Object entityObj : this.petEntity.world.a(EntityLiving.class, this.petEntity.boundingBox.grow((double) this.range, 4.0D, (double) this.range))) {\n Entity entity = (Entity) entityObj;\n EntityLiving entityLiving = (EntityLiving) entity;\n if (petEntity.aA().canSee(entityLiving) && entityLiving != petEntity) {\n if (entityLiving instanceof EntityPlayer) {\n Player targetPlayer = (Player) entityLiving.getBukkitEntity();\n if (myPet.getOwner().equals(targetPlayer)) {\n continue;\n }\n if (!MyPetUtil.canHurt(myPet.getOwner().getPlayer(), targetPlayer)) {\n continue;\n }\n }\n controlPathfinderGoal.stopControl();\n this.target = entityLiving;\n return true;\n }\n }\n }\n return false;\n}\n"
"public void checkPlayerOfPosition(Player playerOfPosition) {\n if (playerOfPosition != player && movableType.needsPlayersGround() && strategy.getClass() != FleeStrategy.class) {\n setStrategy(new FleeStrategy(this));\n }\n}\n"
"public void new_mode_delete_original_no_timestamps_input_has_right_timestamps() {\n testDateTimeProvider.setTime(actionTime());\n when(updateContext.getAction(update)).thenReturn(Action.DELETE);\n final RpslObject input = new RpslObjectBuilder(TEMPLATE).addAttributeSorted(new RpslAttribute(AttributeType.CREATED, TIMESTAMP_STRING_PAST)).addAttributeSorted(new RpslAttribute(AttributeType.LAST_MODIFIED, TIMESTAMP_STRING_PAST)).get();\n final RpslObject updatedObject = subject.generateAttributes(original, input, update, updateContext);\n assertThat(updatedObject.containsAttribute(AttributeType.CREATED), is(false));\n assertThat(updatedObject.containsAttribute(AttributeType.LAST_MODIFIED), is(false));\n testHelper.assertAttributeMessage(ValidationMessages.suppliedAttributeReplacedWithGeneratedValue(AttributeType.CREATED));\n testHelper.assertAttributeMessage(ValidationMessages.suppliedAttributeReplacedWithGeneratedValue(AttributeType.LAST_MODIFIED));\n}\n"
"public void testGrandTotal1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier1 = dim1.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level11 = hier1.createLevel(\"String_Node_Str\");\n ILevelDefinition level12 = hier1.createLevel(\"String_Node_Str\");\n IDimensionDefinition dim2 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier2 = dim2.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level21 = hier2.createLevel(\"String_Node_Str\");\n cqd.createMeasure(\"String_Node_Str\");\n IBinding binding1 = new Binding(\"String_Node_Str\");\n binding1.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding1);\n IBinding binding2 = new Binding(\"String_Node_Str\");\n binding2.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding2);\n IBinding binding4 = new Binding(\"String_Node_Str\");\n binding4.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding4);\n IBinding binding5 = new Binding(\"String_Node_Str\");\n binding5.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding5);\n IBinding binding6 = new Binding(\"String_Node_Str\");\n binding6.setExpression(new ScriptExpression(\"String_Node_Str\"));\n binding6.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n binding6.addAggregateOn(\"String_Node_Str\");\n binding6.setFilter(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding6);\n IBinding binding7 = new Binding(\"String_Node_Str\");\n binding7.setExpression(new ScriptExpression(\"String_Node_Str\"));\n binding7.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n binding7.addAggregateOn(\"String_Node_Str\");\n binding7.addAggregateOn(\"String_Node_Str\");\n binding7.setFilter(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding7);\n IBinding binding8 = new Binding(\"String_Node_Str\");\n binding8.setExpression(new ScriptExpression(\"String_Node_Str\"));\n binding8.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n binding8.setFilter(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding8);\n CubeSortDefinition sorter1 = new CubeSortDefinition();\n sorter1.setExpression(\"String_Node_Str\");\n sorter1.setSortDirection(ISortDefinition.SORT_DESC);\n sorter1.setTargetLevel(level21);\n CubeSortDefinition sorter2 = new CubeSortDefinition();\n sorter2.setExpression(\"String_Node_Str\");\n sorter2.setSortDirection(ISortDefinition.SORT_DESC);\n sorter2.setTargetLevel(level11);\n CubeSortDefinition sorter3 = new CubeSortDefinition();\n sorter3.setExpression(\"String_Node_Str\");\n sorter3.setSortDirection(ISortDefinition.SORT_DESC);\n sorter3.setTargetLevel(level12);\n cqd.addSort(sorter1);\n cqd.addSort(sorter2);\n cqd.addSort(sorter3);\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n IPreparedCubeQuery pcq = engine.prepare(cqd, null);\n ICubeQueryResults queryResults = pcq.execute(null);\n CubeCursor cursor = queryResults.getCubeCursor();\n List columnEdgeBindingNames = new ArrayList();\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n this.printCube(cursor, columnEdgeBindingNames, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private void addJoinColumnToInfo(String joinColumn, TableInfo targetTableInfo, List<TableInfo> targetTableInfos, EntityMetadata m) {\n if (!joinColumn.equals(targetTableInfo.getIdColumnName())) {\n if (!targetTableInfos.isEmpty() && targetTableInfos.contains(targetTableInfo)) {\n int idx = targetTableInfos.indexOf(targetTableInfo);\n targetTableInfo = targetTableInfos.get(idx);\n ColumnInfo columnInfoOfJoinColumn = getJoinColumn(targetTableInfo, joinColumn, m.getIdAttribute().getBindableJavaType());\n if (!targetTableInfo.getColumnMetadatas().contains(columnInfoOfJoinColumn)) {\n targetTableInfo.addColumnInfo(columnInfoOfJoinColumn);\n }\n } else {\n ColumnInfo columnInfoOfJoinColumn = getJoinColumn(targetTableInfo, joinColumn, m.getIdAttribute().getBindableJavaType());\n if (!targetTableInfo.getColumnMetadatas().contains(columnInfoOfJoinColumn)) {\n targetTableInfo.addColumnInfo(columnInfoOfJoinColumn);\n }\n targetTableInfos.add(targetTableInfo);\n }\n } else {\n ColumnInfo columnInfoOfJoinColumn = getJoinColumn(targetTableInfo, joinColumn, m.getIdAttribute().getBindableJavaType());\n if (!targetTableInfo.getColumnMetadatas().contains(columnInfoOfJoinColumn)) {\n targetTableInfo.addColumnInfo(columnInfoOfJoinColumn);\n }\n targetTableInfos.add(targetTableInfo);\n }\n}\n"
"public Object buildAggregateFromRow(AbstractRecord databaseRow, Object targetObject, CacheKey cacheKey, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, boolean buildShallowOriginal, AbstractSession executionSession, boolean targetIsProtected) throws DatabaseException {\n if (databaseRow.hasSopObject()) {\n Object sopAggregate = getAttributeValueFromObject(databaseRow.getSopObject());\n if ((targetObject != null) && (targetObject != databaseRow.getSopObject())) {\n setAttributeValueInObject(targetObject, sopAggregate);\n }\n return sopAggregate;\n }\n if (isNullAllowed() && allAggregateFieldsAreNull(databaseRow)) {\n return null;\n }\n Object aggregate = null;\n ClassDescriptor descriptor = getReferenceDescriptor();\n boolean refreshing = true;\n if (targetObject != null) {\n if (descriptor.hasInheritance()) {\n Class newAggregateClass = descriptor.getInheritancePolicy().classFromRow(databaseRow, executionSession);\n descriptor = getReferenceDescriptor(newAggregateClass, executionSession);\n aggregate = getMatchingAttributeValueFromObject(databaseRow, targetObject, executionSession, descriptor);\n if ((aggregate != null) && (aggregate.getClass() != newAggregateClass)) {\n aggregate = descriptor.getObjectBuilder().buildNewInstance();\n refreshing = false;\n }\n } else {\n aggregate = getMatchingAttributeValueFromObject(databaseRow, targetObject, executionSession, descriptor);\n }\n }\n if (aggregate == null || (aggregate != null && cacheKey == null)) {\n aggregate = descriptor.getObjectBuilder().buildNewInstance();\n refreshing = false;\n }\n ObjectBuildingQuery nestedQuery = prepareNestedQuery(sourceQuery);\n FetchGroup targetFetchGroup = null;\n if (nestedQuery.isObjectLevelReadQuery()) {\n targetFetchGroup = ((ObjectLevelReadQuery) nestedQuery).getFetchGroup();\n if (refreshing && descriptor.hasFetchGroupManager()) {\n descriptor.getFetchGroupManager().unionEntityFetchGroupIntoObject(aggregate, descriptor.getFetchGroupManager().getEntityFetchGroup(targetFetchGroup), executionSession, true);\n }\n }\n if (buildShallowOriginal) {\n descriptor.getObjectBuilder().buildAttributesIntoShallowObject(aggregate, databaseRow, nestedQuery);\n } else if (executionSession.isUnitOfWork()) {\n descriptor.getObjectBuilder().buildAttributesIntoWorkingCopyClone(aggregate, buildWrapperCacheKeyForAggregate(cacheKey, targetIsProtected), nestedQuery, joinManager, databaseRow, (UnitOfWorkImpl) executionSession, refreshing);\n } else {\n descriptor.getObjectBuilder().buildAttributesIntoObject(aggregate, buildWrapperCacheKeyForAggregate(cacheKey, targetIsProtected), databaseRow, nestedQuery, joinManager, nestedQuery.getExecutionFetchGroup(descriptor), refreshing, executionSession);\n }\n if ((targetFetchGroup != null) && descriptor.hasFetchGroupManager() && !refreshing && sourceQuery.shouldMaintainCache() && !sourceQuery.shouldStoreBypassCache()) {\n EntityFetchGroup entityFetchGroup = descriptor.getFetchGroupManager().getEntityFetchGroup(targetFetchGroup);\n if (entityFetchGroup != null) {\n entityFetchGroup = (EntityFetchGroup) entityFetchGroup.clone();\n entityFetchGroup.setRootEntity((FetchGroupTracker) cacheKey.getObject());\n entityFetchGroup.setOnEntity(aggregate, executionSession);\n }\n }\n return aggregate;\n}\n"
"private void populateExtendedAggrInfo(String name, IAggregation aggrFunc, IConfigurationElement elem, AggrFunctionWrapper aggrWrapper) {\n IConfigurationElement[] uiInfo = elem.getChildren(ELEMENT_UIINFO);\n assert (uiInfo != null && uiInfo.length == 1);\n String paramInfo = uiInfo[0].getAttribute(ATTRIBUTE_PARAMETER_META_INFO);\n String textInfo = uiInfo[0].getAttribute(ATTRIBUTE_TEXT_DATA);\n aggrWrapper.setDisplayName(textInfo);\n List paramList = new ArrayList();\n String[] paramInfos = paramInfo.split(\"String_Node_Str\");\n boolean[] paramFlags = aggrFunc.getParameterDefn();\n if (paramInfos != null && paramInfos.length > 0 && paramFlags != null) {\n if (paramInfos.length != paramFlags.length)\n throw new DataException(ResourceConstants.INCONSISTENT_AGGREGATION_ARGUMENT_DEFINITION);\n for (int k = 0; k < paramInfos.length; k++) {\n final String s = paramInfos[k].trim();\n int index = s.indexOf(' ');\n String paramName = null;\n if (index > 0) {\n paramName = s.substring(index + 1).trim();\n } else {\n paramName = paramInfos[k];\n }\n ParameterDefn paramDefn = new ParameterDefn(paramName, paramName, !paramFlags[k], true);\n paramList.add(paramDefn);\n }\n }\n IParameterDefn[] params = new IParameterDefn[paramList.size()];\n paramList.toArray(params);\n aggrWrapper.setParameterDefn(params);\n}\n"
"String makeChildMemberSql(RolapMember member, Connection jdbcConnection, MemberChildrenConstraint constraint) {\n SqlQuery sqlQuery = newQuery(jdbcConnection, \"String_Node_Str\" + member);\n AggStar aggStar = chooseAggStar(constraint, member);\n constraint.addMemberConstraint(sqlQuery, aggStar, member);\n RolapLevel level = (RolapLevel) member.getLevel().getChildLevel();\n hierarchy.addToFrom(sqlQuery, level.getKeyExp());\n String q = level.getKeyExp().getExpression(sqlQuery);\n sqlQuery.addSelect(q);\n sqlQuery.addGroupBy(q);\n constraint.addLevelConstraint(sqlQuery, aggStar, level, null);\n if (level.hasCaptionColumn()) {\n MondrianDef.Expression captionExp = level.getCaptionExp();\n hierarchy.addToFrom(sqlQuery, captionExp);\n String captionSql = captionExp.getExpression(sqlQuery);\n sqlQuery.addSelect(captionSql);\n sqlQuery.addGroupBy(captionSql);\n }\n hierarchy.addToFrom(sqlQuery, level.getOrdinalExp());\n String orderBy = level.getOrdinalExp().getExpression(sqlQuery);\n sqlQuery.addOrderBy(orderBy, true, false, true);\n if (!orderBy.equals(q)) {\n sqlQuery.addGroupBy(orderBy);\n }\n RolapProperty[] properties = level.getRolapProperties();\n for (int j = 0; j < properties.length; j++) {\n RolapProperty property = properties[j];\n final MondrianDef.Expression exp = property.getExp();\n hierarchy.addToFrom(sqlQuery, exp);\n final String s = exp.getExpression(sqlQuery);\n sqlQuery.addSelect(s);\n sqlQuery.addGroupBy(s);\n }\n return sqlQuery.toString();\n}\n"
"public void partBroughtToTop(IWorkbenchPart part) {\n IProcess2 process = getJobFromActivatedEditor(part);\n if (process != null && currentProcess != process) {\n changedProcess = true;\n currentProcess = process;\n Contexts.setTitle(process.getLabel());\n setContextsView(process, part);\n JobSettings.switchToCurJobSettingsView();\n refreshProcessView();\n for (IJobTrackerListener listener : jobTrackerListeners) {\n listener.focusOnJob(process);\n }\n }\n}\n"
"public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == MenuKey.getMenuKeyCode()) {\n int sx = (scaleWidthRatio == 1.00) ? lastX : (int) Math.floor(lastX * scaleWidthRatio);\n int sy = (scaleHeightRatio == 1.00) ? lastY : (int) Math.floor(lastY * scaleHeightRatio);\n java.awt.Point ev = new java.awt.Point(lastX, lastY);\n ev.translate(sx - lastX, sy - lastY);\n cc.showMenu((int) ev.getX(), (int) ev.getY());\n return;\n }\n int ctrlAltShiftMask = Event.SHIFT_MASK | Event.CTRL_MASK | Event.ALT_MASK;\n if ((e.getModifiers() & ctrlAltShiftMask) == ctrlAltShiftMask) {\n switch(e.getKeyCode()) {\n case KeyEvent.VK_A:\n cc.showAbout();\n return;\n case KeyEvent.VK_F:\n cc.toggleFullScreen();\n return;\n case KeyEvent.VK_H:\n cc.refresh();\n return;\n case KeyEvent.VK_I:\n cc.showInfo();\n return;\n case KeyEvent.VK_O:\n cc.options.showDialog(cc.viewport);\n return;\n case KeyEvent.VK_W:\n VncViewer.newViewer(cc.viewer);\n return;\n case KeyEvent.VK_LEFT:\n case KeyEvent.VK_RIGHT:\n case KeyEvent.VK_UP:\n case KeyEvent.VK_DOWN:\n return;\n }\n }\n if ((e.getModifiers() & Event.META_MASK) == Event.META_MASK) {\n switch(e.getKeyCode()) {\n case KeyEvent.VK_COMMA:\n case KeyEvent.VK_N:\n case KeyEvent.VK_W:\n case KeyEvent.VK_I:\n case KeyEvent.VK_R:\n case KeyEvent.VK_L:\n case KeyEvent.VK_F:\n case KeyEvent.VK_Z:\n case KeyEvent.VK_T:\n return;\n }\n }\n if (!cc.viewer.viewOnly.getValue())\n if (e.isActionKey() || keysym < 0)\n cc.writeKeyEvent(e);\n}\n"
"protected void writeContent(int type, String txt, IContent content) {\n if (inForeign) {\n hasPInside = true;\n }\n context.addContainer(false);\n InlineFlag inlineFlag = InlineFlag.BLOCK;\n IStyle computedStyle = content.getComputedStyle();\n IStyle inlineStyle = null;\n if (\"String_Node_Str\".equalsIgnoreCase(content.getComputedStyle().getDisplay())) {\n if (context.isFirstInline()) {\n context.startInline();\n inlineFlag = InlineFlag.FIRST_INLINE;\n computedStyle = computeStyle(computedStyle);\n } else\n inlineFlag = InlineFlag.MIDDLE_INLINE;\n if (!inlineStyles.isEmpty()) {\n inlineStyle = mergeStyles(inlineStyles);\n }\n } else {\n adjustInline();\n }\n writeBookmark(content);\n writeToc(content);\n writeText(type, txt, content, inlineFlag, computedStyle, inlineStyle);\n context.setLastIsTable(false);\n}\n"
"public void testBogusDomain() throws Exception {\n OEmbedSource source = new BaseOEmbedSource(getContext(), \"String_Node_Str\", Uri.parse(\"String_Node_Str\")) {\n };\n try {\n source.getThumbnail();\n } catch (HttpException e) {\n if (e.getErrorCode() != HttpException.ERROR_NETWORK)\n throw e;\n }\n}\n"
"private Object[] getExpandedEntityElements(DataModelMainPage mainPage) {\n TreeViewer elementsViewer = mainPage.getElementsViewer();\n SchemaTreeContentProvider contentProvider = (SchemaTreeContentProvider) elementsViewer.getContentProvider();\n Object[] xsdDeclarations = getChildren(contentProvider.getXsdSchema(), contentProvider);\n List<Object> result = new ArrayList<Object>();\n Deque<ExpandInfoNode> nodeStack = new LinkedList<ExpandInfoNode>();\n Deque<Object> elementStack = new LinkedList<Object>();\n Map<XSDNode, XSDElementDeclaration> expandedRoots = new HashMap<XSDNode, XSDElementDeclaration>();\n for (Object obj : xsdDeclarations) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n String name = decl.getName();\n for (XSDNode node : expandedElements) {\n if (name.equals(((XSDElementDeclaration) node.data).getName())) {\n expandedRoots.put(node, decl);\n result.add(decl);\n nodeStack.add(node);\n elementStack.add(decl);\n break;\n }\n }\n }\n while (!nodeStack.isEmpty() && !elementStack.isEmpty()) {\n XSDNode node = nodeStack.pollFirst();\n Object element = elementStack.pollFirst();\n List<XSDNode> nodes = node.childs;\n Object[] elementChildren = getChildren(element, contentProvider);\n if (nodes != null && nodes.size() > 0 && elementChildren != null) {\n Map<XSDNode, Object> nodeElementPairs = getNodeElementPairs(elementChildren, nodes);\n for (XSDNode node2 : nodeElementPairs.keySet()) {\n nodeStack.add(node2);\n elementStack.add(nodeElementPairs.get(node2));\n result.add(nodeElementPairs.get(node2));\n }\n }\n }\n return result.toArray();\n}\n"
"public Object[] getElements(Object input) {\n if (input instanceof Collection) {\n dependenciesByBundle = new HashMap<IBundle, Set<BundleDependency>>();\n Set<IBundle> bundleset = new HashSet<IBundle>((Collection<IBundle>) input);\n if (!\"String_Node_Str\".equals(searchControl.getSearchText().getText()) && searchControl.getSearchText().getText().trim().length() > 0) {\n String searchText = searchControl.getSearchText().getText().trim() + \"String_Node_Str\";\n StringMatcher matcher = new StringMatcher(searchText, true, false);\n for (IBundle dep : new HashSet<IBundle>(bundles)) {\n boolean filter = true;\n if (matcher.match(dep.getSymbolicName())) {\n filter = false;\n }\n if (matcher.match(dep.getSymbolicName() + \"String_Node_Str\" + dep.getVersion() + \"String_Node_Str\")) {\n filter = false;\n }\n if (filter) {\n bundles.remove(dep);\n }\n }\n }\n this.contentResult = new BundleDependencyContentResult(bundles);\n Set<BundleDependency> dependencies = new HashSet<BundleDependency>();\n if (showPackage) {\n Set<IBundle> bundlesToProcess = new HashSet<IBundle>(bundles);\n Set<IBundle> alreadyProcessedBundles = new HashSet<IBundle>();\n int degree = 0;\n do {\n degree++;\n Set<IBundle> copy = new HashSet<IBundle>(bundlesToProcess);\n bundlesToProcess = new HashSet<IBundle>();\n for (IBundle b : copy) {\n bundlesToProcess.addAll(addOutgoingPackageDependencies(dependencies, b, degree, alreadyProcessedBundles));\n }\n } while (bundlesToProcess.size() > 0);\n bundlesToProcess = new HashSet<IBundle>(bundles);\n alreadyProcessedBundles = new HashSet<IBundle>();\n degree = 0;\n do {\n degree++;\n Set<IBundle> copy = new HashSet<IBundle>(bundlesToProcess);\n bundlesToProcess = new HashSet<IBundle>();\n for (IBundle b : copy) {\n bundlesToProcess.addAll(addIncomingPackageDependencies(dependencies, b, degree, alreadyProcessedBundles));\n }\n } while (bundlesToProcess.size() > 0);\n } else if (showServices) {\n Set<IBundle> bundlesToProcess = new HashSet<IBundle>(bundles);\n Set<IBundle> alreadyProcessedBundles = new HashSet<IBundle>();\n int degree = 0;\n do {\n degree++;\n Set<IBundle> copy = new HashSet<IBundle>(bundlesToProcess);\n bundlesToProcess = new HashSet<IBundle>();\n for (IBundle b : copy) {\n bundlesToProcess.addAll(addOutgoingServiceDependencies(dependencies, b, degree, alreadyProcessedBundles));\n }\n } while (bundlesToProcess.size() > 0);\n bundlesToProcess = new HashSet<IBundle>(bundles);\n alreadyProcessedBundles = new HashSet<IBundle>();\n degree = 0;\n do {\n degree++;\n Set<IBundle> copy = new HashSet<IBundle>(bundlesToProcess);\n bundlesToProcess = new HashSet<IBundle>();\n for (IBundle b : copy) {\n bundlesToProcess.addAll(addIncomingServiceDependencies(dependencies, b, degree, alreadyProcessedBundles));\n }\n } while (bundlesToProcess.size() > 0);\n }\n if (\"String_Node_Str\".equals(searchControl.getSearchText().getText()) || searchControl.getSearchText().getText().trim().length() == 0) {\n this.contentResult = null;\n }\n return dependencies.toArray(new BundleDependency[dependencies.size()]);\n }\n return NO_ELEMENTS;\n}\n"
"public SortedSet<ContentKey> query(DirectionQuery query) {\n SortedSet<ContentKey> orderedKeys = new TreeSet<>();\n ContentKey startKey = query.getContentKey();\n DateTime startTime = startKey.getTime();\n Collection<ContentKey> queryByTime = queryByTime(query.getChannelName(), startTime, TimeUtil.Unit.DAYS);\n if (queryByTime.size() < query.getCount()) {\n startTime = query.isNext() ? startTime.plusDays(1) : startTime.minusDays(1);\n queryByTime.addAll(queryByTime(query.getChannelName(), startTime, TimeUtil.Unit.DAYS));\n }\n if (query.isNext()) {\n DateTime stableTime = TimeUtil.time(query.isStable());\n for (ContentKey contentKey : new TreeSet<>(queryByTime)) {\n if (contentKey.compareTo(startKey) > 0 && contentKey.getTime().isBefore(stableTime)) {\n orderedKeys.add(contentKey);\n if (orderedKeys.size() == query.getCount()) {\n return true;\n }\n }\n }\n } else {\n PreviousUtil.addToPrevious(query, queryByTime, orderedKeys);\n }\n return orderedKeys;\n}\n"
"private TrigramBuffer loadTrigramBuffer(int firstWordID, int secondWordID) {\n TrigramBuffer trigramBuffer = null;\n BigramProbability bigram = findBigram(firstWordID, secondWordID);\n if (bigram != null) {\n int numberTrigrams = 0, size = 0;\n long position = 0;\n try {\n int b1 = unigrams[firstWordID].getFirstBigramEntry();\n b1 += bigram.getWhichFollower();\n int b2 = b1 + 1;\n BigramProbability nextBigram = loader.loadBigram(b2).getBigramProbability(0);\n int firstTrigramEntry = trigramSegmentTable[b1 >> loader.getLogBigramSegmentSize()] + bigram.getFirstTrigramEntry();\n int nextFirstTrigramEntry = trigramSegmentTable[b2 >> loader.getLogBigramSegmentSize()] + nextBigram.getFirstTrigramEntry();\n position = (long) (loader.getTrigramOffset() + (firstTrigramEntry * BYTES_PER_TRIGRAM));\n numberTrigrams = nextFirstTrigramEntry - firstTrigramEntry;\n size = numberTrigrams * BYTES_PER_TRIGRAM;\n ByteBuffer buffer = loader.loadBuffer(position, size);\n trigramBuffer = new TrigramBuffer(buffer, numberTrigrams);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n throw new Error(\"String_Node_Str\");\n } catch (IllegalArgumentException iae) {\n String[] words = loader.getWords();\n System.out.println(words[firstWordID] + \"String_Node_Str\" + words[secondWordID] + \"String_Node_Str\" + numberTrigrams + \"String_Node_Str\" + position + \"String_Node_Str\" + size);\n iae.printStackTrace();\n }\n }\n return trigramBuffer;\n}\n"
"private static void injectInputIntoOperations(String name, AbstractPropertyValue value, Map<String, Operation> operations) {\n if (MapUtils.isEmpty(operations)) {\n return;\n }\n if (value != null && !(value instanceof ScalarPropertyValue)) {\n return;\n }\n String inputName = name.toUpperCase();\n operations.forEach((operationName, operation) -> {\n if (operation.getInputParameters() == null) {\n operation.setInputParameters(Maps.newHashMap());\n }\n operation.getInputParameters().putIfAbsent(inputName, finalValue);\n });\n}\n"