content stringlengths 40 137k |
|---|
"public JAXBTask getTask(Properties properties) throws Throwable {\n JAXBTask resTask = null;\n final String idString = properties.getProperty(\"String_Node_Str\");\n final String page = properties.getProperty(\"String_Node_Str\");\n final String pageSize = properties.getProperty(\"String_Node_Str\");\n final String user = properties.getProperty(\"String_Node_Str\");\n HashMap<String, String> opt = new HashMap<>();\n int id;\n try {\n id = Integer.parseInt(idString);\n if (StringUtils.isNotBlank(\"String_Node_Str\")) {\n opt.put(\"String_Node_Str\", page);\n }\n if (StringUtils.isNotBlank(\"String_Node_Str\")) {\n opt.put(\"String_Node_Str\", pageSize);\n }\n if (StringUtils.isNotBlank(\"String_Node_Str\")) {\n opt.put(\"String_Node_Str\", user);\n }\n } catch (NumberFormatException e) {\n throw new ApiException(IApiErrorCodes.API_PARAMETER_VALIDATION_ERROR, \"String_Node_Str\" + idString + \"String_Node_Str\", Response.Status.CONFLICT);\n }\n try {\n List<KieTask> rawList = this.getKieFormManager().getHumanTaskList(\"String_Node_Str\", opt);\n for (KieTask task : rawList) {\n if (id == task.getId()) {\n resTask = new JAXBTask(task);\n break;\n }\n }\n }\n if (null == resTask) {\n throw new ApiException(IApiErrorCodes.API_VALIDATION_ERROR, \"String_Node_Str\" + idString + \"String_Node_Str\", Response.Status.CONFLICT);\n }\n return resTask;\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + _host + \"String_Node_Str\" + _port + \"String_Node_Str\" + getUserAgent();\n}\n"
|
"public int onPut(Operation op) {\n if (Constants.LOGV) {\n Log.v(TAG, \"String_Node_Str\" + op.toString());\n }\n HeaderSet request;\n String name, mimeType;\n Long length;\n int obexResponse = ResponseCodes.OBEX_HTTP_OK;\n if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) {\n return ResponseCodes.OBEX_HTTP_FORBIDDEN;\n }\n try {\n boolean pre_reject = false;\n request = op.getReceivedHeader();\n if (Constants.LOGVV) {\n logHeader(request);\n }\n name = (String) request.getHeader(HeaderSet.NAME);\n length = (Long) request.getHeader(HeaderSet.LENGTH);\n mimeType = (String) request.getHeader(HeaderSet.TYPE);\n if (length == 0) {\n if (Constants.LOGV) {\n Log.w(TAG, \"String_Node_Str\");\n }\n pre_reject = true;\n obexResponse = ResponseCodes.OBEX_HTTP_LENGTH_REQUIRED;\n }\n if (name == null || name.equals(\"String_Node_Str\")) {\n if (Constants.LOGV) {\n Log.w(TAG, \"String_Node_Str\");\n }\n pre_reject = true;\n obexResponse = ResponseCodes.OBEX_HTTP_BAD_REQUEST;\n }\n if (!pre_reject) {\n String extension, type;\n int dotIndex = name.indexOf('.');\n if (dotIndex < 0) {\n if (Constants.LOGV) {\n Log.w(TAG, \"String_Node_Str\");\n }\n pre_reject = true;\n obexResponse = ResponseCodes.OBEX_HTTP_BAD_REQUEST;\n } else {\n extension = name.substring(dotIndex + 1);\n MimeTypeMap map = MimeTypeMap.getSingleton();\n type = map.getMimeTypeFromExtension(extension);\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\" + extension + \"String_Node_Str\" + type);\n }\n if (type != null) {\n mimeType = type;\n } else {\n if (mimeType == null) {\n if (Constants.LOGV) {\n Log.w(TAG, \"String_Node_Str\");\n }\n pre_reject = true;\n obexResponse = ResponseCodes.OBEX_HTTP_UNSUPPORTED_TYPE;\n }\n }\n if (mimeType != null) {\n mimeType = mimeType.toLowerCase();\n }\n }\n }\n if (!pre_reject && (mimeType == null || Constants.mimeTypeMatches(mimeType, Constants.UNACCEPTABLE_SHARE_INBOUND_TYPES))) {\n if (Constants.LOGV) {\n Log.w(TAG, \"String_Node_Str\");\n }\n pre_reject = true;\n obexResponse = ResponseCodes.OBEX_HTTP_UNSUPPORTED_TYPE;\n }\n if (pre_reject && obexResponse != ResponseCodes.OBEX_HTTP_OK) {\n return obexResponse;\n }\n } catch (IOException e) {\n Log.e(TAG, \"String_Node_Str\" + e);\n return ResponseCodes.OBEX_HTTP_BAD_REQUEST;\n }\n ContentValues values = new ContentValues();\n values.put(BluetoothShare.FILENAME_HINT, name);\n values.put(BluetoothShare.TOTAL_BYTES, length.intValue());\n values.put(BluetoothShare.MIMETYPE, mimeType);\n if (mTransport instanceof BluetoothOppRfcommTransport) {\n String a = ((BluetoothOppRfcommTransport) mTransport).getRemoteAddress();\n values.put(BluetoothShare.DESTINATION, a);\n } else {\n values.put(BluetoothShare.DESTINATION, \"String_Node_Str\");\n }\n values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND);\n values.put(BluetoothShare.TIMESTAMP, mTimestamp);\n boolean needConfirm = true;\n if (!mServerBlocking) {\n values.put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED);\n needConfirm = false;\n }\n Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values);\n mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1));\n if (needConfirm) {\n Intent in = new Intent(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION);\n in.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName());\n mContext.sendBroadcast(in);\n }\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\" + contentUri);\n Log.v(TAG, \"String_Node_Str\" + mLocalShareInfoId);\n }\n mServerBlocking = true;\n boolean msgSent = false;\n synchronized (this) {\n try {\n while (mServerBlocking) {\n wait(1000);\n if (mCallback != null && !msgSent) {\n mCallback.sendMessageDelayed(mCallback.obtainMessage(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT), BluetoothOppObexSession.SESSION_TIMEOUT);\n msgSent = true;\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\");\n }\n }\n }\n } catch (InterruptedException e) {\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\");\n }\n }\n }\n if (Constants.LOGV) {\n Log.v(TAG, \"String_Node_Str\");\n }\n if (mCallback != null && msgSent) {\n mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT);\n }\n if (mInfo.mId != mLocalShareInfoId) {\n Log.e(TAG, \"String_Node_Str\");\n }\n mAccepted = mInfo.mConfirm;\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\" + mAccepted);\n }\n int status = BluetoothShare.STATUS_SUCCESS;\n if (mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRMED || mAccepted == BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED) {\n if (mFileInfo.mFileName == null) {\n status = mFileInfo.mStatus;\n mInfo.mStatus = mFileInfo.mStatus;\n Constants.updateShareStatus(mContext, mInfo.mId, status);\n obexResponse = ResponseCodes.OBEX_HTTP_INTERNAL_ERROR;\n }\n if (mFileInfo.mFileName != null) {\n ContentValues updateValues = new ContentValues();\n contentUri = Uri.parse(BluetoothShare.CONTENT_URI + \"String_Node_Str\" + mInfo.mId);\n updateValues.put(BluetoothShare._DATA, mFileInfo.mFileName);\n updateValues.put(BluetoothShare.STATUS, BluetoothShare.STATUS_RUNNING);\n mContext.getContentResolver().update(contentUri, updateValues, null, null);\n status = receiveFile(mFileInfo, op);\n if (status != BluetoothShare.STATUS_SUCCESS) {\n obexResponse = ResponseCodes.OBEX_HTTP_INTERNAL_ERROR;\n }\n Constants.updateShareStatus(mContext, mInfo.mId, status);\n }\n if (status == BluetoothShare.STATUS_SUCCESS) {\n Message msg = Message.obtain(mCallback, BluetoothOppObexSession.MSG_SHARE_COMPLETE);\n msg.obj = mInfo;\n msg.sendToTarget();\n } else {\n Message msg = Message.obtain(mCallback, BluetoothOppObexSession.MSG_SESSION_ERROR);\n msg.obj = mInfo;\n msg.sendToTarget();\n }\n } else if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED || mAccepted == BluetoothShare.USER_CONFIRMATION_TIMEOUT) {\n Log.i(TAG, \"String_Node_Str\");\n status = BluetoothShare.STATUS_FORBIDDEN;\n Constants.updateShareStatus(mContext, mInfo.mId, status);\n obexResponse = ResponseCodes.OBEX_HTTP_FORBIDDEN;\n Message msg = Message.obtain(mCallback);\n msg.what = BluetoothOppObexSession.MSG_SHARE_INTERRUPTED;\n msg.obj = mInfo;\n msg.sendToTarget();\n }\n return obexResponse;\n}\n"
|
"public void resolve() {\n if (binding == null) {\n ignoreFurtherInvestigation = true;\n return;\n }\n if (typeX != null)\n typeX.checkPointcutDeclarations();\n super.resolve();\n}\n"
|
"public void setXPath(String xpathString) {\n xpath = xpathString;\n shortName = xpathString;\n if (xpathString.length() > 0) {\n if ((xpath.indexOf('[') != -1) && (xpath.indexOf(']') == -1)) {\n setShouldExecuteSelectNodes(true);\n return;\n }\n if (xpath.indexOf(\"String_Node_Str\") != -1) {\n setShouldExecuteSelectNodes(true);\n return;\n }\n if (xpathString.charAt(0) == '@') {\n hasAttribute = true;\n shortName = xpathString.substring(1).intern();\n indexValue = hasIndex(xpathString);\n setupNamespaceInformation(shortName);\n return;\n }\n if (xpathString.charAt(0) == '/') {\n setShouldExecuteSelectNodes(true);\n shortName = xpathString.substring(xpathString.lastIndexOf('/') + 1);\n indexValue = hasIndex(xpathString);\n setupNamespaceInformation(shortName);\n return;\n }\n }\n if (xpathString.equals(XMLConstants.TEXT)) {\n nameIsText = true;\n shortName = xpathString;\n return;\n } else {\n nameIsText = false;\n }\n if (xpathString.equals(SELF_XPATH)) {\n isSelfFragment = true;\n shortName = xpathString;\n return;\n }\n indexValue = hasIndex(xpathString);\n setupNamespaceInformation(shortName);\n try {\n shortNameBytes = shortName.getBytes(XMLConstants.DEFAULT_XML_ENCODING);\n } catch (UnsupportedEncodingException e) {\n }\n}\n"
|
"public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {\n if (siteHostingService != null) {\n HttpServletRequest httpReq = (HttpServletRequest) req;\n String host = getHostWithoutPort(httpReq);\n if (host != null) {\n String requestUri = httpReq.getRequestURI();\n if (siteHostingService.isHosted(host) && !requestUri.startsWith(HOSTED_SITE_ALIAS)) {\n RequestDispatcher rd = httpReq.getRequestDispatcher(HOSTED_SITE_ALIAS + \"String_Node_Str\" + host + requestUri);\n rd.forward(req, resp);\n return;\n }\n }\n }\n chain.doFilter(req, resp);\n}\n"
|
"public long getPageOffset(String masterPage) throws IOException {\n Object value = pages.get(masterPage);\n if (value != null && value instanceof Long) {\n return ((Long) value).longValue();\n } else {\n RAInputStream indexStream = null;\n try {\n indexStream = reader.getStream(ReportDocumentConstants.PAGE_INDEX_STREAM);\n DataInputStream input = new DataInputStream(indexStream);\n while (true) {\n String masterPageName = IOUtil.readString(input);\n long pageOffset = IOUtil.readLong(input);\n pages.put(masterPageName, new Long(pageOffset));\n }\n } catch (EOFException eef) {\n } catch (IOException ex) {\n throw ex;\n } finally {\n if (indexStream != null) {\n try {\n indexStream.close();\n } catch (IOException e) {\n }\n indexStream = null;\n }\n }\n value = pages.get(masterPage);\n if (value != null && value instanceof Long) {\n return ((Long) value).longValue();\n }\n }\n return -1;\n}\n"
|
"private void enforceOgmConfig(Map<Object, Object> map) {\n map.put(AvailableSettings.SESSION_FACTORY_OBSERVER, GridMetadataManager.class.getName());\n map.put(AvailableSettings.NAMING_STRATEGY, OgmNamingStrategy.class.getName());\n map.put(Environment.CONNECTION_PROVIDER, NoopConnectionProvider.class.getName());\n map.put(Environment.DIALECT, NoopDialect.class.getName());\n}\n"
|
"private boolean open() throws LineUnavailableException {\n DataLine.Info info = new DataLine.Info(TargetDataLine.class, audioFormat);\n if (!AudioSystem.isLineSupported(info)) {\n logger.severe(audioFormat + \"String_Node_Str\");\n return false;\n }\n try {\n audioLine = (TargetDataLine) AudioSystem.getLine(info);\n audioLine.addLineListener(lineListener);\n audioLine.open(audioFormat);\n return true;\n } catch (LineUnavailableException ex) {\n audioLine = null;\n ex.printStackTrace();\n return false;\n }\n}\n"
|
"public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String parameter = param.toString();\n br.getPage(parameter);\n String[] redirectLinks = br.getRegex(\"String_Node_Str\").getColumn(0);\n if (redirectLinks.length == 0)\n return null;\n FilePackage fp = FilePackage.getInstance();\n String password = br.getRegex(\"String_Node_Str\").getMatch(0);\n String name = br.getRegex(\"String_Node_Str\").getMatch(0);\n fp.setPassword(password);\n fp.setName(name);\n for (String redlnk : redirectLinks) {\n br.getPage(this.domain + redlnk);\n handleCaptcha();\n String[] hostLinks = br.getRegex(\"String_Node_Str\").getColumn(0);\n for (String hstlnk : hostLinks) {\n DownloadLink dl = createDownloadlink(hstlnk);\n dl.setFilePackage(fp);\n decryptedLinks.add(dl);\n }\n }\n return decryptedLinks;\n}\n"
|
"public static void testInvalidJson(String json, int permissifMode, int execptionType) throws Exception {\n JSONParser p = new JSONParser(permissifMode);\n try {\n p.parse(json);\n TestCase.assertFalse(\"String_Node_Str\" + json, true);\n } catch (ParseException e) {\n if (execptionType == -1)\n execptionType = e.getErrorType();\n TestCase.assertEquals(execptionType, e.getErrorType());\n }\n}\n"
|
"private static void serializeClusterConfiguration(ServiceConfiguration serviceConf, SearchResultRow result) {\n ClusterConfiguration clusterConf = (ClusterConfiguration) serviceConf;\n result.addField(makeConfigId(clusterConf.getName(), CLUSTER_TYPE));\n result.addField(clusterConf.getName());\n result.addField(CLUSTER_TYPE);\n result.addField(clusterConf.getHostName());\n result.addField(clusterConf.getPort() == null ? null : clusterConf.getPort().toString());\n result.addField(clusterConf.getMinVlan() == null ? \"String_Node_Str\" : clusterConf.getMinVlan().toString());\n result.addField(clusterConf.getMaxVlan() == null ? \"String_Node_Str\" : clusterConf.getMaxVlan().toString());\n}\n"
|
"public void markForDeletion(DataLocation loc) {\n LOGGER.debug(\"String_Node_Str\" + loc + \"String_Node_Str\");\n Semaphore sem = new Semaphore(0);\n if (!requestQueue.offer(new DeleteFileRequest(loc, sem))) {\n ErrorManager.error(ERROR_QUEUE_OFFER + \"String_Node_Str\");\n }\n}\n"
|
"public synchronized int getUnusedPort() {\n int base = CaldecottTunnelHandler.BASE_PORT;\n while (usedPorts.contains(base)) {\n base++;\n }\n return base;\n}\n"
|
"public static String indexName(TableInfo tableInfo, Optional<List<BytesRef>> values) {\n if (tableInfo.isPartitioned()) {\n return new PartitionName(tableInfo.ident(), values.get()).stringValue();\n } else {\n return tableInfo.ident().esName();\n }\n}\n"
|
"private void hookDoubleClickAction() {\n viewer.addDoubleClickListener(new DoubleClickListener(viewer) {\n });\n typesViewer.addDoubleClickListener(new DoubleClickListener(typesViewer) {\n });\n}\n"
|
"public void parseIcsFile_invalidTimeFormat_onlyValidEventsProcessed() {\n LinkedList<WorkSession> testCalendar = IcsParser.parseIcsFile(\"String_Node_Str\");\n calendarValidity(testCalendar, 2);\n}\n"
|
"public void init() {\n cassandra = addChild(EntitySpec.create(CassandraCluster.class).configure(\"String_Node_Str\", getConfig(CASSANDRA_CLUSTER_SIZE)).configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", UsesJmx.JmxAgentModes.JMX_RMI_CUSTOM_AGENT).configure(\"String_Node_Str\", getConfig(CASSANDRA_THRIFT_PORT)));\n tomcat = addChild(EntitySpec.create(TomcatServer.class).configure(\"String_Node_Str\", UsesJmx.JmxAgentModes.JMX_RMI_CUSTOM_AGENT).configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", MutableMap.of(\"String_Node_Str\", Entities.getRequiredUrlConfig(this, CUMULUS_RDF_CONFIG_URL))));\n configure = Effectors.effector(configure).impl(new EffectorBody<Void>() {\n private HostAndPort cassandraCluster;\n public Void call(ConfigBag parameters) {\n String cassandraHostname = cassandra.getAttribute(CassandraCluster.HOSTNAME);\n Integer cassandraThriftPort = cassandra.getAttribute(CassandraCluster.THRIFT_PORT);\n HostAndPort current = HostAndPort.fromParts(cassandraHostname, cassandraThriftPort);\n if (!current.equals(cassandraCluster)) {\n cassandraCluster = current;\n Map<String, Object> config = MutableMap.<String, Object>of(\"String_Node_Str\", cassandraHostname, \"String_Node_Str\", cassandraThriftPort);\n String cumulusYaml = TemplateProcessor.processTemplateContents(new ResourceUtils(this).getResourceAsString(\"String_Node_Str\"), config);\n DynamicTasks.queue(SshEffectorTasks.put(\"String_Node_Str\").contents(cumulusYaml));\n }\n return null;\n }\n });\n subscribe(cassandra, CassandraCluster.HOSTNAME, new SensorEventListener<String>() {\n public void onEvent(SensorEvent<String> event) {\n tomcat.invoke(configure, MutableMap.<String, Object>of());\n if (tomcat.getAttribute(Startable.SERVICE_UP)) {\n tomcat.restart();\n }\n }\n });\n}\n"
|
"void performSetIconVisibility(IBinder key, boolean visible) {\n synchronized (mIconMap) {\n if (SPEW) {\n Log.d(TAG, \"String_Node_Str\" + key + \"String_Node_Str\" + visible);\n }\n StatusBarIcon icon = mIconMap.get(key);\n icon.view.setVisibility(visible ? View.VISIBLE : View.GONE);\n }\n}\n"
|
"public void execute(CommandSender sender, List<String> args) {\n if (!hasPermission(sender)) {\n return;\n } else if (args.size() > 0) {\n help(sender, false);\n return;\n }\n if (ProjectKorra.plugin.updater.updateAvailable()) {\n sender.sendMessage(ChatColor.GREEN + \"String_Node_Str\" + ChatColor.GOLD + \"String_Node_Str\" + ChatColor.GREEN + \"String_Node_Str\");\n sender.sendMessage(ChatColor.YELLOW + \"String_Node_Str\" + ChatColor.RED + ProjectKorra.plugin.updater.getCurrentVersion());\n sender.sendMessage(ChatColor.YELLOW + \"String_Node_Str\" + ChatColor.GOLD + ProjectKorra.plugin.updater.getUpdateVersion());\n } else {\n sender.sendMessage(ChatColor.YELLOW + \"String_Node_Str\" + ChatColor.GOLD + \"String_Node_Str\");\n }\n}\n"
|
"private HashMap<String, VmStatsEntry> getVmStats(List<String> vmNames) throws Exception {\n VmwareHypervisorHost hyperHost = getHyperHost(getServiceContext());\n HashMap<String, VmStatsEntry> vmResponseMap = new HashMap<String, VmStatsEntry>();\n ManagedObjectReference perfMgr = getServiceContext().getServiceContent().getPerfManager();\n VimPortType service = getServiceContext().getService();\n PerfCounterInfo rxPerfCounterInfo = null;\n PerfCounterInfo txPerfCounterInfo = null;\n List<PerfCounterInfo> cInfo = (List<PerfCounterInfo>) getServiceContext().getVimClient().getDynamicProperty(perfMgr, \"String_Node_Str\");\n for (PerfCounterInfo info : cInfo) {\n if (\"String_Node_Str\".equalsIgnoreCase(info.getGroupInfo().getKey())) {\n if (\"String_Node_Str\".equalsIgnoreCase(info.getNameInfo().getKey())) {\n txPerfCounterInfo = info;\n }\n if (\"String_Node_Str\".equalsIgnoreCase(cInfo[i].getNameInfo().getKey())) {\n rxPerfCounterInfo = cInfo[i];\n }\n }\n }\n ObjectContent[] ocs = hyperHost.getVmPropertiesOnHyperHost(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n if (ocs != null && ocs.length > 0) {\n for (ObjectContent oc : ocs) {\n List<DynamicProperty> objProps = oc.getPropSet();\n if (objProps != null) {\n String name = null;\n String numberCPUs = null;\n String maxCpuUsage = null;\n for (DynamicProperty objProp : objProps) {\n if (objProp.getName().equals(\"String_Node_Str\")) {\n name = objProp.getVal().toString();\n } else if (objProp.getName().equals(\"String_Node_Str\")) {\n numberCPUs = objProp.getVal().toString();\n } else if (objProp.getName().equals(\"String_Node_Str\")) {\n maxCpuUsage = objProp.getVal().toString();\n }\n }\n if (!vmNames.contains(name)) {\n continue;\n }\n ManagedObjectReference vmMor = hyperHost.findVmOnHyperHost(name).getMor();\n assert (vmMor != null);\n ArrayList vmNetworkMetrics = new ArrayList();\n List<PerfMetricId> perfMetrics = service.queryAvailablePerfMetric(perfMgr, vmMor, null, null, null);\n if (perfMetrics != null) {\n for (int index = 0; index < perfMetrics.size(); ++index) {\n if (((rxPerfCounterInfo != null) && (perfMetrics.get(index).getCounterId() == rxPerfCounterInfo.getKey())) || ((txPerfCounterInfo != null) && (perfMetrics.get(index).getCounterId() == txPerfCounterInfo.getKey()))) {\n vmNetworkMetrics.add(perfMetrics.get(index));\n }\n }\n }\n double networkReadKBs = 0;\n double networkWriteKBs = 0;\n long sampleDuration = 0;\n if (vmNetworkMetrics.size() != 0) {\n PerfQuerySpec qSpec = new PerfQuerySpec();\n qSpec.setEntity(vmMor);\n PerfMetricId[] availableMetricIds = (PerfMetricId[]) vmNetworkMetrics.toArray(new PerfMetricId[0]);\n qSpec.getMetricId().addAll(Arrays.asList(availableMetricIds));\n List<PerfQuerySpec> qSpecs = new ArrayList<PerfQuerySpec>();\n qSpecs.add(qSpec);\n List<PerfEntityMetricBase> values = service.queryPerf(perfMgr, qSpecs);\n for (int i = 0; i < values.size(); ++i) {\n List<PerfSampleInfo> infos = ((PerfEntityMetric) values.get(i)).getSampleInfo();\n int endMs = infos.get(infos.size() - 1).getTimestamp().getSecond() * 1000 + infos.get(infos.size() - 1).getTimestamp().getMillisecond();\n int beginMs = infos.get(0).getTimestamp().getSecond() * 1000 + infos.get(0).getTimestamp().getMillisecond();\n sampleDuration = (endMs - beginMs) / 1000;\n List<PerfMetricSeries> vals = ((PerfEntityMetric) values.get(i)).getValue();\n for (int vi = 0; ((vals != null) && (vi < vals.size())); ++vi) {\n if (vals.get(vi) instanceof PerfMetricIntSeries) {\n PerfMetricIntSeries val = (PerfMetricIntSeries) vals.get(vi);\n List<Long> perfValues = val.getValue();\n if (vals.get(vi).getId().getCounterId() == rxPerfCounterInfo.getKey()) {\n networkReadKBs = sampleDuration * perfValues.get(3);\n }\n if (vals.get(vi).getId().getCounterId() == txPerfCounterInfo.getKey()) {\n networkWriteKBs = sampleDuration * perfValues.get(3);\n }\n }\n }\n }\n }\n vmResponseMap.put(name, new VmStatsEntry(Integer.parseInt(maxCpuUsage), networkReadKBs, networkWriteKBs, Integer.parseInt(numberCPUs), \"String_Node_Str\"));\n }\n }\n }\n return vmResponseMap;\n}\n"
|
"private JsonObject getSessionByUserId(Message<JsonObject> message) {\n final String userId = message.body().getString(\"String_Node_Str\");\n if (userId == null || userId.trim().isEmpty()) {\n sendError(message, \"String_Node_Str\");\n return null;\n }\n LoginInfo info = logins.get(userId);\n if (info == null) {\n sendError(message, \"String_Node_Str\");\n return null;\n }\n JsonObject session = null;\n try {\n session = unmarshal(sessions.get(info.sessionId));\n } catch (HazelcastSerializationException e) {\n logger.error(\"String_Node_Str\" + info.sessionId, e);\n }\n if (session == null) {\n sendError(message, \"String_Node_Str\");\n return null;\n }\n return session;\n}\n"
|
"public void rotate(Quaternion rot) {\n if (!isValidAccess()) {\n if (Spout.getGame().debugMode())\n throw new IllegalAccessError(\"String_Node_Str\" + Thread.currentThread().getPriority() + \"String_Node_Str\" + owningThread.getName() + \"String_Node_Str\");\n return;\n }\n setRotation(getRotation().multiply(rot));\n}\n"
|
"public VmType apply(String vmTypeName) {\n try {\n VmType vmType = VmTypes.lookup(vmTypeName);\n if (request.getReset()) {\n PredefinedTypes defaultVmType = PredefinedTypes.valueOf(vmTypeName.toUpperCase().replace(\"String_Node_Str\", \"String_Node_Str\"));\n vmType.setCpu(defaultVmType.getCpu());\n vmType.setDisk(defaultVmType.getDisk());\n vmType.setMemory(defaultVmType.getMemory());\n } else {\n vmType.setCpu(Objects.firstNonNull(request.getCpu(), vmType.getCpu()));\n vmType.setDisk(Objects.firstNonNull(request.getDisk(), vmType.getDisk()));\n vmType.setMemory(Objects.firstNonNull(request.getMemory(), vmType.getMemory()));\n }\n VmTypes.update(vmType);\n return vmType;\n } catch (NoSuchMetadataException ex) {\n throw Exceptions.toUndeclared(ex);\n }\n}\n"
|
"public void emptyQuery() throws Exception {\n final String response = DummyWhoisClient.query(NrtmServer.getPort(), \"String_Node_Str\");\n assertThat(response, containsString(\"String_Node_Str\"));\n}\n"
|
"public void display(GL gl) {\n doSlerpActions();\n if (layoutHotSpotInitSwitch == false) {\n layoutHotSpot.setLocation(canvasWidth / 2 + 1, canvasHeight / 2);\n layoutHotSpotInitSwitch = true;\n }\n defaultLayoutHotSpot.setLocation(canvasWidth / 2 + 1, canvasHeight / 2);\n remoteHyperbolicScalation.setLocation(viewSizeHyperbolic / 2, viewSizeHyperbolic / 2 / fAspectRatio);\n Transform transform = new Transform();\n transform.setTranslation(new Vec3f((float) layoutHotSpot.getX(), (float) layoutHotSpot.getY(), 0));\n transform.setScale(new Vec3f((float) (canvasWidth - layoutHotSpot.getX()) / 8, (float) (canvasHeight - layoutHotSpot.getY()) / 8, 1));\n remoteElementHeatMap.setTransform(transform);\n Transform transform2 = new Transform();\n if (hyperbolicViewSquared = true) {\n if (canvasHeight > layoutHotSpot.getX()) {\n transform2.setScale(new Vec3f((float) (layoutHotSpot.getX()) / 8, (float) (layoutHotSpot.getX()) / canvasHeight, 1));\n transform2.setTranslation(new Vec3f(0, (float) (canvasHeight - layoutHotSpot.getX()) / 2, 0));\n eyeTrackerOffset.setLocation(0, canvasHeight - (layoutHotSpot.getX()) / 2);\n } else {\n transform2.setScale(new Vec3f((float) (canvasHeight) / 8, 1, 1));\n transform2.setTranslation(new Vec3f((float) (layoutHotSpot.getX() - canvasHeight) / 2, 0, 0));\n eyeTrackerOffset.setLocation((layoutHotSpot.getX() - canvasHeight) / 2, 0);\n }\n } else {\n transform2.setScale(new Vec3f((float) (layoutHotSpot.getX()) / 8, 1, 1));\n }\n remoteElementHyperbolic.setTransform(transform2);\n Transform transform3 = new Transform();\n transform3.setTranslation(new Vec3f((float) layoutHotSpot.getX(), (float) 0, 0));\n transform3.setScale(new Vec3f((float) (canvasWidth - layoutHotSpot.getX()) / 8, (float) layoutHotSpot.getY() / 8, 1));\n remoteElementParCoords.setTransform(transform3);\n renderRemoteLevelElement(gl, remoteElementHyperbolic);\n renderRemoteLevelElement(gl, remoteElementHeatMap);\n renderRemoteLevelElement(gl, remoteElementParCoords);\n if (glMouseListener.wasLeftMouseButtonPressed()) {\n testZoomViewEventSwitch = false;\n if (glMouseListener.getPickedPoint() != null) {\n if (manualPickFlag == true) {\n mousePoint = glMouseListener.getPickedPoint();\n Point2D.Double mousePosition = new Point2D.Double();\n mousePosition.setLocation(mousePoint.getX(), mousePoint.getY());\n directHyperbolicView.setEyeTrackerAction(mousePosition, new Point2D.Double((double) remoteElementHyperbolic.getTransform().getTranslation().x(), (double) remoteElementHyperbolic.getTransform().getTranslation().y()), new Point2D.Double((double) remoteElementHyperbolic.getTransform().getScale().x(), (double) remoteElementHyperbolic.getTransform().getScale().y()));\n }\n }\n }\n}\n"
|
"public boolean isDead() {\n return getHandle().isRemoved();\n}\n"
|
"private void resize() {\n long kCapacity = (kLimit - kStart) << 1;\n long kAddress = Unsafe.getUnsafe().allocateMemory(kCapacity + AbstractDirectList.CACHE_LINE_SIZE);\n long kStart = kAddress + (kAddress & (AbstractDirectList.CACHE_LINE_SIZE - 1));\n Unsafe.getUnsafe().copyMemory(this.kStart, kStart, kCapacity >> 1);\n Unsafe.getUnsafe().freeMemory(this.address);\n long d = kStart - this.kStart;\n keyWriter.startAddr += d;\n keyWriter.appendAddr += d;\n keyWriter.nextColOffset += d;\n this.address = kAddress;\n this.kStart = kStart;\n this.kLimit = kStart + kCapacity;\n}\n"
|
"public void unloadCell(CellID cellId) {\n Cell cell = cells.remove(cellId);\n logger.fine(\"String_Node_Str\" + cell.getName());\n if (cell != null) {\n fireCellUnloaded(cell);\n setCellStatus(cell, CellStatus.DISK);\n if (cell.getParent() == null) {\n logger.warning(\"String_Node_Str\" + cell.getName());\n rootCells.remove(cell);\n }\n }\n}\n"
|
"public void unregisterMessageListener(byte[] guid, MessageListener ml) {\n boolean removed = false;\n synchronized (MESSAGE_LISTENER_LOCK) {\n List<MessageListener> all = _messageListeners.get(guid);\n if (all != null) {\n all = new ArrayList(all);\n if (all.remove(ml)) {\n removed = true;\n Map listeners = new TreeMap(GUID.GUID_BYTE_COMPARATOR);\n listeners.putAll(_messageListeners);\n if (all.isEmpty())\n listeners.remove(guid);\n else\n listeners.put(guid, Collections.unmodifiableList(all));\n _messageListeners = Collections.unmodifiableMap(listeners);\n }\n }\n }\n if (removed)\n ml.unregistered(guid);\n}\n"
|
"public void run() {\n if (DEBUG)\n Slog.d(TAG, \"String_Node_Str\");\n while (true) {\n synchronized (this) {\n if (mStopped) {\n if (DEBUG)\n Slog.d(TAG, \"String_Node_Str\");\n return;\n }\n try {\n openSocketLocked();\n } catch (Exception e) {\n SystemClock.sleep(1000);\n }\n }\n try {\n listenToSocket();\n } catch (Exception e) {\n SystemClock.sleep(1000);\n }\n }\n}\n"
|
"protected void onPersist(EntityMetadata metadata, Object entity, Object id, List<RelationHolder> relationHolders) {\n Transaction tx = null;\n try {\n if (!isUpdate) {\n s.insert(entity);\n for (RelationHolder rh : relationHolders) {\n String linkName = rh.getRelationName();\n Object linkValue = rh.getRelationValue();\n if (linkName != null && linkValue != null) {\n String updateSql = \"String_Node_Str\" + metadata.getTableName() + \"String_Node_Str\" + linkName + \"String_Node_Str\" + linkValue + \"String_Node_Str\" + ((AbstractAttribute) metadata.getIdAttribute()).getJPAColumnName() + \"String_Node_Str\" + id + \"String_Node_Str\";\n s.createSQLQuery(updateSql).executeUpdate();\n }\n }\n } else {\n s.update(entity);\n }\n } catch (org.hibernate.exception.ConstraintViolationException e) {\n log.info(e.getMessage());\n s.update(entity);\n } catch (HibernateException e) {\n log.info(e.getMessage());\n } finally {\n for (RelationHolder rh : relationHolders) {\n String linkName = rh.getRelationName();\n Object linkValue = rh.getRelationValue();\n if (linkName != null && linkValue != null) {\n String updateSql = \"String_Node_Str\" + metadata.getTableName() + \"String_Node_Str\" + linkName + \"String_Node_Str\" + linkValue + \"String_Node_Str\" + ((AbstractAttribute) metadata.getIdAttribute()).getJPAColumnName() + \"String_Node_Str\" + id + \"String_Node_Str\";\n s.createSQLQuery(updateSql).executeUpdate();\n }\n }\n tx.commit();\n }\n}\n"
|
"public void requestSome(long n) {\n long previousCount = requested.getAndAdd(n);\n if (previousCount == 0) {\n while (true) {\n long r = requested.get();\n long numToEmit = r;\n stack = stack.peek().node().search(condition, subscriber, stack, numToEmit);\n if (stack.isEmpty()) {\n if (!subscriber.isUnsubscribed())\n subscriber.onCompleted();\n } else if (requested.addAndGet(-r) == 0)\n return;\n }\n }\n}\n"
|
"public void parseConfigFile(String fileName, Set includedClasses) throws Exception {\n XmlParser parser = new XmlParser();\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n ConfigXmlHandler handler = new ConfigXmlHandler(_xmlTree, fileName, includedClasses);\n parser.setHandler(handler);\n parser.parse(fileName, null, br);\n if (backtrackingElement) {\n _xmlTree.setElementName(\"String_Node_Str\");\n _xmlTree.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n _xmlTree.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n }\n}\n"
|
"public static List<FieldInfo> getFieldInfo(String packageName, String methodName, String methodNo, int sequence, SqlReflector reflector) throws SQLException {\n int data_level = -1;\n int next_rec_sequence = -1;\n ViewCache viewCache = reflector.getViewCache();\n Iterator<ViewRow> iter = viewCache.getRows(ALL_ARGUMENTS, new String[0], new String[] { PACKAGE_NAME, OBJECT_NAME, OVERLOAD }, new Object[] { packageName, methodName, methodNo }, new String[] { SEQUENCE });\n ArrayList<ViewRow> viewRows = new ArrayList<ViewRow>();\n while (iter.hasNext()) {\n UserArguments item = (UserArguments) iter.next();\n viewRows.add(item);\n }\n PlsqlTypeInfo[] info = PlsqlTypeInfo.getPlsqlTypeInfo(viewRows);\n if (info != null) {\n for (int i = 0; i < info.length; i++) {\n if (data_level == -1 && (sequence == -1 || sequence == info[i].sequence)) {\n data_level = info[i].dataLevel;\n }\n if (data_level > -1 && data_level == info[i].dataLevel && next_rec_sequence == -1 && sequence < info[i].sequence) {\n next_rec_sequence = info[i].sequence;\n break;\n }\n }\n }\n data_level++;\n iter = viewCache.getRows(ALL_ARGUMENTS, new String[0], new String[] { PACKAGE_NAME, OBJECT_NAME, OVERLOAD, DATA_LEVEL }, new Object[] { packageName, methodName, methodNo, Integer.valueOf(data_level) }, new String[] { SEQUENCE });\n viewRows = new ArrayList<ViewRow>();\n while (iter.hasNext()) {\n UserArguments item = (UserArguments) iter.next();\n if ((sequence == -1 || item.sequence > sequence) && (next_rec_sequence == -1 || item.sequence < next_rec_sequence)) {\n viewRows.add(item);\n }\n }\n return FieldInfo.getFieldInfo(viewRows);\n}\n"
|
"public Key getKey(String name) throws NoSuchKeyException {\n try {\n return defaultType.createPassage(name);\n } catch (Exception e) {\n return defaultType.createPassage(normalize(name));\n }\n}\n"
|
"public static String encodeGeometry(Geometry geometry) {\n List<InxValue> values = new ArrayList<InxValue>();\n values.add(new InxLong64(geometry.getPaths().size()));\n for (Path path : geometry.getPaths()) {\n values.add(new InxLong64(path.getPoints().size()));\n for (PathPoint point : path.getPoints()) {\n values.add(new InxLong64(2));\n values.add(new InxDouble(point.getX()));\n values.add(new InxDouble(point.getY()));\n }\n values.add(new InxBoolean(false));\n }\n values.add(new InxDouble(geometry.getBoundingBox().getLeft()));\n values.add(new InxDouble(geometry.getBoundingBox().getTop()));\n values.add(new InxDouble(geometry.getBoundingBox().getRight()));\n values.add(new InxDouble(geometry.getBoundingBox().getBottom()));\n values.addAll(geometry.getTransformationMatrix().getMatrixValues());\n if (geometry.getGraphicBoundingBox() != null) {\n values.add(new InxDouble(geometry.getGraphicBoundingBox().getLeft()));\n values.add(new InxDouble(geometry.getGraphicBoundingBox().getTop()));\n values.add(new InxDouble(geometry.getGraphicBoundingBox().getRight()));\n values.add(new InxDouble(geometry.getGraphicBoundingBox().getBottom()));\n }\n return encodeValueList(values);\n}\n"
|
"public void init(FilterConfig filterConfig) throws ServletException {\n Enumeration<String> paramNames = filterConfig.getInitParameterNames();\n while (paramNames.hasMoreElements()) {\n String paramName = paramNames.nextElement();\n if (!IntrospectionUtils.setProperty(this, paramName, filterConfig.getInitParameter(paramName))) {\n String msg = sm.getString(\"String_Node_Str\", paramName, this.getClass().getName());\n if (isConfigProblemFatal()) {\n throw new ServletException(msg);\n } else {\n getLogger().warning(msg);\n }\n }\n }\n}\n"
|
"public static String parseToJPAWhereExpression(final CommonExpression whereExpression, String tableAlias) throws ODataException {\n switch(whereExpression.getKind()) {\n case UNARY:\n final UnaryExpression unaryExpression = (UnaryExpression) whereExpression;\n final String operand = parseToJPAWhereExpression(unaryExpression.getOperand(), tableAlias);\n switch(unaryExpression.getOperator()) {\n case NOT:\n return JPQLStatement.Operator.NOT + \"String_Node_Str\" + operand + \"String_Node_Str\";\n case MINUS:\n if (operand.startsWith(\"String_Node_Str\"))\n return operand.substring(1);\n else\n return \"String_Node_Str\" + operand;\n default:\n LOGGER.error(\"String_Node_Str\");\n throw new ODataNotImplementedException();\n }\n case FILTER:\n return parseToJPAWhereExpression(((FilterExpression) whereExpression).getExpression(), tableAlias);\n case BINARY:\n final BinaryExpression binaryExpression = (BinaryExpression) whereExpression;\n final String left = parseToJPAWhereExpression(binaryExpression.getLeftOperand(), tableAlias);\n final String right = parseToJPAWhereExpression(binaryExpression.getRightOperand(), tableAlias);\n switch(binaryExpression.getOperator()) {\n case AND:\n return left + SPACE + JPQLStatement.Operator.AND + SPACE + right;\n case OR:\n return left + SPACE + JPQLStatement.Operator.OR + SPACE + right;\n case EQ:\n return left + SPACE + JPQLStatement.Operator.EQ + SPACE + right;\n case NE:\n return left + SPACE + JPQLStatement.Operator.NE + SPACE + right;\n case LT:\n return left + SPACE + JPQLStatement.Operator.LT + SPACE + right;\n case LE:\n return left + SPACE + JPQLStatement.Operator.LE + SPACE + right;\n case GT:\n return left + SPACE + JPQLStatement.Operator.GT + SPACE + right;\n case GE:\n return left + SPACE + JPQLStatement.Operator.GE + SPACE + right;\n case PROPERTY_ACCESS:\n LOGGER.error(\"String_Node_Str\");\n throw new ODataNotImplementedException();\n default:\n LOGGER.error(\"String_Node_Str\" + binaryExpression.getOperator().name() + \"String_Node_Str\");\n throw new ODataNotImplementedException();\n }\n case PROPERTY:\n String returnStr = tableAlias + DOT + ((PropertyExpression) whereExpression).getPropertyName();\n return returnStr;\n case MEMBER:\n final MemberExpression memberExpression = (MemberExpression) whereExpression;\n final PropertyExpression propertyExpressionPath = (PropertyExpression) memberExpression.getPath();\n return tableAlias + DOT + propertyExpressionPath.getUriLiteral() + DOT + memberExpression.getProperty().getUriLiteral();\n case LITERAL:\n final LiteralExpression literal = (LiteralExpression) whereExpression;\n final EdmSimpleType literalType = (EdmSimpleType) literal.getEdmType();\n String value = literalType.valueToString(literalType.valueOfString(literal.getUriLiteral(), EdmLiteralKind.URI, null, null), EdmLiteralKind.DEFAULT, null);\n return evaluateComparingExpression(value, literalType);\n default:\n LOGGER.error(\"String_Node_Str\" + whereExpression.getKind().name() + \"String_Node_Str\");\n throw new ODataNotImplementedException();\n }\n}\n"
|
"protected synchronized boolean _handleDeadlock() {\n try {\n if (_actorsActive == (_actorsBlocked + _actorsDelayed)) {\n if (_topologyChangesPending) {\n System.out.println(\"String_Node_Str\");\n _processTopologyRequests();\n LinkedList newThreads = new LinkedList();\n Enumeration newActors = _newActors();\n while (newActors.hasMoreElements()) {\n Actor actor = (Actor) newActors.nextElement();\n System.out.println(\"String_Node_Str\" + ((Nameable) actor).getName() + \"String_Node_Str\");\n increaseActiveCount();\n actor.createReceivers();\n actor.initialize();\n String name = ((Nameable) actor).getName();\n ProcessThread pnt = new ProcessThread(actor, this, name);\n newThreads.insertFirst(pnt);\n }\n Enumeration allThreads = newThreads.elements();\n while (allThreads.hasMoreElements()) {\n ProcessThread p = (ProcessThread) allThreads.nextElement();\n p.start();\n _threadList.insertFirst(p);\n }\n _topologyChangesPending = false;\n return false;\n } else if (_actorsDelayed > 0) {\n System.out.println(\"String_Node_Str\");\n double nextTime = _getNextTime();\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\" + nextTime);\n _currentTime = nextTime;\n boolean done = false;\n while (!done && _delayedActorList.size() > 0) {\n DelayListLink val = (DelayListLink) _delayedActorList.first();\n double tolerance = Math.pow(10, -10);\n if (Math.abs(val._resumeTime - nextTime) < tolerance) {\n _delayedActorList.removeFirst();\n val._actor._continue();\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\" + val._resumeTime);\n _actorsDelayed--;\n } else {\n done = true;\n }\n }\n } else {\n System.out.println(\"String_Node_Str\");\n return true;\n }\n }\n System.out.println(\"String_Node_Str\");\n this.wait();\n return false;\n } catch (InterruptedException ex) {\n throw new InvalidStateException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n } catch (TopologyChangeFailedException ex) {\n throw new InvalidStateException(\"String_Node_Str\" + \"String_Node_Str\");\n } catch (IllegalActionException ex) {\n throw new InvalidStateException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n}\n"
|
"public VolumeResponse createVolumeResponse(Volume volume) {\n VolumeResponse volResponse = new VolumeResponse();\n volResponse.setId(volume.getId());\n if (volume.getName() != null) {\n volResponse.setName(volume.getName());\n } else {\n volResponse.setName(\"String_Node_Str\");\n }\n volResponse.setZoneId(volume.getDataCenterId());\n volResponse.setZoneName(ApiDBUtils.findZoneById(volume.getDataCenterId()).getName());\n volResponse.setVolumeType(volume.getVolumeType().toString());\n volResponse.setDeviceId(volume.getDeviceId());\n Long instanceId = volume.getInstanceId();\n if (instanceId != null && volume.getState() != Volume.State.Destroy) {\n VMInstanceVO vm = ApiDBUtils.findVMInstanceById(instanceId);\n volResponse.setVirtualMachineId(vm.getId());\n volResponse.setVirtualMachineName(vm.getHostName());\n UserVm userVm = ApiDBUtils.findUserVmById(vm.getId());\n if (userVm != null) {\n volResponse.setVirtualMachineDisplayName(userVm.getDisplayName());\n volResponse.setVirtualMachineState(vm.getState().toString());\n }\n }\n volResponse.setSize(volume.getSize());\n volResponse.setCreated(volume.getCreated());\n volResponse.setState(volume.getState().toString());\n Account accountTemp = ApiDBUtils.findAccountById(volume.getAccountId());\n if (accountTemp != null) {\n volResponse.setAccountName(accountTemp.getAccountName());\n volResponse.setDomainId(accountTemp.getDomainId());\n volResponse.setDomainName(ApiDBUtils.findDomainById(accountTemp.getDomainId()).getName());\n }\n String storageType;\n try {\n if (volume.getPoolId() == null) {\n if (volume.getState() == Volume.State.Allocated) {\n storageType = \"String_Node_Str\";\n } else {\n storageType = \"String_Node_Str\";\n }\n } else {\n storageType = ApiDBUtils.volumeIsOnSharedStorage(volume.getId()) ? \"String_Node_Str\" : \"String_Node_Str\";\n }\n } catch (InvalidParameterValueException e) {\n s_logger.error(e.getMessage(), e);\n throw new ServerApiException(BaseCmd.INTERNAL_ERROR, \"String_Node_Str\" + volume.getName() + \"String_Node_Str\");\n }\n volResponse.setStorageType(storageType);\n if (volume.getVolumeType().equals(Volume.Type.ROOT)) {\n volResponse.setServiceOfferingId(volume.getDiskOfferingId());\n } else {\n volResponse.setDiskOfferingId(volume.getDiskOfferingId());\n }\n DiskOfferingVO diskOffering = ApiDBUtils.findDiskOfferingById(volume.getDiskOfferingId());\n if (volume.getVolumeType().equals(Volume.Type.ROOT)) {\n volResponse.setServiceOfferingName(diskOffering.getName());\n volResponse.setServiceOfferingDisplayText(diskOffering.getDisplayText());\n } else {\n volResponse.setDiskOfferingName(diskOffering.getName());\n volResponse.setDiskOfferingDisplayText(diskOffering.getDisplayText());\n }\n Long poolId = volume.getPoolId();\n String poolName = (poolId == null) ? \"String_Node_Str\" : ApiDBUtils.findStoragePoolById(poolId).getName();\n volResponse.setStoragePoolName(poolName);\n volResponse.setHypervisor(ApiDBUtils.getVolumeHyperType(volume.getId()).toString());\n volResponse.setAttached(volume.getAttached());\n volResponse.setDestroyed(volume.getState() == Volume.State.Destroy);\n VMTemplateVO template = ApiDBUtils.findTemplateById(volume.getTemplateId());\n boolean isExtractable = template != null && template.isExtractable() && !(template.getTemplateType() == TemplateType.SYSTEM);\n volResponse.setExtractable(isExtractable);\n volResponse.setObjectName(\"String_Node_Str\");\n return volResponse;\n}\n"
|
"public static void resetAll() throws Exception {\n metricStore.deleteBefore(System.currentTimeMillis() / 1000);\n}\n"
|
"public static String getLocalFile(File file) {\n if (!file.exists())\n return \"String_Node_Str\";\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(file));\n String line;\n StringBuffer ret = new StringBuffer();\n String sep = System.getProperty(\"String_Node_Str\");\n while ((line = f.readLine()) != null) {\n ret += line + \"String_Node_Str\";\n }\n f.close();\n return ret;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"String_Node_Str\";\n}\n"
|
"protected String getRelativeRequestURI(Command command) {\n List<String> argumentList = command.getArgumentList();\n throwExceptionIfArguementIsEmpty(argumentList);\n String uri = \"String_Node_Str\";\n String optionFn = CommandOption.ENTITY_SEARCH_FN.getOption();\n String optionHandle = CommandOption.ENTITY_SEARCH_HANDLE.getOption();\n if (isPrefixedArgument(argumentList.get(0), optionFn + PARAM_SEPARATOR)) {\n String argumentWithoutPrefix = removePrefix(argumentList.get(0), optionFn);\n argumentWithoutPrefix = urlEncode(argumentWithoutPrefix);\n uri = uri + OPTION_FN + PARAM_SEPARATOR + argumentWithoutPrefix;\n } else if (isPrefixedArgument(argumentList.get(0), OPTION_HANDLE + PARAM_SEPARATOR)) {\n String argumentWithoutPrefix = removePrefix(argumentList.get(0), OPTION_HANDLE);\n argumentWithoutPrefix = urlEncode(argumentWithoutPrefix);\n uri = uri + OPTION_HANDLE + PARAM_SEPARATOR + argumentWithoutPrefix;\n } else {\n throw new ServiceException(\"String_Node_Str\");\n }\n return uri;\n}\n"
|
"private void advanceHeadIndex() {\n headIndex = headIndex % capacity + 1;\n}\n"
|
"public ItemMarkingInfo getItemMarkingInfo(Context context, Item item) throws SQLException {\n Bundle[] bundles = item.getBundles(\"String_Node_Str\");\n if (bundles.length == 0) {\n ItemMarkingInfo markInfo = new ItemMarkingInfo();\n markInfo.setImageName(nonAvailableImageName);\n return markInfo;\n } else {\n Bundle originalBundle = bundles[0];\n if (originalBundle.getBitstreams().length == 0) {\n ItemMarkingInfo markInfo = new ItemMarkingInfo();\n markInfo.setImageName(nonAvailableImageName);\n return markInfo;\n } else {\n Bitstream bitstream = originalBundle.getBitstreams()[0];\n ItemMarkingInfo signInfo = new ItemMarkingInfo();\n signInfo.setImageName(availableImageName);\n signInfo.setTooltip(bitstream.getName());\n String bsLink = \"String_Node_Str\";\n bsLink = bsLink + \"String_Node_Str\" + item.getHandle() + \"String_Node_Str\" + bitstream.getSequenceID() + \"String_Node_Str\";\n try {\n bsLink = bsLink + Util.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n signInfo.setLink(bsLink);\n return signInfo;\n }\n }\n}\n"
|
"public boolean shouldSetAlarm() {\n return !PrefUtils.isSummitNotificationSent(context) && SUMMIT_DATE_TIME.isAfterNow();\n}\n"
|
"public static Map<String, String> generateRandomAEAD(DeviceHandler device, String nonce, int keyHandle, int size) throws YubiHSMInputException, YubiHSMCommandFailedException, YubiHSMErrorException {\n byte[] nonceBA = Utils.validateNonce(Utils.hexToByteArray(nonce), true);\n byte[] len = { (byte) ((size << 24) >> 24) };\n byte[] cmdBuffer = Utils.concatAllArrays(nonceBA, Utils.leIntToBA(keyHandle), len);\n byte[] result = CommandHandler.execute(device, Defines.YSM_RANDOM_AEAD_GENERATE, cmdBuffer, true);\n return parseResult(result, nonce, keyHandle, Defines.YSM_RANDOM_AEAD_GENERATE);\n}\n"
|
"public Long checkinInitiated(Long topicId, final Long poid, final String comment, Long deserializerOid, Long fileSize, String fileName, DataHandler dataHandler, Boolean merge, Boolean sync) throws ServerException, UserException {\n requireAuthenticationAndRunningServer();\n final DatabaseSession session = getBimServer().getDatabase().createSession();\n String username = \"String_Node_Str\";\n String userUsername = \"String_Node_Str\";\n try {\n User user = (User) session.get(StorePackage.eINSTANCE.getUser(), getAuthorization().getUoid(), Query.getDefault());\n Project project = session.get(poid, Query.getDefault());\n if (project == null) {\n throw new UserException(\"String_Node_Str\" + poid);\n }\n username = user.getName();\n userUsername = user.getUsername();\n Path homeDirIncoming = getBimServer().getHomeDir().resolve(\"String_Node_Str\");\n if (!Files.isDirectory(homeDirIncoming)) {\n Files.createDirectory(homeDirIncoming);\n }\n Path userDirIncoming = homeDirIncoming.resolve(userUsername);\n if (!Files.exists(userDirIncoming)) {\n Files.createDirectories(userDirIncoming);\n }\n if (fileName.contains(\"String_Node_Str\")) {\n fileName = fileName.substring(fileName.lastIndexOf(\"String_Node_Str\") + 1);\n }\n if (fileName.contains(\"String_Node_Str\")) {\n fileName = fileName.substring(fileName.lastIndexOf(\"String_Node_Str\") + 1);\n }\n DateFormat dateFormat = new SimpleDateFormat(\"String_Node_Str\");\n String cacheFileName = dateFormat.format(new Date()) + \"String_Node_Str\" + fileName;\n Path file = userDirIncoming.resolve(cacheFileName);\n DeserializerPluginConfiguration deserializerPluginConfiguration = session.get(StorePackage.eINSTANCE.getDeserializerPluginConfiguration(), deserializerOid, Query.getDefault());\n if (deserializerPluginConfiguration == null) {\n throw new UserException(\"String_Node_Str\" + deserializerOid + \"String_Node_Str\");\n } else {\n Plugin plugin = getBimServer().getPluginManager().getPlugin(deserializerPluginConfiguration.getPluginDescriptor().getPluginClassName(), true);\n if (plugin != null) {\n if (plugin instanceof DeserializerPlugin) {\n DeserializerPlugin deserializerPlugin = (DeserializerPlugin) plugin;\n ObjectType settings = deserializerPluginConfiguration.getSettings();\n Deserializer deserializer = deserializerPlugin.createDeserializer(new PluginConfiguration(settings));\n OutputStream outputStream = Files.newOutputStream(file);\n InputStream inputStream = new MultiplexingInputStream(dataHandler.getInputStream(), outputStream);\n deserializer.init(getBimServer().getDatabase().getMetaDataManager().getPackageMetaData(project.getSchema()));\n IfcModelInterface model = deserializer.read(inputStream, fileName, fileSize, null);\n CheckinDatabaseAction checkinDatabaseAction = new CheckinDatabaseAction(getBimServer(), null, getInternalAccessMethod(), poid, getAuthorization(), model, comment, fileName, merge);\n LongCheckinAction longAction = new LongCheckinAction(topicId, getBimServer(), username, userUsername, getAuthorization(), checkinDatabaseAction);\n getBimServer().getLongActionManager().start(longAction);\n if (sync) {\n longAction.waitForCompletion();\n }\n return longAction.getProgressTopic().getKey().getId();\n } else if (plugin instanceof StreamingDeserializerPlugin) {\n StreamingDeserializerPlugin streaminDeserializerPlugin = (StreamingDeserializerPlugin) plugin;\n ObjectType settings = deserializerPluginConfiguration.getSettings();\n StreamingDeserializer streamingDeserializer = streaminDeserializerPlugin.createDeserializer(new PluginConfiguration(settings));\n streamingDeserializer.init(getBimServer().getMetaDataManager().getPackageMetaData(\"String_Node_Str\"));\n OutputStream outputStream = Files.newOutputStream(file);\n InputStream inputStream = new MultiplexingInputStream(dataHandler.getInputStream(), outputStream);\n StreamingCheckinDatabaseAction checkinDatabaseAction = new StreamingCheckinDatabaseAction(getBimServer(), null, getInternalAccessMethod(), poid, getAuthorization(), comment, fileName, inputStream, streamingDeserializer);\n LongStreamingCheckinAction longAction = new LongStreamingCheckinAction(topicId, getBimServer(), username, userUsername, getAuthorization(), checkinDatabaseAction);\n getBimServer().getLongActionManager().start(longAction);\n if (sync) {\n longAction.waitForCompletion();\n }\n return longAction.getProgressTopic().getKey().getId();\n } else {\n throw new UserException(\"String_Node_Str\" + deserializerOid);\n }\n } else {\n throw new UserException(\"String_Node_Str\" + deserializerOid);\n }\n }\n } catch (UserException e) {\n throw e;\n } catch (Throwable e) {\n LOGGER.error(\"String_Node_Str\", e);\n throw new ServerException(e);\n } finally {\n session.close();\n }\n}\n"
|
"public void endElement(String uri, String localName, String qName) {\n if (WORD == mState) {\n mDictionary.add(mWord, mFreq, mBigramsMap.get(mWord));\n mState = START;\n}\n"
|
"void checkAllRequestsFinished() {\n synchronized (mStatsNetworkRequests) {\n if (req != null) {\n mStatsNetworkRequests.remove(req);\n }\n boolean isStillWorking = mStatsNetworkRequests.size() > 0;\n EventBus.getDefault().post(new StatsEvents.UpdateStatusChanged(isStillWorking));\n }\n}\n"
|
"public void postConstruct(Composite parent) {\n final Shell shell = parent.getShell();\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setBounds(0, 0, 507, 298);\n Label lblData = new Label(composite, SWT.NONE);\n lblData.setBounds(10, 10, 55, 15);\n lblData.setText(\"String_Node_Str\");\n txtSourceDir = new Text(composite, SWT.BORDER);\n txtSourceDir.setBounds(115, 7, 334, 21);\n Button button = new Button(composite, SWT.NONE);\n button.addMouseListener(new MouseAdapter() {\n public void mouseUp(MouseEvent e) {\n DirectoryDialog fd1 = new DirectoryDialog(shell);\n fd1.open();\n String fp1Directory = fd1.getFilterPath();\n txtSourceDir.setText(fp1Directory);\n txtLabel.setText(fd1.getFilterPath().substring(1 + fd1.getFilterPath().lastIndexOf(System.getProperty(\"String_Node_Str\"))));\n }\n });\n button.setBounds(446, 6, 39, 25);\n button.setText(\"String_Node_Str\");\n txtNumTopics = new Text(composite, SWT.BORDER);\n txtNumTopics.setBounds(115, 46, 76, 21);\n Label lblNumberOfTopics = new Label(composite, SWT.NONE);\n lblNumberOfTopics.setBounds(10, 49, 99, 15);\n lblNumberOfTopics.setText(\"String_Node_Str\");\n txtOutputPath = new Text(composite, SWT.BORDER);\n txtOutputPath.setBounds(115, 83, 334, 21);\n Button button_1 = new Button(composite, SWT.NONE);\n button_1.addMouseListener(new MouseAdapter() {\n public void mouseUp(MouseEvent e) {\n DirectoryDialog fd1 = new DirectoryDialog(shell);\n fd1.open();\n String fp1Directory = fd1.getFilterPath();\n txtOutputPath.setText(fp1Directory);\n }\n });\n button_1.setBounds(446, 81, 39, 25);\n button_1.setText(\"String_Node_Str\");\n Label lblOutputPath = new Label(composite, SWT.NONE);\n lblOutputPath.setBounds(10, 89, 76, 15);\n lblOutputPath.setText(\"String_Node_Str\");\n final Button btnPreprocess = new Button(composite, SWT.CHECK);\n btnPreprocess.setBounds(491, 10, 94, 18);\n btnPreprocess.setText(\"String_Node_Str\");\n Button btnProcess = new Button(composite, SWT.NONE);\n btnProcess.addMouseListener(new MouseAdapter() {\n public void mouseUp(MouseEvent e) {\n String ppDir = txtSourceDir.getText();\n File iDir = new File(ppDir);\n File[] iFiles = iDir.listFiles();\n for (File f : iFiles) {\n if (f.getAbsolutePath().contains(\"String_Node_Str\"))\n f.delete();\n }\n if (btnPreprocess.getSelection()) {\n ppService = GlobalPresserSettings.ppService;\n if (ppService.options == null) {\n System.out.println(\"String_Node_Str\");\n appendLog(\"String_Node_Str\");\n GlobalPresserSettings.ppService.setOptions(shell);\n }\n IEclipseContext iEclipseContext = context;\n ContextInjectionFactory.inject(ppService, iEclipseContext);\n appendLog(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n try {\n ppDir = ppService.doPreprocessing(txtSourceDir.getText());\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n LDA lda = new LDA();\n IEclipseContext iEclipseContext = context;\n ContextInjectionFactory.inject(lda, iEclipseContext);\n try {\n System.out.println(\"String_Node_Str\");\n appendLog(\"String_Node_Str\");\n long startTime = System.currentTimeMillis();\n lda.doLDA(ppDir, txtNumTopics.getText(), txtOutputPath.getText(), txtLabel.getText());\n System.out.println(\"String_Node_Str\" + (System.currentTimeMillis() - startTime) + \"String_Node_Str\");\n appendLog(\"String_Node_Str\" + (System.currentTimeMillis() - startTime) + \"String_Node_Str\");\n if (btnPreprocess.getSelection() && ppService.doCleanUp()) {\n ppService.clean(ppDir);\n System.out.println(\"String_Node_Str\" + ppDir);\n appendLog(\"String_Node_Str\" + ppDir);\n }\n appendLog(\"String_Node_Str\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n });\n btnProcess.setBounds(11, 163, 75, 25);\n btnProcess.setText(\"String_Node_Str\");\n Label lblOutputPrefix = new Label(composite, SWT.NONE);\n lblOutputPrefix.setBounds(10, 125, 76, 15);\n lblOutputPrefix.setText(\"String_Node_Str\");\n txtLabel = new Text(composite, SWT.BORDER);\n txtLabel.setText(\"String_Node_Str\");\n txtLabel.setBounds(115, 119, 76, 21);\n}\n"
|
"public Response isAdministrator() {\n return buildOkResponse(String.valueOf(userConsoleService.isAdministrator()));\n}\n"
|
"private void processSubmittedQueue(TaskListener listener) {\n boolean saveNeeded = false;\n for (Iterator<InstanceCreationRequest> iter = submittedQueue.iterator(); iter.hasNext(); ) {\n InstanceCreationRequest request = iter.next();\n try {\n if (request.monitor.isDone()) {\n tagSlaveInstance(request.slave.getInstance(), request.slave);\n if (request.slave.getComputer() != null && request.slave.getComputer().isOnline()) {\n request.slave.setInstanceStatusMessage(MessageFormat.format(\"String_Node_Str\", request.slave.getInstancePageUrl()));\n saveNeeded = true;\n iter.remove();\n } else {\n long launchTime = System.currentTimeMillis() - request.monitor.getCreationTime();\n if (launchTime >= TimeUnit.MINUTES.toMillis(request.slave.getLaunchTimeout())) {\n request.slave.setDeletable(true);\n iter.remove();\n log(Level.SEVERE, MessageFormat.format(\"String_Node_Str\", request.slave.getNodeName(), TimeUnit.MILLISECONDS.toMinutes(launchTime)), null, listener);\n }\n }\n }\n } catch (IProgressMonitor.IncompleteException ex) {\n log(Level.SEVERE, ex.getMessage(), ex, listener);\n iter.remove();\n } catch (IOException ex) {\n log(Level.SEVERE, ex.getMessage(), ex, listener);\n }\n }\n if (saveNeeded) {\n try {\n Jenkins.getInstance().save();\n } catch (IOException ex) {\n Logger.getLogger(ElasticBoxSlaveHandler.class.getName()).log(Level.SEVERE, \"String_Node_Str\", ex);\n }\n }\n}\n"
|
"public void actionPerformed(ActionEvent event) {\n String title = \"String_Node_Str\";\n PastebinPaste paste = Pastebin.newPaste(PASTEBIN_DEVELOPER_KEY, logArea.getText(), title);\n paste.setPasteFormat(\"String_Node_Str\");\n paste.setPasteExpireDate(PasteExpireDate.ONE_MONTH);\n uploadPaste(paste);\n}\n"
|
"public void setAdapter(ArrayList<PieChartData> alPercentage) throws Exception {\n this.alPieCharData = alPercentage;\n iDataSize = alPercentage.size();\n if (rectLegendIcon == null) {\n rectLegendIcon = new RectF[iDataSize];\n for (int i = 0; i < iDataSize; i++) {\n if (rectLegendIcon[i] == null) {\n rectLegendIcon[i] = new RectF();\n }\n }\n }\n float fSum = 0;\n for (int i = 0; i < iDataSize; i++) {\n fSum += alPercentage.get(i).fPercentage;\n }\n if (!decimalFormat.format(fSum).equals(\"String_Node_Str\")) {\n Log.e(TAG, ERROR_NOT_EQUAL_TO_100);\n iDataSize = 0;\n throw new Exception(ERROR_NOT_EQUAL_TO_100);\n }\n invalidate();\n}\n"
|
"private static Group deserializeOptionGroup(JsonArray items, JsonDeserializationContext context) {\n Group.Builder groupBuilder = new Group.Builder();\n groupBuilder.setLayout(Group.Layout.VERTICAL);\n for (JsonElement item : items) {\n Component component = context.deserialize(item, ComponentTypeAdapterFactory.getJsonComponentType(item));\n groupBuilder.addItem(component);\n }\n return groupBuilder.create();\n}\n"
|
"protected Set<Long> cacheData(Set<Long> jobIDs) {\n cacheCalled++;\n cacheParameter = jobIDs;\n switch(mode) {\n case SILENT:\n return null;\n case WAITING:\n try {\n long before = System.currentTimeMillis();\n synchronized (o) {\n o.notifyAll();\n o.wait(TIMEOUT);\n o.notifyAll();\n }\n woken |= System.currentTimeMillis() - before < TIMEOUT;\n } catch (InterruptedException e) {\n return null;\n }\n return null;\n case REPLYING:\n try {\n File temp = getCacheFile(jobIDs);\n temp.deleteOnExit();\n FileOutputStream fos = new FileOutputStream(temp);\n for (Long job : jobIDs) {\n fos.write(job.intValue());\n }\n fos.close();\n return jobIDs;\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\" + e);\n e.printStackTrace();\n return null;\n }\n case REPLYING_DIR:\n try {\n File tempDir = getCacheFile(jobIDs);\n tempDir.deleteOnExit();\n tempDir.mkdir();\n OutputStream fos = new FileOutputStream(new File(tempDir, \"String_Node_Str\"));\n fos.close();\n return jobIDs;\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\" + e);\n e.printStackTrace();\n return null;\n }\n case FAILING:\n throw new IOFailure(\"String_Node_Str\");\n default:\n return null;\n }\n}\n"
|
"protected int getMaxPanelHeight() {\n int min = mStatusBarMinHeight;\n if (mStatusBar.getBarState() != StatusBarState.KEYGUARD && mNotificationStackScroller.getNotGoneChildCount() == 0) {\n int minHeight = (int) (mQsMinExpansionHeight + getOverExpansionAmount());\n min = Math.max(min, minHeight);\n }\n int maxHeight;\n if (mQsExpandImmediate || mQsExpanded || mIsExpanding && mQsExpandedWhenExpandingStarted) {\n maxHeight = calculatePanelHeightQsExpanded();\n } else {\n maxHeight = calculatePanelHeightShade();\n }\n maxHeight = Math.max(maxHeight, min);\n return maxHeight;\n}\n"
|
"public static String getOutputType(Report report) {\n TaggedValue taggedValue = TaggedValueHelper.getTaggedValue(TaggedValueHelper.OUTPUT_TYPE_TAG, report.getTaggedValue());\n if (taggedValue == null || taggedValue.getValue() == null) {\n return \"String_Node_Str\";\n }\n return taggedValue.getValue();\n}\n"
|
"public int compare(DoublePair o1, DoublePair o2) {\n int cmp = Double.compare(o1.v1, o2.v1);\n if (cmp == 0) {\n cmp = Double.compare(o2.v2, o2.v2);\n }\n}\n"
|
"private static InputStream findFileInClasspath(String fileName) {\n InputStream is = null;\n try {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n is = classLoader.getResourceAsStream(fileName);\n return is == null ? null : is;\n } catch (Exception ex) {\n log.error(String.format(\"String_Node_Str\", fileName), ex);\n return null;\n }\n}\n"
|
"private void processCustomMessage(BmobIMMessage message, MessageEvent event) {\n String type = message.getMsgType();\n String client = BmobUser.getCurrentUser(User.class).getClient();\n if (type.equals(SMSMessage.SMS) && client.equals(User.CHILDREN)) {\n Toast.makeText(mContext, message.getContent(), Toast.LENGTH_LONG).show();\n L.i(event.getConversation().getConversationTitle() + \"String_Node_Str\");\n SMS sms = SMSMessage.convert(message);\n mSmsDao.insert(sms);\n String s = \"String_Node_Str\" + sms.getTime() + \"String_Node_Str\" + \"String_Node_Str\" + sms.getAddress() + \"String_Node_Str\" + \"String_Node_Str\" + sms.getContent() + \"String_Node_Str\" + \"String_Node_Str\" + sms.getProbability() + \"String_Node_Str\";\n L.i(s);\n L.i(\"String_Node_Str\" + mSmsDao.queryBuilder().build().list().size());\n showSMSNotification(event, sms);\n } else if (type.equals(BpmMessage.BPM) && client.equals(User.CHILDREN)) {\n Toast.makeText(mContext, message.getContent(), Toast.LENGTH_LONG).show();\n L.i(event.getConversation().getConversationTitle() + \"String_Node_Str\");\n Bpm bpm = BpmMessage.convert(message);\n mBpmDao.insert(bpm);\n String s = \"String_Node_Str\" + bpm.getTime() + \"String_Node_Str\" + \"String_Node_Str\" + bpm.getBpm() + \"String_Node_Str\" + \"String_Node_Str\" + bpm.getDescription() + \"String_Node_Str\";\n L.i(s);\n L.i(\"String_Node_Str\" + mBpmDao.queryBuilder().build().list().size());\n showBpmNotification(event, bpm);\n } else if ((type.equals(ShareMapMessage.MAP) && client.equals(User.PARENTS)) && client.equals(User.PARENTS)) {\n EventBus.getDefault().post(message.getContent());\n }\n L.i(getCurrentUser(User.class).getUsername() + \"String_Node_Str\" + type + \"String_Node_Str\" + client + \"String_Node_Str\" + message.getContent());\n}\n"
|
"private static Object getSalesforceSchemaValue(SalesforceSchemaConnection connection, String value, IMetadataTable table) {\n if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getWebServiceUrl()) || isContextMode(connection, connection.getWebServiceUrlTextForOAuth())) {\n if (connection.getLoginType().equalsIgnoreCase(\"String_Node_Str\")) {\n return connection.getWebServiceUrl();\n } else {\n return connection.getWebServiceUrlTextForOAuth();\n }\n } else {\n if (connection.getLoginType().equals(\"String_Node_Str\")) {\n return TalendQuoteUtils.addQuotes(connection.getWebServiceUrl());\n } else {\n return TalendQuoteUtils.addQuotes(connection.getWebServiceUrlTextForOAuth());\n }\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getUserName())) {\n return connection.getUserName();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getUserName());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getPassword())) {\n return connection.getPassword();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getPassword());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (connection.isUseCustomModuleName()) {\n return \"String_Node_Str\";\n } else {\n if (table != null) {\n EList<SalesforceModuleUnit> moduleList = connection.getModules();\n for (SalesforceModuleUnit unit : moduleList) {\n if (table.getLabel().equals(unit.getModuleName())) {\n return unit.getModuleName();\n }\n }\n }\n return connection.getModuleName();\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getQueryCondition())) {\n return connection.getQueryCondition();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getQueryCondition());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n return connection.getBatchSize();\n } else if (\"String_Node_Str\".equals(value)) {\n return connection.isUseProxy();\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getProxyHost())) {\n return connection.getProxyHost();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getProxyHost());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getProxyPort())) {\n return connection.getProxyPort();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getProxyPort());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getProxyUsername())) {\n return connection.getProxyUsername();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getProxyUsername());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getProxyPassword())) {\n return connection.getProxyPassword();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getProxyPassword());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getTimeOut())) {\n return connection.getTimeOut();\n } else {\n return connection.getTimeOut();\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getSalesforceVersion())) {\n return connection.getSalesforceVersion();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getSalesforceVersion());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getConsumeKey())) {\n return connection.getConsumeKey();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getConsumeKey());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getConsumeSecret())) {\n return connection.getConsumeSecret();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getConsumeSecret());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getCallbackHost())) {\n return connection.getCallbackHost();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getCallbackHost());\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getCallbackPort())) {\n return connection.getCallbackPort();\n } else {\n return connection.getCallbackPort();\n }\n } else if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getLoginType())) {\n return connection.getLoginType();\n } else {\n if (connection.getLoginType().equals(\"String_Node_Str\")) {\n return \"String_Node_Str\";\n } else {\n return \"String_Node_Str\";\n }\n }\n }\n return null;\n}\n"
|
"private void decrement(Point2D p, int layer) {\n int x = (int) Math.round(p.x);\n int y = (int) Math.round(p.y);\n double attenuatedInc = increment * pencil.strength * pencil.getApplicationRatio(explorer.getInMapSpace(p));\n double valueToDitribute = attenuatedInc;\n ArrayList<AtlasLayer> availableLayers = new ArrayList<>();\n for (AtlasLayer l : ModelManager.getBattlefield().getMap().atlas.getLayers()) {\n if (ModelManager.getBattlefield().getMap().atlas.getLayers().indexOf(l) == layer) {\n valueToDitribute -= l.withdrawAndReturnExcess(x, y, attenuatedInc);\n } else if (l.get(x, y) > 0) {\n availableLayers.add(l);\n }\n }\n if (availableLayers.isEmpty()) {\n availableLayers.add(atlas.getLayers().get(0));\n }\n int secur = -1;\n while (valueToDitribute > 0 && !availableLayers.isEmpty() && secur++ < 50) {\n ArrayList<AtlasLayer> unavailableLayers = new ArrayList<>();\n double shared = valueToDitribute / availableLayers.size();\n valueToDitribute = 0;\n for (AtlasLayer l : availableLayers) {\n valueToDitribute += l.addAndReturnExcess(x, y, shared);\n if (l.get(x, y) == 255) {\n unavailableLayers.add(l);\n }\n }\n availableLayers.removeAll(unavailableLayers);\n }\n if (secur > 40) {\n LogUtil.logger.warning(\"String_Node_Str\");\n }\n atlas.updatePixel(x, y);\n}\n"
|
"public void setBid(int amount, Player bidder) {\n if (amount == -1) {\n setPass(bidder);\n } else if (amount > 0) {\n int index = bidder.getIndex();\n bids[index].set(amount);\n bids[index].setSuppressZero(false);\n active[index] = true;\n lastBidderIndex.set(index);\n minimumBid.set(amount + 5);\n }\n}\n"
|
"public StoragePoolVO createPool(CreateStoragePoolCmd cmd) throws ResourceInUseException, IllegalArgumentException, UnknownHostException, ResourceUnavailableException {\n Long clusterId = cmd.getClusterId();\n Long podId = cmd.getPodId();\n Map ds = cmd.getDetails();\n if (clusterId != null && podId == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n }\n Map<String, String> details = new HashMap<String, String>();\n if (ds != null) {\n Collection detailsCollection = ds.values();\n Iterator it = detailsCollection.iterator();\n while (it.hasNext()) {\n HashMap d = (HashMap) it.next();\n Iterator it2 = d.entrySet().iterator();\n while (it2.hasNext()) {\n Map.Entry entry = (Map.Entry) it2.next();\n details.put((String) entry.getKey(), (String) entry.getValue());\n }\n }\n }\n Long zoneId = cmd.getZoneId();\n DataCenterVO zone = _dcDao.findById(cmd.getZoneId());\n if (zone == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + zoneId);\n }\n Account account = UserContext.current().getCaller();\n if (Grouping.AllocationState.Disabled == zone.getAllocationState() && !_accountMgr.isRootAdmin(account.getType())) {\n throw new PermissionDeniedException(\"String_Node_Str\" + zoneId);\n }\n List<HostVO> allHosts = _hostDao.listBy(Host.Type.Routing, clusterId, podId, zoneId);\n if (allHosts.isEmpty()) {\n throw new ResourceUnavailableException(\"String_Node_Str\" + clusterId, HostPodVO.class, podId);\n }\n URI uri = null;\n try {\n uri = new URI(cmd.getUrl());\n if (uri.getScheme() == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + cmd.getUrl() + \"String_Node_Str\");\n } else if (uri.getScheme().equalsIgnoreCase(\"String_Node_Str\")) {\n String uriHost = uri.getHost();\n String uriPath = uri.getPath();\n if (uriHost == null || uriPath == null || uriHost.trim().isEmpty() || uriPath.trim().isEmpty()) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n }\n } else if (uri.getScheme().equalsIgnoreCase(\"String_Node_Str\")) {\n String uriPath = uri.getPath();\n if (uriPath == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n }\n }\n } catch (URISyntaxException e) {\n throw new InvalidParameterValueException(cmd.getUrl() + \"String_Node_Str\");\n }\n String tags = cmd.getTags();\n if (tags != null) {\n String[] tokens = tags.split(\"String_Node_Str\");\n for (String tag : tokens) {\n tag = tag.trim();\n if (tag.length() == 0) {\n continue;\n }\n details.put(tag, \"String_Node_Str\");\n }\n }\n String scheme = uri.getScheme();\n String storageHost = uri.getHost();\n String hostPath = uri.getPath();\n int port = uri.getPort();\n StoragePoolVO pool = null;\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + scheme + \"String_Node_Str\" + storageHost + \"String_Node_Str\" + hostPath + \"String_Node_Str\" + port);\n }\n if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n if (port == -1) {\n port = 2049;\n }\n pool = new StoragePoolVO(StoragePoolType.NetworkFilesystem, storageHost, port, hostPath);\n if (clusterId == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n if (port == -1) {\n port = 0;\n }\n pool = new StoragePoolVO(StoragePoolType.Filesystem, \"String_Node_Str\", 0, hostPath);\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n pool = new StoragePoolVO(StoragePoolType.SharedMountPoint, storageHost, 0, hostPath);\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n pool = new StoragePoolVO(StoragePoolType.PreSetup, storageHost, 0, hostPath);\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n String[] tokens = hostPath.split(\"String_Node_Str\");\n int lun = NumbersUtil.parseInt(tokens[tokens.length - 1], -1);\n if (port == -1) {\n port = 3260;\n }\n if (lun != -1) {\n if (clusterId == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n hostPath.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n pool = new StoragePoolVO(StoragePoolType.IscsiLUN, storageHost, port, hostPath);\n } else {\n Enumeration<StoragePoolDiscoverer> en = _discoverers.enumeration();\n while (en.hasMoreElements()) {\n Map<StoragePoolVO, Map<String, String>> pools;\n try {\n pools = en.nextElement().find(cmd.getZoneId(), podId, uri, details);\n } catch (DiscoveryException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + uri, e);\n }\n if (pools != null) {\n Map.Entry<StoragePoolVO, Map<String, String>> entry = pools.entrySet().iterator().next();\n pool = entry.getKey();\n details = entry.getValue();\n break;\n }\n }\n }\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n if (port == -1) {\n port = 2049;\n }\n pool = new StoragePoolVO(StoragePoolType.ISO, storageHost, port, hostPath);\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n pool = new StoragePoolVO(StoragePoolType.VMFS, \"String_Node_Str\" + hostPath, 0, hostPath);\n } else {\n s_logger.warn(\"String_Node_Str\" + uri);\n throw new IllegalArgumentException(\"String_Node_Str\" + uri);\n }\n if (pool == null) {\n s_logger.warn(\"String_Node_Str\" + uri);\n throw new IllegalArgumentException(\"String_Node_Str\" + uri);\n }\n List<StoragePoolVO> pools = _storagePoolDao.listPoolByHostPath(storageHost, hostPath);\n if (!pools.isEmpty() && !scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n Long oldPodId = pools.get(0).getPodId();\n throw new ResourceInUseException(\"String_Node_Str\" + uri + \"String_Node_Str\" + oldPodId + \"String_Node_Str\", \"String_Node_Str\", uri.toASCIIString());\n }\n long poolId = _storagePoolDao.getNextInSequence(Long.class, \"String_Node_Str\");\n String uuid = null;\n if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n uuid = UUID.randomUUID().toString();\n } else if (scheme.equalsIgnoreCase(\"String_Node_Str\")) {\n uuid = hostPath.replace(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n uuid = UUID.nameUUIDFromBytes(new String(storageHost + hostPath).getBytes()).toString();\n }\n List<StoragePoolVO> spHandles = _storagePoolDao.findIfDuplicatePoolsExistByUUID(uuid);\n if ((spHandles != null) && (spHandles.size() > 0)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n throw new ResourceInUseException(\"String_Node_Str\");\n }\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + poolId + \"String_Node_Str\" + uuid + \"String_Node_Str\" + zoneId + \"String_Node_Str\" + podId + \"String_Node_Str\" + cmd.getStoragePoolName());\n }\n pool.setId(poolId);\n pool.setUuid(uuid);\n pool.setDataCenterId(cmd.getZoneId());\n pool.setPodId(podId);\n pool.setName(cmd.getStoragePoolName());\n pool.setClusterId(clusterId);\n pool.setStatus(StoragePoolStatus.Up);\n pool = _storagePoolDao.persist(pool, details);\n boolean success = false;\n for (HostVO h : allHosts) {\n success = createStoragePool(h.getId(), pool);\n if (success) {\n break;\n }\n }\n if (!success) {\n s_logger.warn(\"String_Node_Str\" + pool + \"String_Node_Str\" + clusterId);\n _storagePoolDao.expunge(pool.getId());\n return null;\n }\n s_logger.debug(\"String_Node_Str\");\n List<HostVO> poolHosts = new ArrayList<HostVO>();\n for (HostVO h : allHosts) {\n try {\n connectHostToSharedPool(h.getId(), pool);\n poolHosts.add(h);\n } catch (Exception e) {\n s_logger.warn(\"String_Node_Str\" + h + \"String_Node_Str\" + pool, e);\n }\n }\n if (poolHosts.isEmpty()) {\n s_logger.warn(\"String_Node_Str\" + pool + \"String_Node_Str\" + clusterId);\n _storagePoolDao.expunge(pool.getId());\n return null;\n } else {\n createCapacityEntry(pool);\n }\n _configMgr.updateConfiguration(UserContext.current().getCallerUserId(), \"String_Node_Str\", \"String_Node_Str\");\n return pool;\n}\n"
|
"public void run() {\n Calls.addCall(ci, mApplication, logNumber, newPresentation, callLogType, date, (int) duration / 1000);\n if (DBG)\n log(\"String_Node_Str\");\n}\n"
|
"public boolean parseCommand(String message) {\n if (closed) {\n return true;\n }\n if (message.equals(server.getCommandParser().commandPrefix() + \"String_Node_Str\")) {\n message = lastCommand;\n } else {\n lastCommand = message;\n }\n String commandName = message.split(\"String_Node_Str\")[0].substring(1);\n String args = commandName.length() == message.length() ? \"String_Node_Str\" : message.substring(commandName.length() + 1);\n CommandConfig config = server.config.commands.getTopConfig(commandName);\n String originalName = config == null ? commandName : config.originalName;\n PlayerCommand command;\n if (config == null) {\n command = server.getCommandParser().getPlayerCommand(commandName);\n if (command != null && !command.hidden()) {\n command = null;\n }\n } else {\n command = server.getCommandParser().getPlayerCommand(originalName);\n }\n if (command == null) {\n if (groupObject.forwardUnknownCommands) {\n command = new ExternalCommand(commandName);\n } else {\n command = server.getCommandParser().getPlayerCommand((String) null);\n }\n }\n if (config != null) {\n Permission permission = server.config.getCommandPermission(config.name, args, position.coordinate());\n if (!permission.contains(this)) {\n addTMessage(Color.RED, \"String_Node_Str\");\n return true;\n }\n }\n if (config != null && !(command instanceof ExternalCommand) && config.forwarding != Forwarding.ONLY) {\n command.execute(this, message);\n }\n return !((command instanceof ExternalCommand) || config == null || config.forwarding != Forwarding.NONE || server.options.getBoolean(\"String_Node_Str\"));\n}\n"
|
"public static Graph<CGNode> buildPrunedCallGraph(String appJar, File exclusionFile) throws WalaException, IllegalArgumentException, CancelException {\n AnalysisScope scope = AnalysisScopeReader.makeJavaBinaryAnalysisScope(appJar, exclusionFile != null ? exclusionFile : new File(CallGraphTestUtil.REGRESSION_EXCLUSIONS));\n ClassHierarchy cha = ClassHierarchy.make(scope);\n Iterable<Entrypoint> entrypoints = com.ibm.wala.ipa.callgraph.impl.Util.makeMainEntrypoints(scope, cha);\n AnalysisOptions options = new AnalysisOptions(scope, entrypoints);\n com.ibm.wala.ipa.callgraph.CallGraphBuilder builder = Util.makeZeroCFABuilder(options, new AnalysisCache(), cha, scope);\n CallGraph cg = builder.makeCallGraph(options);\n System.err.println(CallGraphStats.getStats(cg));\n Graph<CGNode> g = pruneForAppLoader(cg);\n return g;\n}\n"
|
"public Image getImage(Object element) {\n if (element instanceof RepositoryNode) {\n RepositoryNode node = (RepositoryNode) element;\n ERepositoryObjectType repObjType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n return GenericWizardServiceFactory.getGenericWizardService().getNodeImage(repObjType.getType());\n }\n return super.getImage(element);\n}\n"
|
"public Vector selectAllRows() throws DatabaseException {\n if (!((ObjectLevelReadQuery) this.query).shouldOuterJoinSubclasses()) {\n ClassDescriptor descriptor = getDescriptor();\n if (descriptor.hasInheritance() && descriptor.getInheritancePolicy().requiresMultipleTableSubclassRead() && (!descriptor.getInheritancePolicy().hasView())) {\n return descriptor.getInheritancePolicy().selectAllRowUsingMultipleTableSubclassRead((ObjectLevelReadQuery) this.query);\n }\n }\n return selectAllRowsFromTable();\n}\n"
|
"public static SessionHandle getHiveSessionHandle(GrillSessionHandle grillHandle) {\n return new SessionHandle(new HandleIdentifier(grillHandle.getPublicId(), grillHandle.getSecretId()), CLIService.SERVER_VERSION);\n}\n"
|
"public void resolveReferences(AbstractSession session) {\n for (int x = 0, referencesSize = references.size(); x < referencesSize; x++) {\n Reference reference = (Reference) references.get(x);\n Object referenceSourceObject = reference.getSourceObject();\n if (reference.getMapping() instanceof XMLCollectionReferenceMapping) {\n XMLCollectionReferenceMapping mapping = (XMLCollectionReferenceMapping) reference.getMapping();\n ContainerPolicy cPolicy = mapping.getContainerPolicy();\n Object container = null;\n if (mapping.getReuseContainer()) {\n container = mapping.getAttributeAccessor().getAttributeValueFromObject(referenceSourceObject);\n } else {\n container = cPolicy.containerInstance();\n }\n createPKVectorsFromMap(reference, mapping);\n if (!mapping.isWriteOnly()) {\n for (Iterator pkIt = ((Vector) reference.getPrimaryKey()).iterator(); pkIt.hasNext(); ) {\n CacheId primaryKey = (CacheId) pkIt.next();\n Object value = getValue(session, reference, primaryKey);\n if (value != null) {\n cPolicy.addInto(value, container, session);\n }\n }\n }\n mapping.setAttributeValueInObject(referenceSourceObject, container);\n XMLInverseReferenceMapping inverseReferenceMapping = mapping.getInverseReferenceMapping();\n if (inverseReferenceMapping != null) {\n AttributeAccessor backpointerAccessor = inverseReferenceMapping.getAttributeAccessor();\n ContainerPolicy backpointerContainerPolicy = inverseReferenceMapping.getContainerPolicy();\n Object iterator = cPolicy.iteratorFor(container);\n while (cPolicy.hasNext(iterator)) {\n Object next = cPolicy.next(iterator, session);\n if (backpointerContainerPolicy == null) {\n backpointerAccessor.setAttributeValueInObject(next, referenceSourceObject);\n } else {\n Object backpointerContainer = backpointerAccessor.getAttributeValueFromObject(next);\n if (backpointerContainer == null) {\n backpointerContainer = backpointerContainerPolicy.containerInstance();\n backpointerAccessor.setAttributeValueInObject(next, backpointerContainer);\n }\n backpointerContainerPolicy.addInto(referenceSourceObject, backpointerContainer, session);\n }\n }\n }\n } else if (reference.getMapping() instanceof XMLObjectReferenceMapping) {\n CacheId primaryKey = (CacheId) reference.getPrimaryKey();\n Object value = getValue(session, reference, primaryKey);\n XMLObjectReferenceMapping mapping = (XMLObjectReferenceMapping) reference.getMapping();\n if (value != null) {\n mapping.setAttributeValueInObject(reference.getSourceObject(), value);\n }\n if (null != reference.getSetting()) {\n reference.getSetting().setValue(value);\n }\n XMLInverseReferenceMapping inverseReferenceMapping = mapping.getInverseReferenceMapping();\n if (inverseReferenceMapping != null) {\n AttributeAccessor backpointerAccessor = inverseReferenceMapping.getAttributeAccessor();\n ContainerPolicy backpointerContainerPolicy = inverseReferenceMapping.getContainerPolicy();\n if (backpointerContainerPolicy == null) {\n backpointerAccessor.setAttributeValueInObject(value, referenceSourceObject);\n } else {\n Object backpointerContainer = backpointerAccessor.getAttributeValueFromObject(value);\n if (backpointerContainer == null) {\n backpointerContainer = backpointerContainerPolicy.containerInstance();\n backpointerAccessor.setAttributeValueInObject(value, backpointerContainer);\n }\n backpointerContainerPolicy.addInto(reference.getSourceObject(), backpointerContainer, session);\n }\n }\n }\n }\n if (session.isUnitOfWork()) {\n ((UnitOfWork) session).release();\n }\n references = new ArrayList();\n}\n"
|
"private void parseEventAny(DynAny dynAny2, String path) {\n if (monitor != null && monitor.isCanceled()) {\n cancelFlag = true;\n return;\n }\n DynAny da = dynAny2;\n int tcKind = da.type().kind().value();\n ParsedAnyData entry = new ParsedAnyData(path, \"String_Node_Str\", \"String_Node_Str\");\n try {\n switch(tcKind) {\n case TCKind._tk_short:\n entry.setType(\"String_Node_Str\");\n entry.setValue(String.valueOf(da.get_short()));\n pdlist.add(entry);\n break;\n case TCKind._tk_long:\n entry.setType(\"String_Node_Str\");\n entry.setValue(String.valueOf(da.get_long()));\n pdlist.add(entry);\n break;\n case TCKind._tk_longlong:\n entry.setType(\"String_Node_Str\");\n entry.setValue(String.valueOf(da.get_longlong()));\n pdlist.add(entry);\n break;\n case TCKind._tk_ulonglong:\n entry.setType(\"String_Node_Str\");\n entry.setValue(String.valueOf(da.get_ulonglong()));\n pdlist.add(entry);\n break;\n case TCKind._tk_string:\n entry.setType(\"String_Node_Str\");\n entry.setValue(da.get_string());\n pdlist.add(entry);\n break;\n case TCKind._tk_boolean:\n entry.setType(\"String_Node_Str\");\n entry.setValue(\"String_Node_Str\" + da.get_boolean());\n pdlist.add(entry);\n break;\n case TCKind._tk_float:\n entry.setType(\"String_Node_Str\");\n entry.setValue(\"String_Node_Str\" + da.get_float());\n pdlist.add(entry);\n break;\n case TCKind._tk_double:\n entry.setType(\"String_Node_Str\");\n entry.setValue(\"String_Node_Str\" + da.get_double());\n pdlist.add(entry);\n break;\n case TCKind._tk_enum:\n entry.setType(\"String_Node_Str\");\n entry.setValue(((DynEnum) da).get_as_string());\n pdlist.add(entry);\n break;\n case TCKind._tk_array:\n entry.setType(\"String_Node_Str\");\n entry.setValue(\"String_Node_Str\" + da.component_count());\n pdlist.add(entry);\n int numDisplayElements = Math.min(da.component_count(), 5);\n int elementType = da.type().content_type().kind().value();\n switch(elementType) {\n case TCKind._tk_double:\n for (int j = 0; j < numDisplayElements; j++) {\n String dname = path + \"String_Node_Str\" + j + \"String_Node_Str\";\n double value = da.current_component().get_double();\n pdlist.add(new ParsedAnyData(dname, \"String_Node_Str\", (\"String_Node_Str\" + value)));\n da.next();\n }\n break;\n default:\n pdlist.add(new ParsedAnyData(path, \"String_Node_Str\" + elementType, \"String_Node_Str\"));\n }\n break;\n case TCKind._tk_struct:\n case TCKind._tk_except:\n DynStruct ds = (DynStruct) da;\n String structName = ds.type().name();\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + structName);\n entry.setType(\"String_Node_Str\");\n if (path.equals(\"String_Node_Str\")) {\n entry.setName(structName);\n } else\n entry.setName(path + \"String_Node_Str\" + structName);\n StringBuilder members = new StringBuilder(\"String_Node_Str\");\n for (int i = 0; i < ds.component_count(); i++) {\n members += ds.current_member_name() + ((i == ds.component_count() - 1) ? \"String_Node_Str\" : \"String_Node_Str\");\n ds.next();\n }\n entry.setValue(members);\n pdlist.add(entry);\n ds.rewind();\n for (int i = 0; i < ds.component_count(); i++) {\n String dname = ds.current_member_name();\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + dname + \"String_Node_Str\" + ds.current_component().type().kind().value());\n parseEventAny(ds.current_component(), dname);\n ds.next();\n }\n if (DEBUG) {\n NameValuePair[] nvp = ds.get_members();\n for (int i = 0; i < nvp.length; i++) {\n System.out.println(nvp[i].id + \"String_Node_Str\" + nvp[i].value);\n }\n }\n break;\n case TCKind._tk_sequence:\n DynSequence dsq = (DynSequence) da;\n String seqName = path + dsq.type().name();\n entry.setType(\"String_Node_Str\" + seqName);\n entry.setValue(\"String_Node_Str\");\n default:\n entry.setType(da.type().kind().toString());\n entry.setValue(\"String_Node_Str\");\n pdlist.add(entry);\n break;\n }\n } catch (TypeMismatch e) {\n e.printStackTrace();\n } catch (InvalidValue e) {\n e.printStackTrace();\n } catch (BadKind e) {\n e.printStackTrace();\n }\n return;\n}\n"
|
"public boolean supports(Class<?> clazz) {\n Class superClazz = clazz.getSuperclass();\n return superClazz.equals(DomainSearchParam.class) || superClazz.equals(NameserverSearchParam.class) || superClazz.equals(EntitySearchParam.class) || clazz.equals(HelpQueryParam.class);\n}\n"
|
"private void validateRules(Errors errors, List<SurveyQuestion> questions) {\n Set<String> alreadySeenIdentifiers = Sets.newHashSet();\n for (int i = 0; i < questions.size(); i++) {\n SurveyQuestion question = questions.get(i);\n for (SurveyRule rule : question.getConstraints().getRules()) {\n if (alreadySeenIdentifiers.contains(rule.getSkipToTarget())) {\n errors.pushNestedPath(\"String_Node_Str\" + i);\n rejectField(errors, \"String_Node_Str\", \"String_Node_Str\", rule.getSkipToTarget());\n errors.popNestedPath();\n }\n }\n alreadySeenIdentifiers.add(question.getIdentifier());\n }\n for (int i = 0; i < questions.size(); i++) {\n SurveyQuestion question = questions.get(i);\n Constraints c = question.getConstraints();\n if (c != null && c.getRules() != null) {\n for (SurveyRule rule : c.getRules()) {\n if (!alreadySeenIdentifiers.contains(rule.getSkipToTarget())) {\n errors.pushNestedPath(\"String_Node_Str\" + i);\n rejectField(errors, \"String_Node_Str\", \"String_Node_Str\", rule.getSkipToTarget());\n errors.popNestedPath();\n }\n }\n }\n }\n}\n"
|
"public static ResolveResult[] tryResolveFromQualifier(CSharpReferenceExpressionEx referenceExpressionEx, PsiElement qualifierElement) {\n if (!referenceExpressionEx.isValid()) {\n return ResolveResult.EMPTY_ARRAY;\n }\n ParamatizeValue paramatizeValue = CachedValuesManager.getCachedValue(expression, () -> CachedValueProvider.Result.create(new ParamatizeValue(), PsiModificationTracker.MODIFICATION_COUNT));\n return paramatizeValue.get(qualifierElement, element -> tryResolveFromQualifierImpl(expression, element));\n}\n"
|
"public ClusterEntity createClusterConfig(ClusterCreate cluster) {\n String name = cluster.getName();\n if (name == null || name.isEmpty()) {\n throw ClusterConfigException.CLUSTER_NAME_MISSING();\n }\n List<String> failedMsgList = new ArrayList<String>();\n List<String> warningMsgList = new ArrayList<String>();\n DistroRead distro = distroMgr.getDistroByName(cluster.getDistro());\n if (cluster.getDistro() == null || distro == null) {\n throw BddException.INVALID_PARAMETER(\"String_Node_Str\", cluster.getDistro());\n }\n String appManager = cluster.getAppManager();\n if (appManager == null) {\n appManager = new String(\"String_Node_Str\");\n }\n SoftwareManager softwareManager = softwareManagerCollector.getSoftwareManager(appManager);\n if (softwareManager == null) {\n logger.error(\"String_Node_Str\");\n throw new ClusterConfigException(null, \"String_Node_Str\");\n }\n try {\n softwareManager.validateRoles(cluster.toBlueprint(), distro.getRoles());\n cluster.validateClusterCreate(failedMsgList, warningMsgList);\n } catch (SoftwareManagementPluginException e) {\n failedMsgList.add(e.getFailedMsgList().toString());\n }\n if (!failedMsgList.isEmpty()) {\n throw ClusterConfigException.INVALID_SPEC(failedMsgList);\n }\n if (!validateRacksInfo(cluster, failedMsgList)) {\n throw ClusterConfigException.INVALID_PLACEMENT_POLICIES(failedMsgList);\n }\n transformHDFSUrl(cluster);\n try {\n ClusterEntity entity = clusterEntityMgr.findByName(name);\n if (entity != null) {\n logger.info(\"String_Node_Str\" + name + \"String_Node_Str\");\n throw BddException.ALREADY_EXISTS(\"String_Node_Str\", name);\n }\n logger.debug(\"String_Node_Str\" + name);\n Gson gson = new Gson();\n ClusterEntity clusterEntity = new ClusterEntity(name);\n clusterEntity.setAppManager(cluster.getAppManager());\n clusterEntity.setDistro(cluster.getDistro());\n clusterEntity.setDistroVendor(cluster.getDistroVendor());\n clusterEntity.setDistroVersion(cluster.getDistroVersion());\n clusterEntity.setAppManager(cluster.getAppManager());\n clusterEntity.setStartAfterDeploy(true);\n clusterEntity.setPassword(cluster.getPassword());\n clusterEntity.setVersion(clusterEntityMgr.getServerVersion());\n if (cluster.containsComputeOnlyNodeGroups()) {\n clusterEntity.setAutomationEnable(automationEnable);\n } else {\n clusterEntity.setAutomationEnable(null);\n }\n clusterEntity.setVhmMinNum(-1);\n clusterEntity.setVhmMaxNum(-1);\n if (cluster.getRpNames() != null && cluster.getRpNames().size() > 0) {\n logger.debug(\"String_Node_Str\" + cluster.getRpNames() + \"String_Node_Str\" + name);\n clusterEntity.setVcRpNameList(cluster.getRpNames());\n } else {\n logger.debug(\"String_Node_Str\");\n }\n if (cluster.getDsNames() != null && !cluster.getDsNames().isEmpty()) {\n logger.debug(\"String_Node_Str\" + cluster.getDsNames() + \"String_Node_Str\" + name);\n clusterEntity.setVcDatastoreNameList(cluster.getDsNames());\n } else {\n logger.debug(\"String_Node_Str\");\n }\n clusterEntity.setNetworkConfig(validateAndConvertNetNamesToNetConfigs(cluster.getNetworkConfig(), cluster.getDistroVendor().equalsIgnoreCase(Constants.MAPR_VENDOR)));\n clusterEntity.setVhmJobTrackerPort(\"String_Node_Str\");\n if (cluster.getConfiguration() != null && cluster.getConfiguration().size() > 0) {\n CommonClusterExpandPolicy.validateAppConfig(cluster.getConfiguration(), cluster.isValidateConfig());\n clusterEntity.setHadoopConfig((new Gson()).toJson(cluster.getConfiguration()));\n updateVhmJobTrackerPort(cluster, clusterEntity);\n }\n NodeGroupCreate[] groups = cluster.getNodeGroups();\n if (groups != null && groups.length > 0) {\n clusterEntity.setNodeGroups(convertNodeGroupsToEntities(gson, clusterEntity, cluster.getDistro(), groups, cluster.isValidateConfig()));\n validateMemorySize(clusterEntity.getNodeGroups(), failedMsgList);\n if (!failedMsgList.isEmpty()) {\n throw ClusterConfigException.INVALID_SPEC(failedMsgList);\n }\n }\n if (cluster.getTopologyPolicy() == null) {\n clusterEntity.setTopologyPolicy(TopologyType.NONE);\n } else {\n clusterEntity.setTopologyPolicy(cluster.getTopologyPolicy());\n }\n if (clusterEntity.getTopologyPolicy() == TopologyType.HVE) {\n boolean hveSupported = false;\n if (clusterEntity.getDistro() != null) {\n DistroRead dr = distroMgr.getDistroByName(clusterEntity.getDistro());\n if (dr != null) {\n hveSupported = dr.isHveSupported();\n }\n }\n if (!hveSupported) {\n throw ClusterConfigException.INVALID_TOPOLOGY_POLICY(clusterEntity.getTopologyPolicy(), \"String_Node_Str\");\n }\n }\n clusterEntityMgr.insert(clusterEntity);\n logger.debug(\"String_Node_Str\" + name);\n return clusterEntity;\n } catch (UniqueConstraintViolationException ex) {\n logger.info(\"String_Node_Str\" + name + \"String_Node_Str\");\n throw BddException.ALREADY_EXISTS(ex, \"String_Node_Str\", name);\n }\n}\n"
|
"public void removeInstanceLifecycleListener(InstanceLifecycleListener listener) {\n checkActive();\n for (ZooClassDef def : cache.getSchemata()) {\n def.getProvidedContext().removeLifecycleListener(listener);\n }\n}\n"
|
"public void run() {\n List<RPCResponse> responses = new LinkedList<RPCResponse>();\n Map<String, Long> verMap = new HashMap<String, Long>();\n try {\n for (Entry<String, Map<String, Object>> mapEntry : serviceDataGen.getServiceData().entrySet()) {\n if (!\"String_Node_Str\".equals(mapEntry.getValue().get(\"String_Node_Str\"))) {\n RPCResponse r = client.deregisterEntity(mapEntry.getKey(), authString);\n r.waitForResponse();\n responses.add(r);\n }\n registerEntity(mapEntry.getKey(), mapEntry.getValue(), verMap, authString, responses);\n if (Logging.isDebug())\n Logging.logMessage(Logging.LEVEL_DEBUG, this, uuid + \"String_Node_Str\");\n }\n List<Map<String, Object>> endpoints = null;\n if (config.getAddress() == null) {\n endpoints = NetUtils.getReachableEndpoints(uuid.getAddress().getPort(), uuid.getProtocol());\n } else {\n endpoints = new ArrayList(1);\n String dottedQuad = config.getAddress().toString();\n if (dottedQuad.startsWith(\"String_Node_Str\"))\n dottedQuad = dottedQuad.substring(1);\n Map<String, Object> m = RPCClient.generateMap(\"String_Node_Str\", dottedQuad, \"String_Node_Str\", uuid.getAddress().getPort(), \"String_Node_Str\", uuid.getProtocol(), \"String_Node_Str\", 3600, \"String_Node_Str\", \"String_Node_Str\");\n endpoints.add(m);\n }\n long version = 0;\n RPCResponse r2 = client.getAddressMapping(uuid.toString(), authString);\n try {\n Map<String, List<Object>> result = (Map<String, List<Object>>) r2.get();\n Collection<Entry<String, List<Object>>> entries = result.entrySet();\n if (entries.size() != 0) {\n List<Object> valueList = entries.iterator().next().getValue();\n version = (Long) valueList.get(0);\n }\n } finally {\n responses.add(r2);\n }\n RPCResponse r3 = client.registerAddressMapping(uuid.toString(), endpoints, version, authString);\n try {\n r3.waitForResponse();\n } finally {\n responses.add(r3);\n }\n } catch (Exception ex) {\n Logging.logMessage(Logging.LEVEL_ERROR, this, \"String_Node_Str\" + OutputUtils.stackTraceToString(ex));\n notifyCrashed(ex);\n } finally {\n for (RPCResponse resp : responses) resp.freeBuffers();\n }\n notifyStarted();\n while (!quit) {\n responses.clear();\n try {\n for (Entry<String, Map<String, Object>> mapEntry : serviceDataGen.getServiceData().entrySet()) {\n registerEntity(mapEntry.getKey(), mapEntry.getValue(), verMap, authString, responses);\n if (Logging.isDebug())\n Logging.logMessage(Logging.LEVEL_DEBUG, this, uuid + \"String_Node_Str\");\n }\n } catch (IOException ex) {\n Logging.logMessage(Logging.LEVEL_ERROR, this, ex);\n } catch (JSONException ex) {\n Logging.logMessage(Logging.LEVEL_ERROR, this, ex);\n } catch (InterruptedException ex) {\n quit = true;\n break;\n } finally {\n for (RPCResponse resp : responses) resp.freeBuffers();\n }\n if (quit)\n break;\n try {\n Thread.sleep(UPDATE_INTERVAL);\n } catch (InterruptedException e) {\n }\n }\n notifyStopped();\n}\n"
|
"public void updateDimensions(int width, int height) {\n int newHeight = height;\n int newWidth = width;\n if (width < height) {\n newHeight = (width / (mBoardSize.width + 2)) * (mBoardSize.height + 1);\n } else {\n newWidth = (height / (mBoardSize.height + 1)) * (mBoardSize.width + 2);\n }\n setMinimumSize(new Dimension(newWidth, newHeight));\n setPreferredSize(new Dimension(newWidth, newHeight));\n setMaximumSize(new Dimension(newWidth, newHeight));\n revalidate();\n repaint();\n}\n"
|
"protected String format(Object oText) throws ChartException {\n if (defaultDateFormat != null && fs == null && oText instanceof Calendar) {\n return ValueFormatter.format(oText, fs, lgData.rtc.getULocale(), defaultDateFormat);\n } else {\n return super.format(oText);\n }\n}\n"
|
"protected void renderImpl(GLGraphics g, float w, float h) {\n if (AColumnHeaderUI.this.getParent() != null)\n renderBackground(g, w, h);\n if (get(HIST).getParent() != null)\n get(HIST).render(g);\n}\n"
|
"public void load(Map<WrappedStack, EnergyValue> valueMap) {\n if (valueMap != null) {\n setShouldSave(false);\n ImmutableSortedMap.Builder<WrappedStack, EnergyValue> stackMappingsBuilder = ImmutableSortedMap.naturalOrder();\n valueMap.keySet().stream().filter(wrappedStack -> wrappedStack != null && wrappedStack.getWrappedObject() != null && valueMap.get(wrappedStack) != null).forEach(wrappedStack -> stackMappingsBuilder.put(wrappedStack, valueMap.get(wrappedStack)));\n stackValueMap = stackMappingsBuilder.build();\n calculateValueStackMap();\n }\n}\n"
|
"public void die() {\n try {\n if (player != null)\n ((CraftLivingEntity) npc.getBukkitEntity()).getHandle().killer = (EntityHuman) ((CraftLivingEntity) player).getHandle();\n } catch (Exception e) {\n dB.echoError(\"String_Node_Str\");\n }\n setHealth();\n EntityDeathEvent entityDeath = new EntityDeathEvent(npc.getBukkitEntity(), null);\n NPCDeathEvent npcDeath = new NPCDeathEvent(npc, entityDeath);\n DenizenAPI.getCurrentInstance().getServer().getPluginManager().callEvent(npcDeath);\n DenizenAPI.getCurrentInstance().getServer().getPluginManager().callEvent(entityDeath);\n npc.despawn(DespawnReason.DEATH);\n}\n"
|
"private void moveImpl(Object graphicsComponent, final Rectangle constraints, final int xPos, final boolean xAbsolute, final int yPos, final boolean yAbsolute, ClickOptions clickOptions) throws StepExecutionException {\n if (clickOptions.isScrollToVisible()) {\n ensureComponentVisible((Component) graphicsComponent, constraints);\n }\n Component component = (Component) graphicsComponent;\n preMove(component);\n Rectangle bounds = null;\n bounds = new Rectangle(getLocation(component, new Point(0, 0)));\n bounds.width = component.getWidth();\n bounds.height = component.getHeight();\n if (constraints != null) {\n bounds.x += constraints.x;\n bounds.y += constraints.y;\n bounds.height = constraints.height;\n bounds.width = constraints.width;\n }\n Point p = PointUtil.calculateAwtPointToGo(xPos, xAbsolute, yPos, yAbsolute, bounds);\n if (isMouseMoveRequired(p)) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + p);\n }\n InterceptorOptions options = new InterceptorOptions(new long[] { AWTEvent.MOUSE_MOTION_EVENT_MASK });\n IRobotEventConfirmer confirmer = m_interceptor.intercept(options);\n Point ap = getAdjacentPoint(component, p);\n m_robot.mouseMove(ap.x, ap.y);\n m_eventFlusher.flush();\n m_robot.mouseMove(p.x, p.y);\n if (clickOptions.isConfirmClick()) {\n confirmer.waitToConfirm(component, new MouseMovedAwtEventMatcher());\n }\n }\n}\n"
|
"public void commit() {\n int oidPage = oidIndex.write();\n int schemaPage1 = schemaIndex.write(txId);\n txContext.setSchemaTxId(schemaIndex.getTxIdOfLastWrite());\n txContext.setSchemaIndexTxId(schemaIndex.getTxIdOfLastWriteThatRequiresRefresh());\n sm.commitInfrastructure(oidPage, schemaPage1, oidIndex.getLastUsedOid(), txId);\n txContext.reset();\n DBLogger.debugPrintln(1, \"String_Node_Str\");\n sm.getLock().release(this);\n}\n"
|
"private void updateReport(WcetKey key, LocalWCETSolution sol) {\n Map<CFGNode, WcetCost> nodeCosts = sol.getNodeCostMap();\n Hashtable<CFGNode, String> nodeFlowCostDescrs = new Hashtable<CFGNode, String>();\n MethodInfo m = key.m;\n for (Entry<CFGNode, WcetCost> entry : nodeCosts.entrySet()) {\n CFGNode n = entry.getKey();\n WcetCost cost = entry.getValue();\n if (sol.getNodeFlow(n) > 0) {\n nodeFlowCostDescrs.put(n, cost.toString());\n BasicBlock basicBlock = n.getBasicBlock();\n if (basicBlock != null) {\n TreeSet<Integer> lineRange = basicBlock.getSourceLineRange();\n if (lineRange.isEmpty()) {\n Project.logger.error(\"String_Node_Str\");\n }\n ClassInfo cli = basicBlock.getClassInfo();\n LineNumberTable lineNumberTable = basicBlock.getMethodInfo().getMethod().getLineNumberTable();\n int sourceLine = lineNumberTable.getSourceLine(pos);\n ClassReport cr = project.getReport().getClassReport(cli);\n Long oldCost = (Long) cr.getLineProperty(sourceLine, \"String_Node_Str\");\n if (oldCost == null)\n oldCost = 0L;\n cr.addLineProperty(sourceLine, \"String_Node_Str\", oldCost + sol.getNodeFlow(n) * nodeCosts.get(n).getCost());\n for (InstructionHandle ih : basicBlock.getInstructions()) {\n sourceLine = lineNumberTable.getSourceLine(ih.getPosition());\n cr.addLineProperty(sourceLine, \"String_Node_Str\", \"String_Node_Str\");\n }\n }\n } else {\n nodeFlowCostDescrs.put(n, \"String_Node_Str\" + nodeCosts.get(n).getCost());\n }\n }\n logger.info(\"String_Node_Str\" + key + \"String_Node_Str\" + sol.getCost());\n Map<String, Object> stats = new Hashtable<String, Object>();\n stats.put(\"String_Node_Str\", sol.getCost());\n stats.put(\"String_Node_Str\", key.ctx);\n stats.put(\"String_Node_Str\", project.getProcessorModel().getMethodCache().allFit(m));\n project.getReport().addDetailedReport(m, \"String_Node_Str\" + key.ctx.toString(), stats, nodeFlowCostDescrs, sol.getEdgeFlow());\n}\n"
|
"void dumpServicesLocked(FileDescriptor fd, PrintWriter pw, String[] args, int opti, boolean dumpAll, boolean dumpClient, String dumpPackage) {\n boolean needSep = false;\n boolean printedAnything = false;\n ItemMatcher matcher = new ItemMatcher();\n matcher.build(args, opti);\n pw.println(\"String_Node_Str\");\n try {\n int[] users = mAm.getUsersLocked();\n for (int user : users) {\n ServiceMap smap = getServiceMap(user);\n boolean printed = false;\n if (smap.mServicesByName.size() > 0) {\n long nowReal = SystemClock.elapsedRealtime();\n needSep = false;\n for (int si = 0; si < smap.mServicesByName.size(); si++) {\n ServiceRecord r = smap.mServicesByName.valueAt(si);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n if (!printed) {\n if (printedAnything) {\n pw.println();\n }\n pw.println(\"String_Node_Str\" + user + \"String_Node_Str\");\n printed = true;\n }\n printedAnything = true;\n if (needSep) {\n pw.println();\n }\n pw.print(\"String_Node_Str\");\n pw.println(r);\n if (dumpAll) {\n r.dump(pw, \"String_Node_Str\");\n needSep = true;\n } else {\n pw.print(\"String_Node_Str\");\n pw.println(r.app);\n pw.print(\"String_Node_Str\");\n TimeUtils.formatDuration(r.createTime, nowReal, pw);\n pw.print(\"String_Node_Str\");\n pw.print(r.startRequested);\n pw.print(\"String_Node_Str\");\n pw.println(r.connections.size());\n if (r.connections.size() > 0) {\n pw.println(\"String_Node_Str\");\n for (int conni = 0; conni < r.connections.size(); conni++) {\n ArrayList<ConnectionRecord> clist = r.connections.valueAt(conni);\n for (int i = 0; i < clist.size(); i++) {\n ConnectionRecord conn = clist.get(i);\n pw.print(\"String_Node_Str\");\n pw.print(conn.binding.intent.intent.getIntent().toShortString(false, false, false, false));\n pw.print(\"String_Node_Str\");\n ProcessRecord proc = conn.binding.client;\n pw.println(proc != null ? proc.toShortString() : \"String_Node_Str\");\n }\n }\n }\n }\n if (dumpClient && r.app != null && r.app.thread != null) {\n pw.println(\"String_Node_Str\");\n pw.flush();\n try {\n TransferPipe tp = new TransferPipe();\n try {\n r.app.thread.dumpService(tp.getWriteFd().getFileDescriptor(), r, args);\n tp.setBufferPrefix(\"String_Node_Str\");\n tp.go(fd, 2000);\n } finally {\n tp.kill();\n }\n } catch (IOException e) {\n pw.println(\"String_Node_Str\" + e);\n } catch (RemoteException e) {\n pw.println(\"String_Node_Str\");\n }\n needSep = true;\n }\n }\n needSep |= printed;\n }\n printed = false;\n for (int si = 0, SN = smap.mDelayedStartList.size(); si < SN; si++) {\n ServiceRecord r = smap.mDelayedStartList.get(si);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n if (!printed) {\n if (printedAnything) {\n pw.println();\n }\n pw.println(\"String_Node_Str\" + user + \"String_Node_Str\");\n printed = true;\n }\n printedAnything = true;\n pw.print(\"String_Node_Str\");\n pw.println(r);\n }\n printed = false;\n for (int si = 0, SN = smap.mStartingBackground.size(); si < SN; si++) {\n ServiceRecord r = smap.mStartingBackground.get(si);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n if (!printed) {\n if (printedAnything) {\n pw.println();\n }\n pw.println(\"String_Node_Str\" + user + \"String_Node_Str\");\n printed = true;\n }\n printedAnything = true;\n pw.print(\"String_Node_Str\");\n pw.println(r);\n }\n }\n } catch (Exception e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n if (mPendingServices.size() > 0) {\n boolean printed = false;\n for (int i = 0; i < mPendingServices.size(); i++) {\n ServiceRecord r = mPendingServices.get(i);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n printedAnything = true;\n if (!printed) {\n if (needSep)\n pw.println();\n needSep = true;\n pw.println(\"String_Node_Str\");\n printed = true;\n }\n pw.print(\"String_Node_Str\");\n pw.println(r);\n r.dump(pw, \"String_Node_Str\");\n }\n needSep = true;\n }\n if (mRestartingServices.size() > 0) {\n boolean printed = false;\n for (int i = 0; i < mRestartingServices.size(); i++) {\n ServiceRecord r = mRestartingServices.get(i);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n printedAnything = true;\n if (!printed) {\n if (needSep)\n pw.println();\n needSep = true;\n pw.println(\"String_Node_Str\");\n printed = true;\n }\n pw.print(\"String_Node_Str\");\n pw.println(r);\n r.dump(pw, \"String_Node_Str\");\n }\n needSep = true;\n }\n if (mDestroyingServices.size() > 0) {\n boolean printed = false;\n for (int i = 0; i < mStoppingServices.size(); i++) {\n ServiceRecord r = mStoppingServices.get(i);\n if (!matcher.match(r, r.name)) {\n continue;\n }\n if (dumpPackage != null && !dumpPackage.equals(r.appInfo.packageName)) {\n continue;\n }\n printedAnything = true;\n if (!printed) {\n if (needSep)\n pw.println();\n needSep = true;\n pw.println(\"String_Node_Str\");\n printed = true;\n }\n pw.print(\"String_Node_Str\");\n pw.println(r);\n r.dump(pw, \"String_Node_Str\");\n }\n needSep = true;\n }\n if (dumpAll) {\n boolean printed = false;\n for (int ic = 0; ic < mServiceConnections.size(); ic++) {\n ArrayList<ConnectionRecord> r = mServiceConnections.valueAt(ic);\n for (int i = 0; i < r.size(); i++) {\n ConnectionRecord cr = r.get(i);\n if (!matcher.match(cr.binding.service, cr.binding.service.name)) {\n continue;\n }\n if (dumpPackage != null && (cr.binding.client == null || !dumpPackage.equals(cr.binding.client.info.packageName))) {\n continue;\n }\n printedAnything = true;\n if (!printed) {\n if (needSep)\n pw.println();\n needSep = true;\n pw.println(\"String_Node_Str\");\n printed = true;\n }\n pw.print(\"String_Node_Str\");\n pw.println(cr);\n cr.dump(pw, \"String_Node_Str\");\n }\n }\n }\n if (!printedAnything) {\n pw.println(\"String_Node_Str\");\n }\n}\n"
|
"public Autnum query(QueryParam queryParam) {\n Autnum autnum = queryWithoutInnerObjects(queryParam);\n queryAndSetInnerObjects(autnum);\n queryAndSetEntities(autnum);\n return autnum;\n}\n"
|
"public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess blockAccess, BlockPos pos) {\n TileEntityDrawers tile = getTileEntity(blockAccess, pos);\n if (tile != null && isHalfDepth(state)) {\n switch(EnumFacing.getFront(tile.getDirection())) {\n case NORTH:\n return AABB_NORTH_HALF;\n case SOUTH:\n return AABB_SOUTH_HALF;\n case WEST:\n return AABB_WEST_HALF;\n case EAST:\n return AABB_EAST_HALF;\n }\n }\n return FULL_BLOCK_AABB;\n}\n"
|
"public void pushEdge(AbstractEdge edge, AbstractNode source, AbstractNode target, MetaEdgeImpl metaEdge) {\n float edgeWeight = edge.getWeight();\n float metaWeight = metaEdge.getWeight();\n float edgeCount = metaEdge.getCount();\n float div = 1f;\n if (source == metaEdge.getSource() || source == metaEdge.getTarget() || target == metaEdge.getTarget() || target == metaEdge.getSource()) {\n div = nonDeepDivisor;\n }\n edgeWeight /= div;\n metaWeight = (metaWeight * edgeCount + edgeWeight) / (edgeCount + 1);\n if (metaWeight > weightLimit) {\n metaWeight = weightLimit;\n }\n metaEdge.setWeight(metaWeight);\n}\n"
|
"private Element createEmbeddeImage(BufferedImage img) {\n if (img == null) {\n return null;\n }\n int width = img.getWidth();\n int height = img.getHeight();\n ImageWriter iw = ImageWriterFactory.instance().createByFormatName(\"String_Node_Str\");\n ByteArrayOutputStream baos = new ByteArrayOutputStream(8192 * 2);\n String sUrl = null;\n try {\n final ImageOutputStream ios = SecurityUtil.newImageOutputStream(baos);\n ImageWriteParam iwp = iw.getDefaultWriteParam();\n iw.setOutput(ios);\n iw.write((IIOMetadata) null, new IIOImage(img, null, null), iwp);\n img.flush();\n ios.close();\n sUrl = SVGImage.BASE64 + new String(Base64.encodeBase64(baos.toByteArray()));\n } catch (Exception ex) {\n logger.log(ex);\n } finally {\n iw.dispose();\n }\n Element elem = dom.createElement(\"String_Node_Str\");\n elem.setAttribute(\"String_Node_Str\", \"String_Node_Str\" + img.hashCode());\n elem.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n elem.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n elem.setAttribute(\"String_Node_Str\", Integer.toString(width));\n elem.setAttribute(\"String_Node_Str\", Integer.toString(height));\n elem.setAttribute(\"String_Node_Str\", sUrl);\n elemG.appendChild(elem);\n return elemG;\n}\n"
|
"public JPQLQueryBNF getQueryBNF() {\n return getQueryBNF(EntityTypeLiteralBNF.ID);\n}\n"
|
"public void collapseEdge(Edge e, Point3d pos) {\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + e + \"String_Node_Str\" + pos);\n Vertex commonv = e.getHe().getHead();\n tvertices.remove(commonv.getPoint());\n commonv.getPoint().x = pos.x;\n commonv.getPoint().y = pos.y;\n commonv.getPoint().z = pos.z;\n tvertices.put(commonv.getPoint(), commonv);\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + commonv.getID() + \"String_Node_Str\" + pos);\n Face face1 = e.getHe().getLeft();\n Face face2 = e.getHe().getTwin().getLeft();\n Vertex removev = e.getHe().getTail();\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + removev.getID() + \"String_Node_Str\" + commonv.getID());\n ArrayList<Edge> redges = new ArrayList<Edge>();\n changeVertex(face1, removev, commonv, redges);\n changeVertex(face2, removev, commonv, redges);\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + removev.getID());\n removeVertex(removev);\n removeHalfEdges(face1);\n removeHalfEdges(face2);\n removeFace(face1);\n removeFace(face2);\n removeEdge(e);\n HalfEdge he1;\n HalfEdgeKey key = new HalfEdgeKey();\n System.out.println(\"String_Node_Str\");\n redges.clear();\n for (Edge e1 = edges; e1 != null; e1 = e1.getNext()) {\n redges.add(e1);\n }\n for (Edge e1 : redges) {\n he1 = e1.getHe();\n if (he1 == null) {\n continue;\n }\n HalfEdge twin = he1.getTwin();\n if (twin == null) {\n key.setHead(he1.getHead());\n key.setTail(he1.getTail());\n HalfEdge e2 = edgeMap.get(key);\n if (e2 != null) {\n betwin(he1, e2);\n } else {\n writeOBJ(System.out);\n throw new IllegalArgumentException(\"String_Node_Str\" + he1);\n }\n }\n }\n}\n"
|
"private void onRenderDepsChanged() {\n _renderDepsChanged = true;\n component().setState(Js.<S>cast(JsPropertyMap.of()));\n}\n"
|
"public static List<String> refineInput(List<String> selectedInputs) {\n Set<String> refinedInputList = new HashSet<String>();\n Pattern corpusDetector = Pattern.compile(\"String_Node_Str\");\n for (String input : selectedInputs) {\n Matcher m = corpusDetector.matcher(input);\n if (m.find()) {\n String corpusClassPath = m.group(1);\n CMDataType corpusType = new ManageCorpora().getCorpusDataType(corpusClassPath);\n if (corpusType == null)\n continue;\n if (corpusType.equals(CMDataType.TWITTER_JSON))\n input = new TwitterReadJsonData().retrieveTwitterData(corpusClassPath);\n else if (corpusType.equals(CMDataType.REDDIT_JSON))\n input = new RedditJsonHandler().retrieveRedditData(corpusClassPath);\n else\n input = corpusClassPath;\n }\n File inputFile = new File(input);\n if (!inputFile.exists())\n continue;\n if (!inputFile.isDirectory())\n refinedInputList.add(inputFile.getAbsolutePath());\n else\n refinedInputList.addAll(getFilesFromFolder(inputFile.getAbsolutePath()));\n }\n return refinedInputList;\n}\n"
|
"public Composite generate(Composite parent, boolean isWithHelp) {\n Composite frameComp = createAWTSWTComposite(parent);\n frame = SWT_AWT.new_Frame(frameComp);\n frame.setTitle(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n pr = new LineRender(graphbuilder);\n sr = new LineRender(graphbuilder);\n PersistentLayout layout = new PersistentLayoutImpl(new ISOMLayout(graph));\n VisualizationModel vm = new DefaultVisualizationModel(layout);\n vv = new VisualizationViewer(vm, pr);\n sv = new SatelliteVisualizationViewer(vv, vm, sr, new Dimension(200, 200));\n configureVViewer(vv);\n JPanel controllers = createToolControllers(vv);\n if (this.isPreview)\n controllers.setVisible(false);\n JPanel panel = new GraphZoomScrollPane(vv);\n if (isWithHelp) {\n helpDialog = createSatelliteDialog(vv, sv);\n controllers.add(createShowSatelliteCheck(helpDialog));\n }\n frame.add(panel);\n frame.add(controllers, BorderLayout.SOUTH);\n frame.validate();\n addListeners();\n return frameComp;\n}\n"
|
"public void run() {\n l.pageChanged(event);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.