content
stringlengths
40
137k
"public void info(SearchStatusInfo info) {\n if (bestMove != search.getBestMove()) {\n bestMove = search.getBestMove();\n solutionTime = (int) info.getTime();\n solutionNodes = info.getNodes();\n }\n boolean found = bestMoves.length <= 0;\n for (int move : bestMoves) {\n if (move == search.getBestMove()) {\n found = true;\n break;\n }\n }\n for (int move : avoidMoves) {\n if (move == search.getBestMove()) {\n found = false;\n break;\n }\n }\n solutionFound = found;\n if (found) {\n logger.debug(TestColors.ANSI_GREEN + info.toString() + TestColors.ANSI_RESET);\n } else {\n logger.debug(TestColors.ANSI_RED + info.toString() + TestColors.ANSI_RESET);\n }\n}\n"
"public void testDefineOpenContentPropertyNullUri() {\n SDOType propertyType = (SDOType) typeHelper.getType(SDOConstants.SDO_URL, SDOConstants.PROPERTY);\n DataObject propDO = dataFactory.create(propertyType);\n propDO.set(\"String_Node_Str\", \"String_Node_Str\");\n propDO.set(\"String_Node_Str\", SDOConstants.SDO_STRING);\n typeHelper.defineOpenContentProperty(null, propDO);\n Property typeProp = typeHelper.getOpenContentProperty(\"String_Node_Str\", \"String_Node_Str\");\n assertNull(typeProp);\n Property xsdProp = xsdHelper.getGlobalProperty(\"String_Node_Str\", \"String_Node_Str\", true);\n assertNull(xsdProp);\n xsdProp = xsdHelper.getGlobalProperty(\"String_Node_Str\", \"String_Node_Str\", false);\n assertNull(xsdProp);\n}\n"
"public void testNorwayCollation() throws SQLException {\n DataSource ds = JDBCDataSource.getDataSourceLogical(\"String_Node_Str\");\n JDBCDataSource.setBeanProperty(ds, \"String_Node_Str\", \"String_Node_Str\");\n setUpTable(ds);\n checkLangBasedQuery(ds, \"String_Node_Str\", new String[][] { { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" } });\n checkLangBasedQuery(ds, \"String_Node_Str\", null);\n checkLangBasedQuery(ds, \"String_Node_Str\", null);\n dropTable(ds);\n}\n"
"public double getExp() {\n return this.Exp;\n}\n"
"public int canDrop(Object transfer, Object target, int operation, DNDLocation location) {\n if (transfer instanceof Object[]) {\n }\n if (transfer.equals(TEMPLATE)) {\n if (target instanceof TableCellEditPart) {\n CellHandle cellHandle = (CellHandle) ((TableCellEditPart) target).getModel();\n int slotId = cellHandle.getContainer().getContainerSlotHandle().getSlotID();\n if (slotId == TableHandle.HEADER_SLOT || slotId == TableHandle.FOOTER_SLOT || slotId == TableHandle.GROUP_SLOT) {\n return DNDService.LOGIC_TRUE;\n } else {\n return DNDService.LOGIC_FALSE;\n }\n } else if (target instanceof ListBandEditPart) {\n ListBandProxy cellHandle = (ListBandProxy) ((ListBandEditPart) target).getModel();\n int slotId = cellHandle.getSlotId();\n if (slotId == ListHandle.HEADER_SLOT || slotId == ListHandle.FOOTER_SLOT || slotId == ListHandle.GROUP_SLOT) {\n return DNDService.LOGIC_TRUE;\n } else {\n return DNDService.LOGIC_FALSE;\n }\n }\n }\n return DNDService.LOGIC_UNKNOW;\n}\n"
"private synchronized final void update() {\n native_update();\n boolean logOutlier = false;\n long dischargeDuration = 0;\n shutdownIfNoPower();\n mBatteryLevelCritical = mBatteryLevel <= CRITICAL_BATTERY_LEVEL;\n if (mAcOnline) {\n mPlugType = BatteryManager.BATTERY_PLUGGED_AC;\n } else if (mUsbOnline) {\n mPlugType = BatteryManager.BATTERY_PLUGGED_USB;\n } else {\n mPlugType = BATTERY_PLUGGED_NONE;\n }\n if (mBatteryStatus != mLastBatteryStatus || mBatteryHealth != mLastBatteryHealth || mBatteryPresent != mLastBatteryPresent || mBatteryLevel != mLastBatteryLevel || mPlugType != mLastPlugType || mBatteryVoltage != mLastBatteryVoltage || mBatteryTemperature != mLastBatteryTemperature) {\n if (mPlugType != mLastPlugType) {\n if (mLastPlugType == BATTERY_PLUGGED_NONE) {\n if (mDischargeStartTime != 0 && mDischargeStartLevel != mBatteryLevel) {\n dischargeDuration = SystemClock.elapsedRealtime() - mDischargeStartTime;\n logOutlier = true;\n EventLog.writeEvent(LOG_BATTERY_DISCHARGE_STATUS, dischargeDuration, mDischargeStartLevel, mBatteryLevel);\n mDischargeStartTime = 0;\n }\n } else if (mPlugType == BATTERY_PLUGGED_NONE) {\n mDischargeStartTime = SystemClock.elapsedRealtime();\n mDischargeStartLevel = mBatteryLevel;\n }\n }\n if (mBatteryStatus != mLastBatteryStatus || mBatteryHealth != mLastBatteryHealth || mBatteryPresent != mLastBatteryPresent || mPlugType != mLastPlugType) {\n EventLog.writeEvent(LOG_BATTERY_STATUS, mBatteryStatus, mBatteryHealth, mBatteryPresent ? 1 : 0, mPlugType, mBatteryTechnology);\n }\n if (mBatteryLevel != mLastBatteryLevel || mBatteryVoltage != mLastBatteryVoltage || mBatteryTemperature != mLastBatteryTemperature) {\n EventLog.writeEvent(LOG_BATTERY_LEVEL, mBatteryLevel, mBatteryVoltage, mBatteryTemperature);\n }\n if (mBatteryLevel != mLastBatteryLevel && mPlugType == BATTERY_PLUGGED_NONE) {\n try {\n mBatteryStats.recordCurrentLevel(mBatteryLevel);\n } catch (RemoteException e) {\n }\n }\n if (mBatteryLevelCritical && !mLastBatteryLevelCritical && mPlugType == BATTERY_PLUGGED_NONE) {\n dischargeDuration = SystemClock.elapsedRealtime() - mDischargeStartTime;\n logOutlier = true;\n }\n Intent statusIntent = new Intent();\n statusIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);\n if (mPlugType != 0 && mLastPlugType == 0) {\n statusIntent.setAction(Intent.ACTION_POWER_CONNECTED);\n mContext.sendBroadcast(statusIntent);\n } else if (mPlugType == 0 && mLastPlugType != 0) {\n statusIntent.setAction(Intent.ACTION_POWER_DISCONNECTED);\n mContext.sendBroadcast(statusIntent);\n }\n final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE;\n final boolean oldPlugged = mLastPlugType != BATTERY_PLUGGED_NONE;\n final boolean sendBatteryLow = !plugged && mBatteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN && mBatteryLevel < BATTERY_LEVEL_WARNING && (oldPlugged || mLastBatteryLevel >= BATTERY_LEVEL_WARNING);\n mLastBatteryStatus = mBatteryStatus;\n mLastBatteryHealth = mBatteryHealth;\n mLastBatteryPresent = mBatteryPresent;\n mLastBatteryLevel = mBatteryLevel;\n mLastPlugType = mPlugType;\n mLastBatteryVoltage = mBatteryVoltage;\n mLastBatteryTemperature = mBatteryTemperature;\n mLastBatteryLevelCritical = mBatteryLevelCritical;\n sendIntent();\n if (sendBatteryLow) {\n mSentLowBatteryBroadcast = true;\n statusIntent.setAction(Intent.ACTION_BATTERY_LOW);\n mContext.sendBroadcast(statusIntent);\n } else if (mSentLowBatteryBroadcast && mLastBatteryLevel >= BATTERY_LEVEL_CLOSE_WARNING) {\n mSentLowBatteryBroadcast = false;\n statusIntent.setAction(Intent.ACTION_BATTERY_OKAY);\n mContext.sendBroadcast(statusIntent);\n }\n if (logOutlier && dischargeDuration != 0) {\n logOutlier(dischargeDuration);\n }\n }\n}\n"
"public void execute(char[] characters, int length) {\n Set<Character> allSymbols = new HashSet<Character>();\n Map<Character, Integer> symbols = new HashMap<Character, Integer>();\n Map<Character, Integer> escape = new HashMap<Character, Integer>();\n List<Map<Character, Integer>> symbolsPerRow = new ArrayList<Map<Character, Integer>>();\n int doubleQuoteCount = 0;\n int singleQuoteCount = 0;\n int i;\n char inQuote = '\\0';\n boolean afterNewLine = true;\n for (i = 0; i < length; i++) {\n char ch = characters[i];\n if (afterNewLine && ch == comment) {\n while (++i < length) {\n ch = characters[i];\n if (ch == '\\r' || ch == '\\n' || ch == normalizedNewLine) {\n break;\n }\n }\n continue;\n }\n if (ch == '\"' || ch == '\\'') {\n if (inQuote == ch) {\n if (ch == '\"') {\n doubleQuoteCount++;\n } else {\n singleQuoteCount++;\n }\n if (i + 1 < length) {\n char next = characters[i + 1];\n if (Character.isLetterOrDigit(next) || (next <= ' ' && whitespaceRangeStart < next && next != '\\n' && next != '\\r')) {\n char prev = characters[i - 1];\n if (!Character.isLetterOrDigit(prev)) {\n increment(escape, prev);\n }\n }\n }\n inQuote = '\\0';\n } else if (inQuote == '\\0') {\n char prev = '\\0';\n int j = i;\n while (prev <= ' ' && --j >= 0) {\n prev = characters[j];\n }\n if (j < 0 || !Character.isLetterOrDigit(prev)) {\n inQuote = ch;\n }\n }\n continue;\n }\n if (inQuote != '\\0') {\n continue;\n }\n afterNewLine = false;\n if (isSymbol(ch)) {\n allSymbols.add(ch);\n increment(symbols, ch);\n } else if ((ch == '\\r' || ch == '\\n' || ch == normalizedNewLine) && symbols.size() > 0) {\n afterNewLine = true;\n symbolsPerRow.add(symbols);\n if (symbolsPerRow.size() == MAX_ROW_SAMPLES) {\n break;\n }\n symbols = new HashMap<Character, Integer>();\n }\n }\n if (i >= length && symbolsPerRow.size() > 1) {\n symbolsPerRow.remove(symbolsPerRow.size() - 1);\n }\n Map<Character, Integer> totals = calculateTotals(symbolsPerRow);\n Map<Character, Integer> sums = new HashMap<Character, Integer>();\n Set<Character> toRemove = new HashSet<Character>();\n for (Map<Character, Integer> previous : symbolsPerRow) {\n for (Map<Character, Integer> current : symbolsPerRow) {\n for (Character symbol : allSymbols) {\n Integer previousCount = previous.get(symbol);\n Integer currentCount = current.get(symbol);\n if (previousCount == null && currentCount == null) {\n toRemove.add(symbol);\n }\n if (previousCount == null || currentCount == null) {\n continue;\n }\n increment(sums, symbol, Math.abs(previousCount - currentCount));\n }\n }\n }\n sums.keySet().removeAll(toRemove);\n char delimiter = min(sums, totals, suggestedDelimiter);\n char quote = doubleQuoteCount >= singleQuoteCount ? '\"' : '\\'';\n escape.remove(delimiter);\n char quoteEscape = max(escape, totals, quote);\n apply(delimiter, quote, quoteEscape);\n}\n"
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n params = (Hashtable<String, XPathExpression>) ExtUtil.read(in, new ExtWrapMapPoly(String.class), pf);\n url = ExtUtil.readString(in);\n}\n"
"protected void _transform(Dataframe newData) {\n ModelParameters modelParameters = knowledgeBase.getModelParameters();\n Map<Object, Double> meanColumnValues = modelParameters.getMeanColumnValues();\n Map<Object, Double> stdColumnValues = modelParameters.getStdColumnValues();\n boolean scaleResponse = knowledgeBase.getTrainingParameters().getScaleResponse() && meanColumnValues.containsKey(Dataframe.COLUMN_NAME_Y);\n streamExecutor.forEach(StreamMethods.stream(newData.entries(), isParallelized()), e -> {\n Record r = e.getValue();\n AssociativeArray xData = r.getX().copy();\n Object yData = r.getY();\n boolean modified = false;\n for (Map.Entry<Object, Object> entry : xData.entrySet()) {\n Object value = entry.getValue();\n if (value == null) {\n continue;\n }\n Double mean = entry.getValue();\n Double std = stdColumnValues.get(column);\n xData.put(column, scale(value, mean, std));\n modified = true;\n }\n if (scaleResponse && yData != null) {\n Double value = TypeInference.toDouble(yData);\n Double mean = meanColumnValues.get(Dataframe.COLUMN_NAME_Y);\n Double std = stdColumnValues.get(Dataframe.COLUMN_NAME_Y);\n yData = scale(value, mean, std);\n modified = true;\n }\n if (modified) {\n Integer rId = e.getKey();\n Record newR = new Record(xData, yData, r.getYPredicted(), r.getYPredictedProbabilities());\n newData._unsafe_set(rId, newR);\n }\n });\n}\n"
"public Response getService(String uuid) {\n if (uuid == null || uuid.isEmpty()) {\n return Response.status(Status.BAD_REQUEST).build();\n }\n logger.debug(\"String_Node_Str\" + uuid);\n DeployedService service;\n try {\n service = servicesManager.getService(uuid);\n } catch (ServiceNotFoundException e) {\n return Response.status(Status.INTERNAL_SERVER_ERROR).build();\n }\n return Response.ok(service).build();\n}\n"
"public Spans getSpans(final IndexReader reader, final Searcher searcher) throws IOException {\n return new Spans() {\n private Spans includeSpans = include.getSpans(reader, searcher);\n private boolean moreInclude = true;\n private Spans excludeSpans = exclude.getSpans(reader, searcher);\n private boolean moreExclude = excludeSpans.next();\n\n public boolean next() throws IOException {\n if (moreInclude)\n moreInclude = includeSpans.next();\n while (moreInclude && moreExclude) {\n if (includeSpans.doc() > excludeSpans.doc())\n moreExclude = excludeSpans.skipTo(includeSpans.doc());\n while (moreExclude && includeSpans.doc() == excludeSpans.doc() && excludeSpans.end() <= includeSpans.start()) {\n moreExclude = excludeSpans.next();\n }\n if (!moreExclude || includeSpans.doc() != excludeSpans.doc() || includeSpans.end() <= excludeSpans.start())\n break;\n moreInclude = includeSpans.next();\n }\n return moreInclude;\n }\n public boolean skipTo(int target) throws IOException {\n if (moreInclude)\n moreInclude = includeSpans.skipTo(target);\n if (!moreInclude)\n return false;\n if (moreExclude && includeSpans.doc() > excludeSpans.doc())\n moreExclude = excludeSpans.skipTo(includeSpans.doc());\n while (moreExclude && includeSpans.doc() == excludeSpans.doc() && excludeSpans.end() <= includeSpans.start()) {\n moreExclude = excludeSpans.next();\n }\n if (!moreExclude || includeSpans.doc() != excludeSpans.doc() || includeSpans.end() <= excludeSpans.start())\n return true;\n return next();\n }\n public int doc() {\n return includeSpans.doc();\n }\n public int start() {\n return includeSpans.start();\n }\n public int end() {\n return includeSpans.end();\n }\n public float score() {\n return includeSpans.score() * getBoost();\n }\n public String toString() {\n return \"String_Node_Str\" + SpanNotQuery.this.toString() + \"String_Node_Str\";\n }\n public Explanation explain() throws IOException {\n if (getBoost() == 1.0f)\n return includeSpans.explain();\n Explanation result = new Explanation(0, \"String_Node_Str\" + toString() + \"String_Node_Str\");\n Explanation boostExpl = new Explanation(getBoost(), \"String_Node_Str\");\n result.addDetail(boostExpl);\n Explanation inclExpl = includeSpans.explain();\n result.addDetail(inclExpl);\n result.setValue(boostExpl.getValue() * inclExpl.getValue());\n return result;\n }\n };\n}\n"
"public void loadAccount(AccountID accountID) {\n String password = SIPAccRegWizzActivator.getSIPProtocolProviderFactory().loadPassword(accountID);\n String serverAddress = accountID.getAccountPropertyString(ProtocolProviderFactory.SERVER_ADDRESS);\n String displayName = accountID.getAccountPropertyString(ProtocolProviderFactory.DISPLAY_NAME);\n String authName = accountID.getAccountPropertyString(ProtocolProviderFactory.AUTHORIZATION_NAME);\n String serverPort = accountID.getAccountPropertyString(ProtocolProviderFactory.SERVER_PORT);\n String proxyAddress = accountID.getAccountPropertyString(ProtocolProviderFactory.PROXY_ADDRESS);\n String proxyPort = accountID.getAccountPropertyString(ProtocolProviderFactory.PROXY_PORT);\n String preferredTransport = accountID.getAccountPropertyString(ProtocolProviderFactory.PREFERRED_TRANSPORT);\n boolean enablePresence = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.IS_PRESENCE_ENABLED, false);\n boolean forceP2P = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.FORCE_P2P_MODE, false);\n boolean enabledDefaultEncryption = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.DEFAULT_ENCRYPTION, true);\n boolean enabledSipZrtpAttribute = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.DEFAULT_SIPZRTP_ATTRIBUTE, true);\n boolean proxyAutoConfigureEnabled = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.PROXY_AUTO_CONFIG, false);\n String pollingPeriod = accountID.getAccountPropertyString(ProtocolProviderFactory.POLLING_PERIOD);\n String subscriptionPeriod = accountID.getAccountPropertyString(ProtocolProviderFactory.SUBSCRIPTION_EXPIRATION);\n String keepAliveMethod = accountID.getAccountPropertyString(\"String_Node_Str\");\n String keepAliveInterval = accountID.getAccountPropertyString(\"String_Node_Str\");\n boolean xCapEnable = accountID.getAccountPropertyBoolean(\"String_Node_Str\", false);\n boolean xCapUseSipCredetials = accountID.getAccountPropertyBoolean(\"String_Node_Str\", true);\n String xCapServerUri = accountID.getAccountPropertyString(\"String_Node_Str\");\n String xCapUser = accountID.getAccountPropertyString(\"String_Node_Str\");\n String xCapPassword = accountID.getAccountPropertyString(\"String_Node_Str\");\n boolean isServerOverridden = accountID.getAccountPropertyBoolean(ProtocolProviderFactory.IS_SERVER_OVERRIDDEN, false);\n connectionPanel.setServerOverridden(isServerOverridden);\n accountPanel.setUserIDEnabled(false);\n accountPanel.setUserID((serverAddress == null) ? accountID.getUserID() : (accountID.getUserID() + \"String_Node_Str\" + serverAddress));\n if (password != null) {\n accountPanel.setPassword(password);\n accountPanel.setRememberPassword(true);\n }\n connectionPanel.setServerAddress(serverAddress);\n connectionPanel.setServerEnabled(false);\n if (displayName != null && displayName.length() > 0)\n accountPanel.setDisplayName(displayName);\n if (authName != null && authName.length() > 0)\n connectionPanel.setAuthenticationName(authName);\n connectionPanel.enablesProxyAutoConfigure(proxyAutoConfigureEnabled);\n connectionPanel.setServerPort(serverPort);\n connectionPanel.setProxy(proxyAddress);\n connectionPanel.setSelectedTransport(preferredTransport);\n connectionPanel.setProxyPort(proxyPort);\n presencePanel.setPresenceEnabled(enablePresence);\n presencePanel.setForcePeerToPeerMode(forceP2P);\n connectionPanel.enablesDefaultEncryption(enabledDefaultEncryption);\n connectionPanel.setSipZrtpEnabled(enabledSipZrtpAttribute, enabledDefaultEncryption);\n presencePanel.setPollPeriod(pollingPeriod);\n presencePanel.setSubscriptionExpiration(subscriptionPeriod);\n if (!enablePresence) {\n presencePanel.setPresenceOptionsEnabled(enablePresence);\n }\n connectionPanel.setKeepAliveMethod(keepAliveMethod);\n connectionPanel.setKeepAliveInterval(keepAliveInterval);\n presencePanel.setXCapEnable(xCapEnable);\n presencePanel.setXCapEnableEnabled(xCapEnable);\n presencePanel.setXCapUseSipCredetials(xCapUseSipCredetials);\n presencePanel.setXCapUseSipCredetialsEnabled(xCapUseSipCredetials);\n presencePanel.setXCapServerUri(xCapServerUri);\n presencePanel.setXCapUser(xCapUser);\n presencePanel.setXCapPassword(xCapPassword);\n}\n"
"public void onRenderDebugScreen(RenderGameOverlayEvent event) {\n if (event.type == RenderGameOverlayEvent.ElementType.DEBUG) {\n Minecraft mc = Minecraft.getMinecraft();\n FontRenderer fr = mc.fontRenderer;\n MinecraftServer sv = MinecraftServer.getServer();\n boolean isLocal = sv instanceof IntegratedServer;\n List<String> text = new ArrayList<String>();\n {\n fr.drawStringWithShadow(\"String_Node_Str\", event.resolution.getScaledWidth() - 165, 75, 0xFFFFFF44);\n }\n if (sv != null) {\n double ms = MathHelper.mean(sv.worldTickTimes.get(mc.theWorld.provider.dimensionId)) * 1.0E-6D;\n double tps = Math.min(1000.0 / ms, 20);\n text.add(\"String_Node_Str\" + df.format(tps) + \"String_Node_Str\" + df.format(ms) + \"String_Node_Str\");\n } else {\n text.add(\"String_Node_Str\");\n }\n int i = 0;\n for (String s : text) {\n fr.drawStringWithShadow(s, event.resolution.getScaledWidth() - 160, 90 + 10 * i, 0xFFFFFF77);\n i++;\n }\n }\n}\n"
"private void updatePositionsForState(StackScrollState resultState, StackScrollAlgorithmState algorithmState) {\n float bottomPeekStart = mInnerHeight - mBottomStackPeekSize;\n float bottomStackStart = bottomPeekStart - mBottomStackSlowDownLength;\n float currentYPosition = 0.0f;\n float yPositionInScrollView = 0.0f;\n int childCount = algorithmState.visibleChildren.size();\n int numberOfElementsCompletelyIn = (int) algorithmState.itemsInTopStack;\n for (int i = 0; i < childCount; i++) {\n ExpandableView child = algorithmState.visibleChildren.get(i);\n StackScrollState.ViewState childViewState = resultState.getViewStateForView(child);\n childViewState.location = StackScrollState.ViewState.LOCATION_UNKNOWN;\n int childHeight = getMaxAllowedChildHeight(child);\n float yPositionInScrollViewAfterElement = yPositionInScrollView + childHeight + mPaddingBetweenElements;\n float scrollOffset = yPositionInScrollView - algorithmState.scrollY + mCollapsedSize;\n if (i == algorithmState.lastTopStackIndex + 1) {\n currentYPosition = Math.min(scrollOffset, bottomStackStart);\n }\n childViewState.yTranslation = currentYPosition;\n float nextYPosition = currentYPosition + childHeight + mPaddingBetweenElements;\n if (i <= algorithmState.lastTopStackIndex) {\n updateStateForTopStackChild(algorithmState, numberOfElementsCompletelyIn, i, childHeight, childViewState, scrollOffset);\n clampPositionToTopStackEnd(childViewState, childHeight);\n if (childViewState.yTranslation + childHeight + mPaddingBetweenElements >= bottomStackStart && !mIsExpansionChanging && i != 0) {\n childViewState.height = mCollapsedSize;\n }\n } else if (nextYPosition >= bottomStackStart) {\n if (currentYPosition >= bottomStackStart) {\n updateStateForChildFullyInBottomStack(algorithmState, bottomStackStart, childViewState, childHeight);\n } else {\n updateStateForChildTransitioningInBottom(algorithmState, bottomStackStart, bottomPeekStart, currentYPosition, childViewState, childHeight);\n }\n } else {\n childViewState.location = StackScrollState.ViewState.LOCATION_MAIN_AREA;\n clampYTranslation(childViewState, childHeight);\n }\n if (i == 0) {\n childViewState.alpha = 1.0f;\n childViewState.yTranslation = Math.max(mCollapsedSize - algorithmState.scrollY, 0);\n if (childViewState.yTranslation + childViewState.height > bottomPeekStart - mCollapseSecondCardPadding) {\n childViewState.height = (int) Math.max(bottomPeekStart - mCollapseSecondCardPadding - childViewState.yTranslation, mCollapsedSize);\n }\n childViewState.location = StackScrollState.ViewState.LOCATION_FIRST_CARD;\n }\n if (childViewState.location == StackScrollState.ViewState.LOCATION_UNKNOWN) {\n Log.wtf(LOG_TAG, \"String_Node_Str\" + i);\n }\n currentYPosition = childViewState.yTranslation + childHeight + mPaddingBetweenElements;\n yPositionInScrollView = yPositionInScrollViewAfterElement;\n childViewState.yTranslation += mTopPadding;\n }\n}\n"
"public void parse(IParserManager jcp, IToken token) throws SyntaxError {\n int type = token.type();\n if (this.isInMode(PACKAGE)) {\n if (type == Keywords.PACKAGE) {\n this.mode = IMPORT | CLASS;\n PackageDecl pack = new PackageDecl(token.raw());\n this.unit.setPackageDeclaration(pack);\n jcp.pushParser(new PackageParser(pack));\n return;\n }\n }\n if (this.isInMode(IMPORT)) {\n if (type == Keywords.IMPORT) {\n this.mode = IMPORT | CLASS;\n Import i = new Import(token.raw());\n this.unit.addImport(i);\n jcp.pushParser(new ImportParser(null, i));\n return;\n }\n if (type == Keywords.USING) {\n this.mode = IMPORT | CLASS;\n Import i = new Import(token.raw());\n i.isStatic = true;\n this.unit.addStaticImport(i);\n jcp.pushParser(new ImportParser(null, i));\n return;\n }\n }\n if (this.isInMode(CLASS)) {\n if (token.type() == Symbols.SEMICOLON) {\n return;\n }\n CodeClass c = new CodeClass(null, this.unit);\n this.unit.addClass(c);\n jcp.pushParser(new ClassDeclarationParser(c), true);\n return;\n }\n throw new SyntaxError(token, \"String_Node_Str\");\n}\n"
"public int getForegroundColor(DesignElementHandle handle) {\n Object obj = handle.getProperty(StyleHandle.COLOR_PROP);\n if (obj == null) {\n return 0x0;\n }\n return color;\n}\n"
"public String getFileContent(String fileName) {\n FileData fileData = files.get(fileName);\n return fileData != null ? fileData.getData() : \"String_Node_Str\";\n}\n"
"public void createPartControl(Composite parent) {\n final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);\n sc.setExpandHorizontal(true);\n sc.setExpandVertical(true);\n mainPane = new Composite(sc, SWT.NONE);\n GridLayout layout = new GridLayout(1, false);\n layout.verticalSpacing = 0;\n mainPane.setLayout(layout);\n mainPane.setLayoutData(new GridData(GridData.FILL_BOTH));\n final Composite buttonTray = new Composite(mainPane, SWT.NONE);\n GridData gData = new GridData(GridData.FILL_BOTH);\n gData.grabExcessHorizontalSpace = true;\n gData.grabExcessVerticalSpace = false;\n buttonTray.setLayoutData(gData);\n layout = new GridLayout(2, false);\n layout.marginWidth = 5;\n layout.horizontalSpacing = 0;\n buttonTray.setLayout(layout);\n bParameter = new Button(buttonTray, SWT.PUSH);\n bParameter.setToolTipText(Messages.getString(\"String_Node_Str\"));\n bParameter.setText(Messages.getString(\"String_Node_Str\"));\n GridData gd = new GridData();\n bParameter.setLayoutData(gd);\n final FormText note = new FormText(buttonTray, SWT.NONE);\n note.setText(getDisplayInfoText(ViewerPlugin.getDefault().getPluginPreferences().getString(WebViewer.PREVIEW_MAXROW)), true, true);\n note.setSize(SWT.DEFAULT - 10, SWT.DEFAULT);\n gd = new GridData();\n gd.horizontalIndent = 20;\n note.setLayoutData(gd);\n note.addHyperlinkListener(new HyperlinkAdapter() {\n public void linkActivated(HyperlinkEvent e) {\n if (PreferencesUtil.createPreferenceDialogOn(UIUtil.getDefaultShell(), \"String_Node_Str\", new String[] { \"String_Node_Str\" }, null).open() == Window.OK) {\n boolean ret = MessageDialog.openQuestion(UIUtil.getDefaultShell(), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"));\n if (ret == true) {\n refresh();\n }\n }\n }\n });\n final IPropertyChangeListener prefListener = new IPropertyChangeListener() {\n\n public void propertyChange(PropertyChangeEvent event) {\n if (note == null || note.isDisposed()) {\n ViewerPlugin.getDefault().getPluginPreferences().removePropertyChangeListener(this);\n return;\n }\n if (WebViewer.PREVIEW_MAXROW.equals(event.getProperty())) {\n note.setText(getDisplayInfoText(ViewerPlugin.getDefault().getPluginPreferences().getString(WebViewer.PREVIEW_MAXROW)), true, true);\n buttonTray.layout();\n }\n }\n });\n progressBar = new ProgressBar(mainPane, SWT.INDETERMINATE);\n gd = new GridData(GridData.END, GridData.CENTER, false, false);\n gd.heightHint = 10;\n gd.widthHint = 100;\n progressBar.setLayoutData(gd);\n progressBar.setVisible(false);\n createMainBrowser();\n parameterDialog = new InputParameterHtmlDialog(Display.getCurrent().getActiveShell(), InputParameterHtmlDialog.TITLE, getFileUri(), browser);\n if (bParameter != null) {\n bParameter.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n refresh();\n }\n });\n }\n sc.addControlListener(new ControlAdapter() {\n public void controlResized(ControlEvent e) {\n sc.setMinSize(buttonTray.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n mainPane.layout();\n }\n });\n sc.setContent(mainPane);\n}\n"
"public void onSuccess(Boolean result) {\n AppendEntriesReply m = new AppendEntriesReply(currentTerm, true, 0);\n RpcReply reply = new RpcReply(m);\n request.reply(reply);\n long newCommitIndex = Math.min(appendMessage.getCommitIndex(), log.getLastIndex());\n setLastCommittedIndex(newCommitIndex);\n}\n"
"public void init(String[] args) throws ConfigurationException {\n File file = new File(\"String_Node_Str\");\n if (!file.exists()) {\n file = PropertiesUtil.findConfigFile(\"String_Node_Str\");\n }\n if (null != file) {\n DOMConfigurator.configureAndWatch(file.getAbsolutePath());\n s_logger.info(\"String_Node_Str\");\n } else {\n s_logger.error(\"String_Node_Str\");\n }\n final Class<?> c = this.getClass();\n _version = c.getPackage().getImplementationVersion();\n if (_version == null) {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n s_logger.info(\"String_Node_Str\" + _version);\n loadProperties();\n parseCommand(args);\n if (s_logger.isDebugEnabled()) {\n List<String> properties = Collections.list((Enumeration<String>) _properties.propertyNames());\n for (String property : properties) {\n s_logger.debug(\"String_Node_Str\" + property);\n }\n }\n s_logger.info(\"String_Node_Str\");\n _storage = new PropertiesStorage();\n _storage.configure(\"String_Node_Str\", new HashMap<String, Object>());\n for (Map.Entry<String, Object> cmdLineProp : getCmdLineProperties().entrySet()) {\n _properties.put(cmdLineProp.getKey(), cmdLineProp.getValue());\n }\n s_logger.info(\"String_Node_Str\");\n _backoff = new ConstantTimeBackoff();\n _backoff.configure(\"String_Node_Str\", new HashMap<String, Object>());\n}\n"
"public void destroyPresenter() {\n if (presenter != null) {\n PresenterManager.getInstance().destroy(presenter);\n presenter = null;\n }\n}\n"
"public List<MoveLine> getInvoiceToExport(Company company, LocalDate scheduleDate, Currency currency) {\n List<MoveLine> moveLineInvoiceList = new ArrayList<MoveLine>();\n PaymentMode paymentMode = company.getAccountConfig().getDirectDebitPaymentMode();\n List<MoveLine> moveLineList = (List<MoveLine>) MoveLine.filter(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", IMove.VALIDATED_MOVE, company, true, paymentMode, currency).fetch();\n for (MoveLine moveLine : moveLineList) {\n if (!this.isDebitBlocking(moveLine.getMove().getInvoice())) {\n moveLineInvoiceList.add(moveLine);\n }\n }\n List<Invoice> invoiceRejectList = Invoice.filter(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", paymentMode, company, IMove.VALIDATED_MOVE, currency).fetch();\n for (Invoice invoice : invoiceRejectList) {\n if (!this.isDebitBlocking(invoice)) {\n moveLineInvoiceList.add(invoice.getRejectMoveLine());\n }\n }\n return moveLineInvoiceList;\n}\n"
"public void setAdapter(final ListAdapter adapter) {\n if (!(adapter instanceof AbstractTreeViewAdapter)) {\n throw new TreeConfigurationException(\"String_Node_Str\");\n }\n treeAdapter = (TreeViewAdapter<?>) adapter;\n syncAdapter();\n super.setAdapter(treeAdapter);\n}\n"
"HttpUrl provideHttpUrl() {\n return HttpUrl.parse(ApiModule.PRODUCTION_API_URL.toString());\n}\n"
"private void handleItemChanged(final RosterItem item) {\n final RosterItem old = getItemByJID(item.getJID());\n if (old == null) {\n storeItem(item);\n eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.added, item));\n } else {\n removeItem(old);\n final SubscriptionState subscriptionState = item.getSubscriptionState();\n if (subscriptionState == SubscriptionState.remove) {\n eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.removed, item));\n } else {\n if (subscriptionState == SubscriptionState.to || subscriptionState == SubscriptionState.both) {\n item.setAvaialableResources(old.getAvailableResources());\n item.setShow(old.getShow());\n item.setStatus(old.getStatus());\n }\n storeItem(item);\n eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.modified, item));\n }\n }\n}\n"
"public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String parameter = param.toString();\n String containerId = new Regex(parameter, \"String_Node_Str\").getMatch(0);\n br.getPage(\"String_Node_Str\" + containerId);\n Form password = br.getForm(0);\n if (password != null && password.hasInputFieldByName(\"String_Node_Str\")) {\n String latestPassword = this.getPluginConfig().getStringProperty(\"String_Node_Str\");\n if (latestPassword != null) {\n password.put(\"String_Node_Str\", latestPassword);\n br.submitForm(password);\n }\n password = br.getForm(0);\n if (password != null && password.hasInputFieldByName(\"String_Node_Str\")) {\n latestPassword = PluginUtils.askPassword(this);\n password.put(\"String_Node_Str\", latestPassword);\n br.setDebug(true);\n br.submitForm(password);\n password = br.getForm(0);\n if (password != null && password.hasInputFieldByName(\"String_Node_Str\")) {\n PluginUtils.informPasswordWrong(this, latestPassword);\n return null;\n }\n getPluginConfig().setProperty(\"String_Node_Str\", latestPassword);\n getPluginConfig().save();\n }\n }\n boolean valid = true;\n for (int i = 0; i < 5; ++i) {\n Form captcha = br.getForm(0);\n if (br.containsHTML(\"String_Node_Str\")) {\n valid = false;\n File file = this.getLocalCaptchaFile();\n String url = captcha.getRegex(\"String_Node_Str\").getMatch(0);\n if (url == null)\n url = captcha.getRegex(\"String_Node_Str\").getMatch(0);\n Browser.download(file, br.cloneBrowser().openGetConnection(url));\n Point p;\n if (url.contains(\"String_Node_Str\")) {\n String code = getCaptchaCode(\"String_Node_Str\", file, param);\n if (code == null)\n continue;\n String[] codep = code.split(\"String_Node_Str\");\n p = new Point(Integer.parseInt(codep[0]), Integer.parseInt(codep[1]));\n } else\n p = UserIO.getInstance().requestClickPositionDialog(file, JDL.L(\"String_Node_Str\", \"String_Node_Str\"), JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n if (p == null)\n throw new DecrypterException(DecrypterException.CAPTCHA);\n captcha.put(\"String_Node_Str\", p.x + \"String_Node_Str\");\n captcha.put(\"String_Node_Str\", p.y + \"String_Node_Str\");\n br.submitForm(captcha);\n } else if (captcha != null && !captcha.hasInputFieldByName(\"String_Node_Str\")) {\n valid = false;\n File file = this.getLocalCaptchaFile();\n String url = captcha.getRegex(\"String_Node_Str\").getMatch(0);\n Browser.download(file, br.cloneBrowser().openGetConnection(url));\n Point p = UserIO.getInstance().requestClickPositionDialog(file, JDL.L(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\");\n if (p == null)\n throw new DecrypterException(DecrypterException.CAPTCHA);\n captcha.put(\"String_Node_Str\", p.x + \"String_Node_Str\");\n captcha.put(\"String_Node_Str\", p.y + \"String_Node_Str\");\n br.submitForm(captcha);\n } else {\n valid = true;\n break;\n }\n }\n if (valid == false)\n throw new DecrypterException(DecrypterException.CAPTCHA);\n String[] containers = br.getRegex(\"String_Node_Str\").getColumn(0);\n HashMap<String, String> map = new HashMap<String, String>();\n for (String c : containers) {\n Context cx = Context.enter();\n Scriptable scope = cx.initStandardObjects();\n c = c.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n Object result = cx.evaluateString(scope, c, \"String_Node_Str\", 1, null);\n String code = Context.toString(result);\n String[] row = new Regex(code, \"String_Node_Str\").getRow(0);\n if (row != null) {\n map.put(row[1], row[0]);\n } else {\n }\n }\n File container = null;\n if (map.containsKey(\"String_Node_Str\")) {\n container = JDUtilities.getResourceFile(\"String_Node_Str\" + System.currentTimeMillis() + \"String_Node_Str\");\n if (!container.exists())\n container.createNewFile();\n br.cloneBrowser().getDownload(container, map.get(\"String_Node_Str\"));\n } else if (map.containsKey(\"String_Node_Str\")) {\n container = JDUtilities.getResourceFile(\"String_Node_Str\" + System.currentTimeMillis() + \"String_Node_Str\");\n if (!container.exists())\n container.createNewFile();\n Browser.download(container, map.get(\"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\"));\n } else if (map.containsKey(\"String_Node_Str\")) {\n container = JDUtilities.getResourceFile(\"String_Node_Str\" + System.currentTimeMillis() + \"String_Node_Str\");\n if (!container.exists())\n container.createNewFile();\n Browser.download(container, map.get(\"String_Node_Str\"));\n } else if (map.containsKey(\"String_Node_Str\")) {\n container = JDUtilities.getResourceFile(\"String_Node_Str\" + System.currentTimeMillis() + \"String_Node_Str\");\n if (!container.exists())\n container.createNewFile();\n Browser.download(container, map.get(\"String_Node_Str\"));\n }\n if (container != null) {\n decryptedLinks.addAll(JDUtilities.getController().getContainerLinks(container));\n container.delete();\n if (decryptedLinks.size() > 0)\n return decryptedLinks;\n }\n Form[] forms = br.getForms();\n progress.setRange(forms.length / 2);\n for (Form form : forms) {\n Browser clone;\n if (form.getInputField(\"String_Node_Str\").getValue() != null && form.getInputField(\"String_Node_Str\").getValue().length() > 0) {\n progress.increase(1);\n clone = br.cloneBrowser();\n clone.submitForm(form);\n clone.setDebug(true);\n String[] srcs = clone.getRegex(\"String_Node_Str\").getColumn(0);\n for (String col : srcs) {\n col = Encoding.htmlDecode(col);\n clone.getPage(col);\n if (clone.containsHTML(\"String_Node_Str\")) {\n String[] evals = clone.getRegex(\"String_Node_Str\").getColumn(0);\n for (String c : evals) {\n Context cx = Context.enter();\n Scriptable scope = cx.initStandardObjects();\n c = c.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n Object result = cx.evaluateString(scope, c, \"String_Node_Str\", 1, null);\n String code = Context.toString(result);\n String versch;\n if (code.startsWith(\"String_Node_Str\")) {\n versch = new Regex(code, \"String_Node_Str\").getMatch(0);\n } else {\n versch = new Regex(code, \"String_Node_Str\").getMatch(0);\n }\n versch = Encoding.Base64Decode(versch);\n versch = new Regex(versch, \"String_Node_Str\").getMatch(0);\n versch = Encoding.htmlDecode(versch);\n decryptedLinks.add(this.createDownloadlink(versch));\n String[] row = new Regex(code, \"String_Node_Str\").getRow(0);\n if (row != null) {\n map.put(row[1], row[0]);\n } else {\n }\n }\n }\n }\n }\n }\n return decryptedLinks;\n}\n"
"public List<Route> list() {\n List<Route> routeList = new LinkedList<Route>();\n Route route = new Route();\n route.setTitle(\"String_Node_Str\");\n User user = new User(\"String_Node_Str\");\n route.setCreator(user);\n route.setDescription(\"String_Node_Str\");\n Place place1 = new Place();\n place1.setTitle(\"String_Node_Str\");\n place1.setDescription(\"String_Node_Str\");\n Place place2 = new Place();\n place2.setTitle(\"String_Node_Str\");\n place2.setDescription(\"String_Node_Str\");\n Place place3 = new Place();\n place3.setTitle(\"String_Node_Str\");\n place3.setDescription(\"String_Node_Str\");\n Place place4 = new Place();\n place4.setTitle(\"String_Node_Str\");\n place4.setDescription(\"String_Node_Str\");\n Location loc1 = new Location(\"String_Node_Str\");\n loc1.setLatitude(62.4007043202567);\n loc1.setLongitude(17.2577392061653);\n place1.setGeoLocation(loc1);\n Location loc2 = new Location(\"String_Node_Str\");\n loc2.setLatitude(62.394369903217);\n loc2.setLongitude(17.2816450479837);\n place2.setGeoLocation(loc2);\n Location loc3 = new Location(\"String_Node_Str\");\n loc3.setLatitude(62.3897829867526);\n loc3.setLongitude(17.2995418371631);\n place3.setGeoLocation(loc3);\n Location loc4 = new Location(\"String_Node_Str\");\n loc4.setLatitude(62.391178326117);\n loc4.setLongitude(17.3004228024664);\n place4.setGeoLocation(loc4);\n Map<Integer, Place> placeRecordMap = new HashMap<Integer, Place>();\n placeRecordMap.put(1, place1);\n placeRecordMap.put(2, place2);\n placeRecordMap.put(3, place3);\n placeRecordMap.put(4, place4);\n List<Record> placeRecords = new ArrayList<Record>();\n try {\n for (Integer i : placeRecordMap.keySet()) {\n String filename = String.format(\"String_Node_Str\", i);\n InputStream is = this.mAssetManager.open(filename);\n XMLPull pull = new XMLPull(is);\n placeRecordMap.get(i).setRecords(pull.parse());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n List<Place> places = new LinkedList<Place>();\n places.add(place1);\n places.add(place2);\n places.add(place3);\n places.add(place4);\n route.setPlaces(places);\n routeList.add(route);\n return routeList;\n}\n"
"public FactTable getOrCreateFactTable(int resolution) {\n String tableName = cConf.get(Constants.Metrics.METRICS_TABLE_PREFIX, Constants.Metrics.DEFAULT_METRIC_TABLE_PREFIX) + \"String_Node_Str\" + resolution;\n int ttl = cConf.getInt(Constants.Metrics.RETENTION_SECONDS + \"String_Node_Str\" + resolution + \"String_Node_Str\", -1);\n TableProperties.Builder props = TableProperties.builder();\n if (ttl > 0 && resolution != Integer.MAX_VALUE) {\n props.setTTL(ttl);\n }\n props.setReadlessIncrementSupport(true);\n props.add(HBaseTableAdmin.PROPERTY_SPLITS, GSON.toJson(FactTable.getSplits(DefaultMetricStore.AGGREGATIONS.size())));\n MetricsTable table = getOrCreateMetricsTable(tableName, props.build());\n LOG.debug(\"String_Node_Str\", tableName);\n return new FactTable(table, entityTable.get(), resolution, getRollTime(resolution));\n}\n"
"public void resolve(List<Marker> markers, IContext context) {\n if (this.annotations != null) {\n Iterator<Annotation> iterator = this.annotations.iterator();\n while (iterator.hasNext()) {\n Annotation a = iterator.next();\n if (this.processAnnotation(a)) {\n iterator.remove();\n continue;\n }\n a.resolve(markers, context);\n }\n a.resolve(markers, context);\n }\n if ((this.modifiers & Modifiers.OBJECT_CLASS) != 0) {\n this.instanceField = new Field(this, \"String_Node_Str\", this.getType(), Modifiers.PUBLIC | Modifiers.CONST | Modifiers.SYNTHETIC, Collections.EMPTY_LIST);\n }\n if (this.body != null) {\n this.body.resolve(markers, this);\n }\n}\n"
"public void testIncorrectReturnType_GRE292_3() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public void reTest(short x, short y) {\n if (!map.isBlocked(x, y)) {\n short destPartition = map.getPartitionAt(x, y);\n for (EDirection dir : EDirection.values) {\n short nx = dir.getNextTileX(x);\n short ny = dir.getNextTileY(y);\n if (map.isInBounds(nx, ny) && map.isBlocked(nx, ny)) {\n System.out.println(\"String_Node_Str\" + nx + \"String_Node_Str\" + ny);\n startRelabel(nx, ny, destPartition, dir.getInverseDirection());\n }\n }\n }\n}\n"
"private void addRepositoryTreeViewer(Composite leftComposite) {\n GridData gridData = new GridData(GridData.FILL_BOTH);\n gridData.widthHint = 210;\n leftComposite.setLayoutData(gridData);\n RepositoryViewerProvider provider = new RepositoryViewerProvider() {\n protected RepositoryNode getInputRoot(RepositoryContentProvider contentProvider) {\n return contentProvider.getRoot();\n }\n public RepositoryContentProvider getContextProvider() {\n return new RepositoryContentProvider(getRepView());\n }\n };\n treeViewer = (CheckboxRepositoryTreeViewer) provider.createViewer(leftComposite);\n treeViewer.addFilter(new ViewerFilter() {\n public boolean select(Viewer viewer, Object parentElement, Object element) {\n RepositoryNode node = (RepositoryNode) element;\n return filterRepositoryNode(node);\n }\n });\n treeViewer.addCheckStateListener(new ICheckStateListener() {\n public void checkStateChanged(CheckStateChangedEvent event) {\n RepositoryNode node = (RepositoryNode) event.getElement();\n List<RepositoryObject> objects = new ArrayList<RepositoryObject>();\n processItems(objects, node);\n if (!objects.isEmpty()) {\n if (event.getChecked()) {\n checkedObjects.addAll(objects);\n } else {\n checkedObjects.removeAll(objects);\n removeItemElements(objects);\n }\n refreshTableItems();\n }\n }\n });\n treeViewer.addTreeListener(new ITreeViewerListener() {\n public void treeCollapsed(TreeExpansionEvent event) {\n }\n public void treeExpanded(TreeExpansionEvent event) {\n }\n });\n expandSomeNodes(view);\n}\n"
"public void shouldEnsureGetTalkMessagesReturnsMessages() throws Exception {\n TalkServer talkImpl = new TalkServer();\n ITalkJsonConverter jsonConv = mock(ITalkJsonConverter.class);\n ISiteAuth siteauth = mock(ISiteAuth.class);\n when(siteauth.get(anyString(), anyMap())).thenReturn(new ServerResponse(200, \"String_Node_Str\"));\n setHiddenField(talkImpl, \"String_Node_Str\", siteauth);\n List<GeoCamTalkMessage> expectedList = new ArrayList<GeoCamTalkMessage>();\n expectedList.add(new GeoCamTalkMessage());\n when(jsonConv.deserializeList(anyString())).thenReturn(expectedList);\n setHiddenField(talkImpl, \"String_Node_Str\", jsonConv);\n MessageStore ms = mock(MessageStore.class);\n setHiddenField(talkImpl, \"String_Node_Str\", ms);\n IIntentHelper intentHelper = mock(IIntentHelper.class);\n setHiddenField(talkImpl, \"String_Node_Str\", intentHelper);\n talkImpl.getTalkMessages();\n verify(ms).addMessage(anyList());\n verify(jsonConv).deserializeList(anyString());\n}\n"
"private void updateSessionByUserId(Message<JsonObject> message, JsonObject session) {\n final String userId = message.body().getString(\"String_Node_Str\");\n if (userId == null || userId.trim().isEmpty()) {\n sendError(message, \"String_Node_Str\");\n return;\n }\n LoginInfo info = logins.get(userId);\n if (info == null) {\n sendError(message, \"String_Node_Str\");\n return;\n }\n try {\n sessions.put(info.sessionId, session.encode());\n } catch (HazelcastSerializationException e) {\n logger.error(\"String_Node_Str\" + info.sessionId, e);\n }\n}\n"
"public R getPredicateAssignmentTruthValue(Predicate<T> predicate, List<T> argumentAssignments) {\n if (!groundedPredicates.containsKey(predicate.getIdentifier()))\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n if (!predicateGroundings.get(predicate.getIdentifier()).containsKey(argumentAssignments))\n if (closedPredicateIdentifiers.contains(predicate.getIdentifier()))\n return logic.falseValue();\n else\n return null;\n return predicateGroundings.get(predicate.getIdentifier()).get(argumentAssignments).getValue();\n}\n"
"protected synchronized Object[] sendMessage(int port, RpcRequest request) throws IOException {\n try {\n if (TRACE_ENABLED) {\n logger.trace(\"String_Node_Str\", port, request);\n }\n BytesContentProvider content = new BytesContentProvider(request.createMessage());\n String url = String.format(\"String_Node_Str\", config.getGatewayAddress(), port);\n ContentResponse response = httpClient.POST(url).content(content).timeout(config.getTimeout(), TimeUnit.SECONDS).header(HttpHeader.CONTENT_TYPE, \"String_Node_Str\" + config.getEncoding()).send();\n String result = new String(response.getContent(), config.getEncoding());\n if (TRACE_ENABLED) {\n logger.trace(\"String_Node_Str\", port, result);\n }\n Object[] data = new XmlRpcResponse(new ByteArrayInputStream(result.getBytes(config.getEncoding())), config.getEncoding()).getResponseData();\n return new RpcResponseParser(request).parse(data);\n } catch (UnknownRpcFailureException | UnknownParameterSetException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new IOException(ex.getMessage(), ex);\n }\n}\n"
"private Set<NodeGroupEntity> convertNodeGroupsToEntities(Gson gson, ClusterEntity clusterEntity, String distro, NodeGroupCreate[] groups, boolean validateWhiteList) {\n Set<NodeGroupEntity> nodeGroups = new LinkedHashSet<NodeGroupEntity>();\n for (NodeGroupCreate group : groups) {\n NodeGroupEntity groupEntity = convertGroup(gson, clusterEntity, group, distro, validateWhiteList);\n if (groupEntity != null) {\n nodeGroups.add(groupEntity);\n }\n }\n return nodeGroups;\n}\n"
"public void validate() {\n if ((hasNewModelPoints && isTimeForValidation()) || !hasMoreIterations()) {\n if (BreakdownConfiguration.getAccuracyDeterminationMethod(strategyConfig).equals(AccuracyDetermination.RandomValidationSet)) {\n if (validationSetManager == null) {\n validationSetManager = new ValidationSetManager(cachedEnvironmentAccess, allParameters);\n validationSetManager.createRandomValidationSet(BreakdownConfiguration.getSizeOfValidationSet(strategyConfig));\n }\n double avgRelativePredictionError = validationSetManager.getAvgRelativePredictionError();\n if (avgRelativePredictionError < BreakdownConfiguration.getDesiredModelAccuracy(strategyConfig)) {\n accurateEnoughModel = true;\n }\n }\n }\n}\n"
"public int hashCode() {\n return hashcode;\n}\n"
"protected AbstractGroup[][] prepareGroups() {\n String valid = isValid();\n if (valid != null) {\n throw new IllegalArgumentException(valid);\n }\n Range<T> tempLower = new Range<T>(null, null, null);\n Range<T> tempUpper = new Range<T>(null, null, null);\n if (lowerRange.getRepeatBound() != null) {\n tempLower.setRepeatBound(lowerRange.getRepeatBound());\n } else {\n tempLower.setRepeatBound(intervals.get(0).min);\n }\n if (lowerRange.getSnapBound() != null) {\n tempLower.setSnapBound(lowerRange.getSnapBound());\n } else {\n tempLower.setSnapBound(tempLower.getRepeatBound());\n }\n if (lowerRange.getLabelBound() != null) {\n tempLower.setLabelBound(lowerRange.getLabelBound());\n } else {\n tempLower.setLabelBound(tempLower.getSnapBound());\n }\n if (upperRange.getRepeatBound() != null) {\n tempUpper.setRepeatBound(upperRange.getRepeatBound());\n } else {\n tempUpper.setRepeatBound(intervals.get(intervals.size() - 1).max);\n }\n if (upperRange.getSnapBound() != null) {\n tempUpper.setSnapBound(upperRange.getSnapBound());\n } else {\n tempUpper.setSnapBound(tempUpper.getRepeatBound());\n }\n if (upperRange.getLabelBound() != null) {\n tempUpper.setLabelBound(upperRange.getLabelBound());\n } else {\n tempUpper.setLabelBound(tempUpper.getSnapBound());\n }\n ArrayList<IndexNode> nodes = new ArrayList<IndexNode>();\n for (int i = 0, len = intervals.size(); i < len; i += INDEX_FANOUT) {\n int min = i;\n int max = Math.min(i + INDEX_FANOUT - 1, len - 1);\n List<Interval<T>> leafs = new ArrayList<Interval<T>>();\n for (int j = min; j <= max; j++) {\n leafs.add(intervals.get(j));\n }\n nodes.add(new IndexNode(intervals.get(min).min, intervals.get(max).max, leafs.toArray(new Interval[leafs.size()])));\n }\n while (nodes.size() > 1) {\n List<IndexNode> current = (List<IndexNode>) nodes.clone();\n nodes.clear();\n for (int i = 0, len = current.size(); i < len; i += INDEX_FANOUT) {\n int min = i;\n int max = Math.min(i + INDEX_FANOUT - 1, len - 1);\n List<IndexNode> temp = new ArrayList<IndexNode>();\n for (int j = min; j <= max; j++) {\n temp.add(current.get(j));\n }\n nodes.add(new IndexNode(current.get(min).min, current.get(max).max, temp.toArray(new HierarchyBuilderIntervalBased.IndexNode[temp.size()])));\n }\n }\n String[] data = getData();\n List<AbstractGroup[]> result = new ArrayList<AbstractGroup[]>();\n IndexNode index = nodes.get(0);\n DataTypeWithRatioScale<T> type = (DataTypeWithRatioScale<T>) getDataType();\n Map<AbstractGroup, AbstractGroup> cache = new HashMap<AbstractGroup, AbstractGroup>();\n Interval<T> lowerSnap = getInterval(index, type, tempLower.repeatBound);\n lowerSnap = new Interval<T>(this, getDataType(), tempLower.snapBound, lowerSnap.max, lowerSnap.function);\n Interval<T> upperSnap = getIntervalUpperSnap(index, type, tempUpper.repeatBound);\n upperSnap = new Interval<T>(this, getDataType(), upperSnap.min, tempUpper.snapBound, upperSnap.function);\n if (type.compare(lowerSnap.max, upperSnap.min) > 0) {\n lowerSnap = new Interval<T>(this, getDataType(), lowerSnap.min, upperSnap.max, lowerSnap.function);\n upperSnap = lowerSnap;\n }\n AbstractGroup[] first = new AbstractGroup[data.length];\n for (int i = 0; i < data.length; i++) {\n T value = type.parse(data[i]);\n Interval<T> interval = getInterval(index, type, value);\n if (type.compare(value, tempLower.labelBound) < 0) {\n throw new IllegalArgumentException(type.format(value) + \"String_Node_Str\");\n } else if (type.compare(value, tempLower.snapBound) < 0) {\n interval = new Interval<T>(this, true, tempLower.snapBound);\n }\n if (type.compare(value, tempUpper.labelBound) >= 0) {\n throw new IllegalArgumentException(type.format(value) + \"String_Node_Str\");\n } else if (type.compare(value, tempUpper.snapBound) >= 0) {\n interval = new Interval<T>(this, false, tempUpper.snapBound);\n }\n if (interval.min != null && interval.max != null) {\n if (type.compare(interval.min, lowerSnap.max) < 0) {\n interval = lowerSnap;\n } else if (type.compare(interval.max, upperSnap.min) > 0) {\n interval = upperSnap;\n }\n }\n first[i] = getGroup(cache, interval);\n }\n result.add(first);\n index = null;\n List<Group<T>> groups = new ArrayList<Group<T>>();\n if (!super.getLevels().isEmpty())\n groups = super.getLevels().get(0).getGroups();\n if (cache.size() > 1 && !groups.isEmpty()) {\n List<Interval<T>> newIntervals = new ArrayList<Interval<T>>();\n int intervalIndex = 0;\n int multiplier = 0;\n T width = type.subtract(intervals.get(intervals.size() - 1).max, intervals.get(0).min);\n for (Group<T> group : groups) {\n T min = null;\n T max = null;\n for (int i = 0; i < group.getSize(); i++) {\n Interval<T> current = intervals.get(intervalIndex++);\n T offset = type.multiply(width, multiplier);\n T cMin = type.add(current.min, offset);\n T cMax = type.add(current.max, offset);\n if (min == null || type.compare(min, cMin) > 0) {\n min = cMin;\n }\n if (max == null || type.compare(max, cMax) < 0) {\n max = cMax;\n }\n if (intervalIndex == intervals.size()) {\n intervalIndex = 0;\n multiplier++;\n }\n }\n newIntervals.add(new Interval<T>(this, getDataType(), min, max, group.getFunction()));\n }\n HierarchyBuilderIntervalBased<T> builder = new HierarchyBuilderIntervalBased<T>(getDataType(), tempLower, tempUpper);\n for (Interval<T> interval : newIntervals) {\n builder.addInterval(interval.min, interval.max, interval.function);\n }\n for (int i = 1; i < super.getLevels().size(); i++) {\n for (Group<T> sgroup : super.getLevel(i).getGroups()) {\n builder.getLevel(i - 1).addGroup(sgroup.getSize(), sgroup.getFunction());\n }\n }\n builder.prepare(data);\n AbstractGroup[][] columns = builder.getPreparedGroups();\n for (AbstractGroup[] column : columns) {\n result.add(column);\n }\n } else {\n if (cache.size() > 1) {\n AbstractGroup[] column = new AbstractGroup[data.length];\n AbstractGroup element = new AbstractGroup(\"String_Node_Str\") {\n };\n for (int i = 0; i < column.length; i++) {\n column[i] = element;\n }\n result.add(column);\n }\n }\n return result.toArray(new AbstractGroup[0][0]);\n}\n"
"boolean isCached() {\n return cached;\n}\n"
"private static PathWithUnixSeparators unixPath(String path) {\n return new PathWithUnixSeparators().setPath(MorePaths.pathWithUnixSeparators(path));\n}\n"
"void chooseDdlFileFromWorkspace() {\n final ChooseFileDialog dlg = new ChooseFileDialog(DdlImporterUiI18n.CHOOSE_DDL_FILE_DIALOG_TITLE, DdlImporterUiI18n.CHOOSE_DDL_FILE_DIALOG_MSG, new ChooseFileDialogContentProvider() {\n boolean validFile(final IFile file) {\n String ext = file.getFileExtension();\n if (ext == null)\n return false;\n ext = ext.toLowerCase();\n return \"String_Node_Str\".equals(ext) || \"String_Node_Str\".equals(ext);\n }\n });\n final IResource choice = showChooseDialog(dlg);\n if (choice == null)\n return;\n ddlFileCombo.setText(choice.toString());\n tabFromDdlFileCombo();\n}\n"
"private void initDrawer() {\n drawerLayout = (TouchThruDrawerlayout) findViewById(R.id.drawer_layout);\n menuFrame = findViewById(R.id.menu_frame);\n drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.drawer_open, R.string.drawer_close) {\n public void onDrawerClosed(View view) {\n supportInvalidateOptionsMenu();\n }\n public void onDrawerOpened(View view) {\n supportInvalidateOptionsMenu();\n }\n };\n drawerToggle.setDrawerIndicatorEnabled(true);\n drawerLayout.addDrawerListener(drawerToggle);\n}\n"
"private static String[] getAuthConfigs(File tmpDir) throws IOException {\n LocationFactory locationFactory = new LocalLocationFactory(tmpDir);\n Location authExtensionJar = AppJarHelper.createDeploymentJar(locationFactory, InMemoryAuthorizer.class);\n return new String[] { Constants.Security.ENABLED, \"String_Node_Str\", Constants.Security.AUTH_HANDLER_CLASS, BasicAuthenticationHandler.class.getName(), Constants.Security.Router.BYPASS_AUTHENTICATION_REGEX, \"String_Node_Str\", Constants.Security.Authorization.ENABLED, \"String_Node_Str\", Constants.Security.Authorization.CACHE_ENABLED, \"String_Node_Str\", Constants.Security.Authorization.EXTENSION_JAR_PATH, authExtensionJar.toURI().getPath(), Constants.Security.Authorization.EXTENSION_CONFIG_PREFIX + \"String_Node_Str\", \"String_Node_Str\", Constants.Security.KERBEROS_ENABLED, \"String_Node_Str\", Constants.Explore.EXPLORE_ENABLED, \"String_Node_Str\" };\n}\n"
"public RuntimeResourceBlockDefinition getChildByName(String theName) {\n if (getElementName().equals(theName)) {\n return myElementDef;\n } else {\n return null;\n }\n}\n"
"public Object getNewObject() {\n OPMConsumptionLink link = OPMFactory.eINSTANCE.createOPMConsumptionLink();\n link.setId(OPMIdManager.getNextId());\n return link;\n}\n"
"public void onOpened() {\n super.onOpened();\n Set<Module> selectedModules = Sets.newHashSet();\n for (Name moduleName : config.getDefaultModSelection().listModules()) {\n Module module = moduleManager.getRegistry().getLatestModuleVersion(moduleName);\n selectedModules.add(module);\n for (DependencyInfo dependencyInfo : module.getMetadata().getDependencies()) {\n selectedModules.add(moduleManager.getRegistry().getLatestModuleVersion(dependencyInfo.getId()));\n }\n }\n ModuleEnvironment environment = moduleManager.loadEnvironment(selectedModules, false);\n CoreRegistry.put(WorldGeneratorPluginLibrary.class, new WorldGeneratorPluginLibrary(environment, CoreRegistry.get(ReflectFactory.class), CoreRegistry.get(CopyStrategyLibrary.class)));\n PropertyLayout properties = find(\"String_Node_Str\", PropertyLayout.class);\n properties.setOrdering(PropertyOrdering.byLabel());\n properties.clear();\n SimpleUri generatorUri = config.getWorldGeneration().getDefaultGenerator();\n WorldGeneratorInfo info = worldGeneratorManager.getWorldGeneratorInfo(generatorUri);\n if (info == null) {\n return;\n }\n try {\n WorldGenerator wg = worldGeneratorManager.createGenerator(info.getUri());\n wg.setWorldSeed(\"String_Node_Str\");\n if (wg.getConfigurator().isPresent()) {\n WorldConfigurator worldConfig = wg.getConfigurator().get();\n params = Maps.newHashMap(worldConfig.getProperties());\n for (String key : params.keySet()) {\n Class<? extends Component> clazz = params.get(key).getClass();\n Component comp = config.getModuleConfig(generatorUri, key, clazz);\n if (comp != null) {\n params.put(key, comp);\n }\n }\n for (String label : params.keySet()) {\n PropertyProvider<?> provider = new PropertyProvider<>(params.get(label));\n properties.addPropertyProvider(label, provider);\n }\n } else {\n logger.info(info.getUri().toString() + \"String_Node_Str\");\n }\n } catch (UnresolvedWorldGeneratorException e) {\n logger.error(\"String_Node_Str\", e);\n }\n}\n"
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.isCancelled())\n return;\n if (!(event.getEntity() instanceof Player))\n return;\n Player player = (Player) event.getEntity();\n if (ACPlayer.getPlayer(player.getName()).hasPower(Type.FLY) && event.getCause().equals(EntityDamageEvent.DamageCause.FALL)) {\n event.setCancelled(true);\n event.setDamage(0);\n return;\n } else if (ACHelper.getInstance().hasGodPowers(player.getName())) {\n if (event.getCause().equals(DamageCause.FIRE) || event.getCause().equals(DamageCause.FIRE_TICK))\n player.setFireTicks(0);\n event.setCancelled(true);\n event.setDamage(0);\n }\n}\n"
"private static void checkProbability(int majorityCount, int count, BinomialDistribution dist) {\n double expected = 0.9 * count;\n double probAsExtreme = majorityCount <= expected ? dist.cumulativeProbability(majorityCount) : (1.0 - dist.cumulativeProbability(majorityCount)) + dist.probability(majorityCount);\n assertTrue(majorityCount + \"String_Node_Str\" + expected + \"String_Node_Str\" + count + \"String_Node_Str\", probAsExtreme >= 0.001);\n}\n"
"public boolean containsKey(Object key) {\n checkInputObject(key);\n TransactionImpl txn = ThreadContext.get().txn;\n if (txn != null) {\n if (txn.has(name, key)) {\n Object value = txn.get(name, key);\n return value != null;\n }\n }\n MContainsKey mContainsKey = ConcurrentMapManager.get().new MContainsKey();\n return mContainsKey.containsKey(name, key);\n}\n"
"private void readSome(Chronicle chronicle) throws IOException {\n ExcerptTailer tailer = chronicle.createTailer();\n StringBuilder sb = new StringBuilder();\n Function<WireIn, WireIn> reader = wire -> wire.read(TestKey.test).text(sb);\n for (int i = 0; i < RUNS; i++) {\n assertTrue(tailer.readDocument(reader));\n }\n}\n"
"public String GetNext(Circuit circ) {\n if (circ == null)\n return \"String_Node_Str\";\n if (UseLabelBaseOnly.get(circ)) {\n UseLabelBaseOnly.put(circ, false);\n return LabelBase.get(circ);\n }\n String NewLabel = \"String_Node_Str\";\n int CurIdx = CurrentIndex.get(circ);\n String BaseLab = LabelBase.get(circ);\n boolean Undescore = UseUnderscore.get(circ);\n do {\n CurIdx++;\n NewLabel = BaseLab;\n if (Undescore)\n NewLabel = NewLabel.concat(\"String_Node_Str\");\n NewLabel = NewLabel.concat(Integer.toString(CurIdx));\n } while (!Circuit.IsCorrectLabel(NewLabel, circ.getNonWires(), null, me, false));\n CurrentIndex.put(circ, CurIdx);\n CurrentLabel.put(circ, NewLabel);\n return NewLabel;\n}\n"
"public static String getTagOldestDate(String tagName) {\n if (TextUtils.isEmpty(tagName)) {\n return \"String_Node_Str\";\n return SqlUtils.stringForQuery(ReaderDatabase.getReadableDb(), \"String_Node_Str\", new String[] { tagName });\n}\n"
"public char getChar() {\n return _CDRArray[_bytePos++];\n}\n"
"private void handleChangedProperty(Element sourceElement, String propertyName, Object newValue, Object oldValue) {\n JSONObject elementOb = null;\n String elementID = null;\n ArrayList<String> moveKeywords = new ArrayList<String>();\n moveKeywords.add(PropertyNames.OWNING_ASSOCIATION);\n moveKeywords.add(PropertyNames.OWNING_CONSTRAINT);\n moveKeywords.add(PropertyNames.OWNING_ELEMENT);\n moveKeywords.add(PropertyNames.OWNING_EXPRESSION);\n moveKeywords.add(PropertyNames.OWNING_INSTANCE);\n moveKeywords.add(PropertyNames.OWNING_INSTANCE_SPEC);\n moveKeywords.add(PropertyNames.OWNING_LOWER);\n moveKeywords.add(PropertyNames.OWNING_PACKAGE);\n moveKeywords.add(PropertyNames.OWNING_PARAMETER);\n moveKeywords.add(PropertyNames.OWNING_PROPERTY);\n moveKeywords.add(PropertyNames.OWNING_SIGNAL);\n moveKeywords.add(PropertyNames.OWNING_SLOT);\n moveKeywords.add(PropertyNames.OWNING_STATE);\n moveKeywords.add(PropertyNames.OWNING_TEMPLATE_PARAMETER);\n moveKeywords.add(PropertyNames.OWNING_TRANSITION);\n moveKeywords.add(PropertyNames.OWNING_UPPER);\n moveKeywords.add(PropertyNames._U_M_L_CLASS);\n moveKeywords.add(PropertyNames.OWNER);\n if (propertyName.equals(PropertyNames.NAME)) {\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n elementOb.put(\"String_Node_Str\", newValue);\n } else if (sourceElement instanceof Comment && ExportUtility.isElementDocumentation((Comment) sourceElement) && propertyName.equals(PropertyNames.BODY)) {\n Element actual = sourceElement.getOwner();\n if (elements.containsKey(ExportUtility.getElementID(actual))) {\n elementOb = elements.get(ExportUtility.getElementID(actual));\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", ExportUtility.getElementID(actual));\n elements.put(ExportUtility.getElementID(actual), elementOb);\n }\n elementOb.put(\"String_Node_Str\", Utils.stripHtmlWrapper(ModelHelper.getComment(actual)));\n } else if ((sourceElement instanceof ValueSpecification) && (propertyName.equals(PropertyNames.VALUE))) {\n Element actual = sourceElement.getOwner();\n while (actual instanceof ValueSpecification) actual = actual.getOwner();\n if (actual != null)\n elementID = ExportUtility.getElementID(actual);\n else\n elementID = ExportUtility.getElementID(sourceElement);\n JSONObject specialization = new JSONObject();\n if (actual instanceof Property) {\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n specialization.put(\"String_Node_Str\", ((Property) actual).isDerived());\n specialization.put(\"String_Node_Str\", false);\n ValueSpecification vs = ((Property) actual).getDefaultValue();\n JSONArray singleElementSpecVsArray = new JSONArray();\n if (vs != null) {\n JSONObject newElement = new JSONObject();\n ExportUtility.fillValueSpecification(vs, newElement, null, null);\n singleElementSpecVsArray.add(newElement);\n }\n specialization.put(\"String_Node_Str\", singleElementSpecVsArray);\n } else if (actual instanceof Slot) {\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n if (((Slot) actual).getDefiningFeature().getID().equals(\"String_Node_Str\"))\n specialization.put(\"String_Node_Str\", true);\n List<ValueSpecification> vsl = ((Slot) actual).getValue();\n JSONArray specVsArray = new JSONArray();\n if (vsl != null && vsl.size() > 0) {\n for (ValueSpecification vs : vsl) {\n JSONObject newElement = new JSONObject();\n ExportUtility.fillValueSpecification(vs, newElement, null, null);\n specVsArray.add(newElement);\n }\n }\n specialization.put(\"String_Node_Str\", specVsArray);\n } else\n return;\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n elementOb.put(\"String_Node_Str\", specialization);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", ExportUtility.getElementID(actual));\n elementOb.put(\"String_Node_Str\", specialization);\n elements.put(ExportUtility.getElementID(actual), elementOb);\n }\n } else if ((sourceElement instanceof Property) && propertyName.equals(PropertyNames.DEFAULT_VALUE)) {\n elementID = ExportUtility.getElementID(sourceElement);\n ValueSpecification vs = ((Property) sourceElement).getDefaultValue();\n if (vs != null) {\n JSONObject jsonObj = new JSONObject();\n JSONArray value = new JSONArray();\n JSONObject specialization = new JSONObject();\n elementOb = new JSONObject();\n specialization.put(\"String_Node_Str\", value);\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n ExportUtility.fillValueSpecification(vs, jsonObj, null, null);\n value.add(jsonObj);\n elementOb.put(\"String_Node_Str\", specialization);\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n } else if ((sourceElement instanceof Slot) && propertyName.equals(PropertyNames.VALUE)) {\n JSONObject specialization = new JSONObject();\n JSONArray value = new JSONArray();\n List<ValueSpecification> vsl = ((Slot) sourceElement).getValue();\n elementOb = new JSONObject();\n elementID = ExportUtility.getElementID(sourceElement);\n if (vsl != null && vsl.size() > 0) {\n specialization.put(\"String_Node_Str\", value);\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n for (ValueSpecification vs : vsl) {\n JSONObject jsonObj = new JSONObject();\n ExportUtility.fillValueSpecification(vs, jsonObj, null, null);\n value.add(jsonObj);\n }\n elementOb.put(\"String_Node_Str\", specialization);\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n } else if (propertyName.equals(UML2MetamodelConstants.INSTANCE_CREATED) && ExportUtility.shouldAdd(sourceElement)) {\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n ExportUtility.fillElement(sourceElement, elementOb, null, null);\n } else if (propertyName.equals(UML2MetamodelConstants.INSTANCE_DELETED)) {\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID))\n elements.remove(elementID);\n } else if (propertyName.equals(PropertyNames.SUPPLIER)) {\n if ((newValue != null) && (oldValue == null)) {\n JSONObject specialization = new JSONObject();\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n Element client = ModelHelper.getClientElement(sourceElement);\n Element supplier = ModelHelper.getSupplierElement(sourceElement);\n specialization.put(\"String_Node_Str\", client.getID());\n specialization.put(\"String_Node_Str\", supplier.getID());\n elementOb.put(\"String_Node_Str\", specialization);\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n } else if (propertyName.equals(PropertyNames.CLIENT)) {\n if ((newValue != null) && (oldValue == null)) {\n JSONObject specialization = new JSONObject();\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n Element client = ModelHelper.getClientElement(sourceElement);\n Element supplier = ModelHelper.getSupplierElement(sourceElement);\n specialization.put(\"String_Node_Str\", client.getID());\n specialization.put(\"String_Node_Str\", supplier.getID());\n elementOb.put(\"String_Node_Str\", specialization);\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n } else if ((sourceElement instanceof Generalization) && ((propertyName.equals(PropertyNames.SPECIFIC)) || (propertyName.equals(PropertyNames.GENERAL)))) {\n if ((newValue != null) && (oldValue == null)) {\n JSONObject specialization = new JSONObject();\n elementID = ExportUtility.getElementID(sourceElement);\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n boolean isConform = StereotypesHelper.hasStereotypeOrDerived(sourceElement, DocGen3Profile.conformStereotype);\n if (isConform)\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n else if (StereotypesHelper.hasStereotypeOrDerived(sourceElement, DocGen3Profile.queriesStereotype))\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n else\n specialization.put(\"String_Node_Str\", \"String_Node_Str\");\n Element client = ModelHelper.getClientElement(sourceElement);\n Element supplier = ModelHelper.getSupplierElement(sourceElement);\n specialization.put(\"String_Node_Str\", client.getID());\n specialization.put(\"String_Node_Str\", supplier.getID());\n elementOb.put(\"String_Node_Str\", specialization);\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n } else if ((moveKeywords.contains(propertyName)) && ExportUtility.shouldAdd(sourceElement)) {\n if (elements.containsKey(elementID)) {\n elementOb = elements.get(elementID);\n } else {\n elementOb = new JSONObject();\n elementOb.put(\"String_Node_Str\", elementID);\n elements.put(elementID, elementOb);\n }\n elementID = ExportUtility.getElementID(sourceElement);\n elementOb.put(\"String_Node_Str\", elementID);\n if (sourceElement.getOwner() == null)\n elementOb.put(\"String_Node_Str\", \"String_Node_Str\");\n else if (sourceElement.getOwner() == Application.getInstance().getProject().getModel())\n elementOb.put(\"String_Node_Str\", Application.getInstance().getProject().getPrimaryProject().getProjectID());\n else\n elementOb.put(\"String_Node_Str\", \"String_Node_Str\" + sourceElement.getOwner().getID());\n }\n}\n"
"private boolean canBend(CoreAbility ability, boolean ignoreBinds, boolean ignoreCooldowns) {\n if (ability == null) {\n return false;\n }\n List<String> disabledWorlds = getConfig().getStringList(\"String_Node_Str\");\n Location playerLoc = player.getLocation();\n if (!player.isOnline() || player.isDead()) {\n return false;\n } else if (ability.getLocation() != null && !ability.getLocation().getWorld().equals(player.getWorld())) {\n return false;\n } else if (!ignoreCooldowns && isOnCooldown(ability.getName())) {\n return false;\n } else if (!ignoreBinds && !ability.getName().equals(getBoundAbilityName())) {\n return false;\n } else if (disabledWorlds != null && disabledWorlds.contains(player.getWorld().getName())) {\n return false;\n } else if (Commands.isToggledForAll || !isToggled() || !isElementToggled(ability.getElement())) {\n return false;\n } else if (player.getGameMode() == GameMode.SPECTATOR) {\n return false;\n }\n if (!ignoreCooldowns && cooldowns.containsKey(name)) {\n if (cooldowns.get(name) + getConfig().getLong(\"String_Node_Str\") >= System.currentTimeMillis()) {\n return false;\n }\n cooldowns.remove(name);\n }\n if (isChiBlocked() || isParalyzed() || isBloodbended() || isControlledByMetalClips()) {\n return false;\n } else if (GeneralMethods.isRegionProtectedFromBuild(player, ability.getName(), playerLoc)) {\n return false;\n } else if (ability instanceof FireAbility && BendingManager.events.get(player.getWorld()) != null && BendingManager.events.get(player.getWorld()).equalsIgnoreCase(\"String_Node_Str\")) {\n return false;\n } else if (ability instanceof WaterAbility && BendingManager.events.get(player.getWorld()) != null && BendingManager.events.get(player.getWorld()).equalsIgnoreCase(\"String_Node_Str\")) {\n return false;\n }\n if (!ignoreBinds && !canBind(ability)) {\n return false;\n }\n return true;\n}\n"
"public void verifyUnlock(IKeyguardExitCallback callback) {\n synchronized (this) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\");\n if (shouldWaitForProvisioning()) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\");\n try {\n callback.onKeyguardExitResult(false);\n } catch (RemoteException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n } else if (mExternallyEnabled) {\n Log.w(TAG, \"String_Node_Str\");\n try {\n callback.onKeyguardExitResult(false);\n } catch (RemoteException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n } else if (mExitSecureCallback != null) {\n try {\n callback.onKeyguardExitResult(false);\n } catch (RemoteException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n } else {\n mExitSecureCallback = callback;\n verifyUnlockLocked();\n }\n }\n}\n"
"public void onSoundEmitted(SoundEmittedEvent event) {\n soundEvents.emitSound(event);\n}\n"
"private static void parseBalanced(ASTNode node, SubNodeFactory snf, int lToken, int rToken) throws XPathSyntaxException {\n if (node instanceof ASTNodeAbstractExpr) {\n ASTNodeAbstractExpr absNode = (ASTNodeAbstractExpr) node;\n int i = 0;\n while (i < absNode.content.size()) {\n int type = absNode.getTokenType(i);\n if (type == rToken) {\n throw new XPathSyntaxException(\"String_Node_Str\");\n } else if (type == lToken) {\n int j = absNode.indexOfBalanced(i, rToken, lToken, rToken);\n if (j == -1) {\n throw new XPathSyntaxException();\n }\n absNode.condense(snf.newNode(absNode.extract(i + 1, j)), i, j + 1);\n }\n i++;\n }\n }\n for (Enumeration e = node.getChildren().elements(); e.hasMoreElements(); ) {\n parseBalanced((ASTNode) e.nextElement(), snf, lToken, rToken);\n }\n}\n"
"private void updateMapLocationButtons(AutoPanMode mode) {\n mGoToMyLocation.setActivated(false);\n mGoToDroneLocation.setActivated(false);\n if (mapFragment != null) {\n mapFragment.setAutoPanMode(mode);\n }\n switch(mode) {\n case DRONE:\n mGoToDroneLocation.setActivated(true);\n break;\n case USER:\n mGoToMyLocation.setActivated(true);\n break;\n default:\n break;\n }\n}\n"
"public void notifyTaskDataLoaded(Bitmap thumbnail, Drawable applicationIcon, boolean reloadingTaskData) {\n this.applicationIcon = applicationIcon;\n this.thumbnail = thumbnail;\n if (mCb != null) {\n mCb.onTaskDataLoaded();\n }\n}\n"
"protected void configureFromAnnotations(Class<?> beanClass) {\n Headers headerAnnotation = AnnotationHelper.findHeadersAnnotation(beanClass);\n String[] headersFromBean = AnnotationHelper.deriveHeaderNamesFromFields(beanClass, MethodFilter.ONLY_GETTERS);\n boolean writeHeaders = false;\n if (headerAnnotation != null) {\n if (headerAnnotation.sequence().length > 0) {\n headersFromBean = headerAnnotation.sequence();\n }\n writeHeaders = headerAnnotation.write();\n }\n if (headerWritingEnabled == null) {\n headerWritingEnabled = writeHeaders;\n }\n if (getHeaders() == null && headersFromBean.length > 0) {\n setHeadersDerivedFromClass(beanClass, headersFromBean);\n }\n}\n"
"public static <E> MethodHandle getMethodHandleVirtual(Class<? super E> clazz, String[] methodNames, Class<?>... paramTypes) {\n Exception failed;\n try {\n Method method = reflectMethod(clazz, methodNames, paramTypes);\n MethodHandle handle = MethodHandles.lookup().unreflect(method);\n method.setAccessible(false);\n return handle;\n } catch (IllegalAccessException e) {\n failed = e;\n }\n throw new UnableToFindMethodHandleException(methodNames, failed);\n}\n"
"public void run() {\n try {\n respArea.setText(\"String_Node_Str\");\n for (; ; ) {\n Thread.sleep(250);\n if (toDisplay != null) {\n respArea.setText(toDisplay);\n return;\n } else if (thread != null) {\n if (toUpdate[0] != null) {\n if ((count % 8) == 0) {\n respArea.setText(toUpdate[0] + \"String_Node_Str\");\n } else {\n respArea.setText(respArea.getText() + \"String_Node_Str\");\n }\n } else {\n if (respArea.getText().length() > 1024 * 16) {\n respArea.setText(\"String_Node_Str\");\n }\n respArea.setText(respArea.getText() + \"String_Node_Str\");\n }\n }\n }\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n } catch (Throwable tt) {\n tt.printStackTrace();\n respArea.setText(tt.getMessage());\n }\n}\n"
"private static Pattern readPattern(ByteReader reader, ModFormat.Type type, int tracks) {\n if (reader.available() < 64 * tracks * 4)\n return null;\n Pattern block = new Pattern(tracks, 64);\n for (int row = 0; row < 64; row++) {\n for (int track = 0; track < tracks; track++) {\n int b0 = reader.u1();\n int b1 = reader.u1();\n int b2 = reader.u1();\n int b3 = reader.u1();\n int ins = (b0 & 0xF0 | (b2 & 0xF0) >> 4) - 1;\n int period = (b0 << 8 | b1) & 0xFFF;\n int key = Period.getKeyForPeriod(period * 100);\n int effect = type == ust ? ustEffect(b2 & 0xF, b3) : b2 & 0xF;\n int param = type == ust ? ustEffectParam(b2 & 0xF, b3) : b3;\n int paramX = param >> 4;\n int paramY = param & 15;\n if (effect == 0x0E) {\n effect = effect << 4 | paramX;\n paramX = 0;\n }\n if (effect == 0x0D) {\n int dec = paramX * 10 + paramY;\n paramX = dec >> 4;\n paramY = dec & 15;\n }\n block.setNote(track, row, Note.create(key, i, effect, param, false));\n }\n }\n return block;\n}\n"
"public String drop(final String streamName) {\n try {\n cachedStreamsDAO.dropStream(streamName);\n return \"String_Node_Str\".concat(streamName).concat(\"String_Node_Str\");\n } catch (StratioEngineStatusException | StratioAPISecurityException | StratioEngineOperationException | StratioEngineConnectionException e) {\n throw new StreamingShellException(e);\n }\n}\n"
"public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {\n if (DataSourceObjectBuilder.isJDBC41()) {\n Class<?>[] valueTypes = new Class<?>[] { String.class, Class.class };\n try {\n return (T) getMethodExecutor().invokeMethod(resultSet, \"String_Node_Str\", valueTypes, columnLabel, type);\n } catch (ResourceException ex) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", ex);\n throw new SQLException(ex);\n }\n }\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"public String getText(Mode mode) {\n if (staticText != null && !staticText.isEmpty()) {\n return staticText;\n }\n return \"String_Node_Str\" + (!mode.getTargets().isEmpty() ? mode.getTargets().get(0).getTargetName() : \"String_Node_Str\");\n}\n"
"public ClosableIterable<File> listStoreFiles() {\n final Collection<File> files = new ArrayList<File>();\n for (File neostoreFile : new File(storeDir).listFiles()) {\n String name = neostoreFile.getName();\n if (neostoreFile.isFile() && (name.startsWith(\"String_Node_Str\") || name.equals(IndexStore.INDEX_DB_FILE_NAME)) && !name.endsWith(\"String_Node_Str\")) {\n files.add(neostoreFile);\n }\n }\n return new ClosableIterable<File>() {\n public Iterator<File> iterator() {\n return files.iterator();\n }\n public void close() {\n }\n };\n}\n"
"protected ErrorRecord parseMethod(OSDRequest rq) {\n final PinkyRequest pr = rq.getPinkyRequest();\n if (pr.requestMethod.equals(HTTPUtils.GET_TOKEN)) {\n if (pr.requestURI == null)\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.INVALID_FILEID, \"String_Node_Str\");\n if (pr.requestURI.equals(\"String_Node_Str\")) {\n rq.setType(OSDRequest.Type.STATUS_PAGE);\n rq.setOperation(master.getOperation(RequestDispatcher.Operations.STATUS_PAGE));\n } else {\n rq.setType(OSDRequest.Type.READ);\n final String fileId = parseFileIdFromURI(pr);\n if (fileId == null) {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.INVALID_FILEID, \"String_Node_Str\");\n }\n rq.getDetails().setFileId(fileId);\n rq.setOperation(master.getOperation(RequestDispatcher.Operations.READ));\n }\n } else if (pr.requestMethod.equals(HTTPUtils.PUT_TOKEN)) {\n rq.setType(OSDRequest.Type.WRITE);\n final String fileId = parseFileIdFromURI(pr);\n if (fileId == null) {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.INVALID_FILEID, \"String_Node_Str\");\n }\n if (pr.requestBody == null) {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.INVALID_PARAMS, \"String_Node_Str\");\n }\n rq.getDetails().setFileId(fileId);\n rq.setOperation(master.getOperation(RequestDispatcher.Operations.WRITE));\n } else if (pr.requestMethod.equals(HTTPUtils.DELETE_TOKEN)) {\n rq.setType(OSDRequest.Type.DELETE);\n final String fileId = parseFileIdFromURI(pr);\n if (fileId == null) {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.INVALID_FILEID, \"String_Node_Str\");\n }\n rq.getDetails().setFileId(fileId);\n rq.setOperation(master.getOperation(RequestDispatcher.Operations.DELETE));\n } else if (pr.requestMethod.equals(HTTPUtils.POST_TOKEN)) {\n rq.setType(OSDRequest.Type.RPC);\n assert (pr.requestURI != null);\n if (pr.requestURI.length() == 0) {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.METHOD_NOT_IMPLEMENTED, \"String_Node_Str\");\n }\n ErrorRecord result = parseRPC(rq);\n if (result != null)\n return result;\n } else {\n return new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrorCodes.METHOD_NOT_IMPLEMENTED, pr.requestMethod + \"String_Node_Str\");\n }\n final ErrorRecord hdrResult = parseHeaders(rq);\n if (hdrResult != null) {\n return hdrResult;\n }\n return null;\n}\n"
"public void dataValida(String day, String month, String year) throws Exception {\n Calendar calendarioAtual = new GregorianCalendar();\n Integer day = Integer.parseInt(data[0]);\n Integer month = Integer.parseInt(data[1]);\n Integer year = Integer.parseInt(data[2]);\n this.calendario.set(Calendar.MONTH, month - 1);\n this.calendario.set(Calendar.YEAR, year);\n if (year < calendarioAtual.get(Calendar.YEAR)) {\n throw new DataInvalidaException();\n }\n if (Integer.parseInt(year) < this.calendario.get(Calendar.YEAR)) {\n throw new DataInvalidaException();\n } else if (Integer.parseInt(day) > this.calendario.getActualMaximum(Calendar.DAY_OF_MONTH)) {\n throw new DataInvalidaException();\n }\n}\n"
"public void setContent(SwitchPanel tabbedPanel) {\n View view;\n if (tabbedPanel instanceof View) {\n view = (View) tabbedPanel;\n } else {\n view = new TabbedPanelView(tabbedPanel);\n }\n if (!mainTabbedPane.contains(view)) {\n mainTabbedPane.addTab(view);\n }\n mainTabbedPane.setSelectedComponent(view);\n}\n"
"public void updateCapabilityProperty(String environmentId, String nodeTemplateId, String capabilityName, String propertyName, Object propertyValue) throws ConstraintViolationException, ConstraintValueDoNotMatchPropertyTypeException {\n DeploymentConfiguration deploymentConfiguration = getDeploymentConfiguration(environmentId);\n DeploymentTopology deploymentTopology = deploymentConfiguration.getDeploymentTopology();\n try {\n ToscaContext.init(deploymentTopology.getDependencies());\n NodeTemplate substitutedNode = deploymentTopology.getNodeTemplates().get(nodeTemplateId);\n if (substitutedNode == null) {\n throw new NotFoundException(\"String_Node_Str\" + deploymentTopology.getId() + \"String_Node_Str\" + nodeTemplateId + \"String_Node_Str\");\n }\n String substitutionId = deploymentTopology.getSubstitutedNodes().get(nodeTemplateId);\n if (substitutionId == null) {\n throw new NotFoundException(\"String_Node_Str\" + nodeTemplateId + \"String_Node_Str\" + deploymentTopology.getId() + \"String_Node_Str\");\n }\n LocationResourceTemplate locationResourceTemplate = deploymentConfiguration.getAvailableSubstitutions().getSubstitutionsTemplates().get(substitutionId);\n Capability locationResourceCapability = locationResourceTemplate.getTemplate().getCapabilities().get(capabilityName);\n if (locationResourceCapability == null) {\n throw new NotFoundException(\"String_Node_Str\" + capabilityName + \"String_Node_Str\" + nodeTemplateId + \"String_Node_Str\" + locationResourceTemplate.getTemplate().getType() + \"String_Node_Str\");\n }\n CapabilityType capabilityType = deploymentConfiguration.getAvailableSubstitutions().getSubstitutionTypes().getCapabilityTypes().get(locationResourceCapability.getType());\n PropertyDefinition propertyDefinition = capabilityType.getProperties().get(propertyName);\n if (propertyDefinition == null) {\n throw new NotFoundException(\"String_Node_Str\" + propertyName + \"String_Node_Str\" + capabilityName + \"String_Node_Str\" + locationResourceCapability.getType() + \"String_Node_Str\");\n }\n AbstractPropertyValue locationResourcePropertyValue = locationResourceTemplate.getTemplate().getCapabilities().get(capabilityName).getProperties().get(propertyName);\n buildConstaintException(locationResourcePropertyValue, \"String_Node_Str\", propertyName, propertyValue);\n AbstractPropertyValue originalNodePropertyValue = deploymentTopology.getOriginalNodes().get(nodeTemplateId).getCapabilities().get(capabilityName).getProperties().get(propertyName);\n buildConstaintException(originalNodePropertyValue, propertyDefinition, \"String_Node_Str\", propertyName, propertyValue);\n propertyService.setCapabilityPropertyValue(substitutedNode.getCapabilities().get(capabilityName), propertyDefinition, propertyName, propertyValue);\n alienDAO.save(deploymentTopology);\n } finally {\n ToscaContext.destroy();\n }\n}\n"
"public boolean canBeAppliedByTable(ItemStack stack) {\n return canApplyAtEnchantingTable((net.minecraft.item.ItemStack) stack);\n}\n"
"protected void loadVariableLazily() {\n if (globalVariables == null) {\n ClassLoader loader = getClassLoader();\n ReportDocumentCoreInfo documentInfo = loadParametersAndVariables(loader);\n this.globalVariables = documentInfo.globalVariables;\n this.parameters = documentInfo.parameters;\n }\n}\n"
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n removeAll();\n JLabel cor = new JLabel();\n JLabel desc = new JLabel();\n setLayout(new GridBagLayout());\n desc.setText(((EvaluatedDescriptionClass) value).getDescription().toManchesterSyntaxString(ore.getBaseURI(), ore.getPrefixes()));\n double accuracy = ((EvaluatedDescriptionClass) value).getAccuracy();\n BigDecimal roundedAccuracy = new BigDecimal(accuracy * 100);\n roundedAccuracy = roundedAccuracy.setScale(2, BigDecimal.ROUND_HALF_UP);\n cor.setText(roundedAccuracy.toString());\n add(cor, new GridBagConstraints(0, 0, 1, 1, 0.1, 0.0, GridBagConstraints.LINE_END, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));\n add(desc, new GridBagConstraints(1, 0, 1, 1, 0.8, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));\n Color background;\n Color foreground;\n if (index % 2 == 0 && !isSelected) {\n background = new Color(242, 242, 242);\n foreground = Color.BLACK;\n } else if (isSelected) {\n background = Color.LIGHT_GRAY;\n foreground = Color.WHITE;\n } else {\n background = Color.WHITE;\n foreground = Color.BLACK;\n }\n setForeground(foreground);\n setBackground(background);\n return this;\n}\n"
"public int describeContents() {\n return 0;\n}\n"
"public String getChangeId() {\n return this.changeId;\n}\n"
"public void onStart(IContext context) throws JFException {\n console = context.getConsole();\n engine = context.getEngine();\n history = context.getHistory();\n indicators = context.getIndicators();\n Set subscribedInstruments = new HashSet();\n subscribedInstruments.add(instrument);\n context.setSubscribedInstruments(subscribedInstruments);\n IChart chart = context.getChart(instrument);\n if (chart != null && engine.getType() == IEngine.Type.TEST) {\n chart.addIndicator(indicators.getIndicator(\"String_Node_Str\"), new Object[] { barsOnSides });\n }\n for (IOrder order : engine.getOrders(instrument)) {\n if (order.getLabel().substring(0, id.length()).equals(id)) {\n if (this.order != null) {\n console.getOut().println(this.order.getLabel() + \"String_Node_Str\");\n }\n this.order = order;\n counter = Integer.valueOf(order.getLabel().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n console.getOut().println(order.getLabel() + \"String_Node_Str\");\n }\n }\n if (isActive(order))\n console.getOut().println(order.getLabel() + \"String_Node_Str\");\n}\n"
"private void writeText(XhtmlNode node) throws Exception {\n for (char c : node.getContent().toCharArray()) {\n if (c == '&')\n dst.append(\"String_Node_Str\");\n else if (c == '<')\n dst.append(\"String_Node_Str\");\n else if (c == '>')\n dst.append(\"String_Node_Str\");\n else if (c == '\"')\n dst.append(\"String_Node_Str\");\n else if (!xmlOnly) {\n dst.append(c);\n }\n}\n"
"public void convertShouldSucceed() throws ValidateException, InterruptedException, IOException {\n String res = Pyicos.runConvert(inSamFile.getCanonicalPath(), outWigFile.getCanonicalPath(), true);\n assertTrue(outWigFile.exists());\n assertTrue(new File(res).exists());\n}\n"
"private void constructSessionClass() {\n String packname = getEndpointApiRootPackageName(this.gpn);\n String simpname = getSessionClassName(this.gpn);\n this.cb.setName(simpname);\n this.cb.setPackage(packname);\n this.cb.addImports(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n this.cb.addImports(\"String_Node_Str\");\n this.cb.addImports(getRolesPackageName(this.gpn) + \"String_Node_Str\");\n if (!this.mids.isEmpty()) {\n this.cb.addImports(getOpsPackageName(this.gpn) + \"String_Node_Str\");\n }\n this.cb.addModifiers(JavaBuilder.PUBLIC, JavaBuilder.FINAL);\n this.cb.setSuperClass(SessionApiGenerator.SESSION_CLASS);\n FieldBuilder fb1 = this.cb.newField(SessionApiGenerator.IMPATH_FIELD);\n fb1.setType(\"String_Node_Str\");\n fb1.addModifiers(JavaBuilder.PUBLIC, JavaBuilder.STATIC, JavaBuilder.FINAL);\n fb1.setExpression(\"String_Node_Str\");\n FieldBuilder fb2 = this.cb.newField(SessionApiGenerator.SOURCE_FIELD);\n fb2.setType(\"String_Node_Str\");\n fb2.addModifiers(JavaBuilder.PUBLIC, JavaBuilder.STATIC, JavaBuilder.FINAL);\n fb2.setExpression(\"String_Node_Str\");\n FieldBuilder fb3 = this.cb.newField(SessionApiGenerator.PROTO_FIELD);\n fb3.setType(SessionApiGenerator.GPROTOCOLNAME_CLASS);\n fb3.addModifiers(JavaBuilder.PUBLIC, JavaBuilder.STATIC, JavaBuilder.FINAL);\n fb3.setExpression(SessionApiGenerator.SESSIONTYPEFACTORY_CLASS + \"String_Node_Str\" + gpn + \"String_Node_Str\");\n this.roles.stream().forEach((r) -> addRoleField(this.cb, r));\n this.mids.stream().forEach((mid) -> addOpField(this.cb, mid));\n ConstructorBuilder ctor = this.cb.newConstructor();\n ctor.addModifiers(JavaBuilder.PUBLIC);\n ctor.addBodyLine(JavaBuilder.SUPER + \"String_Node_Str\" + simpname + \"String_Node_Str\" + SessionApiGenerator.IMPATH_FIELD + \"String_Node_Str\" + simpname + \"String_Node_Str\" + SessionApiGenerator.SOURCE_FIELD + \"String_Node_Str\" + simpname + \"String_Node_Str\" + SessionApiGenerator.PROTO_FIELD + \"String_Node_Str\");\n FieldBuilder fb4 = this.cb.newField(\"String_Node_Str\");\n fb4.setType(\"String_Node_Str\");\n fb4.addModifiers(JavaBuilder.PUBLIC, JavaBuilder.STATIC, JavaBuilder.FINAL);\n String roles = \"String_Node_Str\";\n roles += this.roles.stream().map((r) -> r.toString()).collect(Collectors.joining(\"String_Node_Str\"));\n roles += \"String_Node_Str\";\n fb4.setExpression(roles);\n MethodBuilder mb = this.cb.newMethod(\"String_Node_Str\");\n mb.addAnnotations(\"String_Node_Str\");\n mb.addModifiers(JavaBuilder.PUBLIC);\n mb.setReturn(\"String_Node_Str\");\n mb.addParameters();\n mb.addBodyLine(JavaBuilder.RETURN + \"String_Node_Str\" + simpname + \"String_Node_Str\");\n}\n"
"public void tellAll(Color color, String message) {\n for (Creature creature : creatures) {\n creature.hear(color, message);\n }\n}\n"
"public void addActorParameter(String name, String expression) throws PtalonRuntimeException {\n String uniqueName = _actor.uniqueName(name);\n try {\n PtalonParameter parameter = new PtalonParameter(_actor, uniqueName);\n parameter.setVisibility(Settable.NONE);\n _currentIfTree.setStatus(name, true);\n _currentIfTree.setEnteredIteration(name, _currentIfTree.entered);\n _currentIfTree.mapName(name, uniqueName);\n _unassignedParameters.add(parameter);\n _unassignedParameterValues.add(expression);\n } catch (NameDuplicationException e) {\n throw new PtalonRuntimeException(\"String_Node_Str\", e);\n } catch (IllegalActionException e) {\n throw new PtalonRuntimeException(\"String_Node_Str\", e);\n }\n}\n"
"protected void onOpenFile() {\n FileDialog fileDialog = new FileDialog(new Shell());\n fileDialog.setText(\"String_Node_Str\");\n String[] filterExt = { \"String_Node_Str\", \"String_Node_Str\" };\n fileDialog.setFilterExtensions(filterExt);\n String inputFileName = fileDialog.open();\n if (inputFileName == null)\n return;\n label.setText(inputFileName);\n callback.on(inputFileName);\n}\n"
"public boolean setPasswordForNode(String clusterName, String nodeIP, String password) throws Exception {\n AuAssert.check(clusterName != null && nodeIP != null && password != null);\n List<Callable<Void>> storeProcedures = new ArrayList<Callable<Void>>();\n SetVMPasswordSP setVMPasswordSP = new SetVMPasswordSP(nodeIP, password);\n storeProcedures.add(setVMPasswordSP);\n AuAssert.check(!storeProcedures.isEmpty());\n try {\n Callable<Void>[] storeProceduresArray = storeProcedures.toArray(new Callable[0]);\n NoProgressUpdateCallback callback = new NoProgressUpdateCallback();\n ExecutionResult[] result = Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND, storeProceduresArray, callback);\n if (result[0].finished && result[0].throwable == null) {\n return true;\n }\n if (commandSucceed) {\n setPasswordSucceed = true;\n break;\n } else {\n logger.info(\"String_Node_Str\" + nodeIP + \"String_Node_Str\" + (i + 1) + \"String_Node_Str\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n logger.info(\"String_Node_Str\");\n }\n }\n }\n if (setPasswordSucceed) {\n logger.info(\"String_Node_Str\" + nodeIP + \"String_Node_Str\");\n return true;\n } else {\n logger.info(\"String_Node_Str\" + nodeIP + \"String_Node_Str\");\n throw new Exception(Constants.CHECK_WHETHER_SSH_ACCESS_AVAILABLE);\n }\n}\n"
"private void createDataArea() {\n fDataArea = new ScrolledComposite(foSashForm, SWT.VERTICAL);\n {\n GridLayout gl = new GridLayout();\n fDataArea.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_VERTICAL);\n fDataArea.setLayoutData(gd);\n fDataArea.setExpandHorizontal(true);\n fDataArea.setExpandVertical(true);\n }\n Composite dataComposite = new Composite(fDataArea, SWT.NONE);\n {\n GridLayout gl = new GridLayout(2, false);\n gl.marginLeft = fLeftSize.x;\n dataComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_BOTH);\n dataComposite.setLayoutData(gd);\n }\n fDataArea.setContent(dataComposite);\n getDataSheet().createDataSelector(dataComposite);\n GridData gd = new GridData();\n gd.widthHint = fRightSize.x - 40;\n new Label(dataComposite, SWT.NONE).setLayoutData(gd);\n getDataSheet().createDataDragSource(dataComposite);\n getDataSheet().createActionButtons(dataComposite);\n new Label(dataComposite, SWT.NONE);\n}\n"
"public void transform(NodeType nodeType) {\n if (nodeType == null || props == null) {\n return;\n }\n boolean modified = false;\n String currComponentName = nodeType.getComponentName();\n String newComponentName = props.getProperty(currComponentName);\n nodeType.setComponentName(newComponentName);\n IComponent component = ComponentsFactoryProvider.getInstance().get(newComponentName, category.getName());\n ComponentProperties compProperties = ComponentsUtils.getComponentProperties(newComponentName);\n FakeNode fNode = new FakeNode(component);\n for (IElementParameter param : fNode.getElementParameters()) {\n if (param instanceof GenericElementParameter) {\n String paramName = param.getName();\n NamedThing currNamedThing = ComponentsUtils.getGenericSchemaElement(compProperties, paramName);\n String oldParamName = props.getProperty(currComponentName + IGenericConstants.EXP_SEPARATOR + paramName);\n if (oldParamName != null && !(oldParamName = oldParamName.trim()).isEmpty()) {\n ElementParameterType paramType = getParameterType(nodeType, oldParamName);\n if (paramType != null) {\n if (currNamedThing instanceof ComponentReferenceProperties) {\n ComponentReferenceProperties props = (ComponentReferenceProperties) currNamedThing;\n props.referenceType.setValue(ComponentReferenceProperties.ReferenceType.COMPONENT_INSTANCE);\n props.componentInstanceId.setValue(ParameterUtilTool.convertParameterValue(paramType));\n props.componentInstanceId.setTaggedValue(IGenericConstants.ADD_QUOTES, true);\n } else {\n if (EParameterFieldType.TABLE.equals(param.getFieldType())) {\n ((Property) currNamedThing).setValue(getTableValue(paramType));\n } else {\n ((Property) currNamedThing).setValue(ParameterUtilTool.convertParameterValue(paramType));\n }\n }\n ParameterUtilTool.removeParameterType(nodeType, paramType);\n modified = true;\n }\n if (EParameterFieldType.SCHEMA_REFERENCE.equals(param.getFieldType())) {\n String schemaTypeName = \"String_Node_Str\" + EParameterName.SCHEMA_TYPE.getName();\n String repSchemaTypeName = \"String_Node_Str\" + EParameterName.REPOSITORY_SCHEMA_TYPE.getName();\n paramType = getParameterType(nodeType, oldParamName + schemaTypeName);\n if (paramType != null) {\n paramType.setName(param.getName() + schemaTypeName);\n }\n paramType = getParameterType(nodeType, oldParamName + repSchemaTypeName);\n if (paramType != null) {\n paramType.setName(param.getName() + repSchemaTypeName);\n }\n }\n } else {\n if (currNamedThing instanceof Property) {\n if (((Property) currNamedThing).isRequired() && Property.Type.STRING.equals(((Property) currNamedThing).getType())) {\n ((Property) currNamedThing).setValue(\"String_Node_Str\");\n }\n }\n }\n }\n }\n if (modified) {\n String serializedProperties = compProperties.toSerialized();\n if (serializedProperties != null) {\n ElementParameterType pType = ParameterUtilTool.createParameterType(null, \"String_Node_Str\", serializedProperties);\n nodeType.getElementParameter().add(pType);\n }\n }\n}\n"
"protected void attachButtonOnClick() {\n canPerformLogout.set(false);\n imageUtils.getImage();\n}\n"
"public static org.talend.core.model.metadata.builder.connection.MetadataColumn convertFromAvro(Schema.Field field) {\n org.talend.core.model.metadata.builder.connection.MetadataColumn col = ConnectionFactory.eINSTANCE.createMetadataColumn();\n Schema in = field.schema();\n col.setId(field.name());\n col.setLabel(field.name());\n col.setName(field.name());\n Schema nonnullable = AvroUtils.unwrapIfNullable(in);\n if (AvroTypes.isSameType(nonnullable, AvroTypes._boolean())) {\n col.setTalendType(JavaTypesManager.BOOLEAN.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._byte())) {\n col.setTalendType(JavaTypesManager.BYTE.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._bytes())) {\n col.setTalendType(JavaTypesManager.BYTE_ARRAY.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._character())) {\n col.setTalendType(JavaTypesManager.CHARACTER.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._date())) {\n col.setTalendType(JavaTypesManager.DATE.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._decimal())) {\n col.setTalendType(JavaTypesManager.BIGDECIMAL.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._double())) {\n col.setTalendType(JavaTypesManager.DOUBLE.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._float())) {\n col.setTalendType(JavaTypesManager.FLOAT.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._int())) {\n col.setTalendType(JavaTypesManager.INTEGER.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._long())) {\n col.setTalendType(JavaTypesManager.LONG.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._short())) {\n col.setTalendType(JavaTypesManager.SHORT.getId());\n } else if (AvroTypes.isSameType(nonnullable, AvroTypes._string())) {\n col.setTalendType(JavaTypesManager.STRING.getId());\n }\n col.setNullable(AvroUtils.isNullable(in));\n String prop;\n if (null != (prop = field.getProp(Talend6SchemaConstants.TALEND6_ID))) {\n col.setId(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COMMENT))) {\n col.setComment(in.getProp(Talend6SchemaConstants.TALEND6_ID));\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_LABEL))) {\n col.setLabel(null);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_IS_READ_ONLY))) {\n col.setReadOnly(Boolean.parseBoolean(prop));\n }\n for (String key : in.getJsonProps().keySet()) {\n if (key.startsWith(Talend6SchemaConstants.TALEND6_ADDITIONAL_PROPERTIES)) {\n String originalKey = key.substring(Talend6SchemaConstants.TALEND6_ADDITIONAL_PROPERTIES.length());\n TaggedValue tv = TaggedValueHelper.createTaggedValue(originalKey, in.getProp(key));\n col.getTaggedValue().add(tv);\n }\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_IS_KEY))) {\n col.setKey(Boolean.parseBoolean(prop));\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_SOURCE_TYPE))) {\n col.setSourceType(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_TALEND_TYPE))) {\n col.setTalendType(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_PATTERN))) {\n col.setPattern(TalendQuoteUtils.addQuotesIfNotExist(prop));\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_LENGTH))) {\n Long value = Long.parseLong(prop);\n col.setLength(value > 0 ? value : -1);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_ORIGINAL_LENGTH))) {\n Long value = Long.parseLong(prop);\n col.setOriginalLength(value > 0 ? value : -1);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_IS_NULLABLE))) {\n col.setNullable(Boolean.parseBoolean(prop));\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_PRECISION))) {\n Long value = Long.parseLong(prop);\n col.setPrecision(value > 0 ? value : -1);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_DEFAULT))) {\n col.setDefaultValue(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_ORIGINAL_DB_COLUMN_NAME))) {\n col.setName(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_RELATED_ENTITY))) {\n col.setRelatedEntity(prop);\n }\n if (null != (prop = in.getProp(Talend6SchemaConstants.TALEND6_COLUMN_RELATIONSHIP_TYPE))) {\n col.setRelationshipType(prop);\n }\n if (col.getTalendType() == null) {\n throw new UnsupportedOperationException(\"String_Node_Str\" + in);\n }\n return col;\n}\n"
"public void lookupMatchWithSourcePathsThatHaveSameRelativePaths() throws IOException {\n RuleKey key = new RuleKey(\"String_Node_Str\");\n Path tmp1 = Files.createTempDirectory(\"String_Node_Str\");\n ProjectFilesystem filesystem1 = new FakeProjectFilesystem(tmp1);\n SourcePath input1 = new PathSourcePath(filesystem1, Paths.get(\"String_Node_Str\"));\n HashCode hashCode1 = HashCode.fromInt(1);\n Path tmp2 = Files.createTempDirectory(\"String_Node_Str\");\n ProjectFilesystem filesystem2 = new FakeProjectFilesystem(tmp2);\n SourcePath input2 = new PathSourcePath(filesystem2, Paths.get(\"String_Node_Str\"));\n HashCode hashCode2 = HashCode.fromInt(1);\n FileHashCache fileHashCache = new FakeFileHashCache(ImmutableMap.of(RESOLVER.getAbsolutePath(input1), hashCode1, RESOLVER.getAbsolutePath(input2), hashCode2));\n Manifest manifest1 = Manifest.fromMap(new RuleKey(\"String_Node_Str\"), ImmutableMap.of(key, ImmutableMap.of(RESOLVER.getRelativePath(input1).toString(), Manifest.hashSourcePathGroup(fileHashCache, RESOLVER, ImmutableList.of(input1, input2)))));\n assertThat(manifest1.lookup(fileHashCache, RESOLVER, ImmutableSet.of(input1, input2)), Matchers.equalTo(Optional.of(key)));\n Manifest manifest2 = Manifest.fromMap(ImmutableMap.of(key, ImmutableMap.of(RESOLVER.getRelativePath(input2).toString(), Manifest.hashSourcePathGroup(fileHashCache, RESOLVER, ImmutableList.of(input1, input2)))));\n assertThat(manifest2.lookup(fileHashCache, RESOLVER, ImmutableSet.of(input1, input2)), Matchers.equalTo(Optional.of(key)));\n}\n"
"public static boolean isAdjacentInventory(int x, int y, int z, World worldObj, int side) {\n TileEntity tile = BlockHelper.getAdjacentTileEntity(worldObj, x, y, z, side);\n return isInventory(tile, side);\n}\n"
"public void testPackage(String pkg) throws IOException {\n File dir;\n try {\n dir = cabalUnpack(pkg);\n } catch (ExecutionError e) {\n System.out.println(\"String_Node_Str\" + pkg + \"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n testFiles(dir, pkg);\n logResult(pkg);\n addAllFailures(fileTester.getFailures());\n addOks(fileTester.getOkCount());\n addOkFails(fileTester.getOkFailCount());\n addNoParses(fileTester.getNoParseCount());\n addAmbInfix(fileTester.getAmbInfixCount());\n addTimeout(fileTester.getTimeout());\n addComparisonFailures(fileTester.getComparisonFailures());\n fileTester.reset();\n}\n"
"public GraphNode<InstallArtifact> constructInstallArtifactGraph(ArtifactIdentity artifactIdentity, ArtifactStorage artifactStorage, Map<String, String> deploymentProperties, String repositoryName) throws DeploymentException {\n if (PROPERTIES_TYPE.equalsIgnoreCase(artifactIdentity.getType())) {\n ConfigurationDeployer configDeployer = obtainConfigurationDeployer();\n ArtifactStateMonitor artifactStateMonitor = new StandardArtifactStateMonitor(this.bundleContext);\n ConfigInstallArtifact configInstallArtifact = new StandardConfigInstallArtifact(artifactIdentity, artifactStorage, this.lifecycleEngine, this.lifecycleEngine, this.lifecycleEngine, artifactStateMonitor, repositoryName, eventLogger, configDeployer);\n return constructAssociatedGraphNode(configInstallArtifact);\n } else {\n return null;\n }\n}\n"
"public void testSequentialClustering() {\n final SequentialClustering clustering = new SequentialClustering();\n clustering.setMaxRadius(200);\n clustering.setMaxSize(200);\n final SopremoTestPlan plan = new SopremoTestPlan(clustering);\n final Point p1 = new Point(\"String_Node_Str\", Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n final Point p2 = new Point(\"String_Node_Str\", Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n final Point p3 = new Point(\"String_Node_Str\", Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n final Point p4 = new Point(\"String_Node_Str\", Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n plan.getInput(0).add(this.createAnnotatedPoint(p1)).add(this.createAnnotatedPoint(p2)).add(this.createAnnotatedPoint(p3)).add(this.createAnnotatedPoint(p4));\n plan.run();\n int count = 0;\n for (final IJsonNode node : plan.getActualOutput(0)) {\n System.out.println(node);\n final ObjectNode cluster = (ObjectNode) node;\n Assert.assertEquals(2, ((IArrayNode) cluster.get(\"String_Node_Str\")).size());\n count++;\n }\n Assert.assertEquals(2, count);\n}\n"
"protected JSONObject loadAllMap(String filePath) {\n JSONObject resMap = new JSONObject();\n JSONObject pkgMap = new JSONObject();\n System.out.println(\"String_Node_Str\" + mapPath);\n File root = new File(mapPath);\n File[] files = root.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n this.loadAllMap(file.getAbsolutePath());\n } else {\n String fileName = file.getName();\n if (fileName.matches(\"String_Node_Str\")) {\n JSONObject json = this.loadJson(fileName);\n if (json != null) {\n System.out.println(\"String_Node_Str\" + fileName);\n resMap = mergeJSONObjects(resMap, json.getJSONObject(\"String_Node_Str\"));\n pkgMap = mergeJSONObjects(pkgMap, json.getJSONObject(\"String_Node_Str\"));\n }\n }\n }\n }\n JSONObject newMap = new JSONObject();\n newMap.put(\"String_Node_Str\", resMap);\n newMap.put(\"String_Node_Str\", pkgMap);\n return newMap;\n}\n"
"protected void respond(AjaxRequestTarget ajaxRequestTarget) {\n Page componentPage = getComponent().getPage();\n Request componentRequest = getComponent().getRequest();\n String action = componentRequest.getParameter(PARAM_ACTION);\n String id = componentRequest.getParameter(PARAM_DRAGGABLE_ID);\n int modifiers = WebEventExecutor.convertModifiers(Integer.parseInt(componentRequest.getParameter(PARAM_MODIFIERS)));\n if (ACTION_DRAG_START.equals(action)) {\n boolean dragStartReturn = onDragStart(id, Utils.getAsInteger(componentRequest.getParameter(PARAM_X)), Utils.getAsInteger(componentRequest.getParameter(PARAM_Y)), modifiers, ajaxRequestTarget);\n if (!dragStartReturn)\n ajaxRequestTarget.appendJavascript(\"String_Node_Str\");\n } else if (ACTION_DRAG_END.equals(action)) {\n onDragEnd(id, Integer.parseInt(componentRequest.getParameter(PARAM_X)), Integer.parseInt(componentRequest.getParameter(PARAM_Y)), modifiers, ajaxRequestTarget);\n } else if (ACTION_DROP_HOVER.equals(action)) {\n onDropHover(id, componentRequest.getParameter(PARAM_TARGET_ID), modifiers, ajaxRequestTarget);\n } else if (ACTION_DROP.equals(action)) {\n onDrop(id, componentRequest.getParameter(PARAM_TARGET_ID), Integer.parseInt(componentRequest.getParameter(PARAM_X)), Integer.parseInt(componentRequest.getParameter(PARAM_Y)), modifiers, ajaxRequestTarget);\n }\n WebEventExecutor.generateResponse(ajaxRequestTarget, componentPage);\n}\n"
"protected List _propagate() {\n if (_propagating) {\n return null;\n }\n _propagating = true;\n try {\n List result = null;\n if (_needsEvaluation && !_isLazy) {\n try {\n _evaluate();\n } catch (IllegalActionException ex) {\n try {\n if (!handleModelError(this, ex)) {\n result = new LinkedList();\n result.add(ex);\n }\n } catch (IllegalActionException ex2) {\n result = new LinkedList();\n result.add(ex2);\n }\n }\n }\n List additionalErrors = _propagateToValueListeners();\n if (result == null) {\n result = additionalErrors;\n } else {\n if (additionalErrors != null) {\n result.addAll(additionalErrors);\n }\n }\n return result;\n } finally {\n _propagating = false;\n }\n}\n"
"public boolean onMenuItemSelected(int featureId, MenuItem item) {\n super.onMenuItemSelected(featureId, item);\n if (item.getItemId() == 1) {\n try {\n if (mService == null) {\n } else if (mService.getStatus() == STATUS_READY) {\n mItemOnOff.setTitle(R.string.menu_stop);\n startTor();\n } else {\n mItemOnOff.setTitle(R.string.menu_start);\n stopTor();\n }\n } catch (RemoteException re) {\n Log.w(TAG, \"String_Node_Str\", re);\n }\n } else if (item.getItemId() == 4) {\n this.showSettings();\n } else if (item.getItemId() == 6) {\n this.showMessageLog();\n } else if (item.getItemId() == 2) {\n openBrowser(URL_TOR_CHECK);\n } else if (item.getItemId() == 3) {\n showHelp();\n } else if (item.getItemId() == 5) {\n showApps();\n }\n return true;\n}\n"