content stringlengths 40 137k |
|---|
"protected ResultSet getResultSetFromTableInfo(TableInfoParameters tableInfo, String namePattern, IMetadataConnection iMetadataConnection, String schema) throws SQLException {\n ResultSet rsTables = null;\n String tableNamePattern = \"String_Node_Str\".equals(namePattern) ? null : namePattern;\n String[] types = new String[tableInfo.getTypes().size()];\n for (int i = 0; i < types.length; i++) {\n final String selectedTypeName = tableInfo.getTypes().get(i).getName();\n if (\"String_Node_Str\".equals(selectedTypeName) && iMetadataConnection.getDbType().equals(EDatabaseTypeName.IBMDB2.getDisplayName())) {\n types[i] = \"String_Node_Str\";\n } else {\n types[i] = selectedTypeName;\n }\n DatabaseMetaData dbMetaData = ExtractMetaDataUtils.getDatabaseMetaData(ExtractMetaDataUtils.conn, iMetadataConnection.getDbType(), iMetadataConnection.isSqlMode(), iMetadataConnection.getDatabase());\n ResultSet rsTableTypes = null;\n rsTableTypes = dbMetaData.getTableTypes();\n Set<String> availableTableTypes = new HashSet<String>();\n String[] neededTableTypes = { ETableTypes.TABLETYPE_TABLE.getName(), ETableTypes.TABLETYPE_VIEW.getName(), ETableTypes.TABLETYPE_SYNONYM.getName() };\n while (rsTableTypes.next()) {\n String currentTableType = StringUtils.trimToEmpty(rsTableTypes.getString(\"String_Node_Str\"));\n if (ArrayUtils.contains(neededTableTypes, currentTableType)) {\n availableTableTypes.add(currentTableType);\n }\n }\n rsTableTypes.close();\n rsTables = dbMetaData.getTables(null, schema, tableNamePattern, types);\n return rsTables;\n}\n"
|
"protected final void updateIONApplication(final String domain, final Application application) {\n final ClientResponse response = createBuilder(domain).type(MediaType.APPLICATION_JSON_TYPE).put(ClientResponse.class, application);\n final ClientResponse.Status status = response.getClientResponseStatus();\n if (!(status == ClientResponse.Status.OK || status == ClientResponse.Status.CREATED)) {\n throw new DeployableException(\"String_Node_Str\" + domain + \"String_Node_Str\" + status.getStatusCode() + \"String_Node_Str\" + status.getReasonPhrase() + \"String_Node_Str\");\n }\n}\n"
|
"public void run() throws IOException {\n initContext();\n if (inputDataStore == null) {\n LOGGER.error(\"String_Node_Str\");\n throw new IOException(\"String_Node_Str\");\n }\n if (isUseTime()) {\n ByteArrayId adapterByte = null;\n if (adapterId != null) {\n adapterByte = new ByteArrayId(adapterId);\n }\n scaledRange = KMeansUtils.setRunnerTimeParams(this, inputDataStore, adapterByte);\n if (scaledRange == null) {\n LOGGER.error(\"String_Node_Str\");\n throw new ParameterException(\"String_Node_Str\");\n }\n }\n List<ByteArrayId> featureAdapterIds;\n if (adapterId != null) {\n featureAdapterIds = new ArrayList<>();\n featureAdapterIds.add(new ByteArrayId(adapterId));\n } else {\n featureAdapterIds = FeatureDataUtils.getFeatureAdapterIds(inputDataStore);\n }\n final QueryOptions queryOptions = new QueryOptions();\n queryOptions.setAdapterIds(featureAdapterIds);\n final AdapterStore adapterStore = inputDataStore.createAdapterStore();\n queryOptions.getAdaptersArray(adapterStore);\n DistributableQuery query = null;\n try {\n if (cqlFilter != null) {\n Geometry bbox = null;\n ByteArrayId cqlAdapterId;\n if (adapterId == null) {\n cqlAdapterId = featureAdapterIds.get(0);\n } else {\n cqlAdapterId = new ByteArrayId(adapterId);\n }\n final DataAdapter adapter = adapterStore.getAdapter(cqlAdapterId);\n if (adapter instanceof FeatureDataAdapter) {\n final String geometryAttribute = ((FeatureDataAdapter) adapter).getFeatureType().getGeometryDescriptor().getLocalName();\n Filter filter;\n filter = ECQL.toFilter(cqlFilter);\n final ExtractGeometryFilterVisitorResult geoAndCompareOpData = (ExtractGeometryFilterVisitorResult) filter.accept(new ExtractGeometryFilterVisitor(GeometryUtils.getDefaultCRS(), geometryAttribute), null);\n bbox = geoAndCompareOpData.getGeometry();\n }\n if ((bbox != null) && !bbox.equals(GeometryUtils.infinity())) {\n query = new SpatialQuery(bbox);\n }\n }\n } catch (final CQLException e) {\n LOGGER.error(\"String_Node_Str\" + cqlFilter);\n }\n RDDOptions kmeansOpts = new RDDOptions();\n kmeansOpts.setMinSplits(minSplits);\n kmeansOpts.setMaxSplits(maxSplits);\n kmeansOpts.setQuery(query);\n kmeansOpts.setQueryOptions(queryOptions);\n GeoWaveRDD kmeansRDD = GeoWaveRDDLoader.loadRDD(jsc.sc(), inputDataStore, kmeansOpts);\n centroidVectors = RDDUtils.rddFeatureVectors(kmeansRDD, timeField, scaledTimeRange);\n centroidVectors.cache();\n final KMeans kmeans = new KMeans();\n kmeans.setInitializationMode(\"String_Node_Str\");\n kmeans.setK(numClusters);\n kmeans.setMaxIterations(numIterations);\n if (epsilon > -1.0) {\n kmeans.setEpsilon(epsilon);\n }\n outputModel = kmeans.run(centroidVectors.rdd());\n writeToOutputStore();\n}\n"
|
"public void compute() throws VerdictException {\n VerdictSQLParser p = StringManipulations.parserOf(queryString);\n VerdictSQLBaseVisitor<TableUniqueName> visitor = new VerdictSQLBaseVisitor<TableUniqueName>() {\n private TableUniqueName tableName;\n protected TableUniqueName defaultResult() {\n return tableName;\n }\n public TableUniqueName visitDescribe_table_statement(VerdictSQLParser.Describe_table_statementContext ctx) {\n String schema = null;\n Table_nameContext t = ctx.table_name();\n if (t.schema != null) {\n schema = t.schema.getText();\n }\n String table = t.table.getText();\n tableName = TableUniqueName.uname(schema, table);\n return tableName;\n }\n };\n TableUniqueName tableName = visitor.visit(p.describe_table_statement());\n TableUniqueName table = (tableName.getSchemaName() != null) ? tableName : TableUniqueName.uname(vc, tableName.getTableName());\n if (table.getSchemaName() == null) {\n VerdictLogger.info(\"String_Node_Str\");\n } else {\n if (vc.getDbms().isJDBC()) {\n rs = ((DbmsJDBC) vc.getDbms()).describeTableInResultSet(table);\n } else if (vc.getDbms().isSpark()) {\n df = ((DbmsSpark) vc.getDbms()).describeTableInDataFrame(table);\n } else if (vc.getDbms().isSpark2()) {\n ds = ((DbmsSpark2) vc.getDbms()).describeTableInDataset(table);\n }\n }\n}\n"
|
"public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {\n TileRefinery refinery = (TileRefinery) accessor.getTileEntity();\n if (!refinery.isPartOfMultiblock()) {\n currenttip.add(Utils.localize(\"String_Node_Str\"));\n } else {\n if (refinery.master == null && (!refinery.isMaster())) {\n refinery.findMaster();\n if (refinery.master == null)\n return currenttip;\n }\n TileRefinery master = refinery;\n if (!refinery.isMaster())\n master = refinery.master;\n currenttip.add(\"String_Node_Str\" + master.currentHeat);\n if (!master.getOutput().equals(\"String_Node_Str\")) {\n currenttip.add(\"String_Node_Str\" + master.requiredHeat);\n currenttip.add(\"String_Node_Str\" + master.getInput() + \"String_Node_Str\" + master.getOutput());\n }\n }\n return currenttip;\n}\n"
|
"public void reduceStockLevelFor(final Commodity commodity, int quantity, Date date) {\n StockItem stockItem = commodity.reduceStockOnHandBy(quantity);\n StockItemSnapshot siss = saveStockLevel(commodity, stockItem, date);\n categoryService.clearCache();\n}\n"
|
"public final boolean setOccupyableBuilding(IOccupyableBuilding building) {\n if (canOccupyBuilding()) {\n return ((SoldierStrategy) strategy).setOccupyableBuilding(building);\n } else {\n return false;\n }\n}\n"
|
"public ListBoxModel doFillProfileItems(String cloud, String workspace, String box) {\n logger.log(Level.FINE, \"String_Node_Str\" + cloud + \"String_Node_Str\" + workspace + \"String_Node_Str\" + box);\n ListBoxModel profiles = new ListBoxModel();\n try {\n if (StringUtils.isEmpty(cloud) || StringUtils.isEmpty(workspace) || StringUtils.isEmpty(box))\n return profiles;\n final DeployBoxOrderResult<List<PolicyBox>> result = new DeployBoxOrderServiceImpl().deploymentOptions(cloud, workspace, box);\n final List<PolicyBox> policyBoxList = result.getResult();\n for (PolicyBox policyBox : policyBoxList) {\n profiles.add(policyBox.getName(), policyBox.getId());\n }\n } catch (ServiceException e) {\n logger.log(Level.SEVERE, \"String_Node_Str\" + cloud + \"String_Node_Str\" + workspace + \"String_Node_Str\" + box + \"String_Node_Str\");\n e.printStackTrace();\n }\n return profiles;\n}\n"
|
"void fromValueClick() {\n valueKeyboard.setInputTextView(fromValue);\n valueKeyboard.setVisibility(View.VISIBLE);\n valueKeyboard.setEntry(fromValue.getText().toString());\n fromLayout.setAlpha(Constants.ACTIVE_ALPHA);\n toLayout.setAlpha(Constants.INACTIVE_ALPHA);\n AccountAdapter.Item item = fromAccountAdapter.getItem(fromRecyclerView.getSelectedItem());\n valueKeyboard.setSpendableValue(getMaxSpend(item.account));\n valueKeyboard.setMaxValue(MAX_BITCOIN_VALUE);\n scrollTo(fromLayout.getTop());\n}\n"
|
"private void renderGeneNode(GL2 gl, PathwayVertexRep vertexRep) {\n float[] nodeColor;\n float width = pixelGLConverter.getGLWidthForPixelWidth(vertexRep.getWidth());\n float height = pixelGLConverter.getGLHeightForPixelHeight(vertexRep.getHeight());\n gl.glLineWidth(1);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilFunc(GL.GL_GREATER, 1, 0xff);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_REPLACE, GL.GL_REPLACE);\n renderQuad(gl, width, height);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n if (mappingPerspective != null) {\n Average average = getExpressionAverage(mappingPerspective, vertexRep);\n if (average != null) {\n nodeColor = mappingPerspective.getDataDomain().getTable().getColorMapper().getColor((float) average.getArithmeticMean());\n } else {\n nodeColor = null;\n }\n if (average != null && nodeColor != null) {\n gl.glColor4f(nodeColor[0], nodeColor[1], nodeColor[2], 0.8f);\n if (glPathwayView.getDetailLevel() == EDetailLevel.HIGH) {\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilFunc(GL.GL_GREATER, 2, 0xff);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_KEEP, GL.GL_KEEP);\n renderQuad(gl, width, height);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_STENCIL_TEST);\n Float stdDev = pixelGLConverter.getGLWidthForPixelWidth(PathwayRenderStyle.ENZYME_NODE_PIXEL_WIDTH) * (float) average.getStandardDeviation() * 2.0f;\n if (!stdDev.isNaN()) {\n renderStdDevBar(gl, width, height, stdDev);\n }\n gl.glPushMatrix();\n gl.glTranslatef(0, -(2f * thirdOfstdDevBarHeight - onePxlHeight), 0);\n if (vertexSelectionManager.checkStatus(SelectionType.SELECTION, vertexRep.getID())) {\n nodeColor = SelectionType.SELECTION.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderFrame(gl, width + onePxlWidth, height + (2f * thirdOfstdDevBarHeight) - onePxlHeight);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilFunc(GL.GL_GREATER, 2, 0xff);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_REPLACE, GL.GL_REPLACE);\n renderFrame(gl, width + onePxlWidth, height + (2f * thirdOfstdDevBarHeight) - onePxlHeight);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n } else if (vertexSelectionManager.checkStatus(SelectionType.MOUSE_OVER, vertexRep.getID())) {\n nodeColor = SelectionType.MOUSE_OVER.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderFrame(gl, width + onePxlWidth, height + (2f * thirdOfstdDevBarHeight) - onePxlHeight);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilFunc(GL.GL_GREATER, 2, 0xff);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_REPLACE, GL.GL_REPLACE);\n renderFrame(gl, width + onePxlWidth, height + (2f * thirdOfstdDevBarHeight) - onePxlHeight);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n }\n gl.glPopMatrix();\n } else {\n renderQuad(gl, width * 3, height * 3);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilFunc(GL.GL_ALWAYS, 2, 0xff);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_KEEP, GL.GL_REPLACE);\n renderQuad(gl, width * 3, height * 3);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n if (vertexSelectionManager.checkStatus(SelectionType.SELECTION, vertexRep.getID())) {\n nodeColor = SelectionType.SELECTION.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderQuad(gl, width * 3, height * 3);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_KEEP, GL.GL_REPLACE);\n gl.glStencilFunc(GL.GL_ALWAYS, 2, 0xff);\n renderQuad(gl, width * 3, height * 3);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n } else if (vertexSelectionManager.checkStatus(SelectionType.MOUSE_OVER, vertexRep.getID())) {\n nodeColor = SelectionType.MOUSE_OVER.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderQuad(gl, width * 3, height * 3);\n gl.glEnable(GL.GL_STENCIL_TEST);\n gl.glColorMask(false, false, false, false);\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glDisable(GL.GL_BLEND);\n gl.glStencilOp(GL.GL_KEEP, GL.GL_KEEP, GL.GL_REPLACE);\n gl.glStencilFunc(GL.GL_ALWAYS, 2, 0xff);\n renderQuad(gl, width * 3, height * 3);\n gl.glDisable(GL.GL_STENCIL_TEST);\n gl.glColorMask(true, true, true, true);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glEnable(GL.GL_BLEND);\n }\n }\n } else {\n gl.glColor4f(1, 1, 1, 1);\n renderQuad(gl, width, height);\n nodeColor = PathwayRenderStyle.ENZYME_NODE_COLOR.getRGBA();\n gl.glColor4f(nodeColor[0], nodeColor[1], nodeColor[2], 0.7f);\n float boxWidth = pixelGLConverter.getGLWidthForPixelWidth(PathwayRenderStyle.COMPOUND_NODE_PIXEL_WIDTH);\n float boxHeight = pixelGLConverter.getGLHeightForPixelHeight(PathwayRenderStyle.COMPOUND_NODE_PIXEL_HEIGHT);\n float y = height;\n gl.glDisable(GL.GL_DEPTH_TEST);\n gl.glBegin(GL2.GL_QUADS);\n gl.glNormal3f(0.0f, 0.0f, 1.0f);\n gl.glVertex3f(0, boxHeight, PathwayRenderStyle.Z_OFFSET);\n gl.glVertex3f(boxWidth, boxHeight, PathwayRenderStyle.Z_OFFSET);\n gl.glVertex3f(boxWidth, 0, PathwayRenderStyle.Z_OFFSET);\n gl.glVertex3f(0, 0, PathwayRenderStyle.Z_OFFSET);\n gl.glEnd();\n gl.glEnable(GL.GL_DEPTH_TEST);\n if (vertexSelectionManager.checkStatus(SelectionType.SELECTION, vertexRep.getID())) {\n nodeColor = SelectionType.SELECTION.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderFrame(gl, width + onePxlWidth, height + thirdOfstdDevBarHeight);\n maskFramedEnzymeNode(gl, width, height);\n } else if (vertexSelectionManager.checkStatus(SelectionType.MOUSE_OVER, vertexRep.getID())) {\n nodeColor = SelectionType.MOUSE_OVER.getColor().getRGBA();\n gl.glColor4fv(nodeColor, 0);\n renderFrame(gl, width + onePxlWidth, height + thirdOfstdDevBarHeight);\n maskFramedEnzymeNode(gl, width, height);\n }\n }\n } else {\n if (vertexSelectionManager.checkStatus(SelectionType.SELECTION, vertexRep.getID())) {\n nodeColor = SelectionType.SELECTION.getColor().getRGBA();\n maskFramedEnzymeNode(gl, width, height);\n } else if (vertexSelectionManager.checkStatus(SelectionType.MOUSE_OVER, vertexRep.getID())) {\n nodeColor = SelectionType.MOUSE_OVER.getColor().getRGBA();\n maskFramedEnzymeNode(gl, width, height);\n } else if (vertexSelectionManager.checkStatus(SelectionType.NORMAL, vertexRep.getID())) {\n nodeColor = PathwayRenderStyle.ENZYME_NODE_COLOR.getRGBA();\n } else {\n nodeColor = new float[] { 0, 0, 0, 0 };\n }\n gl.glColor4fv(nodeColor, 0);\n renderFrame(gl, width + onePxlWidth, height + thirdOfstdDevBarHeight);\n gl.glCallList(framedEnzymeNodeDisplayListId);\n if (!vertexSelectionManager.checkStatus(SelectionType.DESELECTED, vertexRep.getID())) {\n gl.glColor4f(0, 0, 0, 0);\n renderQuad(gl, width, height);\n }\n }\n}\n"
|
"public void addInformation(ItemStack stack, World world, List list, ITooltipFlag flag) {\n list.add(I18n.translateToLocal(\"String_Node_Str\"));\n list.add(I18n.translateToLocal(\"String_Node_Str\"));\n if (stack.getTagCompound() != null && stack.getTagCompound().hasKey(\"String_Node_Str\")) {\n int[] link = stack.getTagCompound().getIntArray(\"String_Node_Str\");\n if (link != null && link.length > 3) {\n list.add(I18n.translateToLocalFormatted(\"String_Node_Str\", link[1], link[2], link[3], link[0]));\n }\n}\n"
|
"public Control newEditorOn(Composite parent, int columnIndex, final PropertyDescriptor<?> desc, final Rule rule, final ValueChangeListener listener) {\n if (columnIndex == 0)\n return addLabel(parent, desc);\n if (columnIndex == 1) {\n final Text textWidget = new Text(parent, SWT.SINGLE | SWT.BORDER);\n GridData gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n textWidget.setLayoutData(gridData);\n fillWidget(textWidget, desc, rule);\n configure(textWidget, desc, rule, listener);\n return panel;\n }\n return null;\n}\n"
|
"private void addTo(final int[] poss, final boolean move) {\n long plid = UiUtils.isUserPlaylist(mPlid) ? mPlid : DB.INVALID_PLAYLIST_ID;\n MusicsAdapter adpr = getAdapter();\n final long[] mids = new long[poss.length];\n for (int i = 0; i < mids.length; i++) mids[i] = adpr.getItemId(poss[i]);\n UiUtils.OnPostExecuteListener listener = new UiUtils.OnPostExecuteListener() {\n public void onPostExecute(Err result, Object user) {\n if (Err.NO_ERR != result)\n UiUtils.showTextToast(MusicsActivity.this, result.getMessage());\n if (move)\n getAdapter().reloadCursorAsync();\n else {\n getAdapter().clearCheckState();\n getAdapter().notifyDataSetChanged();\n }\n }\n };\n UiUtils.addVideosTo(this, null, listener, mPlid, mids, move);\n}\n"
|
"private void initStartLoadDialogMessages() {\n if (dialog != null) {\n startLoadDialogMessages(dialog, chatJidId, Consts.ZERO_LONG_VALUE);\n }\n}\n"
|
"public void onServiceUpChanged(Entity member, Boolean serviceUp) {\n Set<Entity> seeds = getSeeds();\n int quorum = getQuorumSize();\n boolean isViable = isViableSeed(member);\n boolean maybeAdd = isViable && seeds.size() < quorum;\n boolean maybeRemove = seeds.contains(member) && !isViable;\n if (maybeAdd || maybeRemove) {\n refreshSeeds();\n } else {\n if (log.isTraceEnabled())\n log.trace(\"String_Node_Str\", new Object[] { CassandraClusterImpl.this, member, serviceUp });\n return;\n }\n Supplier<Set<Entity>> seedSupplier = getSeedSupplier();\n Set<Entity> newSeeds = seedSupplier.get();\n setAttribute(CURRENT_SEEDS, newSeeds);\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + CassandraClusterImpl.this + \"String_Node_Str\" + newSeeds);\n}\n"
|
"public LocalMapStatsImpl createLocalMapStats(String mapName) {\n final NodeEngine nodeEngine = this.nodeEngine;\n final MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);\n final LocalMapStatsImpl localMapStats = getLocalMapStatsImpl(mapName);\n if (!mapContainer.getMapConfig().isStatisticsEnabled()) {\n return localMapStats;\n }\n final int backupCount = mapContainer.getTotalBackupCount();\n final ClusterService clusterService = nodeEngine.getClusterService();\n final InternalPartitionService partitionService = nodeEngine.getPartitionService();\n final Address thisAddress = clusterService.getThisAddress();\n localMapStats.setBackupCount(backupCount);\n addNearCacheStats(localMapStats, mapContainer);\n for (int partitionId = 0; partitionId < partitionService.getPartitionCount(); partitionId++) {\n InternalPartition partition = partitionService.getPartition(partitionId);\n Address owner = partition.getOwnerOrNull();\n if (owner == null) {\n continue;\n }\n if (owner.equals(thisAddress)) {\n addOwnerPartitionStats(localMapStats, mapName, partitionId);\n } else {\n addReplicaPartitionStats(localMapStats, mapName, partitionId, partition, partitionService, backupCount, thisAddress);\n }\n }\n return localMapStats;\n}\n"
|
"private void moveViewToLast() {\n chart.setVisibleXRangeMinimum(120);\n chart.setVisibleXRangeMaximum(120);\n chart.moveViewToX(Math.max(0f, chartXValues.size() - 1));\n}\n"
|
"private void testFactTableSaveAndLoad3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = \"String_Node_Str\";\n DimensionForTest iterator = new DimensionForTest(levelNames);\n iterator.setLevelMember(0, FactTable2.L1Col);\n iterator.setLevelMember(1, FactTable2.L2Col);\n iterator.setLevelMember(2, FactTable2.L3Col);\n ILevelDefn[] levelDefs = new ILevelDefn[3];\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n levelDefs[1] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n levelDefs[2] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n dimensions[0] = (Dimension) DimensionFactory.createDimension(\"String_Node_Str\", documentManager, iterator, levelDefs, false, new StopSign());\n IHierarchy hierarchy = dimensions[0].getHierarchy();\n assertEquals(hierarchy.getName(), \"String_Node_Str\");\n assertEquals(dimensions[0].length(), FactTable2.L1Col.length);\n levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n iterator = new DimensionForTest(levelNames);\n iterator.setLevelMember(0, distinct(FactTable2.L1Col));\n levelDefs = new ILevelDefn[1];\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n dimensions[1] = (Dimension) DimensionFactory.createDimension(\"String_Node_Str\", documentManager, iterator, levelDefs, false, new StopSign());\n hierarchy = dimensions[1].getHierarchy();\n assertEquals(hierarchy.getName(), \"String_Node_Str\");\n assertEquals(dimensions[1].length(), 3);\n levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n iterator = new DimensionForTest(levelNames);\n iterator.setLevelMember(0, FactTable2.L3Col);\n levelDefs = new ILevelDefn[1];\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n dimensions[2] = (Dimension) DimensionFactory.createDimension(\"String_Node_Str\", documentManager, iterator, levelDefs, false, new StopSign());\n hierarchy = dimensions[2].getHierarchy();\n assertEquals(hierarchy.getName(), \"String_Node_Str\");\n assertEquals(dimensions[2].length(), 12);\n FactTable2 factTable2 = new FactTable2();\n String[] measureColumnName = new String[2];\n measureColumnName[0] = \"String_Node_Str\";\n measureColumnName[1] = \"String_Node_Str\";\n FactTableAccessor factTableConstructor = new FactTableAccessor(documentManager);\n FactTable factTable = factTableConstructor.saveFactTable(NamingUtil.getFactTableName(\"String_Node_Str\"), CubeUtility.getKeyColNames(dimensions), CubeUtility.getKeyColNames(dimensions), factTable2, dimensions, measureColumnName, new StopSign());\n factTable = factTableConstructor.load(NamingUtil.getFactTableName(\"String_Node_Str\"), new StopSign());\n String[] dimensionNames = new String[3];\n dimensionNames[0] = \"String_Node_Str\";\n dimensionNames[1] = \"String_Node_Str\";\n dimensionNames[2] = \"String_Node_Str\";\n ILevel[] level = dimensions[1].getHierarchy().getLevels();\n ISelection[][] filter = new ISelection[1][1];\n filter[0][0] = SelectionFactory.createRangeSelection(new Object[] { new Integer(1) }, new Object[] { new Integer(3) }, true, false);\n Level[] findLevel = new Level[1];\n findLevel[0] = (Level) level[0];\n IDiskArray[] positionForFilter = null;\n positionForFilter = new IDiskArray[2];\n IDiskArray positionArray = dimensions[1].find(findLevel, filter);\n positionForFilter[0] = positionArray;\n assertEquals(positionArray.size(), 2);\n DimensionResultIterator[] dimesionResultSets = new DimensionResultIterator[2];\n dimesionResultSets[0] = new DimensionResultIterator(dimensions[1], positionArray, new StopSign());\n positionArray = dimensions[2].findAll();\n dimesionResultSets[1] = new DimensionResultIterator(dimensions[2], positionArray, new StopSign());\n String[] dimensionNamesForFilter = new String[2];\n dimensionNamesForFilter[0] = \"String_Node_Str\";\n dimensionNamesForFilter[1] = \"String_Node_Str\";\n positionForFilter[1] = positionArray;\n FactTableRowIterator facttableRowIterator = new FactTableRowIterator(factTable, dimensionNamesForFilter, positionForFilter, new StopSign());\n assertTrue(facttableRowIterator != null);\n AggregationDefinition[] aggregations = new AggregationDefinition[2];\n int[] sortType = new int[1];\n sortType[0] = IDimensionSortDefn.SORT_ASC;\n DimLevel[] levelsForFilter = new DimLevel[] { dimLevel21 };\n AggregationFunctionDefinition[] funcitons = new AggregationFunctionDefinition[1];\n funcitons[0] = new AggregationFunctionDefinition(\"String_Node_Str\", IBuildInAggregation.TOTAL_SUM_FUNC);\n aggregations[0] = new AggregationDefinition(levelsForFilter, sortType, funcitons);\n sortType = new int[1];\n sortType[0] = IDimensionSortDefn.SORT_ASC;\n levelsForFilter = new DimLevel[] { dimLevel31 };\n aggregations[1] = new AggregationDefinition(levelsForFilter, sortType, funcitons);\n IDataSet4Aggregation dataSet4Aggregation = new DataSetFromOriginalCube(facttableRowIterator, dimesionResultSets, null);\n AggregationExecutor aggregationCalculatorExecutor = new AggregationExecutor(null, dataSet4Aggregation, aggregations);\n IAggregationResultSet[] resultSet = aggregationCalculatorExecutor.execute(new StopSign());\n assertEquals(resultSet[0].length(), 2);\n assertEquals(resultSet[0].getAggregationDataType(0), DataType.DOUBLE_TYPE);\n assertEquals(resultSet[0].getLevelIndex(dimLevel21), 0);\n assertEquals(resultSet[0].getLevelKeyDataType(dimLevel21, \"String_Node_Str\"), DataType.INTEGER_TYPE);\n resultSet[0].seek(0);\n assertEquals(resultSet[0].getLevelKeyValue(0)[0], new Integer(1));\n assertEquals(resultSet[0].getAggregationValue(0), new Double(6));\n resultSet[0].seek(1);\n assertEquals(resultSet[0].getLevelKeyValue(0)[0], new Integer(2));\n assertEquals(resultSet[0].getAggregationValue(0), new Double(22));\n assertEquals(resultSet[1].length(), 8);\n assertEquals(resultSet[1].getAggregationDataType(0), DataType.DOUBLE_TYPE);\n assertEquals(resultSet[1].getLevelIndex(dimLevel31), 0);\n assertEquals(resultSet[1].getLevelKeyDataType(dimLevel31, \"String_Node_Str\"), DataType.INTEGER_TYPE);\n resultSet[1].seek(0);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(1));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(0));\n resultSet[1].seek(1);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(2));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(1));\n resultSet[1].seek(2);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(3));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(2));\n resultSet[1].seek(3);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(4));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(3));\n resultSet[1].seek(4);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(5));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(4));\n resultSet[1].seek(5);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(6));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(5));\n resultSet[1].seek(6);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(7));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(6));\n resultSet[1].seek(7);\n assertEquals(resultSet[1].getLevelKeyValue(0)[0], new Integer(8));\n assertEquals(resultSet[1].getAggregationValue(0), new Double(7));\n closeResultSets(resultSet);\n}\n"
|
"private void editOrderXML_crawlerTraps(Domain d) throws ArgumentNotValid {\n List<String> crawlerTraps = d.getCrawlerTraps();\n if (crawlerTraps.size() == 0) {\n return;\n }\n String filterMapXpath = HeritrixTemplate.EXCLUDE_FILTER_MAP_XPATH;\n Node filterMapNode = orderXMLdoc.selectSingleNode(filterMapXpath);\n if (filterMapNode == null || !(filterMapNode instanceof Element)) {\n throw new PermissionDenied(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n Element filterMap = (Element) filterMapNode;\n int count = 0;\n for (String trap : crawlerTraps) {\n Element filter = filterMap.addElement(\"String_Node_Str\");\n filter.addAttribute(\"String_Node_Str\", d.getName() + count);\n filter.addAttribute(\"String_Node_Str\", \"String_Node_Str\");\n Element enabled = filter.addElement(\"String_Node_Str\");\n enabled.addAttribute(\"String_Node_Str\", \"String_Node_Str\");\n enabled.addText(\"String_Node_Str\");\n Element ifMatchReturn = filter.addElement(\"String_Node_Str\");\n ifMatchReturn.addAttribute(\"String_Node_Str\", \"String_Node_Str\");\n ifMatchReturn.addText(\"String_Node_Str\");\n Element regexp = filter.addElement(\"String_Node_Str\");\n regexp.addAttribute(\"String_Node_Str\", \"String_Node_Str\");\n regexp.addText(trap);\n count++;\n }\n}\n"
|
"private BodyConsumer deployApplication(final HttpResponder responder, final Id.Namespace namespace, final String appId, final String archiveName, final String configString) throws IOException {\n Location namespaceHomeLocation = namespacedLocationFactory.get(namespace);\n if (!namespaceHomeLocation.exists()) {\n String msg = String.format(\"String_Node_Str\", namespaceHomeLocation, namespace.getId());\n LOG.error(msg);\n responder.sendString(HttpResponseStatus.NOT_FOUND, msg);\n return null;\n }\n if (archiveName == null || archiveName.isEmpty()) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, String.format(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", ARCHIVE_NAME_HEADER, HttpHeaders.Names.CONTENT_TYPE, MediaType.APPLICATION_JSON), ImmutableMultimap.of(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.CLOSE));\n return null;\n }\n final Id.Artifact artifactId;\n try {\n artifactId = Id.Artifact.parse(namespace, archiveName);\n } catch (IllegalArgumentException e) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, e.getMessage());\n return null;\n }\n String namespacesDir = configuration.get(Constants.Namespace.NAMESPACES_DIR);\n File localDataDir = new File(configuration.get(Constants.CFG_LOCAL_DATA_DIR));\n File namespaceBase = new File(localDataDir, namespacesDir);\n File tempDir = new File(new File(namespaceBase, namespace.getId()), configuration.get(Constants.AppFabric.TEMP_DIR)).getAbsoluteFile();\n if (!DirUtils.mkdirs(tempDir)) {\n throw new IOException(\"String_Node_Str\" + tempDir);\n }\n return new AbstractBodyConsumer(File.createTempFile(\"String_Node_Str\", \"String_Node_Str\", tempDir)) {\n protected void onFinish(HttpResponder responder, File uploadedFile) {\n try {\n applicationLifecycleService.deployAppAndArtifact(namespace, appId, artifactId, uploadedFile, configString, createProgramTerminator());\n responder.sendString(HttpResponseStatus.OK, \"String_Node_Str\");\n } catch (InvalidArtifactException e) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, e.getMessage());\n } catch (ArtifactAlreadyExistsException e) {\n responder.sendString(HttpResponseStatus.CONFLICT, String.format(\"String_Node_Str\" + \"String_Node_Str\", artifactId));\n } catch (WriteConflictException e) {\n LOG.warn(\"String_Node_Str\", artifactId, e);\n responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR, \"String_Node_Str\" + \"String_Node_Str\");\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", e);\n responder.sendString(HttpResponseStatus.BAD_REQUEST, e.getMessage());\n }\n }\n };\n}\n"
|
"public boolean isIncludeRoot() {\n if (isApplicationJSON()) {\n return includeRoot;\n }\n return true;\n}\n"
|
"public void testDeployApplicationInNamespace() throws Exception {\n Id.Namespace namespace = createNamespace(\"String_Node_Str\");\n ClientConfig clientConfig = new ClientConfig.Builder(getClientConfig()).build();\n deployApplication(namespace, TestApplication.class);\n ClientConfig defaultClientConfig = new ClientConfig.Builder(getClientConfig()).build();\n Assert.assertEquals(0, new ApplicationClient(defaultClientConfig).list(Id.Namespace.DEFAULT).size());\n ApplicationClient applicationClient = new ApplicationClient(clientConfig);\n Assert.assertEquals(TestApplication.NAME, applicationClient.list(namespace).get(0).getName());\n applicationClient.delete(Id.Application.from(namespace, TestApplication.NAME));\n Assert.assertEquals(0, new ApplicationClient(clientConfig).list(namespace).size());\n}\n"
|
"protected String getRelativeRequestURI(Command command) {\n List<String> argumentList = command.getArgumentList();\n throwExceptionIfArguementIsEmpty(argumentList);\n String uri = \"String_Node_Str\";\n String OPTION_FN = CommandOption.ENTITY_SEARCH_FN.getOption();\n String OPTION_HANDLE = CommandOption.ENTITY_SEARCH_HANDLE.getOption();\n if (isPrefixedArgument(argumentList.get(0), OPTION_FN + PARAM_SEPARATOR)) {\n String argumentWithoutPrefix = removePrefix(argumentList.get(0), OPTION_FN);\n argumentWithoutPrefix = urlEncode(argumentWithoutPrefix);\n uri = uri + OPTION_FN + PARAM_SEPARATOR + argumentWithoutPrefix;\n } else if (isPrefixedArgument(argumentList.get(0), OPTION_HANDLE + PARAM_SEPARATOR)) {\n uri = uri + OPTION_HANDLE + PARAM_SEPARATOR + removePrefix(argumentList.get(0), OPTION_HANDLE);\n } else {\n throw new ServiceException(\"String_Node_Str\");\n }\n return uri;\n}\n"
|
"public void initializeApplication(ApplicationDefinition oldAppDef, ApplicationDefinition appDef) {\n checkServiceState();\n Tenant tenant = Tenant.getTenant(appDef);\n m_olap.createApplication(tenant, appDef.getAppName());\n}\n"
|
"private void getGroupRoundData() {\n for (Map.Entry<String, PublicGroupDataModel> entry : trackedGroups.entrySet()) {\n try {\n wrap.groupRound(idMap.get(entry.getKey()), round, entry.getValue());\n } catch (NullPointerException ex) {\n logger.log(Level.WARNING, \"String_Node_Str\" + \"String_Node_Str\", new Object[] { entry.getValue().getName(), round });\n }\n }\n}\n"
|
"protected IStatus run(IProgressMonitor monitor) {\n senatorList.clear();\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n selectedCongress = congresses[sCmbCongress.getSelectionIndex()];\n }\n });\n try {\n ArrayList<String> temp = new ArrayList<String>();\n temp.add(0, \"String_Node_Str\");\n temp.add(1, \"String_Node_Str\");\n temp.add(2, \"String_Node_Str\");\n temp.add(3, \"String_Node_Str\");\n if (selectedCongress.equals(\"String_Node_Str\")) {\n for (String s : allSenators) temp.add(s);\n } else {\n if (previousSelectedCongress.isEmpty() || !previousSelectedCongress.equals(selectedCongress) || null == availabileSenators || availabileSenators.length == 0) {\n availabileSenators = AvailableRecords.getSenators(selectedCongress);\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n if (selectedSenators != null)\n selectedSenators.clear();\n senatorTable.removeAll();\n }\n });\n }\n for (String s : availabileSenators) temp.add(s);\n }\n senatorList.addAll(temp);\n if (selectedSenators != null)\n senatorList.removeAll(selectedSenators);\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n listDialog.refresh(senatorList.toArray());\n }\n });\n previousSelectedCongress = selectedCongress;\n } catch (final IOException exception) {\n ConsoleView.printlInConsole(exception.toString());\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n ErrorDialog.openError(Display.getDefault().getActiveShell(), \"String_Node_Str\", \"String_Node_Str\", new Status(IStatus.ERROR, CommonUiActivator.PLUGIN_ID, \"String_Node_Str\"));\n }\n });\n }\n return Status.OK_STATUS;\n}\n"
|
"public boolean performFinish() {\n if (!canFinish())\n return false;\n if (useTransaction) {\n Utility.getCommandStack().startTrans(CREATE_DATA_SET_TRANS_NAME);\n }\n dataSetHandle = dataSetPage.createSelectedDataSet();\n if (dataSetHandle != null) {\n if (dataSetHandle instanceof ScriptDataSetHandle) {\n columnDefPage.saveResult(dataSetHandle);\n }\n if (useTransaction) {\n Utility.getCommandStack().commit();\n }\n try {\n createSelectedDataSetTearDown(dataSetHandle);\n DataSetUIUtil.updateColumnCache(dataSetHandle, false);\n } catch (Exception e) {\n if (e instanceof SWTException) {\n SWTException swtException = (SWTException) e;\n if (swtException.code == SWT.ERROR_WIDGET_DISPOSED)\n Utility.log(e);\n }\n Throwable cause = e.getCause();\n if (cause != null && (cause instanceof org.eclipse.birt.data.engine.core.DataException)) {\n Logger logger = Logger.getLogger(DefaultDataSetWizard.class.getName());\n logger.log(Level.WARNING, e.getLocalizedMessage(), e);\n } else {\n ExceptionHandler.handle(e);\n }\n }\n } else {\n if (useTransaction) {\n Utility.getCommandStack().rollback();\n }\n return false;\n }\n return true;\n}\n"
|
"private void duplicateSingleVersionItem(final Item item, final IPath path, final String newName) {\n RepositoryWorkUnit<Object> rwu = new RepositoryWorkUnit<Object>(this.getText(), this) {\n protected void run() throws LoginException, PersistenceException {\n try {\n final Item newItem = factory.copy(item, path, true);\n newItem.getProperty().setLabel(newName);\n newItem.getProperty().setDisplayName(newName);\n if (newItem instanceof RoutineItem) {\n synDuplicatedRoutine((RoutineItem) newItem);\n }\n ICamelDesignerCoreService service = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ICamelDesignerCoreService.class)) {\n service = (ICamelDesignerCoreService) GlobalServiceRegister.getDefault().getService(ICamelDesignerCoreService.class);\n }\n if (service != null && service.isInstanceofCamelBeans(item)) {\n synDuplicatedBean(newItem);\n }\n if (newItem instanceof ProcessItem) {\n RelationshipItemBuilder.getInstance().addOrUpdateItem(newItem);\n }\n if (newItem instanceof ConnectionItem) {\n ConnectionItem connectionItem = (ConnectionItem) newItem;\n connectionItem.getConnection().getSupplierDependency().clear();\n }\n factory.save(newItem);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n }\n }\n };\n IRunnableWithProgress iRunnableWithProgress = new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n try {\n ISchedulingRule schedulingRule = workspace.getRoot();\n workspace.run(op, schedulingRule, IWorkspace.AVOID_UPDATE, monitor);\n } catch (CoreException e) {\n throw new InvocationTargetException(e);\n }\n }\n };\n try {\n new ProgressMonitorDialog(null).run(false, false, iRunnableWithProgress);\n } catch (InvocationTargetException e) {\n ExceptionHandler.process(e);\n } catch (InterruptedException e) {\n }\n}\n"
|
"public ResourceLocation checkVampireTexture(Entity entity, ResourceLocation loc) {\n if (entity instanceof AbstractClientPlayer) {\n if (Configs.modify_vampire_player_texture && VampirePlayer.get((EntityPlayer) entity).getLevel() > 0) {\n ResourceLocation vamp = new ResourceLocation(\"String_Node_Str\" + loc.getResourcePath());\n TextureHelper.createVampireTexture((EntityLivingBase) entity, loc, vamp);\n return vamp;\n }\n } else if (entity instanceof EntityCreature) {\n if (VampireMob.get((EntityCreature) entity).isVampire()) {\n ResourceLocation vamp = new ResourceLocation(\"String_Node_Str\" + loc.hashCode());\n TextureHelper.createVampireTexture((EntityLiving) entity, loc, vamp);\n return vamp;\n }\n }\n return loc;\n}\n"
|
"private void sendEventToSync(WorkerDoneEvent event) throws IOException, InterruptedException {\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + WorkerDoneEvent.class.getSimpleName() + \"String_Node_Str\"));\n }\n getSyncOutput().publishEvent(event);\n}\n"
|
"private void setVersion(int version) {\n mVersion = version;\n if (mGeofenceHardwareSink != null) {\n mGeofenceHardwareSink.setVersion(version);\n }\n}\n"
|
"private void checkMaxima(Comparable<Comparable<?>> theValue, Ranges evaluatedRanges) {\n Comparable<?>[] extremas = evaluatedRanges.getStrongTypedMax();\n if (extremas == null || extremas.length == 0)\n return;\n Comparable<?> violated = null;\n for (Comparable<?> extrema : extremas) {\n if (theValue.compareTo(extrema) <= 0) {\n violates = false;\n break;\n }\n }\n if (violates)\n throw new IllegalArgumentException(spaceId + \"String_Node_Str\" + theValue + \"String_Node_Str\" + paramId + \"String_Node_Str\" + extremas[0] + \"String_Node_Str\");\n}\n"
|
"public Axis1D getOrthogonalAxis() {\n return parent.getOrthogonalAxis(this.layout.getAxis());\n}\n"
|
"private static void fireResizedImpl() {\n if (resizeHandlersInitialized) {\n int width = getClientWidth();\n int height = getClientHeight();\n if (lastResizeWidth != width || lastResizeHeight != height) {\n lastResizeWidth = width;\n lastResizeHeight = height;\n ResizeEvent.fire(getHandlers(), width, height);\n }\n }\n}\n"
|
"public void updateHeader(String id, String currTitle, boolean isHide) {\n final TableViewerCreatorColumnNotModifiable funColumn = getTableViewerCreator().getColumn(id);\n if (isHide) {\n final TableEditorContentNotModifiable tableEditorContent = funColumn.getTableEditorContent();\n if (tableEditorContent != null && tableEditorContent instanceof CheckboxTableEditorContent) {\n funColumn.setTableEditorContent(null);\n }\n funColumn.getTableColumn().setText(\"String_Node_Str\");\n funColumn.getTableColumn().setWidth(0);\n funColumn.setWidth(0);\n funColumn.getTableColumn().setResizable(false);\n funColumn.setMoveable(false);\n if ((id.equals(ID_COLUMN_FUNCTION) && getTableViewerCreator().getColumn(ID_COLUMN_PARAMETER).getTableColumn().getWidth() == 0) || ((id.equals(ID_COLUMN_PARAMETER)) && getTableViewerCreator().getColumn(ID_COLUMN_FUNCTION).getTableColumn().getWidth() == 0)) {\n funCom.setVisible(false);\n }\n if (id.equals(ID_COLUMN_PREVIEW)) {\n preCom.setVisible(false);\n }\n getTableViewerCreator().refreshTableEditorControls();\n } else {\n final TableEditorContentNotModifiable tableEditorContent = funColumn.getTableEditorContent();\n if (tableEditorContent == null && (funColumn.getId().equals(ID_COLUMN_KEY) || funColumn.getId().equals(ID_COLUMN_NULLABLE))) {\n final CheckboxTableEditorContent checkboxTableEditorContent = new CheckboxTableEditorContent();\n checkboxTableEditorContent.setToolTipText(currTitle);\n checkboxTableEditorContent.createTableEditor(getTable());\n funColumn.setTableEditorContent(checkboxTableEditorContent);\n }\n funColumn.setModifiable(!isReadOnly());\n funColumn.setMinimumWidth(35);\n funColumn.getTableColumn().setWidth(65);\n funColumn.getTableColumn().setText(currTitle);\n funColumn.getTableColumn().setResizable(true);\n funColumn.setTitle(currTitle);\n funColumn.setMoveable(true);\n if (id.equals(ID_COLUMN_FUNCTION) || id.equals(ID_COLUMN_PARAMETER)) {\n funCom.setVisible(true);\n }\n if (id.equals(ID_COLUMN_PREVIEW)) {\n preCom.setVisible(true);\n }\n getTableViewerCreator().refreshTableEditorControls();\n }\n attachLabelPosition();\n}\n"
|
"public void scan(final ProcessAnnotatedType<Object> event) {\n AnnotatedType<Object> originalType = event.getAnnotatedType();\n AnnotatedType<Object> newType;\n List<AnnotatedMethod> obsoleteMethods = new ArrayList<AnnotatedMethod>();\n List<AnnotatedMethod> replacementMethods = new ArrayList<AnnotatedMethod>();\n for (AnnotatedMethod<?> method : getOrderedMethods(originalType)) {\n for (AnnotatedParameter<?> param : method.getParameters()) {\n if (param.isAnnotationPresent(Observes.class)) {\n Set<Type> typeClosure = param.getTypeClosure();\n for (Type type : typeClosure) {\n if (type instanceof Class) {\n if (Annotations.isAnnotationPresent((Class<?>) type, BusEvent.class)) {\n replacementMethods.add(qualifyObservedEvent(method, param));\n obsoleteMethods.add(method);\n break;\n }\n } else if (type instanceof ParameterizedType) {\n Type rawType = ((ParameterizedType) type).getRawType();\n if (rawType instanceof Class) {\n if (((Class<?>) rawType).isAnnotationPresent(BusEvent.class)) {\n replacementMethods.add(qualifyObservedEvent(method, param));\n obsoleteMethods.add(method);\n break;\n }\n }\n }\n }\n }\n }\n }\n newType = removeMethodsFromType(originalType, obsoleteMethods);\n newType = addReplacementMethodsToType(newType, replacementMethods);\n event.setAnnotatedType(newType);\n}\n"
|
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n checkFuture();\n if (mDateItem.shouldShowYearFirst())\n mYear.performClick();\n else\n mDate.performClick();\n}\n"
|
"private void sendPingMessage(WebSocketSession session, TextMessage pingMessage) {\n try {\n session.sendMessage(pingMessage);\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n}\n"
|
"public void loadDefaultClasses() {\n ConfigUtils.addMissingNodes(config, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"private ConnectorObjectBuilder buildConnectorObject(Set<WSAttributeValue> attributes) {\n ConnectorObjectBuilder bld = new ConnectorObjectBuilder();\n String uid = null;\n for (WSAttributeValue attribute : attributes) {\n if (attribute.isKey()) {\n uid = attribute.getStringValue();\n bld.setName(uid);\n bld.addAttribute(AttributeBuilder.build(attribute.getName(), attribute.getValues()));\n }\n if (!attribute.isKey() && !attribute.isPassword()) {\n if (attribute.getValue() == null) {\n bld.addAttribute(AttributeBuilder.build(attribute.getName()));\n } else {\n bld.addAttribute(AttributeBuilder.build(attribute.getName(), attribute.getValue()));\n }\n }\n }\n if (uid == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n bld.setUid(new Uid(uid));\n bld.setObjectClass(ObjectClass.ACCOUNT);\n return bld;\n}\n"
|
"public void putToMap(Map map, Object key, Object value) {\n if (clustered) {\n ILock lock = null;\n try {\n IMap imap = (IMap) map;\n lock = acquireDistributedLock(imap.getName());\n imap.set(key, value);\n } finally {\n releaseDistributedLock(lock);\n }\n } else {\n map.put(key, value);\n }\n}\n"
|
"public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, HttpServletRequest request) throws SQLException, AuthorizeException, IOException {\n if (request.getParameter(\"String_Node_Str\") != null || request.getParameter(\"String_Node_Str\") != null) {\n WorkflowRequirementsManager.addClaimedUser(c, wfi, step, c.getCurrentUser());\n return new ActionResult(ActionResult.TYPE.TYPE_OUTCOME, ActionResult.OUTCOME_COMPLETE);\n } else {\n return new ActionResult(ActionResult.TYPE.TYPE_CANCEL);\n }\n}\n"
|
"protected void thisMustFail() throws Throwable {\n E byKey = ds.getByKey(E.class, save);\n}\n"
|
"public int dealDamage(GameCharacter target) {\n int totalDamage = 0, totalPhysicalDamage = 0, totalMagicalDamage = 0;\n double elementalDamageModifier = getWeaponElement().getDamageModifierAgainst(target.getArmorElement());\n int basePhysicalDamage = (int) getTotalStat(ATK);\n if (GameMath.checkChance((int) getTotalStat(CRIT))) {\n basePhysicalDamage *= atkCritDmg;\n }\n int physicalDamageAfterReduction = (int) (((100 - target.getTotalStat(ARM)) * basePhysicalDamage) / 100.0 - target.getTotalStat(DEF) + GameMath.random(baseLevel));\n totalPhysicalDamage = (int) (elementalDamageModifier * physicalDamageAfterReduction);\n totalDamage = totalPhysicalDamage + totalMagicalDamage;\n totalDamage = Math.max(totalDamage, 0);\n target.hp -= totalDamage;\n return totalDamage;\n}\n"
|
"protected boolean isActive(TriggerGenericData trigger) {\n boolean result = super.isActive(trigger);\n if (checked) {\n return result;\n }\n result = false;\n float target = 0;\n int value = 0;\n Party party = (Party) parent;\n TriggerGeneric.TargetType targetType = trigger.getType();\n switch(targetType) {\n case PARTY_CREATED:\n return party.isCreated();\n case PARTY_MEMBERS_KILLED:\n short unknown = (short) trigger.getUserData(\"String_Node_Str\");\n value = (int) trigger.getUserData(\"String_Node_Str\");\n break;\n case PARTY_MEMBERS_CAPTURED:\n value = (int) trigger.getUserData(\"String_Node_Str\");\n break;\n case PARTY_MEMBERS_INCAPACITATED:\n unknown = (short) trigger.getUserData(\"String_Node_Str\");\n value = (int) trigger.getUserData(\"String_Node_Str\");\n break;\n }\n TriggerGeneric.ComparisonType comparisonType = trigger.getComparison();\n if (comparisonType != null && comparisonType != TriggerGeneric.ComparisonType.NONE) {\n result = compare(target, comparisonType, value);\n }\n return result;\n}\n"
|
"public static IMessageProvider getMessageProvider(ContentResolver contentResolver) {\n if (mProvider == null) {\n mProvider = new SmsMessageProvider(context, contentResolver);\n }\n return mProvider;\n}\n"
|
"public void pauseTrigger(TriggerKey triggerKey) throws SchedulerException {\n invoke(\"String_Node_Str\", new Object[] { triggerKey }, new String[] { TriggerKey.class.getName() });\n}\n"
|
"private void verify123() {\n NavigableMap<byte[], NavigableMap<Long, byte[]>> rowFromGet = InMemoryTableService.get(\"String_Node_Str\", new byte[] { 1 }, new Transaction(1L, 2L, new long[0], new long[0], 1L));\n Assert.assertEquals(1, rowFromGet.size());\n Assert.assertArrayEquals(new byte[] { 2 }, rowFromGet.firstEntry().getKey());\n Assert.assertArrayEquals(new byte[] { 3 }, rowFromGet.firstEntry().getValue().get(1L));\n}\n"
|
"String getValueCodeInstanciation() {\n if (AnnotationFieldKind.ANNOTATION.equals(this.kind)) {\n return \"String_Node_Str\";\n } else if (isArray) {\n return String.format(\"String_Node_Str\", TypeHelper.rawTypeFrom(type.toString()), Joiner.on(\"String_Node_Str\").join((List) value));\n } else {\n return \"String_Node_Str\" + kind.transformSingleValueToExpression(value, this);\n }\n}\n"
|
"public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {\n this.func_146276_q_();\n int spaceAvailable = this.field_146295_m - 38 - 20;\n int spaceRequired = Math.min(spaceAvailable, 10 + 6 * 10 + missingItems.size());\n int offset = 10 + (spaceAvailable - spaceRequired) / 2;\n this.func_73732_a(this.field_146289_q, \"String_Node_Str\", this.field_146294_l / 2, offset, 0xFFFFFF);\n offset += 10;\n this.func_73732_a(this.field_146289_q, String.format(\"String_Node_Str\", missingItems.size()), this.field_146294_l / 2, offset, 0xFFFFFF);\n offset += 10;\n this.func_73732_a(this.field_146289_q, \"String_Node_Str\", this.field_146294_l / 2, offset, 0xFFFFFF);\n super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);\n}\n"
|
"private final void checkLandmarks(ISPosition2D startPos, short startPartition, EDirection startDirection) {\n EDirection blockedDir = startDirection;\n ISPosition2D blocked = blockedDir.getNextHexPoint(startPos);\n ISPosition2D currBase = startPos;\n LinkedList<ISPosition2D> blockedBorder = new LinkedList<ISPosition2D>();\n blockedBorder.add(blocked);\n for (byte i = 0; i < EDirection.NUMBER_OF_DIRECTIONS; i++) {\n EDirection neighborDir = blockedDir.getNeighbor(-1);\n ISPosition2D neighborPos = neighborDir.getNextHexPoint(currBase);\n if (!grid.isInBounds(neighborPos.getX(), neighborPos.getY())) {\n takeOverBlockedLand(blockedBorder, startPartition);\n break;\n } else if (grid.isBlocked(neighborPos.getX(), neighborPos.getY())) {\n blocked = neighborPos;\n if (blocked.equals(blockedBorder.getFirst())) {\n takeOverBlockedLand(blockedBorder, startPartition);\n break;\n } else {\n blockedDir = neighborDir;\n blockedBorder.add(blocked);\n i = 0;\n }\n } else if (grid.getPartitionAt(neighborPos.getX(), neighborPos.getY()) == startPartition) {\n currBase = neighborPos;\n blockedDir = EDirection.getDirection(currBase, blocked);\n i = 0;\n if (neighborPos.equals(startPos)) {\n takeOverBlockedLand(blockedBorder, startPartition);\n break;\n }\n } else {\n break;\n }\n }\n}\n"
|
"private Project buildProject() {\n Project topLinkProject = new Project();\n topLinkProject.setName(\"String_Node_Str\");\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWAttributeHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWMethodHandle.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWTableHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWColumnHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWReferenceHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.QName.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWNamedSchemaComponentHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWDescriptorHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWMappingHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWDescriptorQueryParameterHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWQueryableHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWLoginSpecHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWColumnPairHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWQueryKeyHandle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWClass.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWClassAttribute.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWClassRepository.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWMethod.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWTypeDeclaration.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.meta.MWMethodParameter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWDatabase.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWColumn.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWColumnPair.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWLoginSpec.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWEisLoginSpec.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWProperty.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWReference.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.db.MWTable.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.MWXmlSchemaRepository.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.MWXmlSchema.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.MWXmlSchema.BuiltInNamespace.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.MWNamespace.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.AbstractSchemaComponent.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.AbstractNamedSchemaComponent.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitAttributeDeclaration.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitElementDeclaration.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitSchemaTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitComplexTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitSimpleTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ModelGroupDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.SchemaComponentReference.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedModelGroup.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedSchemaTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedComplexTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedSimpleTypeDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedAttributeDeclaration.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ReferencedElementDeclaration.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.AbstractParticle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ExplicitModelGroup.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.NullParticle.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.Wildcard.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.Content.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.ComplexContent.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.EmptyContent.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.SimpleContent.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.IdentityConstraintDefinition.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.IdentityConstraint.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.KeyIdentityConstraint.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.KeyRefIdentityConstraint.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.schema.UniqueIdentityConstraint.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.resource.ResourceSpecification.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.resource.ClasspathResourceSpecification.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.resource.FileResourceSpecification.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.resource.UrlResourceSpecification.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.MWProject.buildLegacy60Descriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.MWProjectDefaultsPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.MWTransactionalProjectCachingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.relational.MWRelationalProject.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.relational.MWSequencingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.relational.MWRelationalProjectDefaultsPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.relational.MWTableGenerationPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWXmlProject.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWOXProject.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWEisProject.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWOXProjectDefaultsPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.project.xml.MWEisProjectDefaultsPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.xml.MWXmlField.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWMappingDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWRefreshCachePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWAbstractTransactionalPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorCopyPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorInstantiationPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorLockingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorAfterLoadingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorCachingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorCacheExpiry.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorEventsPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorInterfaceAliasPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWAbstractClassIndicatorPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWClassIndicatorFieldPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWClassIndicatorExtractionMethodPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWClassIndicatorValue.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.MWDescriptorInheritancePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalClassDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWTableDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalTransactionalPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalPrimaryKeyPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWUserDefinedQueryKey.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalDescriptorInheritancePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalClassIndicatorFieldPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWInterfaceDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWAggregateDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWTableDescriptorLockingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWDescriptorMultiTableInfoPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWSecondaryTableHolder.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalReturningPolicyInsertFieldReturnOnlyFlag.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.relational.MWRelationalReturningPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWXmlDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWCompositeEisDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWRootEisDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWOXDescriptor.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWEisTransactionalPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWXmlPrimaryKeyPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWOXDescriptorInheritancePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWEisDescriptorInheritancePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWXmlClassIndicatorFieldPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWEisDescriptorLockingPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWEisReturningPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.descriptor.xml.MWEisReturningPolicyInsertFieldReturnOnlyFlag.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWDefaultNullValuePolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWTypeConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWObjectTypeConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWObjectTypeConverter.ValuePair.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWSerializedObjectConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWTypeConversionConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWAbstractReferenceMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWTransformationMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWFieldTransformerAssociation.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWTransformer.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWMethodBasedTransformer.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWClassBasedTransformer.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWContainerPolicy.MWContainerPolicyRoot.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.DefaultingContainerClass.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWCollectionContainerPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWListContainerPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWSetContainerPolicy.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWMapContainerPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWDirectMapContainerPolicy.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWDirectMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.MWDirectContainerMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalDirectMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWDirectToFieldMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWDirectToXmlTypeMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWVariableOneToOneMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWColumnQueryKeyPair.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWAbstractTableReferenceMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWOneToOneMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWOneToManyMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWCollectionMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWCollectionOrdering.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWManyToManyMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalDirectCollectionMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalDirectContainerMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalDirectMapMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalTransformationMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalFieldTransformerAssociation.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWAggregateMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWAggregatePathToColumn.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.relational.MWRelationalTypeConversionConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlDirectMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWAbstractXmlDirectCollectionMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlDirectCollectionMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWAbstractAnyMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWAnyObjectMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWAnyCollectionMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWAbstractCompositeMapping.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWCompositeObjectMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWCompositeCollectionMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlTransformationMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlFieldTransformerAssociation.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlFieldPair.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWEisOneToOneMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWEisReferenceMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWEisOneToManyMapping.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.mapping.xml.MWXmlTypeConversionConverter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.MWQueryManager.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.MWAbstractQuery.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.MWAbstractReadQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.MWQueryParameter.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWAbstractRelationalReadQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWRelationalReadAllQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWRelationalSpecificQueryOptions.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWRelationalReadObjectQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWReportQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWReportAttributeItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWAttributeItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWGroupingItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWOrderingItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWBatchReadItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWJoinedItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWReportOrderingItem.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWArgument.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWNullArgument.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWAutoGeneratedQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWBasicExpression.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWCompoundExpression.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWEJBQLQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWExpression.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWExpressionQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWLiteralArgument.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWQueryableArgument.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWQueryableArgumentElement.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWRelationalQueryManager.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWQueryParameterArgument.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWSQLQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.relational.MWStringQueryFormat.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWEisQueryManager.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWAbstractEisReadQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWEisReadAllQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWEisReadObjectQuery.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWEisInteraction.buildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.query.xml.MWEisInteraction.ArgumentPair.buildDescriptor());\n return topLinkProject;\n}\n"
|
"public List<ApplicationRecord> getApps(final NamespaceId namespace, com.google.common.base.Predicate<ApplicationRecord> predicate) throws Exception {\n List<ApplicationRecord> appRecords = new ArrayList<>();\n Set<ApplicationId> appIds = new HashSet<>();\n for (ApplicationSpecification appSpec : store.getAllApplications(namespace)) {\n appIds.add(namespace.app(appSpec.getName(), appSpec.getAppVersion()));\n }\n for (ApplicationId appId : appIds) {\n ApplicationSpecification appSpec = store.getApplication(appId);\n if (appSpec == null) {\n continue;\n }\n ArtifactId artifactId = appSpec.getArtifactId();\n ArtifactSummary artifactSummary = artifactId == null ? new ArtifactSummary(appSpec.getName(), null) : ArtifactSummary.from(artifactId);\n ApplicationRecord record = new ApplicationRecord(artifactSummary, appId, appSpec.getDescription(), ownerAdmin.getOwnerPrincipal(appId));\n if (predicate.apply(record)) {\n appRecords.add(record);\n }\n }\n Principal principal = authenticationContext.getPrincipal();\n final Predicate<EntityId> filter = authorizationEnforcer.createFilter(principal);\n return Lists.newArrayList(Iterables.filter(appRecords, new com.google.common.base.Predicate<ApplicationRecord>() {\n public boolean apply(ApplicationRecord appRecord) {\n return filter.apply(namespace.app(appRecord.getName()));\n }\n }));\n}\n"
|
"public void receive_request(ServerRequestInfo ri) throws ForwardRequest {\n SecurityContext seccontext = null;\n ServiceContext sc = null;\n int status = 0;\n boolean raise_no_perm = false;\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\" + prname + \"String_Node_Str\");\n }\n ORB orb = orbHelper.getORB();\n try {\n sc = ri.get_request_service_context(SECURITY_ATTRIBUTE_SERVICE_ID);\n if (sc == null) {\n handle_null_service_context(ri, orb);\n return;\n }\n } catch (org.omg.CORBA.BAD_PARAM e) {\n handle_null_service_context(ri, sc, orb);\n return;\n }\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n Any SasAny;\n try {\n SasAny = codec.decode_value(sc.context_data, SASContextBodyHelper.type());\n } catch (Exception e) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", e);\n throw new SecurityException(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n }\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n SASContextBody sasctxbody = SASContextBodyHelper.extract(SasAny);\n short sasdiscr = sasctxbody.discriminator();\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\" + SvcContextUtils.getMsgname(sasdiscr) + \"String_Node_Str\");\n }\n if (sasdiscr == MTMessageInContext.value) {\n sasctxbody = createContextError(SvcContextUtils.MessageInContextMinor);\n sc = createSvcContext(sasctxbody, orb);\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n ri.add_reply_service_context(sc, NO_REPLACE);\n throw new NO_PERMISSION();\n }\n if (sasdiscr != MTEstablishContext.value) {\n _logger.log(Level.SEVERE, \"String_Node_Str\");\n throw new SecurityException(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n }\n EstablishContext ec = sasctxbody.establish_msg();\n seccontext = new SecurityContext();\n seccontext.subject = new Subject();\n try {\n if (ec.client_authentication_token.length != 0) {\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n createAuthCred(seccontext, ec.client_authentication_token, orb);\n }\n } catch (Exception e) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", e);\n throw new SecurityException(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n }\n try {\n if (ec.identity_token != null) {\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n createIdCred(seccontext, ec.identity_token);\n }\n } catch (SecurityException secex) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", secex);\n sasctxbody = createContextError(INVALID_MECHANISM_MAJOR, INVALID_MECHANISM_MINOR);\n sc = createSvcContext(sasctxbody, orb);\n ri.add_reply_service_context(sc, NO_REPLACE);\n throw new NO_PERMISSION();\n } catch (Exception e) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", e);\n throw new SecurityException(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n }\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n status = secContextUtil.setSecurityContext(seccontext, ri.object_id(), ri.operation(), getServerSocket());\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\" + status);\n }\n if (status == SecurityContextUtil.STATUS_FAILED) {\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n sasctxbody = createContextError(status);\n sc = createSvcContext(sasctxbody, orb);\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n ri.add_reply_service_context(sc, NO_REPLACE);\n throw new NO_PERMISSION();\n }\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n sasctxbody = createCompleteEstablishContext(status);\n sc = createSvcContext(sasctxbody, orb);\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\");\n }\n ri.add_reply_service_context(sc, NO_REPLACE);\n}\n"
|
"public void init() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n String errorText = \"String_Node_Str\";\n if (policyResources != null && policyResources.size() > 0 && serviceDef != null) {\n Set<String> policyResourceKeySet = policyResources.keySet();\n RangerServiceDefHelper serviceDefHelper = new RangerServiceDefHelper(serviceDef, false);\n Set<List<RangerResourceDef>> validResourceHierarchies = serviceDefHelper.getResourceHierarchies();\n for (List<RangerResourceDef> validResourceHierarchy : validResourceHierarchies) {\n Set<String> resourceDefNameSet = serviceDefHelper.getAllResourceNames(validResourceHierarchy);\n if ((Sets.difference(policyResourceKeySet, resourceDefNameSet)).isEmpty()) {\n firstValidResourceDefHierarchy = validResourceHierarchy;\n break;\n }\n }\n if (firstValidResourceDefHierarchy != null) {\n List<String> resourceDefNameOrderedList = serviceDefHelper.getAllResourceNamesOrdered(firstValidResourceDefHierarchy);\n boolean foundGapsInResourceSpecs = false;\n boolean skipped = false;\n for (String resourceDefName : resourceDefNameOrderedList) {\n RangerPolicyResource policyResource = policyResources.get(resourceDefName);\n if (policyResource == null) {\n skipped = true;\n } else if (skipped) {\n foundGapsInResourceSpecs = true;\n break;\n }\n }\n if (foundGapsInResourceSpecs) {\n errorText = \"String_Node_Str\";\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n firstValidResourceDefHierarchy = null;\n } else {\n matchers = new HashMap<String, RangerResourceMatcher>();\n for (RangerResourceDef resourceDef : firstValidResourceDefHierarchy) {\n String resourceName = resourceDef.getName();\n RangerPolicyResource policyResource = policyResources.get(resourceName);\n if (policyResource != null) {\n RangerResourceMatcher matcher = createResourceMatcher(resourceDef, policyResource);\n if (matcher != null) {\n matchers.put(resourceName, matcher);\n } else {\n LOG.error(\"String_Node_Str\" + resourceName);\n }\n } else {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + resourceName + \"String_Node_Str\");\n }\n }\n }\n }\n } else {\n errorText = \"String_Node_Str\";\n }\n } else {\n errorText = \"String_Node_Str\";\n }\n if (matchers == null) {\n Set<String> policyResourceKeys = policyResources == null ? null : policyResources.keySet();\n StringBuffer sb = new StringBuffer();\n if (CollectionUtils.isNotEmpty(policyResourceKeys)) {\n for (String policyResourceKeyName : policyResourceKeys) {\n keysString += \"String_Node_Str\" + policyResourceKeyName + \"String_Node_Str\";\n }\n }\n String serviceDefName = serviceDef == null ? \"String_Node_Str\" : serviceDef.getName();\n String validHierarchy = \"String_Node_Str\";\n if (CollectionUtils.isNotEmpty(firstValidResourceDefHierarchy)) {\n RangerServiceDefHelper serviceDefHelper = new RangerServiceDefHelper(serviceDef, false);\n List<String> resourceDefNameOrderedList = serviceDefHelper.getAllResourceNamesOrdered(firstValidResourceDefHierarchy);\n for (String resourceDefName : resourceDefNameOrderedList) {\n validHierarchy += \"String_Node_Str\" + resourceDefName + \"String_Node_Str\";\n }\n }\n LOG.warn(\"String_Node_Str\" + errorText + \"String_Node_Str\" + serviceDefName + \"String_Node_Str\" + keysString + \"String_Node_Str\" + validHierarchy + \"String_Node_Str\");\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n}\n"
|
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if (msg.what == Constant.MSG_ERROR) {\n SnackBarUtil.showSnackInfo(mTilUserId, LoginActivity.this, msg.obj.toString());\n } else {\n SnackBarUtil.showSnackInfo(mTilUserId, LoginActivity.this, \"String_Node_Str\");\n new Handler().postDelayed(new Runnable() {\n public void run() {\n SnackBarUtil.showSnackInfo(mTilUserId, LoginActivity.this, \"String_Node_Str\");\n accountManager.initAccountData(new Handler() {\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n recordManager.initRecordTypeData(new Handler() {\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n recordManager.initRecordData(new Handler() {\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n setResult(RESULT_OK);\n finish();\n }\n }, 500);\n }\n });\n }\n });\n }\n });\n }\n }, 600);\n }\n}\n"
|
"private NodeRef createOrResolveRecordFolder(Action action, NodeRef actionedUponNodeRef) {\n NodeRef context = filePlanService.getFilePlan(actionedUponNodeRef);\n if (context == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n } else if (nodeService.exists(context) == false) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n String path = (String) action.getParameterValue(PARAM_PATH);\n String[] pathValues = ArrayUtils.EMPTY_STRING_ARRAY;\n if (path != null && path.isEmpty() == false) {\n pathValues = StringUtils.tokenizeToStringArray(path, \"String_Node_Str\", false, true);\n }\n boolean create = false;\n Boolean createValue = (Boolean) action.getParameterValue(PARAM_CREATE_RECORD_PATH);\n if (createValue != null) {\n create = createValue.booleanValue();\n }\n NodeRef recordFolder = resolvePath(context, pathValues);\n if (recordFolder == null) {\n if (create) {\n NodeRef parent = resolveParent(context, pathValues, create);\n if (parent == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n if (filePlanService.isRecordCategory(parent) == false) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n String recordFolderName = pathValues[pathValues.length - 1];\n recordFolder = recordFolderService.createRecordFolder(parent, recordFolderName);\n } else {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n }\n }\n return recordFolder;\n}\n"
|
"public String[] getSupportedExtensions() {\n return new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n}\n"
|
"private void handleMasterNodeChange() {\n try {\n synchronized (clusterHasActiveMaster) {\n if (ZKUtil.watchAndCheckExists(watcher, watcher.getZNodePaths().masterAddressZNode)) {\n LOG.trace(\"String_Node_Str\");\n clusterHasActiveMaster.set(true);\n } else {\n LOG.debug(\"String_Node_Str\");\n clusterHasActiveMaster.set(false);\n clusterHasActiveMaster.notifyAll();\n }\n }\n } catch (KeeperException ke) {\n master.abort(\"String_Node_Str\", ke);\n }\n}\n"
|
"public FlowExecutionContext updateSubstitution(Application application, ApplicationEnvironment environment, Topology topology, String nodeId, String resourceTemplateId) {\n FlowExecutionContext executionContext = new FlowExecutionContext(deploymentConfigurationDao, topology, new EnvironmentContext(application, environment));\n SetMatchedPolicyModifier setMatchedPolicyModifier = new SetMatchedPolicyModifier(nodeId, resourceTemplateId);\n List<ITopologyModifier> modifierList = getModifierListWithSelectionAction(setMatchedPolicyModifier);\n flowExecutor.execute(topology, modifierList, executionContext);\n if (!setMatchedPolicyModifier.isExecuted()) {\n throw new NotFoundException(\"String_Node_Str\" + resourceTemplateId + \"String_Node_Str\" + nodeId + \"String_Node_Str\");\n }\n return executionContext;\n}\n"
|
"private Composite createBottomButtonArea(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n GridLayout gridLayout = new GridLayout();\n gridLayout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 4);\n composite.setLayout(gridLayout);\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END));\n Button expandButton = createButton(composite, 99, Messages.getString(\"String_Node_Str\"), false);\n expandButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n if (getViewer() != null) {\n getViewer().expandAll();\n }\n }\n });\n Button collapseButton = createButton(composite, 98, Messages.getString(\"String_Node_Str\"), false);\n collapseButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n if (getViewer() != null) {\n getViewer().collapseAll();\n }\n }\n });\n if (!isOnlySimpleShow() && canDeselect) {\n selectButton = createButton(composite, IDialogConstants.SELECT_ALL_ID, WorkbenchMessages.SelectionDialog_selectLabel, false);\n if (getViewerHelper() != null) {\n getViewerHelper().refreshSelectButton();\n }\n selectButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n if (getViewerHelper() != null) {\n boolean state = false;\n if (!isJobReadOnly && WorkbenchMessages.SelectionDialog_selectLabel.equals(selectButton.getText())) {\n state = true;\n }\n getViewerHelper().selectAll(state);\n }\n }\n });\n }\n return composite;\n}\n"
|
"private static void fillSynonmsForMSSQL(IMetadataConnection iMetadataConnection, List<TdColumn> metadataColumns, NamedColumnSet table, String tableName, DatabaseMetaData dbMetaData) throws SQLException {\n String str = tableName;\n String TABLE_SCHEMA = null;\n String TABLE_NAME = null;\n String splitstr = str;\n int position = 0;\n int count = 0;\n if (tableName != null) {\n while (strsplit.contains(\"String_Node_Str\")) {\n count++;\n strsplit = strsplit.substring(strsplit.indexOf(\"String_Node_Str\") + 1);\n }\n if (count > 1) {\n strsplit = str.substring(str.indexOf(\"String_Node_Str\") + 1);\n str = strsplit;\n }\n TABLE_SCHEMA = str.substring(0, str.indexOf(\"String_Node_Str\"));\n TABLE_NAME = str.substring(str.indexOf(\"String_Node_Str\") + 1);\n }\n String synSQL = \"String_Node_Str\" + TABLE_SCHEMA + \"String_Node_Str\" + TABLE_NAME + \"String_Node_Str\";\n if (!(\"String_Node_Str\").equals(iMetadataConnection.getDatabase())) {\n synSQL += \"String_Node_Str\" + iMetadataConnection.getDatabase() + \"String_Node_Str\";\n }\n Statement sta = ExtractMetaDataUtils.conn.createStatement();\n ExtractMetaDataUtils.setQueryStatementTimeout(sta);\n ResultSet columns = sta.executeQuery(synSQL);\n String typeName = null;\n int index = 0;\n while (columns.next()) {\n int column_size = 0;\n String lenString = null;\n long numPrecRadix = 0;\n String columnName = columns.getString(GetColumn.COLUMN_NAME.name());\n TdColumn column = ColumnHelper.createTdColumn(columnName);\n String label = column.getLabel();\n label = ManagementTextUtils.filterSpecialChar(label);\n String sub = \"String_Node_Str\";\n String sub2 = \"String_Node_Str\";\n String label2 = label;\n if (label != null && label.length() > 0 && label.startsWith(\"String_Node_Str\")) {\n sub = label.substring(1);\n if (sub != null && sub.length() > 0) {\n sub2 = sub.substring(1);\n }\n }\n ICoreService coreService = CoreRuntimePlugin.getInstance().getCoreService();\n if (coreService.isKeyword(label) || coreService.isKeyword(sub) || coreService.isKeyword(sub2)) {\n label = \"String_Node_Str\" + label;\n }\n label = MetadataToolHelper.validateColumnName(label, index);\n column.setLabel(label);\n column.setOriginalField(label2);\n if (!ExtractMetaDataUtils.needFakeDatabaseMetaData(iMetadataConnection.getDbType(), iMetadataConnection.isSqlMode())) {\n typeName = columns.getString(GetColumn.DATA_TYPE.name());\n }\n try {\n lenString = \"String_Node_Str\";\n column_size = columns.getInt(\"String_Node_Str\");\n if (columns.getString(\"String_Node_Str\") != null) {\n column_size = columns.getInt(\"String_Node_Str\");\n lenString = \"String_Node_Str\";\n }\n column.setLength(column_size);\n numPrecRadix = columns.getLong(\"String_Node_Str\");\n column.setPrecision(numPrecRadix);\n } catch (Exception e1) {\n log.warn(e1, e1);\n }\n DatabaseConnection dbConnection = (DatabaseConnection) ConnectionHelper.getConnection(table);\n String dbmsId = dbConnection == null ? null : dbConnection.getDbmsId();\n if (dbmsId != null) {\n MappingTypeRetriever mappingTypeRetriever = MetadataTalendType.getMappingTypeRetriever(dbmsId);\n String talendType = mappingTypeRetriever.getDefaultSelectedTalendType(typeName, ExtractMetaDataUtils.getIntMetaDataInfo(columns, lenString), ExtractMetaDataUtils.getIntMetaDataInfo(columns, \"String_Node_Str\"));\n column.setTalendType(talendType);\n String defaultSelectedDbType = MetadataTalendType.getMappingTypeRetriever(dbConnection.getDbmsId()).getDefaultSelectedDbType(talendType);\n column.setSourceType(defaultSelectedDbType);\n }\n try {\n column.setNullable(\"String_Node_Str\".equals(columns.getString(\"String_Node_Str\")));\n } catch (Exception e) {\n log.error(e);\n }\n metadataColumns.add(column);\n index++;\n }\n columns.close();\n}\n"
|
"private static Artifact createShuffleJarActions(RuleContext ruleContext, boolean makeDexArchives, Artifact proguardedJar, ImmutableList<Artifact> shards, AndroidCommon common, Artifact inclusionFilterJar, List<String> dexopts, AndroidSemantics semantics, JavaTargetAttributes attributes, Function<Artifact, Artifact> derivedJarFunction, Artifact mainDexList) throws InterruptedException, RuleErrorException {\n checkArgument(!shards.isEmpty());\n checkArgument(mainDexList == null || shards.size() > 1);\n checkArgument(proguardedJar == null || inclusionFilterJar == null);\n Artifact javaResourceJar = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.JAVA_RESOURCES_JAR);\n ImmutableList<Artifact> shuffleOutputs;\n if (makeDexArchives && proguardedJar != null) {\n checkArgument(shards.size() > 1);\n shuffleOutputs = makeShardArtifacts(ruleContext, shards.size(), \"String_Node_Str\");\n } else {\n shuffleOutputs = shards;\n }\n SpawnAction.Builder shardAction = new SpawnAction.Builder().useDefaultShellEnvironment().setMnemonic(\"String_Node_Str\").setProgressMessage(\"String_Node_Str\", ruleContext.getLabel()).setExecutable(ruleContext.getExecutablePrerequisite(\"String_Node_Str\", Mode.HOST)).addOutputs(shuffleOutputs).addOutput(javaResourceJar);\n CustomCommandLine.Builder shardCommandLine = CustomCommandLine.builder().addExecPaths(VectorArg.addBefore(\"String_Node_Str\").each(shuffleOutputs)).addExecPath(\"String_Node_Str\", javaResourceJar);\n if (mainDexList != null) {\n shardCommandLine.addExecPath(\"String_Node_Str\", mainDexList);\n shardAction.addInput(mainDexList);\n }\n if (proguardedJar != null) {\n shardCommandLine.addExecPath(\"String_Node_Str\", proguardedJar);\n shardAction.addInput(proguardedJar);\n } else {\n ImmutableList<Artifact> classpath = collectRuntimeJars(common, attributes);\n if (makeDexArchives) {\n Map<Artifact, Artifact> dexArchives = collectDexArchives(ruleContext, common, dexopts, semantics, derivedJarFunction);\n classpath = toDexedClasspath(ruleContext, classpath, dexArchives);\n shardCommandLine.add(\"String_Node_Str\");\n } else {\n classpath = classpath.stream().map(derivedJarFunction).collect(toImmutableList());\n }\n shardCommandLine.addExecPaths(VectorArg.addBefore(\"String_Node_Str\").each(classpath));\n shardAction.addInputs(classpath);\n if (inclusionFilterJar != null) {\n shardCommandLine.addExecPath(\"String_Node_Str\", inclusionFilterJar);\n shardAction.addInput(inclusionFilterJar);\n }\n }\n shardAction.addCommandLine(shardCommandLine.build());\n ruleContext.registerAction(shardAction.build(ruleContext));\n if (makeDexArchives && proguardedJar != null) {\n for (int i = 0; i < shards.size(); ++i) {\n checkState(!shuffleOutputs.get(i).equals(shards.get(i)));\n DexArchiveAspect.createDexArchiveAction(ruleContext, shuffleOutputs.get(i), DexArchiveAspect.topLevelDexbuilderDexopts(ruleContext, dexopts), shards.get(i));\n }\n }\n return javaResourceJar;\n}\n"
|
"public List<Dag> split() {\n List<Dag> dags = new ArrayList<>();\n Set<String> remainingNodes = new HashSet<>(nodes);\n Set<String> possibleNewSources = Sets.union(sources, connectors.keySet());\n Set<String> possibleNewSinks = Sets.union(sinks, connectors.keySet());\n for (String reduceNode : reduceNodes) {\n Dag subdag = subsetAround(reduceNode, possibleNewSources, possibleNewSinks);\n remainingNodes.removeAll(subdag.getNodes());\n dags.add(subdag);\n }\n Set<String> remainingSources = Sets.intersection(remainingNodes, possibleNewSources);\n Set<String> processedNodes = new HashSet<>();\n if (!remainingSources.isEmpty()) {\n Map<String, Set<String>> nodesAccessibleBySources = new HashMap<>();\n for (String remainingSource : remainingSources) {\n Dag remainingNodesDag = subsetFrom(remainingSource, possibleNewSinks);\n nodesAccessibleBySources.put(remainingSource, remainingNodesDag.getNodes());\n }\n for (String remainingSource : remainingSources) {\n if (processedNodes.contains(remainingSource)) {\n continue;\n }\n Set<String> remainingAccessibleNodes = nodesAccessibleBySources.get(remainingSource);\n Set<String> islandNodes = new HashSet<>();\n islandNodes.addAll(remainingAccessibleNodes);\n for (String otherSource : remainingSources) {\n if (remainingSource.equals(otherSource)) {\n continue;\n }\n Set<String> otherAccessibleNodes = nodesAccessibleBySources.get(otherSource);\n if (!Sets.intersection(remainingAccessibleNodes, otherAccessibleNodes).isEmpty()) {\n islandNodes.addAll(otherAccessibleNodes);\n }\n }\n dags.add(createSubDag(islandNodes));\n processedNodes.addAll(islandNodes);\n }\n }\n return dags;\n}\n"
|
"public void setEnabled(int pane, boolean enabled) {\n boolean wasEnabled = isEnabled(pane);\n if (wasEnabled != enabled) {\n setDirty(true);\n }\n disabledPanes.set(pane, !enabled);\n}\n"
|
"public void write(JavaWriter javaWriter) throws IOException {\n String insertConflictName = insertConflictActionName;\n if (!insertConflictName.isEmpty()) {\n insertConflictName = String.format(\"String_Node_Str\", insertConflictName);\n }\n QueryBuilder stringBuilder = new QueryBuilder(\"String_Node_Str\");\n List<String> columnNames = new ArrayList<String>();\n List<String> bindings = new ArrayList<String>();\n for (int i = 0; i < getColumnDefinitions().size(); i++) {\n ColumnDefinition columnDefinition = getColumnDefinitions().get(i);\n if (columnDefinition.columnType == Column.FOREIGN_KEY) {\n for (ForeignKeyReference reference : columnDefinition.foreignKeyReferences) {\n columnNames.add(QueryBuilder.quote(reference.columnName()));\n bindings.add(\"String_Node_Str\");\n }\n } else if (columnDefinition.columnType != Column.PRIMARY_KEY_AUTO_INCREMENT) {\n columnNames.add(columnDefinition.columnName.toUpperCase());\n bindings.add(\"String_Node_Str\");\n }\n }\n stringBuilder.appendList(columnNames).append(\"String_Node_Str\");\n stringBuilder.appendList(bindings).append(\"String_Node_Str\");\n javaWriter.emitStatement(stringBuilder.toString(), insertConflictName, tableName);\n}\n"
|
"protected boolean isWithRowCountIndicator() {\n if (!units.isEmpty()) {\n Indicator indicator = units.get(0).getIndicator();\n ModelElement currentAnalyzedElement = indicator.getAnalyzedElement();\n InternalEObject eIndicator = (InternalEObject) indicator;\n AnalysisResult result = (AnalysisResult) eIndicator.eContainer();\n for (Indicator indi : result.getIndicators()) {\n ModelElement analyzedElement = indi.getAnalyzedElement();\n if (analyzedElement == currentAnalyzedElement) {\n if (indi instanceof RowCountIndicator) {\n return true;\n } else if (indi instanceof CountsIndicator) {\n CountsIndicator cindi = (CountsIndicator) indi;\n return cindi.getRowCountIndicator() != null;\n }\n }\n }\n }\n return false;\n}\n"
|
"private void setValidatorHandler(XMLReader xmlReader) {\n Schema schema = null;\n try {\n schema = getSAXParserFactory().getSchema();\n } catch (UnsupportedOperationException e) {\n }\n if (null != schema) {\n ValidatorHandler validatorHandler = schema.newValidatorHandler();\n xmlReader.setValidatorHandler(validatorHandler);\n validatorHandler.setErrorHandler(getErrorHandler());\n }\n}\n"
|
"private XMLDBModel _fetchHierarchyForModel(XMLDBModel model) throws DBExecutionException, XMLDBModelParsingException {\n String referencesXML = _getParentHierarchiesForModelFromDB(model);\n if (referencesXML != null) {\n Document document = (Document) Utilities.parseXML(referencesXML);\n Node firstNode = document.getElementsByTagName(\"String_Node_Str\").item(0);\n if (firstNode != null) {\n HashMap<String, DBModel> dBModelsMap = new HashMap<String, DBModel>();\n String modelId = model.getModelId();\n dBModelsMap.put(modelId, new DBModel(model.getModelName(), modelId));\n NodeList children = firstNode.getChildNodes();\n for (int i = 0; i < children.getLength(); i++) {\n if (children.item(i).getNodeType() == Node.ELEMENT_NODE) {\n Node child = children.item(i);\n _createParentHierarchy(child, null, dBModelsMap, model);\n }\n }\n DBModel baseDBModel = dBModelsMap.get(model.getModelName());\n _populateParentList(model, baseDBModel, new LinkedList<XMLDBModel>(), model);\n }\n }\n return model;\n}\n"
|
"public List<OFFlowMod> managedFlows(OFFlowMod flowMod) {\n log.debug(\"String_Node_Str\" + flowMod.toString() + \"String_Node_Str\");\n List<OFFlowMod> flows = new ArrayList<OFFlowMod>();\n OFMatch match = flowMod.getMatch();\n if (match == null) {\n return flows;\n }\n if (match.getWildcardObj().isWildcarded(Flag.DL_VLAN) || match.getDataLayerVirtualLan() == -1) {\n if (match.getWildcardObj().isWildcarded(Flag.IN_PORT)) {\n Iterator<Entry<String, PortConfig>> it = this.portList.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<String, PortConfig> port = (Entry<String, PortConfig>) it.next();\n if (port.getValue().getPortId() != 0) {\n try {\n OFFlowMod newFlow = flowMod.clone();\n newFlow.getMatch().setInputPort(port.getValue().getPortId());\n newFlow.getMatch().setWildcards(newFlow.getMatch().getWildcardObj().matchOn(Flag.IN_PORT));\n newFlow.getMatch().setDataLayerVirtualLan(port.getValue().getVlanRange().getAvailableTags()[0]);\n newFlow.getMatch().setWildcards(newFlow.getMatch().getWildcardObj().matchOn(Flag.DL_VLAN));\n List<OFFlowMod> newFlows = this.managedFlowActions(newFlow);\n for (OFFlowMod flow : newFlows) {\n flows.add(flow);\n }\n } catch (CloneNotSupportedException e) {\n flows.clear();\n return flows;\n } catch (Exception e) {\n flows.clear();\n return flows;\n }\n }\n }\n } else {\n short vlanId;\n PortConfig pConfig = this.getPortConfig(match.getInputPort());\n if (pConfig == null) {\n flows.clear();\n return flows;\n } else {\n vlanId = (short) pConfig.getVlanRange().getAvailableTags()[0];\n }\n match.setDataLayerVirtualLan(vlanId);\n flowMod.setMatch(match);\n flows = this.managedFlowActions(flowMod);\n }\n } else {\n log.debug(\"String_Node_Str\" + flowMod.toString());\n return flows;\n }\n return flows;\n}\n"
|
"public TextArea getNextArea(int maxLineWidth) {\n if (!hasNextArea()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n TextArea textArea = getNextTextArea(maxLineWidth);\n offset += textArea.getTextLength();\n if (lineBreakCollapse == LINE_BREAK_COLLAPSE_OCCUPIED) {\n lineBreakCollapse = LINE_BREAK_COLLAPSE_FREE;\n return null;\n }\n return textArea;\n}\n"
|
"public void setOptions(String options) throws Exception {\n if (options == null)\n return;\n _options = StringUtility.trim(options, '\\\"');\n JSONObject json = null;\n try {\n json = new JSONObject(_options);\n } catch (Exception ex) {\n throw new ParseException(ex.getMessage(), 0);\n }\n if (json.has(\"String_Node_Str\")) {\n try {\n _maxSpeed = json.getDouble(\"String_Node_Str\");\n } catch (Exception ex) {\n throw new ParameterValueException(RoutingErrorCodes.INVALID_PARAMETER_FORMAT, \"String_Node_Str\", json.getString(\"String_Node_Str\"));\n }\n }\n if (json.has(\"String_Node_Str\")) {\n String keyValue = json.getString(\"String_Node_Str\");\n if (!Helper.isEmpty(keyValue)) {\n String[] avoidFeatures = keyValue.split(\"String_Node_Str\");\n if (avoidFeatures != null && avoidFeatures.length > 0) {\n int flags = 0;\n for (int i = 0; i < avoidFeatures.length; i++) {\n String featName = avoidFeatures[i];\n if (featName != null) {\n int flag = AvoidFeatureFlags.getFromString(featName);\n if (flag == 0)\n throw new UnknownParameterValueException(RoutingErrorCodes.INVALID_PARAMETER_VALUE, \"String_Node_Str\", featName);\n if (!AvoidFeatureFlags.isValid(_profileType, flag, featName))\n throw new ParameterValueException(RoutingErrorCodes.INVALID_PARAMETER_VALUE, \"String_Node_Str\", featName);\n flags |= flag;\n }\n }\n if (flags != 0)\n _avoidFeaturesTypes = flags;\n }\n }\n }\n if (json.has(\"String_Node_Str\")) {\n JSONObject jProfileParams = json.getJSONObject(\"String_Node_Str\");\n JSONObject jRestrictions = null;\n if (jProfileParams.has(\"String_Node_Str\"))\n jRestrictions = jProfileParams.getJSONObject(\"String_Node_Str\");\n if (RoutingProfileType.isDriving(_profileType)) {\n VehicleParameters vehicleParams = new VehicleParameters();\n _profileParams = vehicleParams;\n }\n if (RoutingProfileType.isCycling(_profileType)) {\n CyclingParameters cyclingParams = new CyclingParameters();\n if (jRestrictions != null) {\n if (jRestrictions.has(\"String_Node_Str\"))\n cyclingParams.setMaximumGradient(jRestrictions.getInt(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n cyclingParams.setMaximumTrailDifficulty(jRestrictions.getInt(\"String_Node_Str\"));\n }\n _profileParams = cyclingParams;\n } else if (RoutingProfileType.isWalking(_profileType)) {\n WalkingParameters walkingParams = new WalkingParameters();\n if (jRestrictions != null) {\n if (jRestrictions.has(\"String_Node_Str\"))\n walkingParams.setMaximumGradient(jRestrictions.getInt(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n walkingParams.setMaximumTrailDifficulty(jRestrictions.getInt(\"String_Node_Str\"));\n }\n _profileParams = walkingParams;\n } else if (RoutingProfileType.isHeavyVehicle(_profileType) == true) {\n VehicleParameters vehicleParams = new VehicleParameters();\n if (json.has(\"String_Node_Str\")) {\n String vehicleType = json.getString(\"String_Node_Str\");\n _vehicleType = HeavyVehicleAttributes.getFromString(vehicleType);\n if (jRestrictions == null)\n jRestrictions = jProfileParams;\n if (jRestrictions.has(\"String_Node_Str\"))\n vehicleParams.setLength(jRestrictions.getDouble(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n vehicleParams.setWidth(jRestrictions.getDouble(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n vehicleParams.setHeight(jRestrictions.getDouble(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n vehicleParams.setWeight(jRestrictions.getDouble(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n vehicleParams.setAxleload(jRestrictions.getDouble(\"String_Node_Str\"));\n int loadCharacteristics = 0;\n if (jRestrictions.has(\"String_Node_Str\") && jRestrictions.getBoolean(\"String_Node_Str\") == true)\n loadCharacteristics |= VehicleLoadCharacteristicsFlags.HAZMAT;\n if (loadCharacteristics != 0)\n vehicleParams.setLoadCharacteristics(loadCharacteristics);\n }\n _profileParams = vehicleParams;\n } else if (_profileType == RoutingProfileType.WHEELCHAIR) {\n WheelchairParameters wheelchairParams = new WheelchairParameters();\n if (jRestrictions == null)\n jRestrictions = jProfileParams;\n if (jRestrictions.has(\"String_Node_Str\"))\n wheelchairParams.setSurfaceType(WheelchairTypesEncoder.getSurfaceType(jRestrictions.getString(\"String_Node_Str\")));\n if (jRestrictions.has(\"String_Node_Str\"))\n wheelchairParams.setTrackType(WheelchairTypesEncoder.getTrackType(jRestrictions.getString(\"String_Node_Str\")));\n if (jRestrictions.has(\"String_Node_Str\"))\n wheelchairParams.setSmoothnessType(WheelchairTypesEncoder.getSmoothnessType(jRestrictions.getString(\"String_Node_Str\")));\n if (jRestrictions.has(\"String_Node_Str\"))\n wheelchairParams.setMaximumSlopedCurb((float) jRestrictions.getDouble(\"String_Node_Str\"));\n if (jRestrictions.has(\"String_Node_Str\"))\n wheelchairParams.setMaximumIncline((float) jRestrictions.getDouble(\"String_Node_Str\"));\n _profileParams = wheelchairParams;\n }\n processWeightings(jProfileParams, _profileParams);\n }\n if (json.has(\"String_Node_Str\")) {\n JSONObject jFeature = (JSONObject) json.get(\"String_Node_Str\");\n Geometry geom = null;\n try {\n geom = GeometryJSON.parse(jFeature);\n } catch (Exception ex) {\n throw new ParameterValueException(RoutingErrorCodes.INVALID_JSON_FORMAT, \"String_Node_Str\");\n }\n if (geom instanceof Polygon) {\n _avoidAreas = new Polygon[] { (Polygon) geom };\n } else if (geom instanceof MultiPolygon) {\n MultiPolygon multiPoly = (MultiPolygon) geom;\n _avoidAreas = new Polygon[multiPoly.getNumGeometries()];\n for (int i = 0; i < multiPoly.getNumGeometries(); i++) _avoidAreas[i] = (Polygon) multiPoly.getGeometryN(i);\n } else {\n throw new ParameterValueException(RoutingErrorCodes.INVALID_PARAMETER_VALUE, \"String_Node_Str\");\n }\n }\n}\n"
|
"public void draw(double[] mag, long frequency, int sampleRate, int frameRate, double load) {\n if (virtualFrequency < 0)\n virtualFrequency = frequency;\n if (virtualSampleRate < 0)\n virtualSampleRate = sampleRate;\n float samplesPerHz = (float) mag.length / (float) sampleRate;\n long frequencyDiff = virtualFrequency - frequency;\n int sampleRateDiff = virtualSampleRate - sampleRate;\n int start = (int) ((frequencyDiff - sampleRateDiff / 2.0) * samplesPerHz);\n int end = mag.length + (int) ((frequencyDiff + sampleRateDiff / 2.0) * samplesPerHz);\n if (averageLength > 0) {\n if (historySamples == null || historySamples.length != averageLength || historySamples[0].length != mag.length) {\n historySamples = new double[averageLength][mag.length];\n for (int i = 0; i < averageLength; i++) {\n for (int j = 0; j < mag.length; j++) {\n historySamples[i][j] = mag[j];\n }\n }\n oldesthistoryIndex = 0;\n }\n if (frequency != lastFrequency || sampleRate != lastSampleRate) {\n for (int i = 0; i < averageLength; i++) {\n for (int j = 0; j < mag.length; j++) {\n historySamples[i][j] = mag[j];\n }\n }\n }\n double tmp;\n for (int i = 0; i < mag.length; i++) {\n tmp = mag[i];\n for (int j = 0; j < historySamples.length; j++) tmp += historySamples[j][i];\n historySamples[oldesthistoryIndex][i] = mag[i];\n mag[i] = tmp / (historySamples.length + 1);\n }\n oldesthistoryIndex = (oldesthistoryIndex + 1) % historySamples.length;\n }\n if (doAutoscaleInNextDraw) {\n doAutoscaleInNextDraw = false;\n float min = MAX_DB;\n float max = MIN_DB;\n for (int i = Math.max(0, start); i < Math.min(mag.length, end); i++) {\n if (i == (mag.length / 2) - 5)\n i += 10;\n min = Math.min((float) mag[i], min);\n max = Math.max((float) mag[i], max);\n }\n if (min < max) {\n minDB = Math.max(min, MIN_DB);\n maxDB = Math.min(max, MAX_DB);\n }\n }\n if (peakHoldEnabled) {\n if (peaks == null || peaks.length != mag.length) {\n peaks = new double[mag.length];\n for (int i = 0; i < peaks.length; i++) peaks[i] = -999999F;\n }\n if (frequency != lastFrequency || sampleRate != lastSampleRate) {\n for (int i = 0; i < peaks.length; i++) peaks[i] = -999999F;\n }\n for (int i = 0; i < mag.length; i++) peaks[i] = Math.max(peaks[i], mag[i]);\n } else {\n peaks = null;\n }\n Canvas c = null;\n try {\n c = this.getHolder().lockCanvas();\n synchronized (this.getHolder()) {\n if (c != null) {\n drawFFT(c, mag, start, end);\n drawWaterfall(c);\n drawFrequencyGrid(c);\n drawPowerGrid(c);\n drawPerformanceInfo(c, frameRate, load, averageSignalStrengh);\n } else\n Log.d(LOGTAG, \"String_Node_Str\");\n }\n } catch (Exception e) {\n Log.e(LOGTAG, \"String_Node_Str\");\n e.printStackTrace();\n } finally {\n if (c != null) {\n this.getHolder().unlockCanvasAndPost(c);\n }\n }\n this.lastFrequency = frequency;\n this.lastSampleRate = sampleRate;\n}\n"
|
"private void sendFile(Connection c, String path, Data d) {\n if (path.startsWith(File.separator)) {\n File f = new File(path);\n if (f.exists()) {\n if (DEBUG) {\n LOGGER.debug(DBG_PREFIX + \"String_Node_Str\" + c.hashCode() + \"String_Node_Str\" + path + \"String_Node_Str\" + d.getName());\n }\n c.sendDataFile(path);\n } else {\n if (!f.getName().equals(d.getName())) {\n File renamed;\n if (isMaster()) {\n renamed = new File(Comm.getAppHost().getCompleteRemotePath(DataType.FILE_T, d.getName()).getPath());\n } else {\n renamed = new File(f.getParentFile().getAbsolutePath() + File.separator + d.getName());\n }\n if (renamed.exists()) {\n if (DEBUG) {\n LOGGER.debug(DBG_PREFIX + \"String_Node_Str\" + c.hashCode() + \"String_Node_Str\" + renamed.getAbsolutePath() + \"String_Node_Str\" + d.getName());\n }\n c.sendDataFile(renamed.getAbsolutePath());\n } else {\n ErrorManager.warn(\"String_Node_Str\" + path + \"String_Node_Str\" + renamed.getAbsolutePath() + \"String_Node_Str\" + c.hashCode() + \"String_Node_Str\");\n handleDataToSendNotAvailable(c, d);\n }\n } else {\n ErrorManager.warn(\"String_Node_Str\" + path + \"String_Node_Str\" + c.hashCode() + \"String_Node_Str\");\n handleDataToSendNotAvailable(c, d);\n }\n }\n } else {\n sendObject(c, path, d);\n }\n}\n"
|
"public LoggingAdvisingAppendable appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException {\n delegate.appendLoggingFunctionInvocation(funCall, escapers);\n return this;\n}\n"
|
"protected void drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) {\n if (axis.getRange().contains(value)) {\n Line2D line;\n if (orientation == PlotOrientation.HORIZONTAL) {\n double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM);\n line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY());\n } else {\n double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT);\n line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy);\n }\n g2.setStroke(stroke);\n g2.setPaint(paint);\n g2.draw(line);\n }\n}\n"
|
"public static boolean isHiddenByVisibility(IColumn column, String format) {\n String columnFormats = column.getVisibleFormat();\n if (columnFormats != null) {\n if (hiddenMask) {\n if (contains(columnFormats, BIRTConstants.BIRT_ALL_VALUE)) {\n return true;\n }\n } else {\n if (contains(columnFormats, EngineIRConstants.FORMAT_TYPE_VIEWER) || contains(columnFormats, BIRTConstants.BIRT_ALL_VALUE) || contains(columnFormats, format)) {\n return true;\n }\n }\n }\n return false;\n}\n"
|
"public void update(List<Endpoint> conferenceEndpoints) {\n if (conferenceEndpoints == null) {\n conferenceEndpoints = dest.getConferenceSpeechActivity().getEndpoints();\n } else {\n conferenceEndpoints = new ArrayList<>(conferenceEndpoints);\n }\n long bweBps = Long.MAX_VALUE;\n EndpointBitrateAllocation[] allocations = allocate(bweBps, conferenceEndpoints);\n Set<String> oldForwardedEndpointIds = forwardedEndpointIds;\n Set<String> newForwardedEndpointIds = new HashSet<>();\n Set<String> endpointsEnteringLastNIds = new HashSet<>();\n Set<String> conferenceEndpointIds = new HashSet<>();\n if (!ArrayUtils.isNullOrEmpty(allocations)) {\n for (EndpointBitrateAllocation allocation : allocations) {\n int ssrc = allocation.targetSSRC, targetIdx = allocation.targetIdx;\n SimulcastController ctrl = ssrcToBitrateController.get(ssrc);\n if (ctrl == null && allocation.track != null) {\n ctrl = new SimulcastController(allocation.track);\n RTPEncodingDesc[] rtpEncodings = allocation.track.getRTPEncodings();\n for (RTPEncodingDesc rtpEncoding : rtpEncodings) {\n ssrcToBitrateController.put((int) rtpEncoding.getPrimarySSRC(), ctrl);\n if (rtpEncoding.getRTXSSRC() != -1) {\n ssrcToBitrateController.put((int) rtpEncoding.getRTXSSRC(), ctrl);\n }\n }\n }\n if (ctrl != null) {\n ctrl.update(targetIdx);\n }\n if (targetIdx > -1) {\n newForwardedEndpoints.add(allocation.endpointID);\n }\n }\n }\n this.forwardedEndpoints = newForwardedEndpoints;\n}\n"
|
"public static boolean isNumber(String val) {\n NumberFormat nf = NumberFormat.getInstance();\n try {\n new BigDecimal(val);\n return true;\n } catch (Exception e) {\n return false;\n }\n}\n"
|
"private void handleNodeAccess(String nodeName, NodeType nodeType) {\n switch(nodeType) {\n case ITEM_LOCATION:\n String item = itemRandomizer.getItem(nodeName);\n if (!Settings.getCurrentRemovedItems().contains(item)) {\n queuedUpdates.add(item);\n }\n break;\n case MAP_LOCATION:\n case EVENT:\n case EXIT:\n case GLITCH:\n queuedUpdates.add(nodeName);\n break;\n case SHOP:\n for (String shopItem : shopRandomizer.getShopItems(nodeName)) {\n if (!accessedNodes.contains(shopItem) && !queuedUpdates.contains(shopItem) && !Settings.getCurrentRemovedItems().contains(shopItem)) {\n queuedUpdates.add(shopItem);\n }\n }\n break;\n }\n}\n"
|
"public void testAggrSort1() 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 hier1.createLevel(\"String_Node_Str\");\n hier1.createLevel(\"String_Node_Str\");\n 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 createSortTestBindings(cqd);\n CubeSortDefinition sorter1 = new CubeSortDefinition();\n sorter1.setExpression(\"String_Node_Str\");\n sorter1.setAxisQualifierLevels(null);\n sorter1.setAxisQualifierValues(null);\n sorter1.setTargetLevel(level21);\n sorter1.setSortDirection(ISortDefinition.SORT_DESC);\n cqd.addSort(sorter1);\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 columnEdgeBindingNames.add(\"String_Node_Str\");\n printCube(cursor, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"private List<SimpleFeature> inputFeatureHandler(SimpleFeatureCollection inputCollection, String featureName, int level, SimpleFeatureType outputFeatureType, Multimap<String, String> relation) {\n GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n List<Geometry> geometryList = new ArrayList<Geometry>();\n SimpleFeatureIterator inputFeatures = inputCollection.features();\n SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(outputFeatureType);\n Multimap<String, String> reverted = ArrayListMultimap.create();\n Geometry newGeom = null;\n String country;\n if (!exceptionList.contains(featureName)) {\n if (level == 1) {\n country = (String) reverted.get(featureName).toArray()[0];\n synchronized (this) {\n LOG.log(Level.INFO, \"String_Node_Str\" + featureName + \"String_Node_Str\" + country + \"String_Node_Str\" + countryCount.incrementAndGet() + \"String_Node_Str\" + relation.keySet().size() + \"String_Node_Str\");\n }\n } else {\n country = featureName;\n synchronized (this) {\n LOG.log(Level.INFO, \"String_Node_Str\" + country + \"String_Node_Str\" + countryCount.incrementAndGet() + \"String_Node_Str\" + relation.keySet().size() + \"String_Node_Str\");\n }\n }\n }\n if (level == 1) {\n while (inputFeatures.hasNext()) {\n SimpleFeature feature = inputFeatures.next();\n if (feature.getAttribute(6).equals(featureName))\n geometryList.add((Geometry) feature.getAttribute(0));\n }\n } else {\n while (inputFeatures.hasNext()) {\n SimpleFeature feature = inputFeatures.next();\n if (((String) feature.getAttribute(2)).split(\"String_Node_Str\")[1].trim().equals(featureName))\n geometryList.add((Geometry) feature.getAttribute(0));\n }\n }\n inputFeatures.close();\n try {\n newGeom = geometryFactory.buildGeometry(geometryList).union().getBoundary();\n } catch (Exception e) {\n LOG.log(Level.INFO, \"String_Node_Str\" + featureName + \"String_Node_Str\" + e.getMessage() + \"String_Node_Str\");\n newGeom = geometryFactory.buildGeometry(geometryList).buffer(0);\n }\n featureBuilder.add(newGeom);\n if (level == 1) {\n featureBuilder.add(featureName);\n featureBuilder.add(featureName + \"String_Node_Str\" + Multimaps.invertFrom(relation, reverted).get(featureName).toArray()[0]);\n } else\n featureBuilder.add(featureName);\n SimpleFeature feature = featureBuilder.buildFeature(null);\n List<SimpleFeature> features = new ArrayList<SimpleFeature>();\n features.add(feature);\n return features;\n}\n"
|
"void setProtocol(final String protocol) {\n final CountDownLatch latch = new CountDownLatch(1);\n ioSelector.addTaskAndWakeup(new Runnable() {\n\n public void run() {\n createWriter(protocol);\n latch.countDown();\n }\n });\n ioSelector.wakeup();\n try {\n latch.await(TIMEOUT, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n logger.finest(\"String_Node_Str\", e);\n }\n}\n"
|
"public void dispose() {\n super.dispose();\n getOWLModelManager().removeListener(this.listener);\n if (this.swrlRuleEngineModel != null)\n this.swrlRuleEngineModel.unregisterOntologyListener();\n}\n"
|
"static void verify(DatasetModuleMeta moduleMeta, String moduleName, Class moduleClass, List<String> types, List<String> usesModules, Collection<String> usedByModules) {\n Assert.assertEquals(moduleName, moduleMeta.getName());\n Assert.assertEquals(moduleClass.getName(), moduleMeta.getClassName());\n Assert.assertArrayEquals(types.toArray(), moduleMeta.getTypes().toArray());\n Assert.assertArrayEquals(usesModules.toArray(), moduleMeta.getUsesModules().toArray());\n Assert.assertArrayEquals(Sets.newTreeSet(usedByModules).toArray(), Sets.newTreeSet(moduleMeta.getUsedByModules()).toArray());\n Assert.assertNotNull(moduleMeta.getJarLocationPath());\n Assert.assertTrue(new File(moduleMeta.getJarLocationPath()).exists());\n}\n"
|
"public void drawHighlight(TSCanvas canvas, Color color) {\n Graphics2D g2d = canvas.getGraphics2D();\n double rs = canvas.getCoordinates().dxToWorld(radius_ + 5);\n Ellipse2D e = new Ellipse2D.Double(stop_.getWorldX() - rs, stop_.getWorldY() - rs, rs * 2, rs * 2);\n Path2D p = new Path2D.Double(e);\n p.transform(canvas.getCoordinates().getScaleTransform());\n p.transform(canvas.getCoordinates().getTranslateTransform());\n p.transform(AffineTransform.getTranslateInstance(stop_.getScreenOffset().getX(), -stop_.getScreenOffset().getY()));\n g2d.setColor(color);\n g2d.fill(p);\n}\n"
|
"public static void lineExecuted(int fileIndex, int line) {\n if (terminated)\n return;\n synchronized (TestRun.class) {\n CoverageData coverageData = CoverageData.instance();\n PerFileLineCoverage fileData = coverageData.getFileData(fileIndex).lineCoverageInfo;\n CallPoint callPoint = null;\n if (coverageData.isWithCallPoints() && fileData.acceptsAdditionalCallPoints(line)) {\n callPoint = CallPoint.create(new Throwable());\n }\n fileData.registerExecution(line, callPoint);\n }\n fileData.registerExecution(line, callPoint);\n}\n"
|
"public EnumDefinition lookupEnum(String name) {\n Definition def = lookupDefinition(name);\n return (EnumDefinition) ((def instanceof EnumDefinition) ? def : null);\n}\n"
|
"public void should_UpdateProduct_WhenPutRequestMadeWithWrongPost() throws Exception {\n final String requestUrl = String.format(\"String_Node_Str\", STUBS_URL, \"String_Node_Str\");\n final String content = \"String_Node_Str\";\n final HttpRequest request = HttpUtils.constructHttpRequest(HttpMethods.PUT, requestUrl, content);\n final HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.setContentType(HEADER_APPLICATION_JSON);\n request.setHeaders(httpHeaders);\n final HttpResponse response = request.execute();\n final String responseContentAsString = response.parseAsString().trim();\n assertThat(response.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND_404);\n assertThat(responseContentAsString).contains(\"String_Node_Str\");\n}\n"
|
"public static List<String> getChildElementNames(XSDElementDeclaration decl) throws Exception {\n List<String> childNames = new ArrayList<String>();\n XSDTypeDefinition type = decl.getTypeDefinition();\n if (type instanceof XSDComplexTypeDefinition) {\n XSDComplexTypeDefinition cmpType = (XSDComplexTypeDefinition) type;\n if (cmpType.getContent() instanceof XSDParticle) {\n XSDParticleImpl particle = (XSDParticleImpl) cmpType.getContent();\n if (particle.getTerm() instanceof XSDModelGroup) {\n XSDModelGroup group = (XSDModelGroup) particle.getTerm();\n EList<XSDParticle> particles = group.getParticles();\n for (XSDParticle part : particles) {\n if (part.getTerm() instanceof XSDElementDeclaration) {\n XSDElementDeclaration el = (XSDElementDeclaration) part.getTerm();\n if (el.getTypeDefinition() instanceof XSDSimpleTypeDefinition) {\n String child = parentxpath.length() == 0 ? el.getName() : parentxpath + \"String_Node_Str\" + el.getName();\n childNames.add(child);\n } else {\n childNames.addAll(getChildElementNames(el.getName(), el));\n }\n }\n }\n }\n }\n }\n return childNames;\n}\n"
|
"public void roundAndCleanExpression() {\n if (isInvalid() || isEmpty())\n return;\n BigDecimal bd;\n bd = new BigDecimal(mExpression, mMcDisp);\n mPreciseResult = mExpression;\n if (lastNumbExponent() < mIntDisplayPrecision)\n replaceExpression(bd.toPlainString());\n else\n replaceExpression(bd.toString());\n replaceExpression(cleanFormatting(mExpression));\n}\n"
|
"public PrintStream printf(String str, Object... args) {\n StringBuilder sb = new StringBuilder();\n Formatter formatter = new Formatter(sb, locale);\n formatter.format(str, args);\n print(sb.toString());\n return null;\n}\n"
|
"public void loadDefinitionsFromXML(InputStream stream) throws ParserConfigurationException, IOException, SAXException {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = dbFactory.newDocumentBuilder();\n Document document = builder.parse(stream);\n Element root = document.getDocumentElement();\n NodeList categoryNodes = root.getElementsByTagName(\"String_Node_Str\");\n for (int c = 0; c < categoryNodes.getLength(); c++) {\n Element categoryElement = (Element) categoryNodes.item(c);\n String categoryCode = categoryElement.getAttribute(\"String_Node_Str\");\n String masterSetUuid = categoryElement.getAttribute(\"String_Node_Str\");\n Concept masterSetConcept = MetadataUtils.getConcept(masterSetUuid);\n masterSetConcepts.put(categoryCode, masterSetConcept.getConceptId());\n Map<String, DrugReference> categoryDrugs = new HashMap<String, DrugReference>();\n List<RegimenDefinitionGroup> categoryGroups = new ArrayList<RegimenDefinitionGroup>();\n NodeList drugNodes = categoryElement.getElementsByTagName(\"String_Node_Str\");\n for (int d = 0; d < drugNodes.getLength(); d++) {\n Element drugElement = (Element) drugNodes.item(d);\n String drugCode = drugElement.getAttribute(\"String_Node_Str\");\n String drugConceptUuid = drugElement.hasAttribute(\"String_Node_Str\") ? drugElement.getAttribute(\"String_Node_Str\") : null;\n String drugDrugUuid = drugElement.hasAttribute(\"String_Node_Str\") ? drugElement.getAttribute(\"String_Node_Str\") : null;\n DrugReference drug = (drugDrugUuid != null) ? DrugReference.fromDrugUuid(drugDrugUuid) : DrugReference.fromConceptUuid(drugConceptUuid);\n categoryDrugs.put(drugCode, drug);\n }\n NodeList groupNodes = categoryElement.getElementsByTagName(\"String_Node_Str\");\n for (int g = 0; g < groupNodes.getLength(); g++) {\n Element groupElement = (Element) groupNodes.item(g);\n String groupCode = groupElement.getAttribute(\"String_Node_Str\");\n String groupName = groupElement.getAttribute(\"String_Node_Str\");\n RegimenDefinitionGroup group = new RegimenDefinitionGroup(groupCode, groupName);\n categoryGroups.add(group);\n NodeList regimenNodes = groupElement.getElementsByTagName(\"String_Node_Str\");\n for (int r = 0; r < regimenNodes.getLength(); r++) {\n Element regimenElement = (Element) regimenNodes.item(r);\n String name = regimenElement.getAttribute(\"String_Node_Str\");\n RegimenDefinition regimenDefinition = new RegimenDefinition(name, group);\n NodeList componentNodes = regimenElement.getElementsByTagName(\"String_Node_Str\");\n for (int p = 0; p < componentNodes.getLength(); p++) {\n Element componentElement = (Element) componentNodes.item(p);\n String drugCode = componentElement.getAttribute(\"String_Node_Str\");\n Double dose = componentElement.hasAttribute(\"String_Node_Str\") ? Double.parseDouble(componentElement.getAttribute(\"String_Node_Str\")) : null;\n String units = componentElement.hasAttribute(\"String_Node_Str\") ? componentElement.getAttribute(\"String_Node_Str\") : null;\n String frequency = componentElement.hasAttribute(\"String_Node_Str\") ? componentElement.getAttribute(\"String_Node_Str\") : null;\n DrugReference drug = categoryDrugs.get(drugCode);\n if (drug == null)\n throw new RuntimeException(\"String_Node_Str\" + drugCode);\n regimenDefinition.addComponent(drug, dose, units, frequency);\n }\n group.addRegimen(regimenDefinition);\n }\n }\n drugs.put(categoryCode, categoryDrugs);\n regimenGroups.put(categoryCode, categoryGroups);\n }\n}\n"
|
"public void clear() {\n Object oldObj = HandleAdapterFactory.getInstance().getLibraryHandleAdapter().getOldEditorModel();\n SetCurrentEditModelCommand c = new SetCurrentEditModelCommand(oldObj);\n Object obj = HandleAdapterFactory.getInstance().getLibraryHandleAdapter().getCurrentEditorModel();\n if (obj instanceof DesignElementHandle && ((DesignElementHandle) obj).getContainer() != null) {\n c = new SetCurrentEditModelCommand(obj);\n }\n c.execute();\n}\n"
|
"public void loadNewEnemy(final float X, final float Y, final int type) {\n final Enemy newEnemy;\n switch(type) {\n case 1:\n newEnemy = GestureDefence.this.getEnemyPool(1).obtainPoolItem();\n newEnemy.setXY(X, Y);\n newEnemy.setType1();\n break;\n case 2:\n newEnemy = GestureDefence.this.getEnemyPool(2).obtainPoolItem();\n newEnemy.setXY(X, Y);\n newEnemy.setType2();\n newEnemy.setScale(1.5f);\n break;\n default:\n newEnemy = GestureDefence.this.getEnemyPool(1).obtainPoolItem();\n newEnemy.setXY(X, Y);\n newEnemy.setType1();\n break;\n }\n if (!newEnemy.hasParent())\n GestureDefence.this.sm.GameScreen.attachChild(newEnemy);\n if (!newEnemy.isVisible())\n newEnemy.setVisible(true);\n GestureDefence.this.sm.GameScreen.registerTouchArea(newEnemy);\n GestureDefence.this.sm.GameScreen.setTouchAreaBindingEnabled(true);\n GestureDefence.this.sEnemyCount++;\n GestureDefence.this.mOnScreenEnemies++;\n}\n"
|
"public void setValue(Object val) {\n if (val == null) {\n System.out.println(\"String_Node_Str\");\n }\n value = val;\n System.out.println(type.name() + \"String_Node_Str\" + value);\n}\n"
|
"public synchronized void preloadPlan(RecentsTaskLoader loader, int runningTaskId, boolean includeFrontMostExcludedTask) {\n Resources res = mContext.getResources();\n ArrayList<Task> allTasks = new ArrayList<>();\n if (mRawTasks == null) {\n preloadRawTasks(includeFrontMostExcludedTask);\n }\n SparseArray<Task.TaskKey> affiliatedTasks = new SparseArray<>();\n SparseIntArray affiliatedTaskCounts = new SparseIntArray();\n String dismissDescFormat = mContext.getString(R.string.accessibility_recents_item_will_be_dismissed);\n String appInfoDescFormat = mContext.getString(R.string.accessibility_recents_item_open_app_info);\n long lastStackActiveTime = Prefs.getLong(mContext, Prefs.Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME, 0);\n if (RecentsDebugFlags.Static.EnableMockTasks) {\n lastStackActiveTime = 0;\n }\n long newLastStackActiveTime = -1;\n int taskCount = mRawTasks.size();\n for (int i = 0; i < taskCount; i++) {\n ActivityManager.RecentTaskInfo t = mRawTasks.get(i);\n Task.TaskKey taskKey = new Task.TaskKey(t.persistentId, t.stackId, t.baseIntent, t.userId, t.firstActiveTime, t.lastActiveTime);\n boolean isFreeformTask = mSystemServicesProxy.isFreeformStack(t.stackId);\n boolean isRecentlyUsedTask = t.lastActiveTime >= (currentTime - SESSION_BEGIN_TIME);\n boolean isMoreRecentThanLastVisible = t.lastActiveTime >= mLastVisibileTaskActiveTime;\n boolean isStackTask = isFreeformTask || (isMoreRecentThanLastVisible && (isRecentlyUsedTask || i >= (taskCount - MIN_NUM_TASKS)));\n boolean isLaunchTarget = t.persistentId == runningTaskId;\n if (isStackTask && !updatedLastVisibleTaskActiveTime) {\n newLastVisibileTaskActiveTime = t.lastActiveTime;\n updatedLastVisibleTaskActiveTime = true;\n }\n ActivityInfo info = loader.getAndUpdateActivityInfo(taskKey);\n String title = loader.getAndUpdateActivityTitle(taskKey, t.taskDescription);\n String titleDescription = loader.getAndUpdateContentDescription(taskKey, res);\n String dismissDescription = String.format(dismissDescFormat, titleDescription);\n String appInfoDescription = String.format(appInfoDescFormat, titleDescription);\n Drawable icon = isStackTask ? loader.getAndUpdateActivityIcon(taskKey, t.taskDescription, res, false) : null;\n Bitmap thumbnail = loader.getAndUpdateThumbnail(taskKey, false);\n int activityColor = loader.getActivityPrimaryColor(t.taskDescription);\n int backgroundColor = loader.getActivityBackgroundColor(t.taskDescription);\n boolean isSystemApp = (info != null) && ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0);\n Task task = new Task(taskKey, t.affiliatedTaskId, t.affiliatedTaskColor, icon, thumbnail, title, titleDescription, dismissDescription, appInfoDescription, activityColor, backgroundColor, isLaunchTarget, isStackTask, isSystemApp, t.isDockable, t.bounds, t.taskDescription, t.resizeMode, t.topActivity);\n allTasks.add(task);\n affiliatedTaskCounts.put(taskKey.id, affiliatedTaskCounts.get(taskKey.id, 0) + 1);\n affiliatedTasks.put(taskKey.id, taskKey);\n }\n if (updatedLastVisibleTaskActiveTime && newLastVisibileTaskActiveTime != mLastVisibileTaskActiveTime) {\n Settings.Secure.putLongForUser(mContext.getContentResolver(), Settings.Secure.OVERVIEW_LAST_VISIBLE_TASK_ACTIVE_UPTIME, newLastVisibileTaskActiveTime, UserHandle.USER_CURRENT);\n mLastVisibileTaskActiveTime = newLastVisibileTaskActiveTime;\n }\n mStack = new TaskStack();\n mStack.setTasks(mContext, allTasks, false);\n}\n"
|
"protected void initializeInternal(DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config) {\n super.initializeInternal(definition, input, hierarchies, config);\n RowSet subset = null;\n if (config.containsCriterion(DPresence.class)) {\n Set<DPresence> criterion = config.getCriteria(DPresence.class);\n if (criterion.size() > 1) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n subset = criterion.iterator().next().getSubset().getSet();\n }\n this.cardinalities = new Cardinalities(input, subset, hierarchies);\n cache = new double[hierarchies.length][];\n for (int i = 0; i < cache.length; i++) {\n cache[i] = new double[hierarchies[i].getArray()[0].length];\n Arrays.fill(cache[i], NOT_AVAILABLE);\n }\n final int[][] data = input.getArray();\n this.hierarchies = new int[data[0].length][][];\n for (int i = 0; i < hierarchies.length; i++) {\n this.hierarchies[i] = hierarchies[i].getArray();\n }\n double[] min = new double[hierarchies.length];\n Arrays.fill(min, 0d);\n double[] max = new double[hierarchies.length];\n for (int i = 0; i < max.length; i++) {\n max[i] = input.getDataLength() * log2(input.getDataLength());\n }\n super.setMax(max);\n super.setMin(min);\n}\n"
|
"public Object getRaw(String name) throws PropertyException {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
|
"public Object getValueAt(int rowIndex, int columnIndex) {\n if (rowIndex < allLinks.size()) {\n DownloadLink downloadLink = allLinks.get(rowIndex);\n switch(columnIndex) {\n case COL_INDEX:\n return rowIndex;\n case COL_NAME:\n if (downloadLink.getFilePackage() == null) {\n return downloadLink.getName();\n }\n return downloadLink.getFilePackage().getDownloadDirectoryName() + \"String_Node_Str\" + downloadLink.getName();\n case COL_STATUS:\n return downloadLink.getStatusText();\n case COL_HOST:\n return downloadLink.getHost();\n case COL_PROGRESS:\n if (rowIndex >= progressBars.size()) {\n JProgressBar p = new JProgressBar(0, 1);\n progressBars.add(rowIndex, p);\n }\n JProgressBar p = progressBars.elementAt(rowIndex);\n if (downloadLink.isInProgress() && downloadLink.getRemainingWaittime() == 0 && (int) downloadLink.getDownloadCurrent() > 0 && (int) downloadLink.getDownloadCurrent() <= (int) downloadLink.getDownloadMax()) {\n p.setMaximum((int) downloadLink.getDownloadMax());\n p.setStringPainted(true);\n p.setBackground(Color.WHITE);\n p.setValue((int) downloadLink.getDownloadCurrent());\n p.setString((int) (100 * p.getPercentComplete()) + \"String_Node_Str\" + JDUtilities.formatBytesToMB(p.getValue()) + \"String_Node_Str\" + JDUtilities.formatBytesToMB(p.getMaximum()) + \"String_Node_Str\");\n return p;\n } else if (downloadLink.getRemainingWaittime() > 0 && downloadLink.getWaitTime() >= downloadLink.getRemainingWaittime()) {\n p.setMaximum(downloadLink.getWaitTime());\n p.setBackground(new Color(255, 0, 0, 80));\n p.setStringPainted(true);\n p.setValue((int) downloadLink.getRemainingWaittime());\n p.setString((int) (100 * p.getPercentComplete()) + \"String_Node_Str\" + p.getValue() / 1000 + \"String_Node_Str\" + p.getMaximum() / 1000 + \"String_Node_Str\");\n return p;\n } else\n return null;\n }\n }\n return null;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.