content stringlengths 40 137k |
|---|
"public void onGuildMessageDelete(GuildMessageDeleteEvent event) {\n EmbedBuilder builder = new EmbedBuilder();\n Guild guild = event.getGuild();\n TextChannel tc = ldm.getServerlogChannel(guild);\n Message message = MessagesLogging.getMsg(event.getMessageIdLong());\n String title;\n TextChannel channel = FinderUtil.getDefaultChannel(event.getGuild());\n if (!(message.getContent().equals(\"String_Node_Str\")) && !(tc == null) && !(message.getAuthor().isBot())) {\n if (!(tc.getGuild().getSelfMember().hasPermission(tc, Permission.MESSAGE_READ, Permission.MESSAGE_WRITE, Permission.MESSAGE_EMBED_LINKS, Permission.MESSAGE_HISTORY)))\n guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null, (e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));\n else {\n title = \"String_Node_Str\" + message.getAuthor().getName() + \"String_Node_Str\" + message.getAuthor().getDiscriminator() + \"String_Node_Str\" + message.getTextChannel().getAsMention() + \"String_Node_Str\";\n builder.setAuthor(message.getAuthor().getName(), null, message.getAuthor().getEffectiveAvatarUrl());\n builder.setDescription(\"String_Node_Str\" + message.getContent() + \"String_Node_Str\");\n builder.setFooter(\"String_Node_Str\" + message.getId(), null);\n builder.setColor(event.getGuild().getSelfMember().getColor());\n builder.setTimestamp(message.getCreationTime());\n tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> MessagesLogging.removeMessage(message.getIdLong()));\n }\n } else {\n if (!(tc == null) && !(message.getAuthor() == null)) {\n if (!(tc.getGuild().getSelfMember().hasPermission(tc, Permission.MESSAGE_READ, Permission.MESSAGE_WRITE, Permission.MESSAGE_EMBED_LINKS, Permission.MESSAGE_HISTORY)))\n guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null, (e) -> tc.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));\n else {\n title = \"String_Node_Str\";\n builder.setDescription(\"String_Node_Str\");\n builder.setFooter(\"String_Node_Str\" + event.getMessageId(), null);\n builder.setColor(event.getGuild().getSelfMember().getColor());\n tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> MessagesLogging.removeMessage(message.getIdLong()));\n }\n }\n }\n}\n"
|
"public Vec2i getSize() {\n return new Vec2i(100, 30);\n}\n"
|
"public void setOnline(Player player) {\n playerFactory.addExistingPlayer(player.getName());\n ACPlayer acPlayer = demandACPlayer(player);\n onlinePlayers.put(acPlayer, true);\n DebugLog.INSTANCE.info(player.getName() + \"String_Node_Str\");\n}\n"
|
"public Representation deleteMedia() {\n setServerHeader();\n Request request = getRequest();\n String auth = getQueryValue(Constants.AUTH_QUERY);\n String userId = null;\n String token = null;\n try {\n userId = getUserId(request, auth);\n token = getTransactionId(request, auth);\n } catch (Throwable t) {\n setStatus(Status.CLIENT_ERROR_BAD_REQUEST);\n return new StringRepresentation(\"String_Node_Str\", MediaType.APPLICATION_JSON);\n }\n Representation verifyRequest = checkRequest(userId, token, request.getResourceRef().getIdentifier());\n if (verifyRequest != null) {\n return verifyRequest;\n }\n String entityId = (String) request.getAttributes().get(Constants.ENTITY_ARG);\n String mediaId = (String) request.getAttributes().get(Constants.MEDIA_ARG);\n MediaDAO mediaDAO = DAOFactory.getInstance().getDAO();\n try {\n mediaDAO.deleteMedia(userId, entityId, mediaId);\n return new StringRepresentation(\"String_Node_Str\", MediaType.APPLICATION_JSON);\n } catch (MetadataSourceException e) {\n setStatus(Status.SERVER_ERROR_INTERNAL);\n } catch (MediaNotFoundException e) {\n setStatus(Status.CLIENT_ERROR_NOT_FOUND);\n } catch (UserNotAllowedException e) {\n setStatus(Status.CLIENT_ERROR_FORBIDDEN);\n } catch (Throwable t) {\n return unexpectedError(t);\n }\n return new EmptyRepresentation();\n}\n"
|
"public static Object getFirstContent(CrosstabCellHandle cell) {\n if (cell != null) {\n List<?> contents = cell.getContents();\n if (contents != null && contents.size() >= 1) {\n return contents.get(0);\n }\n }\n return null;\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + file.getFileName() + \"String_Node_Str\" + getMapID();\n}\n"
|
"public void initTraceParamters() {\n List<Map<String, Object>> values = new ArrayList<Map<String, Object>>();\n IMetadataTable metadataTable = this.getMetadataTable();\n if (metadataTable != null) {\n for (IMetadataColumn metaColumn : metadataTable.getListColumns()) {\n Map<String, Object> line = new HashMap<String, Object>();\n line.put(IConnection.TRACE_SCHEMA_COLUMN, metaColumn.getLabel());\n line.put(IConnection.TRACE_SCHEMA_COLUMN_CHECKED, true);\n line.put(IConnection.TRACE_SCHEMA_COLUMN_CONDITION, null);\n values.add(line);\n }\n }\n if (getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()) != null && values != null) {\n getElementParameter(EParameterName.TRACES_CONNECTION_FILTER.getName()).setValue(values);\n if (trace != null) {\n this.trace.setPropertyValue(EParameterName.TRACES_SHOW_ENABLE.getName(), checkTraceShowEnable());\n }\n}\n"
|
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n for (Iterator<JavaField> fieldIt = cls.getDeclaredFields().iterator(); fieldIt.hasNext(); ) {\n JavaField nextField = fieldIt.next();\n int modifiers = nextField.getModifiers();\n if (!helper.isAnnotationPresent(nextField, XmlTransient.class)) {\n if (!Modifier.isTransient(modifiers) && ((Modifier.isPublic(nextField.getModifiers()) && onlyPublic) || !onlyPublic)) {\n if (!Modifier.isStatic(modifiers)) {\n Property property = buildNewProperty(info, cls, nextField, nextField.getName(), nextField.getResolvedType());\n properties.add(property);\n } else if (helper.isAnnotationPresent(nextField, XmlAttribute.class)) {\n try {\n Property property = buildNewProperty(info, cls, nextField, nextField.getName(), nextField.getResolvedType());\n Object value = ((JavaFieldImpl) nextField).get(null);\n String stringValue = (String) XMLConversionManager.getDefaultXMLManager().convertObject(value, String.class, property.getSchemaType());\n property.setFixedValue(stringValue);\n properties.add(property);\n } catch (ClassCastException e) {\n } catch (IllegalAccessException e) {\n }\n }\n }\n } else {\n List<String> propOrderList = Arrays.asList(info.getPropOrder());\n if (propOrderList.contains(nextField.getName())) {\n throw JAXBException.transientInProporder(nextField.getName());\n }\n }\n }\n return properties;\n}\n"
|
"public List<UpdateResult> checkJobItemsForUpdate(IProgressMonitor parentMonitor, final Set<IUpdateItemType> types) {\n if (types == null || types.isEmpty()) {\n return null;\n }\n List<IProcess2> openedProcessList = CoreRuntimePlugin.getInstance().getDesignerCoreService().getOpenedProcess(RepositoryUpdateManager.getEditors());\n try {\n List<UpdateResult> resultList = new ArrayList<UpdateResult>();\n if (enableCheckItem()) {\n resultList.addAll(checkJobItems(parentMonitor, types, openedProcessList));\n }\n for (IProcess2 process : openedProcessList) {\n checkMonitorCanceled(parentMonitor);\n parentMonitor.subTask(RepositoryUpdateManager.getUpdateJobInfor(process.getProperty()));\n List<UpdateResult> resultFromProcess = getResultFromProcess(process, types);\n if (resultFromProcess != null) {\n resultList.addAll(resultFromProcess);\n }\n parentMonitor.worked(1);\n }\n List<UpdateResult> otherUpdateResults = getOtherUpdateResults(parentMonitor, openedProcessList, types);\n if (otherUpdateResults != null) {\n resultList.addAll(otherUpdateResults);\n }\n parentMonitor.done();\n return resultList;\n } catch (PersistenceException e) {\n }\n return null;\n}\n"
|
"public Report execute(IndexService index, ModelService model, StorageService storage, List<LiteOptionalWithCause> liteList) throws PluginException {\n String firstAIPId = \"String_Node_Str\";\n BufferedWriter fileWriter = null;\n CSVPrinter csvFilePrinter = null;\n try {\n SimpleJobPluginInfo jobPluginInfo = PluginHelper.getInitialJobInformation(this, liteList.size());\n PluginHelper.updateJobInformation(this, jobPluginInfo);\n Job job = PluginHelper.getJob(this, model);\n List<AIP> list = PluginHelper.transformLitesIntoObjects(model, index, this, null, jobPluginInfo, liteList, job);\n Path jobCSVTempFolder = getJobCSVTempFolder();\n Path csvTempFile = jobCSVTempFolder.resolve(UUID.randomUUID().toString() + \"String_Node_Str\");\n CSVFormat csvFileFormat = CSVFormat.DEFAULT.withRecordSeparator(\"String_Node_Str\");\n fileWriter = Files.newBufferedWriter(csvTempFile);\n csvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n for (AIP aip : list) {\n if (StringUtils.isNotBlank(firstAIPId)) {\n firstAIPId = aip.getId();\n }\n if (outputDataInformation && aip.getRepresentations() != null) {\n List<List<String>> dataInformation = InventoryReportPluginUtils.getDataInformation(fields, aip, model, storage);\n csvFilePrinter.printRecords(dataInformation);\n }\n if (outputDescriptiveMetadataInformation && aip.getDescriptiveMetadata() != null) {\n List<List<String>> dataInformation = InventoryReportPluginUtils.getDescriptiveMetadataInformation(fields, aip, model, storage);\n csvFilePrinter.printRecords(dataInformation);\n }\n if (otherMetadataTypes != null && otherMetadataTypes.size() > 0) {\n for (String otherMetadataType : otherMetadataTypes) {\n List<List<String>> otherMetadataInformation = InventoryReportPluginUtils.getOtherMetadataInformation(fields, otherMetadataType, aip, model, storage);\n csvFilePrinter.printRecords(otherMetadataInformation);\n }\n }\n jobPluginInfo.incrementObjectsProcessedWithSuccess();\n }\n jobPluginInfo.finalizeInfo();\n PluginHelper.updateJobInformation(this, jobPluginInfo);\n LOGGER.debug(\"String_Node_Str\", firstAIPId, list.size());\n } catch (JobException e) {\n LOGGER.error(\"String_Node_Str\");\n } catch (IOException e) {\n LOGGER.error(\"String_Node_Str\" + e.getMessage(), e);\n } finally {\n IOUtils.closeQuietly(fileWriter);\n IOUtils.closeQuietly(csvFilePrinter);\n }\n return PluginHelper.initPluginReport(this);\n}\n"
|
"public static void loadRecipes() {\n if (miningWellBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(miningWellBlock, 1), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'p', \"String_Node_Str\", 'i', \"String_Node_Str\", 'g', \"String_Node_Str\", 'P', Items.iron_pickaxe);\n }\n if (pumpBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(pumpBlock), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'p', \"String_Node_Str\", 'i', \"String_Node_Str\", 'T', tankBlock, 'g', \"String_Node_Str\", 'B', Items.bucket);\n }\n if (autoWorkbenchBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(autoWorkbenchBlock), \"String_Node_Str\", 'w', Blocks.crafting_table, 'g', \"String_Node_Str\");\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(autoWorkbenchBlock), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'w', Blocks.crafting_table, 'g', \"String_Node_Str\");\n }\n if (tankBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(tankBlock), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'g', \"String_Node_Str\");\n }\n if (refineryBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(refineryBlock), \"String_Node_Str\", \"String_Node_Str\", 'T', tankBlock != null ? tankBlock : \"String_Node_Str\", 'G', \"String_Node_Str\", 'R', Blocks.redstone_torch);\n }\n if (chuteBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(chuteBlock), \"String_Node_Str\", \"String_Node_Str\", 'I', \"String_Node_Str\", 'C', Blocks.chest, 'G', \"String_Node_Str\");\n CoreProxy.proxy.addShapelessRecipe(new ItemStack(chuteBlock), Blocks.hopper, \"String_Node_Str\");\n }\n if (floodGateBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(floodGateBlock), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'I', \"String_Node_Str\", 'T', tankBlock != null ? tankBlock : \"String_Node_Str\", 'G', \"String_Node_Str\", 'F', new ItemStack(Blocks.iron_bars));\n }\n}\n"
|
"private void exportNodeProperties(Graph graph) throws IOException {\n stringBuilder.append(\"String_Node_Str\");\n stringBuilder.append(\"String_Node_Str\");\n if (exportCoords) {\n writer.write(\"String_Node_Str\");\n }\n if (exportSize) {\n writer.write(\"String_Node_Str\");\n }\n if (exportColor) {\n writer.write(\"String_Node_Str\");\n }\n if (exportShortLabel) {\n writer.write(\"String_Node_Str\");\n }\n writer.write(\"String_Node_Str\");\n for (NodeIterator nodeIterator = graph.getNodes().iterator(); nodeIterator.hasNext(); ) {\n Node node = nodeIterator.next();\n writer.write(node.getNodeData().getId());\n if (exportCoords) {\n if (!normalize) {\n writer.write(\"String_Node_Str\" + node.getNodeData().x() + \"String_Node_Str\" + node.getNodeData().y());\n } else {\n writer.write(\"String_Node_Str\" + (node.getNodeData().x() - minX) / (maxX - minX) + \"String_Node_Str\" + (node.getNodeData().y() - minY) / (maxY - minY));\n }\n }\n if (exportSize) {\n if (!normalize) {\n writer.write(\"String_Node_Str\" + node.getNodeData().getRadius());\n } else {\n writer.write(\"String_Node_Str\" + (node.getNodeData().getRadius() - minSize) / (maxSize - minSize));\n }\n }\n if (exportColor) {\n writer.write(\"String_Node_Str\" + ((int) (node.getNodeData().r() * 255)));\n }\n if (exportShortLabel) {\n if (node.getNodeData().getLabel() != null)\n writer.write(\"String_Node_Str\" + node.getNodeData().getLabel());\n else\n writer.write(\"String_Node_Str\" + node.getNodeData().getId());\n }\n writer.write(\"String_Node_Str\");\n }\n}\n"
|
"public void initialize() throws BirtException {\n createRoot();\n Color backgroundColor = PropertyUtil.getColor(pageContent.getComputedStyle().getProperty(StyleConstants.STYLE_BACKGROUND_COLOR));\n ReportDesignHandle designHandle = pageContent.getReportContent().getDesign().getReportDesign();\n IStyle style = pageContent.getStyle();\n String imageUrl = EmitterUtil.getBackgroundImageUrl(style, designHandle);\n if (backgroundColor != null || imageUrl != null) {\n boxStyle = new BoxStyle();\n boxStyle.setBackgroundColor(backgroundColor);\n if (imageUrl != null) {\n boxStyle.setBackgroundImage(createBackgroundImage(imageUrl, pageContent));\n }\n }\n context.setMaxHeight(root.getHeight());\n context.setMaxWidth(root.getWidth());\n context.setMaxBP(root.getHeight());\n layoutHeader();\n layoutFooter();\n updateBodySize();\n context.setMaxHeight(body.getHeight());\n context.setMaxWidth(body.getWidth());\n context.setMaxBP(body.getHeight());\n maxAvaWidth = context.getMaxWidth();\n}\n"
|
"protected void initialize(int timeout) {\n try {\n System.loadLibrary(\"String_Node_Str\");\n } catch (Throwable e) {\n if (!Utils.checkLibraryInPath(LIBFILENAME)) {\n Utils.extractFromJarToTemp(LIBFILENAME);\n System.load(System.getProperty(\"String_Node_Str\") + File.separatorChar + LIBFILENAME);\n }\n }\n jni_init();\n thread_ = new Thread(new Runnable() {\n public void run() {\n jni_windowProc();\n }\n }, \"String_Node_Str\");\n thread_.setDaemon(true);\n thread_.start();\n}\n"
|
"public void initializeUI(UIBuilder builder) throws Exception {\n idStrategy.setDefaultValue(GenerationType.AUTO);\n Project project = getSelectedProject(builder.getUIContext());\n if (project == null) {\n UISelection<FileResource<?>> currentSelection = builder.getUIContext().getInitialSelection();\n if (!currentSelection.isEmpty()) {\n FileResource<?> resource = currentSelection.get();\n if (resource instanceof DirectoryResource) {\n targetLocation.setDefaultValue((DirectoryResource) resource);\n } else {\n targetLocation.setDefaultValue(resource.getParent());\n }\n }\n } else if (project.hasFacet(JavaSourceFacet.class)) {\n JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);\n targetLocation.setDefaultValue(facet.getSourceFolder()).setEnabled(false);\n }\n builder.add(targetLocation);\n builder.add(targetPackage).add(named).add(idStrategy);\n}\n"
|
"private boolean reg_save_equal(regsave_T save) {\n if (reg_match == null) {\n return reglnum == save.pos.lnum && reginput.equals(regline.ref(save.pos.col));\n }\n return reginput == save.ptr;\n}\n"
|
"public static DefaultHttpClient getNewHttpClient(boolean customssl) {\n DefaultHttpClient hc = null;\n if (customssl) {\n try {\n if (trustStore == null) {\n trustStore = KeyStore.getInstance(\"String_Node_Str\");\n final InputStream in = OpacClient.context.getResources().openRawResource(R.raw.ssl_trust_store);\n try {\n trustStore.load(in, \"String_Node_Str\".toCharArray());\n } finally {\n in.close();\n }\n }\n SSLSocketFactory sf = new AdditionalKeyStoresSSLSocketFactory(trustStore);\n HttpParams params = new BasicHttpParams();\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n HttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n SchemeRegistry registry = new SchemeRegistry();\n registry.register(new Scheme(\"String_Node_Str\", PlainSocketFactory.getSocketFactory(), 80));\n registry.register(new Scheme(\"String_Node_Str\", sf, 443));\n ClientConnectionManager ccm = new ThreadSafeClientConnManager(params, registry);\n hc = new DefaultHttpClient(ccm, params);\n } catch (Exception e) {\n e.printStackTrace();\n registry.register(new Scheme(\"String_Node_Str\", SSLSocketFactory.getSocketFactory(), 443));\n hc = new DefaultHttpClient(ccm, params);\n }\n } else {\n hc = new DefaultHttpClient();\n }\n RedirectHandler customRedirectHandler = new HTTPClient.CustomRedirectHandler();\n hc.setRedirectHandler(customRedirectHandler);\n HttpProtocolParams.setUserAgent(hc.getParams(), \"String_Node_Str\" + OpacClient.versionName);\n return hc;\n}\n"
|
"public void testProcessHeadersInDependenciesOfBinaries() throws Exception {\n AnalysisMock.get().ccSupport().setupCrosstool(mockToolsConfig, MockCcSupport.HEADER_PROCESSING_FEATURE_CONFIGURATION);\n useConfiguration(\"String_Node_Str\", \"String_Node_Str\");\n ConfiguredTarget x = scratchConfiguredTarget(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n String hiddenTopLevel = ActionsTestUtil.baseNamesOf(getOutputGroup(x, OutputGroupProvider.HIDDEN_TOP_LEVEL));\n assertThat(hiddenTopLevel).contains(\"String_Node_Str\");\n assertThat(hiddenTopLevel).doesNotContain(\"String_Node_Str\");\n}\n"
|
"public void testSortWithExpr1() throws Exception {\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier1 = dim1.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level11 = hier1.createLevel(\"String_Node_Str\");\n ILevelDefinition level12 = hier1.createLevel(\"String_Node_Str\");\n IDimensionDefinition dim2 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier2 = dim2.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level21 = hier2.createLevel(\"String_Node_Str\");\n cqd.createMeasure(\"String_Node_Str\");\n IBinding binding1 = new Binding(\"String_Node_Str\");\n binding1.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding1);\n IBinding binding2 = new Binding(\"String_Node_Str\");\n binding2.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding2);\n IBinding binding4 = new Binding(\"String_Node_Str\");\n binding4.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding4);\n IBinding binding5 = new Binding(\"String_Node_Str\");\n binding5.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding5);\n CubeSortDefinition sorter = new CubeSortDefinition();\n sorter.setExpression(\"String_Node_Str\");\n sorter.setSortDirection(ISortDefinition.SORT_DESC);\n sorter.setTargetLevel(level21);\n cqd.addSort(sorter);\n sorter = new CubeSortDefinition();\n sorter.setExpression(\"String_Node_Str\");\n sorter.setSortDirection(ISortDefinition.SORT_ASC);\n sorter.setTargetLevel(level21);\n cqd.addSort(sorter);\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 List rowEdgeBindingNames = new ArrayList();\n rowEdgeBindingNames.add(\"String_Node_Str\");\n this.printCube(cursor, columnEdgeBindingNames, rowEdgeBindingNames, \"String_Node_Str\");\n}\n"
|
"private void updateSchoolMates(Continuation<List<SchoolMate>, Void> continuation) {\n SchoolMatesManager.getInstance().queryAllSchoolMates().continueWith(task -> {\n final List<SchoolMate> result = task.getResult();\n if (result != null) {\n Collections.sort(result, new LetterComparator<>());\n if (continuation != null) {\n Task.<List<SchoolMate>>forResult(result).continueWith(continuation, Task.UI_THREAD_EXECUTOR);\n }\n } else {\n if (continuation != null) {\n Task.<List<SchoolMate>>forResult(null).continueWith(continuation);\n }\n }\n return null;\n });\n}\n"
|
"protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {\n switch(propertyName.hashCode()) {\n case 467061063:\n ((SimplePerson) bean).setForename((String) newValue);\n return;\n case -1852993317:\n ((SimplePerson) bean).setSurname((String) newValue);\n return;\n case 926656063:\n ((SimplePerson) bean).setNumberOfCars((Integer) newValue);\n return;\n case -1377524046:\n ((SimplePerson) bean).setAddressList((List<Address>) newValue);\n return;\n case 1368089592:\n ((SimplePerson) bean).setOtherAddressMap((Map<String, Address>) newValue);\n return;\n case -226885792:\n ((SimplePerson) bean).setAddressesList((List<List<Address>>) newValue);\n return;\n case -2032731141:\n ((SimplePerson) bean).setMainAddress((Address) newValue);\n return;\n case 1897330136:\n ((SimplePerson) bean).setPropDefAnnotationSecondDeprecated((FlexiBean) newValue);\n return;\n case 1276990059:\n ((SimplePerson) bean).setPropDefAnnotationSecondManual((Map<String, String>) newValue);\n return;\n }\n super.propertySet(bean, propertyName, newValue, quiet);\n}\n"
|
"protected Control createCustomArea(Composite parent) {\n List list = new List(parent, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n list.setItems(this.information);\n GridData data = new GridData();\n data.heightHint = 120;\n data.widthHint = 350;\n data.horizontalAlignment = GridData.FILL;\n data.verticalAlignment = GridData.FILL;\n data.grabExcessHorizontalSpace = true;\n data.grabExcessVerticalSpace = true;\n list.setLayoutData(data);\n return parent;\n}\n"
|
"public String sendTicketByEmail(String eventName, String reservationId, String ticketIdentifier, HttpServletRequest request, Locale locale) throws Exception {\n Optional<Triple<Event, TicketReservation, Ticket>> oData = ticketReservationManager.fetchCompleteAndAssigned(eventName, reservationId, ticketIdentifier);\n if (!oData.isPresent()) {\n return \"String_Node_Str\" + eventName + \"String_Node_Str\" + reservationId;\n }\n Triple<Event, TicketReservation, Ticket> data = oData.get();\n Ticket ticket = data.getRight();\n Event event = data.getLeft();\n notificationManager.sendTicketByEmail(ticket, event, locale, TemplateProcessor.buildPartialEmail(event, organizationRepository, data.getMiddle(), templateManager, request), preparePdfTicket(request, event, data.getMiddle(), ticket));\n return \"String_Node_Str\" + eventName + \"String_Node_Str\" + reservationId + (\"String_Node_Str\".equals(request.getParameter(\"String_Node_Str\")) ? (\"String_Node_Str\" + ticket.getUuid()) : \"String_Node_Str\") + \"String_Node_Str\";\n}\n"
|
"private Intent createParserServiceIntent(Bundle bundle) {\n if (bundle != null) {\n Intent intent = new Intent(this, TextParserService.class);\n intent.putExtras(bundle);\n return intent;\n}\n"
|
"private void print(char c) {\n if (enabled()) {\n writer.print(s);\n }\n}\n"
|
"public static String addQuotesIfNotExist(String text, String quote) {\n if (text == null) {\n return null;\n }\n if (\"String_Node_Str\".equals(text)) {\n text = quote + quote;\n } else {\n if (!text.startsWith(quote)) {\n text = quote + text;\n }\n if (!text.endsWith(quote)) {\n text = text + quote;\n }\n }\n return text;\n}\n"
|
"public static Exception testURLConnection(IConnectionProfile connectionProfile, final String propertyKey) {\n Properties connProperties = connectionProfile.getBaseProperties();\n String xmlFile = connProperties == null ? null : (String) connProperties.get(propertyKey);\n String responseType = IWSProfileConstants.XML;\n if (connProperties != null) {\n if (connProperties.get(IWSProfileConstants.RESPONSE_TYPE_PROPERTY_KEY) != null) {\n responseType = (String) connProperties.get(IWSProfileConstants.RESPONSE_TYPE_PROPERTY_KEY);\n }\n }\n try {\n URL url = URLHelper.buildURL(xmlFile);\n boolean resolved = false;\n Map<String, String> connPropMap = new HashMap<String, String>();\n if (connProperties.get(IWSProfileConstants.ACCEPT_PROPERTY_KEY) != null) {\n connPropMap.put(IWSProfileConstants.ACCEPT_PROPERTY_KEY, (String) connProperties.get(IWSProfileConstants.ACCEPT_PROPERTY_KEY));\n } else {\n if (responseType.equalsIgnoreCase(IWSProfileConstants.JSON)) {\n connPropMap.put(IWSProfileConstants.ACCEPT_PROPERTY_KEY, IWSProfileConstants.CONTENT_TYPE_JSON_VALUE);\n } else {\n connPropMap.put(IWSProfileConstants.ACCEPT_PROPERTY_KEY, IWSProfileConstants.ACCEPT_DEFAULT_VALUE);\n }\n }\n if (connProperties.get(IWSProfileConstants.CONTENT_TYPE_PROPERTY_KEY) != null) {\n connPropMap.put(IWSProfileConstants.CONTENT_TYPE_PROPERTY_KEY, (String) connProperties.get(IWSProfileConstants.CONTENT_TYPE_PROPERTY_KEY));\n } else {\n connPropMap.put(IWSProfileConstants.CONTENT_TYPE_PROPERTY_KEY, IWSProfileConstants.CONTENT_TYPE_DEFAULT_VALUE);\n }\n for (Object key : connPropMap.keySet()) {\n String keyStr = (String) key;\n if (IWSProfileConstants.AUTHORIZATION_KEY.equalsIgnoreCase(keyStr) || ICredentialsCommon.PASSWORD_PROP_ID.equalsIgnoreCase(keyStr) || ICredentialsCommon.SECURITY_TYPE_ID.equalsIgnoreCase(keyStr) || ICredentialsCommon.USERNAME_PROP_ID.equalsIgnoreCase(keyStr) || IWSProfileConstants.END_POINT_URI_PROP_ID.equalsIgnoreCase(keyStr) || IWSProfileConstants.CONTENT_TYPE_PROPERTY_KEY.equalsIgnoreCase(keyStr) || IWSProfileConstants.ACCEPT_PROPERTY_KEY.equalsIgnoreCase(keyStr)) {\n } else {\n connPropMap.put(keyStr, connProperties.getProperty(keyStr));\n }\n }\n String userName = null;\n String password = null;\n userName = connProperties.getProperty(ICredentialsCommon.USERNAME_PROP_ID);\n password = connProperties.getProperty(ICredentialsCommon.PASSWORD_PROP_ID);\n if (ICredentialsCommon.SecurityType.Digest.name().equals(connProperties.getProperty(ICredentialsCommon.SECURITY_TYPE_ID))) {\n resolved = URLHelper.resolveUrlWithDigest(url, userName, password, connPropMap, true);\n } else {\n resolved = URLHelper.resolveUrl(url, userName, password, connPropMap, true);\n }\n if (!resolved) {\n throw new Exception(DatatoolsUiConstants.UTIL.getString(\"String_Node_Str\"));\n }\n } catch (Exception ex) {\n return ex;\n }\n return null;\n}\n"
|
"public boolean put(UUID nodeId, Set<Service> descriptors) {\n boolean exists = exists(nodeId);\n String value = codec.toJson(ImmutableList.copyOf(descriptors));\n HFactory.createMutator(keyspace, StringSerializer.get()).addInsertion(nodeId.toString(), COLUMN_FAMILY, HFactory.createColumn(currentTime.get().getMillis(), value, LongSerializer.get(), StringSerializer.get())).execute();\n return !exists;\n}\n"
|
"public static void main(String[] args) throws IOException, JAXBException {\n JCommander jc = new JCommander();\n jc.setProgramName(\"String_Node_Str\");\n AssembleCommand assemble = new AssembleCommand();\n SegmentCommand segment = new SegmentCommand();\n CompareCommand compare = new CompareCommand();\n DiffCommand diff = new DiffCommand();\n EnumerateCommand enumerate = new EnumerateCommand();\n HelpCommand help = new HelpCommand();\n jc.addCommand(\"String_Node_Str\", assemble);\n jc.addCommand(\"String_Node_Str\", segment);\n jc.addCommand(\"String_Node_Str\", compare);\n jc.addCommand(\"String_Node_Str\", enumerate);\n jc.addCommand(\"String_Node_Str\", diff);\n jc.addCommand(\"String_Node_Str\", help);\n try {\n jc.parse(args);\n if (jc.getParsedCommand() == null || jc.getParsedCommand().equals(\"String_Node_Str\")) {\n jc.usage();\n } else if (jc.getParsedCommand().equals(\"String_Node_Str\")) {\n validateAssemble(assemble);\n File out_dir = assemble.dir;\n if (!out_dir.exists())\n out_dir.mkdirs();\n File log_file = FileUtils.getFile(out_dir, Util.sprintf(\"String_Node_Str\", assemble.base));\n ThreadContext.put(\"String_Node_Str\", log_file.getAbsolutePath());\n logger.info(\"String_Node_Str\");\n File configuration_file = FileUtils.getFile(out_dir, Util.sprintf(\"String_Node_Str\", assemble.base));\n ConfigurationIO.writeConfiguration(assemble, configuration_file);\n {\n File bamFile = assemble.bam;\n File tmp_dir = FileUtils.getFile(out_dir, \"String_Node_Str\");\n if (!tmp_dir.exists())\n tmp_dir.mkdirs();\n if (!tmp_dir.exists())\n tmp_dir.mkdirs();\n File splice_junction_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File splice_count_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File segment_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n Strandedness strandedness = Strandedness.valueOf(assemble.strandedness);\n SAMFileReader.setDefaultValidationStringency(ValidationStringency.SILENT);\n SAMFileReader sfr = new SAMFileReader(bamFile);\n logger.info(\"String_Node_Str\");\n BEDWriter sj_bw = new BEDWriter(IO.bufferedPrintstream(splice_junction_bed));\n FindSpliceJunctions.tabulateSpliceJunctions(sfr, strandedness, sj_bw);\n sj_bw.close();\n logger.info(\"String_Node_Str\");\n GTFWriter counted_sj_gtf = new GTFWriter(IO.bufferedPrintstream(splice_count_gtf));\n FindSpliceJunctions.countJunctionSupportingReads(sfr, strandedness, counted_sj_gtf);\n counted_sj_gtf.close();\n logger.info(\"String_Node_Str\");\n BEDWriter seg_bw = new BEDWriter(IO.bufferedPrintstream(segment_bed));\n SlidingWindow.identifyExpressed(sfr, strandedness, 1, assemble.threshold, 1, seg_bw);\n seg_bw.close();\n if (assemble.insert_size_quantile != null) {\n File matepair_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File scaffolded_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n logger.info(\"String_Node_Str\");\n int insert_size = ClusterExpressedSegments.estimateMateInsertSize(sfr, strandedness, segment_bed, assemble.insert_size_quantile);\n logger.info(\"String_Node_Str\", assemble.insert_size_quantile, insert_size);\n BEDWriter matepair_bw = new BEDWriter(IO.bufferedPrintstream(matepair_bed));\n ClusterExpressedSegments.identifySpannableRegions(sfr, strandedness, matepair_bw, insert_size);\n matepair_bw.close();\n logger.info(\"String_Node_Str\");\n BEDWriter scaffolded_bw = new BEDWriter(IO.bufferedPrintstream(scaffolded_bed));\n ClusterExpressedSegments.scaffoldSpannableRegions(segment_bed, matepair_bed, scaffolded_bw);\n scaffolded_bw.close();\n }\n sfr.close();\n }\n {\n File assembly_gtf = new File(Util.sprintf(\"String_Node_Str\", assemble.dir, assemble.base));\n File unspliced = new File(Util.sprintf(\"String_Node_Str\", assemble.dir, assemble.base));\n if (assembly_gtf.getParentFile() != null && !assembly_gtf.getParentFile().exists())\n assembly_gtf.getParentFile().mkdirs();\n File bamFile = assemble.bam;\n File tmp_dir = FileUtils.getFile(out_dir, \"String_Node_Str\");\n if (!tmp_dir.exists())\n tmp_dir.mkdirs();\n File splice_junction_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File splice_count_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File segment_bed = assemble.insert_size_quantile == null ? FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\") : FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n double jnct_alpha = assemble.jnct_alpha;\n File merged_segment_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File inferred_strand_segment_bed = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File spliced_exon_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File acc_jnct_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File rej_jnct_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File trimmed_exon_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File intronic_exon_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File changepoint_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File filtered_changepoint_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n File changepoint_exon_gtf = FileUtils.getFile(tmp_dir, assemble.base + \"String_Node_Str\");\n Strandedness strandedness = Strandedness.valueOf(assemble.strandedness);\n SAMFileReader.setDefaultValidationStringency(ValidationStringency.SILENT);\n SAMFileReader sfr = new SAMFileReader(bamFile);\n logger.info(\"String_Node_Str\", assemble.merge_radius);\n BEDWriter merged_segments = new BEDWriter(IO.bufferedPrintstream(merged_segment_bed));\n File merge_regions = assemble.filled_gap_segments == null ? null : assemble.filled_gap_segments;\n ClusterExpressedSegments.mergeSegments(segment_bed, merge_regions, merged_segments, assemble.merge_radius);\n merged_segments.close();\n logger.info(\"String_Node_Str\");\n GTFWriter passed_jnct_gw = new GTFWriter(IO.bufferedPrintstream(acc_jnct_gtf));\n GTFWriter failed_jnct_gw = new GTFWriter(IO.bufferedPrintstream(rej_jnct_gtf));\n FindSpliceJunctions.filterCountedJunctions(splice_junction_bed, splice_count_gtf, jnct_alpha, passed_jnct_gw, failed_jnct_gw);\n passed_jnct_gw.close();\n failed_jnct_gw.close();\n if (strandedness == Strandedness.unstranded) {\n logger.info(\"String_Node_Str\");\n BEDWriter inferred_strand_segment = new BEDWriter(IO.bufferedPrintstream(inferred_strand_segment_bed));\n ClusterExpressedSegments.inferSegmentStrand(acc_jnct_gtf, merged_segment_bed, inferred_strand_segment);\n inferred_strand_segment.close();\n merged_segment_bed = inferred_strand_segment_bed;\n }\n logger.info(\"String_Node_Str\");\n GTFWriter spliced_exons = new GTFWriter(IO.bufferedPrintstream(spliced_exon_gtf));\n ClusterExpressedSegments.identifySplicedExons(acc_jnct_gtf, merged_segment_bed, spliced_exons);\n spliced_exons.close();\n if (strandedness == Strandedness.unstranded) {\n logger.info(\"String_Node_Str\");\n GTFWriter trimmed_exons = new GTFWriter(IO.bufferedPrintstream(trimmed_exon_gtf));\n ClusterExpressedSegments.trimInferredExons(spliced_exon_gtf, trimmed_exons);\n trimmed_exons.close();\n spliced_exon_gtf = trimmed_exon_gtf;\n }\n GTFWriter intronic_exon_writer = new GTFWriter(IO.bufferedPrintstream(intronic_exon_gtf));\n if (false) {\n System.out.println(\"String_Node_Str\");\n ClusterExpressedSegments.identifyIntronicExons(merged_segment_bed, acc_jnct_gtf, spliced_exon_gtf, sfr, strandedness, intronic_exon_writer, 10, .2);\n }\n intronic_exon_writer.close();\n logger.info(\"String_Node_Str\");\n double alpha_0 = 1.0;\n double beta_0 = 1.0;\n int nb_r = assemble.nb_r;\n int r = assemble.segment_r;\n double p = assemble.segment_p;\n int maxBins = 20000;\n int binSize = assemble.w;\n int minCP = 0;\n int minLength = binSize * 2;\n GTFWriter changepoint_writer = new GTFWriter(IO.bufferedPrintstream(changepoint_gtf));\n boolean internal = assemble.internal;\n double min_fold = assemble.min_fold;\n int min_terminal = -assemble.min_terminal;\n IdentifyChangePoints.identifyNegativeBinomialChangePointsInLongSegments(sfr, spliced_exon_gtf, intronic_exon_gtf, changepoint_writer, minLength, maxBins, binSize, minCP, strandedness, alpha_0, beta_0, nb_r, r, p, internal, min_fold, min_terminal);\n changepoint_writer.close();\n logger.info(\"String_Node_Str\");\n int sj_radius = binSize * 1;\n GTFWriter filtered_changepoint_writer = new GTFWriter(IO.bufferedPrintstream(filtered_changepoint_gtf));\n IdentifyChangePoints.filterChangePoints(sfr, spliced_exon_gtf, intronic_exon_gtf, acc_jnct_gtf, changepoint_gtf, filtered_changepoint_writer, sj_radius);\n filtered_changepoint_writer.close();\n logger.info(\"String_Node_Str\");\n GTFWriter changepoint_exon_writer = new GTFWriter(IO.bufferedPrintstream(changepoint_exon_gtf));\n IdentifyChangePoints.enumerateChangepointExons(spliced_exon_gtf, intronic_exon_gtf, filtered_changepoint_gtf, changepoint_exon_writer);\n changepoint_exon_writer.close();\n logger.info(\"String_Node_Str\");\n GTFWriter assembly_writer = new GTFWriter(IO.bufferedPrintstream(assembly_gtf));\n ExonSpliceGraph.labelConnectedComponents(acc_jnct_gtf, spliced_exon_gtf, intronic_exon_gtf, changepoint_exon_gtf, assembly_writer);\n assembly_writer.close();\n logger.info(\"String_Node_Str\");\n GTFWriter remainder_writer = new GTFWriter(IO.bufferedPrintstream(unspliced));\n ClusterExpressedSegments.writeUnsplicedRemainder(merged_segment_bed, assembly_gtf, remainder_writer);\n remainder_writer.close();\n if (assemble.coverage) {\n logger.info(\"String_Node_Str\");\n File coverage_gtf = new File(Util.sprintf(\"String_Node_Str\", assemble.dir, assemble.base));\n File coverage_unspliced = new File(Util.sprintf(\"String_Node_Str\", assemble.dir, assemble.base));\n GTFWriter coverage_gw = new GTFWriter(IO.bufferedPrintstream(coverage_gtf));\n IdentifyChangePoints.calculate_spliced_coverage(sfr, assembly_gtf, strandedness, coverage_gw);\n coverage_gw.close();\n GTFWriter coverage_unspliced_gw = new GTFWriter(IO.bufferedPrintstream(coverage_unspliced));\n IdentifyChangePoints.calculate_coverage(sfr, unspliced, strandedness, coverage_unspliced_gw);\n coverage_unspliced_gw.close();\n }\n sfr.close();\n }\n logger.info(\"String_Node_Str\");\n } else if (jc.getParsedCommand().equals(\"String_Node_Str\")) {\n {\n File assembly_gtf = new File(Util.sprintf(\"String_Node_Str\", segment.dir, segment.base));\n File unspliced = new File(Util.sprintf(\"String_Node_Str\", segment.dir, segment.base));\n if (assembly_gtf.getParentFile() != null && !assembly_gtf.getParentFile().exists())\n assembly_gtf.getParentFile().mkdirs();\n File bamFile = segment.bam;\n File out_dir = new File(segment.dir);\n File tmp_dir = FileUtils.getFile(out_dir, \"String_Node_Str\");\n if (!tmp_dir.exists())\n tmp_dir.mkdirs();\n File splice_junction_bed = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File splice_count_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File segment_bed = !FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\").exists() ? FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\") : FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n double jnct_alpha = segment.jnct_alpha;\n File merged_segment_bed = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File inferred_strand_segment_bed = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File spliced_exon_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File acc_jnct_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File rej_jnct_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File trimmed_exon_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File intronic_exon_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File changepoint_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File filtered_changepoint_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n File changepoint_exon_gtf = FileUtils.getFile(tmp_dir, segment.base + \"String_Node_Str\");\n Strandedness strandedness = Strandedness.valueOf(segment.strandedness);\n SAMFileReader.setDefaultValidationStringency(ValidationStringency.SILENT);\n SAMFileReader sfr = new SAMFileReader(bamFile);\n System.out.println(\"String_Node_Str\");\n BEDWriter merged_segments = new BEDWriter(IO.bufferedPrintstream(merged_segment_bed));\n File merge_regions = segment.filled_gap_segments == null ? null : new File(segment.filled_gap_segments);\n ClusterExpressedSegments.mergeSegments(segment_bed, merge_regions, merged_segments, segment.merge_radius);\n merged_segments.close();\n System.out.println(\"String_Node_Str\");\n GTFWriter passed_jnct_gw = new GTFWriter(IO.bufferedPrintstream(acc_jnct_gtf));\n GTFWriter failed_jnct_gw = new GTFWriter(IO.bufferedPrintstream(rej_jnct_gtf));\n FindSpliceJunctions.filterCountedJunctions(splice_junction_bed, splice_count_gtf, jnct_alpha, passed_jnct_gw, failed_jnct_gw);\n passed_jnct_gw.close();\n failed_jnct_gw.close();\n if (strandedness == Strandedness.unstranded) {\n System.out.println(\"String_Node_Str\");\n BEDWriter inferred_strand_segment = new BEDWriter(IO.bufferedPrintstream(inferred_strand_segment_bed));\n ClusterExpressedSegments.inferSegmentStrand(acc_jnct_gtf, merged_segment_bed, inferred_strand_segment);\n inferred_strand_segment.close();\n merged_segment_bed = inferred_strand_segment_bed;\n }\n System.out.println(\"String_Node_Str\");\n GTFWriter spliced_exons = new GTFWriter(IO.bufferedPrintstream(spliced_exon_gtf));\n ClusterExpressedSegments.identifySplicedExons(acc_jnct_gtf, merged_segment_bed, spliced_exons);\n spliced_exons.close();\n if (strandedness == Strandedness.unstranded) {\n System.out.println(\"String_Node_Str\");\n GTFWriter trimmed_exons = new GTFWriter(IO.bufferedPrintstream(trimmed_exon_gtf));\n ClusterExpressedSegments.trimInferredExons(spliced_exon_gtf, trimmed_exons);\n trimmed_exons.close();\n spliced_exon_gtf = trimmed_exon_gtf;\n }\n GTFWriter intronic_exon_writer = new GTFWriter(IO.bufferedPrintstream(intronic_exon_gtf));\n if (false) {\n System.out.println(\"String_Node_Str\");\n ClusterExpressedSegments.identifyIntronicExons(merged_segment_bed, acc_jnct_gtf, spliced_exon_gtf, sfr, strandedness, intronic_exon_writer, 10, .2);\n }\n intronic_exon_writer.close();\n System.out.println(\"String_Node_Str\");\n double alpha_0 = 1.0;\n double beta_0 = 1.0;\n int nb_r = segment.nb_r;\n int r = segment.segment_r;\n double p = segment.segment_p;\n int maxBins = 20000;\n int binSize = segment.w;\n int minCP = 0;\n int minLength = binSize * 2;\n GTFWriter changepoint_writer = new GTFWriter(IO.bufferedPrintstream(changepoint_gtf));\n boolean internal = segment.internal;\n double min_fold = segment.min_fold;\n int min_terminal = -segment.min_terminal;\n int confidence_interval = 0;\n IdentifyChangePoints.identifyNegativeBinomialChangePointsInLongSegments(sfr, spliced_exon_gtf, intronic_exon_gtf, changepoint_writer, minLength, maxBins, binSize, minCP, strandedness, alpha_0, beta_0, nb_r, r, p, internal, min_fold, min_terminal, confidence_interval);\n changepoint_writer.close();\n System.out.println(\"String_Node_Str\");\n int sj_radius = binSize * 1;\n GTFWriter filtered_changepoint_writer = new GTFWriter(IO.bufferedPrintstream(filtered_changepoint_gtf));\n IdentifyChangePoints.filterChangePoints(sfr, spliced_exon_gtf, intronic_exon_gtf, acc_jnct_gtf, changepoint_gtf, filtered_changepoint_writer, sj_radius);\n filtered_changepoint_writer.close();\n System.out.println(\"String_Node_Str\");\n GTFWriter changepoint_exon_writer = new GTFWriter(IO.bufferedPrintstream(changepoint_exon_gtf));\n IdentifyChangePoints.enumerateChangepointExons(spliced_exon_gtf, intronic_exon_gtf, filtered_changepoint_gtf, changepoint_exon_writer);\n changepoint_exon_writer.close();\n System.out.println(\"String_Node_Str\");\n GTFWriter assembly_writer = new GTFWriter(IO.bufferedPrintstream(assembly_gtf));\n ExonSpliceGraph.labelConnectedComponents(acc_jnct_gtf, spliced_exon_gtf, intronic_exon_gtf, changepoint_exon_gtf, assembly_writer);\n assembly_writer.close();\n System.out.println(\"String_Node_Str\");\n GTFWriter remainder_writer = new GTFWriter(IO.bufferedPrintstream(unspliced));\n ClusterExpressedSegments.writeUnsplicedRemainder(merged_segment_bed, assembly_gtf, remainder_writer);\n remainder_writer.close();\n if (segment.coverage) {\n System.out.println(\"String_Node_Str\");\n File coverage_gtf = new File(Util.sprintf(\"String_Node_Str\", segment.dir, segment.base));\n File coverage_unspliced = new File(Util.sprintf(\"String_Node_Str\", segment.dir, segment.base));\n GTFWriter coverage_gw = new GTFWriter(IO.bufferedPrintstream(coverage_gtf));\n IdentifyChangePoints.calculate_spliced_coverage(sfr, assembly_gtf, strandedness, coverage_gw);\n coverage_gw.close();\n GTFWriter coverage_unspliced_gw = new GTFWriter(IO.bufferedPrintstream(coverage_unspliced));\n IdentifyChangePoints.calculate_coverage(sfr, unspliced, strandedness, coverage_unspliced_gw);\n coverage_unspliced_gw.close();\n }\n sfr.close();\n }\n } else if (jc.getParsedCommand().equals(\"String_Node_Str\")) {\n validateEnumerate(enumerate);\n AssembleCommand assemblyConfiguration = ConfigurationIO.readAssemblyConfiguration(enumerate.assemblyXml);\n File out_dir = assemble.dir;\n File log_file = FileUtils.getFile(compare.dir, Util.sprintf(\"String_Node_Str\", assemble.base));\n ThreadContext.put(\"String_Node_Str\", log_file.getAbsolutePath());\n logger.info(\"String_Node_Str\");\n File configuration_xml = FileUtils.getFile(out_dir, Util.sprintf(\"String_Node_Str\", assemble.base));\n ConfigurationIO.writeConfiguration(enumerate, configuration_xml);\n PrintStream gtfFile = IO.bufferedPrintstream(FileUtils.getFile(assemblyConfiguration.dir, Util.sprintf(\"String_Node_Str\", assemblyConfiguration.base)));\n PrintStream skipped = IO.bufferedPrintstream(FileUtils.getFile(assemblyConfiguration.dir, Util.sprintf(\"String_Node_Str\", assemblyConfiguration.base)));\n File assembly_gtf = new File(Util.sprintf(\"String_Node_Str\", assemblyConfiguration.dir, assemblyConfiguration.base));\n GTFWriter gw = new GTFWriter(gtfFile);\n splicegraph.ExonSpliceGraph.iterateSpliceIsoforms(assembly_gtf, gw, skipped, enumerate.max_paths);\n gw.close();\n skipped.close();\n logger.info(\"String_Node_Str\");\n } else if (jc.getParsedCommand().equals(\"String_Node_Str\")) {\n validateCompare(compare);\n if (!compare.dir.exists())\n compare.dir.mkdirs();\n File log_file = FileUtils.getFile(compare.dir, Util.sprintf(\"String_Node_Str\", compare.base));\n ThreadContext.put(\"String_Node_Str\", log_file.getAbsolutePath());\n logger.info(\"String_Node_Str\");\n File configuration_xml = FileUtils.getFile(compare.dir, Util.sprintf(\"String_Node_Str\", compare.base));\n ConfigurationIO.writeConfiguration(compare, configuration_xml);\n AssembleCommand assemblyConfiguration1 = ConfigurationIO.readAssemblyConfiguration(compare.assemblyXml1);\n AssembleCommand assemblyConfiguration2 = ConfigurationIO.readAssemblyConfiguration(compare.assemblyXml2);\n Strandedness s1 = Strandedness.valueOf(assemblyConfiguration1.strandedness);\n Strandedness s2 = Strandedness.valueOf(assemblyConfiguration2.strandedness);\n File spliced_exon_gtf1 = FileUtils.getFile(assemblyConfiguration1.dir, \"String_Node_Str\", assemblyConfiguration1.base + \"String_Node_Str\" + (s1 == Strandedness.unstranded ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\");\n File spliced_exon_gtf2 = FileUtils.getFile(assemblyConfiguration2.dir, \"String_Node_Str\", assemblyConfiguration2.base + \"String_Node_Str\" + (s2 == Strandedness.unstranded ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\");\n File table = FileUtils.getFile(compare.dir, Util.sprintf(\"String_Node_Str\", compare.base));\n File gtf = FileUtils.getFile(compare.dir, Util.sprintf(\"String_Node_Str\", compare.base));\n int maxBins = 20000;\n int binSize = assemblyConfiguration1.w;\n int minCP = 0;\n double alpha_0 = 1;\n double beta_0 = 1;\n int nb_r = assemblyConfiguration1.nb_r;\n int r = assemblyConfiguration1.segment_r;\n double p = assemblyConfiguration1.segment_p;\n double min_fold = assemblyConfiguration1.min_fold;\n int confidence_interval = assemblyConfiguration1.c;\n JointSegmentation.performJointSegmentation(assemblyConfiguration1.base, assemblyConfiguration2.base, spliced_exon_gtf1, spliced_exon_gtf2, assemblyConfiguration1.bam, assemblyConfiguration2.bam, table, gtf, s1, s2, maxBins, binSize, minCP, alpha_0, beta_0, nb_r, r, p, min_fold, confidence_interval);\n logger.info(\"String_Node_Str\");\n } else if (jc.getParsedCommand().equals(\"String_Node_Str\")) {\n CompareCommand compareConfiguration = ConfigurationIO.readCompareConfiguration(diff.compareXml);\n File compareGtf = FileUtils.getFile(compareConfiguration.dir, Util.sprintf(\"String_Node_Str\", compareConfiguration.base));\n processing.DiffReference.diff(diff.refGtf, compareGtf);\n }\n } catch (ParameterException e) {\n e.printStackTrace(System.out);\n String command = jc.getParsedCommand();\n if (command != null) {\n jc.usage(command);\n } else {\n jc.usage();\n }\n }\n}\n"
|
"public static Double getDouble(String key, Double defaultValue) {\n try {\n return config.getDouble(key, defaultValue);\n } catch (ConversionException ce) {\n logger.error(key + \"String_Node_Str\");\n }\n return defaultValue;\n}\n"
|
"protected boolean doExecute() throws Exception {\n boolean result = true;\n for (String indicatorName : TextStatisticsIndicators) {\n IndicatorDefinition indiDefinition = IndicatorDefinitionFileHelper.getSystemIndicatorByName(indicatorName);\n if (indiDefinition != null && IndicatorDefinitionFileHelper.removeSqlExpression(indiDefinition, SQLITE)) {\n String body = \"String_Node_Str\";\n if (indicatorName.startsWith(\"String_Node_Str\")) {\n body = BODY_AVERAGE;\n } else if (indicatorName.startsWith(\"String_Node_Str\")) {\n body = BODY_MAX;\n } else if (indicatorName.startsWith(\"String_Node_Str\")) {\n body = BODY_MIN;\n }\n List<TdExpression> remainExpLs = new ArrayList<TdExpression>();\n remainExpLs.addAll(indiDefinition.getSqlGenericExpression());\n indiDefinition.getSqlGenericExpression().clear();\n IndicatorDefinitionFileHelper.addSqlExpression(indiDefinition, SQLITE, body);\n indiDefinition.getSqlGenericExpression().addAll(remainExpLs);\n result = result && IndicatorDefinitionFileHelper.save(indiDefinition);\n }\n }\n return false;\n}\n"
|
"public static DeploymentFactoryInstaller getInstaller() {\n if (dfInstaller == null) {\n DeploymentFactoryInstaller tmpInstaller = new DeploymentFactoryInstaller();\n tmpInstaller.initialize();\n dfInstaller = tmpInstaller;\n }\n return dfInstaller;\n}\n"
|
"public final int computeTicks(IDisplayServer xs, Label la, int iLabelLocation, int iOrientation, double dStart, double dEnd, boolean bConsiderStartLabel, boolean bConsiderEndLabel, AllAxes aax) throws ChartException {\n int nTicks = 0;\n double dLength = 0;\n double dTickGap = 0;\n int iDirection = (iScaleDirection == AUTO) ? ((iOrientation == HORIZONTAL) ? FORWARD : BACKWARD) : iScaleDirection;\n if (bConsiderStartLabel || bConsiderEndLabel) {\n computeAxisStartEndShifts(xs, la, iOrientation, iLabelLocation, aax);\n if (bConsiderStartLabel) {\n dStart += dStartShift * iDirection;\n }\n if (bConsiderEndLabel) {\n dEnd += dEndShift * -iDirection;\n }\n }\n this.dStart = dStart;\n this.dEnd = dEnd;\n nTicks = getTickCount();\n dLength = Math.abs(dStart - dEnd);\n if (!bCategoryScale && (iType & NUMERICAL) == NUMERICAL && (iType & LINEAR) == LINEAR) {\n double dMax = asDouble(oMaximum).doubleValue();\n double dMin = asDouble(oMinimum).doubleValue();\n if (bStepFixed && oStepNumber != null) {\n dTickGap = dLength / (oStepNumber.intValue()) * iDirection;\n } else {\n double dStepSize = asDouble(oStep).doubleValue();\n dTickGap = Math.min(Math.abs(dStepSize / (dMax - dMin) * dLength), dLength) * iDirection;\n }\n } else {\n if (isTickBetweenCategories()) {\n dTickGap = dLength / (nTicks - 1) * iDirection;\n } else {\n dTickGap = dLength / (nTicks - 2) * iDirection;\n }\n }\n if (nTicks > TICKS_MAX && bStepFixed && !bCategoryScale) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", Messages.getResourceBundle(rtc.getULocale()));\n }\n AxisTickCoordinates atc = new AxisTickCoordinates(nTicks, dStart, dEnd, dTickGap);\n setTickCordinates(null);\n setEndPoints(dStart, dEnd);\n setTickCordinates(atc);\n baTickLabelVisible = checkTickLabelsVisibility(xs, la, iLabelLocation);\n return nTicks;\n}\n"
|
"protected void drawGuiContainerBackgroundLayer(float f, int x, int y) {\n super.drawGuiContainerBackgroundLayer(f, x, y);\n if (this.container.recipe != null) {\n IUpgrade upgrade = this.container.recipe.getRecipeOutput();\n this.drawStringBounded(upgrade.getName(), 70, this.guiLeft + 100, this.guiTop + 18, 0xFFFFFF);\n this.drawStringBounded(upgrade.getInformation(), 159, this.guiLeft + 11, this.guiTop + 80, 0xFFFFFF);\n if (upgrade.isCompatible(this.container.item, this.container.stack, this.container.item.getSlot())) {\n this.drawStringBounded(StringHelper.localize(\"String_Node_Str\"), 70, this.guiLeft + 100, this.guiTop + 50, 0xFFFFFF);\n } else {\n this.drawStringBounded(StringHelper.localize(\"String_Node_Str\"), 70, this.guiLeft + 100, this.guiTop + 50, 0xFFFFFF);\n }\n }\n}\n"
|
"public static String[] split(String input, char delim) {\n ArrayList<String> parts = new ArrayList<>();\n for (int index; (index = input.indexOf(delim)) != -1; ) {\n parts.add(input.substring(0, index));\n input = input.substring(index + 1);\n }\n parts.add(input);\n return parts.toArray(new String[parts.size()]);\n}\n"
|
"public Object getValue(int index, int selector, Object parameters) {\n if (index == 1) {\n return getLogicalName();\n }\n if (index == 2) {\n return getTime();\n }\n if (index == 3) {\n return getTimeZone();\n }\n if (index == 4) {\n return getStatus().getValue();\n }\n if (index == 5) {\n return getBegin();\n }\n if (index == 6) {\n return getEnd();\n }\n if (index == 7) {\n return getDeviation();\n }\n if (index == 8) {\n return getEnabled();\n }\n if (index == 9) {\n return getClockBase().ordinal();\n }\n throw new IllegalArgumentException(\"String_Node_Str\");\n}\n"
|
"protected IndexedAttributeList buildAttributeList(Element elem) throws SAXException {\n IndexedAttributeList attributes = new IndexedAttributeList();\n NamedNodeMap attrs = elem.getAttributes();\n int length = attrs.getLength();\n for (int i = 0; i < length; i++) {\n Attr next = (Attr) attrs.item(i);\n String attrPrefix = next.getPrefix();\n if (attrPrefix != null && attrPrefix.equals(XMLConstants.XMLNS)) {\n getContentHandler().startPrefixMapping(next.getLocalName(), next.getValue());\n handleXMLNSPrefixedAttribute(elem, next);\n } else if (attrPrefix == null) {\n String name = next.getLocalName();\n if (name == null) {\n name = next.getNodeName();\n }\n if (name != null && name.equals(\"String_Node_Str\")) {\n getContentHandler().startPrefixMapping(\"String_Node_Str\", next.getValue());\n }\n }\n attributes.addAttribute(next);\n }\n return attributes;\n}\n"
|
"private void inferXsdFromXml(String xmlFile) {\n int infer = 0;\n String xsd = \"String_Node_Str\";\n try {\n String inputType = xmlFile.substring(xmlFile.lastIndexOf(\"String_Node_Str\"));\n if (inputType.equals(\"String_Node_Str\")) {\n xsd = Util.getXML(xmlFile);\n xsdSchema = Util.createXsdSchema(xsd, getXObject());\n xsdSchema.setTargetNamespace(null);\n xsd = Util.nodeToString(xsdSchema.getDocument());\n } else {\n XSDDriver d = new XSDDriver();\n infer = d.doMain(new String[] { xmlFile, \"String_Node_Str\" });\n if (infer == 0) {\n xsd = d.outputXSD();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n infer = 2;\n } finally {\n if (infer == 0 && !xsd.equals(\"String_Node_Str\")) {\n WSDataModel wsObj = (WSDataModel) (getXObject().getWsObject());\n wsObj.setXsdSchema(xsd);\n validateSchema(xsd);\n refreshData();\n markDirtyWithoutCommit();\n } else if (infer != 0) {\n MessageDialog.openError(getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\");\n }\n }\n}\n"
|
"public void run() {\n boolean hasReportedNullSocket = false;\n SendBundle currBundle = null;\n while (true) {\n synchronized (PACKETS_TO_SEND) {\n while (PACKETS_TO_SEND.isEmpty()) {\n try {\n PACKETS_TO_SEND.wait();\n } catch (InterruptedException ignored) {\n }\n }\n currBundle = (SendBundle) PACKETS_TO_SEND.remove(0);\n }\n synchronized (_sendLock) {\n if (_socket == null) {\n if (_socketSetOnce) {\n Exception npe = new NullPointerException(\"String_Node_Str\");\n ErrorService.error(npe);\n }\n continue;\n }\n try {\n _socket.send(currBundle._dp);\n } catch (BindException be) {\n } catch (NoRouteToHostException nrthe) {\n } catch (IOException ioe) {\n if (isIgnoreable(ioe.getMessage()))\n return;\n String errString = \"String_Node_Str\" + currBundle._dp.getAddress() + \"String_Node_Str\" + currBundle._dp.getPort();\n currBundle._err.error(ioe, errString);\n }\n }\n }\n}\n"
|
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n objectValue = xmlCompositeObjectMapping.convertObjectValueToDataValue(objectValue, session, marshalRecord.getMarshaller());\n if (null == objectValue) {\n return xmlCompositeObjectMapping.getNullPolicy().compositeObjectMarshal(xPathFragment, marshalRecord, object, session, namespaceResolver);\n }\n XPathFragment groupingFragment = marshalRecord.openStartGroupingElements(namespaceResolver);\n if (xPathFragment.hasAttribute) {\n ObjectBuilder tob = (ObjectBuilder) xmlCompositeObjectMapping.getReferenceDescriptor().getObjectBuilder();\n MappingNodeValue textMappingNodeValue = (MappingNodeValue) tob.getRootXPathNode().getTextNode().getMarshalNodeValue();\n Mapping textMapping = textMappingNodeValue.getMapping();\n if (textMapping.isAbstractDirectMapping()) {\n DirectMapping xmlDirectMapping = (DirectMapping) textMapping;\n Object fieldValue = xmlDirectMapping.getFieldValue(xmlDirectMapping.valueFromObject(objectValue, xmlDirectMapping.getField(), session), session, marshalRecord);\n QName schemaType = ((Field) xmlDirectMapping.getField()).getSchemaTypeForValue(fieldValue, session);\n marshalRecord.attribute(xPathFragment, namespaceResolver, fieldValue, schemaType);\n marshalRecord.closeStartGroupingElements(groupingFragment);\n return true;\n } else {\n return textMappingNodeValue.marshalSingleValue(xPathFragment, marshalRecord, objectValue, textMapping.getAttributeValueFromObject(objectValue), session, namespaceResolver, marshalContext);\n }\n }\n boolean isSelfFragment = xPathFragment.isSelfFragment;\n marshalRecord.closeStartGroupingElements(groupingFragment);\n UnmarshalKeepAsElementPolicy keepAsElementPolicy = xmlCompositeObjectMapping.getKeepAsElementPolicy();\n if (null != keepAsElementPolicy && (keepAsElementPolicy.isKeepUnknownAsElement() || keepAsElementPolicy.isKeepAllAsElement()) && objectValue instanceof Node) {\n if (isSelfFragment) {\n NodeList children = ((org.w3c.dom.Element) objectValue).getChildNodes();\n for (int i = 0, childrenLength = children.getLength(); i < childrenLength; i++) {\n Node next = children.item(i);\n short nodeType = next.getNodeType();\n if (nodeType == Node.ELEMENT_NODE) {\n marshalRecord.node(next, marshalRecord.getNamespaceResolver());\n return true;\n } else if (nodeType == Node.TEXT_NODE) {\n marshalRecord.characters(((Text) next).getNodeValue());\n return true;\n }\n }\n return false;\n } else {\n marshalRecord.node((Node) objectValue, marshalRecord.getNamespaceResolver());\n return true;\n }\n }\n Descriptor descriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (descriptor == null) {\n descriptor = (Descriptor) session.getDescriptor(objectValue.getClass());\n } else if (descriptor.hasInheritance()) {\n Class objectValueClass = objectValue.getClass();\n if (!(objectValueClass == descriptor.getJavaClass())) {\n descriptor = (Descriptor) session.getDescriptor(objectValueClass);\n }\n }\n if (descriptor != null) {\n marshalRecord.beforeContainmentMarshal(objectValue);\n ObjectBuilder objectBuilder = (ObjectBuilder) descriptor.getObjectBuilder();\n if (!(isSelfFragment || xPathFragment.nameIsText)) {\n xPathNode.startElement(marshalRecord, xPathFragment, object, session, namespaceResolver, objectBuilder, objectValue);\n }\n List extraNamespaces = null;\n if (!marshalRecord.hasEqualNamespaceResolvers()) {\n extraNamespaces = objectBuilder.addExtraNamespacesToNamespaceResolver(descriptor, marshalRecord, session, true, false);\n writeExtraNamespaces(extraNamespaces, marshalRecord, session);\n }\n if (!isSelfFragment) {\n objectBuilder.addXsiTypeAndClassIndicatorIfRequired(marshalRecord, descriptor, (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor(), (Field) xmlCompositeObjectMapping.getField(), false);\n }\n objectBuilder.buildRow(marshalRecord, objectValue, session, marshalRecord.getMarshaller(), xPathFragment);\n marshalRecord.afterContainmentMarshal(object, objectValue);\n if (!(isSelfFragment || xPathFragment.nameIsText())) {\n marshalRecord.endElement(xPathFragment, namespaceResolver);\n }\n objectBuilder.removeExtraNamespacesFromNamespaceResolver(marshalRecord, extraNamespaces, session);\n } else {\n if (Constants.UNKNOWN_OR_TRANSIENT_CLASS.equals(xmlCompositeObjectMapping.getReferenceClassName())) {\n throw XMLMarshalException.descriptorNotFoundInProject(objectValue.getClass().getName());\n }\n if (!(isSelfFragment || xPathFragment.nameIsText())) {\n xPathNode.startElement(marshalRecord, xPathFragment, object, session, namespaceResolver, null, objectValue);\n }\n QName schemaType = ((Field) xmlCompositeObjectMapping.getField()).getSchemaTypeForValue(objectValue, session);\n updateNamespaces(schemaType, marshalRecord, ((Field) xmlCompositeObjectMapping.getField()));\n marshalRecord.characters(schemaType, objectValue, null, false);\n if (!(isSelfFragment || xPathFragment.nameIsText())) {\n marshalRecord.endElement(xPathFragment, namespaceResolver);\n }\n }\n return true;\n}\n"
|
"private ASTSlice[] getTable() {\n if (selectedPackage != null)\n astReader = new ASTReader(selectedPackage);\n else\n astReader = new ASTReader(selectedProject);\n SystemObject systemObject = astReader.getSystemObject();\n List<PDGSlice> extractedSlices = new ArrayList<PDGSlice>();\n ListIterator<ClassObject> classIterator = systemObject.getClassListIterator();\n while (classIterator.hasNext()) {\n ClassObject classObject = classIterator.next();\n ListIterator<MethodObject> methodIterator = classObject.getMethodIterator();\n while (methodIterator.hasNext()) {\n MethodObject methodObject = methodIterator.next();\n if (methodObject.getMethodBody() != null) {\n CFG cfg = new CFG(methodObject);\n PDG pdg = new PDG(cfg);\n Set<PDGSlice> pdgSlices = pdg.getAllProgramDependenceSlices();\n for (PDGSlice pdgSlice : pdgSlices) {\n if (pdgSlice.getSliceNodes().size() > 1 && !pdgSlice.nodeCriterionBelongsToDuplicatedNodes() && !pdgSlice.containsDuplicateNodeWithDefUseVariable())\n extractedSlices.add(pdgSlice);\n }\n }\n }\n }\n ASTSlice[] table = new ASTSlice[extractedSlices.size()];\n for (int i = 0; i < extractedSlices.size(); i++) {\n ASTSlice astSlice = new ASTSlice(extractedSlices.get(i));\n table[i] = astSlice;\n }\n return table;\n}\n"
|
"protected void restoreState(int bookmark, String text, Game game) {\n if (storedBookmark > -1) {\n game.restoreState(bookmark, text);\n if (storedBookmark >= bookmark) {\n resetStoredBookmark(game);\n }\n }\n}\n"
|
"public void writeStartHarvesterApps(File res, String setfn) {\n File logdir = new File(installDir + \"String_Node_Str\");\n String settingsfn = installDir + \"String_Node_Str\" + setfn;\n writeStart(res, HarvestControllerApplication.class.getName(), settingsfn, logdir, logProperties, getHeritrixUiPortArgs() + \"String_Node_Str\" + getHeritrixJmxPortArgs());\n String sidekick = SideKick.class.getName() + \"String_Node_Str\" + HarvestControllerServerMonitorHook.class.getName() + \"String_Node_Str\" + res.getName() + \"String_Node_Str\";\n File dir = res.getAbsoluteFile().getParentFile();\n String fn = res.getName().replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n writeStart(new File(dir, fn), sidekick, settingsfn, logdir, logProperties, \"String_Node_Str\");\n}\n"
|
"private void clearPartition(int partitionId) {\n final Iterator<String> iter = latches.keySet().iterator();\n while (iter.hasNext()) {\n final String name = iter.next();\n if (nodeEngine.getPartitionService().getPartitionId(StringPartitioningStrategy.getPartitionKey(name)) == partitionId) {\n iter.remove();\n }\n }\n}\n"
|
"private boolean decreaseMinExpectableResp() {\n int remainingExpected = minExpectableResp.decrementAndGet();\n int remainingReceivable = maxReceivableResp.decrementAndGet();\n return remainingExpected == -1 || (remainingExpected == 0 && remainingReceivable >= 0);\n}\n"
|
"public static String generateTAPTestResultDescription(JUnitTestData testMethod) {\n final StringBuilder description = new StringBuilder();\n description.append(\"String_Node_Str\");\n description.append(extractClassName(testMethod.getDescription()));\n description.append(':');\n description.append(extractMethodName(testMethod.getDescription()));\n return description.toString();\n}\n"
|
"protected void onPreRun() {\n mDialog = new ProgressDialog(mContext);\n mDialog.setMessage(mContext.getResources().getText(mMsgid));\n mDialog.setProgressStyle(mStyle.getStyle());\n mDialog.setMax(100);\n mDialog.setCancelable(false);\n mDialog.setOnKeyListener(new DialogInterface.OnKeyListener() {\n public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {\n if (KeyEvent.KEYCODE_SEARCH == keyCode && 0 == event.getRepeatCount()) {\n return true;\n }\n return false;\n }\n });\n if (mCancelable)\n mDialog.setButton(mContext.getResources().getText(R.string.cancel), this);\n else\n mDialog.setCancelable(false);\n mDialog.setOnDismissListener(this);\n mDialog.show();\n}\n"
|
"public boolean hasNext() {\n return this.rowCount < size;\n}\n"
|
"public ISelectionDelta setDelta(ISelectionDelta selectionDelta) {\n if (externalToInternalMapping != null) {\n ISelectionDelta externalSelectionDelta = selectionDelta;\n selectionDelta = new SelectionDelta(internalIDType);\n for (SelectionItem item : externalSelectionDelta) {\n Integer iInternalID = GeneralManager.get().getGenomeIdManager().getID(externalToInternalMapping, item.getSelectionID());\n if (iInternalID == null || iInternalID == -1) {\n GeneralManager.get().getLogger().log(Level.WARNING, \"String_Node_Str\" + item.getSelectionID());\n continue;\n }\n if (!checkStatus(iInternalID)) {\n if (item.getSelectionType() == ESelectionType.ADD) {\n initialAdd(iInternalID);\n if (virtualArray != null)\n virtualArray.add(iInternalID);\n }\n } else {\n if (item.getSelectionType() == ESelectionType.REMOVE && virtualArray != null)\n virtualArray.removeByElement(iInternalID);\n }\n if (item.getInternalID() != -1 && item.getInternalID() != iInternalID)\n selectionDelta.addSelection(iInternalID, item.getSelectionType(), item.getInternalID());\n else\n selectionDelta.addSelection(iInternalID, item.getSelectionType(), item.getSelectionID());\n }\n }\n bIsDeltaWritingEnabled = false;\n for (SelectionItem selection : selectionDelta) {\n ESelectionType type = selection.getSelectionType();\n if (!alSelectionTypes.contains(type))\n continue;\n addToType(type, selection.getSelectionID());\n }\n bIsDeltaWritingEnabled = true;\n return selectionDelta;\n}\n"
|
"protected void paintColorScale(GlimpseContext context) {\n Axis1D axis = getAxis1D(context);\n if (colorTexture != null && axis instanceof TaggedAxis1D) {\n TaggedAxis1D taggedAxis = (TaggedAxis1D) axis;\n GlimpseBounds bounds = getBounds(context);\n GL3 gl = context.getGL().getGL3();\n int height = bounds.getHeight();\n int width = bounds.getWidth();\n int count = updateCoordinateBuffers(gl, taggedAxis, width, height);\n float x1 = getColorBarMinX(width);\n float x2 = getColorBarMaxX(width);\n pathOutline.clear();\n pathOutline.addRectangle(x1, inset_PX, x2, height - inset_PX);\n GLUtils.enableStandardBlending(gl);\n try {\n if (count > 0) {\n progTex.begin(gl);\n try {\n progTex.setPixelOrtho(gl, bounds);\n progTex.draw(gl, GL_TRIANGLES, colorTexture, vertexCoords, textureCoords, 0, count);\n } finally {\n progTex.end(gl);\n }\n }\n progOutline.begin(gl);\n try {\n progOutline.setPixelOrtho(gl, bounds);\n progOutline.setViewport(gl, bounds);\n progOutline.draw(gl, style, pathOutline);\n } finally {\n progOutline.end(gl);\n }\n } finally {\n gl.glDisable(GL.GL_BLEND);\n }\n }\n}\n"
|
"public void run() {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), IntegrationTests.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_MESSAGE, new Intent(RCDevice.ACTION_INCOMING_MESSAGE, null, InstrumentationRegistry.getTargetContext(), IntegrationTests.class));\n params.put(RCDevice.ParameterKeys.SIGNALING_DOMAIN, SERVER_HOST + \"String_Node_Str\" + SERVER_PORT);\n params.put(RCDevice.ParameterKeys.SIGNALING_USERNAME, CLIENT_NAME);\n params.put(RCDevice.ParameterKeys.SIGNALING_PASSWORD, CLIENT_PASSWORD);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_URL, ICE_URL);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_USERNAME, ICE_USERNAME);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_PASSWORD, ICE_PASSWORD);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_DOMAIN, ICE_DOMAIN);\n params.put(RCDevice.ParameterKeys.MEDIA_TURN_ENABLED, true);\n params.put(RCDevice.ParameterKeys.SIGNALING_SECURE_ENABLED, false);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ENABLE_PUSH_FOR_ACCOUNT, false);\n params.put(RCDevice.ParameterKeys.DEBUG_DISABLE_CERTIFICATE_VERIFICATION, true);\n params.put(RCDevice.ParameterKeys.DEBUG_USE_BROADCASTS_FOR_EVENTS, true);\n device.setLogLevel(Log.VERBOSE);\n try {\n device.initialize(InstrumentationRegistry.getTargetContext(), params, IntegrationTests.this);\n } catch (RCException e) {\n Log.e(TAG, \"String_Node_Str\" + e.errorText);\n }\n}\n"
|
"private void startScanningDisplay(long scanStartTime, boolean hasResults) {\n Log.d(TAG, \"String_Node_Str\" + scanStartTime + \"String_Node_Str\" + hasResults);\n long elapsedMillis = new Date().getTime() - scanStartTime;\n if (elapsedMillis < FIRST_SCAN_TIME_MILLIS || (elapsedMillis < SECOND_SCAN_TIME_MILLIS && !hasResults)) {\n mScanningAnimationTextView.setAlpha(1f);\n mScanningAnimationDrawable.start();\n getListView().setVisibility(View.INVISIBLE);\n } else {\n mSwipeRefreshWidget.setRefreshing(false);\n }\n mSecondScanComplete = false;\n long firstDelay = Math.max(FIRST_SCAN_TIME_MILLIS - elapsedMillis, 50);\n long secondDelay = Math.max(SECOND_SCAN_TIME_MILLIS - elapsedMillis, 50);\n long thirdDelay = Math.max(THIRD_SCAN_TIME_MILLIS - elapsedMillis, 50);\n mHandler.postDelayed(mFirstScanTimeout, firstDelay);\n mHandler.postDelayed(mSecondScanTimeout, secondDelay);\n mHandler.postDelayed(mThirdScanTimeout, thirdDelay);\n}\n"
|
"private TestResult getTestResult(Process p) {\n TestResult tr = new TestResult();\n boolean success = false;\n String out = \"String_Node_Str\";\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));\n String line;\n while ((line = in.readLine()) != null) {\n out += line + \"String_Node_Str\";\n if (line.startsWith(JUnitTestExecutor.OUTSEP)) {\n String[] s = line.split(JUnitTestExecutor.OUTSEP);\n int nrtc = Integer.valueOf(s[1]);\n tr.casesExecuted = nrtc;\n int failing = Integer.valueOf(s[2]);\n tr.failures = failing;\n if (!\"String_Node_Str\".equals(s[3])) {\n String[] falinglist = s[3].replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n for (String string : falinglist) {\n if (!string.trim().isEmpty())\n tr.failTest.add(string.trim());\n }\n }\n success = true;\n }\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (success)\n return tr;\n else {\n log.error(\"String_Node_Str\" + out + \"String_Node_Str\" + getProcessError(p.getErrorStream()));\n return null;\n }\n}\n"
|
"private void processDescriptorForRAReferences(com.sun.enterprise.deployment.Application app, String moduleName, Descriptor descriptor) {\n if (descriptor instanceof JndiNameEnvironment) {\n JndiNameEnvironment jndiEnv = (JndiNameEnvironment) descriptor;\n for (Object resourceRef : jndiEnv.getResourceReferenceDescriptors()) {\n ResourceReferenceDescriptor resRefDesc = (ResourceReferenceDescriptor) resourceRef;\n String jndiName = resRefDesc.getJndiName();\n if (jndiName != null) {\n detectResourceInRA(app, moduleName, jndiName);\n }\n }\n for (Object resourceEnvRef : jndiEnv.getResourceEnvReferenceDescriptors()) {\n ResourceEnvReferenceDescriptor resourceEnvRefDesc = (ResourceEnvReferenceDescriptor) resourceEnvRef;\n String jndiName = resourceEnvRefDesc.getJndiName();\n if (jndiName != null) {\n detectResourceInRA(app, moduleName, jndiName);\n }\n }\n }\n}\n"
|
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n final long now = SystemClock.uptimeMillis();\n boolean isCheckin = false;\n boolean isCompact = false;\n boolean isCsv = false;\n boolean currentOnly = false;\n boolean dumpDetails = false;\n boolean dumpAll = false;\n String reqPackage = null;\n boolean csvSepScreenStats = false;\n int[] csvScreenStats = new int[] { ADJ_SCREEN_OFF, ADJ_SCREEN_ON };\n boolean csvSepMemStats = false;\n int[] csvMemStats = new int[] { ADJ_MEM_FACTOR_CRITICAL };\n boolean csvSepProcStats = true;\n int[] csvProcStats = ALL_PROC_STATES;\n if (args != null) {\n for (int i = 0; i < args.length; i++) {\n String arg = args[i];\n if (\"String_Node_Str\".equals(arg)) {\n isCheckin = true;\n } else if (\"String_Node_Str\".equals(arg)) {\n isCompact = true;\n } else if (\"String_Node_Str\".equals(arg)) {\n isCsv = true;\n } else if (\"String_Node_Str\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"String_Node_Str\");\n dumpHelp(pw);\n return;\n }\n boolean[] sep = new boolean[1];\n String[] error = new String[1];\n csvScreenStats = parseStateList(ADJ_SCREEN_NAMES_CSV, ADJ_SCREEN_MOD, args[i], sep, error);\n if (csvScreenStats == null) {\n pw.println(\"String_Node_Str\" + args[i] + \"String_Node_Str\" + error[0]);\n dumpHelp(pw);\n return;\n }\n csvSepScreenStats = sep[0];\n } else if (\"String_Node_Str\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"String_Node_Str\");\n dumpHelp(pw);\n return;\n }\n boolean[] sep = new boolean[1];\n String[] error = new String[1];\n csvMemStats = parseStateList(ADJ_MEM_NAMES_CSV, 1, args[i], sep, error);\n if (csvMemStats == null) {\n pw.println(\"String_Node_Str\" + args[i] + \"String_Node_Str\" + error[0]);\n dumpHelp(pw);\n return;\n }\n csvSepMemStats = sep[0];\n } else if (\"String_Node_Str\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"String_Node_Str\");\n dumpHelp(pw);\n return;\n }\n boolean[] sep = new boolean[1];\n String[] error = new String[1];\n csvProcStats = parseStateList(STATE_NAMES_CSV, 1, args[i], sep, error);\n if (csvProcStats == null) {\n pw.println(\"String_Node_Str\" + args[i] + \"String_Node_Str\" + error[0]);\n dumpHelp(pw);\n return;\n }\n csvSepProcStats = sep[0];\n } else if (\"String_Node_Str\".equals(arg)) {\n dumpDetails = true;\n } else if (\"String_Node_Str\".equals(arg)) {\n currentOnly = true;\n } else if (\"String_Node_Str\".equals(arg)) {\n mState.mFlags |= State.FLAG_COMPLETE;\n mState.writeStateLocked(true, true);\n pw.println(\"String_Node_Str\");\n return;\n } else if (\"String_Node_Str\".equals(arg)) {\n writeStateSyncLocked();\n pw.println(\"String_Node_Str\");\n return;\n } else if (\"String_Node_Str\".equals(arg)) {\n readLocked();\n pw.println(\"String_Node_Str\");\n return;\n } else if (\"String_Node_Str\".equals(arg)) {\n dumpHelp(pw);\n return;\n } else if (\"String_Node_Str\".equals(arg)) {\n dumpDetails = true;\n dumpAll = true;\n } else if (arg.length() > 0 && arg.charAt(0) == '-') {\n pw.println(\"String_Node_Str\" + arg);\n dumpHelp(pw);\n return;\n } else {\n try {\n IPackageManager pm = AppGlobals.getPackageManager();\n if (pm.getPackageUid(arg, UserHandle.getCallingUserId()) >= 0) {\n reqPackage = arg;\n dumpDetails = true;\n }\n } catch (RemoteException e) {\n }\n if (reqPackage == null) {\n pw.println(\"String_Node_Str\" + arg);\n dumpHelp(pw);\n return;\n }\n }\n }\n }\n if (isCsv) {\n pw.print(\"String_Node_Str\");\n if (!csvSepScreenStats) {\n for (int i = 0; i < csvScreenStats.length; i++) {\n pw.print(\"String_Node_Str\");\n printScreenLabelCsv(pw, csvScreenStats[i]);\n }\n }\n if (!csvSepMemStats) {\n for (int i = 0; i < csvMemStats.length; i++) {\n pw.print(\"String_Node_Str\");\n printMemLabelCsv(pw, csvMemStats[i]);\n }\n }\n if (!csvSepProcStats) {\n for (int i = 0; i < csvProcStats.length; i++) {\n pw.print(\"String_Node_Str\");\n pw.print(STATE_NAMES_CSV[csvProcStats[i]]);\n }\n }\n pw.println();\n synchronized (mLock) {\n dumpFilteredProcessesCsvLocked(pw, null, csvSepScreenStats, csvScreenStats, csvSepMemStats, csvMemStats, csvSepProcStats, csvProcStats, now, reqPackage);\n }\n return;\n }\n boolean sepNeeded = false;\n if (!currentOnly || isCheckin) {\n mWriteLock.lock();\n try {\n ArrayList<String> files = getCommittedFiles(0, !isCheckin);\n if (files != null) {\n for (int i = 0; i < files.size(); i++) {\n if (DEBUG)\n Slog.d(TAG, \"String_Node_Str\" + files.get(i));\n try {\n State state = new State(files.get(i));\n if (state.mReadError != null) {\n pw.print(\"String_Node_Str\");\n pw.print(files.get(i));\n pw.print(\"String_Node_Str\");\n pw.println(state.mReadError);\n if (DEBUG)\n Slog.d(TAG, \"String_Node_Str\" + files.get(i));\n (new File(files.get(i))).delete();\n continue;\n }\n String fileStr = state.mFile.getBaseFile().getPath();\n boolean checkedIn = fileStr.endsWith(STATE_FILE_CHECKIN_SUFFIX);\n if (isCheckin || isCompact) {\n state.dumpCheckinLocked(pw, reqPackage);\n } else {\n if (sepNeeded) {\n pw.println();\n } else {\n sepNeeded = true;\n }\n pw.print(\"String_Node_Str\");\n pw.print(state.mTimePeriodStartClockStr);\n if (checkedIn)\n pw.print(\"String_Node_Str\");\n pw.println(\"String_Node_Str\");\n if (dumpDetails) {\n state.dumpLocked(pw, reqPackage, now, dumpAll);\n } else {\n state.dumpSummaryLocked(pw, reqPackage, now);\n }\n }\n if (isCheckin) {\n state.mFile.getBaseFile().renameTo(new File(fileStr + STATE_FILE_CHECKIN_SUFFIX));\n }\n } catch (Throwable e) {\n pw.print(\"String_Node_Str\");\n pw.println(files.get(i));\n e.printStackTrace(pw);\n }\n }\n }\n } finally {\n mWriteLock.unlock();\n }\n }\n if (!isCheckin) {\n synchronized (mLock) {\n if (isCompact) {\n mState.dumpCheckinLocked(pw, reqPackage);\n } else {\n if (sepNeeded) {\n pw.println();\n pw.println(\"String_Node_Str\");\n }\n if (dumpDetails) {\n mState.dumpLocked(pw, reqPackage, now, dumpAll);\n } else {\n mState.dumpSummaryLocked(pw, reqPackage, now);\n }\n }\n }\n }\n}\n"
|
"public boolean populateTree(ATreeNode treeNode, Object selectedEntity, File fileValue) {\n if (fileValue == null || !fileValue.exists() || !fileValue.isFile()) {\n return false;\n }\n if (selectedEntity instanceof JsonTreeNode) {\n SchemaPopulationUtil.fetchTreeNode((JsonTreeNode) selectedEntity, 1);\n treeNode = (ATreeNode) selectedEntity;\n } else {\n treeNode = SchemaPopulationUtil.getSchemaTree(fileValue, limit);\n }\n if (treeNode == null) {\n return false;\n } finally {\n if (fileReader != null) {\n try {\n fileReader.close();\n } catch (IOException e) {\n }\n }\n if (bufferedReader != null) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n }\n }\n }\n}\n"
|
"public View getView(int position, View convertView, Context c) {\n ViewHolder holder = null;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(c).inflate(R.layout.list_item_linechart, null);\n holder.chart = (LineChart) convertView.findViewById(R.id.chart);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n holder.chart.setDrawYValues(false);\n holder.chart.setDescription(\"String_Node_Str\");\n holder.chart.setDrawVerticalGrid(false);\n holder.chart.setDrawGridBackground(false);\n XLabels xl = holder.chart.getXLabels();\n xl.setCenterXLabelText(true);\n xl.setPosition(XLabelPosition.BOTTOM);\n xl.setTypeface(mTf);\n YLabels yl = holder.chart.getYLabels();\n yl.setTypeface(mTf);\n yl.setLabelCount(5);\n holder.chart.setData((LineData) mChartData);\n holder.chart.animateX(1000);\n return convertView;\n}\n"
|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ImageFilterRS.setRenderScriptContext(this);\n ImageShow.setDefaultBackgroundColor(getResources().getColor(R.color.background_screen));\n ImageSmallFilter.setDefaultBackgroundColor(getResources().getColor(R.color.background_main_toolbar));\n ImageZoom.setZoomedSize(getPixelsFromDip(256));\n FramedTextButton.setTextSize((int) getPixelsFromDip(14));\n FramedTextButton.setTrianglePadding((int) getPixelsFromDip(4));\n FramedTextButton.setTriangleSize((int) getPixelsFromDip(10));\n ImageShow.setTextSize((int) getPixelsFromDip(12));\n ImageShow.setTextPadding((int) getPixelsFromDip(10));\n ImageShow.setOriginalTextMargin((int) getPixelsFromDip(4));\n ImageShow.setOriginalTextSize((int) getPixelsFromDip(18));\n ImageShow.setOriginalText(getResources().getString(R.string.original_picture_text));\n mIconSeedSize = getResources().getDimensionPixelSize(R.dimen.thumbnail_size);\n Drawable curveHandle = getResources().getDrawable(R.drawable.camera_crop);\n int curveHandleSize = (int) getResources().getDimension(R.dimen.crop_indicator_size);\n Spline.setCurveHandle(curveHandle, curveHandleSize);\n Spline.setCurveWidth((int) getPixelsFromDip(3));\n setContentView(R.layout.filtershow_activity);\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);\n actionBar.setCustomView(R.layout.filtershow_actionbar);\n mSaveButton = actionBar.getCustomView();\n mSaveButton.setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n saveImage();\n }\n });\n mImageLoader = new ImageLoader(this, getApplicationContext());\n LinearLayout listFilters = (LinearLayout) findViewById(R.id.listFilters);\n LinearLayout listBorders = (LinearLayout) findViewById(R.id.listBorders);\n LinearLayout listColors = (LinearLayout) findViewById(R.id.listColorsFx);\n mImageShow = (ImageShow) findViewById(R.id.imageShow);\n mImageCurves = (ImageCurves) findViewById(R.id.imageCurves);\n mImageBorders = (ImageBorder) findViewById(R.id.imageBorder);\n mImageStraighten = (ImageStraighten) findViewById(R.id.imageStraighten);\n mImageZoom = (ImageZoom) findViewById(R.id.imageZoom);\n mImageCrop = (ImageCrop) findViewById(R.id.imageCrop);\n mImageRotate = (ImageRotate) findViewById(R.id.imageRotate);\n mImageFlip = (ImageFlip) findViewById(R.id.imageFlip);\n mImageTinyPlanet = (ImageTinyPlanet) findViewById(R.id.imageTinyPlanet);\n mImageRedEyes = (ImageRedEyes) findViewById(R.id.imageRedEyes);\n mImageDraw = (ImageDraw) findViewById(R.id.imageDraw);\n mImageCrop.setAspectTextSize((int) getPixelsFromDip(18));\n ImageCrop.setTouchTolerance((int) getPixelsFromDip(25));\n ImageCrop.setMinCropSize((int) getPixelsFromDip(55));\n mImageViews.add(mImageShow);\n mImageViews.add(mImageCurves);\n mImageViews.add(mImageBorders);\n mImageViews.add(mImageStraighten);\n mImageViews.add(mImageZoom);\n mImageViews.add(mImageCrop);\n mImageViews.add(mImageRotate);\n mImageViews.add(mImageFlip);\n mImageViews.add(mImageTinyPlanet);\n mImageViews.add(mImageRedEyes);\n for (ImageShow imageShow : mImageViews) {\n mImageLoader.addCacheListener(imageShow);\n }\n mListFx = findViewById(R.id.fxList);\n mListBorders = findViewById(R.id.bordersList);\n mListGeometry = findViewById(R.id.geometryList);\n mListFilterButtons = findViewById(R.id.filterButtonsList);\n mListColors = findViewById(R.id.colorsFxList);\n mListViews.add(mListFx);\n mListViews.add(mListBorders);\n mListViews.add(mListGeometry);\n mListViews.add(mListFilterButtons);\n mListViews.add(mListColors);\n mFxButton = (ImageButton) findViewById(R.id.fxButton);\n mBorderButton = (ImageButton) findViewById(R.id.borderButton);\n mGeometryButton = (ImageButton) findViewById(R.id.geometryButton);\n mColorsButton = (ImageButton) findViewById(R.id.colorsButton);\n mBottomPanelButtons.add(mFxButton);\n mBottomPanelButtons.add(mBorderButton);\n mBottomPanelButtons.add(mGeometryButton);\n mBottomPanelButtons.add(mColorsButton);\n mImageShow.setImageLoader(mImageLoader);\n mImageCurves.setImageLoader(mImageLoader);\n mImageCurves.setMaster(mImageShow);\n mImageBorders.setImageLoader(mImageLoader);\n mImageBorders.setMaster(mImageShow);\n mImageStraighten.setImageLoader(mImageLoader);\n mImageStraighten.setMaster(mImageShow);\n mImageZoom.setImageLoader(mImageLoader);\n mImageZoom.setMaster(mImageShow);\n mImageCrop.setImageLoader(mImageLoader);\n mImageCrop.setMaster(mImageShow);\n mImageRotate.setImageLoader(mImageLoader);\n mImageRotate.setMaster(mImageShow);\n mImageFlip.setImageLoader(mImageLoader);\n mImageFlip.setMaster(mImageShow);\n mImageTinyPlanet.setImageLoader(mImageLoader);\n mImageTinyPlanet.setMaster(mImageShow);\n mImageRedEyes.setImageLoader(mImageLoader);\n mImageRedEyes.setMaster(mImageShow);\n mImageDraw.setImageLoader(mImageLoader);\n mImageDraw.setMaster(mImageShow);\n mPanelController.setActivity(this);\n mPanelController.addImageView(findViewById(R.id.imageShow));\n mPanelController.addImageView(findViewById(R.id.imageCurves));\n mPanelController.addImageView(findViewById(R.id.imageBorder));\n mPanelController.addImageView(findViewById(R.id.imageStraighten));\n mPanelController.addImageView(findViewById(R.id.imageCrop));\n mPanelController.addImageView(findViewById(R.id.imageRotate));\n mPanelController.addImageView(findViewById(R.id.imageFlip));\n mPanelController.addImageView(findViewById(R.id.imageZoom));\n mPanelController.addImageView(findViewById(R.id.imageTinyPlanet));\n mPanelController.addImageView(findViewById(R.id.imageRedEyes));\n mPanelController.addImageView(findViewById(R.id.imageDraw));\n mPanelController.addPanel(mFxButton, mListFx, 0);\n mPanelController.addPanel(mBorderButton, mListBorders, 1);\n mPanelController.addPanel(mGeometryButton, mListGeometry, 2);\n mPanelController.addComponent(mGeometryButton, findViewById(R.id.straightenButton));\n mPanelController.addComponent(mGeometryButton, findViewById(R.id.cropButton));\n mPanelController.addComponent(mGeometryButton, findViewById(R.id.rotateButton));\n mPanelController.addComponent(mGeometryButton, findViewById(R.id.flipButton));\n mPanelController.addComponent(mGeometryButton, findViewById(R.id.redEyeButton));\n mPanelController.addPanel(mColorsButton, mListColors, 3);\n Vector<ImageFilter> filters = new Vector<ImageFilter>();\n FiltersManager.addFilters(filters, mImageLoader);\n for (ImageFilter filter : filters) {\n ImageSmallFilter fView = new ImageSmallFilter(this);\n filter.setParameter(filter.getPreviewParameter());\n filter.setName(getString(filter.getTextId()));\n fView.setImageFilter(filter);\n fView.setController(this);\n fView.setImageLoader(mImageLoader);\n fView.setId(filter.getButtonId());\n if (filter.getOverlayBitmaps() != 0) {\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), filter.getOverlayBitmaps());\n fView.setOverlayBitmap(bitmap);\n }\n mPanelController.addComponent(mColorsButton, fView);\n mPanelController.addFilter(filter);\n listColors.addView(fView);\n }\n mPanelController.addFilter(new ImageFilterRedEye());\n mPanelController.addView(findViewById(R.id.applyEffect));\n findViewById(R.id.resetOperationsButton).setOnClickListener(createOnClickResetOperationsButton());\n ListView operationsList = (ListView) findViewById(R.id.operationsList);\n operationsList.setAdapter(mImageShow.getHistory());\n operationsList.setOnItemClickListener(this);\n ListView imageStateList = (ListView) findViewById(R.id.imageStateList);\n imageStateList.setAdapter(mImageShow.getImageStateAdapter());\n mImageLoader.setAdapter(mImageShow.getHistory());\n fillListImages(listFilters);\n fillListBorders(listBorders);\n SeekBar seekBar = (SeekBar) findViewById(R.id.filterSeekBar);\n seekBar.setMax(SEEK_BAR_MAX);\n mImageShow.setSeekBar(seekBar);\n mImageZoom.setSeekBar(seekBar);\n mImageTinyPlanet.setSeekBar(seekBar);\n mPanelController.setRowPanel(findViewById(R.id.secondRowPanel));\n mPanelController.setUtilityPanel(this, findViewById(R.id.filterButtonsList), findViewById(R.id.panelAccessoryViewList), findViewById(R.id.applyEffect));\n mPanelController.setMasterImage(mImageShow);\n mPanelController.setCurrentPanel(mFxButton);\n Intent intent = getIntent();\n if (intent.getBooleanExtra(LAUNCH_FULLSCREEN, false)) {\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n }\n if (intent.getData() != null) {\n startLoadBitmap(intent.getData());\n } else {\n pickImage();\n }\n String action = intent.getAction();\n if (action.equalsIgnoreCase(CROP_ACTION)) {\n Bundle extras = intent.getExtras();\n if (extras != null) {\n mCropExtras = new CropExtras(extras.getInt(CropExtras.KEY_OUTPUT_X, 0), extras.getInt(CropExtras.KEY_OUTPUT_Y, 0), extras.getBoolean(CropExtras.KEY_SCALE, true) && extras.getBoolean(CropExtras.KEY_SCALE_UP_IF_NEEDED, false), extras.getInt(CropExtras.KEY_ASPECT_X, 0), extras.getInt(CropExtras.KEY_ASPECT_Y, 0), extras.getBoolean(CropExtras.KEY_SET_AS_WALLPAPER, false), extras.getBoolean(CropExtras.KEY_RETURN_DATA, false), (Uri) extras.getParcelable(MediaStore.EXTRA_OUTPUT), extras.getString(CropExtras.KEY_OUTPUT_FORMAT), extras.getBoolean(CropExtras.KEY_SHOW_WHEN_LOCKED, false), extras.getFloat(CropExtras.KEY_SPOTLIGHT_X), extras.getFloat(CropExtras.KEY_SPOTLIGHT_Y));\n if (mCropExtras.getShowWhenLocked()) {\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n }\n mImageShow.getImagePreset().mGeoData.setCropExtras(mCropExtras);\n mImageCrop.setExtras(mCropExtras);\n String s = getString(R.string.Fixed);\n mImageCrop.setAspectString(s);\n mImageCrop.setCropActionFlag(true);\n mPanelController.setFixedAspect(mCropExtras.getAspectX() > 0 && mCropExtras.getAspectY() > 0);\n }\n mPanelController.showComponent(findViewById(R.id.cropButton));\n } else if (action.equalsIgnoreCase(TINY_PLANET_ACTION)) {\n mPanelController.showComponent(findViewById(R.id.tinyplanetButton));\n }\n}\n"
|
"public void receive(long timeStamp, Event[] inEvents, Event[] removeEvents) {\n EventPrinter.print(timeStamp, inEvents, removeEvents);\n eventArrived = true;\n if (inEvents != null) {\n Assert.assertEquals(\"String_Node_Str\", String.valueOf(inEvents[0].getData(8)));\n }\n}\n"
|
"public IParameterDefn[] getParameterDefn() {\n return new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.CALCULATABLE, \"String_Node_Str\") };\n}\n"
|
"public HierarchyWizardResult<T> getResult() {\n try {\n return new HierarchyWizardResult<T>(model.getHierarchy(), model.getBuilder(true));\n } catch (Exception e) {\n return null;\n }\n}\n"
|
"public void testAddTestsAndExitOnFailureWithLocalServer() throws Exception {\n List<String> tests = tests();\n ActionSequenceBuilder builder = new ActionSequenceBuilder(new ActionFactory(null, Collections.<TestsPreProcessor>emptySet(), SlaveBrowser.TIMEOUT, Collections.<AuthStrategy>emptySet(), false, null, null), null, null, new BrowserActionExecutorAction(null, null, null, null, null, 0, null, null), new FailureCheckerAction(null, null), new UploadAction(null), new CapturedBrowsers(new BrowserIdStrategy(new MockTime(0))), null, newConfigureProxyActionFactory(), null);\n List<Class<? extends Action>> expectedActions = new ArrayList<Class<? extends Action>>();\n expectedActions.add(ServerStartupAction.class);\n expectedActions.add(ConfigureProxyAction.class);\n expectedActions.add(UploadAction.class);\n expectedActions.add(BrowserActionExecutorAction.class);\n expectedActions.add(ServerShutdownAction.class);\n expectedActions.add(FailureCheckerAction.class);\n builder.withLocalServerPort(1001).usingFiles(files, false);\n List<Action> sequence = builder.addTests(tests).raiseOnFailure().build();\n assertSequence(expectedActions, sequence);\n}\n"
|
"public Fragment getItem(int pos) {\n Fragment f = null;\n switch(pos) {\n case 0:\n f = SineCosineFragment.newInstance();\n break;\n case 1:\n f = BarChartFrag.newInstance();\n break;\n case 2:\n f = ScatterChartFrag.newInstance();\n break;\n case 3:\n f = PieChartFrag.newInstance();\n break;\n }\n return f;\n}\n"
|
"private String sendAndReceiveSPARQL(String sparql) throws IOException {\n StringBuilder answer = new StringBuilder();\n HttpURLConnection connection;\n SpecificSparqlEndpoint se = configuration.getSparqlEndpoint();\n connection = (HttpURLConnection) se.getURL().openConnection();\n connection.setDoOutput(true);\n connection.addRequestProperty(\"String_Node_Str\", se.getHost());\n connection.addRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n connection.addRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n connection.addRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n connection.addRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n connection.addRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n OutputStream os = connection.getOutputStream();\n OutputStreamWriter osw = new OutputStreamWriter(os);\n Set<String> s = se.getParameters().keySet();\n Iterator<String> it = s.iterator();\n String FullURI = \"String_Node_Str\";\n while (it.hasNext()) {\n String element = it.next();\n FullURI += \"String_Node_Str\" + URLEncoder.encode(element, \"String_Node_Str\") + \"String_Node_Str\" + URLEncoder.encode(se.getParameters().get(element), \"String_Node_Str\") + \"String_Node_Str\";\n }\n FullURI += \"String_Node_Str\" + se.getHasQueryParameter() + \"String_Node_Str\" + URLEncoder.encode(sparql, \"String_Node_Str\");\n osw.write(FullURI);\n osw.close();\n InputStream is = connection.getInputStream();\n InputStreamReader isr = new InputStreamReader(is, \"String_Node_Str\");\n BufferedReader br = new BufferedReader(isr);\n String line;\n do {\n line = br.readLine();\n if (line != null)\n answer.append(line);\n } while (line != null);\n br.close();\n return answer.toString();\n}\n"
|
"public String deleteDriver() {\n Driver driverEntity = vendorService.findDriverByDriverCode(driverCodeParam);\n vendorService.deleteDriver(driverEntity);\n return SUCCESS;\n}\n"
|
"public static TableInfo createTable(ITableContent table, int width) {\n int tableWidth = getElementWidth(table, width);\n int columnCount = table.getColumnCount();\n if (columnCount == 0) {\n return null;\n }\n int[] columns = new int[columnCount];\n int unassignedCount = 0;\n int totalAssigned = 0;\n for (int i = 0; i < columnCount; i++) {\n DimensionType value = table.getColumn(i).getWidth();\n if (value == null) {\n columns[i] = -1;\n unassignedCount++;\n } else {\n columns[i] = ExcelUtil.covertDimensionType(value, tableWidth);\n totalAssigned += columns[i];\n }\n }\n int leftWidth = tableWidth - totalAssigned;\n if (leftWidth != 0 && unassignedCount == 0) {\n for (int i = 0; i < columnCount; i++) {\n columns[i] = resize(columns[i], totalAssigned, leftWidth);\n }\n } else if (leftWidth < 0 && unassignedCount > 0) {\n for (int i = 0; i < columnCount; i++) {\n if (columns[i] == -1)\n columns[1] = 0;\n else\n columns[i] = resize(columns[i], totalAssigned, leftWidth);\n }\n } else if (leftWidth >= 0 && unassignedCount > 0) {\n int per = (int) leftWidth / unassignedCount;\n int index = 0;\n for (int i = 0; i < columns.length; i++) {\n if (columns[i] == -1) {\n columns[i] = per;\n index = i;\n }\n }\n columns[index] = leftWidth - per * (unassignedCount - 1);\n }\n return new ColumnsInfo(columns);\n}\n"
|
"public String toString() {\n String SEP = System.getProperty(\"String_Node_Str\");\n StringBuilder content = new StringBuilder();\n content.append(\"String_Node_Str\").append(SEP);\n if (dockerServerVersion != null) {\n content.append(\"String_Node_Str\").append(dockerServerVersion).append(SEP);\n }\n if (dockerServerUri != null) {\n content.append(\"String_Node_Str\").append(dockerServerUri).append(SEP);\n }\n if (dockerRegistry != null) {\n content.append(\"String_Node_Str\").append(dockerRegistry).append(SEP);\n }\n if (boot2DockerPath != null) {\n content.append(\"String_Node_Str\").append(boot2DockerPath).append(SEP);\n }\n if (dockerMachinePath != null) {\n content.append(\"String_Node_Str\").append(dockerMachinePath).append(SEP);\n }\n if (machineName != null) {\n content.append(\"String_Node_Str\").append(machineName).append(SEP);\n }\n if (username != null) {\n content.append(\"String_Node_Str\").append(username).append(SEP);\n }\n if (password != null) {\n content.append(\"String_Node_Str\").append(password).append(SEP);\n }\n if (email != null) {\n content.append(\"String_Node_Str\").append(email).append(SEP);\n }\n if (certPath != null) {\n content.append(\"String_Node_Str\").append(certPath).append(SEP);\n }\n if (dockerServerIp != null) {\n content.append(\"String_Node_Str\").append(dockerServerIp).append(SEP);\n }\n if (definitionFormat != null) {\n content.append(\"String_Node_Str\").append(definitionFormat).append(SEP);\n }\n if (autoStartContainers != null) {\n content.append(\"String_Node_Str\").append(autoStartContainers).append(SEP);\n }\n if (dockerContainersContent != null) {\n content.append(\"String_Node_Str\").append(dockerContainersContent).append(SEP);\n }\n return content.toString();\n}\n"
|
"public void readParameters() {\n pattern = getContext().getParameterAsString(\"String_Node_Str\", null);\n name = getContext().getParameterAsString(\"String_Node_Str\", null);\n types = getContext().getParametersAsEnums(\"String_Node_Str\", SimonType.class, null);\n}\n"
|
"private void placePlants(float numPlants, float numDews, float numPods, float numStars) {\n Iterator<Integer> cells = affectedCells.iterator();\n Level floor = Dungeon.level;\n while (cells.hasNext() && Random.Float() <= numPlants) {\n Plant.Seed seed = (Plant.Seed) Generator.random(Generator.Category.SEED);\n if (seed instanceof BlandfruitBush.Seed) {\n if (Random.Int(15) - Dungeon.limitedDrops.blandfruitSeed.count >= 0) {\n floor.plant(seed, cells.next());\n Dungeon.limitedDrops.blandfruitSeed.count++;\n }\n } else\n floor.plant(seed, cells.next());\n numPlants--;\n }\n while (cells.hasNext() && Random.Float() <= numDews) {\n floor.plant(new Dewcatcher.Seed(), cells.next());\n numDews--;\n }\n while (cells.hasNext() && Random.Float() <= numPods) {\n floor.plant(new Seedpod.Seed(), cells.next());\n numPods--;\n }\n while (cells.hasNext() && Random.Float() <= numStars) {\n floor.plant(new Starflower.Seed(), cells.next());\n numStars--;\n }\n}\n"
|
"public palodatavalue getValue(long[] lDimensionElementIdentifierArray) throws paloexception {\n List qparams = new ArrayList();\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", plConn.getPaloToken()));\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", String.valueOf(lDatabaseId)));\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", String.valueOf(plCube.getCubeId())));\n StringBuilder sbCoordinates = new StringBuilder();\n int iPos = 0;\n long[] al;\n int j = (al = lDimensionElementIdentifierArray).length;\n for (int i = 0; i < j; i++) {\n long lDimensionElementIdentifier = al[i];\n if (iPos > 0) {\n sbCoordinates.append(\"String_Node_Str\");\n sbCoordinates.append(lDimensionElementIdentifier);\n iPos++;\n }\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", sbCoordinates.toString()));\n palodatavalue rcDataValue = null;\n try {\n HttpEntity entity = plConn.sendToServer(qparams, \"String_Node_Str\");\n CsvReader csv = new CsvReader(entity.getContent(), Charset.forName(\"String_Node_Str\"));\n csv.setDelimiter(';');\n csv.setTextQualifier('\"');\n while (csv.readRecord()) if (palohelpers.StringToInt(csv.get(0)) == 1) {\n if (palohelpers.StringToInt(csv.get(1)) > 0)\n rcDataValue = new palodatavalue(palohelpers.StringToDouble(csv.get(2)));\n else\n rcDataValue = new palodatavalue(0.0D);\n } else if (palohelpers.StringToInt(csv.get(0)) == 0)\n rcDataValue = new palodatavalue(csv.get(2));\n csv.close();\n entity.consumeContent();\n return rcDataValue;\n } catch (Exception e) {\n throw new paloexception(e.getMessage());\n }\n}\n"
|
"public void generatePoints(int times) {\n for (int i = 0; i < times; i++) {\n for (int j = 0; j < points.size() - 1; j += 2) {\n Location loc1 = points.get(j);\n Location loc2 = points.get(j + 1);\n double adjac = 0;\n if (loc1.getWorld().equals(loc2.getWorld())) {\n adjac = loc1.distance(loc2) / 2;\n }\n double angle = (Math.random() - 0.5) * maxArcAngle;\n angle += angle >= 0 ? 10 : -10;\n double radians = Math.toRadians(angle);\n double hypot = adjac / Math.cos(radians);\n Vector dir = GeneralMethods.rotateXZ(direction.clone(), angle);\n Location newLoc = loc1.clone().add(dir.normalize().multiply(hypot));\n newLoc.add(0, (Math.random() - 0.5) / 2.0, 0);\n points.add(j + 1, newLoc);\n }\n }\n for (int i = 0; i < points.size(); i++) {\n animationLocations.add(new AnimationLocation(points.get(i), animationCounter));\n animationCounter++;\n }\n}\n"
|
"public static EF_Normal_NormalParents toEFDistribution(Normal_NormalParents dist) {\n EF_Normal_NormalParents ef_normal_normalParents = new EF_Normal_NormalParents(dist.getVariable(), dist.getConditioningVariables());\n CompoundVector naturalParameters = ef_normal_normalParents.createEmtpyCompoundVector();\n double beta_0 = dist.getIntercept();\n double[] coeffParents = dist.getCoeffParents();\n double sd = dist.getSd();\n double variance = sd * sd;\n double theta_0 = beta_0 / variance;\n naturalParameters.setThetaBeta0_NatParam(theta_0);\n double variance2Inv = 1.0 / (2 * variance);\n double[] theta0_beta = Arrays.stream(coeffParents).map(w -> -w * beta_0 * variance2Inv).toArray();\n naturalParameters.setThetaBeta0Beta_NatParam(theta0_beta);\n double theta_Minus1 = -variance2Inv;\n naturalParameters.setThetaCov_NatParam(theta_Minus1, coeffParents, variance2Inv);\n ef_normal_normalParents.setNaturalParameters(naturalParameters);\n return ef_normal_normalParents;\n}\n"
|
"protected void handleDestinationBrowseButtonPressed() {\n FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);\n JobExportType jobExportType = getCurrentExportType1();\n switch(jobExportType) {\n case WSWAR:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n break;\n case JBOSSESB:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n break;\n case OSGI:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n break;\n case PETALSESB:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n break;\n default:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n }\n if (jobExportType.equals(JobExportType.PETALSESB)) {\n IPath destPath = new Path(saDestinationFilePath);\n String fileName, directory;\n if (destPath.toFile().isDirectory()) {\n fileName = getPetalsDefaultSaName();\n directory = destPath.toOSString();\n } else {\n fileName = destPath.lastSegment();\n directory = destPath.removeLastSegments(1).toOSString();\n }\n dialog.setFileName(fileName);\n dialog.setFilterPath(directory);\n } else {\n dialog.setText(\"String_Node_Str\");\n dialog.setFileName(getDefaultFileName().get(0));\n String currentSourceString = getDestinationValue();\n int lastSeparatorIndex = currentSourceString.lastIndexOf(File.separator);\n if (lastSeparatorIndex != -1) {\n dialog.setFilterPath(currentSourceString.substring(0, lastSeparatorIndex));\n }\n }\n String selectedFileName = dialog.open();\n if (selectedFileName == null) {\n return;\n }\n if (!selectedFileName.endsWith(getOutputSuffix()))\n selectedFileName += getOutputSuffix();\n if (selectedFileName != null && !selectedFileName.endsWith(getSelectedJobVersion() + getOutputSuffix())) {\n String b = selectedFileName.substring(0, (selectedFileName.length() - 4));\n File file = new File(b);\n String str = file.getName();\n String s = (String) getDefaultFileName().get(0);\n if (str.equals(s)) {\n if (getDefaultFileName().get(1) != null && !\"String_Node_Str\".equals(getDefaultFileName().get(1))) {\n selectedFileName = b + ((JobExportType.OSGI.equals(jobExportType)) ? \"String_Node_Str\" : \"String_Node_Str\") + getDefaultFileName().get(1) + getOutputSuffix();\n } else {\n selectedFileName = b + getOutputSuffix();\n }\n } else {\n selectedFileName = b + getOutputSuffix();\n }\n }\n if (selectedFileName != null) {\n setErrorMessage(null);\n saDestinationFilePath = selectedFileName;\n setDestinationValue(selectedFileName);\n if (getDialogSettings() != null) {\n IDialogSettings section = getDialogSettings().getSection(DESTINATION_FILE);\n if (section == null) {\n section = getDialogSettings().addNewSection(DESTINATION_FILE);\n }\n section.put(DESTINATION_FILE, selectedFileName);\n }\n }\n}\n"
|
"public static void main(String[] args) {\n try {\n Gpio led = new Gpio(4);\n Aio lightSensor = new Aio(0);\n led.dir(Dir.DIR_OUT);\n int on = 0;\n long lightValue = 0;\n String command = \"String_Node_Str\";\n Socket clientSocket = new Socket(args[0], Integer.parseInt(args[1]));\n BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n System.out.println(\"String_Node_Str\");\n while (true) {\n lightValue = lightSensor.read();\n command = in.readLine().trim().toLowerCase();\n if (command.length() > 0)\n System.out.println(command);\n if (command.equals(\"String_Node_Str\"))\n on = 1;\n else if (command.equals(\"String_Node_Str\"))\n on = -1;\n else if (command.equals(\"String_Node_Str\"))\n on = 0;\n if (lightValue < 200 && on != -1) {\n led.write(1);\n } else if (on != 1) {\n led.write(0);\n }\n wait1Msec(10);\n }\n } catch (Exception e) {\n }\n}\n"
|
"public void testImplementingInterface_MethodWithParameters3_JextendsG() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
|
"private String internalFilterAssemblySubject() {\n String Filter = \"String_Node_Str\";\n if (!this.sparqlQueryType.isLiterals()) {\n Filter += \"String_Node_Str\";\n if (sparqlQueryType.getPredicatefilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n } else if (sparqlQueryType.getPredicatefilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n int i = 1;\n for (String p : sparqlQueryType.getPredicatefilterlist()) {\n if (this.sparqlQueryType.getMode() == \"String_Node_Str\")\n if (i != 1)\n Filter += lineend + filterPredicate(p);\n else\n Filter += lineend + filterPredicate(p).substring(2);\n else if (this.sparqlQueryType.getMode() == \"String_Node_Str\")\n if (!this.sparqlQueryType.isLiterals() || i != 1)\n Filter += lineend + allowPredicate(p);\n else\n Filter += lineend + allowPredicate(p).substring(2);\n i++;\n }\n if (sparqlQueryType.getPredicatefilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n if ((sparqlQueryType.getPredicatefilterlist().size() > 0 || !this.sparqlQueryType.isLiterals()) && sparqlQueryType.getObjectfilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n else if (sparqlQueryType.getObjectfilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n i = 1;\n for (String o : sparqlQueryType.getObjectfilterlist()) {\n if (this.sparqlQueryType.getMode() == \"String_Node_Str\")\n if (!this.sparqlQueryType.isLiterals() || i != 1)\n Filter += lineend + filterObject(o);\n else\n Filter += lineend + filterObject(o).substring(2);\n else if (this.sparqlQueryType.getMode() == \"String_Node_Str\")\n if (!this.sparqlQueryType.isLiterals() || i != 1)\n Filter += lineend + allowObject(o);\n else\n Filter += lineend + allowObject(o).substring(2);\n i++;\n }\n if (sparqlQueryType.getObjectfilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n return Filter;\n}\n"
|
"public static IEditorPart getRepositoryEditor(RepositoryNode node) {\n IEditorPart[] parts = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();\n for (IEditorPart part : parts) {\n IEditorInput inputObj = part.getEditorInput();\n if (inputObj instanceof RepositoryEditorInput) {\n RepositoryEditorInput input = (RepositoryEditorInput) inputObj;\n if (equals(input.getRepositoryNode(), node)) {\n return part;\n }\n }\n }\n return null;\n}\n"
|
"public ContactHeader getContactHeader(SipURI intendedDestination) {\n ContactHeader registrationContactHeader = null;\n ListeningPoint srcListeningPoint = getListeningPoint(intendedDestination);\n InetSocketAddress targetAddress = getIntendedDestination(intendedDestination);\n try {\n InetAddress localAddress = SipActivator.getNetworkAddressManagerService().getLocalHost(targetAddress);\n SipURI contactURI = addressFactory.createSipURI(getAccountID().getUserID(), localAddress.getHostAddress());\n String transport = srcListeningPoint.getTransport();\n contactURI.setTransportParam(transport);\n int localPort = srcListeningPoint.getPort();\n if (ListeningPoint.TCP.equalsIgnoreCase(transport)) {\n InetAddress intendedDestinationAddress = NetworkUtils.getInetAddress(intendedDestination.getHost());\n int dstPort = intendedDestination.getPort();\n if (!targetAddress.equals(intendedDestinationAddress) && getOutboundProxy() != null)\n dstPort = getOutboundProxy().getPort();\n if (dstPort == -1)\n dstPort = 5060;\n InetSocketAddress localSockAddr = sipStackSharing.obtainLocalAddress(targetAddress, dstPort, localAddress);\n localPort = localSockAddr.getPort();\n }\n contactURI.setPort(localPort);\n String paramValue = getContactAddressCustomParamValue();\n if (paramValue != null) {\n contactURI.setParameter(SipStackSharing.CONTACT_ADDRESS_CUSTOM_PARAM_NAME, paramValue);\n }\n Address contactAddress = addressFactory.createAddress(contactURI);\n String ourDisplayName = getOurDisplayName();\n if (ourDisplayName != null) {\n contactAddress.setDisplayName(ourDisplayName);\n }\n registrationContactHeader = headerFactory.createContactHeader(contactAddress);\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\" + registrationContactHeader);\n } catch (ParseException ex) {\n logger.error(\"String_Node_Str\", ex);\n throw new IllegalArgumentException(\"String_Node_Str\", ex);\n } catch (java.io.IOException ex) {\n logger.error(\"String_Node_Str\", ex);\n throw new IllegalArgumentException(\"String_Node_Str\", ex);\n }\n return registrationContactHeader;\n}\n"
|
"public static final void main(String[] args) throws RemoteException {\n if (args.length < 2) {\n System.err.println(\"String_Node_Str\" + TicketLocker.class.getName() + \"String_Node_Str\");\n return;\n }\n TicketLocker locker = new TicketLocker(args[0], Integer.parseInt(args[1]), null);\n List<Ticket> tickets = new ArrayList<Ticket>(locker.getStub().getTickets(null));\n Collections.sort(tickets);\n for (Ticket t : tickets) {\n System.out.println(t);\n }\n}\n"
|
"public String[] getWorldInheritance(String world) {\n if (world == null || world.isEmpty()) {\n return new String[0];\n }\n if (!worldInheritanceCache.containsKey(world)) {\n try {\n ResultSet result = this.sql.selectQuery(\"String_Node_Str\", world);\n LinkedList<String> worldParents = new LinkedList<String>();\n while (result.next()) {\n worldParents.add(result.getString(\"String_Node_Str\"));\n }\n this.worldInheritanceCache.put(world, worldParents.toArray(new String[0]));\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n return worldInheritanceCache.get(world);\n}\n"
|
"private Entity copyFieldEntityValue(final Entity performerEntity, final Entity fieldEntity) {\n Entity fieldEntityCopy = null;\n final Entity existingPerformer = performersChain.find(fieldEntity);\n if (existingPerformer != null) {\n fieldEntityCopy = existingPerformer;\n } else if (fieldEntity instanceof EntityAwareCopyPerformers) {\n performersChain.append(this);\n fieldEntityCopy = ((EntityAwareCopyPerformers) fieldEntity).copy(performersChain);\n } else {\n fieldEntityCopy = fieldEntity.copy();\n }\n return fieldEntityCopy;\n}\n"
|
"public void run() {\n while (true) {\n String resolvedConnection = getResolvedConnection();\n Iface blurConnection = BlurClient.getClient(resolvedConnection);\n int zookeeperId = getZookeeperId();\n for (Map<String, Object> cluster : this.database.getClusters(zookeeperId)) {\n String clusterName = (String) cluster.get(\"String_Node_Str\");\n Integer clusterId = (Integer) cluster.get(\"String_Node_Str\");\n List<String> tables;\n try {\n tables = blurConnection.tableListByCluster(clusterName);\n } catch (Exception e) {\n log.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\", e);\n continue;\n }\n for (final String tableName : tables) {\n int tableId = this.database.getTableId(clusterId, tableName);\n if (this.collectTables) {\n new Thread(new TableCollector(BlurClient.getClient(resolvedConnection), tableName, tableId, this.database), \"String_Node_Str\" + tableName).start();\n }\n if (this.collectQueries) {\n new Thread(new QueryCollector(BlurClient.getClient(resolvedConnection), tableName, tableId, this.database), \"String_Node_Str\" + this.zookeeperName).start();\n }\n }\n }\n try {\n Thread.sleep(Agent.COLLECTOR_SLEEP_TIME);\n } catch (InterruptedException e) {\n break;\n }\n }\n}\n"
|
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {\n Card card = game.getCard(event.getTargetId());\n if (card != null && game.getOpponents(source.getControllerId()).contains(card.getOwnerId())) {\n return true;\n }\n }\n return false;\n}\n"
|
"public void startTable(ITableContent table) {\n ContainerSizeInfo sizeInfo = engine.getCurrentContainer().getSizeInfo();\n int width = sizeInfo.getWidth();\n ColumnsInfo info = null;\n boolean isAutoTable = true;\n if (isAutoTable) {\n info = LayoutUtil.createTable(table, width);\n } else {\n int[] columns = LayoutUtil.createFixedTable(table, LayoutUtil.getElementWidth(table, width));\n info = new ColumnsInfo(columns);\n }\n if (info == null)\n return;\n String caption = table.getCaption();\n if (caption != null) {\n engine.addCaption(caption, table.getComputedStyle());\n }\n engine.addTable(table, info, sizeInfo);\n}\n"
|
"public void setApplicationEnabledSetting(String packageName, int newState, int flags) {\n try {\n mPM.setApplicationEnabledSetting(packageName, newState, flags, mContext.getUserId(), mContext.getOpPackageName());\n } catch (RemoteException e) {\n }\n}\n"
|
"public int execute(StratosCommandContext context, String[] args) throws CommandException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", getName());\n }\n if (args != null && args.length > 0) {\n String resourcePath = null;\n String autoscalingPolicyDeployment = null;\n final CommandLineParser parser = new GnuParser();\n CommandLine commandLine;\n try {\n commandLine = parser.parse(options, args);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n if (opts.hasOption(CliConstants.RESOURCE_PATH)) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\");\n }\n resourcePath = commandLine.getOptionValue(CliConstants.RESOURCE_PATH);\n autoscalingPolicyDeployment = readResource(resourcePath);\n }\n if (resourcePath == null) {\n System.out.println(\"String_Node_Str\" + getName() + \"String_Node_Str\");\n return CliConstants.COMMAND_FAILED;\n }\n RestCommandLineService.getInstance().addAutoscalingPolicy(autoscalingPolicyDeployment);\n return CliConstants.COMMAND_SUCCESSFULL;\n } catch (ParseException e) {\n if (logger.isErrorEnabled()) {\n logger.error(\"String_Node_Str\", e);\n }\n System.out.println(e.getMessage());\n return CliConstants.COMMAND_FAILED;\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\");\n return CliConstants.COMMAND_FAILED;\n }\n } else {\n context.getStratosApplication().printUsage(getName());\n return CliConstants.COMMAND_FAILED;\n }\n}\n"
|
"public void prepareRun(BatchSinkContext context) {\n LOG.debug(\"String_Node_Str\", dbSinkConfig.tableName, dbSinkConfig.jdbcPluginType, dbSinkConfig.jdbcPluginName, dbSinkConfig.connectionString, dbSinkConfig.columns);\n Job job = context.getHadoopJob();\n Configuration hConf = job.getConfiguration();\n Class<? extends Driver> driverClass = context.loadPluginClass(getJDBCPluginId());\n if (dbSinkConfig.user == null && dbSinkConfig.password == null) {\n DBConfiguration.configureDB(conf, driverClass.getName(), dbSinkConfig.connectionString);\n } else {\n DBConfiguration.configureDB(conf, driverClass.getName(), dbSinkConfig.connectionString, dbSinkConfig.user, dbSinkConfig.password);\n }\n List<String> fields = Lists.newArrayList(Splitter.on(\"String_Node_Str\").omitEmptyStrings().split(dbSinkConfig.columns));\n try {\n ETLDBOutputFormat.setOutput(job, dbSinkConfig.tableName, fields.toArray(new String[fields.size()]));\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n job.setOutputFormatClass(ETLDBOutputFormat.class);\n}\n"
|
"void draw(SpriteBatch batch, BitmapFont font) {\n if (inventoryVisible) {\n batch.draw(Assets.inventory, 0, 0);\n Player.ableToMove = false;\n font.draw(batch, Tree.amountOfWoodString, 350, 290);\n font.draw(batch, Fishing.amountOfFishString, 350, 225);\n }\n}\n"
|
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case android.R.id.home:\n if (currentFragment.onOptionsItemSelected(item))\n return true;\n if (selectedItem != START_PREFERENCE && restartActivity) {\n restartActivity(this);\n } else if (selectedItem != START_PREFERENCE) {\n selectItem(START_PREFERENCE);\n } else {\n Intent in = new Intent(PreferencesActivity.this, MainActivity.class);\n in.setAction(Intent.ACTION_MAIN);\n in.setAction(Intent.CATEGORY_LAUNCHER);\n final int enter_anim = android.R.anim.fade_in;\n final int exit_anim = android.R.anim.fade_out;\n Activity activity = this;\n activity.overridePendingTransition(enter_anim, exit_anim);\n activity.finish();\n activity.overridePendingTransition(enter_anim, exit_anim);\n activity.startActivity(in);\n }\n return true;\n }\n return false;\n}\n"
|
"private void sdkInit() {\n String port = null;\n try {\n port = NulsContext.MODULES_CONFIG.getCfgValue(RpcConstant.CFG_RPC_SECTION, RpcConstant.CFG_RPC_SERVER_PORT);\n } catch (NulsException e) {\n }\n if (StringUtils.isBlank(port)) {\n SdkManager.init(\"String_Node_Str\" + RpcConstant.DEFAULT_IP + \"String_Node_Str\" + RpcConstant.DEFAULT_PORT);\n } else {\n SdkManager.init(\"String_Node_Str\" + port);\n }\n}\n"
|
"public void testAddToRI3() {\n long expected = TEST_TIME_NOW;\n expected = ISOChronology.getInstance().years().add(expected, -2);\n expected = ISOChronology.getInstance().months().add(expected, -4);\n expected = ISOChronology.getInstance().weeks().add(expected, -6);\n expected = ISOChronology.getInstance().days().add(expected, -8);\n expected = ISOChronology.getInstance().hours().add(expected, -10);\n expected = ISOChronology.getInstance().minutes().add(expected, -12);\n expected = ISOChronology.getInstance().seconds().add(expected, -14);\n expected = ISOChronology.getInstance().millis().add(expected, -16);\n Duration test = new Duration(1, 2, 3, 4, 5, 6, 7, 8);\n Instant added = test.addTo(null, 1);\n assertEquals(expected, added.getMillis());\n}\n"
|
"public void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException {\n if (!topicMapListeners.isEmpty()) {\n LayeredAssociation la = makeLayeredAssociation(a);\n LayeredTopic lrole = makeLayeredTopic(role);\n LayeredTopic lNewPlayer = makeLayeredTopic(newPlayer);\n LayeredTopic lOldPlayer = makeLayeredTopic(oldPlayer);\n for (TopicMapListener listener : topicMapListeners) {\n listener.associationPlayerChanged(la, lrole, lNewPlayer, lOldPlayer);\n }\n }\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n if (position < ZOOMTYPE.getColumns()) {\n Log.i(this.getClass().getSimpleName() + \"String_Node_Str\", \"String_Node_Str\" + ZOOMTYPE.toString());\n TextView textView = new TextView(mContext);\n switch(ZOOMTYPE.getType()) {\n case Utilities.DAY_MODE:\n textView.setText(\"String_Node_Str\" + String.valueOf(position) + \"String_Node_Str\");\n textView.setTag(position);\n break;\n case Utilities.HOUR_MODE:\n textView.setText(\"String_Node_Str\" + getZoomDate().getHours() + \"String_Node_Str\" + getMinuteOnPosition(position));\n break;\n case Utilities.WEEK_MODE:\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(Utilities.getFirstDayOfWeek(getZoomDate()));\n cal2.add(Calendar.DATE, (position));\n int displayDate = cal2.get(Calendar.DAY_OF_MONTH);\n int displaymonth = cal2.get(Calendar.MONTH);\n textView.setText(\"String_Node_Str\" + displayDate + \"String_Node_Str\" + (displaymonth + 1));\n textView.setTag(cal2.getTime());\n break;\n case Utilities.MONTH_MODE:\n textView.setText(\"String_Node_Str\" + Utilities.getDayName(position));\n Calendar monthCal = Calendar.getInstance();\n monthCal.setTime(Utilities.getFirstDayOfWeek(getZoomDate()));\n monthCal.set(Calendar.DAY_OF_MONTH, 1);\n textView.setTag(-1);\n break;\n default:\n break;\n }\n textView.setGravity(Gravity.CENTER_HORIZONTAL);\n textView.setTextSize(12);\n textView.setTextColor(mContext.getResources().getColor(android.R.color.black));\n textView.setPadding(0, 0, 0, 10);\n ((AdapterView<?>) parent).setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> arg0, View v, int arg2, long arg3) {\n handleClick(v);\n }\n });\n return textView;\n } else {\n if (ZOOMTYPE == Zoom.MONTH) {\n ((AdapterView<?>) parent).setOnLongClickListener(null);\n ((AdapterView<?>) parent).setOnCreateContextMenuListener(null);\n TextView textView = new TextView(mContext);\n try {\n textView.setText(String.valueOf(Utilities.convertGridPositionToDate(position, getZoomDate()).getDate()));\n } catch (NullPointerException e) {\n textView.setText(\"String_Node_Str\");\n }\n textView.setGravity(Gravity.CENTER);\n textView.setTextSize(18);\n textView.setPadding(10, 6, 10, 6);\n if (displayedEvents.containsKey(position)) {\n textView.setTextColor(mContext.getResources().getColor(R.color.Green));\n textView.setTag(Utilities.convertGridPositionToDate(position, getZoomDate()));\n } else {\n textView.setTextColor(mContext.getResources().getColor(android.R.color.black));\n textView.setTag(null);\n }\n ((AdapterView<?>) parent).setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> arg0, View v, int arg2, long arg3) {\n handleClick(v);\n }\n });\n return textView;\n }\n {\n ImageView imageView;\n imageView = new ImageView(mContext);\n imageView.setLayoutParams(new GridView.LayoutParams(40, 40));\n imageView.setScaleType(ImageView.ScaleType.FIT_XY);\n imageView.setPadding(0, 0, 0, 0);\n if (displayedEvents.containsKey(Integer.valueOf(position))) {\n BaseEvent ex = displayedEvents.get(position);\n imageView.setTag(ex);\n if (ex instanceof Event) {\n imageView.setImageResource(Utilities.getImageIcon((Event) ex));\n } else if (ex instanceof MoodEvent) {\n imageView.setImageResource(((MoodEvent) ex).getMood().getIcon());\n }\n imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n handleClick(v);\n }\n });\n imageView.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {\n menu.add(R.id.MENU_DELETE_EVENT, 0, 0, R.string.Delete_event_label);\n }\n });\n imageView.setOnLongClickListener(new View.OnLongClickListener() {\n\n public boolean onLongClick(View v) {\n ((TimelineActivity) mActivity).setSelectedEvent((Event) v.getTag());\n Log.i(TimelineGridAdapter.class.toString(), \"String_Node_Str\" + ((Event) v.getTag()).getId());\n return false;\n }\n });\n }\n return imageView;\n }\n }\n}\n"
|
"public void testModel2Advertisement() throws JAXBException, InvalidModelException {\n final Model model = Omn4GeniTest.parser.getInfModel();\n final String rspec = AdvertisementConverter.getRSpec(model);\n System.out.println(rspec);\n Assert.assertTrue(\"String_Node_Str\", rspec.contains(\"String_Node_Str\"));\n Assert.assertTrue(\"String_Node_Str\", rspec.contains(\"String_Node_Str\"));\n}\n"
|
"public void onEnable() {\n INSTANCE = this;\n getLogger().info(\"String_Node_Str\");\n serverObjectBuilder = new BukkitServerBridge(this, getLogger());\n plotme.registerServerBridge(serverObjectBuilder);\n getAPI().enable();\n doMetric();\n PluginManager pm = getServer().getPluginManager();\n pm.registerEvents(new BukkitPlotListener(), this);\n pm.registerEvents(new BukkitPlotDenyListener(), this);\n this.getCommand(\"String_Node_Str\").setExecutor(new BukkitCommand(this));\n}\n"
|
"protected void onResponse(ListGists gists, boolean refreshing) {\n if (gists != null && gists.size() > 0) {\n if (gistsAdapter == null || refreshing) {\n gistsAdapter = new GistsAdapter(getActivity(), gists);\n setListAdapter(gistsAdapter);\n }\n if (gistsAdapter.isLazyLoading()) {\n if (gistsAdapter != null) {\n gistsAdapter.setLazyLoading(false);\n gistsAdapter.addAll(gists);\n }\n } else {\n setListAdapter(gistsAdapter);\n }\n }\n}\n"
|
"public void checkOtherInstall() throws InterruptedException {\n String otherInstallItemUiSelector = \"String_Node_Str\";\n List<AndroidElement> eList = mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);\n int eListSize;\n if ((eListSize = eList.size()) > 0) {\n AndroidElement randomItem = eList.get(RandomUtil.getRandomNum(eListSize - 1));\n String tempAppName = randomItem.getText();\n randomItem.click();\n WaitUtil.implicitlyWait(6);\n String nextDetailAppName = mDriver.findElement(By.id(\"String_Node_Str\")).getText();\n assertEquals(nextDetailAppName.equals(tempAppName), true);\n PageRouteUtil.pressBack();\n }\n}\n"
|
"protected void removeItemBranch(TreeItem item) {\n IndicatorUnit unit = (IndicatorUnit) item.getData(INDICATOR_UNIT_KEY);\n ModelElementIndicator meIndicator = (ModelElementIndicator) item.getData(MODELELEMENT_INDICATOR_KEY);\n deleteColumnItems(meIndicator.getModelElementRepositoryNode());\n deleteModelElementItems(meIndicator);\n if (null != unit) {\n meIndicator.removeIndicatorUnit(unit);\n masterPage.getAllMatchIndicator().getCompositeRegexMatchingIndicators().remove(unit.getIndicator());\n masterPage.updateIndicatorSection();\n }\n}\n"
|
"static ConsumerConfig updateGroupForBroadcast(final ConsumerConfig consumerConfig) {\n try {\n consumerConfig.setGroup(consumerConfig.getGroup() + \"String_Node_Str\" + RemotingUtils.getLocalHost().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n return consumerConfig;\n } catch (final Exception e) {\n throw new InvalidConsumerConfigException(\"String_Node_Str\", e);\n }\n}\n"
|
"public static boolean isTypeComplex(DatabaseType dbType) {\n return dbType.isPLSQLType() || dbType.isVArrayType() || dbType.isObjectType() || dbType.isObjectTableType();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.