content
stringlengths
40
137k
"private void handleClientErrors(ClientHttpResponse response) throws IOException {\n HttpStatus statusCode = response.getStatusCode();\n Map<String, Object> errorMap = extractErrorDetailsFromResponse(response);\n if (errorMap == null) {\n return;\n }\n String errorText = null;\n if (errorMap.containsKey(\"String_Node_Str\")) {\n errorText = (String) errorMap.get(\"String_Node_Str\");\n } else if (errorMap.containsKey(\"String_Node_Str\")) {\n Object errors = errorMap.get(\"String_Node_Str\");\n if (errors instanceof List) {\n List<Map<String, String>> errorsList = (List<Map<String, String>>) errors;\n errorText = errorsList.get(0).get(\"String_Node_Str\");\n } else if (errors instanceof String) {\n errorText = (String) errors;\n }\n }\n if (statusCode == HttpStatus.BAD_REQUEST) {\n if (errorText.contains(\"String_Node_Str\")) {\n throw new RateLimitExceededException();\n }\n } else if (statusCode == HttpStatus.UNAUTHORIZED) {\n if (errorText == null) {\n throw new NotAuthorizedException(response.getStatusText());\n } else if (errorText.equals(\"String_Node_Str\")) {\n throw new MissingAuthorizationException();\n } else if (errorText.equals(\"String_Node_Str\")) {\n throw new RevokedAuthorizationException();\n } else if (errorText.equals(\"String_Node_Str\")) {\n throw new InvalidAuthorizationException(errorText);\n } else {\n throw new NotAuthorizedException(errorText);\n }\n } else if (statusCode == HttpStatus.FORBIDDEN) {\n if (errorText.equals(DUPLICATE_STATUS_TEXT) || errorText.contains(\"String_Node_Str\")) {\n throw new DuplicateStatusException(errorText);\n } else if (errorText.equals(STATUS_TOO_LONG_TEXT) || errorText.contains(MESSAGE_TOO_LONG_TEXT)) {\n throw new MessageTooLongException(errorText);\n } else if (errorText.equals(INVALID_MESSAGE_RECIPIENT_TEXT)) {\n throw new InvalidMessageRecipientException(errorText);\n } else if (errorText.equals(DAILY_RATE_LIMIT_TEXT)) {\n throw new RateLimitExceededException();\n } else {\n throw new OperationNotPermittedException(errorText);\n }\n } else if (statusCode == HttpStatus.NOT_FOUND) {\n throw new ResourceNotFoundException(errorText);\n } else if (statusCode == HttpStatus.valueOf(ENHANCE_YOUR_CALM)) {\n throw new RateLimitExceededException();\n }\n}\n"
"public static List<ParameterSelectionChoice> makeSelectionList(Collection<ParameterSelectionChoice> selectionList, ScalarParameterBean parameterBean, Locale locale, TimeZone timeZone, boolean processDefault) {\n boolean nullValueFound = false;\n List<ParameterSelectionChoice> processedList = parameterBean.getSelectionList();\n ParameterDefinition paramDef = parameterBean.getParameter();\n List<String> defaultValues = null;\n if (parameterBean.getDefaultValues() != null) {\n defaultValues = new ArrayList<String>(parameterBean.getDefaultValues());\n }\n parameterBean.setValueInList(false);\n if (selectionList != null) {\n boolean isDisplayTextInList = false;\n for (ParameterSelectionChoice selectionItem : selectionList) {\n if (selectionItem == null)\n continue;\n Object value = selectionItem.getValue();\n try {\n value = DataUtil.convert(value, paramDef.getDataType());\n } catch (Exception e) {\n value = null;\n }\n String displayValue = DataUtil.getDisplayValue(value, timeZone);\n String label = selectionItem.getLabel();\n if (label == null || label.length() <= 0) {\n label = DataUtil.getDisplayValue(null, paramDef.getPattern(), value, locale, timeZone);\n }\n if (paramDef.isRequired()) {\n if (value == null || (\"String_Node_Str\".equals(value) && paramDef.getDataType() == IScalarParameterDefn.TYPE_STRING)) {\n continue;\n }\n }\n if (value == null) {\n nullValueFound = true;\n if (label == null) {\n label = IBirtConstants.NULL_VALUE_DISPLAY;\n }\n }\n selectionItem.setLabel(label);\n selectionItem.setValue(displayValue);\n processedList.add(selectionItem);\n if (processDefault) {\n if (!paramDef.isMultiValue() && DataUtil.equals(displayValue, parameterBean.getValue())) {\n parameterBean.setValueInList(true);\n if (!DataUtil.equals(label, parameterBean.getDisplayText())) {\n if (parameterBean.getParameter().isDistinct() && parameterBean.isDisplayTextInReq()) {\n selectionItem.setLabel(parameterBean.getDisplayText());\n isDisplayTextInList = true;\n }\n } else {\n isDisplayTextInList = true;\n }\n }\n if (paramDef.isMultiValue() && defaultValues != null) {\n if (DataUtil.contain((List<?>) defaultValues, displayValue, true)) {\n parameterBean.setDefaultValueInList(true);\n if (defaultValues != null) {\n defaultValues.remove(displayValue);\n }\n }\n } else if (DataUtil.equals(displayValue, parameterBean.getDefaultValue())) {\n parameterBean.setDefaultValueInList(true);\n defaultValues.remove(displayValue);\n }\n }\n }\n if (processDefault) {\n if (parameterBean.isValueInList() && parameterBean.isDisplayTextInReq() && !isDisplayTextInList) {\n processedList.add(new ParameterSelectionChoice(parameterBean.getDisplayText(), parameterBean.getValue()));\n isDisplayTextInList = true;\n }\n if (defaultValues != null && defaultValues.size() > 0) {\n for (int i = 0; i < defaultValues.size(); i++) {\n processedList.add(i, new ParameterSelectionChoice(defaultValues.get(i), defaultValues.get(i)));\n }\n }\n parameterBean.setDisplayTextInList(isDisplayTextInList);\n }\n }\n if (!nullValueFound && !parameterBean.isRequired()) {\n ParameterSelectionChoice selectionItem = new ParameterSelectionChoice(IBirtConstants.NULL_VALUE_DISPLAY, null);\n processedList.add(0, selectionItem);\n }\n return processedList;\n}\n"
"public void handleFree(DownloadLink downloadLink) throws Exception {\n setBrowserExclusive();\n br.forceDebug(true);\n requestFileInformation(downloadLink);\n String link = downloadLink.getDownloadURL();\n br.getPage(link);\n if (br.getRedirectLocation() != null) {\n link = br.getRedirectLocation().replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n br.getPage(link);\n if (br.getRedirectLocation() != null)\n br.getPage(br.getRedirectLocation());\n }\n checkErrors();\n String dllink = br.getRegex(DLLINKREGEX).getMatch(0);\n if (dllink != null && !dllink.equals(\"String_Node_Str\")) {\n dl = jd.plugins.BrowserAdapter.openDownload(br, downloadLink, dllink, true, 1);\n URLConnectionAdapter con = dl.getConnection();\n if (Plugin.getFileNameFromHeader(con) == null || Plugin.getFileNameFromHeader(con).indexOf(\"String_Node_Str\") >= 0) {\n con.disconnect();\n throw new PluginException(LinkStatus.ERROR_RETRY);\n }\n if (!con.isContentDisposition()) {\n con.disconnect();\n throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, 10 * 60 * 1000l);\n }\n dl.startDownload();\n } else {\n logger.info(\"String_Node_Str\");\n Form form = br.getFormBySubmitvalue(\"String_Node_Str\");\n if (form == null) {\n logger.warning(\"String_Node_Str\");\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\n }\n br.submitForm(form);\n checkErrors();\n if (br.getRedirectLocation() != null && br.getRedirectLocation().indexOf(\"String_Node_Str\") > 0) {\n throw new PluginException(LinkStatus.ERROR_RETRY);\n }\n dllink = br.getRegex(\"String_Node_Str\").getMatch(0);\n String icid = br.getRegex(\"String_Node_Str\").getMatch(0);\n if ((dllink == null || dllink.equals(\"String_Node_Str\")) && icid != null) {\n Form cap = new Form();\n cap.setAction(link);\n cap.setMethod(Form.MethodType.POST);\n cap.put(\"String_Node_Str\", icid);\n String captcha = getCaptchaCode(\"String_Node_Str\" + icid, downloadLink);\n cap.put(\"String_Node_Str\", captcha);\n br.submitForm(cap);\n dllink = br.getRegex(\"String_Node_Str\").getMatch(0);\n if (dllink == null) {\n if (br.containsHTML(\"String_Node_Str\"))\n throw new PluginException(LinkStatus.ERROR_CAPTCHA);\n dllink = br.getRegex(\"String_Node_Str\").getMatch(0);\n }\n }\n if (dllink == null || dllink.equals(\"String_Node_Str\"))\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\n dl = jd.plugins.BrowserAdapter.openDownload(br, downloadLink, dllink, true, 1);\n URLConnectionAdapter con = dl.getConnection();\n if (Plugin.getFileNameFromHeader(con) == null || Plugin.getFileNameFromHeader(con).indexOf(\"String_Node_Str\") >= 0) {\n con.disconnect();\n throw new PluginException(LinkStatus.ERROR_RETRY);\n }\n if (!con.isContentDisposition()) {\n con.disconnect();\n throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, 10 * 60 * 1000l);\n }\n dl.startDownload();\n }\n}\n"
"public void stopAllScripts() {\n Set<Integer> theSet = scripts.keySet();\n int[] arr = new int[theSet.size()];\n int c = 0;\n for (int i : theSet) {\n arr[c] = i;\n c++;\n }\n for (int id : arr) {\n stopScript(id);\n }\n}\n"
"public Range getWordRangeAtCursor(final String sep, final int additionalPrecedingWordsCount) {\n mIC = mParent.getCurrentInputConnection();\n if (mIC == null || sep == null) {\n return null;\n }\n final CharSequence before = mIC.getTextBeforeCursor(1000, 0);\n final CharSequence after = mIC.getTextAfterCursor(1000, 0);\n if (before == null || after == null) {\n return null;\n }\n int count = additionalPrecedingWordsCount;\n int start = before.length();\n boolean isStoppingAtWhitespace = true;\n while (true) {\n while (start > 0) {\n final int codePoint = Character.codePointBefore(before, start);\n if (isStoppingAtWhitespace == isSeparator(codePoint, sep)) {\n break;\n }\n --start;\n if (Character.isSupplementaryCodePoint(codePoint)) {\n --start;\n }\n }\n if (isStoppingAtWhitespace && (--count < 0)) {\n break;\n }\n isStoppingAtWhitespace = !isStoppingAtWhitespace;\n }\n int end = -1;\n while (++end < after.length()) {\n final int codePoint = Character.codePointAt(after, end);\n if (isSeparator(codePoint, sep)) {\n break;\n }\n if (Character.isSupplementaryCodePoint(codePoint)) {\n ++end;\n }\n }\n final String word = before.toString().substring(start, before.length()) + after.toString().substring(0, end);\n return new Range(before.length() - start, end, word);\n}\n"
"public void getCert(Locale locale, Model model, HttpServletResponse response, String hostname) throws Exception {\n if (hostname.equals(\"String_Node_Str\")) {\n hostname = \"String_Node_Str\";\n }\n response.reset();\n response.setContentType(\"String_Node_Str\");\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\" + hostname + \"String_Node_Str\");\n if (hostname.equals(\"String_Node_Str\")) {\n hostname = \"String_Node_Str\";\n response.setContentType(\"String_Node_Str\");\n }\n KeyStoreManager keyStoreManager = com.groupon.odo.bmp.Utils.getKeyStoreManager(hostname);\n if (hostname.equals(\"String_Node_Str\")) {\n File root = new File(\"String_Node_Str\" + File.separator + hostname);\n Files.copy(new File(root.getAbsolutePath() + File.separator + hostname + \"String_Node_Str\").toPath(), response.getOutputStream());\n response.flushBuffer();\n } else {\n KeyStoreManager keyStoreManager = com.groupon.odo.bmp.Utils.getKeyStoreManager(hostname);\n response.getOutputStream().write(keyStoreManager.getCertificateByAlias(hostname).getEncoded());\n response.flushBuffer();\n }\n}\n"
"public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {\n Set<UUID> possibleTargets = new HashSet<>();\n for (StackObject stackObject : game.getStack()) {\n if (game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId()) && Objects.equals(stackObject.getControllerId(), sourceControllerId)) {\n possibleTargets.add(stackObject.getId());\n }\n }\n for (Permanent permanent : game.getBattlefield().getActivePermanents(sourceControllerId, game)) {\n if (permanent.getControllerId() == sourceControllerId) {\n possibleTargets.add(permanent.getId());\n }\n }\n for (Player player : game.getPlayers().values()) {\n if (player == game.getPlayer(sourceControllerId)) {\n for (Card card : player.getGraveyard().getCards(game)) {\n possibleTargets.add(card.getId());\n }\n for (Card card : game.getExile().getAllCards(game)) {\n if (card.getOwnerId() == sourceControllerId) {\n possibleTargets.add(card.getId());\n }\n }\n }\n }\n return possibleTargets;\n}\n"
"private void updateOomLevels(int displayWidth, int displayHeight, boolean write) {\n float scaleMem = ((float) (mTotalMemMb - 300)) / (700 - 300);\n int minSize = 480 * 800;\n int maxSize = 1280 * 800;\n float scaleDisp = ((float) (displayWidth * displayHeight) - minSize) / (maxSize - minSize);\n if (false) {\n Slog.i(\"String_Node_Str\", \"String_Node_Str\" + scaleMem);\n Slog.i(\"String_Node_Str\", \"String_Node_Str\" + scaleDisp + \"String_Node_Str\" + displayWidth + \"String_Node_Str\" + displayHeight);\n }\n float scale = scaleMem > scaleDisp ? scaleMem : scaleDisp;\n if (scale < 0)\n scale = 0;\n else if (scale > 1)\n scale = 1;\n int minfree_adj = Resources.getSystem().getInteger(com.android.internal.R.integer.config_lowMemoryKillerMinFreeKbytesAdjust);\n int minfree_abs = Resources.getSystem().getInteger(com.android.internal.R.integer.config_lowMemoryKillerMinFreeKbytesAbsolute);\n if (false) {\n Slog.i(\"String_Node_Str\", \"String_Node_Str\" + minfree_adj + \"String_Node_Str\" + minfree_abs);\n }\n final boolean is64bit = false;\n for (int i = 0; i < mOomAdj.length; i++) {\n int low = mOomMinFreeLow[i];\n int high = mOomMinFreeHigh[i];\n mOomMinFree[i] = (int) (low + ((high - low) * scale));\n if (is64bit) {\n mOomMinFree[i] = (3 * mOomMinFree[i]) / 2;\n }\n }\n if (minfree_abs >= 0) {\n for (int i = 0; i < mOomAdj.length; i++) {\n mOomMinFree[i] = (int) ((float) minfree_abs * mOomMinFree[i] / mOomMinFree[mOomAdj.length - 1]);\n }\n }\n if (minfree_adj != 0) {\n for (int i = 0; i < mOomAdj.length; i++) {\n mOomMinFree[i] += (int) ((float) minfree_adj * mOomMinFree[i] / mOomMinFree[mOomAdj.length - 1]);\n if (mOomMinFree[i] < 0) {\n mOomMinFree[i] = 0;\n }\n }\n }\n mCachedRestoreLevel = (getMemLevel(ProcessList.CACHED_APP_MAX_ADJ) / 1024) / 3;\n int reserve = displayWidth * displayHeight * 4 * 3 / 1024;\n int reserve_adj = Resources.getSystem().getInteger(com.android.internal.R.integer.config_extraFreeKbytesAdjust);\n int reserve_abs = Resources.getSystem().getInteger(com.android.internal.R.integer.config_extraFreeKbytesAbsolute);\n if (reserve_abs >= 0) {\n reserve = reserve_abs;\n }\n if (reserve_adj != 0) {\n reserve += reserve_adj;\n if (reserve < 0) {\n reserve = 0;\n }\n }\n if (write) {\n ByteBuffer buf = ByteBuffer.allocate(4 * (2 * mOomAdj.length + 1));\n buf.putInt(LMK_TARGET);\n for (int i = 0; i < mOomAdj.length; i++) {\n buf.putInt((mOomMinFree[i] * 1024) / PAGE_SIZE);\n buf.putInt(mOomAdj[i]);\n }\n writeLmkd(buf);\n SystemProperties.set(\"String_Node_Str\", Integer.toString(reserve));\n }\n}\n"
"public boolean equals(Object obj) {\n if (obj instanceof TreeObject) {\n TreeObject o = (TreeObject) obj;\n if (o.getParent() == null)\n return o.getDisplayName().equals(getDisplayName()) && getType() == o.getType();\n else {\n if (o.getDisplayName().equals(getDisplayName()) && getType() == o.getType()) {\n if (o.getParent() != null && getParent() != null) {\n if (o.getParent().getDisplayName().equals(getParent().getDisplayName())) {\n return true;\n }\n }\n }\n }\n }\n return false;\n}\n"
"public void addDataSet(T d) {\n if (d == null)\n return;\n mYValCount += d.getEntryCount();\n mYValueSum += d.getYValueSum();\n if (mYMax < d.getYMax())\n mYMax = d.getYMax();\n if (mYMin > d.getYMin())\n mYMin = d.getYMin();\n if (d.getAxisDependency() == AxisDependency.LEFT) {\n if (mLeftAxisMax < d.getYMax())\n mLeftAxisMax = d.getYMax();\n if (mLeftAxisMin > d.getYMin())\n mLeftAxisMin = d.getYMin();\n } else {\n if (mRightAxisMax < d.getYMax())\n mRightAxisMax = d.getYMax();\n if (mRightAxisMin > d.getYMin())\n mRightAxisMin = d.getYMin();\n }\n handleEmptyAxis(getFirstLeft(), getFirstRight());\n}\n"
"public void testWithTinkeyEciesAesGcmHkdf() throws Exception {\n final String privateKeyset = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n final String publicKeyset = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HybridDecrypt hybridDecrypt = HybridDecryptFactory.getPrimitive(CleartextKeysetHandle.parseFrom(base64().decode(privateKeyset)));\n HybridEncrypt hybridEncrypt = HybridEncryptFactory.getPrimitive(CleartextKeysetHandle.parseFrom(base64().decode(publicKeyset)));\n byte[] plaintext = Random.randBytes(20);\n byte[] contextInfo = Random.randBytes(20);\n byte[] ciphertext = hybridEncrypt.encrypt(plaintext, contextInfo);\n assertArrayEquals(plaintext, hybridDecrypt.decrypt(ciphertext, contextInfo));\n}\n"
"private String getPostHtml(ReaderPost post) {\n if (post == null)\n return \"String_Node_Str\";\n String content;\n if (post.hasText()) {\n content = post.getText();\n } else if (post.hasFeaturedImage()) {\n content = String.format(\"String_Node_Str\", post.getFeaturedImage());\n } else {\n content = \"String_Node_Str\";\n }\n int maxImageWidth = getMaxImageWidth();\n int marginLarge = getResources().getDimensionPixelSize(R.dimen.reader_margin_large);\n int marginMedium = getResources().getDimensionPixelSize(R.dimen.reader_margin_medium);\n final String linkColor = HtmlUtils.colorResToHtmlColor(this, R.color.reader_hyperlink);\n final String greyLight = HtmlUtils.colorResToHtmlColor(this, R.color.grey_light);\n StringBuilder sbHtml = new StringBuilder(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(marginMedium).append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(greyLight).append(\"String_Node_Str\").append(\"String_Node_Str\").append(marginLarge).append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(linkColor).append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(maxImageWidth).append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\");\n sbHtml.append(\"String_Node_Str\").append(processVideos(content)).append(\"String_Node_Str\");\n return sbHtml.toString();\n}\n"
"public ModelAndView getUserProfile(ProceedingJoinPoint proceedingJoinPoint, HttpServletRequest request) throws Throwable {\n ModelAndView view = null;\n HttpSession session = request.getSession();\n view = (ModelAndView) proceedingJoinPoint.proceed();\n view.addObject(\"String_Node_Str\", getUserLanguage(request, response));\n boolean isLoggedIn = isLoggedIn(session);\n if (isLoggedIn) {\n long uid = (Long) session.getAttribute(\"String_Node_Str\");\n User user = userService.getUserUsingUid(uid);\n view.addObject(\"String_Node_Str\", isLoggedIn).addObject(\"String_Node_Str\", user).addObject(\"String_Node_Str\", submissionService.getUserSubmissionStats(user.getUid()));\n }\n return view;\n}\n"
"private long extractResourceForkToAppleDoubleStream(FSFork resourceFork, OutputStream os, ProgressMonitor pm) throws IOException {\n ReadableRandomAccessStream in = null;\n try {\n AppleSingleBuilder builder = new AppleSingleBuilder(FileType.APPLEDOUBLE, AppleSingleVersion.VERSION_2_0, FileSystem.MACOS_X);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n in = resourceFork.getReadableRandomAccessStream();\n long extractedBytes = IOUtil.streamCopy(in, baos, 128 * 1024);\n if (extractedBytes != resourceFork.getLength()) {\n System.err.println(\"String_Node_Str\" + \"String_Node_Str\" + resourceFork.getLength() + \"String_Node_Str\" + extractedBytes);\n }\n builder.addResourceFork(baos.toByteArray());\n os.write(builder.getResult());\n pm.addDataProgress(extractedBytes);\n return extractedBytes;\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (Exception e) {\n }\n }\n }\n}\n"
"public void testRemoveFromMapLocal() {\n DistributedObjectProvider provider = new DistributedObjectProvider(false, null);\n testRemoveFromMap(provider);\n}\n"
"public NuageVspDeviceVO addNuageVspDevice(AddNuageVspDeviceCmd cmd) {\n final NuageVspResource resource = new NuageVspResource();\n final String deviceName = Network.Provider.NuageVsp.getName();\n ExternalNetworkDeviceManager.NetworkDevice networkDevice = ExternalNetworkDeviceManager.NetworkDevice.getNetworkDevice(deviceName);\n final Long physicalNetworkId = cmd.getPhysicalNetworkId();\n PhysicalNetworkVO physicalNetwork = _physicalNetworkDao.findById(physicalNetworkId);\n if (physicalNetwork == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + physicalNetworkId);\n }\n long zoneId = physicalNetwork.getDataCenterId();\n final PhysicalNetworkServiceProviderVO ntwkSvcProvider = _physicalNetworkServiceProviderDao.findByServiceProvider(physicalNetwork.getId(), networkDevice.getNetworkServiceProvder());\n if (ntwkSvcProvider == null) {\n throw new CloudRuntimeException(\"String_Node_Str\" + networkDevice.getNetworkServiceProvder() + \"String_Node_Str\" + physicalNetworkId + \"String_Node_Str\");\n } else if (ntwkSvcProvider.getState() == PhysicalNetworkServiceProvider.State.Shutdown) {\n throw new CloudRuntimeException(\"String_Node_Str\" + ntwkSvcProvider.getProviderName() + \"String_Node_Str\" + physicalNetworkId + \"String_Node_Str\");\n }\n if (_nuageVspDao.listByPhysicalNetwork(physicalNetworkId).size() != 0) {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n try {\n NuageVspPluginClientLoader clientLoader = NuageVspPluginClientLoader.getClientLoader(null, null, 1, 1, null);\n Map<String, Object> clientDefaults = clientLoader.getNuageVspManagerClient().getClientDefaults();\n String apiVersion = MoreObjects.firstNonNull(cmd.getApiVersion(), (String) clientDefaults.get(\"String_Node_Str\"));\n if (!clientLoader.getNuageVspManagerClient().isSupportedApiVersion(apiVersion)) {\n throw new CloudRuntimeException(\"String_Node_Str\" + apiVersion);\n }\n int port = cmd.getPort();\n if (0 == port) {\n port = 8443;\n }\n String cmsUserPasswordBase64 = NuageVspUtil.encodePassword(cmd.getPassword());\n String retryCount = String.valueOf(MoreObjects.firstNonNull(cmd.getApiRetryCount(), clientDefaults.get(\"String_Node_Str\")));\n String retryInterval = String.valueOf(MoreObjects.firstNonNull(cmd.getApiRetryInterval(), clientDefaults.get(\"String_Node_Str\")));\n NuageVspResource.Configuration resourceConfiguration = new NuageVspResource.Configuration().name(\"String_Node_Str\" + cmd.getHostName()).guid(UUID.randomUUID().toString()).zoneId(String.valueOf(physicalNetwork.getDataCenterId())).hostName(cmd.getHostName()).cmsUser(cmd.getUserName()).cmsUserPassword(cmsUserPasswordBase64).port(String.valueOf(port)).apiVersion(apiVersion).apiRelativePath(\"String_Node_Str\" + apiVersion).retryCount(retryCount).retryInterval(retryInterval);\n Map<String, String> hostDetails = resourceConfiguration.build();\n resource.configure(cmd.getHostName(), Maps.<String, Object>newHashMap(hostDetails));\n Host host = _resourceMgr.addHost(zoneId, resource, Host.Type.L2Networking, hostDetails);\n if (host == null) {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n NuageVspDeviceVO nuageVspDevice = new NuageVspDeviceVO(host.getId(), physicalNetworkId, ntwkSvcProvider.getProviderName(), deviceName);\n _nuageVspDao.persist(nuageVspDevice);\n DetailVO detail = new DetailVO(host.getId(), \"String_Node_Str\", String.valueOf(nuageVspDevice.getId()));\n _hostDetailsDao.persist(detail);\n ConfigurationVO cmsIdConfig = _configDao.findByName(\"String_Node_Str\");\n host = findNuageVspHost(nuageVspDevice.getHostId());\n SyncNuageVspCmsIdCommand syncCmd = new SyncNuageVspCmsIdCommand(SyncType.REGISTER, null);\n SyncNuageVspCmsIdAnswer answer = (SyncNuageVspCmsIdAnswer) _agentMgr.easySend(nuageVspDevice.getHostId(), syncCmd);\n if (answer != null && answer.getSuccess()) {\n registerNewNuageVspDevice(cmsIdConfig, nuageVspDevice.getId() + \"String_Node_Str\" + answer.getNuageVspCmsId());\n detail = new DetailVO(host.getId(), \"String_Node_Str\", answer.getNuageVspCmsId());\n _hostDetailsDao.persist(detail);\n resourceConfiguration.nuageVspCmsId(answer.getNuageVspCmsId());\n resource.configure(cmd.getHostName(), Maps.<String, Object>newHashMap(resourceConfiguration.build()));\n auditDomainsOnVsp((HostVO) host, true, false);\n } else {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n return nuageVspDevice;\n } catch (ConfigurationException e) {\n s_logger.error(\"String_Node_Str\" + cmd.getHostName(), e);\n throw new CloudRuntimeException(\"String_Node_Str\" + cmd.getHostName(), e);\n } catch (ExecutionException ee) {\n s_logger.error(\"String_Node_Str\" + cmd.getHostName(), ee);\n throw new CloudRuntimeException(\"String_Node_Str\" + cmd.getHostName(), ee);\n }\n}\n"
"protected DetailledItem parse_result(String html) throws IOException {\n Document doc = Jsoup.parse(html);\n DetailledItem result = new DetailledItem();\n String id = opac_url + doc.select(\"String_Node_Str\").get(0).parent().attr(\"String_Node_Str\");\n result.setId(id);\n String titleAndSubtitle = \"String_Node_Str\";\n if (doc.select(\"String_Node_Str\").size() > 0) {\n titleAndSubtitle = doc.select(\"String_Node_Str\").first().text().trim();\n int slashPosition = titleAndSubtitle.indexOf(\"String_Node_Str\");\n String title;\n String subtitle;\n if (slashPosition > 0) {\n title = titleAndSubtitle.substring(0, slashPosition).trim();\n subtitle = titleAndSubtitle.substring(slashPosition + 1).trim();\n } else {\n title = titleAndSubtitle;\n subtitle = \"String_Node_Str\";\n }\n result.setTitle(title);\n String subtitle = titleAndSubtitle.substring(titleAndSubtitle.indexOf(\"String_Node_Str\") + 1).trim();\n result.addDetail(new Detail(\"String_Node_Str\", subtitle));\n } else if (doc.select(\"String_Node_Str\").size() > 0) {\n titleAndSubtitle = doc.select(\"String_Node_Str\").first().text().trim();\n String title = titleAndSubtitle.substring(0, titleAndSubtitle.indexOf(\"String_Node_Str\")).trim();\n result.setTitle(title);\n String subtitle = titleAndSubtitle.substring(titleAndSubtitle.indexOf(\"String_Node_Str\") + 1).trim();\n result.addDetail(new Detail(\"String_Node_Str\", subtitle));\n } else {\n result.setTitle(\"String_Node_Str\");\n }\n ContentValues e = new ContentValues();\n String location = \"String_Node_Str\";\n for (Element element : doc.select(\"String_Node_Str\")) {\n String detail = element.text().trim();\n String title = element.firstElementSibling().text().trim().replace(\"String_Node_Str\", \"String_Node_Str\");\n if (element.select(\"String_Node_Str\").size() > 0 && location != \"String_Node_Str\") {\n e.put(DetailledItem.KEY_COPY_BRANCH, location);\n result.addCopy(e);\n location = \"String_Node_Str\";\n e = new ContentValues();\n }\n if (!title.equals(\"String_Node_Str\")) {\n if (title.indexOf(\"String_Node_Str\") != -1) {\n title = title.substring(0, title.indexOf(\"String_Node_Str\"));\n }\n if (title.contains(\"String_Node_Str\")) {\n e.put(DetailledItem.KEY_COPY_STATUS, detail);\n } else if (title.contains(\"String_Node_Str\")) {\n location += detail;\n } else if (title.contains(\"String_Node_Str\")) {\n location += \"String_Node_Str\" + detail;\n } else if (title.contains(\"String_Node_Str\")) {\n e.put(DetailledItem.KEY_COPY_LOCATION, detail);\n } else if (title.contains(\"String_Node_Str\")) {\n e.put(DetailledItem.KEY_COPY_SHELFMARK, detail);\n } else if (title.contains(\"String_Node_Str\")) {\n detail = detail.replace(\"String_Node_Str\", \"String_Node_Str\").trim();\n detail = detail.replace(\"String_Node_Str\", \"String_Node_Str\");\n detail = detail.replace(\"String_Node_Str\", \"String_Node_Str\");\n e.put(DetailledItem.KEY_COPY_STATUS, detail);\n } else if (!title.contains(\"String_Node_Str\")) {\n result.addDetail(new Detail(title, detail));\n }\n }\n }\n e.put(DetailledItem.KEY_COPY_BRANCH, location);\n result.addCopy(e);\n return result;\n}\n"
"public void run() {\n speakerMeter.setValue(v);\n if (v > speakerWarningLimit) {\n speakerMeterPanel.setBackground(overLimitColor);\n } else {\n speakerMeterPanel.setBackground(speakerPanelBackground);\n }\n}\n"
"public void setEnvVars(List<PodEnvVar> envVars) {\n this.envVars = envVars == null ? new ArrayList<>() : envVars;\n}\n"
"public void testStartEndEquals() throws IOException {\n Table table = getDefaultTable();\n byte[] rowKey = dataHelper.randomData(\"String_Node_Str\");\n byte[] qualifier = dataHelper.randomData(\"String_Node_Str\");\n byte[] value = dataHelper.randomData(\"String_Node_Str\");\n table.put(new Put(rowKey).addColumn(COLUMN_FAMILY, qualifier, value));\n Scan scan = new Scan().withStartRow(rowKey).withStopRow(rowKey, true);\n try (ResultScanner resultScanner = table.getScanner(scan)) {\n Result result = resultScanner.next();\n Assert.assertNotNull(result);\n Cell cell = result.getColumnCells(COLUMN_FAMILY, qualifier).get(0);\n Assert.assertTrue(Bytes.equals(value, ByteString.copyFrom(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength()).toByteArray()));\n }\n}\n"
"public static org.hl7.fhir.dstu2016may.model.DataElement convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.DataElement tgt = new org.hl7.fhir.dstu2016may.model.DataElement();\n copyDomainResource(src, tgt);\n tgt.setUrl(src.getUrl());\n for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));\n tgt.setVersion(src.getVersion());\n tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));\n tgt.setExperimental(src.getExperimental());\n tgt.setPublisher(src.getPublisher());\n tgt.setDate(src.getDate());\n tgt.setName(src.getName());\n for (org.hl7.fhir.dstu3.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));\n for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext()) tgt.addUseContext(convertCodeableConcept(t));\n tgt.setCopyright(src.getCopyright());\n tgt.setStringency(convertDataElementStringency(src.getStringency()));\n for (org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping()) tgt.addMapping(convertDataElementMappingComponent(t));\n for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(convertElementDefinition(t));\n return tgt;\n}\n"
"public static List<String> importToStucture(File importFile, IFolder selectionFolder, ExpressionType type, boolean skip, boolean rename) {\n List<String> importInformation = new ArrayList<String>();\n Set<String> names = PatternUtilities.getAllPatternNames(selectionFolder);\n String fileExtName = getFileExtName(importFile);\n if (\"String_Node_Str\".equalsIgnoreCase(fileExtName)) {\n try {\n CsvReader reader = new CsvReader(new FileReader(importFile), CURRENT_SEPARATOR);\n reader.setEscapeMode(ESCAPE_MODE_BACKSLASH);\n reader.setTextQualifier(TEXT_QUAL);\n reader.setUseTextQualifier(USE_TEXT_QUAL);\n reader.readHeaders();\n if (checkFileHeader(reader.getHeaders())) {\n while (reader.readRecord()) {\n String name = reader.get(PatternToExcelEnum.Label.getLiteral());\n if (name.matches(\"String_Node_Str\") || (!name.startsWith(\"String_Node_Str\") && !name.endsWith(\"String_Node_Str\"))) {\n if (names.contains(name)) {\n if (skip) {\n importInformation.add(DefaultMessagesImpl.getString(\"String_Node_Str\", name));\n continue;\n }\n if (rename) {\n name = name + \"String_Node_Str\" + new Date() + \"String_Node_Str\";\n }\n }\n PatternParameters patternParameters = new ImportFactory().new PatternParameters();\n patternParameters.name = name;\n patternParameters.auther = reader.get(PatternToExcelEnum.Author.getLiteral());\n patternParameters.description = reader.get(PatternToExcelEnum.Description.getLiteral());\n patternParameters.purpose = reader.get(PatternToExcelEnum.Purpose.getLiteral());\n patternParameters.relativePath = reader.get(PatternToExcelEnum.RelativePath.getLiteral());\n for (PatternLanguageType languagetype : PatternLanguageType.values()) {\n String cellStr = reader.get(languagetype.getExcelEnum().getLiteral());\n if (cellStr != null && !cellStr.equals(\"String_Node_Str\")) {\n patternParameters.regex.put(languagetype.getLiteral(), cellStr);\n }\n }\n String relativePath = \"String_Node_Str\" + createAndStorePattern(patternParameters, selectionFolder, type);\n names.add(name);\n importInformation.add(\"String_Node_Str\" + name + \"String_Node_Str\" + relativePath + \"String_Node_Str\");\n } else {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n MessageDialog.openError(null, \"String_Node_Str\", \"String_Node_Str\");\n }\n });\n }\n }\n PatternParameters patternParameters = new ImportFactory().new PatternParameters();\n patternParameters.name = name;\n patternParameters.auther = reader.get(PatternToExcelEnum.Author.getLiteral());\n patternParameters.description = reader.get(PatternToExcelEnum.Description.getLiteral());\n patternParameters.purpose = reader.get(PatternToExcelEnum.Purpose.getLiteral());\n patternParameters.relativePath = reader.get(PatternToExcelEnum.RelativePath.getLiteral());\n for (PatternLanguageType languagetype : PatternLanguageType.values()) {\n String cellStr = reader.get(languagetype.getExcelEnum().getLiteral());\n if (cellStr != null && !cellStr.equals(\"String_Node_Str\")) {\n patternParameters.regex.put(languagetype.getLiteral(), cellStr);\n }\n }\n String relativePath = \"String_Node_Str\" + createAndStorePattern(patternParameters, selectionFolder, type);\n names.add(name);\n importInformation.add(\"String_Node_Str\" + name + \"String_Node_Str\" + relativePath + \"String_Node_Str\");\n }\n reader.close();\n } catch (Exception e) {\n log.error(e, e);\n importInformation.add(\"String_Node_Str\");\n }\n }\n if (\"String_Node_Str\".equalsIgnoreCase(fileExtName)) {\n Map<Integer, PatternLanguageType> expressionMap = new HashMap<Integer, PatternLanguageType>();\n try {\n WorkbookSettings settings = new WorkbookSettings();\n settings.setEncoding(\"String_Node_Str\");\n Workbook rwb = Workbook.getWorkbook(importFile, settings);\n Sheet[] sheets = rwb.getSheets();\n for (Sheet sheet : sheets) {\n Cell[] headerRow = sheet.getRow(0);\n for (Cell cell : headerRow) {\n for (PatternLanguageType languageType : PatternLanguageType.values()) {\n if (cell.getContents().equals(languageType.getExcelEnum().getLiteral())) {\n expressionMap.put(cell.getColumn(), languageType);\n }\n }\n }\n for (int i = 1; i < sheet.getRows(); i++) {\n Cell[] row = sheet.getRow(i);\n Cell cell = row[0];\n if (CellType.LABEL.equals(cell.getType())) {\n String contents = cell.getContents();\n if (names.contains(contents)) {\n if (skip) {\n importInformation.add(\"String_Node_Str\" + contents + \"String_Node_Str\");\n continue;\n }\n if (rename) {\n contents = contents + \"String_Node_Str\" + new Date() + \"String_Node_Str\";\n }\n }\n PatternParameters patternParameters = new ImportFactory().new PatternParameters();\n patternParameters.name = contents;\n patternParameters.auther = row[6].getContents();\n patternParameters.description = row[2].getContents();\n patternParameters.purpose = row[1].getContents();\n patternParameters.status = DevelopmentStatus.DRAFT.getLiteral();\n for (int columnIndex : expressionMap.keySet()) {\n String rowContent = row[columnIndex].getContents();\n if (!rowContent.equals(\"String_Node_Str\")) {\n patternParameters.regex.put(expressionMap.get(columnIndex).getLiteral(), rowContent);\n }\n }\n String relativePath = \"String_Node_Str\" + createAndStorePattern(patternParameters, selectionFolder, type);\n names.add(contents);\n importInformation.add(\"String_Node_Str\" + contents + \"String_Node_Str\" + relativePath + \"String_Node_Str\");\n }\n }\n }\n rwb.close();\n } catch (BiffException e) {\n log.error(e, e);\n importInformation.add(\"String_Node_Str\");\n } catch (IOException e) {\n log.error(e, e);\n importInformation.add(\"String_Node_Str\");\n }\n }\n return importInformation;\n}\n"
"public void parseRecipes(IRecipeLoader loader, String path) {\n try {\n BufferedReader reader = null;\n try {\n reader = loader.getFile(path);\n } catch (Exception err) {\n AELog.warning(\"String_Node_Str\" + path);\n if (data.exceptions)\n AELog.error(err);\n return;\n }\n boolean inQuote = false;\n boolean inComment = false;\n String token = \"String_Node_Str\";\n int line = 0;\n int val = -1;\n while ((val = reader.read()) != -1) {\n char c = (char) val;\n if (c == '\\n')\n line++;\n if (inComment) {\n if (c == '\\n' || c == '\\r')\n inComment = false;\n } else if (inQuote) {\n switch(c) {\n case '\"':\n inQuote = !inQuote;\n break;\n default:\n token = token + c;\n }\n } else {\n switch(c) {\n case '\"':\n inQuote = !inQuote;\n break;\n case ',':\n if (token.length() > 0) {\n tokens.add(token);\n tokens.add(\"String_Node_Str\");\n }\n token = \"String_Node_Str\";\n break;\n case '=':\n processTokens(loader, path, line);\n if (token.length() > 0)\n tokens.add(token);\n token = \"String_Node_Str\";\n break;\n case '#':\n inComment = true;\n case '\\n':\n case '\\t':\n case '\\r':\n case ' ':\n if (token.length() > 0)\n tokens.add(token);\n token = \"String_Node_Str\";\n break;\n default:\n token = token + c;\n }\n }\n }\n reader.close();\n processTokens(loader, path, line);\n } catch (Throwable e) {\n AELog.error(e);\n if (data.crash)\n throw new RuntimeException(e);\n }\n}\n"
"public void onMovieUserRatingChanged(MoviesState.MovieUserRatingChangedEvent event) {\n MovieUi ui = findUi(event.callingId);\n if (ui != null) {\n populateUi(ui);\n } else {\n populateUis();\n }\n}\n"
"void validatePurchaseOrder(Long poId) {\n try {\n PurchaseOrder purchaseOrder = PurchaseOrder.find(poId);\n purchaseOrderServiceSupplychainImpl.computePurchaseOrder(purchaseOrder);\n if (purchaseOrder.getStatusSelect() == 4 || purchaseOrder.getStatusSelect() == 5 && purchaseOrder.getLocation() == null) {\n purchaseOrderServiceSupplychainImpl.createStocksMoves(purchaseOrder);\n StockMove stockMove = StockMove.all().filter(\"String_Node_Str\", purchaseOrder.getId()).fetchOne();\n if (stockMove != null) {\n stockMoveService.copyQtyToRealQty(stockMove);\n stockMoveService.realize(stockMove);\n stockMove.setRealDate(purchaseOrder.getDeliveryDate());\n }\n purchaseOrder.setValidationDate(purchaseOrder.getOrderDate());\n purchaseOrder.setValidatedByUser(userSerivce.getUser());\n purchaseOrder.setSupplierPartner(purchaseOrderServiceSupplychainImpl.validateSupplier(purchaseOrder));\n Invoice invoice = purchaseOrderInvoiceService.generateInvoice(purchaseOrder);\n invoice.setInvoiceDate(purchaseOrder.getValidationDate());\n invoiceService.compute(invoice);\n invoiceService.validate(invoice);\n invoiceService.ventilate(invoice);\n }\n purchaseOrder.save();\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"public String getTopNQuery(String query, int n) {\n Matcher m = selectPattern.matcher(query);\n return m.replaceFirst(\"String_Node_Str\" + n + \"String_Node_Str\");\n}\n"
"public String keyString() {\n StringBuilder sb = new StringBuilder();\n MethodParser parser = new MethodParser(methodSignature);\n sb.append(parser.methodName).append(\"String_Node_Str\");\n boolean first = true;\n for (Pair<MethodParser.JavaType, String> param : parser.params) {\n if (!first) {\n sb.append(\"String_Node_Str\");\n } else {\n first = false;\n }\n sb.append(param.first.typeName).append(\"String_Node_Str\").append(param.second);\n }\n if (didTrigger) {\n sb.append(\"String_Node_Str\");\n }\n if (isImplicit) {\n sb.append(\"String_Node_Str\");\n }\n return sb.toString();\n}\n"
"public void uninvite(String name, Player player, String inviteeName) {\n if (warpList.containsKey(name)) {\n Warp warp = warpList.get(name);\n if (warp.playerIsCreator(player.getName())) {\n if (!warp.playerIsInvited(inviteeName)) {\n player.sendMessage(ChatColor.RED + inviteeName + \"String_Node_Str\");\n } else if (warp.playerIsCreator(inviteeName)) {\n player.sendMessage(Color.RED + \"String_Node_Str\");\n } else {\n warp.uninvite(inviteeName);\n WarpDataSource.updatePermissions(warp);\n player.sendMessage(Color.AQUA + \"String_Node_Str\" + inviteeName + \"String_Node_Str\" + name + \"String_Node_Str\");\n if (warp.publicAll) {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n Player match = server.getPlayer(inviteeName);\n if (match != null) {\n match.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\" + player.getName() + \"String_Node_Str\");\n }\n }\n } else {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n } else {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n}\n"
"public void streamAppended(String text, IStreamMonitor monitor) {\n try {\n h.appendToExistingFile(text);\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
"String setColumnAccessString(TypeName fieldType, String elementName, String formattedAccess, boolean isModelContainerAdapter, String variableNameString) {\n String newFormattedAccess = CodeBlock.builder().add(\"String_Node_Str\", variableNameString, containerKeyName, formattedAccess).build().toString();\n return existingColumnAccess.setColumnAccessString(fieldType, elementName, fullElementName, isModelContainerAdapter, variableNameString, newFormattedAccess);\n}\n"
"public boolean validate() {\n cleanWarnings();\n cleanErrors();\n boolean valid = true;\n if (getName() == null) {\n addError(\"String_Node_Str\");\n valid = false;\n }\n return valid;\n}\n"
"private List<InstructorCommentsForStudentsTable> getCommentsForStudentsTables(String courseId, Map<String, List<Boolean>> commentModifyPermissions, CourseRoster roster, Map<String, List<CommentAttributes>> comments, InstructorCommentsPageData data) {\n Map<String, String> giverEmailToGiverNameMap = getGiverEmailToGiverNameMap(comments, roster);\n List<CommentsForStudentsTable> commentsForStudentsTables = new ArrayList<CommentsForStudentsTable>();\n for (String giverEmail : comments.keySet()) {\n String giverName = giverEmailToGiverNameMap.get(giverEmail);\n commentsForStudentsTables.add(new InstructorCommentsForStudentsTable(giverEmail, giverName, createCommentRows(courseId, giverEmail, giverName, commentModifyPermissions, roster, comments, data)));\n }\n return commentsForStudentsTables;\n}\n"
"public void onEvent(ChatEvent event) {\n HashMap<String, Long> loggedIn = event.getController().getCurrentlyLoggingIn();\n if (loggedIn.keySet().contains(event.getUser())) {\n event.setCancelled(true);\n }\n}\n"
"public void testPushImage() throws Exception {\n final DockerClient dockerClient = mock(DockerClient.class);\n final Log log = mock(Log.class);\n final DockerBuildInformation buildInfo = mock(DockerBuildInformation.class);\n Utils.pushImage(dockerClient, IMAGE, log, buildInfo, 0, 1);\n verify(dockerClient).push(eq(IMAGE), any(AnsiProgressHandler.class));\n}\n"
"private int find(int p) {\n if (p < 0 || p >= parent.length)\n throw new IllegalArgumentException(\"String_Node_Str\");\n while (p != parent[p]) p = parent[p];\n return p;\n}\n"
"private StoreTailer cycle(long cycle) throws IOException {\n if (this.cycle != cycle) {\n if (null != this.store) {\n this.queue.release(this.store);\n }\n this.cycle = cycle;\n this.index = -1;\n this.store = this.queue.storeForCycle(cycle, queue.epoch());\n wire = queue.wireType().apply(store.mappedBytes());\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\" + ((MappedBytes) wire.bytes()).mappedFile().file().getAbsolutePath());\n }\n return this;\n}\n"
"private void saveDocument(String url) {\n if (credentials.get(url) != null) {\n XtentisPort port = credentials.get(url).port;\n Document doc = credentials.get(url).doc;\n if (doc != null) {\n try {\n port.getMDMCategory(new WSCategoryData(doc.asXML()));\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n }\n}\n"
"public ReturnCode initProxyRepository() {\n ReturnCode rc = new ReturnCode();\n Project project = null;\n RepositoryContext repositoryContext = (RepositoryContext) org.talend.core.runtime.CoreRuntimePlugin.getInstance().getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY);\n if (repositoryContext != null) {\n project = repositoryContext.getProject();\n User user = repositoryContext.getUser();\n ReponsitoryContextBridge.initialized(project.getEmfProject(), user);\n } else {\n Location instanceLoc = Platform.getInstanceLocation();\n try {\n if (instanceLoc.isLocked()) {\n rc.setMessage(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n rc.setOk(false);\n return rc;\n } else {\n instanceLoc.lock();\n }\n } catch (IOException e) {\n log.error(e, e);\n }\n ProxyRepositoryFactory proxyRepository = ProxyRepositoryFactory.getInstance();\n IRepositoryFactory repository = RepositoryFactoryProvider.getRepositoriyById(RepositoryConstants.REPOSITORY_LOCAL_ID);\n if (repository == null) {\n log.fatal(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n rc.setMessage(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n rc.setOk(false);\n return rc;\n }\n proxyRepository.setRepositoryFactoryFromProvider(repository);\n try {\n proxyRepository.checkAvailability();\n proxyRepository.initialize();\n XmiResourceManager xmiResourceManager = proxyRepository.getRepositoryFactoryFromProvider().getResourceManager();\n IProject rootProject = ResourceManager.getRootProject();\n if (rootProject.getFile(FileConstants.LOCAL_PROJECT_FILENAME).exists()) {\n new EMFUtil();\n project = new Project(xmiResourceManager.loadProject(rootProject));\n } else {\n User user = PropertiesFactoryImpl.eINSTANCE.createUser();\n user.setLogin(\"String_Node_Str\");\n user.setPassword(\"String_Node_Str\".getBytes());\n String projectName = ResourceManager.getRootProjectName();\n String projectDesc = ResourcesPlugin.getWorkspace().newProjectDescription(projectName).getComment();\n Project projectInfor = ProjectHelper.createProject(projectName, projectDesc, ECodeLanguage.JAVA.getName(), user);\n checkFileName(projectInfor.getLabel(), RepositoryConstants.PROJECT_PATTERN);\n project = proxyRepository.getRepositoryFactoryFromProvider().createProject(projectInfor);\n }\n if (project != null) {\n initRepositoryContext(project);\n String defaultTechnicalStatusList = \"String_Node_Str\";\n List<Status> statusList = StatusHelper.parse(defaultTechnicalStatusList);\n proxyRepository.setTechnicalStatus(statusList);\n if (org.talend.commons.utils.platform.PluginChecker.isOnlyTopLoaded()) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IMavenUIService.class)) {\n IMavenUIService mavenUIService = (IMavenUIService) GlobalServiceRegister.getDefault().getService(IMavenUIService.class);\n if (mavenUIService != null) {\n mavenUIService.checkUserSettings(new NullProgressMonitor());\n mavenUIService.updateMavenResolver(false);\n mavenUIService.addMavenConfigurationChangeListener();\n }\n }\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibrariesService.class)) {\n ILibrariesService librariesService = (ILibrariesService) GlobalServiceRegister.getDefault().getService(ILibrariesService.class);\n if (librariesService != null) {\n librariesService.syncLibraries();\n librariesService.checkLibraries();\n }\n }\n }\n CWMPlugin.getDefault().createLibFolderIfNotExist();\n }\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n rc.setMessage(e.getMessage());\n rc.setOk(false);\n return rc;\n }\n }\n return rc;\n}\n"
"public IdentifiedDataSerializable createNew(Integer arg) {\n return new QueueTransactionRollbackOperation();\n}\n"
"protected void done() {\n String returnCode = null;\n try {\n returnCode = get();\n } catch (InterruptedException ignore) {\n } catch (ExecutionException ignore) {\n }\n ConfigurationManager.updateChatRoomStatus(chatRoomWrapper.getParentProvider().getProtocolProvider(), chatRoomWrapper.getChatRoomID(), Constants.ONLINE_STATUS);\n String errorMessage = null;\n if (AUTHENTICATION_FAILED.equals(returnCode)) {\n ChatRoomAuthenticationWindow authWindow = new ChatRoomAuthenticationWindow(chatRoomWrapper);\n authWindow.setVisible(true);\n } else if (returnCode.equals(REGISTRATION_REQUIRED)) {\n errorMessage = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { chatRoomWrapper.getChatRoomName() });\n } else if (returnCode.equals(PROVIDER_NOT_REGISTERED)) {\n errorMessage = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { chatRoomWrapper.getChatRoomName() });\n } else if (returnCode.equals(SUBSCRIPTION_ALREADY_EXISTS)) {\n errorMessage = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { chatRoomWrapper.getChatRoomName() });\n } else {\n errorMessage = GuiActivator.getResources().getI18NString(\"String_Node_Str\", new String[] { chatRoomWrapper.getChatRoomName() });\n }\n if (!returnCode.equals(SUCCESS) && !returnCode.equals(AUTHENTICATION_FAILED)) {\n new ErrorDialog(GuiActivator.getUIService().getMainFrame(), GuiActivator.getResources().getI18NString(\"String_Node_Str\"), errorMessage).showDialog();\n }\n}\n"
"protected void erosion(SnipeData v, int erodeFaces, int erodeRec, int fillFaces, int fillRec) {\n int brushSize = (int) Math.ceil(v.getBrushSize());\n double brushSizeSquared = v.getBrushSize() * v.getBrushSize();\n int tx = this.targetBlock.getBlockX();\n int ty = this.targetBlock.getBlockY();\n int tz = this.targetBlock.getBlockZ();\n BlockBuffer buffer1 = new BlockBuffer(new Vector3i(-brushSize - 1, -brushSize - 1, -brushSize - 1), new Vector3i(brushSize + 1, brushSize + 1, brushSize + 1));\n BlockBuffer buffer2 = new BlockBuffer(new Vector3i(-brushSize - 1, -brushSize - 1, -brushSize - 1), new Vector3i(brushSize + 1, brushSize + 1, brushSize + 1));\n for (int x = -brushSize + 1; x <= brushSize + 1; x++) {\n int x0 = x + tx;\n for (int y = -brushSize + 1; y <= brushSize + 1; y++) {\n int y0 = y + ty;\n for (int z = -brushSize + 1; z <= brushSize + 1; z++) {\n int z0 = z + tz;\n buffer1.set(x, y, z, this.world.getBlock(x0, y0, z0));\n buffer2.set(x, y, z, this.world.getBlock(x0, y0, z0));\n }\n }\n }\n int swap = 0;\n for (int i = 0; i < erodeRec; ++i) {\n erosionIteration(v, erodeFaces, swap % 2 == 0 ? buffer1 : buffer2, swap % 2 == 1 ? buffer1 : buffer2);\n swap++;\n }\n for (int i = 0; i < fillRec; ++i) {\n fillIteration(v, fillFaces, swap % 2 == 0 ? buffer1 : buffer2, swap % 2 == 1 ? buffer1 : buffer2);\n swap++;\n }\n BlockBuffer finalBuffer = swap % 2 == 0 ? buffer1 : buffer2;\n this.undo = new Undo(finalBuffer.getBlockCount());\n for (int x = -brushSize; x <= brushSize; x++) {\n int x0 = x + tx;\n for (int y = -brushSize; y <= brushSize; y++) {\n int y0 = y + ty;\n for (int z = -brushSize; z <= brushSize; z++) {\n int z0 = z + tz;\n if (x * x + y * y + z * z >= brushSizeSquared && finalBuffer.contains(x, y, z)) {\n setBlockState(x0, y0, z0, finalBuffer.get(x, y, z));\n }\n }\n }\n }\n v.owner().storeUndo(this.undo);\n this.undo = null;\n}\n"
"public KubernetesHost[] getKubernetesHostsInGroup(String kubernetesClusterId) throws NonExistingKubernetesClusterException {\n if (StringUtils.isEmpty(kubernetesClusterId)) {\n throw new NonExistingKubernetesClusterException(\"String_Node_Str\");\n }\n KubernetesCluster kubernetesCluster = kubernetesClustersMap.get(kubernetesClusterId);\n if (kubernetesCluster != null) {\n return kubernetesCluster.getKubernetesHosts();\n }\n throw new NonExistingKubernetesClusterException(\"String_Node_Str\" + \"String_Node_Str\" + kubernetesClusterId);\n}\n"
"public RawPacket[] rtpTransform(RawPacket pktIn) {\n if (!RTPPacketPredicate.INSTANCE.test(pktIn)) {\n return new RawPacket[] { pktIn };\n }\n Context context = this.context;\n long srcSSRC = pktIn.getSSRCAsLong();\n if (srcSSRC != state.currentSSRC) {\n return null;\n }\n RawPacket[] pktsOut;\n FrameDesc startFrame;\n if (transformState.maybeFixInitialIndependentFrame && (startFrame = state.weakStartFrame.get()) != null && startFrame.matches(pktIn)) {\n transformState.maybeFixInitialIndependentFrame = false;\n if (startFrame.getStart() != pktIn.getSequenceNumber()) {\n RawPacketCache inCache = startFrame.getRTPEncoding().getMediaStreamTrack().getMediaStreamTrackReceiver().getStream().getCachingTransformer().getIncomingRawPacketCache();\n int start = startFrame.getStart();\n int len = RTPUtils.sequenceNumberDiff(startFrame.getMaxSeen(), start) + 1;\n pktsOut = new RawPacket[len];\n for (int i = 0; i < pktsOut.length; i++) {\n pktsOut[i] = inCache.get(srcSSRC, (start + i) & 0xFFFF);\n }\n } else {\n pktsOut = new RawPacket[] { pktIn };\n }\n } else {\n pktsOut = new RawPacket[] { pktIn };\n }\n for (RawPacket pktOut : pktsOut) {\n if (pktOut == null) {\n continue;\n }\n int srcSeqNum = pktOut.getSequenceNumber();\n int dstSeqNum = state.seqNumTranslation.apply(srcSeqNum);\n long srcTs = pktOut.getTimestamp();\n long dstTs = state.tsTranslation.apply(srcTs);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + pktIn.getSSRCAsLong() + \"String_Node_Str\" + srcSeqNum + \"String_Node_Str\" + srcTs + \"String_Node_Str\" + targetSSRC + \"String_Node_Str\" + dstSeqNum + \"String_Node_Str\" + dstTs);\n }\n if (srcSeqNum != dstSeqNum) {\n pktOut.setSequenceNumber(dstSeqNum);\n }\n if (dstTs != srcTs) {\n pktOut.setTimestamp(dstTs);\n }\n if (srcSSRC != targetSSRC) {\n pktOut.setSSRC((int) targetSSRC);\n }\n }\n return pktsOut;\n}\n"
"public void shouldNotLoadNullEntries() {\n NullValueCacheLoader<String, String> nullCacheLoader = new NullValueCacheLoader<>();\n cacheLoaderServer.setCacheLoader(nullCacheLoader);\n HashSet<String> keys = new HashSet<String>();\n keys.add(\"String_Node_Str\");\n keys.add(\"String_Node_Str\");\n keys.add(\"String_Node_Str\");\n keys.add(\"String_Node_Str\");\n Map<String, String> map = cache.getAll(keys);\n assertThat(map.size(), is(0));\n}\n"
"public Table getTable(String schemaName, String tableName, Database database) throws DatabaseException {\n ResultSet rs = null;\n try {\n DatabaseMetaData metaData = getMetaData(database);\n rs = metaData.getTables(database.convertRequestedSchemaToCatalog(schemaName), database.convertRequestedSchemaToSchema(schemaName), convertTableNameToDatabaseTableName(tableName), new String[] { \"String_Node_Str\" });\n Table table;\n try {\n if (!rs.next()) {\n return null;\n }\n table = readTable(rs, database);\n } finally {\n rs.close();\n }\n Table table = readTable(rs, database);\n rs.close();\n rs = metaData.getColumns(database.convertRequestedSchemaToCatalog(schemaName), database.convertRequestedSchemaToSchema(schemaName), convertTableNameToDatabaseTableName(tableName), null);\n while (rs.next()) {\n table.getColumns().add(readColumn(rs, database));\n }\n return table;\n } catch (Exception e) {\n throw new DatabaseException(e);\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n }\n }\n }\n}\n"
"public void setUp() throws Exception {\n super.setUp();\n indexName = createTemporaryName();\n index = service.getIndexes().create(indexName);\n tcpPort = findNextUnusedPort(10000);\n tcpInput = service.getInputs().create(String.valueOf(tcpPort), InputKind.Tcp, new Args(\"String_Node_Str\", indexName));\n}\n"
"protected void handleDrop() {\n updateTargetRequest();\n updateTargetEditPart();\n if (DNDService.getInstance().performDrop(TemplateTransfer.getInstance().getTemplate(), getTargetEditPart(), DND.DROP_DEFAULT, new DNDLocation(getDropLocation()))) {\n return;\n }\n boolean isScalarparameter = false;\n boolean isResultSetColumn = false;\n boolean isEmbeddImage = false;\n final Object template = TemplateTransfer.getInstance().getTemplate();\n Assert.isNotNull(template);\n Assert.isTrue(handleValidateDrag(template));\n AbstractToolHandleExtends preHandle = null;\n String transName = null;\n if (template instanceof String) {\n PaletteEntryExtension[] entries = EditpartExtensionManager.getPaletteEntries();\n if (template.toString().startsWith(IReportElementConstants.REPORT_ELEMENT_EXTENDED)) {\n String extensionName = template.toString().substring(IReportElementConstants.REPORT_ELEMENT_EXTENDED.length());\n for (int i = 0; i < entries.length; i++) {\n if (entries[i].getItemName().equals(extensionName)) {\n try {\n CommandUtils.setVariable(\"String_Node_Str\", getTargetEditPart());\n CommandUtils.setVariable(\"String_Node_Str\", getTargetRequest());\n getCreateRequest().getExtendedData().put(DesignerConstants.KEY_NEWOBJECT, entries[i].executeCreate());\n selectAddedObject();\n return;\n } catch (Exception e) {\n ExceptionHandler.handle(e);\n }\n }\n }\n }\n transName = TRANS_LABEL_CREATE_ELEMENT;\n preHandle = BasePaletteFactory.getAbstractToolHandleExtendsFromPaletteName(template);\n } else if (handleValidateInsert(template)) {\n transName = InsertInLayoutAction.DISPLAY_TEXT;\n Object objectType = getFactory(template).getObjectType();\n if (objectType instanceof DataSetHandle) {\n preHandle = new DataSetToolExtends();\n } else if (objectType instanceof DataSetItemModel) {\n preHandle = new DataSetColumnToolExtends();\n } else if (objectType instanceof ResultSetColumnHandle) {\n isResultSetColumn = true;\n preHandle = new DataSetColumnToolExtends();\n } else if (objectType instanceof ScalarParameterHandle) {\n isScalarparameter = true;\n preHandle = new ParameterToolExtends();\n } else if (objectType instanceof DimensionHandle) {\n preHandle = new DimensionHandleToolExtends();\n } else if (objectType instanceof MeasureHandle) {\n preHandle = new MeasureHandleToolExtends();\n }\n } else if (handleValidateLibrary(template)) {\n Object dragObj = getSingleTransferData(template);\n if (dragObj instanceof EmbeddedImageHandle) {\n isEmbeddImage = true;\n preHandle = new ImageToolExtends();\n } else\n preHandle = new LibraryElementsToolHandleExtends((DesignElementHandle) dragObj);\n } else if (handleValidateOutline(template)) {\n Object dragObj = getSingleTransferData(template);\n if (dragObj instanceof EmbeddedImageHandle) {\n isEmbeddImage = true;\n preHandle = new ImageToolExtends();\n }\n }\n if (preHandle != null) {\n CommandStack stack = SessionHandleAdapter.getInstance().getCommandStack();\n stack.startTrans(transName);\n preHandle.setRequest(this.getCreateRequest());\n preHandle.setTargetEditPart(getTargetEditPart());\n if (isEmbeddImage) {\n Object dragObj = getSingleTransferData(template);\n if (dragObj instanceof EmbeddedImageHandle) {\n if (((EmbeddedImageHandle) dragObj).getElementHandle().getRoot() instanceof LibraryHandle) {\n ModuleHandle moduleHandle = SessionHandleAdapter.getInstance().getReportDesignHandle();\n LibraryHandle library = (LibraryHandle) ((EmbeddedImageHandle) dragObj).getElementHandle().getRoot();\n try {\n if (UIUtil.includeLibrary(moduleHandle, library)) {\n EmbeddedImage image = StructureFactory.newEmbeddedImageFrom((EmbeddedImageHandle) dragObj, moduleHandle);\n DNDUtil.addEmbeddedImageHandle(getTargetEditPart().getModel(), image);\n }\n } catch (Exception e) {\n ExceptionHandler.handle(e);\n }\n }\n }\n }\n Command command = this.getCommand();\n if (command != null && command.canExecute()) {\n if (!(preHandle.preHandleMouseUp())) {\n stack.rollback();\n return;\n }\n }\n boolean isTheme = checkTheme(preHandle, getSingleTransferData(template));\n if (!isTheme) {\n super.handleDrop();\n if (!preHandle.postHandleCreation()) {\n stack.rollback();\n return;\n }\n if (isScalarparameter || isResultSetColumn) {\n request.setType(ReportRequest.CREATE_SCALARPARAMETER_OR_RESULTSETCOLUMN);\n selectAddedObject(request);\n } else if (isEmbeddImage) {\n Object dragObj = getSingleTransferData(template);\n final Object model = getCreateRequest().getExtendedData().get(DesignerConstants.KEY_NEWOBJECT);\n try {\n ((ImageHandle) model).setImageName(((EmbeddedImageHandle) dragObj).getName());\n } catch (SemanticException e) {\n ExceptionHandler.handle(e);\n }\n Request request = new Request(ReportRequest.SELECTION);\n selectAddedObject(request);\n } else\n selectAddedObject();\n }\n stack.commit();\n }\n}\n"
"private SelectItemChoice[] getVectorFromList(List list) {\n SelectItemChoice[] selectionList = new SelectItemChoice[list.size()];\n for (int i = 0; i < list.size(); i++) {\n SelectItemChoice item = (SelectItemChoice) list.get(i);\n String label = item.getLabel();\n String value = item.getValue();\n if (value == null)\n continue;\n if (label == null)\n label = value;\n selectionList[i] = new SelectItemChoice(value, label);\n }\n return selectionList;\n}\n"
"protected Set<Relation> collect(Map<String, ElementParameterType> parametersMap, Map<?, ?> options) {\n Set<Relation> relationSet = new HashSet<Relation>();\n for (ElementParameterType paramType : parametersMap.values()) {\n if (paramType.getName().endsWith(\"String_Node_Str\" + getRepositoryTypeName())) {\n String name = paramType.getName().split(\"String_Node_Str\")[0];\n ElementParameterType repositoryTypeParam = parametersMap.get(name + \"String_Node_Str\" + getRepositoryTypeName());\n if (repositoryTypeParam != null && IN_REPOSITORY.equals(repositoryTypeParam.getValue())) {\n ElementParameterType repositoryTypeValueParam = parametersMap.get(name + \"String_Node_Str\" + getRepositoryTypeValueName());\n if (repositoryTypeValueParam != null) {\n String repositoryIdOrValue = repositoryTypeValueParam.getValue();\n if (StringUtils.isNotEmpty(repositoryIdOrValue)) {\n Relation addedRelation = new Relation();\n addedRelation.setId(repositoryIdOrValue);\n addedRelation.setType(getRepositoryRelationType());\n addedRelation.setVersion(RelationshipItemBuilder.LATEST_VERSION);\n relationSet.add(addedRelation);\n }\n }\n }\n }\n }\n return relationSet;\n}\n"
"public static Element F16_3(RenderScript rs) {\n if (rs.mElement_HALF_3 == null) {\n rs.mElement_HALF_3 = createVector(rs, DataType.FLOAT_16, 3);\n }\n return rs.mElement_HALF_3;\n}\n"
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n XMLField field = null;\n Object value = this.getCharacters();\n Class attributeClassification = null;\n boolean isSwaRef = false;\n if (isCollection) {\n isSwaRef = ((XMLBinaryDataCollectionMapping) mapping).isSwaRef();\n field = (XMLField) ((XMLBinaryDataCollectionMapping) mapping).getField();\n attributeClassification = ((XMLBinaryDataCollectionMapping) mapping).getAttributeElementClass();\n } else {\n isSwaRef = ((XMLBinaryDataMapping) mapping).isSwaRef();\n field = (XMLField) ((XMLBinaryDataMapping) mapping).getField();\n attributeClassification = ((XMLBinaryDataMapping) mapping).getAttributeClassification();\n }\n if (isSwaRef && (parent.getUnmarshaller().getAttachmentUnmarshaller() != null)) {\n if (attributeClassification != null && attributeClassification == XMLBinaryDataHelper.getXMLBinaryDataHelper().DATA_HANDLER) {\n value = parent.getUnmarshaller().getAttachmentUnmarshaller().getAttachmentAsDataHandler(value.toString());\n } else {\n value = parent.getUnmarshaller().getAttachmentUnmarshaller().getAttachmentAsByteArray(value.toString());\n }\n if (converter != null) {\n if (converter instanceof XMLConverter) {\n value = ((XMLConverter) converter).convertDataValueToObjectValue(value, parent.getSession(), parent.getUnmarshaller());\n } else {\n value = converter.convertDataValueToObjectValue(value, parent.getSession());\n }\n }\n } else {\n Object valueFromReader = this.parent.getXMLReader().getValue(getCharacters(), attributeClassification);\n if (null != valueFromReader) {\n value = valueFromReader;\n } else {\n value = XMLConversionManager.getDefaultXMLManager().convertSchemaBase64ToByteArray(value.toString());\n }\n value = XMLBinaryDataHelper.getXMLBinaryDataHelper().convertObject(value, attributeClassification, parent.getSession());\n }\n if (converter != null) {\n if (converter instanceof XMLConverter) {\n value = ((XMLConverter) converter).convertDataValueToObjectValue(value, parent.getSession(), parent.getUnmarshaller());\n } else {\n value = converter.convertDataValueToObjectValue(value, parent.getSession());\n }\n }\n if (isCollection) {\n if (value != null) {\n parent.addAttributeValue((ContainerValue) nodeValue, value);\n }\n } else {\n parent.setAttributeValue(value, mapping);\n }\n if (!field.isSelfField()) {\n parent.getXMLReader().setContentHandler(parent);\n parent.endElement(namespaceURI, localName, qName);\n }\n resetStringBuffer();\n}\n"
"public void widgetSelected(final SelectionEvent e) {\n if (!previewButton.getText().equals(Messages.getString(\"String_Node_Str\"))) {\n previewButton.setText(Messages.getString(\"String_Node_Str\"));\n if (getConnection().getSchemas() != null && !getConnection().getSchemas().isEmpty() && getConnection().getSchemas().get(0).getLoopExpression() != null && !(\"String_Node_Str\").equals(getConnection().getSchemas().get(0).getLoopExpression()) && getConnection().getSchemas().get(0).getConceptTargets() != null && !getConnection().getSchemas().get(0).getConceptTargets().isEmpty()) {\n refreshPreview();\n } else {\n previewButton.setText(Messages.getString(\"String_Node_Str\"));\n if (!previewButton.getEnabled()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n handleErrorOutput(outputComposite, tabFolder, outputTabItem);\n }\n });\n log.error(Messages.getString(\"String_Node_Str\"));\n previewButton.setEnabled(true);\n } else {\n previewButton.setEnabled(false);\n }\n }\n } else {\n previewButton.setText(Messages.getString(\"String_Node_Str\"));\n }\n}\n"
"private void init() {\n mapPathwayDBToPathways = new HashMap<>();\n hashPathwayDatabase = new HashMap<EPathwayDatabaseType, PathwayDatabase>();\n hashPathwayToVisibilityState = new HashMap<PathwayGraph, Boolean>();\n xmlParserManager = new PathwayParserManager();\n KgmlSaxHandler kgmlParser = new KgmlSaxHandler();\n xmlParserManager.registerAndInitSaxHandler(kgmlParser);\n}\n"
"public void writeContent(int type, String txt, IStyle style, IStyle inlineStyle, String fontFamily, HyperlinkInfo info, InlineFlag inlineFlag, TextFlag flag, int paragraphWidth) {\n if (inlineFlag == InlineFlag.BLOCK) {\n writeText(type, txt, style, fontFamily, info, flag, paragraphWidth, runIsRtl);\n } else {\n boolean isInline = true;\n if (inlineFlag == InlineFlag.FIRST_INLINE && flag == TextFlag.START) {\n startParagraph(style, isInline, paragraphWidth);\n }\n if (inlineStyle != null)\n writeTextInRun(type, txt, inlineStyle, fontFamily, info, isInline, paragraphWidth);\n else\n writeTextInRun(type, txt, style, fontFamily, info, isInline, paragraphWidth);\n }\n}\n"
"private int _countUnfulfilledInputs(Actor a, CircularList actorList, LLMap waitingTokens) throws IllegalActionException {\n Enumeration ainputPorts = a.inputPorts();\n _debug(\"String_Node_Str\" + ((Entity) a).getFullName());\n int inputCount = 0;\n while (ainputPorts.hasMoreElements()) {\n IOPort ainputPort = (IOPort) ainputPorts.nextElement();\n _debug(\"String_Node_Str\" + ainputPort.getFullName());\n Enumeration cports = ainputPort.deepConnectedOutPorts();\n boolean isonlyexternalport = true;\n while (cports.hasMoreElements()) {\n IOPort cport = (IOPort) cports.nextElement();\n if (actorList.contains(cport.getContainer()))\n isonlyexternalport = false;\n }\n int threshold = _getTokenConsumptionRate(ainputPort);\n _debug(\"String_Node_Str\" + threshold);\n int[] tokens = (int[]) waitingTokens.at(ainputPort);\n boolean isalreadyfulfilled = true;\n int channel;\n for (channel = 0; channel < ainputPort.getWidth(); channel++) {\n _debug(\"String_Node_Str\" + channel);\n _debug(\"String_Node_Str\" + tokens[channel]);\n if (tokens[channel] < threshold)\n isalreadyfulfilled = false;\n }\n if (!isonlyexternalport && !isalreadyfulfilled)\n inputCount++;\n }\n return inputCount;\n}\n"
"public void processChild(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, XMLDescriptor xmlDescriptor, DatabaseMapping mapping) throws SAXException {\n if (xmlDescriptor == null) {\n DescriptorNotFoundContentHandler handler = new DescriptorNotFoundContentHandler(unmarshalRecord, mapping);\n String qnameString = xPathFragment.getLocalName();\n if (xPathFragment.getPrefix() != null) {\n qnameString = xPathFragment.getPrefix() + XMLConstants.COLON + qnameString;\n }\n handler.startElement(xPathFragment.getNamespaceURI(), xPathFragment.getLocalName(), qnameString, atts);\n XMLReader xmlReader = unmarshalRecord.getXMLReader();\n xmlReader.setContentHandler(handler);\n xmlReader.setLexicalHandler(handler);\n return;\n }\n if (xmlDescriptor.hasInheritance()) {\n unmarshalRecord.setAttributes(atts);\n Class classValue = xmlDescriptor.getInheritancePolicy().classFromRow(unmarshalRecord, unmarshalRecord.getSession());\n if (classValue == null) {\n QName leafElementType = unmarshalRecord.getLeafElementType();\n if (leafElementType != null) {\n Object indicator = xmlDescriptor.getInheritancePolicy().getClassIndicatorMapping().get(leafElementType);\n if (indicator == null) {\n throw DescriptorException.missingClassForIndicatorFieldValue(leafElementType, xmlDescriptor.getInheritancePolicy().getDescriptor());\n }\n classValue = (Class) indicator;\n }\n }\n if (classValue != null) {\n xmlDescriptor = (XMLDescriptor) unmarshalRecord.getSession().getDescriptor(classValue);\n } else {\n if (Modifier.isAbstract(xmlDescriptor.getJavaClass().getModifiers())) {\n throw DescriptorException.missingClassIndicatorField(unmarshalRecord, xmlDescriptor.getInheritancePolicy().getDescriptor());\n }\n }\n }\n TreeObjectBuilder targetObjectBuilder = (TreeObjectBuilder) xmlDescriptor.getObjectBuilder();\n UnmarshalRecord childRecord = unmarshalRecord.getChildUnmarshalRecord(targetObjectBuilder);\n unmarshalRecord.setChildRecord(childRecord);\n childRecord.setAttributes(atts);\n childRecord.startDocument();\n childRecord.startElement(xPathFragment.getNamespaceURI(), xPathFragment.getLocalName(), xPathFragment.getShortName(), atts);\n unmarshalRecord.getXMLReader().setContentHandler(unmarshalRecord.getChildRecord());\n try {\n unmarshalRecord.getXMLReader().setProperty(\"String_Node_Str\", unmarshalRecord.getChildRecord());\n } catch (SAXNotRecognizedException ex) {\n } catch (SAXNotSupportedException ex) {\n }\n}\n"
"static void logSurface(SurfaceControl s, String title, String msg, RuntimeException where) {\n String str = \"String_Node_Str\" + s + \"String_Node_Str\" + msg + \"String_Node_Str\" + title;\n Slog.i(TAG_WM, str);\n}\n"
"public boolean isSubtypeOf(FunctionType other) {\n if (other.isTopFunction() || other.isQmarkFunction() || this.isQmarkFunction()) {\n return true;\n }\n if (isTopFunction()) {\n return false;\n }\n Preconditions.checkState(!isLoose && !other.isLoose);\n if (this.isGeneric()) {\n if (this.equals(other)) {\n return true;\n }\n return instantiateGenericsWithUnknown(this).isSubtypeOf(other);\n }\n if (requiredFormals.size() > other.requiredFormals.size()) {\n return false;\n }\n int otherMaxTotalArity = other.requiredFormals.size() + other.optionalFormals.size();\n for (int i = 0; i < otherMaxTotalArity; i++) {\n JSType thisFormal = getFormalType(i);\n JSType otherFormal = other.getFormalType(i);\n if (thisFormal != null && !thisFormal.isUnknown() && !otherFormal.isUnknown() && !otherFormal.isSubtypeOf(thisFormal)) {\n return false;\n }\n }\n if (other.restFormals != null) {\n int thisMaxTotalArity = this.requiredFormals.size() + this.optionalFormals.size();\n if (this.restFormals != null) {\n thisMaxTotalArity++;\n }\n for (int i = otherMaxTotalArity; i < thisMaxTotalArity; i++) {\n JSType thisFormal = getFormalType(i);\n JSType otherFormal = other.getFormalType(i);\n if (thisFormal != null && !thisFormal.isUnknown() && !otherFormal.isUnknown() && !otherFormal.isSubtypeOf(thisFormal)) {\n return false;\n }\n }\n }\n if (nominalType == null && other.nominalType != null || nominalType != null && other.nominalType == null || nominalType != null && other.nominalType != null && !nominalType.isSubclassOf(other.nominalType)) {\n return false;\n }\n if (receiverType != null && other.receiverType == null || receiverType != null && other.receiverType != null && !receiverType.isSubclassOf(other.receiverType)) {\n return false;\n }\n return returnType.isUnknown() || other.returnType.isUnknown() || returnType.isSubtypeOf(other.returnType);\n}\n"
"public void testBackgroundCompaction() throws Exception {\n Options options = new Options();\n options.maxOpenFiles(100);\n options.createIfMissing(true);\n DbImpl db = new DbImpl(this.databaseDir, options);\n Random random = new Random(301);\n for (int i = 0; i < 200000 * STRESS_FACTOR; i++) {\n db.put(randomString(random, 64).getBytes(), new byte[] { 0x01 }, new WriteOptions().sync(false));\n db.get(randomString(random, 64).getBytes());\n if ((i % 50000) == 0 && i != 0) {\n System.out.println(i + \"String_Node_Str\");\n }\n }\n}\n"
"public void toJson(Mirror<?> mirror, Object currentObj, JsonRender r, JsonFormat jf) throws IOException {\n String df = jf.getDateFormatRaw();\n if (df == null)\n df = \"String_Node_Str\";\n Locale locale = null;\n String tmp = jf.getLocale();\n if (tmp != null)\n locale = Locale.forLanguageTag(tmp);\n else\n locale = Locale.getDefault();\n r.string2Json(DateTimeFormatter.ofPattern(df, locale).withZone(ZoneId.systemDefault()).format((TemporalAccessor) currentObj));\n}\n"
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n HttpRequest request = (HttpRequest) msg;\n QueryStringDecoder decoder = new QueryStringDecoder(request.getUri());\n Map<String, List<String>> params = decoder.getParameters();\n if (params.isEmpty()) {\n decoder = new QueryStringDecoder(request.getContent().toString(Charset.defaultCharset()), false);\n params = decoder.getParameters();\n }\n Position position = new Position();\n position.setProtocol(getProtocolName());\n String id;\n if (params.containsKey(\"String_Node_Str\")) {\n id = params.get(\"String_Node_Str\").get(0);\n } else {\n id = params.get(\"String_Node_Str\").get(0);\n }\n if (!identify(id, channel)) {\n return null;\n }\n position.setDeviceId(getDeviceId());\n position.setValid(true);\n if (params.containsKey(\"String_Node_Str\")) {\n try {\n long timestamp = Long.parseLong(params.get(\"String_Node_Str\").get(0));\n if (timestamp < Integer.MAX_VALUE) {\n timestamp *= 1000;\n }\n position.setTime(new Date(timestamp));\n } catch (NumberFormatException error) {\n DateFormat dateFormat = new SimpleDateFormat(\"String_Node_Str\");\n position.setTime(dateFormat.parse(params.get(\"String_Node_Str\").get(0)));\n }\n } else {\n position.setTime(new Date());\n }\n position.setLatitude(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n position.setLongitude(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n if (params.containsKey(\"String_Node_Str\")) {\n position.setSpeed(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.setCourse(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n } else if (params.containsKey(\"String_Node_Str\")) {\n position.setCourse(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.setAltitude(Double.parseDouble(params.get(\"String_Node_Str\").get(0)));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.set(Event.KEY_HDOP, params.get(\"String_Node_Str\").get(0));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.set(\"String_Node_Str\", params.get(\"String_Node_Str\").get(0));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.set(\"String_Node_Str\", params.get(\"String_Node_Str\").get(0));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.set(Event.KEY_BATTERY, params.get(\"String_Node_Str\").get(0));\n }\n if (params.containsKey(\"String_Node_Str\")) {\n position.set(\"String_Node_Str\", params.get(\"String_Node_Str\").get(0));\n }\n if (channel != null) {\n HttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);\n channel.write(response).addListener(ChannelFutureListener.CLOSE);\n }\n return position;\n}\n"
"public long[] generateHashes(PassthroughConnection ptc, byte[] buffer) {\n synchronized (ptc.hashThreadSyncObject) {\n if (ptc.hashThreads == null) {\n ptc.hashThreads = new HashThread[4];\n for (int cnt = 0; cnt < 4; cnt++) {\n ptc.hashThreads[cnt] = new HashThread(ptc);\n ptc.hashThreads[cnt].start();\n }\n }\n }\n HashThread[] hashThreads = ptc.hashThreads;\n for (int cnt = 0; cnt < 40; cnt += 10) {\n hashThreads[cnt / 10].init(buffer, 65536, cnt, cnt + 10, ptc.hashes, dontWipe);\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n hashThreads[cnt].doneJoin();\n }\n return ptc.hashes;\n}\n"
"private Set<String> processPoolUpdates(Map<String, EventBuilder> poolEvents, List<PoolUpdate> updatedPools) {\n Set<String> entitlementsToRegen = Util.newSet();\n for (PoolUpdate updatedPool : updatedPools) {\n Pool existingPool = updatedPool.getPool();\n log.info(\"String_Node_Str\", updatedPool.toString());\n if (existingPool.isMarkedForDelete()) {\n log.warn(\"String_Node_Str\", existingPool.getId());\n deletePool(existingPool);\n continue;\n }\n this.poolCurator.merge(existingPool);\n this.poolCurator.flush();\n if (updatedPool.getQuantityChanged()) {\n this.deleteExcessEntitlements(existingPool);\n }\n if (updatedPool.getDatesChanged() || updatedPool.getProductsChanged() || updatedPool.getBrandingChanged()) {\n List<String> entitlements = poolCurator.retrieveFreeEntitlementIdsOfPool(existingPool, true);\n entitlementsToRegen.addAll(entitlements);\n }\n EventBuilder builder = poolEvents.get(existingPool.getId());\n if (builder != null) {\n Event event = builder.setNewEntity(existingPool).buildEvent();\n sink.queueEvent(event);\n } else {\n log.warn(\"String_Node_Str\", existingPool);\n }\n }\n return entitlementsToRegen;\n}\n"
"private Channel getChannel() throws Exception {\n Thread thread = Thread.currentThread();\n synchronized (channels) {\n Channel channel = channels.get(thread);\n if (channel == null) {\n while (channel == null) {\n Channel unusedChannel = unusedChannels.poll();\n if (unusedChannel == null) {\n break;\n } else if (unusedChannel.isConnected()) {\n msgLog.logMessage(\"String_Node_Str\");\n channel = unusedChannel;\n } else {\n msgLog.logMessage(\"String_Node_Str\");\n }\n }\n if (channel == null) {\n for (int i = 0; i < 5; i++) {\n ChannelFuture channelFuture = bootstrap.connect(new InetSocketAddress(hostNameOrIp, port));\n channelFuture.awaitUninterruptibly();\n if (channelFuture.isSuccess()) {\n channel = channelFuture.getChannel();\n msgLog.logMessage(\"String_Node_Str\" + hostNameOrIp + \"String_Node_Str\" + port, true);\n break;\n } else {\n msgLog.logMessage(\"String_Node_Str\" + hostNameOrIp + \"String_Node_Str\" + port);\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n Thread.interrupted();\n }\n }\n }\n }\n if (channel == null) {\n throw new IOException(\"String_Node_Str\");\n }\n channels.put(thread, channel);\n }\n return channel;\n }\n}\n"
"protected ContainerContent createContainerContent() {\n ContainerContent content = (ContainerContent) reportContent.createContainerContent();\n content.setName(\"String_Node_Str\");\n content.setHeight(new DimensionType(4, \"String_Node_Str\"));\n ActionContent hyperlink = new ActionContent();\n hyperlink.setHyperlink(\"String_Node_Str\", \"String_Node_Str\");\n Map attr = new HashMap();\n attr.put(\"String_Node_Str\", \"String_Node_Str\");\n hyperlink.setDrillThrough(\"String_Node_Str\", true, \"String_Node_Str\", attr, attr, \"String_Node_Str\", \"String_Node_Str\", null);\n content.setHyperlinkAction(hyperlink);\n return content;\n}\n"
"public static PaletteRoot createPaletteRootWithAllComponents() {\n Set<IComponent> components = ComponentsFactoryProvider.getInstance().getComponents();\n List<String> families = new ArrayList<String>();\n Hashtable<String, PaletteDrawer> ht = new Hashtable<String, PaletteDrawer>();\n PaletteRoot palette = new PaletteRoot();\n for (IComponent component : components) {\n if (component.isTechnical() || component.getComponentType() == EComponentType.JOBLET) {\n continue;\n }\n String family = component.getOriginalFamilyName();\n families.add(family);\n }\n Collections.sort(families);\n for (String family : families) {\n String[] strings = family.split(ComponentsFactoryProvider.FAMILY_SEPARATOR_REGEX);\n for (String string : strings) {\n PaletteDrawer componentsDrawer = ht.get(string);\n if (componentsDrawer == null) {\n componentsDrawer = createComponentDrawer(palette, ht, string, family);\n }\n }\n }\n for (IComponent component : components) {\n if (component.getComponentType() == EComponentType.JOBLET) {\n continue;\n }\n String family = component.getOriginalFamilyName();\n String[] strings = family.split(ComponentsFactoryProvider.FAMILY_SEPARATOR_REGEX);\n for (String string : strings) {\n CombinedTemplateCreationEntry componentEntry = new CombinedTemplateCreationEntry(component.getName(), component.getName(), null, null, component.getIcon24(), component.getIcon32());\n PaletteDrawer componentsDrawer = ht.get(string);\n componentEntry.setParent(componentsDrawer);\n componentsDrawer.add(componentEntry);\n }\n }\n return palette;\n}\n"
"protected void setTileEntiy(Class<? extends TileEntity> c) {\n AEBaseTile.registerTileItem(c, new ItemStackSrc(this, 0));\n GameRegistry.registerTileEntity(tileEntityType = c, FeatureFullname);\n}\n"
"private void updateView(List<Component> components) {\n this.buttons.removeAllComponents();\n this.taskPanel.removeAllComponents();\n if (components.size() == 1) {\n Component c = components.get(0);\n this.taskPanel.addComponent(c);\n } else {\n Accordion accordionLayout = new Accordion();\n accordionLayout.setSizeFull();\n for (Component component : components) {\n accordionLayout.addTab(component, component.getCaption(), null);\n }\n this.taskPanel.addComponent(accordionLayout);\n }\n for (Entry<String, TaskField> component : this.taskManager.getFields().entrySet()) {\n TaskField tf = component.getValue();\n if (tf.getWidget().getType() == WidgetType.BUTTON_SUBMIT) {\n Button button = (Button) tf.getComponent();\n this.buttons.addButton(button);\n }\n }\n Button buttonKatkesta = new Button(\"String_Node_Str\");\n this.buttons.addButton(buttonKatkesta);\n this.buttons.setComponentAlignment(buttonKatkesta, Alignment.MIDDLE_RIGHT);\n buttonKatkesta.setWidth(\"String_Node_Str\");\n Button buttonClose = new Button(\"String_Node_Str\");\n buttonClose.addListener(new Button.ClickListener() {\n public void buttonClick(ClickEvent event) {\n getWindow().close();\n }\n });\n this.buttons.addButton(buttonClose);\n this.buttons.setComponentAlignment(buttonClose, Alignment.MIDDLE_RIGHT);\n buttonClose.setWidth(\"String_Node_Str\");\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = game.getObject(source.getSourceId());\n if (controller != null && sourceObject != null) {\n Cards cards = new CardsImpl();\n cards.addAll(controller.getLibrary().getTopCards(game, 4));\n boolean properCardFound = cards.count(filterPutInHand, source.getControllerId(), source.getSourceId(), game) > 0;\n if (!cards.isEmpty()) {\n controller.revealCards(sourceObject.getIdName(), cards, game);\n TargetCard target = new TargetCard(Zone.LIBRARY, filterPutInHand);\n if (properCardFound && controller.chooseUse(outcome, \"String_Node_Str\", source, game) && controller.choose(Outcome.DrawCard, cards, target, game)) {\n Card card = game.getCard(target.getFirstTarget());\n if (card != null) {\n cards.remove(card);\n controller.moveCards(card, Zone.HAND, source, game);\n }\n }\n controller.moveCards(cards, Zone.GRAVEYARD, source, game);\n }\n return true;\n }\n return false;\n}\n"
"public void writeValidation(List<Annotation> validationAnnotations, final JavaScriptWriter writer) {\n ItemProcessor<Annotation> annotationItemProcessor = new ItemProcessor<Annotation>() {\n boolean hasPropertyTypeSet = false;\n protected void process(Annotation annotation, boolean isLast) {\n ValidationAnnotationProcessor annotationProcessor = annotationProcessorProvider.getValidator(annotation);\n if (annotationProcessor != null) {\n if (annotationProcessor.requiresType()) {\n appendType(hasPropertyTypeSet, writer, annotationProcessor.requiredType());\n hasPropertyTypeSet = true;\n }\n annotationProcessor.writeValidatorsToStream(annotation, writer);\n writer.writeLine(\"String_Node_Str\", \"String_Node_Str\", !isLast);\n } else {\n LOG.debug(\"String_Node_Str\");\n }\n }\n };\n List<Annotation> filteredAnnotations = filterByGroupRules(validationAnnotations);\n annotationItemProcessor.process(filteredAnnotations);\n}\n"
"public void run() {\n try {\n data.put(\"String_Node_Str\", getCountryCode());\n Webb webb = Webb.create();\n Response<String> response = webb.post(\"String_Node_Str\").params(data).asString();\n Messages.log(Messages.getFormatted(\"String_Node_Str\", \"String_Node_Str\", response.getStatusLine()));\n File file = new File(UltimateCore.get().getDataFolder().toFile(), \"String_Node_Str\");\n if (!file.exists()) {\n file.getParentFile().mkdirs();\n file.createNewFile();\n }\n List<String> lines = new ArrayList<>();\n for (String key : data.keySet()) {\n lines.add(key + \"String_Node_Str\" + data.get(key));\n }\n FileUtil.writeLines(file, lines);\n } catch (Exception e) {\n Messages.log(Messages.getFormatted(\"String_Node_Str\", \"String_Node_Str\", e.getMessage()));\n }\n}\n"
"public Object getValueToWrite(Object value, Object parent, XMLRecord record, XMLField field, XMLField includeField, AbstractSession session) {\n XMLMarshaller marshaller = record.getMarshaller();\n Object element = value;\n boolean isAttribute = ((XMLField) getField()).getLastXPathFragment().isAttribute();\n if (getValueConverter() != null) {\n Converter converter = getValueConverter();\n if (converter instanceof XMLConverter) {\n element = ((XMLConverter) converter).convertObjectValueToDataValue(element, session, record.getMarshaller());\n } else {\n element = converter.convertObjectValueToDataValue(element, session);\n }\n }\n if (isAttribute) {\n if (isSwaRef() && (marshaller.getAttachmentMarshaller() != null)) {\n try {\n String id = marshaller.getAttachmentMarshaller().addSwaRefAttachment((DataHandler) element);\n element = id;\n } catch (ClassCastException cce) {\n throw XMLMarshalException.invalidSwaRefAttribute(getAttributeClassification().getName());\n }\n } else {\n XMLBinaryDataHelper.EncodedData data = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(element, record.getMarshaller(), mimeTypePolicy.getMimeType(parent));\n String base64Value = ((XMLConversionManager) session.getDatasourcePlatform().getConversionManager()).buildBase64StringFromBytes(data.getData());\n element = base64Value;\n }\n } else {\n if (record.isXOPPackage() && !isSwaRef() && !shouldInlineBinaryData()) {\n String c_id = \"String_Node_Str\";\n if ((getCollectionContentType() == ClassConstants.ABYTE) || (getCollectionContentType() == ClassConstants.APBYTE)) {\n if (getCollectionContentType() == ClassConstants.ABYTE) {\n element = session.getDatasourcePlatform().getConversionManager().convertObject(element, ClassConstants.APBYTE);\n }\n c_id = marshaller.getAttachmentMarshaller().addMtomAttachment((byte[]) element, 0, ((byte[]) element).length, this.mimeTypePolicy.getMimeType(parent), field.getLastXPathFragment().getLocalName(), field.getLastXPathFragment().getNamespaceURI());\n } else if (getCollectionContentType() == XMLBinaryDataHelper.getXMLBinaryDataHelper().DATA_HANDLER) {\n c_id = marshaller.getAttachmentMarshaller().addMtomAttachment((DataHandler) element, field.getLastXPathFragment().getLocalName(), field.getLastXPathFragment().getNamespaceURI());\n } else {\n XMLBinaryDataHelper.EncodedData data = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(element, marshaller, this.mimeTypePolicy.getMimeType(parent));\n byte[] bytes = data.getData();\n c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0, bytes.length, data.getMimeType(), field.getLastXPathFragment().getLocalName(), field.getLastXPathFragment().getNamespaceURI());\n }\n DOMRecord include = new DOMRecord(field.getLastXPathFragment().getLocalName());\n include.setSession(session);\n include.put(includeField, c_id);\n element = include;\n NamespaceResolver resolver = ((XMLField) getField()).getNamespaceResolver();\n if (resolver == null || resolver.resolveNamespaceURI(XMLConstants.XOP_URL) == null) {\n resolver = new NamespaceResolver();\n resolver.put(XMLConstants.XOP_PREFIX, XMLConstants.XOP_URL);\n String xpath = XMLConstants.XOP_PREFIX + \"String_Node_Str\" + INCLUDE;\n XMLField incField = new XMLField(xpath);\n incField.setNamespaceResolver(resolver);\n Object obj = include.getIndicatingNoEntry(incField);\n if (obj != null && obj instanceof DOMRecord) {\n if (((DOMRecord) obj).getDOM().getNodeType() == Node.ELEMENT_NODE) {\n ((Element) ((DOMRecord) obj).getDOM()).setAttributeNS(XMLConstants.XMLNS_URL, XMLConstants.XMLNS + \"String_Node_Str\" + XMLConstants.XOP_PREFIX, XMLConstants.XOP_URL);\n }\n }\n }\n } else if (isSwaRef() && (marshaller.getAttachmentMarshaller() != null)) {\n try {\n String c_id = marshaller.getAttachmentMarshaller().addSwaRefAttachment((DataHandler) element);\n element = c_id;\n } catch (Exception ex) {\n }\n } else {\n if (!((getCollectionContentType() == ClassConstants.ABYTE) || (getCollectionContentType() == ClassConstants.APBYTE))) {\n element = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(element, marshaller, this.mimeTypePolicy.getMimeType(parent)).getData();\n }\n }\n }\n return element;\n}\n"
"private void placeComponents() {\n FillLayout flMain = new FillLayout();\n flMain.marginHeight = 0;\n flMain.marginWidth = 0;\n GridLayout glAttributes = new GridLayout();\n glAttributes.horizontalSpacing = 5;\n glAttributes.verticalSpacing = 5;\n glAttributes.marginHeight = 7;\n glAttributes.marginWidth = 7;\n GridLayout glGeneral = new GridLayout();\n glGeneral.numColumns = 2;\n glGeneral.horizontalSpacing = 5;\n glGeneral.verticalSpacing = 5;\n FillLayout flOutline = new FillLayout();\n this.setLayout(flMain);\n if (sGroupName == null || sGroupName.length() == 0) {\n grpAttributes = new Composite(this, SWT.NONE);\n } else {\n grpAttributes = new Group(this, SWT.NONE);\n ((Group) grpAttributes).setText(sGroupName);\n }\n grpAttributes.setLayout(glAttributes);\n cmpGeneral = new Composite(grpAttributes, SWT.NONE);\n GridData gdCMPGeneral = new GridData(GridData.FILL_HORIZONTAL);\n cmpGeneral.setLayoutData(gdCMPGeneral);\n cmpGeneral.setLayout(glGeneral);\n boolean bEnableUI = bEnabled && this.lblCurrent.isVisible();\n if (attributesContext.isVisibilityEnabled) {\n cbVisible = new Button(cmpGeneral, SWT.CHECK);\n GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL);\n gdCBVisible.horizontalSpan = 2;\n cbVisible.setLayoutData(gdCBVisible);\n cbVisible.setSelection(this.lblCurrent.isVisible());\n cbVisible.setText(Messages.getString(\"String_Node_Str\"));\n cbVisible.addSelectionListener(this);\n if (bEnabled) {\n bEnableUI = cbVisible.getSelection();\n }\n }\n if (attributesContext.isLabelEnabled) {\n lblLabel = new Label(cmpGeneral, SWT.NONE);\n {\n GridData gd = new GridData();\n lblLabel.setLayoutData(gd);\n lblLabel.setText(Messages.getString(\"String_Node_Str\"));\n }\n txtLabel = new ExternalizedTextEditorComposite(cmpGeneral, SWT.BORDER | SWT.SINGLE, -1, -1, wizardContext.getUIServiceProvider().getRegisteredKeys(), wizardContext.getUIServiceProvider(), \"String_Node_Str\");\n {\n GridData gd = new GridData(GridData.FILL_BOTH);\n txtLabel.setLayoutData(gd);\n txtLabel.addListener(this);\n }\n }\n if (attributesContext.isPositionEnabled) {\n lblPosition = new Label(cmpGeneral, SWT.NONE);\n GridData gdLBLPosition = new GridData();\n lblPosition.setLayoutData(gdLBLPosition);\n lblPosition.setText(Messages.getString(\"String_Node_Str\"));\n lblPosition.setEnabled(bEnableUI);\n cmbPosition = new Combo(cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY);\n GridData gdCMBPosition = new GridData(GridData.FILL_BOTH);\n cmbPosition.setLayoutData(gdCMBPosition);\n cmbPosition.addSelectionListener(this);\n cmbPosition.setEnabled(bEnableUI);\n }\n if (attributesContext.isFontEnabled) {\n lblFont = new Label(cmpGeneral, SWT.NONE);\n GridData gdLFont = new GridData();\n lblFont.setLayoutData(gdLFont);\n lblFont.setText(Messages.getString(\"String_Node_Str\"));\n lblFont.setEnabled(bEnableUI);\n fdcFont = new FontDefinitionComposite(cmpGeneral, SWT.NONE, wizardContext, this.fdCurrent, this.cdFont, attributesContext.isFontAlignmentEnabled);\n GridData gdFDCFont = new GridData(GridData.FILL_BOTH);\n gdFDCFont.widthHint = fdcFont.getPreferredSize().x;\n gdFDCFont.grabExcessVerticalSpace = false;\n fdcFont.setLayoutData(gdFDCFont);\n fdcFont.addListener(this);\n fdcFont.setEnabled(bEnableUI);\n }\n lblFill = new Label(cmpGeneral, SWT.NONE);\n GridData gdLFill = new GridData();\n lblFill.setLayoutData(gdLFill);\n lblFill.setText(Messages.getString(\"String_Node_Str\"));\n lblFill.setEnabled(bEnableUI);\n fccBackground = new FillChooserComposite(cmpGeneral, SWT.NONE, wizardContext, fBackground, false, false);\n GridData gdFCCBackground = new GridData(GridData.FILL_BOTH);\n gdFCCBackground.heightHint = fccBackground.getPreferredSize().y;\n fccBackground.setLayoutData(gdFCCBackground);\n fccBackground.addListener(this);\n fccBackground.setEnabled(bEnableUI);\n if (attributesContext.isShadowEnabled) {\n lblShadow = new Label(cmpGeneral, SWT.NONE);\n GridData gdLBLShadow = new GridData();\n lblShadow.setLayoutData(gdLBLShadow);\n lblShadow.setText(Messages.getString(\"String_Node_Str\"));\n lblShadow.setEnabled(bEnableUI);\n fccShadow = new FillChooserComposite(cmpGeneral, SWT.NONE, wizardContext, cdShadow, false, false);\n GridData gdFCCShadow = new GridData(GridData.FILL_BOTH);\n fccShadow.setLayoutData(gdFCCShadow);\n fccShadow.addListener(this);\n fccShadow.setEnabled(bEnableUI);\n }\n grpOutline = new Group(grpAttributes, SWT.NONE);\n GridData gdGOutline = new GridData(GridData.FILL_HORIZONTAL);\n gdGOutline.heightHint = 110;\n grpOutline.setLayoutData(gdGOutline);\n grpOutline.setText(Messages.getString(\"String_Node_Str\"));\n grpOutline.setLayout(flOutline);\n grpOutline.setEnabled(bEnableUI);\n liacOutline = new LineAttributesComposite(grpOutline, SWT.NONE, wizardContext, laCurrent, true, true, true);\n liacOutline.addListener(this);\n liacOutline.setAttributesEnabled(bEnableUI);\n if (attributesContext.isInsetsEnabled) {\n icInsets = new InsetsComposite(grpAttributes, SWT.NONE, insets, sUnits, wizardContext.getUIServiceProvider());\n GridData gdICInsets = new GridData(GridData.FILL_HORIZONTAL);\n gdICInsets.heightHint = icInsets.getPreferredSize().y;\n gdICInsets.grabExcessVerticalSpace = false;\n icInsets.addListener(this);\n icInsets.setLayoutData(gdICInsets);\n icInsets.setEnabled(bEnableUI);\n }\n populateLists();\n}\n"
"public void node(Node node, NamespaceResolver namespaceResolver) {\n if (node.getNodeType() == Node.ATTRIBUTE_NODE) {\n Attr attr = (Attr) node;\n String resolverPfx = null;\n if (getNamespaceResolver() != null) {\n resolverPfx = this.getNamespaceResolver().resolveNamespaceURI(attr.getNamespaceURI());\n }\n if (resolverPfx != null) {\n attribute(attr.getNamespaceURI(), XMLConstants.EMPTY_STRING, resolverPfx + XMLConstants.COLON + attr.getLocalName(), attr.getNodeValue());\n } else {\n attribute(attr.getNamespaceURI(), XMLConstants.EMPTY_STRING, attr.getName(), attr.getNodeValue());\n if (attr.getNamespaceURI() != null) {\n attribute(XMLConstants.XMLNS_URL, XMLConstants.EMPTY_STRING, XMLConstants.XMLNS + XMLConstants.COLON + attr.getPrefix(), attr.getNamespaceURI());\n }\n }\n } else if (node.getNodeType() == Node.TEXT_NODE) {\n characters(node.getNodeValue());\n } else {\n try {\n OutputStreamRecordContentHandler handler = new OutputStreamRecordContentHandler();\n XMLFragmentReader xfragReader = new XMLFragmentReader(namespaceResolver);\n xfragReader.setContentHandler(handler);\n xfragReader.setProperty(\"String_Node_Str\", handler);\n xfragReader.parse(node);\n } catch (SAXException sex) {\n throw XMLMarshalException.marshalException(sex);\n }\n }\n}\n"
"public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... rowIds) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entityClass);\n if (rowIds == null) {\n return null;\n }\n List results = new ArrayList<E>();\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(entityMetadata.getPersistenceUnit());\n EntityType entityType = metaModel.entity(entityClass);\n List<AbstractManagedType> subManagedType = ((AbstractManagedType) entityType).getSubManagedType();\n try {\n results = handler.readAll(entityMetadata.getSchema(), entityMetadata.getEntityClazz(), entityMetadata, Arrays.asList(rowIds), entityMetadata.getRelationNames());\n } catch (IOException ioex) {\n log.error(\"String_Node_Str\", ioex);\n throw new KunderaException(ioex);\n }\n return results;\n}\n"
"public static ContentType extractRequestContentType(final SubLocatorParameter param) throws ODataUnsupportedMediaTypeException {\n String contentType = getSafeHeader(HttpHeaders.CONTENT_TYPE, param.getHttpHeaders());\n if (contentType == null || contentType.isEmpty()) {\n return ContentType.APPLICATION_OCTET_STREAM;\n } else if (ContentType.isParseable(contentType)) {\n return ContentType.create(contentType);\n } else {\n throw new ODataUnsupportedMediaTypeException(ODataUnsupportedMediaTypeException.NOT_SUPPORTED_CONTENT_TYPE.addContent(contentType));\n }\n}\n"
"public void onClick(DialogInterface dialog, int id) {\n mEditorFragmentListener.onMediaUploadCancelClicked(mediaId);\n mWebView.post(new Runnable() {\n public void run() {\n switch(mediaType) {\n case IMAGE:\n mWebView.execJavaScriptFromString(\"String_Node_Str\" + mediaId + \"String_Node_Str\");\n break;\n case VIDEO:\n mWebView.execJavaScriptFromString(\"String_Node_Str\" + mediaId + \"String_Node_Str\");\n }\n mUploadingMedia.remove(mediaId);\n }\n });\n dialog.dismiss();\n}\n"
"private void setupViewPager(ViewPager viewPager) {\n adapter = new ViewPagerAdapter(getChildFragmentManager());\n SentRequestsFragment sentRequestsFragment = new SentRequestsFragment();\n ReceivedRequestsFragment receivedRequestsFragment = new ReceivedRequestsFragment();\n adapter.addFrag(sentRequestsFragment, \"String_Node_Str\");\n adapter.addFrag(receivedRequestsFragment, \"String_Node_Str\");\n viewPager.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n}\n"
"public void filterMappings(MultiMappingStore multiMappings) {\n List<Mapping> ambiguousList = new ArrayList<>();\n Set<ITree> ignored = new HashSet<>();\n for (ITree src : multiMappings.getSrcs()) {\n if (multiMappings.isSrcUnique(src))\n addMappingRecursively(src, multiMappings.getDst(src).iterator().next());\n else if (!ignored.contains(src)) {\n Set<ITree> adsts = multiMappings.getDst(src);\n Set<ITree> asrcs = multiMappings.getSrc(multiMappings.getDst(src).iterator().next());\n for (ITree asrc : asrcs) for (ITree adst : adsts) ambiguousList.add(new Mapping(asrc, adst));\n ignored.addAll(asrcs);\n }\n }\n Set<ITree> srcIgnored = new HashSet<>();\n Set<ITree> dstIgnored = new HashSet<>();\n Collections.sort(ambiguousList, new SiblingsMappingComparator(ambiguousList, mappings, getMaxTreeSize()));\n retainBestMapping(ambiguousList, srcIgnored, dstIgnored);\n}\n"
"public boolean handle(Object receive) throws Exception {\n if (MessageCodes.RpbDelResp.equals(receive)) {\n handler.handle(PbcRiakOperations.this.support.newResponse());\n return true;\n }\n throw new IncomprehensibleProtocolException(name);\n}\n"
"protected void disableAlignmentBtns() {\n for (int i = 0; i < listAlignmentButtons.size(); i++) {\n listAlignmentButtons.get(i).setSelection(false);\n listAlignmentButtons.get(i).setEnabled(false);\n }\n}\n"
"private Event[] executeSelector(StreamEvent streamEvents, MetaStreamEvent.EventType eventType) {\n ComplexEventChunk<StateEvent> complexEventChunk = new ComplexEventChunk<>(true);\n while (streamEvents != null) {\n StateEvent stateEvent = stateEventPool.borrowEvent();\n stateEvent.addEvent(0, streamEvents);\n complexEventChunk.add(stateEvent);\n streamEvents = streamEvents.getNext();\n }\n ComplexEventChunk outputComplexEventChunk = selector.execute(complexEventChunk);\n if (outputComplexEventChunk != null) {\n List<Event> events = new ArrayList<>();\n outputComplexEventChunk.reset();\n while (outputComplexEventChunk.hasNext()) {\n ComplexEvent complexEvent = outputComplexEventChunk.next();\n if (eventType != MetaStreamEvent.EventType.AGGREGATE) {\n events.add(new Event(complexEvent.getTimestamp(), complexEvent.getOutputData()));\n } else {\n events.add(new Event(complexEvent.getTimestamp(), ((StateEvent) complexEvent).getStreamEvent(0).getOutputData()));\n }\n }\n return events.toArray(new Event[0]);\n } else {\n return null;\n }\n}\n"
"private void populate() throws VirtException {\n if (getIpAddress() == null) {\n RuntimeContext.logger.log(Level.INFO, \"String_Node_Str\" + getName());\n return;\n }\n try {\n Connect connection = connection();\n if (connection != null) {\n populateStoragePools(connection().listStoragePools());\n Collection<StorageVol> storageVols = new ArrayList<StorageVol>();\n for (StoragePool pool : storagePools.values()) {\n for (StorageVol vol : pool.volumes()) {\n storageVols.add(vol);\n }\n }\n for (int domainId : connection().listDomains()) {\n try {\n populateDomain(domainId, storageVols);\n } catch (VirtException e) {\n for (int d : connection().listDomains()) {\n if (d == domainId) {\n throw e;\n }\n }\n }\n }\n for (String domainId : connection().listDefinedDomains()) {\n try {\n populateDomain(domainId, storageVols);\n } catch (VirtException e) {\n for (String d : connection().listDefinedDomains()) {\n if (d.equals(domainId)) {\n throw e;\n }\n }\n }\n }\n }\n } catch (VirtException e) {\n RuntimeContext.logger.log(Level.SEVERE, \"String_Node_Str\", e);\n throw e;\n }\n}\n"
"public int translateToPE(int itemPC) {\n if (itemMap_PC_to_PE.containsKey(itemPC)) {\n return itemMap_PC_to_PE.get(itemPC);\n } else {\n return DEFAULT_BLOCK_TO_PE;\n }\n}\n"
"public void updateAllChannels() {\n Cursor c = getContentResolver().query(FeedDroid.Channels.CONTENT_URI, new String[] { FeedDroid.Channels._ID, FeedDroid.Channels.URL }, null, null, null);\n c.moveToFirst();\n do {\n long id = c.getLong(c.getColumnIndex(FeedDroid.Channels._ID));\n String url = c.getString(c.getColumnIndex(FeedDroid.Channels.URL));\n FeedDetails feed = new FeedDetails();\n feed.id = id;\n feed.url = url;\n feeds.add(feed);\n } while (c.moveToNext());\n c.close();\n}\n"
"public void shouldLogMessageIncludingSession() throws Exception {\n IoSession session = context.mock(IoSession.class, \"String_Node_Str\");\n new DefaultExceptionMonitor().exceptionCaught(new NullPointerException(EXCEPTION_MESSAGE), session);\n checkLogMessageRule.setExpectedPatterns(Arrays.asList(\"String_Node_Str\"));\n}\n"
"public void onSuccess(List<GwtUser> result) {\n if (project.isInDatabase()) {\n CreateProjectDialog dialog = new CreateProjectDialog(project.getId(), project.getName(), project.getLeadRequirementEngineer().getUserId(), listOfProjects, result, caller, project.getCases().getId());\n dialog.center();\n dialog.setModal(true);\n dialog.show();\n } else {\n CreateProjectDialog dialog = new CreateProjectDialog(listOfProjects, result, caller);\n dialog.center();\n dialog.setModal(true);\n dialog.show();\n }\n}\n"
"public void put(KeyType key, ValueType value) {\n Set<ValueType> hashTmp = super.get(key);\n if (hashTmp == null) {\n hashTmp = new HashSet<ValueType>();\n }\n tmpSet.add(value);\n internalMap.put(key, tmpSet);\n return null;\n}\n"
"private static IMetadataTable getSchemaTablefromComponent(final String componentName, final String tableName) {\n IComponent tmpComponent = ComponentsFactoryProvider.getInstance().get(componentName, ComponentCategory.CATEGORY_4_DI.getName());\n DataNode tmpNode = new DataNode(tmpComponent, \"String_Node_Str\");\n for (int k = 0; k < tmpNode.getElementParameters().size(); k++) {\n IElementParameter currentParam = tmpNode.getElementParameters().get(k);\n if (currentParam.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE) || currentParam.getFieldType().equals(EParameterFieldType.SCHEMA_REFERENCE)) {\n Object value = currentParam.getValue();\n if (value instanceof IMetadataTable) {\n IMetadataTable table = null;\n if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.JAVA)) {\n table = ((IMetadataTable) value).clone(true);\n } else {\n table = ((IMetadataTable) value).clone();\n }\n table.setTableName(tableName);\n table.setAttachedConnector(currentParam.getContext());\n for (IMetadataColumn column : table.getListColumns()) {\n column.setDefault(\"String_Node_Str\");\n }\n return table;\n }\n }\n }\n return null;\n}\n"
"private boolean instantiateQuery(Indicator indicator) {\n if (ColumnsetPackage.eINSTANCE.getRowMatchingIndicator().equals(indicator.eClass())) {\n RowMatchingIndicator rowMatchingIndicator = (RowMatchingIndicator) indicator;\n EList<Column> columnSetA = rowMatchingIndicator.getColumnSetA();\n EList<Column> columnSetB = rowMatchingIndicator.getColumnSetB();\n if (columnSetA.size() != columnSetB.size()) {\n return traceError(\"String_Node_Str\");\n }\n IndicatorDefinition indicatorDefinition = indicator.getIndicatorDefinition();\n Expression sqlGenericExpression = dbms().getSqlExpression(indicatorDefinition);\n boolean useNulls = false;\n Expression instantiatedSqlExpression = createInstantiatedSqlExpression(sqlGenericExpression, columnSetA, columnSetB, useNulls);\n indicator.setInstantiatedExpression(instantiatedSqlExpression);\n return true;\n }\n return traceError(\"String_Node_Str\" + indicator.getName());\n}\n"
"public void breakBlock(World world, int x, int y, int z, Block present, int meta) {\n TileEntityPresent tileEntityPresent = (TileEntityPresent) world.getTileEntity(x, y, z);\n if (tileEntityPresent != null) {\n for (int c = 0; c < tileEntityPresent.getTrueSizeInventory(); c++) {\n ItemStack itemStack = tileEntityPresent.getTrueStackInSlot(c);\n if (itemStack != null) {\n dropBlockAsItem(world, x, y, z, itemStack);\n }\n }\n world.func_147453_f(x, y, z, this);\n }\n super.breakBlock(world, x, y, z, this, meta);\n}\n"
"public boolean finish() {\n if (treeViewer != null) {\n treeViewer.removeCheckStateListener(checkStateListener);\n }\n List<ContextParameterType> contextEditableResultValuesList = null;\n if (manager != null) {\n contextEditableResultValuesList = manager.getContextEditableResultValuesList();\n }\n List<ContextParameterType> contextEditableResultValuesList = manager.getContextEditableResultValuesList();\n saveDirtyEditors();\n saveWidgetValues();\n if (!ensureTargetIsValid()) {\n return false;\n }\n if (contextEditableResultValuesList == null) {\n manager.setContextEditableResultValuesList(new ArrayList<ContextParameterType>());\n } else {\n manager.setContextEditableResultValuesList(contextEditableResultValuesList);\n }\n if (manager instanceof PetalsJobJavaScriptsManager) {\n PetalsTemporaryOptionsKeeper.INSTANCE.setSelection(selection);\n }\n manager.setMultiNodes(isMultiNodes());\n IRunnableWithProgress worker = new JobExportAction(Arrays.asList(getCheckNodes()), getSelectedJobVersion(), manager, originalRootFolderName);\n IProgressService progressService = PlatformUI.getWorkbench().getProgressService();\n try {\n progressService.run(false, true, worker);\n } catch (InvocationTargetException e) {\n ExceptionHandler.process(e);\n } catch (InterruptedException e) {\n ExceptionHandler.process(e);\n }\n if (zipOption != null && zipOption.equals(\"String_Node_Str\")) {\n try {\n String zipFile = manager.getDestinationPath();\n File file = new File(zipFile);\n if (file.exists())\n ZipToFile.unZipFile(zipFile, file.getParentFile().getAbsolutePath());\n } catch (Exception e) {\n MessageBoxExceptionHandler.process(e);\n return false;\n }\n }\n if (treeViewer != null) {\n treeViewer.dispose();\n }\n RepositoryManager.refreshCreatedNode(ERepositoryObjectType.PROCESS);\n ok = true;\n return ok;\n}\n"
"public void init() throws ComponentInitException {\n ClassHierarchy classHierarchy = reasoner.getClassHierarchy().clone();\n classHierarchy.thinOutSubsumptionHierarchy();\n minimizer = new DescriptionMinimizer(reasoner);\n startClass = Thing.instance;\n singleSuggestionMode = configurator.getSingleSuggestionMode();\n operator = new RhoDRDown(reasoner, classHierarchy, startClass, configurator);\n baseURI = reasoner.getBaseURI();\n prefixes = reasoner.getPrefixes();\n bestEvaluatedDescriptions = new EvaluatedDescriptionSet(configurator.getMaxNrOfResults());\n isClassLearningProblem = (learningProblem instanceof ClassLearningProblem);\n noise = configurator.getNoisePercentage() / 100d;\n maxDepth = configurator.getMaxDepth();\n filterFollowsFromKB = configurator.getFilterDescriptionsFollowingFromKB() && isClassLearningProblem;\n System.out.println(\"String_Node_Str\" + filterFollowsFromKB);\n if (isClassLearningProblem) {\n ClassLearningProblem problem = (ClassLearningProblem) learningProblem;\n classToDescribe = problem.getClassToDescribe();\n isEquivalenceProblem = problem.isEquivalenceProblem();\n examples = reasoner.getIndividuals(classToDescribe);\n if (isEquivalenceProblem) {\n Set<Description> existingDefinitions = reasoner.getAssertedDefinitions(classToDescribe);\n if (configurator.getReuseExistingDescription() && (existingDefinitions.size() > 0)) {\n Description existingDefinition = null;\n int highestLength = 0;\n for (Description exDef : existingDefinitions) {\n if (exDef.getLength() > highestLength) {\n existingDefinition = exDef;\n highestLength = exDef.getLength();\n }\n }\n LinkedList<Description> startClassCandidates = new LinkedList<Description>();\n startClassCandidates.add(existingDefinition);\n ((RhoDRDown) operator).setDropDisjuncts(true);\n RefinementOperator upwardOperator = new OperatorInverter(operator);\n boolean startClassFound = false;\n do {\n candidate = startClassCandidates.pollFirst();\n if (((ClassLearningProblem) learningProblem).getRecall(candidate) < 1.0) {\n startClassCandidates.addAll(upwardOperator.refine(candidate, candidate.getLength()));\n } else {\n startClassFound = true;\n }\n } while (!startClassFound);\n ((RhoDRDown) operator).setDropDisjuncts(false);\n } else {\n Set<Description> superClasses = reasoner.getClassHierarchy().getSuperClasses(classToDescribe);\n if (superClasses.size() > 1) {\n startClass = new Intersection(new LinkedList<Description>(superClasses));\n } else if (superClasses.size() == 1) {\n startClass = (Description) superClasses.toArray()[0];\n } else {\n startClass = Thing.instance;\n logger.warn(classToDescribe + \"String_Node_Str\" + \"String_Node_Str\");\n }\n }\n }\n } else if (learningProblem instanceof PosOnlyLP) {\n examples = ((PosOnlyLP) learningProblem).getPositiveExamples();\n } else if (learningProblem instanceof PosNegLP) {\n examples = Helper.union(((PosNegLP) learningProblem).getPositiveExamples(), ((PosNegLP) learningProblem).getNegativeExamples());\n }\n}\n"
"public void run() {\n try {\n IStatusBarService statusbar = getStatusBarService();\n if (statusbar != null) {\n long startTime = calculateStatusBarTransitionStartTime(openAnimation, closeAnimation);\n long duration = closeAnimation != null || openAnimation != null ? TRANSITION_DURATION : 0;\n statusbar.appTransitionStarting(startTime, duration);\n }\n } catch (RemoteException e) {\n Slog.e(mTag, \"String_Node_Str\", e);\n mStatusBarService = null;\n }\n}\n"
"private void cancel() {\n calendarState = CalendarState.NORMAL;\n int i;\n for (i = 0; i < NDAYMONTH; i++) {\n buttonDay[i].setBackground(new Color(204, 230, 255));\n buttonDay[i].setEnabled(true);\n }\n menuAssignment.setVisible(true);\n menuReview.setVisible(true);\n menuSettings.setVisible(true);\n menuExtra.setVisible(true);\n menuItemCancel.setVisible(false);\n if (!(calendarState.equals(CalendarState.ADDING)) && !(calendarState.equals(CalendarState.REMOVING))) {\n showAssignmentOnCalendar(email);\n }\n}\n"
"void layoutPanel() {\n removeAll();\n add(spanTag);\n add(boxStrut);\n add(spanValue);\n if (spanValue instanceof TimeSpanTextField) {\n add(Box.createHorizontalStrut(INTERCONTROL_HORIZONTAL_SPACING + 3));\n add(new JLabel(BUNDLE.getString(\"String_Node_Str\")));\n add(Box.createHorizontalStrut(INTERCONTROL_HORIZONTAL_SPACING + 3));\n add(timeSpanValue.getYearSpanValue());\n }\n}\n"
"public ExecutionResult execute(Item item) {\n IProxyRepositoryFactory factory = CorePlugin.getDefault().getRepositoryService().getProxyRepositoryFactory();\n ProcessType processType = getProcessType(item);\n boolean modified = false;\n if (processType != null) {\n for (Object obj : processType.getNode()) {\n NodeType nodeType = (NodeType) obj;\n AbstractExternalData externalData = nodeType.getNodeData();\n if (externalData instanceof DBMapData) {\n DBMapData mapperData = (DBMapData) externalData;\n for (OutputTable pTable : mapperData.getOutputTables()) {\n int i = 0;\n List<FilterEntry> needSplitFilters = new ArrayList<FilterEntry>();\n List<FilterEntry> newFilters = new ArrayList<FilterEntry>();\n for (FilterEntry pFilter : pTable.getFilterEntries()) {\n String expression = pFilter.getExpression();\n if (expression != null && !expression.trim().isEmpty()) {\n if (!DbGenerationManager.containWith(expression, DbMapSqlConstants.GROUP_BY_PATTERN, false) && !DbGenerationManager.containWith(expression, DbMapSqlConstants.ORDER_BY_PATTERN, false)) {\n continue;\n } else if (DbGenerationManager.containWith(expression, DbMapSqlConstants.GROUP_BY_PATTERN, true) || DbGenerationManager.containWith(expression, DbMapSqlConstants.ORDER_BY_PATTERN, true)) {\n pFilter.setFilterKind(FilterTableEntry.OTHER_FILTER);\n modified = true;\n } else {\n needSplitFilters.add(pFilter);\n }\n }\n }\n if (!needSplitFilters.isEmpty()) {\n EList<FilterEntry> entryList = pTable.getFilterEntries();\n for (FilterEntry pFilter : needSplitFilters) {\n String expression = pFilter.getExpression().trim();\n int splitIndex = firstIndexInString(expression, DbMapSqlConstants.GROUP_BY_PATTERN);\n int orderIndex = firstIndexInString(expression, DbMapSqlConstants.ORDER_BY_PATTERN);\n if (splitIndex < 0 || (0 < orderIndex && orderIndex < splitIndex)) {\n splitIndex = orderIndex;\n }\n String whereClause = expression.substring(0, splitIndex);\n pFilter.setExpression(whereClause);\n FilterEntry tFilter = DbmapFactory.eINSTANCE.createFilterEntry();\n tFilter.setName(\"String_Node_Str\" + ++i);\n tFilter.setExpression(expression.substring(splitIndex));\n tFilter.setFilterKind(FilterTableEntry.OTHER_FILTER);\n entryList.remove(pFilter);\n entryList.add(pFilter);\n newFilters.add(tFilter);\n modified = true;\n }\n if (!newFilters.isEmpty()) {\n pTable.getFilterEntries().addAll(newFilters);\n modified = true;\n }\n }\n }\n }\n }\n }\n try {\n if (modified) {\n factory.save(item, true);\n return ExecutionResult.SUCCESS_WITH_ALERT;\n } else {\n return ExecutionResult.SUCCESS_NO_ALERT;\n }\n } catch (Exception e) {\n ExceptionHandler.process(e);\n return ExecutionResult.FAILURE;\n }\n}\n"
"protected FieldODEStateAndDerivative<T> computeInterpolatedStateAndDerivatives(final FieldEquationsMapper<T> mapper, final T time, final T theta, final T oneMinusThetaH) {\n final T coeffDot1 = theta.multiply(theta.multiply(theta.multiply(theta.multiply(21).add(-47)).add(36)).add(-54 / 5.0)).add(1);\n final T coeffDot2 = getField().getZero();\n final T coeffDot3 = theta.multiply(theta.multiply(theta.multiply(theta.multiply(112).add(-608 / 3.0)).add(320 / 3.0)).add(-208 / 15.0));\n final T coeffDot4 = theta.multiply(theta.multiply(theta.multiply(theta.multiply(-567 / 5.0).add(972 / 5.0)).add(-486 / 5.0)).add(324 / 25.0));\n final T coeffDot5 = theta.multiply(theta.multiply(theta.multiply(theta.multiply(c5a.divide(5)).add(c5b.divide(15))).add(c5c.divide(30))).add(c5d.divide(150)));\n final T coeffDot6 = theta.multiply(theta.multiply(theta.multiply(theta.multiply(c6a.divide(5)).add(c6b.divide(15))).add(c6c.divide(30))).add(c6d.divide(150)));\n final T coeffDot7 = theta.multiply(theta.multiply(theta.multiply(3.0).add(-3)).add(3 / 5.0));\n final T[] interpolatedState;\n final T[] interpolatedDerivatives;\n if (getGlobalPreviousState() != null && theta.getReal() <= 0.5) {\n final T s = theta.multiply(theta.multiply(h));\n final T coeff1 = s.multiply(theta.multiply(theta.multiply(theta.multiply(21 / 5.0).add(-47 / 4.0)).add(12)).add(-27 / 5.0)).add(1);\n final T coeff2 = getField().getZero();\n final T coeff3 = s.multiply(theta.multiply(theta.multiply(theta.multiply(112 / 5.0).add(-152 / 3.0)).add(320 / 9.0)).add(-104 / 15.0));\n final T coeff4 = s.multiply(theta.multiply(theta.multiply(theta.multiply(-567 / 25.0).add(243 / 5.0)).add(-162 / 5.0)).add(162 / 25.0));\n final T coeff5 = s.multiply(theta.multiply(theta.multiply(theta.multiply(c5a.divide(25)).add(c5b.divide(60))).add(c5c.divide(90))).add(c5d.divide(300)));\n final T coeff6 = s.multiply(theta.multiply(theta.multiply(theta.multiply(c5a.divide(25)).add(c6b.divide(60))).add(c6c.divide(90))).add(c6d.divide(300)));\n final T coeff7 = s.multiply(theta.multiply(theta.multiply(3 / 4.0)).add(-1)).add(3 / 10.0);\n interpolatedState = previousStateLinearCombination(coeff1, coeff2, coeff3, coeff4, coeff5, coeff6, coeff7);\n interpolatedDerivatives = derivativeLinearCombination(coeffDot1, coeffDot2, coeffDot3, coeffDot4, coeffDot5, coeffDot6, coeffDot7);\n } else {\n final T s = oneMinusThetaH.multiply(theta);\n final T coeff1 = s.multiply(theta.multiply(theta.multiply(theta.multiply(-21 / 5.0).add(151 / 20.0)).add(-89 / 20.0)).add(19 / 20.0)).add(-1 / 20.0);\n final T coeff2 = getField().getZero();\n final T coeff3 = s.multiply(theta.multiply(theta.multiply(theta.multiply(-112 / 5.0).add(424 / 15.0)).add(-328 / 45.0)).add(-16 / 45.0)).add(-16 / 45.0);\n final T coeff4 = s.multiply(theta.multiply(theta.multiply(theta.multiply(567 / 25.0).add(-648 / 25.0)).add(162 / 25.0)));\n final T coeff5 = s.multiply(theta.multiply(theta.multiply(theta.multiply(d5a.divide(25)).add(d5b.divide(300))).add(d5c.divide(900))).add(-49 / 180.0)).add(-49 / 180.0);\n final T coeff6 = s.multiply(theta.multiply(theta.multiply(theta.multiply(d6a.divide(25)).add(d6b.divide(300))).add(d6c.divide(900))).add(-49 / 180.0)).add(-49 / 180.0);\n final T coeff7 = s.multiply(theta.multiply(theta.multiply(-3 / 4.0).add(1 / 4.0)).add(-1 / 20.0)).add(-1 / 20.0);\n interpolatedState = currentStateLinearCombination(coeff1, coeff2, coeff3, coeff4, coeff5, coeff6, coeff7);\n interpolatedDerivatives = derivativeLinearCombination(coeffDot1, coeffDot2, coeffDot3, coeffDot4, coeffDot5, coeffDot6, coeffDot7);\n }\n return new FieldODEStateAndDerivative<T>(time, interpolatedState, interpolatedDerivatives);\n}\n"
"public void initialize(TwillContext context) {\n name = context.getSpecification().getName();\n LOG.info(\"String_Node_Str\" + name);\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler());\n System.setSecurityManager(new RunnableSecurityManager(System.getSecurityManager()));\n SLF4JBridgeHandler.install();\n runLatch = new CountDownLatch(1);\n coreServices = new ArrayList<>();\n try {\n CommandLine cmdLine = parseArgs(context.getApplicationArguments());\n hConf = new Configuration();\n hConf.clear();\n hConf.addResource(new File(cmdLine.getOptionValue(RunnableOptions.HADOOP_CONF_FILE)).toURI().toURL());\n UserGroupInformation.setConfiguration(hConf);\n cConf = CConfiguration.create(new File(cmdLine.getOptionValue(RunnableOptions.CDAP_CONF_FILE)));\n programOpts = createProgramOptions(cmdLine, context, context.getSpecification().getConfigs());\n String principal = programOpts.getArguments().getOption(ProgramOptionConstants.PRINCIPAL);\n ProgramId programId = GSON.fromJson(cmdLine.getOptionValue(RunnableOptions.PROGRAM_ID), ProgramId.class);\n String instanceId = programOpts.getArguments().getOption(ProgramOptionConstants.INSTANCE_ID);\n String runId = programOpts.getArguments().getOption(ProgramOptionConstants.RUN_ID);\n Injector injector = Guice.createInjector(createModule(context, programId, runId, instanceId, principal));\n coreServices.add(injector.getInstance(ZKClientService.class));\n coreServices.add(injector.getInstance(KafkaClientService.class));\n coreServices.add(injector.getInstance(BrokerService.class));\n coreServices.add(injector.getInstance(MetricsCollectionService.class));\n coreServices.add(injector.getInstance(StreamCoordinatorClient.class));\n logAppenderInitializer = injector.getInstance(LogAppenderInitializer.class);\n logAppenderInitializer.initialize();\n programRunner = createProgramRunner(injector);\n try {\n Location programJarLocation = Locations.toLocation(new File(cmdLine.getOptionValue(RunnableOptions.JAR)));\n ApplicationSpecification appSpec = readAppSpec(new File(cmdLine.getOptionValue(RunnableOptions.APP_SPEC_FILE)));\n program = Programs.create(cConf, programRunner, new ProgramDescriptor(programId, appSpec), programJarLocation, new File(cmdLine.getOptionValue(RunnableOptions.EXPANDED_JAR)));\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n coreServices.add(new ProgramRunnableResourceReporter(program.getId(), injector.getInstance(MetricsCollectionService.class), context));\n LOG.info(\"String_Node_Str\", name);\n } catch (Throwable t) {\n LOG.error(t.getMessage(), t);\n throw Throwables.propagate(t);\n }\n}\n"
"public static <T> T getTagValue(Tag t, Class<T> clazz) {\n Object o = toTagValue(t);\n if (o == null) {\n return null;\n }\n try {\n return clazz.cast(o);\n } catch (ClassCastException e) {\n return null;\n }\n}\n"