content
stringlengths
40
137k
"private void setIpVersionAndStartEndAddress(ResultSet rs, Network objIp) throws SQLException {\n String ipVersionStr = rs.getString(\"String_Node_Str\");\n String startHighAddress = rs.getString(\"String_Node_Str\");\n String startLowAddress = rs.getString(\"String_Node_Str\");\n String endHighAddress = rs.getString(\"String_Node_Str\");\n String endLowAddress = rs.getString(\"String_Node_Str\");\n String startAddress = \"String_Node_Str\";\n String endAddress = \"String_Node_Str\";\n if (IpVersion.isV6(ipVersionStr)) {\n objIp.setIpVersion(IpVersion.V6);\n long longHighStart = StringUtil.parseUnsignedLong(startHighAddress);\n long longLowStart = StringUtil.parseUnsignedLong(startLowAddress);\n startAddress = IpUtil.longToIpV6(longHighStart, longLowStart);\n long longHighEnd = StringUtil.parseUnsignedLong(endHighAddress);\n long longLowEnd = StringUtil.parseUnsignedLong(endLowAddress);\n endAddress = IpUtil.longToIpV6(longHighEnd, longLowEnd);\n } else if (IpVersion.isV4(ipVersionStr)) {\n objIp.setIpVersion(IpVersion.V4);\n startAddress = IpUtil.longToIpV4(StringUtil.parseUnsignedLong(startLowAddress));\n endAddress = IpUtil.longToIpV4(StringUtil.parseUnsignedLong(endLowAddress));\n }\n objIp.setStartAddress(startAddress);\n objIp.setEndAddress(endAddress);\n}\n"
"public void write(IOBuffer buffer) {\n super.write(buffer);\n buffer.putByte(state);\n BufferIO.writeAngle(buffer, orientation);\n BufferIO.writeAngle(buffer, turretOrientation);\n buffer.putByte(primaryWeaponState);\n buffer.putByte(secondaryWeaponState);\n BufferIO.writePlayerId(buffer, operatorId);\n}\n"
"private Buffer getBuffer(long ssrc) {\n synchronized (buffers) {\n Buffer buffer = buffers.get(ssrc);\n if (buffer == null) {\n buffer = new Buffer(SIZE, ssrc);\n buffers.put(ssrc, buffer);\n }\n }\n return buffer;\n}\n"
"public String serviceAccomplishedStatus() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n Orders orderEntity = orderService.findOrdersById(orderIdParam);\n List<OrderItems> orderItemEntityList = orderStatusLogsService.findAllItemsByOrderId(orderIdParam);\n Integer checkAllStatus = 0;\n for (OrderItems orderItemsElem : orderItemEntityList) {\n List<OrderStatusLogs> orderStatusEntityList = orderStatusLogsService.findAllShipmentLogs(orderItemsElem.getOrderItemId());\n for (OrderStatusLogs orderStatusLogsElem : orderStatusEntityList) {\n if (orderStatusLogsElem.getStatus().equals(\"String_Node_Str\") || orderStatusLogsElem.getStatus().equals(\"String_Node_Str\") || (orderEntity.getServiceMode().equals(\"String_Node_Str\") && orderStatusLogsElem.getStatus().equals(\"String_Node_Str\"))) {\n checkAllStatus += 1;\n } else if (orderStatusLogsElem.getStatus().equals(\"String_Node_Str\")) {\n orderEntity.setOrderStatus(\"String_Node_Str\");\n orderService.updateOrder(orderEntity);\n return SUCCESS;\n }\n }\n }\n if (checkAllStatus >= orderItemEntityList.size() && orderItemEntityList.size() >= 1) {\n orderEntity.setOrderStatus(\"String_Node_Str\");\n orderService.updateOrder(orderEntity);\n return SUCCESS;\n } else {\n sessionAttributes.put(\"String_Node_Str\", orderIdParam);\n return \"String_Node_Str\";\n }\n}\n"
"public static String[] takeFirstLine(String dataSetRawPath, String delimeter, SourceType source) throws IOException {\n if (dataSetRawPath == null || delimeter == null || source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String firstValidFile = null;\n FileSystem fs = ShifuFileUtils.getFileSystemBySourceType(source);\n FileStatus[] globStatus = fs.globStatus(new Path(dataSetRawPath), HIDDEN_FILE_FILTER);\n if (globStatus == null || globStatus.length == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + dataSetRawPath);\n } else {\n FileStatus[] listStatus = fs.listStatus(globStatus[0].getPath(), HIDDEN_FILE_FILTER);\n if (listStatus == null || listStatus.length == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + globStatus[0].getPath());\n }\n Arrays.sort(listStatus, new Comparator<FileStatus>() {\n public int compare(FileStatus o1, FileStatus o2) {\n return o1.getPath().toString().compareTo(o2.getPath().toString());\n }\n });\n firstValidFile = findFirstNonEmptyFile(listStatus);\n }\n log.info(\"String_Node_Str\", firstValidFile);\n BufferedReader reader = null;\n try {\n reader = ShifuFileUtils.getReader(firstValidFile, source);\n String firstLine = reader.readLine();\n log.debug(\"String_Node_Str\", firstLine);\n if (firstLine != null && firstLine.length() > 0) {\n List<String> list = new ArrayList<String>();\n for (String unit : Splitter.on(delimeter).split(firstLine)) {\n list.add(unit);\n }\n return list.toArray(new String[0]);\n }\n } catch (Exception e) {\n log.error(\"String_Node_Str\", e);\n } finally {\n IOUtils.closeQuietly(reader);\n }\n return new String[0];\n}\n"
"public Type getTypeForSimpleJavaType(Class implClass) {\n return getTypeHelperDelegate().getTypeForSimpleJavaType(implClass);\n}\n"
"private void verifySigningCertificate(X509Certificate rawCertFromJar) throws SigningException {\n String certFromJar = Hasher.hex(rawCertFromJar);\n if (TextUtils.isEmpty(certFromJar)) {\n throw new SigningException(repo, SIGNED_FILE_NAME + \"String_Node_Str\");\n }\n if (repo.signingCertificate == null) {\n if (repo.fingerprint != null) {\n String fingerprintFromJar = Utils.calcFingerprint(rawCertFromJar);\n if (!repo.fingerprint.equalsIgnoreCase(fingerprintFromJar)) {\n throw new SigningException(\"String_Node_Str\");\n }\n }\n Utils.debugLog(TAG, \"String_Node_Str\" + repo.address);\n ContentValues values = new ContentValues(2);\n values.put(Schema.RepoTable.Cols.LAST_UPDATED, Utils.formatDate(new Date(), \"String_Node_Str\"));\n values.put(Schema.RepoTable.Cols.SIGNING_CERT, Hasher.hex(rawCertFromJar));\n RepoProvider.Helper.update(context, repo, values);\n repo.signingCertificate = certFromJar;\n }\n if (TextUtils.isEmpty(repo.signingCertificate)) {\n throw new SigningException(\"String_Node_Str\");\n }\n if (repo.signingCertificate.equals(certFromJar)) {\n return;\n }\n throw new SigningException(\"String_Node_Str\");\n}\n"
"public void onClick(View view) {\n RequestsToAGiftFragment requestsToAGiftFragment = new RequestsToAGiftFragment();\n Bundle bundle = new Bundle();\n bundle.putString(Constants.GIFT_ID, gifts.get(i).giftId);\n bundle.putString(Constants.GIFT_NAME, gifts.get(i).title);\n bundle.putString(Constants.GIFT_REQUEST_COUNT, gifts.get(i).requestCount);\n requestsToAGiftFragment.setArguments(bundle);\n ((BottomBarActivity) mContext).replaceFragment(requestsToAGiftFragment, RequestsToAGiftFragment.class.getName());\n}\n"
"public synchronized void setNameTag(EventType eventType, String username, String alias, Color foregroundColor, Font font) {\n logger.fine(\"String_Node_Str\" + eventType + \"String_Node_Str\" + username + \"String_Node_Str\" + alias + \"String_Node_Str\" + foregroundColor + \"String_Node_Str\" + font);\n switch(eventType) {\n case HIDE:\n labelHidden = true;\n break;\n case SMALL_FONT:\n labelHidden = false;\n removeLabel();\n setHeight(SMALL_SIZE);\n break;\n case REGULAR_FONT:\n labelHidden = false;\n removeLabel();\n setHeight(REGULAR_SIZE);\n break;\n case LARGE_FONT:\n labelHidden = false;\n removeLabel();\n setHeight(LARGE_SIZE);\n break;\n case ENTERED_CONE_OF_SILENCE:\n inConeOfSilence = true;\n setForegroundColor(CONE_OF_SILENCE_COLOR);\n break;\n case EXITED_CONE_OF_SILENCE:\n inConeOfSilence = false;\n setForegroundColor(NOT_SPEAKING_COLOR);\n break;\n case STARTED_SPEAKING:\n isSpeaking = true;\n setForegroundColor(SPEAKING_COLOR);\n break;\n case STOPPED_SPEAKING:\n isSpeaking = false;\n setForegroundColor(NOT_SPEAKING_COLOR);\n break;\n case MUTE:\n isMuted = true;\n setForegroundColor(NOT_SPEAKING_COLOR);\n removeLabel();\n break;\n case UNMUTE:\n isMuted = false;\n setForegroundColor(NOT_SPEAKING_COLOR);\n break;\n case CHANGE_NAME:\n removeLabel();\n usernameAlias = alias;\n break;\n default:\n logger.warning(\"String_Node_Str\" + eventType);\n break;\n }\n if ((alias != null) && !alias.equals(username)) {\n setFont(ALIAS_NAME_FONT);\n usernameAlias = alias;\n updateLabel(getDisplayName(usernameAlias, isSpeaking, isMuted));\n } else {\n setFont(REAL_NAME_FONT);\n updateLabel(getDisplayName(name, isSpeaking, isMuted));\n }\n if (foregroundColor != null) {\n setForegroundColor(foregroundColor);\n }\n}\n"
"private static boolean resizeImageAndWriteToStream(Context context, Uri imageUri, String fileExtension, int maxWidth, int orientation, int quality, OutputStream outStream) throws OutOfMemoryError, IOException {\n String realFilePath = MediaUtils.getRealPathFromURI(context, imageUri);\n BitmapFactory.Options optBounds = new BitmapFactory.Options();\n optBounds.inJustDecodeBounds = true;\n try {\n BitmapFactory.decodeFile(realFilePath, optBounds);\n } catch (OutOfMemoryError e) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\" + realFilePath, e);\n throw e;\n }\n int scale = 1;\n if (maxWidth > 0 && optBounds.outWidth > maxWidth) {\n double d = Math.pow(2, (int) Math.round(Math.log(maxWidth / (double) optBounds.outWidth) / Math.log(0.5)));\n scale = (int) d;\n }\n BitmapFactory.Options optActual = new BitmapFactory.Options();\n optActual.inSampleSize = scale;\n final Bitmap bmpResized;\n try {\n bmpResized = BitmapFactory.decodeFile(realFilePath, optActual);\n } catch (OutOfMemoryError e) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\" + realFilePath, e);\n throw e;\n }\n if (bmpResized == null) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\");\n throw new IOException(\"String_Node_Str\");\n }\n float percentage = (float) maxWidth / bmpResized.getWidth();\n float proportionateHeight = bmpResized.getHeight() * percentage;\n int finalHeight = (int) Math.rint(proportionateHeight);\n float scaleWidth = ((float) maxWidth) / bmpResized.getWidth();\n float scaleHeight = ((float) finalHeight) / bmpResized.getHeight();\n float scaleBy = Math.min(scaleWidth, scaleHeight);\n Matrix matrix = new Matrix();\n matrix.postScale(scaleBy, scaleBy);\n if (orientation != 0) {\n matrix.setRotate(orientation);\n }\n Bitmap.CompressFormat fmt;\n if (fileExtension != null && (fileExtension.equals(\"String_Node_Str\") || fileExtension.equals(\"String_Node_Str\"))) {\n fmt = Bitmap.CompressFormat.PNG;\n } else {\n fmt = Bitmap.CompressFormat.JPEG;\n }\n final Bitmap bmpRotated;\n try {\n bmpRotated = Bitmap.createBitmap(bmpResized, 0, 0, bmpResized.getWidth(), bmpResized.getHeight(), matrix, true);\n } catch (OutOfMemoryError e) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\", e);\n throw e;\n } catch (NullPointerException e) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\", e);\n throw e;\n }\n if (bmpRotated == null) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\");\n throw new IOException(\"String_Node_Str\");\n }\n return bmpRotated.compress(fmt, quality, outStream);\n}\n"
"private void handleCmd(String cmd, int[] cmdBytes, int cmdLen) throws IOException, EmulationException {\n System.out.println(\"String_Node_Str\" + cmd);\n char c = cmd.charAt(0);\n switch(c) {\n case 'H':\n sendResponse(OK);\n break;\n case 'q':\n if (\"String_Node_Str\".equals(cmd)) {\n sendResponse(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(cmd)) {\n sendResponse(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(cmd)) {\n sendResponse(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(cmd)) {\n sendResponse(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(cmd)) {\n sendResponse(OK);\n } else {\n System.out.println(\"String_Node_Str\");\n sendResponse(\"String_Node_Str\");\n }\n break;\n case '?':\n sendResponse(\"String_Node_Str\");\n break;\n case 'g':\n readRegisters();\n break;\n case 'k':\n sendResponse(OK);\n break;\n case 'm':\n case 'M':\n case 'X':\n String cmd2 = cmd.substring(1);\n String[] wdata = cmd2.split(\"String_Node_Str\");\n int cPos = cmd.indexOf(':');\n if (cPos > 0) {\n cmd2 = wdata[0];\n }\n String[] parts = cmd2.split(\"String_Node_Str\");\n int addr = Integer.decode(\"String_Node_Str\" + parts[0]);\n int len = Integer.decode(\"String_Node_Str\" + parts[1]);\n String data = \"String_Node_Str\";\n if (c == 'm') {\n System.out.println(\"String_Node_Str\" + addr + \"String_Node_Str\" + len);\n for (int i = 0; i < len; i++) {\n data += Utils.hex8(cpu.memory[addr++] & 0xff);\n }\n sendResponse(data);\n } else {\n System.out.println(\"String_Node_Str\" + addr + \"String_Node_Str\" + len + \"String_Node_Str\" + ((wdata.length > 1) ? wdata[1] : \"String_Node_Str\"));\n cPos++;\n for (int i = 0; i < len; i++) {\n System.out.println(\"String_Node_Str\" + cmdBytes[cPos] + \"String_Node_Str\" + addr + \"String_Node_Str\" + cPos);\n cpu.write(addr++, cmdBytes[cPos++], MSP430Constants.MODE_BYTE);\n }\n sendResponse(OK);\n }\n break;\n case 'C':\n sendResponse(\"String_Node_Str\");\n break;\n default:\n System.out.println(\"String_Node_Str\");\n sendResponse(\"String_Node_Str\");\n }\n}\n"
"public static int getNextGroupIndex(List groups, int currentDimensionIndex, int currentLevelIndex) {\n int currentGroup = -1;\n for (int i = 0; i < groups.size(); i++) {\n EdgeGroup gp = groups.get(i);\n if (gp.dimensionIndex == currentDimensionIndex && gp.levelIndex == currentLevelIndex) {\n currentGroup = i;\n break;\n }\n }\n if (currentGroup >= 0 && currentGroup < groups.size() - 1) {\n return currentGroup + 1;\n }\n return -1;\n}\n"
"public static int deletePostsWithTag(String tagName) {\n if (TextUtils.isEmpty(tagName)) {\n return 0;\n int numDeleted = ReaderDatabase.getWritableDb().delete(\"String_Node_Str\", \"String_Node_Str\", new String[] { tagName });\n if (numDeleted > 0)\n ReaderDatabase.getWritableDb().delete(\"String_Node_Str\", \"String_Node_Str\", null);\n return numDeleted;\n}\n"
"public IComplexNDArray vectorAlongDimension(int index, int dimension) {\n return (IComplexNDArray) super.vectorAlongDimension(index, dimension);\n}\n"
"public void loadWarps(Configuration config, Map<String, Warp> target) {\n ConfigurationSection warpSection = config.getConfigurationSection(WARPS_LIST_KEY);\n if (warpSection != null) {\n Set<String> keys = warpSection.getKeys(false);\n if (keys != null) {\n for (String key : keys) {\n ConfigurationSection section = config.getConfigurationSection(WARPS_LIST_KEY + \"String_Node_Str\" + key);\n Warp warp = new Warp(this.plugin, key, section);\n target.put(warp.getName(), warp);\n }\n }\n }\n}\n"
"public void testAttachDetachOrder() {\n HasWidgetsTester.testAll(new Tree(), new Adder());\n}\n"
"private IComputedColumn getComputedColumnInstance(Context cx, int interval, IGroupDefinition src, String expr, String groupName, IQuery.GroupSpec dest, int dataType) throws DataException {\n if (dest.getInterval() != IGroupDefinition.NO_INTERVAL) {\n return new GroupComputedColumn(groupName, expr, QueryExecutorUtil.getTempComputedColumnType(interval), GroupCalculatorFactory.getGroupCalculator(src.getInterval(), src.getIntervalStart(), src.getIntervalRange(), dataType, session.getEngineContext().getLocale()));\n } else {\n return new ComputedColumn(groupName, expr, dataType);\n }\n}\n"
"public UnprocessedChangeEvents changed(PropertyChangeEvent[] events) {\n jmsService = serverConfig.getExtensionByType(JmsService.class);\n List<UnprocessedChangeEvent> unprocessedEvents = new ArrayList<UnprocessedChangeEvent>();\n _logger.log(Level.FINE, \"String_Node_Str\");\n Domain domain = Globals.get(Domain.class);\n String jmsProviderPort = null;\n ServerContext serverContext = Globals.get(ServerContext.class);\n Server thisServer = domain.getServerNamed(serverContext.getInstanceName());\n {\n }\n for (int i = 0; i < events.length; i++) {\n PropertyChangeEvent event = events[i];\n String eventName = event.getPropertyName();\n Object oldValue = event.getOldValue();\n Object newValue = event.getNewValue();\n if (event.getSource().toString().indexOf(\"String_Node_Str\") != -1) {\n UnprocessedChangeEvent uchangeEvent = new UnprocessedChangeEvent(event, \"String_Node_Str\");\n unprocessedEvents.add(uchangeEvent);\n } else if (event.getSource().toString().indexOf(\"String_Node_Str\") != -1) {\n UnprocessedChangeEvent uchangeEvent = new UnprocessedChangeEvent(event, \"String_Node_Str\");\n unprocessedEvents.add(uchangeEvent);\n }\n _logger.log(Level.FINE, \"String_Node_Str\" + eventName + oldValue + newValue);\n if (oldValue != null && oldValue.equals(newValue)) {\n _logger.log(Level.FINE, \"String_Node_Str\" + eventName + \"String_Node_Str\" + oldValue);\n continue;\n }\n if (\"String_Node_Str\".equals(newValue)) {\n PropertyChangeEvent nextevent = events[i + 1];\n jmsProviderPort = (String) nextevent.getNewValue();\n }\n if (event.getSource() instanceof JmsService) {\n if (eventName.equals(ServerTags.MASTER_BROKER)) {\n String oldMB = oldValue != null ? oldValue.toString() : null;\n String newMB = newValue != null ? newValue.toString() : null;\n _logger.log(Level.FINE, \"String_Node_Str\" + event.getSource() + \"String_Node_Str\" + eventName + \"String_Node_Str\" + oldMB + \"String_Node_Str\" + newMB);\n if (newMB != null) {\n Server newMBServer = domain.getServerNamed(newMB);\n if (newMBServer != null) {\n Node node = domain.getNodeNamed(newMBServer.getNodeRef());\n String newMasterBrokerPort = JmsRaUtil.getJMSPropertyValue(newMBServer);\n if (newMasterBrokerPort == null)\n newMasterBrokerPort = getDefaultJmsHost(jmsService).getPort();\n String newMasterBrokerHost = node.getNodeHost();\n aresourceAdapter.setMasterBroker(newMasterBrokerHost + \"String_Node_Str\" + newMasterBrokerPort);\n }\n }\n }\n }\n if (eventName.equals(ServerTags.SERVER_REF)) {\n String oldServerRef = oldValue != null ? oldValue.toString() : null;\n String newServerRef = newValue != null ? newValue.toString() : null;\n if (oldServerRef != null && newServerRef == null && !thisServer.isDas()) {\n _logger.log(Level.FINE, \"String_Node_Str\" + event.getSource() + \"String_Node_Str\" + eventName + \"String_Node_Str\" + oldServerRef + \"String_Node_Str\" + null);\n String url = getBrokerList();\n aresourceAdapter.setClusterBrokerList(url);\n break;\n }\n }\n if (event.getSource() instanceof Server) {\n _logger.log(Level.FINE, \"String_Node_Str\" + event.getSource());\n Server changedServer = (Server) event.getSource();\n if (thisServer.isDas())\n return null;\n if (jmsProviderPort != null) {\n String nodeName = changedServer.getNodeRef();\n String nodeHost = null;\n if (nodeName != null)\n nodeHost = domain.getNodeNamed(nodeName).getNodeHost();\n String url = getBrokerList();\n url = url + \"String_Node_Str\" + nodeHost + \"String_Node_Str\" + jmsProviderPort;\n aresourceAdapter.setClusterBrokerList(url);\n break;\n }\n }\n }\n return unprocessedEvents.size() > 0 ? new UnprocessedChangeEvents(unprocessedEvents) : null;\n}\n"
"public boolean onTouch(View v, MotionEvent event) {\n float pos = event.getY();\n if (event.getAction() == 0)\n lastYPos = pos;\n if (event.getAction() > 1) {\n if (((lastYPos - pos) > 2.0f) || ((pos - lastYPos) > 2.0f))\n scrollDetected = true;\n }\n lastYPos = pos;\n if (event.getAction() == 1 && !scrollDetected && isFullScreenEditing) {\n Layout layout = ((TextView) v).getLayout();\n int x = (int) event.getX();\n int y = (int) event.getY();\n if (layout != null) {\n int line = layout.getLineForVertical(y);\n int charPosition = layout.getOffsetForHorizontal(line, x);\n final Spannable s = content.getText();\n WPImageSpan[] click_spans = s.getSpans(charPosition, charPosition, WPImageSpan.class);\n if (click_spans.length != 0) {\n final WPImageSpan span = click_spans[0];\n if (!span.isVideo()) {\n LayoutInflater factory = LayoutInflater.from(EditPost.this);\n final View alertView = factory.inflate(R.layout.alert_image_options, null);\n final TextView imageWidthText = (TextView) alertView.findViewById(R.id.imageWidthText);\n final EditText titleText = (EditText) alertView.findViewById(R.id.title);\n final EditText caption = (EditText) alertView.findViewById(R.id.caption);\n final SeekBar seekBar = (SeekBar) alertView.findViewById(R.id.imageWidth);\n final Spinner alignmentSpinner = (Spinner) alertView.findViewById(R.id.alignment_spinner);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(EditPost.this, R.array.alignment_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n alignmentSpinner.setAdapter(adapter);\n imageWidthText.setText(String.valueOf(span.getWidth()) + \"String_Node_Str\");\n seekBar.setProgress(span.getWidth());\n titleText.setText(span.getTitle());\n caption.setText(span.getCaption());\n alignmentSpinner.setSelection(span.getHorizontalAlignment(), true);\n seekBar.setMax(100);\n if (span.getWidth() != 0)\n seekBar.setProgress(span.getWidth() / 10);\n seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n public void onStartTrackingTouch(SeekBar seekBar) {\n }\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (progress == 0)\n progress = 1;\n imageWidthText.setText(progress * 10 + \"String_Node_Str\");\n }\n });\n AlertDialog ad = new AlertDialog.Builder(EditPost.this).setTitle(\"String_Node_Str\").setView(alertView).setPositiveButton(\"String_Node_Str\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n span.setTitle(titleText.getText().toString());\n span.setHorizontalAlignment(alignmentSpinner.getSelectedItemPosition());\n span.setWidth(seekBar.getProgress() * 10);\n span.setCaption(caption.getText().toString());\n }\n }).setNegativeButton(\"String_Node_Str\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n }\n }).create();\n ad.show();\n scrollDetected = false;\n return true;\n }\n } else {\n content.setMovementMethod(ArrowKeyMovementMethod.getInstance());\n content.setSelection(content.getSelectionStart());\n }\n }\n } else if (event.getAction() == 1) {\n scrollDetected = false;\n }\n return false;\n}\n"
"private void initialize() {\n URI itemURI = URI.createFileURI(file.getAbsolutePath());\n URI propURI = itemURI.trimFileExtension().appendFileExtension(FactoriesUtil.PROPERTIES_EXTENSION);\n elementEName = EElementEName.findENameByExt(itemURI.fileExtension());\n try {\n if (property == null) {\n Resource resource = resourceSet.getResource(propURI, true);\n property = (Property) EcoreUtil.getObjectByType(resource.getContents(), PropertiesPackage.eINSTANCE.getProperty());\n }\n if (element == null && !isJRXml()) {\n Resource resource = resourceSet.getResource(itemURI, true);\n EList<EObject> contents = resource.getContents();\n if (contents != null && !contents.isEmpty()) {\n if (property.getItem() instanceof ConnectionItem) {\n element = ((ConnectionItem) property.getItem()).getConnection();\n } else {\n EObject object = contents.get(0);\n element = (ModelElement) object;\n }\n }\n }\n computeDependencies();\n } catch (Exception e) {\n if (!isSQL()) {\n log.error(\"String_Node_Str\" + getName() + \"String_Node_Str\" + e.getMessage(), e);\n }\n }\n}\n"
"public void acceptSearchMatch(SearchMatch match) throws CoreException {\n result.add((IMethod) match.getElement());\n}\n"
"public void testTableJoinQuery4() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n ExecutionPlanRuntime executionPlanRuntime = siddhiManager.createExecutionPlanRuntime(streams + query);\n executionPlanRuntime.addCallback(\"String_Node_Str\", new QueryCallback() {\n public void receive(long timeStamp, Event[] inEvents, Event[] removeEvents) {\n EventPrinter.print(timeStamp, inEvents, removeEvents);\n if (inEvents != null) {\n for (Event event : inEvents) {\n inEventCount++;\n switch(inEventCount) {\n case 1:\n Assert.assertArrayEquals(new Object[] { \"String_Node_Str\", \"String_Node_Str\", 75.6f }, event.getData());\n break;\n default:\n Assert.assertSame(1, inEventCount);\n }\n }\n eventArrived = true;\n }\n if (removeEvents != null) {\n removeEventCount = removeEventCount + removeEvents.length;\n }\n eventArrived = true;\n }\n });\n InputHandler stockStream = executionPlanRuntime.getInputHandler(\"String_Node_Str\");\n InputHandler checkStockStream = executionPlanRuntime.getInputHandler(\"String_Node_Str\");\n executionPlanRuntime.start();\n stockStream.send(new Object[] { \"String_Node_Str\", 55.6f, 100l });\n stockStream.send(new Object[] { \"String_Node_Str\", 75.6f, 100l });\n checkStockStream.send(new Object[] { \"String_Node_Str\" });\n Thread.sleep(1500);\n Assert.assertEquals(\"String_Node_Str\", 1, inEventCount);\n Assert.assertEquals(\"String_Node_Str\", 0, removeEventCount);\n Assert.assertEquals(\"String_Node_Str\", true, eventArrived);\n executionPlanRuntime.shutdown();\n}\n"
"private void validateKeystore(File keystoreFile) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException {\n Assert.assertTrue(\"String_Node_Str\", keystoreFile.exists());\n InputStream is = null;\n try {\n is = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(\"String_Node_Str\");\n String password = \"String_Node_Str\";\n keystore.load(is, password.toCharArray());\n Certificate certificate = keystore.getCertificate(keystore.aliases().nextElement());\n Assert.assertNotNull(certificate);\n if (certificate instanceof X509Certificate) {\n X509Certificate x509cert = (X509Certificate) certificate;\n Principal principal = x509cert.getSubjectDN();\n String subjectDn = principal.getName();\n Assert.assertEquals(\"String_Node_Str\", \"String_Node_Str\", subjectDn);\n principal = x509cert.getIssuerDN();\n String issuerDn = principal.getName();\n Assert.assertEquals(\"String_Node_Str\", \"String_Node_Str\" + InetAddress.getLocalHost().getHostName(), issuerDn);\n }\n } finally {\n if (null != is) {\n is.close();\n }\n }\n}\n"
"private FhirFormat checkIsResource(String path) {\n String ext = Utilities.getFileExtension(path);\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.XML;\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.JSON;\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.TURTLE;\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.TEXT;\n try {\n Manager.parse(context, new FileInputStream(path), FhirFormat.XML);\n return FhirFormat.XML;\n } catch (Exception e) {\n }\n if (!Utilities.existsInList(ext, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")) {\n try {\n Manager.parse(context, new FileInputStream(path), FhirFormat.JSON);\n return FhirFormat.JSON;\n } catch (Exception e) {\n }\n }\n if (!Utilities.existsInList(ext, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")) {\n try {\n Manager.parse(context, new FileInputStream(path), FhirFormat.TURTLE);\n return FhirFormat.TURTLE;\n } catch (Exception e) {\n }\n }\n if (!Utilities.existsInList(ext, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")) {\n try {\n new StructureMapUtilities(context, null, null).parse(TextFile.fileToString(path));\n return FhirFormat.TEXT;\n } catch (Exception e) {\n }\n }\n return null;\n}\n"
"public Object visitDateTimeLiteral(cqlParser.DateTimeLiteralContext ctx) {\n String input = ctx.getText();\n if (input.startsWith(\"String_Node_Str\")) {\n input = input.substring(1);\n }\n Pattern dateTimePattern = Pattern.compile(\"String_Node_Str\");\n Matcher matcher = dateTimePattern.matcher(input);\n if (matcher.matches()) {\n try {\n GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance();\n DateTime result = of.createDateTime();\n int year = Integer.parseInt(matcher.group(1));\n int month = -1;\n int day = -1;\n int hour = -1;\n int minute = -1;\n int second = -1;\n int millisecond = -1;\n result.setYear(libraryBuilder.createLiteral(year));\n if (matcher.group(3) != null) {\n month = Integer.parseInt(matcher.group(3));\n if (month < 0 || month > 12) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setMonth(libraryBuilder.createLiteral(month));\n }\n if (matcher.group(5) != null) {\n day = Integer.parseInt(matcher.group(5));\n int maxDay = 31;\n switch(month) {\n case 2:\n maxDay = calendar.isLeapYear(year) ? 29 : 28;\n break;\n case 4:\n case 6:\n case 9:\n case 11:\n maxDay = 30;\n break;\n default:\n break;\n }\n if (day < 0 || day > maxDay) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setDay(libraryBuilder.createLiteral(day));\n }\n if (matcher.group(10) != null) {\n hour = Integer.parseInt(matcher.group(10));\n if (hour < 0 || hour > 24) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setHour(libraryBuilder.createLiteral(hour));\n }\n if (matcher.group(12) != null) {\n minute = Integer.parseInt(matcher.group(12));\n if (minute < 0 || minute >= 60 || (hour == 24 && minute > 0)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setMinute(libraryBuilder.createLiteral(minute));\n }\n if (matcher.group(14) != null) {\n second = Integer.parseInt(matcher.group(14));\n if (second < 0 || second >= 60 || (hour == 24 && second > 0)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setSecond(libraryBuilder.createLiteral(second));\n }\n if (matcher.group(16) != null) {\n millisecond = Integer.parseInt(matcher.group(16));\n if (millisecond < 0 || (hour == 24 && millisecond > 0)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setMillisecond(libraryBuilder.createLiteral(millisecond));\n }\n if ((matcher.group(7) != null && matcher.group(7).equals(\"String_Node_Str\")) || ((matcher.group(18) != null) && matcher.group(18).equals(\"String_Node_Str\"))) {\n result.setTimezoneOffset(libraryBuilder.createLiteral(0.0));\n }\n if (matcher.group(20) != null) {\n int offsetPolarity = matcher.group(20).equals(\"String_Node_Str\") ? 1 : -1;\n if (matcher.group(23) != null) {\n int hourOffset = Integer.parseInt(matcher.group(21));\n if (hourOffset < 0 || hourOffset > 14) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n int minuteOffset = Integer.parseInt(matcher.group(23));\n if (minuteOffset < 0 || minuteOffset >= 60 || (hourOffset == 14 && minuteOffset > 0)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setTimezoneOffset(libraryBuilder.createLiteral((double) (hourOffset + (minuteOffset / 60)) * offsetPolarity));\n } else {\n if (matcher.group(21) != null) {\n int hourOffset = Integer.parseInt(matcher.group(21));\n if (hourOffset < 0 || hourOffset > 14) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n result.setTimezoneOffset(libraryBuilder.createLiteral((double) (hourOffset * offsetPolarity)));\n }\n }\n }\n result.setResultType(libraryBuilder.resolveTypeName(\"String_Node_Str\", \"String_Node_Str\"));\n return result;\n } catch (RuntimeException e) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input), e);\n }\n } else {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", input));\n }\n}\n"
"private void paintSpecial(Graphics g, String text, int x, int y, boolean firstBox, boolean rtl, boolean isMirrored) {\n Image image = null;\n GC gc = null;\n if (rtl || isMirrored) {\n TextLayout textLayout = BidiUIUtils.INSTANCE.getTextLayout(SWT.LEFT_TO_RIGHT);\n textLayout.setFont(g.getFont());\n if (firstBox && specialPREFIX.length() != 0 && text.indexOf(specialPREFIX) == 0)\n textLayout.setText(text.substring(specialPREFIX.length()));\n else\n textLayout.setText(text);\n textLayout.setStyle(new TextStyle(g.getFont(), g.getForegroundColor(), TRANSPARENT_COLOR), 0, text.length());\n RGB rgbData = g.getForegroundColor().getRGB();\n if (ColorConstants.black.getRGB().equals(rgbData)) {\n rgbData = ColorConstants.buttonDarker.getRGB();\n }\n PaletteData paletteData = new PaletteData(new RGB[] { TRANSPARENT_COLOR.getRGB(), rgbData });\n ImageData imageData = new ImageData(textLayout.getBounds().width + 1, textLayout.getBounds().height, 4, paletteData);\n imageData.transparentPixel = paletteData.getPixel(TRANSPARENT_COLOR.getRGB());\n image = new Image(Display.getCurrent(), imageData);\n gc = new GC(image, rtl ? SWT.RIGHT_TO_LEFT : SWT.LEFT_TO_RIGHT);\n textLayout.draw(gc, 0, 0);\n }\n if (firstBox && specialPREFIX.length() != 0 && text.indexOf(specialPREFIX) == 0) {\n int with = FigureUtilities.getTextWidth(specialPREFIX, g.getFont());\n Color c = g.getForegroundColor();\n g.setForegroundColor(ReportColorConstants.greyFillColor);\n g.drawString(specialPREFIX, x, y);\n g.setForegroundColor(c);\n if (image != null)\n g.drawImage(image, x + with, y);\n else\n g.drawString(text.substring(specialPREFIX.length()), x + with, y);\n } else {\n if (image != null)\n g.drawImage(image, x, y);\n else\n g.drawString(text, x, y);\n }\n if (gc != null)\n gc.dispose();\n if (image != null)\n image.dispose();\n}\n"
"private void drawBack() {\n String back = isHovered ? \"String_Node_Str\" : \"String_Node_Str\";\n Renderer.text(ChatLib.addColor(back), 20 + width - Renderer.getStringWidth(\"String_Node_Str\") - 2, infoHeight - scrolled).setShadow(true).draw();\n}\n"
"private void testTwoParty(String algName, int size, int privateValueSize, KeyPairGenerator keyGen) throws Exception {\n KeyPair aKeyPair = keyGen.generateKeyPair();\n KeyAgreement aKeyAgree = KeyAgreement.getInstance(algName, \"String_Node_Str\");\n checkKeySize(privateValueSize, aKeyPair);\n aKeyAgree.init(aKeyPair.getPrivate());\n KeyPair bKeyPair = keyGen.generateKeyPair();\n KeyAgreement bKeyAgree = KeyAgreement.getInstance(algName, \"String_Node_Str\");\n checkKeySize(privateValueSize, bKeyPair);\n bKeyAgree.init(bKeyPair.getPrivate());\n aKeyAgree.doPhase(bKeyPair.getPublic(), true);\n bKeyAgree.doPhase(aKeyPair.getPublic(), true);\n byte[] aSecret = aKeyAgree.generateSecret();\n byte[] bSecret = bKeyAgree.generateSecret();\n if (!Arrays.areEqual(aSecret, bSecret)) {\n fail(size + \"String_Node_Str\");\n }\n}\n"
"protected void onFailure(final RequestFailureType type, final Throwable t, final StatusLine status, final String readableMessage) {\n final String title, message;\n switch(type) {\n case CANCELLED:\n title = context.getString(R.string.error_cancelled_title);\n message = context.getString(R.string.error_cancelled_message);\n break;\n case PARSE:\n title = context.getString(R.string.error_parse_title);\n message = context.getString(R.string.error_parse_message);\n break;\n case CACHE_MISS:\n title = context.getString(R.string.error_postlist_cache_title);\n message = context.getString(R.string.error_postlist_cache_message);\n break;\n case STORAGE:\n title = context.getString(R.string.error_unexpected_storage_title);\n message = context.getString(R.string.error_unexpected_storage_message);\n break;\n case CONNECTION:\n title = context.getString(R.string.error_connection_title);\n message = context.getString(R.string.error_connection_message);\n break;\n case REQUEST:\n if (status != null) {\n switch(status.getStatusCode()) {\n case 403:\n title = context.getString(R.string.error_403_title);\n message = context.getString(R.string.error_403_message);\n break;\n case 404:\n title = context.getString(R.string.error_404_title);\n message = context.getString(R.string.error_404_message);\n break;\n case 502:\n case 503:\n case 504:\n title = context.getString(R.string.error_postlist_redditdown_title);\n message = context.getString(R.string.error_postlist_redditdown_message);\n break;\n default:\n title = context.getString(R.string.error_unknown_api_title);\n message = context.getString(R.string.error_unknown_api_message);\n break;\n }\n } else {\n title = context.getString(R.string.error_unknown_api_title);\n message = context.getString(R.string.error_unknown_api_message);\n }\n break;\n default:\n title = context.getString(R.string.error_unknown_title);\n message = context.getString(R.string.error_unknown_message);\n break;\n }\n final RRError error = new RRError(title, message, t, status);\n notificationHandler.sendMessage(General.handlerMessage(displayType, error));\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Card sourceCard = game.getCard(source.getSourceId());\n if (controller != null && sourceCard != null) {\n Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game, source));\n if (targetEnchantment != null) {\n controller.moveCardToExileWithInfo(targetEnchantment, null, \"String_Node_Str\", source.getSourceId(), game, Zone.BATTLEFIELD);\n Card cardInExile = game.getExile().getCard(targetEnchantment.getId(), game);\n if (cardInExile != null && cardInExile.hasSubtype(\"String_Node_Str\")) {\n Player enchantmentController = game.getPlayer(targetEnchantment.getControllerId());\n return super.applySearchAndExile(game, source, targetEnchantment.getName(), enchantmentController.getId());\n }\n }\n }\n return false;\n}\n"
"public void importFile(IPlatformImportBundle bundle) throws PlatformImportException, DomainIdNullException, DomainAlreadyExistsException, DomainStorageException, IOException {\n RepositoryFileImportBundle importBundle = (RepositoryFileImportBundle) bundle;\n ZipInputStream zipImportStream = new ZipInputStream(bundle.getInputStream());\n SolutionRepositoryImportSource importSource = new SolutionRepositoryImportSource(zipImportStream);\n LocaleFilesProcessor localeFilesProcessor = new LocaleFilesProcessor();\n setOverwriteFile(bundle.overwriteInRepository());\n IPlatformImporter importer = PentahoSystem.get(IPlatformImporter.class);\n cachedImports = new HashMap<String, RepositoryFileImportBundle.Builder>();\n ExportManifest manifest = getImportSession().getManifest();\n String manifestVersion = null;\n if (manifest != null) {\n manifestVersion = manifest.getManifestInformation().getManifestVersion();\n }\n if (manifest != null) {\n Map<String, List<String>> roleToUserMap = importUsers(manifest.getUserExports());\n importRoles(manifest.getRoleExports(), roleToUserMap);\n List<ExportManifestMetadata> metadataList = manifest.getMetadataList();\n for (ExportManifestMetadata exportManifestMetadata : metadataList) {\n String domainId = exportManifestMetadata.getDomainId();\n boolean overWriteInRepository = isOverwriteFile();\n RepositoryFileImportBundle.Builder bundleBuilder = new RepositoryFileImportBundle.Builder().charSet(\"String_Node_Str\").hidden(false).preserveDsw(bundle.isPreserveDsw()).overwriteFile(overWriteInRepository).mime(\"String_Node_Str\").withParam(\"String_Node_Str\", domainId);\n cachedImports.put(exportManifestMetadata.getFile(), bundleBuilder);\n }\n List<ExportManifestMondrian> mondrianList = manifest.getMondrianList();\n for (ExportManifestMondrian exportManifestMondrian : mondrianList) {\n String catName = exportManifestMondrian.getCatalogName();\n Parameters parametersMap = exportManifestMondrian.getParameters();\n StringBuilder parametersStr = new StringBuilder();\n for (String s : parametersMap.keySet()) {\n parametersStr.append(s).append(\"String_Node_Str\").append(parametersMap.get(s)).append(sep);\n }\n RepositoryFileImportBundle.Builder bundleBuilder = new RepositoryFileImportBundle.Builder().charSet(\"String_Node_Str\").hidden(false).name(catName).overwriteFile(isOverwriteFile()).mime(\"String_Node_Str\").withParam(\"String_Node_Str\", parametersStr.toString()).withParam(\"String_Node_Str\", catName);\n String xmlaEnabled = \"String_Node_Str\" + exportManifestMondrian.isXmlaEnabled();\n bundleBuilder.withParam(\"String_Node_Str\", xmlaEnabled);\n cachedImports.put(exportManifestMondrian.getFile(), bundleBuilder);\n String annotationsFile = exportManifestMondrian.getAnnotationsFile();\n if (annotationsFile != null) {\n RepositoryFileImportBundle.Builder annotationsBundle = new RepositoryFileImportBundle.Builder().path(MondrianCatalogRepositoryHelper.ETC_MONDRIAN_JCR_FOLDER + RepositoryFile.SEPARATOR + catName).name(\"String_Node_Str\").charSet(\"String_Node_Str\").overwriteFile(isOverwriteFile()).mime(\"String_Node_Str\").hidden(false).withParam(\"String_Node_Str\", catName);\n cachedImports.put(annotationsFile, annotationsBundle);\n }\n }\n }\n importMetaStore(manifest, bundle.overwriteInRepository());\n for (IRepositoryFileBundle file : importSource.getFiles()) {\n String fileName = file.getFile().getName();\n String actualFilePath = file.getPath();\n if (manifestVersion != null) {\n fileName = ExportFileNameEncoder.decodeZipFileName(fileName);\n actualFilePath = ExportFileNameEncoder.decodeZipFileName(actualFilePath);\n }\n String repositoryFilePath = RepositoryFilenameUtils.concat(PentahoPlatformImporter.computeBundlePath(actualFilePath), fileName);\n if (this.cachedImports.containsKey(repositoryFilePath)) {\n byte[] bytes = IOUtils.toByteArray(file.getInputStream());\n RepositoryFileImportBundle.Builder builder = cachedImports.get(repositoryFilePath);\n builder.input(new ByteArrayInputStream(bytes));\n importer.importFile(build(builder));\n continue;\n }\n RepositoryFileImportBundle.Builder bundleBuilder = new RepositoryFileImportBundle.Builder();\n InputStream bundleInputStream = null;\n String decodedFilePath = file.getPath();\n RepositoryFile decodedFile = file.getFile();\n if (manifestVersion != null) {\n decodedFile = new RepositoryFile.Builder(decodedFile).path(decodedFilePath).name(fileName).title(fileName).build();\n decodedFilePath = ExportFileNameEncoder.decodeZipFileName(file.getPath());\n }\n if (file.getFile().isFolder()) {\n bundleBuilder.mime(\"String_Node_Str\");\n bundleBuilder.file(decodedFile);\n fileName = repositoryFilePath;\n repositoryFilePath = importBundle.getPath();\n } else {\n byte[] bytes = IOUtils.toByteArray(file.getInputStream());\n bundleInputStream = new ByteArrayInputStream(bytes);\n if (localeFilesProcessor.isLocaleFile(file, importBundle.getPath(), bytes)) {\n log.trace(\"String_Node_Str\" + repositoryFilePath + \"String_Node_Str\");\n continue;\n }\n bundleBuilder.input(bundleInputStream);\n bundleBuilder.mime(solutionHelper.getMime(fileName));\n String filePath = (decodedFilePath.equals(\"String_Node_Str\") || decodedFilePath.equals(\"String_Node_Str\")) ? \"String_Node_Str\" : decodedFilePath;\n repositoryFilePath = RepositoryFilenameUtils.concat(importBundle.getPath(), filePath);\n }\n bundleBuilder.name(fileName);\n bundleBuilder.path(repositoryFilePath);\n String sourcePath;\n if (decodedFilePath.startsWith(\"String_Node_Str\")) {\n sourcePath = RepositoryFilenameUtils.concat(decodedFilePath.substring(1), fileName);\n } else {\n if (file.getFile().isFolder()) {\n sourcePath = fileName;\n } else {\n sourcePath = RepositoryFilenameUtils.concat(decodedFilePath, fileName);\n }\n }\n if (manifest != null && manifest.getExportManifestEntity(sourcePath) == null && file.getFile().isFolder()) {\n continue;\n }\n getImportSession().setCurrentManifestKey(sourcePath);\n bundleBuilder.charSet(bundle.getCharset());\n bundleBuilder.overwriteFile(bundle.overwriteInRepository());\n bundleBuilder.hidden(isFileHidden(bundle, sourcePath));\n bundleBuilder.applyAclSettings(bundle.isApplyAclSettings());\n bundleBuilder.retainOwnership(bundle.isRetainOwnership());\n bundleBuilder.overwriteAclSettings(bundle.isOverwriteAclSettings());\n bundleBuilder.acl(getImportSession().processAclForFile(sourcePath));\n IPlatformImportBundle platformImportBundle = build(bundleBuilder);\n importer.importFile(platformImportBundle);\n if (bundleInputStream != null) {\n bundleInputStream.close();\n bundleInputStream = null;\n }\n }\n if (manifest != null) {\n importSchedules(manifest.getScheduleList());\n List<org.pentaho.database.model.DatabaseConnection> datasourceList = manifest.getDatasourceList();\n if (datasourceList != null) {\n IDatasourceMgmtService datasourceMgmtSvc = PentahoSystem.get(IDatasourceMgmtService.class);\n for (org.pentaho.database.model.DatabaseConnection databaseConnection : datasourceList) {\n if (databaseConnection.getDatabaseType() == null) {\n log.warn(\"String_Node_Str\" + databaseConnection.getName() + \"String_Node_Str\");\n continue;\n }\n try {\n IDatabaseConnection existingDBConnection = datasourceMgmtSvc.getDatasourceByName(databaseConnection.getName());\n if (existingDBConnection != null && existingDBConnection.getName() != null) {\n if (isOverwriteFile()) {\n databaseConnection.setId(existingDBConnection.getId());\n datasourceMgmtSvc.updateDatasourceByName(databaseConnection.getName(), databaseConnection);\n }\n } else {\n datasourceMgmtSvc.createDatasource(databaseConnection);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n localeFilesProcessor.processLocaleFiles(importer);\n}\n"
"public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n logger.info(\"String_Node_Str\");\n try {\n KeyStore keyStore = CommonUtil.loadAppMgrKeyStore(Constants.APPMANAGER_KEYSTORE_PATH);\n if (keyStore == null) {\n logger.error(\"String_Node_Str\");\n return;\n }\n MessageDigest md5 = MessageDigest.getInstance(\"String_Node_Str\");\n String md5Fingerprint = \"String_Node_Str\";\n for (int i = 0; i < chain.length; i++) {\n X509Certificate cert = chain[i];\n md5.update(cert.getEncoded());\n md5Fingerprint = CommonUtil.toHexString(md5.digest());\n logger.debug(\"String_Node_Str\" + i + \"String_Node_Str\" + cert);\n if (keyStore.getCertificate(md5Fingerprint) != null) {\n if (i == chain.length - 1) {\n return;\n } else {\n continue;\n }\n }\n logger.error(\"String_Node_Str\" + md5Fingerprint);\n logger.error(\"String_Node_Str\" + cert);\n throw SoftwareManagementPluginException.UNKNOWN_CERTIFICATE(cert.getSubjectDN().toString());\n }\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"String_Node_Str\" + e.getMessage(), e);\n } catch (KeyStoreException e) {\n logger.error(\"String_Node_Str\" + e.getMessage(), e);\n }\n}\n"
"private <DataType> void updateCollection(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, Graph database, Property p, Object toUpdate, Vertex rootVertex, CascadeType cascade, Map<String, Object> objectsBeingAccessed) {\n Collection<?> value = (Collection<?>) p.get(toUpdate);\n if (value != null) {\n Iterable<Edge> existingEdges = service.getStrategy().getOutEdgesFor(rootVertex, p);\n Collection<Vertex> allVertices = createCollectionVerticesFor(service, value, cascade, objectsBeingAccessed);\n Map<Vertex, Edge> allEdges = new HashMap<Vertex, Edge>();\n Set<Edge> edgesToRemove = new HashSet<Edge>();\n for (Edge e : existingEdges) {\n Vertex inVertex = e.getInVertex();\n if (newVertices.contains(inVertex)) {\n newVertices.remove(inVertex);\n } else {\n oldVertices.put(inVertex, e);\n }\n }\n for (Map.Entry<Vertex, Edge> entry : oldVertices.entrySet()) {\n database.removeEdge(entry.getValue());\n }\n int order = 0;\n for (Vertex newVertex : newVertices) {\n Edge createdEdge = service.getDriver().createEdgeFor(rootVertex, newVertex, p);\n createdEdge.setProperty(Properties.collection_index.name(), order++);\n }\n }\n}\n"
"public void bindView(final View view, final Context context, final Cursor cursor) {\n final ExchangeRate exchangeRate = ExchangeRatesProvider.getExchangeRate(cursor);\n final BigDecimal bdRate = new BigDecimal(exchangeRate.rate);\n final boolean isDefaultCurrency = exchangeRate.currencyCode.equals(defaultCurrency);\n view.setBackgroundResource(isDefaultCurrency ? R.color.bg_less_bright : R.color.bg_bright);\n final View defaultView = view.findViewById(R.id.exchange_rate_row_default);\n defaultView.setVisibility(isDefaultCurrency ? View.VISIBLE : View.INVISIBLE);\n final TextView currencyCodeView = (TextView) view.findViewById(R.id.exchange_rate_row_currency_code);\n currencyCodeView.setText(exchangeRate.currencyCode);\n final CurrencyAmountView rateView = (CurrencyAmountView) view.findViewById(R.id.exchange_rate_row_rate);\n rateView.setCurrencyCode(null);\n rateView.setPrecision(Constants.LOCAL_PRECISION);\n rateView.setAmount(WalletUtils.localValue(Utils.COIN, exchangeRate.rate));\n final CurrencyAmountView walletView = (CurrencyAmountView) view.findViewById(R.id.exchange_rate_row_balance);\n walletView.setCurrencyCode(null);\n walletView.setAmount(WalletUtils.localValue(balance, bdRate));\n walletView.setStrikeThru(Constants.TEST);\n walletView.setTextColor(getResources().getColor(R.color.fg_less_significant));\n}\n"
"private void processBlock(Block m) throws IOException {\n log.debug(\"String_Node_Str\", m.getHashAsString());\n try {\n synchronized (pendingGetBlockFutures) {\n for (int i = 0; i < pendingGetBlockFutures.size(); i++) {\n GetDataFuture<Block> f = pendingGetBlockFutures.get(i);\n if (f.getItem().hash.equals(m.getHash())) {\n f.setResult(m);\n pendingGetBlockFutures.remove(i);\n return;\n }\n }\n }\n if (blockChain.add(m)) {\n invokeOnBlocksDownloaded(m);\n } else {\n blockChainDownload(m.getHash());\n }\n } catch (VerificationException e) {\n log.warn(\"String_Node_Str\", e);\n } catch (ScriptException e) {\n log.warn(\"String_Node_Str\", e);\n }\n}\n"
"protected Composite getTogglesControl(Composite parent) {\n if (toggles == null && providers != null) {\n composite = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.horizontalSpacing = 7;\n layout.numColumns = providers.length;\n composite.setLayout(layout);\n composite.setLayoutData(new GridData());\n toggles = new TogglePropertyDescriptor[providers.length];\n for (int i = 0; i < providers.length; i++) {\n toggle = DescriptorToolkit.createTogglePropertyDescriptor();\n toggles[i] = toggle;\n toggle.setDescriptorProvider(providers[i]);\n toggle.createControl(composite);\n GridData gd = new GridData();\n toggle.getControl().setLayoutData(gd);\n toggle.getControl().addDisposeListener(new DisposeListener() {\n public void widgetDisposed(DisposeEvent event) {\n toggle = null;\n boolean flag = true;\n for (int i = 0; i < providers.length; i++) {\n if (toggles[i] != null) {\n flag = false;\n break;\n }\n }\n if (flag)\n toggles = null;\n }\n });\n }\n } else {\n checkParent(composite, parent);\n }\n return composite;\n}\n"
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n if (\"String_Node_Str\".equalsIgnoreCase(ddlCreateProp)) {\n ddlCreate = true;\n }\n String ddlDropProp = System.getProperty(DATABASE_DDL_DROP_KEY, DEFAULT_DATABASE_DDL_DROP);\n if (\"String_Node_Str\".equalsIgnoreCase(ddlDropProp)) {\n ddlDrop = true;\n }\n String ddlDebugProp = System.getProperty(DATABASE_DDL_DEBUG_KEY, DEFAULT_DATABASE_DDL_DEBUG);\n if (\"String_Node_Str\".equalsIgnoreCase(ddlDebugProp)) {\n ddlDebug = true;\n }\n if (ddlCreate) {\n runDdl(conn, CREATE_WEAKLY_TYPED_REF_CURSOR_TABLE, ddlDebug);\n try {\n Statement stmt = conn.createStatement();\n for (int i = 0; i < POPULATE_WEAKLY_TYPED_REF_CURSOR_TABLE.length; i++) {\n stmt.addBatch(POPULATE_WEAKLY_TYPED_REF_CURSOR_TABLE[i]);\n }\n stmt.executeBatch();\n } catch (SQLException e) {\n }\n runDdl(conn, CREATE_WEAKLY_TYPED_REF_CURSOR_TEST_PACKAGE, ddlDebug);\n runDdl(conn, CREATE_WEAKLY_TYPED_REF_CURSOR_TEST_PACKAGE_BODY, ddlDebug);\n }\n username = System.getProperty(DATABASE_USERNAME_KEY, DEFAULT_DATABASE_USERNAME);\n DBWS_BUILDER_XML_USERNAME = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n DBWS_BUILDER_XML_PASSWORD = \"String_Node_Str\";\n DBWS_BUILDER_XML_URL = \"String_Node_Str\";\n DBWS_BUILDER_XML_DRIVER = \"String_Node_Str\";\n DBWS_BUILDER_XML_PLATFORM = \"String_Node_Str\";\n DBWS_BUILDER_XML_MAIN = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + WEAKLY_TYPED_REF_CURSOR_TEST_PACKAGE + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + WEAKLY_TYPED_REF_CURSOR_TEST_PACKAGE + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n builder = new DBWSBuilder();\n DBWSTestSuite.setUp(\"String_Node_Str\");\n}\n"
"public TmfEvent clone() {\n TmfEvent clone = null;\n try {\n clone = (TmfEvent) super.clone();\n clone.fParentTrace = fParentTrace;\n clone.fEventRank = fEventRank;\n clone.fOriginalTimestamp = fOriginalTimestamp != null ? fOriginalTimestamp.clone() : null;\n clone.fEffectiveTimestamp = fEffectiveTimestamp != null ? fEffectiveTimestamp.clone() : null;\n clone.fSource = fSource != null ? fSource.clone() : null;\n clone.fType = fType != null ? fType.clone() : null;\n clone.fReference = fReference != null ? fReference.clone() : null;\n clone.fContent = fContent != null ? fContent.clone() : null;\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n return clone;\n}\n"
"protected void writeImage(DataOutputStream out, ImageItemDesign image) throws IOException {\n writeReportItem(out, image);\n IOUtil.writeShort(out, FIELD_IMAGE_SOURCE);\n int imageSource = image.getImageSource();\n IOUtil.writeInt(out, imageSource);\n switch(imageSource) {\n case ImageItemDesign.IMAGE_NAME:\n {\n String imageName = image.getImageName();\n DesignElementHandle handle = image.getHandle();\n if (handle instanceof ImageHandle) {\n String designImageName = image.getImageName();\n if (imageName != null && imageName.equals(designImageName)) {\n imageName = null;\n }\n }\n IOUtil.writeString(out, imageName);\n }\n break;\n case ImageItemDesign.IMAGE_FILE:\n IOUtil.writeString(out, image.getImageUri());\n break;\n case ImageItemDesign.IMAGE_URI:\n IOUtil.writeString(out, image.getImageUri());\n break;\n case ImageItemDesign.IMAGE_EXPRESSION:\n IOUtil.writeString(out, image.getImageExpression());\n IOUtil.writeString(out, image.getImageFormat());\n break;\n }\n String altText = image.getAltText();\n String altTextKey = image.getAltTextKey();\n String helpText = image.getHelpText();\n String helpTextKey = image.getHelpTextKey();\n if (altText != null || altTextKey != null) {\n IOUtil.writeShort(out, FIELD_ALT_TEXT);\n IOUtil.writeString(out, altTextKey);\n IOUtil.writeString(out, altText);\n }\n if (helpText != null || helpText != null) {\n IOUtil.writeShort(out, FIELD_HELP_TEXT);\n IOUtil.writeString(out, helpTextKey);\n IOUtil.writeString(out, helpText);\n }\n}\n"
"public void preinitialize() throws IllegalActionException {\n _firingsPerScheduleIteration = 1;\n _firingsSoFar = 0;\n super.preinitialize();\n FSMActor ctrl = getController();\n State initialState = ctrl.getInitialState();\n if (_debug_info) {\n System.out.println(getName() + \"String_Node_Str\" + \"String_Node_Str\" + initialState.getName());\n }\n TypedCompositeActor curRefinement = (TypedCompositeActor) (initialState.getRefinement())[0];\n if (curRefinement != null) {\n Director refinementDir = curRefinement.getDirector();\n if (_debug_info) {\n System.out.println(getName() + \"String_Node_Str\" + \"String_Node_Str\" + curRefinement.getFullName());\n System.out.println(getName() + \"String_Node_Str\" + \"String_Node_Str\" + refinementDir.getFullName());\n }\n if (refinementDir instanceof HDFFSMDirector) {\n refinementDir.preinitialize();\n } else if (refinementDir instanceof SDFDirector) {\n Scheduler refinmentSched = ((StaticSchedulingDirector) refinementDir).getScheduler();\n refinmentSched.setValid(true);\n refinmentSched.getSchedule();\n } else if (refinementDir instanceof HDFDirector) {\n Scheduler refinmentSched = ((StaticSchedulingDirector) refinementDir).getScheduler();\n refinmentSched.setValid(false);\n ((HDFDirector) refinementDir).getSchedule();\n if (_debug_info)\n System.out.println(getName() + \"String_Node_Str\" + refinementDir.getFullName());\n if (_debug_info) {\n CompositeActor container = (CompositeActor) getContainer();\n System.out.println(getName() + \"String_Node_Str\" + ((Nameable) container).getName());\n }\n } else {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\");\n }\n _updateInputTokenConsumptionRates(curRefinement);\n _updateOutputTokenProductionRates(curRefinement);\n if (_debug_info)\n System.out.println(getName() + \"String_Node_Str\" + \"String_Node_Str\");\n CompositeActor hdfActor = _getHighestFSM();\n Director director = hdfActor.getExecutiveDirector();\n ((StaticSchedulingDirector) director).invalidateSchedule();\n } else {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n}\n"
"private boolean needCachedDataSetToEnhancePerformance(TabularCubeHandle cubeHandle) {\n DataSetHandle dsHandle = cubeHandle.getDataSet();\n List dimHandles = cubeHandle.getContents(CubeHandle.DIMENSIONS_PROP);\n for (int i = 0; i < dimHandles.size(); i++) {\n DimensionHandle dimHandle = (DimensionHandle) dimHandles.get(i);\n List hiers = dimHandle.getContents(DimensionHandle.HIERARCHIES_PROP);\n TabularHierarchyHandle hierHandle = (TabularHierarchyHandle) hiers.get(0);\n if (hierHandle.getDataSet() != null)\n set.add(hierHandle.getDataSet());\n }\n return true;\n}\n"
"public CellEditor[] getCellEditors() {\n if (cellEditor != null) {\n return cellEditor;\n }\n ComboBoxCellEditor comboCell = new ComboBoxCellEditor(viewer.getTable(), new String[0], SWT.READ_ONLY);\n ComboBoxCellEditor positionCell = new ComboBoxCellEditor(viewer.getTable(), positionItems, SWT.READ_ONLY);\n cellEditor = new CellEditor[] { null, null, comboCell, positionCell };\n return cellEditor;\n}\n"
"public Map<String, Object> value() {\n if (row.isComplete()) {\n OsStats.Cgroup cgroup = row.extendedOsStats().osStats().getCgroup();\n if (cgroup != null) {\n return super.value();\n }\n return super.value();\n }\n return null;\n}\n"
"public void read(byte[] holder) throws ProtocolException {\n int readTotal = 0;\n try {\n while (readTotal < holder.length) {\n int count = input.read(holder, readTotal, holder.length - readTotal);\n if (count == -1) {\n throw new ProtocolException(\"String_Node_Str\");\n }\n readTotal += count;\n }\n nextSeen = false;\n nextChar = 0;\n } catch (IOException e) {\n throw new ProtocolException(\"String_Node_Str\");\n }\n}\n"
"public void addGlobal(String name, Arg val) {\n String tclName = prefixVar(name);\n globInit.add(Turbine.makeTCLGlobal(tclName));\n String typePrefix;\n Expression expr;\n Command setCmd;\n switch(val.getKind()) {\n case INTVAL:\n typePrefix = Turbine.INTEGER_TYPENAME;\n expr = new LiteralInt(val.getIntLit());\n setCmd = Turbine.integerSet(tclVal, expr);\n break;\n case FLOATVAL:\n typePrefix = Turbine.FLOAT_TYPENAME;\n expr = new LiteralFloat(val.getFloatLit());\n setCmd = Turbine.floatSet(tclName, expr);\n break;\n case STRINGVAL:\n typePrefix = Turbine.STRING_TYPENAME;\n expr = new TclString(val.getStringLit(), true);\n setCmd = Turbine.stringSet(tclName, expr);\n break;\n case BOOLVAL:\n typePrefix = Turbine.INTEGER_TYPENAME;\n expr = new LiteralInt(val.getBoolLit() ? 1 : 0);\n setCmd = Turbine.integerSet(tclName, expr);\n break;\n default:\n throw new STCRuntimeError(\"String_Node_Str\" + val.getKind());\n }\n globInit.add(Turbine.allocate(tclName, typePrefix, false));\n globInit.add(setCmd);\n}\n"
"public boolean delete() throws Exception {\n if (isPhysicalDelete()) {\n LogicalDeleteFileHandle.deleteElement(file);\n IPath filePath = file.getFullPath();\n filePath = filePath.removeFileExtension().addFileExtension(FactoriesUtil.PROPERTIES_EXTENSION);\n IFile propFile = ResourceManager.getRoot().getFile(filePath);\n if (propFile.exists()) {\n propFile.delete(true, null);\n }\n if (file.exists() && isPhysicalDelete()) {\n file.delete(true, null);\n }\n } else {\n LogicalDeleteFileHandle.deleteLogical(file);\n }\n return super.delete();\n}\n"
"protected boolean canProceed() {\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n List<String> class1Files = class1LayoutData.getSelectedFiles();\n List<String> class2Files = class2LayoutData.getSelectedFiles();\n boolean noProperFiles = true;\n if (class1Files.size() < 1) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n for (String string : class1Files) {\n if (new File(string).isFile() && !string.contains(\"String_Node_Str\")) {\n noProperFiles = false;\n break;\n }\n }\n if (noProperFiles) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n noProperFiles = true;\n if (class2Files.size() < 1) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n for (String string : class2Files) {\n if (new File(string).isFile() && !string.contains(\"String_Node_Str\")) {\n noProperFiles = false;\n break;\n }\n }\n if (noProperFiles) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n if (class1Name.getText().trim().length() == 0) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n if (class2Name.getText().trim().length() == 0) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n if (class2Name.getText().trim().equals(class1Name.getText().trim())) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n String kValueText = kValue.getText();\n if (kValueText.trim().length() == 0) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n int value = 0;\n try {\n value = Integer.parseInt(kValueText);\n } catch (NumberFormatException e) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n } catch (NullPointerException e) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n if (value < 0) {\n form.getMessageManager().addMessage(\"String_Node_Str\", \"String_Node_Str\", null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n String message = OutputPathValidation.getInstance().validateOutputDirectory(layoutData.getOutputLabel().getText(), \"String_Node_Str\");\n if (message != null) {\n message = layoutData.getOutputLabel().getText() + \"String_Node_Str\" + message;\n form.getMessageManager().addMessage(\"String_Node_Str\", message, null, IMessageProvider.ERROR);\n return false;\n }\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n return true;\n}\n"
"private void writeError429Response(HttpServletResponse response) throws IOException {\n ResponseEntity<ErrorMessage> responseEntity = RestResponseUtil.createResponse429();\n FilterHelper.writeResponse(responseEntity, response);\n}\n"
"public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + battery.getDebugString());\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + frameBox.min());\n left.add(\"String_Node_Str\" + frameBox.max());\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + miningBox.min());\n left.add(\"String_Node_Str\" + miningBox.max());\n BoxIterator iter = boxIterator;\n left.add(\"String_Node_Str\" + (iter == null ? \"String_Node_Str\" : iter.getCurrent()));\n Task task = currentTask;\n if (task != null) {\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + currentTask.getClass().getName());\n left.add(\"String_Node_Str\" + LocaleUtil.localizeMj(currentTask.getPower()));\n left.add(\"String_Node_Str\" + LocaleUtil.localizeMj(currentTask.getTarget()));\n } else {\n left.add(\"String_Node_Str\");\n }\n left.add(\"String_Node_Str\" + drillPos);\n}\n"
"private Node tryOptimizeSwitch(Node n) {\n Preconditions.checkState(n.isSwitch());\n Node defaultCase = tryOptimizeDefaultCase(n);\n if (defaultCase == null) {\n Node cond = n.getFirstChild(), prev = null, next = null, cur;\n for (cur = cond.getNext(); cur != null; cur = next) {\n next = cur.getNext();\n if (!mayHaveSideEffects(cur.getFirstChild()) && isUselessCase(cur, prev)) {\n removeCase(n, cur);\n } else {\n prev = cur;\n }\n }\n if (NodeUtil.isLiteralValue(cond, false)) {\n Node caseLabel;\n TernaryValue caseMatches = TernaryValue.TRUE;\n for (cur = cond.getNext(); cur != null; cur = next) {\n next = cur.getNext();\n caseLabel = cur.getFirstChild();\n caseMatches = PeepholeFoldConstants.evaluateComparison(Token.SHEQ, cond, caseLabel);\n if (caseMatches == TernaryValue.TRUE) {\n break;\n } else if (caseMatches == TernaryValue.UNKNOWN) {\n break;\n } else {\n removeCase(n, cur);\n }\n }\n if (caseMatches != TernaryValue.UNKNOWN) {\n Node block, lastStm;\n while (cur != null) {\n block = cur.getLastChild();\n lastStm = block.getLastChild();\n cur = cur.getNext();\n if (lastStm != null && lastStm.isBreak() && !lastStm.hasChildren()) {\n block.removeChild(lastStm);\n reportCodeChange();\n break;\n }\n }\n for (; cur != null; cur = next) {\n next = cur.getNext();\n removeCase(n, cur);\n }\n cur = cond.getNext();\n if (cur != null && cur.getNext() == null) {\n block = cur.getLastChild();\n if (!(NodeUtil.containsType(block, Token.BREAK, NodeUtil.MATCH_NOT_FUNCTION))) {\n cur.removeChild(block);\n n.getParent().replaceChild(n, block);\n reportCodeChange();\n return block;\n }\n }\n }\n }\n }\n if (n.hasOneChild()) {\n Node condition = n.removeFirstChild();\n Node replacement = IR.exprResult(condition).srcref(n);\n n.getParent().replaceChild(n, replacement);\n reportCodeChange();\n return replacement;\n }\n return null;\n}\n"
"public static boolean hasTowny() {\n return townyPlugin != null && townyPlugin.isEnabled();\n}\n"
"public CollectionRegion buildCollectionRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException {\n return new HazelcastCollectionRegion(instance, regionName, properties, metadata);\n}\n"
"protected void customRun() throws InterruptedException {\n if (outRunnable.reconnection.get()) {\n Thread.sleep(10L);\n return;\n }\n Packet packet;\n try {\n Connection oldConnection = connection;\n connection = client.connectionManager.getConnection();\n if (restoredConnection(oldConnection, connection)) {\n if (outRunnable.sendReconnectCall(connection)) {\n logger.log(Level.FINEST, \"String_Node_Str\");\n if (oldConnection != null) {\n redoUnfinishedCalls(oldConnection);\n }\n }\n return;\n }\n if (connection == null) {\n outRunnable.clusterIsDown(oldConnection);\n Thread.sleep(10);\n } else {\n packet = reader.readPacket(connection);\n this.lastReceived = System.currentTimeMillis();\n Call call = callMap.remove(packet.getCallId());\n if (call != null) {\n call.received = System.nanoTime();\n call.setResponse(packet);\n } else {\n if (packet.getOperation().equals(ClusterOperation.EVENT)) {\n client.getListenerManager().enqueue(packet);\n }\n if (packet.getCallId() != -1) {\n logger.log(Level.SEVERE, \"String_Node_Str\" + packet.getOperation() + \"String_Node_Str\" + packet.getCallId());\n }\n }\n }\n } catch (Throwable e) {\n logger.log(Level.FINE, \"String_Node_Str\" + connection + \"String_Node_Str\" + e.toString(), e);\n outRunnable.clusterIsDown(connection);\n }\n}\n"
"public void updateTranslation(double[] state) {\n mTangoOdomPublisher.setPosePoint(state[5], -state[4], state[6]);\n mTangoPosePublisher.setPoint(state[5], -state[4], state[6]);\n mTangoTfPublisher.setTranslation(state[5], -state[4], state[6]);\n}\n"
"public int compare(Map.Entry<String, Float> o1, Map.Entry<String, Float> o2) {\n return o2.getValue().compareTo(o1.getValue());\n}\n"
"public static Slot newSlot(Item item) {\n if (item.isEmpty()) {\n return EMPTY;\n }\n return new Slot((short) item.getSubstance().getId(), (byte) item.getCount(), item.getDamage(), item.getMeta());\n}\n"
"private InstructorResultsQuestionTable buildQuestionTable(FeedbackQuestionAttributes question, List<FeedbackResponseAttributes> responses, ViewType statisticsViewType, String additionalInfoId, boolean isIncludeMissingResponses) {\n FeedbackQuestionDetails questionDetails = question.getQuestionDetails();\n String statisticsTable = questionDetails.getQuestionResultStatisticsHtml(responses, question, this, bundle, statisticsViewType.toString());\n List<InstructorResultsResponseRow> responseRows = isIncludeMissingResponses ? buildResponseRowsForQuestion(question, responses, statisticsViewType) : buildResponseRowsForQuestionWithoutMissingResponses(question, responses, statisticsViewType);\n boolean isCollapsible = true;\n List<ElementTag> columnTags = new ArrayList<ElementTag>();\n Map<String, Boolean> isSortable = new HashMap<String, Boolean>();\n switch(statisticsViewType) {\n case QUESTION:\n buildTableColumnHeaderForQuestionView(columnTags, isSortable);\n break;\n case GIVER_QUESTION_RECIPIENT:\n buildTableColumnHeaderForGiverQuestionRecipientView(columnTags, isSortable);\n isCollapsible = false;\n break;\n case RECIPIENT_QUESTION_GIVER:\n buildTableColumnHeaderForRecipientQuestionGiverView(columnTags, isSortable);\n isCollapsible = false;\n break;\n default:\n Assumption.fail(\"String_Node_Str\");\n }\n InstructorResultsQuestionTable questionTable = new InstructorResultsQuestionTable(this, responses, statisticsTable, responseRows, question, additionalInfoId, columnTags, isSortable);\n questionTable.setCollapsible(isCollapsible);\n questionTable.setShowResponseRows(true);\n questionTable.setColumns(columnTags);\n return questionTable;\n}\n"
"public void send(Invitation model, Locale locale, boolean sendBySigmah) throws EmailException, TemplateException, IOException {\n final ResourceBundle mailMessages = getResourceBundle(locale);\n SimpleEmail mail = new SimpleEmail();\n mail.addTo(model.getNewUser().getEmail(), model.getNewUser().getName());\n MessageFormat formatter = new MessageFormat(mailMessages.getString(\"String_Node_Str\"), locale);\n mail.setSubject(formatter.format(null));\n final Object[] messageArguments = { User.getUserCompleteName(model.getNewUser()), User.getUserCompleteName(model.getInvitingUser()), model.getInvitingUser().getEmail(), model.getHostUrl(), model.getNewUser().getEmail(), model.getNewUserPassword() };\n formatter = new MessageFormat(mailMessages.getString(\"String_Node_Str\"), locale);\n String messageSubject = formatter.format(messageArguments);\n mail.setMsg(messageSubject);\n sender.send(mail);\n}\n"
"public org.hl7.fhir.dstu2.model.InstantType convertInstant(org.hl7.fhir.dstu3.model.InstantType src) throws FHIRException {\n org.hl7.fhir.dstu2.model.InstantType tgt = new org.hl7.fhir.dstu2.model.InstantType(src.getValueAsString());\n copyElement(src, tgt);\n return tgt;\n}\n"
"protected void okPressed() {\n IProxyRepositoryFactory prf = CorePlugin.getDefault().getProxyRepositoryFactory();\n try {\n prf.saveProject(project);\n ShowStandardAction.getInstance().doRun();\n if (needCodeGen) {\n Job refreshTemplates = CorePlugin.getDefault().getCodeGeneratorService().refreshTemplates();\n refreshTemplates.addJobChangeListener(new JobChangeAdapter() {\n public void done(IJobChangeEvent event) {\n CorePlugin.getDefault().getLibrariesService().resetModulesNeeded();\n }\n } catch (Exception ex) {\n ExceptionHandler.process(ex);\n }\n }\n } catch (Exception ex) {\n ExceptionHandler.process(ex);\n }\n}\n"
"public boolean transferInputs(IOPort port) throws IllegalActionException {\n boolean result = false;\n for (int channelIndex = 0; channelIndex < port.getWidth(); channelIndex++) {\n try {\n if (port.isKnown(channelIndex)) {\n if (port.hasToken(channelIndex)) {\n Token t = port.get(channelIndex);\n if (_debugging) {\n _debug(getName(), \"String_Node_Str\" + port.getName());\n }\n PtidesDirector director = (PtidesDirector) _getEmbeddedPtidesDirector();\n Port associatedPort = ((MirrorPort) port).getAssociatedPort();\n if (associatedPort instanceof NetworkReceiverPort) {\n NetworkReceiverPort networkReceiverPort = (NetworkReceiverPort) associatedPort;\n if (!(t instanceof RecordToken) || ((RecordToken) t).labelSet().size() != 3) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n RecordToken record = (RecordToken) t;\n Time recordTimeStamp = new Time(director, ((DoubleToken) (record.get(PtidesNetworkType.timestamp))).doubleValue());\n int recordMicrostep = ((IntToken) (record.get(PtidesNetworkType.microstep))).intValue();\n Receiver[][] farReceivers = networkReceiverPort.deepGetReceivers();\n if (farReceivers.length > 0) {\n for (int i = 0; i < farReceivers[channelIndex].length; i++) {\n director.addInputEvent(new PtidesEvent(networkReceiverPort, channelIndex, recordTimeStamp, recordMicrostep, -1, (Token) record.get(PtidesNetworkType.payload), farReceivers[channelIndex][i]), PtidesDirector._getDoubleParameterValue(networkReceiverPort, \"String_Node_Str\"));\n }\n }\n } else if (associatedPort instanceof SensorPort) {\n SensorPort sensorPort = (SensorPort) associatedPort;\n Receiver[][] farReceivers = sensorPort.deepGetReceivers();\n if (farReceivers.length > 0) {\n for (int i = 0; i < farReceivers[channelIndex].length; i++) {\n director.addInputEvent(new PtidesEvent(sensorPort, channelIndex, director.getModelTime(), 1, -1, t, farReceivers[channelIndex][i]), PtidesDirector._getDoubleParameterValue(sensorPort, \"String_Node_Str\"));\n }\n }\n } else {\n ((MirrorPort) port).getAssociatedPort().sendInside(channelIndex, t);\n }\n result = true;\n }\n }\n } catch (NoTokenException ex) {\n throw new InternalErrorException(this, ex, null);\n }\n }\n return result;\n}\n"
"public Image getNodeIcon(Object model) {\n if (model instanceof DesignElementHandle && ((DesignElementHandle) model).getSemanticErrors().size() > 0) {\n return ReportPlatformUIImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);\n }\n if (OlapUtil.isFromLibrary(model))\n return UIHelper.getImage(BuilderConstancts.IMAGE_LINK_CUBE);\n else\n return UIHelper.getImage(BuilderConstancts.IMAGE_CUBE);\n}\n"
"public static String getPaletteMessage(Context context, String filename, ArrayList<PaletteSwatch> swatches) {\n StringBuilder message = new StringBuilder();\n message.append(\"String_Node_Str\");\n message.append(System.getProperty(\"String_Node_Str\"));\n if (!\"String_Node_Str\".equals(filename)) {\n message.append(\"String_Node_Str\");\n message.append(filename);\n message.append(System.getProperty(\"String_Node_Str\"));\n }\n for (PaletteSwatch swatch : swatches) {\n message.append(UPalette.getSwatchDescription(context, swatch.getType()));\n message.append(\"String_Node_Str\");\n message.append(\"String_Node_Str\");\n message.append(\"String_Node_Str\" + Integer.toHexString(swatch.getRgb()).toUpperCase());\n message.append(System.getProperty(\"String_Node_Str\"));\n }\n return message.toString();\n}\n"
"private void initControls() {\n buttonList.clear();\n buttonList.add(new GuiButton(1, guiLeft + xSize - 60 - 8, guiTop + 120, 60, 20, \"String_Node_Str\"));\n textArea = new GuiTextArea(fontRendererObj, guiLeft + 8, guiTop + 5, xSize - 16, ySize - 35, lineCount);\n textArea.setFocused(true);\n String[] data = textArea.getText();\n for (int i = 0; i < lineCount; i++) data[i] = helper.getString(\"String_Node_Str\" + i);\n}\n"
"public boolean seekIndex(long index) {\n this.prio.clear();\n long tempIndex = Long.MIN_VALUE;\n long tempTimestamp = Long.MIN_VALUE;\n try {\n for (StreamInputReader streamInputReader : this.streamInputReaders) {\n final long streamIndex = streamInputReader.seekIndex(index);\n tempIndex = Math.max(tempIndex, streamIndex);\n EventDefinition currentEvent = streamInputReader.getCurrentEvent();\n if (currentEvent == null) {\n streamInputReader.readNextEvent();\n currentEvent = streamInputReader.getCurrentEvent();\n }\n if (currentEvent != null) {\n tempTimestamp = Math.max(tempTimestamp, currentEvent.timestamp);\n } else {\n tempIndex = goToZero();\n }\n }\n } catch (CTFReaderException e) {\n for (StreamInputReader streamInputReader : this.streamInputReaders) {\n streamInputReader.seek(0);\n }\n tempIndex = 0;\n }\n for (StreamInputReader streamInputReader : this.streamInputReaders) {\n if (streamInputReader.getCurrentEvent() != null) {\n this.prio.add(streamInputReader);\n }\n }\n if (tempIndex == Long.MAX_VALUE) {\n tempIndex = 0;\n }\n long pos = tempIndex;\n if (index > tempIndex) {\n while ((prio.peek().getCurrentEvent().timestamp < tempTimestamp) && hasMoreEvents()) {\n this.advance();\n }\n for (pos = tempIndex; (pos < index) && hasMoreEvents(); pos++) {\n this.advance();\n }\n }\n this.fIndex = pos;\n return hasMoreEvents();\n}\n"
"boolean isVisibleLocked() {\n final boolean keyguardOn = mService.mPolicy.isKeyguardShowingOrOccluded();\n if (keyguardOn && !StackId.isAllowedOverLockscreen(mStackId)) {\n return ignoreVisibilityOnKeyguardShowing;\n }\n for (int i = mTasks.size() - 1; i >= 0; i--) {\n Task task = mTasks.get(i);\n for (int j = task.mAppTokens.size() - 1; j >= 0; j--) {\n if (!task.mAppTokens.get(j).hidden) {\n return true;\n }\n }\n }\n return false;\n}\n"
"public static GroupType getGroup(ServiceConfiguration configuration, String groupName, String effectiveUserId) throws Exception {\n GroupType retVal = null;\n boolean seenAllGroups = false;\n String groupMarker = null;\n while (!seenAllGroups && retVal == null) {\n ListGroupsType listGroupsType = MessageHelper.createMessage(ListGroupsType.class, effectiveUserId);\n if (groupMarker != null) {\n listGroupsType.setMarker(groupMarker);\n }\n ListGroupsResponseType listGroupsResponseType = AsyncRequests.<ListGroupsType, ListGroupsResponseType>sendSync(configuration, listGroupsType);\n if (Boolean.TRUE.equals(listGroupsResponseType.getListGroupsResult().getIsTruncated())) {\n groupMarker = listGroupsResponseType.getListGroupsResult().getMarker();\n } else {\n seenAllGroups = true;\n }\n if (listGroupsResponseType.getListGroupsResult().getGroups() != null && listGroupsResponseType.getListGroupsResult().getGroups().getMemberList() != null) {\n for (GroupType groupType : listGroupsResponseType.getListGroupsResult().getGroups().getMemberList()) {\n if (groupType.getGroupName().equals(groupName)) {\n retVal = groupType;\n break;\n }\n }\n }\n }\n return retVal;\n}\n"
"public String[] getDistinctValuesOrdered(int column, String[][] hierarchy) {\n interrupt.value = false;\n String[] list = getDistinctValues(column);\n String attribute = handle.getAttributeName(column);\n DataType<?> datatype = handle.getDataType(attribute);\n int level = handle.getGeneralization(attribute);\n progress.value = 20;\n if (hierarchy == null || level == 0) {\n sort(list, datatype);\n } else {\n final Map<String, Integer> order = new HashMap<String, Integer>();\n int max = 0;\n Set<String> baseSet = new HashSet<String>();\n DataType<?> baseType = handle.getBaseDataType(attribute);\n for (int i = 0; i < hierarchy.length; i++) {\n String element = hierarchy[i][0];\n checkInterrupt();\n if (baseType.isValid(element))\n baseSet.add(element);\n }\n String[] baseArray = baseSet.toArray(new String[baseSet.size()]);\n sort(baseArray, handle.getBaseDataType(attribute));\n Map<String, Integer> baseOrder = new HashMap<String, Integer>();\n for (int i = 0; i < baseArray.length; i++) {\n checkInterrupt();\n baseOrder.put(baseArray[i], i);\n }\n int lower = handle.isOptimized() ? 0 : level;\n int upper = handle.isOptimized() ? hierarchy[0].length : level + 1;\n for (int i = 0; i < hierarchy.length; i++) {\n checkInterrupt();\n for (int j = lower; j < upper; j++) {\n if (!order.containsKey(hierarchy[i][j])) {\n Integer position = baseOrder.get(hierarchy[i][0]);\n if (position != null) {\n order.put(hierarchy[i][j], position);\n max = Math.max(position, max) + 1;\n }\n }\n }\n }\n order.put(DataType.ANY_VALUE, max);\n sort(list, order);\n }\n progress.value = 40;\n return list;\n}\n"
"private void addPropertyParameters(final List<ElementParameter> listParam, final INode node, String formName, EComponentCategory category) {\n ComponentProperties props = node.getComponentProperties();\n Form form = props.getForm(formName);\n List<ElementParameter> parameters = ComponentsUtils.getParametersFromForm(node, category, props, form);\n props.setValueEvaluator(new ComponentContextPropertyValueEvaluator(node));\n ComponentService componentService = ComponentsUtils.getComponentService();\n for (ElementParameter parameter : parameters) {\n if (parameter instanceof GenericElementParameter) {\n GenericElementParameter genericElementParameter = (GenericElementParameter) parameter;\n genericElementParameter.setComponentService(componentService);\n }\n }\n listParam.addAll(parameters);\n}\n"
"public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {\n Script script = (Script) scriptEntry.getObject(\"String_Node_Str\");\n String step = (String) scriptEntry.getObject(\"String_Node_Str\");\n Duration duration = (Duration) scriptEntry.getObject(\"String_Node_Str\");\n String currentStep = InteractScriptHelper.getCurrentStep(scriptEntry.getPlayer(), script.getName());\n if (step == null) {\n if (aH.matchesInteger(currentStep)) {\n step = String.valueOf(aH.getIntegerFrom(currentStep) + 1);\n } else\n step = \"String_Node_Str\";\n }\n if (durations.containsKey(scriptEntry.getPlayer().getName() + \"String_Node_Str\" + script.getName()))\n try {\n denizen.getServer().getScheduler().cancelTask(durations.get(scriptEntry.getPlayer().getName() + \"String_Node_Str\" + script.getName()));\n } catch (Exception e) {\n }\n if (duration.getSeconds() > 0) {\n scriptEntry.addObject(\"String_Node_Str\", currentStep);\n scriptEntry.addObject(\"String_Node_Str\", new Duration(-1d));\n long delay = (long) (duration.getSeconds() * 20);\n dB.echoDebug(Messages.DEBUG_SETTING_DELAYED_TASK, \"String_Node_Str\" + script + \"String_Node_Str\");\n durations.put(scriptEntry.getPlayer().getName() + \"String_Node_Str\" + script.getName(), denizen.getServer().getScheduler().scheduleSyncDelayedTask(denizen, new Runnable2<String, ScriptEntry>(script.getName(), scriptEntry) {\n public void run(String script, ScriptEntry scriptEntry) {\n dB.log(Messages.DEBUG_RUNNING_DELAYED_TASK, \"String_Node_Str\" + script + \"String_Node_Str\");\n try {\n durations.remove(scriptEntry.getPlayer().getName() + \"String_Node_Str\" + script.toUpperCase());\n execute(scriptEntry);\n } catch (CommandExecutionException e) {\n dB.echoError(\"String_Node_Str\");\n if (dB.showStackTraces)\n e.printStackTrace();\n }\n }\n }, delay));\n }\n denizen.getSaves().set(\"String_Node_Str\" + scriptEntry.getPlayer().getName() + \"String_Node_Str\" + script.getName().toUpperCase() + \"String_Node_Str\" + \"String_Node_Str\", step);\n}\n"
"public boolean setCondensedKeys(CondenseType condenseType, KeyboardDimens keyboardDimens) {\n if (mKeyboardCondenseType.equals(condenseType))\n return false;\n final float condensingFactor;\n switch(condenseType) {\n case CompactToLeft:\n case CompactToRight:\n condensingFactor = mCondensingEdgeFactor;\n break;\n default:\n condensingFactor = mCondensingFullFactor;\n break;\n }\n if (!condenseType.equals(CondenseType.None) && condensingFactor > 0.97f)\n return false;\n final int halfHorizontalGap = (int) (keyboardDimens.getKeyHorizontalGap() / 2);\n List<Key> keys = mKeyboard.getKeys();\n if (mKeySizesMap == null)\n mKeySizesMap = new ArrayList<>(keys.size());\n List<KeySize> stashedKeySizes = mKeySizesMap;\n if (stashedKeySizes.size() > 0) {\n if (stashedKeySizes.size() != keys.size())\n throw new IllegalStateException(\"String_Node_Str\");\n for (int i = 0; i < stashedKeySizes.size(); i++) {\n Key k = keys.get(i);\n KeySize originalSize = mKeySizesMap.get(i);\n k.width = originalSize.width;\n k.height = originalSize.height;\n k.x = originalSize.x;\n k.y = originalSize.y;\n }\n }\n mKeySizesMap.clear();\n final int keyboardWidth = mKeyboard.getMinWidth();\n switch(condenseType) {\n case Split:\n splitKeys(keyboardWidth, keyboardWidth / 2, halfHorizontalGap, condensingFactor);\n break;\n case CompactToLeft:\n splitKeys(keyboardWidth, keyboardWidth, halfHorizontalGap, condensingFactor);\n break;\n case CompactToRight:\n splitKeys(keyboardWidth, 0, halfHorizontalGap, condensingFactor);\n break;\n case None:\n break;\n default:\n throw new IllegalArgumentException(\"String_Node_Str\" + condenseType);\n }\n mKeyboardCondenseType = condenseType;\n return true;\n}\n"
"public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n int optLength = afpChain.getOptLength();\n int alnPos = 0;\n Atom[] aln1 = new Atom[optLength];\n Atom[] aln2 = new Atom[optLength];\n int[] optLen = afpChain.getOptLen();\n int[][][] optAln = afpChain.getOptAln();\n int blockNum = afpChain.getBlockNum();\n for (int blk = 0; blk < blockNum; blk++) {\n for (int pos = 0; pos < optLen[blk]; pos++) {\n int res1 = optAln[blk][0][pos];\n int res2 = optAln[blk][1][pos];\n aln1[alnPos] = ca1[res1];\n aln2[alnPos] = ca2[res2];\n alnPos++;\n }\n }\n SVDSuperimposer svd = new SVDSuperimposer(aln1, aln2);\n Matrix matrix = svd.getRotation();\n Atom shift = svd.getTranslation();\n if (ca2.length > 0 && ca2[0].getGroup() != null && ca2[0].getGroup().getChain() != null && ca2[0].getGroup().getChain().getParent() != null) {\n Structure struct = ca2[0].getGroup().getChain().getParent();\n Calc.rotate(struct, matrix);\n Calc.shift(struct, shift);\n } else {\n for (Atom a : ca2) {\n Calc.rotate(a.getGroup(), matrix);\n Calc.shift(a.getGroup(), shift);\n }\n }\n double rmsd = svd.getRMS(ca1, ca2);\n double tm = svd.getTMScore(aln1, aln2, ca1.length, ca2.length);\n afpChain.setTotalRmsdOpt(rmsd);\n afpChain.setOptRmsd(null);\n afpChain.setBlockRmsd(null);\n}\n"
"public TestResult execute(String path, List<String> classesToExecute, int waitTime) {\n Process p = null;\n if (!ProjectConfiguration.validJDK())\n throw new IllegalArgumentException(\"String_Node_Str\");\n String javaPath = ConfigurationProperties.getProperty(\"String_Node_Str\");\n javaPath += File.separator + \"String_Node_Str\";\n String systemcp = System.getProperty(\"String_Node_Str\");\n path = systemcp + File.pathSeparator + path;\n List<String> cls = new ArrayList<>(classesToExecute);\n try {\n List<String> command = new ArrayList<String>();\n command.add(javaPath);\n command.add(\"String_Node_Str\");\n command.add(path);\n command.add(JUnitTestExecutor.class.getName());\n command.addAll(cls);\n ProcessBuilder pb = new ProcessBuilder(command.toArray(new String[command.size()]));\n pb.redirectOutput();\n pb.redirectErrorStream(true);\n long t_start = System.currentTimeMillis();\n p = pb.start();\n String cm2 = command.toString().replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n log.debug(\"String_Node_Str\" + cm2);\n Worker worker = new Worker(p);\n worker.start();\n worker.join(waitTime);\n long t_end = System.currentTimeMillis();\n int exitvalue = p.exitValue();\n TestResult tr = getTestResult(p);\n p.destroy();\n log.debug(\"String_Node_Str\" + ((t_end - t_start) / 1000) + \"String_Node_Str\");\n return tr;\n } catch (IllegalArgumentException | IOException | InterruptedException ex) {\n log.error(\"String_Node_Str\" + ex.getMessage());\n if (p != null)\n p.destroy();\n return null;\n }\n}\n"
"private void introduceAttribute(Attribute<?> sourceAttribute, Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {\n if (sourceAttribute.isDirty()) {\n throw new OseeArgumentException(\"String_Node_Str\", sourceAttribute);\n } else if (sourceAttribute.isInDb()) {\n Attribute<?> destinationAttribute = destinationArtifact.getAttributeById(sourceAttribute.getId(), true);\n if (destinationAttribute == null) {\n destinationArtifact.internalInitializeAttribute(sourceAttribute.getAttributeType(), sourceAttribute.getId(), sourceAttribute.getGammaId(), sourceAttribute.getModificationType(), sourceAttribute.getApplicabilityId(), true, sourceAttribute.getAttributeDataProvider().getData()).internalSetModType(sourceAttribute.getModificationType(), true, true);\n } else {\n destinationAttribute.introduce(sourceAttribute);\n }\n }\n}\n"
"public static ProgressStatusDTO readProgressStatus(JsonParser jp) throws IOException {\n ChildProgressStatusDTO child = readChildProgressStatus(jp);\n return child.getProgressStatus();\n}\n"
"public ContextMap<CallString, SymbolicAddressMap> initial(InstructionHandle stmt) {\n ContextMap<CallString, SymbolicAddressMap> retval = new ContextMap<CallString, SymbolicAddressMap>(new Context(), new HashMap<CallString, SymbolicAddressMap>());\n CallString l = CallString.EMPTY;\n SymbolicAddressMap init = new SymbolicAddressMap(bsFactory);\n int stackPtr = 0;\n if (!entryMethod.isStatic()) {\n init.putStack(stackPtr++, bsFactory.singleton(SymbolicAddress.rootAddress(\"String_Node_Str\")));\n }\n String[] args = entryMethod.getArgumentNames();\n for (int i = 0; i < args.length; i++) {\n Type ty = entryMethod.getArgumentType(i);\n if (ty instanceof ReferenceType) {\n init.putStack(stackPtr, bsFactory.singleton(SymbolicAddress.rootAddress(\"String_Node_Str\" + args[i])));\n }\n stackPtr += ty.getSize();\n }\n retval.put(initialCallString, init);\n return retval;\n}\n"
"private void buildSQLMaps() {\n sqlMaps = new HashMap<String, String>();\n if (null != paths)\n for (String path : paths) {\n if (null == path)\n continue;\n File f = Files.findFile(Strings.trim(path));\n if (f == null || (!f.exists())) {\n InputStream stream = ClassLoaderUtil.getStream(path);\n if (stream != null) {\n InputStreamReader reader = null;\n try {\n reader = new InputStreamReader(stream, \"String_Node_Str\");\n loadSQL(reader);\n } finally {\n Streams.safeClose(reader);\n Streams.safeClose(stream);\n }\n }\n } else {\n File[] files;\n if (f.isDirectory()) {\n files = f.listFiles(sqkFileFilter == null ? defaultSqkFileFilter : sqkFileFilter);\n } else\n files = Lang.array(f);\n try {\n reader = new InputStreamReader(stream);\n loadSQL(reader);\n } catch (IOException e) {\n Logs.getLog(getClass()).warnf(\"String_Node_Str\", e);\n } finally {\n Streams.safeClose(reader);\n Streams.safeClose(stream);\n }\n }\n }\n}\n"
"public void leavePlayer(String playername, boolean fullLeave) {\n if (!this.containsPlayer(playername)) {\n return;\n }\n this.players.remove(playername);\n MinigamesAPI.global_players.remove(playername);\n if (fullLeave) {\n return;\n }\n final Player p = Bukkit.getPlayer(playername);\n Util.clearInv(p);\n p.getInventory().setContents(pinv.get(playername));\n p.getInventory().setArmorContents(pinv_armor.get(playername));\n p.updateInventory();\n Util.teleportPlayerFixed(p, this.mainlobby);\n Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {\n public void run() {\n p.setFlying(false);\n if (!p.isOp()) {\n p.setAllowFlight(false);\n }\n }\n }, 5L);\n}\n"
"static int newObject(int cons) {\n int size = Native.rdMem(cons);\n if (Config.USE_SCOPES) {\n int ptr = allocationPointer;\n if (RtThreadImpl.initArea == null) {\n allocationPointer += size + HEADER_SIZE;\n } else {\n Memory sc = null;\n if (RtThreadImpl.mission) {\n Scheduler s = Scheduler.sched[RtThreadImpl.sys.cpuId];\n sc = s.ref[s.active].currentArea;\n } else {\n sc = RtThreadImpl.initArea;\n }\n if (sc.allocPtr + size + HEADER_SIZE > sc.endLocalPtr) {\n throw OOMError;\n }\n ptr = sc.allocPtr;\n sc.allocPtr += size + HEADER_SIZE;\n if (Config.ADD_REF_INFO) {\n ptr = ptr | (sc.level << 25);\n }\n Native.wrMem(sc.level, ptr + OFF_SCOPE_LEVEL);\n }\n Native.wrMem(ptr + HEADER_SIZE, ptr + OFF_PTR);\n Native.wrMem(cons + Const.CLASS_HEADR, ptr + OFF_MTAB_ALEN);\n Native.wrMem(0, ptr + OFF_TYPE);\n return ptr;\n }\n synchronized (mutex) {\n if (copyPtr + size >= allocPtr) {\n if (Config.USE_SCOPES) {\n throw OOMError;\n } else {\n gc_alloc();\n if (copyPtr + size >= allocPtr) {\n throw OOMError;\n }\n }\n }\n }\n synchronized (mutex) {\n if (freeList == 0) {\n if (Config.USE_SCOPES) {\n throw OOMError;\n } else {\n log(\"String_Node_Str\");\n gc_alloc();\n if (freeList == 0) {\n throw OOMError;\n }\n }\n }\n }\n int ref;\n synchronized (mutex) {\n allocPtr -= size;\n ref = freeList;\n freeList = Native.rdMem(ref + OFF_NEXT);\n Native.wrMem(useList, ref + OFF_NEXT);\n useList = ref;\n Native.wrMem(allocPtr, ref);\n Native.wrMem(toSpace, ref + OFF_SPACE);\n Native.wrMem(0, ref + OFF_GREY);\n Native.wrMem(IS_OBJ, ref + OFF_TYPE);\n Native.wrMem(cons + Const.CLASS_HEADR, ref + OFF_MTAB_ALEN);\n }\n return ref;\n}\n"
"public boolean acceptResource(String resource) {\n return defaultFilter.acceptResource(resource) || authorizerResources.contains(resource);\n}\n"
"public MutableContextData getMutableContextData() {\n final MutableContextData map = localMap.get();\n return map == null ? EMPTY_CONTEXT_DATA : map;\n}\n"
"public boolean marshal(MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller, MarshalContext marshalContext, XPathFragment rootFragment) {\n if ((null == marshalNodeValue) || isMarshalOnlyNodeValue) {\n if (marshalRecord.isWrapperAsCollectionName() && null != nonAttributeChildren && nonAttributeChildren.size() == 1) {\n XPathNode childXPathNode = nonAttributeChildren.get(0);\n NodeValue childXPathNodeUnmarshalNodeValue = childXPathNode.getUnmarshalNodeValue();\n if (childXPathNodeUnmarshalNodeValue != null && childXPathNodeUnmarshalNodeValue.isContainerValue()) {\n ContainerValue containerValue = (ContainerValue) childXPathNodeUnmarshalNodeValue;\n if (containerValue.isWrapperAllowedAsCollectionName()) {\n XPathNode wrapperXPathNode = new XPathNode();\n wrapperXPathNode.setXPathFragment(this.getXPathFragment());\n wrapperXPathNode.setMarshalNodeValue(childXPathNode.getMarshalNodeValue());\n return wrapperXPathNode.marshal(marshalRecord, object, session, namespaceResolver, marshaller, marshalContext, rootFragment);\n }\n }\n }\n marshalRecord.addGroupingElement(this);\n boolean hasValue = false;\n if (null != attributeChildren) {\n for (int x = 0, size = attributeChildren.size(); x < size; x++) {\n XPathNode xPathNode = attributeChildren.get(x);\n hasValue = xPathNode.marshal(marshalRecord, object, session, namespaceResolver, marshaller, ObjectMarshalContext.getInstance(), this.xPathFragment) || hasValue;\n }\n }\n if (anyAttributeNode != null) {\n hasValue = anyAttributeNode.marshal(marshalRecord, object, session, namespaceResolver, marshaller, ObjectMarshalContext.getInstance(), null) || hasValue;\n }\n if (null == nonAttributeChildren) {\n if (textNode != null) {\n hasValue = textNode.marshal(marshalRecord, object, session, namespaceResolver, marshaller, ObjectMarshalContext.getInstance(), null) || hasValue;\n }\n } else {\n for (int x = 0, size = marshalContext.getNonAttributeChildrenSize(this); x < size; x++) {\n XPathNode xPathNode = (XPathNode) marshalContext.getNonAttributeChild(x, this);\n MarshalContext childMarshalContext = marshalContext.getMarshalContext(x);\n hasValue = xPathNode.marshal(marshalRecord, object, session, namespaceResolver, marshaller, childMarshalContext, this.xPathFragment) || hasValue;\n }\n }\n if (hasValue) {\n marshalRecord.endElement(xPathFragment, namespaceResolver);\n } else {\n marshalRecord.removeGroupingElement(this);\n }\n return hasValue;\n } else {\n if (marshalNodeValue.isMappingNodeValue()) {\n Mapping mapping = ((MappingNodeValue) marshalNodeValue).getMapping();\n CoreAttributeGroup currentGroup = marshalRecord.getCurrentAttributeGroup();\n if (!(currentGroup.containsAttributeInternal(mapping.getAttributeName()))) {\n return false;\n }\n }\n return marshalContext.marshal(marshalNodeValue, xPathFragment, marshalRecord, object, session, namespaceResolver, rootFragment);\n }\n}\n"
"public BoundedSet<SymbolicAddress> getTopOfStack() {\n if (this.isTop())\n return bsFactory.top();\n return map.get(new Location(topOfStack));\n}\n"
"public static int sendBuffersCount(Config cfg) {\n return cfg.getIntegerValue(SEND_BUFFERS_COUNT, 16);\n}\n"
"public void mouseDown(MouseEvent e) {\n if (table.getMenu() != null) {\n table.getMenu().setVisible(false);\n }\n ExecutionLanguage currentEngine = analysis.getParameters().getExecutionLanguage();\n if (e.button == 3) {\n StructuredSelection selection = (StructuredSelection) tbViewer.getSelection();\n final ChartDataEntity dataEntity = (ChartDataEntity) selection.getFirstElement();\n final Indicator indicator = dataEntity != null ? dataEntity.getIndicator() : null;\n if (indicator != null && dataEntity != null) {\n Menu menu = new Menu(table.getShell(), SWT.POP_UP);\n table.setMenu(menu);\n if (ExecutionLanguage.JAVA != currentEngine) {\n MenuItemEntity[] itemEntities = ChartTableMenuGenerator.generate(explorer, analysis, dataEntity);\n for (final MenuItemEntity itemEntity : itemEntities) {\n MenuItem item = new MenuItem(menu, SWT.PUSH);\n item.setText(itemEntity.getLabel());\n item.setImage(itemEntity.getIcon());\n item.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n DataManager connection = analysis.getContext().getConnection();\n TdDataProvider tdDataProvider = SwitchHelpers.TDDATAPROVIDER_SWITCH.doSwitch(connection);\n String query = itemEntity.getQuery();\n String editorName = indicator.getName();\n CorePlugin.getDefault().runInDQViewer(tdDataProvider, query, editorName);\n }\n });\n if (isPatternFrequencyIndicator(indicator)) {\n MenuItem itemCreatePatt = new MenuItem(menu, SWT.PUSH);\n itemCreatePatt.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n itemCreatePatt.setImage(ImageLib.getImage(ImageLib.PATTERN_REG));\n itemCreatePatt.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n DbmsLanguage language = DbmsLanguageFactory.createDbmsLanguage(analysis);\n PatternTransformer pattTransformer = new PatternTransformer(language);\n createPattern(analysis, itemEntity, pattTransformer);\n }\n });\n }\n }\n if (PluginChecker.isTDCPLoaded()) {\n final IDatabaseJobService service = (IDatabaseJobService) GlobalServiceRegister.getDefault().getService(IJobService.class);\n if (service != null) {\n service.setIndicator(indicator);\n service.setAnalysis(analysis);\n MenuItem item = null;\n if (isDUDIndicator(indicator)) {\n item = new MenuItem(menu, SWT.PUSH);\n item.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n } else if (isPatternMatchingIndicator(indicator)) {\n item = new MenuItem(menu, SWT.PUSH);\n item.setText(\"String_Node_Str\");\n }\n if (item != null) {\n item.setImage(ImageLib.getImage(ImageLib.ICON_PROCESS));\n item.addSelectionListener(getAdapter(service));\n }\n }\n }\n } else if (isDatePatternFrequencyIndicator(indicator) && ExecutionLanguage.JAVA == currentEngine) {\n final DatePatternFreqIndicator dateIndicator = (DatePatternFreqIndicator) indicator;\n MenuItem itemCreatePatt = new MenuItem(menu, SWT.PUSH);\n itemCreatePatt.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n itemCreatePatt.setImage(ImageLib.getImage(ImageLib.PATTERN_REG));\n itemCreatePatt.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n DbmsLanguage language = DbmsLanguageFactory.createDbmsLanguage(analysis);\n IFolder folder = ResourceManager.getPatternRegexFolder();\n String model = dataEntity.getLabel();\n String regex = dateIndicator.getRegex(model);\n new CreatePatternAction(folder, ExpressionType.REGEXP, \"String_Node_Str\" + regex + \"String_Node_Str\", language.getDbmsName()).run();\n }\n });\n }\n menu.setVisible(true);\n }\n }\n}\n"
"private List getEdgeSort(int edgeType) {\n List l = this.defn.getSorts();\n List result = new ArrayList();\n for (int i = 0; i < l.size(); i++) {\n ICubeSortDefinition sort = (ICubeSortDefinition) l.get(i);\n if (this.defn.getEdge(edgeType) != null && sort.getTargetLevel() != null && this.defn.getEdge(edgeType).getDimensions().contains(sort.getTargetLevel().getHierarchy().getDimension())) {\n result.add(sort);\n }\n }\n Collections.sort(result, new Comparator() {\n public int compare(Object arg0, Object arg1) {\n int level1 = ((ICubeSortDefinition) arg0).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition) arg0).getTargetLevel());\n int level2 = ((ICubeSortDefinition) arg1).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition) arg1).getTargetLevel());\n if (level1 == level2)\n return 0;\n else if (level1 < level2)\n return -1;\n else\n return 1;\n }\n });\n return result;\n}\n"
"public void execute(long t) {\n if (DEBUG) {\n System.out.println(getName() + \"String_Node_Str\");\n if (packetListener != null) {\n int len = memory[RAM_TXFIFO];\n int[] data = new int[len];\n System.arraycopy(memory, RAM_TXFIFO + 1, data, 0, len);\n packetListener.transmissionEnded(data);\n }\n}\n"
"public List<Atom[]> getAtomArrays() {\n if (atomArrays == null)\n ;\n return atomArrays;\n}\n"
"public static void writeTo(final byte[] data, int offset, int length, final ByteBufferDestination destination) {\n int chunk = 0;\n synchronized (destination) {\n ByteBuffer buffer = destination.getByteBuffer();\n do {\n if (length > buffer.remaining()) {\n buffer = destination.drain(buffer);\n }\n chunk = Math.min(length, buffer.remaining());\n buffer.put(data, offset, chunk);\n offset += chunk;\n length -= chunk;\n } while (length > 0);\n }\n}\n"
"public void createFieldEditors() {\n _setDefault();\n Composite parent = getFieldEditorParent();\n DirectoryFieldEditor directoryFieldEditor = new DirectoryFieldEditor(PreferenceConstants.PTII, \"String_Node_Str\", getFieldEditorParent()) {\n\n protected void fireValueChanged(String property, Object oldValue, Object newValue) {\n if (property == VALUE && isValid()) {\n String PTII = getStringValue();\n IPreferenceStore store = EclipsePlugin.getDefault().getPreferenceStore();\n File sourceList = new File(PTII + \"String_Node_Str\");\n if (sourceList.exists())\n store.setValue(PreferenceConstants.BACKTRACK_SOURCE_LIST, sourceList.getPath());\n }\n super.fireValueChanged(property, oldValue, newValue);\n }\n });\n Label space = new Label(parent, 0);\n GridData gridData = new GridData();\n gridData.horizontalSpan = 3;\n gridData.grabExcessVerticalSpace = true;\n space.setLayoutData(gridData);\n Label logo = new Label(parent, 0);\n gridData = new GridData();\n gridData.horizontalSpan = 3;\n gridData.horizontalAlignment = SWT.CENTER;\n logo.setLayoutData(gridData);\n ImageDescriptor descriptor = ImageDescriptor.createFromFile(EclipsePlugin.class, \"String_Node_Str\");\n logo.setImage(descriptor.createImage());\n}\n"
"public void updateResources() {\n int panelWidth = getResources().getDimensionPixelSize(R.dimen.notification_panel_width);\n int panelGravity = getResources().getInteger(R.integer.notification_panel_layout_gravity);\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mQsDensityContainer.getLayoutParams();\n if (lp.width != panelWidth) {\n lp.width = panelWidth;\n lp.gravity = panelGravity;\n mQsDensityContainer.setLayoutParams(lp);\n mQsContainer.post(mUpdateHeader);\n }\n lp = (FrameLayout.LayoutParams) mNotificationStackScroller.getLayoutParams();\n if (lp.width != panelWidth) {\n lp.width = panelWidth;\n lp.gravity = panelGravity;\n mNotificationStackScroller.setLayoutParams(lp);\n }\n}\n"
"public <T, E extends Exception> T createProxy(T obj, Class<E> exceptionClazz, boolean assertException) {\n InvocationHandler invocationHandler = new ExceptionProcessingJdkInvocationHandler<E>(obj, exceptionClazz, assertException);\n Set<Class<?>> interfaces = new HashSet<Class<?>>();\n Class<?> clazz = obj.getClass();\n while (true) {\n for (Class<?> interfaze : clazz.getInterfaces()) {\n interfaces.add(interfaze);\n }\n if (clazz.getSuperclass() == null) {\n break;\n }\n clazz = clazz.getSuperclass();\n }\n interfaces.add(JdkProxy.class);\n ClassLoader classLoader;\n if (JdkProxy.class.getClassLoader().equals(obj.getClass().getClassLoader())) {\n classLoader = obj.getClass().getClassLoader();\n } else {\n classLoader = new SearchingClassLoader(JdkProxy.class.getClassLoader(), obj.getClass().getClassLoader());\n }\n return (T) Proxy.newProxyInstance(classLoader, interfaces.toArray(new Class<?>[interfaces.size()]), invocationHandler);\n}\n"
"public org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent();\n copyElement(src, tgt);\n tgt.setType(convertGuideDependencyType(src.getType()));\n tgt.setUri(src.getUri());\n return tgt;\n}\n"
"private JsStatement mapStatement(Node nodeStmt) throws JsParserException {\n JsNode unknown = map(nodeStmt);\n if (unknown != null) {\n if (unknown instanceof JsStatement) {\n return (JsStatement) unknown;\n } else if (unknown instanceof JsExpression) {\n return ((JsExpression) unknown).makeStmt();\n } else {\n throw createParserException(\"String_Node_Str\", nodeStmt);\n }\n } else {\n return program.getEmptyStmt();\n }\n}\n"
"void unregisterSpringConfigFactory() {\n try {\n springBootConfigReg.updateAndGet((r) -> {\n if (r != null) {\n r.unregister();\n }\n return null;\n });\n } catch (IllegalStateException e) {\n }\n}\n"
"public void setFrequency(long frequency) {\n long actualSourceFrequency = frequency - frequencyShift;\n if (isOpen()) {\n if (frequency < getMinFrequency() || frequency > getMaxFrequency()) {\n Log.e(LOGTAG, \"String_Node_Str\" + frequency + \"String_Node_Str\" + upconverterFrequencyShift + \"String_Node_Str\");\n return;\n }\n commandThread.executeFrequencyChangeCommand(commandToByteArray(RTL_TCP_COMMAND_SET_FREQUENCY, (int) frequency));\n }\n this.flushQueue();\n this.frequency = frequency;\n this.iqConverter.setFrequency(frequency);\n}\n"
"void onSucceed(List<AVIMTypedMessage> typedMessages) {\n List<AVIMTypedMessage> newMessages = new ArrayList<>(PAGE_SIZE);\n newMessages.addAll(typedMessages);\n newMessages.addAll(adapter.getDatas());\n adapter.setDatas(newMessages);\n adapter.notifyDataSetChanged();\n if (typedMessages.size() > 0) {\n messageListView.setSelection(typedMessages.size() - 1);\n } else {\n toast(R.string.chat_activity_loadMessagesFinish);\n }\n}\n"
"private static BaseDiskSortedStack find(Level level, ISelection[] filter) throws IOException, DataException {\n IDiskArray indexKeyArray = level.getDiskIndex().find(filter);\n PrimitiveDiskSortedStack resultStack = new PrimitiveDiskSortedStack(Constants.LIST_BUFFER_SIZE, true, true);\n if (indexKeyArray != null) {\n for (int i = 0; i < indexKeyArray.size(); i++) {\n IndexKey key = (IndexKey) indexKeyArray.get(i);\n resultStack.push(new Integer(key.getDimensionPos()));\n }\n }\n return resultStack;\n}\n"
"public String getFailureReport() {\n String result = null;\n if (logger.isDebugEnabled()) {\n Collection<CapabilityReport> capabilities = RMMethodSecurityInterceptor.CAPABILITIES.get().values();\n if (!capabilities.isEmpty()) {\n StringBuffer buffer = new StringBuffer(\"String_Node_Str\");\n for (CapabilityReport capability : capabilities) {\n buffer.append(\"String_Node_Str\").append(capability.name).append(\"String_Node_Str\").append(capability.status).append(\"String_Node_Str\");\n if (!capability.conditions.isEmpty()) {\n for (Map.Entry<String, Boolean> entry : capability.conditions.entrySet()) {\n buffer.append(\"String_Node_Str\").append(entry.getKey()).append(\"String_Node_Str\");\n if (entry.getValue() == true) {\n buffer.append(\"String_Node_Str\");\n } else {\n buffer.append(\"String_Node_Str\");\n }\n buffer.append(\"String_Node_Str\");\n }\n }\n }\n result = buffer.toString();\n }\n }\n return result;\n}\n"
"protected String getContent(IProgressMonitor monitor) throws CoreException {\n String content = null;\n CloudFoundryException cfe = null;\n CoreException error = null;\n try {\n content = server.getBehaviour().getFile(appName, instanceIndex, path, offset, monitor);\n if (content != null) {\n offset += content.length();\n }\n errorCount = MAX_COUNT;\n return content;\n } catch (CoreException e) {\n error = e;\n Throwable t = e.getCause();\n if (t instanceof CloudFoundryException) {\n cfe = (CloudFoundryException) t;\n }\n } catch (CloudFoundryException cfex) {\n error = new CoreException(CloudFoundryPlugin.getErrorStatus(cfe));\n cfe = cfex;\n }\n if (cfe != null && (HttpStatus.REQUESTED_RANGE_NOT_SATISFIABLE.equals(cfe.getStatusCode()) || CloudErrorUtil.isFileNotFoundForInstance(cfe))) {\n return null;\n }\n if (adjustErrorCount() && !shouldCloseStream()) {\n requestStreamClose(true);\n String actualError = error.getMessage() != null ? error.getMessage() : \"String_Node_Str\" + path;\n throw new CoreException(CloudFoundryPlugin.getErrorStatus(\"String_Node_Str\" + path + \"String_Node_Str\" + actualError, error));\n }\n}\n"