content
stringlengths 40
137k
|
---|
"protected ManagementNodeSyncRecord hasHealthyMaster() {\n ManagementPlaneSyncRecord memento = loadManagementPlaneSyncRecord(false);\n String nodeId = memento.getMasterNodeId();\n ManagementNodeSyncRecord masterMemento = (nodeId == null) ? null : memento.getManagementNodes().get(nodeId);\n ManagementNodeSyncRecord ourMemento = memento.getManagementNodes().get(ownNodeId);\n boolean result = masterMemento != null && masterMemento.getStatus() == ManagementNodeState.MASTER && isHeartbeatOk(masterMemento, ourMemento);\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\", new Object[] { result, nodeId, (masterMemento == null ? \"String_Node_Str\" : masterMemento.toVerboseString()) });\n return (result ? masterMemento : null);\n}\n"
|
"public void inotTest1() {\n final short[] content = { 1, 3, 5, 7, 9 };\n MappeableContainer c = makeContainer(content);\n c = c.inot(0, 65536);\n final short[] s = new short[65536 - content.length];\n int pos = 0;\n for (int i = 0; i < 65536; ++i) if (Arrays.binarySearch(content, (short) i) < 0)\n s[pos++] = (short) i;\n assertTrue(checkContent(c, s));\n}\n"
|
"public void onLoadFinished(Loader<AccountResult> loader, AccountResult result) {\n if (Debug.DEBUG_LOADERS) {\n Log.d(TAG, \"String_Node_Str\" + result.selectedAccount);\n }\n adapter.setAccountNames(result.accountNames);\n prefs = result.prefs;\n int index = AccountLoader.getLastAccountIndex(prefs, result.accountNames);\n bar.setSelectedNavigationItem(index);\n}\n"
|
"public void writeToNBT(NBTTagCompound tagCompound) {\n super.writeToNBT(tagCompound);\n tagCompound.setInteger(\"String_Node_Str\", monitorX);\n tagCompound.setInteger(\"String_Node_Str\", monitorY);\n tagCompound.setInteger(\"String_Node_Str\", monitorZ);\n tagCompound.setInteger(\"String_Node_Str\", getRflevel());\n tagCompound.setByte(\"String_Node_Str\", (byte) alarmMode.getIndex());\n tagCompound.setByte(\"String_Node_Str\", (byte) alarmLevel);\n Boolean value = inAlarm.getValue();\n tagCompound.setBoolean(\"String_Node_Str\", value == null ? false : value);\n}\n"
|
"public void convergeSyncPackets() {\n Object[] workList = accumulationList.toArray();\n Log.i(NetworkVariables.TAG, \"String_Node_Str\");\n Arrays.sort(workList);\n long medianLatency = workList[3].latency;\n Log.i(NetworkVariables.TAG, \"String_Node_Str\" + medianLatency);\n long meanLatency = 0;\n for (TimeSyncPacket pct : workList) {\n meanLatency += pct.latency;\n }\n meanLatency /= workList.length;\n Log.i(NetworkVariables.TAG, \"String_Node_Str\" + meanLatency);\n double stdDeviation = 0;\n for (TimeSyncPacket pct : workList) {\n stdDeviation += (pct.latency - meanLatency) * (pct.latency - meanLatency);\n }\n stdDeviation /= workList.length;\n stdDeviation = Math.sqrt(stdDeviation);\n Log.i(NetworkVariables.TAG, \"String_Node_Str\" + stdDeviation);\n long averageTimeDelta = 0;\n int deltaCount = 0;\n for (TimeSyncPacket pct : workList) {\n if (Math.abs(meanLatency - pct.latency) <= stdDeviation) {\n averageTimeDelta += pct.timedel;\n deltaCount++;\n }\n }\n averageTimeDelta /= deltaCount;\n Log.i(NetworkVariables.TAG, \"String_Node_Str\" + averageTimeDelta);\n timeDelta += averageTimeDelta;\n accumulationList.clear();\n}\n"
|
"private void buildChannel() {\n try {\n HarmonyConfig config = getCachedConfig();\n List<Activity> activities = config.getActivities();\n Collections.sort(activities, new Comparator<Activity>() {\n public int compare(Activity a1, Activity a2) {\n int o1 = a1.getActivityOrder() == null ? -1 : a1.getActivityOrder().intValue();\n int o2 = a2.getActivityOrder() == null ? -1 : a2.getActivityOrder().intValue();\n return (o1 < o2) ? -1 : (o1 == o2) ? 0 : 1;\n }\n });\n List<StateOption> states = new LinkedList<StateOption>();\n for (Activity activity : activities) {\n states.add(new StateOption(String.valueOf(activity.getLabel()), activity.getLabel()));\n }\n ChannelTypeUID channelTypeUID = new ChannelTypeUID(HarmonyHubBindingConstants.BINDING_ID + \"String_Node_Str\" + HarmonyHubBindingConstants.CHANNEL_CURRENT_ACTIVITY);\n ChannelType channelType = new ChannelType(channelTypeUID, true, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", null, null, new StateDescription(null, null, null, \"String_Node_Str\", false, states), new URI(HarmonyHubBindingConstants.BINDING_ID, HarmonyHubBindingConstants.CHANNEL_CURRENT_ACTIVITY, null));\n factory.addChannelType(channelType);\n BridgeBuilder thingBuilder = (BridgeBuilder) BridgeBuilder.create(getThing().getThingTypeUID(), getThing().getUID()).withConfiguration(getThing().getConfiguration()).withProperties(getThing().getProperties());\n Channel channel = ChannelBuilder.create(new ChannelUID(getThing().getUID(), HarmonyHubBindingConstants.CHANNEL_CURRENT_ACTIVITY), \"String_Node_Str\").withType(channelTypeUID).build();\n thingBuilder.withChannel(channel);\n updateThing(thingBuilder.build());\n } catch (Exception e) {\n logger.debug(\"String_Node_Str\", e);\n }\n}\n"
|
"private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException {\n try {\n String dspaceUrl = ConfigurationManager.getProperty(\"String_Node_Str\");\n String type = null;\n String description = null;\n String title = null;\n Bitstream logo = null;\n String idx = ConfigurationManager.getProperty(\"String_Node_Str\");\n if (idx == null) {\n throw new IOException(\"String_Node_Str\");\n }\n BrowseIndex bix = BrowseIndex.getItemBrowseIndex();\n if (bix == null) {\n throw new IOException(\"String_Node_Str\" + idx);\n }\n BrowserScope scope = new BrowserScope(context);\n scope.setBrowseIndex(bix);\n for (SortOption so : SortOption.getSortOptions()) {\n if (so.getName().equals(idx))\n scope.setSortBy(so.getNumber());\n }\n scope.setOrder(SortOption.DESCENDING);\n Channel channel = new Channel();\n if (dso == null) {\n channel.setTitle(ConfigurationManager.getProperty(\"String_Node_Str\"));\n channel.setLink(dspaceUrl);\n channel.setDescription(labels.getString(clazz + \"String_Node_Str\"));\n } else {\n if (dso.getType() == Constants.COLLECTION) {\n type = labels.getString(clazz + \"String_Node_Str\");\n Collection col = (Collection) dso;\n description = col.getMetadata(\"String_Node_Str\");\n title = col.getMetadata(\"String_Node_Str\");\n logo = col.getLogo();\n scope.setBrowseContainer(col);\n } else if (dso.getType() == Constants.COMMUNITY) {\n type = labels.getString(clazz + \"String_Node_Str\");\n Community comm = (Community) dso;\n description = comm.getMetadata(\"String_Node_Str\");\n title = comm.getMetadata(\"String_Node_Str\");\n logo = comm.getLogo();\n scope.setBrowseContainer(comm);\n }\n String objectUrl = ConfigurationManager.getBooleanProperty(\"String_Node_Str\") ? HandleManager.resolveToURL(context, dso.getHandle()) : HandleManager.getCanonicalForm(dso.getHandle());\n channel.setDescription(description.replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n channel.setLink(objectUrl);\n String channelTitle = MessageFormat.format(labels.getString(clazz + \"String_Node_Str\"), new Object[] { type, title });\n channel.setTitle(channelTitle);\n if (logo != null) {\n Image image = new Image();\n image.setLink(objectUrl);\n image.setTitle(labels.getString(clazz + \"String_Node_Str\"));\n image.setUrl(dspaceUrl + \"String_Node_Str\" + logo.getID());\n channel.setImage(image);\n }\n }\n TextInput input = new TextInput();\n input.setLink(dspaceUrl + \"String_Node_Str\");\n input.setDescription(labels.getString(clazz + \"String_Node_Str\"));\n String searchTitle = \"String_Node_Str\";\n if (type != null) {\n searchTitle = MessageFormat.format(labels.getString(clazz + \"String_Node_Str\"), new Object[] { type });\n } else {\n searchTitle = labels.getString(clazz + \"String_Node_Str\");\n }\n input.setTitle(searchTitle);\n input.setName(labels.getString(clazz + \"String_Node_Str\"));\n channel.setTextInput(input);\n scope.setResultsPerPage(itemCount);\n BrowseEngine be = new BrowseEngine(context);\n BrowseInfo bi = be.browseMini(scope);\n Item[] results = bi.getItemResults(context);\n List items = new ArrayList();\n for (int i = 0; i < results.length; i++) {\n items.add(itemFromDSpaceItem(context, results[i]));\n }\n channel.setItems(items);\n if (channel.getDescription() == null)\n channel.setDescription(\"String_Node_Str\");\n return channel;\n } catch (SortException se) {\n log.error(\"String_Node_Str\", se);\n throw new IOException(se.getMessage());\n } catch (BrowseException e) {\n log.error(\"String_Node_Str\", e);\n throw new IOException(e.getMessage());\n }\n}\n"
|
"public void draw(Graphic g) {\n if (locked || needReload)\n return;\n drawWindow(g, activeWindow);\n drawGlobalEffects(g);\n if (drawCursor) {\n mouse.draw(g);\n }\n}\n"
|
"public static RollingFileManager getFileManager(String fileName, String pattern, boolean append, boolean bufferedIO) {\n return (RollingFileManager) getManager(fileName, new FactoryData(pattern, append, bufferedIO), factory);\n}\n"
|
"private void needContextModeParameters() {\n legalParameters.clear();\n for (IElementParameter parameter : node.getElementParameters()) {\n if (parameter.isDynamicSettings() && parameter.isShow(node.getElementParameters()) && parameter.getCategory() != EComponentCategory.TECHNICAL && (parameter.getFieldType() == EParameterFieldType.CHECK || parameter.getFieldType() == EParameterFieldType.CLOSED_LIST || parameter.getFieldType() == EParameterFieldType.MODULE_LIST || parameter.getFieldType() == EParameterFieldType.RADIO || parameter.getFieldType() == EParameterFieldType.COMPONENT_LIST)) {\n legalParameters.add(parameter);\n }\n }\n}\n"
|
"public float get2ndQuarterTotal() {\n float total = 0;\n for (APPLine line : lines) total += line.getAmount2();\n return DecimalRounder.roundOff(total, 2);\n}\n"
|
"private void _clearCaches() {\n _cachedCreatedObjects.clear();\n _cachedIgnoredObjects.clear();\n _cachedNegatedObjects.clear();\n _cachedOptionalContainers.clear();\n}\n"
|
"public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) {\n int l = par2Random.nextInt(3) + this.minTreeHeight;\n boolean flag = true;\n if (par4 >= 1 && par4 + l + 1 <= 256) {\n byte b0;\n int k1;\n Block block;\n for (int i1 = par4; i1 <= par4 + 1 + l; ++i1) {\n b0 = 1;\n if (i1 == par4) {\n b0 = 0;\n }\n if (i1 >= par4 + 1 + l - 2) {\n b0 = 2;\n }\n for (int j1 = par3 - b0; j1 <= par3 + b0 && flag; ++j1) {\n for (k1 = par5 - b0; k1 <= par5 + b0 && flag; ++k1) {\n if (i1 >= 0 && i1 < 256) {\n block = par1World.getBlock(j1, i1, k1);\n if (!this.isReplaceable(par1World, j1, i1, k1))\n flag = false;\n } else {\n flag = false;\n }\n }\n }\n }\n if (!flag) {\n return false;\n } else {\n Block block2 = par1World.getBlock(par3, par4 - 1, par5);\n boolean isSoil = block2 == TwilightBlocks.mortumGrass;\n if (isSoil && par4 < 256 - l - 1) {\n block2.onPlantGrow(par1World, par3, par4 - 1, par5, par3, par4, par5);\n b0 = 3;\n byte b1 = 0;\n int l1;\n int i2;\n int j2;\n int i3;\n for (k1 = par4 - b0 + l; k1 <= par4 + l; ++k1) {\n i3 = k1 - (par4 + l);\n l1 = b1 + 1 - i3 / 2;\n for (i2 = par3 - l1; i2 <= par3 + l1; ++i2) {\n j2 = i2 - par3;\n for (int k2 = par5 - l1; k2 <= par5 + l1; ++k2) {\n int l2 = k2 - par5;\n if (Math.abs(j2) != l1 || Math.abs(l2) != l1 || par2Random.nextInt(2) != 0 && i3 != 0) {\n Block block1 = par1World.getBlock(i2, k1, k2);\n if (block1.isAir(par1World, i2, k1, k2) || block1.isLeaves(par1World, i2, k1, k2)) {\n this.setBlockAndNotifyAdequately(par1World, i2, k1, k2, TwilightBlocks.mortumLeaves, this.metaLeaves);\n }\n }\n }\n }\n }\n for (k1 = 0; k1 < l; ++k1) {\n block = par1World.getBlock(par3, par4 + k1, par5);\n if (block.isAir(par1World, par3, par4 + k1, par5) || block.isLeaves(par1World, par3, par4 + k1, par5)) {\n this.setBlockAndNotifyAdequately(par1World, par3, par4 + k1, par5, TwilightBlocks.mortumLogs, this.metaWood);\n }\n }\n return true;\n } else {\n return false;\n }\n }\n } else {\n return false;\n }\n}\n"
|
"public boolean execute() throws Exception {\n if (crawler.getImageUrl() != null) {\n try (InputStream is = getConnection().getInputStream();\n ByteArrayOutputStream os = new ByteArrayOutputStream()) {\n transfer(is, os);\n BufferedImage img = ImageIO.read(new ByteArrayInputStream(os.toByteArray()));\n if (img != null) {\n img = imageManager.resizeImage(img, imageManager.scaleToFit(img, Mod.MAX_IMAGE_SIZE));\n mod.setImage(img);\n }\n }\n }\n return true;\n}\n"
|
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n jButton1.setText(\"String_Node_Str\");\n jButton1.setEnabled(false);\n if (jCheckBox1.isSelected()) {\n Paxsite.setCheckPax(true);\n } else {\n if (!jCheckBox2.isSelected()) {\n return;\n }\n }\n if (jCheckBox2.isSelected()) {\n Showclix.enableShowclixWebsiteChecking();\n }\n UpdateHandler.setUseBeta(JCBUseBeta.isSelected());\n Audio.setPlayAlarm(jCheckBox3.isSelected());\n Email.setUsername(jTextField1.getText());\n Email.setPassword(new String(jPasswordField1.getPassword()));\n Browser.setExpo(jComboBox2.getSelectedItem().toString());\n String text = jTextField2.getText();\n if (text == null || text.length() < 5) {\n text = \"String_Node_Str\";\n } else if (!text.contains(\"String_Node_Str\")) {\n text += Email.getCarrierExtension(jComboBox1.getSelectedItem().toString());\n }\n String tempText;\n java.util.Iterator<ExtraPhonePanel> myIt = extraPhonePanelList.iterator();\n while (myIt.hasNext()) {\n ExtraPhonePanel panel = myIt.next();\n tempText = panel.getNumber();\n if (tempText.length() < 4) {\n System.out.println(\"String_Node_Str\");\n continue;\n }\n String[] split = tempText.split(\"String_Node_Str\");\n tempText = \"String_Node_Str\";\n for (String split1 : split) {\n split1 = split1.trim();\n tempText += split1;\n if (!split1.contains(\"String_Node_Str\")) {\n tempText += Email.getCarrierExtension(panel.getProvider());\n }\n tempText += \"String_Node_Str\";\n }\n text += \"String_Node_Str\" + tempText;\n System.out.println(\"String_Node_Str\" + tempText);\n }\n System.out.println(\"String_Node_Str\" + text);\n Email.addEmailAddress(text);\n Checker.setRefreshTime(jSlider1.getValue());\n SettingsHandler.setSavePrefs(JCBSavePreferences.isSelected());\n if (JCBSavePreferences.isSelected()) {\n SettingsHandler.setSaveCellnum(JCBSaveCellnum.isSelected());\n SettingsHandler.setSavePax(JCBSaveCheckPax.isSelected());\n SettingsHandler.setSaveShowclix(JCBSaveCheckShowclix.isSelected());\n SettingsHandler.setSaveEvent(JCBSaveEvent.isSelected());\n SettingsHandler.setSaveAlarm(JCBSavePlayAlarm.isSelected());\n SettingsHandler.setSaveRefreshTime(JCBSaveRefreshTime.isSelected());\n SettingsHandler.setSaveEmail(JCBSaveEmail.isSelected());\n }\n this.dispose();\n Checker.startCheckingWebsites();\n}\n"
|
"private void initData(List<MatchRule> tempMatcherList) {\n List<MatchRule> matcherList = new ArrayList<MatchRule>();\n MatchRule createRuleMatcher = RulesFactory.eINSTANCE.createMatchRule();\n MatchKeyDefinition createMatchKeyDefinition1 = RulesFactory.eINSTANCE.createMatchKeyDefinition();\n MatchKeyDefinition createMatchKeyDefinition2 = RulesFactory.eINSTANCE.createMatchKeyDefinition();\n AlgorithmDefinition createAlgorithmDefinition1 = RulesFactory.eINSTANCE.createAlgorithmDefinition();\n AlgorithmDefinition createAlgorithmDefinition2 = RulesFactory.eINSTANCE.createAlgorithmDefinition();\n createMatchKeyDefinition1.setName(\"String_Node_Str\");\n createMatchKeyDefinition1.setColumn(\"String_Node_Str\");\n createMatchKeyDefinition1.setConfidenceWeight(1);\n createMatchKeyDefinition1.setHandleNull(HandleNullEnum.NULL_MATCH_NULL.getValue());\n createAlgorithmDefinition1.setAlgorithmParameters(\"String_Node_Str\");\n createAlgorithmDefinition1.setAlgorithmType(MatchingTypeEnum.EXACT.getValue());\n createMatchKeyDefinition1.setAlgorithm(createAlgorithmDefinition1);\n createRuleMatcher.getMatchKeys().add(createMatchKeyDefinition1);\n createMatchKeyDefinition2.setName(\"String_Node_Str\");\n createMatchKeyDefinition2.setColumn(\"String_Node_Str\");\n createMatchKeyDefinition2.setConfidenceWeight(2);\n createMatchKeyDefinition2.setHandleNull(HandleNullEnum.NULL_MATCH_ALL.getValue());\n createAlgorithmDefinition2.setAlgorithmParameters(\"String_Node_Str\");\n createAlgorithmDefinition2.setAlgorithmType(MatchingTypeEnum.CUSTOM.getValue());\n createMatchKeyDefinition2.setAlgorithm(createAlgorithmDefinition2);\n createRuleMatcher.getMatchKeys().add(createMatchKeyDefinition2);\n matcherList.add(createRuleMatcher);\n tempMatcherList.addAll(matcherList);\n}\n"
|
"public Colour darker() {\n this.r *= (1 - 0.1);\n this.g *= (1 - 0.1);\n this.b *= (1 - 0.1);\n return this;\n}\n"
|
"public double boardScore(BoardState board) {\n LinkedList<Minion> myBoardCards;\n LinkedList<Minion> opBoardCards;\n LinkedList<Card> myHandCards;\n myBoardCards = board.getMinions_p0();\n opBoardCards = board.getMinions_p1();\n myHandCards = board.getCards_hand_p0();\n double myScore = 0.0;\n for (final Minion minion : myBoardCards) {\n myScore += minion.getAttack() * my_wAttack_;\n myScore += minion.getHealth() * my_wHealth_;\n myScore += (minion.getTaunt() ? 1.0 : 0.0) * wTaunt_;\n if (minion.getDivineShield())\n myScore += ((minion.getAttack() + minion.getHealth()) * my_wDivineShield_);\n }\n double opScore = 0.0;\n for (final Minion card : opBoardCards) {\n opScore += card.getAttack() * enemy_wAttack_ + card.getHealth() * enemy_wHealth_ + (card.getTaunt() ? 1.0 : 0.0) * wTaunt_ + (card.getAttack() + card.getHealth()) * enemy_wDivineShield_;\n }\n double handScore = 0.0;\n for (final Card card : myHandCards) {\n if (card instanceof SpellDamage)\n handScore += ((SpellDamage) card).getAttack() * wSd_mult_ + wSd_add_;\n else\n handScore += card.getMana() * wMana_;\n }\n double heroScore = my_wHeroHealth_ * board.getHero_p0().getHealth() - enemy_wHeroHealth_ * board.getHero_p1().getHealth();\n if (board.getHero_p1().getHealth() <= 0) {\n heroScore += 100000.0;\n }\n if (board.getHero_p0().getHealth() <= 0) {\n heroScore -= 100000000.0;\n }\n double minionScore = 0.0;\n minionScore += my_wNumMinions_ * (board.getNumMinions_p0());\n minionScore -= enemy_wNumMinions_ * (board.getNumMinions_p1());\n double score = myScore - opScore + handScore + heroScore + minionScore;\n return score;\n}\n"
|
"public synchronized static void finishPayWithPayPal(final BraintreeFragment fragment, int resultCode, Intent data) {\n try {\n BraintreeBroadcastManager.getInstance(fragment.getActivity()).unregisterReceiver(sBraintreeFragmentBroadcastReceiver);\n Result result = PayPal.getResultFromActivity(fragment.getActivity(), resultCode, data);\n Boolean isCheckout = PayPal.isCheckoutRequest();\n Boolean isAppSwitch = data.hasExtra(PayPalOneTouchActivity.EXTRA_ONE_TOUCH_RESULT);\n ResultType resultType = result.getResultType();\n switch(resultType) {\n case Error:\n sendAnalyticsEventForSwitchResult(fragment, isCheckout, isAppSwitch, \"String_Node_Str\");\n break;\n case Cancel:\n if (result.getError() == null) {\n sendAnalyticsEventForSwitchResult(fragment, isCheckout, isAppSwitch, \"String_Node_Str\");\n } else {\n sendAnalyticsEventForSwitchResult(fragment, isCheckout, isAppSwitch, \"String_Node_Str\");\n }\n break;\n case Success:\n sendAnalyticsEventForSwitchResult(fragment, isCheckout, isAppSwitch, \"String_Node_Str\");\n PayPalAccountBuilder paypalAccountBuilder = getBuilderFromResponse(fragment.getApplicationContext(), resultCode, data);\n if (paypalAccountBuilder != null) {\n TokenizationClient.tokenize(fragment, paypalAccountBuilder, new PaymentMethodResponseCallback() {\n public void success(PaymentMethod paymentMethod) {\n fragment.postCallback(paymentMethod);\n }\n public void failure(Exception exception) {\n fragment.postCallback(exception);\n }\n });\n }\n break;\n }\n } catch (ConfigurationException ignored) {\n }\n}\n"
|
"public void testPutServerById() throws PhrescoException {\n String id = \"String_Node_Str\";\n Technology tech = new Technology();\n tech.setId(id2);\n tech.setName(\"String_Node_Str\");\n List<String> versions = new ArrayList<String>();\n versions.add(\"String_Node_Str\");\n versions.add(\"String_Node_Str\");\n tech.setVersions(versions);\n serviceManager = ServiceClientFactory.getServiceManager(context);\n RestClient<Technology> techClient = serviceManager.getRestClient(\"String_Node_Str\" + id);\n Type type = new TypeToken<Technology>() {\n }.getType();\n ClientResponse clientResponse = techClient.updateById(tech, type);\n}\n"
|
"protected void setup(Context context) throws IOException, InterruptedException {\n loadConfigFiles(context);\n loadModel();\n this.filterBy = context.getConfiguration().get(Constants.SHIFU_VARSELECT_FILTEROUT_TYPE, Constants.FILTER_BY_SE);\n int[] inputOutputIndex = DTrainUtils.getInputOutputCandidateCounts(this.columnConfigList);\n this.inputNodeCount = inputOutputIndex[0] == 0 ? inputOutputIndex[2] : inputOutputIndex[0];\n this.candidateCount = inputOutputIndex[2];\n this.inputs = new double[this.inputNodeCount];\n this.outputs = new double[inputOutputIndex[1]];\n this.columnIndexes = new long[this.inputNodeCount];\n this.inputsMLData = new BasicMLData(this.inputNodeCount);\n this.outputKey = new LongWritable();\n LOG.info(\"String_Node_Str\", filterBy);\n}\n"
|
"public static UrlBuilder fromString(final String url, final Charset inputEncoding) {\n if (url == null || url.isEmpty()) {\n return new UrlBuilder();\n }\n final Matcher m = URI_PATTERN.matcher(url);\n String scheme = null, userInfo = null, hostName = null, path = null, fragment = null;\n Integer port = null;\n final Map<String, List<String>> queryParameters;\n if (m.find()) {\n scheme = m.group(2);\n if (m.group(4) != null) {\n final Matcher n = AUTHORITY_PATTERN.matcher(m.group(4));\n if (n.find()) {\n if (n.group(2) != null) {\n userInfo = n.group(2);\n }\n if (n.group(3) != null) {\n hostName = IDN.toUnicode(n.group(3));\n }\n if (n.group(5) != null) {\n port = Integer.parseInt(n.group(5));\n }\n }\n }\n path = decodePath(m.group(5), inputEncoding);\n queryParameters = decodeQueryParameters(m.group(7), inputEncoding);\n fragment = m.group(9);\n } else {\n queryParameters = emptyMap();\n }\n return of(inputEncoding, DEFAULT_ENCODING, scheme, userInfo, hostName, port, path, queryParameters, fragment);\n}\n"
|
"public ID makeInstance(Class[] argTypes, Object[] args) throws IDInstantiationException {\n try {\n return new XMPPID(this, (String) args[0]);\n } catch (Exception e) {\n throw new IDInstantiationException(\"String_Node_Str\", e);\n }\n}\n"
|
"public static void showEncryptAuthenticateDialog(final Context c, final Intent intent, final MainActivity main, AppTheme appTheme, final EncryptDecryptUtils.EncryptButtonCallbackInterface encryptButtonCallbackInterface) {\n int accentColor = main.getColorPreference().getColor(ColorUsage.ACCENT);\n MaterialDialog.Builder builder = new MaterialDialog.Builder(c);\n builder.title(main.getResources().getString(R.string.crypt_encrypt));\n View rootView = View.inflate(c, R.layout.dialog_encrypt_authenticate, null);\n final AppCompatEditText passwordEditText = rootView.findViewById(R.id.edit_text_dialog_encrypt_password);\n final AppCompatEditText passwordConfirmEditText = rootView.findViewById(R.id.edit_text_dialog_encrypt_password_confirm);\n passwordEditText.post(() -> {\n InputMethodManager imm = (InputMethodManager) main.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.showSoftInput(passwordEditText, InputMethodManager.SHOW_IMPLICIT);\n });\n TextInputLayout textInputLayoutPassword = rootView.findViewById(R.id.til_encrypt_password);\n TextInputLayout textInputLayoutPasswordConfirm = rootView.findViewById(R.id.til_encrypt_password_confirm);\n passwordEditText.addTextChangedListener(new SimpleTextWatcher() {\n public void afterTextChanged(Editable s) {\n super.afterTextChanged(s);\n if (TextUtils.isEmpty(s.toString())) {\n textInputLayoutPassword.setError(String.format(c.getResources().getString(R.string.cantbeempty), c.getResources().getString(R.string.password)));\n } else {\n textInputLayoutPassword.setError(\"String_Node_Str\");\n }\n }\n });\n passwordConfirmEditText.addTextChangedListener(new SimpleTextWatcher() {\n public void afterTextChanged(Editable s) {\n super.afterTextChanged(s);\n if (s.toString().equals(passwordEditText.getText().toString())) {\n textInputLayoutPasswordConfirm.setError(\"String_Node_Str\");\n }\n }\n });\n passwordConfirmEditText.setOnFocusChangeListener((v, hasFocus) -> {\n if (TextUtils.isEmpty(passwordEditText.getText().toString())) {\n textInputLayoutPassword.setError(String.format(c.getResources().getString(R.string.cantbeempty), c.getResources().getString(R.string.password)));\n } else {\n textInputLayoutPassword.setError(\"String_Node_Str\");\n }\n });\n passwordEditText.setOnFocusChangeListener((v, hasFocus) -> {\n boolean isPasswordSame = passwordConfirmEditText.getText().toString().equals(passwordEditText.getText().toString());\n if (!isPasswordSame && !TextUtils.isEmpty(passwordConfirmEditText.getText().toString())) {\n textInputLayoutPasswordConfirm.setError(c.getResources().getString(R.string.password_no_match));\n }\n });\n builder.customView(rootView, true);\n builder.positiveText(c.getString(R.string.ok));\n builder.negativeText(c.getString(R.string.cancel));\n builder.theme(appTheme.getMaterialDialogTheme());\n builder.positiveColor(accentColor);\n builder.negativeColor(accentColor);\n builder.onNegative((dialog, which) -> dialog.cancel());\n builder.autoDismiss(false);\n builder.onPositive((dialog, which) -> {\n if (TextUtils.isEmpty(passwordEditText.getText().toString())) {\n textInputLayoutPassword.setError(String.format(c.getResources().getString(R.string.cantbeempty), c.getResources().getString(R.string.password)));\n } else if (!passwordConfirmEditText.getText().toString().equals(passwordEditText.getText().toString())) {\n textInputLayoutPasswordConfirm.setError(c.getResources().getString(R.string.password_no_match));\n } else {\n try {\n encryptButtonCallbackInterface.onButtonPressed(intent, passwordEditText.getText().toString());\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(c, c.getString(R.string.crypt_encryption_fail), Toast.LENGTH_LONG).show();\n } finally {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n}\n"
|
"public Map<Long, Integer> regexSearch(String query) throws RegExParsingException {\n RegExParser parser = new RegExParser(new String(query));\n RegEx regEx;\n regEx = parser.parse();\n RegExPlanner planner = new NaiveRegExPlanner(this, regEx);\n RegEx optRegEx = planner.plan();\n RegExExecutor regExExecutor = new RegExExecutor(this, optRegEx);\n regExExecutor.execute();\n Set<RegexMatch> chunkResults = regExExecutor.getFinalResults();\n Map<Long, Integer> results = new TreeMap<Long, Integer>();\n for (Map.Entry<Long, Integer> result : chunkResults.entrySet()) {\n results.put(result.getKey() + fileOffset, result.getValue());\n }\n return results;\n}\n"
|
"private boolean tryGCOrWait(String metaData, Throwable t) {\n if (mGarbageCollectingTryCount % GC_TRY_COUNT == 0) {\n System.gc();\n }\n if (mGCTryCount > GC_TRY_LOOP_MAX) {\n return false;\n } else {\n mGCTryCount++;\n try {\n Thread.sleep(GC_INTERVAL);\n return true;\n } catch (InterruptedException e) {\n Log.e(metaData, \"String_Node_Str\");\n return false;\n }\n }\n}\n"
|
"void save_button_actionPerformed(ActionEvent e) {\n BrowserManager.getDefault().getEditorManager().saveContents();\n}\n"
|
"public boolean validConnection() {\n LOGGER.debug(\"String_Node_Str\");\n try {\n repository.testConnection();\n setUuid(repository.getRepositoryUUID(false));\n } catch (SVNException e) {\n LOGGER.error(\"String_Node_Str\", e);\n return false;\n }\n LOGGER.info(\"String_Node_Str\");\n return true;\n}\n"
|
"public ProgramElementNode findNodeForClass(String packageName, String className) {\n StructureNode packageNode = null;\n if (packageName == null) {\n packageNode = root;\n } else {\n for (Iterator it = root.getChildren().iterator(); it.hasNext(); ) {\n StructureNode node = (StructureNode) it.next();\n if (packageName.equals(node.getName())) {\n packageNode = node;\n }\n }\n if (packageNode == null)\n return null;\n }\n for (Iterator it = packageNode.getChildren().iterator(); it.hasNext(); ) {\n ProgramElementNode fileNode = (ProgramElementNode) it.next();\n ProgramElementNode ret = findClassInNodes(fileNode.getChildren(), className);\n if (ret != null)\n return ret;\n }\n return null;\n}\n"
|
"private static Expression implementNullSemantics0(RexToLixTranslator translator, RexCall call, NullAs nullAs, NullPolicy nullPolicy, boolean harmonize, NotNullImplementor implementor) {\n switch(nullAs) {\n case IS_NOT_NULL:\n if (nullPolicy == NullPolicy.STRICT) {\n return Expressions.foldAnd(translator.translateList(call.getOperandList(), nullAs));\n }\n break;\n case IS_NULL:\n if (nullPolicy == NullPolicy.STRICT) {\n return JavaRules.EnumUtil.foldOr(translator.translateList(call.getOperandList(), nullAs));\n }\n break;\n }\n final RexCall call2 = call2(harmonize, translator, call);\n try {\n return implementNullSemantics(translator, call2, nullAs, implementor);\n } catch (RexToLixTranslator.AlwaysNull e) {\n if (nullAs == NullAs.NOT_POSSIBLE) {\n throw e;\n }\n return NULL_EXPR;\n }\n}\n"
|
"public List<Pair<String, String>> getSubstrateConnectivity() {\n if (connections == null) {\n connections = new ArrayList<Pair<String, String>>();\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n if (Parameters.parameters.booleanParameter(\"String_Node_Str\")) {\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n }\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n if (Parameters.parameters.booleanParameter(\"String_Node_Str\")) {\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n if (Parameters.parameters.booleanParameter(\"String_Node_Str\")) {\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n }\n connections.add(new Pair<String, String>(\"String_Node_Str\", \"String_Node_Str\"));\n }\n }\n return connections;\n}\n"
|
"public void loadSettings() {\n String version;\n FileHandler FH = new FileHandler();\n if (!FH.pathExists(\"String_Node_Str\")) {\n writeDefaultConfig();\n settings = new String[config.length];\n settings = config;\n } else {\n String[] dat = FH.read(\"String_Node_Str\");\n if (dat.length == config.length) {\n version = dat[0];\n if (!version.equals(\"String_Node_Str\" + GiantTrees.getSettingsVersion())) {\n GiantTrees.logInfo(\"String_Node_Str\");\n writeDefaultConfig();\n settings = new String[config.length];\n settings = config;\n } else {\n settings = new String[dat.length];\n settings = dat;\n }\n } else {\n GiantTrees.logSevere(\"String_Node_Str\");\n writeDefaultConfig();\n settings = new String[config.length];\n settings = config;\n }\n }\n}\n"
|
"public boolean replace(Data key, Object oldValue, Object newValue, ExpiryPolicy expiryPolicy, String caller, int completionId) {\n expiryPolicy = getExpiryPolicy(expiryPolicy);\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n boolean isHit = false;\n boolean replaced = false;\n R record = records.get(key);\n boolean isExpired = record != null && record.isExpiredAt(now);\n try {\n if (record == null || isExpired) {\n replaced = false;\n } else {\n isHit = true;\n Object currentValue = toStorageValue(record);\n if (compare(currentValue, toStorageValue(oldValue))) {\n replaced = updateRecordWithExpiry(key, newValue, record, expiryPolicy, now, false, completionId);\n } else {\n onRecordAccess(record, expiryPolicy, now);\n replaced = false;\n }\n }\n if (!replaced) {\n publishEvent(CacheEventType.COMPLETED, key, null, null, false, completionId);\n }\n onReplace(key, oldValue, newValue, expiryPolicy, caller, false, record, isExpired, replaced);\n updateReplaceStat(replaced, isHit, start);\n updateHasExpiringEntry(record);\n return replaced;\n } catch (Throwable error) {\n onReplaceError(key, oldValue, newValue, expiryPolicy, caller, false, record, isExpired, replaced, error);\n throw ExceptionUtil.rethrow(error);\n }\n}\n"
|
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n super.writePortableData(player, tag);\n tag.setBoolean(\"String_Node_Str\", actsSneaking);\n tag.setBoolean(\"String_Node_Str\", leftClick);\n tag.setByte(\"String_Node_Str\", tickSlot);\n tag.setByte(\"String_Node_Str\", angle);\n}\n"
|
"public StaffMemberEto findStaffMemberByLogin(String login) {\n return privateFindStaffMemberByLogin(login);\n}\n"
|
"public void sameOrVeryNearlyTheSameTimestamp() {\n final RpslObject before = RpslObject.parse(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n final RpslObject after = RpslObject.parse(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n final RpslObjectUpdateInfo objectInfo = updateDao.createObject(before);\n updateDao.updateObject(objectInfo.getObjectId(), after);\n final WhoisResources result = RestTest.target(getPort(), String.format(\"String_Node_Str\", DEFAULT_DATE_TIME_FORMATTER.print(new LocalDateTime())), null, apiKey).request(MediaType.APPLICATION_JSON_TYPE).get(WhoisResources.class);\n assertThat(result.getWhoisObjects().get(0).getAttributes().get(1).getValue(), is(\"String_Node_Str\"));\n}\n"
|
"public Object invoke(MethodInvocation invocation) throws Throwable {\n Principal currentUser = this.principalProvider.get();\n log.debug(\"String_Node_Str\");\n EnumSet<Verb> allowedRoles = EnumSet.of(Verb.SUPER_ADMIN);\n AllowRoles annotation = invocation.getMethod().getAnnotation(AllowRoles.class);\n log.debug(\"String_Node_Str\" + annotation);\n if (annotation != null) {\n for (Verb allowed : annotation.roles()) {\n log.debug(\"String_Node_Str\" + allowed);\n allowedRoles.add(allowed);\n }\n }\n boolean foundRole = false;\n for (Verb allowed : allowedRoles) {\n if (hasRole(currentUser, allowed)) {\n foundRole = true;\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + currentUser + \"String_Node_Str\" + allowed);\n }\n break;\n }\n }\n if (!foundRole) {\n log.warn(\"String_Node_Str\" + currentUser + \"String_Node_Str\" + invocation.getMethod().getName());\n I18n i18n = this.i18nProvider.get();\n String error = \"String_Node_Str\";\n throw new ForbiddenException(i18n.tr(error));\n }\n return invocation.proceed();\n}\n"
|
"public void testDecompositionTable() {\n int[] stardust = new int[] { 59, 59, 63, 61, 57, 57, 64 };\n final List<PosMutable> decomposition = storedLocs.get(\"String_Node_Str\");\n for (int a = 0; a < stardust.length; a++) {\n pos.set(decomposition.get(a));\n Assert.equal(getTile(TileEntityDecompositionTable.class).getStackInSlot(1).stackSize, stardust[a], \"String_Node_Str\");\n }\n Function<Integer, TileEntityChest> get = input -> {\n return (TileEntityChest) pos.set(decomposition.get(input)).move(0, -2, 0).getTileEntity(world);\n };\n Assert.equal(get.apply(0).getStackInSlot(0).getItem(), Items.diamond, \"String_Node_Str\");\n Assert.isTrue(get.apply(0).getStackInSlot(0).stackSize > 3, \"String_Node_Str\");\n Assert.equal(get.apply(1).getStackInSlot(0).getItem(), Items.diamond, \"String_Node_Str\");\n Assert.equal(get.apply(1).getStackInSlot(0).stackSize, 1, \"String_Node_Str\");\n Assert.equal(get.apply(2).getStackInSlot(0).getItem(), Item.getItemFromBlock(Blocks.log), \"String_Node_Str\");\n Assert.notNull(get.apply(3).getStackInSlot(0), \"String_Node_Str\");\n Assert.notNull(get.apply(4).getStackInSlot(0), \"String_Node_Str\");\n Assert.notNull(get.apply(5).getStackInSlot(0), \"String_Node_Str\");\n Assert.isNull(get.apply(6).getStackInSlot(0), \"String_Node_Str\");\n}\n"
|
"private boolean stopStreaming(RTPManager rtpManager) {\n boolean stoppedAtLeastOneStream = false;\n Vector<SendStream> sendStreams = rtpManager.getSendStreams();\n Iterator<SendStream> ssIter = sendStreams.iterator();\n while (ssIter.hasNext()) {\n SendStream stream = (SendStream) ssIter.next();\n try {\n stream.getDataSource().stop();\n stream.stop();\n stream.close();\n } catch (IOException ex) {\n logger.warn(\"String_Node_Str\", ex);\n }\n stoppedAtLeastOneStream = true;\n }\n Vector<ReceiveStream> receiveStreams = rtpManager.getReceiveStreams();\n Iterator<ReceiveStream> rsIter = receiveStreams.iterator();\n while (rsIter.hasNext()) {\n ReceiveStream stream = rsIter.next();\n try {\n stream.getDataSource().stop();\n } catch (IOException ex) {\n logger.warn(\"String_Node_Str\", ex);\n }\n stoppedAtLeastOneStream = true;\n }\n if (selectedKeyProviderAlgorithm != null && selectedKeyProviderAlgorithm.getProviderType() == KeyProviderAlgorithm.ProviderType.ZRTP_PROVIDER) {\n TransformConnector transConnector = this.transConnectors.get(rtpManager);\n if (transConnector != null) {\n if (usingZRTP) {\n ZRTPTransformEngine engine = (ZRTPTransformEngine) transConnector.getEngine();\n engine.stopZrtp();\n engine.cleanup();\n }\n transConnector.removeTargets();\n }\n } else {\n rtpManager.removeTargets(\"String_Node_Str\");\n }\n printFlowStatistics(rtpManager);\n rtpManager.removeReceiveStreamListener(this);\n rtpManager.removeSendStreamListener(this);\n rtpManager.removeSessionListener(this);\n rtpManager.dispose();\n return stoppedAtLeastOneStream;\n}\n"
|
"public static Address allocateCode(BootImageInterface bootImage, RVMArray array, int numElements) {\n TIB tib = array.getTypeInformationBlock();\n int size = array.getInstanceSize(numElements);\n int align = getAlignment(array);\n int offset = getOffsetForAlignment(array, false);\n Address ptr = bootImage.allocateCodeStorage(size, align, offset);\n Address ref = JavaHeader.initializeArrayHeader(bootImage, ptr, tib, size, numElements, false, 0);\n bootImage.setFullWord(ref.plus(getArrayLengthOffset()), numElements);\n MM_Interface.initializeHeader(bootImage, ref, tib, size, false);\n MiscHeader.initializeHeader(bootImage, ref, tib, size, false);\n return ref;\n}\n"
|
"public static long getLong(Bundle b) {\n return b.getLong(LONG_ARG);\n}\n"
|
"public boolean visit(FullTextAnd and) {\n fullTextString.append('(');\n for (int i = 0; i < and.list.size(); i++) {\n FullTextExpression e = and.list.get(i);\n if (e.toString().contains(\"String_Node_Str\")) {\n continue;\n }\n if (i > 0 && i < and.list.size()) {\n fullTextString.append(\"String_Node_Str\");\n }\n String andTerm = parseFullTextExpression(e, configuration);\n fullTextString.append(andTerm);\n }\n fullTextString.append(')');\n fullTextString.append(' ');\n return true;\n}\n"
|
"public static void changeLogLevel(Level newLevel) {\n if (newLevel != null) {\n if (userLogger != null) {\n if (newLevel != Level.OFF && fileLogger == null && (dirName != null || fileName != null)) {\n fileLogger = createFileLogger(dirName, fileName, logRollingSize, logMaxBackupIndex);\n if (fileLogger != null) {\n sharedHandler.setSharedLogger(fileLogger);\n }\n }\n }\n Logger rootLogger = Logger.getLogger(BIRT_NAME_SPACE);\n rootLogger.setLevel(newLevel);\n }\n}\n"
|
"public void onClick(ClickEvent event) {\n relations.get(translations.get(relation.getValue().getObjectType()).get(relation.getValue().getRelationType())).remove(relation);\n listRelations();\n DomEvent.fireNativeEvent(Document.get().createChangeEvent(), IncrementalRelationList.this);\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.conversation_mms, container, false);\n if (rootView != null) {\n context = getActivity();\n userPref = new LheidoUtils.UserPref();\n userPref.setUserPref(PreferenceManager.getDefaultSharedPreferences(context));\n name = getArguments().getString(ARG_CONTACT_NAME);\n phoneContact = getArguments().getString(ARG_CONTACT_PHONE);\n conversationId = getArguments().getInt(ARG_CONVERSATION_ID);\n list_conversationId = getArguments().getInt(ARG_CONVERSATION_NUMBER);\n liste = (JazzyListView) rootView.findViewById(R.id.list_conversation_mms);\n liste.setTransitionEffect(userPref.conversation_effect);\n liste.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL);\n liste.setOnItemClickListener(new MMSItemClickListener());\n zoom = (ImageButton) rootView.findViewById(R.id.expanded_image);\n zoom.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n zoom.setVisibility(View.INVISIBLE);\n }\n });\n conversation_nb_sms = getArguments().getLong(ARG_CONVERSATION_COUNT);\n conversationMmsAdapter = new MMSAdapter(context, phoneContact, Message_list);\n liste.setAdapter(conversationMmsAdapter);\n swipeLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipe_container);\n swipeLayout.setOnRefreshListener(this);\n init_broadcast();\n }\n return rootView;\n}\n"
|
"private void processPingMessage(ServerSessionFactory factory, Request<JsonElement> request, ResponseSender responseSender, String transportId) throws IOException {\n if ((maxHeartbeats == 0) || (maxHeartbeats > ++heartbeats)) {\n long interval = -1;\n if (request.getParams() != null) {\n JsonObject element = (JsonObject) request.getParams();\n if (element.has(INTERVAL_PROPERTY)) {\n interval = element.get(INTERVAL_PROPERTY).getAsLong();\n }\n }\n pingWachdogManager.pingReceived(transportId, interval);\n String sessionId = request.getSessionId();\n JsonObject pongPayload = new JsonObject();\n pongPayload.add(PONG_PAYLOAD, new JsonPrimitive(PONG));\n responseSender.sendPingResponse(new Response<>(sessionId, request.getId(), pongPayload));\n }\n}\n"
|
"public RoaringBitmap inplace_and() {\n RoaringBitmap b1 = bitmap1.clone();\n b1.and(bitmap2);\n return b1;\n}\n"
|
"private static void compile(final Logger logger, final ClassLoader loader, final String env, final String maxAge, final File output, final File distFile, final File assemblyOutput, Config conf) {\n Try.run(() -> {\n output.mkdirs();\n logger.debug(\"String_Node_Str\" + loader);\n Config assetConf = ConfigFactory.parseResources(loader, \"String_Node_Str\").withFallback(conf);\n logger.debug(\"String_Node_Str\" + assetConf.getConfig(\"String_Node_Str\"));\n AssetCompiler compiler = new AssetCompiler(loader, assetConf);\n AtomicReference<ProgressBar> pb = new AtomicReference<>();\n compiler.setProgressBar((progress, total) -> {\n if (pb.get() == null) {\n pb.set(new ProgressBar(\"String_Node_Str\", total).start().stepTo(progress));\n } else {\n pb.get().step();\n }\n });\n long start = System.currentTimeMillis();\n Map<String, List<File>> fileset = compiler.build(env, output);\n pb.get().stop();\n StringBuilder dist = new StringBuilder();\n dist.append(\"String_Node_Str\").append(fileset.entrySet().stream().map(e -> {\n String files = e.getValue().stream().map(file -> output.toPath().relativize(file.toPath())).map(path -> \"String_Node_Str\" + path.toString().replace(\"String_Node_Str\", \"String_Node_Str\")).collect(Collectors.joining(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n return \"String_Node_Str\" + e.getKey() + \"String_Node_Str\" + files;\n }).collect(Collectors.joining(\"String_Node_Str\"))).append(\"String_Node_Str\");\n dist.append(\"String_Node_Str\").append(maxAge).append(\"String_Node_Str\");\n dist.append(\"String_Node_Str\");\n dist.append(\"String_Node_Str\");\n dist.append(\"String_Node_Str\").append(env).append(\"String_Node_Str\");\n try (FileWriter writer = new FileWriter(distFile)) {\n writer.write(dist.toString());\n }\n long end = System.currentTimeMillis();\n CharSequence summary = compiler.summary(fileset, output.toPath(), env, end - start, \"String_Node_Str\" + assemblyOutput, \"String_Node_Str\" + distFile);\n logger.info(summary.toString());\n List<File> files = fileset.values().stream().flatMap(Collection::stream).collect(Collectors.toList());\n for (File from : files) {\n File to = assemblyOutput.toPath().resolve(output.toPath().relativize(from.toPath())).toFile();\n to.getParentFile().mkdirs();\n logger.debug(\"String_Node_Str\" + to);\n Files.copy(from, to);\n }\n }).unwrap(InvocationTargetException.class).throwException();\n}\n"
|
"public boolean exclude(final String check, final String name) {\n final String line = String.format(\"String_Node_Str\", check, FilenameUtils.normalize(name));\n boolean exclude = false;\n for (final String expr : this.exc) {\n if (line.matches(expr)) {\n exclude = true;\n break;\n }\n }\n return exclude;\n}\n"
|
"public void testGetByOwner() {\n MultivaluedMap<String, String> params = mock(MultivaluedMap.class);\n when(params.containsKey(\"String_Node_Str\")).thenReturn(true);\n when(params.get(\"String_Node_Str\")).thenReturn(Arrays.asList(\"String_Node_Str\"));\n MultiRowResult<DBObject> results = report.run(params);\n assertEquals(1, results.size());\n DBObject snap = results.get(0);\n DBObject consumer = (DBObject) snap.get(\"String_Node_Str\");\n DBObject owner = (DBObject) consumer.get(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", owner.get(\"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", consumer.get(\"String_Node_Str\"));\n}\n"
|
"public User getUser(HttpServletRequest request, HttpServletResponse response) {\n HttpSession session = request.getSession();\n User user = (User) session.getAttribute(ATT_USER);\n String appOid = (String) Application.get().getObject(Application.OID);\n if (null != user && !appOid.equals(user.getApplication())) {\n user = null;\n }\n if (null == user) {\n Cookie cookie = getCookie(request, COOKIE_NAME);\n if (cookie != null) {\n String auth = cookie.getValue();\n if (!authHash.containsKey(auth)) {\n updateAuthHash();\n }\n user = (User) authHash.get(auth);\n if (user != null && appOid.equals(user.getApplication())) {\n user = authService.authenticate(user.getLogin(), user.getPasswd(), AuthenticationService.ENCRYPTED);\n if (null != user) {\n setCookie(request, response, user);\n }\n } else {\n Logger.warn(\"String_Node_Str\" + auth);\n user = null;\n }\n }\n if (null == user) {\n String agent = request.getHeader(\"String_Node_Str\");\n Iterator it = robotIds.keySet().iterator();\n while (agent != null && user == null && it.hasNext()) {\n String key = (String) it.next();\n if (agent.toLowerCase().indexOf(key.toLowerCase()) != -1) {\n user = (User) robots.get(key);\n if (null == user) {\n user = new User(key, key, (String) robotIds.get(key));\n user.setNonUser(true);\n robots.put(key, user);\n }\n break;\n }\n }\n if (user != null) {\n Logger.debug(\"String_Node_Str\" + user);\n } else {\n Logger.debug(\"String_Node_Str\" + agent + \"String_Node_Str\");\n user = new User(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n user.setApplication(appOid);\n user.setGuest(true);\n }\n removeCookie(request, response);\n }\n session.setAttribute(ATT_USER, user);\n }\n return user;\n}\n"
|
"public void setValue(String name, boolean value) {\n try {\n ((StyleHandle) model).setProperty(name, Boolean.valueOf(value));\n } catch (SemanticException e) {\n hasError = true;\n WidgetUtil.processError(e);\n }\n}\n"
|
"public void testWriteNoRecPosNoLenientFail() {\n try {\n Configuration config = new Configuration();\n config.setString(RecordOutputFormat.FILE_PARAMETER_KEY, this.tempFile.toURI().toString());\n config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER, \"String_Node_Str\");\n config.setInteger(RecordOutputFormat.NUM_FIELDS_PARAMETER, 2);\n config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 0, PactString.class);\n config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 1, PactInteger.class);\n format.configure(config);\n try {\n format.open(0);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n PactRecord r = new PactRecord(2);\n boolean success = true;\n try {\n r.setField(0, new PactString(\"String_Node_Str\"));\n r.setField(1, new PactInteger(42));\n format.writeRecord(r);\n r.setNull(0);\n r.setField(1, new PactInteger(13));\n format.writeRecord(r);\n format.close();\n } catch (IOException e) {\n success = false;\n } catch (RuntimeException re) {\n success = false;\n }\n assertFalse(success);\n } catch (Exception ex) {\n Assert.fail(\"String_Node_Str\" + ex.getClass().getSimpleName() + \"String_Node_Str\" + ex.getMessage());\n }\n}\n"
|
"public boolean onContextItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.wallet_options_safety:\n HelpDialogFragment.page(getFragmentManager(), R.string.help_safety);\n return true;\n case R.id.wallet_options_backup_wallet:\n handleBackupWallet();\n return true;\n case R.id.wallet_options_restore_wallet:\n handleRestoreWallet();\n return true;\n case R.id.wallet_options_encrypt_keys:\n handleEncryptKeys();\n return true;\n }\n return super.onContextItemSelected(item);\n}\n"
|
"private void setlocal(LuaState vm) {\n LuaState threadVm = vm;\n if (vm.gettop() >= 5) {\n threadVm = vm.checkthread(2).vm;\n vm.remove(2);\n }\n int level = vm.checkint(2);\n int local = vm.checkint(3);\n LValue value = vm.topointer(4);\n CallInfo ci = getcallinfo(vm, threadVm, level);\n LValue name = LNil.NIL;\n if (local >= 0 && local < ci.top - ci.base) {\n threadVm.stack[ci.base + local] = value;\n LocVars[] vars = ci.closure.p.locvars;\n if (vars != null && local >= 0 && local < vars.length)\n name = vars[local].varname;\n }\n vm.resettop();\n vm.pushlvalue(name);\n}\n"
|
"private void processRequest(HttpServletRequest req, HttpServletResponse resp) {\n try {\n Map<String, Object[]> params = new HashMap<String, Object[]>();\n params.putAll(req.getParameterMap());\n HttpSession session = req.getSession(false);\n String responseType = BaseCmd.RESPONSE_TYPE_XML;\n Object[] responseTypeParam = params.get(\"String_Node_Str\");\n if (responseTypeParam != null) {\n responseType = (String) responseTypeParam[0];\n }\n Object[] commandObj = params.get(\"String_Node_Str\");\n if (commandObj != null) {\n String command = (String) commandObj[0];\n if (\"String_Node_Str\".equalsIgnoreCase(command)) {\n if (session != null) {\n String userIdStr = (String) session.getAttribute(\"String_Node_Str\");\n if (userIdStr != null) {\n _apiServer.logoutUser(Long.parseLong(userIdStr));\n }\n session.invalidate();\n }\n writeResponse(resp, getLogoutSuccessResponse(responseType), false, responseType);\n return;\n } else if (\"String_Node_Str\".equalsIgnoreCase(command)) {\n if (session != null)\n session.invalidate();\n session = req.getSession(true);\n String[] username = (String[]) params.get(\"String_Node_Str\");\n String[] password = (String[]) params.get(\"String_Node_Str\");\n String[] domainIdArr = (String[]) params.get(\"String_Node_Str\");\n if (domainIdArr == null) {\n domainIdArr = (String[]) params.get(\"String_Node_Str\");\n }\n String[] domainName = (String[]) params.get(\"String_Node_Str\");\n Long domainId = null;\n if ((domainIdArr != null) && (domainIdArr.length > 0)) {\n try {\n domainId = new Long(Long.parseLong(domainIdArr[0]));\n } catch (NumberFormatException e) {\n s_logger.warn(\"String_Node_Str\");\n resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"String_Node_Str\");\n }\n }\n String domain = null;\n if (domainName != null) {\n domain = domainName[0];\n if (domain != null) {\n if (!domain.endsWith(\"String_Node_Str\")) {\n domain += '/';\n }\n if (!domain.startsWith(\"String_Node_Str\")) {\n domain = \"String_Node_Str\" + domain;\n }\n }\n }\n if (username != null) {\n String pwd = ((password == null) ? null : password[0]);\n List<Pair<String, Object>> sessionParams = _apiServer.loginUser(session, username[0], pwd, domainId, domain, params);\n if (sessionParams != null) {\n for (Pair<String, Object> sessionParam : sessionParams) {\n session.setAttribute(sessionParam.first(), sessionParam.second());\n }\n String loginResponse = getLoginSuccessResponse(session, responseType);\n writeResponse(resp, loginResponse, false, responseType);\n return;\n } else {\n session.invalidate();\n resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"String_Node_Str\");\n return;\n }\n }\n }\n }\n boolean isNew = ((session == null) ? true : session.isNew());\n UserContext.registerContext(null, null, null, null, null, null, false);\n String userId = null;\n if (!isNew) {\n userId = (String) session.getAttribute(\"String_Node_Str\");\n String account = (String) session.getAttribute(\"String_Node_Str\");\n String domainId = (String) session.getAttribute(\"String_Node_Str\");\n Object accountObj = session.getAttribute(\"String_Node_Str\");\n String sessionKey = (String) session.getAttribute(\"String_Node_Str\");\n String[] sessionKeyParam = (String[]) params.get(\"String_Node_Str\");\n if ((sessionKeyParam == null) || (sessionKey == null) || !sessionKey.equals(sessionKeyParam[0])) {\n session.invalidate();\n resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"String_Node_Str\");\n }\n if ((userId != null) && (account != null) && (accountObj != null) && _apiServer.verifyUser(Long.valueOf(userId))) {\n String[] command = (String[]) params.get(\"String_Node_Str\");\n if (command == null) {\n s_logger.info(\"String_Node_Str\");\n resp.sendError(HttpServletResponse.SC_BAD_REQUEST, \"String_Node_Str\");\n return;\n }\n UserContext.updateContext(Long.valueOf(userId), accountObj, account, ((Account) accountObj).getId(), Long.valueOf(domainId), session.getId());\n } else {\n session.invalidate();\n resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"String_Node_Str\");\n return;\n }\n }\n if (_apiServer.verifyRequest(params, userId)) {\n try {\n String response = _apiServer.handleRequest(params, false, responseType);\n writeResponse(resp, response != null ? response : \"String_Node_Str\", false, responseType);\n } catch (ServerApiException se) {\n resp.sendError(se.getErrorCode(), se.getDescription());\n }\n } else {\n if (session != null) {\n session.invalidate();\n }\n resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"String_Node_Str\");\n }\n } catch (IOException ioex) {\n if (s_logger.isTraceEnabled()) {\n s_logger.trace(\"String_Node_Str\" + ioex);\n }\n } catch (Exception ex) {\n s_logger.error(\"String_Node_Str\", ex);\n } finally {\n UserContext.unregisterContext();\n }\n}\n"
|
"public void generateBody(ExcelXmlWriter sheetWriter) throws Exception {\n Collection<Artifact> directRequirements = source.getAllSwRequirements();\n HashCollection<String, Artifact> partitionMap = ArtifactOperations.sortByPartition(directRequirements);\n HashCollection<Artifact, String> requirementsToQualificationMethod = getQualificationMethods(source);\n HashCollection<String, String> partitionToQualificationMethod = new HashCollection<String, String>(false, TreeSet.class);\n HashCollection<String, Artifact> qualificationMethodToRequirements = new HashCollection<String, Artifact>(false, TreeSet.class);\n for (String partition : partitionMap.keySet()) {\n for (Artifact artifact : partitionMap.getValues(partition)) {\n Collection<String> values = requirementsToQualificationMethod.getValues(artifact);\n if (values != null) {\n for (String codeUnit : values) {\n if (Strings.isValid(codeUnit)) {\n int index = codeUnit.lastIndexOf(File.separator);\n codeUnit = codeUnit.substring(index + 1, codeUnit.length());\n }\n partitionToQualificationMethod.put(partition, codeUnit);\n qualificationMethodToRequirements.put(codeUnit, artifact);\n }\n }\n }\n }\n for (String partition : new TreeSet<String>(partitionToQualificationMethod.keySet())) {\n List<String> units = new ArrayList<>(partitionToQualificationMethod.getValues(partition));\n Collections.sort(units);\n for (String codeUnit : units) {\n Set<Artifact> artifacts = new HashSet<>();\n for (Artifact req : qualificationMethodToRequirements.getValues(codeUnit)) {\n List<String> attributeValues = req.getAttributeValues(CoreAttributeTypes.Partition);\n if (attributeValues.contains(partition)) {\n artifacts.add(req);\n }\n }\n processRow(sheetWriter, partition, codeUnit, ArtifactOperations.sortByParagraphNumbers(artifacts));\n }\n }\n}\n"
|
"protected boolean onRecoverableError(Context appContext, String errorId) {\n OpenPushHelper.notifyRegistrationEnd(new RegistrationResult(NokiaPushProvider.NAME, convertError(errorId), true));\n return false;\n}\n"
|
"private Composite getViewParametersComposite() {\n FormToolkit toolkit = this.getManagedForm().getToolkit();\n Composite composite = toolkit.createComposite(paramsClientComposite, SWT.BORDER);\n composite.setLayout(new GridLayout(2, false));\n conditionsColumns[0].setColumnWidth(200);\n conditionsColumns[1].setColumnWidth(150);\n conditionsColumns[3].setColumnWidth(120);\n conditionViewer = new TisTableViewer(Arrays.asList(conditionsColumns), this.getManagedForm().getToolkit(), composite);\n conditionViewer.setMainPage(this);\n conditionViewer.create();\n conditionViewer.setHeight(110);\n return composite;\n}\n"
|
"public int generatePreviousValue(int reference) throws NoSuchValueException {\n Always always = (Always) expression;\n return new EveryFieldValueGenerator(always.getEvery()).generatePreviousValue(reference);\n}\n"
|
"private int addShip(int type) {\n int id = Entity.NO_ENTITY;\n Ship ship = null;\n switch(type) {\n case Entity.FIGHTER:\n ship = new Fighter();\n break;\n case Entity.BOMBER:\n ship = new Bomber();\n break;\n case Entity.FRIGATE:\n ship = new Frigate();\n break;\n case Entity.FACTORY:\n ship = new Factory();\n break;\n }\n if (ship != null) {\n id = mEntities[type].add(ship);\n if (type != Entity.FACTORY) {\n Ship factory = (Ship) mEntities[Entity.FACTORY].get(0);\n float spawnX, spawnY;\n spawnX = factory.body.center.x + (float) (55 * Math.cos(factory.heading));\n spawnY = factory.body.center.y + (float) (55 * Math.sin(factory.heading));\n ship.body.center.set(spawnX, spawnY);\n ship.heading = factory.heading;\n } else {\n float factoryX = 0, factoryY = 0;\n float offset = (float) Math.PI / 40;\n Display display = ((WindowManager) Pax.thisContext.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n float screenX = Math.min(display.getWidth(), display.getHeight());\n float screenY = Math.max(display.getWidth(), display.getHeight());\n float orbitRadius = screenX / 3;\n float spacing = (float) (2 * Math.PI / totalPlayers);\n float theta = spacing * (float) (-.5 + playerNo);\n factoryX = screenSize.x / 2 + (float) (orbitRadius * Math.cos(theta));\n factoryY = screenSize.y / 2 + (float) (orbitRadius * Math.sin(theta));\n ship.body.center.set(factoryX, factoryY);\n ship.heading = theta - (float) Math.PI / 2 - offset;\n }\n }\n return id;\n}\n"
|
"public void widgetSelected(SelectionEvent e) {\n if (selectedParameter != null && selectedParameter != newParameter) {\n try {\n String newControlType = getSelectedDisplayType();\n if (PARAM_CONTROL_COMBO.equals(newControlType)) {\n newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX;\n selectedParameter.setMustMatch(false);\n } else if (PARAM_CONTROL_LIST.equals(newControlType)) {\n newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX;\n selectedParameter.setMustMatch(false);\n } else {\n selectedParameter.setProperty(ScalarParameterHandle.MUCH_MATCH_PROP, null);\n }\n selectedParameter.setControlType(newControlType);\n } catch (SemanticException e1) {\n ExceptionHandler.handle(e1);\n }\n }\n}\n"
|
"public void toBytes(ByteBuf buf) {\n buf.writeInt(coordinate.getX());\n buf.writeInt(coordinate.getY());\n buf.writeInt(coordinate.getZ());\n NetworkTools.writeString(buf, getName());\n teleportDestination.toBytes(buf);\n}\n"
|
"static void storeFence() {\n U.putOrderedInt(x, OFF, 0);\n}\n"
|
"public boolean Find(Scrib_proc_args args, Scrib_proc_rslt rslt) {\n String text_str = args.Xstr_str_or_null(0);\n String regx = args.Pull_str(1);\n int bgn_char_idx = args.Cast_int_or(2, 1);\n boolean plain = args.Cast_bool_or_n(3);\n synchronized (surrogate_utl) {\n byte[] text_bry = Bry_.new_u8(text_str);\n int text_bry_len = text_bry.length;\n bgn_char_idx = Bgn_adjust(text_str, bgn_char_idx);\n int bgn_adj = 0;\n int bgn_codepoint_idx = bgn_char_idx + bgn_adj;\n int bgn_byte_pos = surrogate_utl.Byte_pos();\n if (String_.Len_eq_0(regx))\n return rslt.Init_many_objs(bgn_codepoint_idx + Scrib_lib_ustring.Base1, bgn_codepoint_idx + Scrib_lib_ustring.Base1 - 1);\n if (plain) {\n int pos = String_.FindFwd(text_str, regx, bgn_codepoint_idx);\n boolean found = pos != Bry_find_.Not_found;\n return found ? rslt.Init_many_objs(pos + Scrib_lib_ustring.Base1, pos + Scrib_lib_ustring.Base1 + String_.Len(regx) - Scrib_lib_ustring.End_adj) : rslt.Init_ary_empty();\n }\n regx = regx_converter.Parse(Bry_.new_u8(regx), Scrib_regx_converter.Anchor_G);\n Regx_adp regx_adp = Scrib_lib_ustring.RegxAdp_new_(core.Ctx(), regx);\n Regx_match[] regx_rslts = regx_adp.Match_all(text_str, bgn_codepoint_idx);\n int len = regx_rslts.length;\n if (len == 0)\n return rslt.Init_ary_empty();\n List_adp tmp_list = List_adp_.New();\n Regx_match match = regx_rslts[0];\n int match_find_bgn_codepoint = match.Find_bgn();\n int match_find_bgn_adj = -surrogate_utl.Count_surrogates__codepoint_idx1(text_bry, text_bry_len, bgn_byte_pos, match_find_bgn_codepoint - bgn_codepoint_idx);\n tmp_list.Add(match_find_bgn_codepoint + match_find_bgn_adj + -bgn_adj + Scrib_lib_ustring.Base1);\n tmp_list.Add(match.Find_end() + match_find_bgn_adj + -bgn_adj + Scrib_lib_ustring.Base1 - Scrib_lib_ustring.End_adj);\n AddCapturesFromMatch(tmp_list, match, text_str, regx_converter.Capt_ary(), false);\n return rslt.Init_many_list(tmp_list);\n }\n}\n"
|
"public void and_implicit() {\n populateTestRealm(realm, 200);\n RealmQuery<AllTypes> query = realm.where(AllTypes.class).equalTo(AllTypes.FIELD_FLOAT, 31.2345f);\n RealmResults<AllTypes> resultList = query.between(AllTypes.FIELD_LONG, 1, 10).findAll();\n assertEquals(0, resultList.size());\n query = realm.where(AllTypes.class).equalTo(AllTypes.FIELD_FLOAT, 81.234567f);\n resultList = query.between(AllTypes.FIELD_LONG, 1, 100).findAll();\n assertEquals(1, resultList.size());\n}\n"
|
"public void handle(Request request, Response response) {\n logger.info(\"String_Node_Str\");\n AsyncTask t = new AsyncTask(request, response);\n System.out.println(\"String_Node_Str\");\n executor.submit(t);\n}\n"
|
"protected boolean parseImmunizationEvaluationContent(int eventType, XmlPullParser xpp, ImmunizationEvaluation res) throws XmlPullParserException, IOException, FHIRFormatError {\n if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.getIdentifier().add(parseIdentifier(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setStatusElement(parseEnumeration(xpp, ImmunizationEvaluation.ImmunizationEvaluationStatus.NULL, new ImmunizationEvaluation.ImmunizationEvaluationStatusEnumFactory()));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setPatient(parseReference(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setDateElement(parseDateTime(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setAuthority(parseReference(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.getTargetDisease().add(parseCodeableConcept(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setImmunizationEvent(parseReference(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setDoseStatus(parseCodeableConcept(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.getDoseStatusReason().add(parseCodeableConcept(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setDescriptionElement(parseString(xpp));\n } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals(\"String_Node_Str\")) {\n res.setSeriesElement(parseString(xpp));\n } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, \"String_Node_Str\")) {\n res.setDoseNumber(parseType(\"String_Node_Str\", xpp));\n } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, \"String_Node_Str\")) {\n res.setSeriesDoses(parseType(\"String_Node_Str\", xpp));\n } else if (!parseDomainResourceContent(eventType, xpp, res))\n return false;\n return true;\n}\n"
|
"public void fireReservationExpired(String reservationId) {\n waitingQueueRepository.bulkUpdateExpiredReservations(Collections.singletonList(reservationId));\n}\n"
|
"public void onContainerClosed(EntityPlayer playerIn) {\n super.onContainerClosed(playerIn);\n if (!playerIn.getEntityWorld().isRemote) {\n for (int i = 0; i < this.inventory.getSizeInventory(); ++i) {\n ItemStack itemstack = this.inventory.removeStackFromSlot(i);\n if (!ItemStackUtil.isEmpty(itemstack)) {\n playerIn.dropItem(itemstack, false);\n }\n }\n }\n}\n"
|
"private void supplementUser(int n) {\n List<HttpHost> proxyListForRegister = emptyList();\n while (userList.size() < n) {\n if (proxyListForRegister.isEmpty()) {\n logger.info(\"String_Node_Str\");\n proxyListForRegister = getXunFreeProxy();\n if (proxyListForRegister.isEmpty()) {\n throw new RegisterException(\"String_Node_Str\");\n }\n }\n try {\n HttpHost proxy = getXunFreeProxy().remove(0);\n logger.info(\"String_Node_Str\", proxy.getAddress(), proxy.getPort());\n User user = register();\n userList.add(user);\n logger.info(\"String_Node_Str\", user.getName());\n } catch (RegisterException e) {\n logger.info(\"String_Node_Str\", e.getMessage());\n }\n }\n}\n"
|
"public boolean checkIfConnectionIsAvailable() {\n boolean connection = NetworkUtils.isOnline();\n if (mIsConnectionAvailable) {\n FindPatientsManager fpm = new FindPatientsManager();\n fpm.getLastViewedPatient(mFpmResponseListener);\n }\n return connection;\n}\n"
|
"void init(MondrianDef.CubeDimension xmlDimension) {\n if (isAll()) {\n this.levelReader = new AllLevelReaderImpl();\n } else if (getLevelType() == LevelType.Null) {\n this.levelReader = new NullLevelReader();\n } else if (rolapLevel.xmlClosure != null) {\n RolapDimension dimension = (RolapDimension) rolapLevel.getClosedPeer().getHierarchy().getDimension();\n RolapCubeDimension cubeDimension = new RolapCubeDimension(getCube(), dimension, xmlDimension, getDimension().getName() + \"String_Node_Str\", getHierarchy().getDimension().getOrdinal(), getHierarchy().getDimension().isHighCardinality());\n if (!getCube().isVirtual()) {\n getCube().createUsage((RolapCubeHierarchy) cubeDimension.getHierarchies()[0], xmlDimension);\n }\n cubeDimension.init(xmlDimension);\n getCube().registerDimension(cubeDimension);\n RolapCubeLevel closedPeer = (RolapCubeLevel) cubeDimension.getHierarchies()[0].getLevels()[1];\n this.levelReader = new ParentChildLevelReaderImpl(closedPeer);\n } else {\n this.levelReader = new RegularLevelReader();\n }\n}\n"
|
"public Cancellable refresh(Parameters aParams, final Callback<Rowset, String> aCallback) throws Exception {\n if (flow != null) {\n if (rowsetChangeSupport.fireWillRequeryEvent()) {\n rowsetChangeSupport.fireBeforeRequery();\n return flow.refresh(aParams, new CallbackAdapter<Rowset, String>() {\n\n protected void doWork(Rowset aRowset) throws Exception {\n if (aRowset != null) {\n if (activeFilter != null && activeFilter.isApplied()) {\n activeFilter.deactivate();\n activeFilter = null;\n }\n if (fields == null) {\n setFields(aRowset.getFields());\n }\n List<Row> rows = aRowset.getCurrent();\n aRowset.setCurrent(new ArrayList<Row>());\n aRowset.currentToOriginal();\n setCurrent(rows);\n currentToOriginal();\n invalidateFilters();\n if (!current.isEmpty()) {\n currentRowPos = 1;\n }\n rowsetChangeSupport.fireRequeriedEvent();\n aCallback.onSuccess(Rowset.this);\n } else {\n throw new FlowProviderFailedException(BAD_FLOW_PROVIDER_RESULT_MSG);\n }\n }\n public void onFailure(String reason) {\n if (reason == null)\n reason = \"String_Node_Str\";\n rowsetChangeSupport.fireNetErrorEvent(reason);\n aCallback.onFailure(reason);\n }\n });\n } else {\n }\n }\n return null;\n } else {\n throw new MissingFlowProviderException();\n }\n}\n"
|
"public void run() {\n try {\n testDatasetCache(datasetMap);\n } catch (Throwable e) {\n ref.set(e);\n }\n}\n"
|
"public Object[] getObjectsById(Collection<? extends Object> arg0) {\n checkActive();\n Object[] res = new Object[arg0.size()];\n int i = 0;\n for (Object obj : arg0) {\n res[i] = getObjectById(obj);\n i++;\n }\n return res;\n}\n"
|
"public List<Picture> query(Object id) {\n List<Node> nodes = dom.selectNodes(\"String_Node_Str\" + id.toString() + \"String_Node_Str\");\n if (nodes != null && nodes.size() > 0) {\n pics = new ArrayList<Picture>();\n for (Node node : nodes) {\n pics.add(node2Picture(node));\n }\n return pics;\n }\n return null;\n}\n"
|
"private void upgradeUserTables() throws Exception {\n HBaseAdmin hAdmin = new HBaseAdmin(hConf);\n for (HTableDescriptor desc : hAdmin.listTables(userTablePrefix)) {\n HTableNameConverter hTableNameConverter = new HTableNameConverterFactory().get();\n TableId tableId = hTableNameConverter.from(desc);\n LOG.info(\"String_Node_Str\", tableId, desc);\n final boolean supportsIncrement = HBaseTableAdmin.supportsReadlessIncrements(desc);\n final boolean transactional = HBaseTableAdmin.isTransactional(desc);\n DatasetAdmin admin = new AbstractHBaseDataSetAdmin(tableId, hConf, hBaseTableUtil) {\n protected CoprocessorJar createCoprocessorJar() throws IOException {\n return HBaseTableAdmin.createCoprocessorJarInternal(cConf, locationFactory, hBaseTableUtil, transactional, supportsIncrement);\n }\n protected boolean upgradeTable(HTableDescriptor tableDescriptor) {\n return false;\n }\n public void create() throws IOException {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n }\n };\n admin.upgrade();\n LOG.info(\"String_Node_Str\", tableId);\n }\n}\n"
|
"public Polyline2D routeManhattan(ManhattanConnector c) {\n TransformContext currentContext = c.getTransformContext();\n Site headSite = c.getHeadSite();\n Site tailSite = c.getTailSite();\n Point2D headPt;\n Point2D tailPt;\n if (currentContext == null) {\n return new Polyline2D.Double();\n }\n double radAngle = Math.atan2(tailPt.getY() - headPt.getY(), headPt.getX() - tailPt.getX());\n double distance = tailPt.distance(headPt);\n int headDir = _getManhattanDirection(radAngle, distance, true, headSite.hasNormal() ? CanvasUtilities.getDirection(headSite.getNormal()) : -1);\n headSite.setNormal(CanvasUtilities.getNormal(headDir));\n if (currentContext != null) {\n headPt = headSite.getPoint(currentContext);\n } else {\n headPt = headSite.getPoint();\n }\n int tailDir = _getManhattanDirection(radAngle, distance, false, tailSite.hasNormal() ? CanvasUtilities.getDirection(tailSite.getNormal()) : -1);\n tailSite.setNormal(CanvasUtilities.getNormal(tailDir));\n if (currentContext != null) {\n tailPt = tailSite.getPoint(currentContext);\n } else {\n tailPt = tailSite.getPoint();\n }\n headDir = CanvasUtilities.getDirection(headSite.getNormal());\n tailDir = CanvasUtilities.getDirection(tailSite.getNormal());\n double headAngle = CanvasUtilities.getNormal(headDir);\n double tailAngle = CanvasUtilities.getNormal(tailDir);\n if (c.getHeadEnd() != null) {\n c.getHeadEnd().setNormal(headAngle);\n c.getHeadEnd().setOrigin(headPt.getX(), headPt.getY());\n c.getHeadEnd().getConnection(headPt);\n }\n if (c.getTailEnd() != null) {\n c.getTailEnd().setNormal(tailAngle);\n c.getTailEnd().setOrigin(tailPt.getX(), tailPt.getY());\n c.getTailEnd().getConnection(tailPt);\n }\n Polyline2D route = _route(headPt, headDir, tailPt, tailDir);\n return route;\n}\n"
|
"public EquivalenceClassStatistics getEquivalenceClassStatistics() {\n double averageEquivalenceClassSize = 0;\n int averageEquivalenceClassSizeCounter = 0;\n int maximalEquivalenceClassSize = Integer.MIN_VALUE;\n int minimalEquivalenceClassSize = Integer.MAX_VALUE;\n int numberOfEquivalenceClasses = 0;\n int numberOfOutlyingEquivalenceClasses = 0;\n int numberOfOutlyingTuples = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n if (entry.count > 0) {\n numberOfEquivalenceClasses++;\n if (!entry.isNotOutlier) {\n numberOfOutlyingEquivalenceClasses++;\n numberOfOutlyingTuples += entry.count;\n } else {\n averageEquivalenceClassSizeCounter += entry.count;\n maximalEquivalenceClassSize = Math.max(maximalEquivalenceClassSize, entry.count);\n minimalEquivalenceClassSize = Math.min(minimalEquivalenceClassSize, entry.count);\n }\n }\n entry = entry.nextOrdered;\n }\n if (minimalEquivalenceClassSize == Integer.MAX_VALUE) {\n minimalEquivalenceClassSize = 0;\n }\n if (maximalEquivalenceClassSize == Integer.MIN_VALUE) {\n maximalEquivalenceClassSize = 0;\n }\n if (numberOfEquivalenceClasses - numberOfOutlyingEquivalenceClasses == 0) {\n averageEquivalenceClassSize = 0;\n } else {\n averageEquivalenceClassSize = (double) averageEquivalenceClassSizeCounter / (double) (numberOfEquivalenceClasses - numberOfOutlyingEquivalenceClasses);\n }\n double averageEquivalenceClassSizeAll = averageEquivalenceClassSize;\n int maximalEquivalenceClassSizeAll = maximalEquivalenceClassSize;\n int minimalEquivalenceClassSizeAll = minimalEquivalenceClassSize;\n if (averageEquivalenceClassSize != 0 && numberOfOutlyingTuples > 0) {\n averageEquivalenceClassSizeAll = (double) (averageEquivalenceClassSizeCounter + numberOfOutlyingTuples) / (double) (numberOfEquivalenceClasses - numberOfOutlyingEquivalenceClasses + 1);\n maximalEquivalenceClassSizeAll = Math.max(maximalEquivalenceClassSize, numberOfOutlyingTuples);\n minimalEquivalenceClassSizeAll = Math.min(minimalEquivalenceClassSize, numberOfOutlyingTuples);\n } else {\n averageEquivalenceClassSizeAll = 0;\n maximalEquivalenceClassSizeAll = 0;\n minimalEquivalenceClassSizeAll = 0;\n }\n return new EquivalenceClassStatistics(averageEquivalenceClassSize, maximalEquivalenceClassSize, minimalEquivalenceClassSize, averageEquivalenceClassSizeAll, maximalEquivalenceClassSizeAll, minimalEquivalenceClassSizeAll, numberOfEquivalenceClasses, numberOfOutlyingEquivalenceClasses, numberOfOutlyingTuples, viewStatistics);\n}\n"
|
"public String getLuceneWhereClause(Relation relation) {\n String result;\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n String column = relation.getLeftTerm().toString().substring(relation.getLeftTerm().toString().lastIndexOf('.') + 1);\n String value = relation.getRightTerm().toString();\n String[] processedQuery = processLuceneQueryType(value);\n sb.append(\"String_Node_Str\");\n sb.append(processedQuery[0]);\n sb.append(\"String_Node_Str\");\n sb.append(column);\n sb.append(\"String_Node_Str\");\n sb.append(processedQuery[1]);\n sb.append(\"String_Node_Str\");\n sb.replace(sb.length() - 1, sb.length(), \"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n result = sb.toString();\n return result;\n}\n"
|
"public User getUserByUuid(String uuid) {\n FlushMode flushMode = sessionFactory.getCurrentSession().getFlushMode();\n sessionFactory.getCurrentSession().setFlushMode(FlushMode.MANUAL);\n User u = (User) sessionFactory.getCurrentSession().createQuery(\"String_Node_Str\").setString(\"String_Node_Str\", uuid).uniqueResult();\n sessionFactory.getCurrentSession().setFlushMode(flushMode);\n return u;\n}\n"
|
"public NumberSequenceIterator[] split(int numPartitions) {\n if (numPartitions < 1) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (numPartitions == 1) {\n return new NumberSequenceIterator[] { new NumberSequenceIterator(current, to) };\n }\n long elementsPerSplit;\n if (to - current + 1 >= 0) {\n elementsPerSplit = (to - current + 1) / numPartitions;\n } else {\n final long halfDiff;\n if (current == Long.MIN_VALUE) {\n halfDiff = (Long.MAX_VALUE / 2 + 1) + to / 2;\n } else {\n long posFrom = -current;\n if (posFrom > to) {\n halfDiff = to + ((posFrom - to) / 2);\n } else {\n halfDiff = posFrom + ((to - posFrom) / 2);\n }\n }\n elementsPerSplit = halfDiff / numPartitions * 2;\n }\n if (elementsPerSplit < Long.MAX_VALUE) {\n long numWithExtra = -(elementsPerSplit * numPartitions) + to - current;\n if (numWithExtra > numPartitions) {\n elementsPerSplit++;\n numWithExtra -= numPartitions;\n if (numWithExtra > numPartitions) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n }\n NumberSequenceIterator[] iters = new NumberSequenceIterator[numPartitions];\n long curr = current;\n int i = 0;\n for (; i < numWithExtra; i++) {\n long next = curr + elementsPerSplit + 1;\n iters[i] = new NumberSequenceIterator(curr, next);\n curr = next;\n }\n for (; i < numPartitions; i++) {\n long next = curr + elementsPerSplit;\n iters[i] = new NumberSequenceIterator(curr, next);\n curr = next;\n }\n return iters;\n } else {\n if (numPartitions != 2) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n return new NumberSequenceIterator[] { new NumberSequenceIterator(current, current + elementsPerSplit), new NumberSequenceIterator(current + elementsPerSplit, to) };\n }\n}\n"
|
"public synchronized int numBroadcastPeers(Sha256Hash txHash) {\n cleanPool();\n Entry entry = memoryPool.get(txHash);\n if (entry == null) {\n return 0;\n } else if (entry.tx == null) {\n Preconditions.checkNotNull(entry.addresses);\n return entry.addresses.size();\n } else if (entry.tx.get() == null) {\n memoryPool.remove(txHash);\n return 0;\n } else {\n final Transaction tx = entry.tx.get();\n if (tx == null) {\n memoryPool.remove(txHash);\n return 0;\n } else {\n Preconditions.checkState(entry.addresses == null);\n return tx.getConfidence().numBroadcastPeers();\n }\n }\n}\n"
|
"private boolean isMappedChild(String tempXpath) {\n if (targetAbsolutePath == null) {\n targetAbsolutePath = new ArrayList<String>();\n targetAbsolutePath.add(absoluteXPathQuery);\n Pattern regex = Pattern.compile(RELATIVE_PATH_PATTERN, Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);\n for (Object obj : schemaTargets) {\n String relativeXPathQuery = \"String_Node_Str\";\n if (obj instanceof SchemaTarget) {\n relativeXPathQuery = ((SchemaTarget) obj).getRelativeXPathQuery();\n } else if (obj instanceof ConceptTarget) {\n relativeXPathQuery = ((ConceptTarget) obj).getRelativeLoopExpression();\n }\n StringBuffer tempAbsolute = new StringBuffer();\n tempAbsolute.append(absoluteXPathQuery);\n tempAbsolute.append(XmlMapUtil.XPATH_SEPARATOR);\n tempAbsolute.append(relativeXPathQuery);\n if (relativeXPathQuery.startsWith(RELATIVE_PATH)) {\n Matcher regexMatcher = regex.matcher(relativeXPathQuery);\n int relativeLength = 0;\n while (regexMatcher.find()) {\n relativeLength++;\n }\n if (relativeLength > 0) {\n String subRelativeQuery = relativeXPathQuery.substring(relativeLength * RELATIVE_PATH.length(), relativeXPathQuery.length());\n String[] absoluteSplit = absoluteXPathQuery.split(XmlMapUtil.XPATH_SEPARATOR);\n if (absoluteSplit.length > relativeLength) {\n tempAbsolute = new StringBuffer();\n for (int i = 0; i < absoluteSplit.length - relativeLength; i++) {\n tempAbsolute.append(absoluteSplit[i]);\n tempAbsolute.append(XmlMapUtil.XPATH_SEPARATOR);\n }\n tempAbsolute.append(subRelativeQuery);\n }\n }\n }\n targetAbsolutePath.add(tempAbsolute.toString());\n }\n final String toAbsolute = absoluteXPathQuery + XmlMapUtil.XPATH_SEPARATOR + relativeXPathQuery;\n if (toAbsolute.startsWith(tempXpath)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public void actionPerformed(ActionEvent arg0) {\n if (wProtectObj.isSelected() || bProtectObj.isSelected()) {\n if (!(wProtectObj.isSelected() && bProtectObj.isSelected())) {\n int answer = JOptionPane.showConfirmDialog(null, \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", JOptionPane.YES_NO_OPTION);\n if (answer != 0)\n return;\n }\n }\n if ((wCaptureAll.isSelected() && bLoseAll.isSelected()) || (bCaptureAll.isSelected() && wLoseAll.isSelected())) {\n JOptionPane.showMessageDialog(null, \"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n if (wCheckTimes.isSelected() || bCheckTimes.isSelected()) {\n if (!(wCheckTimes.isSelected() && bCheckTimes.isSelected())) {\n int answer = JOptionPane.showConfirmDialog(null, \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", JOptionPane.YES_NO_OPTION);\n if (answer != 0)\n return;\n }\n }\n if (wCaptureAll.isSelected()) {\n whiteRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", true, 0, \"String_Node_Str\", false));\n }\n if (wCaptureAllType.isSelected()) {\n whiteRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n }\n if (wProtectObj.isSelected()) {\n whiteRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n needsObj = true;\n }\n if (wLoseAll.isSelected()) {\n whiteRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n }\n if (wCheckTimes.isSelected()) {\n whiteRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 3, \"String_Node_Str\"));\n }\n if (bCaptureAll.isSelected()) {\n blackRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", true, 0, \"String_Node_Str\"));\n }\n if (bCaptureAllType.isSelected()) {\n blackRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n needsObj = false;\n }\n if (bProtectObj.isSelected()) {\n blackRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n }\n if (bLoseAll.isSelected()) {\n blackRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 0, \"String_Node_Str\"));\n }\n if (bCheckTimes.isSelected()) {\n blackRules.addEndOfGame(new EndOfGame(\"String_Node_Str\", false, 3, \"String_Node_Str\"));\n needsObj = false;\n }\n Driver.getInstance().setPanel(new RuleMaker(b, whiteRules, blackRules));\n}\n"
|
"public boolean export(URI destination, BuildPlan buildPlan) throws IOException, JAXBException {\n if (!new File(destination).getName().contains(\"String_Node_Str\")) {\n return false;\n }\n List<File> importedFiles = buildPlan.getImportedFiles();\n SimpleFileExporter.LOG.debug(\"String_Node_Str\");\n for (File file : importedFiles) {\n SimpleFileExporter.LOG.debug(file.getAbsolutePath());\n }\n List<Element> importElements = buildPlan.getBpelImportElements();\n SimpleFileExporter.LOG.debug(\"String_Node_Str\");\n for (Element element : importElements) {\n SimpleFileExporter.LOG.debug(\"String_Node_Str\" + element.getLocalName());\n SimpleFileExporter.LOG.debug(\"String_Node_Str\" + element.getAttribute(\"String_Node_Str\"));\n }\n GenericWsdlWrapper wsdl = buildPlan.getWsdl();\n File tempDir = this.getFileAccessService().getTemp();\n SimpleFileExporter.LOG.debug(\"String_Node_Str\" + tempDir.getAbsolutePath());\n File tempFolder = new File(tempDir, Long.toString(System.currentTimeMillis()));\n tempFolder.mkdir();\n SimpleFileExporter.LOG.debug(\"String_Node_Str\" + tempFolder.getAbsolutePath());\n List<File> exportedFiles = new ArrayList<File>();\n for (File importedFile : importedFiles) {\n for (Element importElement : importElements) {\n String filePath = importedFile.getAbsolutePath();\n String locationPath = importElement.getAttribute(\"String_Node_Str\");\n SimpleFileExporter.LOG.debug(\"String_Node_Str\");\n SimpleFileExporter.LOG.debug(filePath);\n SimpleFileExporter.LOG.debug(\"String_Node_Str\");\n SimpleFileExporter.LOG.debug(locationPath);\n if (importedFile.getAbsolutePath().trim().equals(importElement.getAttribute(\"String_Node_Str\").trim())) {\n String fileName = importedFile.getName();\n SimpleFileExporter.LOG.debug(\"String_Node_Str\" + fileName);\n importElement.setAttribute(\"String_Node_Str\", fileName);\n File fileLocationInDir = new File(tempFolder, fileName);\n FileUtils.copyFile(importedFile, fileLocationInDir);\n exportedFiles.add(fileLocationInDir);\n }\n }\n }\n SimpleFileExporter.LOG.debug(\"String_Node_Str\");\n Deploy deployment = buildPlan.getDeploymentDeskriptor();\n try {\n this.rewriteServiceNames(deployment, exportedFiles, buildPlan.getCsarName());\n } catch (WSDLException e) {\n LOG.warn(\"String_Node_Str\", e);\n } catch (FileNotFoundException e) {\n LOG.warn(\"String_Node_Str\", e);\n }\n File deployXmlFile = new File(tempFolder, \"String_Node_Str\");\n deployXmlFile.createNewFile();\n JAXBContext jaxbContext = JAXBContext.newInstance(Deploy.class);\n Marshaller m = jaxbContext.createMarshaller();\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n m.marshal(deployment, deployXmlFile);\n File wsdlFile = new File(tempFolder, wsdl.getFileName());\n FileUtils.writeStringToFile(wsdlFile, wsdl.getFinalizedWsdlAsString());\n File bpelFile = new File(tempFolder, wsdl.getFileName().replace(\"String_Node_Str\", \"String_Node_Str\"));\n try {\n this.writeBPELDocToFile(bpelFile, buildPlan.getBpelDocument());\n } catch (TransformerException e) {\n SimpleFileExporter.LOG.error(\"String_Node_Str\", e);\n return false;\n }\n ServiceReference<?> servRef = FrameworkUtil.getBundle(this.getClass()).getBundleContext().getServiceReference(IFileAccessService.class.getName());\n IFileAccessService service = (IFileAccessService) FrameworkUtil.getBundle(this.getClass()).getBundleContext().getService(servRef);\n service.zip(tempFolder, new File(destination));\n return true;\n}\n"
|
"void parseRow(Map<String, Object> row, Map<String, Map<String, OFFlowMod>> entries) {\n String switchName = null;\n String entryName = null;\n StringBuffer matchString = new StringBuffer();\n if (ofMessageFactory == null)\n ofMessageFactory = new BasicFactory();\n OFFlowMod flowMod = (OFFlowMod) ofMessageFactory.getMessage(OFType.FLOW_MOD);\n if (!row.containsKey(COLUMN_SWITCH) || !row.containsKey(COLUMN_NAME)) {\n log.debug(\"String_Node_Str\", row);\n return;\n }\n try {\n switchName = (String) row.get(COLUMN_SWITCH);\n entryName = (String) row.get(COLUMN_NAME);\n if (!entries.containsKey(switchName))\n entries.put(switchName, new HashMap<String, OFFlowMod>());\n StaticFlowEntries.initDefaultFlowMod(flowMod, entryName);\n for (String key : row.keySet()) {\n if (row.get(key) == null)\n continue;\n if (key.equals(COLUMN_SWITCH) || key.equals(COLUMN_NAME) || key.equals(\"String_Node_Str\"))\n continue;\n if (key.equals(COLUMN_WILDCARD))\n continue;\n if (key.equals(COLUMN_ACTIVE)) {\n if (!Boolean.valueOf((String) row.get(COLUMN_ACTIVE))) {\n log.debug(\"String_Node_Str\", entryName, switchName);\n entries.get(switchName).put(entryName, null);\n return;\n }\n } else if (key.equals(COLUMN_ACTIONS)) {\n StaticFlowEntries.parseActionString(flowMod, (String) row.get(COLUMN_ACTIONS), log);\n } else if (key.equals(COLUMN_COOKIE)) {\n flowMod.setCookie(StaticFlowEntries.computeEntryCookie(flowMod, Integer.valueOf((String) row.get(COLUMN_COOKIE)), entryName));\n } else if (key.equals(COLUMN_PRIORITY)) {\n flowMod.setPriority(U16.t(Integer.valueOf((String) row.get(COLUMN_PRIORITY))));\n } else if (key.equals(COLUMN_HARD_TIMEOUT)) {\n flowMod.setHardTimeout(Short.valueOf(((String) (row.get(COLUMN_HARD_TIMEOUT)))));\n } else if (key.equals(COLUMN_IDLE_TIMEOUT)) {\n flowMod.setIdleTimeout(Short.valueOf(((String) (row.get(COLUMN_IDLE_TIMEOUT)))));\n } else {\n if (matchString.length() > 0)\n matchString.append(\"String_Node_Str\");\n matchString.append(key + \"String_Node_Str\" + row.get(key).toString());\n }\n }\n } catch (ClassCastException e) {\n if (entryName != null && switchName != null)\n log.debug(\"String_Node_Str\" + e.getMessage(), entryName, switchName);\n else\n log.debug(\"String_Node_Str\", e.getMessage(), e.getStackTrace());\n }\n OFMatch ofMatch = new OFMatch();\n String match = matchString.toString();\n try {\n ofMatch.fromString(match);\n } catch (IllegalArgumentException e) {\n log.debug(\"String_Node_Str\" + match, entryName, switchName);\n return;\n }\n flowMod.setMatch(ofMatch);\n entries.get(switchName).put(entryName, flowMod);\n}\n"
|
"public void animateToPressed() {\n unscheduleSelf(mUpdater);\n mReverse = false;\n if (mCurrentScale < 1) {\n mRunning = true;\n mAnimationInitialValue = mCurrentScale;\n float durationFactor = 1f - mCurrentScale;\n mDuration = (int) (Ui.ANIMATION_DURATION * durationFactor);\n mStartTime = SystemClock.uptimeMillis();\n scheduleSelf(mUpdater, mStartTime + FRAME_DURATION);\n } else {\n notifyFinishedToListener();\n }\n}\n"
|
"public List<Parameter<?>> getParameters() {\n return Parameter.forConstructor(errorHandler, standardConstructor);\n}\n"
|
"public boolean removeSort(SortDescriptor sort) {\n List<SortDescriptor> sortsCopy = sorts == null ? new ArrayList<>() : new ArrayList<>(Arrays.asList(sorts));\n boolean result = sortsCopy.remove(sort);\n if (result) {\n this.setSorts(sortsCopy.toArray(new SortDescriptor[sortsCopy.size()]));\n }\n return result;\n}\n"
|
"private EntityMutationContext preCreateOrUpdate(final List<AtlasEntity> atlasEntities) throws AtlasBaseException {\n EntityGraphDiscoveryContext discoveredEntities = graphDiscoverer.discoverEntities(atlasEntities);\n EntityMutationContext context = new EntityMutationContext(discoveredEntities);\n for (AtlasEntity entity : discoveredEntities.getRootEntities()) {\n AtlasVertex vertex = null;\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\", entity);\n }\n AtlasEntityType entityType = typeRegistry.getEntityTypeByName(entity.getTypeName());\n if (entityType == null) {\n throw new AtlasBaseException(AtlasErrorCode.TYPE_NAME_INVALID, TypeCategory.ENTITY.name(), entity.getTypeName());\n }\n if (discoveredEntities.isResolved(entity.getGuid())) {\n vertex = discoveredEntities.getResolvedReference(entity.getGuid());\n context.addUpdated(entity, entityType, vertex);\n String guid = AtlasGraphUtilsV1.getIdFromVertex(vertex);\n RequestContextV1.get().recordEntityUpdate(new AtlasObjectId(entityType.getTypeName(), guid));\n } else {\n vertex = graphMapper.createVertexTemplate(entity, entityType);\n context.addCreated(entity, entityType, vertex);\n discoveredEntities.addRepositoryResolvedReference(new AtlasObjectId(entityType.getTypeName(), entity.getGuid()), vertex);\n String guid = AtlasGraphUtilsV1.getIdFromVertex(vertex);\n RequestContextV1.get().recordEntityCreate(guid);\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\", entity, vertex);\n }\n }\n return context;\n}\n"
|
"private void block(Context context, SwiftAST tree) throws UserException {\n LogHelper.trace(context, \"String_Node_Str\");\n if (tree.getType() != ExMParser.BLOCK) {\n throw new STCRuntimeError(\"String_Node_Str\" + \"String_Node_Str\" + tree.getLine() + \"String_Node_Str\" + tree.getCharPositionInLine());\n }\n VariableUsageInfo blockVu = tree.checkedGetVariableUsage();\n for (SwiftAST stmt : tree.children()) {\n walkStatement(context, stmt, blockVu);\n }\n closeBlockVariables(context, closeArgs);\n LogHelper.trace(context, \"String_Node_Str\");\n}\n"
|
"private Map<String, String> doStartSession(NamespaceId namespace, Map<String, String> additionalSessionConf) throws IOException, ExploreException, NamespaceNotFoundException {\n Map<String, String> sessionConf = new HashMap<>();\n QueryHandle queryHandle = QueryHandle.generate();\n sessionConf.put(Constants.Explore.QUERY_ID, queryHandle.getHandle());\n String schedulerQueue = namespace != null ? schedulerQueueResolver.getQueue(namespace.toId()) : schedulerQueueResolver.getDefaultQueue();\n if (schedulerQueue != null && !schedulerQueue.isEmpty()) {\n sessionConf.put(JobContext.QUEUE_NAME, schedulerQueue);\n }\n Transaction tx = startTransaction();\n ConfigurationUtil.set(sessionConf, Constants.Explore.TX_QUERY_KEY, TxnCodec.INSTANCE, tx);\n ConfigurationUtil.set(sessionConf, Constants.Explore.CCONF_KEY, CConfCodec.INSTANCE, cConf);\n ConfigurationUtil.set(sessionConf, Constants.Explore.HCONF_KEY, HConfCodec.INSTANCE, hConf);\n HiveConf hiveConf = getHiveConf();\n if (ExploreServiceUtils.isSparkEngine(hiveConf, additionalSessionConf)) {\n sessionConf.putAll(sparkConf);\n }\n if (UserGroupInformation.isSecurityEnabled()) {\n sessionConf.put(\"String_Node_Str\", \"String_Node_Str\");\n sessionConf.put(\"String_Node_Str\", \"String_Node_Str\");\n File credentialsFile = writeCredentialsFile(queryHandle);\n String credentialsFilePath = credentialsFile.getAbsolutePath();\n sessionConf.put(MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY, credentialsFilePath);\n sessionConf.put(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION, UserGroupInformation.AuthenticationMethod.KERBEROS.name());\n sessionConf.put(Constants.Explore.SUBMITLOCALTASKVIACHILD, Boolean.FALSE.toString());\n sessionConf.put(Constants.Explore.SUBMITVIACHILD, Boolean.FALSE.toString());\n if (ExploreServiceUtils.isTezEngine(hiveConf, additionalSessionConf)) {\n sessionConf.put(\"String_Node_Str\", credentialsFilePath);\n }\n }\n if (additionalSessionConf != null) {\n sessionConf.putAll(additionalSessionConf);\n }\n return sessionConf;\n}\n"
|
"private void ack(final ChannelHandlerContext ctx, PBAPNSEvent cc) {\n PBAPNSMessage.Builder builder = PBAPNSMessage.newBuilder();\n builder.setAps(PBAPNSBody.newBuilder().setAlert(\"String_Node_Str\").setBadge(0));\n if (cc != null) {\n builder.addUserInfo(PBAPNSUserInfo.newBuilder().setKey(\"String_Node_Str\").setValue(cc.getOp() + \"String_Node_Str\"));\n } else {\n builder.addUserInfo(PBAPNSUserInfo.newBuilder().setKey(\"String_Node_Str\").setValue(\"String_Node_Str\"));\n }\n byte[] bytes = builder.build().toByteArray();\n final ByteBuf data = ctx.alloc().buffer(bytes.length);\n data.writeBytes(bytes);\n final ChannelFuture cf = ctx.channel().writeAndFlush(data);\n cf.addListener(new GenericFutureListener<Future<? super Void>>() {\n public void operationComplete(Future<? super Void> future) throws Exception {\n if (cf.cause() != null) {\n logger.error(\"String_Node_Str\", cf.cause());\n ctx.close();\n }\n }\n });\n}\n"
|
"public void initFrom(View view) {\n super.initFrom(view);\n if (view instanceof TextView) {\n mText = (TextView) view;\n }\n}\n"
|
"protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int paddingLeft = getPaddingLeft();\n final int paddingTop = getPaddingTop();\n final int childCount = getChildCount();\n if (mFirstLayout) {\n switch(mSlideState) {\n case EXPANDED:\n mSlideOffset = 1.0f;\n break;\n case ANCHORED:\n mSlideOffset = mAnchorPoint;\n break;\n case HIDDEN:\n int newTop = computePanelTopPosition(0.0f) + (mIsSlidingUp ? +mPanelHeight : -mPanelHeight);\n mSlideOffset = computeSlideOffset(newTop);\n break;\n default:\n mSlideOffset = 0.f;\n break;\n }\n }\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n if (child.getVisibility() == GONE && (i == 0 || mFirstLayout)) {\n continue;\n }\n final int childHeight = child.getMeasuredHeight();\n int childTop = paddingTop;\n if (child == mSlideableView) {\n childTop = computePanelTopPosition(mSlideOffset);\n }\n if (!mIsSlidingUp) {\n if (child == mMainView && !mOverlayContent) {\n childTop = computePanelTopPosition(mSlideOffset) + mSlideableView.getMeasuredHeight();\n }\n }\n final int childBottom = childTop + childHeight;\n final int childLeft = paddingLeft;\n final int childRight = childLeft + child.getMeasuredWidth();\n child.layout(childLeft, childTop, childRight, childBottom);\n }\n if (mFirstLayout) {\n updateObscuredViewVisibility();\n }\n mFirstLayout = false;\n}\n"
|
"public static Section buildHistoryOfPresentIllnessSection(Patient patient) {\n Section section = CDAFactory.eINSTANCE.createSection();\n HistoryOfPresentIllnessSection ccs = new HistoryOfPresentIllnessSection();\n section.getTemplateIds().add(CDAHelper.buildTemplateID(ccs.getTemplateid(), null, null));\n section.setCode(CDAHelper.buildCodeCE(ccs.getCode(), ccs.getCodeSystem(), ccs.getSectionName(), ccs.getCodeSystemName()));\n section.setTitle(CDAHelper.buildTitle(ccs.getSectionDescription()));\n StrucDocText text = CDAFactory.eINSTANCE.createStrucDocText();\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n ConceptService service = Context.getConceptService();\n Map<String, Date> latestObsdate = new HashMap<String, Date>();\n Concept concept = service.getConceptByMapping(\"String_Node_Str\", \"String_Node_Str\");\n List<Obs> observationList = new ArrayList<Obs>();\n observationList.addAll(Context.getObsService().getObservationsByPersonAndConcept(patient, concept));\n String value = \"String_Node_Str\";\n Obs obs = CDAHelper.getLatestObs(observationList);\n int type = obs.getConcept().getDatatype().getId();\n value = CDAHelper.getDatatypesValue(type, obs);\n builder.append(value);\n builder.append(\"String_Node_Str\");\n text.addText(builder.toString());\n section.setText(text);\n return section;\n}\n"
|
"public Object[] getChildren(Object parentElement) {\n if (parentElement instanceof IContainer) {\n IContainer container = (IContainer) parentElement;\n IResource[] members = null;\n try {\n members = container.members();\n } catch (CoreException e) {\n log.error(\"String_Node_Str\" + container.getLocation());\n }\n if (ResourceManager.getConnectionFolder().equals(container) || ResourceManager.getMDMConnectionFolder().equals(container)) {\n ComparatorsFactory.sort(members, ComparatorsFactory.FILEMODEL_COMPARATOR_ID);\n }\n return clearMdmFolder(members, mdmFlag);\n } else if (parentElement instanceof NamedColumnSet) {\n return null;\n } else if (parentElement instanceof NamedColumnSetFolderNode) {\n NamedColumnSetFolderNode folerNode = (NamedColumnSetFolderNode) parentElement;\n folerNode.loadChildren();\n Object[] children = folerNode.getChildren();\n if (children != null && children.length > 0) {\n if (!(children[0] instanceof ColumnSet)) {\n return children;\n }\n for (int i = 0; i < children.length; i++) {\n ColumnSet columnSet = (ColumnSet) children[i];\n ModelElementKey key = new ModelElementKeyImpl(columnSet);\n if (modelElementCheckedMap.containsKey(key)) {\n currentCheckedModelElement.add(columnSet);\n }\n }\n }\n return ComparatorsFactory.sort(children, ComparatorsFactory.MODELELEMENT_COMPARATOR_ID);\n } else if (parentElement instanceof TdXMLDocument || parentElement instanceof TdXMLElement) {\n boolean isXmlDocument = parentElement instanceof TdXMLDocument;\n List<? extends ModelElement> modelElements = isXmlDocument ? DqRepositoryViewService.getXMLElements((TdXMLDocument) parentElement) : DqRepositoryViewService.getXMLElements((TdXMLElement) parentElement);\n Object[] children = XmlElementHelper.clearLeafNode(modelElements).toArray();\n if (children != null && children.length > 0) {\n if (!(children[0] instanceof TdXMLElement)) {\n return children;\n }\n for (int i = 0; i < children.length; i++) {\n TdXMLElement xmlElement = (TdXMLElement) children[i];\n ModelElementKey key = new ModelElementKeyImpl(xmlElement);\n if (modelElementCheckedMap.containsKey(key)) {\n currentCheckedModelElement.add(xmlElement);\n }\n }\n }\n return children.length == 0 ? null : children;\n }\n return super.getChildren(parentElement);\n}\n"
|
"public DirectInputStream getBin(int col) {\n return rec.getBin(col);\n}\n"
|